query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
7c29e188b95c075683129c81068baf9f
org.xms.f.messaging.RemoteMessage.getSentTime() Gets the time in milliseconds from the Epoch that the message was sent. Support running environments including both HMS and GMS which are chosen by users. Below are the references of HMS apis and GMS apis respectively: com.huawei.hms.push.RemoteMessage.getSentTime(): <a href=" com.google.firebase.messaging.RemoteMessage.getSentTime(): <a href="
[ { "docid": "47c8aaff0df17c3d010fe3d0e4cef3b6", "score": "0.90061206", "text": "public long getSentTime() {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.push.RemoteMessage) this.getHInstance()).getSentTime()\");\n return ((com.huawei.hms.push.RemoteMessage) this.getHInstance()).getSentTime();\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.firebase.messaging.RemoteMessage) this.getGInstance()).getSentTime()\");\n return ((com.google.firebase.messaging.RemoteMessage) this.getGInstance()).getSentTime();\n }\n }", "title": "" } ]
[ { "docid": "772819c388f7ba68f5f785e5d4070736", "score": "0.7448889", "text": "public String getSendTime() {\n Object ref = sendTime_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n sendTime_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "title": "" }, { "docid": "1b4ed6d8bd35b654d808b31578df4797", "score": "0.74386156", "text": "String getSendTime();", "title": "" }, { "docid": "f22e481105e41495cbf2063b04d90b70", "score": "0.72960985", "text": "@Override\n public String getSendTime() {\n Object ref = sendTime_;\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 sendTime_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "95ed67d89396ac33ef27612ac2afcee6", "score": "0.7274378", "text": "com.google.protobuf.ByteString\n getSendTimeBytes();", "title": "" }, { "docid": "2568e50748bf6c81c5794b569e38f1f4", "score": "0.71435016", "text": "public com.google.protobuf.ByteString\n getSendTimeBytes() {\n Object ref = sendTime_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sendTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "9b27c54250ac84ef08b31d0c93e80583", "score": "0.7112977", "text": "public Object getSendTime() {\n return sendTime;\n }", "title": "" }, { "docid": "179948b5ff95ae476f5ba0bb9d86f367", "score": "0.7088295", "text": "public Integer getSendingTime() {\r\n return sendingTime;\r\n }", "title": "" }, { "docid": "b2c90a16eecd1b4a1eb10d01904d08df", "score": "0.70635295", "text": "@Override\n public com.google.protobuf.ByteString\n getSendTimeBytes() {\n Object ref = sendTime_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sendTime_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "3a07e430e96729a2ce48183400ec8903", "score": "0.6942857", "text": "public Date getSendTime() {\r\n return sendTime;\r\n }", "title": "" }, { "docid": "6f1b03f7b03420279ae0d59f3d8f3eaf", "score": "0.6864991", "text": "public java.lang.Long getEventTime() {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.push.RemoteMessage.Notification) this.getHInstance()).getWhen()\");\n return ((com.huawei.hms.push.RemoteMessage.Notification) this.getHInstance()).getWhen();\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.firebase.messaging.RemoteMessage.Notification) this.getGInstance()).getEventTime()\");\n return ((com.google.firebase.messaging.RemoteMessage.Notification) this.getGInstance()).getEventTime();\n }\n }", "title": "" }, { "docid": "d2b4cf73b092ea87e4fe42ea5abda7ce", "score": "0.68136895", "text": "public Date getSendtime() {\n return sendtime;\n }", "title": "" }, { "docid": "de9f828369016017c4e526e11fbec206", "score": "0.6694129", "text": "@java.lang.Override\n public long getSentTimestamp() {\n return sentTimestamp_;\n }", "title": "" }, { "docid": "b8c70889544fc54cc240e4a71c2625d9", "score": "0.66719395", "text": "public String getOrderSendTime() {\n return orderSendTime;\n }", "title": "" }, { "docid": "88afd26987540bdd83d83f7a2551eff7", "score": "0.6634044", "text": "@java.lang.Override\n public long getSentTimestamp() {\n return sentTimestamp_;\n }", "title": "" }, { "docid": "75eead4f6a6fb78675724f9cf3feddf1", "score": "0.65302587", "text": "public long getTimestampMillis() {\n return mWrappedSmsMessage.getTimestampMillis();\n }", "title": "" }, { "docid": "3868490c83a024474167ffffc34297d9", "score": "0.64913696", "text": "public String getSentTimestamp() {\n return sentTimestamp;\n }", "title": "" }, { "docid": "ec86e1445bafc679f07cdf29ad5db971", "score": "0.645051", "text": "public StatsAccumulator getSendTimeStats() {\n return sendTimeStats;\n }", "title": "" }, { "docid": "0122d148f1a9dae0909fa55df029c47d", "score": "0.643917", "text": "com.google.protobuf.Timestamp getMessageTime();", "title": "" }, { "docid": "6d231e711b1bdc3708637d4d486f8dd7", "score": "0.6370053", "text": "public int getTtl() {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.push.RemoteMessage) this.getHInstance()).getTtl()\");\n return ((com.huawei.hms.push.RemoteMessage) this.getHInstance()).getTtl();\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.firebase.messaging.RemoteMessage) this.getGInstance()).getTtl()\");\n return ((com.google.firebase.messaging.RemoteMessage) this.getGInstance()).getTtl();\n }\n }", "title": "" }, { "docid": "e4b9e834a0426a5293b84c4fa0f11b7c", "score": "0.6135715", "text": "public long timeSinceLast() {\n long currentTime = System.currentTimeMillis();\n\n return currentTime - lastMessageTime;\n }", "title": "" }, { "docid": "ac24465e04e3be16e035bd9219534f96", "score": "0.6079458", "text": "public com.google.wireless.android.sdk.stats.Histogram getEventServiceTimeMs() {\n if (eventServiceTimeMsBuilder_ == null) {\n return eventServiceTimeMs_ == null ? com.google.wireless.android.sdk.stats.Histogram.getDefaultInstance() : eventServiceTimeMs_;\n } else {\n return eventServiceTimeMsBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "03afe2a6da8ff238d797d38bc15a92ba", "score": "0.6030579", "text": "long getTimestampMs();", "title": "" }, { "docid": "6c90740b32e2a46531ef1ac486fdb2d0", "score": "0.6021342", "text": "public long\n getTimeStamp() \n {\n return pMessage.getTimeStamp();\n }", "title": "" }, { "docid": "016a217b9583f4fe28ae31ab1716c6ba", "score": "0.5927191", "text": "float getNotificationTime();", "title": "" }, { "docid": "87ee37a431db5b95c3e47e3251f9e1bf", "score": "0.5912175", "text": "public Long getBytesSent() {\n return bytesSent;\n }", "title": "" }, { "docid": "9b19e5d2a82cef7f371cd1451c2c05b2", "score": "0.58744806", "text": "public com.google.wireless.android.sdk.stats.Histogram getEventServiceTimeMs() {\n return eventServiceTimeMs_ == null ? com.google.wireless.android.sdk.stats.Histogram.getDefaultInstance() : eventServiceTimeMs_;\n }", "title": "" }, { "docid": "833a47be87fcac18ee15c874adf37724", "score": "0.5863679", "text": "public Long getBytesSent() {\n\t\treturn bytesSent;\n\t}", "title": "" }, { "docid": "6ddaf4b20a2922be76686e15add43597", "score": "0.5798593", "text": "Long getLastMessageTime(Integer moduleId);", "title": "" }, { "docid": "ec9f07b4c6f35b1bc65e990c256eb1f8", "score": "0.5794613", "text": "public long getTime_msec() {\r\n\t\treturn time_msec;\r\n\t}", "title": "" }, { "docid": "8aeef4026b706d269e6a47e10c69f4a1", "score": "0.57518095", "text": "public final Long ntpTcpTime()\n {\n \tLong time = 0l;\n \ttry {\n TimeTCPClient client = new TimeTCPClient();\n try {\n // We want to timeout if a response takes longer than 10 seconds\n client.setDefaultTimeout(10000);\n client.connect(host);\n //System.out.println(client.getDate());\n time = (client.getTime() - TimeTCPClient.SECONDS_1900_TO_1970) * 1000;\n Log.e(TAG,\"Time returned by ntpTcpTime (in MS)\" + time); \n } finally {\n client.disconnect();\n }\n } catch (IOException ie) {\n Log.e(TAG, \"ntpTcpTime - Error cought IOException when looking for time\" + ExceptionToString(ie));\n }\n return time;\n }", "title": "" }, { "docid": "3ea943865e2c7c333b85e5231efb547f", "score": "0.5749202", "text": "public java.lang.String getResponseTime(){\r\n \t\t\treturn localResponseTime;\r\n \t\t\t}", "title": "" }, { "docid": "33280394c0346486552c554ccc36c25b", "score": "0.5744644", "text": "public long getUpdatedTimeMs() {\n return instance.getUpdatedTimeMs();\n }", "title": "" }, { "docid": "44a6157c4e947998a9b3c7982a48e0ce", "score": "0.57410216", "text": "public Date getSentDate() {\n return sentDate;\n }", "title": "" }, { "docid": "4c265bd8ede5ec1da9cabdcacbc3b7b1", "score": "0.57366675", "text": "public String getSent() {\n return sent;\n }", "title": "" }, { "docid": "14a5acdba7708832bda60c22e3d93367", "score": "0.57265", "text": "public String getTime() {\n Object ref = time_;\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 time_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "16fdcf188b8d27867ce447e7abe7a998", "score": "0.5718546", "text": "public String getLastSendDate() {\n return lastSendDate;\n }", "title": "" }, { "docid": "e4e8722350333a4a85169bf531e8ef5e", "score": "0.5712301", "text": "com.google.protobuf.Timestamp getTime();", "title": "" }, { "docid": "bcf9b129f0d66c22372c30f80df85565", "score": "0.57115453", "text": "public com.google.wireless.android.sdk.stats.HistogramOrBuilder getEventServiceTimeMsOrBuilder() {\n if (eventServiceTimeMsBuilder_ != null) {\n return eventServiceTimeMsBuilder_.getMessageOrBuilder();\n } else {\n return eventServiceTimeMs_ == null ?\n com.google.wireless.android.sdk.stats.Histogram.getDefaultInstance() : eventServiceTimeMs_;\n }\n }", "title": "" }, { "docid": "f8035bbed5caf7d385dbe2b7e29edaca", "score": "0.5708305", "text": "public long lastDataSent()\r\n/* 93: */ {\r\n/* 94:135 */ return this.info[17];\r\n/* 95: */ }", "title": "" }, { "docid": "c18a4e7c54f6099cfcde0dd25327fea7", "score": "0.57076", "text": "public long getHttpTime() {\n return mHttpTime;\n }", "title": "" }, { "docid": "a2cf96ae4a3cbe681979968930f0337d", "score": "0.5700481", "text": "public String getTime() {\n Object ref = time_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n time_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "title": "" }, { "docid": "f4c0573fe52705de189dac877708a7dd", "score": "0.5692806", "text": "public final int getTime() {\r\n \t\treturn simTime;\r\n \t}", "title": "" }, { "docid": "b413ca86f786b4af3263dfe2511357ba", "score": "0.56899", "text": "int getResponseTimeMs();", "title": "" }, { "docid": "c0203a7c9dd8a48c538438406695364c", "score": "0.5685933", "text": "public Long getPacketsSent() {\n\t\treturn packetsSent;\n\t}", "title": "" }, { "docid": "3eeba7d5be84cd3b16da7ea7eafb8209", "score": "0.5679002", "text": "public long getMilliseconds() {\n return milliseconds;\n }", "title": "" }, { "docid": "95ea39b6a6a8e6f363515c4807b1f593", "score": "0.56634337", "text": "public long getGameTimeMillis();", "title": "" }, { "docid": "dfc5927447bb2a92a3675b31f244a3d7", "score": "0.56615126", "text": "long getMediaTime();", "title": "" }, { "docid": "a680fbdef20e8172ea6219636f5c36fb", "score": "0.56587183", "text": "public long getTimeMS() { return mTimeMS; }", "title": "" }, { "docid": "3cc69a020c3e822ab87491560d4f3e8b", "score": "0.5655449", "text": "public long getMilliseconds() {\n return milliseconds;\n }", "title": "" }, { "docid": "347f971f8acefb50080af3c3bad8fb31", "score": "0.5648803", "text": "public long getUpdatedTimeMs() {\n return updatedTimeMs_;\n }", "title": "" }, { "docid": "d59efab71fba0c4e0ceea9f0037054c1", "score": "0.5634612", "text": "public Timestamp getReplyTime() {\n return replyTime;\n }", "title": "" }, { "docid": "dc9062cd8068828128b22170c0cfb5ba", "score": "0.56148714", "text": "com.google.protobuf.TimestampOrBuilder getMessageTimeOrBuilder();", "title": "" }, { "docid": "01da6bb4448f0ed1e483870f1da759bb", "score": "0.5611965", "text": "public int getCastTime() {\n return castTime;\n }", "title": "" }, { "docid": "0039fd661e24f6fdf0969bbe9cc8251e", "score": "0.5606507", "text": "public long getClientTimeInMs() {\n return this.clientTimeInMs;\n }", "title": "" }, { "docid": "c47333e41ccd0252ca33cff27c9f170b", "score": "0.5606471", "text": "public long getMillis() {\n return System.currentTimeMillis();\n }", "title": "" }, { "docid": "69c1a79e37ef865492bb4782acd48642", "score": "0.55979896", "text": "public long getTime() {\n return System.currentTimeMillis();\n }", "title": "" }, { "docid": "bfe09f0fc061f59d2a497bbc68ca9b83", "score": "0.5582091", "text": "public com.google.wireless.android.sdk.stats.HistogramOrBuilder getEventServiceTimeMsOrBuilder() {\n return eventServiceTimeMs_ == null ? com.google.wireless.android.sdk.stats.Histogram.getDefaultInstance() : eventServiceTimeMs_;\n }", "title": "" }, { "docid": "5c75b0d09d1c2dc428d37ef3f59caf55", "score": "0.5581008", "text": "public long getGameTime() {\n return System.currentTimeMillis() - mediator.getInitTime();\n }", "title": "" }, { "docid": "7d40e64f96a2639ea7ad077c55f5b5d0", "score": "0.557675", "text": "Long getPostedTime();", "title": "" }, { "docid": "98f2c7d3d430f59157395ff6fa8b8bd1", "score": "0.5557528", "text": "public void setSendingTime(Integer sendingTime) {\r\n this.sendingTime = sendingTime;\r\n }", "title": "" }, { "docid": "0ffb27340341a7e0013401cd9cd53461", "score": "0.5552058", "text": "public String getTime(Message message) {\n Date now = new Date();\n long nowTime = now.getTime();\n long thenTime = message.getDate_time().getTime();\n long howLongAgoInMS = nowTime - thenTime;\n long howLongAgoInMinutes = howLongAgoInMS / 60000;\n long howLongAgoInHours = howLongAgoInMinutes / 60;\n if (howLongAgoInMinutes < 60) {\n return Math.round(howLongAgoInMinutes) + \" minutes ago\";\n } else if (howLongAgoInHours < 24) {\n return Math.round(howLongAgoInHours) + \" hours ago\";\n } else {\n long howLongAgoInDays = howLongAgoInHours / 24;\n return Math.round(howLongAgoInDays) + \" days ago\";\n }\n }", "title": "" }, { "docid": "9577f3181b663dfb85c879070354bca3", "score": "0.55498576", "text": "public long getMillis() {\n\t\treturn System.currentTimeMillis();\n\t}", "title": "" }, { "docid": "f4235f9a809d5d9b061491363f59b1b7", "score": "0.5549381", "text": "public final long getMillis()\n {\n return System.currentTimeMillis();\n }", "title": "" }, { "docid": "c517ed8ec875060e4873c6c3bb25edf0", "score": "0.55333877", "text": "public Long getResponseTime() {\r\n\t\treturn responseTime;\r\n\t}", "title": "" }, { "docid": "62a8051dcf68e678392a0a87faa4ad72", "score": "0.55295676", "text": "public long getSimTimeStamp() {\n return simTimeStamp_;\n }", "title": "" }, { "docid": "a11d2812faab60462f13710ec0247f51", "score": "0.5526313", "text": "public String getCommandSent() {\n return commandSent;\n }", "title": "" }, { "docid": "5c722287ae86405de33125a1c74830bc", "score": "0.55256325", "text": "public long getStartTimeMilliseconds();", "title": "" }, { "docid": "02d78decc0767703f680f9196c114cfb", "score": "0.55198246", "text": "public long getSimTimeStamp() {\n return simTimeStamp_;\n }", "title": "" }, { "docid": "c40db768d036716fb0127ff5bc94e430", "score": "0.5515214", "text": "long getEmitTimestampInMs();", "title": "" }, { "docid": "7e25f723682764a714c97d405bbdaa42", "score": "0.55046606", "text": "public java.lang.Long getCreatedTime() {\n return genClient.cacheGet(CacheKey.createdTime);\n }", "title": "" }, { "docid": "9e2fbda90eda777ffeaca603d762c730", "score": "0.5500555", "text": "public void setSendTime(Date sendTime) {\r\n this.sendTime = sendTime;\r\n }", "title": "" }, { "docid": "a148430724cba61724e2a117d14d09ec", "score": "0.549774", "text": "public long getMillis() {\n return dateTime.getMillis();\n }", "title": "" }, { "docid": "7156cb268cc7f48b4b70d99646672bc9", "score": "0.5495447", "text": "public long getLastMessageTimeStamp() {\n return lastMessageTimeStamp;\n }", "title": "" }, { "docid": "d1fefec3c03b1a5027e653ab26957237", "score": "0.54820347", "text": "com.google.protobuf.Timestamp getSnapshotTime();", "title": "" }, { "docid": "466d903bbbc6d6ea49bce5daaf5b87ba", "score": "0.5479469", "text": "public String getTime() {\n return mTime;\n }", "title": "" }, { "docid": "f67f0566cacf0bcf9a53b39810677737", "score": "0.5466453", "text": "public static synchronized ChatMessage getMessageSend(){\n messageSendFlag = false;\n return messageSend;\n }", "title": "" }, { "docid": "9681c73d73cc1aa83c0c65bd1fb8ddf9", "score": "0.5465619", "text": "long getDataTime();", "title": "" }, { "docid": "385430b2aa5deb7e983baeac3c39a754", "score": "0.546286", "text": "public long getTime() {\n return meta.getTime();\n }", "title": "" }, { "docid": "c025cbea08afc2366ccab32e37c59162", "score": "0.5461807", "text": "public static long getCurrentMilliseconds() {\n\t\treturn System.currentTimeMillis() - startTime;\n\t}", "title": "" }, { "docid": "251e1456cf5773468293095be4b81f99", "score": "0.5460246", "text": "public Calendar getMessageTimestamp() {\n return theMsgTimestamp;\n }", "title": "" }, { "docid": "a24579afd6dc4314f55a57934fea98d6", "score": "0.5457846", "text": "public StatsAccumulator getReceiveTimeStats() {\n return receiveTimeStats;\n }", "title": "" }, { "docid": "72dd18c78b19cfe09645d5cf1e0aadef", "score": "0.5450779", "text": "public String getUpdatedTime();", "title": "" }, { "docid": "0c230a933a59493116327394b679ddb5", "score": "0.5449522", "text": "@java.lang.Override\n public int getResponseTimeMs() {\n return responseTimeMs_;\n }", "title": "" }, { "docid": "f0c35629ffa3142f6900c578dc0f4255", "score": "0.5439639", "text": "public int getWpStayTime();", "title": "" }, { "docid": "fedad629b36daef2799da8644fb85ff3", "score": "0.5434964", "text": "@java.lang.Override\n public int getResponseTimeMs() {\n return responseTimeMs_;\n }", "title": "" }, { "docid": "65dc70817f06f6a81a725681675e5384", "score": "0.5429941", "text": "public int getTime() {\n return gameTime;\n }", "title": "" }, { "docid": "31228750a82dd2ebfe0a1a83a0dabfb2", "score": "0.5429081", "text": "public long getLastPingTime();", "title": "" }, { "docid": "815da1298688537f84890dabbba20bbd", "score": "0.5423788", "text": "public String getTime() {\r\n return time;\r\n }", "title": "" }, { "docid": "88b1f7e17bbf8517259827ce502023cf", "score": "0.5423514", "text": "public int getTime() {\n return time;\n }", "title": "" }, { "docid": "0d17fca584caa87a86d17ca8468e2215", "score": "0.5422635", "text": "private Date getTimeStamp(Message msg) {\n Date timeStamp;\n DelayInformation delayInfo = msg.getExtension(DelayInformation.class);\n if (delayInfo != null) {\n timeStamp = delayInfo.getStamp();\n }\n else {\n timeStamp = new Date();\n }\n return timeStamp;\n }", "title": "" }, { "docid": "956844eb7d85bf92b73c207a9a8b0597", "score": "0.54224324", "text": "java.lang.String getTime();", "title": "" }, { "docid": "5e161e8edf337e0878fdb95291ccb101", "score": "0.5421601", "text": "public long getTime() {\r\n\t\treturn time;\r\n\t}", "title": "" }, { "docid": "fd17bab901d0c4d368dd831e2e4b13ef", "score": "0.5420279", "text": "public Date getSenddate() {\n return sendDate;\n }", "title": "" }, { "docid": "42d608a7ae7f91b66de311c122ee9ba1", "score": "0.54163605", "text": "public long getGlobalTime() {\n\t\treturn System.currentTimeMillis();\n\t}", "title": "" }, { "docid": "0d16c6467ccfe8dec6ee8912ce4aceb7", "score": "0.54128826", "text": "public long lastMessageTimestamp() {\n return lastMessage;\n }", "title": "" }, { "docid": "d5a2f1106ad9b24b3ffb0d6402e3fa04", "score": "0.5403495", "text": "@Override\n public long extractAscendingTimestamp(T message) {\n long timestamp_millis = 0;\n try {\n if (message instanceof LiveTrainData) {\n timestamp_millis = ((LiveTrainData)message).getEventTime().getSeconds() * 1000;\n } else if (message instanceof PlannedTrainData) {\n timestamp_millis = ((PlannedTrainData)message).getIngestionTime().getSeconds() * 1000;\n } else if (message instanceof WeatherData) {\n timestamp_millis = ((WeatherData)message).getDetectionTime().getSeconds() * 1000;\n }\n\n } catch (Exception e) {\n System.out.println(\"TimeCharacteristic not defined for this Event Type\");\n System.exit(-1);\n }\n return timestamp_millis;\n }", "title": "" }, { "docid": "9d777a7542413ae2a3b300490255afe6", "score": "0.5402444", "text": "com.google.protobuf.Timestamp getFirstObservedAtMs();", "title": "" }, { "docid": "c03b0ca4c9bba8b2456498241956babd", "score": "0.5399534", "text": "public Date getCallTime() {\n\t\treturn callTime;\n\t}", "title": "" }, { "docid": "ec44f0a80e4413fe18496a2539e9861f", "score": "0.53984046", "text": "public int getTime() {\n return time_;\n }", "title": "" }, { "docid": "478d4b6a627345b62f232441f46afa3a", "score": "0.5396895", "text": "public int getTime() {\n return time_;\n }", "title": "" } ]
786597d40e53ce83c932e9709a416941
Generated method Getter of the User.cartlogs attribute.
[ { "docid": "bb18e91fa3f6448a6ce22c37e3bd18ee", "score": "0.7011197", "text": "public Collection<CartLog> getCartlogs(final SessionContext ctx, final User item)\n\t{\n\t\treturn USER2CARTLOGRELATIONCARTLOGSHANDLER.getValues( ctx, item );\n\t}", "title": "" } ]
[ { "docid": "52bb975c990fea7909a66e2b27f51d4f", "score": "0.68612736", "text": "public Collection<CartLog> getCartlogs(final User item)\n\t{\n\t\treturn getCartlogs( getSession().getSessionContext(), item );\n\t}", "title": "" }, { "docid": "70a32131cc111cf320999898c4cb7b87", "score": "0.59650373", "text": "public ShoppingCart getUserShoppingCart() {\n return userShoppingCart;\n }", "title": "" }, { "docid": "a46b87c90a8699513f4d741dcf58a9ec", "score": "0.59400624", "text": "public void setCartlogs(final User item, final Collection<CartLog> value)\n\t{\n\t\tsetCartlogs( getSession().getSessionContext(), item, value );\n\t}", "title": "" }, { "docid": "cdd678571492121ed13fb4b386e0c926", "score": "0.59214664", "text": "public String getLogs() {\n\treturn logs;\n}", "title": "" }, { "docid": "e363c60a756c32e81830376ba06544c6", "score": "0.59127", "text": "public Collection<CartLog> getLogs(final SessionContext ctx, final Product item)\n\t{\n\t\treturn PRODUCT2CARTLOGRELATIONLOGSHANDLER.getValues( ctx, item );\n\t}", "title": "" }, { "docid": "21b541533afe3da07fa7e93dfb90d42e", "score": "0.59068424", "text": "public Collection<CartLog> getLogs(final Product item)\n\t{\n\t\treturn getLogs( getSession().getSessionContext(), item );\n\t}", "title": "" }, { "docid": "9b68d66f57bc3f80388467eda5ec30aa", "score": "0.58286464", "text": "public ArrayList<Order> getLogs() {\n return new ArrayList<>(logs.values());\n }", "title": "" }, { "docid": "15663ca0d8e51303e3837bda012285d7", "score": "0.57696044", "text": "@java.lang.Override\n public java.util.List<ethermint.evm.v1.Evm.Log> getLogsList() {\n return logs_;\n }", "title": "" }, { "docid": "5665a8d515edc6e96d2892e40d855041", "score": "0.57299", "text": "public Cart getCart(){\n return this.cart;\n }", "title": "" }, { "docid": "bdd3d1634e5aa4ca9ee9998cef6cf7e3", "score": "0.5681409", "text": "public List < String > getLog()\n {\n return logs; \n }", "title": "" }, { "docid": "b4888dc785dfa118d0eb566589a1bd49", "score": "0.5641944", "text": "public ArrayList<Item> getCartItems(){\n\t\treturn cart;\n\t}", "title": "" }, { "docid": "74348487af7cf650af5610289e356870", "score": "0.56113815", "text": "CartDTO getCurUserCart();", "title": "" }, { "docid": "0752323c3062e47c5539745e6fa59c3b", "score": "0.55985713", "text": "@java.lang.Override\n public java.util.List<? extends ethermint.evm.v1.Evm.LogOrBuilder> \n getLogsOrBuilderList() {\n return logs_;\n }", "title": "" }, { "docid": "ebb5de65562539e8e3e5d1ecb30279b7", "score": "0.5547362", "text": "public List<IterationLogEntry> getLogs() {\n return logs;\n }", "title": "" }, { "docid": "e5ea1184b649e14a459913411684de18", "score": "0.5538574", "text": "public void setCartlogs(final SessionContext ctx, final User item, final Collection<CartLog> value)\n\t{\n\t\tUSER2CARTLOGRELATIONCARTLOGSHANDLER.setValues( ctx, item, value );\n\t}", "title": "" }, { "docid": "bebd7bfa2609e3ffa888a4deb0c6587b", "score": "0.552873", "text": "public List<String> getLog() {\n\t\treturn logs;\n\t}", "title": "" }, { "docid": "d91bff7c1ba16f3c2fd07710ff2fba2e", "score": "0.5512152", "text": "public UserHistoryLog getUserHistoryLog() {\r\n\t\treturn userHistoryLog;\r\n\t}", "title": "" }, { "docid": "3bfd0f0683180c0cff4a20d3bd47cb81", "score": "0.55061907", "text": "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<EcommerceLog> getEcommerceLogs(Long shopifyOrderId) {\n\t\tList<EcommerceLog> logs=(List<EcommerceLog>) getSqlMapClientTemplate().queryForList(\"getEcomAccessByShopifyOrderId\",shopifyOrderId);\n\t\treturn logs;\n\t}", "title": "" }, { "docid": "bbf12d9cd032147a4c5f7a9895945255", "score": "0.5494869", "text": "@RequestMapping(value = \"/user/cart\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n public ArrayList<Cart> GetCartsOfUser(@RequestAttribute(value = \"user\") User user) {\n return user.getCartsOfUser();\n\n }", "title": "" }, { "docid": "8073d46037c2f5a5eb7a92ad0d0403c7", "score": "0.544835", "text": "public Date getLogAt() {\n return logAt;\n }", "title": "" }, { "docid": "c501b4f7a5d3461f52394e54234632d7", "score": "0.54411674", "text": "@java.lang.Override\n public ethermint.evm.v1.Evm.Log getLogs(int index) {\n return logs_.get(index);\n }", "title": "" }, { "docid": "d2223000bc1954157878a3c3c9974305", "score": "0.5428011", "text": "@Override\n\tpublic ArrayList<CartDto> totalcartview() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "294842ed2093b0c36d7195512ec6fe0e", "score": "0.5402321", "text": "@Basic @Raw\n\tpublic Set<Log> getSetOfLogs() {\n\t\treturn this.setOfLogs;\n\t}", "title": "" }, { "docid": "86d304c2b035503cf73ee34c64ad3adb", "score": "0.53766733", "text": "public void addToCartlogs(final User item, final CartLog value)\n\t{\n\t\taddToCartlogs( getSession().getSessionContext(), item, value );\n\t}", "title": "" }, { "docid": "1d66c646fc32518e68112dbcde437429", "score": "0.53467995", "text": "java.util.List<ethermint.evm.v1.Evm.Log> \n getLogsList();", "title": "" }, { "docid": "024bd0877cc455ff05975b7a1f1e0449", "score": "0.53351504", "text": "public int getCartQuantity()\n {\n return this.cartQuantity;\n }", "title": "" }, { "docid": "74fe061e944a9b5ca09dc3ef25382d00", "score": "0.5315646", "text": "public long getCartNo() {\n return cartNo;\n }", "title": "" }, { "docid": "7748632cedfc261ca5c48aa3e24ae080", "score": "0.5310981", "text": "public java.util.List<pomelo.auction.AuctionHandler.AuctionLog> getS2CLogList() {\n return s2CLog_;\n }", "title": "" }, { "docid": "0b034d3fd1f709bbcafb778fb7a999b3", "score": "0.52928156", "text": "@Column(name = \"USR_LOG\", length = 20)\n public String getUsrLog() {\n return this.usrLog;\n }", "title": "" }, { "docid": "82a60c7305bbab4f3bd257f24f28825f", "score": "0.5284713", "text": "@java.lang.Override\n public int getLogsCount() {\n return logs_.size();\n }", "title": "" }, { "docid": "f1b4705e0ac85f29121e1f9f5f70b11d", "score": "0.5258276", "text": "public SVNLog getLog() {\n return myLog;\n }", "title": "" }, { "docid": "b33e8aa5059d2183ed7fef1241527eb1", "score": "0.5257675", "text": "public java.util.List<ethermint.evm.v1.Evm.Log> getLogsList() {\n if (logsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(logs_);\n } else {\n return logsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "b3a52eafc7d034cd77dd0531fcefa653", "score": "0.5249275", "text": "@Override\r\n public List<CartItems> getCart() {\n return jdbcOperations.query(SELECT_ITEMS, itemsRowMapper);\r\n }", "title": "" }, { "docid": "bc1101c1afcfe00aaab7d1c1fabd166a", "score": "0.5198826", "text": "public Map<UUID, Integer> getCart() {\n return bookStoreDB.getCart();\n }", "title": "" }, { "docid": "9e9a030969a26b8169b4b1b651883fd5", "score": "0.5190294", "text": "public long getCartid() {\n\t\treturn cartid;\n\t}", "title": "" }, { "docid": "7be2b4ad1c490e900cd82bdd236156df", "score": "0.518384", "text": "public List<CapteurLogiqueEJBEntity> getCapteursLogiques() {\n return this.capteursLogiques;\n }", "title": "" }, { "docid": "25d5a810438ba112fd6affea1aed4138", "score": "0.51827765", "text": "public LogItem getLogItem() {\n return logItem;\n }", "title": "" }, { "docid": "34b33b7350827835521f2f1cf402a596", "score": "0.51630425", "text": "public void setLogs(final Product item, final Collection<CartLog> value)\n\t{\n\t\tsetLogs( getSession().getSessionContext(), item, value );\n\t}", "title": "" }, { "docid": "6c484f5fdf0531de5974b05126f31fd8", "score": "0.51608413", "text": "@Override\n\tpublic Cart getCartById(int Userid) {\n\t\treturn (Cart)sessionFactory.getCurrentSession().createQuery(\"from Cart where Userid='\"+Userid+\"'\").uniqueResult();\n\t}", "title": "" }, { "docid": "6d27c0e8b38f6a2445e6e1f0334f4e3a", "score": "0.51581645", "text": "public String[] getCartStrings(){\n String[] cartStrings = new String[this.getCartProducts().length];\n for(int i=0; i<this.getCartProducts().length; i++){\n cartStrings[i] = this.getCartProducts()[i].getCartQuantity() + \" x \" + this.getCartProducts()[i];\n }\n return cartStrings;\n }", "title": "" }, { "docid": "45a20aede96126749939c2103a4ef2e7", "score": "0.5156929", "text": "public Log getLog() {\r\n return log;\r\n }", "title": "" }, { "docid": "e4bc4941215812ebd2edfd77cb9db50c", "score": "0.5134372", "text": "public String getUserLogName() {\r\n return userLogName;\r\n }", "title": "" }, { "docid": "06238f43c249134928487e878b28ba3c", "score": "0.513277", "text": "public java.util.List<? extends ethermint.evm.v1.Evm.LogOrBuilder> \n getLogsOrBuilderList() {\n if (logsBuilder_ != null) {\n return logsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(logs_);\n }\n }", "title": "" }, { "docid": "3495279f36d6f8ffb6b3bf6397185cec", "score": "0.5128532", "text": "@Override\n public List<UserSessionLog> getAllUserSessions() {\n\n Session session = sessionFactory.getCurrentSession();\n Criteria criteria = session.createCriteria(UserSessionLog.class);\n\n @SuppressWarnings(\"unchecked\")\n List<UserSessionLog> sessionLogs = criteria.list();\n\n return sessionLogs;\n }", "title": "" }, { "docid": "0098ee5fd763174d286c86f2c0ec9b43", "score": "0.51114064", "text": "public Integer getLogId() {\n return logId;\n }", "title": "" }, { "docid": "80551a300cf8de17123d3d24e885e051", "score": "0.5109216", "text": "public String toString() {\n\t\tString result = cartId + \"\\n\";\n\t\tfor(Item item : cart)\n\t\t\tresult += item.toString() + \"\\n\";\n\t\treturn result;\n\t}", "title": "" }, { "docid": "d3b9c6e562a2df1abf2cd152957ba2ff", "score": "0.51047367", "text": "public String getCartao() {\n\t\treturn this.cartao.getCartao();\n\t}", "title": "" }, { "docid": "71e0dea55610d509570a1e683c1a1135", "score": "0.510169", "text": "@Transactional\n\tpublic List<Cart> findByUserNo(int id) {\n\t\treturn cartRepository.findByUser_userNo(id);\n\t}", "title": "" }, { "docid": "91b8e354c3fb6386875653b3e66ee98c", "score": "0.50951487", "text": "@Override\n public List<CartItemVo> getCartItems(String username) {\n String value = (String) redisTemplate.boundValueOps(username).get();\n List<CartItemVo> cartItemVos = null;\n try {\n cartItemVos = jsonToCartItemVoList(value);\n if (cartItemVos.size() < 1) {\n Cart cart = cartMapper.findByOwner(username);\n\n cartItemVos = jsonToCartItemVoList(cart.getItemsDetail());\n\n// cartItemVos.stream().forEach(cartItemVo -> {\n// redisTemplate.boundListOps(username).leftPush(cartItemVo);\n// });\n\n redisTemplate.boundValueOps(username).set(cart.getItemsDetail());\n }\n } catch (JsonProcessingException e) {\n log.error(\"failed to parse cart string.\", e);\n return new ArrayList<>();\n }\n\n return cartItemVos;\n }", "title": "" }, { "docid": "a8f46d10ff737f509a3afde8dc0fc12c", "score": "0.5073836", "text": "public java.util.List<pomelo.auction.AuctionHandler.AuctionLog> getS2CLogList() {\n if (s2CLogBuilder_ == null) {\n return java.util.Collections.unmodifiableList(s2CLog_);\n } else {\n return s2CLogBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "d52086e8185fe6ef80eef244e8059760", "score": "0.50717217", "text": "@Override\n\t@JsonIgnore\n\t@Transient\n\tpublic UserLog getLogInstance() {\n\t\treturn new UserLog();\n\t}", "title": "" }, { "docid": "83457127093bae3c7198e5a34be7d051", "score": "0.5071233", "text": "public String getLog() {return getString(\"Log\");}", "title": "" }, { "docid": "6c2e04a49baef0fa1208b735ae4929a4", "score": "0.5032463", "text": "@Override\n\tpublic List<CartListVO> cartList(String userId) {\n\t\treturn mapper.cartList(userId);\n\t}", "title": "" }, { "docid": "ab23d38dd703dfea5ba8b63263def65c", "score": "0.5028511", "text": "public Set<String>getCartIds(){\n return carts.keySet();\n}", "title": "" }, { "docid": "d543850841337bc7f884fe1323006e89", "score": "0.5026672", "text": "public final ILog getLog() {\n return this.log;\n }", "title": "" }, { "docid": "03692f936f5f45b469435591d80d2cbd", "score": "0.49912038", "text": "public List<CartEntity> getAllInfo(){\n\t\tList<CartEntity> cartList = cartRepository.getCartInfo();\n\t\treturn cartList;\n\t}", "title": "" }, { "docid": "b27e6eafd8c14bd258afdf9fe657bc65", "score": "0.49895522", "text": "@GetMapping\n public List<Cart> getCartContent() {\n return cartRepository.findAll();\n }", "title": "" }, { "docid": "4e3eb2d303e4cdcca76f76f3935ce248", "score": "0.49819595", "text": "ethermint.evm.v1.Evm.Log getLogs(int index);", "title": "" }, { "docid": "a2ee08e52919186dc33201c18d62092c", "score": "0.49750894", "text": "public java.util.List<? extends pomelo.auction.AuctionHandler.AuctionLogOrBuilder> \n getS2CLogOrBuilderList() {\n return s2CLog_;\n }", "title": "" }, { "docid": "9b6314daac66080c9ab4610544202d9a", "score": "0.49708307", "text": "@java.lang.Override\n public ethermint.evm.v1.Evm.LogOrBuilder getLogsOrBuilder(\n int index) {\n return logs_.get(index);\n }", "title": "" }, { "docid": "0531a1d5d4d6d0dd72f92b189e9f6592", "score": "0.49677584", "text": "@Override\n\t@JsonIgnore\n\t@Transient\n\tpublic LogRepository getLogRepository() {\n\t\treturn logRepository;\n\t}", "title": "" }, { "docid": "b66ca47c48abc43ad593488757a7e6aa", "score": "0.49662054", "text": "public List<Cart> getAllCarts() throws UserApplicationException {\n \treturn cartDao.retrieveAllCarts();\n }", "title": "" }, { "docid": "403f1d099a692cd32ac11dc45288d8f1", "score": "0.49616027", "text": "public void addToCartlogs(final SessionContext ctx, final User item, final CartLog value)\n\t{\n\t\tUSER2CARTLOGRELATIONCARTLOGSHANDLER.addValue( ctx, item, value );\n\t}", "title": "" }, { "docid": "d276d8fe2377013cf0adb2cef68350ea", "score": "0.49575627", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Cart [cartid=\" + cartid + \", customer=\" + customer + \", plant=\" + plant + \", plant_quantity=\"\n\t\t\t\t+ plant_quantity + \", seed=\" + seed + \", seed_quantity=\" + seed_quantity + \", fertilizer=\" + fertilizer\n\t\t\t\t+ \", fertlizer_quantity=\" + fertlizer_quantity + \", planter=\" + planter + \", planter_quantity=\"\n\t\t\t\t+ planter_quantity + \", gardendecor=\" + gardendecor + \", garden_decor_quantity=\" + garden_decor_quantity\n\t\t\t\t+ \", totalamount=\" + totalamount + \"]\";\n\t}", "title": "" }, { "docid": "9b071beaa5603b6e16d81948978ae195", "score": "0.49380115", "text": "public String getCartTotal(){\n\t\tsetCartTotal();\n\t\tNumberFormat formating = NumberFormat.getCurrencyInstance();\n\t\tString Amt = formating.format(cartTotal);\n\t\treturn Amt;\n\t}", "title": "" }, { "docid": "8a27ce4083be230b004023436d034fd2", "score": "0.49376556", "text": "public Subscription getLogSubscription() {\n return logSubscription;\n }", "title": "" }, { "docid": "343d382243e2a0e9d35baba5a228134a", "score": "0.4935937", "text": "public List<String> getLog(long sessionKey) throws RemoteException, AuthException, DisabledException;", "title": "" }, { "docid": "cea030d8d8e6d987a1554fe6a8243395", "score": "0.49351618", "text": "@Override\r\n\t@JsonIgnore\r\n\t@Transient\r\n\tpublic LogRepository getLogRepository() {\n\t\treturn logRepository;\r\n\t}", "title": "" }, { "docid": "1ea4d872fe02c6da23ce00cb4a33f444", "score": "0.4934904", "text": "public Cart getCart(String cartId){\n return carts.get(cartId);\n}", "title": "" }, { "docid": "ce3b5912664f0cc5eb4ed35842cdac36", "score": "0.49251175", "text": "public MoveLog getLog()\n {\n return moveLog;\n }", "title": "" }, { "docid": "3ad41161ce3492c4079bda3fb4ee1d0c", "score": "0.49041554", "text": "@Override\n\tpublic List<Cart> getAllCart() {\n\t\tList<Cart> list = cartDao.selectList(new EntityWrapper<Cart>().eq(\"isDelte\", 0));\n\t\t\n\t\treturn list;\n\t}", "title": "" }, { "docid": "78baebce1481c5177bb837ff27483a1e", "score": "0.48936898", "text": "@Nonnull @NotEmpty private String getLogPrefix() {\n return logPrefix;\n }", "title": "" }, { "docid": "bec6427c4f70f1a6260c0a8efef815b1", "score": "0.48926646", "text": "Cart getCart();", "title": "" }, { "docid": "2190694593c8db2e95354a07b929dfef", "score": "0.48923156", "text": "public int getLogTotalCount() {\n\t\treturn adao.getLogTotalCount();\n\t}", "title": "" }, { "docid": "0e412a08476f7318fe272020d8d9a00e", "score": "0.4884116", "text": "java.util.List<pomelo.auction.AuctionHandler.AuctionLog> \n getS2CLogList();", "title": "" }, { "docid": "7bb69258944e35396651476a3d6bf12c", "score": "0.48826018", "text": "@Override\n public List<Cart> getCart(UUID cartId, String customerId) {\n return null;\n }", "title": "" }, { "docid": "aa7c4c235b5407b4ad77be7796e1b9de", "score": "0.4878608", "text": "public Stack<Carte> getCartes() {\n\t\treturn cartes;\r\n\t}", "title": "" }, { "docid": "17868fe4bf8459b5917bd33e7de7ce16", "score": "0.4860973", "text": "public static byte[] getTransactionLog() {\n return APR_TransactionLog;\n }", "title": "" }, { "docid": "0fe255c6cf720205fb58638bbeaf039b", "score": "0.48533776", "text": "private void getLogs() {\n\t\tfor(int i=0; i < sprites.size(); i++) {\n\t\t\tif(sprites.get(i) instanceof Log) {\n\t\t\t\tlogs.add((Log)sprites.get(i));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6f2cbaabb9c55e734d02a93a6cc22098", "score": "0.48518792", "text": "public static List<LogPersistence> getLog()\n\t{\n\t\tSqlSession session = SqlSessionManager.getSqlSessionFactory().openSession(true);\n\t\tLogPersistenceMapper mapper = session.getMapper(LogPersistenceMapper.class);\n\t\tList<LogPersistence> log = mapper.getLog();\n\t\tsession.close();\n\t\treturn log;\n\t\t\n\t}", "title": "" }, { "docid": "2a39e97ce3d1c6736b50018d2c96accf", "score": "0.4850405", "text": "public double[] getCashAmounts() {\r\n return cashAmounts;\r\n }", "title": "" }, { "docid": "106a4b54bac91a36464ac19205aa927d", "score": "0.4848945", "text": "public Product[] getCartProducts(){\n Product[] cartProducts;\n int numCartProducts = 0;\n for(int i=0; i<this.productcount; i++){\n if(this.getProducts()[i].getCartQuantity() > 0){\n numCartProducts++;\n }\n }\n cartProducts = new Product[numCartProducts];\n int cartCounter = 0;\n for(int i=0; i<this.productcount; i++){\n if(this.getProducts()[i].getCartQuantity() > 0){\n cartProducts[cartCounter++] = this.getProducts()[i];\n }\n }\n return cartProducts;\n }", "title": "" }, { "docid": "bdd55643adb031e9b9055e2d74a639f3", "score": "0.48402357", "text": "Flux<User> fluxWithLog() {\n\t\t\treturn repository.findAll().log();\n\t\t}", "title": "" }, { "docid": "5ba09edbf1a944e529c045417b37686e", "score": "0.48362213", "text": "@Override\n @Transactional(readOnly = true)\n public List<VoucherLogDTO> findAll() {\n log.debug(\"Request to get all VoucherLogs\");\n return voucherLogRepository.findAll().stream()\n .map(voucherLogMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "title": "" }, { "docid": "c2dd82f8e85212f32867bbe65f223e69", "score": "0.48294023", "text": "@Override\n\tpublic List<Cart> findAllCarts() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8e113b3818c9d4f870d6a49bb4a57475", "score": "0.48276374", "text": "@Override\n\tpublic List<Log> findAll() {\n\t\treturn dao.findAll();\n\t}", "title": "" }, { "docid": "f63ce8e748ff53f0945c6c09473c2238", "score": "0.4814127", "text": "public void removeFromCartlogs(final User item, final CartLog value)\n\t{\n\t\tremoveFromCartlogs( getSession().getSessionContext(), item, value );\n\t}", "title": "" }, { "docid": "9eb5719fa834ed670b94f37f1aa519c8", "score": "0.48113218", "text": "public List<String[]> getUserLogins() {\r\n\t\treturn userLogins;\r\n\t}", "title": "" }, { "docid": "34b2d249258b1063028cd8f92326ff67", "score": "0.48046878", "text": "@Override\n protected String getLogCategory() {\n return LOG_CATEGORY;\n }", "title": "" }, { "docid": "3a2c17a507b18d6f0c9996f4df7f5a73", "score": "0.47984886", "text": "LogContext getLogContext() {\n return logContext;\n }", "title": "" }, { "docid": "f301f445d733e229c70772f27c20ad8e", "score": "0.4796565", "text": "public java.util.List<? extends pomelo.auction.AuctionHandler.AuctionLogOrBuilder> \n getS2CLogOrBuilderList() {\n if (s2CLogBuilder_ != null) {\n return s2CLogBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(s2CLog_);\n }\n }", "title": "" }, { "docid": "84d50a1f3ac856548fabdf2ed7244c2b", "score": "0.47891212", "text": "@Nullable\n public com.commercetools.api.models.cart.CartResourceIdentifier getCart() {\n return this.cart;\n }", "title": "" }, { "docid": "f90110265fd9d9dc39c98ad3ca18893b", "score": "0.4780407", "text": "public String getLogEncryptionKmsKeyId() {\n return this.logEncryptionKmsKeyId;\n }", "title": "" }, { "docid": "be5284d8a67619910134eed512113f1f", "score": "0.47646385", "text": "public AssetNoteLogs getNoteLogs()\n {\n if (noteLogs == null)\n {\n return null;\n }\n else\n {\n return noteLogs.cloneIterator(this);\n }\n }", "title": "" }, { "docid": "a6b60896f4a552ff04eba49fa0eb226b", "score": "0.47635308", "text": "java.util.List<? extends ethermint.evm.v1.Evm.LogOrBuilder> \n getLogsOrBuilderList();", "title": "" }, { "docid": "88635fb6ddc54dd0b0ceeb81fd7de84e", "score": "0.47555903", "text": "public void setLogs(final SessionContext ctx, final Product item, final Collection<CartLog> value)\n\t{\n\t\tPRODUCT2CARTLOGRELATIONLOGSHANDLER.setValues( ctx, item, value );\n\t}", "title": "" }, { "docid": "6146ec1cb121eca9105bde4ca5fcd6c8", "score": "0.4750253", "text": "protected Logger getLog(){\n\t\treturn log;\n\t}", "title": "" }, { "docid": "6cb2d9d2f2537e18022bef6405b2b6a3", "score": "0.47478905", "text": "@JsonProperty(\"historyWithLog\")\r\n @JacksonXmlProperty(localName = \"history_with_log\", isAttribute = false)\r\n public String getHistoryWithLog() {\r\n return historyWithLog;\r\n }", "title": "" }, { "docid": "e6d3f879327ca93fb4ca44e1cc52cd1d", "score": "0.47443599", "text": "@Accessor(qualifier = \"cartToOrderCronJob\", type = Accessor.Type.GETTER)\n\tpublic Collection<CartToOrderCronJobModel> getCartToOrderCronJob()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CARTTOORDERCRONJOB);\n\t}", "title": "" }, { "docid": "87cb4c448f8e055d2312feec11c51791", "score": "0.47442025", "text": "Cart findRecentCart(Account account);", "title": "" } ]
c98cc3b473bf2c747890e2239bd4b254
Constructor from String values.
[ { "docid": "d60637009b3b0fb6abbdcf14bed26abe", "score": "0.0", "text": "public CommodityTradeRecord(String countryOrArea, String flowString, String tradeUSDString) {\n\t\tFlow flow;\n\t\tswitch (flowString) {\n\t\t\tcase \"Import\":\n\t\t\tcase \"Re-Import\":\n\t\t\t\tflow = Flow.IMPORT;\n\t\t\t\tbreak;\n\t\t\tcase \"Export\":\n\t\t\tcase \"Re-Export\":\n\t\t\t\tflow = Flow.EXPORT;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalStateException(\"Unexpected flow value: \" + flowString);\n\t\t}\n\t\tthis.countryOrArea = countryOrArea;\n\t\tthis.flow = flow;\n\t\tthis.tradeUSD = Long.parseLong(tradeUSDString);\n\t}", "title": "" } ]
[ { "docid": "d632546e1a7e0666407c8c40477b0bc1", "score": "0.6415656", "text": "public T fromString(String string);", "title": "" }, { "docid": "f0ee3573e2b60ec4bdecc72deb035c31", "score": "0.62331843", "text": "public Strings(Integer languageConstant, String[] stringValues)\n\t{\n\t\tset(languageConstant, stringValues);\n\t}", "title": "" }, { "docid": "418cbb6dcae4b9f592b8672fcdc88b56", "score": "0.60623354", "text": "public PhaseMatrix(String strValues) \n throws IllegalArgumentException, NumberFormatException\n {\n super(INT_SIZE, strValues);\n this.setElem(IND.HOM, IND.HOM, 1.0);\n }", "title": "" }, { "docid": "7495be80926e95334750f5a07a309b17", "score": "0.60108274", "text": "public MiniREVariable(List<MiniREString> strings){\r\n\t\tthis.strings = strings;\r\n\t\ttype = Type.STRING;\r\n\t}", "title": "" }, { "docid": "9ce1df8612998b653195b09c5fe8cf91", "score": "0.5993948", "text": "public StringRecord(String val)\r\n/* 14: */ {\r\n/* 15:43 */ super(Type.STRING);\r\n/* 16: */ \r\n/* 17:45 */ this.value = val;\r\n/* 18: */ }", "title": "" }, { "docid": "325cc521e948f1a4ec3ecf86b50578d4", "score": "0.59890157", "text": "public void\n fromString\n (\n String value\n )\n {\n if (value == null)\n throw new IllegalArgumentException(\"Cannot set a Parameter value from a null string\");\n setValue(value);\n }", "title": "" }, { "docid": "e7e60c4cb3cf60da2bfee91941b75148", "score": "0.59599054", "text": "public NameValueMap(String names, String values, String delimiter) {\n preparePairs(names, values, delimiter);\n }", "title": "" }, { "docid": "2cb1c0af158e0ca2a0a9ff28821fca08", "score": "0.592556", "text": "public Entry(String str) {\n this.type = Type.STRING;\n this.str = str;\n }", "title": "" }, { "docid": "6e234a0e9d78592f2251fba5f9b7033d", "score": "0.5911553", "text": "public Vector(String s) {\n\t\tint start = s.indexOf('(')+1;\n\t\tint end = s.indexOf(\",\");\n\t\tsetX(Long.parseLong(s.substring(start,end)));\n\t\tstart = end + 1;\n\t\tend = s.indexOf(\")\");\n\t\tsetY(Integer.parseInt(s.substring(start,end)));\n\t}", "title": "" }, { "docid": "37b3d89c035e233a06e349190c759fa7", "score": "0.58640534", "text": "public StringParser() {\n super(String.class);\n }", "title": "" }, { "docid": "42a01e79eb9345386ee5cb51f60b261d", "score": "0.5817053", "text": "public VariableObject(String s) {\n this.assignFinal(s);\n if (s.startsWith(\" \")) {\n s = s.substring(1);\n }\n s = s.replace(\";\",\"\"); // remove ;\n String[] args = s.split(\"\\\\s=\\\\s|\\\\s\"); // {(final, )type, name(, =, value;)}\n if(this.isFinal) {\n if (args.length == 3) { // final type name\n this.type = args[1];\n this.name = args[2];\n }\n if( args.length == 4) { // final type name value\n this.type = args[1];\n this.name = args[2];\n this.value = args[3];\n }\n }\n else {\n if (args.length == 2) {\n if (args[0].matches(\"int|double|String|boolean|char\")) {// type name\n this.type = args[0];\n this.name = args[1];\n }\n else { // name value\n this.name = args[0];\n this.value = args[1];\n }\n }\n if (args.length == 3) { // type name value\n this.type = args[0];\n this.name = args[1];\n this.value = args[2];\n }\n }\n }", "title": "" }, { "docid": "a7ab4623760795ccc1182d89a4a1351c", "score": "0.5808601", "text": "public StringItem() {\n this(\"\", \"\");\n }", "title": "" }, { "docid": "1d555d976f6fb0240c9b003f30c113ac", "score": "0.580284", "text": "@Override\n public String fromString(String string) {\n return string;\n }", "title": "" }, { "docid": "687acd362edff63743dc698e0e7aa42f", "score": "0.579625", "text": "@Override public String fromString(final String s) {\n\t\t\t return null; \r\n\t\t\t }", "title": "" }, { "docid": "2ea93a38a449fbf1c2a27dc040456d3c", "score": "0.576309", "text": "public ConcreteList(String... strings) {\n arrayList.addAll(Arrays.asList(strings));\n }", "title": "" }, { "docid": "4beaf185c2fdae43aaf2e1007acaadfd", "score": "0.5729902", "text": "public Restaurant(String strings){\n\t\tthis.name=strings;\n\t}", "title": "" }, { "docid": "fcff4ae280fe3ae44fb0efe6c40d69f1", "score": "0.56979096", "text": "public StringPair(String first, String second) {\n super(first, second);\n }", "title": "" }, { "docid": "97bfb5d028174eae430a540e1105d89c", "score": "0.5695487", "text": "public NailbaCommCM(String aStr) throws InstantiationException {\n try {\n this.parse(aStr);\n\t// this.makedirty();\n }\n catch (Exception e) {\n System.out.println(\"NailbaCommCM:Unable to parse routine against String \");\n System.out.println(\" line value is: \");\n System.out.println(aStr);\n throw new InstantiationException(aStr);\n }\n }", "title": "" }, { "docid": "4125fc7331b626a05e36862d18a5825c", "score": "0.56416696", "text": "public void fromString(String str) \n {\n Native.solverFromString(getContext().nCtx(), getNativeObject(), str);\t\n }", "title": "" }, { "docid": "41379da2b383d351ff1ad6613045702b", "score": "0.5587948", "text": "public ArgInit(String value) {\n this.value = value;\n }", "title": "" }, { "docid": "0ab366a7633adbdf4642f3835b7a55cb", "score": "0.55847555", "text": "@SuppressWarnings(\"unchecked\")\n @Override\n public <T> T fromString(String str, Class<T> cls, Field field) {\n String name = \"\";\n String value = \"\";\n String[] parts = str.split(\"\\\\|\");\n if (parts.length >= 2) {\n name = parts[0];\n value = parts[1];\n } else {\n name = parts[0];\n }\n\n BasicHeader basicHeader = new BasicHeader(name, value);\n return (T) basicHeader;\n }", "title": "" }, { "docid": "80e86b030bae1c5698027881337cbcd8", "score": "0.5584087", "text": "static RoutePlanner fromStringArray(String[] arr) {\n return new RoutePlanner(arr[0], Integer.parseInt(arr[1]), Integer.parseInt(arr[2]), Integer.parseInt(arr[3]));\n }", "title": "" }, { "docid": "45f082f75f0f0c7531781d4d76e33b00", "score": "0.5576183", "text": "public StringSample(String v) {\n valeur=v;\n }", "title": "" }, { "docid": "216932ae27c1ea6759126312addebf29", "score": "0.5573636", "text": "@Override\r\n\tpublic function initFromString(String s) {\r\n\t\ts=s.replaceAll(\" \", \"\");\r\n\t\treturn new ComplexFunction(recInit(s));\r\n\t}", "title": "" }, { "docid": "d011933a2ce050d5f4107381bd8fb34b", "score": "0.55669063", "text": "public <T> T fromString(String data, Class<T> clazz) throws IOException;", "title": "" }, { "docid": "0e84561c0fa078d2df1dc55e3ffdd0b1", "score": "0.556471", "text": "@Test\n public void test_ConstructorFromString_3x3_p4x2_p5x_p6()\n {\n Polynomial expected = new Polynomial(new int [] {3,4,5,6});\n Polynomial actual = new Polynomial(\"3x^3 + 4x^2 + 5x + 6\");\n assertEquals(expected,actual);\n }", "title": "" }, { "docid": "b612b1910b3988f24d0952b84d0d617a", "score": "0.5557179", "text": "public Robot(String s){robot_arr=s.split(\"[:\\\\,]\");}", "title": "" }, { "docid": "4bef9ed364909459e8f565640a82901b", "score": "0.5553626", "text": "public static Object createValueFromString(String text, int count, Class objectClass, Class paramClass) throws NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException {\n // strip all extra whitespace\n text = text.replaceAll(\"[\\\\[|,| |\\\\]]\",\" \");\n text = text.replaceAll(\"\\\\s+\",\" \");\n text = text.trim();\n// u.p(\"text = \" + text);\n if (text == null || text.equals(\"\") || text.equals(\"null\")) {\n return null;\n }\n // split by spaces\n String[] strs = text.split(\" \");\n// u.p(\"split:\");\n// u.p(strs);\n// u.p(\"len = \" + strs.length);\n if(strs.length != count) {\n return null;\n }\n Object[] params = new Object[count];\n Class[] paramClasses = new Class[count];\n for(int i=0; i<strs.length; i++) {\n if(paramClass == int.class) {\n params[i] = Integer.valueOf(strs[i]);\n paramClasses[i] = paramClass;\n }\n if(paramClass == double.class) {\n params[i] = Double.valueOf(strs[i]);\n paramClasses[i] = paramClass;\n }\n }\n// u.p(\"parms = \");\n// u.p(params);\n Constructor con = objectClass.getConstructor(paramClasses);\n return con.newInstance(params);\n }", "title": "" }, { "docid": "e9cd2f0509f792b001673cd43807cbaa", "score": "0.5548732", "text": "private WeightedSet fillFromString(WeightedSet s, String values) {\n //new IntMapParser().parse();\n return null;\n }", "title": "" }, { "docid": "c15a2aa2f62eba60f3252358ee94edff", "score": "0.5502087", "text": "public Coordinates create(String strings[]) throws InvalidCoordinate {\n if(strings.length == 1)\n return new Lambert();\n if(strings.length != 5)\n throw new InvalidCoordinate();\n int zone;\n double x, y, z;\n try {\n zone = Integer.parseInt(strings[1].trim());\n x = Coordinates.parseLength(strings[2]);\n y = Coordinates.parseLength(strings[3]);\n z = Coordinates.parseAltitude(strings[4]);\n }\n catch(NumberFormatException e) {\n throw new InvalidCoordinate();\n }\n return new Lambert(zone, x, y, z);\n }", "title": "" }, { "docid": "7efecb9c839b2b174ed05374a9420527", "score": "0.5491085", "text": "public Complex(String[] cStr) {\n\t\tthis(cStr[0], cStr[1]);\n\n\t}", "title": "" }, { "docid": "ebe867f89e029c19be94d894d12c5abe", "score": "0.5476842", "text": "public void init(String s) {\n _string = s; _list = null; _init();\n }", "title": "" }, { "docid": "06eade48703a59f0c026a1a6d8faf89c", "score": "0.54740363", "text": "public static $name fromString(String str) {\n\t\t<% for (t in types) { %> if (<%\n\t\t\tdef r = 'str.equals(\"' + t + '\")'\n\t\t\tif (t.indexOf('-') >= 0) {\n\t\t\t\tr = r + ' || str.equals(\"' + t.replace('-', ' ') + '\")'\n\t\t\t}\n\t\t\tout << r\n\t\t%>) {\n\t\t\treturn ${toEnum.call(t)};\n\t\t}<% } %>\n\t\tthrow new IllegalArgumentException(\"Unknown $name: \" + str);\n\t}", "title": "" }, { "docid": "5609979b698eb35c2f7e3ad4cb68a819", "score": "0.5459141", "text": "public StringData() {\n }", "title": "" }, { "docid": "9ccf9f791801d39cb9218e4074e2a53e", "score": "0.54584104", "text": "public StringData() {\n\n }", "title": "" }, { "docid": "589cb9cb53a529080dc8527976a640cb", "score": "0.5456733", "text": "protected Expression(String st) {\n\t\t// TODO\n\t}", "title": "" }, { "docid": "0ca9b20568103311b1fd7c723fbaa971", "score": "0.5448952", "text": "private Token(String s) throws IOException {\n\t\tif(isKeyword(s)) {\n\t\t\ttype = Type.KEYWORD;\n\t\t} else if(isIgnored(s)) {\n\t\t\ttype = Type.IGNORED;\n\t\t} else if(s.startsWith(\"\\\"\")) {\n\t\t\ttype = Type.QUOTE;\n\t\t\tvalue = s.substring(1, s.length() - 1);\n\t\t\treturn;\n\t\t} else if(s.equals(\"->\")) {\n\t\t\ttype = Type.EDGE_OP;\n\t\t} else if(s.equals(\"--\")) { \n\t\t\tthrow new IOException(\"Undirected graphs are not allowed\");\n\t\t} else if(isNumber.test(s) || isString.test(s)) {\n\t\t\ttype = Type.ID;\n\t\t} else {\n\t\t\tthrow new IOException(\"Invalid Token\");\n\t\t}\n\t\t\n\t\tthis.value = s;\n\t}", "title": "" }, { "docid": "0b83adcd918d393b5051a0edc9598ce0", "score": "0.5444429", "text": "public InstantiationException(String s) {\n construct(s);\n }", "title": "" }, { "docid": "9fd418624fa09b0f644693eec50b6c1e", "score": "0.5431241", "text": "public User(String fileString){ \r\n String[] str = fileString.split(\"\\t\");\r\n this.accountNumber = Integer.parseInt(str[0]);\r\n this.loginId = str[1];\r\n this.hashedPassword = Integer.parseInt(str[2]);\r\n this.firstName = str[3];\r\n this.lastName = str[4];\r\n this.screenName = str[5]; \r\n }", "title": "" }, { "docid": "dec67d16e9d349d74b7546d19e2f2394", "score": "0.5395119", "text": "public P in_String(Collection<? extends String> values) { _in(values, String.class); return parent; }", "title": "" }, { "docid": "8718629e52d58fdae52ee50ce30e2929", "score": "0.5394355", "text": "public NoValuesException(final String s) {\n super(s);\n }", "title": "" }, { "docid": "9b8f0b536eb92ee46df5327ea914fc39", "score": "0.5386045", "text": "private AttrPolling(final String str) throws BOSHException {\n\t\tsuper(str);\n\t\tcheckMinValue(0);\n\t}", "title": "" }, { "docid": "0eecd5e996a845135b22ff343989f910", "score": "0.5381882", "text": "public Prefix(String str) {\n\t\tsuper(str);\n\t}", "title": "" }, { "docid": "01fa5b78af70ac2da2c083838e7b70d7", "score": "0.5380618", "text": "public Message(String str) {\n this.str = str;\n words = str.split(\" \");\n }", "title": "" }, { "docid": "6c081a1a140647c14fc6bd0478655fa7", "score": "0.5371488", "text": "@NotNull\n Text fromString(@NotNull String str);", "title": "" }, { "docid": "ed46f25801d2f84e08c0205352f13f77", "score": "0.53394896", "text": "public InstantiationException(String text, Object... list) {\n super(text, list); \n }", "title": "" }, { "docid": "d6925dd6314de5581d5db9d6dd807ef8", "score": "0.5335398", "text": "public Constructors() {\n\t\tthis(\"defaultName\", 7);\n\t}", "title": "" }, { "docid": "dfbddf7b81e0066355a48e90e3b290af", "score": "0.5329269", "text": "public Location(String s) {\n if (s.equals(\"\")) {\n levelNames = new String[0];\n } else {\n levelNames = s.split(SEPARATOR);\n }\n codedForm = computeCodedForm();\n }", "title": "" }, { "docid": "93a4b4bc7c74d0f28c1dbe426861594c", "score": "0.5324836", "text": "public StdString(StdString stdString) {\n this(Arrays.copyOf(stdString.toCharArray(), stdString.length()));\n }", "title": "" }, { "docid": "e8a3e590842e078fed37e8ff40f4dba1", "score": "0.53185135", "text": "public Token(Types t, String s) {\n this.token = t;\n this.string = s;\n }", "title": "" }, { "docid": "3179ed695658c41da9b9d088950b65ad", "score": "0.53062284", "text": "protected StringValue(String value) {\n this.value = value;\n }", "title": "" }, { "docid": "4cfa89aa4e8619e398405fbcd901b04f", "score": "0.53011775", "text": "public StringProblemList() {\r\n }", "title": "" }, { "docid": "583619519757a706440a8a9158221449", "score": "0.5301147", "text": "public static void main(String[] args) {\n String s1 = \"Hello World!\"; //shorthand String creation\r\n String s2 = new String(\"Hello World!\"); //explicitly create a 'new' String object\r\n System.out.println(\"s1:\" + s1);\r\n System.out.println(\"s2:\" + s2);\r\n\r\n //Create a new String object with s2\r\n String s3 = new String(s2); //pass a String into the String constructor\r\n System.out.println(\"s3:\" + s3);\r\n\r\n //Character array containing 'h','e','l','l','o','.'\r\n char[] helloArray = {'h', 'e', 'l', 'l', 'o', '.'};\r\n String s4 = new String(helloArray); //pass char array into String constructor\r\n System.out.println(\"s4:\" + s4);\r\n\r\n //Bytes of letter A,B,C,D in decimal (http://www.csgnetwork.com/asciiset.html)\r\n byte[] test = {65, 66, 67, 68};\r\n String s5 = new String(test); //pass byte array into String constructor\r\n System.out.println(\"s5:\" + s5);\r\n\r\n\r\n /*--- Empty and null initialization ----*/\r\n String s6 = null; //initialize to null\r\n System.out.println(\"s6:\" + s6);\r\n\r\n String s7 = \"\"; //initialize an empty string\r\n System.out.println(\"s7:\" + s7);\r\n\r\n String s8 = new String(\"\"); //initialize an empty string\r\n System.out.println(\"s8:\" + s8);\r\n\r\n }", "title": "" }, { "docid": "93988aa9c94d781cd5651891313b5579", "score": "0.5300733", "text": "@Override\n public Reference create( String value,\n TextDecoder decoder ) {\n return create(getDecoder(decoder).decode(value));\n }", "title": "" }, { "docid": "d5359282ab60728d2bc781e7b6b62bc9", "score": "0.52996004", "text": "@Override\r\n\tpublic void fromString(String str) throws EG_Exception {\n\t\tif(str.indexOf(\"tp\")!=-1) {\r\n\t\t\t\r\n\t\t\tString[] tab = str.split(\" \");\r\n\t\t\t\r\n\t\t\tif(tab.length==5) {\r\n\t\t\t\tx = Integer.parseInt(tab[1]);\r\n\t\t\t\ty = Integer.parseInt(tab[2]);\r\n\t\t\t\tz = Integer.parseInt(tab[3]);\r\n\t\t\t\tworldName = tab[4];\r\n\t\t\t}else {\r\n\t\t\t\tthrow new EG_Exception(\"Le message ne contien pas les bonne coordone syntaxe corect : tp x y z worldName\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\tthrow new EG_Exception(\"Ce nest pas un tp syntaxe corect : tp x y z worldName\");\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e752296576a1a067cc15367d111ac6e5", "score": "0.5295232", "text": "private Type(final String text) {\n this.stringValue = text;\n }", "title": "" }, { "docid": "f3ac1833967ac05f9e9bb75f7cacaa24", "score": "0.5294889", "text": "private static Object parseString(String value, Class type, Object oldVal) {\n\t\tObject o = null;\n\t\tif (type.equals(Boolean.class))\n\t\t\to = Boolean.valueOf(value);\n\t\telse if (type.equals(Byte.class))\n\t\t\to = Byte.valueOf(value);\n\t\telse if (type.equals(Short.class))\n\t\t\to = Short.valueOf(value);\n\t\telse if (type.equals(Integer.class))\n\t\t\to = Integer.valueOf(value);\n\t\telse if (type.equals(Long.class))\n\t\t\to = Long.valueOf(value);\n\t\telse if (type.equals(Float.class))\n\t\t\to = Float.valueOf(value);\n\t\telse if (type.equals(Double.class))\n\t\t\to = Double.valueOf(value);\n\t\telse if (type\n\t\t\t\t.equals(desmoj.extensions.experimentation.util.Filename.class)) {\n\t\t\tboolean isDir = false;\n\t\t\tif (oldVal != null && ((Filename) oldVal).isDirectory())\n\t\t\t\tisDir = true;\n\t\t\to = new Filename(value, isDir);\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tConstructor c = type\n\t\t\t\t\t\t.getConstructor(new Class[] { String.class });\n\t\t\t\tif (c != null)\n\t\t\t\t\to = c.newInstance(new Object[] { value });\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn o;\n\t}", "title": "" }, { "docid": "2e97505f693cdfbba07db5eccda3786b", "score": "0.5294217", "text": "@Override\n public void fromString(Scanner scan) {\n super.fromString(scan);\n this.horizontalAxis = scan.nextInt();\n this.verticalAxis = scan.nextInt();\n }", "title": "" }, { "docid": "f76449dc04652843c9a5d6d8a819db53", "score": "0.52893984", "text": "public Date(String str) {\r\n\t\tString[] tbStr = str.split(\"/\");\r\n\t\tthis.jour = Integer.parseInt(tbStr[0]);\r\n\t\tthis.mois = Integer.parseInt(tbStr[1]);\r\n\t\tthis.annee = Integer.parseInt(tbStr[2]);\r\n\t}", "title": "" }, { "docid": "0c0733c41716731c119f614deca161c2", "score": "0.52838266", "text": "public ConstructorThrows(String s) throws IllegalArgumentException {\n }", "title": "" }, { "docid": "24f157f6376586f29635a7d268a95e94", "score": "0.5274516", "text": "public /* synthetic */ Value(String str, boolean z, int i, j jVar) {\n this(str, (i & 2) != 0 ? true : z);\n }", "title": "" }, { "docid": "32b25eedc14f56cee41428b471dc3aef", "score": "0.5270953", "text": "@Test\n public void fromStringTest() {\n NodeType[] values = NodeType.values();\n for (NodeType type : values) {\n NodeType value = NodeType.fromString(type.toString());\n assertEquals(value, type);\n }\n }", "title": "" }, { "docid": "3a415c5540bb3e434c0472ce978ea739", "score": "0.5269158", "text": "public java2008T( String s ) {\n hijos = new Vector( 5 );\n nombre = s;\n }", "title": "" }, { "docid": "96c2eba7395ccb0636611b987d4b1629", "score": "0.5263469", "text": "private static XYValue toXYValue(String v) {\r\n\t\tString[] arr = v.split(\",\");\r\n\t\tif (arr.length != 2) {\r\n\t\t\tthrow new IllegalArgumentException(\"To many arguments\");\r\n\t\t}\r\n\r\n\t\treturn new XYValue(Integer.parseInt(arr[0]), Integer.parseInt(arr[1]));\r\n\t}", "title": "" }, { "docid": "a59f01aa41a6bf1a822a1bc8c1ec43c8", "score": "0.5250409", "text": "public KeyValue(String string, String startSeparator) {\n this(string, startSeparator, null);\n }", "title": "" }, { "docid": "246363953e7b417d93a5ab6a02fbad90", "score": "0.5247996", "text": "public PathParser(String pathString)\n {\n this.pathString = pathString.toCharArray();\n }", "title": "" }, { "docid": "b68371d0385e34e340dfea63138d3954", "score": "0.52378494", "text": "public EccezionePresa(final String string) {\n super(string);\n }", "title": "" }, { "docid": "fc00c6c8691a5973170b5a7380ab3eb5", "score": "0.52326876", "text": "protected StringFilter (){}", "title": "" }, { "docid": "f3bae9b6c820611a767de7aff56f204c", "score": "0.5231785", "text": "protected synchronized Object stringToValue(String valueString) throws ParseException {\r\n\t\tif (getValueClass().isPrimitive()) {\r\n\t\t\ttry {\r\n\t\t\t\treturn DynaBeanUtils.parsePrimitive(getValueClass(), valueString);\r\n\t\t\t} catch (Exception nfe) {\r\n\t\t\t\tthrow new ParseException(nfe.getMessage(), 0);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tClass<?> vc = getValueClass();\r\n\t\t\tConstructor cons;\r\n\r\n try {\r\n cons = vc.getConstructor(new Class[] { String.class });\r\n\r\n } catch (NoSuchMethodException nsme) {\r\n cons = null;\r\n }\r\n\r\n if (cons != null) {\r\n try {\r\n return cons.newInstance(new Object[] { valueString });\r\n } catch (Throwable ex) {\r\n throw new ParseException(\"Error creating instance\", 0);\r\n }\r\n }\r\n \r\n return valueString;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d5124ef45450ba751c421659a64af991", "score": "0.5229455", "text": "public LDAPCertStoreParameters(String paramString) {\n/* 86 */ this(paramString, 389);\n/* */ }", "title": "" }, { "docid": "b613c98b1747a0fbad918740c263afb5", "score": "0.52276856", "text": "public UserInfo(String s){\n }", "title": "" }, { "docid": "88c199f876b963843589f819542512ee", "score": "0.5224191", "text": "@Override\n\tpublic function initFromString(String s) {\n\n\t\tfunction func = new Monom(s);\n\t\treturn func;\n\n\t}", "title": "" }, { "docid": "1c8fed91b5211501c3716f344c193df8", "score": "0.5201945", "text": "@Override\n public URI create( String value,\n TextDecoder decoder ) {\n return create(getDecoder(decoder).decode(value));\n }", "title": "" }, { "docid": "1da09575c11235e3450a2e05744ebe19", "score": "0.5201661", "text": "public ParseException() {\n // Begin BeanShell Modification - constructor\n this(\"\");\n // End BeanShell Modification - constructor\n specialConstructor = false;\n }", "title": "" }, { "docid": "d228ec3377cdba53831d05194742ff75", "score": "0.51962185", "text": "private static Object parse_literal(String str) {\n char first_char = str.charAt(0); // Check str length?\n\n if(first_char == '\\\"') // String literal\n // Shave off first and last characters(The quotes)\n return str.substring(1, str.length() - 1);\n else if(Character.isDigit(first_char))\n return Integer.parseInt(str);\n else\n return new Attribute(str);\n }", "title": "" }, { "docid": "e8d2b4d3349cda87da499dd54cf2a97f", "score": "0.5188737", "text": "public static PhaseMatrix parse(String strTokens) \n throws IllegalArgumentException, NumberFormatException\n {\n return new PhaseMatrix(strTokens);\n }", "title": "" }, { "docid": "59c8610dca07ceec21abaade8ef7f57e", "score": "0.5175137", "text": "@Test\n public void usualConstructor()\n {\n new StringVersionSegment( \"RC1\" );\n }", "title": "" }, { "docid": "47cde45455f70f9b29e617d3edec3e17", "score": "0.5174304", "text": "public TestMultiUnion( String s ) {\r\n super( s );\r\n }", "title": "" }, { "docid": "f793e9c3317cdb26d03a31ea8978be3d", "score": "0.51682425", "text": "public EncodingClue(String value, String source) {\n this(value, source, NO_THRESHOLD);\n }", "title": "" }, { "docid": "354511e7939b0372157e7356ff3363ea", "score": "0.5165491", "text": "private HexStrings()\n {\n }", "title": "" }, { "docid": "1110140dbfc762b2213917a814636fa9", "score": "0.51595265", "text": "public Customer(String customerInfo)\n {\n int space = customerInfo.indexOf(\" \");\n firstName = customerInfo.substring(0, space).trim();\n lastName = customerInfo.substring(space+1).trim();\n\n }", "title": "" }, { "docid": "b4a188fe2029ddfb8a28c3341d620e9c", "score": "0.51387876", "text": "public static void main(String[] args) {\nString name=\"raj\";\nString name1=new String(\"raj kumar\");\nchar ch[]= {'r','a','j'};\nString name2=new String(ch);\nString name3=new String(ch,0,3);\nSystem.out.println(name);\nSystem.out.println(name1);\nSystem.out.println(name2);\nSystem.out.println(name3);\n\t}", "title": "" }, { "docid": "992c3e8a15a67d84fb88e5e83b02f01d", "score": "0.5137697", "text": "public FitCompStringFormatException(String s) {\n\t\tsuper(s);\n\t}", "title": "" }, { "docid": "fb656610f8f0ed2de4227adeb74cc4f6", "score": "0.5126793", "text": "public Item(String content) {\n this.string = content;\n }", "title": "" }, { "docid": "a8f3ddf4388ca1a18344f9bdb9515d7e", "score": "0.5124381", "text": "public abstract void init(String text) ;", "title": "" }, { "docid": "3357454264911174ec495b92973e8018", "score": "0.51221657", "text": "public BankTransaction(String str) {\n\t\tsuper(str);\n\t}", "title": "" }, { "docid": "47f2391c5adda77a3d61e3f1267157a3", "score": "0.51189053", "text": "private RelationType(String underlyingString) \n {\n this.UnderlyingString = underlyingString;\n }", "title": "" }, { "docid": "a24a4dcfc58a93b99a0d01af798ac3b3", "score": "0.51185197", "text": "public GuitarString(double[] init) {\n\n\t}", "title": "" }, { "docid": "00485212d065840b5d58045403de65dc", "score": "0.5116606", "text": "@Override\n public void fromString( String s, Class< V > cls ) {\n Pattern p = Pattern.compile( \"\\\\s*plottable [^{]*\\\\s*\" );\n Matcher matcher = p.matcher( s );\n int end = 0;\n if ( matcher.find() ) {\n end = matcher.end();\n }\n super.fromString( s.substring( end ), cls );\n }", "title": "" }, { "docid": "803169e4e92061e1cd28b7a1d4fd71d0", "score": "0.5116255", "text": "public StringCheck(String arg) {\r\n super(arg);\r\n }", "title": "" }, { "docid": "bdeb53ab6cc42c8984a7953659d06041", "score": "0.51138866", "text": "private Snack getSnackFromText(String[] params) {\n\t\tfor (String s : params)\n\t\t\ts.replace(\",\", \"\");\n\t\tSnack sn = new Snack(Integer.parseInt(params[3]), Double.parseDouble(params[2]), Double.parseDouble(params[1]), params[0]);\n\t\treturn sn;\n\t}", "title": "" }, { "docid": "b78d01a2a4062c0b6126bbdc6d1189e3", "score": "0.5112006", "text": "public abstract void setValue(String str_to_parse) throws DataValueParsingException;", "title": "" }, { "docid": "edd9ef2f7dded558e51e4b9d70ac3718", "score": "0.51036614", "text": "public function initFromString(String s) {\r\n\t\tfunction f=new ComplexFunction(s);\r\n\t\treturn f;\r\n\t}", "title": "" }, { "docid": "7b166c2f5fa23a50251736a204cea9eb", "score": "0.5101256", "text": "public Str(String theValue) {\n assert theValue != null;\n value = theValue;\n }", "title": "" }, { "docid": "ceb2da457e755f79b24e00be5b9beb7b", "score": "0.51005816", "text": "public LabeledConstituent(int start, int end, String stringValue)\n/* */ {\n/* 66 */ super(start, end);\n/* 67 */ this.label = new StringLabel(stringValue);\n/* */ }", "title": "" }, { "docid": "1d768322a5d452ff5b4a7b750306e8c0", "score": "0.5099929", "text": "public TypeConversionException(String s) {\n super(s);\n }", "title": "" }, { "docid": "f593aab0ae35d4fa37e7d62e87f96358", "score": "0.50984573", "text": "public static <T> T newInstance( String n )\n {\n return newInstance( forName( n ) );\n }", "title": "" }, { "docid": "2341f5c8c5558826a779da7265f73ea6", "score": "0.50974745", "text": "@Test\n public void constructorWithOnlySpacesString()\n {\n new StringVersionSegment( \" \" );\n }", "title": "" }, { "docid": "1674b49b5a30036b9e973962f7dec007", "score": "0.5095341", "text": "public BaseMessageOtp(String str) {\n\t\tinit();\n\t\tparseIt(str);\n\t}", "title": "" }, { "docid": "b7cab2a35cb2a2ed2281cfdc7f87950f", "score": "0.5089892", "text": "@Test\r\n public void InitFromString()\r\n {\r\n Polynom m1 = new Polynom(\"0\");\r\n m1 = (Polynom) m1.initFromString(\"x^3-2x^4+1+x^4\");\r\n Polynom expected=new Polynom(\"-x^4+x^3+1\");\r\n assertTrue(m1.equals(expected));\r\n }", "title": "" }, { "docid": "1fb8edd85548e468db48f6b8ea6ad909", "score": "0.5086756", "text": "public MyStringField(String data) {\n super(FIELD, data);\n }", "title": "" } ]
422636edb6281ea70a6e5695a986dee1
Obtains the medium image raw byte data.
[ { "docid": "92d40d231cba0957c5b4a8b7bcf6d194", "score": "0.735754", "text": "public byte[] getMediumImageByteArray()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn imageDataObtainer.getMediumImageByteArray();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "abf257b7c8050624cbefd1280d3a3827", "score": "0.7517918", "text": "public ReadableByteChannel getRawImageData();", "title": "" }, { "docid": "328fca8b6111c6680b2766dc5d36143a", "score": "0.705903", "text": "@Override\n\tpublic synchronized byte[] getPictureData () {\n\t\treturn this.pictureData;\n\t}", "title": "" }, { "docid": "e32adc4f41ebdec9cf7745ca9efe71b2", "score": "0.69617546", "text": "public byte[] getImage() {\n return image;\n }", "title": "" }, { "docid": "dd7933b32950e31d347121c49a5fa27c", "score": "0.6822769", "text": "public byte[] getFullImageByteArray()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn imageDataObtainer.getFullImageByteArray();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "e31fe9a490bddd0057b8c40a98887651", "score": "0.6799088", "text": "@Override\n public byte[] getRawBytes() {\n return data;\n }", "title": "" }, { "docid": "22e11ffe8b893f640db21f4a5695b124", "score": "0.6791817", "text": "byte[] raw();", "title": "" }, { "docid": "bb20eba6062e3cda1a9a5e724f02b87c", "score": "0.67546296", "text": "public byte[] getData();", "title": "" }, { "docid": "bb20eba6062e3cda1a9a5e724f02b87c", "score": "0.67546296", "text": "public byte[] getData();", "title": "" }, { "docid": "f66b1d3005467052bca459dbfcbba267", "score": "0.6710743", "text": "public byte [] getPhotoByte(){\n return photoByte;\n }", "title": "" }, { "docid": "2edbb07b63a3d4f5cca63c8f4362c39e", "score": "0.6580589", "text": "public String getImageData() {\n return imageData;\n }", "title": "" }, { "docid": "2aa3b44ba0edde7566f9cc5f80134ac7", "score": "0.65565276", "text": "public byte[] getRaw() {\n return this.value;\n }", "title": "" }, { "docid": "14a5b808c8450316c3315dc1413b5e18", "score": "0.6531395", "text": "public ShortBuffer rawData() {\n\t\treturn _myRawData;\n\t}", "title": "" }, { "docid": "030975987b108e531a08580ebaa126fe", "score": "0.6491106", "text": "com.google.protobuf.ByteString\n getImageBytes();", "title": "" }, { "docid": "300a64e76b6abaa701d210c8ab61c6a3", "score": "0.647884", "text": "public byte[] getBytes() {\n try {\n FileInputStream stream = new FileInputStream(file);\n\n // Check we can fit the file in memory.\n int length = (int) file.length();\n if (file.length() > Integer.MAX_VALUE) {\n throw new AndroidRuntimeException(\"Image too large to load.\");\n }\n\n byte[] buffer = new byte[length];\n stream.read(buffer);\n return buffer;\n\n } catch (IOException ex) {\n throw new AndroidRuntimeException(ex);\n }\n }", "title": "" }, { "docid": "65258d21900e463db586f2577fe01a09", "score": "0.646135", "text": "com.google.protobuf.ByteString\n getImageBytes();", "title": "" }, { "docid": "a78a24093eb7d6fd11d401978c019cb4", "score": "0.6457715", "text": "public byte[] getData() {\n try {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n writeData(os);\n return os.toByteArray();\n } catch (IOException e) {\n return null;\n }\n }", "title": "" }, { "docid": "79d40dfcdc7f71ce9280f850ed8cd77b", "score": "0.64219004", "text": "public byte[] getImg() {\n return img;\n }", "title": "" }, { "docid": "f8a1e8bc1cf70d408427695a6524582e", "score": "0.633329", "text": "public abstract byte[] byteData();", "title": "" }, { "docid": "c74eef13c295347e1efa2dbdeb22d094", "score": "0.6328519", "text": "public byte[] getData() {\n Box box = metaSupport.getSubBox(\"data\");\n byte[] data = box.getData();\nSystem.err.println(StringUtil.getDump(data, 64));\n final int O = 8;\n byte[] result = new byte[data.length - O]; \n System.arraycopy(data, O, result, 0, data.length - O);\n return result;\n }", "title": "" }, { "docid": "f6fe30a68172348a8fac8c45633ce77c", "score": "0.63011885", "text": "public com.google.protobuf.ByteString\n getImageBytes() {\n return instance.getImageBytes();\n }", "title": "" }, { "docid": "fb2bbac524d5a85041a90f5575faaaf2", "score": "0.62954175", "text": "public byte[] getByteData()\n\t{\n\t\treturn byteData;\n\t}", "title": "" }, { "docid": "883f5cf7be473a1fe03297d59bc8df07", "score": "0.62736404", "text": "public byte[] getThumbImageByteArray()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn imageDataObtainer.getThumbImageByteArray();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "b2b6f25fa5a0d44f84532237fa092bc5", "score": "0.6259316", "text": "public byte[] getData() {\r\n setData();\r\n return data;\r\n }", "title": "" }, { "docid": "80d5fbfc5712ea1d12e3f2988d671fdf", "score": "0.6231259", "text": "public byte[] getData() {\n return m_data.clone();\n }", "title": "" }, { "docid": "f87a283297129336269043e40d2c3da1", "score": "0.6223195", "text": "public ByteBuffer getBitmap() {\n return mBytes;\n }", "title": "" }, { "docid": "de3e2fc50c116348063a2a0ace3366d2", "score": "0.62048984", "text": "public ByteData getByteData() {\n return byteData;\n }", "title": "" }, { "docid": "24ff12c178d280ef80c9fa8c8cc93333", "score": "0.6177125", "text": "public byte [] getBytes() {return w;}", "title": "" }, { "docid": "a134239a6c25d84ca890de2e97475da8", "score": "0.61635476", "text": "public byte[] getBytes();", "title": "" }, { "docid": "a134239a6c25d84ca890de2e97475da8", "score": "0.61635476", "text": "public byte[] getBytes();", "title": "" }, { "docid": "d036efffcc156f4bc2ca010f36502f4e", "score": "0.61616874", "text": "public byte[] getData() {\n\treturn packet.getData();\n }", "title": "" }, { "docid": "0dbcce92d0bcaab1cd889ef64a539c68", "score": "0.6150697", "text": "@Override\r\n\tpublic int[][] imageData() {\n\t\treturn imgData;\r\n\t}", "title": "" }, { "docid": "3a15a918f70d5016b57077d5b3b26437", "score": "0.61491036", "text": "com.google.protobuf.ByteString\n getReceiveImageBytes();", "title": "" }, { "docid": "56f94a4be3507454de6cc0f5475928e2", "score": "0.6145147", "text": "public native byte[] data();", "title": "" }, { "docid": "38717eb45a253a9945598c5e18a84fed", "score": "0.6140365", "text": "public byte[] getRawData() {\n\n ArrayList<Byte> rawData = new ArrayList<>();\n\n this.inputs.forEach(input -> rawData.addAll(input.getRawDataWithSignature()));\n this.outputs.forEach(output -> rawData.addAll(output.getRawData()));\n\n return Helper.convertToByteArray(rawData);\n }", "title": "" }, { "docid": "25a16ef4dff4aeb5f991d5bbfca61b51", "score": "0.61398923", "text": "public static byte[] getData() {\n return null;\n }", "title": "" }, { "docid": "f64fd43621ae949f20545b8f276d4094", "score": "0.6136704", "text": "com.google.protobuf.ByteString getPictureBytes();", "title": "" }, { "docid": "be13afe539b92a7fe0eb9c650c4c8fee", "score": "0.61366236", "text": "public byte[] getData() {\n\t\t\t\treturn getObject().packet.getData();\n\t\t\t}", "title": "" }, { "docid": "533ed7db4ebb3cc821b84ec3712cc08c", "score": "0.6130757", "text": "public char[][] getInternalImage() {\r\n return this.image.clone();\r\n }", "title": "" }, { "docid": "5c594e593307298533bc80adc66d16f1", "score": "0.61196756", "text": "public double[] getImage() {\n\t\treturn image;\n\t}", "title": "" }, { "docid": "624f95b5731aef70e794a68d08f6d6ee", "score": "0.6119462", "text": "public byte getData() {\n return data;\n }", "title": "" }, { "docid": "9f6940d571b931472bd9f7f498b07db0", "score": "0.6115525", "text": "public int[] raw() {\n return data;\n }", "title": "" }, { "docid": "8a2f06096bd67e82d2da80f82299db60", "score": "0.6099052", "text": "public byte[] getData() {\r\n return mData;\r\n }", "title": "" }, { "docid": "c90af6a6f5fda2bdf27f834e7d24a8c7", "score": "0.60986644", "text": "public byte[] getData() {\n return data;\n }", "title": "" }, { "docid": "c90af6a6f5fda2bdf27f834e7d24a8c7", "score": "0.60986644", "text": "public byte[] getData() {\n return data;\n }", "title": "" }, { "docid": "c90af6a6f5fda2bdf27f834e7d24a8c7", "score": "0.60986644", "text": "public byte[] getData() {\n return data;\n }", "title": "" }, { "docid": "43cf7315f3b2c914f342569e209f325a", "score": "0.60848755", "text": "public InputStream getBinaryData() {\r\n\r\n\treturn null;\r\n }", "title": "" }, { "docid": "a18f25ee85157ceaa1db0b8220a959a1", "score": "0.60753995", "text": "public Integer getImage() {\n return image;\n }", "title": "" }, { "docid": "f3fbd3c95f6e902744becc9fb4596b55", "score": "0.6069525", "text": "public byte[] getBytesJPEG()\n {\n return SGViewUtils.createImage(getPage(0), Color.WHITE).getBytesJPEG();\n }", "title": "" }, { "docid": "35f09545ade537e8c8013fa92b7c7eda", "score": "0.60416335", "text": "public byte[] getBytes()\n {\n return getBytes(true);\n }", "title": "" }, { "docid": "5d8ecfefa1d29a2de1a1d48505200ac5", "score": "0.60323775", "text": "@Transient //Annotation so it does not persist in the database\n\tpublic String getBase64() {\n //Convert the data type byte to String, store it in the variable and return it\n\t\treturn this.base64 = Base64.encodeBase64String(this.photo); \n\t}", "title": "" }, { "docid": "f5c6933df1a0b78bd84f2242f142e9e8", "score": "0.60231704", "text": "public static byte[] getImageInBytes(String imageID)\n {\n return getResources().getImageInBytes(imageID);\n }", "title": "" }, { "docid": "a887585b2512392107193d4a7eacd57f", "score": "0.60153687", "text": "public byte[] getRawBuffer() {\n return buf;\n }", "title": "" }, { "docid": "8b507a98e1e1d81d30967b2c87ec4e1e", "score": "0.6005608", "text": "public byte[] getPixels() {\n\t\treturn new byte[0];\n\t}", "title": "" }, { "docid": "b58a80b0d67c537b80d535b01032ea95", "score": "0.6005058", "text": "public byte[] getBytes() {\n return getBytes(null);\n }", "title": "" }, { "docid": "5731508f7f3d2d1a747fbe908e289dc3", "score": "0.5994747", "text": "public byte[] getBytes() {\n\t\treturn m_dataBytes;\n\t}", "title": "" }, { "docid": "11380ed6dcdd540c36576c373f85d349", "score": "0.5991906", "text": "@Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n long imagename = System.currentTimeMillis();\n byte[] pic = InfoReceipt.getBitmapAsByteArray(item.getImage());\n params.put(\"fileField\", new DataPart(imagename + \".png\", pic));\n return params;\n }", "title": "" }, { "docid": "99cf7e86a4a1dc667ca3afdfa7647360", "score": "0.5976614", "text": "public byte[] getData() {\n\t\treturn data;\n\t}", "title": "" }, { "docid": "f784164959094e70b756b1b5f3a2c913", "score": "0.59720045", "text": "public byte[] getData() {\r\n\t\t\r\n\t\treturn data;\r\n\t}", "title": "" }, { "docid": "52aedf16111d1dbb7cc9d72d29a0462d", "score": "0.5951537", "text": "public RawImage getScreenshot() throws IOException {\n return mDevice.getScreenshot();\n }", "title": "" }, { "docid": "b1bb27b0d54fd721af2019e8f00e1f5e", "score": "0.59501165", "text": "@Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n long imagename = System.currentTimeMillis();\n params.put(\"image\", new DataPart(imagename + \".png\", getFileDataFromDrawable(bitmap)));\n\n return params;\n }", "title": "" }, { "docid": "acd20e5dd0bf9d9eb6791d8fbe2a8b7d", "score": "0.59456736", "text": "@Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n long imagename = System.currentTimeMillis();\n params.put(\"image\", new DataPart(imagename + \".png\", getFileDataFromDrawable(bitmap)));\n return params;\n }", "title": "" }, { "docid": "914c0f894d7e24a8145cb7a3794e9594", "score": "0.59418684", "text": "public BitmapData getBitmapData()\n\t{\n\t\treturn _bitmapData;\n\t}", "title": "" }, { "docid": "3b5fdb966db17978255b0b4db9048323", "score": "0.5936935", "text": "byte[][] getData();", "title": "" }, { "docid": "c65134b9226611efe48935fd97851b4a", "score": "0.59259266", "text": "public byte[] getData() {\n return pachData;\n }", "title": "" }, { "docid": "4513818c1063f2300bb0af6c93046cd7", "score": "0.592343", "text": "private int[][] getRawBytes(String imageFilePath) {\n File imageFile = new File(imageFilePath);\n int imageFileSize = (int) imageFile.length();\n imageFileSize /= 3;\n int[][] imageBytes = new int[(int) Math.sqrt(imageFileSize)][(int) Math.sqrt(imageFileSize)];\n byte[] mirerBytes = new byte[imageFileSize];\n try {\n BufferedInputStream buf = new BufferedInputStream(new FileInputStream(imageFile));\n buf.read(mirerBytes, 0, mirerBytes.length);\n buf.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int i = 0;\n for (int x = 0; x < (int) Math.sqrt(imageFileSize); x++) {\n for (int y = 0; y < (int) Math.sqrt(imageFileSize); y++) {\n imageBytes[x][y] = 0xFF & (int) mirerBytes[i++];\n }\n }\n\n return imageBytes;\n }", "title": "" }, { "docid": "e3102567af8fd0d8ff75f3c62fca4e68", "score": "0.59177685", "text": "public byte[] getDecodedStream() {\n if (mStream!= null) {\n String image = this.parseBase64();\n Logs.i(\"This is the image we try to decode :\" + image);\n return Base64.decode(this.parseBase64(), Base64.DEFAULT);\n } else\n return null;\n }", "title": "" }, { "docid": "4b58ddd787f309b2a78b8847338020a3", "score": "0.5898858", "text": "public byte[] getData() {\n\t\t\treturn data;\n\t\t}", "title": "" }, { "docid": "c94c7036a616fa272a8159e964f8c419", "score": "0.5883423", "text": "public String getImage()\n\t{\n\t\treturn image;\n\t}", "title": "" }, { "docid": "a215c519b6c3b4569b77045a07327421", "score": "0.5854917", "text": "protected byte[] getData()\n {\n if (!m_isDataLoaded)\n {\n try\n {\n byte[] data = (byte[])m_locator.getData();\n setData(data);\n }\n catch (Exception e)\n {\n throw new RuntimeException(\n \"Failed to load binary data from the server: \" + \n e.getLocalizedMessage());\n } \n } \n \n return m_data;\n }", "title": "" }, { "docid": "b61663cedfba18d4cb388398c24f47fa", "score": "0.5853387", "text": "@Override\r\n\tpublic BufferedImage getImage() {\n\t\treturn imgLdr.getImage(image, 0);\r\n\t}", "title": "" }, { "docid": "4cf026149065c481ba59436d220ef990", "score": "0.58467484", "text": "public BufferedImage getImage() {\n\t\treturn this.image.getImage();\n\t}", "title": "" }, { "docid": "43940b52f2166117062a1f8bb493cd84", "score": "0.58415955", "text": "private byte[] codificarImagen() {\n Bitmap bm = ((BitmapDrawable)ivFoto.getDrawable()).getBitmap();\n int longitud = bm.getRowBytes() * bm.getHeight();\n ByteBuffer byteBuffer = ByteBuffer.allocate(longitud);\n bm.copyPixelsToBuffer(byteBuffer);\n byte[] byteArray = byteBuffer.array();\n return byteArray;\n }", "title": "" }, { "docid": "a93fc2c399bcce7660742de57841848f", "score": "0.5837625", "text": "public byte[] getBytesPNG()\n {\n return SGViewUtils.createImage(getPage(0), null).getBytesPNG();\n }", "title": "" }, { "docid": "b3f1fb527eb469ae131b6eb80bef306e", "score": "0.5797193", "text": "public byte[] getBytes() {\n return atr.clone();\n }", "title": "" }, { "docid": "1841386525a4827e6c699a097f7ff6c2", "score": "0.57962483", "text": "public final byte[] getData() {\n return output.toByteArray();\n }", "title": "" }, { "docid": "036a8d300e70b402f0bf17e54179758c", "score": "0.57946306", "text": "@Override\n public void onGetRawData(byte[] rawData, int width, int height) {\n Log.i(TAG, \"Enter onGetRawData width:\"+width+\" height:\"+height);\n try {\n Bitmap FingerPrintBmp = BitmapFactory.decodeByteArray(rawData, 0, rawData.length);\n if (FingerPrintBmp != null) { \n mFingerPrintBmp.setImageBitmap(FingerPrintBmp);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n }", "title": "" }, { "docid": "46de7475a8c8531b3d518acf9847d15b", "score": "0.5789795", "text": "public byte[] getContent() {\n return (byte[]) get(1);\n }", "title": "" }, { "docid": "80256973a606e8d22c02695ad55350ab", "score": "0.5789723", "text": "@Override\n\tpublic byte[] GetLastImage() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "630b072733c4745ec960a10b1711e474", "score": "0.5778498", "text": "public int getBytes() { return theBytes; }", "title": "" }, { "docid": "287d3ee6eeb98f1a6ad8c10e202964df", "score": "0.57783586", "text": "private byte[] getPhoto(String path) {\n Path imagePath = Paths.get(path);\n try {\n return Files.readAllBytes(imagePath);\n } catch (Exception e) {\n return null;\n }\n\n }", "title": "" }, { "docid": "72705e117872ff43c9338047956a659e", "score": "0.57781255", "text": "public Image getImage() {\n return this.state.getImage();\n }", "title": "" }, { "docid": "32c29925d2fa2c6b1ccf3239560ab81a", "score": "0.5773087", "text": "public String getImage() {\n return image;\n }", "title": "" }, { "docid": "32c29925d2fa2c6b1ccf3239560ab81a", "score": "0.5773087", "text": "public String getImage() {\n return image;\n }", "title": "" }, { "docid": "32c29925d2fa2c6b1ccf3239560ab81a", "score": "0.5773087", "text": "public String getImage() {\n return image;\n }", "title": "" }, { "docid": "32c29925d2fa2c6b1ccf3239560ab81a", "score": "0.5773087", "text": "public String getImage() {\n return image;\n }", "title": "" }, { "docid": "c970bac3f1a69e20481c5c17d5b39e14", "score": "0.57698894", "text": "byte[] getByteArray();", "title": "" }, { "docid": "7a11e531f9880637441df698aeff42bb", "score": "0.5753473", "text": "public String getImage() {\n return image_;\n }", "title": "" }, { "docid": "863510d4b84949382ef5d81c1a9fef5f", "score": "0.57509935", "text": "public byte[] getBytesInternal() {\n return asBytes();\n }", "title": "" }, { "docid": "111dc23d280b8c36b0cbbb9acc9bc23c", "score": "0.57484955", "text": "public String getImage() {\n\t\treturn image;\n\t}", "title": "" }, { "docid": "111dc23d280b8c36b0cbbb9acc9bc23c", "score": "0.57484955", "text": "public String getImage() {\n\t\treturn image;\n\t}", "title": "" }, { "docid": "d0762c5b0706588654a664d896f9be5e", "score": "0.5748042", "text": "public byte[] getBytes() {\n return bytes;\n }", "title": "" }, { "docid": "18e9e2dc6d37338532176950ea6a70df", "score": "0.5744991", "text": "@Override\r\n public byte[] getContent() {\r\n return getData();\r\n }", "title": "" }, { "docid": "eebd14fc54df6a7fbc06fd4890501a0f", "score": "0.57444835", "text": "public int getImage() {\n return Image;\n }", "title": "" }, { "docid": "49e579956feb6def003d116ef99350a3", "score": "0.57435685", "text": "@Override\n\tpublic byte[] getPictureData(Album album, Picture picture) {\n\t\t// TODO: obtain remote information\n\t\treturn null;\n\t}", "title": "" }, { "docid": "73504e28a65564eb3963a1fb440e386f", "score": "0.5742393", "text": "public Image getImage()\n\t{\n\t\treturn image;\n\t}", "title": "" }, { "docid": "a51b2f9e3a628b67cb6cadda425fd05d", "score": "0.5732885", "text": "public Content getImage() {\n return this.image;\n }", "title": "" }, { "docid": "6a037758e89544faa550480d8baf2018", "score": "0.57296574", "text": "public byte[] getReadableBytes() {\n if(curLength()<=0)\n return null;\n byte[] readableBytes=Arrays.copyOf(bytes,curLength());\n return readableBytes;\n }", "title": "" }, { "docid": "62a05ff8ff6c90336beaf7618a5e0993", "score": "0.5729094", "text": "public InputStream getBlobStream() {\r\n return new ByteArrayInputStream(getData());\r\n }", "title": "" }, { "docid": "72b4cbed90a6bad22ca12104cafb0e30", "score": "0.57226664", "text": "public long getBitmapBase() {\r\n return bitmapBase.getAsLong();\r\n }", "title": "" }, { "docid": "29eb39930a96e471903bdce23270529b", "score": "0.5721291", "text": "byte[] getBytes() throws IOException;", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "805419ab4d9919d90bb89c19b352298e", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tQueueArray obj1 = new QueueArray(10);\n\t\tobj1.enQueue(0);\n\t\tobj1.enQueue(1);\n\t\tobj1.enQueue(2);\n\t\tobj1.enQueue(3);\n\t\tobj1.enQueue(4);\n\t\tobj1.enQueue(5);\n\t\tobj1.enQueue(6);\n\t\tobj1.enQueue(7);\n\t\tobj1.enQueue(8);\n\t\tobj1.enQueue(9);\n\t\tobj1.enQueue(10);\n\t\twhile (!obj1.isEmpty()) {\n\t\t\tSystem.out.println(\"Element from Queue is\" + \" \" + obj1.deQueue());\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.69474965", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6676429", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "ffd8193c9cf73515d0f9301b9a7d8817", "score": "0.6485175", "text": "@Override\n\tpublic void morrer() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.622455", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0d3bf6f2ee77f787007ba6b4021b5721", "score": "0.6164056", "text": "protected void olha()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e3a701d0fdb1fef5e0afd9dc7c345fcb", "score": "0.61634105", "text": "@Override\n\tprotected void generateData() {\n\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4e49f5db36ca664153e54380025b85d4", "score": "0.6095768", "text": "protected boolean method_21825() {\n }", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6074471", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "a613dcce17453a8e1eed3b984b6b35b1", "score": "0.6028443", "text": "@Override\n\tpublic void composant() {\n\t}", "title": "" }, { "docid": "6f653341cfc7d30c8418e4b72116f7e2", "score": "0.60278815", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.6027122", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "f2fe8a59406298fe7e97b543f2bf8186", "score": "0.60087883", "text": "@Override\r\n \tpublic void init() {\r\n \t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5988416", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "0ecc2b05fa1b3fe069983a07eba7914d", "score": "0.5978686", "text": "private void inicialitzarTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "9fe3f6ccb967a8bcee9106fbbd56b684", "score": "0.5974211", "text": "@Override\r\n\tpublic void properties() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.59513867", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "fcfbf321ff3e4c56b4e383ce15e49dbb", "score": "0.59429646", "text": "@Override\r\n\tpublic void obtersaida()\r\n\t{\n\t}", "title": "" }, { "docid": "482b1825ec60700f97ed42e420d69d99", "score": "0.59383935", "text": "@Override\n\tpublic void valide() {\n\t}", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.59383595", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "4b7e3f693781babf82ed11447db2a554", "score": "0.5929242", "text": "@Override\n\tpublic void concentrarse() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "41e50fb9a0b417818374927eb02c67f1", "score": "0.59280443", "text": "protected void mo5608a() {\n }", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9a0f5a503f38cb7c40d13ecc89073bd8", "score": "0.58973867", "text": "@Override\r\n\tpublic void getDuriation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "32d0d506f2de2532fe4789f006c84da0", "score": "0.5863205", "text": "@Override\n\tpublic void bicar() {\n\t\t\n\t}", "title": "" }, { "docid": "02699a98134693036160a045239bddba", "score": "0.58500654", "text": "@Override\r\n\tpublic void zwroc() {\n\r\n\t}", "title": "" }, { "docid": "46569800c9d73cd59bcbec066cdb5304", "score": "0.58491904", "text": "private void lidoInf() {\n\n\n }", "title": "" }, { "docid": "b8d886581a76c72e11ab317e6cb6e2a8", "score": "0.58308905", "text": "@Override\r\n public void rechercher() {\n }", "title": "" }, { "docid": "80b5722cdc9efe11a305e92ea813ac0f", "score": "0.5827698", "text": "@Override\r\n\tpublic void inter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "947b4ee184fe32ab14b8c244b9461c7d", "score": "0.5807026", "text": "@Override\n\tpublic void vida() {\n\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58069414", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c86f446a8bd6af19f88cc011fdf2ffd4", "score": "0.5802792", "text": "public void asustar() {\n // TODO implement here\n \n }", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "c8f75a8f93bc20d4e8695ba99b470e1d", "score": "0.580217", "text": "public void mo1684e() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "19b30f4f881d8f7b600c7c12f1c30963", "score": "0.57979786", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bb30a482e2236eb664f8d8fc23724b59", "score": "0.57915", "text": "@Override\n\tprotected void initActb() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "0cc40600dd2e7cb9f56bd77995e01fc3", "score": "0.5780891", "text": "@Override\n\tpublic void Miow() {\n\t\t\n\t}", "title": "" }, { "docid": "a5600ed00582d8ca8d293829dcfd6c38", "score": "0.57797045", "text": "private void Syso() {\n\r\n\t}", "title": "" }, { "docid": "0a14b2c4ac9647e6bc7077e1e653d540", "score": "0.57781726", "text": "@Override\n \tprotected int getSize() {\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "7d110d5ea1b4795727b052c3f897a146", "score": "0.5776224", "text": "public void ligar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e022c47f335a39c6bdb94a0f49a4e940", "score": "0.5767807", "text": "@Override\r\n\tpublic void parar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "900d30c04323cde584c73c5ffa48d9cf", "score": "0.5757801", "text": "@Override\n\t\tpublic void visitEnd() {\n\n\t\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "0adb5f1f1c75684eab047201533dcfe7", "score": "0.57495934", "text": "protected void mo5609b() {\n }", "title": "" }, { "docid": "c16c8d1ea4a8c8572e4aa91460503742", "score": "0.57494617", "text": "private void Initalization() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5732932", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4da4d5cf96c032296a894fc6e8d76283", "score": "0.5718805", "text": "@Override\n\tpublic void beCagey() {\n\t\t\n\t}", "title": "" }, { "docid": "a8f4d3149e0f7a43b23b53ce69363fd6", "score": "0.57184815", "text": "public void mo5202b() {\n }", "title": "" }, { "docid": "c2a6308317d4e5fc230ea7d2fb55fc1b", "score": "0.5715011", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" } ]
eb92c94d4c6d36179c4d015d8b06a30a
Attach a span to an expanded statement.
[ { "docid": "5cbe6465d1d2e7b232dde89dd1e13de6", "score": "0.639319", "text": "public ExpandedStatement trace(final Tracer tracer, final Span span) {\n return new ExpandedStatement(this.sql, this.parameters, tracer, span);\n }", "title": "" } ]
[ { "docid": "66acaf0a042fb13f525672a139f6d3c1", "score": "0.57213026", "text": "@WithSpan\n public void method1() {}", "title": "" }, { "docid": "77017967ef9840f34f2ae14671b4ed22", "score": "0.5257191", "text": "@WithSpan(\"shinyName\")\n public void method2() {}", "title": "" }, { "docid": "34e54bcbedfe2be0d50c9e424abb6e44", "score": "0.51813036", "text": "void enlist(Statement statement);", "title": "" }, { "docid": "933bf31f488278ad9dcd6ca7a6f8c100", "score": "0.5164883", "text": "<K, V> void buildAndInjectSpan(ProducerRecord<K, V> record) {\n Context currentContext = Context.current();\n\n if (!producerInstrumenter.shouldStart(currentContext, record)) {\n return;\n }\n\n Context current = producerInstrumenter.start(currentContext, record);\n try (Scope ignored = current.makeCurrent()) {\n try {\n propagator().inject(current, record.headers(), SETTER);\n } catch (Throwable t) {\n // it can happen if headers are read only (when record is sent second time)\n logger.error(\"failed to inject span context. sending record second time?\", t);\n }\n }\n\n producerInstrumenter.end(current, record, null, null);\n }", "title": "" }, { "docid": "6991d309628d06d5417c5520b795e55d", "score": "0.51199955", "text": "public Builder withExpandClause(String expand) {\n this.expandClause = expand;\n return this;\n }", "title": "" }, { "docid": "f7b401f4ef88ee0e7c258ebabe973c30", "score": "0.5082984", "text": "public Span activateSpan(String sectionName, Span parentSpan) {\n Span span = parentSpan;\n if (span == null) {\n span = tracer.activeSpan();\n }\n\n return tracer.buildSpan(String.format(\"%s.%s.%s\", new Throwable().getStackTrace()[1].getClassName(), new Throwable().getStackTrace()[1].getMethodName(), sectionName)).asChildOf(span).start();\n }", "title": "" }, { "docid": "bc1c31c5d32c26e662327618a9091d5c", "score": "0.4959177", "text": "private SyntaxTree statementAttribution(){\n\t\t\n\t\tSyntaxTree node = new SyntaxTree( SyntaxType.Tree.STATEMENT, SyntaxType.StatementKind.ATTRIBUTION, this.currentToken );\n\t\t\n\t\tthis.match( TokenType.Element.IDENTIFIER );\t\t\n\t\tthis.match( TokenType.Element.ATTRIBUTION );\n\t\tnode.appendChild( this.expression() );\n\t\t\n\t\treturn node;\n\t}", "title": "" }, { "docid": "8734d71d9f7648c263bcfa950d1e49d5", "score": "0.4942621", "text": "public void addStatement(SQLPart newSql);", "title": "" }, { "docid": "19fcbf6cb3e4f597f19b7a581c421170", "score": "0.49175116", "text": "public MatchElementNavigation span()\n\t{\n\t\treturn new MatchElementNavigation(this, \"span\");\n\t}", "title": "" }, { "docid": "8f40a96bf090a03a0364c0ace460a288", "score": "0.49081767", "text": "void addInlineElementAndWrapToNextTextLineIfNecessary(StackElement<ELEMENT> container, StackElement<ELEMENT> sub, int widthPx, int heightPx);", "title": "" }, { "docid": "a0def25ac2b73febc29fd46538b1d420", "score": "0.48238748", "text": "public void define(Addendum addendum);", "title": "" }, { "docid": "4a1d26a24c64fcbb6c3a7c43c2ac3977", "score": "0.4762184", "text": "@Override\n public AbstractStatement inline(String functionName, String newText) {\n return new SetStatement(variable, (variableArgument.inline(functionName, newText)), context);\n }", "title": "" }, { "docid": "a1a5c786fed7551550ea30f704f7d470", "score": "0.4724809", "text": "@Test\n\tpublic void spanTest() throws JWNLException\n\t{\n\t\tString samplesentence = \"The ground is covered with grass, the sky is blue. \\n\"\n\t\t\t\t+ \"In the background on the left hand side there is a PalmTree. \\n\"\n\t\t\t\t+ \"In the foreground on the left hand side there is a closed Mailbox facing southeast. \\n\"\n\t\t\t\t+ \"Right to the mailbox there is a Frog facing east. \\n\"\n\t\t\t\t+ \"In front of the Bunny there is a Broccoli. \\n\"\n\t\t\t\t+ \"In the foreground on the right hand side there is a Bunny facing southwest. \\n\"\n\t\t\t\t+ \"The Bunny turns to face the Broccoli. \\n\"\n\t\t\t\t+ \"The Bunny hops three times to the Broccoli. \\n\"\n\t\t\t\t+ \"The Bunny eats the Broccoli. \\n\"\n\t\t\t\t+ \"The Bunny turns to face the Frog. \\n\"\n\t\t\t\t+ \"The Bunny taps his foot twice. \\n\"\n\t\t\t\t+ \"The Frog ribbits. The Frog turns to face northeast. \\n\"\n\t\t\t\t+ \"The frog hops three times to northeast. \\n\"\n\t\t\t\t+ \"The Bunny turns to face the Mailbox. \\n\"\n\t\t\t\t+ \"The Bunny hops three times to the Mailbox. \\n\"\n\t\t\t\t+ \"The Bunny opens the Mailbox. \\n\"\n\t\t\t\t+ \"The Bunny looks in the Mailbox and at the same time the Frog turns to face the Bunny. \\n\"\n\t\t\t\t+ \"The Frog hops two times to the Bunny. \\n\"\n\t\t\t\t+ \"The Frog disappears. A short time passes.\";\n\t\t\n\t\tAnnotation annotation = annotate(samplesentence);\n\n\t\tAliasByCorefRule aliasRule = new AliasByCorefRule();\t\t\n\t\tassertTrue(\"Nothing recognised\", aliasRule.apply(annotation)); // runs rule\t\t\t\t\n\t\t\n\t\tDiscourseModel state = annotation.get(IvanAnnotations.IvanEntitiesAnnotation.class);\n\t\tfor (EntityInfo entityInfo : state) {\n\t\t\tassertNotNull(\"span is missing\", entityInfo.getEntitySpan());\n\t\t}\n\t}", "title": "" }, { "docid": "bf016989b95fe62f2a88680b94df0380", "score": "0.47051784", "text": "ContextDefinition expand(Annotation[] definition);", "title": "" }, { "docid": "fd5bfe763f8ef1549615612586b1f65b", "score": "0.46899664", "text": "public Stmt //##56\nreplaceThisStmtWith( Stmt pStmt );", "title": "" }, { "docid": "ef73c75a1bb647694780b0547da51256", "score": "0.46865433", "text": "@Override\n\tpublic boolean isSpanAction() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "be9cae4c47865ee4f1d3898c55da3568", "score": "0.4681577", "text": "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/Analysis/CFG.cpp\", line = 595,\n FQN=\"(anonymous namespace)::CFGBuilder::appendStmt\", NM=\"_ZN12_GLOBAL__N_110CFGBuilder10appendStmtEPN5clang8CFGBlockEPKNS1_4StmtE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.analysis/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/Analysis/CFG.cpp -nm=_ZN12_GLOBAL__N_110CFGBuilder10appendStmtEPN5clang8CFGBlockEPKNS1_4StmtE\")\n //</editor-fold>\n private void appendStmt(CFGBlock /*P*/ B, /*const*/ Stmt /*P*/ S) {\n if (alwaysAdd(S) && (cachedEntry != null)) {\n cachedEntry.second = B;\n }\n \n // All block-level expressions should have already been IgnoreParens()ed.\n assert (!isa_Expr(S) || cast_Expr(S).IgnoreParens$Const() == S);\n B.appendStmt(((/*const_cast*/Stmt /*P*/ )(S)), cfg.$arrow().getBumpVectorContext());\n }", "title": "" }, { "docid": "3468da8f5b6fd166ff2a74b0fe03d01a", "score": "0.46692264", "text": "public void addStatement( StatementNode state) {\n this.statements.add( state);\n }", "title": "" }, { "docid": "51f35e01617bfab86ef05a5a863e1c42", "score": "0.4659221", "text": "protected Command expand( Command command ) {\r\n\t\tif( !context.isScriptExpansion() ) {\r\n\t\t\treturn command;\r\n\t\t}\r\n\r\n//\t\tif( !command.getCommand().contains( \"${\" ) ) {\r\n//\t\t\treturn command;\r\n//\t\t}\r\n\r\n\t\tExpression expression = ScriptParser.parseString( command.getCommand(), command.getLocation() );\r\n\t\tObject object = Script.eval( expression, context.getScope() );\r\n\t\treturn command.withCommand( object.toString() );\r\n\r\n//\t\tTemplate template = new TemplateCompiler( null ).compile( new StringResource( \"<%@ template version=\\\"1.0\\\" language=\\\"javascript\\\" %>\" + command.getCommand() ), null );\r\n//\t\tString result = template.apply( this.context.getScope() );\r\n//\t\tcommand.setCommand( result );\r\n\t}", "title": "" }, { "docid": "34ac44a8e8612ca7d86b3533766542f7", "score": "0.46480155", "text": "public void setSpan(int newSpan)\r\n\t{\r\n\t\tspan = span - 1;\r\n\t\tif (span == 0)\r\n\t\t{\r\n\t\t\tsetSelected(true);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9fcd4dc00e92a669ee20d03d980283ff", "score": "0.4647768", "text": "public String expandClause() {\n return expandClause;\n }", "title": "" }, { "docid": "71fb6f241cbe7763c38a31c4a1e3cb8a", "score": "0.46430102", "text": "public void increaseScope() {\n ArrayList<String> newBlock = new ArrayList<String>();\n table.add(newBlock);\n }", "title": "" }, { "docid": "d5a47f135407caa5f8a0727354102f09", "score": "0.46324563", "text": "@Override\n\tpublic UCTNode expand() {\n\t\tArrayList<Integer> spaces = getUnexpanded();\n\t\treturn createChild(MCTSTools.indexToAction(spaces.get(rand.nextInt(spaces.size()))));\n\t}", "title": "" }, { "docid": "525e3708c56f8d13bd643ae11382453c", "score": "0.46311522", "text": "@Override\n public void writeSpan(TraceSpanData span) {\n span.end();\n batch.add(span);\n checkWriteBatch();\n }", "title": "" }, { "docid": "9495028097143c92324907bc4b01ed83", "score": "0.46152526", "text": "LabeledStmt // (##5)\nattachLabel( Label pLabel );", "title": "" }, { "docid": "97c9955b4cb0f6dc9ef601519fa5eaf1", "score": "0.45935223", "text": "private String expand(String value) {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(start);\n\t\tsb.append(value);\n\t\tsb.append(end);\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "e65deae079608051482e502b3743b532", "score": "0.45801333", "text": "@Override public Scope decorateScope(@Nullable TraceContext currentSpan, Scope scope) {\n return new StrictScope(scope, new Error(String.format(\"Thread %s opened scope for %s here:\",\n Thread.currentThread().getName(), currentSpan)));\n }", "title": "" }, { "docid": "df97c27ce88579ca860706abb9bb6c25", "score": "0.45740303", "text": "private static TokenStream expandTokenStream(TokenStream orig, APTMacroCallback callback) {\n return new APTExpandedStream(orig, callback, true);\n }", "title": "" }, { "docid": "591bf8c6cb9ee183bb1ccbd9318cd177", "score": "0.4558379", "text": "public Statement(Node statement){\n containedStatement = statement;\n }", "title": "" }, { "docid": "f707f1fc3f373aea6d5876e1e402a228", "score": "0.4556694", "text": "public static Span newSpan(String color, String begin, String end,\r\n\t\t\tboolean atLineStart, boolean excludeMatch, boolean noLineBreak,\r\n\t\t\tboolean noWordBreak, boolean ignoreCase, String delegate, String escape) {\r\n\r\n\t\tSpan span = new Span();\r\n\t\tspan.type = delegate == null ? noLineBreak ? SINGLE_S : MULTI_S\t: DELEGATE_S;\r\n\t\t\r\n\t\tspan.color = color;\r\n\t\tspan.begin = begin;\r\n\t\tspan.end = end;\r\n\t\t\r\n\t\tspan.excludeMatch = excludeMatch;\r\n\t\tspan.atLineStart = atLineStart;\r\n\t\tspan.noLineBreak = noLineBreak;\r\n\t\tspan.noWordBreak = noWordBreak;\r\n\t\tspan.delegateName = delegate;\r\n\t\tspan.escape = escape;\r\n\t\tspan.setIgnoreCase(ignoreCase);\r\n\t\treturn span;\r\n\t}", "title": "" }, { "docid": "1ed7fa8d03246403ba20ada38ab563f7", "score": "0.4556019", "text": "public void setExpanded(boolean aExpanded) {\n expanded = aExpanded;\n }", "title": "" }, { "docid": "e549f4f1eb532e3bef9d0987206b69fc", "score": "0.45345935", "text": "public SpanTraceContext(final SpanContext span) {\n this.span = span;\n }", "title": "" }, { "docid": "bb744de4c207c61dcccf60f6649fd6d5", "score": "0.45287317", "text": "public Details getDetails(Span foundSpan);", "title": "" }, { "docid": "00afcb19b7b1367cbab61cfef1e2685a", "score": "0.44811493", "text": "private Span(Span prototype) {\r\n\t\tsuper(prototype.getId(), prototype, prototype.getPage());\r\n\t}", "title": "" }, { "docid": "4e65a77f61dc5b8a034b26190344c97d", "score": "0.44754618", "text": "void insert(int offset, Expression expression);", "title": "" }, { "docid": "6b58391c0ca0a792c4587bd84e9aab28", "score": "0.44574893", "text": "@Override\n public AbstractStatement inline(String functionName, String newText) {\n return new CallStatement(functionName, (Argument)callArgument.inline(functionName, newText), context);\n }", "title": "" }, { "docid": "44497cb265bef35583bd1754f9084933", "score": "0.44551122", "text": "public static Scope startServerSpan(Tracer tracer, javax.ws.rs.core.HttpHeaders httpHeaders, String operationName) {\n MultivaluedMap<String, String> rawHeaders = httpHeaders.getRequestHeaders();\n final HashMap<String, String> headers = new HashMap<>();\n for (String key : rawHeaders.keySet()) {\n headers.put(key, rawHeaders.get(key).get(0));\n }\n\n Tracer.SpanBuilder spanBuilder;\n try {\n SpanContext parentSpanCtx = tracer.extract(Format.Builtin.HTTP_HEADERS, new TextMapExtractAdapter(headers));\n if (parentSpanCtx == null) {\n spanBuilder = tracer.buildSpan(operationName);\n } else {\n spanBuilder = tracer.buildSpan(operationName).asChildOf(parentSpanCtx);\n }\n } catch (IllegalArgumentException e) {\n spanBuilder = tracer.buildSpan(operationName);\n }\n return appendCustomTags(spanBuilder.withTag(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_SERVER)).\n startActive(true);\n }", "title": "" }, { "docid": "186bdcda582ec371b41a15483afa6c79", "score": "0.44422108", "text": "@SuppressWarnings(\"unchecked\")\npublic int addSpans(Tree parseTree, int startTokenIndx, Object[] sentToks, AnnotationSet parsesSet, Annotation parent)\n{\n // System.err.println(\"Adding \"+parseTree+\" - \"+startTokenIndx);\n List yield = parseTree.yield();\n int len = yield.size();// sentToks.length;\n Map<String, String> attrs = new TreeMap<String, String>();\n attrs.put(\"parent\", Integer.toString(parent.getId()));\n int cur = parsesSet.add(((Annotation) sentToks[startTokenIndx]).getStartOffset(), ((Annotation) sentToks[len\n + startTokenIndx - 1]).getEndOffset(), parseTree.value(), attrs);\n Annotation curAn = parsesSet.get(cur);\n addChild(parent, curAn);\n int offset = startTokenIndx;\n for (Tree tr : parseTree.children()) {\n offset += addSpans(tr, offset, sentToks, parsesSet, curAn);\n }\n return len;\n}", "title": "" }, { "docid": "2f7c287aad28261dc76db28a70ab2232", "score": "0.443985", "text": "public void setExpanded(boolean expanded)\n {\n this.expanded = expanded;\n }", "title": "" }, { "docid": "98ad032eefedad230835f91f94ded095", "score": "0.44377914", "text": "public static TraceScope continueSpan(Span s) {\n // Return an empty TraceScope that does nothing on close\n if (s == null) return NullScope.INSTANCE;\n return Tracer.getInstance().continueSpan(s);\n }", "title": "" }, { "docid": "b4ceb23aab9e15abc833631b07cd7d80", "score": "0.44363862", "text": "void addSeeAlso(WrappedIndividual newSeeAlso);", "title": "" }, { "docid": "be04317e4f1cf5c11e72bd026f852d49", "score": "0.44341397", "text": "AgentSpan getSpan();", "title": "" }, { "docid": "aa45fec006ffe43156a49000c3848f62", "score": "0.4432997", "text": "public static TraceScope startSpan(String description) {\n return startSpan(description, NeverSampler.INSTANCE);\n }", "title": "" }, { "docid": "56ecd44d7b5b63d82282be17d6b1abe9", "score": "0.442814", "text": "public ExpandedStatement expand(final Consumer<Map<String, Object>> mapBuilder) {\n final Map<String, Object> map = new HashMap<>();\n mapBuilder.accept(map);\n return expand(map);\n }", "title": "" }, { "docid": "e3b8254e6a817bcb21f2aca4195cd710", "score": "0.44186985", "text": "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/Analysis/CFG.cpp\", line = 3059,\n FQN=\"(anonymous namespace)::CFGBuilder::VisitStmtExpr\", NM=\"_ZN12_GLOBAL__N_110CFGBuilder13VisitStmtExprEPN5clang8StmtExprENS_13AddStmtChoiceE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.analysis/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/Analysis/CFG.cpp -nm=_ZN12_GLOBAL__N_110CFGBuilder13VisitStmtExprEPN5clang8StmtExprENS_13AddStmtChoiceE\")\n //</editor-fold>\n private CFGBlock /*P*/ VisitStmtExpr(StmtExpr /*P*/ SE, AddStmtChoice asc) {\n if (asc.alwaysAdd(/*Deref*/this, SE)) {\n autoCreateBlock();\n appendStmt(Block, SE);\n }\n return VisitCompoundStmt(SE.getSubStmt());\n }", "title": "" }, { "docid": "55faf4247bce5cc996d542ad679bf5b6", "score": "0.4417744", "text": "private SpannableStringBuilder addClickablePartTextViewResizable2(\n final CharSequence subsetCharSeq\n ,final TextView target\n ,final int maxQLines\n ,final String spanableText\n ,final boolean viewMore\n ,final String strViewMore\n ,final String strViewLess) {\n String subseqStr = subsetCharSeq.toString();\n /**\n *\n * */\n SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(subsetCharSeq);\n /**\n * Indice de onde começa a string 'Ver mais' no texto reduzido\n * */\n int start = subseqStr.indexOf(spanableText);\n // Tamanho do texto que se quer que apareca para que o usuario clique e mostre mais do texto reduzido\n // exemplo 'Veja mais ...'\n int len = spanableText.length();\n // O texto reduzido contem a substring 'Str' Exemplo 'Ver mais...'\n if(subseqStr.contains(spanableText)) {\n /**\n * class {@link ClickableSpan}\n *\n * Segundo a documentacao, se um objeto do tipo {@link ClickableSpan}\n * for atrelado a uma substring de uma string num TextView, junto\n * a uma implementacao de MovementMethod como {@link LinkMovementMethod}\n * essa substring podera ser 'selecionavel' quando exibida numa view da tela\n * do usuario. Se esse texto for clicado, o metodo onClick sera executado\n * */\n spannableStringBuilder.setSpan(new ClickableSpan() {\n @Override\n public void onClick(View widget) {\n target.setLayoutParams(target.getLayoutParams());\n String text = target.getTag().toString();\n target.setText(text, TextView.BufferType.SPANNABLE);\n target.invalidate();\n /**\n * A aplicacao comeca com a opcao de 'ver mais' ativada (TRUE, se o usuario\n * clicar na opcao 'ver mais', mostramos o texto completo e trocamos o valor\n * para 'ver menos' e a variavel boolean de TRUE para FALSE\n *\n * */\n if(viewMore) {\n test(target, -1, strViewLess, false, strViewMore, strViewLess);\n }\n else {\n test(target, MAX_LINE, strViewMore, true, strViewMore, strViewLess);\n }\n }\n },start , start + len, 0);\n }\n return spannableStringBuilder;\n }", "title": "" }, { "docid": "cf87d2f1a6c1da8651e7a08d90d2ac1a", "score": "0.44136658", "text": "public void insertSpannedTD();", "title": "" }, { "docid": "19420a52aacb22f7cd7c66edc6d3771e", "score": "0.4411504", "text": "public static TraceScope startSpan(String description, Span parent) {\n if (parent == null) {\n return startSpan(description);\n }\n Span currentSpan = currentSpan();\n if ((currentSpan != null) && (currentSpan != parent)) {\n Tracer.clientError(\"HTrace client error: thread \" +\n Thread.currentThread().getName() + \" tried to start a new Span \" +\n \"with parent \" + parent.toString() + \", but there is already a \" +\n \"currentSpan \" + currentSpan);\n }\n return continueSpan(parent.child(description));\n }", "title": "" }, { "docid": "c4a35d97ad4505a305d878a5ea545d98", "score": "0.44094512", "text": "private static boolean expressionCanBeInlined(@NotNull PyStringLiteralExpression host, @NotNull PyExpression target) {\n if (target.textContains('\\\\') || target.textContains('\\n')) return false;\n return adjustQuotesInside((PyExpression)target.copy(), host) != null;\n }", "title": "" }, { "docid": "ec40caef544d4b768a84ea0b1a0788d3", "score": "0.44006154", "text": "void addInlineWrapperElementStart(StackElement<ELEMENT> container, StackElement<ELEMENT> sub);", "title": "" }, { "docid": "9a85052fe2920f21fc54bb0f2b462f8b", "score": "0.43943962", "text": "private SpannableStringBuilder addClickablePartTextViewResizable(\n final CharSequence subsetCharSeq\n ,final TextView target\n ,final int maxQLines\n ,final String spanableText\n ,final boolean viewMore\n ,final String strViewMore\n ,final String strViewLess) {\n String subseqStr = subsetCharSeq.toString();\n /**\n *\n * */\n SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(subsetCharSeq);\n /**\n * Indice de onde começa a string 'Ver mais' no texto reduzido\n * */\n int start = subseqStr.indexOf(spanableText);\n // Tamanho do texto que se quer que apareca para que o usuario clique e mostre mais do texto reduzido\n // exemplo 'Veja mais ...'\n int len = spanableText.length();\n // O texto reduzido contem a substring 'Str' Exemplo 'Ver mais...'\n if(subseqStr.contains(spanableText)) {\n /**\n * class {@link ClickableSpan}\n *\n * Segundo a documentacao, se um objeto do tipo {@link ClickableSpan}\n * for atrelado a uma substring de uma string num TextView, junto\n * a uma implementacao de MovementMethod como {@link LinkMovementMethod}\n * essa substring podera ser 'selecionavel' quando exibida numa view da tela\n * do usuario. Se esse texto for clicado, o metodo onClick sera executado\n * */\n spannableStringBuilder.setSpan(new ClickableSpan() {\n @Override\n public void onClick(View widget) {\n target.setLayoutParams(target.getLayoutParams());\n String text = target.getTag().toString();\n target.setText(text, TextView.BufferType.SPANNABLE);\n target.invalidate();\n /**\n * A aplicacao comeca com a opcao de 'ver mais' ativada (TRUE, se o usuario\n * clicar na opcao 'ver mais', mostramos o texto completo e trocamos o valor\n * para 'ver menos' e a variavel boolean de TRUE para FALSE\n *\n * */\n if(viewMore) {\n makeTextViewResizable(target, -1, strViewLess, false, strViewMore, strViewLess);\n }\n else {\n makeTextViewResizable(target, MAX_LINE, strViewMore, true, strViewMore, strViewLess);\n }\n }\n },start , start + len, 0);\n }\n return spannableStringBuilder;\n }", "title": "" }, { "docid": "c430476fa55c784b524d16e50a188478", "score": "0.43691653", "text": "public void addStatement(String stmt) {\n statements.append(stmt);\n }", "title": "" }, { "docid": "921f7217efd3bfe548aff35e2471744e", "score": "0.4367509", "text": "protected void showStatement() {\r\n SWGHelp.display(SWGAide.class.getResource(\"docs/statement_en.html\"));\r\n }", "title": "" }, { "docid": "e5c5db62d5efdb707c47c4d32eec132a", "score": "0.43545538", "text": "<K, V> Future<RecordMetadata> buildAndInjectSpan(\n ProducerRecord<K, V> record,\n Callback callback,\n BiFunction<ProducerRecord<K, V>, Callback, Future<RecordMetadata>> sendFn) {\n Context parentContext = Context.current();\n if (!producerInstrumenter.shouldStart(parentContext, record)) {\n return sendFn.apply(record, callback);\n }\n\n Context context = producerInstrumenter.start(parentContext, record);\n try (Scope ignored = context.makeCurrent()) {\n propagator().inject(context, record.headers(), SETTER);\n callback = new ProducerCallback(callback, parentContext, context, record);\n return sendFn.apply(record, callback);\n }\n }", "title": "" }, { "docid": "8e0e69e612448590c14db226f12c1df6", "score": "0.4349436", "text": "String expandVar(String var);", "title": "" }, { "docid": "fca200cbc74eda29493f475d34946c29", "score": "0.4335463", "text": "public void expand() {\n treeOperator.expandPath(getTreePath());\n waitExpanded();\n }", "title": "" }, { "docid": "53b583181f04a19317a03cc44b6e94d5", "score": "0.43277755", "text": "@Deprecated\n public SpanArgument(final Symbol role, final TokenSequence.Span span, final float score) {\n super(role, score);\n this.span = span;\n }", "title": "" }, { "docid": "765ed0f7629b697132bb5c9a9fcd9ac1", "score": "0.43210065", "text": "String expandString(String line);", "title": "" }, { "docid": "b9b4d4a4d862199d546f8af3a9ec9216", "score": "0.43036047", "text": "public LabeledStmt() { }", "title": "" }, { "docid": "d0941f22512c09283cf2dac18819e4a7", "score": "0.42990047", "text": "@Override\n public int getMakeSpan() {\n return 1;\n }", "title": "" }, { "docid": "200f665adcef4384e814dbe83f22dd8b", "score": "0.42877755", "text": "void addAssertedBy(WrappedIndividual newAssertedBy);", "title": "" }, { "docid": "28354478da6aa922224ce88e6f053754", "score": "0.42867854", "text": "private void populateDisclaimer(){\n \tClickableSpan termsOfUseSpan = new ClickableSpan() {\r\n @Override\r\n public void onClick(View textView) {\r\n Log.i(getClass().getSimpleName(), \"CLICK termsOfUseSpan!!!\");\r\n }\r\n \r\n @Override\r\n public void updateDrawState(TextPaint ds) {\r\n \tds.setColor(getResources().getColor(R.color.turquoise));\r\n ds.setUnderlineText(false);\r\n }\r\n };\r\n \r\n ClickableSpan privacyPolicySpan = new ClickableSpan() {\r\n @Override\r\n public void onClick(View textView) {\r\n Log.i(getClass().getSimpleName(),\"CLICK privacyPolicySpan!!!\");\r\n }\r\n \r\n @Override\r\n public void updateDrawState(TextPaint ds) {\r\n \tds.setColor(getResources().getColor(R.color.turquoise));\r\n ds.setUnderlineText(false);\r\n }\r\n };\r\n\r\n SpannableString s = SpannableString.valueOf(this.disclaimerTextView.getText());\r\n s.setSpan(termsOfUseSpan, 34, 46, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\r\n s.setSpan(privacyPolicySpan, 51, 65, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);//14\r\n \tthis.disclaimerTextView.setText(s);\r\n }", "title": "" }, { "docid": "b29e1176261e46589e8074d803bed1ae", "score": "0.42767292", "text": "public void syntaxProblemMarkerAdded(int severity);", "title": "" }, { "docid": "bf902f78a582ae8171c66155f27ced1d", "score": "0.42713794", "text": "private void expandJokeView() {\n\t\tm_vwJokeText.setEllipsize(null);\n\t\tm_vwLikeGroup.setVisibility(VISIBLE);\n\t\tm_vwExpandButton.setText(COLLAPSE);\n\t}", "title": "" }, { "docid": "d21f7dc3125e6fc494572f28d04f8d14", "score": "0.42710346", "text": "@Override\n public Void visit(Block block, Void unused) {\n InstrBlock instrBlock = new InstrBlock(block);\n Location location = locationMap.getLocation(block);\n locationMap.setLocation(instrBlock, location);\n \n Block mainBlock = script.getMainBlock();\n if (locationMap.getLocation(mainBlock) == null) {\n locationMap.setLocation(mainBlock, location);\n }\n mainBlock.getInstrStar().add(instrBlock);\n return null;\n }", "title": "" }, { "docid": "62c8048298875ca279aa365b9d870cd0", "score": "0.42699495", "text": "void addAlias(String name, int minArguments, String substitution);", "title": "" }, { "docid": "00211bcd0e7244e07c8694451bfc43f2", "score": "0.42627454", "text": "public void setRowSpan(int rowSpan) {\n \t\tsetAttribute(\"rowSpan\", rowSpan);\n \t}", "title": "" }, { "docid": "44a32e489d58a37e789f345f48051d30", "score": "0.42542854", "text": "@Override\n\tpublic String toString() {\n\t\treturn Strings.join(\" \", markup) + \" \" + statement;\n\t}", "title": "" }, { "docid": "672ec8602dd72d403ce76391be157de0", "score": "0.42409605", "text": "public Stmt\naddNextStmt( Stmt pStatement );", "title": "" }, { "docid": "c73dd3459d3db60011a71b5fd2301d0e", "score": "0.4236962", "text": "@Override\r\n \tprotected void addTagInsertionProposals(\r\n \t\t\tContentAssistRequest contentAssistRequest, int childPosition) {\r\n \t\t\r\n \t\t// Need to check if an EL Expression is opened here.\r\n \t\t// If it is true we don't need to start any new tag proposals\r\n \t\tTextRegion prefix = getELPrefix(contentAssistRequest);\r\n \t\tif (prefix != null && prefix.isELStarted()) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\taddTagNameProposals(contentAssistRequest, childPosition, true);\r\n \t\taddELPredicateProposals(contentAssistRequest, TextProposal.R_TAG_INSERTION, true);\r\n \t}", "title": "" }, { "docid": "6bd43fb3dd0646a4f05f5f5c525c6d7c", "score": "0.42275938", "text": "@Override\n\tpublic void display(StringBuilder sb, int level) {\n\n\t}", "title": "" }, { "docid": "6d9c4b30d9a030b8c4076c5cc869c788", "score": "0.42267913", "text": "void addParticipatedIn(WrappedIndividual newParticipatedIn);", "title": "" }, { "docid": "1bca7f620a5d06ad975717edc15446fd", "score": "0.42189655", "text": "SpanQuery getIncludeQuery();", "title": "" }, { "docid": "6efbed87b41135865a814c6348889a76", "score": "0.4215558", "text": "public TextSpan defineSpan(final String text, final Color color,\r\n final int xCoord, final int yCoord) {\r\n return new TextSpan(identifier, size, color, xCoord, yCoord,\r\n charactersForText(text));\r\n }", "title": "" }, { "docid": "7b085ca8959c0b3e6c25b8b65074e9bf", "score": "0.42128372", "text": "@Override\n public void reportSpan(SofaTracerSpan span) {\n if (span == null) {\n return;\n }\n // sampler is support & current span is root span\n if (this.getSampler() != null && span.getParentSofaTracerSpan() == null) {\n span.getSofaTracerSpanContext().setSampled(this.getSampler().sample(span).isSampled());\n }\n //invoke listener\n invokeReportListeners(span);\n if (this.reporter != null) {\n this.reporter.report(span);\n } else {\n SelfLog.warn(\"No reporter implement in flexible tracer\");\n }\n }", "title": "" }, { "docid": "b722858b7889ac3933b7b44b32ba8aad", "score": "0.42117178", "text": "public Entity setExpanded(boolean expanded) {\n\t\tthis.expanded = expanded;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "8551ee2c3e96bd96e047a35a66637b42", "score": "0.4206955", "text": "void paintTheWord(int color, int start, int end){\n SpannableString spannableString = new SpannableString(currentText);\n spannableString.setSpan(new ForegroundColorSpan(color), start, end + 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n// spannableStringBuilder.append(spannableString);\n tvCurrentText.setText(spannableString, TextView.BufferType.SPANNABLE);\n }", "title": "" }, { "docid": "9791e46e134cb3ff749e314bf8ed3c72", "score": "0.42051286", "text": "OQueryRequest<T> expand(String expand);", "title": "" }, { "docid": "af437ca66e18c5226018c189c4d7c53e", "score": "0.42034", "text": "ExpressionStatement createExpressionStatement();", "title": "" }, { "docid": "9c4274d8f145a5664040267360640d75", "score": "0.4191655", "text": "int getSpanId();", "title": "" }, { "docid": "147047c4cdba850964e9e314e5144304", "score": "0.41861153", "text": "ITermReferenceRequest expand(final String value);", "title": "" }, { "docid": "35da0f23d52a43729fba17426c23410e", "score": "0.41780308", "text": "public void setExpanded (boolean expanded) {\n\tcheckWidget ();\n\tOS.TreeViewItem_IsExpanded (handle, expanded);\n}", "title": "" }, { "docid": "f49ab8ac8dff4e050353606b8b2ff073", "score": "0.4168295", "text": "public abstract void extendSection(\n ConsoleSection target,\n int start, int end,\n List<Rng> ranges,\n List<Rng> snippets\n );", "title": "" }, { "docid": "1a99ca35ef7a46ee26c99b9c58f3b057", "score": "0.41632903", "text": "private static void addParagraphSpan(Spannable buffer, Object what,\n int start, int end) {\n int len = buffer.length();\n\n if (start != 0 && start != len && buffer.charAt(start - 1) != '\\n') {\n for (start--; start > 0; start--) {\n if (buffer.charAt(start - 1) == '\\n') {\n break;\n }\n }\n }\n\n if (end != 0 && end != len && buffer.charAt(end - 1) != '\\n') {\n for (end++; end < len; end++) {\n if (buffer.charAt(end - 1) == '\\n') {\n break;\n }\n }\n }\n\n buffer.setSpan(what, start, end, Spannable.SPAN_PARAGRAPH);\n }", "title": "" }, { "docid": "21d7fd4cd47f88a8f69931b26364bb0a", "score": "0.41569203", "text": "void setEnclosingScope(Scope s);", "title": "" }, { "docid": "c54bf9c6f862a1b33ecaaa09952f7b4e", "score": "0.41564077", "text": "public interface NoteClickSpan {\n}", "title": "" }, { "docid": "e1cd3154e7090fb682ca7e9b1fabb8a4", "score": "0.41497463", "text": "private void _addScope(final Scoped scoped) {\n final Topic[] themes = scoped.getScope().toArray(new Topic[0]);\n if (themes.length == 0) {\n return;\n }\n final StringBuilder sb = new StringBuilder();\n sb.append(_getTopicReference(themes[0]));\n for (int i=1; i<themes.length; i++) {\n sb.append(' ');\n sb.append(_getTopicReference(themes[i]));\n }\n super.addAttribute(\"scope\", sb.toString());\n }", "title": "" }, { "docid": "8bf3629271512fcb70eccc8536234830", "score": "0.4141125", "text": "public void StmtStype(){\n\t\t\n\t}", "title": "" }, { "docid": "22753e3c579d6db99f12b7f301bd0410", "score": "0.41391817", "text": "public void a(SpannableStringBuilder spannableStringBuilder, URLSpan uRLSpan) {\n spannableStringBuilder.setSpan(new ClickableSpan() {\n public void onClick(View view) {\n g.this.o.a(g.this.p);\n g.this.l.i();\n g.this.l.b(4);\n d f2 = g.this.l;\n List d2 = g.this.j;\n c e2 = g.this.i;\n int i = g.this.k;\n f2.a((List<c>) d2, e2, i, g.this.f5288a.getText() + \"\", g.this.f5289b.isChecked(), g.this.n);\n }\n }, spannableStringBuilder.getSpanStart(uRLSpan), spannableStringBuilder.getSpanEnd(uRLSpan), spannableStringBuilder.getSpanFlags(uRLSpan));\n spannableStringBuilder.removeSpan(uRLSpan);\n }", "title": "" }, { "docid": "d851ca27db1ba73d3cc4ac3b7138f3ad", "score": "0.41349405", "text": "@JsOverlay public final CssProps columnSpan(String s) {\n columnSpan = s;\n return this;\n }", "title": "" }, { "docid": "c3d41fc08f07e40c65e9849db727aa6c", "score": "0.41344616", "text": "@Override\n public void appendShardFilter(\n com.google.cloud.spanner.Statement.Builder statementBuilder) {\n }", "title": "" }, { "docid": "13f0b7381abd7285cda70434070d0890", "score": "0.41298166", "text": "void applyLineBreakAtEndOfBlockElement(StackElement<ELEMENT> sub);", "title": "" }, { "docid": "c4fcb9545690df00dd5b9cb4eed65ae9", "score": "0.41270956", "text": "public void addBlock(String name, int start, int end);", "title": "" }, { "docid": "e3cf9d5c3c774925fdd73fde0eec8be9", "score": "0.4118046", "text": "public void expand(final View v) {\n v.measure(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n final int targetHeight = v.getMeasuredHeight();\n\n v.getLayoutParams().height = 0;\n v.setVisibility(View.VISIBLE);\n Animation a = new Animation() {\n @Override\n protected void applyTransformation(float interpolatedTime, Transformation t) {\n v.getLayoutParams().height = interpolatedTime == 1\n ? LinearLayout.LayoutParams.WRAP_CONTENT\n : (int) (targetHeight * interpolatedTime);\n v.requestLayout();\n }\n\n @Override\n public boolean willChangeBounds() {\n return true;\n }\n };\n\n a.setDuration((int) (targetHeight / v.getContext().getResources().getDisplayMetrics().density));\n Log.d(TAG, \"expanding\");\n v.startAnimation(a);\n }", "title": "" }, { "docid": "ba210930eeebc69d56879757542f08a5", "score": "0.4117215", "text": "public void addStatement(Statement stmt) {\n statements.add(stmt);\n }", "title": "" }, { "docid": "c6028542c8f575681cb7e4d69df7cbf9", "score": "0.41109085", "text": "public void newScope( )\n \t{\n \t\tscriptContext.enterScope( );\n \t}", "title": "" }, { "docid": "730ad526630fe3f890313223992d9e96", "score": "0.41092157", "text": "void addSourceLine(SourceLocation location, String line);", "title": "" }, { "docid": "68399f06f4e38555040db76d150877c3", "score": "0.4105296", "text": "public static Span getSpanBtwn(Span span1, Span span2) {\n if (span1.end <= span2.start) {\n return new Span(span1.end, span2.start);\n } else if (span2.end <= span1.start) {\n return new Span(span2.end, span1.start);\n } else {\n // Return an empty span.\n return new Span(span1.start, span1.start);\n }\n }", "title": "" }, { "docid": "5fb34b26ef93e2215ce33bef221a245e", "score": "0.4097214", "text": "public Builder addAddendumFrom(Rationale r) {\n try {\n return addAddendum(r.addendum);\n } catch (MisconfigurationException ex) {\n throw new AssertionError(null, ex);\n }\n }", "title": "" }, { "docid": "af5b9c25604340e19f18e37854530a08", "score": "0.40963796", "text": "private void setEnclosingScopeForThisExpr(Statement statement, SymbolTable methodST){\n statement.setEnclosingScope(methodST);\n switch (statement.getClass().getName()){\n case \"ast.AssignArrayStatement\":\n setEnclosingScopeForThisExpr((AssignArrayStatement)statement, methodST);\n break;\n case \"ast.AssignStatement\":\n setEnclosingScopeForThisExpr((AssignStatement)statement, methodST);\n break;\n case \"ast.BlockStatement\":\n setEnclosingScopeForThisExpr((BlockStatement)statement, methodST);\n break;\n case \"ast.IfStatement\":\n setEnclosingScopeForThisExpr((IfStatement)statement, methodST);\n break;\n case \"ast.SysoutStatement\":\n setEnclosingScopeForThisExpr((SysoutStatement)statement, methodST);\n break;\n case \"ast.WhileStatement\":\n setEnclosingScopeForThisExpr((WhileStatement)statement, methodST);\n break;\n default:\n //error\n }\n }", "title": "" } ]
f81343a26ea59bf4d825b9aa6458492c
The first rear facing camera
[ { "docid": "7d07aebfa2d5ab638719e4c38f477342", "score": "0.0", "text": "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\t// Do we have a camera?\n\t\tif (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)) {\n\t\t\tToast.makeText(this, \"No camera on this device\", Toast.LENGTH_LONG).show();\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.putExtra(\"RESULT_STRING\", lastPicFile);\n\t\t\tsetResult(RESULT_OK, intent);\n\t\t\tfinish();\n\t\t}\n\n\t\t// Hide the window title, set content view.\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tgetWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);\n\t\tsetContentView(R.layout.activity_cam);\n\n\t\t// Create a RelativeLayout container that will hold a SurfaceView,\n\t\t// and set it as the content of our activity.\n\t\tmSurfaceView = (SurfaceView) findViewById(R.id.surfaceView_cam);\n\t\tmHolder = mSurfaceView.getHolder();\n\t\tmHolder.addCallback(this);\n\n\t\t// Find the total number of cameras available\n\t\tnumberOfCameras = Camera.getNumberOfCameras();\n\n\t\t// Find the ID of the default camera\n\t\tCameraInfo cameraInfo = new CameraInfo();\n\t\tfor (int i = 0; i < numberOfCameras; i++) {\n\t\t\tCamera.getCameraInfo(i, cameraInfo);\n\t\t\tif (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) {\n\t\t\t\tcameraCurrentlyLocked = i;\n\t\t\t\tdefaultCameraId = i;\n\t\t\t}\n\t\t}\n\n\t\t// Set up buttons\n\t\tButton btnTmp = (Button) findViewById(R.id.button_cam_view);\n\t\tbtnTmp.setOnClickListener(this);\n\t\tbtnTmp = (Button) findViewById(R.id.button_cam_shot);\n\t\tbtnTmp.setOnClickListener(this);\n\t\tbtnTmp = (Button) findViewById(R.id.button_cam_switch);\n\t\tbtnTmp.setOnClickListener(this);\n\t}", "title": "" } ]
[ { "docid": "ccb523a52483a4473d30ba2ce7ec063b", "score": "0.690382", "text": "private static int getFrontCameraId(){\n int camId = -1;\n int numberOfCameras = Camera.getNumberOfCameras();\n Camera.CameraInfo ci = new Camera.CameraInfo();\n\n for(int i = 0;i < numberOfCameras;i++){\n Camera.getCameraInfo(i,ci);\n if(ci.facing == Camera.CameraInfo.CAMERA_FACING_FRONT){\n camId = i;\n }\n }\n\n return camId;\n }", "title": "" }, { "docid": "5ef877be82da918de37ef2775a3e3c92", "score": "0.6799936", "text": "private Camera openFrontFacingCamera()\n {\n if(mCamera != null)\n {\n mCamera.stopPreview();\n mCamera.release();\n }\n\n int noOfCamera = 0;\n Camera cam = null;\n Camera.CameraInfo cameraInfo = new Camera.CameraInfo();\n noOfCamera = Camera.getNumberOfCameras();\n for(int i=0;i< noOfCamera;i++)\n {\n Camera.getCameraInfo(i, cameraInfo);\n if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_BACK)\n {\n try {\n cam = Camera.open(i);\n } catch (RuntimeException e) {\n Log.e(\"openFrontFacingCamera()\",\n \"Camera failed to open: \" + e.getLocalizedMessage());\n /*\n * Toast.makeText(getApplicationContext(),\n * \"Front Camera failed to open\", Toast.LENGTH_LONG)\n * .show();\n */\n }\n }\n }\n return cam;\n }", "title": "" }, { "docid": "ec1ab8841c6f2ff5702a3df7de860d7d", "score": "0.66559905", "text": "public Camera getCamera() {\n\t\treturn eigenCamera;\n\t}", "title": "" }, { "docid": "5f0cb91f382b9f482401da3b2241de15", "score": "0.64779264", "text": "public CameraFrame getLastCamera() {\r\n return lastCamera;\r\n }", "title": "" }, { "docid": "7213388e74ee3f944cdf0b06ab29fa38", "score": "0.6426301", "text": "public RelativisticAnyFocusSurfaceCamera getCamera() {\n\t\treturn camera;\n\t}", "title": "" }, { "docid": "36f327acec496eb6618b7390cfe218f9", "score": "0.63150394", "text": "private Camera getCameraInstance() {\n Camera camera = null;\n try {\n camera = android.hardware.Camera.open(Camera.CameraInfo.CAMERA_FACING_FRONT);\n } catch (Exception e) {\n // cannot get camera or does not exist\n }\n return camera;\n }", "title": "" }, { "docid": "472dbb4834a37b09f67a115aa4b89318", "score": "0.6303691", "text": "public Camera() {\n setTransformMatrix(new Matrix());\n }", "title": "" }, { "docid": "73b7ee54d14ac5a78d512f88008bd86c", "score": "0.6285436", "text": "public Camera3D getCamera()\r\n\t{\r\n\t\treturn iCamera;\r\n\t}", "title": "" }, { "docid": "a5cc327d15e3c10de3418f5808393479", "score": "0.6266881", "text": "public static void cameraFlip() {\r\n \ttry {\r\n \t\tNIVision.IMAQdxStopAcquisition(stagValues.camSession);\r\n\t\t\tif (stagValues.camSession == stagValues.camFrontNumb) {\r\n\t\t\t\tstagValues.camSession = stagValues.camBackNumb;\t\r\n\t\t\t} else {\r\n\t\t\t\tstagValues.camSession = stagValues.camFrontNumb;\r\n\t\t\t}\r\n\t\t\tNIVision.IMAQdxConfigureGrab(stagValues.camSession);\r\n \t} catch (VisionException e) {\r\n\t\t\tSystem.out.println(\"VISION EXCEPTION ~ \" + e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d966b43f2b8122ff342b8f5ef7d6d4a2", "score": "0.62492317", "text": "private void initCamera() {\n final float eyeX = 0.0f;\n final float eyeY = 0.0f;\n final float eyeZ = -.5f;\n\n // We are looking toward the distance\n final float lookX = 0.0f;\n final float lookY = 0.0f;\n final float lookZ = -5.0f;\n\n // Set our up vector. This is where our head would be pointing were we holding the camera.\n final float upX = 0.0f;\n final float upY = 1.0f;\n final float upZ = 0.0f;\n\n Matrix.setLookAtM(mViewMatrix, 0, eyeX, eyeY, eyeZ, lookX, lookY, lookZ, upX, upY, upZ);\n }", "title": "" }, { "docid": "9b666b33698be38c3cbd798c1a5a181b", "score": "0.6241878", "text": "boolean getIsDefaultCamera();", "title": "" }, { "docid": "48330cd673994e9183b6e662d8e7d504", "score": "0.62036926", "text": "public OrthographicCamera getCamera() {\n return camera;\n }", "title": "" }, { "docid": "bc1e63f1f7cb5dff95fd942d8d01d8f0", "score": "0.6152023", "text": "public Camera open(Activity activity) {\n try {\n cameraId = FACING.CAMERA_BACK == facing ? 0 : 1;\n camera = Camera.open(cameraId);\n Camera.CameraInfo cameraInfo = new Camera.CameraInfo();\n Camera.getCameraInfo(cameraId, cameraInfo);\n Camera.Parameters params = camera.getParameters();\n Camera.Size bestPreviewSize = calcPreviewSize(camera.getParameters(), 1920, 1080);\n cameraWidth = bestPreviewSize.width;\n cameraHeight = bestPreviewSize.height;\n Log.w(\"FIL_MESSAGE\", String.format(\"camera: [W: %d, H:%d].\", cameraWidth, cameraHeight));\n params.setPreviewSize(cameraWidth, cameraHeight);\n params.setFocusMode(FACING.CAMERA_BACK == facing ? Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO : Camera.Parameters.FLASH_MODE_OFF);\n camera.setDisplayOrientation(getCameraAngle(activity));\n camera.setParameters(params);\n\n Camera.Size previewSize = camera.getParameters().getPreviewSize();\n Log.w(\"FIL_MESSAGE\", String.format(\"preview: [W: %d, H:%d]\", previewSize.width, previewSize.height));\n return camera;\n } catch (Exception e) {\n Log.e(\"FIL_MESSAGE\", String.format(\"initialize camera & parameters failed. [%s].\",e.getMessage()));\n if (null != camera) {\n closeCamera();\n }\n return null;\n }\n }", "title": "" }, { "docid": "e64187f3bdd6910a20b5b76357b0cf86", "score": "0.6147999", "text": "@Override\n public void cameraRotated(Camera camera) {\n \n }", "title": "" }, { "docid": "3ec91ca69ddd34e9ad59fa0c93b75f81", "score": "0.612507", "text": "@SuppressLint(\"NewApi\")\n\tpublic Camera getCameraInstance() {\n\t\tCamera c = null;\n\t\tLog.v(\"asd\", \"opening camera\");\n\t\tCamera.CameraInfo info = new Camera.CameraInfo();\n\t\ttry {\n\t\t\tfor (int i = 0; i < Camera.getNumberOfCameras(); i++) {\n\t\t\t\tCamera.getCameraInfo(i, info);\n\n\t\t\t\tif (info.facing == camera_type) {\n\t\t\t\t\tif (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) {\n\t\t\t\t\t\tLog.v(\"asd\", \"Front camera opened \" + info.facing);\n\t\t\t\t\t\tc = Camera.open(i);\n\t\t\t\t\t} else if (info.facing == Camera.CameraInfo.CAMERA_FACING_BACK) {\n\t\t\t\t\t\tLog.v(\"asd\", \"Back camera opened \" + info.facing);\n\t\t\t\t\t\tc = Camera.open(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn c;\n\t}", "title": "" }, { "docid": "0e60fab6f15d663985bbf1b60507c479", "score": "0.60865796", "text": "public void moveCamera(){\n getCamera().position.set(getActors().first().getOriginX(),getActors().first().getOriginY(),0);\n\n }", "title": "" }, { "docid": "c7a920316dda5ba89996027cac221719", "score": "0.6017706", "text": "public void start_camera_met(){\n initialize_camera();\n showcamera = new ShowCamera(context,camera,this);\n\n\n framelayout.addView(showcamera);\n //framelayout.setRotation(image_rot);\n }", "title": "" }, { "docid": "f0e7e3f305758f22a55f94ca55cbf8d1", "score": "0.60139924", "text": "public LttlCamera getCurrentRenderingCamera()\n\t{\n\t\treturn renderView == RenderView.Editor ? Lttl.editor.getCamera()\n\t\t\t\t: Lttl.game.getCamera();\n\t}", "title": "" }, { "docid": "b34fdb69f78b16143e44c83f7b1c3bff", "score": "0.6011132", "text": "public boolean getIsDefaultCamera() {\n return isDefaultCamera_;\n }", "title": "" }, { "docid": "a7ea6edd6f1ed22b6ebbc1ebe4ee6502", "score": "0.59707296", "text": "public String accessCamera();", "title": "" }, { "docid": "358386e8152f97e39c5c2885800af0c5", "score": "0.5955724", "text": "private void recalcCamera() {\n\t\t\r\n\t\tly = 4;\r\n\t\teyeY = cmove.GetX() + swing2.GetX(); \r\n\t\t \r\n\t\tlx = (float)( cameraXZ * Math.sin((double)alphaSwing.GetX()+ 90) + boat.x) ;\r\n\t\tlz = (float)( cameraXZ * Math.cos((double)alphaSwing.GetX()+ 90) + boat.z) ;\r\n\t\t \r\n\r\n\t\teyeX = (float)( (cameraXZeye + swing3.GetX()) * Math.sin((double)alphaSwing.GetX() + 90) + boat.x) ;\r\n\t\teyeZ = (float)( (cameraXZeye + swing3.GetX()) * Math.cos((double)alphaSwing.GetX() + 90) + boat.z) ;\r\n\t\t\r\n\r\n\t\tMatrix.setLookAtM(_mViewMatrix, 0, eyeX, eyeY, eyeZ, lx, ly, lz, 0.0f, 1.0f, 0.0f);\r\n\t\t\r\n\t\t//Test\r\n\t\t\r\n\t\t/*\r\n\t\tly = 4;\r\n\t\teyeY = 7; \r\n\t\t \r\n\t\tlx = (float)( cameraXZ * Math.sin((double)90 +alphaSwing.GetX())) ;\r\n\t\tlz = (float)( cameraXZ * Math.cos((double)90 +alphaSwing.GetX())) ;\r\n\t\t \r\n\r\n\t\teyeX = (float)( (cameraXZeye) * Math.sin(90)) ;\r\n\t\teyeZ = (float)( (cameraXZeye) * Math.cos(90)) ;\r\n\t\t\r\n\r\n\t\tMatrix.setLookAtM(_mViewMatrix, 0, eyeX, eyeY, eyeZ, lx, ly, lz, 0.0f, 1.0f, 0.0f);\r\n\t\t*/\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f4d1a1f9f9717a50b1d44d2d19c6cbfa", "score": "0.5953669", "text": "public int getCurrentCamera() {\n\t\treturn currentId;\n\t}", "title": "" }, { "docid": "18ce988beb81dc141b51484bf434e9ad", "score": "0.59424156", "text": "public static Camera getCameraInstance(){\n Camera c = null;\n try {\n\n\n c = Camera.open(Camera.CameraInfo.CAMERA_FACING_FRONT); // attempt to get a Camera instance\n c.getParameters().setPictureSize(320,240);\n }\n catch (Exception e){\n Log.d(\"CMS App : \", \"Error creating camera \" + e);\n // Camera is not available (in use or does not exist)\n }\n return c; // returns null if camera is unavailable\n }", "title": "" }, { "docid": "96ce904febf3bf7b22f5ed8078b59603", "score": "0.5926136", "text": "Camera setUp(Vector3D up);", "title": "" }, { "docid": "2519290d95b63fa7c650630d0974ab42", "score": "0.5920167", "text": "void resetCamera();", "title": "" }, { "docid": "6bf9a4be4509b0bee6d3e83832eb9508", "score": "0.5909841", "text": "public Object caseCamera(Camera object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0de94b27ca4936c9e69422a07a9a9b52", "score": "0.5895365", "text": "protected void tiltCamera(float deltaAngle)\n{\n\t SoCamera camera = getCameraController().getCamera(); // java port\n\n if (camera == null) { return; }\n\n // get camera forward direction\n final SbMatrix mx = new SbMatrix();\n mx.copyFrom( camera.orientation.getValue());\n final SbVec3f forward = new SbVec3f(-mx.getValue()[2][0], -mx.getValue()[2][1], -mx.getValue()[2][2]);\n\n // get the angle between the foward and up direction\n // as well as the axis of rotation\n final SbRotation rot = new SbRotation(forward, upDirection);\n final SbVec3f axis = new SbVec3f();\n final float[] angle = new float[1];\n rot.getValue(axis, angle);\n // make angle in [-PI,PI] range\n if (angle[0] > Math.PI) {\n angle[0] -= 2*Math.PI;\n } else if (angle[0] < -Math.PI) {\n angle[0] += 2*Math.PI;\n }\n // make rotation toward up direction positive angle\n if (angle[0] < 0.0) {\n angle[0] = -angle[0];\n axis.copyFrom( axis.operator_minus());\n }\n\n // check if we are already looking almost along the up direction\n if ( (angle[0] <= MIN_ANGLE && deltaAngle > 0) ||\n (angle[0] >= (Math.PI - MIN_ANGLE) && deltaAngle < 0) )\n { return; }\n\n // clamp the angle change as to not get too close along the up direction\n if (deltaAngle > 0 && deltaAngle > (angle[0] - MIN_ANGLE)) {\n deltaAngle = angle[0] - MIN_ANGLE;\n } else if (deltaAngle < 0 && deltaAngle < (angle[0] + MIN_ANGLE - Math.PI)) {\n deltaAngle = angle[0] + MIN_ANGLE - (float)Math.PI;\n}\n\n // finally rotate the camera by the given angle\n rot.setValue(axis, deltaAngle);\n camera.orientation.setValue( camera.orientation.getValue().operator_mul(rot));\n}", "title": "" }, { "docid": "6b217fb17ffebd94f13392d0f92cdb7d", "score": "0.58932275", "text": "public boolean isCamera()\n\t{\n\t\treturn this.camera;\n\t}", "title": "" }, { "docid": "97c41ce0e5d469e3e589c33fe3990320", "score": "0.5888182", "text": "public Point2D getCameraPosition() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f96a1d0e7c876798617cd6fe0fbe4c34", "score": "0.58772856", "text": "public boolean getCameraMode() {\r\n return isCameraMode;\r\n }", "title": "" }, { "docid": "89912670794fe21ee968416b682c05f6", "score": "0.5870678", "text": "private void initCamera(){\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\tgetWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);\r\n\r\n\t\t// Create a RelativeLayout container that will hold a SurfaceView,\r\n\t\t// and set it as the content of our activity.\r\n\t\tString detector = sp.getString(\"detector\", \"\");\r\n\t\tmPreview = new Preview(this,MCS);\r\n\t\tmPreview.setDetector(detector);\r\n\t\tmPreview.setThreshold(Float.parseFloat(sp.getString(\"threshold\", \"0.0\")));\r\n\t\tsetContentView(mPreview);\r\n\r\n\t\t// Find the total number of cameras available\r\n\t\tnumberOfCameras = Camera.getNumberOfCameras();\r\n\r\n\t\t// Find the ID of the default camera\r\n\t\tCameraInfo cameraInfo = new CameraInfo();\r\n\t\tfor (int i = 0; i < numberOfCameras; i++) {\r\n\t\t\tCamera.getCameraInfo(i, cameraInfo);\r\n\t\t\tif (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) {\r\n\t\t\t\tdefaultCameraId = i;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Screen size\r\n\t\tWindowManager wm = (WindowManager)getSystemService(WINDOW_SERVICE);\r\n\t\t// Create instance of display ディスプレイのインスタンス生成\r\n\t\tDisplay disp = wm.getDefaultDisplay();\r\n\t\tsw = disp.getWidth();\r\n\t\tsh = disp.getHeight();\r\n\t}", "title": "" }, { "docid": "8aa070cc03a6615db1cb59095af4fb2f", "score": "0.584064", "text": "public void right() {\n // Adjusts viewport based on stereo type\n if(this.stereoType == StereoType.SIDE_BY_SIDE) {\n pgl.viewport(this.width / 2, 0, this.width / 2, this.height);\n } else {\n pgl.viewport(0, 0, this.width, this.height);\n }\n\n // Set frustum\n float top = widthdiv2;\n float bottom = -widthdiv2;\n float left = (-aspectRatio * widthdiv2 - 0.5f * eyeSeparation * nearPlane / convPlane);\n float right = (aspectRatio * widthdiv2 - 0.5f * eyeSeparation * nearPlane / convPlane);\n app.frustum(left, right, bottom, top, nearPlane, farPlane);\n\n // Set camera\n app.camera(\n posx + rightx, posy + righty, posz + rightz,\n posx + rightx + dirx, posy + righty + diry, posz + rightz + dirz,\n upx, upy, upz\n );\n }", "title": "" }, { "docid": "c89dc75947d884579757f02dface4568", "score": "0.58244705", "text": "public static Camera getBackCameraInstance(){\n Camera c = null;\n try {\n c = Camera.open(); // attempt to get a Camera instance\n }\n catch (Exception e){\n // Camera is not available (in use or does not exist)\n }\n return c; // returns null if camera is unavailable\n }", "title": "" }, { "docid": "53adb0fa4220d704acfff0b3bc628d2c", "score": "0.58177084", "text": "private void resetCamera() {\n this.gameCam = new OrthographicCamera(SCREEN_WIDTH, SCREEN_HEIGHT);\n this.gameCam.position.set(gameCam.viewportWidth / 2f, gameCam.viewportHeight / 2f, 0);\n this.gameCam.update();\n this.game.getBatch().setProjectionMatrix(gameCam.combined);\n }", "title": "" }, { "docid": "ed7d59deab9891a74194856567e51561", "score": "0.57981616", "text": "void determineCameraAvailability() {\n PackageManager manager = getPackageManager();\n isFrontFacingCameraDetected = manager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT);\n\n //set default camera settings\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n //restore the camera type settings\n String cameraTypeName = sharedPreferences.getString(\"cameraType\", CameraDetector.CameraType.CAMERA_FRONT.name());\n if (cameraTypeName.equals(CameraDetector.CameraType.CAMERA_FRONT.name())) {\n cameraType = CameraDetector.CameraType.CAMERA_FRONT;\n }\n }", "title": "" }, { "docid": "afd4aa3f586ea7095175261d400714fd", "score": "0.5794896", "text": "@Override\n public void onCameraChange(CameraPosition arg0) {\n \n }", "title": "" }, { "docid": "54457233cae6e1a78fb82576abd2c7a0", "score": "0.57894063", "text": "public static Camera getCameraInstance() {\n Camera c = null;\n\n try {\n int numberOfCameras = Camera.getNumberOfCameras();\n Camera.CameraInfo cameraInfo = new Camera.CameraInfo();\n for (int i = 0; i < numberOfCameras; i++) {\n Camera.getCameraInfo(i, cameraInfo);\n if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_BACK) {\n c = Camera.open(i);\n }\n }\n if (c == null) {\n for (int i = 0; i < numberOfCameras; i++) {\n Camera.getCameraInfo(i, cameraInfo);\n if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) {\n c = Camera.open(i);\n }\n }\n }\n } catch (Exception e) {\n // Camera is not available (in use or does not exist)\n }\n return c; // returns null if camera is unavailable\n }", "title": "" }, { "docid": "0df293263db796d7eefb6fc06411d575", "score": "0.578035", "text": "public static int getCameraX(){\r\n\t\treturn cameraX;\r\n\t}", "title": "" }, { "docid": "13d0427dec27e70e2b97631db02b5d7c", "score": "0.5777958", "text": "public boolean getIsDefaultCamera() {\n return instance.getIsDefaultCamera();\n }", "title": "" }, { "docid": "27ae46d529e7d508fa8bd8d3a6becdba", "score": "0.57666355", "text": "public float[] getCameraMatrix()\n\t{\n\t\treturn this.cameraMatrix;\n\t}", "title": "" }, { "docid": "6e54062e657bd457c8709ac148270311", "score": "0.57489383", "text": "private void setUpCamera() {\n try {\n for (String cameraId : cameraManager.getCameraIdList()) {\n CameraCharacteristics cameraCharacteristics = cameraManager.getCameraCharacteristics(cameraId);\n \n if (cameraCharacteristics.get(CameraCharacteristics.LENS_FACING) == cameraFacing) {\n StreamConfigurationMap streamConfigurationMap = cameraCharacteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n previewSize = streamConfigurationMap.getOutputSizes(SurfaceTexture.class)[0];\n this.cameraId = cameraId;\n }\n }\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "ffa40c01c50a9e0fea08a9131a7850e7", "score": "0.57416767", "text": "public static native long GetCamera1(long lpjFbxNode);", "title": "" }, { "docid": "cbeb84bef496c62acd667134b752529d", "score": "0.5740173", "text": "public void revolveCameraXZ(double radians);", "title": "" }, { "docid": "dd17ed8cc9f3986440695d51032e74fd", "score": "0.57294", "text": "public void updateCamera() {\n\t}", "title": "" }, { "docid": "4a16197efe91fd3cda97fa55e01e45d3", "score": "0.5727352", "text": "public void createCameraPreview(){\n\n }", "title": "" }, { "docid": "cc25b49156eec70a671290ab43181e7e", "score": "0.57243377", "text": "@CameraSelector.LensFacing\n public int getLensFacing() {\n return mLensFacing;\n }", "title": "" }, { "docid": "90561643c1b500e73445fb9161b560a9", "score": "0.5719344", "text": "private void initCamera(){\r\n float thickness = _diameter/10F;\r\n float width = _diameter/3F;\r\n float width_offset = _diameter/8F;\r\n float thickness_offset = _diameter/8F;\r\n // up-left -> up-right -> down-right -> down-left\r\n float[] xCoords = {0F-thickness/2F, thickness/2F, thickness/2F, 0F-thickness/2F};\r\n float[] yCoords = {0F-width/2F, 0F-width/2F, width/2F, width/2F};\r\n _shapes_list[2] = new Camera(_pos.add(_diameter/2, _diameter/2), 0/*Math.PI/4.0*/, xCoords, yCoords);\r\n }", "title": "" }, { "docid": "e52c50dd04459f58947cec0c6d099899", "score": "0.5687607", "text": "private void clearIsDefaultCamera() {\n \n isDefaultCamera_ = false;\n }", "title": "" }, { "docid": "5f81695d1987a5c1cb58bda1937c7b16", "score": "0.5684898", "text": "public Camera turnCamera(Vector Vto, Vector Vup) {\n Camera newcam = new Camera(this._P0, Vto, Vup);\n return newcam;\n }", "title": "" }, { "docid": "8b6044d1d384c366e1ae889d2ae027ba", "score": "0.5675689", "text": "public void setCamera(Camera camera);", "title": "" }, { "docid": "b18575bdfa9f15bc84097e597661ed10", "score": "0.5670197", "text": "@Override\n public void onCameraChange(CameraPosition arg0) {\n\n }", "title": "" }, { "docid": "211471d6f59c601aedb622811b0182ee", "score": "0.56586075", "text": "@Override\n\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\tmCamera = Camera.open();\n\t\t//findFrontFacingCamera();\n\t\tif(mCamera == null)\n\t\t{\n\t\t\tLog.d(\"camera\", \"open fail\");\n\t\t\treturn;\n\t\t}\n\t\t//findFrontFacingCamera();\n\t\ttry {\n\t\t\tmCamera.setPreviewDisplay(holder);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tmCamera.release();\n\t\t\tmCamera = null;\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "b5e8fc9f363bfd4aa61be23ae8a6ff1e", "score": "0.56461096", "text": "public static native long GetCamera(long lpjFbxNode);", "title": "" }, { "docid": "cc37cc4549de8df422d364dbbf6fd509", "score": "0.56145054", "text": "public int getCameraID() {\n return cameraID;\n }", "title": "" }, { "docid": "478ae44a92babcb477b3985cdce370f8", "score": "0.5599321", "text": "public abstract int setFrontCam(int i);", "title": "" }, { "docid": "b3e9d63ace3b749291587b8b35f0794a", "score": "0.5582714", "text": "public static android.hardware.Camera getCameraInstance(){\n android.hardware.Camera camera = null;\n try{\n camera = android.hardware.Camera.open();\n }\n catch(Exception e){\n e.printStackTrace();\n }\n return camera;\n }", "title": "" }, { "docid": "23df98083fa2be0d55a25c43f759855a", "score": "0.5568449", "text": "public abstract int setCaptureRotation(int i);", "title": "" }, { "docid": "5a331ce2d97719a9b2c052209ee8f941", "score": "0.55666524", "text": "public void setCameraRelativeFrame(Rect frame);", "title": "" }, { "docid": "126188564992a94c447c64c8af8bb323", "score": "0.5564556", "text": "public void moveCamera() {\n if(loop.collection.launch) {\n float x = loop.player.torso.body.getPosition().x;\n float y = loop.player.torso.body.getPosition().y;\n\n cameraLeft = x - cameraHalfWidth;\n cameraRight = x + cameraHalfWidth;\n cameraBottom = y - cameraHalfHeight;\n cameraTop = y + cameraHalfHeight;\n\n if(cameraLeft > mapLeft) {\n camera.position.x = x;\n }\n\n if(cameraTop < mapTop && cameraBottom > mapBottom) {\n camera.position.y = y;\n }\n }\n camera.update();\n }", "title": "" }, { "docid": "0960fc3e4b10cf04d821250a5307ea62", "score": "0.5561551", "text": "public static native long GetCameraSwitcher(long lpjFbxNode);", "title": "" }, { "docid": "6c86f93665368a2f25183cae7f0a70c0", "score": "0.5560145", "text": "public void setCamera(RelativisticAnyFocusSurfaceCamera camera) {\n\t\tthis.camera = camera;\n\t}", "title": "" }, { "docid": "65d27dd24b8037a75dc357c2c227609e", "score": "0.5556845", "text": "public static Camera getCameraInstance(){\n \t\tCamera c = null;\n \t\ttry {\n \t\t\tc = Camera.open();\n \t\t\t} catch (Exception e){\n \t\t}\n \t\treturn c;\n \t}", "title": "" }, { "docid": "ff62e27cd24d20a3489908a9fd813f16", "score": "0.5556052", "text": "public int getCodCamera() {\n return codCamera;\n }", "title": "" }, { "docid": "a639028809c20f06e3e0cc8642de56b9", "score": "0.55543214", "text": "@Override\r\n\tpublic void setCamera(boolean flag) {\n\t\tmService.setRearviewCamera(flag);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9602c1464e01b3c5797d0d9314516383", "score": "0.55470836", "text": "@Override\n\tpublic void camera() {\n\t\n\t\tSystem.out.println(\"camera functionality\");\n\t\t\n\t}", "title": "" }, { "docid": "38c4a5d9364372551e796505311843dd", "score": "0.5535947", "text": "public void revolveCameraUp(double radians);", "title": "" }, { "docid": "27e875e6b8222f5d504982495b21e151", "score": "0.5532084", "text": "public String getCamera(CameraManager manager) {\n try {\n for (String cameraId : manager.getCameraIdList()) {\n CameraCharacteristics characteristics = manager.getCameraCharacteristics(cameraId);\n int cOrientation = characteristics.get(CameraCharacteristics.LENS_FACING);\n if (cOrientation == CAMERA) {\n StreamConfigurationMap map = characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n if (map != null) {\n findOptimalSupportedSize(map);\n }\n return cameraId;\n }\n }\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "9d77877745f747400a169c6965ba1111", "score": "0.5530945", "text": "public static Camera getCameraInstance(){\n Camera c = null;\n try { c = Camera.open(); } catch (Exception e){ }\n return c;\n }", "title": "" }, { "docid": "11d797d59f4f3b68979eb38994468a5d", "score": "0.5524714", "text": "private boolean checkFrontCamera(Context context) {\n if (context.getPackageManager().hasSystemFeature(\n PackageManager.FEATURE_CAMERA_FRONT)) {\n // this device has front camera\n return true;\n } else {\n // no front camera on this device\n return false;\n }\n }", "title": "" }, { "docid": "068b9c5046aa585135807ac0bb1d18c7", "score": "0.55095315", "text": "public int getCameraAngle(Activity activity) {\n int rotateAngle = 90;\n Camera.CameraInfo info = new Camera.CameraInfo();\n Camera.getCameraInfo(cameraId, info);\n int rotation = activity.getWindowManager().getDefaultDisplay().getRotation();\n int degrees = 0;\n switch (rotation) {\n case Surface.ROTATION_0:\n degrees = 0;\n break;\n case Surface.ROTATION_90:\n degrees = 90;\n break;\n case Surface.ROTATION_180:\n degrees = 180;\n break;\n case Surface.ROTATION_270:\n degrees = 270;\n break;\n }\n\n if (Camera.CameraInfo.CAMERA_FACING_FRONT == info.facing) {\n rotateAngle = (info.orientation + degrees) % 360;\n rotateAngle = (360 - rotateAngle) % 360; // compensate the mirror\n } else { // back-facing\n rotateAngle = (info.orientation - degrees + 360) % 360;\n }\n return rotateAngle;\n }", "title": "" }, { "docid": "1055e9e868a4873c70a6ad41651b4cf4", "score": "0.5504997", "text": "public static int getCameraY(){\r\n\t\treturn cameraY;\r\n\t}", "title": "" }, { "docid": "db3594fd95f49ebea1dec0bcdc72613b", "score": "0.5504994", "text": "Camera setFieldOfView(final double fieldOfView);", "title": "" }, { "docid": "32bcc821660180fc22de2a4417e2a3c4", "score": "0.55024344", "text": "@Override\r\n public void simpleUpdate(float tpf) {\r\n light1.setDirection(\r\n new Vector3f(\r\n cam.getDirection().x,\r\n cam.getDirection().y,\r\n cam.getDirection().z));\r\n// camQ.lookAt(cam.getLocation(), cam.getUp());\r\n }", "title": "" }, { "docid": "b510224b7fc2efad7de2c1e9e8bdc5a2", "score": "0.5495933", "text": "private GameCamera buildGameCamera(){\n GameCamera gameCamera = new GameCamera(true);\n gameCamera.setTranslateZ(-115);\n return gameCamera;\n }", "title": "" }, { "docid": "db95fd5af2df7f3bcfbd0af283c5a8d9", "score": "0.5495439", "text": "public void cameraInit() {\r\n\t\ttry {\r\n\t\t\timg = NIVision.imaqCreateImage(NIVision.ImageType.IMAGE_RGB, 0);\r\n\t\t\tstagValues.camFrontNumb = NIVision.IMAQdxOpenCamera(stagValues.camFront, NIVision.IMAQdxCameraControlMode.CameraControlModeController);\r\n\t\t\tstagValues.camBackNumb = NIVision.IMAQdxOpenCamera(stagValues.camBack, NIVision.IMAQdxCameraControlMode.CameraControlModeController);\r\n\t\t\tstagValues.camSession = stagValues.camFrontNumb;\r\n\t\t\tNIVision.IMAQdxConfigureGrab(stagValues.camSession);\r\n\t\t} catch (VisionException e) {\r\n\t\t\tSystem.out.println(\"VISION EXCEPTION ~ \" + e);\r\n\t\t}\r\n }", "title": "" }, { "docid": "664544b0c44d9171cfa1cd0976cd8717", "score": "0.5492757", "text": "@Override\n public void surfaceCreated(SurfaceHolder holder) {\n\n if(ActivityCompat.checkSelfPermission(context, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions((Activity) context, new String[]{Manifest.permission.CAMERA}, 101);\n }\n/*\n if(this.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n params.set(\"orientation\", \"portrait\");\n camera.setDisplayOrientation(90);\n params.setRotation(90);\n } else {\n params.set(\"orientation\", \"landscape\");\n camera.setDisplayOrientation(0);\n params.setRotation(0);\n }\n\n camera.setParameters(params);\n*/\n try {\n //camera.setPreviewDisplay(holder);\n cameraSource.start(holder);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "57b6d2285c1620fc4823b2f2f6e18c33", "score": "0.5471867", "text": "private void getCamera() {\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, CameraFragment.newInstance())\n .commit();\n }", "title": "" }, { "docid": "357286bd396d51b667d03bd974226912", "score": "0.5468607", "text": "public void left() {\n // Adjusts viewport based on stereo type\n if(this.stereoType == StereoType.SIDE_BY_SIDE) {\n pgl.viewport(0, 0, this.width / 2, this.height);\n } else {\n pgl.viewport(0, 0, this.width, this.height);\n }\n\n // Set frustum\n float top = widthdiv2;\n float bottom = -widthdiv2;\n float left = (-aspectRatio * widthdiv2 + 0.5f * eyeSeparation * nearPlane / convPlane);\n float right = (aspectRatio * widthdiv2 + 0.5f * eyeSeparation * nearPlane / convPlane);\n app.frustum(left, right, bottom, top, nearPlane, farPlane);\n\n // Set camera\n app.camera(\n posx - rightx, posy - righty, posz - rightz,\n posx - rightx + dirx, posy - righty + diry, posz - rightz + dirz,\n upx, upy, upz\n );\n }", "title": "" }, { "docid": "9821944a186745c79a84be0a5c783dfe", "score": "0.54632", "text": "public void updateCameraPosition() {\r\n\t\tif (Gdx.input.isKeyPressed(Keys.LEFT)) {\r\n\t\t\tcamera.rotateAround(golfball.getPosition(), new Vector3(0, 1, 0), -2f);\r\n\t\t}\r\n\t\tif (Gdx.input.isKeyPressed(Keys.RIGHT)) {\r\n\t\t\tcamera.rotateAround(golfball.getPosition(), new Vector3(0, 1, 0), 2f);\r\n\t\t}\r\n\t\tif (Gdx.input.isKeyPressed(Keys.DOWN)) {\r\n\t\t\tcamera.translate(new Vector3(0,-1,0));\r\n\t\t}\r\n\t\tif (Gdx.input.isKeyPressed(Keys.UP)) {\r\n\t\t\tcamera.translate(new Vector3(0,1,0));\r\n\t\t}\r\n\t\t\r\n\t\tcamera.lookAt(golfball.getPosition());\r\n\t\tcamera.translate(golfball.getVelocity());\r\n\t\tcamera.update(); //\r\n\t}", "title": "" }, { "docid": "9f11d14d50803a093707000e9eec0d09", "score": "0.5462574", "text": "@Override\n public void cameraTranslated(Camera camera) {\n \n }", "title": "" }, { "docid": "fe811584a9060c9eabdd0f044b898a5d", "score": "0.5461405", "text": "public static Camera getCameraInstance(){\n Camera c = null;\n try {\n c = Camera.open();\n } catch (Exception e){\n }\n return c;\n }", "title": "" }, { "docid": "5a3623808b5591ac6e8d6513c8cb559e", "score": "0.5450863", "text": "private void faceNorth(){\n\t\tif (facingEast()){ \n\t\t\tturnLeft();\n\t\t}\n\t\tif (facingWest()){\n\t\t\tturnRight(); \n\t\t}\n\t}", "title": "" }, { "docid": "f7abd8a7f651a221d18624b4f372db62", "score": "0.54406935", "text": "private void enterSequence_main_region_SearchingBarman_SearchingBarman_TiltCamera_default() {\n\t\tentryAction_main_region_SearchingBarman_SearchingBarman_TiltCamera();\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.main_region_SearchingBarman_SearchingBarman_TiltCamera;\n\t}", "title": "" }, { "docid": "3e315c1db22d1eddb472308d877f0523", "score": "0.5440558", "text": "private void addCamera()\n {\n double translateX = 0;\n double translateY = 0;\n double translateZ = ((Math.max(foamWidth, foamLength) + foamHeight) * 1.5) * MODEL_SCALE * MILLIMETERS_IN_INCH;\n \n perspectiveCamera = new PerspectiveCamera(true);\n perspectiveCamera.getTransforms().addAll(new Translate(translateX, translateY, translateZ), new Rotate(180, Rotate.Y_AXIS));\n \n perspectiveCamera.setFarClip(5000);\n perspectiveCamera.setNearClip(0.1);\n perspectiveCamera.setFieldOfView(45.0);\n \n timeline = new Timeline(\n new KeyFrame(Duration.seconds(0), new KeyValue(((Rotate) MODEL_ROTATE_CONSTANT_Z).angleProperty(), 360)),\n new KeyFrame(Duration.seconds(15), new KeyValue(((Rotate) MODEL_ROTATE_CONSTANT_Z).angleProperty(), 0))\n );\n timeline.setCycleCount(Timeline.INDEFINITE);\n timeline.play();\n \n scene.setCamera(perspectiveCamera);\n }", "title": "" }, { "docid": "53851fb573bbe0464004dfdb6b3d9206", "score": "0.54218477", "text": "@Override\n public void surfaceCreated(SurfaceHolder holder) {\n try {\n mCamera.setPreviewDisplay(holder);\n mCamera.startPreview();\n mCamera.setDisplayOrientation(90);\n mCamera.autoFocus(null);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "dbc270efc638efa01a5ee08d633b6793", "score": "0.5420642", "text": "public void camFullManual()\n {\n \tif(camMode == 2)\n \t{\n \t\tif(joy.getRawButton(8) == false)\n \t\t{\n \t\t\ttalKicker.set(0);\n \t\t}\n \t\n \t\tif(joy.getRawButton(8) == true)\n \t\t{\n \t\t\ttalKicker.set(-1);\n \t\t}\n\n \t}\n }", "title": "" }, { "docid": "3c55aedf9dd06b41b695120fd8dc87dd", "score": "0.5418848", "text": "public Camera connectToCamera() {\n\t\tmCamera = getCameraInstance();\n\t\t\n\t\tif(mCamera != null) {\n\t\t\tCamera.Parameters params = mCamera.getParameters();\n\t\t\tparams.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE);\n\t\t\tmCamera.setParameters(params);\n\t\t} else {\n\t\t\tLog.e(TAG,\"Failed to obtain a camera!\");\n\t\t}\n\t\t\n\t\treturn mCamera;\n\t}", "title": "" }, { "docid": "4e3e536d9d5a038b7117a98a4b264e7a", "score": "0.54138446", "text": "private void randomCameraMovement() {\n randomizeCounter = Calculations.random(0, 8);\n if (randomizeCounter == Calculations.random(0, 8)) {\n log(\"Random camera rotation\");\n s.getCamera().rotateTo(Calculations.random(2400), Calculations.random(s.getClient().getLowestPitch(), 384));\n s.sleep(Calculations.random(430,780));\n }\n }", "title": "" }, { "docid": "56bb847678d7042745ea4a7da6ecdf43", "score": "0.54119635", "text": "private void toggleCameraMode() {\n\t\tif (_cameraMode) {\n\t\t\t_cameraMode = false;\n\t\t\tGlobal.Camera.TrackingEnabled = true;\n\t\t\tGlobal.Camera.Threshold.setPosition(Global.Renderer.Width / 8f, Global.Renderer.Width / 6f);\n\t\t\t_cameraButton.Attributes.Sprite.setFrame(0);\n\t\t\t_cameraSetter.disableBehaviors();\n\t\t\t\n\t\t\t_player.getBehavior(TMBehaviorType.TOUCH_DESTINATION).enable();\n\t\t}\n\t\telse {\n\t\t\t_cameraMode = true;\n\t\t\t// if peek is not set to 'max' then limit the camera threshold\n\t\t\tif (_settings.PeekType == LevelSettingPeekType.Normal) {\n\t\t\t\tGlobal.Camera.TrackingEnabled = true;\n\t\t\t\tGlobal.Camera.Threshold.setPosition(Global.Renderer.Width, Global.Renderer.Width);\n\t\t\t}\n\t\t\telse\n\t\t\t\tGlobal.Camera.TrackingEnabled = false;\n\t\t\t_cameraButton.Attributes.Sprite.setFrame(1);\n\t\t\t_cameraSetter.Attributes.Area.setPosition(Global.Camera.CameraArea.getCenterX(), Global.Camera.CameraArea.getCenterY());\n\t\t\t_cameraSetter.enableBehaviors();\n\t\t\t\n\t\t\t_player.Attributes.Destination.setPosition(_player.Attributes.Area.getCenterX(), _player.Attributes.Area.getCenterY());\n\t\t\t_player.Attributes.Direction.Undefined = true;\n\t\t\t_player.getBehavior(TMBehaviorType.TOUCH_DESTINATION).disable();\n\t\t}\n\t}", "title": "" }, { "docid": "0e03a9a96fda4d9dc15c6136ecded2e1", "score": "0.5409032", "text": "@Override\n public Webcam getCam() {\n return null;\n }", "title": "" }, { "docid": "a3d44ee59fa2a436f81a1a5dfd540ebc", "score": "0.54001844", "text": "@Override\n public void onOpened()\n {\n webcam.startStreaming(320, 176, OpenCvCameraRotation.UPRIGHT);\n }", "title": "" }, { "docid": "20c326872e8e32e7dc85acd31763d74e", "score": "0.5398257", "text": "public static boolean isCameraBackFacing(SettingsManager settingsManager,\n String moduleScope) {\n return settingsManager.isDefault(moduleScope, KEY_CAMERA_ID);\n }", "title": "" }, { "docid": "d9644efb1f13fca6f03cde99671b8c0d", "score": "0.5394711", "text": "public Mat getRawFrame(){\r\n//\t\treturn Highgui.imread(\"C:\\\\Images\\\\img_94.png\");\r\n\t\r\n\t\tServer.setCamera(this);\r\n\t\t\r\n\t\tif(!capture.grab()) { // Stream is broken of EOF or we are in Teleop\r\n\t\t\tSystem.out.println(\"Stream is broken or we are at EOF or we are at 15 second time limit\");\r\n\t\t//\tSystem.exit(99);\r\n\t\t}\r\n\t\t\r\n\t\tMat image = new Mat();\r\n\t\tcapture.read(image);\r\n\t\t\r\n\t\treturn image;\r\n\t}", "title": "" }, { "docid": "63daadaa75619f871f5146178a5ff007", "score": "0.5392228", "text": "private Camera getCameraInstance(){\n\t Camera camera = null;\n\t \n\t try {\n\t \t// attempt to get a Camera instance\n\t \tcamera = Camera.open();\n\t }\n\t catch (Exception e){\n\t Log.e(TAG,\"\"+e.toString());\n\t }\n\t \n\t return camera;\n\t}", "title": "" }, { "docid": "ffbd2d66ca65ce82457a7aa706463c60", "score": "0.5389479", "text": "public void makePreviewGo(){\n try {\n //Set this preview's surface view as the camera preview display surface\n mCamera.setPreviewDisplay(mSurfaceHolder);\n } catch (IOException e) {\n System.out.println(\"Can't add holder\");\n }\n try {\n //Attempt to start the preview\n mCamera.startPreview();\n// mCamera.autoFocus(new Camera.AutoFocusCallback() {\n// @Override\n// public void onAutoFocus(boolean success, Camera camera) {\n// System.out.println(\"Attempting to auto focus\");\n// }\n// });\n } catch (RuntimeException e) {\n System.out.println(\"Runtime exception\");\n }\n\n }", "title": "" }, { "docid": "c0f72358224df96f80214ed04d4ba916", "score": "0.53867483", "text": "private void startCamera() {\n shouldCheckCredentials = false;\n\n String folder = recordVideoPresenter.getVideoFolder(isTest);\n\n new MaterialCamera(this)\n .allowRetry(false)\n .autoSubmit(true)\n .saveDir(folder)\n// .qualityProfile(Constants.CAMERA_QUALITY)\n .showPortraitWarning(false)\n .defaultToFrontFacing(true)\n .videoPreferredAspect(16f / 9f)\n .retryExits(false)\n .autoRecordWithDelayMs(10) //100\n .countdownSeconds(90f) // max length of video is 90 seconds\n .countdownImmediately(true) // recording starts automatically\n .start(CAMERA_RQ);\n }", "title": "" }, { "docid": "73edef4ee588f63555fc702c5a2ea58a", "score": "0.5377952", "text": "@Override\n public void onCameraMove() {\n\n }", "title": "" }, { "docid": "d868fdd2f6a11c984b5c9e07f9f01d05", "score": "0.5377038", "text": "public void openBackCamera(CameraHelper backCamera, CameraHelper frontCamera) {\n log.info(\"openBackCamera\");\n /*close front camera if open*/\n if (frontCamera.isOpen()) {\n frontCamera.closeCamera();\n }\n\n /*open back camera*/\n if (backCamera != null) {\n if (!backCamera.isOpen()) {\n backCamera.openCamera();\n }\n } else {\n log.info(\"Camera with id \" + backCamera.getCameraId() + \" is null\");\n }\n }", "title": "" }, { "docid": "66f7edb45e46bdbbbb38d31c2e962e53", "score": "0.5375295", "text": "public void initCameraTransforms() {\n \r\n rotateCameraX = new Rotate(0,0,0,0, Rotate.X_AXIS);\r\n rotateCameraY = new Rotate(0,Rotate.Y_AXIS);\r\n //rotateCameraZ = new Rotate(0,Rotate.Z_AXIS); \r\n translateCameraGroup = new Translate(displayManager.getResolutionX()/2, -200, 50000);\r\n \r\n playerCamera.getTransforms().addAll(rotateCameraX, rotateCameraY);\r\n cameraGroup.getTransforms().addAll(translateCameraGroup);\r\n \r\n }", "title": "" }, { "docid": "2e8e1615fc12ba0a45ed4dbb239c045d", "score": "0.5373742", "text": "@Override\n public void surfaceCreated(SurfaceHolder surfaceHolder) {\n int orientation = getResources().getConfiguration().orientation;\n if (camera != null) {\n if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n camera.setDisplayOrientation(90);\n } else if (orientation == Configuration.ORIENTATION_LANDSCAPE) {\n // TODO check for the specific rotation b/c one of the landscapes has an upside down preview\n camera.setDisplayOrientation(0);\n }\n }\n }", "title": "" }, { "docid": "73ae3ea9429003598b7154a5906ea26b", "score": "0.535849", "text": "private void createCamera() {\n this.gameCam = new OrthographicCamera(VIRTUAL_SCREEN_WIDTH / PIXEL_TO_METER, VIRTUAL_SCREEN_HEIGHT / PIXEL_TO_METER);\n this.gameCam.position.set(gameCam.viewportWidth / 2f, gameCam.viewportHeight / 2f, 0);\n this.gameCam.update();\n }", "title": "" } ]
9928ee48d2498255a0240d6f0f516cee
Create an Instance of a class
[ { "docid": "ef83e068dc02fbcc06c60fd7e17fca71", "score": "0.0", "text": "public static void main(String[] args) {\n Theatre theatre = new Theatre(\"Sydney\", 8,12);\n List<Theatre.Seat> seatCopy = new ArrayList<>(theatre.seats);\n printList(seatCopy);\n\n seatCopy.get(1).reserve(); // we use the copy here\n if (theatre.reservedSeat(\"A02\")){ // and we go back and reserving the seat from the other array list\n System.out.println(\"please pay for A02\"); //just proves that we are sharing the same data\n }else{\n System.out.println(\"Seat already reserved\");\n }\n\n // use the collection.reverse method\n //they are clearly different arrayList but refer to the same object\n Collections.reverse(seatCopy);\n Collections.shuffle(seatCopy);//shuffle method in collection which shuffles the elements randomly\n System.out.println(\"Printing seatCopy\");\n printList(seatCopy);\n System.out.println(\"Printing theatre.seats\");\n printList(theatre.seats);\n\n\n //min and max functions\n Theatre.Seat minSeat = Collections.min(seatCopy);\n Theatre.Seat maxSeat = Collections.max(seatCopy);\n System.out.println(\"Min seat number is \" + minSeat.getSeatNumber());\n System.out.println(\"Max seat number is \" + maxSeat.getSeatNumber());\n\n //use our sort method\n sortList(seatCopy);\n System.out.println(\"Printing the sorted seatCopy\");\n printList(seatCopy);\n\n\n //this is typical to see trying to do something like this do do not fail (because copy a collections copy method is gonna fail as the destination is big enough to hold all the elements to be copied into it)\n //so it leads to a problem ant it is typical to see this:\n //This does not work!!!\n //sets the capacity but it is containing non !\n //so to get this to work get the copy to work you actually need to have 96 seed object in the newList before we can attempt to copy\n List<Theatre.Seat> newList = new ArrayList<>(theatre.seats.size());\n Collections.copy(newList, theatre.seats);\n\n }", "title": "" } ]
[ { "docid": "b090426878bc75222bc039ae675df189", "score": "0.75366944", "text": "Object newInstance(Class cls);", "title": "" }, { "docid": "13201bf2fe16163bc01dc18dd3a10325", "score": "0.7172346", "text": "T newInstance();", "title": "" }, { "docid": "e87267183a8fee87b0be78366cb09f3b", "score": "0.7143607", "text": "public static Object createInstance(String className) {\n // get type\n Class<?> type = ReflectionHelper.getType(className);\n\n // create instance\n Object instance = ReflectionHelper.createInstance(type);\n\n return instance;\n }", "title": "" }, { "docid": "9636593a3aec740e0503e8a820d31a57", "score": "0.71380264", "text": "public static final Object createClassInstance(String className) throws BoltException {\n Class<?> clazz = getClassOfClassName(className);\n\n try {\n\t return clazz.newInstance();\n }\n catch (Exception e) {\n\t throw new BoltException(e);\n }\n }", "title": "" }, { "docid": "eb6d9ba85d1043f9586b6ec472b2669d", "score": "0.70102876", "text": "public static InstanceOf create(Class<?> clazzName) {\n\t\treturn new InstanceOf().withClazzName(clazzName);\n\t}", "title": "" }, { "docid": "ce006bc25cdc4f80c7da377a736cf2cd", "score": "0.6977898", "text": "@AbstractFactoryPattern.FactoryMethod(validationErrorLevel = ValidationErrorLevel.NONE)\n <T> T newInstance(Class<T> cls) throws InstantiationException;", "title": "" }, { "docid": "f0c12e0aa5db473c7165ee21a4123fd3", "score": "0.69457793", "text": "protected abstract T newInstance();", "title": "" }, { "docid": "43d4a70ea217b641e5f0e921b7c596dc", "score": "0.692844", "text": "private Object createInstance() throws Exception {\n\t\tfinal Constructor c = getConstructor();\n\t\tfinal Object newInstance = c.newInstance(new Object[]{});\n\n\t\treturn newInstance;\n\t}", "title": "" }, { "docid": "8862dc555bd068f0ee211757edb510b2", "score": "0.6900551", "text": "T newInstance(int id);", "title": "" }, { "docid": "b2137fa73145ffbd93e2ae6b8d516534", "score": "0.68983656", "text": "public static Object newInstance(Class<?> cls) {\n\t\tObject instance;\n\t\ttry {\n\t\t\tinstance = cls.newInstance();\n\t\t} catch (Exception e) {\n//\t\t\tLOGGER.error(\"new instance failure\", e);\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\treturn instance;\n\t}", "title": "" }, { "docid": "ead5cd772a7abb26d7686f30779f3614", "score": "0.6896216", "text": "ClassType createClassType();", "title": "" }, { "docid": "871b1557ca0bba07e48bd0a483b862da", "score": "0.68138605", "text": "public static Object createInstance(Class<?> type) {\n Object instance = null;\n try {\n // create instance\n instance = type.newInstance();\n } catch (Exception exception) {\n throw new FaxException(\"Unable to create new instance of type: \" + type, exception);\n }\n\n return instance;\n }", "title": "" }, { "docid": "f77e4b34be8bdf74467ef7c312d56269", "score": "0.6780895", "text": "abstract T newInstance();", "title": "" }, { "docid": "f0cf5d94a027f1aac31f1d02fc98805a", "score": "0.67599994", "text": "public static Object createNew(Class type) {\n\t\ttry {\n\t\t\treturn type.newInstance();\n\t\t} catch (Exception e) {\n\t\t\tSpit.out(\"ObjectManager : Unable to create Object for type \"\n\t\t\t\t\t+ type.getName() + \". \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "258a7044b40c5833a76987ee6ddec1fe", "score": "0.67312497", "text": "private <T extends LookupEntity> T createNewInstance(Class<T> entityClass) throws SoaServiceException {\n\n try {\n return entityClass.newInstance();\n } catch (InstantiationException e) {\n throw new SoaServiceException(\"Error occurred when creating object instance.\", e);\n } catch (IllegalAccessException e) {\n throw new SoaServiceException(\"Error occurred when creating object instance.\", e);\n }\n }", "title": "" }, { "docid": "517ddf33d5f78654a6aa43b4ec5a85bc", "score": "0.671319", "text": "T create();", "title": "" }, { "docid": "b7913382729abe808bd229f465b0c6f9", "score": "0.66816366", "text": "public NewClass() {\r\n }", "title": "" }, { "docid": "96ba3caa917e4d8394ef95d19d530d5a", "score": "0.66669124", "text": "Object createObject();", "title": "" }, { "docid": "73192c8ecf848e9a5d993122de5cce0b", "score": "0.6656443", "text": "protected ClassFactory() {}", "title": "" }, { "docid": "ce9472acf94a5fa38d03451769e08eb6", "score": "0.6638991", "text": "public T newInstance(Object... initargs) throws InstantiationException, IllegalAccessException, InvocationTargetException {\n \t\treturn constructor.newInstance(initargs);\n \t}", "title": "" }, { "docid": "5b2d3359f982d816dd18c3e5cb7db9a8", "score": "0.6595414", "text": "ID create(T newInstance);", "title": "" }, { "docid": "c34e22cedc9318e6c3c9a34714679310", "score": "0.6589461", "text": "private <T> T instantiate(Class<T> targetObjClass) {\n\n\t\tConstructor<T> zeroArgConstructor;\n\t\ttry {\n\t\t\tzeroArgConstructor = targetObjClass.getDeclaredConstructor(new Class<?>[0]);\n\t\t} catch (NoSuchMethodException e) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"The class \" + targetObjClass + \" must have a zero-argument constructor.\", e);\n\t\t}\n\n\t\tzeroArgConstructor.setAccessible(true);\n\n\t\tT targetObj;\n\t\ttry {\n\t\t\ttargetObj = zeroArgConstructor.newInstance();\n\t\t} catch (InstantiationException | IllegalAccessException | InvocationTargetException e) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t\t\t\"An error occurred during construction of the class \" + targetObjClass + \".\", e);\n\t\t}\n\n\t\treturn targetObj;\n\t}", "title": "" }, { "docid": "74640654287ef8c5556ed2ebdade1af8", "score": "0.6572779", "text": "private void newInstance() {\n RunInstancesRequest runInstancesRequest =\n new RunInstancesRequest()\n .withImageId(this.ami)\n .withInstanceType(InstanceType.T2Micro)\n .withMinCount(1)\n .withMaxCount(1)\n .withKeyName(this.keyName)\n .withSecurityGroups(this.securityGroup)\n .withMonitoring(true);\n\n String instanceId =\n ec2.runInstances(runInstancesRequest)\n .getReservation()\n .getInstances()\n .get(0)\n .getInstanceId();\n\n logger.warning(String.format(\"Creating new Instance %s!\", instanceId));\n this.addRunningInstance(new DescribeInstanceStatusRequest().withInstanceIds(instanceId));\n }", "title": "" }, { "docid": "9c2c54fac09e139dd84e4dfc5fa49554", "score": "0.65696585", "text": "public static Object newInstance(String className)\r\n {\r\n try {\r\n return Class.forName(className).newInstance();\r\n } catch (ClassNotFoundException e) {\r\n throw new IllegalArgumentException(\"Not found \" + className);\r\n } catch (IllegalAccessException e) {\r\n throw new IllegalArgumentException(\"No access to \" + className);\r\n } catch (InstantiationException e) {\r\n throw new IllegalArgumentException(\"Cannot instantiate \"\r\n + className);\r\n }\r\n }", "title": "" }, { "docid": "3b287fd9b2b3c273a9ae5fc4f327ffc2", "score": "0.6563344", "text": "@Override\n public Object createInstance(int numberOfArgs, Object... args) {\n Constructor[] constructors = objClass.getConstructors();\n Constructor chosenConstructor = null;\n for(Constructor ctor: constructors){\n if (ctor.getParameterCount() == numberOfArgs){\n chosenConstructor = ctor;\n }\n }\n\n Object newInstance = null;\n try {\n newInstance = chosenConstructor.newInstance(args);\n } catch(InstantiationException | IllegalAccessException | InvocationTargetException e){\n }\n\n return newInstance;\n }", "title": "" }, { "docid": "25af07078c4442c1c48e6e4b63dbf4c6", "score": "0.6552882", "text": "Class9 createClass9();", "title": "" }, { "docid": "dfb315063b424aaeee307ee55467d9a4", "score": "0.6550413", "text": "Class10 createClass10();", "title": "" }, { "docid": "b77d98a603dafb549449c1c7d58bc45a", "score": "0.6531475", "text": "void createInstance(KubevirtInstance instance);", "title": "" }, { "docid": "e3fa980b53c5ddbf6f448725041a3e60", "score": "0.6519066", "text": "public abstract Object construct();", "title": "" }, { "docid": "0b6612731dc540db3d149eb994e9889d", "score": "0.6452977", "text": "public T create() {\r\n return ao.create(getGenericClass());\r\n }", "title": "" }, { "docid": "a9fcd91ef1e3e648f9bc2f29db99976d", "score": "0.6451577", "text": "StateT newObject(String className, JvmCfaNode creationCite);", "title": "" }, { "docid": "33a12d0545a8163bc1022e8a74bd9bb5", "score": "0.6442993", "text": "public T getNewInstance() throws IllegalAccessException, InstantiationException {\n T myNewT = typeArgumentClass.newInstance();\n return myNewT;\n }", "title": "" }, { "docid": "02cf3d2b0be99068ebb86cd943399f85", "score": "0.644249", "text": "public static Object newInstance(final IClassWriter classMock) {\n\n try {\n\n final Class<?> clazz = classMock.build();\n\n return clazz.newInstance();\n\n } catch (final Exception e) {\n\n throw new RuntimeException(\"Can't intanciate class\", e);\n }\n }", "title": "" }, { "docid": "2054567a0b0c5ff86c9ba8dab21ca223", "score": "0.64400715", "text": "Class3 createClass3();", "title": "" }, { "docid": "bec22919026374637f22d6c27c891823", "score": "0.6427671", "text": "public static InstanceOf create(Object clazz, String property) {\n\t\tInstanceOf result = new InstanceOf().withProperty(property);\n\t\tif (clazz instanceof Class<?>) {\n\t\t\tresult.withClazzName((Class<?>) clazz);\n\t\t} else if(clazz != null){\n\t\t\tresult.withClazzName(clazz.getClass());\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "fe09e07706fc191f2a7c7c35983aabfb", "score": "0.64083844", "text": "public static void instanceMethod() {\n\n\t // create an instance of Test class\n\t Test obj = new Test();\n\t }", "title": "" }, { "docid": "8a03d882f1ca14457c118a902d57c9b2", "score": "0.64046013", "text": "public abstract T create();", "title": "" }, { "docid": "b6c14cedc24ccd70a044e4f2c89764b6", "score": "0.6393384", "text": "public void makeInstance() {\n\t\t// Create the attributes, class and text\n ArrayList cats=v.categories();\n int c=cats.size();\n \n\t\tFastVector fvNominalVal = new FastVector(2);\n for(int x=0;x <c;x++){\n\t\tfvNominalVal.addElement(cats.get(x));\n\t\t//fvNominalVal.addElement(\"ham\");\n }\n Attribute attribute1 = new Attribute(\"class\", fvNominalVal);\n\t\tAttribute attribute2 = new Attribute(\"text\",(FastVector) null);\n\t\t// Create list of instances with one element\n\t\tFastVector fvWekaAttributes = new FastVector(2);\n\t\tfvWekaAttributes.addElement(attribute1);\n\t\tfvWekaAttributes.addElement(attribute2);\n\t\tinstances = new Instances(\"Test relation\", fvWekaAttributes, 1); \n\t\t// Set class index\n\t\tinstances.setClassIndex(0);\n\t\t// Create and add the instance\n\t\tDenseInstance instance = new DenseInstance(2);\n\t\tinstance.setValue(attribute2, text);\n\t\t// Another way to do it:\n\t\t// instance.setValue((Attribute)fvWekaAttributes.elementAt(1), text);\n\t\tinstances.add(instance);\n \t\tSystem.out.println(\"===== Instance created with reference dataset =====\");\n\t\tSystem.out.println(instances);\n\t}", "title": "" }, { "docid": "842bb609dae966fb49a43e8e57344f55", "score": "0.638146", "text": "public static <T> T newInstance(String clazz)\n\t{\n\t\treturn newInstance(getClass(clazz));\n\t}", "title": "" }, { "docid": "5a5921cb64f2b912f702393a974681ea", "score": "0.6357101", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T> T instance(String className) {\n\t\treturn (T) instance(toClass(className));\n\t}", "title": "" }, { "docid": "b80f7ad0f250c03a6ca3751fe1fbb33b", "score": "0.63346034", "text": "public OWLClass createClass(String className){/*\n\t\tSystem.out.println(factory);\n\t\tSystem.out.println(\"Createclass is called\");\n\t\tOWLClass owlClass = factory.getOWLClass(\"#\"+className, prefixManager);\n\t\treturn owlClass;*/\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8400e8b17579fb4e72aac41c86821bbc", "score": "0.63177943", "text": "public Instance() {\n }", "title": "" }, { "docid": "66e0471c635031594a5f05107927dbdc", "score": "0.6314028", "text": "public TestInstanceCreator(Class<?> clazz)\n\t{\n\t\tthis.m_clazz = clazz;\n\t}", "title": "" }, { "docid": "a5c6562322c2806a65b30f3bcd54b0dd", "score": "0.6312711", "text": "public static <T> T instantiate(Class<T> classe) {\n\t\ttry{\n\t\t\treturn (T) classe.newInstance();\n\t\t}catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "b1c71d7785edf5caac081670572fb7a4", "score": "0.6304278", "text": "private T newInstance() throws InvalidListItemException {\r\n\t\tfinal T expectedInstance;\t\t\r\n\t\ttry {\r\n\t\t\texpectedInstance = this.expectedClass.newInstance();\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\tLOG.error(this.expectedClass.getName() + \" cannot be instantiated!\", e);\r\n\t\t\tthrow new InvalidListItemException(\r\n\t\t\t\t\tthis.expectedClass.getName() + \" cannot be instantiated!\");\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\tLOG.error(this.expectedClass.getName() + \" cannot be accessed!\", e);\r\n\t\t\tthrow new InvalidListItemException(\r\n\t\t\t\t\tthis.expectedClass.getName() + \" cannot be accessed!\");\r\n\t\t}\r\n\t\t\r\n\t\treturn expectedInstance;\r\n\t}", "title": "" }, { "docid": "df63de82ab9b3485fac9480fb1829b76", "score": "0.6279753", "text": "Object getInstance(Object classInstance) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException;", "title": "" }, { "docid": "3f9cc769256e40455dd40b8d7183d771", "score": "0.6271935", "text": "Class19 createClass19();", "title": "" }, { "docid": "c4673c4cecf8ac11ee1d4ed86c224cd4", "score": "0.62623644", "text": "public Instance(){\n\t\t\n\t}", "title": "" }, { "docid": "a97d04fc66303a1e2150a55ebc4a1f2f", "score": "0.6217448", "text": "public static Object make(Class clazz, Object[] args) {\r\n Constructor[] constructors = clazz.getConstructors();\r\n int n = constructors.length;\r\n for (int i = 0; i < n; ++i) {\r\n try {\r\n return constructors[i].newInstance(args);\r\n }\r\n catch (IllegalArgumentException e) {\r\n // try again\r\n }\r\n catch (InstantiationException e) {\r\n throw new CannotCreateException(e);\r\n }\r\n catch (IllegalAccessException e) {\r\n throw new CannotCreateException(e);\r\n }\r\n catch (InvocationTargetException e) {\r\n throw new CannotCreateException(e);\r\n }\r\n }\r\n\r\n throw new CannotCreateException(\"no constructor matches\");\r\n }", "title": "" }, { "docid": "1785e46fff050434c4895ab98b2e7582", "score": "0.62098217", "text": "Class14 createClass14();", "title": "" }, { "docid": "6869e5249c01b9751f05fb4bf137f46d", "score": "0.619562", "text": "Class15 createClass15();", "title": "" }, { "docid": "d267df25405fe53e4004b55cd3976c89", "score": "0.6193003", "text": "native static Object newInstanceImpl(Class clazz)\n\t\tthrows IllegalAccessException, InstantiationException;", "title": "" }, { "docid": "e20acf2e37fd611e577c7743ec61ee5c", "score": "0.61729145", "text": "public Serializable newInstance() ;", "title": "" }, { "docid": "58f8f0eb420565b6767db0c2f42b3815", "score": "0.6167598", "text": "private Object getInstance(final String classname, final Class<?> baseClass) {\n Object o = null;\n try {\n final Class<?> goClass = Class.forName(classname);\n if (!baseClass.isAssignableFrom(goClass)) {\n return null;\n }\n o = goClass.newInstance();\n } catch (final Exception ex) {\n return null;\n }\n return o;\n }", "title": "" }, { "docid": "5bcd01d3c3fb9209f7b3e0b24fb0aeb0", "score": "0.615911", "text": "public abstract YRecipe newInstance();", "title": "" }, { "docid": "ba9aebd92ab4a7098e657693ce3af8bd", "score": "0.6156944", "text": "public Object createInstance(Class clazz) throws IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException {\n if (clazz.isAnnotationPresent(ProxyInfo.class)) {\n ProxyInfo proxyInfo = (ProxyInfo) clazz.getAnnotation(ProxyInfo.class);\n return Proxy.newProxyInstance(clazz.getClassLoader(),\n clazz.getInterfaces(), proxyInfo.invocationHandler().getDeclaredConstructor(Object.class).newInstance(clazz.newInstance()));\n\n }\n return clazz.newInstance();\n }", "title": "" }, { "docid": "9473a0e5fcb444ee93063beaa045b78d", "score": "0.61504763", "text": "static native long createInstance( String clsid, int clsctx, long iid1, long iid2 );", "title": "" }, { "docid": "b28b143d4cf9c09705ae09d82dfde2fd", "score": "0.6139417", "text": "ClassLocator createClass(String name) throws InstrumentationError;", "title": "" }, { "docid": "69d9cc0f76c5cac526c2dc3378ea7f03", "score": "0.61322194", "text": "public DynaBean newInstance()\n throws IllegalAccessException, InstantiationException;", "title": "" }, { "docid": "5db448be24a6d991a95755fef67a4b42", "score": "0.6121031", "text": "private Object createObject(String className) {\n\t\tAssert.isNotNull(bundleID);\n\t\tAssert.isNotNull(className);\n\t\ttry {\n\t\t\tfinal Bundle bundle = Platform.getBundle(bundleID);\n\t\t\tif (bundle == null) {\n\t\t\t\treturn null;\n\t\t\t}// else\n\t\t\tClass<?> cl = bundle.loadClass(className);\n\t\t\tif (cl != null) {\n\t\t\t\treturn cl.newInstance();\n\t\t\t}\n\t\t} catch (ClassNotFoundException e) {\n\t\t\treturn null;\n\t\t} catch (InstantiationException e) {\n\t\t\treturn null;\n\t\t} catch (IllegalAccessException e) {\n\t\t\treturn null;\n\t\t} catch (NoSuchMethodError e) {\n\t\t\treturn null;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6a25ba347fa292c52bbe780e4b7ad743", "score": "0.6114876", "text": "public static void main(String[] args)\n throws ClassNotFoundException, InstantiationException,\n IllegalAccessException, CloneNotSupportedException {\n Example4 obj1 = new Example4(\"Created with new.\");\n\n // Get a reference to the Class instance for Example4, then\n // invoke newInstance() on it to create a new Example4 object\n Class myClass = Class.forName(\"Example4\");\n Example4 obj2 = (Example4) myClass.newInstance();\n\n // Make an identical copy of the the second Example4 object\n Example4 obj3 = (Example4) obj2.clone();\n }", "title": "" }, { "docid": "88899bf1ffe11ab3165a06abe1039252", "score": "0.61031467", "text": "public static Tower createInstanceOf(String className, BoundedEnv env, \r\n Location loc, ArrayList<Creep> targ)\r\n {\r\n try\r\n {\r\n //find constructor requiring environment, location, arraylist\r\n Class classToCreate = Class.forName(\"TowerDefense.\"+className);\r\n Class[] params = {env.getClass(), loc.getClass(), targ.getClass()};\r\n Constructor constructor = classToCreate.getConstructor(params);\r\n \r\n //create instance of object using found constructor\r\n Object[] argList = {env, loc, targ};\r\n return (Tower)constructor.newInstance(argList);\r\n }\r\n catch (Exception e)\r\n {\r\n System.out.println(e);\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "d8b8a74a194b288396c12a7d9760c183", "score": "0.6101851", "text": "protected abstract Object createInstance() throws WsException;", "title": "" }, { "docid": "05f8a9e9f4769d294c4997e7a0b63a09", "score": "0.6099793", "text": "@Nullable\n public T newInstance(@Nullable Object... params) {\n try {\n return constructor.newInstance(params);\n } catch (ReflectiveOperationException e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "e7480f269b5c1934ff20b9fcadda57e4", "score": "0.60971683", "text": "public Forme newInstance() {\n return this.getInstance(Forme.class);\n }", "title": "" }, { "docid": "b8ded3e74ee0ec272b274877c6a19860", "score": "0.6075174", "text": "Class2 createClass2();", "title": "" }, { "docid": "cde5fb101c70cc26b5baf6371005a7ff", "score": "0.60749125", "text": "T create(T t);", "title": "" }, { "docid": "ea671cce35650a1d3b19d2f948c76e1b", "score": "0.60742724", "text": "Class4 createClass4();", "title": "" }, { "docid": "1aaa6566596843bd5fa5a39935efedde", "score": "0.6070461", "text": "public T create(T t);", "title": "" }, { "docid": "4dc1fcc537dc22a0e0b0c3726a576449", "score": "0.6065907", "text": "Class18 createClass18();", "title": "" }, { "docid": "4157de64bdf01ec7c9048eb90bbe8963", "score": "0.60627747", "text": "private static void createObject() {\n }", "title": "" }, { "docid": "3aa228fa7c67cb0d8766d952d3dcd1d0", "score": "0.60514325", "text": "public static void main(String[] args) throws Exception {\n String className = \"reflection.Point\";\n Class<?> clazz = Class.forName(className); \n System.out.println(clazz.getCanonicalName());\n \n //Using constructor: Point()\n Object o = clazz.newInstance(); \n System.out.println(o + \" \" + o.getClass().getCanonicalName());\n \n //Using constructor: Point(int x, int y)\n Constructor<?> constructor = clazz.getConstructor(Integer.TYPE, Integer.TYPE);\n o = constructor.newInstance(2, 3);\n System.out.println(o + \" \" + o.getClass().getCanonicalName());\n }", "title": "" }, { "docid": "ab6ad8db87de9da3d8295a088ba68fa2", "score": "0.60478663", "text": "Class7 createClass7();", "title": "" }, { "docid": "54646bdd1bec00be7dc18ace77f916bd", "score": "0.60460484", "text": "Class17 createClass17();", "title": "" }, { "docid": "ea9487917ec34404cf89a881b20b4108", "score": "0.6027924", "text": "default void instantiate() throws InstantiationException {\n\n\t}", "title": "" }, { "docid": "becb67a5a303005a46a3b406eec5de55", "score": "0.6013196", "text": "public static <T> T createInstance(Class<T> pClass, Object pParam)\n throws InvocationTargetException {\n return createInstance(pClass, new Object[] {pParam});\n }", "title": "" }, { "docid": "87367cbc21c5c9d6f44164a2bb993b40", "score": "0.59973156", "text": "public static Object createNew(String fullName) {\n\t\ttry {\n\t\t\tClass type = Class.forName(fullName);\n\t\t\treturn type.newInstance();\n\t\t} catch (Exception e) {\n\t\t\tSpit.out(\"ObjectManager : Unable to create Object for type \"\n\t\t\t\t\t+ fullName + \". \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "f62eb4b4255357c4754f30a2e47c1350", "score": "0.59885174", "text": "public DownloadService createInstance() {\n DownloadService downloadService = null;\n System.out.println(parameters);\n try {\n downloadService = ((DownloadService) new FileUtils().createInstance(this.downloadClass));\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n } catch (InstantiationException e) {\n e.printStackTrace();\n }\n downloadService.setEndpoint(resolveParameters(endpoint, parameters));\n downloadService.setPrefix(resolveParameters(prefix, parameters));\n return downloadService;\n }", "title": "" }, { "docid": "5d493b9a8d2ba2175ab66dc3d4834190", "score": "0.5981927", "text": "public static <T> T create(Class<T> clazz) {\n/* */ try {\n/* 127 */ return create0(clazz);\n/* 128 */ } catch (InstantiationException e) {\n/* 129 */ logger.log(Level.INFO, \"failed to create a new instance of \" + clazz, e);\n/* 130 */ throw new InstantiationError(e.toString());\n/* 131 */ } catch (IllegalAccessException e) {\n/* 132 */ logger.log(Level.INFO, \"failed to create a new instance of \" + clazz, e);\n/* 133 */ throw new IllegalAccessError(e.toString());\n/* 134 */ } catch (InvocationTargetException e) {\n/* 135 */ Throwable target = e.getTargetException();\n/* */ \n/* */ \n/* */ \n/* 139 */ if (target instanceof RuntimeException) {\n/* 140 */ throw (RuntimeException)target;\n/* */ }\n/* */ \n/* 143 */ if (target instanceof Error) {\n/* 144 */ throw (Error)target;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 149 */ throw new IllegalStateException(target);\n/* */ } \n/* */ }", "title": "" }, { "docid": "25a161c8697e020df5ce15f126af7952", "score": "0.59804356", "text": "public static <T> T instance(Class<T> clazz) {\n\t\ttry {\n\t\t\treturn clazz.newInstance();\n\t\t} catch (InstantiationException | IllegalAccessException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "5d8c42ceda0e1c20d845cd351e0d16be", "score": "0.59751874", "text": "private static <T extends RpcScheduler> T createScheduler(\n Class<T> theClass, int priorityLevels, String ns, Configuration conf) {\n try {\n Constructor<T> ctor = theClass.getDeclaredConstructor(int.class,\n String.class, Configuration.class);\n return ctor.newInstance(priorityLevels, ns, conf);\n } catch (RuntimeException e) {\n throw e;\n } catch (InvocationTargetException e) {\n throw new RuntimeException(theClass.getName()\n + \" could not be constructed.\", e.getCause());\n } catch (Exception e) {\n }\n\n try {\n Constructor<T> ctor = theClass.getDeclaredConstructor(int.class);\n return ctor.newInstance(priorityLevels);\n } catch (RuntimeException e) {\n throw e;\n } catch (InvocationTargetException e) {\n throw new RuntimeException(theClass.getName()\n + \" could not be constructed.\", e.getCause());\n } catch (Exception e) {\n }\n\n // Last attempt\n try {\n Constructor<T> ctor = theClass.getDeclaredConstructor();\n return ctor.newInstance();\n } catch (RuntimeException e) {\n throw e;\n } catch (InvocationTargetException e) {\n throw new RuntimeException(theClass.getName()\n + \" could not be constructed.\", e.getCause());\n } catch (Exception e) {\n }\n\n // Nothing worked\n throw new RuntimeException(theClass.getName() +\n \" could not be constructed.\");\n }", "title": "" }, { "docid": "b43b4a04fb9c4e1e3cd41d9c9385bafd", "score": "0.59701586", "text": "protected abstract <T> T createMockInstance(Class<T> clazz);", "title": "" }, { "docid": "d1b4f57fbc6ba11eca7a804abd41c83d", "score": "0.5965979", "text": "public static Object createNew(String packageName, String className) {\n\t\treturn ObjectManager.createNew(packageName + '.' + className);\n\t}", "title": "" }, { "docid": "ae078bb19dc2482b133baf10f224ec43", "score": "0.5964367", "text": "GCMLInstance createGCMLInstance();", "title": "" }, { "docid": "7fde8df4e3f177e4abd8d45d4ea71cf6", "score": "0.5955801", "text": "public static BAutoInstantiatable instantiate(String classPath,\n\t\t\tObject[] args) {\n\t\ttry {\n\n\t\t\treturn (BAutoInstantiatable) Class.forName(classPath)\n\t\t\t\t\t.getConstructor(new Class[] { Object[].class })\n\t\t\t\t\t.newInstance(new Object[] { args });\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SecurityException e) {\n\n\t\t} catch (IllegalArgumentException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InstantiationException e) {\n\t\t\te.printStackTrace();\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} catch (NoSuchMethodException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "73f02e8b575ffdf26e07ac1d19f7b459", "score": "0.5949148", "text": "private void ensureNewInstance(CtClass cc) throws NotFoundException, CannotCompileException {\n CtMethod ccms[] = cc.getDeclaredMethods();\n if( !javassist.Modifier.isAbstract(cc.getModifiers()) &&\n !hasExisting(\"newInstance\", \"()Lwater/Freezable;\", ccms) ) {\n cc.addMethod(CtNewMethod.make(\n \"public water.Freezable newInstance() {\\n\" +\n \" return new \" +cc.getName()+\"();\\n\" +\n \"}\", cc));\n }\n }", "title": "" }, { "docid": "09010ab2f888f5323739d0573bba394b", "score": "0.59426314", "text": "public static <T> T createInstance(Class<T> pClass, Object... pParams)\n throws InvocationTargetException {\n T value;\n\n try {\n // Create param and argument arrays\n Class[] paramTypes = null;\n if (pParams != null && pParams.length > 0) {\n paramTypes = new Class[pParams.length];\n for (int i = 0; i < pParams.length; i++) {\n paramTypes[i] = pParams[i].getClass();\n }\n }\n\n // Get constructor\n Constructor<T> constructor = pClass.getConstructor(paramTypes);\n\n // Invoke and create instance\n value = constructor.newInstance(pParams);\n }\n /* All this to let InvocationTargetException pass on */\n catch (NoSuchMethodException nsme) {\n return null;\n }\n catch (IllegalAccessException iae) {\n return null;\n }\n catch (IllegalArgumentException iarge) {\n return null;\n }\n catch (InstantiationException ie) {\n return null;\n }\n catch (ExceptionInInitializerError err) {\n return null;\n }\n\n return value;\n }", "title": "" }, { "docid": "649245fb4d31b45e7d76d5df861f715a", "score": "0.5942149", "text": "private <T extends BlockingQueue<E>> T createCallQueueInstance(\n Class<T> theClass, int priorityLevels, int maxLen, String ns,\n int[] capacityWeights, Configuration conf) {\n try {\n Constructor<T> ctor = theClass.getDeclaredConstructor(int.class,\n int.class, String.class, int[].class, Configuration.class);\n return ctor.newInstance(priorityLevels, maxLen, ns,\n capacityWeights, conf);\n } catch (RuntimeException e) {\n throw e;\n } catch (InvocationTargetException e) {\n throw new RuntimeException(theClass.getName()\n + \" could not be constructed.\", e.getCause());\n } catch (Exception e) {\n }\n\n // Used for LinkedBlockingQueue, ArrayBlockingQueue, etc\n try {\n Constructor<T> ctor = theClass.getDeclaredConstructor(int.class);\n return ctor.newInstance(maxLen);\n } catch (RuntimeException e) {\n throw e;\n } catch (InvocationTargetException e) {\n throw new RuntimeException(theClass.getName()\n + \" could not be constructed.\", e.getCause());\n } catch (Exception e) {\n }\n\n // Last attempt\n try {\n Constructor<T> ctor = theClass.getDeclaredConstructor();\n return ctor.newInstance();\n } catch (RuntimeException e) {\n throw e;\n } catch (InvocationTargetException e) {\n throw new RuntimeException(theClass.getName()\n + \" could not be constructed.\", e.getCause());\n } catch (Exception e) {\n }\n\n // Nothing worked\n throw new RuntimeException(theClass.getName() +\n \" could not be constructed.\");\n }", "title": "" }, { "docid": "aa1f6ec3db484c5ba71b7b48795286ba", "score": "0.5940061", "text": "public static OAXSLProcBuilder newInstance()\n\t{\n\t\t//if there is already an active instance return the instance \n\t\tif(instance != null)\n\t\t{\n\t\t\t//return the instance\n\t\t\treturn instance;\n\t\t}\n\t\t//if the Configuration Builder is not instanciated create a new instance \n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t//create the instance\n\t\t\t\tinstance = new OAXSLProcBuilder();\n\t\t\t\n\t\t\t\t//return the instance\n\t\t\t\treturn instance;\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "33edacced76fecca046fc13f5cde2a2e", "score": "0.59350455", "text": "private static Object createObject(Class c, Object[] params) throws Throwable{\n\t\tConstructor[] cArr = c.getConstructors();\r\n\t\tException lastException = null;\r\n\t\tfor(int i = 0; i < cArr.length; i++){\r\n\t\t\ttry{\r\n\t\t\t\t//System.out.println(\"Creating class with constructor: \" + cArr[i]);\r\n\t\t\t\tObject o = cArr[i].newInstance(params);\r\n\t\t\t\t//System.out.println(\"Created it! Object = \" + o);\r\n\t\t\t\treturn o;\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\tlastException = e;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthrow lastException;\r\n\t}", "title": "" }, { "docid": "dbb799756ed9bf3610e0b41d44d8cb5b", "score": "0.59269834", "text": "private static void newInstance() {\n if (instance == null) {\n instance = new StateFactory();\n\n //Put a new State of each type into map. States are very lightweight objects so\n //no issue instantiating them all once at initialization.\n allStates.put(states.ATTACK, new AttackState());\n allStates.put(states.MOVE, new MoveState());\n allStates.put(states.SWAP, new SwapState());\n allStates.put(states.DEFENCE, new DefenceState());\n allStates.put(states.IDLE, new IdleState());\n allStates.put(states.OWNPIECESELECTED, new OwnPieceSelected());\n allStates.put(states.ENEMYPIECESELECTED, new EnemyPieceSel());\n allStates.put(states.HEALSTATE, new HealState());\n allStates.put(states.SUMMON, new SummonState());\n allStates.put(states.SPECIALATTACKSTATE, new SpecialAttackState());\n allStates.put(states.RANGEDATTACK, new RangedAttackState());\n }\n }", "title": "" }, { "docid": "de8b3d1b35a3f59de1368ccaf231f798", "score": "0.59155065", "text": "public Object instantiate(String className) throws ReflectionException, MBeanException { return null; }", "title": "" }, { "docid": "778b0c8b5fc85e811ec33d2a46315105", "score": "0.5915137", "text": "static Employee create(String name) {\n try {\n return (Employee) Class.forName(name).newInstance();\n } catch (Exception e) {\n throw new IllegalArgumentException(\"Unable to instantiate - \" + name);\n }\n }", "title": "" }, { "docid": "ab77484fe2bc9bc39e8a262ff7b1515c", "score": "0.59129244", "text": "@org.junit.Test\n public void com_diffblue_deeptestutils_Reflector__init__000_582b90c48ef691e0() throws Throwable {\n\n Object instance;\n {\n /* Arrange */\n\n /* Act */\n /* Creating object to test constructor */\n Class<?> c = Reflector.forName(\"com.diffblue.deeptestutils.Reflector\");\n Constructor<?> ctor = c.getDeclaredConstructor();\n ctor.setAccessible(true);\n instance = ctor.newInstance();\n\n /* Method return type is void, or not expected to return */\n }\n }", "title": "" }, { "docid": "5bb8b8cb561f37f857d474c34b0bd94d", "score": "0.591251", "text": "public static Object create(final String className, final Object[] args, final String location) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"Factory.create(\" + className + \",\" + Arrays.toString(args) + \",\" + location + \")\");\n }\n final Object o = create(className, args);\n Namespace.bind(location, o);\n return o;\n }", "title": "" }, { "docid": "e950961175141849d95513c168f29675", "score": "0.5911142", "text": "Class5 createClass5();", "title": "" }, { "docid": "bf6e72b5d2ab1386cafcc040456df300", "score": "0.59109455", "text": "public InnerClass instance(){\n return new InnerClass();\n }", "title": "" }, { "docid": "b0226f22494606fda603c37167461f3d", "score": "0.5908137", "text": "public Object createInstance() {\n Object inst = ClassUtil.createDefaultInstance(getInstanceClass(), null);\n\n MessageBroker mb = FlexContext.getMessageBroker();\n if (mb != null) {\n Destination destination = mb.getRegisteredDestination(getId());\n if (destination != null && destination.isInitialized()) {\n if (inst instanceof FlexConfigurable)\n ((FlexConfigurable) inst).initialize(getId(), getProperties());\n }\n }\n\n return inst;\n }", "title": "" }, { "docid": "01d5885d588ef9d253c75ef5d0785256", "score": "0.5906777", "text": "public static Object instantiateObject(String className, Object[] params, Class<?>[] constructor) {\n\t\tObject result = null;\n\t\ttry {\n\t\t\tif(params == null || params.length == 0) {\n\t\t\t\tresult = Class.forName(className).newInstance();\n\t\t\t} else {\n\t\t\t\tConstructor<?> con = Class.forName(className).getDeclaredConstructor(constructor == null ? getClasses(params) : constructor);\n\t\t\t\tresult = con.newInstance(params);\n\t\t\t}\n\t\t} catch (NoSuchMethodException | SecurityException\n\t\t\t\t| ClassNotFoundException | InstantiationException \n\t\t\t\t| IllegalAccessException | IllegalArgumentException \n\t\t\t\t| InvocationTargetException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "c20ec19b4a4ee47f3d737ff0c29990af", "score": "0.59049296", "text": "public static <T> T newInstance(Class<T> aClass, Object ... params) {\n aClass = toBoxedType(aClass);\n Class<?>[] paramsTypes = new Class[params.length];\n for (int i = 0; i < params.length; i++) {\n Object param = params[i];\n if (param == null) throw new NullPointerException(\"The params should not be null. param \" + i + \" is null.\");\n paramsTypes[i] = toUnboxedType(params[i].getClass());\n }\n try {\n return aClass.getConstructor(paramsTypes).newInstance(params);\n } catch (InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {\n String message = \"Cannot create new instance of \" + aClass.getName() + \" with constructor new(\" +\n Stream.of(paramsTypes).map(Class::getName).collect(Collectors.joining(\",\")) + \")\";\n throw new IllegalArgumentException(message, e);\n }\n }", "title": "" }, { "docid": "01a8f88654736aa15dd9601b9f88aa7d", "score": "0.59011066", "text": "public void create();", "title": "" } ]
d8bcf33afb45501d3b5cee34396e0577
Adds a transition tp the set of states
[ { "docid": "d1fa20b60557e6fbdf34d91db970b861", "score": "0.6565391", "text": "public void addTransition(Pair<String, LinkedHashSet<Integer>> newTransitionPair) {\n if (newTransitionPair != null) {\n this.transitions.add(newTransitionPair);\n }\n }", "title": "" } ]
[ { "docid": "f0870d32445427d2208da19e5f4104f4", "score": "0.7827387", "text": "public void addTransition(Transition t) {\r\n ourTrans.add(t);\r\n }", "title": "" }, { "docid": "3eafe658f0eaa22786d9c1e0055c6da6", "score": "0.74363303", "text": "public void addinTransition(Transition t){\n\t\tthis.in_transitions.add(t);\n\t}", "title": "" }, { "docid": "1797ba1a6f8d5249c6e5f8233c991595", "score": "0.7410497", "text": "public boolean addTransition(transition t) {\n transitions.addElement(t);\r\n //System.out.println(\"transition \"+t.name+\" created!\");\r\n return true;\r\n }", "title": "" }, { "docid": "1133036d7e27fa2f20e32abedeefff01", "score": "0.6944108", "text": "public void addTransition(DistEventType e, FSMState s) {\n assert e != null;\n assert s != null;\n assert pid == e.getPid();\n\n addTransitionNoChecks(e, s);\n }", "title": "" }, { "docid": "2063d04bf847ea2bb4b947d9c07ddd6f", "score": "0.6899546", "text": "public void addTransition( ITransition transition) {\n\t\ttransitions.put(transition.getstimulus(),transition);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d71c06618ca8deaed886eeb4f67fd9e5", "score": "0.66832227", "text": "private static void addCommonTransitions( State state ) {\n\tengine.add( state, Operation.SIMPLE, null, state ) ;\n\tengine.add( state, Operation.IF, null, state ) ;\n\tengine.add( state, Operation.TRY, null, state ) ;\n\tengine.add( state, Operation.SWITCH, null, state ) ;\n\tengine.add( state, Operation.WHILE, null, state ) ;\n\tengine.add( state, Operation.END, null, S_DONE ) ;\n }", "title": "" }, { "docid": "bdb3358c4eb10d149b2029e45c2bbc67", "score": "0.6609417", "text": "public boolean addTransition(int x, int y) {\n\r\n transition t = new transition();\r\n t.setX(x);\r\n t.setY(y);\r\n transitions.addElement(t);\r\n /*System.out.print(\"Created TRANSITION \");\r\n System.out.print(name);\r\n System.out.println(\" !\");*/\r\n return true;\r\n }", "title": "" }, { "docid": "e8adc46348ae238c986009dcb6d26a98", "score": "0.6604514", "text": "public Transition addTransition(Transition transition)\n throws FiniteStateException\n {\n // Check for errors.\n TransitionMatcher matcher = transitionMap.get(transition.getInput());\n if (matcher == null)\n throw new FiniteStateException(\n \"Cannot find input state for transition: \"\n + transition.getName());\n if (transitionMap.get(transition.getOutput()) == null)\n throw new FiniteStateException(\n \"Cannot find output state for transition: \"\n + transition.getName());\n\n matcher.addTransition(transition);\n return transition;\n }", "title": "" }, { "docid": "1f4e245fad4a185e99acc0ad92252955", "score": "0.65306616", "text": "public int addNewState() {\r\n\t\tif (this.states == null) {\r\n\t\t\tthis.states = new LTSTransitionList[1];\r\n\t\t} else {\r\n\t\t\tthis.states = Arrays.copyOf(this.states, this.states.length + 1);\r\n\t\t}\r\n\t\treturn this.states.length - 1;\r\n\t}", "title": "" }, { "docid": "f8b94fb10646ab94224215f28697654a", "score": "0.65232295", "text": "public void addTransition(State orig, T1 input, T2 output, State dest){\r\n\t\tthis.transitions.add(new Transition<T1, T2>(orig, new Tag<T1, T2>(input, output), dest));\r\n\t}", "title": "" }, { "docid": "a47c6bf39ba52d2fd55a78830948bfac", "score": "0.65005475", "text": "public void addTransition(char onSymb, NFAState toState){\n\n\t\tif(!delta.containsKey(onSymb)){\t// Need to add new symb and set in map\n\n\t\t\t// Creates a new set for onSymb in map.\n\t\t\tLinkedHashSet<NFAState> newSet = new LinkedHashSet<>();\n\t\t\tnewSet.add(toState);\t// Adds the toState to that set\n\n\t\t\t// Puts onSymb and newSet in the map\n\t\t\tdelta.put(onSymb, newSet);\n\n\t\t} else {\t// Symb exists in map. Append toState to set.\n\t\t\t\n\t\t\tdelta.get(onSymb).add(toState);\n\t\t}\n\n\t}", "title": "" }, { "docid": "dba2db61976a188d82d564515bf5f9a3", "score": "0.64565456", "text": "public void addTransition(Route transition) { \r\n if (!transition.firstFix().equals(transitionFix)) {\r\n throw new IllegalArgumentException(\"Sid \" + id + \":\" +\r\n \" first fix of transition \" + transition +\r\n \" is not last fix of basic route \" + basic);\r\n }\r\n\r\n // Add this transition to the map\r\n Route fullRoute = appendTransition(transition);\r\n last2Route.put(fullRoute.lastFix(), fullRoute);\r\n if (!fullRoute.lastFix().equals(transition.lastFix())) {\r\n throw new RuntimeException(\"transition appended wrong\");\r\n }\r\n }", "title": "" }, { "docid": "2c7ba70c00cc7bc543520da55c93fb85", "score": "0.6442619", "text": "protected static void addTransition(MooreMachine m, int source, String label, int destination)\n\t{\n\t\tm.addTransition(source, new FunctionTransition(new FunctionTree(Equals.instance, new StreamVariable(), new Constant(label)), destination));\n\t}", "title": "" }, { "docid": "f0f6596f23a2c6a3d4436b711db9e873", "score": "0.6404611", "text": "public void addTransitionGroup(String name, Guard guard, Set<State> states,\n Action action) throws FiniteStateException\n {\n for (State state : states)\n {\n String transitionName = String.format(\"%s:%s\", name, state\n .getName());\n addTransition(transitionName, guard, state, action, state);\n }\n }", "title": "" }, { "docid": "7b8595f512d8061cafa9b72e3737823f", "score": "0.63637334", "text": "TransitionList createTransitionList();", "title": "" }, { "docid": "024f5741b2e776ffa57cf712a73fb258", "score": "0.6355226", "text": "public Transition addTransition(TransitionData data) {\r\n return addTransition(new Transition(this,data));\r\n }", "title": "" }, { "docid": "80448f8c9332937d38d8b6ca885c4a52", "score": "0.6332804", "text": "private void addTransitionNoChecks(DistEventType e, FSMState s) {\n Set<FSMState> following;\n if (transitions.get(e) == null) {\n following = Util.newSet();\n transitions.put(e, following);\n } else {\n following = transitions.get(e);\n }\n\n // Since following is a set, it's okay if we have added the transition\n // to s on e before.\n following.add(s);\n }", "title": "" }, { "docid": "da04105bb81ad28386244812bb575634", "score": "0.6317005", "text": "public void addNewState(UIState state) {\n\n //System.out.println(\"ADDING NEW STATE TO HISTORY\");\n previousStates.add(state);\n //set back to the present\n this.backToPresent();\n }", "title": "" }, { "docid": "fb7c03579f8ec0e92c255157f806b372", "score": "0.63069373", "text": "public void testAddTransitionAction() throws ActionExecutionException {\n // add transition\n AddTransitionAction action = new AddTransitionAction(transition, activityGraph, manager);\n start();\n\n action.execute();\n assertTrue(\"Failed to add the transition.\", activityGraph.containsTransition(transition));\n\n for (int i = 0; i < NUMBER; i++) {\n // undo the action\n action.undo();\n assertFalse(\"Failed to execute undo() method.\", activityGraph.containsTransition(transition));\n\n // redo the action\n action.redo();\n assertTrue(\"Failed to execute redo() method.\", activityGraph.containsTransition(transition));\n }\n\n printResult(\"AddTransitionAction\");\n }", "title": "" }, { "docid": "1a09c27ce36f724a6cb0de6854b41755", "score": "0.62924916", "text": "public void addState(TrafficLightState state)\n {\n if(this.states == null)\n this.states = new ArrayList<TrafficLightState>();\n this.states.add(state);\n }", "title": "" }, { "docid": "0e581eaa0f9a0f99f38efaa3b6196391", "score": "0.62819344", "text": "public void pushState(State state){\n this.states.push(state);\n }", "title": "" }, { "docid": "3b2896c38f0d7af1007e47dfd38574ff", "score": "0.6272853", "text": "public void addTransitionGroup(String name, Guard guard, State[] states,\n Action action) throws FiniteStateException\n {\n for (State state : states)\n {\n String transitionName = String.format(\"%s:%s\", name, state\n .getName());\n addTransition(transitionName, guard, state, action, state);\n }\n }", "title": "" }, { "docid": "d599bf487a5bb8e470a6bd827d5174f4", "score": "0.6260543", "text": "public void add(States start, Event trigger, States end)\n {\n table.add(new Transition(start, trigger, end));\n }", "title": "" }, { "docid": "6d215e31525596f43f2bca9436062093", "score": "0.625268", "text": "private void addState(State s0) {\n\t\t\tmoveTree.add(s0);\n\t\t}", "title": "" }, { "docid": "e795bf48bb191e69c971d1ffd4f57a6d", "score": "0.6249154", "text": "ElementTransition createElementTransition(InputSource is) throws IOException, SAXException, ParserConfigurationException;", "title": "" }, { "docid": "a762fac1e32b2f99d9d00069ce397928", "score": "0.6194253", "text": "public State addState(State state) throws FiniteStateException\n {\n // Check for error conditions.\n if (transitionMap.get(state) != null)\n throw new FiniteStateException(\"State is already present in map: \"\n + state);\n\n if (state.isStart() && startState != null)\n {\n throw new FiniteStateException(\n \"Attempt to add initial state when initial state already exists: old=\"\n + startState.getName() + \" new=\" + state.getName());\n }\n\n // Update the map.\n transitionMap.put(state, new TransitionMatcher());\n if (state.isStart())\n {\n this.startState = state;\n }\n\n return state;\n }", "title": "" }, { "docid": "a723f5f66f5b6aefdd3db14d6c38be71", "score": "0.613375", "text": "public void addAState(String state) {\n\t\tthis.state.add(state);\n\t}", "title": "" }, { "docid": "0071f36876d632f8e7a0058b467cbffd", "score": "0.6125997", "text": "public void addState() {\n int size = getSheetSize();\n States state = new States();\n\n states.add(state);\n setCurrentStateIndex(getSheetSize() - 1);\n if (getNotify()) {\n observable.firePropertyChange(PropertyName.STATES.getName(), size, getSheetSize());\n }\n }", "title": "" }, { "docid": "e71313e608406de68cd05ac6b7b41d23", "score": "0.610689", "text": "public void updateStates() {\n\t\tstates.clear();\n\t\tfinalStates.clear();\n\t\tint number = 0;\n\t\tSet<State> visited = new HashSet<>();\n\t\tLinkedList<State> worklist = new LinkedList<>(); // TODO: make stack\n\t\tworklist.add(initialState);\n\t\t\n\t\twhile (worklist.size() > 0) {\n\t\t\tState s = worklist.removeFirst();\n\t\t\tif (!visited.contains(s)) {\n\t\t\t\ts.setId(number++);\n\t\t\t\tstates.add(s);\n\t\t\t\tif (s.isFinal) finalStates.add(s);\n\t\t\t\tfor (Transition t : s.transitionList) {\n\t\t\t\t\tworklist.add(t.toState);\n\t\t\t\t}\n\t\t\t\tvisited.add(s);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "037a2e8a7949b8e9649d25be136f7bfa", "score": "0.6106706", "text": "private static Set<Transition> getTransitions(WorldState state, Action action) {\n Set<Transition> transitions = new LinkedHashSet<Transition>();\n\n if (state.getMap()[state.getX()][state.getY()] == CellContent.EMPTY ||\n state.getMap()[state.getX()][state.getY()] == CellContent.GOLD ) {\n\n switch (action) {\n case NORTH:\n {\n float prob = 0.8f;\n WorldState succState = moveAgent(state, Action.NORTH);\n float reward = reward(state, succState);\n transitions.add(new Transition(prob, succState, reward));\n }\n {\n float prob = 0.1f;\n WorldState succState = moveAgent(state, Action.WEST);\n float reward = reward(state, succState);\n transitions.add(new Transition(prob, succState, reward));\n }\n {\n float prob = 0.1f;\n WorldState succState = moveAgent(state, Action.EAST);\n float reward = reward(state, succState);\n transitions.add(new Transition(prob, succState, reward));\n }\n break;\n\n case SOUTH:\n {\n float prob = 0.8f;\n WorldState succState = moveAgent(state, Action.SOUTH);\n float reward = reward(state, succState);\n transitions.add(new Transition(prob, succState, reward));\n }\n {\n float prob = 0.1f;\n WorldState succState = moveAgent(state, Action.WEST);\n float reward = reward(state, succState);\n transitions.add(new Transition(prob, succState, reward));\n }\n {\n float prob = 0.1f;\n WorldState succState = moveAgent(state, Action.EAST);\n float reward = reward(state, succState);\n transitions.add(new Transition(prob, succState, reward));\n }\n break;\n\n case EAST:\n {\n float prob = 0.8f;\n WorldState succState = moveAgent(state, Action.EAST);\n float reward = reward(state, succState);\n transitions.add(new Transition(prob, succState, reward));\n }\n {\n float prob = 0.1f;\n WorldState succState = moveAgent(state, Action.NORTH);\n float reward = reward(state, succState);\n transitions.add(new Transition(prob, succState, reward));\n }\n {\n float prob = 0.1f;\n WorldState succState = moveAgent(state, Action.SOUTH);\n float reward = reward(state, succState);\n transitions.add(new Transition(prob, succState, reward));\n }\n break;\n\n case WEST:\n {\n float prob = 0.8f;\n WorldState succState = moveAgent(state, Action.WEST);\n float reward = reward(state, succState);\n transitions.add(new Transition(prob, succState, reward));\n }\n {\n float prob = 0.1f;\n WorldState succState = moveAgent(state, Action.NORTH);\n float reward = reward(state, succState);\n transitions.add(new Transition(prob, succState, reward));\n }\n {\n float prob = 0.1f;\n WorldState succState = moveAgent(state, Action.SOUTH);\n float reward = reward(state, succState);\n transitions.add(new Transition(prob, succState, reward));\n }\n break;\n }\n } else {\n transitions.add(new Transition(1f, new WorldState(state.getAgent(), state.getWumpuses(), state.getMap(), 0), 0));\n }\n\n return transitions;\n }", "title": "" }, { "docid": "6ac87cf031166b91947b55ffe0fda800", "score": "0.60919166", "text": "public Set<State> nextStates();", "title": "" }, { "docid": "50d7ffff72252976d189eebfea306440", "score": "0.60822177", "text": "public void addSynthTransition(DistEventType e, FSMState s) {\n assert e != null;\n assert s != null;\n assert e.isSynthSendEvent();\n\n addTransitionNoChecks(e, s);\n }", "title": "" }, { "docid": "cc249aac257f5a4e3a76dd55afc5531f", "score": "0.6072672", "text": "public void testAddActionStateAction() throws ActionExecutionException {\n // add actionState\n AddActionStateAction action = new AddActionStateAction(actionState, activityGraph, manager);\n start();\n\n action.execute();\n assertTrue(\"Failed to add sub vertex.\",\n ((CompositeState) activityGraph.getTop()).containsSubVertex(actionState));\n\n for (int i = 0; i < NUMBER; i++) {\n // undo the action\n action.undo();\n assertFalse(\"Failed to execute undo() method.\",\n ((CompositeState) activityGraph.getTop()).containsSubVertex(actionState));\n\n // redo the action\n action.redo();\n assertTrue(\"Failed to execute redo() method.\",\n ((CompositeState) activityGraph.getTop()).containsSubVertex(actionState));\n }\n\n printResult(\"AddActionStateAction\");\n }", "title": "" }, { "docid": "40a0d4a6d9653087c1daa0d36853bb12", "score": "0.60343266", "text": "private void pushState(State state) {\n/* 89 */ this.states.push(state);\n/* */ }", "title": "" }, { "docid": "6693a4977c922b0e7e038d21c5101a62", "score": "0.6021602", "text": "public void setTransition(Transition t) {\r\n transition = t;\r\n }", "title": "" }, { "docid": "dd697561a34086783945a43a43111da9", "score": "0.5986692", "text": "@Override // androidx.leanback.app.BaseSupportFragment\n public void createStateMachineTransitions() {\n super.createStateMachineTransitions();\n this.mStateMachine.addTransition(this.STATE_ENTRANCE_ON_PREPARED, this.STATE_SET_ENTRANCE_START_STATE, this.EVT_ON_CREATEVIEW);\n }", "title": "" }, { "docid": "8a774e5d29ee3f06e6e8b6c6d0626e4e", "score": "0.5986534", "text": "private void initializeTransitions() {\n\t\tstartState = null;\n\t\ttransitionMap.clear();\n\t\tstateMap.clear();\n\t\tboolean hasEndStep = false;\n\n\t\tif (stateTransitions.isEmpty()) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"No start state was found. You must specify at least one step in a job.\");\n\t\t}\n\n\t\tfor (StateTransition stateTransition : stateTransitions) {\n\t\t\tState state = stateTransition.getState();\n\t\t\tString stateName = state.getName();\n\t\t\tstateMap.put(stateName, state);\n\t\t}\n\n\t\tfor (StateTransition stateTransition : stateTransitions) {\n\n\t\t\tState state = stateTransition.getState();\n\n\t\t\tif (!stateTransition.isEnd()) {\n\n\t\t\t\tString next = stateTransition.getNext();\n\n\t\t\t\tif (!stateMap.containsKey(next)) {\n\t\t\t\t\tthrow new IllegalArgumentException(\"Missing state for [\" + stateTransition + \"]\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse {\n\t\t\t\thasEndStep = true;\n\t\t\t}\n\n\t\t\tString name = state.getName();\n\n\t\t\tSet<StateTransition> set = transitionMap.get(name);\n\t\t\tif (set == null) {\n\t\t\t\t// If no comparator is provided, we will maintain the order of insertion\n\t\t\t\tif (stateTransitionComparator == null) {\n\t\t\t\t\tset = new LinkedHashSet<>();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tset = new TreeSet<>(stateTransitionComparator);\n\t\t\t\t}\n\n\t\t\t\ttransitionMap.put(name, set);\n\t\t\t}\n\t\t\tset.add(stateTransition);\n\n\t\t}\n\n\t\tif (!hasEndStep) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"No end state was found. You must specify at least one transition with no next state.\");\n\t\t}\n\n\t\tstartState = stateTransitions.get(0).getState();\n\n\t}", "title": "" }, { "docid": "2cdea2ec59510ac787dc51c653fe4a50", "score": "0.5981143", "text": "Transition createTransition();", "title": "" }, { "docid": "2cdea2ec59510ac787dc51c653fe4a50", "score": "0.5981143", "text": "Transition createTransition();", "title": "" }, { "docid": "2cdea2ec59510ac787dc51c653fe4a50", "score": "0.5981143", "text": "Transition createTransition();", "title": "" }, { "docid": "9fe6db4359a5d960e15d8b88793b442e", "score": "0.59696746", "text": "private void transition(State newState, String extraMessage) {\n\t\tMessageBoard.getMessageBoard().post(\"transition: \" + state + \" -> \" + newState + \n\t\t\t\t\" (\" +\t extraMessage + \")\");\n\t\tstate = newState;\n\t\tstartCount = stepCount;\n\t}", "title": "" }, { "docid": "891aaf2e88afe80cf8b106abda26253a", "score": "0.5960136", "text": "public void addAccess(Vector<?> pset) {\r\n\t\tint n = pset.size();\r\n\t\tif (n == 0)\r\n\t\t\treturn;\r\n\t\tString s = \"{\";\r\n\t\tLabelledTransitionSystem machs[] = new LabelledTransitionSystem[n];\r\n\t\tEnumeration<?> e = pset.elements();\r\n\t\tint i = 0;\r\n\t\twhile (e.hasMoreElements()) {\r\n\t\t\tString prefix = (String) e.nextElement();\r\n\t\t\ts = s + prefix;\r\n\t\t\tmachs[i] = myclone();\r\n\t\t\tmachs[i].prefixLabels(prefix);\r\n\t\t\ti++;\r\n\t\t\tif (i < n)\r\n\t\t\t\ts = s + \",\";\r\n\t\t}\r\n\t\t// new name\r\n\t\tname = s + \"}::\" + name;\r\n\t\t// new alphabet\r\n\t\tint alphaN = alphabet.length - 1;\r\n\t\talphabet = new String[(alphaN * n) + 1];\r\n\t\talphabet[0] = \"tau\";\r\n\t\tfor (int j = 0; j < n; j++) {\r\n\t\t\tfor (int k = 1; k < machs[j].alphabet.length; k++) {\r\n\t\t\t\talphabet[alphaN * j + k] = machs[j].alphabet[k];\r\n\t\t\t}\r\n\t\t}\r\n\t\t// additional transitions\r\n\t\tfor (int j = 1; j < n; j++) {\r\n\t\t\tfor (int k = 0; k < this.states.length; k++) {\r\n\t\t\t\tLTSTransitionList.offsetEvents(machs[j].states[k], alphaN * j);\r\n\t\t\t\tstates[k] = EventStateUtils.union(states[k], machs[j].states[k]);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f5c37a18ddc01c2a96e77bd6868444d3", "score": "0.5937072", "text": "public Transition addTransition(String name, Class<?> eventType,\n State input, Action action, State output)\n throws FiniteStateException\n {\n return addTransition(new Transition(name,\n new EventTypeGuard(eventType), input, action, output));\n }", "title": "" }, { "docid": "ef1a0b2dbbf4bb1e686713deada38afb", "score": "0.5933569", "text": "public synchronized void addState(String state) {\n this.state.add(state);\n if (IAFProperties.getGraphicsOn()) {\n this.smf.enable(state);\n }\n }", "title": "" }, { "docid": "548d5f082682992fb0a0a5498d2ad9d9", "score": "0.59112304", "text": "ElementTransition createElementTransition(URL url) throws IOException, SAXException, ParserConfigurationException;", "title": "" }, { "docid": "5c56ff7acc30bab3091bd5fc18ea8ddd", "score": "0.5887215", "text": "ElementTransition createElementTransition(String uri) throws IOException, SAXException, ParserConfigurationException;", "title": "" }, { "docid": "5297547ceb32dd724ff6eb2e115386e7", "score": "0.5881029", "text": "public Transition addTransition(String name, Guard guard, State input,\n Action action, State output) throws FiniteStateException\n {\n return addTransition(new Transition(name, guard, input, action, output));\n }", "title": "" }, { "docid": "6b09514a05d336939a115d956896e91f", "score": "0.5866466", "text": "public void setStateTransitions(List<StateTransition> stateTransitions) {\n\n\t\tthis.stateTransitions = stateTransitions;\n\t}", "title": "" }, { "docid": "b967541ae90686d32f5126c85fad95bc", "score": "0.58625096", "text": "public Transition addTransition(String name, String regex, State input,\n Action action, State output) throws FiniteStateException\n {\n return addTransition(new Transition(name, new RegexGuard(regex), input,\n action, output));\n }", "title": "" }, { "docid": "00f36fd54ce439be70f94b1d209fb16a", "score": "0.584008", "text": "private void scheduleTransition (int m)\n {\n transitionTime = System.currentTimeMillis() + m;\n }", "title": "" }, { "docid": "06fe02407652612e3da7d422709aecfd", "score": "0.58388555", "text": "public void addViewState(ViewState newViewState) {\n\t\tif(viewStateList == null) viewStateList = new LinkedList<ViewState>();\n\t\tviewStateList.add(newViewState);\n\t\t\n\t}", "title": "" }, { "docid": "72ea38621e729a50aba217e56312857c", "score": "0.5834774", "text": "public void addState(State state) {\n super.addState(state);\n if (state.getMetadata() == null) state.setMetadata(new Hashtable());\n fixB();\n }", "title": "" }, { "docid": "cee15002f9d355c383b737374d61ccad", "score": "0.5826278", "text": "@Override // androidx.leanback.app.BaseSupportFragment\n public void createStateMachineStates() {\n super.createStateMachineStates();\n this.mStateMachine.addState(this.STATE_SET_ENTRANCE_START_STATE);\n }", "title": "" }, { "docid": "72401060084a906a96752aa05f9e86ce", "score": "0.58186984", "text": "public void transitionTo(int newState) throws CSenseException;", "title": "" }, { "docid": "fe220b4ed152507d25c8b188bc12fba1", "score": "0.5809792", "text": "public TransitionFunction( ) {\r\n\t\tthis.transitions = new ArrayList<Transition<T1, T2>>();\r\n\t}", "title": "" }, { "docid": "5350dbc016c2340b08f8ac2f084ead2b", "score": "0.5805035", "text": "protected SimpleIncidenceTransition(SimpleIncidenceTransition t,\r\n\t\t\tboolean addToStates) {\r\n\t\tsuper(t, addToStates);\r\n\t\tvalidDirection = t.validDirection;\r\n\t\troles = new HashSet<String>(t.roles);\r\n\t}", "title": "" }, { "docid": "48b14a955b6412044959be61a3e3817b", "score": "0.5796785", "text": "protected void addGameState() {\n history.add(0, currentState.clone());\n// log.info(\"State added to history:\\n\\t\" + currentState);\n }", "title": "" }, { "docid": "40ce7d6418d054d089e5d1c67691e809", "score": "0.57885814", "text": "ElementTransition createElementTransition(Element element);", "title": "" }, { "docid": "9d8382239933f26b429224379652fe11", "score": "0.5776102", "text": "ElementTransition createElementTransitionWithContext(InputSource is) throws IOException, SAXException, ParserConfigurationException;", "title": "" }, { "docid": "d32841c6b8814d75111edce16fe79c83", "score": "0.57504404", "text": "ElementTransition createElementTransition(RStack stack);", "title": "" }, { "docid": "67ceb45b38dcd81b06b603e5562c3044", "score": "0.5700943", "text": "public TuringMachine(State[] states, State start,\n State accept, State reject)\n {\n this(states, start, accept, reject, new TransitionFunction(true));\n }", "title": "" }, { "docid": "74d99c77e51d345ea5b42fde860b2b4c", "score": "0.5693333", "text": "public void mo4784a(C0334M transition) {\n }", "title": "" }, { "docid": "32f20dcbf761f4e8cc2e9a84c90c4979", "score": "0.5684665", "text": "protected synchronized void transition(String trans_name)\n {\n // Add the transition to the queue.\n mTransition_queue.add(trans_name);\n\n // Only if a transition is not in progress should a\n // transition be issued.\n if (mStateMachineContext.isInTransition() == false)\n {\n String name;\n Method transition;\n Object[] args = new Object[0];\n\n while (mTransition_queue.isEmpty() == false)\n {\n name = (String) mTransition_queue.remove(0);\n transition = (Method) mTransition_map.get(name);\n try\n {\n transition.invoke(mStateMachineContext, args);\n logTransition(name);\n }\n catch (Exception ex)\n {\n if (mDebuggingEnabled){\n ex.printStackTrace();\n }\n }\n }\n }\n\n return;\n }", "title": "" }, { "docid": "7f3b1c5f710758eeff8724c969f22af0", "score": "0.5661105", "text": "public void addState(State state) {\n super.addState(state);\n if (state.getMetadata() == null) state.setMetadata(new Hashtable());\n }", "title": "" }, { "docid": "601665962c819eb6fa338d2c6b1f66e7", "score": "0.56223845", "text": "Map<Character, List<State>> getTransitionTable();", "title": "" }, { "docid": "341643a9b3cdefa6466a59cc6e85b4b2", "score": "0.5612098", "text": "@Override\n public Set<FSMState> getNextStates(DistEventType event) {\n assert event != null;\n assert transitions.containsKey(event);\n\n // NOTE: Unfortunately, we can't return\n // Collections.unmodifiableSet(transitions.get(event))\n // because transitions are iterated over and at the same time modified\n // in CFSM.recurseAddSendToEventTx(). This is a potential, but\n // difficult, FIXME.\n return Util.newSet(transitions.get(event));\n }", "title": "" }, { "docid": "c2a501725054f3e9da5cf9b7fdd95342", "score": "0.56029254", "text": "private void generateFSMTransitions(Set<ExplorationState> visitedStates){\n\t\t//Create FSM transitions\n\t\tfor(ExplorationState sp: visitedStates){\n\t\t\t//Add a transition from every FSM state of every incidentState to \n\t\t\t//every FSM state of this state\n\t\t\tif(sp.getName().equals(\"InitialState\")){\t\t\t\n\t\t\t\tfor(ScenarioFSMState targetFSMState: sp.getScenarioFSMStates()){\n\t\t\t\t\tString n = \"Transition\"+scenarioFSM.getScenarioFSMTransitions().size();\n\t\t\t\t\tScenarioFSMTransition fsmTransition = scenarioFSM.new ScenarioFSMTransition(n);\n\t\t\t\t\tfsmTransition.setSourceState(scenarioFSM.getState(\"InitialState\"));\n\t\t\t\t\tfsmTransition.setTargetState(targetFSMState);\n\t\t\t\t\tif(fsmTransition.getSourceState()==null || fsmTransition.getTargetState()==null){\n\t\t\t\t\t\tString msg = \"constructScenarioFSM: transition has no source/target state.\";\n\t\t\t\t\t\tthrow new NullPointerException(msg);\n\t\t\t\t\t}\n\t\t\t\t\tif(!scenarioFSM.transitionExists(fsmTransition))\n\t\t\t\t\t\tscenarioFSM.addScenarioFSMTransition(fsmTransition);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(ExplorationState spInc: sp.getIncidentStates()){\n\t\t\t\tfor(ScenarioFSMState srcFSMState: spInc.getScenarioFSMStates()){\n\t\t\t\t\tfor(ScenarioFSMState targetFSMState: sp.getScenarioFSMStates()){\n\t\t\t\t\t\tString n = \"Transition\"+scenarioFSM.getScenarioFSMTransitions().size();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tScenarioFSMTransition fsmTransition = scenarioFSM.new ScenarioFSMTransition(n);\n\t\t\t\t\t\tfsmTransition.setSourceState(srcFSMState);\n\t\t\t\t\t\tfsmTransition.setTargetState(targetFSMState);\n\t\t\t\t\t\tif(!scenarioFSM.transitionExists(fsmTransition))\n\t\t\t\t\t\t\tscenarioFSM.addScenarioFSMTransition(fsmTransition);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\t\t\t\n\t}", "title": "" }, { "docid": "310490d6e92583887faac98164bc49d8", "score": "0.55988544", "text": "public void pushState(TurtleState state) {\n\t\tstack.push(state);\n\t}", "title": "" }, { "docid": "8a34848e0859f9899a8c03d5202ede46", "score": "0.5580529", "text": "public boolean setNextState(T newState) {\n if (size() == currentIndex + 1) {\n myStateTimeline.add(newState);\n } else if (size() == currentIndex + 2) {\n myStateTimeline.set(currentIndex + 1, newState);\n } else if (size() > currentIndex + 2) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "3a9f42eceea45ca6d261607573eb120a", "score": "0.5564265", "text": "ListTransition createListTransition(InputSource is) throws IOException, SAXException, ParserConfigurationException;", "title": "" }, { "docid": "f4b668accf546ade6fc17826f04b83d1", "score": "0.5563792", "text": "public void transition() {\n if (transitionTime > transitionLength * 0.1 && !moved) {\n frame.roomLinker.startRoomSwitch(null);\n moved = true;\n }\n }", "title": "" }, { "docid": "954eb7a1c720ba93158993f461994d78", "score": "0.5556053", "text": "public void mo4785b(C0334M transition) {\n }", "title": "" }, { "docid": "b803b0386470153217516af33a0e38fb", "score": "0.55392516", "text": "public TuringMachine(State[] states, State start,\n State accept, State reject, TransitionFunction function)\n {\n super(states, start, function);\n this.accept = accept;\n this.reject = reject;\n for (int i=0; i<states.length; i++) {\n if (states[i].getMetadata() == null) {\n states[i].setMetadata(new Hashtable());\n }\n }\n }", "title": "" }, { "docid": "799a821cd0000667f51eecd58cc06edb", "score": "0.5492086", "text": "ElementTransition createElementTransitionWithContext(URL url) throws IOException, SAXException, ParserConfigurationException;", "title": "" }, { "docid": "c61545ba0839194627c6ac49eb3c1ca3", "score": "0.54827446", "text": "private void addTransitions(String diagramName, DynamicOntologyAPI ontology, HashMap<String, SBDNode> ids,\r\n\t\t\tString from, SBDNode nextNode, ArrayList<String> conditionNames) {\r\n\t\tif (nextNode.getType().equals(\"condition\")) {\r\n\t\t\t// Add the transitions in the case of conditions\r\n\t\t\tArrayList<SBDNode> conditionPaths = nextNode.getChildren();\r\n\r\n\t\t\tSBDNode actionOfConditionPath0 = ids.get(conditionPaths.get(0).getNextNode());\r\n\t\t\tArrayList<String> newConditionNames0 = new ArrayList<String>(conditionNames);\r\n\t\t\tnewConditionNames0.add(conditionPaths.get(0).getName());\r\n\t\t\tif (actionOfConditionPath0.getType().equals(\"condition\")) {\r\n\t\t\t\taddTransitions(diagramName, ontology, ids, from, actionOfConditionPath0, newConditionNames0);\r\n\t\t\t} else {\r\n\t\t\t\tontology.addTransition(from, actionOfConditionPath0.getName());\r\n\t\t\t\tontology.connectActivityDiagramToTransition(diagramName, from, actionOfConditionPath0.getName());\r\n\t\t\t\tfor (String conditionName : newConditionNames0) {\r\n\t\t\t\t\tontology.addConditionToTransition(conditionName, from, actionOfConditionPath0.getName());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tSBDNode actionOfConditionPath1 = ids.get(conditionPaths.get(1).getNextNode());\r\n\t\t\tArrayList<String> newConditionNames1 = new ArrayList<String>(conditionNames);\r\n\t\t\tnewConditionNames1.add(conditionPaths.get(1).getName());\r\n\t\t\tif (actionOfConditionPath1.getType().equals(\"condition\")) {\r\n\t\t\t\taddTransitions(diagramName, ontology, ids, from, actionOfConditionPath1, newConditionNames1);\r\n\t\t\t} else {\r\n\t\t\t\tontology.addTransition(from, actionOfConditionPath1.getName());\r\n\t\t\t\tontology.connectActivityDiagramToTransition(diagramName, from, actionOfConditionPath1.getName());\r\n\t\t\t\tfor (String conditionName : newConditionNames1) {\r\n\t\t\t\t\tontology.addConditionToTransition(conditionName, from, actionOfConditionPath1.getName());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// Add the transitions\r\n\t\t\tontology.addTransition(from, nextNode.getName());\r\n\t\t\tontology.connectActivityDiagramToTransition(diagramName, from, nextNode.getName());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "885f1ea7a2e766edcfad79bd4d4f6fb7", "score": "0.5481497", "text": "Mono<Void> transit(Transition<S, E> transition, StateContext<S, E> stateContext, Message<E> message);", "title": "" }, { "docid": "07b17663ae6fc2e27e2cfe01da6e4a16", "score": "0.5471908", "text": "synchronized void addState(RemoteData state) {\r\n \t\tthis.remoteStateList.put(state.getControllerID(), state);\r\n \t}", "title": "" }, { "docid": "6002f8b546f386b5ce7dac7a58509ab6", "score": "0.5471442", "text": "ElementTransition createElementTransition(InputStream in) throws IOException, SAXException, ParserConfigurationException;", "title": "" }, { "docid": "47c6f3356017f6e107baa72e675550f7", "score": "0.5460719", "text": "private boolean addState(int stateNumber) {\n if (firstState < 0) {\n firstState = stateNumber;\n } else if (stepSize < 0) {\n stepSize = stateNumber - firstState;\n } else {\n int step = stateNumber - lastState;\n if (step != stepSize) {\n return false;\n }\n }\n lastState = stateNumber;\n return true;\n }", "title": "" }, { "docid": "87562b41f5f644e120709bb0e69eda6f", "score": "0.5459646", "text": "public void addedActions(T game, U state) {}", "title": "" }, { "docid": "2ea0598011c657103a09501c717b6ec1", "score": "0.5459509", "text": "@Override\n public List<TransitionProbability> getTransitions(State s, String [] params){\n ObjectInstance agent = s.getFirstObjectOfClass(CLASSAGENT);\n int curX = agent.getDiscValForAttribute(ATTX);\n int curY = agent.getDiscValForAttribute(ATTY);\n\n List<TransitionProbability> tps = new ArrayList<TransitionProbability>(4);\n TransitionProbability noChangeTransition = null;\n for(int i = 0; i < this.directionProbs.length; i++){\n int [] newPos = this.moveResult(curX, curY, i);\n if(newPos[0] != curX || newPos[1] != curY){\n //new possible outcome\n State ns = s.copy();\n ObjectInstance nagent = ns.getFirstObjectOfClass(CLASSAGENT);\n nagent.setValue(ATTX, newPos[0]);\n nagent.setValue(ATTY, newPos[1]);\n\n //create transition probability object and add to our list of outcomes\n tps.add(new TransitionProbability(ns, this.directionProbs[i]));\n }\n else{\n //this direction didn't lead anywhere new\n //if there are existing possible directions\n //that wouldn't lead anywhere, aggregate with them\n if(noChangeTransition != null){\n noChangeTransition.p += this.directionProbs[i];\n }\n else{\n //otherwise create this new state and transition\n noChangeTransition = new TransitionProbability(s.copy(),\n this.directionProbs[i]);\n tps.add(noChangeTransition);\n }\n }\n }\n\n List<TransitionProbability> tpsWithBoxes = new ArrayList<TransitionProbability>(16);\n\t\t\tfor (TransitionProbability tp: tps){\n\t\t\t\tState ns = tp.s.copy();\n\t\t\t\tObjectInstance nagent = ns.getFirstObjectOfClass(CLASSAGENT);\n\t\t\t\tnagent.setValue(ATTHUNGRY, true);\n\t\t\t\tObjectInstance nbox0 = ns.getObject(\"box0\");\n\t\t\t\tObjectInstance nbox1 = ns.getObject(\"box1\");\n\n\t\t\t\tString box0Open = nbox0.getStringValForAttribute(ATTOPEN);\n\t\t\t\tString box1Open = nbox1.getStringValForAttribute(ATTOPEN);\n\t\t\t\tif (box0Open.equals(\"half-open\")){\n\t\t\t\t\tnbox0.setValue(ATTOPEN, \"open\");\n\t\t\t\t}\n\t\t\t\tif (box1Open.equals(\"half-open\")){\n\t\t\t\t\tnbox1.setValue(ATTOPEN, \"open\");\n\t\t\t\t}\n\n\t\t\t\tState nnsOC = ns.copy();\n\t\t\t\tState nnsOO = ns.copy();\n\n\t\t\t\tif (box0Open.equals(\"open\")){\n\t\t\t\t\tObjectInstance nnbox0 = nnsOC.getObject(\"box0\");\n\t\t\t\t\tnnbox0.setValue(ATTOPEN, \"closed\");\n\t\t\t\t}\n\n\t\t\t\tState nnsOCOC = nnsOC.copy();\n\t\t\t\tState nnsOCOO = nnsOC.copy();\n\t\t\t\tState nnsOOOC = nnsOO.copy();\n\t\t\t\tState nnsOOOO = nnsOO.copy();\n\n\t\t\t\tif (box1Open.equals(\"open\")){\n\t\t\t\t\tObjectInstance nnbox1OC = nnsOCOC.getObject(\"box1\");\n\t\t\t\t\tnnbox1OC.setValue(ATTOPEN, \"closed\");\n\n\t\t\t\t\tObjectInstance nnbox1OO = nnsOOOC.getObject(\"box1\");\n\t\t\t\t\tnnbox1OO.setValue(ATTOPEN, \"closed\");\n\t\t\t\t}\n\n\t\t\t\ttpsWithBoxes.add(new TransitionProbability(nnsOCOC, tp.p*.1*.1));\n\t\t\t\ttpsWithBoxes.add(new TransitionProbability(nnsOCOO, tp.p*.1*.9));\n\t\t\t\ttpsWithBoxes.add(new TransitionProbability(nnsOOOC, tp.p*.9*.1));\n\t\t\t\ttpsWithBoxes.add(new TransitionProbability(nnsOOOO, tp.p*.9*.9));\n\t\t\t}\n\n return tpsWithBoxes;\n }", "title": "" }, { "docid": "e7c24cfc92d6b8d6dbc968551ff6a58f", "score": "0.54560065", "text": "void addState(String projectName, String versionNumber, int buildNumber, String phaseName, PhaseState phaseState);", "title": "" }, { "docid": "9c05321915d59c0100b2fbecbd72e1d8", "score": "0.54499364", "text": "public void mo4786c(C0334M transition) {\n }", "title": "" }, { "docid": "f753803fc394f4eda5a9f97c460c76a3", "score": "0.54494727", "text": "AtomicTransition createAtomicTransition(InputSource is) throws IOException, SAXException, ParserConfigurationException;", "title": "" }, { "docid": "11b26d8fc39b425944aa2acc3032c09e", "score": "0.5430107", "text": "public StateTransitionMap()\n {\n }", "title": "" }, { "docid": "fe67252ce1b57a0b6d6a4bb5fb23b1e3", "score": "0.542874", "text": "public Transition(String name) {\r\n\t\tsuper(name);\r\n\t}", "title": "" }, { "docid": "ebaf84edc86b5c0309ce51575e3843f3", "score": "0.5428361", "text": "public void testAddObjectFlowStateAction() throws ActionExecutionException {\n // add objectFlowState\n AddObjectFlowStateAction action = new AddObjectFlowStateAction(objectFlowState, activityGraph, manager);\n start();\n\n action.execute();\n assertTrue(\"Failed to add sub vertex.\",\n ((CompositeState) activityGraph.getTop()).containsSubVertex(objectFlowState));\n\n for (int i = 0; i < NUMBER; i++) {\n // undo the action\n action.undo();\n assertFalse(\"Failed to execute undo() method.\",\n ((CompositeState) activityGraph.getTop()).containsSubVertex(objectFlowState));\n\n // redo the action\n action.redo();\n assertTrue(\"Failed to execute redo() method.\",\n ((CompositeState) activityGraph.getTop()).containsSubVertex(objectFlowState));\n }\n\n printResult(\"AddObjectFlowStateAction\");\n }", "title": "" }, { "docid": "dad3fb7a8dadfc0cd8b59030dc1f5c47", "score": "0.542828", "text": "public List<Transition<T1, T2>> getTransitions(State s){\r\n\t\tArrayList<Transition<T1, T2>> lt = new ArrayList<Transition<T1, T2>>();\r\n\t\tfor(Transition<T1, T2> t : this.transitions){\r\n\t\t\tif (t.getOrig().equals(s)) lt.add(t);\r\n\t\t}\r\n\t\treturn lt;\r\n\t}", "title": "" }, { "docid": "d54c98ccd8b392f84ce1a4a662963322", "score": "0.54235053", "text": "public transition(state currentState, action nextact) {\r\n actionN = new double[]{0.65, 0.15, 0.05, 0.15};\r\n actionE = new double[]{0.15, 0.65, 0.15, 0.05};\r\n actionS = new double[]{0.05, 0.15, 0.65, 0.15};\r\n actionW = new double[]{0.15, 0.05, 0.15, 0.65};\r\n this.currentState = currentState;\r\n gamegrid = currentState.getgrid();\r\n x = currentState.getRid();\r\n y = currentState.getCid();\r\n\r\n if (nextact.getIndex() == 0) {\r\n probabilities = actionN;\r\n } else if (nextact.getIndex() == 1) {\r\n probabilities = actionE;\r\n } else if (nextact.getIndex() == 2) {\r\n probabilities = actionS;\r\n } else if (nextact.getIndex() == 3) {\r\n probabilities = actionW;\r\n } else {\r\n throw (new IllegalArgumentException(\"Illegal action:\" + nextact));\r\n }\r\n }", "title": "" }, { "docid": "93e230fae316152ed2295632d22a90f8", "score": "0.5404271", "text": "public Transition(S state, double cost) {\n\t\tthis.state = state;\n\t\tthis.cost = cost;\n\t}", "title": "" }, { "docid": "3e4ccc339b85ccadb8ac1860c26fc199", "score": "0.5394033", "text": "private void addStates() {\n\t\tthis.jobStates += \"{\";\n\t\tthis.jobStates += \"\\\"jobID\\\": \" + this.currentSopremoID + \",\";\n\t\tthis.jobStates += \"\\\"timestamp\\\": \" + (this.currentTimestamp - this.startTimestamp) + \",\";\n\t\tthis.jobStates += \"\\\"jobstatus\\\": \\\"\" + this.currentJobStatus + \"\\\"\";\n\t\tthis.jobStates += \"}\";\n\t}", "title": "" }, { "docid": "adf8e896b8002f70b0bca52fc06a5d7a", "score": "0.5376884", "text": "ListTransition createListTransition(Element element);", "title": "" }, { "docid": "8fc0a83d86c610d3450ac2625a02513d", "score": "0.5369965", "text": "public void onTransitionStart(android.transition.Transition transition);", "title": "" }, { "docid": "ab3488873ecf3df73c6ff0c49dc87262", "score": "0.5366988", "text": "public void setState(int state, String character, int n1, int n2){ \n\t\tstates.add(new State(state, character, n1, n2));\n\t}", "title": "" }, { "docid": "1a03de74e4b983a3c9fce2a026d938a3", "score": "0.5364237", "text": "ElementTransition createElementTransition(Reader reader) throws IOException, SAXException, ParserConfigurationException;", "title": "" }, { "docid": "d748cad23f4f2944d1181960228edadb", "score": "0.53584903", "text": "public void setTransition(char onChar, DFANode toNode) {\r\n transitions.put(onChar, toNode);\r\n }", "title": "" }, { "docid": "dee4887c059086f9539bae760576affe", "score": "0.53565234", "text": "ElementTransition createElementTransition(Document doc);", "title": "" }, { "docid": "4665f92367ed2fdb2aa9dcb1a474191f", "score": "0.5354493", "text": "void addStateMachineInterceptor(StateMachineInterceptor<S, E> interceptor);", "title": "" }, { "docid": "785ab6e612f193ba8687a45b34f47e1c", "score": "0.5354392", "text": "public void setNextPlayer (Player transition)\n\t{\n\t\tmNextPlayer = transition;\n\t}", "title": "" }, { "docid": "012aa9089b6751038c55fb0c753397b8", "score": "0.5344471", "text": "private Transition makeTransition(int transitionId) {\n // no timers\n Set<Timer> startTimers = null;\n Set<Timer> blockingTimers = null;\n Measurable<Duration> transitionTime = Measure.zero(SECOND);\n\n // no cost\n Measurable<Money> transitionCosts = Measure.zero(NonSI.EUROCENT);\n\n // return transition\n return new Transition(transitionId,\n startTimers,\n blockingTimers,\n transitionCosts,\n transitionTime);\n }", "title": "" } ]
57db8aec8f41d484507bdeeed6625558
Generated interface for the Service GenreService.
[ { "docid": "d973ef9b96ca3f6eb83c0a47410d93fe", "score": "0.7149439", "text": "public interface GenreService {\r\n public static final String BEAN_ID = \"genreService\";\r\n\r\n public Genre save(ServiceContext ctx, Genre entity);\r\n\r\n public List<Genre> getAllGenres(ServiceContext ctx);\r\n\r\n public List<GenreBean> getAllGenreBeans(ServiceContext ctx);\r\n\r\n public Genre retrieveGenre(ServiceContext ctx, String name);\r\n\r\n public Genre updateGenre(ServiceContext ctx, Genre genre);\r\n}", "title": "" } ]
[ { "docid": "7426b1043fefda7d1a5ba230e0fc1c12", "score": "0.7288743", "text": "public interface GenreService {\n\n /**\n * Find all genres list.\n *\n * @return the list\n * @throws ServiceException the service exception\n */\n List<Genre> findAllGenres() throws ServiceException;\n}", "title": "" }, { "docid": "880916c22879846b4e86319b045ee441", "score": "0.6359866", "text": "public interface RefGenomeService extends RemoteService {\n\n\t// ===================\n\t// consts \n\t// ===================\n\tpublic String refGenomeSpeciesPath = \"ftp://ftp.geneontology.org/pub/go/doc/reference-genome-species.obo\";\n\n\t// Vocabulary\n\tpublic String HAS_STATUS = \"RefG:has_status\";\n\tpublic String HAS_EX_STATUS = \"RefG:has_ex_status\";\n\tpublic String STATUS_TARGET = \"RefG:Target\";\n\tpublic String HOMOLOGOUS_TO = \"OBO_REL:homologous_to\";\n\tpublic String HAS_PROVENANCE = \"oban:has_data_source\";\n\tpublic String HAS_EVIDENCE = \"oban:has_evidence\";\n\tpublic String HAS_COMMENT = \"dc:comment\";\n\tpublic String STATUS_COMPREHENSIVELY_ANNOTATED = \"RefG:comprehensively_annotated\";\n\tpublic String ON_DATE = \"dc:date\";\n\tpublic String IN_ORGANISM = \"OBO_REL:in_organism\";\n\tpublic String HAS_DBXREF = \"oboInOwl:hasDbXref\";\n\t\n\t// ===================\n\t// user operations \n\t// ===================\n\t\n\t/**\n\t * @param id\n\t * @return node with this unique ID\n\t */\n\tpublic NodeDTO fetchNodeById(String id);\n\t\n\t/**\n\t * query ALL nodes by a searchTerm, return matching nodes\n\t * \n\t * returned nodes can represent ontology classes, genes, homologsets etc\n\t * @param searchTerm\n\t * @return \n\t */\n\tpublic NodeDTO[] fetchNodesByName(String searchTerm);\n\t\n\t/**\n\t * limits search results by taxon\n\t * @param searchTerm -- eg SOX9\n\t * @param taxonId -- eg NCBITax:7227\n\t * @return\n\t */\n\tpublic String[] fetchIdsByNameAndTaxon(String searchTerm, String taxonId);\n\n\t/**\n\t * limits search results by taxon\n\t * @param searchTerm -- eg SOX9\n\t * @param taxonId -- eg NCBITax:7227\n\t * @return\n\t */\n\tpublic NodeDTO[] fetchNodesByNameAndTaxon(String searchTerm, String taxonId);\n\n\t/**\n\t * all taxon IDs that are part of some reference set.\n\t * the API is extensible to multiple reference sets - this call\n\t * will always return the superset. In the case of the RefG\n\t * project, there should always be 12 IDs returned\n\t * \n\t * @return IDs for taxon nodes, typically NCBITaxon\n\t */\n\tpublic String[] fetchReferenceTaxonIds();\n\n\t/**\n\t * As fetchReferenceTaxonIds()\n\t * @return Nodes representing the taxon IDs of interest\n\t */\n\tpublic NodeDTO[] fetchReferenceTaxonNodes();\n\t\n\n\t/**\n\t * Given an ID for the homology set, return the IDs of all members\n\t * @param homologSetId\n\t * @return\n\t */\n\tpublic String[] fetchEntityIdsInHomologSet(String homologSetId);\n\t\n\t//public Map<String,String> fetchLabelMapsById(String searchTerm);\n\tpublic Map fetchLabelMapsById(String searchTerm);\n\t\n\t/**\n\t * Given an Id, return all labels, names, synonyms etc by which this Id is\n\t * known\n\t * \n\t * @param id\n\t * @return\n\t */\n\tpublic String[] fetchLabelsById(String id);\n\t\n\t/**\n\t * @return all target gene Ids\n\t */\n\tpublic String[] fetchReferenceTargetIds();\n\n\t/**\n\t * @return all target gene nodes\n\t */\n\tpublic NodeDTO[] fetchReferenceTargetNodes();\n\n\t/**\n\t * @return all target gene nodes\n\t */\n\tpublic NodeDTO[] fetchReferenceTargetNodesByName(String name);\n\n\t/**\n\t * typical NCBITaxon\n\t * @return IDSpace of the taxononymy database\n\t */\n\tpublic String getTaxonIdPrefix();\n\n\tpublic void addUser(String userId, String fullName, String password); // encrypt?\n\n\tpublic void assignEntityComprehensivelyAnnotatedStatus(String userId, String geneId, DateDTO date);\n\n\tpublic void assignEntityStatusCode(String userId, String statusId, String geneId, DateDTO date); // datatype?\n\n\tpublic void assignEntityTargetStatus(String userId, String geneId, DateDTO date); // datatype?\n\t\n\t/**\n\t * make a statement of homology between a mod node ID and a target ID\n\t * \n\t * @param userId\n\t * @param nodeId\n\t * @param targetId - note we have terminology overloading here: in the OBD model, target refers to the 2nd arg in a relational statement. In the context of\n\t * refG, target means the entity specifically designated as the target gene. In this case, the target of the homology statement coincides with the gene\n\t * target: homology statements are always asserted in the direction modId -> targetId\n\t * \n\t * @param methodIds\n\t * @param provenanceId\n\t * @param comment\n\t */\n\tpublic void assignHomologyLinkStatement(String userId, String nodeId, String targetId, String[] methodIds, String provenanceId, String comment);\n\n\tpublic void assignNegativeHomologyLinkStatement(String userId, String nodeId, String targetId, String[] methodIds, String provenanceId, String comment);\n\n\tpublic void attachCommentToEntity(String entityId, String comment, String curatorId);\n\t\n\tpublic Boolean checkUserPassword(String userId, String password); // encrypt?\n\n\t/**\n\t * given a gene (or similar entity) return all homologs\n\t * @param entityId -- e.g. a gene or gene product Id\n\t * @return\n\t */\n\tpublic String[] fetchHomologousEntityIds(String entityId);\n\t\n\t/**\n\t * given an entity Id (e.g. a MOD gene ID), return all edges in\n\t * the homology graph\n\t * \n\t * @param entityId\n\t * @return\n\t */\n\tpublic StatementDTO[] fetchHomologyLinkStatementsByEntityId(String entityId);\n\t\t\n\n\n\tpublic NodeDTO[] getAllUsers();\n\n\t/**\n\t * e.g. PPOD, Homologene, ...\n\t * @return list of node objects, with IDs, labels and descriptions\n\t */\n\tpublic NodeDTO[] getHomologyMethodTypeNodes();\n\t\n\tpublic NodeDTO[] getStatusCodeNodes();\n\n\t// these two methods are convenience wrappers for the above\n\tpublic void retractEntityComprehensivelyAnnotatedStatus(String userId, String geneId);\n\t\n\t// generic status operations: actual status codes are extensible\n\tpublic void retractEntityStatusCode(String userId, String statusId, String geneId); // datatype?\n\n\t// these two methods are convenience wrappers for the above\n\tpublic void retractEntityTargetStatus(String userId, String geneId);\n\t\n\tpublic void uploadFile(String userId, String filePath, String fileType);\n\n\n\t/**\n\t * Given a target gene, is it and all homologous genes comprehensively\n\t * annotated?\n\t * \n\t * @param entityId\n\t * @return\n\t */\n\tpublic boolean isSetComprehensivelyAnnotated(String entityId);\n\n}", "title": "" }, { "docid": "54e735dfbdf3ddbdedc7e402246a9618", "score": "0.6279868", "text": "public interface TallerVirtualService {\r\n\r\n TallerVirtualResponse consultarTalleresVirtuales(TallerVirtualRequest request);\r\n \r\n GrabarTallerVirtualResponse grabarTallerVirtual(GrabarTallerVirtualRequest request);\r\n}", "title": "" }, { "docid": "d427a0244ec5e15c8f81a1fb02c2f388", "score": "0.6244963", "text": "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn RegistrationService.class.getName();\n\t}", "title": "" }, { "docid": "48d681b063869360ab67fb2048b63ed5", "score": "0.6155778", "text": "public interface IServiceGateway {\n\n /**\n * Create service instance.<br/>\n * \n * @param reqContent content of request\n * @param httpRequest http request\n * @return service instance\n * @since GSO 0.5\n */\n OperationResult createService(String reqContent, HttpServletRequest httpRequest);\n\n /**\n * Scale service instance.<br/>\n * \n * @param serviceId service instance ID\n * @param httpRequest http request\n * @return the operation id\n * @since GSO Mercury Release\n */\n String scaleService(String serviceId, HttpServletRequest httpRequest);\n\n /**\n * Delete service instances.<br/>\n * \n * @param serviceId service instance ID\n * @param httpRequest http request\n * @since GSO 0.5\n */\n String deleteService(String serviceId, HttpServletRequest httpRequest);\n\n /**\n * query the operation information\n * <br>\n * \n * @param serviceId the service id\n * @param operationId the operation id\n * @return the operation progress model\n * @since GSO 0.5\n */\n OperationModel getOperation(String serviceId, String operationId, HttpServletRequest httpRequest);\n\n /**\n * <br>\n * generate the parameters for create service\n * \n * @param templateId the template id\n * @param servletReq the http request\n * @return the parameter model for gui\n * @since GSO 0.5\n */\n CreateParameterRspModel generateCreateParameters(String templateId, HttpServletRequest servletReq);\n\n /**\n * <br>\n * get the services\n * \n * @param servletReq http request\n * @return the services array\n * @since GSO Mercury Release\n */\n List<ServiceModel> getServices(HttpServletRequest servletReq);\n\n /**\n * get the service from inventory by service id\n * <br>\n * \n * @param serviceId the service id\n * @param servletReq http request\n * @return\n * @since GSO Mercury Release\n */\n ServiceModel getService(String serviceId, HttpServletRequest servletReq);\n\n \n /**\n * add a domain\n * <br>\n * \n * @param servletReq the http request\n * @return\n * @since GSO Mercury Release\n */\n boolean addDomain(HttpServletRequest servletReq);\n \n /**\n * get the domains\n * <br>\n * \n * @param servletReq the http request\n * @return\n * @since GSO Mercury Release\n */\n List<DomainModel> getDomains(HttpServletRequest servletReq);\n \n /**\n * delete a domain\n * <br>\n * \n * @param domainName the domainName \n * @param servletReq the Http request\n * @return\n * @since GSO Mercury Release\n */\n boolean deleteDomain(String domainName, HttpServletRequest servletReq);\n}", "title": "" }, { "docid": "47d3eed69358057322aea0b56b771263", "score": "0.6146819", "text": "public interface IBusSupplierService extends Services<BusDistributor,Long> {\n}", "title": "" }, { "docid": "51c41f52b85389ec41baf4eb9d576b4e", "score": "0.61419445", "text": "public interface ResellerService {\n\n /**\n * Service Property specifying the type of product.\n */\n public static final String PRODUCT_TYPE = \"product.type\";\n\n /**\n * Buys a product.\n * The product type / name must be the value returned by\n * {@link ResellerService#getType()}\n * @return the bought product.\n */\n public Product buy();\n\n /**\n * Gets product type.\n * @return the type of product sold by the vendor\n */\n public String getType();\n\n}", "title": "" }, { "docid": "817016c76bad99c56b6455a53c6196a4", "score": "0.6127659", "text": "@Override\n\tprotected BaseService getService() {\n\t\treturn reateService;\n\t}", "title": "" }, { "docid": "00d8c2ce907a408254794b2a3f928a24", "score": "0.6059288", "text": "public interface GsysCodeService extends GenericService<GsysCode, String> {\r\n\r\n\t/**\r\n\t * 验证并保存对象.\r\n\t * \r\n\t * @generated\r\n\t */\r\n\tpublic void save(GsysCode gsysCode, Boolean isValidate) throws ValidateViolationException;\r\n\r\n\t/**\r\n\t * 从RTO中保存对象.\r\n\t */\r\n\tpublic GsysCode save(GsysCodeRTO rto);\r\n\r\n\t/**\r\n\t * 验证并更新对象.\r\n\t * \r\n\t * @generated\r\n\t */\r\n\tpublic void update(GsysCode gsysCode, Boolean isValidate) throws ValidateViolationException;\r\n\r\n\t/**\r\n\t * 从RTO中更新对象.\r\n\t */\r\n\tpublic GsysCode update(GsysCodeRTO rto);\r\n\r\n\t/**\r\n\t * 根据属性值查找对象.\r\n\t * \r\n\t * @generated\r\n\t */\r\n\tpublic List<GsysCode> findByProperty(GsysCodeField gsysCodeField, Object value);\r\n\r\n\t/**\r\n\t * 判断属性的值是否唯一.唯一返回true,否则返回false.\r\n\t * \r\n\t * @generated\r\n\t */\r\n\tpublic boolean isPropertyUnique(GsysCodeField gsysCodeField, Object newValue);\r\n\r\n\t/**\r\n\t * 根据请求参数查询.\r\n\t * \r\n\t * @generated\r\n\t */\r\n\tpublic Page<GsysCode> find(Page<GsysCode> page, GsysCodeRTO rto, Order[] orders);\r\n\r\n\t/**\r\n\t * 导入数据.\r\n\t * \r\n\t * @generated\r\n\t */\r\n\tpublic ResultMsg<GsysCode> importDatas(List<GsysCode> importList);\r\n\r\n\t/**\r\n\t * 获取所有对象用于构造keyLabel,只获取key,label属性.\r\n\t */\r\n\tpublic List<GsysCode> getAllForKeyLabel();\r\n\r\n\t/**\r\n\t * 获取所有编码数据及相关属性值.\r\n\t */\r\n\tpublic List<GsysCode> getAllAndCodeValue();\r\n\r\n\t/*\r\n\t * 删除所有记录.\r\n\t * \r\n\t * @see com.jeefuse.base.service.GenericService#deleteAll()\r\n\t */\r\n\tpublic int deleteAll();\r\n\r\n}", "title": "" }, { "docid": "59cc83cfda2ac14143fdc5b81494fe73", "score": "0.60448843", "text": "public interface GenappService {\n\n /**\n * Save a genapp.\n *\n * @param genapp the entity to save\n * @return the persisted entity\n */\n Genapp save(Genapp genapp);\n\n /**\n * Get all the genapps.\n *\n * @return the list of entities\n */\n List<Genapp> findAll();\n\n /**\n * Get the \"id\" genapp.\n *\n * @param id the id of the entity\n * @return the entity\n */\n Genapp findOne(Long id);\n\n /**\n * Delete the \"id\" genapp.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n}", "title": "" }, { "docid": "d47ebb8bd47058d5f8c08c4e6663215d", "score": "0.6044027", "text": "public interface CarService {\n\n}", "title": "" }, { "docid": "f4b22ea1c4fab00d20ce8c8a3abc60c8", "score": "0.60374063", "text": "@Override\n\tpublic String getService() {\n\t\treturn ProcessorID.service_recruit;\n\t}", "title": "" }, { "docid": "d157cb4d3ddd114b487a1f94a390f2ff", "score": "0.5992877", "text": "@Override\n protected void serviceStart() {\n }", "title": "" }, { "docid": "ab1b7aaa228288d6a23aa2322e2047a5", "score": "0.59920716", "text": "public interface SpotsService extends Service<Spots> {\n\n}", "title": "" }, { "docid": "ef0d5075eed565d8ff5dbc67f9851d1b", "score": "0.59734017", "text": "public interface GoodsSkuService extends Service<GoodsSku> {\r\n\r\n}", "title": "" }, { "docid": "0aeb26a64d4db6cbf3c269bd09b5951c", "score": "0.59642667", "text": "public CreateService() {\n\t}", "title": "" }, { "docid": "6807fb9ba55dd14f24a7cb45498a1601", "score": "0.59455395", "text": "public interface QuantificationReagentService extends GenericService<QuantificationReagent, Long>{\n \n /**\n * Get the QuantificationReagent by example from the database. If nothing was found, store the given\n * QuantificationReagent and return them.\n *\n * @param quantificationReagent the QuantificationReagent instance\n * @return the found QuantificationReagent\n */\n QuantificationReagent getQuantificationReagent(QuantificationReagent quantificationReagent);\n}", "title": "" }, { "docid": "9736b3d5de0942fd290df9525d2d1461", "score": "0.5939069", "text": "private ServiceGenerator() {\n }", "title": "" }, { "docid": "2134db32435efcf426f87305cdd07b4c", "score": "0.5935176", "text": "public InitService() {\n super(\"InitService\");\n }", "title": "" }, { "docid": "9f233c6ec7435c999ed8ee8bfd998acd", "score": "0.59341806", "text": "public interface IServiceCodeGenerator {\n default void generateClassAnnotations(Service service, GenerationContext classSignatureSection, DependenciesContext dependenciesContext) {}\n\n default void generateOperationAnnotations(Operation operation, Service service, GenerationContext methodSection, DependenciesContext dependenciesContext) {}\n\n void generateOperationSignature(Operation operation, Service service, GenerationContext methodSection, DependenciesContext dependenciesContext);\n\n void generateOperationBody(Operation operation, Service service, GenerationContext methodSection, DependenciesContext dependenciesContext);\n\n default void addServices(GenerationContext fieldSection, DependenciesContext dependenciesContext, Set<String> fieldsBean) {}\n}", "title": "" }, { "docid": "6d5212f22d0b94fdb2d08de448f67ce8", "score": "0.5926734", "text": "public getNewService() {\n\t super();\n\t }", "title": "" }, { "docid": "894c26936375803925e484ac52c5cb40", "score": "0.5878584", "text": "@Component\npublic interface GsltaxService {\n\n}", "title": "" }, { "docid": "dd0dc45692a3bc2ad53f187c3b418061", "score": "0.58590007", "text": "public interface RegistryService extends Registry{\n\n /**\n * 注册一个服务\n * @param directory\n */\n void register(Directory directory);\n\n /**\n * 订阅一个服务\n * @param directory\n */\n void subscribe(Directory directory);\n\n /**\n *\n * @return\n */\n String getServiceAddress();\n}", "title": "" }, { "docid": "5815b02d9798d19c084254eaf2eb2536", "score": "0.5854345", "text": "public interface CourrierARelancerRS\r\n extends GenericService<CourrierARelancer, Long>\r\n{\r\n\r\n\r\n}", "title": "" }, { "docid": "e58f36decdc8c9b2c0c8444f2b6fa2a9", "score": "0.58487236", "text": "public interface ShopService {\n}", "title": "" }, { "docid": "930846c913bb50bca09eed9a039a6aab", "score": "0.5847986", "text": "public interface SharderService extends Service {\n\n\t/**\n\t * Generate a new sharding for the given assignment\n\t * \n\t * @param assignment\n\t * @return the sharding\n\t * @throws RemoteException\n\t */\n\tpublic Shard generateShard(Assignment assignment) throws RemoteException;\n\n\t/**\n\t * Store a given sharding for the given assignment\n\t * \n\t * @param assignment\n\t * @param gradermap\n\t * a map from graders to sets of gradees\n\t * @return the ID of the shard\n\t * @throws RemoteException\n\t */\n\tpublic long putShard(Assignment assignment, Map<Long, Set<Long>> gradermap)\n\t\t\tthrows RemoteException;\n\n\t/**\n\t * Retrieve a specific sharding\n\t * \n\t * @param shardID\n\t * @return the sharding\n\t * @throws RemoteException\n\t */\n\tpublic Shard getShard(int shardID) throws RemoteException;\n\n\t/**\n\t * Return the shard ID for a given assignment\n\t * \n\t * @param assignment\n\t * @return the shard ID\n\t * @throws RemoteException\n\t */\n\tpublic int getShardID(Assignment assignment) throws RemoteException,\n\t\t\tNoShardsForAssignmentException;\n}", "title": "" }, { "docid": "5f5fcff1ca2204455ee9932e4114bce3", "score": "0.5838595", "text": "public interface Service {}", "title": "" }, { "docid": "4e8ecf1493223cc5dcacd14d7f2e916b", "score": "0.5816956", "text": "protected Service() {}", "title": "" }, { "docid": "690b7dcf8adf2082ab1f59e88260594c", "score": "0.5814193", "text": "public ArtistSingleService(){\n super(\"ArtistSingleService\");\n }", "title": "" }, { "docid": "40320d623b8a4a579217c61ac8c64fdb", "score": "0.5812556", "text": "public interface RegisterService {\n\n}", "title": "" }, { "docid": "e49fcce707a16d7089053345cde9152c", "score": "0.58029956", "text": "public interface NiveauScolaireRS\r\n extends GenericService<NiveauScolaire, Long>\r\n{\r\n\r\n\r\n}", "title": "" }, { "docid": "1112ed5fc7b5d997bcbb7315ac977e84", "score": "0.5777576", "text": "List<Genre> findAllGenres() throws ServiceException;", "title": "" }, { "docid": "ddf5ee2e54156ed1f1ad3f5bd4a24e15", "score": "0.5777343", "text": "@RemoteServiceRelativePath(\"greet\")\npublic interface GreetingService extends RemoteService {\n\n//\tString getDeviceData(String input);\n\tString exportToPdf(ArrayList<DeviceDTO> input);\n\tArrayList<DeviceDTO> getDeviceData(String input);\n}", "title": "" }, { "docid": "8b0c209dee97d841f0f34a4201ec77b8", "score": "0.57749784", "text": "public interface Service {\r\n}", "title": "" }, { "docid": "054cea7fc20b953483a5b2a7739799f6", "score": "0.57729346", "text": "public interface GöreviBitirenlerService {\n @GET(\"/getGöreviBitirenleriGör/{gorevid}\")\n Call<GöreviBitirenlerModel[]> getGöreviBitirenler(@Path(\"gorevid\") int gorevid);\n}", "title": "" }, { "docid": "e889be2b537f066e36564f3f1c83b831", "score": "0.5763974", "text": "public interface RemedeManager\r\n extends GenericManager<Remede, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"RemedeManager\";\r\n\r\n}", "title": "" }, { "docid": "f4fc783d0ffae13b731811746f406ded", "score": "0.5763384", "text": "public RandomNameGeneratorService() {\n this.random = new Random();\n this.usedNames = new ArrayList<>();\n }", "title": "" }, { "docid": "493d9f937b397897f1bb64ad11975eb8", "score": "0.5759668", "text": "public interface ServiceEnsemblGene {\n\n\t\n /**\n * Saves a List of EnsemblGene\n * @param created The information of the created ensemblgene.\n * @return The created ensemblgene.\n */\n\tpublic <T extends EnsemblGene> Collection<T> bulkSave(int intBatchSize, Collection<T> entities);\n\t\n\t\n /**\n * Creates a new ensemblgene.\n * @param created The information of the created ensemblgene.\n * @return The created ensemblgene.\n */\n public EnsemblGene create(DTOEnsemblGene created);\n\n \n /**\n * Deletes a ensemblgene.\n * @param ensemblgeneId The id of the deleted ensemblgene.\n * @return The deleted ensemblgene.\n * @throws SNPChromosomeNotFoundException if no ensemblgene is found with the given id.\n */\n public EnsemblGene delete(Long ensemblgeneId) throws ExceptionEnsemblGeneNotFound;\n\n\n /**\n * Updates the information of a ensemblgene.\n * @param updated The information of the updated ensemblgene.\n * @return The updated ensemblgene.\n */\n public EnsemblGene update(DTOEnsemblGene updated) throws ExceptionEnsemblGeneNotFound;\n\n \n /**\n * Finds ensemblgene by id.\n * @param oid The oid of the wanted ensemblgene.\n * @return The found ensemblgene. If no ensemblgene is found, this method returns null.\n */\n public EnsemblGene findByOid(Long oid);\n\n\n /**\n * Finds all ensemblgenes.\n * @return A list of ensemblgenes.\n */\n public List<EnsemblGene> findAll();\n\n \n /**\n * Finds all ensemblgene.\n * @return A list of ensemblgene.\n */\n\tpublic List<EnsemblGene> findByGeneName(String strGeneName);\n\n\t\n\t/**\n * Finds all ensemblgene.\n * @return A list of ensemblgene.\n */\n\tpublic Page<EnsemblGene> findByEnsemblIdLike(String strGeneName, Pageable pageable);\n}", "title": "" }, { "docid": "a7eb15b39eea37a2b3c4efac0e08274d", "score": "0.5754193", "text": "public interface ClienteUAHistoricoService extends Service {\n\t\n\t\n\t/**\n\t * Registra la informacion de un nuevo cliente.\n\t * \n\t * @param cliente\n\t * Datos del cliente a insertar.\n\t * \n\t * @param usuario\n\t * Usuario quien hace la invocacion.\n\t */\n\tpublic void insertClienteUAHistorico(ClienteUAHistorico cliente, Usuario usuario);\n /**\n * Actualiza la informacion de un nuevo cliente.\n * \n * @param cliente\n * Datos del cliente a actualizar.\n * \n * @param usuario\n * Usuario quien hace la invocacion.\n */\n public void updateClienteUAHistorico(ClienteUAHistorico cliente, Usuario usuario);\n /**\n * Verifica la informacion del cliente.\n * \n * @param cliente\n * Datos del cliente a buscar.\n * \n * @param usuario\n * Usuario quien hace la invocacion.\n */\n public int selectClienteUAHistorico(ClienteUAHistorico cliente);\n\t\n\t/**\n\t * Obtiene los datos de un cliente en base a su llaer primaria.\n\t * \n\t * @param pk\n\t * Llave primaria del cliente.\n\t * \n\t * @return\n\t * Objeto de tipo ClienteUAGenerar, poblado.\n\t */\n\tpublic ClienteUAHistorico getClienteUAHistorico(ClienteUAHistoricoPK pk);\n\t\n\t/**\n\t * Obtiene todos los clientes existentes.\n\t * \n\t * @return\n\t * Lista de objetos de tipo ClienteUAGenerar, poblados\n\t */\n\tpublic List getClientesUAHistorico();\n}", "title": "" }, { "docid": "bd9f03980f8f856d10c156a4c5799181", "score": "0.5753399", "text": "@RemoteServiceRelativePath(\"agbtoolservice\")\npublic interface AGBToolService extends RemoteService {\n\t\n\tString greetServer(String name) throws IllegalArgumentException;\n\t\n\tList<AGBSource> getTopTenAGBs() throws IllegalArgumentException;\n}", "title": "" }, { "docid": "cf4c26b97fd9e696c530b0beb89beb0d", "score": "0.57498384", "text": "public interface RetourClientManager\r\n extends GenericManager<RetourClient, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"RetourClientManager\";\r\n\r\n}", "title": "" }, { "docid": "1b4731790b8d6777664e63525923c4fa", "score": "0.5719688", "text": "public interface AnneGlobalRS\r\n extends GenericService<AnneGlobal, Long>\r\n{\r\n\r\n\r\n}", "title": "" }, { "docid": "4e65f95e481a0f2633c62befa20a48d3", "score": "0.57153124", "text": "public interface ActivitiGeneratorService {\n public void databaseGenerator();\n}", "title": "" }, { "docid": "75fcd3c0a0a36db3ef21da6f4f4acc9d", "score": "0.57058394", "text": "public RngService() {\n }", "title": "" }, { "docid": "bfc772f5057b66ef6e2b3c90d43684ec", "score": "0.5705078", "text": "public interface Service {\n}", "title": "" }, { "docid": "218f6e93687153f75de856b957a689ae", "score": "0.5697096", "text": "private ServiceLocator()\n\t{\n\t\t// create the services and add them to the list of available services\n\t\tIGenplannerService genplannerService = new GenplannerService();\n\t\tsetService(EServices.Genplanner, genplannerService);\n\t}", "title": "" }, { "docid": "ecf723bc8bf84e6aed747dd02f6bd5a4", "score": "0.5695699", "text": "@Override\r\n public void startService() {\n }", "title": "" }, { "docid": "6fe57a386bd78c5b4a30616127f3928e", "score": "0.5692161", "text": "public interface CourrierTousRS\r\n extends GenericService<CourrierTous, Long>\r\n{\r\n\r\n\r\n}", "title": "" }, { "docid": "0e57efd6e53a0dc40984cdc5b4c5db68", "score": "0.56881374", "text": "public RegistrationIntentService(String name) {\n super(name);\n }", "title": "" }, { "docid": "95219311933d9cce9b133deb4ae0318d", "score": "0.5687019", "text": "public CaloService() {\n\t\tsuper(\"CaloService\");\n\t}", "title": "" }, { "docid": "a406245a116f5d166bbb1334bf52d18f", "score": "0.56867975", "text": "public interface GoodsRecordService extends BaseService<GoodsRecord> {\n}", "title": "" }, { "docid": "a60e67f28c7a45ee2d616e2b26abfb9f", "score": "0.568447", "text": "public ReferenceService getReferenceService();", "title": "" }, { "docid": "fed7647a20a8d1a9bd66f1bf150c18db", "score": "0.5676251", "text": "@Override\n public void startService() {\n }", "title": "" }, { "docid": "2bd83162d6b613d3ebac88f5814764ee", "score": "0.5658445", "text": "public interface ProductTypeService extends Service<ProductType> {\n\n}", "title": "" }, { "docid": "286eb494b61bbd9cb0f5f0b501ef3689", "score": "0.5656819", "text": "public abstract Service getService();", "title": "" }, { "docid": "08c4aeb0dceda681db22f640f61e1e01", "score": "0.5653534", "text": "public interface SourceService extends IService<Source> {\n\n\tpublic List<Source> listDesc();\n}", "title": "" }, { "docid": "b5c815f6d73ab80ead8cad46a5ca713a", "score": "0.5648772", "text": "Service createService();", "title": "" }, { "docid": "fe7e5db53a0e1a82f167f1835af5b708", "score": "0.5645337", "text": "public interface LigneReglementFournisseurManager\r\n extends GenericManager<LigneReglementFournisseur, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"LigneReglementFournisseurManager\";\r\n\r\n}", "title": "" }, { "docid": "bc22d64f6c83ee9d39313a8c1804363c", "score": "0.5645285", "text": "public interface ColdBeverageService extends Service<ColdBeverages,Long> {\n}", "title": "" }, { "docid": "d63adc86d59ab583c3b14bfe75f2862e", "score": "0.5644058", "text": "public interface CarOwnerService extends BaseService<CarOwner, CarOwnerExample>{\n\n}", "title": "" }, { "docid": "9b6d6254df850d9d0a232fd47f1d8019", "score": "0.5643594", "text": "@Path(\"graders\")\npublic interface IGraderService {\n\n\t/**\n\t * Retrieve all available grader types\n\t * \n\t * @return A list of the grader types available in the application server.\n\t * @throws AbstractServerException\n\t */\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Path(\"types\")\n\tpublic Set<String> getGraderTypes() throws AbstractServerException;\n\n\t/**\n\t * Retrieve all registered grader instances.\n\t * \n\t * @return A list of {@link GraderInstance} instances.\n\t * @throws AbstractServerException\n\t */\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Collection<GraderInstance> getGraderInstances()\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Retrieves a particular grader instance\n\t * \n\t * @param name\n\t * The unique grader instance name\n\t * @return A {@link GraderInstance} instance\n\t * @throws AbstractServerException\n\t */\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Path(\"{name}\")\n\tpublic GraderInstance getGraderInstance(@PathParam(\"name\") String name)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Registers a grader instance to the application server.\n\t * \n\t * @param instance\n\t * The grader instance data with additional information provided\n\t * by the application server upon creation.\n\t * @return The registered grader instance\n\t * @throws AbstractServerException\n\t */\n\t@PUT\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic GraderInstance registerGraderInstance(GraderInstance instance)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Edits a grader instance.\n\t * \n\t * @param instance\n\t * The grader instance data\n\t * @return The grader instance data with additional information provided by\n\t * the application server upon creation.\n\t * @throws AbstractServerException\n\t */\n\t@POST\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic GraderInstance editGraderInstance(GraderInstance instance)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Deletes a grader instance.\n\t * \n\t * @param name\n\t * The name of the grader instance\n\t * @throws AbstractServerException\n\t */\n\t@DELETE\n\t@Path(\"{name}\")\n\tpublic void deleteGraderInstance(@PathParam(\"name\") String name)\n\t\t\tthrows AbstractServerException;\n\t\n\t/**\n\t * Retrieves all top-level series in the specified grader instance.\n\t * \n\t * @param series\n\t * The grader instance ID\n\t * @return A list of {@link Series} instances\n\t * @throws AbstractServerException\n\t */\n\t@GET\n\t@Path(\"{id}/series\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List<Series> getRootSeries(@PathParam(\"id\") String id)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Retrieves all child series for a target series in a particular grader\n\t * instance.\n\t * \n\t * @param id\n\t * The grader instance ID\n\t * @param seriesId\n\t * The series ID\n\t * @return A list of {@link Series} instances\n\t * @throws AbstractServerException\n\t */\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/series/{seriesId}/series\")\n\tpublic List<Series> getChildSeries(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"seriesId\") String seriesId)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Retrieve a particular series in a grader instance.\n\t * \n\t * @param id\n\t * The grader instance ID\n\t * @param seriesId\n\t * The series ID\n\t * @return A {@link Series} instance\n\t * @throws AbstractServerException\n\t */\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/series/{seriesId}\")\n\tpublic Series getSeries(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"seriesId\") String seriesId)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Creates a new series in the specified grader instance.\n\t * \n\t * @param id\n\t * The grader instance ID\n\t * @param series\n\t * The series data\n\t * @return The series data with additional information provided by the\n\t * application server upon creation.\n\t * @throws AbstractServerException\n\t */\n\t@PUT\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/series\")\n\tpublic Series createSeries(@PathParam(\"id\") String id, Series series)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Edits a series in the specified grader instance.\n\t * \n\t * @param id\n\t * The grader instance ID\n\t * @param series\n\t * The series data\n\t * @return The series data with additional information provided by the\n\t * application server upon update.\n\t * @throws AbstractServerException\n\t */\n\t@POST\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/series\")\n\tpublic Series editSeries(@PathParam(\"id\") String id, Series series)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Deletes a series\n\t * \n\t * @param id\n\t * The grader instance ID\n\t * @param seriesId\n\t * The series ID\n\t * @throws AbstractServerException\n\t */\n\t@DELETE\n\t@Path(\"{id}/series/{seriesId}\")\n\tpublic void deleteSeries(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"seriesId\") String seriesId)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Retrieves all contests in a series in a grader instance.\n\t * \n\t * @param id\n\t * Grader instance ID\n\t * @param seriesId\n\t * Series ID\n\t * @return A list of {@link Contest} instances\n\t * @throws AbstractServerException\n\t */\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/series/{seriesId}/contests\")\n\tpublic List<Contest> getContests(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"seriesId\") String seriesId)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Retrieves a contest in a series in a grader instance.\n\t * \n\t * @param id\n\t * The grader instance ID\n\t * @param seriesId\n\t * The series ID\n\t * @param contestId\n\t * The contest ID\n\t * @return A {@link Contest} instance\n\t * @throws AbstractServerException\n\t */\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/series/{seriesId}/contests/{contestId}\")\n\tpublic Contest getContest(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"seriesId\") String seriesId,\n\t\t\t@PathParam(\"contestId\") String contestId)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Creates a contests in a series in a grader instance.\n\t * \n\t * @param id\n\t * Grader instance ID\n\t * @param seriesId\n\t * Series ID\n\t * @return The contest data with additional information provided by the\n\t * application server upon creation.\n\t * @throws AbstractServerException\n\t */\n\t@PUT\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/series/{seriesId}/contests\")\n\tpublic Contest createContest(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"seriesId\") String seriesId, Contest contest)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Edits a contests in a series in a grader instance.\n\t * \n\t * @param id\n\t * Grader instance ID\n\t * @param seriesId\n\t * Series ID\n\t * @return The contest data with additional information provided by the\n\t * application server upon update.\n\t * @throws AbstractServerException\n\t */\n\t@POST\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/series/{seriesId}/contests\")\n\tpublic Contest editContest(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"seriesId\") String seriesId, Contest contest)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Deletes a contest from a series in a grader instance.\n\t * \n\t * @param id\n\t * The grader instance ID\n\t * @param seriesId\n\t * The series ID\n\t * @param contestId\n\t * the contest ID\n\t * @throws AbstractServerException\n\t */\n\t@DELETE\n\t@Path(\"{id}/series/{seriesId}/contests/{contestId}\")\n\tpublic void deleteContest(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"seriesId\") String seriesId,\n\t\t\t@PathParam(\"contestId\") String contestId)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Retrieves all problems in a series in a grader instance.\n\t * \n\t * @param id\n\t * The grader instance ID\n\t * @return A list of {@link Problem} instances\n\t * @throws AbstractServerException\n\t */\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/series/{seriesId}/problems\")\n\tpublic List<Problem> getProblems(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"seriesId\") String seriesId)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Retrieves all problems in a contest in a grader instance.\n\t * \n\t * @param id\n\t * The contest instance ID\n\t * @param contestId\n\t * The contest ID\n\t * @return A list of {@link Problem} instances\n\t * @throws AbstractServerException\n\t */\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/contests/{constestId}/problems\")\n\tpublic List<Problem> getContestProblems(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"contestId\") String contestId)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Retrieves a problem in a contest in a grader instance.\n\t * \n\t * @param id\n\t * The contest instance ID\n\t * @param contestId\n\t * The contest ID\n\t * @param problemId\n\t * The problem ID\n\t * @return A list of {@link Problem} instances\n\t * @throws AbstractServerException\n\t */\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/contests/{constestId}/problems/{problemId}\")\n\tpublic Problem getContestProblem(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"contestId\") String contestId,\n\t\t\t@PathParam(\"problemId\") String problemId)\n\t\t\tthrows AbstractServerException;\n\t\n\t/**\n\t * Creates a problem in a contest in a grader instance.\n\t * \n\t * @param id\n\t * The grader instance ID\n\t * @param contestId\n\t * The contest ID\n\t * @return A {@link Problem} instance\n\t * @throws AbstractServerException\n\t */\n\t@PUT\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/contests/{constestId}/problems\")\n\tpublic Problem createContestProblem(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"contestId\") String contestId, Problem problem)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Edits a problem in a contest in a grader instance.\n\t * \n\t * @param id\n\t * The grader instance ID\n\t * @param contestId\n\t * The contest ID\n\t * @return A {@link Problem} instance\n\t * @throws AbstractServerException\n\t */\n\t@POST\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/contests/{constestId}/problems\")\n\tpublic Problem editContestProblem(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"contestId\") String contestId, Problem problem)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Deletes a problem from a contest in a grader instance.\n\t * \n\t * @param id\n\t * The grader instance ID\n\t * @param contestId\n\t * The contest ID\n\t * @param problemId\n\t * The problem ID\n\t * @return A {@link Problem} instance\n\t * @throws AbstractServerException\n\t */\n\t@DELETE\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/contests/{constestId}/problems/{problemId}\")\n\tpublic void deleteContestProblem(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"contestId\") String contestId,\n\t\t\t@PathParam(\"problemId\") String problemId)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Retrieves all submissions for a problem in a grader instance.\n\t * \n\t * @param id\n\t * The contest ID\n\t * @param problemId\n\t * The problem ID\n\t * @param contestId\n\t * The contest ID\n\t * @return A list of {@link Submission} instances\n\t */\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/problems/{problemId}/submissions\")\n\tpublic List<Submission> getSubmissions(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"problemId\") String problemId)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Retrieves a submission for a problem in a grader instance.\n\t * \n\t * @param id\n\t * The contest ID\n\t * @param problemId\n\t * The problem ID\n\t * @return A list of {@link Submission} instances\n\t */\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/problems/{problemId}/submissions/{submissionId}\")\n\tpublic Submission getSubmission(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"problemId\") String problemId,\n\t\t\t@PathParam(\"submissionId\") String submissionId)\n\t\t\tthrows AbstractServerException;\n\n\t/**\n\t * Sends a submission for a problem in a grader instance.\n\t * \n\t * @param id\n\t * The grader instance ID\n\t * @param problemId\n\t * The problem ID\n\t * @return A {@link Submission} instance that contains the result of\n\t * submission. Note that in case the submission is not judged prior\n\t * to submission a status of \"waiting\" is returned.\n\t */\n\t@PUT\n\t@Produces(MediaType.APPLICATION_JSON)\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Path(\"{id}/problems/{problemId}/submissions\")\n\tpublic Submission sendSubmission(@PathParam(\"id\") String id,\n\t\t\t@PathParam(\"problemId\") String problemId, Submission submission)\n\t\t\tthrows AbstractServerException;\n}", "title": "" }, { "docid": "f1394d5d6dc29ca9e3b6a61acf41bd83", "score": "0.5641259", "text": "public interface IGroceryService extends IOperations<Grocery> {\n\n}", "title": "" }, { "docid": "74a5895b60a049afea281b2a835482d2", "score": "0.56292486", "text": "public interface ClienteService {\n\n\n}", "title": "" }, { "docid": "1a9780728582ea83f2559ec68765cf95", "score": "0.5625089", "text": "public interface IRegisters extends IService {\n \n static final String NAME = \"Registers\";\n \n /**\n * Context property names.\n */\n static final String\n PROP_ID = \"ID\", /** String, ID of the context */\n PROP_PARENT_ID = \"ParentID\", /** String, ID of a parent context */\n PROP_PROCESS_ID = \"ProcessID\", /** String, process ID */\n PROP_NAME = \"Name\", /** String, context name */\n PROP_DESCRIPTION = \"Description\", /** String, context description */\n PROP_SIZE = \"Size\", /** Number, context size in bytes. Byte arrays in get/set commands should be same size */\n PROP_READBLE = \"Readable\", /** Boolean, true if context value can be read */\n PROP_READ_ONCE = \"ReadOnce\", /** Boolean, true if reading the context (register) destroys its current value */\n PROP_WRITEABLE = \"Writeable\", /** Boolean, true if context value can be written */\n PROP_WRITE_ONCE = \"WriteOnce\", /** Boolean, true if register value can not be overwritten - every write counts */\n PROP_SIDE_EFFECTS = \"SideEffects\", /** Boolean, true if writing the context can change values of other registers */\n PROP_VOLATILE = \"Volatile\", /** Boolean, true if the register value can change even when target is stopped */\n PROP_FLOAT = \"Float\", /** Boolean, true if the register value is a floating-point value */\n PROP_BIG_ENDIAN = \"BigEndian\", /** Boolean, true if big endian */\n PROP_LEFT_TO_RIGHT = \"LeftToRight\", /** Boolean, true if the lowest numbered bit should be shown to user as the left-most bit */\n PROP_FIST_BIT = \"FirstBit\", /** Number, bit numbering base (0 or 1) to use when showing bits to user */\n PROP_BITS = \"Bits\", /** Number, if context is a bit field, contains the field bit numbers in the parent context */\n PROP_VALUES = \"Values\", /** Array of Map, predefined names (mnemonics) for some of context values */\n PROP_MEMORY_ADDRESS = \"MemoryAddress\", /** Number, the address of a memory mapped register */\n PROP_MEMORY_CONTEXT = \"MemoryContext\", /** String, the context ID of a memory context in which a memory mapped register is located */\n PROP_CAN_SEARCH = \"CanSearch\", /** Array of String, a list of attribute names which can be searched for starting on this context */\n PROP_ROLE = \"Role\"; /** String, the role the register plays in a program execution */\n \n /**\n * Values of context property \"Role\".\n */\n static final String\n ROLE_PC = \"PC\", /** Program counter. Defines instruction to execute next */\n ROLE_SP = \"SP\", /** Register defining the current stack pointer location */\n ROLE_FP = \"FP\", /** Register defining the current frame pointer location */\n ROLE_RET = \"RET\", /** Register used to store the return address for calls */\n ROLE_CORE = \"CORE\"; /** Indicates register or register groups which belong to the core state */\n \n /**\n * Search filter properties.\n */\n static final String\n SEARCH_NAME = \"Name\", /** The name of the property this filter applies too */\n SEARCH_EQUAL_VALUE = \"EqualValue\"; /** The value which is searched for */\n \n /**\n * Retrieve context info for given context ID.\n *\n * @param id context ID.\n * @param done - call back interface called when operation is completed.\n */\n IToken getContext(String id, DoneGetContext done);\n \n /**\n * Client call back interface for getContext().\n */\n interface DoneGetContext {\n /**\n * Called when context data retrieval is done.\n * @param token - command handle\n * @param error error description if operation failed, null if succeeded.\n * @param context context data.\n */\n void doneGetContext(IToken token, Exception error, RegistersContext context);\n }\n \n /**\n * Retrieve contexts available for registers commands.\n * A context corresponds to an execution thread, stack frame, registers group, etc.\n * A context can belong to a parent context. Contexts hierarchy can be simple\n * plain list or it can form a tree. It is up to target agent developers to choose\n * layout that is most descriptive for a given target. Context IDs are valid across\n * all services. In other words, all services access same hierarchy of contexts,\n * with same IDs, however, each service accesses its own subset of context's\n * attributes and functionality, which is relevant to that service.\n *\n * @param parent_context_id parent context ID. Can be null \n * to retrieve top level of the hierarchy, or one of context IDs retrieved\n * by previous getChildren commands.\n * @param done - call back interface called when operation is completed.\n */\n IToken getChildren(String parent_context_id, DoneGetChildren done);\n \n /**\n * Client call back interface for getChildren().\n */\n interface DoneGetChildren {\n /**\n * Called when context list retrieval is done.\n * @param token - command handle\n * @param error error description if operation failed, null if succeeded.\n * @param context_ids array of available context IDs.\n */\n void doneGetChildren(IToken token, Exception error, String[] context_ids);\n }\n \n /**\n * RegistersContext objects represent register groups, registers and bit fields.\n */\n interface RegistersContext {\n /**\n * Get Context ID.\n * @return context ID.\n */\n String getID();\n \n /**\n * Get parent context ID.\n * @return parent context ID.\n */\n String getParentID();\n \n /**\n * Get process ID, if applicable.\n * @return process ID.\n */\n String getProcessID();\n \n /**\n * Get context (register, register group, bit field) name.\n * @return context name.\n */\n String getName();\n \n /**\n * Get context description.\n * @return context description.\n */\n String getDescription();\n \n /**\n * Get context size in bytes.\n * Byte arrays in get()/set() methods should be same size.\n * Hardware register can be smaller then this size, for example in case\n * when register size is not an even number of bytes. In such case implementation\n * should add/remove padding that consist of necessary number of zero bits.\n * @return context size in bytes.\n */\n int getSize();\n \n /**\n * Check if context value can be read.\n * @return true if can read value of the context.\n */\n boolean isReadable();\n \n /**\n * Check if reading the context (register) destroys its current value -\n * it can be read only once.\n * @return true if read-once register.\n */\n boolean isReadOnce();\n \n /**\n * Check if context value can be written.\n * @return true if can write value of the context.\n */\n boolean isWriteable();\n \n /**\n * Check if register value can not be overwritten - every write counts.\n * @return true if write-once register.\n */\n boolean isWriteOnce();\n \n /**\n * Check if writing the context can change values of other registers.\n * @return true if has side effects.\n */\n boolean hasSideEffects();\n \n /**\n * Check if the register value can change even when target is stopped.\n * @return true if the register value can change at any time.\n */\n boolean isVolatile();\n \n /**\n * Check if the register value is a floating-point value.\n * @return true if a floating-point register.\n */\n boolean isFloat();\n \n /**\n * Check endianness of the context.\n * Big endian means decreasing numeric significance with increasing bit number.\n * The endianness is used to encode and decode values of get, getm, set and setm commands.\n * @return true if big endian.\n */\n boolean isBigEndian();\n \n /**\n * Check if the lowest numbered bit (i.e. bit #0 or bit #1 depending on\n * getFirstBitNumber() value) should be shown to user as the left-most bit or\n * the right-most bit.\n * @return true if the first bit is left-most bit.\n */\n boolean isLeftToRight();\n \n /**\n * If the context has bit field children, bit positions of the fields\n * can be zero-based or 1-based.\n * @return first bit position - 0 or 1.\n */\n int getFirstBitNumber();\n \n /**\n * If context is a bit field, get the field bit numbers in parent context.\n * @return array of bit numbers.\n */\n int[] getBitNumbers();\n \n /**\n * A context can have predefined names (mnemonics) for some its values.\n * This method returns a list of such named values.\n * @return array of named values or null.\n */\n NamedValue[] getNamedValues();\n \n /**\n * Get the address of a memory mapped register.\n * @return address.\n */\n Number getMemoryAddress();\n \n /**\n * Get the context ID of a memory context in which a memory mapped register is located.\n * @return memory context ID.\n */\n String getMemoryContext();\n \n /**\n * Get a list of property names which can be searched for starting on this context\n * @return collection of property names.\n */\n Collection<String> canSearch();\n \n /**\n * Get the role the register plays in a program execution.\n * @return role name.\n */\n String getRole();\n \n /**\n * Get complete map of context properties.\n * @return map of all available context properties.\n */\n Map<String,Object> getProperties();\n \n /**\n * Read value of the context.\n * @param done - call back object.\n * @return - pending command handle.\n */\n IToken get(DoneGet done);\n \n /**\n * Set value of the context.\n * @param value - value to write into the context.\n * @param done - call back object.\n * @return - pending command handle.\n */\n IToken set(byte[] value, DoneSet done);\n \n /**\n * Search register contexts that passes given search filter.\n * Search is only supported for properties listed in the \"CanSearch\" property.\n * @param filter - properties bag that defines search filter.\n * @param done - call back object.\n * @return - pending command handle.\n */\n IToken search(Map<String,Object> filter, DoneSearch done);\n }\n \n /**\n * A register context can have predefined names (mnemonics) for some its values.\n * NamedValue objects represent such values.\n */\n interface NamedValue {\n /**\n * Get value associated with the name.\n * @return the value as an array of bytes.\n */\n byte[] getValue();\n \n /**\n * Get name (mnemonic) of the value.\n * @return value name.\n */\n String getName();\n \n /**\n * Get human readable description of the value.\n * @return value description.\n */\n String getDescription();\n }\n \n /**\n * Read values of multiple locations in registers.\n * @param locs - array of data locations.\n * @param done - call back object.\n * @return - pending command handle.\n */\n IToken getm(Location[] locs, DoneGet done);\n \n /**\n * Set values of multiple locations in registers.\n * @param locs - array of data locations.\n * @param value - value to write into the context.\n * @param done - call back object.\n * @return - pending command handle.\n */\n IToken setm(Location[] locs, byte[] value, DoneSet done);\n \n /**\n * Class Location represents value location in register context\n */\n final class Location {\n /** Register context ID */\n public final String id;\n \n /** offset in the context, in bytes */\n public final int offs;\n \n /** value size in bytes */\n public final int size;\n \n public Location(String id, int offs, int size) {\n this.id = id;\n this.offs = offs;\n this.size = size;\n }\n }\n \n /**\n * 'get' command call back interface.\n */\n interface DoneGet {\n /**\n * Called when value retrieval is done.\n * @param token - command handle\n * @param error error description if operation failed, null if succeeded.\n * @param value context value as array of bytes.\n */\n void doneGet(IToken token, Exception error, byte[] value);\n }\n \n /**\n * 'set' command call back interface.\n */\n interface DoneSet {\n /**\n * Called when value setting is done.\n * @param token - command handle.\n * @param error error description if operation failed, null if succeeded.\n */\n void doneSet(IToken token, Exception error);\n }\n \n /**\n * 'search' command call back interface.\n */\n interface DoneSearch {\n /**\n * Called when context search is done.\n * @param token - command handle.\n * @param error error description if operation failed, null if succeeded.\n * @param paths - array of paths to each context with properties matching the filter\n */\n void doneSearch(IToken token, Exception error, String[][] paths);\n }\n \n /**\n * Add registers service event listener.\n * @param listener - event listener implementation.\n */\n void addListener(RegistersListener listener);\n \n /**\n * Remove registers service event listener.\n * @param listener - event listener implementation.\n */\n void removeListener(RegistersListener listener);\n \n /**\n * Registers event listener is notified when registers context hierarchy\n * changes, and when a register is modified by the service commands.\n */\n interface RegistersListener {\n \n /**\n * Called when register context properties changed.\n * Most targets have static set of registers and register properties.\n * Such targets never generate this event. However, some targets,\n * for example, JTAG probes, allow user to modify register definitions.\n * Clients should flush all cached register context data.\n */\n void contextChanged();\n \n /**\n * Called when register content was changed and clients\n * need to update themselves. Clients, at least, should invalidate\n * corresponding cached registers data.\n * Not every change is notified - it is not possible,\n * only those, which are not caused by normal execution of the debuggee.\n * At least, changes caused by \"set\" command should be notified.\n * @param id - register context ID.\n */\n void registerChanged(String id);\n }\n }", "title": "" }, { "docid": "4ed0417104dd648b209c8affdb4b14fc", "score": "0.56249803", "text": "protected abstract BaseService<T> getService();", "title": "" }, { "docid": "ccfe013e4a1e0dea7655e5178e1dc0aa", "score": "0.56184554", "text": "@RooService(entity = Visit.class)\npublic interface VisitService {\n}", "title": "" }, { "docid": "dd7fd41283971c8c6a2ecd7b7ff8aadf", "score": "0.56184477", "text": "public interface RelationService {\n}", "title": "" }, { "docid": "2e1ed06da3f282fd7ffb495d03a41446", "score": "0.56115186", "text": "@VertxGen\npublic interface ServicePublisher {\n\n /**\n * Publishes a record.\n *\n * @param record the record\n * @return a future notified when the operation has completed (successfully or not). In case of success,\n * the passed record has a registration id required to modify and un-register the service.\n */\n Future<Record> publish(Record record);\n\n /**\n * Un-publishes a record.\n *\n * @param id the registration id\n * @return a future notified when the operation has completed (successfully or not).\n */\n Future<Void> unpublish(String id);\n\n /**\n * Updates an existing record.\n *\n * @param record the record\n * @return a future notified when the operation has completed (successfully or not). In case of success,\n * the passed record has a registration id required to modify and un-register the service.\n */\n Future<Record> update(Record record);\n\n}", "title": "" }, { "docid": "fa32f830910aeae71dc86bf338a8b0fc", "score": "0.56096596", "text": "@Override\n\tpublic void genrator() {\n\n\t}", "title": "" }, { "docid": "44935a8f408ae1bf1bce5e772e99a5b5", "score": "0.5588029", "text": "public interface AbstractService\n{\n\t\n}", "title": "" }, { "docid": "da60095da706c7d2083c6c028242663e", "score": "0.5585427", "text": "public interface ModuleRegistryService {\n}", "title": "" }, { "docid": "c468eb40678c568af1c9df47c9621298", "score": "0.5582962", "text": "public interface ReporteGISEnviarDireccionConsultorasService extends Service {\n\n\t/**\n\t * Obtiene una lista de estados que posee una direccin de consultora\n\t * @author sguerra\n\t * @return\n\t */\n\tpublic List getEstadoDireccion();\n\n\t/**\n\t * Obtiene las estructuras geopolticas del pas\n\t * @author sguerra\n\t * @param codigo\n\t * @return\n\t */\n\tpublic List getEstructurasGeopoliticas(String codigo);\n}", "title": "" }, { "docid": "374e3841fabe246c1d88fdcbd2243510", "score": "0.558077", "text": "public interface IService {}", "title": "" }, { "docid": "ebf674a479477553121bd9cd63d8a2c6", "score": "0.55701977", "text": "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn _legalTypeLocalService.getOSGiServiceIdentifier();\n\t}", "title": "" }, { "docid": "9c1bbba0dbeafc9283a924c0df6afb0b", "score": "0.5570093", "text": "public interface ViewDipePaieRS\n extends GenericService<ViewDipePaie, Long>\n{\n\t\n\t@GET\n\t@Produces({\"text/plain\" })\n\t@Path(\"builddipemagnetique\")\n\tpublic Response buildDipeMagnetique(@Context HttpHeaders headers);\n\n}", "title": "" }, { "docid": "09c9ada538920d8c57ff6dab6b1df9db", "score": "0.55657446", "text": "public interface RefimosfService {\n List<Refimosf> list(String corp_name);\n\n public void delete(Integer mos_id);\n}", "title": "" }, { "docid": "a45a5efa1e430a553b93f6ff1f66cdc4", "score": "0.55583864", "text": "public interface PedidoEspecialService {\r\n\r\n void grabarPedidoEspecial(PedidoEspecial backBean);\r\n\r\n PedidoEspecial verPedidoEspecial(String coCompania,String coLocal ,String nuPedidoEspecial);\r\n\r\n void anularPedidoEspecial(PedidoEspecialRsl pedidoEspecialRsl);\r\n\r\n}", "title": "" }, { "docid": "d238b482219c6ce19bf6eb54dc424105", "score": "0.5554074", "text": "public interface BioDbNetService {\n\n /**\n * Retrieves a set the the gene ids that match a given gene symbols.\n * @param params the search parameters\n * @return the matching gene ids\n */\n Set<String> retrieveGeneIds(SearchParameters params);\n\n /**\n * Retrieves a set the the gene ids that match a given gene aliases.\n * @param params the search parameters\n * @return the matching gene ids\n */\n Set<String> retrieveGeneIdsByAlias(SearchParameters params);\n\n\n /**\n * Retrieves the set of genes matching the given ids and taxon.\n *\n * @param params the search parameters\n * @return the matching genes\n */\n Set<GeneResults> retrieveGenesById(SearchParameters params);\n\n /**\n * Retrieves the set of genes gene contained in the given pathways.\n * @param params the search parameters\n * @return the matching genes\n */\n Set<GeneResults> retrieveGenesByPathway(SearchParameters params);\n\n /**\n * Retrieves a set of pathways that contain the given gene symbols.\n * @param params the search parameters\n * @return the matching pathways\n */\n Set<PathwayResults> retrievePathwaysByGeneSymbols(SearchParameters params);\n\n}", "title": "" }, { "docid": "4053909435cea0c351169442f54b5104", "score": "0.5550468", "text": "public MyService() {\n super(\"name\");\n }", "title": "" }, { "docid": "59704c776deac215c491d386062e2b7d", "score": "0.55407166", "text": "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn _candidateRegistrationLocalService.getOSGiServiceIdentifier();\n\t}", "title": "" }, { "docid": "1670e6fb3ab0685b136d81c320d45d0c", "score": "0.5536624", "text": "public interface RegistrationService {\r\n /**\r\n * 根据页面编号和页面大小获取挂号列表\r\n * @param pageNo\r\n * @param pageSize\r\n * @return\r\n */\r\n List<Registration> getRegistrationList(int pageNo, int pageSize);\r\n\r\n /**\r\n * 根据用户id查询\r\n * @param userId\r\n * @return\r\n */\r\n List<Registration> getUserId(int userId);\r\n\r\n /**\r\n * 根据科室id查询\r\n * @param adId\r\n * @return\r\n */\r\n List<Registration> getAdId(int adId);\r\n\r\n /**\r\n * 增加挂号\r\n * @param registration\r\n * @return\r\n */\r\n int add(Registration registration);\r\n\r\n /**\r\n * 修改挂号信息\r\n * @param registration\r\n * @return\r\n */\r\n int modify(Registration registration);\r\n\r\n\r\n /**\r\n * 删除挂号记录\r\n * @param registration\r\n * @return\r\n */\r\n int remove(Registration registration);\r\n}", "title": "" }, { "docid": "47858a248dd9f9c9181d73286169cdba", "score": "0.55286604", "text": "public interface StudentDOService extends Service<StudentDO> {\n\n}", "title": "" }, { "docid": "7d97dd024b9e6df96f72fa903bbc2f63", "score": "0.5528481", "text": "@RemoteServiceRelativePath(\"gfinance\")\npublic interface GFinanceService extends RemoteService {\n\tOverviewPortHeader[] retrievePortfolioNames(String userId) throws IllegalArgumentException;\n\tOverviewPortRow[] retrieveOverview(String userId, String portName) throws IllegalArgumentException;\n}", "title": "" }, { "docid": "57b195ba1c6a14d1c2572bc50abee291", "score": "0.5523406", "text": "public interface UsbkeyService extends Service<Usbkey> {\n\n}", "title": "" }, { "docid": "0232c2a28e166b887c4a8459430b01a1", "score": "0.55198574", "text": "public interface GirlService {\n\n GankApi getGankGils();\n\n}", "title": "" }, { "docid": "8e5dd2dbf76ae24e026aa9a304aa486a", "score": "0.55164176", "text": "public interface CourrierAQuoteManager\r\n extends GenericManager<CourrierAQuote, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"CourrierAQuoteManager\";\r\n\r\n}", "title": "" }, { "docid": "dcbff3c2285f62d9a9d0364ec1cffdc4", "score": "0.55133826", "text": "public interface HeadlinesService extends Service<Headlines> {\n\n}", "title": "" }, { "docid": "9055e64b72b825d0b072121684b03f95", "score": "0.550762", "text": "public interface GenreApi {\n\n @GET(\"genre\")\n Call<GenreList> getGenres();\n}", "title": "" }, { "docid": "3b6209c77b25eb561bcd599dd5d75a8f", "score": "0.5507349", "text": "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn LocalRichLocalService.class.getName();\n\t}", "title": "" }, { "docid": "4e5d24dd5090af399ead4c91ad89f3dd", "score": "0.54974973", "text": "public interface DeviceGpsInfosActiveService extends GenericService<DeviceGpsInfosActive, HashMap> {\n}", "title": "" }, { "docid": "941ea757193482476ac53bab10eceba3", "score": "0.54906076", "text": "public interface IndicateurPerformanceRS\n extends GenericService<IndicateurPerformance, Long>\n{\n\n\n}", "title": "" }, { "docid": "addd9d3260bd4a25c57688e0f0ec24f8", "score": "0.5487509", "text": "private FillService() {}", "title": "" }, { "docid": "9af123010d64f4029c6d7b40e516a415", "score": "0.54846156", "text": "@VertxGen\n@ProxyGen\npublic interface DataStorageService {\n\n /**\n * Method called to create a proxy (to consume the service).\n *\n * @param vertx vert.x\n * @param address the address on the vent bus where the service is served.\n * @return the proxy on the {@link DataStorageService}\n */\n static DataStorageService createProxy(Vertx vertx, String address) {\n return ProxyHelper.createProxy(DataStorageService.class, vertx, address);\n }\n\n /**\n * Retrieves all places.\n *\n * @param resultHandler the result handler\n */\n void getAllPlaces(Handler<AsyncResult<List<Place>>> resultHandler);\n\n /**\n * Retrieves all places belonging to the given category.\n *\n * @param category the category\n * @param resultHandler the result handler\n */\n void getPlacesForCategory(String category, Handler<AsyncResult<List<Place>>> resultHandler);\n\n /**\n * Retrieves all places belonging with the given tag.\n *\n * @param tag the tag\n * @param resultHandler the result handler\n */\n void getPlacesForTag(String tag, Handler<AsyncResult<List<Place>>> resultHandler);\n\n /**\n * Adds a place in the data storage service.\n *\n * @param place the place\n * @param resultHandler handler called when the insertion is done.\n */\n void addPlace(Place place, Handler<AsyncResult<Void>> resultHandler);\n}", "title": "" }, { "docid": "1a5e79286b412c24081e3fa5aa4d5aa3", "score": "0.5474271", "text": "private GedDirectoryService() {\t\r\n\t}", "title": "" }, { "docid": "408bd82eb2a5b974902ae56db9e831d0", "score": "0.54692113", "text": "@RemoteServiceRelativePath(\"greet\")\npublic interface GreetingService extends RemoteService {\n\tString greetServer(String name) throws IllegalArgumentException;\n\n\tMap<String, String> getNames();\n\n\tString createNewUser();\n}", "title": "" }, { "docid": "5529518accfc4bc0629f17acf7382b55", "score": "0.5463707", "text": "public interface IUrunService extends IGenericService<Urunler, Long> {\n\n}", "title": "" }, { "docid": "05022e872d4aa4028997c3e9854d51be", "score": "0.5462328", "text": "@RemoteServiceRelativePath(\"greet\")\npublic interface GreetingService extends RemoteService {\n\tString greetServer(Troll name) throws IllegalArgumentException; // Pour l'ajout d'un troll\n\tString greetServer(String id, Troll name) throws IllegalArgumentException; // Pour la modification et suppression d'un troll\n\tArrayList<Troll> greetServer(String name) throws IllegalArgumentException; // Pour récupéré la list de troll\n\tString greetServer() throws IllegalArgumentException; // Pour récupéré l'url de l'image uploader\n\tString imgUploaded(String url) throws IllegalArgumentException; // Pour récupéré l'url de l'image uploader\n}", "title": "" }, { "docid": "f53a55f11666e046781bf147f8f18045", "score": "0.545824", "text": "public interface TGiftService {\n public List<TGift> getgiftListByParam(TGift gift, Order order, Pager page);\n\n public void addgift(TGift gift);\n\n public void modifygift(TGift gift);\n\n public TGift getgiftById(String id);\n}", "title": "" }, { "docid": "75940f2b5ad7051e2b7ccca3e84e7653", "score": "0.5456105", "text": "public interface ArchiveDocumentRS\r\n extends GenericService<ArchiveDocument, Long>\r\n{\r\n\r\n\r\n}", "title": "" }, { "docid": "980a396bc787232afa387d4671062fa7", "score": "0.54560006", "text": "public interface CuratorService extends EntityService<Curator> {\n}", "title": "" } ]
37130c3744ea9402436081f8ed8ec4f6
Used to manually remove a block_id to server_guid mapping from the manager database. This is used when moving data blocks around in the network and updating the manager db state.
[ { "docid": "ba6a315e4c9f0e6713761309723850ac", "score": "0.73687214", "text": "private void internalRemoveBlockServerMapping(\n BlockId block_id, long[] server_guids) {\n\n long[] current_server_guids = manager_db.getBlockIdServerMap(block_id);\n ArrayList<Long> server_list = new ArrayList(64);\n for (long s : current_server_guids) {\n server_list.add(s);\n }\n\n // Remove the servers from the list\n for (long s : server_guids) {\n int index = server_list.indexOf(s);\n if (index >= 0) {\n server_list.remove(index);\n }\n }\n\n // Set the new list\n long[] new_server_guids = new long[server_list.size()];\n for (int i = 0; i < server_list.size(); ++i) {\n new_server_guids[i] = server_list.get(i);\n }\n\n manager_db.setBlockIdServerMap(block_id, new_server_guids);\n\n }", "title": "" } ]
[ { "docid": "7c9533e80166aea588da562a839ae9f0", "score": "0.7399843", "text": "private void deregisterBlockServer(ServiceAddress block_server_address) {\n\n // Remove from the db,\n final String block_addr_key =\n \"block.addr.\" + block_server_address.formatString();\n String server_sguid_str = manager_db.getValue(block_addr_key);\n if (server_sguid_str != null) {\n manager_db.setValue(\"block.sguid.\" + server_sguid_str, null);\n manager_db.setValue(block_addr_key, null);\n }\n\n // Remove it from the map and persist\n synchronized (block_servers_map) {\n // Find the server to remove,\n ArrayList<MSBlockServer> to_remove = new ArrayList();\n for (MSBlockServer server : block_servers_list) {\n if (server.address.equals(block_server_address)) {\n to_remove.add(server);\n }\n }\n // Remove the entries that match,\n for (MSBlockServer item : to_remove) {\n block_servers_map.remove(item.server_guid);\n block_servers_list.remove(item);\n }\n persistBlockServerList(block_servers_list);\n }\n\n // Check that we aren't allocating against servers no longer in\n // the list. If so, fix the error.\n checkAndFixAllocationServers();\n\n }", "title": "" }, { "docid": "ee9ae9373b4788a79b84b9a4ae020b14", "score": "0.6705498", "text": "private void deregisterAllBlockServers() throws IOException {\n\n // Create a list of servers to be deregistered,\n ArrayList<MSBlockServer> to_remove;\n synchronized (block_servers_map) {\n to_remove = new ArrayList(block_servers_list.size());\n to_remove.addAll(block_servers_list);\n }\n\n // Remove all items in the to_remove from the db,\n for (MSBlockServer item : to_remove) {\n ServiceAddress block_server_address = item.address;\n final String block_addr_key =\n \"block.addr.\" + block_server_address.formatString();\n String server_sguid_str = manager_db.getValue(block_addr_key);\n if (server_sguid_str != null) {\n manager_db.setValue(\"block.sguid.\" + server_sguid_str, null);\n manager_db.setValue(block_addr_key, null);\n }\n }\n\n // Remove the entries from the map and persist\n synchronized (block_servers_map) {\n // Remove the entries that match,\n for (MSBlockServer item : to_remove) {\n block_servers_map.remove(item.server_guid);\n block_servers_list.remove(item);\n }\n persistBlockServerList(block_servers_list);\n }\n\n // Check that we aren't allocating against servers no longer in\n // the list. If so, fix the error.\n checkAndFixAllocationServers();\n\n }", "title": "" }, { "docid": "c6bf53f7bbe4ae7b68af3b8fd4d306af", "score": "0.56908464", "text": "private void deregisterManagerServer(\n ServiceAddress manager_server_address) throws IOException {\n // Create a list of servers to be deregistered,\n ArrayList<MSManagerServer> to_remove;\n synchronized (manager_servers_list) {\n to_remove = new ArrayList(32);\n for (MSManagerServer item : manager_servers_list) {\n if (item.address.equals(manager_server_address)) {\n to_remove.add(item);\n }\n }\n }\n\n // Remove the entries and persist\n synchronized (manager_servers_list) {\n // Remove the entries that match,\n for (MSManagerServer item : to_remove) {\n manager_servers_list.remove(item);\n // Add to the manager database\n manager_db.removeMachine(item.address);\n }\n persistManagerServerList(manager_servers_list);\n\n // Clear the unique id if we are deregistering this service,\n if (manager_server_address.equals(this_service)) {\n manager_unique_id = -1;\n persistManagerUniqueId(manager_unique_id);\n }\n }\n\n // Perform initialization on the manager\n manager_db.initialize();\n\n // Wait for initialization to complete,\n manager_db.waitUntilInitializeComplete();\n\n // Remove the manager server entry,\n manager_db.setValue(\"ms.\" + manager_server_address.formatString(), null);\n\n // Tell all the root servers of the new manager set,\n ArrayList<ServiceAddress> root_servers_set = new ArrayList(64);\n synchronized (root_servers_list) {\n for (MSRootServer rs : root_servers_list) {\n root_servers_set.add(rs.address);\n }\n }\n for (ServiceAddress r : root_servers_set) {\n informRootServerOfManagers(r);\n }\n\n }", "title": "" }, { "docid": "4f00c913dfb73728f16e6885eb87c48e", "score": "0.558242", "text": "void deleteBlockApplication(BlockApplication blockApplication);", "title": "" }, { "docid": "b1e5259d7dcfec51d5c281d373b7b78a", "score": "0.5498208", "text": "private void maybeDeRegisterBlockRefresh() {\n if (refreshingBlockLocations.get()) {\n dfsClient.removeLocatedBlocksRefresh(this);\n }\n }", "title": "" }, { "docid": "e2e1e9abb5a4a942fc10e3db4c3d3da8", "score": "0.5417203", "text": "private void deregisterRootServer(ServiceAddress root_server_address) {\n\n // Remove it from the map and persist\n synchronized (root_servers_list) {\n // Find the server to remove,\n Iterator<MSRootServer> i = root_servers_list.iterator();\n while (i.hasNext()) {\n MSRootServer server = i.next();\n if (server.address.equals(root_server_address)) {\n i.remove();\n }\n }\n persistRootServerList(root_servers_list);\n }\n\n // Remove the root server entry,\n manager_db.setValue(\"rs.\" + root_server_address.formatString(), null);\n\n // Tell root server about the managers.\n clearRootServerOfManagers(root_server_address);\n\n }", "title": "" }, { "docid": "582ce8844d176088721d3fe1cbb84e0b", "score": "0.5412498", "text": "@SuppressWarnings({ \"unchecked\" })\r\n\tpublic int removeBlock(Player player, UUID blocked) {\r\n\t\tif(player.getUniqueId().equals(blocked)) return 0;\r\n\t\t\r\n\t\tif(!isBlocked(player.getUniqueId(), blocked)) return 0;\r\n\t\t\r\n\t\tConnection conn = null;\r\n\t\tboolean error = false;\r\n\t\ttry {\r\n\t\t\tconn = ModuleFactory.getInstance().getDatabaseConnector().openConnection();\r\n\t\t\tStatement st = conn.createStatement();\r\n\t\t\tint rows = st.executeUpdate(\"DELETE FROM blockedplayers WHERE blocked = '\"+\r\n\t\t\t\t\tblocked.toString()+\"' AND blocker = '\"+player.getUniqueId().toString()+\"';\");\r\n\t\t\t\r\n\t\t\tif(rows <= 0)\r\n\t\t\t\terror = true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\terror = true;\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif(conn != null)\r\n\t\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(error) return -1;\r\n\t\t\r\n\t\tKPlayer kp = KPlayer.getKPlayer(player);\r\n\t\tif(!kp.dataExists(blockdata)) //Add to cache\r\n\t\t\tkp.setData(blockdata, new ArrayList<UUID>());\r\n\t\telse\r\n\t\t\t((List<UUID>)kp.getList(blockdata)).remove(blocked);\r\n\t\t\r\n\t\treturn 1;\r\n\t}", "title": "" }, { "docid": "5d91ad2d053f698cd577198885ff1fd2", "score": "0.53671706", "text": "public void removeBlocker(String name) {\n synchronized (blockerMap) {\n blockerMap.remove(name);\n }\n }", "title": "" }, { "docid": "10885667ccb637cb32a434665c11a453", "score": "0.53491694", "text": "private void internalAddBlockServerMapping(\n BlockId block_id, long[] server_guids) {\n\n long[] current_server_guids = manager_db.getBlockIdServerMap(block_id);\n ArrayList<Long> server_list = new ArrayList(64);\n for (long s : current_server_guids) {\n server_list.add(s);\n }\n\n // Add the servers to the list,\n for (long s : server_guids) {\n if (!server_list.contains(s)) {\n server_list.add(s);\n }\n }\n\n // Set the new list\n if (!server_list.isEmpty()) {\n long[] new_server_guids = new long[server_list.size()];\n for (int i = 0; i < server_list.size(); ++i) {\n new_server_guids[i] = server_list.get(i);\n }\n\n manager_db.setBlockIdServerMap(block_id, new_server_guids);\n }\n\n }", "title": "" }, { "docid": "a09eedb4ab31873678367c89584f973a", "score": "0.53261113", "text": "private void cleanBlock(Integer blockID){\n System.out.println(\"[Cache]: Freeing Cache Block \"+blockID);\n if(dirty[blockID]){\n memory.writeCacheBlock(cache[blockID], location.get(tags[blockID])); \n System.out.println(\"[Cache]: Wrote back to memory because it was dirty.\");\n } \n this.cache[blockID]=null;\n dirty[blockID]=false;\n lastUsed[blockID] = null;\n location.remove(tags[blockID]);\n tags[blockID] = null;\n \n }", "title": "" }, { "docid": "17e23647b7284e58e4d18b5af8308c25", "score": "0.5325173", "text": "@Override\n\tpublic void delete(Block block) {\n\t\tblockDao.delete(block);\n\t}", "title": "" }, { "docid": "5adaa7fcb3dc3329aaf24830588b4b32", "score": "0.5309712", "text": "@Override\n\tpublic Result deleteServer() throws NFVOException\n\t{\n\t\tDBAttribute dbattr = new DBAttribute();\n\t\tdbattr.setName(this.vnfserver.getServerId());\n\t\tdbattr.setType(\"lb_group\");\n\t\tfor (IServer s : LB_MEMBERS)\n\t\t{\n\t\t\tInstanceOperator.deleteMember(s.getVNFServer().getMemberId());\n\t\t\tInstanceOperator.deleteServer(s.getVNFServer().getServerId());\n\t\t\tdbattr.setValue(s.getVNFServer().getServerId());\n\t\t\tDBOperator.deleteAttribute(dbattr);\n\t\t\tTcpServer.unregister(s);\n\t\t}\n\t\tInstanceOperator.deleteServer(this.vnfserver.getServerId());\n\t\t// clear poolId,vipId record\n\t\tdbattr = new DBAttribute();\n\t\tdbattr.setName(this.vnfserver.getServerId());\n\t\tdbattr.setType(\"lb_info\");\n\t\tdbattr.setValue(this.vnfserver.getServerId());\n\t\tDBOperator.deleteAttribute(dbattr);\n\t\t// delete servers\n\t\tDBOperator.deleteServerById(this.vnfserver.getServerId());\n\t\t// unregister monitor\n\t\tTcpServer.unregister(this);\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b4f013410929127202548b5a8c451756", "score": "0.5304187", "text": "public void removeBlockade(EntityID blockadeID){\n BlockadeInfo bi=getBlockadeByID(blockadeID);\n if(bi!=null){\n blockades.remove(bi);\n System.out.println(\"removido blockade \"+bi.getId());\n }\n }", "title": "" }, { "docid": "ca36750b9c3fa3ff44f6ec475efe9543", "score": "0.53028506", "text": "void removeBlockedAddress(String normalizedAddress) {\n\t\tIterator<BlockedAddress> iterator = retainedFragment.blockedList.iterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tif(iterator.next().normalizedAddress.equals(normalizedAddress)) {\n\t\t\t\titerator.remove();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0dbe987d53040f9d2121ce6fbf4612f1", "score": "0.5294914", "text": "public void remove(){\r\n\t\tgamecontrol.blocks.remove(this);\r\n\t}", "title": "" }, { "docid": "87bd734bedb253f8d4df84ba2a0d8856", "score": "0.5230785", "text": "void removeAtlasMetaserverAlert() throws SQLException {\n AlertDefinitionDAO alertDefinitionDAO = injector.getInstance(AlertDefinitionDAO.class);\n Clusters clusters = injector.getInstance(Clusters.class);\n Map<String, Cluster> clusterMap = getCheckedClusterMap(clusters);\n String atlas_metastore_alert_name = \"metadata_server_process\";\n\n for (final Cluster cluster : clusterMap.values()) {\n long clusterId = cluster.getClusterId();\n\n AlertDefinitionEntity definition = alertDefinitionDAO.findByName(clusterId, atlas_metastore_alert_name);\n if (null != definition) {\n alertDefinitionDAO.remove(definition);\n }\n }\n }", "title": "" }, { "docid": "bf072ef182d6c1b6551ea15f0500d0bc", "score": "0.52234095", "text": "public void removeBlock(Block s) {\n\t\tshape.remove(s);\n\t}", "title": "" }, { "docid": "978e0540a6e8a156e2da06225a576b64", "score": "0.51843745", "text": "private void registerBlockServer(ServiceAddress block_server_address) {\n\n // Get the block server uid,\n MessageStream message_out = new MessageStream(16);\n message_out.addMessage(\"serverGUID\");\n message_out.closeMessage();\n\n // Connect to the block server,\n MessageProcessor processor =\n network.connectBlockServer(block_server_address);\n ProcessResult message_in = processor.process(message_out);\n Message rm = null;\n for (Message m : message_in) {\n if (m.isError()) {\n throw new RuntimeException(m.getErrorMessage());\n }\n else {\n rm = m;\n }\n }\n long server_guid = (Long) rm.param(0);\n\n // Add lookup for this server_guid <-> service address to the db,\n manager_db.setValue(\"block.sguid.\" + Long.toString(server_guid),\n block_server_address.formatString());\n manager_db.setValue(\"block.addr.\" + block_server_address.formatString(),\n Long.toString(server_guid));\n\n // TODO: Block discovery on the introduced machine,\n\n\n\n\n // Set the status and guid\n MSBlockServer block_server =\n new MSBlockServer(server_guid, block_server_address);\n // Add it to the map\n synchronized (block_servers_map) {\n block_servers_map.put(server_guid, block_server);\n block_servers_list.add(block_server);\n persistBlockServerList(block_servers_list);\n }\n\n// // Check that we aren't allocating against servers no longer in\n// // the list. If so, fix the error.\n// checkAndFixAllocationServers();\n// // Update the address space end variable,\n// updateAddressSpaceEnd();\n\n }", "title": "" }, { "docid": "a53eb8f3568968c1ee0aa22c2e818434", "score": "0.5183143", "text": "private void removeBloc(SpecialMessage m)\n {\n int slot = m.getFromSlot();\n\n if (slot > 0)\n {\n Client fromClient = (Client) m.getSource();\n\n for (int i = 1; i <= 6; i++)\n {\n Client client = getChannel().getClient(i);\n if (i != slot && client != null)\n {\n User user = client.getUser();\n\n if (user.isPlaying() && (user.getTeam() == null || !user.getTeam().equals(fromClient.getUser().getTeam())))\n {\n PlayerStats playerStats = (PlayerStats) stats.get(i - 1);\n playerStats.blockCount--;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "e01a8cc76cba8191d073fe7d06094ff6", "score": "0.51823545", "text": "private void deleteBlock(){\n for (int i = 0; i < block.getHeight(); i++) {\n for (int j = 0; j < block.getWidth(); j++) {\n if(block.getShape(j, i)) {\n board.setField(new Field(), block.getX()+j, block.getY()+i);\n }\n }\n }\n }", "title": "" }, { "docid": "d1f8e10d3658cd2cd2779fbd794eea60", "score": "0.5100576", "text": "private Location[] removeBlocks()\r\n\t{\r\n\t\tLocation[] oldLocations = new Location[blocks.length];\r\n\t\tfor (int i = 0; i < blocks.length; i++) {\r\n\t\t\toldLocations[i] = blocks[i].getLocation();\r\n\t\t\tblocks[i].removeSelfFromGrid();\r\n\t\t}\r\n\t\treturn oldLocations;\r\n\t}", "title": "" }, { "docid": "cd1693e66249a2aca934960829a7d675", "score": "0.5090852", "text": "private void removeBlocks()\r\n {\r\n head.removeSelfFromGrid();\r\n for (Block b : body)\r\n b.removeSelfFromGrid();\r\n }", "title": "" }, { "docid": "d7726e87576055fa21ff8d73b6c8cb2f", "score": "0.507054", "text": "private long[] queryBlockServersWithBlock(final BlockId block_id) {\n\n // Fetch the server map for the block from the db cluster,\n long[] server_guids = manager_db.getBlockIdServerMap(block_id);\n return server_guids;\n\n\n// log.log(Level.FINER, \"queryBlockServersWithBlock {0}\", block_id.toString());\n//\n// long[] servers;\n// // Note; we perform these operations inside a lock because we may need to\n// // provision servers to contain certain blocks which requires a database\n// // update.\n// synchronized (block_db_write_lock) {\n// // Create a transaction\n// KeyObjectTransaction transaction = block_database.createTransaction();\n// try {\n// // Get the map,\n// BlockServerMap block_server_map = new BlockServerMap(\n// transaction.getDataFile(BLOCK_SERVER_KEY, 'w'));\n//\n// // Get the servers list,\n// servers = block_server_map.get(block_id);\n// }\n// finally {\n// block_database.dispose(transaction);\n// }\n// }\n//\n// log.log(Level.FINER, \"local db says {0} for {1}\", new Object[] {\n// servers.length, block_id.toString()\n// });\n//\n// // If we don't know where the block is stored, we ask if any of the\n// // registered managers have knowledge about it,\n//\n// if (servers.length == 0) {\n// servers = delegateGetOnlineServersWithBlock(block_id);\n//\n// if (servers.length > 0) {\n// log.log(Level.FINER, \"updating local db {0}\", new Object[] {\n// block_id.toString()\n// });\n// // Update the db,\n// synchronized (block_db_write_lock) {\n// // Create a transaction\n// KeyObjectTransaction transaction = block_database.createTransaction();\n// try {\n// // Get the map,\n// BlockServerMap block_server_map = new BlockServerMap(\n// transaction.getDataFile(BLOCK_SERVER_KEY, 'w'));\n//\n// // Create the mapping for the block to the servers,\n// int sz = servers.length;\n//// if (sz < 3) {\n//// log.log(Level.SEVERE, \"PUTTING less than 3 entries in map!\", new Error());\n//// }\n// for (int i = 0; i < sz; ++i) {\n// block_server_map.put(block_id, servers[i]);\n// }\n//\n// // Get the servers list,\n// servers = block_server_map.get(block_id);\n// }\n// finally {\n// block_database.dispose(transaction);\n// }\n// }\n// }\n// }\n//\n// return servers;\n\n }", "title": "" }, { "docid": "0edf8c7aaf696a4b46e7034326436981", "score": "0.5030531", "text": "@Override\n public void removeWarmUpNode(long startTime, long endTime) {\n lse_.removeWarmUpNode(startTime, endTime);\n }", "title": "" }, { "docid": "7f55994fc74d142be23ecd8ad15a2b20", "score": "0.5012773", "text": "void removeServerInfo(ServerInfo serverInfo);", "title": "" }, { "docid": "cc9b3269c9d9b1a5dc9a500dc0aa5d8a", "score": "0.5010335", "text": "public void removeBlock(int xCoord, int yCoord)\r\n\t{\r\n\t\tthis.coords.remove(xCoord);\r\n\t\tthis.coords.remove(yCoord);\r\n\t}", "title": "" }, { "docid": "1a9fa110c7aed58a23b5d866a88e8c5a", "score": "0.49991804", "text": "public boolean detachRepairBlock(Block block)\n {\n if (this.isRepairBlock(block))\n {\n this.blockMap.remove(block);\n if (this.persister != null)\n {\n this.persister.persist(this.blockMap.keySet());\n }\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "755b0829fdd8fc4ff89687bcc5ade4d2", "score": "0.49818367", "text": "private void removeBlockRequest(ByteBuffer requestMessage)\r\n\t{\r\n\t\trequestMessage.getInt();\t//Consume length field\r\n\t\trequestMessage.get();\t//Consume type field\r\n\t\tint requestIndex = requestMessage.getInt();\r\n\t\tint requestBegin = requestMessage.getInt();\r\n\t\tint requestlength = requestMessage.getInt();\r\n\t\trequestMessage.rewind();\r\n\t\t\r\n\t\tlogger.log(Level.FINEST, \"Attempting to remove block request for \" + getDownloadingPiece() + \r\n\t\t\t\t\", offset: \" + requestBegin + \", length: \" + requestlength + \" from \" + this);\r\n\t\tfor (ByteBuffer blockRequest : getRequestedBlocks())\r\n\t\t{\r\n\t\t\tblockRequest.getInt();\t//Consume length field\r\n\t\t\tblockRequest.get();\t//Consume type field\r\n\t\t\tif (requestIndex != blockRequest.getInt())\t//Compare the value field\r\n\t\t\t{\r\n\t\t\t\tblockRequest.rewind();\r\n\t\t\t\tcontinue;\r\n\t\t\t}\t\t\t\t\r\n\t\t\tif (requestBegin != blockRequest.getInt())\t//Compare the value field\r\n\t\t\t{\r\n\t\t\t\tblockRequest.rewind();\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (requestlength != blockRequest.getInt())\t//Compare the value field\r\n\t\t\t{\r\n\t\t\t\tblockRequest.rewind();\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tblockRequest.rewind();\r\n\t\t\tgetRequestedBlocks().remove(blockRequest);\r\n\t\t\tlogger.log(Level.FINEST, \"Block request removed for \" + getDownloadingPiece() + \r\n\t\t\t\t\t\", offset: \" + requestBegin + \", length: \" + requestlength + \" from \" + this);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "457eb183641c1fb1885aec2b872f07e5", "score": "0.4961279", "text": "void unsetDataManagerKey();", "title": "" }, { "docid": "576ad8129f30d5125cbb244dbe28ce67", "score": "0.49604356", "text": "@Override\n\t@Transactional\n\tpublic void storeRemoveRequisitionMst(int storeRequisitionMstId) {\n\n\t}", "title": "" }, { "docid": "f8465e8aeb69e38b54ea9aa8fc1f3b77", "score": "0.49515155", "text": "public void unblock()\n {\n //Reset the info about the block\n blockedForDevice = null;\n blockedForOperation = -1;\n blockedForAddr = -1;\n \n //Assuming this method is being called because the process is moving\n //from the Blocked state to the Ready state, record the current\n //system time for calculating starve times for this process.\n lastReadyTime = m_CPU.getTicks();\n \n }", "title": "" }, { "docid": "7c4ecf18ea6102c0ee04d68285087076", "score": "0.49491084", "text": "@Override\n public void removeOrphanedBinding(String instanceId, String bindingId) {\n\n }", "title": "" }, { "docid": "b7776b7d0a712c2de0a36cc14af9ce65", "score": "0.49218023", "text": "public static void deleteBlobMap() {\n File blobmapfile = Utils.join(Repository.INFOSTAGE_DIR, \"blobMap\");\n if (blobmapfile.exists()) {\n blobmapfile.delete();\n }\n }", "title": "" }, { "docid": "de8adf9e636265ab35da7563195cddc6", "score": "0.49112454", "text": "public void removeBlock(long sessionId, long blockId) throws InvalidStateException,\n NotFoundException, IOException {\n mBlockStore.removeBlock(sessionId, blockId);\n }", "title": "" }, { "docid": "07003905f6e0eaf87c39c001ef809336", "score": "0.49000573", "text": "public void run() {\n \t\t \t\t\t\t routingTable.remove(targetHash); \t\t \t\t\t\t \n \t\t \t\t\t }", "title": "" }, { "docid": "a2dd98250075a16e19e0ea140f966637", "score": "0.48839235", "text": "public void removeObjectMapping ( Object graphObj ) {}", "title": "" }, { "docid": "3177fa5d08aa7e6a7bcfaa0d54217ec5", "score": "0.4875264", "text": "@Override\r\n\tpublic void despawn( Entity entity ) {\r\n\t\tif( removeUpdatable( entity ) ) {\r\n\t\t\tgetStageUpdateReceiver().removeActor( entity.getActor() );\r\n\t\t\tentity.setProvider((MapInfoProvider) null);\r\n\t\t\tentity.setReceiver((MapUpdateReceiver) null);\r\n\t\t\tentity.setReceiver((EntityUpdateReceiver) null);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d64c009cdc047a643a5343b155f6f5fd", "score": "0.48750567", "text": "@Override\r\n public int numberOfBlocksToRemove() {\r\n // TODO Auto-generated method stub\r\n return 1;\r\n }", "title": "" }, { "docid": "8fbfcfdb033f0b6de24a1c9d4719fc14", "score": "0.48692864", "text": "public static void unregisterBlock(Location location) {\n String world = Objects.requireNonNull(location.getWorld()).getName();\n map.remove(location);\n getByChunkMap(world).entries().removeIf(u -> !map.containsValue(u.getValue()));\n\n persist();\n }", "title": "" }, { "docid": "d6940eb074751af2775379c7ac649c6a", "score": "0.48567456", "text": "private void removePathFromNetwork(String path_name) {\n\n String key = \"path.info.\" + path_name;\n\n // Remove the path from the manager db cluster,\n manager_db.setValue(key, null);\n\n }", "title": "" }, { "docid": "1ec9ba7ea73bf6d9d630e0b8f2723f71", "score": "0.48520792", "text": "public void removeMember(String lobbyId, String cxId, IServerCallback callback) {\n try {\n JSONObject data = new JSONObject();\n data.put(Parameter.lobbyId.name(), lobbyId);\n data.put(Parameter.cxId.name(), cxId);\n\n ServerCall sc = new ServerCall(ServiceName.lobby,\n ServiceOperation.REMOVE_MEMBER, data, callback);\n _client.sendRequest(sc);\n } catch (JSONException je) {\n je.printStackTrace();\n }\n }", "title": "" }, { "docid": "b07f929e900ddb3ea19e59d4413c1825", "score": "0.484371", "text": "public final void mo122695b() {\n remove(C6969H.m41409d(\"G7B86D61FB626AE2D\"));\n }", "title": "" }, { "docid": "ea341e2e836dcd8785cc4e7e6c458880", "score": "0.4843314", "text": "void remover(Long id);", "title": "" }, { "docid": "5c2e71777e66e7e39484a40d42ba098d", "score": "0.4819746", "text": "public static void swapoutBlockModels(Block original, Block block) {\n \tBlockModelShapes mapper = getModelManager().getBlockModelShapes();\n \tmapper.getBlockStateMapper().registerBlockStateMapper(block, ((MBlockStateMapper)mapper.getBlockStateMapper()).getBlockStateMap().get(original));\n \tmapper.reloadModels();\n }", "title": "" }, { "docid": "042b328adb69c9dc7302e0a71f3e73b8", "score": "0.4810665", "text": "public static void removeManagerSocket(long id){\n\t\tmanagerOut.remove(id);\n\t}", "title": "" }, { "docid": "d77bbd45071da67ad03976b7d0183ed8", "score": "0.48091155", "text": "public void removeAvailableManager(int index) {\r\n availableManagers.remove(index);\r\n }", "title": "" }, { "docid": "95ea1bb6515eac8db06715b205b11408", "score": "0.48047957", "text": "public String rm_mapping (String codeName, String mid) {\n\t\t\n\t\tString msg = \"\";\n\t\t\n\t\tif (null == codeName || codeName.isEmpty() || \n\t\t\tnull == mid || mid.isEmpty()) \n\t\t\treturn msg;\n\t\t\n\t\ttry \n\t\t{\n\t\t\tString indexName = String.format(\"%s_hermes\", codeName);\n\t\t\t\n\t\t\tMap<String, Object> m = new HashMap<String, Object>();\n\t\t\tm.put(EnumParam2recomder.availability.name(), 0);\n\t\t\tm.put(EnumParam2recomder.update_dt.name(), Utility.now());\t\t\t\n\t\t\tGson g = new Gson();\n\t\t\tString updateJson = g.toJson(m); \n\t\t\t\n\t\t\tUpdateRequest updateRequest = \n\t\t\t\t\tnew UpdateRequest(indexName, TYPE_NAME, mid)\n\t\t\t .doc(updateJson);\t\t\t\t\t\t\n\t\t\t\n\t\t\tUpdateResponse resp = _apo.esClient()\n\t\t\t\t\t.update(updateRequest)\n\t\t\t\t\t.get(Constant.TIMEOUT_INDEX_MILLIS, TimeUnit.MILLISECONDS);\n\t\t\t\n\t\t\tmsg = resp.getId();\n\t\t\t\n\t\t} catch (Exception ex) {\t\t\t\n\t\t\tVEN_LOGGER.error(Utility.stackTrace2string(ex));\n\t\t\tVEN_LOGGER.error(ex.getMessage());\n\t\t\tmsg = ex.getMessage();\n\t\t}\n\t\t\n\t\treturn msg;\n\t}", "title": "" }, { "docid": "21f71990b0e7ad8d7ca56e87a0329e98", "score": "0.47950047", "text": "static void forgetMe() {\r\n //TODO:: remove the CommunicationModule from the container\r\n \r\n // Remove the current thread from the map\r\n // This is threaded, so synchronize it!\r\n synchronized (tuples) {\r\n tuples.remove(Thread.currentThread());\r\n }\r\n }", "title": "" }, { "docid": "397374266a2bd80cbc4a78d6aec5a74b", "score": "0.47926125", "text": "protected void addRegisteredBlockServer(\n long server_guid, ServiceAddress addr) {\n\n synchronized (block_servers_map) {\n MSBlockServer block_server = new MSBlockServer(server_guid, addr);\n\n // Add to the internal map/list\n block_servers_map.put(server_guid, block_server);\n block_servers_list.add(block_server);\n }\n\n }", "title": "" }, { "docid": "3cc63e205c9dd22930be1c6ca3329b56", "score": "0.47852013", "text": "private void executeDrop() throws SQLException {\n table = getSchema().findLocalTableOrView(session, tableName);\n if (table != null) {\n table.setModified();\n final Database db = session.getDatabase();\n db.removeSchemaObject(session, table);\n\n /*\n * ################################################################## ####### Remove any System Table entries.\n * ################################################################## #######\n */\n if (!db.isManagementDB() && !db.isTableLocal(getSchema())) {\n final ISystemTableMigratable sm = db.getSystemTable(); // db.getSystemSession()\n\n final TableInfo ti = new TableInfo(tableName, getSchema().getName(), table.getModificationId(), 0, table.getTableType(), db.getID());\n\n try {\n final ITableManagerRemote tmr = sm.lookup(ti).getTableManager();\n tmr.removeReplicaInformation(ti);\n }\n catch (final RPCException e) {\n throw new SQLException(\"Failed to remove replica on System Table/Table Manager\");\n }\n catch (final MovedException e) {\n throw new SQLException(\"System Table has moved.\");\n }\n }\n H2OEventBus.publish(new H2OEvent(session.getDatabase().getID().getURL(), DatabaseStates.REPLICA_DELETION, getSchema().getName() + \".\" + tableName));\n }\n if (next != null) {\n next.executeDrop();\n }\n }", "title": "" }, { "docid": "5e3afe8e4b4c122a7c8f9ebe29c8a76e", "score": "0.47811103", "text": "void removeCluster(String owner, String clusterName);", "title": "" }, { "docid": "492013e88d74ca1baeecbbc50af785c7", "score": "0.47724584", "text": "public void clearMappings();", "title": "" }, { "docid": "5619900a4c8ebc79d3f4071c229189a2", "score": "0.4772262", "text": "private void removeLastNode() {\n File file = Utils.getCacheFile(this, mCurrentDisplayedNode.node.deslashedPath());\n if(file.exists()) {\n file.delete();\n }\n\n mDisplayedNodesList.remove(mCurrentDisplayedNode);\n }", "title": "" }, { "docid": "8859d2a1d5a402164f335cd6e47a2dd6", "score": "0.47692388", "text": "void unregisterNeighbourHandler(ConnectPoint connectPoint, NeighbourMessageHandler handler,\n ApplicationId appId);", "title": "" }, { "docid": "309bc245affebdf5673494bf05bdc44a", "score": "0.47642687", "text": "public void clearBlocks(){\n \tint numBlocks = blocks.size();\n \tfor (int i = 0; i < numBlocks; i++){\n \t deleteBlock(0);\n \t}\n }", "title": "" }, { "docid": "8458f0c80b6eb3d601369f5c3fad8c58", "score": "0.47618508", "text": "private void deregisterAllRootServers() throws IOException {\n\n // Create a list of servers to be deregistered,\n ArrayList<MSRootServer> to_remove;\n synchronized (root_servers_list) {\n to_remove = new ArrayList(root_servers_list.size());\n to_remove.addAll(root_servers_list);\n }\n\n // Remove the entries from the map and persist\n synchronized (root_servers_list) {\n // Remove the entries that match,\n for (MSRootServer item : to_remove) {\n root_servers_list.remove(item);\n }\n persistRootServerList(root_servers_list);\n }\n\n // Clear the managers set from all the root servers,\n for (MSRootServer item : to_remove) {\n clearRootServerOfManagers(item.address);\n }\n\n }", "title": "" }, { "docid": "336794cce6e6ec56dba517f380c2d7d0", "score": "0.47511038", "text": "public void deleteLogicServer(final LogicServer logicServer) {\n context.getApi().getInfrastructureApi().deleteLogicServer(this.unwrap(), logicServer.unwrap());\n }", "title": "" }, { "docid": "c650f1bbf62934c8b8fd4142382b3eba", "score": "0.47372106", "text": "protected void RemoveSelf( World world, int i, int j, int k )\r\n\t{\r\n\t\t// this function exists as the regular block shouldn't notify the client when it is removed, but the glowing variety should \r\n\t\t\r\n \tworld.setBlock( i, j, k, 0, 0, 0 ); \t\r\n\t}", "title": "" }, { "docid": "0b78aa13299060241552008a2512602c", "score": "0.4734402", "text": "public void memberRemoved(Member node) throws AndesException {\n String deletedNodeId = hazelcastAgent.getIdOfNode(node);\n\n //refresh global queue sync ID\n reAssignNodeSyncId();\n\n // Below steps are carried out only by the 0th node of the list.\n if (nodeSyncSyncId == 0) {\n //clear persisted states of disappeared node\n clearAllPersistedStatesOfDisappearedNode(deletedNodeId);\n\n //Reassign the slot to free slots pool\n if (AndesContext.getInstance().getClusteringAgent().isCoordinator()) {\n slotManager.reAssignSlotsWhenMemberLeaves(deletedNodeId);\n }\n }\n\n //update thrift coordinator server details\n // setThriftCoordinatorServerDetails();\n }", "title": "" }, { "docid": "ce506d52578edea1593d4298e7265eec", "score": "0.47323892", "text": "public void unsetPermanentAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PERMANENTADDRESS$84, 0);\n }\n }", "title": "" }, { "docid": "14e7bec5444b7d81933a224b3bb11d6e", "score": "0.47050276", "text": "@TriggersRemove(cacheName = { \"vidyoManagerIdCache\",\n\t\t\t\"vmConnectAddressCache\", \n\t\t\t\"vidyoManagerServiceCache\", \"vidyoManagerServiceStubCache\",\n\t\t\t\"licenseFeatureDataCache\", \"licenseDataCache\" }, removeAll = true)\n\t@Override\n\tpublic void clearVidyoManagerCache() {\n\t\tlogger.debug(\"Utility to clear vidyo manager cache\");\n\t}", "title": "" }, { "docid": "61c16d01167d84e4e0585af453103433", "score": "0.47027898", "text": "public void disassociateLogicServer(final LogicServer logicServer) {\n context.getApi().getInfrastructureApi().dissociateLogicServer(this.unwrap(), logicServer.unwrap());\n }", "title": "" }, { "docid": "1dd0122d438b140f4d6893fa00981356", "score": "0.47024286", "text": "public void _Network_Realms_removePeerFromRealm(String realmName, String peerName) throws MBeanException;", "title": "" }, { "docid": "38108c9f513258ffdb13539f75b4d404", "score": "0.46985692", "text": "void remove(long id) throws WorkflowDatabaseException, NotFoundException;", "title": "" }, { "docid": "36f65567c03d64f8788331c8e323175b", "score": "0.46944892", "text": "public void cleanRequrimentDatabase(UiAbility uiAbilityLogic) {\n for (String param : uiAbilityLogic.requrimentDatabase.showDatabaseAsAList()) {\n String[] table = param.split(\"/\");\n uiAbilityLogic.requrimentDatabase.removeInformation(table[1]);\n }\n }", "title": "" }, { "docid": "698dcc1e84b164fc60d0d82037b15f5d", "score": "0.4693222", "text": "@PostMapping(\"/newUpdateBlock\")\n\tpublic Block newUpdateBlock(@RequestBody Block mBlock) {\n\n\t\t//delete temp\n\t\tString deleteKTP = mBlock.getKtp();\n\t\ttry {\n\t\t\tdb.openDB();\n\t\t\tSystem.out.println(deleteKTP);\n\t\t\tdb.executeUpdate(\"delete from mstemp where ktp ='\"+deleteKTP+\"'\");\n\t\t\tSystem.out.println(\"Deleted from temp\");\n\t\t\tdb.closeDB();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString currId = \"\";\n\t\tString prevHash =\"\";\n\t\tString currHash =\"\";\n\t\tString thisId=\"\";\n\t\t\n\t\t\n\t\tString notifBank =\"0\";\n\t\tString notifFinancial =\"0\";\n\t\tString notifSekuritas =\"0\";\n\t\tString notifSyariah =\"0\";\n\t\tString notifInsurance =\"0\";\n\t\t\n\t\ttry {\n\t\t\tdb.openDB();\n\t\t\trs = db.executeQuery(\"select msdata.id,previoushash,`hash` from msdata join mshash on msdata.id = mshash.id order by id desc limit 1\");\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tcurrId = rs.getString(1);\n\t\t\t\tint nowId = Integer.parseInt(currId.toString())+1;\n\t\t\t\tthisId = nowId+\"\";\n\t\t\t\tcurrHash = rs.getString(3);\n\t\t\t\tSystem.out.println(\"This id Id :\"+thisId);\n\t\t\t\t\n\t\t\t}\n\t\t\talBlock.add(new Block(thisId,mBlock.getFirstname(),mBlock.getLastname(),mBlock.getKtp(),mBlock.getEmail(),mBlock.getDob(),mBlock.getAddress(),mBlock.getNationality(),mBlock.getAccountnum(),mBlock.getPhoto(),mBlock.getVerified(),currHash,mBlock.getBcabank(),mBlock.getBcainsurance(),mBlock.getBcasyariah(),mBlock.getBcafinancial(),mBlock.getBcasekuritas()));\n\t\t\tmBlock.setHash(alBlock.get(alBlock.size()-1).mineBlock(difficulty)[0]);\n\n\t\t\tmBlock.setNonce(Integer.parseInt(alBlock.get(alBlock.size()-1).mineBlock(difficulty)[1]));\n\t\t\t\n\t\t\tdb.executeUpdate(\"insert into msdata(id,firstname,lastname,ktp,email,dob,address,nationality,accountnum,photo,verified,timestamp,nonce,bcabank,bcainsurance,bcasyariah,bcafinancial\t,bcasekuritas) values \"\n\t\t\t\t\t+ \"('\"+thisId+\"','\"+mBlock.getFirstname()+\"','\"+mBlock.getLastname()+\"','\"+mBlock.getKtp()+\"','\"+mBlock.getEmail()+\"','\"+mBlock.getDob()+\"','\"+mBlock.getAddress()+\"','\"+mBlock.getNationality()+\"','\"+mBlock.getAccountnum()+\"','\"+mBlock.getPhoto()+\"','\"+mBlock.getVerified()+\"','\"+Block.timestampglobal+\"','\"+mBlock.getNonce()+\"','\"+mBlock.getBcabank()+\"','\"+mBlock.getBcainsurance()+\"','\"+mBlock.getBcasyariah()+\"','\"+mBlock.getBcafinancial()+\"','\"+mBlock.getBcasekuritas()+\"')\");\n\t\t\t\n\t\t\tdb.executeUpdate(\"insert into mshash(id,hash,previoushash) values('\"+thisId+\"','\"+mBlock.getHash()+\"','\"+currHash+\"')\");\n\t\t\t\n\n\t\t\t//get current register where\n\t\t\trs = db.executeQuery(\"select bcabank,bcainsurance,bcasyariah,bcafinancial,bcasekuritas from msdata where ktp ='\"+mBlock.getKtp()+\"'\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tif(rs.getString(1).equals(\"1\")) {notifBank=\"1\";}\n\t\t\t\tif(rs.getString(2).equals(\"1\")) {notifInsurance=\"1\";}\n\t\t\t\tif(rs.getString(3).equals(\"1\")) {notifSyariah=\"1\";}\n\t\t\t\tif(rs.getString(4).equals(\"1\")) {notifFinancial=\"1\";}\n\t\t\t\tif(rs.getString(5).equals(\"1\")) {notifSekuritas=\"1\";}\n\t\t\t}\n\t\t\t\n\t\t\tdb.closeDB();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t//notify Bank\n\t\tif(notifBank.equals(\"1\")) {\n\t\t\tRestTemplate restTemplate = new RestTemplate();\n\t String url = \"http://\"+bcabankIP+\"/updateNotification\";\n\t HttpHeaders headers = new HttpHeaders();\n\t headers.setContentType(MediaType.APPLICATION_JSON);\n\t JSONObject postdata = new JSONObject();\n\t //Block blok = new Block(mBlock.getFirstname(),mBlock.getLastname(),mBlock.getDob(), mBlock.getAddress(), mBlock.getEmail(), mBlock.getKtp(), mBlock.getNationality(), mBlock.getPhoto(), mBlock.getAccountnum());\n\t try {\n\t postdata.put(\"firstname\",mBlock.getFirstname());\n\t postdata.put(\"lastname\",mBlock.getLastname());\n\t postdata.put(\"ktp\",mBlock.getKtp());\n\t postdata.put(\"email\",mBlock.getEmail());\n\t postdata.put(\"dob\",mBlock.getDob());\n\t postdata.put(\"address\",mBlock.getAddress());\n\t postdata.put(\"nationality\",mBlock.getNationality());\n\t postdata.put(\"accountnum\",mBlock.getAccountnum());\n\t postdata.put(\"photo\",mBlock.getPhoto());\n\t }\n\t catch (JSONException e)\n\t {\n\t e.printStackTrace();\n\t }\n\t String requestJson = postdata.toString();\n\t HttpEntity<String> entity = new HttpEntity<String>(requestJson,headers);\n\t String answer = restTemplate.postForObject(url, entity, String.class);\n\t System.out.println(answer);\n\t\t}\n\t\t\n\t\t\n\t\t//Notify Syariah\n\t\tif(notifSyariah.equals(\"1\")) {\n\t\t\tRestTemplate restTemplate = new RestTemplate();\n\t String url = \"http://\"+bcasyariahIP+\"/updateNotification\";\n\t HttpHeaders headers = new HttpHeaders();\n\t headers.setContentType(MediaType.APPLICATION_JSON);\n\t JSONObject postdata = new JSONObject();\n\t //Block blok = new Block(mBlock.getFirstname(),mBlock.getLastname(),mBlock.getDob(), mBlock.getAddress(), mBlock.getEmail(), mBlock.getKtp(), mBlock.getNationality(), mBlock.getPhoto(), mBlock.getAccountnum());\n\t try {\n\t postdata.put(\"firstname\",mBlock.getFirstname());\n\t postdata.put(\"lastname\",mBlock.getLastname());\n\t postdata.put(\"ktp\",mBlock.getKtp());\n\t postdata.put(\"email\",mBlock.getEmail());\n\t postdata.put(\"dob\",mBlock.getDob());\n\t postdata.put(\"address\",mBlock.getAddress());\n\t postdata.put(\"nationality\",mBlock.getNationality());\n\t postdata.put(\"accountnum\",mBlock.getAccountnum());\n\t postdata.put(\"photo\",mBlock.getPhoto());\n\t }\n\t catch (JSONException e)\n\t {\n\t e.printStackTrace();\n\t }\n\t String requestJson = postdata.toString();\n\t HttpEntity<String> entity = new HttpEntity<String>(requestJson,headers);\n\t String answer = restTemplate.postForObject(url, entity, String.class);\n\t System.out.println(answer);\n\t\t}\n\t\t\n\t\t\n\t\t//Notify Sekuritas\n\t\tif(notifSekuritas.equals(\"1\")) {\n\t\t\tRestTemplate restTemplate = new RestTemplate();\n\t String url = \"http://\"+bcasekuritasIP+\"/updateNotification\";\n\t HttpHeaders headers = new HttpHeaders();\n\t headers.setContentType(MediaType.APPLICATION_JSON);\n\t JSONObject postdata = new JSONObject();\n\t //Block blok = new Block(mBlock.getFirstname(),mBlock.getLastname(),mBlock.getDob(), mBlock.getAddress(), mBlock.getEmail(), mBlock.getKtp(), mBlock.getNationality(), mBlock.getPhoto(), mBlock.getAccountnum());\n\t try {\n\t postdata.put(\"firstname\",mBlock.getFirstname());\n\t postdata.put(\"lastname\",mBlock.getLastname());\n\t postdata.put(\"ktp\",mBlock.getKtp());\n\t postdata.put(\"email\",mBlock.getEmail());\n\t postdata.put(\"dob\",mBlock.getDob());\n\t postdata.put(\"address\",mBlock.getAddress());\n\t postdata.put(\"nationality\",mBlock.getNationality());\n\t postdata.put(\"accountnum\",mBlock.getAccountnum());\n\t postdata.put(\"photo\",mBlock.getPhoto());\n\t }\n\t catch (JSONException e)\n\t {\n\t e.printStackTrace();\n\t }\n\t String requestJson = postdata.toString();\n\t HttpEntity<String> entity = new HttpEntity<String>(requestJson,headers);\n\t String answer = restTemplate.postForObject(url, entity, String.class);\n\t System.out.println(answer);\n\t\t}\n\t\t\n\t\t//Notify Financial\n\t\tif(notifFinancial.equals(\"1\")) {\n\t\t\tRestTemplate restTemplate = new RestTemplate();\n\t String url = \"http://\"+bcafinanceIP+\"/updateNotification\";\n\t HttpHeaders headers = new HttpHeaders();\n\t headers.setContentType(MediaType.APPLICATION_JSON);\n\t JSONObject postdata = new JSONObject();\n\t //Block blok = new Block(mBlock.getFirstname(),mBlock.getLastname(),mBlock.getDob(), mBlock.getAddress(), mBlock.getEmail(), mBlock.getKtp(), mBlock.getNationality(), mBlock.getPhoto(), mBlock.getAccountnum());\n\t try {\n\t postdata.put(\"firstname\",mBlock.getFirstname());\n\t postdata.put(\"lastname\",mBlock.getLastname());\n\t postdata.put(\"ktp\",mBlock.getKtp());\n\t postdata.put(\"email\",mBlock.getEmail());\n\t postdata.put(\"dob\",mBlock.getDob());\n\t postdata.put(\"address\",mBlock.getAddress());\n\t postdata.put(\"nationality\",mBlock.getNationality());\n\t postdata.put(\"accountnum\",mBlock.getAccountnum());\n\t postdata.put(\"photo\",mBlock.getPhoto());\n\t }\n\t catch (JSONException e)\n\t {\n\t e.printStackTrace();\n\t }\n\t String requestJson = postdata.toString();\n\t HttpEntity<String> entity = new HttpEntity<String>(requestJson,headers);\n\t String answer = restTemplate.postForObject(url, entity, String.class);\n\t System.out.println(answer);\n\t\t}\n\t\t\n\t\t\n\t\t//Notify Insurance\n\t\tif(notifInsurance.equals(\"1\")) {\n\t\t\tRestTemplate restTemplate = new RestTemplate();\n\t String url = \"http://\"+bcainsuranceIP+\"/updateNotification\";\n\t HttpHeaders headers = new HttpHeaders();\n\t headers.setContentType(MediaType.APPLICATION_JSON);\n\t JSONObject postdata = new JSONObject();\n\t //Block blok = new Block(mBlock.getFirstname(),mBlock.getLastname(),mBlock.getDob(), mBlock.getAddress(), mBlock.getEmail(), mBlock.getKtp(), mBlock.getNationality(), mBlock.getPhoto(), mBlock.getAccountnum());\n\t try {\n\t postdata.put(\"firstname\",mBlock.getFirstname());\n\t postdata.put(\"lastname\",mBlock.getLastname());\n\t postdata.put(\"ktp\",mBlock.getKtp());\n\t postdata.put(\"email\",mBlock.getEmail());\n\t postdata.put(\"dob\",mBlock.getDob());\n\t postdata.put(\"address\",mBlock.getAddress());\n\t postdata.put(\"nationality\",mBlock.getNationality());\n\t postdata.put(\"accountnum\",mBlock.getAccountnum());\n\t postdata.put(\"photo\",mBlock.getPhoto());\n\t }\n\t catch (JSONException e)\n\t {\n\t e.printStackTrace();\n\t }\n\t String requestJson = postdata.toString();\n\t HttpEntity<String> entity = new HttpEntity<String>(requestJson,headers);\n\t String answer = restTemplate.postForObject(url, entity, String.class);\n\t System.out.println(answer);\n\t\t}\n\t\t\n\t\n\t\t\n\t\t//Sync data to master 2 3 4 5\n\t\tSendBlock sdBx = null;\n\t\ttry {\n\t\t\tdb.openDB();\n\t\t\trs=db.executeQuery(\"select \"\n\t\t\t\t\t+ \"msdata.id,\"\n\t\t\t\t\t+ \"msdata.firstname,\"\n\t\t\t\t\t+ \"msdata.lastname,\"\n\t\t\t\t\t+ \"msdata.ktp,\"\n\t\t\t\t\t+ \"msdata.email,\"\n\t\t\t\t\t+ \"msdata.dob,\"\n\t\t\t\t\t+ \"msdata.address,\"\n\t\t\t\t\t+ \"msdata.nationality,\"\n\t\t\t\t\t+ \"msdata.accountnum,\"\n\t\t\t\t\t+ \"msdata.photo,\"\n\t\t\t\t\t+ \"msdata.verified,\"\n\t\t\t\t\t+ \"msdata.timestamp,\"\n\t\t\t\t\t+ \"msdata.nonce,\"\n\t\t\t\t\t+ \"msdata.bcabank,\"\n\t\t\t\t\t+ \"msdata.bcainsurance,\"\n\t\t\t\t\t+ \"msdata.bcasyariah,\"\n\t\t\t\t\t+ \"msdata.bcafinancial,\"\n\t\t\t\t\t+ \"msdata.bcasekuritas,\"\n\t\t\t\t\t+ \"mshash.hash,\"\n\t\t\t\t\t+ \"mshash.previoushash\"\n\t\t\t\t\t+ \" from msdata join mshash on msdata.id = mshash.id where msdata.id ='\"+thisId+\"'\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tsdBx = new SendBlock(rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6),rs.getString(7),rs.getString(8),rs.getString(9),rs.getString(10),rs.getString(11),rs.getString(12),rs.getString(13),rs.getString(14),rs.getString(15),rs.getString(16),rs.getString(17),rs.getString(18),rs.getString(19),rs.getString(20));\n\t\t\t}\n\t\t\tdb.closeDB();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//Sync from Here to second Master\n\t\tfor(int c = 0; c < 4; c++) {\n\t\t\tString currIp = master[c];\n\t\t\t\n\t\t\tRestTemplate restTemplate = new RestTemplate();\n\t String url = \"http://\"+currIp+\"/getLatest\";\n\t HttpHeaders headers = new HttpHeaders();\n\t headers.setContentType(MediaType.APPLICATION_JSON);\n\t JSONObject postdata = new JSONObject();\n\t try {\n\t\t\t\tpostdata.put(\"id\",sdBx.getId());\n\t postdata.put(\"firstname\",sdBx.getFirstname());\n\t postdata.put(\"lastname\",sdBx.getLastname());\n\t postdata.put(\"ktp\",sdBx.getKtp());\n\t postdata.put(\"email\",sdBx.getEmail());\n\t postdata.put(\"dob\",sdBx.getDob());\n\t postdata.put(\"address\",sdBx.getAddress());\n\t postdata.put(\"nationality\",sdBx.getNationality());\n\t postdata.put(\"accountnum\",sdBx.getAccountnum());\n\t postdata.put(\"photo\",sdBx.getPhoto());\n\t postdata.put(\"verified\",sdBx.getVerified());\n\t postdata.put(\"timestamp\",sdBx.getTimeStamp());\n\t postdata.put(\"nonce\",sdBx.getNonce());\n\t postdata.put(\"bcabank\",sdBx.getBcabank());\n\t postdata.put(\"bcasyariah\",sdBx.getBcasyariah());\n\t postdata.put(\"bcafinancial\",sdBx.getBcafinancial());\n\t postdata.put(\"bcasekuritas\",sdBx.getBcasekuritas());\n\t postdata.put(\"bcainsurance\",sdBx.getBcainsurance());\n\t postdata.put(\"hash\",sdBx.getHash());\n\t postdata.put(\"previoushash\",sdBx.getPreviousHash());\n\t }\n\t catch (JSONException e)\n\t {\n\t e.printStackTrace();\n\t }\n\t String requestJson = postdata.toString();\n\t HttpEntity<String> entity = new HttpEntity<String>(requestJson,headers);\n\t String answer = restTemplate.postForObject(url, entity, String.class);\n\t System.out.println(answer);\n\t \n\t String[] answerParts = answer.split(\"-\");\n\t String answerResult = answerParts[0];\n\t String answerId = answerParts[1];\n\t \n\t if(answerResult.equals(\"Missing\")) {\n\t \tint getId = Integer.parseInt(answerId)+1;\n\t \t\tString sendId = getId+\"\";\n\t \t\tString currIdx = \"\";\n\t \t\t\n\t \t\ttry {\n\t \t\t\tdb.openDB();\n\t \t\t\t\n\t \t\t\trs = db.executeQuery(\"select id from msdata order by id desc limit 1\");\n\t \t\t\twhile(rs.next()) {\n\t \t\t\t\tcurrIdx = rs.getString(1);\n\t \t\t\t}\n\t \t\t\tdb.closeDB();\n\t \t\t} catch (Exception e1) {\n\t \t\t\te1.printStackTrace();\n\t \t\t}\n\t \t\t\n\t \t\tsendBlock = new ArrayList<SendBlock>();\n\t \t\tfor(int i = Integer.parseInt(sendId);i<=Integer.parseInt(currIdx);i++){\n\t \t\t\tSendBlock sb = null;\n\t \t\t\ttry {\n\t \t\t\t\tdb.openDB();\n\t \t\t\t\trs=db.executeQuery(\"select \"\n\t \t\t\t\t\t\t+ \"msdata.id,\"\n\t \t\t\t\t\t\t+ \"msdata.firstname,\"\n\t \t\t\t\t\t\t+ \"msdata.lastname,\"\n\t \t\t\t\t\t\t+ \"msdata.ktp,\"\n\t \t\t\t\t\t\t+ \"msdata.email,\"\n\t \t\t\t\t\t\t+ \"msdata.dob,\"\n\t \t\t\t\t\t\t+ \"msdata.address,\"\n\t \t\t\t\t\t\t+ \"msdata.nationality,\"\n\t \t\t\t\t\t\t+ \"msdata.accountnum,\"\n\t \t\t\t\t\t\t+ \"msdata.photo,\"\n\t \t\t\t\t\t\t+ \"msdata.verified,\"\n\t \t\t\t\t\t\t+ \"msdata.timestamp,\"\n\t \t\t\t\t\t\t+ \"msdata.nonce,\"\n\t \t\t\t\t\t\t+ \"msdata.bcabank,\"\n\t \t\t\t\t\t\t+ \"msdata.bcainsurance,\"\n\t \t\t\t\t\t\t+ \"msdata.bcasyariah,\"\n\t \t\t\t\t\t\t+ \"msdata.bcafinancial,\"\n\t \t\t\t\t\t\t+ \"msdata.bcasekuritas,\"\n\t \t\t\t\t\t\t+ \"mshash.hash,\"\n\t \t\t\t\t\t\t+ \"mshash.previoushash\"\n\t \t\t\t\t\t\t+ \" from msdata join mshash on msdata.id = mshash.id where msdata.id ='\"+i+\"'\");\n\t \t\t\t\twhile(rs.next()) {\n\t \t\t\t\t\tsb = new SendBlock(rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6),rs.getString(7),rs.getString(8),rs.getString(9),rs.getString(10),rs.getString(11),rs.getString(12),rs.getString(13),rs.getString(14),rs.getString(15),rs.getString(16),rs.getString(17),rs.getString(18),rs.getString(19),rs.getString(20));\n\t \t\t\t\t}\n\t \t\t\t\tdb.closeDB();\n\t \t\t\t} catch (Exception e) {\n\t \t\t\t\te.printStackTrace();\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\t\n\t \t\t\tRestTemplate restTemplatex1 = new RestTemplate();\n\t \t String urlx1 = \"http://\"+currIp+\"/receiveMissingBlocks\";\n\t \t HttpHeaders headersx1 = new HttpHeaders();\n\t \t headersx1.setContentType(MediaType.APPLICATION_JSON);\n\t \t JSONObject postdatax1 = new JSONObject();\n\t \t try {\n\t\n\t \t\t\t\tSystem.out.println(sb.getId());\n\t \t \tpostdatax1.put(\"id\",sb.getId());\n\t \t postdatax1.put(\"firstname\",sb.getFirstname());\n\t \t postdatax1.put(\"lastname\",sb.getLastname());\n\t \t postdatax1.put(\"ktp\",sb.getKtp());\n\t \t postdatax1.put(\"email\",sb.getEmail());\n\t \t postdatax1.put(\"dob\",sb.getDob());\n\t \t postdatax1.put(\"address\",sb.getAddress());\n\t \t postdatax1.put(\"nationality\",sb.getNationality());\n\t \t postdatax1.put(\"accountnum\",sb.getAccountnum());\n\t \t postdatax1.put(\"photo\",sb.getPhoto());\n\t \t postdatax1.put(\"verified\",sb.getVerified());\n\t \t postdatax1.put(\"timestamp\",sb.getTimeStamp());\n\t \t postdatax1.put(\"nonce\",sb.getNonce());\n\t \t postdatax1.put(\"bcabank\",sb.getBcabank());\n\t \t postdatax1.put(\"bcasyariah\",sb.getBcasyariah());\n\t \t postdatax1.put(\"bcafinancial\",sb.getBcafinancial());\n\t \t postdatax1.put(\"bcasekuritas\",sb.getBcasekuritas());\n\t \t postdatax1.put(\"bcainsurance\",sb.getBcainsurance());\n\t \t postdatax1.put(\"hash\",sb.getHash());\n\t \t postdatax1.put(\"previoushash\",sb.getPreviousHash());\n\t \t }\n\t \t catch (JSONException e)\n\t \t {\n\t \t e.printStackTrace();\n\t \t }\n\t \t String requestJsonx1 = postdatax1.toString();\n\t \t HttpEntity<String> entityx1 = new HttpEntity<String>(requestJsonx1,headersx1);\n\t \t String answerx1 = restTemplatex1.postForObject(urlx1, entityx1, String.class);\n\t \t System.out.println(answerx1);\n\t \t\t\t\n\t \t\t}\n\t } \n\t //Sync End Here\n\t\t}\n\t\t\n\t\tvalidateBlock();\n\t\treturn mBlock;\n\t}", "title": "" }, { "docid": "1f07d673dc8de1249116e5c8522bd8f6", "score": "0.46877626", "text": "public void cleanRealityDatabase(UiAbility uiAbilityLogic) {\n for (String param : uiAbilityLogic.realityDatabase.showDatabaseAsAList()) {\n String[] table = param.split(\"/\");\n uiAbilityLogic.realityDatabase.removeInformation(table[1]);\n }\n }", "title": "" }, { "docid": "053e7c78aebbadd26fe7eff5f2adde14", "score": "0.46828505", "text": "@Override\n\tpublic Integer deletetuid(Map<String, Object> map) {\n\t\treturn sqlSessionTemplate.delete(\"map.deletetuid\",map);\n\t}", "title": "" }, { "docid": "7cee07bcd7f5ed68ff1c10ab1413368a", "score": "0.46825275", "text": "abstract void persistBlockServerList(List<MSBlockServer> servers_list);", "title": "" }, { "docid": "c4874949152d13b019b1ba38c364a31b", "score": "0.46805823", "text": "@Override\n\tpublic void delete(String hostMac) {\n\t\tmachineAdminDao.delete(hostMac);\n\t}", "title": "" }, { "docid": "49739a48bfc5d753828703eb4f2daff2", "score": "0.46724623", "text": "private DatagramPacket handleRemoveBlockNumMode(DatagramPacket simPacket, InetAddress address, int port) {\n\t\tbyte[] data = simPacket.getData();\n\t\tint length = simPacket.getLength();\n\t\t\n\t\tOperation opcode = PacketParser.getOpcode(data, length);\n\t\tif(opcode == Operation.DATA || opcode == Operation.ACK) {\n\t\t\tbyte[] modded = new byte[length - 2];\n\t\t\tmodded[0] = data[0];\n\t\t\tmodded[1] = data[1];\n\t\t\tfor(int i = 4; i < length; ++i) {\n\t\t\t\tmodded[i - 2] = data[i];\n\t\t\t}\n\t\t\t\n\t\t\treturn new DatagramPacket(modded, modded.length, address, port);\n\t\t}\n\t\t\n\t\treturn new DatagramPacket(data, length, address, port);\n\t}", "title": "" }, { "docid": "26f2a529d9df764ad73588c92f1d9827", "score": "0.46698287", "text": "@Override\r\n\tpublic void delbank(String bcode) {\n\t\tbankmapper.delbank(bcode);\r\n\t}", "title": "" }, { "docid": "825d3e6737b9ebe5961596e1ae90e6f4", "score": "0.4669326", "text": "protected final native void unblock(long id);", "title": "" }, { "docid": "0e662a567079acaf8f05e525216c9101", "score": "0.46689165", "text": "public synchronized void rmUser(String nm) {\n\t\tclListModel.removeElement(nm);\n\t}", "title": "" }, { "docid": "29b002c32fe255866ad39110ea4da8e0", "score": "0.4654804", "text": "@objid (\"23c99ccb-b34f-4e11-8f2f-22b991aee931\")\n @Override\n public void removeModule(IModuleHandle mh) throws FileSystemException, IOException {\n // Update the cache\n if (this.state == CacheState.VALID) {\n String key = getEntryKey(mh.getName(), mh.getVersion().toString());\n this.entries.remove(key);\n }\n \n // Delete store directory entry\n Path path = ((FileModuleStoreHandle) mh).getModuleCachePath();\n Path path1 = path.getParent();\n FileUtils.delete(path1);\n }", "title": "" }, { "docid": "70f97f32b25efd7f54b0cedcc1c19ed9", "score": "0.46526006", "text": "public void unsetBroadcastId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BROADCASTID$8, 0);\n }\n }", "title": "" }, { "docid": "471c7295fadde88429b36d3e526eb2b1", "score": "0.46521282", "text": "public synchronized void removeMachine(String vmId) {\n VM vmInfo = vmIdToInfo.remove(vmId);\n ipToVmId.remove(vmInfo.ip);\n vmsAlive.remove(vmInfo);\n \n // #### PLOT LOG\n logger.debug(\"D \" + getLastPart(vmInfo.ip) + \" \" + providerName + \" \" + getAlive() + \" \" + getToDelete());\n }", "title": "" }, { "docid": "150a8b3619a9b02496894807faa01560", "score": "0.46458456", "text": "public void markServerIpAddressDelete() throws JNCException {\n markLeafDelete(\"serverIpAddress\");\n }", "title": "" }, { "docid": "a72c567a48d0b8dcb2c1c180e20f9858", "score": "0.46450052", "text": "IMachine removeMachineAt(int index) throws MachineException;", "title": "" }, { "docid": "23760151a785d58130579e5a3896e5c5", "score": "0.46430928", "text": "public void reset() {\n World world = Bukkit.getWorld(this.world);\n\n if (world == null) {\n return;\n }\n\n Clipboard clipboard = SchematicManager.load(this.name);\n SchematicManager.paste(world, clipboard);\n\n for (Entity entity : world.getNearbyEntities(this.getBoundingBox())) {\n if (entity.getType() != EntityType.PLAYER) {\n entity.remove();\n }\n }\n }", "title": "" }, { "docid": "b16ffe167312c226e307925b082a7c48", "score": "0.463975", "text": "@Override\n public void removeLink(long time, int gid1, int gid2) {\n changedNet_ = true;\n }", "title": "" }, { "docid": "81696385d3b56e34c818832676ee442c", "score": "0.46388382", "text": "public final void removeSellerAddress() {\n removeValue(getSellerAddressAttribute(getMtDatabase()));\n }", "title": "" }, { "docid": "0769f649021f4accb78c6c70cb00b558", "score": "0.46386003", "text": "@Override\r\n protected void afterChangeToWorkAsLeader() throws Exception {\n this.lockForScheduleRuntimeData.writeLock().lock();\r\n try {\r\n this.assignedServerIdBlackList.clear();\r\n this.lastUpdateAssignedServerIdBlackListTime = new Date();\r\n } finally {\r\n this.lockForScheduleRuntimeData.writeLock().unlock();\r\n }\r\n super.afterChangeToWorkAsLeader();\r\n }", "title": "" }, { "docid": "03dc090fa21f0bcef9983e05e03d3596", "score": "0.46279976", "text": "private void tempremoveabook(Book b, ConnectionToClient client){\r\n\t\tStatement stmt;\r\n\t\ttry {\r\n\t\t\tstmt = conn.createStatement();\r\n\t\t\tstmt.executeUpdate(\"Update books set isSuspend= 1 where bookid = '\"+b.getBookid()+\"';\");\r\n\t\t\tclient.sendToClient(\"Book has been suspended successfuly\");//The subscription succeeded\r\n\t\t} catch (SQLException | IOException e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t} \r\n\t}", "title": "" }, { "docid": "586e33a25881885dd558ced4ca61cf41", "score": "0.46271536", "text": "@DeleteMapping(\"/blocks/{id}\")\n public ResponseEntity<Void> deleteBlock(@PathVariable Long id) {\n log.debug(\"REST request to delete Block : {}\", id);\n blockService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "title": "" }, { "docid": "3ce0788d495f443354f7de5de99bc171", "score": "0.46268973", "text": "void remove(ApplicationId application, ClusterSpec.Id cluster);", "title": "" }, { "docid": "033bca4f86c9c467629f579734ad7a0b", "score": "0.46208122", "text": "@Override\r\n\tpublic void onRemoveBlocked(int code, GotyeUser user) {\n\t\tloadData();\r\n\t}", "title": "" }, { "docid": "7a8f5a04554a93ca5800ccda6d8eabf4", "score": "0.46151447", "text": "private void removeBox(AABB box){\n for (Grid g :box.getGridPositions().keySet()) {\n for (Integer i: box.getGridPositions().get(g)) {\n g.getBucket(i).remove(box.getID());\n }\n }\n for(Collision c:PairManagement.getPairs()){\n if(c.contains(box.getID())){\n PairManagement.removePair(c.getBoxes()[0],c.getBoxes()[1]);\n }\n }\n box.setGridPositions(new HashMap<>());\n \n }", "title": "" }, { "docid": "aa6aedda2376782d8cb11331e72f705e", "score": "0.4614813", "text": "void deletePartnerMappingsByPartnerID(int customerID, String clientId);", "title": "" }, { "docid": "b2a1c5150327cbf67ebeee719527a7f6", "score": "0.46144906", "text": "void removeMyClusters(String owner);", "title": "" }, { "docid": "d2fcc90465888f545ed6a890dfe224d4", "score": "0.46143666", "text": "IMachine removeMachine(IMachine machine) throws MachineException;", "title": "" }, { "docid": "bf45780a25601b93a4c1aa558a27c86a", "score": "0.4612976", "text": "public void dropPlayer(String playerMacAddress);", "title": "" }, { "docid": "2f48ece06bd2d3ce1e59d44d67b88036", "score": "0.4608285", "text": "@Override\n public void run() {\n for ( TornadoBlock tornadoBlock : totalBlocks ) {\n tornadoBlock.remove();\n }\n }", "title": "" }, { "docid": "afec0b7223e3ad4c1e29df212822f74d", "score": "0.46082622", "text": "public void unlink(V a, V b) {\n\tthis.vertex.get(a).getNeightbor().remove(this.vertex.get(b));\n }", "title": "" }, { "docid": "20574b1f36596b92e855915e9d0f0380", "score": "0.4607854", "text": "@Override\n public void removeHost(String userId,\n String infrastructureManagerGUID,\n String infrastructureManagerName,\n String hostGUID) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException\n {\n final String methodName = \"removeHost\";\n\n super.removeAsset(userId, infrastructureManagerGUID, infrastructureManagerName, hostGUID, methodName);\n }", "title": "" }, { "docid": "d7acd51b6a2ccc0e972252df2fe6d849", "score": "0.46050912", "text": "@Override\n\tpublic void destroy(){\n\t\tif(nbBlockToGenerate > 0){\n\t\t\tgetGameMap().add(getCoordinate(), this);\n\t\t\tnbBlockToGenerate--;\n\t\t} else {\n\t\t\tsuper.destroy();\n\t\t}\n\t}", "title": "" }, { "docid": "fd9acb510e821a428b9fea3845e602fa", "score": "0.4597948", "text": "@Override\n\tpublic void deleteById(Long id) {\n\t\tentryBlockDao.deleteById(id);\n\t}", "title": "" }, { "docid": "d21aa43c3ec80ab1704e86b7b3825ff7", "score": "0.45888126", "text": "public void deleteManagerUnavailable(int id){\n this.jdbcTemplate.update(\"DELETE FROM manager_unavailable WHERE unavailable_id = ?\", id);\n }", "title": "" }, { "docid": "2fdb039a9a2dbafbec8c7346aaa1bcdf", "score": "0.45766944", "text": "public static void deteleItem(String key) {\n File blobmapfile = Utils.join(Repository.INFOSTAGE_DIR, \"blobMap\");\n if (blobmapfile.exists()) {\n blobMap = readObject(blobmapfile, TreeMap.class);\n blobMap.remove(Utils.sha1(key));\n saveBlobMap();\n }\n }", "title": "" }, { "docid": "7a5a52fa1a8340c72ec28fb664089324", "score": "0.456957", "text": "public final void removePin() {\n manager.setPin(null);\n }", "title": "" } ]
e68bf0d919f45e1e07111ae6b219115b
This method returns the value of the database column xf_jl.jl_count
[ { "docid": "c1914b17de83f4f318760a6e13ea19d5", "score": "0.75183105", "text": "public Integer getJlCount() {\n return jlCount;\n }", "title": "" } ]
[ { "docid": "02f00a163eb8a596efbe3c7812a38f53", "score": "0.7086953", "text": "public java.math.BigInteger getCount()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COUNT$26);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }", "title": "" }, { "docid": "213c6e7734e208ad2f9ec0c96abccaba", "score": "0.66902167", "text": "int getLCount();", "title": "" }, { "docid": "4a17913a1c5847064af2bc64c5f7b770", "score": "0.6474157", "text": "public int getListCount() {\n\t\treturn sqlSession.selectOne(\"product.getListCount\");\n\t}", "title": "" }, { "docid": "62e4f535b9c2d30b11f094c82f9427a6", "score": "0.64512646", "text": "@Override\n\tpublic long count() {\n\t\tConnection con = DBConnection.getConnection();\n\t\tlong result = 0;\n\t\ttry {\n\t\t\tPreparedStatement ps = con.prepareStatement(\"SELECT COUNT(*) AS number_employee FROM employee\");\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\trs.next();\n\t\t\tresult = rs.getLong(\"number_employee\");\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "764874af462453d6d3c3f40878cbf1c6", "score": "0.6418649", "text": "public String getjCnt() {\r\n return jCnt;\r\n }", "title": "" }, { "docid": "e93fe95e1324e0ae85171c0de50a1974", "score": "0.6371889", "text": "int getValueCount();", "title": "" }, { "docid": "c10ea8b09d872bca9c302d7d27e77f84", "score": "0.6362963", "text": "@Override\n\tpublic int getlength() {\n\t\n\t\tQuery q = em.createQuery(\"select count(l) from Library l\");\n\t\n\t\treturn (int) q.getSingleResult();\n\t}", "title": "" }, { "docid": "8fc9cfc276a4741ca5a9ca7a045be200", "score": "0.6360554", "text": "@Override\r\n\tpublic int count() {\n\t\tString sql = \"select count(*) from persons\";\r\n\t\tQueryRunner qr = JdbcUtils.getQueryRunner();\r\n\t\tint count = 0;\r\n\t\ttry {\r\n\t\t\t// 默认返回第一行第一列的数据\r\n\t\t\tLong query = qr.query(sql, new ScalarHandler<Long>());\r\n\t\t\t// 将long转为整型\r\n\t\t\tcount = query.intValue();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "title": "" }, { "docid": "5aec1de6f3f439f284a0f2c2fbe38961", "score": "0.6345869", "text": "public org.apache.xmlbeans.XmlInteger xgetCount()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlInteger target = null;\r\n target = (org.apache.xmlbeans.XmlInteger)get_store().find_attribute_user(COUNT$26);\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "3e93bd910c80c1c9acf4e0d2b24c6196", "score": "0.6343526", "text": "public Integer count() {\n return this.count;\n }", "title": "" }, { "docid": "126b68348501c14cd7174f018a28ffe9", "score": "0.6259643", "text": "@Override\n\tpublic Integer selectYonghuCount() {\n\t\treturn yonghuMapper.selectYonghuCount();\n\t}", "title": "" }, { "docid": "955cc48834d8ee6911765e75ca8a8e8c", "score": "0.62502986", "text": "private Long _rawCount() {\r\n Long ret = new Long(0);\r\n try {\r\n StringBuffer sql = new StringBuffer();\r\n // Set the main QUERY\r\n sql.append(\"SELECT COUNT(DISTINCT A.ID_NATURE_OBJECT) FROM chm62edt_sites A \"\r\n + \" LEFT JOIN chm62edt_nature_object_geoscope B ON A.ID_NATURE_OBJECT=B.ID_NATURE_OBJECT \"\r\n + \" LEFT JOIN chm62edt_country C ON B.ID_GEOSCOPE = C.ID_GEOSCOPE WHERE\");\r\n // Apply WHERE CLAUSE\r\n sql.append(_prepareWhereSearch().toString());\r\n ret = findLong(sql.toString());\r\n if (null == ret)\r\n return new Long(0);\r\n } catch (Exception _ex) {\r\n _ex.printStackTrace();\r\n }\r\n return ret;\r\n }", "title": "" }, { "docid": "f8e2fb7a6ec889025071f43cf5ac2034", "score": "0.62368923", "text": "public int getLCount() {\n return l_.size();\n }", "title": "" }, { "docid": "965f386f12ca39fd6cac34e81ef30e45", "score": "0.6232917", "text": "public int getLocalCount();", "title": "" }, { "docid": "156afdd7513540e041983c9412ddea82", "score": "0.62104005", "text": "public int val(){\r\n\t\treturn count;\r\n\t}", "title": "" }, { "docid": "83d8b2aaaae08b1f65dde596a52ceccf", "score": "0.62045467", "text": "public int getLCount() {\n return l_.size();\n }", "title": "" }, { "docid": "c6458ee95417a4f5ab626949f2f003ad", "score": "0.6194157", "text": "long getCount() throws OrgApiDataException;", "title": "" }, { "docid": "e766e815bdc1a62aecf8d05584ddd42a", "score": "0.61776465", "text": "com.google.protobuf.Int64Value getCount();", "title": "" }, { "docid": "8b51ead838fc6da99484b4d644963285", "score": "0.61727446", "text": "public java.lang.Integer getCount() {\n return count;\n }", "title": "" }, { "docid": "5bfbeb373c16ada150cc515722fb44c7", "score": "0.6171481", "text": "public long count() {\n return this.d.count();\n }", "title": "" }, { "docid": "aef344bf3a10cc44f3013802f8f76a30", "score": "0.61489743", "text": "int getDataCount();", "title": "" }, { "docid": "aef344bf3a10cc44f3013802f8f76a30", "score": "0.61489743", "text": "int getDataCount();", "title": "" }, { "docid": "aef344bf3a10cc44f3013802f8f76a30", "score": "0.61489743", "text": "int getDataCount();", "title": "" }, { "docid": "aef344bf3a10cc44f3013802f8f76a30", "score": "0.61489743", "text": "int getDataCount();", "title": "" }, { "docid": "e7931db2acd2428044b2e91e4d0b1f8b", "score": "0.6142137", "text": "public java.lang.Integer getCount() {\n return count;\n }", "title": "" }, { "docid": "30291685e0474066c23c60bee30745ad", "score": "0.61341655", "text": "public int getCount() {\n\t\t//return ( (Integer) getHibernateTemplate().iterate(\"select count(*) from Event\").next() ).intValue();\n\t\tList eventCount = getHibernateTemplate().find(\"select count(*) from Event\");\n\t\tIterator it = eventCount.iterator(); \n\t\t\n\t\twhile(it.hasNext()) {\n\t\t\treturn new Integer(it.next().toString()).intValue();\n\t\t}\n\t\t\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "816023defb06b927b12b3b088d7c2cc9", "score": "0.6133291", "text": "public void setJlCount(Integer jlCount) {\n this.jlCount = jlCount;\n }", "title": "" }, { "docid": "5502521f610aca991a4d477cc3ad3cd1", "score": "0.6112947", "text": "public Long getCount() {\n return this.count;\n }", "title": "" }, { "docid": "038d6fa8ffc187c0b5e7a8283805b0e7", "score": "0.6110118", "text": "public String getCount() {\n return count;\n }", "title": "" }, { "docid": "0d3ca502a63e82cf1689a182281d0b74", "score": "0.60887045", "text": "public long count() {\n return this.count;\n }", "title": "" }, { "docid": "c3067a2e6489fcde84dc2212821b1096", "score": "0.6084975", "text": "public int count() {\r\n\t\tString sql=\"Select count(*) from Student\";\r\n\t\tint count=template.queryForObject(sql, Integer.class);\r\n\t\treturn count;\r\n\t}", "title": "" }, { "docid": "806160e242f2ba37c27a4c47fb371017", "score": "0.60832167", "text": "public long getCount() {\n return count.get();\n }", "title": "" }, { "docid": "c906db515b9010c2fc7d25e85c58830c", "score": "0.60819095", "text": "public Object count() {\n return this.count;\n }", "title": "" }, { "docid": "3a075de0b1ab3fdccb8f07cdcb97e714", "score": "0.6081776", "text": "public java.lang.Integer getCount() {\n return count;\n }", "title": "" }, { "docid": "b5b8b3917a0ddfd5e078a42610ea626c", "score": "0.6073005", "text": "public java.lang.String getResultCnt() {\r\n return resultCnt;\r\n }", "title": "" }, { "docid": "80f610a8b8f6bd06caba29bda1986dde", "score": "0.6051673", "text": "String getCount();", "title": "" }, { "docid": "a881ba792c2e322559a4b41a6d4e844b", "score": "0.6042656", "text": "public Long count();", "title": "" }, { "docid": "a81aa45e30de64c46a43039e1cb424ed", "score": "0.6026548", "text": "public String getCountedValue() {\n return countedValue;\n }", "title": "" }, { "docid": "8de5a402041359372d4283d058bb1341", "score": "0.600888", "text": "@Override\r\n\tpublic Long count() {\n\t\tLong result = 0L;\r\n\t\tString hql = \"select count(1) from BookCategory\";\r\n\t\tList<Object> arrParams = new ArrayList<Object>();\r\n\t\tObject[] params = arrParams.toArray();\r\n\t\ttry {\r\n\t\t\tresult = getTmpl().execute(this.getCallbackScalarLong(hql, params));\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new RuntimeException();\r\n\t\t} finally {\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "d174253213b1189c0a88c176604a4e55", "score": "0.60083777", "text": "public Integer count() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c0ee2224695a01a3472c97184686f6ae", "score": "0.5999999", "text": "public int count() {\n return this.count;\n }", "title": "" }, { "docid": "2b4ba10a7eb75e1800b681f21a68b0b2", "score": "0.5989163", "text": "@Override\r\n\tpublic int listCount() throws Exception {\n\t\treturn sqlSession.selectOne(\"mapper.board.listCount\");\r\n\t}", "title": "" }, { "docid": "3d590fb473537e4c2b6b78ba16a52367", "score": "0.5987319", "text": "public int getUserCount()\n\t{\n\t\treturn single(\"select count(*) from User user\").intValue();\n\t}", "title": "" }, { "docid": "7f73716858a3663b31b62206b817fe61", "score": "0.5980359", "text": "public long count() {\n return count;\n }", "title": "" }, { "docid": "b5b71f264620cdde5eed0b26e7306b6b", "score": "0.597099", "text": "@Override\r\n\tpublic int GetCount() {\n\t\tint result=-1;\r\n\t\tString sql=\"select count(*) from easybuy_news\";\r\n\t\tResultSet rSet=super.query(sql, null);\r\n\t\ttry {\r\n\t\t\tif(rSet.next())\r\n\t\t\t{\r\n\t\t\t\tresult=rSet.getInt(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "e1b7fa535023bd029906a4333adb1f54", "score": "0.5968617", "text": "java.lang.String getCount();", "title": "" }, { "docid": "b1d6212a29e68571219f6814e0eda135", "score": "0.5960576", "text": "public long getCount() {\n return count;\n }", "title": "" }, { "docid": "79e27efb0b58d1ebc5b7163b7610282e", "score": "0.59553987", "text": "public int countLekarze()\r\n {\r\n int luserow=0;\r\n try {\r\n String zliczenie = \"SELECT COUNT(*) AS LICZBA FROM lekarze\"; \r\n PreparedStatement liczenie = getConn().prepareStatement(zliczenie);\r\n ResultSet rsilosc = liczenie.executeQuery();\r\n while (rsilosc.next()) {\r\n luserow = rsilosc.getInt(\"LICZBA\");\r\n }\r\n luserow++;//zwiekszenie aby nastepne id\r\n return luserow;\r\n } catch (SQLException ex) {\r\n LOGGER.log(Level.SEVERE, \"Blad podczas zliczania lekarzy\", ex);\r\n return luserow;\r\n }\r\n }", "title": "" }, { "docid": "d60f5478a56bdd57a7758dc9cc123e2f", "score": "0.59486717", "text": "@Override\n\tpublic int selectListCount() {\n\t\treturn sqlSession.selectOne(\"boardmapper.selectListCount\");\n\t}", "title": "" }, { "docid": "175db9e7302991fdd1091746dd09d32d", "score": "0.59388983", "text": "Long count();", "title": "" }, { "docid": "175db9e7302991fdd1091746dd09d32d", "score": "0.59388983", "text": "Long count();", "title": "" }, { "docid": "175db9e7302991fdd1091746dd09d32d", "score": "0.59388983", "text": "Long count();", "title": "" }, { "docid": "f17d4ff24fa2c82fb4e17c993b3e1422", "score": "0.5937224", "text": "int getValCount();", "title": "" }, { "docid": "f17d4ff24fa2c82fb4e17c993b3e1422", "score": "0.5937224", "text": "int getValCount();", "title": "" }, { "docid": "f17d4ff24fa2c82fb4e17c993b3e1422", "score": "0.5937224", "text": "int getValCount();", "title": "" }, { "docid": "f17d4ff24fa2c82fb4e17c993b3e1422", "score": "0.5937224", "text": "int getValCount();", "title": "" }, { "docid": "f17d4ff24fa2c82fb4e17c993b3e1422", "score": "0.5937224", "text": "int getValCount();", "title": "" }, { "docid": "f17d4ff24fa2c82fb4e17c993b3e1422", "score": "0.5937224", "text": "int getValCount();", "title": "" }, { "docid": "133e70f8522bd717a74ddab898a107a2", "score": "0.59329474", "text": "public String getCountString() {\n\t\treturn Integer.toString(this.count);\n\t}", "title": "" }, { "docid": "701712af6972e54c455db893ca12fece", "score": "0.5930592", "text": "int getReportedValueCount();", "title": "" }, { "docid": "7b8c2dc0b7e52f3e703c716359e348c0", "score": "0.59150237", "text": "public int componentCount() {\n int count = 0;\n try {\n // Holen\n // 1. get conn\n Connection myConn = getConnection();\n // 2. create statement\n Statement myStmt = myConn.createStatement();\n // 3. execute sql query\n ResultSet result = myStmt\n .executeQuery(\"select COUNT(*) from components\");\n // 4. Process results\n result.next();\n count = result.getInt(1);\n try {\n if (myStmt != null) {\n myStmt.close();\n }\n } catch (Exception ex) {/* nothing to do*/\n\n };\n try {\n if (myConn != null) {\n myConn.close();\n }\n } catch (Exception ex) {/* nothing to do*/\n\n };\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return count;\n }", "title": "" }, { "docid": "125b443d72058077a3bde40fd94d21ea", "score": "0.59137547", "text": "public int count() {\n return count;\n }", "title": "" }, { "docid": "a7f0042e90dda3deb876107a4296f914", "score": "0.5909931", "text": "int getCCount();", "title": "" }, { "docid": "3095a5c0926deee49fe96f9b9c6b2000", "score": "0.58975226", "text": "public long getCount() {\n return count;\n }", "title": "" }, { "docid": "455be34b204e21ecc1971b6a35d1c9e3", "score": "0.5888616", "text": "@Override\n public String count(){\n return ldc[size-1].count();\n }", "title": "" }, { "docid": "8a9d9fd3a2d24cc7385d572fd8c4a5c7", "score": "0.5886591", "text": "public Integer getCount() {\n return count;\n }", "title": "" }, { "docid": "8a9d9fd3a2d24cc7385d572fd8c4a5c7", "score": "0.5886591", "text": "public Integer getCount() {\n return count;\n }", "title": "" }, { "docid": "8a9d9fd3a2d24cc7385d572fd8c4a5c7", "score": "0.5886591", "text": "public Integer getCount() {\n return count;\n }", "title": "" }, { "docid": "8a9d9fd3a2d24cc7385d572fd8c4a5c7", "score": "0.5886591", "text": "public Integer getCount() {\n return count;\n }", "title": "" }, { "docid": "8a9d9fd3a2d24cc7385d572fd8c4a5c7", "score": "0.5886591", "text": "public Integer getCount() {\n return count;\n }", "title": "" }, { "docid": "8a9d9fd3a2d24cc7385d572fd8c4a5c7", "score": "0.5886591", "text": "public Integer getCount() {\n return count;\n }", "title": "" }, { "docid": "63d743cb02604beeb9057f7427abfc39", "score": "0.58819807", "text": "public int count() {\n return count;\n }", "title": "" }, { "docid": "63d743cb02604beeb9057f7427abfc39", "score": "0.58819807", "text": "public int count() {\n return count;\n }", "title": "" }, { "docid": "7e2f8a0acc85b173e157608faa1dc063", "score": "0.58817756", "text": "@Schema(description = \"Number of times viewed in the Looker web UI\")\n public Long getViewCount() {\n return viewCount;\n }", "title": "" }, { "docid": "709ebc21f0b2f587f349c15b1087fe7b", "score": "0.5848311", "text": "public Integer counts(String sql) {\n List list = getHibernateTemplate().find(sql);\n if (list != null && list.size() > 0) {\n return ((Long) list.get(0)).intValue();\n } else\n return 0;\n }", "title": "" }, { "docid": "23305622800c5ba0464628cd825c50ff", "score": "0.5828155", "text": "long getCount();", "title": "" }, { "docid": "23305622800c5ba0464628cd825c50ff", "score": "0.5828155", "text": "long getCount();", "title": "" }, { "docid": "403c1fc4f28e6500fcfe4616eddac863", "score": "0.58132774", "text": "public int sizeData() {\n Integer i = null;\n String task = \"select count(*) from halldb;\";\n try(Connection connection = SOURCE.getConnection();\n Statement st = connection.createStatement();\n ResultSet res = st.executeQuery(task)) {\n while (res.next()){\n i = Integer.valueOf(res.getString(1));\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return i;\n }", "title": "" }, { "docid": "50ef0b81554d7dd2ff807b5b7702cb50", "score": "0.58110976", "text": "public int count()\n {\n\treturn count;\n }", "title": "" }, { "docid": "e34217379cf6665a1ef6eaa7b022cd6a", "score": "0.5810642", "text": "int getTradeClassifyDataCount();", "title": "" }, { "docid": "fa556246ce9bf70be1b6cd6f44ade038", "score": "0.5809262", "text": "public static long getDocumentsNumber() {\n\t\t// synchronized (_cache) {\n\t\t// if (_cache == null || _cache.isEmpty()) {\n\t\t// load();\n\t\t// }\n\t\t//\n\t\t// return _cache.size();\n\t\t// }\n\n\t\t// ---now we try to get document number from Datastore stats---\n\t\tQuery q = new Query(\"__Stat_Kind__\");\n\t\tq.addFilter(\"kind_name\", FilterOperator.EQUAL, \"Domains\");\n\n\t\tEntity stat = _datastore.prepare(q).asSingleEntity();\n\n\t\tif (stat != null) {\n\t\t\treturn (Long) stat.getProperty(\"count\");\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "d42b532646f7826a8ff50e2e77a9b141", "score": "0.5803814", "text": "public final int mo44447l() {\n return mo44439d().getInt(\"data_usage\", 2);\n }", "title": "" }, { "docid": "e6eb269df389eeb6d64270b4ec33b99d", "score": "0.5802771", "text": "public int getLmccdoneCount()\n\t{\n\n\t\tPreparedStatementWrapper psw = relapi.fetchPreparedStatement(PS_FOR_GET_LMCCDONE_COUNT_ID);\n\t\tPreparedStatement ps = psw.getPreparedStatement();\n\t\tResultSet rs=null;\n\t\tint count=0;\n\n\t\ttry\n\t\t{\n\t\t\t{\n\t\t\t\trs = ps.executeQuery();\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tcount=rs.getInt(1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tEMHUtil.printOut(\"LMCCDONE Count :;>>>> . \"+count,Log.DEBUG);\n\t\t}catch(SQLException sqle)\n\t\t{\n\t\t\tsqle.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(rs != null)\n\t\t\t\t{\n\t\t\t\t\trs.close();\n\t\t\t\t}\n\t\t\t}catch(SQLException sqle){}\n\t\t\trelapi.returnPreparedStatement(psw);\n\t\t}\n\n\t\treturn count;\n\n\t}", "title": "" }, { "docid": "f8b77ad01ba8ddc577386821acabc89f", "score": "0.58007205", "text": "int getMetricCount();", "title": "" }, { "docid": "b700ccbe45e092e8eda6bef2241e8f8c", "score": "0.5792191", "text": "com.google.protobuf.Int64ValueOrBuilder getCountOrBuilder();", "title": "" }, { "docid": "3fc42f67a5b6a5febacc496fe43bfc63", "score": "0.57863", "text": "public long getQueryContentionCount()\n {\n // import Component.Util.Daemon.QueueProcessor.Service.Grid.PartitionedService.PartitionedCache$Storage as Storage;\n \n Storage storage = get_Storage();\n return storage == null ? -1L : storage.getStatsQueryContentionCount().get();\n }", "title": "" }, { "docid": "401aa03a2ceff454304f2c4c643b6fc3", "score": "0.57858014", "text": "int getFCount();", "title": "" }, { "docid": "d709ec09fc14a1a2b2e8c45708a2c495", "score": "0.5783741", "text": "@Override\n public int count() {\n return jdbcTemplate\n .queryForObject(\"select count(*) from contacto\", Integer.class);\n }", "title": "" }, { "docid": "e159e84ba6f0e11ffd2ba1815ba69cd1", "score": "0.5782706", "text": "default long countValues() {\n\t\treturn values(Long.MAX_VALUE, false).value();\n\t}", "title": "" }, { "docid": "76ba2c6db2981ac6d8b15b7f5c7e752f", "score": "0.57826686", "text": "int getDCount();", "title": "" }, { "docid": "76ba2c6db2981ac6d8b15b7f5c7e752f", "score": "0.57826686", "text": "int getDCount();", "title": "" }, { "docid": "41f9317c7be82cd19aba6e6dbbbefb46", "score": "0.5778011", "text": "@Transactional\n\tpublic Integer countIndStatess() {\n\t\treturn ((Long) indStatesDAO.createQuerySingleResult(\"select count(o) from IndStates o\").getSingleResult()).intValue();\n\t}", "title": "" }, { "docid": "5a35bfeb3bd5daf87f0b936cf23e1b0f", "score": "0.57706285", "text": "public int count() {\n\t\treturn count;\n\t}", "title": "" }, { "docid": "5a35bfeb3bd5daf87f0b936cf23e1b0f", "score": "0.57706285", "text": "public int count() {\n\t\treturn count;\n\t}", "title": "" }, { "docid": "29efd91de85aab295b1f56e5d961d9ac", "score": "0.57703316", "text": "@GET\r\n\t@Path(\"count\")\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\tpublic String getCount() \r\n\t{\r\n\t\tint count = CourseSessionDao.instance.getModel().size();\r\n\t\treturn String.valueOf(count);\r\n\t}", "title": "" }, { "docid": "69585c097225fa2c46f087877a0785d2", "score": "0.57638943", "text": "private int count() {\n return this.count;\n }", "title": "" }, { "docid": "acb2f5c0de6d6d578030662c3b6dfd21", "score": "0.5758779", "text": "public long count();", "title": "" }, { "docid": "acb2f5c0de6d6d578030662c3b6dfd21", "score": "0.5758779", "text": "public long count();", "title": "" }, { "docid": "acb2f5c0de6d6d578030662c3b6dfd21", "score": "0.5758779", "text": "public long count();", "title": "" }, { "docid": "a900c9bf8d174e26d70c5de85d3e1366", "score": "0.5758351", "text": "public int selectCount() {\n\t\treturn versionMapper.selectCount();\n\t}", "title": "" } ]
69507ac4581e84b3ef2e809cec83b389
Required. The repository in which to list compilation results. Must be in the format `projects/locations/repositories`.
[ { "docid": "ec04a74d75e771e21dd20b919462d8fc", "score": "0.0", "text": "public java.lang.String getParent() {\n return parent;\n }", "title": "" } ]
[ { "docid": "3776571fcdbb7af12564f5724c135ad3", "score": "0.61768967", "text": "public String getRepositoryString()\n {\n return repository.toString();\n }", "title": "" }, { "docid": "e600129407da9cb53ee0ba88da115ab8", "score": "0.6056374", "text": "public abstract ImmutableList<String> getWorkspaceRepos();", "title": "" }, { "docid": "efebb76870579ed188481127d5ddc365", "score": "0.6039403", "text": "@Nullable\n URI repositoryUrl();", "title": "" }, { "docid": "1eb23640e0dfbddccc4abfcb76afe3a1", "score": "0.6030988", "text": "public String getRepositoryURL() {\n return getRepositoryURL(false);\n }", "title": "" }, { "docid": "8dcf8a54476ef316d4d2db5e56bf9833", "score": "0.6027112", "text": "public String getRepositoryURL() {\n return repositoryURL;\n }", "title": "" }, { "docid": "915089459189b6a67979828221da6cc3", "score": "0.5904622", "text": "public String getExternalRepositoryName() {\n return repositoryName;\n }", "title": "" }, { "docid": "2e4461c642d1fe413ad18aa8ab24c55e", "score": "0.5894781", "text": "public interface RepositoryQueryImplementation {\n \n /**\n * Determines the remote bugtracking repository url. \n * \n * @param fileObject\n * @return the remote repository url or null if not available\n * @since 1.85\n */\n public String getRepositoryUrl(FileObject fileObject);\n}", "title": "" }, { "docid": "904cbe4aabb36f21444cf87cc7bf1206", "score": "0.5840178", "text": "public List<ResourceRepository> getProjectContents() {\n return projectContents;\n }", "title": "" }, { "docid": "5440e57540f8ef8eb12c5c7158dc2a6a", "score": "0.58028686", "text": "public String getProjectNameInRepository() {\r\n return this._projectNameInRepository;\r\n }", "title": "" }, { "docid": "ce398184f17a431f39a3a40b4270286b", "score": "0.57940537", "text": "public void setReposLocation( String reposLocation ) {\n this.reposLocation = reposLocation;\n }", "title": "" }, { "docid": "e4991543d63e33f305725e291f237b2c", "score": "0.5772317", "text": "@Nullable\n String repositoryName();", "title": "" }, { "docid": "e1502024a12ce61d95335dec423bdc13", "score": "0.5739479", "text": "public String repoUrl() {\n return this.repoUrl;\n }", "title": "" }, { "docid": "0bdf3a22fe1d828e1baeb65777cda983", "score": "0.5729731", "text": "public RepositoryLibrary getRepositoryLibrary() {\n return this.repositoryLibrary;\n }", "title": "" }, { "docid": "daa285d5fe41701d6a64a9bb0c49e54f", "score": "0.5714063", "text": "public String getRepositoryName() {\n return repositoryName;\n }", "title": "" }, { "docid": "8fdf69c54bc10eb2544d4d1bf95fd7a3", "score": "0.5693214", "text": "Repository getRepository();", "title": "" }, { "docid": "11b004b164ff00352b02bf3d4913ef7e", "score": "0.5686129", "text": "List<RepoPath> artifactsByName(String query, String... repositories);", "title": "" }, { "docid": "7709922410a078ab91b9edfb6516a8cf", "score": "0.56585175", "text": "java.lang.String getRepoName();", "title": "" }, { "docid": "16e0e4571e9f62adb4f7dbc663993909", "score": "0.5649044", "text": "CpRepositoryList getCpRepositoryList();", "title": "" }, { "docid": "15641ca92ba744caf5460ce85b7abbf1", "score": "0.5624641", "text": "public String Service(){\n return this.ServerUri() + \"repositories/\" + this.Repository();\n }", "title": "" }, { "docid": "ff5f3b6f4e9013b19bc3aff1357cf1e5", "score": "0.5583105", "text": "public String repositoryUrl() {\n return this.innerProperties() == null ? null : this.innerProperties().repositoryUrl();\n }", "title": "" }, { "docid": "97f9f966b328f59444ccc379859f9163", "score": "0.5575005", "text": "public String getRepositoryName() {\n return repositoryName;\n }", "title": "" }, { "docid": "b26451a160c367a5dbdf005c310c3e9a", "score": "0.556525", "text": "public Path getRepository() {\n return repository;\n }", "title": "" }, { "docid": "214790701c2a06b95f4aa04dac2635dc", "score": "0.554522", "text": "String getRepositoryForDirectory(String directory, String repository)\n throws IOException;", "title": "" }, { "docid": "4a11512e2d9fcdb47bf99ccd35872d19", "score": "0.5487661", "text": "public String getRepositoryPath() {\n return repositoryPath;\n }", "title": "" }, { "docid": "9ed602e2dcfa18f592826a4bd4f274d0", "score": "0.54790103", "text": "public List<String> fetchRepoDescAPI() {\n\t\tString uri = baseURI + \"/orgs/django/repos\";\n\t\tResponse response = httpGetRequest(uri);\n\t\tList<String> lsRepoDesc = readJsonListHTTPResponse(response, \"description\");\n\t\treturn lsRepoDesc;\n\t}", "title": "" }, { "docid": "20e29f072a2cefee061a48382025e5ce", "score": "0.5446389", "text": "@Override\n\tpublic Repository getRepository(String arg0) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "46d44cef1f6c5ba5d4d401fc935740ec", "score": "0.54398453", "text": "public Repository getRepository() {\r\n\t\treturn repository;\r\n\t}", "title": "" }, { "docid": "de8c2b2c7059a3f00b7fbc108f3749ac", "score": "0.5436167", "text": "Configuration setLocalRepository( File localRepository );", "title": "" }, { "docid": "b1a86d2dbc50a248e51727489a7561a7", "score": "0.54095733", "text": "public Stream<URI> repositories() {\n return repositories.stream();\n }", "title": "" }, { "docid": "6492b9dd092d60e77f5d4ae989dc6b74", "score": "0.5399095", "text": "protected File getLocalRepository(Configuration configuration) {\n \tString localRepositoryPath = null;\n\n \tConfigurationValidationResult validateMavenConfiguration = validateMavenConfiguration(configuration);\n \tSettings userSettings = validateMavenConfiguration.getUserSettings();\n \t\n\t\tif (userSettings != null) {\n\t\t\tlocalRepositoryPath = userSettings.getLocalRepository();\n\t\t} else if (validateMavenConfiguration.getGlobalSettings() != null) {\n\t\t\tSettings globalSettings = validateMavenConfiguration.getGlobalSettings();\n\t\t\tlocalRepositoryPath = globalSettings.getLocalRepository();\n\t\t} else {\n\t\t\treturn MavenEmbedder.defaultUserLocalRepository;\n\t\t}\n\t\t\n\t\treturn getLocalRepositoryLocation(localRepositoryPath);\n }", "title": "" }, { "docid": "fe789d64fc4e48ce2a7714907e84cdee", "score": "0.5387365", "text": "List<RemoteRepository> getRemoteRepositories() throws ResolutionException;", "title": "" }, { "docid": "e42d1ac5331bb40d6543d4f41ed38a8a", "score": "0.5385057", "text": "public interface GitHubIntegrationService {\n void fetchRepositorySources(String repoUrl, String sourcesDirPath);\n}", "title": "" }, { "docid": "36ebee0a6c965d4a58a808f00bfcee87", "score": "0.5384968", "text": "public String getRepositoryName() {\n\t\treturn protocolConnector.getRepositoryName();\n\t}", "title": "" }, { "docid": "62ca807c7d3ea6a84feb9888a28401e1", "score": "0.53521276", "text": "public interface Repository {\n\t\t/**\n\t\t * Get the parent repository for this repository (or <code>null</code> if this\n\t\t * is the root repository).\n\t\t *\n\t\t * @return\n\t\t */\n\t\tpublic Package.Repository getParent();\n\n\t\t/**\n\t\t * List all known versions of a given package. This is used for resolution,\n\t\t * amongst other things.\n\t\t *\n\t\t * @param pkg\n\t\t * @return\n\t\t */\n\t\tpublic Set<Semantic.Version> list(String pkg) throws IOException;\n\n\t\t/**\n\t\t * Get a given package in this repository. If no such package exists, an\n\t\t * <code>IllegalArgumentException</code> is thrown.\n\t\t *\n\t\t * @param name\n\t\t * @param version\n\t\t * @return\n\t\t */\n\t\tpublic ZipFile get(String name, Semantic.Version version) throws IOException;\n\n\t\t/**\n\t\t * Put a given package into this repository.\n\t\t *\n\t\t * @param pkg\n\t\t */\n\t\tpublic void put(ZipFile pkg, String name, Semantic.Version version) throws IOException;\n\t}", "title": "" }, { "docid": "11f22745e77ffa977f009998333a96f8", "score": "0.5334161", "text": "public String getRepositoryUrl(FileObject fileObject);", "title": "" }, { "docid": "fef84194a98ff50266982f3cc610806e", "score": "0.5330635", "text": "java.util.concurrent.Future<ListRepositoriesResult> listRepositoriesAsync(ListRepositoriesRequest listRepositoriesRequest);", "title": "" }, { "docid": "8c45b2137049e01d67b4e86ed41fcf5a", "score": "0.53160286", "text": "RepositoryManagerResult extractBuildArtifacts() throws RepositoryManagerException;", "title": "" }, { "docid": "2e1fcdb2b4cea8a4c4db8f2606714325", "score": "0.5315784", "text": "public String getRepoEndpoint();", "title": "" }, { "docid": "f934dc3b7c6e1df48be09beb36e51d12", "score": "0.5240257", "text": "public Repository getRepository() {\n return rep;\n }", "title": "" }, { "docid": "a70bff7e9268ed631407477cc6dba8bf", "score": "0.52369124", "text": "public Object getRepository() {\n return repository;\n }", "title": "" }, { "docid": "390a3db7fce216a224bcdd7c144254a0", "score": "0.5229621", "text": "public String getCodeLocation() {\n return codeRepository;\n }", "title": "" }, { "docid": "cc2dbca79976483297038fa84703061e", "score": "0.52210015", "text": "@Test\n\tpublic void getAllRepositories() {\n\n\t\t// GitHub API uses basic authorization (Provide a valid github username\n\t\t// and password here)\n\t\tArrayList<String> repos = given().auth().preemptive().basic(userName, password)\n\t\t\t\t.when().get(\"/repos\")\n\t\t\t\t.then().extract().path(\"name\");\n\t\tSystem.out.println(repos);\n\n\t}", "title": "" }, { "docid": "22f97430cbb04f0a86f9860498652edf", "score": "0.5216699", "text": "private String getRemoteNameSuggestion(String cloudRepository) {\n if (gitRepository != null && hasOriginRemote()) {\n return CLOUD_SOURCE_REPO_REMOTE_PREFIX + cloudRepository;\n } else {\n return \"origin\";\n }\n }", "title": "" }, { "docid": "a44a19673f42a6cf96f0486df6f1a398", "score": "0.51974535", "text": "public String getReposityName() {\n\t\tPRECONDITIONS: {\n\t\t\t// none\n\t\t}\n\t\t\n\t\ttry {\n\t\t\treturn this.repositoryName;\n\t\t} finally {\n\t\t\tPOSTCONDITIONS: {\n\t\t\t\tCondition.notNull(this.repositoryName,\n\t\t\t\t \"Field '%s' in '%s'.\", \"repositoryName\", getClass().getSimpleName()); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8628de57dd43a74ae717960c99d6307a", "score": "0.5176799", "text": "public interface RepositoryPackage {\n}", "title": "" }, { "docid": "8e3bfcd08f9bac3b46ca79727268f612", "score": "0.5164376", "text": "@Override\n public RepositoryDirectory getRepositoryDirectory() {\n return null;\n }", "title": "" }, { "docid": "45682f0f8bcbba2d59d914f7edc0c887", "score": "0.5161366", "text": "public Repository[] getRepos() {\n ParserJson x = new ParserJson();\n x.setAsJsonRepo(owner);\n Integer count = owner.getNRepo();\n Repository[] result = new Repository[count];\n if (count > 0) {\n String lastElement = \"\";\n String nama = \"\";\n String deskripsi = \"\";\n String url = \"\";\n int fromIndex = x.getString().indexOf(\"\\\"id\\\"\");\n for (int n = 0; n < count; n++) {\n if (n > 0) {\n fromIndex = x.getString().indexOf(lastElement,fromIndex) + 1;\n }\n lastElement = x.get(ParserJson.DEFAULT_BRANCH,fromIndex);\n nama = x.get(ParserJson.NAMA_REPOSITORY,fromIndex);\n deskripsi = x.get(ParserJson.DESCRIPTION,fromIndex);\n url = x.get(ParserJson.HTML_URL,fromIndex);\n result[n] = new Repository(nama, deskripsi, url);\n }\n }\n return result;\n }", "title": "" }, { "docid": "a859fb7cd74e0adea5cdbc7e020fdf75", "score": "0.5142005", "text": "public interface Resolver {\n\t\t/**\n\t\t * Resolve a given package name and version string, which may include additional\n\t\t * modifiers (e.g. semantic versioning constraints).\n\t\t *\n\t\t * @param pkg\n\t\t * @param version\n\t\t * @return\n\t\t */\n\t\tList<Content.Source> resolve(Configuration cf) throws IOException;\n\n\t\t/**\n\t\t * Get the root repository associated with this package resolver.\n\t\t *\n\t\t * @return\n\t\t */\n\t\tRepository getRepository();\n\t}", "title": "" }, { "docid": "dd7a55ef06a29c4f8bf08e3d94fbce1c", "score": "0.5135987", "text": "public static boolean CompileRepo() {\n return runCommandAndLookForKeywordInOutput(\"mvn clean compile assembly:single\", \"temp/repo/CI\", \"ERROR\");\n }", "title": "" }, { "docid": "e96faa0d979a9867dce9969c2875ee7a", "score": "0.51163673", "text": "public RepositoryInfo describeRepository(Context context)\n throws ServerException {\n return null;\n }", "title": "" }, { "docid": "548565bf03747ad294f552c597fc30fa", "score": "0.50894797", "text": "public List<String> fetchRepoNamesAPI() {\n\t\tString uri = baseURI + \"/orgs/django/repos\";\n\t\tResponse response = httpGetRequest(uri);\n\t\tList<String> lsRepoNames = readJsonListHTTPResponse(response, \"name\");\n\t\treturn lsRepoNames;\n\t}", "title": "" }, { "docid": "4096f64cd8da05e8af6a09d06a7177ca", "score": "0.5081674", "text": "public Repository index() {\n try {\n JsonElement repoItems = getResponseToJsonElement(\n doGet(uri + \"?\" + CurrentUser.getAuthParams())\n ).getAsJsonObject().get(\"repo_items\");\n return getRepository(repoItems);\n } catch (NotSuccessRequest ex) {\n notSuccesLog(\"index\", ex);\n return null;\n }\n }", "title": "" }, { "docid": "3b0b000656e5569ffd588424245adcb7", "score": "0.5081295", "text": "public void setRepository( Repository repository ) {\n this.rep = repository;\n }", "title": "" }, { "docid": "8903a09376f41572eeb1b3d48718d2da", "score": "0.5079432", "text": "Repository createRepository();", "title": "" }, { "docid": "8903a09376f41572eeb1b3d48718d2da", "score": "0.5079432", "text": "Repository createRepository();", "title": "" }, { "docid": "270f14c0fa996420e5f333f0d1ee4da8", "score": "0.5078201", "text": "public void setRepositoryURL(String repoURL) {\n\n repositoryURL = repoURL.trim();\n }", "title": "" }, { "docid": "6f3b8d480e4411bb6bb625d4485cf55c", "score": "0.50774336", "text": "void setRepository(Repository repository) {\r\n\t\tthis.repository = repository;\r\n\t}", "title": "" }, { "docid": "b97387fa2d1dada3881f92d1b0667c21", "score": "0.50688475", "text": "private Map<String, String> requestRepositoryInfo() throws ApplicationServerSystemException {\r\n \r\n if (gsearchUrl == null) {\r\n throw new ApplicationServerSystemException(INITIALIZATION_ERROR_MSG);\r\n }\r\n \r\n try {\r\n final String response =\r\n connectionUtility.getRequestURLAsString(connectionUtility.getHttpClient(gSearchDefaultParams), new URL(\r\n gsearchUrl + Constants.GSEARCH_GET_REPOSITORY_INFO_PARAMS));\r\n // Catch Exceptions\r\n if (Constants.EXCEPTION_PATTERN.matcher(response).matches()) {\r\n throw new ApplicationServerSystemException(response);\r\n }\r\n final StaxParser sp = new StaxParser();\r\n final GsearchRepositoryInfoHandler handler = new GsearchRepositoryInfoHandler();\r\n sp.addHandler(handler);\r\n \r\n sp.parse(new ByteArrayInputStream(response.getBytes(XmlUtility.CHARACTER_ENCODING)));\r\n return handler.getGsearchRepositoryInfo();\r\n }\r\n catch (final Exception e) {\r\n throw new ApplicationServerSystemException(e.getMessage(), e);\r\n }\r\n }", "title": "" }, { "docid": "766f8ba8db533cc0385263e3f124acaa", "score": "0.50664556", "text": "public Repository getRepository() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6ce75c269a3db3c377ba0e8714a4ea9c", "score": "0.5055847", "text": "@Override\n\tpublic Repository getRepository() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7cd0a25679a1694f0017f63599fe88d6", "score": "0.50543743", "text": "private void scanNetBeansOrgStableSources() throws IOException {\n if (lazyNetBeansOrgList >= 1) {\n return;\n }\n File nbdestdir = findNetBeansOrg(home);\n LOG.log(Level.INFO, \"full scan of {0}\", home);\n Map<String,String> clusterProps = getClusterProperties(home);\n // Use ${clusters.list}, *not* ${nb.clusters.list}: we do want to include testtools,\n // since those modules contribute sources for JARs which are used in unit test classpaths for stable modules.\n String clusterList = clusterProps.get(\"clusters.list\"); // NOI18N\n if (clusterList == null) {\n String config = clusterProps.get(\"cluster.config\"); // NOI18N\n if (config != null) {\n clusterList = clusterProps.get(\"clusters.config.\" + config + \".list\"); // NOI18N\n }\n }\n if (clusterList == null) {\n throw new IOException(\"Neither ${clusters.list} nor ${cluster.config} + ${clusters.config.<cfg>.list} found in \" // NOI18N\n + getClusterPropertiesFile(home));\n }\n Set<File> knownProjects = new HashSet<File>();\n for (ModuleEntry known : entries.values()) {\n knownProjects.add(known.getSourceLocation());\n }\n Map<String,ModuleEntry> _entries = new HashMap<String,ModuleEntry>(entries);\n StringTokenizer tok = new StringTokenizer(clusterList, \", \"); // NOI18N\n while (tok.hasMoreTokens()) {\n String clusterName = tok.nextToken();\n String moduleList = clusterProps.get(clusterName);\n if (moduleList == null) {\n throw new IOException(\"No ${\" + clusterName + \"} found in \" + home); // NOI18N\n }\n final String clusterDir = clusterProps.get(clusterName + \".dir\");\n StringTokenizer tok2 = new StringTokenizer(moduleList, \", \"); // NOI18N\n while (tok2.hasMoreTokens()) {\n final String module = clusterDir + \"/\" + tok2.nextToken(); //NETBEANS-3330\n File basedir = new File(home, module.replace('/', File.separatorChar));\n if (!knownProjects.contains(basedir)) { // we may already have scanned some\n scanPossibleProject(basedir, _entries, NbModuleType.NETBEANS_ORG, home, nbdestdir, module);\n }\n }\n }\n entries = _entries;\n LOG.log(Level.FINER, \"scanning NetBeans.org stable sources finished\");\n lazyNetBeansOrgList = 1;\n }", "title": "" }, { "docid": "a3f014aa65b567374cb7c16d156bbd4a", "score": "0.5034085", "text": "com.google.protobuf.ByteString getRepoNameBytes();", "title": "" }, { "docid": "d0a755e55f81606b39968939da80dffb", "score": "0.50303113", "text": "public String getRepositoryID() {\n return repositoryID;\n }", "title": "" }, { "docid": "10c4b597d577d869a2faf1bd38fa1450", "score": "0.5027753", "text": "Set<String> getRepositoryNames() throws RepositoryException;", "title": "" }, { "docid": "568d89d1ead81adbda3065ecb3128de3", "score": "0.5018555", "text": "public RepositoryApi getRepositoryApi();", "title": "" }, { "docid": "13e9f7f662d10e5a028c8918661485bb", "score": "0.5012174", "text": "public String[] getProjectList(){\n return pc.getProjectList();\n }", "title": "" }, { "docid": "6ab23a059837b151a13c66b845eb3eba", "score": "0.50003463", "text": "protected SlingRepository getRepository() {\n return repository;\n }", "title": "" }, { "docid": "7d024c15009e128a1bbdc4c55db06c2f", "score": "0.49879175", "text": "public java.lang.String getRepositoryId() {\n return repositoryId;\n }", "title": "" }, { "docid": "d48c667faa22f2e189b2e752bb748c9e", "score": "0.49782467", "text": "String[] getRepositoryNamespaces();", "title": "" }, { "docid": "bcc98cab9a33416224024273adac59a0", "score": "0.49756172", "text": "public List<Project> getProjectList();", "title": "" }, { "docid": "5a47a030be8ce36696058c7d5ccf4179", "score": "0.49702153", "text": "public String getGitRepoBaseURL() {\n return gitRepoBaseURL;\n }", "title": "" }, { "docid": "a7cb523dbe9676d8e42fe7979e524288", "score": "0.49667132", "text": "public IProject getProject();", "title": "" }, { "docid": "a7cb523dbe9676d8e42fe7979e524288", "score": "0.49667132", "text": "public IProject getProject();", "title": "" }, { "docid": "a2c4300892661c83c9e36a067a4407b8", "score": "0.49648422", "text": "public interface IRepository {\n @GET(\"/repos/{owner}/{repository}\")\n Call<party.hunchbacktank.githubapitest.model.Repository> getRepo(@Path(\"owner\") String owner, @Path(\"repository\") String repository);\n}", "title": "" }, { "docid": "96d8d80a7cab53d6497f647f88f73298", "score": "0.49645263", "text": "public String getRepositoryURL(boolean includeAuth) {\n if (includeAuth) {\n // take the existing repositoryURL and add the username\n // and password extracted from the associated server.\n try {\n URI uri = new URI(repositoryURL);\n\n AGServer server = catalog.getServer();\n String user = server.getUser();\n String password = server.getPassword();\n\n String auth = null;\n\n if (user != null) {\n if (password != null) {\n // Both username and password are available.\n auth = user + \":\" + password;\n } else {\n // Just username\n auth = user;\n }\n }\n\n return new URI(uri.getScheme(), auth, uri.getHost(), uri.getPort(), uri.getPath(), null, null).toString();\n } catch (URISyntaxException e) {\n return repositoryURL;\n }\n\n } else {\n return repositoryURL;\n }\n }", "title": "" }, { "docid": "472596f94807f9f9a817f2df8782972a", "score": "0.4951406", "text": "private Repository getRepository(JsonElement json) {\n Repository repo = new Repository();\n for (JsonElement jsonElement : json.getAsJsonArray()) {\n JsonObject repoItem = jsonElement.getAsJsonObject();\n if (repoItem.get(\"is_folder\").getAsBoolean()) {\n repo.getServerFolders().put(\n repoItem.get(\"name\").getAsString(),\n gson.fromJson(repoItem, RepoFolder.class)\n );\n } else {\n repo.getServerFiles().put(\n repoItem.get(\"md5\").getAsString() + repoItem.get(\"name\").getAsString(),\n gson.fromJson(repoItem, RepoFile.class)\n );\n }\n }\n return repo;\n }", "title": "" }, { "docid": "64532dc47ea86c31d233749b53531967", "score": "0.49000704", "text": "java.util.concurrent.Future<GetRepositoryResult> getRepositoryAsync(GetRepositoryRequest getRepositoryRequest);", "title": "" }, { "docid": "8f0c93417ba62647341c220dfae93102", "score": "0.48841283", "text": "public GenExternalRepository() {\n }", "title": "" }, { "docid": "481b95e444d7cedceeb2a6f9100189f7", "score": "0.4879512", "text": "public String editRepository() {\n Provider p = new Provider();\n p.setId(repositoryId);\n String error = getRepositoryService().save(repositoryName, repositoryURL, p, numberOfRecordsToHarvest);\n if (error != null) {\n errorType = \"error\";\n this.addFieldError(\"editRepository\", error);\n return INPUT;\n } else {\n return SUCCESS;\n }\n }", "title": "" }, { "docid": "365385a4e457000ee9ce39fddba771f3", "score": "0.48707697", "text": "private String fixRepoUrl(String source){\n if(source != null){\n return source.replaceFirst(repositoryPath, repositoryUrl);\n } else {\n return \"\";\n }\n }", "title": "" }, { "docid": "00e4e9d1d182d6011558c21cc7041b7e", "score": "0.48426697", "text": "public MutableRepository getRepository() {\n return mRepository;\n }", "title": "" }, { "docid": "10fc5369bebee24fed7d5adc70b19180", "score": "0.48328546", "text": "public Package.Repository getParent();", "title": "" }, { "docid": "cfa7821febc1bedf010f8f3dffdd1e90", "score": "0.48260218", "text": "public interface ICityRepository {\n\n boolean searchByName(String name, final ISearch search, String units, String lang, IConnectivityUtil connect);\n\n}", "title": "" }, { "docid": "ae6d4e11b15224f9a467fec09962456d", "score": "0.4825169", "text": "public List<String> listRepositoriesId() {\n List<Repository> repo = this.cmisExec.getRepositoryExec().listRepositories();\n List<String> strings = new ArrayList<>();\n\n repo.forEach(repository -> {\n strings.add(repository.getId());\n });\n\n return strings;\n }", "title": "" }, { "docid": "8827085d53d2fd437cb586871bdc7daf", "score": "0.48242465", "text": "public IRepositoryManager getRepositoryManager() {\r\n \t\treturn repositoryManager;\r\n \t}", "title": "" }, { "docid": "b10c949d039249d3df580f01a8120652", "score": "0.4812321", "text": "Project getProject();", "title": "" }, { "docid": "b10c949d039249d3df580f01a8120652", "score": "0.4812321", "text": "Project getProject();", "title": "" }, { "docid": "b10c949d039249d3df580f01a8120652", "score": "0.4812321", "text": "Project getProject();", "title": "" }, { "docid": "b10c949d039249d3df580f01a8120652", "score": "0.4812321", "text": "Project getProject();", "title": "" }, { "docid": "6a65cb08153dc45453b167e05e611454", "score": "0.4811189", "text": "public File getRepositoryFolder() {\n\t\tFile repos = new File(getLocation(), REPOSITORIES);\r\n\t\tif (repos.exists() && repos.isFile()) {\r\n\t\t\trepos.delete();\r\n\t\t}\r\n\t\trepos.mkdirs();\r\n\r\n\t\tFile userDir = new File(repos, DEFAULT_USER);\r\n\t\tif (!userDir.exists()) {\r\n\t\t\tuserDir.mkdir();\r\n\t\t}\r\n\t\treturn repos;\r\n\t}", "title": "" }, { "docid": "cfaf8389a160a94fff9e056f2ff67c70", "score": "0.48099464", "text": "@Override\n public Collection<Repository> getRepositories( ) {\n rwLock.readLock().lock();\n try {\n return Stream.concat(managedRepositories.values().stream(), remoteRepositories.values().stream()).collect(Collectors.toList());\n } finally {\n rwLock.readLock().unlock();\n }\n }", "title": "" }, { "docid": "754aa9c1852ce4370f8c264b963afe43", "score": "0.4809429", "text": "private Optional<String> artifactFor(GHRepository repository) throws IOException {\n GHContent content;\n try {\n content = repository.getFileContent(\"pom.xml\");\n } catch (GHFileNotFoundException e) {\n logger.warn(\"Could not find pom.xml!\");\n return Optional.empty();\n }\n\n Model model = readModel(content.read());\n\n String groupId =\n model.getGroupId() != null ? model.getGroupId() : model.getParent().getGroupId();\n String artifactId = model.getArtifactId();\n\n return Optional.ofNullable(String.format(\"%s:%s\", groupId, artifactId));\n }", "title": "" }, { "docid": "6a8f593267ad823e7d83b8f6677f899f", "score": "0.48012683", "text": "public String getProject() {\n return project.get();\n }", "title": "" }, { "docid": "1820515167a81cda9523fc16d166ab10", "score": "0.48004636", "text": "public static void main(String[] args) {\n GitlabAPIClient client = new GitlabAPIClient\n .Builder(\"https://gitlab.com\")\n .withAccessToken(System.getenv(\"TOKEN\"))\n .build();\n // create a new project\n GitlabProject project = client.newProject(\"project1\").create();\n // get all projects of a specific user\n List<GitlabProject> projects = client.getUserProjectsQuery(client.getCurrentUser().getUsername()).query();\n for (GitlabProject pro : projects) {\n System.out.println(\"ProjectID: \" + pro.getId() + \" Title: \" + pro.getName());\n }\n\n // update project field, add a default branch\n project.withDefaultBranch(\"master\").update();\n project.newBranch(\"branch1\", \"master\").create();\n\n // fork a project\n GitlabProject projectForked = project.fork();\n System.out.println(\"project \" + projectForked.getId() + \"forked from project \" + project.getId());\n System.out.println(\"Project \" +project.getId() + \"is forked \" + project.getForksCount() + \" times\");\n\n // query issues, branch under a project\n List<GitlabIssue> issues = project.getIssuesQuery().query();\n List<GitlabBranch> branches = project.getBranchesQuery().query();\n\n // query , mergeRequest, commits with pagination\n Pagination pagination = Pagination.of(1, 20);\n List<GitlabMergeRequest> mergeRequests = project.getMergeRequestsQuery().withPagination(pagination).query();\n List<GitlabCommit> commits = project.getCommitsQuery().withPagination(pagination).query();\n\n System.out.println(project.getName() + \" has \" + issues.size() + \" issues.\");\n System.out.println(project.getName() + \" has \" + branches.size() + \" branches.\");\n System.out.println(project.getName() + \" has \" + mergeRequests.size() + \" merge requests.\");\n System.out.println(project.getName() + \" has \" + commits.size() + \" commits.\");\n\n // delete a project\n projectForked.delete();\n project.delete();\n }", "title": "" }, { "docid": "b05297d01d49cef3d91ad6362087f364", "score": "0.47967395", "text": "public String getProject() {\n return project;\n }", "title": "" }, { "docid": "b6683ae34a9d75f17f10c314efc7abcf", "score": "0.47935125", "text": "public Long getRepositoryCode() {\r\n return repositoryCode;\r\n }", "title": "" }, { "docid": "e51e5ed9e50a436449f74891c7d0e820", "score": "0.4793444", "text": "@Override\n\tpublic void addRepository(URI arg0) throws Exception {\n\n\t}", "title": "" }, { "docid": "8aac4f885784123a144be4ca5da68190", "score": "0.47893566", "text": "public java.lang.String getUrlRepositorio()\r\n {\r\n return this.urlRepositorio;\r\n }", "title": "" }, { "docid": "52bb273e843f1989ed0410e210dc3f14", "score": "0.47835118", "text": "@Deprecated\n public void showRepo() {\n\n repository.forEach((k, v) -> System.out.println(\"Annotation: \" + k + \" Analyzer: \" + v));\n\n }", "title": "" }, { "docid": "f8ec1e8752e3137a3796f533482db8ff", "score": "0.47791407", "text": "public MavenProject buildFromRepository( Artifact artifact, List remoteArtifactRepositories, ArtifactRepository localRepository, boolean allowStubs )\n throws ProjectBuildingException\n {\n return buildFromRepository( artifact, remoteArtifactRepositories, localRepository );\n }", "title": "" }, { "docid": "79b56eea5a1bd0be93e6c795b54055cd", "score": "0.47681698", "text": "Collection<Target> getRepositoryTargets();", "title": "" } ]
022c4456d7864ca9498f0de532a4aac6
Get the distance to start point
[ { "docid": "f26f1f5a7dab24fe2d67cda127d820b4", "score": "0.80174696", "text": "public double getDistanceToStart() {\r\n return startDistance;\r\n }", "title": "" } ]
[ { "docid": "412b1c0758e3bb87da17d094ff685438", "score": "0.7899934", "text": "public double getDistanceFromStart() {\n return distanceFromStart;\n }", "title": "" }, { "docid": "d299043e5a7b3033c154c9d6d8b4f4fe", "score": "0.78065956", "text": "public double getStartingDistance() {\n return myStartDistance;\n }", "title": "" }, { "docid": "02bf69c3ca9de1f5915bbb56651b5373", "score": "0.7332374", "text": "public float getDistanceToStart() {\n\t\treturn distanceToStart;\n\t}", "title": "" }, { "docid": "289991e2ccf487a6c70e83f616f653f9", "score": "0.72939205", "text": "double getDistance();", "title": "" }, { "docid": "68ab271f2d1ebcb846d4aba1addd57cb", "score": "0.7039685", "text": "public float getDistance();", "title": "" }, { "docid": "546404fbfc98e905b5df31075ee7e8f3", "score": "0.6999399", "text": "private double distance() {\n\t\tdouble dist = 0;\n\t\tdist = Math.sqrt(Math.abs((xOrigin - x) * (xOrigin - x) + (yOrigin - y) * (yOrigin - y)));\n\t\treturn dist;\n\t}", "title": "" }, { "docid": "1d119e592f2a9de198d4a0837f4a17be", "score": "0.6978172", "text": "public double getDistance(Node start, Node end) {\n\tstartX = start.getX();\n\tstartY = start.getY();\n\tendX = end.getX();\n\tendY = end.getY();\n\n int Xsquared = (startX - endX) * (startX - endX);\n\tint Ysquared = (startY - endY) * (startY - endY);\n\n\treturn Math.sqrt(Xsquared + Ysquared);\n\t\n }", "title": "" }, { "docid": "50109620180ad7637dca0147a8758391", "score": "0.69726455", "text": "public int getMinDistance(){\n return totalDistance;\n }", "title": "" }, { "docid": "64d4ac068245e6c0bdf601174427bc02", "score": "0.69165826", "text": "public double getDistanceFromSource()\n {\n return distanceFromSource;\n }", "title": "" }, { "docid": "be1b07bb701e5e5619aa7c6b48b4a079", "score": "0.6908018", "text": "public double getDist(){\n double dist=0;\n double DA = 0;\n double minDist = this.getMotors()[0].getTargetPosition();\n for(int i =0;i<this.getMotors().length;i++) {\n double current = this.getMotors()[i].getCurrentPosition();\n double target = this.getMotors()[i].getTargetPosition();\n DA = Math.abs(target) - Math.abs(current);\n dist = target - current;\n if(Math.abs(DA)<Math.abs(minDist)){\n minDist = dist;\n }\n }\n return (minDist);\n }", "title": "" }, { "docid": "e268e825f810a1738dbb7a6f4ecd59fb", "score": "0.6905902", "text": "public double getDistance()\n {\n return Math.abs(getDifference());\n }", "title": "" }, { "docid": "cc193b4eee0f32f23dccdeee8f9c64b2", "score": "0.6905869", "text": "public double getDistance(){\r\n\t\treturn Math.sqrt(\r\n\t\t\t\t(\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterX()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterX()\r\n\t\t\t\t\t, 2 )\r\n\t )\r\n\t\t\t\t+ (\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterY()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterY()\r\n\t\t\t\t\t, 2 )\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t}", "title": "" }, { "docid": "7a7ffb2d9b13ec65eddd482341268e2c", "score": "0.6855559", "text": "double getDistanceInMiles();", "title": "" }, { "docid": "493e40a121a4dd6a80a266a385a41ba3", "score": "0.6848053", "text": "public abstract double getDistance(int[] end);", "title": "" }, { "docid": "73b24a2f93199834ec90b3c423f837e4", "score": "0.6813935", "text": "double getDistance(Point p);", "title": "" }, { "docid": "88fd51dc7e3a963c2c4357f1dc0ebe8a", "score": "0.6774889", "text": "@Override\r\n public double getOriginDistance()\r\n {\r\n double distance=Math.sqrt(\r\n Math.pow(origin.getYCoordinate(), 2)+Math.pow(origin.getYCoordinate(), 2));\r\n return distance;\r\n }", "title": "" }, { "docid": "3e72cd88820c079548634edd754d8906", "score": "0.6752577", "text": "public float getDistance(){\n\t\t\treturn s1.start.supportFinal.dot(normal);\n\t\t}", "title": "" }, { "docid": "0cc78a65f159e18f9f171e90e248cab9", "score": "0.67487997", "text": "public double getDistance() {\n\t\t// miles = miles/hr * s / (s/hr)\n\t\treturn (double)speed/10.0 * duration / 3600.0;\n\t}", "title": "" }, { "docid": "08604e7c64ded6a0c1e004b6d095eb9d", "score": "0.6743487", "text": "public abstract double distanceFrom(double x, double y);", "title": "" }, { "docid": "859b380314a4f85fb27750acc2beb751", "score": "0.67317504", "text": "public Vector2 getDistance(Vector2 start, Vector2 destinatin, Vector2 offset) {\r\n if(this.grid.contains(start, offset)) {\r\n if(this.grid.contains(destinatin, offset)) {\r\n // Get Start Rectangle with scene offset\r\n Rectangle current = this.grid.getRectAtPosition(start, offset);\r\n Rectangle destination = grid.getRectAtPosition(destinatin, offset);\r\n int xA = (destination.getX() - current.getX()) / 48;\r\n int yA = (destination.getY() - current.getY()) / 48;\r\n return new Vector2(xA, yA);\r\n }\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "1c45faccd304ef858d8017e129c2be60", "score": "0.66964245", "text": "private double getDistance(double initX, double initY, double targetX, double targetY) {\n\t\treturn Math.sqrt(Math.pow((initX - targetX), 2) + Math.pow((initY - targetY), 2));\n\t}", "title": "" }, { "docid": "844c3d88d09b84d850c531ca1b61b7fc", "score": "0.6675038", "text": "public float getTheDistance(){\n\t\t\n\t\tdistance = sonic.getDistance();\n\t\tSystem.out.println(\"value:\"+ distance);\n\t\t//considering the test results we see after 23 cm we see the +1cm precision and below 23cm we see + 5cm range \n\t\tif (distance<=25){\n\t\treturn (distance-7);\n\t\t}\n\t\telse{return (distance-3);}\n\t}", "title": "" }, { "docid": "c320a4f41b8394dff9a29296dd1c107f", "score": "0.6672038", "text": "private double getDistance() {\n\t\tfinal double h2 = 86.7;\n\t\t// h1: height of top of camera\n\t\tfinal double h1 = 17.6;\n\n\t\t// a1: angle of camera (relative to chasis)\n\t\tfinal double a1 = 36.175;\n\t\t// a2: angle of target relative to a1\n\t\tfinal double a2 = ty.getDouble(0.0);\n\n\t\t// distance: distance from camera to base of target\n\t\tfinal double distance = ((h2 - h1) / Math.tan(Math.toRadians(a1 + a2)));\n\n\t\tfinal double d = Math.sqrt(Math.pow(h2 - h1, 2) + Math.pow(distance, 2));\n\t\tSmartDashboard.putNumber(\"Py Distance\", d);\n\n\t\treturn (distance);\n\n\t}", "title": "" }, { "docid": "8e8a1147202a6a4f71fc566b61109f8a", "score": "0.6659273", "text": "public double distance() {\n \tif (dist == -1) {\n \t\tdist = distance(vertex1, vertex2);\n \t}\n \n \treturn dist;\n }", "title": "" }, { "docid": "4c89b33b2e632122b59df31945aa0981", "score": "0.66557026", "text": "public double getDistance(){\n\t\treturn this.distance;\n\t}", "title": "" }, { "docid": "3c48f2fd3ec8d977b4fb2cfa380bf73d", "score": "0.6639371", "text": "public double getStart();", "title": "" }, { "docid": "6ffb821e34b8626ae1ebbbd04b0fcefc", "score": "0.6627264", "text": "public double getMinimumDistance() {\n double l = Double.POSITIVE_INFINITY;\n int stop = getDistanceEnd();\n\n calculateDistances();\n\n for (int i = 0; i < stop; i++) {\n l = Math.min(l, distances[i]);\n }\n\n return l;\n }", "title": "" }, { "docid": "ae45212d0f7a67cdeeeb422311251bd1", "score": "0.66127187", "text": "public double calcDistBetweenStops(){\n List<Location> locs = destinations.getLocationList();\r\n double totalDist = 0;\r\n for (int i = 0; i < (locs.size() - 1); i++){\r\n double distance = locs.get(i).DistanceTo(locs.get(i+1));\r\n totalDist += distance;\r\n }\r\n return totalDist;\r\n }", "title": "" }, { "docid": "c43424bd572d78c424267b458adc8203", "score": "0.6610398", "text": "public double distance(double x, double y);", "title": "" }, { "docid": "f2dc17ae4229b90720a2c4663c96c540", "score": "0.6602716", "text": "public double getDistance () {\n return distance;\n }", "title": "" }, { "docid": "e5c4952f526c84c1f961ec64b9f1d97b", "score": "0.6591362", "text": "public double distance(){\n return DistanceTraveled;\n }", "title": "" }, { "docid": "4726f63f10f03eb748346d01a5613c2c", "score": "0.65632474", "text": "public int distance() {\n return distance;\n }", "title": "" }, { "docid": "15169d2015596cc9d6d535c70ae7ff5e", "score": "0.65611935", "text": "public double getDistance() {\n return distance;\n }", "title": "" }, { "docid": "276acfcfc23ca320506bee394333c3d8", "score": "0.6551462", "text": "public void calcDistance() {\n if (DataManager.INSTANCE.getLocation() != null && location.getLength() == 2) {\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n double dLat = Math.toRadians(location.getLatitude() - DataManager.INSTANCE.getLocation().getLatitude()); // deg2rad below\n double dLon = Math.toRadians(location.getLongitude() - DataManager.INSTANCE.getLocation().getLongitude());\n double a =\n Math.sin(dLat / 2) * Math.sin(dLat / 2) +\n Math.cos(Math.toRadians(location.getLatitude()))\n * Math.cos(Math.toRadians(location.getLatitude()))\n * Math.sin(dLon / 2)\n * Math.sin(dLon / 2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double d = KM_IN_RADIUS * c; // Distance in km\n distance = (float) d;\n } else distance = null;\n }", "title": "" }, { "docid": "9edb05d8859e507b35eeeea3ce133b5c", "score": "0.654686", "text": "public double getMinimumDistance() { return minDistance; }", "title": "" }, { "docid": "f098a28dbecd216fe0486e73bbbe50eb", "score": "0.6530662", "text": "public final float getDistance() {\n return distance;\n }", "title": "" }, { "docid": "86ac2728ff3d8be8a64bb9d71ac8d94e", "score": "0.6526778", "text": "double distance (double px, double py);", "title": "" }, { "docid": "54396db7c11fafab5bc2056f0fd8c308", "score": "0.6509909", "text": "public double getDistance() {\n\t\treturn distance;\n\t}", "title": "" }, { "docid": "54396db7c11fafab5bc2056f0fd8c308", "score": "0.6509909", "text": "public double getDistance() {\n\t\treturn distance;\n\t}", "title": "" }, { "docid": "65f93b0a0d8e282f43da18471e04bfd6", "score": "0.64945555", "text": "public double getDistance() {\r\n return this.distance;\r\n }", "title": "" }, { "docid": "305b4174f47bea94c95d93e80409ca68", "score": "0.6480264", "text": "public double getDist() {\n return distance;\n }", "title": "" }, { "docid": "382ece05d2d7538470c1297eef31791a", "score": "0.6470199", "text": "public float getDistance() {\r\n return distance;\r\n }", "title": "" }, { "docid": "adca34a6ac8082d86026550522df07ae", "score": "0.6468698", "text": "public float getDistance() {\n return distance;\n }", "title": "" }, { "docid": "3993b870388ae209e4915ae453f299c2", "score": "0.6468085", "text": "public double getFinalDistance(){\n return valori.get(end_node);\n }", "title": "" }, { "docid": "85e0bb0cbd362c9d5b04511827a6feea", "score": "0.64633006", "text": "public int getDistance() {\n return distance;\n }", "title": "" }, { "docid": "85e0bb0cbd362c9d5b04511827a6feea", "score": "0.64633006", "text": "public int getDistance() {\n return distance;\n }", "title": "" }, { "docid": "feeed1d75c962cb8d47cd952e210393b", "score": "0.64609134", "text": "private double distanceResult(double preLng, double preLat, double nextLng, double nextLat) {\n\t\treturn Math.sqrt((preLng - nextLng) * (preLng - nextLng) + (preLat - nextLat) * (preLat - nextLat));\n\t}", "title": "" }, { "docid": "ab27a1acfc16798a7a95d61adc86b68e", "score": "0.64591074", "text": "private int getDistanceEnd() {\n int lastPoint = getNumPoints() - 1;\n return getDistanceIndex(lastPoint) + lastPoint;\n }", "title": "" }, { "docid": "152a261cb332a1c827fc06f8068ded73", "score": "0.64562976", "text": "public int getTotalDistance() {\n return totalDistance;\n }", "title": "" }, { "docid": "441bde65fcc681b492417cbd5eb7bdef", "score": "0.64443815", "text": "public int distance(Coord coord1, Coord coord2);", "title": "" }, { "docid": "6afba2f4479ee809496ba6f7d216876d", "score": "0.6443548", "text": "public int getDistance(){\n if (distance == 0) {\n int tourDistance = 0;\n // Loop through our tour's cities\n for (int cityIndex=0; cityIndex < tourSize(); cityIndex++) {\n // Get city we're travelling from\n City fromCity = getCity(cityIndex);\n // City we're travelling to\n City destinationCity;\n // Check we're not on our tour's last city, if we are set our \n // tour's final destination city to our starting city\n if(cityIndex+1 < tourSize()){\n destinationCity = getCity(cityIndex+1);\n }\n else{\n destinationCity = getCity(0);\n }\n // Get the distance between the two cities\n tourDistance += fromCity.distanceTo(destinationCity);\n }\n distance = tourDistance;\n }\n return distance;\n }", "title": "" }, { "docid": "df33bed42d6cc941f50a052cb9dcf240", "score": "0.6441101", "text": "Execution getClosestDistance();", "title": "" }, { "docid": "d267f3d3396fc3e2e439288c9a979b50", "score": "0.6440145", "text": "public double getDistance() {\n return this.distance;\n }", "title": "" }, { "docid": "3d9e2adbe6a28593ab9d8b481bcd6946", "score": "0.64360076", "text": "public double getDistance() { \n\t\treturn Math.pow(input.getAverageVoltage(), exp) * mul; \n\t}", "title": "" }, { "docid": "929a50c0c02578ddbb63965d4bfc5be6", "score": "0.64321685", "text": "public static float distance(Vec2 start, Vec2 end) {\r\n\t\treturn (float) Math.sqrt((end.x - start.x) * (end.x - start.x) + (end.y - start.y)\r\n\t\t\t\t* (end.y - start.y));\r\n\t}", "title": "" }, { "docid": "1ff51b531d55b1c8115be5ebbbaa29c5", "score": "0.64319223", "text": "public int getDistance() {\r\n\t\treturn distance;\r\n\t}", "title": "" }, { "docid": "1ff51b531d55b1c8115be5ebbbaa29c5", "score": "0.64319223", "text": "public int getDistance() {\r\n\t\treturn distance;\r\n\t}", "title": "" }, { "docid": "d083273a28e21afa69a1034834fa5125", "score": "0.64300364", "text": "public float getDistance() {\n return distance;\n }", "title": "" }, { "docid": "256ff01e163ac0c3ab96c8a1fc6c8261", "score": "0.6408468", "text": "public double distance() {\n return distance;\n }", "title": "" }, { "docid": "256ff01e163ac0c3ab96c8a1fc6c8261", "score": "0.6408468", "text": "public double distance() {\n return distance;\n }", "title": "" }, { "docid": "002dd1c3653e6e7e3c7b03aa43d4d5a6", "score": "0.6401791", "text": "public double getDistance(){\n return sensor.getVoltage()*100/2.54 - 12;\n }", "title": "" }, { "docid": "39f17a853ebc45a391a2d5b146017a90", "score": "0.6400523", "text": "public void setDistanceToStart(double val) {\r\n startDistance = val;\r\n }", "title": "" }, { "docid": "e697089c8c1fb4718dffdd6b1128262d", "score": "0.6386086", "text": "public float getDistance()\n {\n return distance_slider.getValue() / DISTANCE_SCALE_FACTOR;\n }", "title": "" }, { "docid": "84ed07b6aa4ab0cb64cfefbc35404a01", "score": "0.63636065", "text": "public double getMinDist(){\n\t\tquickSort(0, pnt.length - 1);\t// for divide\n\t\t/* CASE: same point */\n\t\tif(min == 0)\n\t\t\treturn 0;\n\n\t\tmin = getDist(pnt[0], pnt[pnt.length - 1]);\n\t\tdivide(0, pnt.length - 1);\n\n\t\treturn min;\n\t}", "title": "" }, { "docid": "d9593358a80933025d8cb9844d5e396d", "score": "0.63551694", "text": "public float getDistance() {\n shouldUpdateDistance = true;\n if (shouldUpdateDistance) {\n distance = getDistance(createSuggestedWindowFilter());\n shouldUpdateDistance = false;\n }\n return distance;\n }", "title": "" }, { "docid": "5bb3f29438dfb0aeb02314e7f9f0d649", "score": "0.6352773", "text": "private double distancePointToSegment(Vector point, Vector startSegment, Vector endSegment) {\n\t\t// Segment. Starts and Ends in the same point -> Distance == distance\n\t\tif (startSegment.subtract(endSegment).equals(NULL_VECTOR_3DIM)) {\n\t\t\treturn point.subtract(startSegment).getNorm(); // Length of a-b\n\t\t}\n\t\t// https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line\n\t\t/*\n\t\t * es reicht aber aus, wenn man zusätzlich noch die Länge AB der Strecke\n\t\t * kennt. (Die Strecke sei AB, der Punkt P.) Dann kann man nämlich\n\t\t * testen, ob der Winkel bei A (PB²>PA²+AB²) oder bei B (PA²>PB²+AB²)\n\t\t * stumpf (>90 <180grad) ist. Im ersten Fall ist PA, im zweiten PB der\n\t\t * kürzeste Abstand, ansonsten ist es der Abstand P-Gerade(AB).\n\t\t */\n\n\t\t// TESTEN WO ES AM NÄCHSTEN AN DER STRECKE IST,NICHT NUR AN DER GERADEN\n\t\tline = startSegment.subtract(endSegment); // Vektor von start zum end.\n\t\tlineToPoint = startSegment.subtract(point); // vom start zum punkt.\n\t\tlineEnd = endSegment.subtract(startSegment); // vom ende zum start\n\t\tlineEndToPoint = endSegment.subtract(point); // vom start zum ende\n\n\t\t// Wenn größer 90Grad-> closest ist start\n\t\tdouble winkelStart = getWinkel(line, lineToPoint);\n\t\t// Wenn größer 90Grad -> closest ist end\n\t\tdouble winkelEnde = getWinkel(lineEnd, lineEndToPoint);\n\t\tif (winkelStart > 90.0 && winkelStart < 180.0) {\n\t\t\t// Start ist am nächsten. Der winkel ist über 90Grad somit wurde nur\n\t\t\t// der nächste nachbar auf der geraden ausserhalb der strecke\n\t\t\t// gefunden\n\t\t\treturn startSegment.subtract(point).getNorm();\n\t\t}\n\t\tif (winkelEnde > 90.0 && winkelEnde < 180.0) {\n\t\t\t// Ende ist am nächsten\n\t\t\treturn endSegment.subtract(point).getNorm();\n\t\t}\n\n\t\t// If not returned yet. The closest position ist on the line\n\t\treturn closestDistanceFromPointToEndlessLine(point, startSegment, endSegment);\n\t}", "title": "" }, { "docid": "ba55fcd2fcca40752bbaa5d4235a95d0", "score": "0.63524723", "text": "public static double distance(City start, City end) {\n \tdouble result = Math.sqrt(Math.pow((end.x() - start.x()), 2) +\n \t\t\t(Math.pow((end.y() - start.y()), 2)));\n \n \treturn result;\n }", "title": "" }, { "docid": "3dc275a256044f46f73cc3fd142c92e1", "score": "0.634516", "text": "public int getDistance() {\n\t\treturn distance;\n\t}", "title": "" }, { "docid": "e7eb8713124e3981621c72acb1904e67", "score": "0.6315673", "text": "public static float PointDistance(final Point start, final Point end) {\n return (sqrt(sq(end.x - start.x) + sq(end.y - start.y) + sq(end.z - start.z)));\n }", "title": "" }, { "docid": "a463fa3ecefdb3ba3db8eed3a45b7d70", "score": "0.6308323", "text": "private double closestDistanceFromPointToEndlessLine(Vector point, Vector startSegment, Vector endSegment) {\n\t\t// Generate a line out of two points.\n\t\tRay3D gerade = geradeAusPunkten(startSegment, endSegment);\n\t\tVector direction = gerade.getDirection();\n\t\tdouble directionNorm = direction.getNorm();\n\t\t// d(PunktA, (line[B, directionU]) = (B-A) cross directionU durch norm u\n\t\tVector b = gerade.getPoint();\n\t\tVector ba = b.subtract(point);\n\t\tdouble factor = 1.0 / directionNorm; // Geteilt durch geraden länge\n\t\tVector distance = ba.cross(direction).multiply(factor);\n\t\tdouble distanceToGerade = distance.getNorm();\n\t\treturn distanceToGerade;\n\t}", "title": "" }, { "docid": "faa1efa33c72df6ced84d152ca4d3850", "score": "0.63031787", "text": "private double getDistance(float x, float y, float x1, float y1) {\n double distanceX = Math.abs(x - x1);\n double distanceY = Math.abs(y - y1);\n return Math.sqrt(distanceX * distanceX + distanceY * distanceY);\n }", "title": "" }, { "docid": "9d8fdcf31265be310375b4e8dfd414d4", "score": "0.626289", "text": "public double calDistance()\n {\n double closest = poly[0].getD();\n\n for(int i = 1; i < sides; i++)\n {\n if(closest > poly[i].getD())\n {\n closest = poly[i].getD();\n }\n }\n this.distance = closest;\n\n return closest;\n }", "title": "" }, { "docid": "9720c5e7a6880e806bfbeb554adcac35", "score": "0.6259043", "text": "private double Distance(Point first, Point second){ // distance between two points \n\t\treturn Math.sqrt(Math.pow(second.getY()-first.getY(),2) + Math.pow(second.getX()-first.getX(),2));\n\t}", "title": "" }, { "docid": "048d8157dc0e3cbdb2afa41529b8149c", "score": "0.6246093", "text": "public Vector3D getDistance()\n\t{\n\t\treturn distance;\n\t}", "title": "" }, { "docid": "a504e3e6e9bac877d2863722b8a610b4", "score": "0.6231372", "text": "public static double getDistance( GameObject one, GameObject two )\n {\n double deltaX = getDeltaX( one, two );\n double deltaY = getDeltaY( one, two );\n return Math.sqrt( deltaX * deltaX + deltaY * deltaY );\n }", "title": "" }, { "docid": "cc5a307be9eb5233c7207e8d288c2ae2", "score": "0.6226618", "text": "private long getDistanceFromSecondMark(){\n long numSecsElapsed = (long)Math.floor(timeElapsed / WorkoutStatic.ONE_SECOND);\n return timeElapsed - numSecsElapsed * WorkoutStatic.ONE_SECOND;\n }", "title": "" }, { "docid": "98d2d79c16c77eef3e31bc153ec7b9fb", "score": "0.6205606", "text": "double getStartX();", "title": "" }, { "docid": "ee6d9e0a4df85d60ad076cfa6d336277", "score": "0.6203948", "text": "public Distance getDistance() {\n return distance;\n }", "title": "" }, { "docid": "0ffdb78725caca4d224590c76737e33e", "score": "0.6194755", "text": "private float distanceTo(BasicEvent event) {\n final float dx = event.x - location.x;\n final float dy = event.y - location.y;\n// return Math.abs(dx)+Math.abs(dy);\n return distanceMetric(dx, dy);\n// dx*=dx;\n// dy*=dy;\n// float distance=(float)Math.sqrt(dx+dy);\n// return distance;\n }", "title": "" }, { "docid": "d258c099355728165124ce3dde7d0d0f", "score": "0.6186895", "text": "public double getDistance() {\n\n final int R = 6371; // Radius of the earth\n double lat1 = latitude;\n double lon1 = longitude;\n double lat2 = 41.917715; //lat2, lon2 is location of St.Charles, IL\n double lon2 = -88.266027;\n double el1=0,el2 = 0;\n double latDistance = Math.toRadians(lat2 - lat1);\n double lonDistance = Math.toRadians(lon2 - lon1);\n double a = Math.sin(latDistance / 2) * Math.sin(latDistance / 2)\n + Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2))\n * Math.sin(lonDistance / 2) * Math.sin(lonDistance / 2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double distance = R * c * 1000; // convert to meters\n\n double height = el1 - el2;\n\n distance = Math.pow(distance, 2) + Math.pow(height, 2);\n\n return Math.sqrt(distance);\n }", "title": "" }, { "docid": "19e621a9ec64f5f0adfb9650e58d69c7", "score": "0.6184223", "text": "@Override\n\tpublic int getDistanceFrom(final SabrePlayer other) {\n\t\tGuard.ArgumentNotNull(other, \"other\");\n\t\t\n\t\tif (!isOnline() || !other.isOnline()) {\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t\tLocation myLocation = bukkitPlayer.getLocation();\n\t\tLocation otherLocation = other.getBukkitPlayer().getLocation();\n\t\tint dx = otherLocation.getBlockX() - myLocation.getBlockX();\n\t\tint dz = otherLocation.getBlockZ() - myLocation.getBlockZ();\n\t\t\n\t\treturn (int)Math.sqrt(Math.pow(dx, 2) + Math.pow(dz, 2));\n\t}", "title": "" }, { "docid": "24679750af7e3b1abf96f4c846b59b43", "score": "0.6178541", "text": "public static double getDistance(int x1, int y1, int x2, int y2)\n {\n double dx = x2 - x1;\n double dy = y2 - y1;\n\n // return Math.hypot(x2 - x1, y2 - y1); // Extremely slow\n // return Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)); // 20 times faster than hypot\n return Math.sqrt(dx * dx + dy * dy); // 10 times faster then previous line\n }", "title": "" }, { "docid": "7e99b859fa62147e44ad57f7484853a0", "score": "0.61737275", "text": "public double getDragDistanceFromCursorPressedEvent() {\r\n\t\tif ((this.lastChangedEvent != null) && (this.lastPressedEvent != null)) {\r\n\t\t\treturn lastChangedEvent.getPosition().distance(\r\n\t\t\t\t\tlastPressedEvent.getPosition());\r\n\t\t}\r\n\r\n\t\treturn Double.NaN;\r\n\t}", "title": "" }, { "docid": "80493e90c388671559248058ddb27683", "score": "0.61624634", "text": "public double ComputeDistance(){ \n\t\tdouble lat1 = this.depAirportCity.getLatDegs() + (double)(this.depAirportCity.getLatMins())/60; \n\t\tdouble lon1 = this.depAirportCity.getLongDegs() + (double)(this.depAirportCity.getLongMins())/60;\n\t\tdouble lat2 = this.arrAirportCity.getLatDegs() + (double)(this.arrAirportCity.getLatMins())/60; \n\t\tdouble lon2 = this.arrAirportCity.getLongDegs() + (double)(this.arrAirportCity.getLongMins())/60;\n\t\t\n\t\tdouble distance = Haversine.getMiles(lat1, lon1, lat2, lon2);\n\t\treturn distance;\n\t}", "title": "" }, { "docid": "de1a85edf7d1d2de1b8219aa252aee8c", "score": "0.6157389", "text": "public final double calcDistance( Point a, Point b )\r\n {\r\n return( Math.sqrt( (Math.pow(a.y - b.y, 2)) +\r\n (Math.pow(a.x - b.x, 2)) ) );\r\n }", "title": "" }, { "docid": "774d851aa1bdaef1cefb1d189e0fa0e8", "score": "0.61437935", "text": "public double length(){\n return end.distance(getStart());\n }", "title": "" }, { "docid": "348a510984b4fdc70d3b597952a39c71", "score": "0.6142182", "text": "long calcDist(int x, int y) {\n\tWeatherDisplay wd = main.getDisplay();\n\tx = wd.getWeatherX(x);\n\ty = wd.getWeatherY(y);\n\tint w = wd.getWeatherWidth();\n\tint h = wd.getWeatherHeight();\n\n\tlong ret = -1;\n\t// Point must be in bounds\n\tif (x >= 0 && y >= 0 && x <= w && y <= h) {\n\t int dy = (front + back) * y / h - back;\n\t int dx = (int)(x - w * (getDate() % main.DAY) / main.DAY);\n\n\t // This may return negative\n\t ret = (long)(dy * main.DAY + dx * main.DAY / w);\n\t}\n\n\t// Show distance\n\tif (ret > 0)\n\t main.bDist.setText(\"Distance: \" + Data.stringTime(ret));\n\telse\n\t main.bDist.setText(\"Distance: --:--\");\n\n\treturn ret;\n }", "title": "" }, { "docid": "078765fe5285b4be61be3a380e2ca6d1", "score": "0.6139719", "text": "static double distanceToOrigin ( Posn p ) {\n\t// return ... p.x ... p.y ... ;\n\treturn Math.sqrt(Math.pow(p.x,2) + Math.pow(p.y,2)) ;\n }", "title": "" }, { "docid": "ad351386178c5ea7b9c7961d0f9593d3", "score": "0.61300814", "text": "public double getDistance(double x, double y, Point p)\n\t{\n\t\tdouble s1 = Math.sqrt((x - p.x)*(x - p.x) + (y - p.y)*(y - p.y));\n\t\treturn s1;\n\t}", "title": "" }, { "docid": "d1e58a8260bd6dc60de9283bc60a87b1", "score": "0.6120691", "text": "public double getDistance() {\n\t\tdouble sum = 0;\n\t\tfor(int i = 0; i < ordering.size() - 1; i++) {\n\t\t\tsum += cost[ordering.get(i) - 1][ordering.get(i+1) - 1];\n\t\t}\n\t\treturn sum;\n\t}", "title": "" }, { "docid": "8b36c966e20737a8a09b266034cee80d", "score": "0.61069596", "text": "public double getStart() {\n return start;\n }", "title": "" }, { "docid": "f08048b5e4719f887cf7ea738980bd67", "score": "0.60998684", "text": "private int calcDistance()\n\t{\n\t\tint distance = 0;\n\n\t\t// Generate a sum of all of the difference in locations of each list element\n\t\tfor(int i = 0; i < listSize; i++) \n\t\t{\n\t\t\tdistance += Math.abs(indexOf(unsortedList, sortedList[i]) - i);\n\t\t}\n\n\t\treturn distance;\n\t}", "title": "" }, { "docid": "2d141197ef204158adc67f72f147e309", "score": "0.60936385", "text": "public abstract double GetDistance();", "title": "" }, { "docid": "dfd143dee61e75b55acc3ad975a67429", "score": "0.60840404", "text": "public static int getDistance(Tile from, Tile to) {\n\n\t\tif (!isOrdinal(from, to) && !isCardinal(from, to))\n\t\t\treturn -1;\n\n\t\tint distX = Math.abs(to.getX() - from.getX());\n\t\tint distY = Math.abs(to.getY() - from.getY());\n\n\t\tif (distX == distY)\n\t\t\treturn distX;\n\t\telse if (distX == 0)\n\t\t\treturn distY;\n\t\telse\n\t\t\treturn distX;\n\t}", "title": "" }, { "docid": "3524b35b7abaad31c31b25fd47d92a57", "score": "0.6083688", "text": "public int getTotDistance(){\r\n\t \treturn this.totDistance;\r\n\t }", "title": "" }, { "docid": "b54f15d56d49950c584be40ef404811c", "score": "0.6080009", "text": "public double length() {\n\t\treturn startPoint.distance(endPoint);\n\t}", "title": "" }, { "docid": "dbca75186a514d98e37405fdae831465", "score": "0.607603", "text": "private double getStartX() {\n\t\treturn Math.min(x1, x2);\n\t}", "title": "" }, { "docid": "556f3972777efaf387655c33bc53527e", "score": "0.60733366", "text": "public double calculateDistance(LatLng other) {\n return Math.sqrt( (this.x - other.x) * (this.x - other.x) + (this.y - other.y) * (this.y - other.y) );\n }", "title": "" }, { "docid": "154e68400387dbe3568767539ff102eb", "score": "0.60633254", "text": "double distance(double x1, double y1, double x2, double y2) {\r\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\r\n }", "title": "" }, { "docid": "cf74e5e525dd04e356b4b7e90fa76442", "score": "0.6061876", "text": "public GeoPointND getStartPoint();", "title": "" } ]
263dcb9838302d75cdd3db372cfbdb5b
Inflate the layout for this fragment
[ { "docid": "e92e9d1228bb8396fe2992db6dba4edc", "score": "0.0", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_register, container, false);\n\n edtEmail = (EditText) view.findViewById(R.id.edt_register_email);\n edtName = (EditText) view.findViewById(R.id.edt_register_name);\n edtPassword = (EditText) view.findViewById(R.id.edt_register_pass);\n edtRetypedPassword = (EditText) view.findViewById(R.id.edt_register_re_pass);\n btnRegister = (Button) view.findViewById(R.id.btn_register_reg);\n btnBackToLogin = (Button) view.findViewById(R.id.btn_register_login);\n\n btnRegister.setOnClickListener(this);\n btnBackToLogin.setOnClickListener(this);\n return view;\n }", "title": "" } ]
[ { "docid": "20692959eae44893b50b4d537901ae50", "score": "0.67938715", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_base, container, false);\n //SensorsDataAPI.sharedInstance().traverseView(this,view);\n return view;\n }", "title": "" }, { "docid": "3f351f9608a82f16819285269fa056e7", "score": "0.67679954", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_bing_image_detail, container, false);\n }", "title": "" }, { "docid": "f6f3f34d871b477021510c053f10fece", "score": "0.67602414", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(getLayoutRes(), container, false);\n }", "title": "" }, { "docid": "f6f3f34d871b477021510c053f10fece", "score": "0.67602414", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(getLayoutRes(), container, false);\n }", "title": "" }, { "docid": "927b5dcef592a8ee16cb9899260a8129", "score": "0.67455715", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadlistlocal_ing, container, false);\n }", "title": "" }, { "docid": "4eb271500c700a403e190ec7b5c3096d", "score": "0.67335296", "text": "@Override\n protected int initLayout() {\n return R.layout.fragment_exam;\n }", "title": "" }, { "docid": "9fb9e267e028e2d41844b1ae81151d98", "score": "0.6710506", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView mView = inflater.inflate(R.layout.tw_custom_entry_fragment,\n\t\t\t\tcontainer, false);\n\t\tinitXMLViewComponents(mView);\n\t\treturn mView;\n\t}", "title": "" }, { "docid": "5575cb853ecf502d4c469910e098fb9e", "score": "0.6704723", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mass_input, container, false);\n }", "title": "" }, { "docid": "074b68ec2a86bf2adcf25e93ae6d7f33", "score": "0.66970193", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_individual_visual_assessment, parent, false);\n\n }", "title": "" }, { "docid": "1835b770f34e6c74c24509917a9afd77", "score": "0.66926605", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "title": "" }, { "docid": "7709f2451525c613587b5a76da864cf9", "score": "0.66922307", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup root) {\n\t\tViewGroup container = (ViewGroup) inflater.inflate(R.layout.live_fragment_information, root, false);\n\t\tchannelName = (TextView) container.findViewById(R.id.channelName);\n\t\tcurrent_event = (TextView) container.findViewById(R.id.event);\n\t\tnext_event = (TextView) container.findViewById(R.id.next_event);\n\t\tevent_time = (TextView) container.findViewById(R.id.event_time);\n\t\tprogress = (LiveSeekBar) container.findViewById(R.id.watch_progress);\n\t\t\n\t\tcurrent_event.setSelected(true);\n\t\tnext_event.setSelected(true);\n\t\treturn container;\n\t}", "title": "" }, { "docid": "f5959e7a0ee4abe7e410ae8e5b46f3dc", "score": "0.66748124", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "title": "" }, { "docid": "57e8f8646f47710533732110e2e28469", "score": "0.66743827", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_tab_common, container, false);\n TypeFaceUtil.overrideFont(getContext().getApplicationContext(), \"SERIF\", \"fonts/Roboto-Regular.ttf\");\n\n list = new ArrayList<>();\n solrdata = (SolrData) getContext().getApplicationContext();\n intent = getActivity().getIntent();\n activity = intent.getStringExtra(\"activity\");\n bundle = getArguments();\n fetch_starter_url = bundle.getString(\"API_LINK\");\n MenuCategory = bundle.getString(\"Menu\");\n progressBar = (ProgressBar) view.findViewById(R.id.progressWheel);\n relativeLayout = (RelativeLayout) view.findViewById(R.id.mailLayout);\n relativeLayout.setVisibility(View.INVISIBLE);\n totalAmountTextView = (TextView) view.findViewById(R.id.totalAmount);\n foodItemList = (GridView) view.findViewById(R.id.foodItemsList);\n getDataFromSolr();\n\n return view;\n }", "title": "" }, { "docid": "a1381321e5e112417b0b94482d1a9694", "score": "0.6669273", "text": "@Nullable\r\n @Override\r\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,\r\n @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.media_vault_all_tab_layout, container, false);\r\n unbinder = ButterKnife.bind(this, view);\r\n GlobalBus.getBus().register(this);\r\n initialised();\r\n return view;\r\n }", "title": "" }, { "docid": "ce64d8f062aa96166bd71672324edab2", "score": "0.6654323", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quality_sheet, container, false);\n }", "title": "" }, { "docid": "2642aa3dabc2f8ce956392d055d5202d", "score": "0.6648625", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_home, container, false);\n setView();\n setRefresh();\n setVolley();\n getServer();\n getSlider();\n setOnClickButton();\n setLayout();\n\n return rootView;\n }", "title": "" }, { "docid": "54b0d971eb842f535425ee11aee8562d", "score": "0.66358984", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_breast_feed, container, false);\n }", "title": "" }, { "docid": "3ea9eb65eff40ffc6d35dfddea0cf21d", "score": "0.6635503", "text": "@Override\r\n public void inflateView() {\n\r\n }", "title": "" }, { "docid": "27a8cf159189f1ee6872e8ecaf1cf174", "score": "0.66307974", "text": "@Override\n public View onCreateView(LayoutInflater inflater,ViewGroup parent,Bundle savedInstanceState) {\n rootView=inflater.inflate(R.layout.main_fragment_match_layout,parent,false);\n scanSuccessLayout=rootView.findViewById(R.id.main_fragment_scan_success_layout);\n initScanView();\n initSettingBtn();\n initMatchView();\n return rootView;\n }", "title": "" }, { "docid": "8dbb3bd576d69a65f9e80a3ff6835b6c", "score": "0.6623712", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root= inflater.inflate(R.layout.fragment_my_all_offer, container, false);\n __init__(root);\n return root;\n }", "title": "" }, { "docid": "5556850d02117f4105569bd1ca8f0946", "score": "0.661704", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n return inflater.inflate(R.layout.fragment_sugar_bowl, container, false);\n }", "title": "" }, { "docid": "5c3ba1127da79fc898d183a8e6c0f21c", "score": "0.66153425", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_see_all_friends, container, false);\n }", "title": "" }, { "docid": "cba124b8ff733d1972a368c698db4f82", "score": "0.661413", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_ditail, container, false);\n unbinder = ButterKnife.bind(this, view);\n EventBus.getDefault().register(this);\n initDataDetail();\n return view;\n }", "title": "" }, { "docid": "13c800d799d979edb92c096e85c2deea", "score": "0.6608651", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_playerinfo_detail, container, false);\n }", "title": "" }, { "docid": "68dd41d38d130787f0d1c75de488d39b", "score": "0.660275", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.ipoll_fragment_feeds, container, false);\n ButterKnife.bind(this, view);\n iFeedDetailsAdapter = this;\n setUp();\n return view;\n }", "title": "" }, { "docid": "91f88a72cad150a467cfd74d316461e2", "score": "0.6601644", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.sptr_club_feedback_form_fragment, container, false);\n }", "title": "" }, { "docid": "f3bf45239c104241089f3623c505b3f6", "score": "0.6600568", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_point_list_gb, container, false);\n\n initializeUI(v);\n\n initializeRecyclerView(v);\n\n setSubtitle(mPointPath);\n\n //9) return the view\n return v;\n }", "title": "" }, { "docid": "a17cebbef9742e06b6820782f4899297", "score": "0.6595044", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_admin_enotice_board, container, false);\n initViewPagerAndTabs();\n setPageViewIndicator();\n return mView;\n }", "title": "" }, { "docid": "6e22d50b628ac37eded4a83765f92e63", "score": "0.65917015", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_user_input, parent, false);\n }", "title": "" }, { "docid": "0dde032d1165b2e6fe38fc0dd2582269", "score": "0.6591148", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n int layout = fragments[level - 1];\n return inflater.inflate(layout, container, false);\n }", "title": "" }, { "docid": "1674abf7ce44252f2918b56652c1f601", "score": "0.6589239", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_info, container, false);\n ButterKnife.bind(this, rootView);\n\n setupLayout();\n\n return rootView;\n }", "title": "" }, { "docid": "19ac029af702c7772d76e0d3b7a976fd", "score": "0.6582034", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_blok4_b, container, false);\n\n init();\n\n return view;\n }", "title": "" }, { "docid": "e73182b29f877ac2dc705b6d7d39c067", "score": "0.6581473", "text": "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pfjoin_room, container, false);\n }", "title": "" }, { "docid": "3cd25b95c996d9d3fb3171f8bfb7c1a0", "score": "0.6580881", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment, container, false);\n accountBean = new AccountBean();\n // 初始化fragment的View\n initView(view);\n // 给GridView填充数据\n loadDataToGV();\n // 初始化最上方图片和文字为其他\n initSelect();\n // 设置GridView的点击事件\n setGVListener();\n // 设置初始化时间(当前时间)\n setInitTime();\n return view;\n }", "title": "" }, { "docid": "24ece0547706cda7fb236acf75458cc0", "score": "0.65798694", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_htweight_report, container, false);\n }", "title": "" }, { "docid": "bf1996357cd23c104167982853f162dc", "score": "0.6576976", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n datavisual_Layout=inflater.inflate(R.layout.fragment_datavisual, container, false);\r\n return datavisual_Layout;\r\n }", "title": "" }, { "docid": "b8475b733281d06825e92c9563cb4b4e", "score": "0.65746295", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.activity_reservas_fragment, container, false);\n }", "title": "" }, { "docid": "258cd35e074e806936ad73fd3a581adc", "score": "0.6569519", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if(root == null) {\n root = inflater.inflate(R.layout.fragment_schedule_host, container, false);\n pb = (ProgressBar) root.findViewById(R.id.ScheduleHost_ProgressBar);\n MainLayouit = (LinearLayout) root.findViewById(R.id.ScheduleHost_MainLayout);\n getDatabaseAsync();\n getScheduleAsync(root, null);\n }\n return root;\n }", "title": "" }, { "docid": "532a576f052f304a1fba943013522d36", "score": "0.6568779", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "title": "" }, { "docid": "7aa7cdd388725447215a1f1a8fb3dba8", "score": "0.65680504", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_balance, container, false);\n initView();\n initData();\n return inflate;\n }", "title": "" }, { "docid": "2b7f31a4ff872298bcb826af93b6c455", "score": "0.6565418", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_chat__detail_, container, false);\n }", "title": "" }, { "docid": "b4c02129bd59bfbb6a4dc1c99983b670", "score": "0.6563592", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.graph_fragment, container, false);\n }", "title": "" }, { "docid": "62ae2b4c620f1acda74c9b854f1417f2", "score": "0.656245", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_video_stream_receiver, container, false);\n }", "title": "" }, { "docid": "46eda77b35438f974276a39f58d5c6fd", "score": "0.6560828", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_manage_meds_med_schedule_summary, container, false);\n }", "title": "" }, { "docid": "bdbfd07049f564c36e7bfc64ae9446ba", "score": "0.6559329", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friends, container, false);\n }", "title": "" }, { "docid": "bdbfd07049f564c36e7bfc64ae9446ba", "score": "0.6559329", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friends, container, false);\n }", "title": "" }, { "docid": "1c5c5f67a13c3941f49bea09431b0592", "score": "0.65566695", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_sayuran_b, container, false);\n }", "title": "" }, { "docid": "3458b2ae4920a688433815025c4d8d87", "score": "0.65544844", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_info, container, false);\n }", "title": "" }, { "docid": "b89bc66cde8af46a27be03cfc42772aa", "score": "0.6552616", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.playlists_fragment, container, false);\n }", "title": "" }, { "docid": "b88646b86f001da416973c1c38252f08", "score": "0.65481377", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_schedule_room, container, false);\n }", "title": "" }, { "docid": "eb4e489f3f6659047455a6046ffb54b4", "score": "0.65447164", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pic_detail_show_layout, container, false);\n }", "title": "" }, { "docid": "2ee5c68dd6889978d5b4b5970f04959e", "score": "0.6542353", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.event_fragment, container, false);\n }", "title": "" }, { "docid": "fd22bac2f30e5cefdd9a52741a2528c4", "score": "0.65338176", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_x_z_blank, container, false);\n EventBus.getDefault().register(this);\n initView(inflate);//设置方法\n return inflate;\n }", "title": "" }, { "docid": "16e125962a4a1265cd05c20a89841083", "score": "0.65335387", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.send1, container, false);\n }", "title": "" }, { "docid": "fdb75348e8e3b27e4b80a3678096a329", "score": "0.65325713", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kamar_detail, container, false);\n }", "title": "" }, { "docid": "f4e51a678b2a7cca8a98984933cfe195", "score": "0.6531234", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_details, container, false);\n }", "title": "" }, { "docid": "e6880becf889e1445309f783d4a3837a", "score": "0.653113", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View layout = inflater.inflate(R.layout.fragment_reg_train, container, false);\n\n return layout;\n }", "title": "" }, { "docid": "97d292a22ce5175dba0a320444019e83", "score": "0.65297776", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.quiz_first_frag, container, false);\n }", "title": "" }, { "docid": "8777673229ff55a40c0087af7af2870f", "score": "0.6525308", "text": "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.google_drive_fragment, container, false);\n }", "title": "" }, { "docid": "dc325bbc9b3ca38b44c1fcfe0225c17d", "score": "0.65206486", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mybooks, container, false);\n }", "title": "" }, { "docid": "8efc1af4b35ca07313116f376c19d2b3", "score": "0.6520338", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quan_li_don_hang, container, false);\n }", "title": "" }, { "docid": "7c22dfaf49e0a17defabe4502a4c2b6f", "score": "0.6519742", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_zt_fragment, container, false);\n }", "title": "" }, { "docid": "a9ea0c0ac2ffcadb49927c3112a1ccfd", "score": "0.6519464", "text": "public void inflateLayout() {\n View.inflate(getContext(), C4558R.layout.zm_message_file_send, this);\n }", "title": "" }, { "docid": "c10db8d4dc3e6b9ebde717cd68189810", "score": "0.6517137", "text": "@Override\n public View onCreateView(LayoutInflater inflater,\n ViewGroup container, Bundle savedInstanceState) {\n\n return inflater.inflate(\n R.layout.output_fragment, container, false);\n }", "title": "" }, { "docid": "80dd0fb52afce42b67561ba4512eb58f", "score": "0.651651", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.profilelayout, container, false);\n return rootView;\n }", "title": "" }, { "docid": "8ec2c9836aa1dc4b6a0887734b7d3c6b", "score": "0.65145016", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n vRoot = inflater.inflate(R.layout.fragment_place, container, false);\n init();\n getdata();\n return vRoot;\n }", "title": "" }, { "docid": "01030c9120e2508c37e10eae177fc8b2", "score": "0.65143746", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_single_chat, container, false);\r\n\r\n setInit();\r\n\r\n findViews(view);\r\n\r\n setFormula(view);\r\n\r\n setEvents();\r\n\r\n return view;\r\n }", "title": "" }, { "docid": "7db771bf8440592e69933bc44b9091d9", "score": "0.65116006", "text": "@Override\n public View onCreateView(LayoutInflater inflater,\n ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(mLayoutId, container, false);\n }", "title": "" }, { "docid": "3527747f66d65ecf33f5228d6a0a9c6d", "score": "0.65113115", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View rootview = inflater.inflate(R.layout.fragment_base, container, false);\n\n userID = new SharedPreference().getPreferencesString(parentContext, \"user_id\" + \"_\" + ApiRequest.TOKEN);\n ButterKnife.bind(this, rootview);\n pager = (ViewPager) rootview.findViewById(R.id.view_pager);\n sharedPreference = new SharedPreference();\n\n return rootview;\n }", "title": "" }, { "docid": "415fc9d767a5ec479adb3b6401757faa", "score": "0.65085477", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_friend_adder, container, false);\n addFriendButton = view.findViewById(R.id.button_add_friend);\n friendNameView = view.findViewById(R.id.text_area_friend_name);\n\n setupListeners();\n\n return view;\n }", "title": "" }, { "docid": "9236934b27b91fccffc551f255232dcc", "score": "0.6507001", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_info_batik_jakarta1, container, false);\n\n\n\n }", "title": "" }, { "docid": "d81524c1c993bae0c33ba528bd0a536a", "score": "0.6504862", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.activity_orphanages_wishlist, container, false);\n }", "title": "" }, { "docid": "38c17062ea904f1b9b6371a994b93f76", "score": "0.65041846", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View view = inflater.inflate(R.layout.unit_details_fragment, container, false);\n\n unbinder = ButterKnife.bind(this, view);\n adjustViews();\n appHeader.setTitle(unitDetailsModel.getUnitDetails().getUnitCode());\n csvUnitDetails.setOnSegmentChangedListener(this);\n return view;\n }", "title": "" }, { "docid": "337146b138bcd57c31b2023d99c68e69", "score": "0.65035415", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.profile_fragment_layout, null);\n\t\tbtnLogout = (ButtonRectangle) view.findViewById(R.id.btn_logout);\n\t\tbtnEdit = (ButtonRectangle) view.findViewById(R.id.btn_update);\n\t\tdisplayName = (EditText) view.findViewById(R.id.display_name);\n\t\temail = (EditText) view.findViewById(R.id.email);\n\t\taddress = (EditText) view.findViewById(R.id.address);\n\t\tphone = (EditText) view.findViewById(R.id.phone);\n\t\twebsite = (EditText) view.findViewById(R.id.websites);\n\t\tavt = (ImageView) view.findViewById(R.id.avt);\n\t\tuserName = (EditText) view.findViewById(R.id.user_name);\n\t\tbtnChangePass = (ButtonRectangle) view.findViewById(R.id.btn_change_pass);\n\t\treturn view;\n\t}", "title": "" }, { "docid": "1cb735493c1f4fde25a1eb2a9049a4b1", "score": "0.6497689", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_paramater, container, false);\n }", "title": "" }, { "docid": "9ff5ad0cc079e269a47805358065eb38", "score": "0.6497573", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "title": "" }, { "docid": "15374ddfbe0746dfe77269fbbaf78f87", "score": "0.6496925", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View v = inflater.inflate(R.layout.fragment_upcoming, container, false);\n\n up_textView = v.findViewById(R.id.up_textView);\n up_frag_rv = v.findViewById(R.id.up_frag_rv);\n\n up_frag_rv.setHasFixedSize(true);\n\n databaseSource = new DatabaseSource(getContext());\n typeArrayList = new ArrayList<>();\n\n typeArrayList = databaseSource.getDistinctTaskType();\n\n if (typeArrayList.size() > 0)\n {\n up_frag_rv.setVisibility(View.VISIBLE);\n up_textView.setVisibility(View.GONE);\n\n Adapter = new UpcomingFragmentAdapter(getContext(), typeArrayList);\n\n GridLayoutManager layoutManager = new GridLayoutManager(getContext(), 2);\n up_frag_rv.setLayoutManager(layoutManager);\n Adapter.notifyDataSetChanged();\n up_frag_rv.setAdapter(Adapter);\n }\n else\n {\n up_textView.setVisibility(View.VISIBLE);\n }\n\n\n return v;\n }", "title": "" }, { "docid": "6a4d012543e9a9da497dfe6cd1370aa1", "score": "0.6496592", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_member, container, false);\n }", "title": "" }, { "docid": "0b526a1ae0253e014043b5ec9cfad48b", "score": "0.6493339", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_gridview, container, false);\n }", "title": "" }, { "docid": "8d1c1f76a8a9dde45082f5c491a0834e", "score": "0.64894444", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n parent = inflater.inflate(R.layout.fragment_view_details_data, container, false);\n convertEntriesToArray();\n setupRecyclerViewAdapter();\n setupRecyclerViewLayout();\n setupShowAllButtonClick();\n return parent;\n }", "title": "" }, { "docid": "58b2163741de1257603e10b61388db8c", "score": "0.6485893", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater,\n\t\t\t@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.cpd_fragment, container, false);\n\t\tLinearLayout rv = (LinearLayout) view.findViewById(R.id.rv);\n\t\tnew ASSL(getActivity(), rv, 1134, 720, false);\n\n\t\treturn view;\n\t}", "title": "" }, { "docid": "a27ea79cd789b3a67764bad6bc0287e9", "score": "0.6482074", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "title": "" }, { "docid": "f4f35a927897b2029f0aba0502081d1d", "score": "0.6481667", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_mphb, container, false);\n Bundle bundle=this.getArguments();\n if(bundle!=null){\n list = bundle.getParcelableArrayList(\"data\");\n }\n rankContentPresenter=new IRankContentPresenterImpl(this,getContext());\n rankContentPresenter.setId(list.get(0).getId());\n rankContentPresenter.loadData();\n init(view);\n return view;\n }", "title": "" }, { "docid": "85f85a257843bd37f62aca07e2e8fc12", "score": "0.648107", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_create_storageroom_page4, container, false);\n }", "title": "" }, { "docid": "495f90d1246087bc606c0069e0b95e8b", "score": "0.6481046", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_liver_widget, container, false);\n\n // Initialise the GUI elements with necessary information.\n initGUI();\n\n return v;\n\n }", "title": "" }, { "docid": "45cdf8c6525b14f1d2cf7c65a3aed5fa", "score": "0.648039", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_request_base, container, false);\n }", "title": "" }, { "docid": "2eaa3f193dd63fb5d34d7257804d3965", "score": "0.64802766", "text": "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.fragment_all, container, false);\n }", "title": "" }, { "docid": "ca640113e2420c291517716da63308ab", "score": "0.647992", "text": "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_camera2_basic, container, false);\n }", "title": "" }, { "docid": "e6d6286089bf344d453097a4d2fef1e7", "score": "0.6479018", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.wallet_fragment_id_hub_message, container, false);\n initView(view);\n initData();\n return view;\n }", "title": "" }, { "docid": "61a8daa7f5ab6d15be2d4ce45fde3c3f", "score": "0.64788985", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_experiments, container, false);\n\n //listView = (GridView) v.findViewById(R.id.gridView);\n pBar = (ProgressBar) v.findViewById(R.id.progressBar2);\n txtNoNWMessage = (TextView) v.findViewById(R.id.textView);\n mSwipeLayout = (SwipeRefreshLayout) v.findViewById(R.id.swipe_container);\n mSwipeLayout.setOnRefreshListener(this);\n mSwipeLayout.setColorSchemeResources(android.R.color.holo_blue_bright,\n android.R.color.holo_green_light,\n android.R.color.holo_orange_light,\n android.R.color.holo_red_light);\n recyclerView = (RecyclerView) v.findViewById(R.id.recycler_view);\n return v;\n }", "title": "" }, { "docid": "483a2a8ff2a9d47dcf33d3fb74fa3a4f", "score": "0.6472862", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_details, container, false);\n moviePoster = (ImageView) view.findViewById(R.id.movie_poster);\n movieName = (TextView) view.findViewById(R.id.movie_name);\n overview = (TextView) view.findViewById(R.id.overview);\n userRating = (TextView) view.findViewById(R.id.user_rating);\n releaseDate = (TextView) view.findViewById(R.id.release_date);\n\n return view;\n }", "title": "" }, { "docid": "71367a61c7eebc2b2c095e76cce40d39", "score": "0.6471399", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_live_auction, container, false);\n }", "title": "" }, { "docid": "f62d97c293b5ead45e6ff262df5c1427", "score": "0.64705634", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_voice_input, container, false);\n }", "title": "" }, { "docid": "11fe39d2ba148d581f69238e203d8195", "score": "0.6470134", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recomm, container, false);\n }", "title": "" }, { "docid": "0269441d16dfe4e9c3be414881c43d5b", "score": "0.6470003", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "title": "" }, { "docid": "e9ef501233a7f7a4d568ef6934ee3b39", "score": "0.64682335", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n this.fragmentView = inflater.inflate(R.layout.fragment_measurements, container, false);\n this.altitudeView = fragmentView.findViewById(R.id.altitudeValue);\n this.slopeView = fragmentView.findViewById(R.id.slopeValue);\n return fragmentView;\n }", "title": "" }, { "docid": "0fcf9462c5ccd790411c074082351666", "score": "0.64662653", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_right_answer, container, false);\n }", "title": "" }, { "docid": "139bb40c608b1ac39106e4a84ae6c76e", "score": "0.6465994", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_vp, container, false);\n unbinder = ButterKnife.bind(this, inflate);\n initData();\n initAdd();\n return inflate;\n }", "title": "" }, { "docid": "b9fbfc5f3d98edc69e21a74afe45ae10", "score": "0.646475", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_pin, container, false);\n\n initUI(view);\n\n return view;\n }", "title": "" }, { "docid": "2dd11b2d2e433e6b638e253b2a23ba69", "score": "0.6463287", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_zhuanlan, container, false);\n initView(view);\n return view;\n }", "title": "" }, { "docid": "2d275283fb6c4ae4d030dc2214c79aa1", "score": "0.646103", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_game_info, container, false);\n }", "title": "" } ]
8a91ebf548a621c9f13c59b74d26e851
no data, ModuleTest should not allow this to execute by default
[ { "docid": "a8b2bb47599880f24dd0e4d5f778a2a5", "score": "0.0", "text": "public void Test04() {\n// errln(\"Test04 should not execute!\");\n }", "title": "" } ]
[ { "docid": "3882c1659edff0079ff4ee80b48a4a4d", "score": "0.6674879", "text": "private void loadDummyData(){\n\n\n }", "title": "" }, { "docid": "e3194fd57bcff30e610cf4fdd565c2c7", "score": "0.6566523", "text": "@Test\n public void testNoDataFound() {\n }", "title": "" }, { "docid": "53a988e94e69ca57d5f84dc301e7d9f4", "score": "0.64859825", "text": "@Override\n protected void produceTestData() {\n }", "title": "" }, { "docid": "8ce6692ab9b22b263674960d8ef73b52", "score": "0.6445009", "text": "@Test\n public void dataTest() {\n // TODO: test data\n }", "title": "" }, { "docid": "9603e7e3691a0eda48d84dfbb5cc8011", "score": "0.64165413", "text": "public ModuleData() { }", "title": "" }, { "docid": "90bffa21996022ffaa1d0f32534cb489", "score": "0.63975203", "text": "@Test\n public void testDataEntry() {\n }", "title": "" }, { "docid": "2f5bd4886212db0fa471d52366b9913c", "score": "0.6250698", "text": "private void fakeData() {\n }", "title": "" }, { "docid": "3eb394e781c4224f8eaf906d91adc5af", "score": "0.6249767", "text": "@Test\n public void inputDataTest() {\n // TODO: test inputData\n }", "title": "" }, { "docid": "8fff9db739aba2aaf379663ec539c30b", "score": "0.62436014", "text": "@Test(dataProvider=\"getData\")\n\t public void FirstTest(Object uname,Object since)\n\t {\n\t\t\n\t }", "title": "" }, { "docid": "01559a9cafb34a725e90bf7823bdfd50", "score": "0.6213916", "text": "public void test() {\n\t\t}", "title": "" }, { "docid": "55a0212550f7b9b8bcaad4132f416057", "score": "0.6213298", "text": "public void setupData() {\r\n }", "title": "" }, { "docid": "757a7275eea897dbd76dfa54cba166cd", "score": "0.62042856", "text": "@Test@Ignore\r\n public void testGetHalteData(){\r\n\r\n }", "title": "" }, { "docid": "3e410e357fbd5e7264c6dd1c6b05b18f", "score": "0.6203251", "text": "@Test\n public void testGetNoUser() {\n assertNull(data.get(org));\n }", "title": "" }, { "docid": "fec5f8553aebdc6508925aa0777a46b7", "score": "0.61946034", "text": "@Override\n\t\t\tpublic void abstractTest() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fec5f8553aebdc6508925aa0777a46b7", "score": "0.61946034", "text": "@Override\n\t\t\tpublic void abstractTest() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "74ef2fa1c3d31277258a356b159cc736", "score": "0.6194389", "text": "protected abstract void setUpData();", "title": "" }, { "docid": "c3fb0e7957c5e8d03f3cccbfeaccf635", "score": "0.61234117", "text": "@Test\n public void addZeroRowsTest() {\n // TODO: test addZeroRows\n }", "title": "" }, { "docid": "8d11931d21491a634966beefe0d8a0c4", "score": "0.60872906", "text": "@Test\n public void testNoUsersModel() {\n assertEquals(orgList, data.getModel());\n }", "title": "" }, { "docid": "8a052215c0c39d90303f9209332fe230", "score": "0.6070273", "text": "@Test\r\n public void testRun() {\n \t\r\n }", "title": "" }, { "docid": "7b0bb1a04263446ca503f100e946a3f8", "score": "0.60582125", "text": "@Test\n public void nothing() {\n }", "title": "" }, { "docid": "2db0381bd2cc706e3928df69d8cdab68", "score": "0.60366285", "text": "@Test(enabled=false)\n\tpublic static void ejercicio2() {\n\t\tSystem.out.println(\"Empty= \"+empty);\n\t\tSystem.out.println(\"Brand= \"+brand);\n\t}", "title": "" }, { "docid": "43c4f469156a868d1af2740d51ecff89", "score": "0.60252947", "text": "@Before\r\n\tpublic void setUp() {\r\n\t\t// nothing to initialize\r\n\t}", "title": "" }, { "docid": "5711647caef08797f90b37d782e0c401", "score": "0.6006405", "text": "@Test\n void testInitialization() {\n ArrayList<Double> data = graph.getWeatherData();\n assertTrue(data.size() == 0);\n }", "title": "" }, { "docid": "d8cd9b2bbd583ba2a81272559a40529b", "score": "0.59745896", "text": "@BeforeClass\n\tpublic static void loadTestData(){\n\n\t\tSystem.out.println(\"Loading Test Data\");\n\t}", "title": "" }, { "docid": "67cc39e5e4a70cb2970c736f44a2ff25", "score": "0.59717846", "text": "public void testGetModuleName() {\n assertNonNullNonZeroLengthString(getModule().getName());\n }", "title": "" }, { "docid": "6e7c57275a8dafc933c1578a02ede73e", "score": "0.5949431", "text": "@Test\n private void dummy() {\n }", "title": "" }, { "docid": "307626fe66b8576a4ea5a610da7f36cd", "score": "0.59481543", "text": "public void backTrackingTestData(){\n tugOfWarTestData();\n }", "title": "" }, { "docid": "465caf91958045c8448a0a2b93b61cdd", "score": "0.59343785", "text": "private static void test05() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fe484f27f1254a817b5333cc0ebc0d99", "score": "0.59341353", "text": "public void testAll ()\r\n {\r\n // dummy test\r\n }", "title": "" }, { "docid": "6629a1a1eb4a54a1662c2115eefb3411", "score": "0.5932176", "text": "@BeforeTest\n\tpublic void checkTestSkip()\n\t{\n\t\tAPP_LOGS.debug(\" Executing Test Case -> \"+this.getClass().getSimpleName());\n\t\t\n\t\tSystem.out.println(\" Executing Test Case -> \"+this.getClass().getSimpleName());\t\t\n\t\t\n\t\tif(!TestUtil.isTestCaseRunnable(SD_detailedViewXls,this.getClass().getSimpleName()))\n\t\t{\n\t\t\tAPP_LOGS.debug(\"Skipping Test Case\"+this.getClass().getSimpleName()+\" as runmode set to NO\");//logs\n\t\t\tthrow new SkipException(\"Skipping Test Case\"+this.getClass().getSimpleName()+\" as runmode set to NO\");//reports\n\t\t}\n\t\trunmodes=TestUtil.getDataSetRunmodes(SD_detailedViewXls, this.getClass().getSimpleName());\n\t}", "title": "" }, { "docid": "905b26b2cf439ed3bddb54eabe4681de", "score": "0.5897335", "text": "public void test() {\n\t }", "title": "" }, { "docid": "3fc6bfa985a3a28e29bc224743292ddc", "score": "0.5874411", "text": "public SetupTestData() {\n initComponents();\n }", "title": "" }, { "docid": "86078aa162c0a04d7458115cb81c84ca", "score": "0.5866613", "text": "public void testdata()\r\n {\r\n\r\n assertEquals(node1.getData(), \"node1\");\r\n assertEquals(node2.getData(), \"node2\");\r\n assertNull(node1.getNext());\r\n assertNull(node2.getPrev());\r\n }", "title": "" }, { "docid": "d19e373750f55b7aee289d6bb02d2800", "score": "0.58653367", "text": "@Override\r\n\tpublic void test() {\n\t\t\r\n\t}", "title": "" }, { "docid": "30bb5aefe492fbe7599b3bfbb951bec2", "score": "0.58653295", "text": "private static void test04() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2c6eb7bf5413ef33e6db25a83e26750e", "score": "0.58569777", "text": "@Test\n public void testData() {\n String message = \"Data object stored in tree node and data object queried from tree node are different\";\n assertEquals(message, ROOT_DATA, root.data());\n assertEquals(message, NODE_DATA_1, node1.data());\n assertEquals(message, NODE_DATA_4, node4.data());\n assertNull(message, node7.data());\n }", "title": "" }, { "docid": "6572d57bf53ed6bdff25bc7cdafc40a2", "score": "0.5846706", "text": "@Test\n @Ignore(\"Tested in TestReadXXX procedures\")\n public void testStart() {\n }", "title": "" }, { "docid": "272fcb426ae4664384e240f13c1c0e2e", "score": "0.58168113", "text": "public void setUp()\n {\n // Does nothing.\n }", "title": "" }, { "docid": "5ea42438b13eca73c89f2c0f3c69948a", "score": "0.58101803", "text": "@Before\n\t\tpublic void init() {\n\t\t\tsetModulesHolder(\"/net/meisen/dissertation/config/simplestModel.xml\");\n\t\t}", "title": "" }, { "docid": "303089c672425ad875120dde07a8d493", "score": "0.5802099", "text": "public void testOne()\n {\n }", "title": "" }, { "docid": "e25468a93062cc0a11d570aeaf3d820f", "score": "0.57688737", "text": "@Test\n public void testGenerateSampleDataEmpty(){\n// try {\n// ArrayList<Integer> EmptyList = new ArrayList<>();\n//\n// // n = 0\n// ArrayList<Integer> ZeroN = data.ge(0);\n// assertEquals(EmptyList, ZeroN);\n//\n// // n = -1 Should also be empty\n// ArrayList<Integer> NegativeN = data.getGeneratedData(-1);\n// assertEquals(EmptyList, NegativeN);\n// } catch (Exception e) {\n// e.printStackTrace();\n// }\n }", "title": "" }, { "docid": "cab5828afb9e140a45b6e8bcb16b4540", "score": "0.574849", "text": "@Test\n public final void testInit() {\n }", "title": "" }, { "docid": "2518a057618fd947894bad9a19b6c5d1", "score": "0.573921", "text": "@Override\n public boolean test() {\n return false;\n }", "title": "" }, { "docid": "a7c95d0f9167469d9e8dcf889be4d268", "score": "0.57372266", "text": "public void setUp() {\n // Nothing needed\n }", "title": "" }, { "docid": "d7107e8acec2662fb4c07f95442cf33d", "score": "0.5731657", "text": "@Test\n public void testReportDataRequest() {\n // TODO: test ReportDataRequest\n }", "title": "" }, { "docid": "6b501ddb154a215a2a75b198f9a4f891", "score": "0.5730396", "text": "@Test(timeout = 4000)\n public void test00() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n TechnicalInformation technicalInformation0 = lovinsStemmer0.getTechnicalInformation();\n assertFalse(technicalInformation0.hasAdditional());\n }", "title": "" }, { "docid": "771fbc164caf7bd32bb60de2a9fd489c", "score": "0.5729762", "text": "@Test\n public void notGeneratedAnyTest() {\n }", "title": "" }, { "docid": "2e961590b609d826dc652f135476adb5", "score": "0.57234114", "text": "@Override\r\n\tpublic void test() {\r\n\r\n\t}", "title": "" }, { "docid": "4d114b4cd1146136409109258e915fa2", "score": "0.5721077", "text": "private void initData() {\n\r\n\t}", "title": "" }, { "docid": "d72edf6f6b74868a76b6f3bd206652c3", "score": "0.57189876", "text": "public void testDummy() {\n }", "title": "" }, { "docid": "cc97867e93952ef3f7b84e9e5aee5c59", "score": "0.57165766", "text": "@Test(enabled = false)\n public void test3_addThirdProduct() {\n\n }", "title": "" }, { "docid": "e2c536257edc84fca1463f1e75c9ee40", "score": "0.5704316", "text": "@Test\n public void testLoadSettings() {\n System.out.println(\"loadSettings no file\");\n final Model instance = new Model();\n instance.loadSettings();\n }", "title": "" }, { "docid": "1b701dff2c65febb8b3785f0b1276a21", "score": "0.57032824", "text": "@Override\n\tpublic void testConstructorNoDirectory() throws Exception {\n\t\tSystem.err.println(\"Skipping\");\n\t}", "title": "" }, { "docid": "74bee6dce01aafdb044924e66085f7c7", "score": "0.5702796", "text": "private void initData() {\n }", "title": "" }, { "docid": "74bee6dce01aafdb044924e66085f7c7", "score": "0.5702796", "text": "private void initData() {\n }", "title": "" }, { "docid": "74bee6dce01aafdb044924e66085f7c7", "score": "0.5702796", "text": "private void initData() {\n }", "title": "" }, { "docid": "2d1dab05dd3160506d706544aa630995", "score": "0.5700827", "text": "public static void doDummyTesting()\n\t{\n\t\tArrayList<ArrayList<String>> data = Data.readData();\n\n\n\n\t\t// keep the users who played all 6 games\n\t\t// that means they have \n\t\tArrayList<String> users_refined = refineUser(data, -1, 1);\n\t\tArrayList<ArrayList<String>> data_refined = refineData(data,1,users_refined);\n\t\tSystem.out.println(\"Total number of users \"+ users_refined.size());\n\n\n\t\t// list the game play of the users\n\n\t\tHashMap<String, int[][]> att_game_play = buildGamePlay(users_refined, data_refined, 1);\n\t\tHashMap<String, int[][]> def_game_play = buildGamePlay(users_refined, data_refined, 0);\n\t\tHashMap<String, int[][]> reward = buildGameRewards(users_refined, data_refined);\n\n\t\tprintGamePlay(att_game_play);\n\n\n\n\t\tAdversaryModel.computeLambda(users_refined, att_game_play, def_game_play,reward, data_refined, 4);\n\n\n\n\n\n\t}", "title": "" }, { "docid": "581199d458fbb0ac76aa869eb824dc36", "score": "0.5695822", "text": "@Test\n public void testCurrentOverLoad(){\n }", "title": "" }, { "docid": "d0d75b3c8c6654d5e745ec721cf50216", "score": "0.569498", "text": "@Test\n void getAllValidPresale() {\n return;\n }", "title": "" }, { "docid": "ad7fe87f6569b1c8761fa36f72244e96", "score": "0.56931514", "text": "@Override\n public void testInit() {\n }", "title": "" }, { "docid": "07efd2fddeaa5e6e6f229f72874b2b53", "score": "0.5691805", "text": "@Test public void noArgsTest() {\n \n // You should be checking for args.length == 0\n // in PetBoardingPart2, and the following should exercise \n // the code for true.\n PetBoardingList.resetListCount();\n String[] args1 = {}; // an empty String[] PetBoardingPart2.main(args1);\n Assert.assertEquals(\"Pet Boarding List count should be 0. \",\n 0, PetBoardingList.getListCount());\n }", "title": "" }, { "docid": "2f1f5fe58fcc6a91994eb918264eef94", "score": "0.56905174", "text": "@Override\n public void runTest() {\n }", "title": "" }, { "docid": "0799034940ec229aba0b1c2a7bbbebfd", "score": "0.5679363", "text": "@Test\r\n\tpublic void testLoad(){\n\t}", "title": "" }, { "docid": "69dd9b6d46ce29ac11fe513e5f08dbe7", "score": "0.5678565", "text": "@Test@Ignore\r\n public void testGetLineData(){\r\n\r\n }", "title": "" }, { "docid": "dd57869806bc46732666d9d82379c176", "score": "0.56769115", "text": "@Test\n public void testLoadData() {\n System.out.println(\"loadData\");\n ArrayList<NameValuePair> params = null;\n String action = \"\";\n DataItem instance = new DataItemImpl();\n instance.loadData(params, action);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "d5f61b000c7950ba9739499e8137c476", "score": "0.56732357", "text": "@Test\n public void testCacheNewsEmpty() {\n }", "title": "" }, { "docid": "526dceb01957f5ca1d67983d488aa617", "score": "0.56707627", "text": "public test01() {\n initComponents();\n conn = DbConn.ConnecrDb();\n loadStudentGroup();\n }", "title": "" }, { "docid": "abb8ec2746d1a4638f79412fd182c155", "score": "0.5670479", "text": "@Test\n public void testExecuteWithNoPriorData()\n {\n final long streamScopeId = 2L;\n final long april6th2001 = 1302109602000L;\n\n DailyUsageSummary summary = sut.execute(new UsageMetricDailyStreamInfoRequest(new Date(april6th2001),\n streamScopeId));\n Assert.assertNull(summary);\n }", "title": "" }, { "docid": "e5d66e196f981b66b5d53dd2b187a081", "score": "0.5669791", "text": "@Test\r\n\tvoid test2PlayersMissingProgram() { \r\n\t\tinputHandler = new ReadCommands(new File(\"tests\\\\ReadCommands\\\\2players-missing-program.prg\"), acceptedUserInputs, true);\r\n\t\tif(!inputHandler.getTestingErrorHasOccurred()) {\r\n\t\t\tfail(\"Not yet implemented\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ccee9635c0a512625ffbbc5eef4a0fd7", "score": "0.5667807", "text": "@Test\n\tpublic void test1() {\n\t\ttest = extent.startTest(\"test1\");\n\n\t\tAssert.assertTrue(false);\n\n\t}", "title": "" }, { "docid": "5d47aad399fb27690b3c05e3d2c156eb", "score": "0.5667279", "text": "@Test\n public void testInit() {\n assertTrue(\"init is not tested\", true);\n }", "title": "" }, { "docid": "a75d664c21624498464dadc95871ff34", "score": "0.56597096", "text": "private void iniziaDataStandard() {\n flowData.loadAllData();\n }", "title": "" }, { "docid": "6b543c1c2b804577ad25dad3378d8fa7", "score": "0.5655956", "text": "@Test\r\n\tvoid test1PlayersNotEnough() { \r\n\t\tinputHandler = new ReadCommands(new File(\"tests\\\\ReadCommands\\\\1player-not_enough.prg\"), acceptedUserInputs, true);\r\n\t\tif(!inputHandler.getTestingErrorHasOccurred()) {\r\n\t\t\tfail(\"Not yet implemented\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ae5d7988728af690ae28514f41d37483", "score": "0.5655643", "text": "@Test\n\t@Ignore\n\tpublic void execute() throws Exception {\t}", "title": "" }, { "docid": "390bad38724c10c93bc6a19f9048d317", "score": "0.56511414", "text": "@Test\n\tpublic void insertData() {\n\t}", "title": "" }, { "docid": "90d9e282db5d9c05788646a3e33003ae", "score": "0.56458277", "text": "@Override\n @Before\n public void setUp() {\n }", "title": "" }, { "docid": "ede8eaa88a1497dadbef71f35ff0e668", "score": "0.5644579", "text": "public void testThisMethod() throws Exception {\n prepareStandardTest();\n assertTestTypeRequired();\n }", "title": "" }, { "docid": "d05688480f7ea3a7a3b95435a6bf6ac1", "score": "0.56423664", "text": "@Test@Ignore\r\n public void testGetRouteData(){\r\n\r\n }", "title": "" }, { "docid": "fc9b2ca8c6489523345be788be9d4f50", "score": "0.5639482", "text": "@Test\n @Disabled(\"Not implemented\")\n @Override\n public void testPrepare() {}", "title": "" }, { "docid": "020dbd057cef761a460ef11f7ced9838", "score": "0.5635309", "text": "public DoNothing() {\n\t\t// really nothing here\n\t}", "title": "" }, { "docid": "50db443e3823088223c0701f4662ac62", "score": "0.56349415", "text": "public static void test() {\r\n\t\r\n\t}", "title": "" }, { "docid": "538595b4c1dd8ef2e392df05f200c92e", "score": "0.5633097", "text": "protected void runInitialData() {\n String[] argsWithoutServices = removeServicesCallArg0(args);\n if(argsWithoutServices.length > 0) {\n try {\n Singleton.getDataModel().initializeData(argsWithoutServices);\n QueryPanel queryPanel = (QueryPanel) Singleton.getMainPanel().getQueryPanel();\n } catch(RetrievalException rex) {\n System.out.println(\"Retrieval exception \" + rex.getMessage());\n }\n }\n }", "title": "" }, { "docid": "3ac2285b5260f8d6424eb8d0212e7cb8", "score": "0.56318533", "text": "@Test\n public void dummyTest() {\n }", "title": "" }, { "docid": "b6cecc454982fea00cce07c98974c719", "score": "0.56305194", "text": "@Test\n\tpublic void view() {\n\t\n\t\t//actions to be performed like click or select the module\n\t}", "title": "" }, { "docid": "c9044a0b3399cd029aab4c43041cb03c", "score": "0.5622654", "text": "@BeforeTest\n\tpublic void checkTestSkip(){\n\t\t\tif(!TestUtil.isTestCaseRunnable(suiteAxls, this.getClass().getSimpleName())){\n\t\t\tAPP_LOGS.debug(\"Skipping Test case\"+this.getClass().getSimpleName() + \"RunMode set as 'NO'\");\n\t\t\tthrow new SkipException(\"Skipping Test case \"+this.getClass().getSimpleName() + \"RunMode set as 'NO'\");\n\t\t\t}\n\t\t\t\n\t\t\trunmodes =TestUtil.getDataSetRunmodes(suiteAxls, this.getClass().getSimpleName());\n\t\t\t\t\n\t}", "title": "" }, { "docid": "746568e687fa5d29a0560968afdd688b", "score": "0.562135", "text": "public void testInitialization() {\n\t\tcheckStatsInitialized(getStats());\n\t}", "title": "" }, { "docid": "03f7761f9d931b120deb46af0120252d", "score": "0.56200427", "text": "private AppData() {\r\n\t\tthrow new AssertionError(\"Cannot instantiate\");\r\n\t}", "title": "" }, { "docid": "06966f3fd29b51e37d099eb0b8011176", "score": "0.56178206", "text": "public void testListingFormat() {\n //no need of testing\n }", "title": "" }, { "docid": "ecacd81595c7a8ccb1ce9618dce5dca1", "score": "0.56139934", "text": "private TestHelper() {\r\n // do nothing\r\n }", "title": "" }, { "docid": "195de2c8796e9bf4c98827187f7a1cca", "score": "0.56115454", "text": "@Test\n public void testLoadDevices() {\n System.out.println(\"loadDevices no file\");\n final Model instance = new Model();\n instance.loadDevices();\n }", "title": "" }, { "docid": "142c30c669703f9d0e1975278cced67f", "score": "0.5611175", "text": "@Title(\"Validate details with invalid country code\")\r\n\t@Test\r\n\tpublic void test02_GetNoData()\r\n\t{\r\n\t\tSystem.out.println(\"Test case no-2 : \\n********Started************\\n\");\r\n\t\tSerenityRest.given()\r\n\t\t.when()\r\n\t\t.get(\"/state/get/Ind/all\")\r\n\t\t.then()\r\n\t\t.log()\r\n\t\t.all()\r\n\t\t.statusCode(200)\r\n\t\t.body(\"RestResponse.result\",hasSize(0));\r\n\t\t\r\n\t\tSystem.out.println(\"Test case 2-----End----------\");\r\n\t}", "title": "" }, { "docid": "aefb8223bc876270deb34e5640703673", "score": "0.5607763", "text": "@Test\n public void _0Test() {\n // TODO: test _0\n }", "title": "" }, { "docid": "0ebf02965cdd6edfdec87d5f1df85097", "score": "0.56013566", "text": "public void testSetup()\r\r\n throws Exception\r\r\n {\r\r\n List<Object> objIdList =\r\r\n this.xmlFactory.getData(getStep(\"testSetup\").getData());\r\r\n initData(objIdList);\r\r\n }", "title": "" }, { "docid": "1c2d63867827a3e3a9ef355796aca807", "score": "0.5600557", "text": "public FullTestSuite() { super(); }", "title": "" }, { "docid": "98ff12b2d61e9a161f3e0c271ff5dd23", "score": "0.5599337", "text": "@Test\r\n public void testMain() {\r\n System.out.println(\"main\");\r\n boolean[] args = null;\r\n StoreControl.main(args);\r\n }", "title": "" }, { "docid": "e9e9f014b27474b839587f32c354305f", "score": "0.5598525", "text": "@Test\r\n\tpublic void funcNone() throws Exception {\r\n\t\tList<String> text = new ArrayList<String>();\r\n\r\n\t\tString json = TestUtils.getJsonString(\"inkfiles/function/func-none.ink.json\");\r\n\t\tStory story = new Story(json);\r\n\r\n\t\tTestUtils.nextAll(story, text);\r\n\t\tAssert.assertEquals(1, text.size());\r\n\t\tAssert.assertEquals(\"The value of x is 3.8.\", text.get(0));\r\n\t}", "title": "" }, { "docid": "2f8ad79908516c52ea4a2a6807765873", "score": "0.5595722", "text": "@Test( expected = NullPointerException.class )\npublic void testPopulatingDataSeriesFromNullProperties()\n{\n DataSeriesConfiguration config = new DataSeriesConfiguration();\n assertNotNull( config );\n config.populate( null, null ); \n}", "title": "" }, { "docid": "1df4f63c6114eac57d3ce3d1fc1aa870", "score": "0.55897355", "text": "@Test\n\tpublic void test_01_base() {\n\t\t\n\t\tSystem.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> base case run!\");\n\t}", "title": "" }, { "docid": "478a6d291a38e74a638fd29e716b674a", "score": "0.5589073", "text": "@Test\n public void testNoop() throws Exception {\n// logger.debug(\"noop\");\n }", "title": "" }, { "docid": "ef1fc2351e07b58bc52f73c44fee16db", "score": "0.558774", "text": "@Test\n public void testCheckIfStudioExists() {\n\n //no test\n }", "title": "" }, { "docid": "0ec9efe38491c4ce4141b24beb914a27", "score": "0.55865663", "text": "public void testSetup() {\n\t}", "title": "" } ]
dbe8872545e551dfa92bb5c9540c7b6d
Added by hrh 20110525_> //////////////////////////////////////////////////////////////// All of UI callback functions //////////////////////////////////////////////////////////////// implementing update.
[ { "docid": "0ea0431c81c75c9989c93896be0949d7", "score": "0.0", "text": "synchronized public void update( CEventWnd pWnd ) {}", "title": "" } ]
[ { "docid": "1dee9b6b3798c921bf8edccff8ce2627", "score": "0.76932484", "text": "protected void updateWidget() { }", "title": "" }, { "docid": "71d8466aa619074b92584799e43bf1ae", "score": "0.757254", "text": "@Override\n\tpublic void updateGUI() {\n\t\t\n\t}", "title": "" }, { "docid": "922ef5b8d07a22dcd9e93ef83f937a8b", "score": "0.7553581", "text": "@Override\n\tpublic void onUpdate() {\n\t\t\n\t}", "title": "" }, { "docid": "d8f66262b5821d16b155f9db7f23d848", "score": "0.73666626", "text": "@Override\n\tpublic void onUpdateEnd() {\n\t\t\n\t}", "title": "" }, { "docid": "67de8a03c56e7220a5b2ac7adafe6f1c", "score": "0.73508203", "text": "public void update(UI mainUI){\n\t}", "title": "" }, { "docid": "8c877f34cc92ad92c21441300781b16f", "score": "0.7350701", "text": "@Override\n public void updateEvent(GUIEvent event) {\n\n }", "title": "" }, { "docid": "c329447b30eb99d2b2532860e82fb5e4", "score": "0.7342684", "text": "@Override\r\n\tpublic void update(){\r\n\t\tSystem.out.println(\"IQM: Updating GUI...\");\r\n\t\t// here, it does nothing\r\n\t}", "title": "" }, { "docid": "7b4e6597668543681ae99c286d5b31d7", "score": "0.7341906", "text": "protected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "8f5a4cc34559eab23f91166c724314eb", "score": "0.7334986", "text": "@Override\r\n\tvoid update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3ef3d6d494727907891994ea8bb7af41", "score": "0.73338634", "text": "@Override\n\tpublic void update() { \n\t\t\n\t}", "title": "" }, { "docid": "d7ae588c8f60b6ab8f64df81cfb8e382", "score": "0.73281324", "text": "@Override\n\tpublic void onUpdateBegin() {\n\t\t\n\t}", "title": "" }, { "docid": "15e54c372ec84f26a4f0ac266ca719d7", "score": "0.7327854", "text": "@Override\n\tpublic void update() \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "c77e40bbb43cc49645ce63e31ba6b676", "score": "0.7315771", "text": "@Override\r\n\tpublic void update() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7296241", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7296241", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7296241", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7296241", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.7296241", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b394e73536d4de4ed5252037c3637b62", "score": "0.7288183", "text": "public void onUpdate () {\r\n \r\n // TODO populate arguments\r\n }", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7274419", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7274419", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7274419", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7274419", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7274419", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7274419", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7274419", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7274419", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7274419", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7274419", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7274419", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7274419", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7274419", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "70a597b4fc4c8d161affd96750436a00", "score": "0.7274419", "text": "@Override\n\tpublic void update() {\n\t\t\n\t}", "title": "" }, { "docid": "fe48bb754156d282896000cd9482ae85", "score": "0.7272021", "text": "@Override\n public void update() { }", "title": "" }, { "docid": "4cb866221e54bfbbead7f3fc9a6851a5", "score": "0.7271607", "text": "@Override\n\tpublic void update()\n\t{\n\n\t}", "title": "" }, { "docid": "14da88383f41dd6b0272d70dab6c7080", "score": "0.72678846", "text": "@Override\n public void update()\n {\n }", "title": "" }, { "docid": "04db8f38467d0ab8ecb2550bc34be7ac", "score": "0.7266263", "text": "@Override\n public void update()\n {\n\n }", "title": "" }, { "docid": "04db8f38467d0ab8ecb2550bc34be7ac", "score": "0.7266263", "text": "@Override\n public void update()\n {\n\n }", "title": "" }, { "docid": "ef09098cf152623dc60a8b5e551eafc8", "score": "0.7257733", "text": "@Override\n public void update() \n {\n }", "title": "" }, { "docid": "ff45f33ed144c95c08cb26f9d91929e6", "score": "0.72478867", "text": "@Override\n\t\t\t\t\t\tpublic void update() {\n\t\t\t\t\t\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.7246037", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.7246037", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.7246037", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.7246037", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.7246037", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.7246037", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.7246037", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "69cc080039a4062d2111fbda00e82233", "score": "0.7246037", "text": "@Override\n\tpublic void update() {\n\n\t}", "title": "" }, { "docid": "b6700cd864047b074752bdca3123d06d", "score": "0.7245742", "text": "@Override\r\n\tpublic void update() {\n\r\n\t}", "title": "" }, { "docid": "b6700cd864047b074752bdca3123d06d", "score": "0.7245742", "text": "@Override\r\n\tpublic void update() {\n\r\n\t}", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.7223828", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.7223828", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.7223828", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.7223828", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.7223828", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "86fe6846ffcc07a0ee83433f55316e12", "score": "0.7219545", "text": "@Override\n public void update() {\n\n }", "title": "" }, { "docid": "591272d2913f412cb82680e75add9cd5", "score": "0.72032785", "text": "private void update() {\n }", "title": "" }, { "docid": "0bcc05f8415be40bfc1a745cb015e966", "score": "0.72030455", "text": "@Override\n\tpublic void update() {\n\t}", "title": "" }, { "docid": "3cc8711d811240ddad2b2461b28dc549", "score": "0.71989775", "text": "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "3cc8711d811240ddad2b2461b28dc549", "score": "0.71989775", "text": "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "82ba18ea17e8a3f082a268416441843f", "score": "0.7164618", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "7289eb8ea5428a76d7c42f31780986bd", "score": "0.7144057", "text": "@Override\n public void update() {\n \n }", "title": "" }, { "docid": "7289eb8ea5428a76d7c42f31780986bd", "score": "0.7144057", "text": "@Override\n public void update() {\n \n }", "title": "" }, { "docid": "98b9d59bcd0a84c28a5d6001568f9377", "score": "0.7143838", "text": "@Override\n\tpublic void update() {\n\t\trtm.updateDate();\n\t\tt.updateUI();\n\t\tcheckButton();\n\t}", "title": "" }, { "docid": "7bde1b263b0962a471dab4da04379ec5", "score": "0.7142684", "text": "protected void additionalUpdate() {}", "title": "" }, { "docid": "f5685f13cc4ccb1b793e365890247b57", "score": "0.7141547", "text": "@Override\n\t\t\t\t\t\t\tpublic void onUpdateProgress(int progress) {\n\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "f5685f13cc4ccb1b793e365890247b57", "score": "0.7141547", "text": "@Override\n\t\t\t\t\t\t\tpublic void onUpdateProgress(int progress) {\n\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "06e151e041489f9087c46b393de855b9", "score": "0.71124345", "text": "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "title": "" }, { "docid": "6c820daea1125399e6d80c6d911d7c1b", "score": "0.7076808", "text": "public void update()\r\n\t{\n\t}", "title": "" }, { "docid": "069f80ee623b382fd54b112551a0ab9d", "score": "0.70681924", "text": "public void update() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "504c9d8dc3680e99d5f3450593b02c8d", "score": "0.70671016", "text": "@Override\n\t\t\t\tpublic void update() {\n\n\t\t\t\t}", "title": "" }, { "docid": "504c9d8dc3680e99d5f3450593b02c8d", "score": "0.70671016", "text": "@Override\n\t\t\t\tpublic void update() {\n\n\t\t\t\t}", "title": "" }, { "docid": "d75612ac3a95b43fd3e582c99b4769cf", "score": "0.70551497", "text": "public void update() \n\t{\n\t}", "title": "" }, { "docid": "4116a6c01ceaf719babddaad87b04c0f", "score": "0.7051458", "text": "@Override\n \tpublic void updateView() {\n \t\t\n \t}", "title": "" }, { "docid": "649ea40f632e163385228e76d779d743", "score": "0.7048707", "text": "abstract public void onUpdate();", "title": "" }, { "docid": "ba69914e42a9ef95f4461a03253214f5", "score": "0.7042615", "text": "public void update() {\n\t\t\n\t}", "title": "" }, { "docid": "ba69914e42a9ef95f4461a03253214f5", "score": "0.7042615", "text": "public void update() {\n\t\t\n\t}", "title": "" }, { "docid": "edc785b06ff3ec56f3c128b5b646e535", "score": "0.702462", "text": "@Override\n public void startUpdate(View arg0) {\n \n }", "title": "" }, { "docid": "0b3679715b27068484f2b96ec9da38fa", "score": "0.70212144", "text": "public void update() {\r\n\r\n\t}", "title": "" }, { "docid": "64e44800d436535070d17a0554af2526", "score": "0.7018343", "text": "public void update() {\n\n\t}", "title": "" }, { "docid": "64e44800d436535070d17a0554af2526", "score": "0.7018343", "text": "public void update() {\n\n\t}", "title": "" }, { "docid": "e365a0aa65c19d047660bd8a939e5bb8", "score": "0.701829", "text": "public void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "276fb0b6b3e70ce8b67819031839c1ec", "score": "0.7005749", "text": "public void update() {}", "title": "" }, { "docid": "276fb0b6b3e70ce8b67819031839c1ec", "score": "0.7005749", "text": "public void update() {}", "title": "" }, { "docid": "f78255979a5d2bbe40ec09cf47bc7e0a", "score": "0.7005234", "text": "public void update() {\n\n }", "title": "" }, { "docid": "bd8fcd1870e1f5e2f6c7febdd0ff477c", "score": "0.7002103", "text": "public void update() {\n }", "title": "" }, { "docid": "b2dc736cf2a2533c7049db299c5e73b6", "score": "0.6995748", "text": "@Override\n\tpublic void updateUI(String message, int position) {\n\n\t}", "title": "" }, { "docid": "fa35dc756f6a3f79c9d9671952a033ab", "score": "0.698168", "text": "public final void notifyUpdate() {\n UIHandler.post( this );\n }", "title": "" }, { "docid": "16eab3c8d939366fd2b196116afa97d1", "score": "0.69767755", "text": "public void update() {\n\t}", "title": "" }, { "docid": "16eab3c8d939366fd2b196116afa97d1", "score": "0.69767755", "text": "public void update() {\n\t}", "title": "" }, { "docid": "1a88af1b17f10c489909cb065e579564", "score": "0.69693375", "text": "boolean onUpdate ();", "title": "" }, { "docid": "a3539f9c5107b0b6485324c50db9d444", "score": "0.6955065", "text": "@Override\n public void update () {\n super.update();\n }", "title": "" }, { "docid": "59a9229ed8ba7618d980295987d2ad41", "score": "0.6932549", "text": "@Override\n public void onUpdateReceived(Update update) {\n\n }", "title": "" }, { "docid": "45e878ce4f7b22629a13ccea34a95b67", "score": "0.69175434", "text": "private void updateUI() {\n\t\tif (ui != null) {\n\t\t\tui.updateDisplay();\n\t\t}\n\t}", "title": "" }, { "docid": "1562d469a970befd629d547ce2e136ea", "score": "0.6912889", "text": "@Override\r\n\tpublic void updateUI(String message) {\n\r\n\t}", "title": "" }, { "docid": "f93b665eb5081b19775abf13b6dbc081", "score": "0.6906629", "text": "@Override\n\tpublic void update(GHAAsyncCallback<Bpu> callback) {\n\n\t}", "title": "" }, { "docid": "73dc93b11e3ec4c185efea34e245a40d", "score": "0.6901079", "text": "@Override\r\n public void startUpdate(View arg0) {\n\r\n }", "title": "" }, { "docid": "afe4ace0d6b90f211d8cfbdcb31d9ac9", "score": "0.68932784", "text": "@Override\r\n\tpublic void updateUI(int reqCode) {\n\t\t\r\n\t}", "title": "" }, { "docid": "ebe3fbc7b0353fd7da1b2e9771296160", "score": "0.6873324", "text": "@Override\r\n\tpublic void updateUI(int reqCode, String sender, String message) {\n\r\n\t}", "title": "" }, { "docid": "5169bf443d8885c5db900690099f9307", "score": "0.6870498", "text": "@Override\n public void finishUpdate(View arg0) {\n \n }", "title": "" }, { "docid": "6fa21c8798b671520b9024f783d8243e", "score": "0.68641096", "text": "@Override\r\n\tpublic void update() {\r\n\t\tSystem.out.println(\"IQM: Updating GUI...\");\r\n\t\t\r\n//\t\t//already implemented in ActionPerformed event\r\n//\t\tif (buttManual.isSelected()){\t\t\t\t\t\r\n//\t\t}\r\n//\t\tif (buttROI.isSelected()){\t\t\r\n//\t\t}\r\n\t\t\r\n\t\tthis.updateParameterBlock();\r\n\t\tthis.setParameterValuesToGUI();\r\n\t}", "title": "" } ]
405bda64faa95334f0bec5b0fc5e3548
Register Task beans defined in the application context with the environment. Calling this method will refresh the context if it hasn't already been refreshed.
[ { "docid": "39f321292ea5b25be51d4b5e7f91b8f9", "score": "0.73799556", "text": "public SpringServiceConfigurer registerTasks() {\n\t\tfinal Map<String,Task> beans = this.getRequiredRefreshedContext().getBeansOfType(Task.class);\n\t\tfor (final Map.Entry<String,Task> entry : beans.entrySet()) {\n\t\t\tLOG.info(\"registering Task: {}\", entry.getValue());\n\t\t\tthis.environment.admin().addTask(entry.getValue());\n\t\t}\n\t\treturn this;\n\t}", "title": "" } ]
[ { "docid": "4d0b8766aeb191d36e8f7267e0d81053", "score": "0.6171769", "text": "private static void autoRegister(ApplicationContext applicationContext) throws BeansException {\n LOG.info(\"Registratando contexto como singleton\");\n context = new StaticApplicationContext(applicationContext);\n context.registerSingleton(\"loadContext\", LoadContext.class);\n }", "title": "" }, { "docid": "73f6524cd344329f1a34a6c03a05d788", "score": "0.5937967", "text": "@EventListener({ContextRefreshedEvent.class})\n void contextRefreshedEvent() {\n // Get all tasks from DB and reschedule them in case of context restarted\n }", "title": "" }, { "docid": "5437ffb406d71746e596791d22180837", "score": "0.5340145", "text": "private static void initContext() {\n LOG.info(\"Carregando o contexto do spring\");\n ApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"META-INF/ApplicationContext.xml\");\n autoRegister(applicationContext);\n }", "title": "" }, { "docid": "5a02ae0cd84649e0fa28816eb571f149", "score": "0.52950865", "text": "@Override\r\n\tpublic void setApplicationContext(ApplicationContext context) throws BeansException\r\n\t{\r\n\t\tLOGGER.info(\"Injecting the Bean\" + context.getDisplayName());\r\n\t\tCONTEXT = context;\r\n\t}", "title": "" }, { "docid": "3446cd611703aefd2a36cdca046d0096", "score": "0.51346046", "text": "public void setTaskConfigService( ITaskConfigService taskConfigService )\r\n {\r\n _taskConfigService = taskConfigService;\r\n }", "title": "" }, { "docid": "24e1bac771abb47a55c33afc828e5fa6", "score": "0.5023413", "text": "void runTask3(){\n ApplicationContext ctx = new AnnotationConfigApplicationContext(ObjectTypeAConfig.class);\n ObjectTypeA objTypA = ctx.getBean(ObjectTypeA.class);\n objTypA.setMessage(\"Hello World!\");\n objTypA.getMessage();\n }", "title": "" }, { "docid": "81cac921ab8ebaef351c15ea29aee853", "score": "0.501804", "text": "public SpringServiceConfigurer registerLifeCycles() {\n\t\tfinal Map<String,LifeCycle> beans = this.getRequiredRefreshedContext().getBeansOfType(LifeCycle.class);\n\t\tfor (final Map.Entry<String,LifeCycle> entry : beans.entrySet()) {\n\t\t\tLOG.info(\"registering LifeCycle: {}\", entry.getValue());\n\t\t\tthis.environment.lifecycle().manage(entry.getValue());\n\t\t}\n\t\treturn this;\n\t}", "title": "" }, { "docid": "0fb31d92ecc7acbb637b28b46d079d84", "score": "0.50060344", "text": "@Bean(\"task-thread-factory\")\n ThreadFactory taskThreadFactory() {\n BasicThreadFactory.Builder builder = new BasicThreadFactory.Builder();\n return builder.namingPattern(contextName() + \"-task-%d\").build();\n }", "title": "" }, { "docid": "85751ee27891194985bda12a3f863dd9", "score": "0.4991743", "text": "public static void setApplicationContext(ApplicationContext context)\n {\n synchronized(waitLock)\n {\n SpringBeanLocator.context = context;\n waitLock.notifyAll();\n }\n }", "title": "" }, { "docid": "3fa49de3a476807d2de5362c078fe37b", "score": "0.4955517", "text": "@Override\n public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n try {\n Resource[] resources = applicationContext.getResources(\"classpath*:**/*.tld\");\n \n for (Resource resource : resources) {\n log.info(() -> \"Found tag library at \" + resource);\n \n try {\n register(TagLibraryParser.getInstance().parse(resource));\n } catch (Exception e) {\n log.error(\"Error parsing tag library\", e);\n }\n }\n } catch (Exception e) {\n throw MiscUtil.toUnchecked(e);\n }\n }", "title": "" }, { "docid": "8475928ae60cb22ea0552eed9c5ca0e6", "score": "0.49510443", "text": "public GenericGroovyApplicationContext(Resource... resources) {\n\t\tload(resources);\n\t\trefresh();\n\t}", "title": "" }, { "docid": "c0bea9b7099e6188b5ddcd331d5ecec8", "score": "0.4912095", "text": "@Override\n\tpublic void setApplicationContext(ApplicationContext context)\n\t\t\tthrows BeansException {\n\t\tthis.context = context;\n\t}", "title": "" }, { "docid": "6c81770c17b9a87a95708b0fa3099af7", "score": "0.49090806", "text": "@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\t\r\n\t}", "title": "" }, { "docid": "b9ee1b31274932c0bdbb851c3f8896e5", "score": "0.48511776", "text": "public void setApplicationContext(final ApplicationContext ctx) throws BeansException {\r\n context = ctx;\r\n }", "title": "" }, { "docid": "a5addc562aeab0c80d5624de815ae82b", "score": "0.4839963", "text": "@SuppressWarnings(\"unchecked\")\n @Override\n public void onApplicationEvent(@Nonnull ContextRefreshedEvent event) {\n if (event.getApplicationContext() == this.applicationContext) {\n long startTime = System.currentTimeMillis();\n\n Map<String, String> squashedMap = new HashMap<>();\n\n for (ActionsConfiguration configuration : configurations) {\n for (ActionDefinition actionDefinition : configuration.getActions()) {\n squashedMap.put(actionDefinition.getId(), actionDefinition.getActionClass());\n }\n }\n\n classes.clear();\n\n for (Map.Entry<String, String> entry : squashedMap.entrySet()) {\n Class clazz = scripting.loadClassNN(entry.getValue());\n classes.put(entry.getKey(), clazz);\n }\n\n log.debug(\"Actions initialized in {} ms\", System.currentTimeMillis() - startTime);\n }\n }", "title": "" }, { "docid": "058474ce017f41152e1229e60e10092d", "score": "0.4839168", "text": "@ScheduledMethod(start=1, priority = 6)\n\tpublic void getContext() {\n\t\tthis.context = ContextUtils.getContext(this);\n\n\t}", "title": "" }, { "docid": "5e36118808b2bdb2a50ea3c3b33e7ac1", "score": "0.48341936", "text": "@Autowired\n\tpublic void setContext(ApplicationContext context) {\n\t\tthis.context = context;\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\n\t}", "title": "" }, { "docid": "1151a824bf8f422fb9168b0d1ecd3c4e", "score": "0.48199618", "text": "void inject(TasksActivity tasksActivity);", "title": "" }, { "docid": "cae44b3cdc7e178cd311f7b19de2987f", "score": "0.48015618", "text": "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t}", "title": "" }, { "docid": "49b54c8330a81ed85549c5904c378dab", "score": "0.4796399", "text": "public GenericGroovyApplicationContext(String... resourceLocations) {\n\t\tload(resourceLocations);\n\t\trefresh();\n\t}", "title": "" }, { "docid": "248dff171ce074c1f53e4d6dc72b7223", "score": "0.4784604", "text": "void runTask1(){\n// @Required Annotation\n// ObjectTypeC objectTypeC = (ObjectTypeC) context.getBean(\"objectTypeC\");\n// System.out.println(\"Name : \" + objectTypeC.getName() );\n// System.out.println(\"No : \" + objectTypeC.getNo() );\n\n// @Autowired on Setter Methods\n// TextSEv3 te = (TextSEv3) context.getBean(\"textSEv3\");\n// te.spellCheck();\n\n// @Autowired on Properties\n\n// TextSEv3_1 te3_1 = (TextSEv3_1) context.getBean(\"textSEv3_1\");\n// te3_1.spellCheck();\n\n// @Autowired on Constructors\n\n// TextSEv3_2 te3_2 = (TextSEv3_2) context.getBean(\"textSEv3_2\");\n// te3_2.spellCheck();\n\n// @Autowired with (required=false) option\n\n// ObjectTypeC1 objectTypeC1 = (ObjectTypeC1) context.getBean(\"objectTypeC1\");\n// System.out.println(\"Name : \" + objectTypeC1.getName() );\n// System.out.println(\"No : \" + objectTypeC1.getNo() );\n\n// @Qualifier Annotation\n ObjectTypeD objectTypeD = (ObjectTypeD) context.getBean(\"objectTypeD\");\n objectTypeD.printName();\n objectTypeD.printNo();\n\n }", "title": "" }, { "docid": "741ca2c11122b31bef21b1bf7b3a911d", "score": "0.47424817", "text": "@Override\n public void run(T appconfiguration, Environment environment) throws Exception {\n AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(\n createBeanFactoryForDropWizardConfig(appconfiguration, environment)\n );\n\n context.getEnvironment().setActiveProfiles(\n appconfiguration.getSpringProfileNames().toArray(\n new String[appconfiguration.getSpringProfileNames().size()]\n )\n );\n\n for (String springProfileClass : appconfiguration.getSpringProfileClasses()) {\n context.register(Class.forName(springProfileClass));\n }\n context.refresh();\n context.start();\n IAppState appState = (IAppState) context.getBean(CommonBeanNames.APP_STATE);\n registerMetrics(appState, appconfiguration, environment);\n\n /*\n * invoke post creation initialization\n */\n appState.init();\n\n /*\n * Tie the Entire App with the Lifecycle of the Dropwizard Environment\n * (Post boot init and shutdown are made possible because of this tie-up\n */\n environment.lifecycle().manage(getAppManager());\n\n /*\n * Get the Rest Resources to plugin. Application is required\n * to provide all the Rest Resources to be injected via a Spring Bean\n */\n RestResources restResources = (RestResources) context.getBean(CommonBeanNames.REST_RESOURCES);\n for (AbstractRestResource restResource : restResources.getResources()) {\n restResource.init();\n environment.jersey().register(restResource);\n }\n\n registerHealthChecks(appconfiguration, environment, context);\n\n getLogger().info(\"Initialization Done. Ready to Serve APIs\");\n }", "title": "" }, { "docid": "e5f55e0ded6768bd1c443425036d6b18", "score": "0.4725767", "text": "public void start() {\n\t\tHashtable<String, Object> props = new Hashtable<String, Object>();\n\t\tprops.put(CONTEXT_ROOT, contextRoot);\n\t\tthis.serviceRegistration = this.bundleContext.registerService(Application.class, this, props);\n\t}", "title": "" }, { "docid": "15f220b789bc30abe2a1d1f7b821cc4b", "score": "0.47246623", "text": "@Component(modules = ShipmentTaskModule.class)\n@TaskScope\npublic interface ShipmentTaskComponent {\n StateKeeper<ShipmentTaskState> provideShipmentTaskState();\n ShipmentTaskRepository provideShipmentTaskRepository();\n}", "title": "" }, { "docid": "08c6b8c70ffe90a32faa566d99a2d8db", "score": "0.4721475", "text": "@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tsetContext(applicationContext);\r\n\t}", "title": "" }, { "docid": "b37de27ef41c6d63d7b59927c9b8339c", "score": "0.47211763", "text": "@SuppressWarnings({\"rawtypes\", \"unchecked\"})\n void afterBeanDiscovery(@Priority(PLATFORM_BEFORE) @Observes AfterBeanDiscovery event) {\n event.addBean()\n .addType(ApplicationContext.class)\n .id(MICRONAUT_BEAN_PREFIX + \"context\")\n .scope(ApplicationScoped.class)\n .produceWith(instance -> micronautContext.get());\n\n // add the remaining Micronaut beans\n for (var entry : unprocessedBeans.entrySet()) {\n Class<?> beanType = entry.getKey();\n List<MicronautBean> beans = entry.getValue();\n\n List<? extends BeanDefinitionReference<?>> refs = List.of();\n if (beans.size() > 1) {\n // first make sure these are singletons; if not, ignore\n refs = beans.stream()\n .map(MicronautBean::definitionRef)\n .filter(it -> !it.getBeanType().getName().endsWith(\"$Intercepted\"))\n .filter(BeanDefinitionReference::isSingleton)\n .collect(Collectors.toList());\n }\n\n // primary\n event.addBean()\n .addType(beanType)\n .id(MICRONAUT_BEAN_PREFIX + beanType.getName())\n // inject using dependent - manage scope by micronaut context\n .scope(Dependent.class)\n .produceWith(instance -> micronautContext.get().getBean(beanType));\n\n if (refs.size() > 1) {\n // we must care about qualifiers\n for (var ref : refs) {\n AnnotationMetadata annotationMetadata = ref.getAnnotationMetadata();\n List<Class<? extends Annotation>> qualifiers = annotationMetadata\n .getAnnotationTypesByStereotype(Qualifier.class);\n\n Annotation[] synthesized = new Annotation[qualifiers.size()];\n io.micronaut.context.Qualifier[] mq = new io.micronaut.context.Qualifier[qualifiers.size()];\n\n for (int i = 0; i < qualifiers.size(); i++) {\n Annotation annotation = annotationMetadata.synthesize(qualifiers.get(i));\n synthesized[i] = annotation;\n if (annotation != null) {\n mq[i] = Qualifiers.byAnnotation(annotation);\n }\n }\n\n io.micronaut.context.Qualifier composite = Qualifiers.byQualifiers(mq);\n\n BeanConfigurator<Object> newBean = event.addBean()\n .addType(beanType)\n .id(MICRONAUT_BEAN_PREFIX + ref.getBeanDefinitionName())\n .scope(Dependent.class)\n .produceWith(instance -> micronautContext.get().getBean(beanType, composite));\n\n for (Annotation annotation : synthesized) {\n newBean.addQualifier(annotation);\n }\n\n }\n }\n }\n unprocessedBeans.clear();\n }", "title": "" }, { "docid": "b39b46cb0d0e7b7f09b31f4cfbacd975", "score": "0.4710339", "text": "protected void activate(ComponentContext context) {\n // this is not the official way of using DS but the official way is instable\n register();\n }", "title": "" }, { "docid": "d3cc3c8954aa2b15da8869b9bedf8484", "score": "0.46983707", "text": "public SpringServiceConfigurer registerManaged() {\n\t\tfinal Map<String,Managed> beans = this.getRequiredRefreshedContext().getBeansOfType(Managed.class);\n\t\tfor (final Map.Entry<String,Managed> entry : beans.entrySet()) {\n\t\t\tLOG.info(\"registering Managed: {}\", entry.getValue());\n\t\t\tthis.environment.lifecycle().manage(entry.getValue());\n\t\t}\n\t\treturn this;\n\t}", "title": "" }, { "docid": "6c489ef8bf2217d01a08fbffe934e58a", "score": "0.46820498", "text": "@Mutate\n public void configureTasks(@Each Task task, GradlePluginDevelopmentExtension pluginExtension) {\n if (task.getName().equals(\"eclipse\")) {\n task.dependsOn(\"pluginUnderTestMetadata\");\n }\n }", "title": "" }, { "docid": "b0880a9ed175be8ad66c2016fd327b2f", "score": "0.4676107", "text": "@Override\n public void configureTasks(ScheduledTaskRegistrar scheduledTaskRegistrar) {\n }", "title": "" }, { "docid": "a7fedc83fdf80eebf8eb2cd55dfeb28a", "score": "0.4673829", "text": "private void registerInternal(Context context) {\n //Create a hotspot instance, if NULL.\n if (mHotspotReceiver == null) {\n mHotspotReceiver = new HotspotReceiver();\n }\n //Register for state change broadcasts.\n context.registerReceiver(mHotspotReceiver, new IntentFilter(ACTION_HOTSPOT_STATE_CHANGE));\n }", "title": "" }, { "docid": "ac1b143e7c93133a9617c95fd9615e5f", "score": "0.4662748", "text": "@Override\n public void afterPropertiesSet() throws Exception {\n collectTaskSchedulerConfig();\n scanTaskExecutor();\n if (tableNameTaskExecutorsMapping.isEmpty()) {\n logger.warn(\"No any taskExecutor found,So ignore to generate taskScheduler...\");\n return;\n }\n generateTaskSchedulers();\n }", "title": "" }, { "docid": "10f2b14699904904cc4af153d8c698ca", "score": "0.46397215", "text": "private void initLtedTasks() {\n\n mSubscribeTask = new LtedPublicManagedSubscribeTask(LtedApplicationConfig.LTED_DISCOVERY_TASK);\n mSubscribeTask.setOnTaskStateChangeListener(new LtedPublicManagedTaskStateListener(mSubscribeTask, mCallbackHandler));\n mSubscribeTask.registerMatchListener(this);\n\n mPublishTask = new LtedPublicManagedPublishTask(LtedApplicationConfig.LTED_DISCOVERY_TASK);\n mPublishTask.setOnTaskStateChangeListener(new LtedPublicManagedTaskStateListener(mPublishTask, mCallbackHandler));\n }", "title": "" }, { "docid": "dd2f705ddf6b7e526d1584014338f735", "score": "0.46111622", "text": "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tSocketServerConfiguration.context = applicationContext;\n\t}", "title": "" }, { "docid": "47ec87729dd781f77387017ef06904da", "score": "0.46007746", "text": "protected ITaskConfigService getTaskConfigService( )\r\n {\r\n return _taskConfigService;\r\n }", "title": "" }, { "docid": "c32a973a5bffa27d459a5af266b405e6", "score": "0.45936865", "text": "private void partialRefresh() {\n\t\t\tgetBeanFactory().registerSingleton(\"refreshListener\", new ContextRefreshingProvisionListener(this));\n\t\t\tgetBeanFactory().addBeanPostProcessor(new ApplicationContextAwareProcessor(this));\n\t\t\tinvokeBeanFactoryPostProcessors(getBeanFactory());\n\t\t\t\n\t\t}", "title": "" }, { "docid": "d2639e31d1b04dcaab3e830f89f971ef", "score": "0.4582424", "text": "@Override\n public void prepareTestInstance(TestContext testContext) throws Exception {\n setSecurityContextHolder();\n \n //support request scoped and session scoped beans in tests\n if (testContext.getApplicationContext() instanceof GenericApplicationContext) {\n GenericApplicationContext context = (GenericApplicationContext) testContext.getApplicationContext();\n ConfigurableListableBeanFactory beanFactory = context.getBeanFactory();\n Scope requestScope = new SimpleThreadScope();\n beanFactory.registerScope(\"request\", requestScope);\n Scope sessionScope = new SimpleThreadScope();\n beanFactory.registerScope(\"session\", sessionScope);\n } \n }", "title": "" }, { "docid": "83e2f13c9cf5f417ea422341deecb38c", "score": "0.45751956", "text": "@Override\n\tpublic void running(ConfigurableApplicationContext context) {\n\t\t\n\t}", "title": "" }, { "docid": "32cb2d475361f4c6ff8cf7f429c15e97", "score": "0.4570979", "text": "public void addProviderTasks(Task task){\n\n providerTasks.addTask(task);\n }", "title": "" }, { "docid": "9171027539ffcc2b7cb36a0e4d0520f6", "score": "0.45703503", "text": "private void load() {\r\n Log log = new Log(\"TaskManager\");\r\n this.tasks = new LinkedList();\r\n try {\r\n File folder = new File(\"data/tasks\");\r\n if (folder == null || !folder.exists()) {\r\n folder.mkdir();\r\n }\r\n for (File file : folder.listFiles()) {\r\n log.logMessage(\"Loading task \" + file.getAbsolutePath());\r\n JAXBContext jaxbContext = JAXBContext.newInstance(Task.class);\r\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\r\n Task task = (Task) jaxbUnmarshaller.unmarshal(file);\r\n this.tasks.add(task);\r\n }\r\n log.logMessage(\"Loaded \" + tasks.size() + \" runnable tasks (workloads)!\");\r\n } catch (JAXBException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "262ad74318947958586341e462a6790b", "score": "0.4568749", "text": "private void initializeSpringConfig(ServletContext servletContext) {\n AnnotationConfigWebApplicationContext annotationConfigWebApplicationContext =\n new AnnotationConfigWebApplicationContext();\n\n annotationConfigWebApplicationContext.register(AppConfiguration.class);\n\n // Manage the life cycle of the root application context\n servletContext.addListener(new ContextLoaderListener(annotationConfigWebApplicationContext));\n }", "title": "" }, { "docid": "2b8ae83ecd0bef68a2344731957dc1a1", "score": "0.45591164", "text": "@Override\n public void setApplicationContext(ApplicationContext applicationContext)\n throws BeansException {\n System.out.println(\"----4. call ApplicationContextAware interface\");\n }", "title": "" }, { "docid": "03ccbdee62e8314c88ddefc170fa9d25", "score": "0.45478758", "text": "protected void injectDependencies() {\r\n\t\ttourFacade = (TourFacadeImpl) applicationContext.getBean(\"tourFacade\");\r\n\t\tsetupTestController = (SetupTestContoller) applicationContext.getBean(\"setupTestController\");\r\n\t}", "title": "" }, { "docid": "431aff8d5ead80b1e5593023d84c7af9", "score": "0.45464423", "text": "void initialize(BeanContext context);", "title": "" }, { "docid": "cb8dad315f7cae030ff3dc5790c73342", "score": "0.45456928", "text": "@Singleton\n@Component(modules = {TaskModule.class, DbModule.class})\npublic interface TaskComponent {\n\n void inject(TaskApplication taskApplication);\n\n void inject(TaskList taskList);\n\n void inject(AddEditTask addEditTask);\n}", "title": "" }, { "docid": "6d9670edeaaad7a70897c1ff99557ae8", "score": "0.4544644", "text": "@Override\n\tpublic List<String> registerContext() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d477ff872c515a331bb198a58f8aaf70", "score": "0.4536113", "text": "@Override\n public void onStartup(ServletContext servletContext) throws ServletException {\n servletContext.setAttribute(\"info\", \"hello from context!\");\n\n //We can use XML Spring context...\n XmlWebApplicationContext appContext = new XmlWebApplicationContext();\n appContext.setConfigLocation(\"/WEB-INF/webapp-context.xml\");\n\n /*// ... or we can use Annotation spring context...\n AnnotationConfigWebApplicationContext appContext = new AnnotationConfigWebApplicationContext();\n appContext.register(AppConfig.class); // we'd neet to add such class\n appContext.refresh(); */\n\n DispatcherServlet servlet = new DispatcherServlet(appContext);\n ServletRegistration.Dynamic registration = servletContext.addServlet(\"dispatcher\", servlet);\n registration.setLoadOnStartup(1);\n registration.addMapping(\"/\");\n\n }", "title": "" }, { "docid": "d61f82c7599c46f394ee84002c6b3c19", "score": "0.45239595", "text": "protected void activate(ComponentContext context) {\n // this is not the official way of using DS but the official way is instable\n register();\n ModelInitializer.register(this);\n }", "title": "" }, { "docid": "73ce2d1b36d4089a9f6abc44708db497", "score": "0.45233855", "text": "void runTask8(){\n configContext.start();\n ObjectTypeA objA = (ObjectTypeA) configContext.getBean(\"objectTypeA\");\n objA.setMessage(\"Object Type A\");\n objA.getMessage();\n // Let us raise a stop event.\n configContext.stop();\n }", "title": "" }, { "docid": "39e9f53b7c2f4309a9e519f567f47e87", "score": "0.4520497", "text": "Schedule refresh(Context context);", "title": "" }, { "docid": "5b193ad4638bf9d74ad9f74678076bf0", "score": "0.45081085", "text": "public SpringServiceConfigurer registerResources() {\n\t\tfinal Map<String,Object> beans = this.getRequiredRefreshedContext().getBeansWithAnnotation(Path.class);\n\t\tfor (final Map.Entry<String,Object> entry : beans.entrySet()) {\n\t\t\tLOG.info(\"registering @Path resource: {}\", entry.getValue());\n\t\t\tthis.environment.jersey().register(entry.getValue());\n\t\t}\n\t\treturn this;\n\t}", "title": "" }, { "docid": "3cba78f1d7f90ebd0132eaae11eaec2e", "score": "0.45031947", "text": "@Override\n public void setApplicationContext(ApplicationContext atx)\n throws BeansException {\n this.atx = atx;\n }", "title": "" }, { "docid": "f8c17263412bb387a1f26338641f26e6", "score": "0.44655862", "text": "public final void injectBeans(){\n try {\n Collection<String> found = new HashSet<String>();\n for (String name : getConfigurationPropertyNames()) {\n if (name.startsWith(BEAN_PRE)) {\n String beanName = name.substring(BEAN_PRE.length(), name.indexOf(\".\", BEAN_PRE.length()));\n if (!found.contains(beanName)) {\n found.add(beanName);\n String beanClassName = getConfigurationProperty(BEAN_PRE + beanName + \".class\");\n String beanTable = getConfigurationProperty(BEAN_PRE + beanName + \".table\");\n //ctx.log(\"SHibernate: bean found: \" + beanName);\n Class<?> beanClass = Class.forName(beanClassName);\n BeanInfo info = Introspector.getBeanInfo(beanClass, Object.class);\n Collection<PropertyDescriptor> pds = getPropertyDescriptors(info);\n String query = getSelectQuery(pds, beanTable);\n //System.out.println(query);\n //Connection c = db.getConnection();\n Connection c = getConnection();\n try {\n Statement st = c.createStatement();\n ResultSet res = st.executeQuery(query);\n Collection beans = getBeansFromResultSet(res, pds, info.getBeanDescriptor().getBeanClass(), beanTable);\n //ctx.setAttribute(beanName, beans);\n putIntoContext(beanName, beans);\n } finally {\n c.close();\n }\n }\n }\n }\n } catch (Exception ex) {\n throw new IllegalStateException(ex);\n }\n }", "title": "" }, { "docid": "85c6a254affc0a3dab6e2e9b2704275c", "score": "0.44613454", "text": "public void setup() {\n final Optional<Context> context = Optional.ofNullable(Vertx.currentContext());\n if (context.isPresent()) {\n final Optional<JsonObject> jsonObject = Optional.ofNullable(Vertx.currentContext().config());\n try {\n final JsonObject config = jsonObject.orElseGet(JsonObject::new);\n final Optional<Boolean> runClean = Optional.ofNullable(config.getBoolean(\"clean.run\"));\n if (runClean.isPresent() && runClean.get().equals(true)) {\n final CleanOrphanedUsers clean = new CleanOrphanedUsers();\n clean.startClean(config);\n }\n } catch (final Exception exception) {\n logger.error(LOGFORMAT, ColorUtilConstants.RED_BOLD_BRIGHT, \"Context Configuration failed...\",\n ColorUtilConstants.RESET);\n }\n }\n }", "title": "" }, { "docid": "5d50b726a7857c596c1fec1fa98e00cf", "score": "0.44442675", "text": "public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tSystem.out.println(\"Step 3: ApplicationContext here\");\n\t}", "title": "" }, { "docid": "d5ab665ca7b3c298f548833a8c46ce32", "score": "0.4423477", "text": "public IBinder getInstance(Context context) {\n return HwPartIawareServiceFactoryEx.loadFactory(HwPartIawareServiceFactoryEx.IAWARE_SERVICE_FACTORY_EX_IMPL_NAME).getMultiTaskManagerService(context);\n }", "title": "" }, { "docid": "4fcfca46d2e6f414bda4b862a9a066b9", "score": "0.44116497", "text": "public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tthis.applicationContext = applicationContext;\r\n\t}", "title": "" }, { "docid": "f452ad234fb6c4a5d16a56039cfd13cd", "score": "0.44032666", "text": "public void inicializaEntorno() throws InterruptedException, AWTException{\r\n\r\n\t\tSystem.out.println(\"Inicializando Entorno....\\n\");\r\n\t\t\r\n\t\tApplicationContext contextEnv = new ClassPathXmlApplicationContext(\r\n\t\t\t\t\"net/rodor/testfuncooper/test/regresion/data_set_env_sp_config.xml\");\r\n\t\tenv = (Env) contextEnv.getBean(\"env\");\r\n\t\t\r\n\t\t//ApplicationContext dataFile = new ClassPathXmlApplicationContext(\r\n\t\t//\t\t\"net/rodor/testfuncooper/test/regresion/data_test.xml\");\r\n\t\t\r\n\t\tserv = contextEnv.getBean(UtilServiceImpl.class);\r\n\t}", "title": "" }, { "docid": "95cb2c52e13e7ed76f2254b3a2ed92b5", "score": "0.44020912", "text": "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tSystem.out.println(\"Set App Context Call\");\t\n\t\tthis.ac = applicationContext;\n\t}", "title": "" }, { "docid": "24384fc68009f630a47c2136966a2ec4", "score": "0.4396386", "text": "@Before\n public void before(){\n context = new AnnotationConfigApplicationContext(ApplicationCfg.class);\n }", "title": "" }, { "docid": "74c65981b29fef9424cfb7276e70e322", "score": "0.43914774", "text": "@Override\n protected void registerTestSpincastScheduledTaskRegistrer(Binder binder) {\n }", "title": "" }, { "docid": "fd3b9fe1be8aa41edd40e8dc58ecc411", "score": "0.43594855", "text": "public void setTask(Tasks task) {\n tasksList.add(task);\n }", "title": "" }, { "docid": "6a0b3d0aca7e3ce70e51e2aef3604014", "score": "0.43537602", "text": "public void onApplicationEvent(ContextRefreshedEvent event) {\n try {\n List<String> droneIds = new ArrayList<>();\n File[] files = CSVUtil.getFiles(DRONE_FOLDER_PATH);\n for (File file : files) {\n String fileName = file.getName();\n droneIds.add(fileName.substring(0, fileName.lastIndexOf('.')));\n }\n List<Route> routes = droneRouteService.getDroneRoutes();\n List<TubeStation> tubeStations = tubeStationService.getTubeStations();\n\n dispatcherTaskExecutor.execute(applicationContext\n .getBean(Dispatcher.class, \"Dispatcher\", droneIds, routes, tubeStations));\n } catch (Exception e) {\n LOGGER.error(e.getMessage(), e);\n }\n }", "title": "" }, { "docid": "240d093570613391833b7d70e2cfc792", "score": "0.43536532", "text": "private void initTask() {\n\n\t}", "title": "" }, { "docid": "6a682983e1cd459a0f54d9437d982a74", "score": "0.43536136", "text": "protected abstract void putIntoContext(String name, Collection<?> beans);", "title": "" }, { "docid": "d6f8ffe6e3762ee930c9d5d12d53e2d6", "score": "0.43480083", "text": "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext)\n\t\t\tthrows BeansException {\n\t\tSystem.out.println(\"(5)setApplicationContext的调用\"+applicationContext);\n\t}", "title": "" }, { "docid": "23aaff27d596c7bf3998651579eb5dbc", "score": "0.4343843", "text": "public static ApplicationContext getContext() {\n if (context == null) {\n context = new ClassPathXmlApplicationContext(\"/beans.xml\");\n context.registerShutdownHook();\n }\n return context;\n }", "title": "" }, { "docid": "4c0ce6165c119c2f66d0619e099a1b72", "score": "0.43377075", "text": "public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n contextId = Integer.toHexString(applicationContext.hashCode()) + Integer.toHexString(this.hashCode());\n }", "title": "" }, { "docid": "d00aef3c51a7009237063a0b41313c96", "score": "0.43365523", "text": "public MaintenanceBean() {\n Handler hf = new ConsoleHandler();\n logger.addHandler(hf);\n this.loadEnvs();\n }", "title": "" }, { "docid": "68858b708a2c54afecc52c9e2dc0610a", "score": "0.4326221", "text": "public void addTask(Task t){\n TaskDictionary.put(t.getName(), t);\n }", "title": "" }, { "docid": "7d1c3087581185bc7932cbd2c59d5256", "score": "0.43207842", "text": "public static void reloadData(Context context) {\n new ReloadDataTask(context).execute();\n }", "title": "" }, { "docid": "d02d7b93b77c8a458e0f03ad7d06ee3a", "score": "0.4300014", "text": "public void initialize()\r\n/* 21: */ throws SchedulerConfigException\r\n/* 22: */ {\r\n/* 23:52 */ this.taskExecutor = SchedulerFactoryBean.getConfigTimeTaskExecutor();\r\n/* 24:53 */ if (this.taskExecutor == null) {\r\n/* 25:54 */ throw new SchedulerConfigException(\r\n/* 26:55 */ \"No local TaskExecutor found for configuration - 'taskExecutor' property must be set on SchedulerFactoryBean\");\r\n/* 27: */ }\r\n/* 28: */ }", "title": "" }, { "docid": "9c0b41555d0bc91ce86341b448690e89", "score": "0.42854714", "text": "private void initialize() {\n\t\tinitTaskCheckBox();\n\t\tinitTaskId();\n\t\tinitTaskCategoryLabel();\n\t\tinitTaskPeriod();\n\t\tinitTaskName();\n\t\tinitTaskDetailBox();\n\t\tinitTaskCategoryBox();\n\t\tinitTaskBox();\n\t\tinitListeners();\n\t\tupdateTaskBoxWidth();\n\t}", "title": "" }, { "docid": "5ea898d805f9b262212b1a452197614b", "score": "0.42830202", "text": "public default void init() {\n\t\tTaskManager.add(this);\n\t}", "title": "" }, { "docid": "3a3e1fd9d74c1862dcd3138c6edd07ce", "score": "0.4280163", "text": "@Bean(name = \"CustomThreadScopePerson\")\n @Scope(\"thread\")\n public Person customThreadScopePerson() {\n return new Person();\n }", "title": "" }, { "docid": "7c154b01c73aed7bee552e318c07d942", "score": "0.4278766", "text": "@EventListener(ContextRefreshedEvent.class)\n public void onApplicationEvent(ContextRefreshedEvent event) {\n if (!initialised) {\n event.getApplicationContext().getBean(BaseDataInitialiser.class).setupDatabase();\n initialised = true;\n }\n }", "title": "" }, { "docid": "f390ed3a7bf15c63ecb6b1106d6009cc", "score": "0.42737186", "text": "private static void setEnvironmentInstance() {\n }", "title": "" }, { "docid": "18eccf8dd88a0b99d8c2b21feb92db69", "score": "0.42702138", "text": "private void registerUpdateTask()\r\n {\r\n this.addTickEventListener(new ITickEventListenerIf()\r\n {\r\n public long getInterval()\r\n {\r\n return UPDATE_TIME_DELAY;\r\n }\r\n\r\n public void setTimeCounter(long counter)\r\n {\r\n m_timeCounter = counter;\r\n }\r\n\r\n public long getTimeCounter()\r\n {\r\n return m_timeCounter;\r\n }\r\n\r\n @SuppressWarnings(\"unchecked\")\r\n public void handleTick(TickEvent e)\r\n {\r\n \tupdate(false);\r\n }\r\n });\r\n }", "title": "" }, { "docid": "0a83989ab376c51b3793dbd947fd5bea", "score": "0.42676926", "text": "public SpringServiceConfigurer registerProviders() {\n\t\tfinal Map<String, Object> beans = this.getRequiredRefreshedContext().getBeansWithAnnotation(Provider.class);\n\t\tfor (final Map.Entry<String,Object> entry : beans.entrySet()) {\n\t\t\tLOG.info(\"registering @Provider: {}\", entry.getValue());\n\t\t\tthis.environment.jersey().register(entry.getValue());\n\t\t}\n\t\treturn this;\n\t}", "title": "" }, { "docid": "1c0d96e28236093aaf715dbd62a1182f", "score": "0.42635196", "text": "public void setTask(Task task) {\n this.task = task;\n }", "title": "" }, { "docid": "c0e587471f1b5497b00b55b5984d33c5", "score": "0.42612013", "text": "@Override\n public void afterPropertiesSet() throws Exception {\n scheduler = new ScheduledThreadPoolExecutor(numThreads, this);\n scheduler.setExecuteExistingDelayedTasksAfterShutdownPolicy(false);\n }", "title": "" }, { "docid": "9e88d2fc5c5d482c2fd3bb24b1ee01e0", "score": "0.42596805", "text": "private void setTask() {\n String[] taskinformation;\n taskinformation = getTask();\n setTaskdetails(taskinformation);\n }", "title": "" }, { "docid": "9c7b619c5c685e233fd89acbdd0f3ef8", "score": "0.4258982", "text": "private void initializeRuntimeDependencies() {\n habitat.getComponent(PostStartup.class, \"ManagedBeanManagerImpl\");\n\n // ApplicationLoaderService needs to be initialized after\n // ResourceManager. By injecting ResourceManager, we guarantee the\n // initialization order.\n // See https://glassfish.dev.java.net/issues/show_bug.cgi?id=7179\n habitat.getComponent(PostStartup.class, \"ResourceManager\");\n\n }", "title": "" }, { "docid": "d7a3ae0c0e117778da868f4a411c4d7b", "score": "0.425661", "text": "public static void setActiveContext(Context context)\n {\n activeContext = context;\n }", "title": "" }, { "docid": "7bfb8199822aa117f097e80cbca4c8b2", "score": "0.4255498", "text": "public static void setContext(AbstractApplicationContext context) {\n AppConfig.context = context;\n }", "title": "" }, { "docid": "9b8709734e399b196572a0edec813174", "score": "0.42544425", "text": "public void setTask(Task task){\n this.task = task;\n }", "title": "" }, { "docid": "9b8709734e399b196572a0edec813174", "score": "0.42544425", "text": "public void setTask(Task task){\n this.task = task;\n }", "title": "" }, { "docid": "1efca8742c9f159cc23b0dbba15505ac", "score": "0.4236349", "text": "public SpringServiceConfigurer registerHealthChecks() {\n\t\tfinal Map<String,HealthCheck> beans = this.getRequiredRefreshedContext().getBeansOfType(HealthCheck.class);\n\t\tfor (final Map.Entry<String,HealthCheck> entry : beans.entrySet()) {\n\t\t\tLOG.info(\"registering HealthCheck: {}\", entry.getValue());\n\t\t\tthis.environment.healthChecks().register(entry.getKey(), entry.getValue());\n\t\t}\n\t\treturn this;\n\t}", "title": "" }, { "docid": "3bfe3cc807f5a204b46a1d66297a4556", "score": "0.42351463", "text": "void ensureTasksDiscovered();", "title": "" }, { "docid": "5bcdf8dde52e6cea9974c8aec12ab5fe", "score": "0.4226583", "text": "public void \n startTask\n ( \n MasterExtensionConfig config, \n BaseMasterExt ext\n ) \n {\n PostModifyPropertiesTask task = new PostModifyPropertiesTask(config, ext); \n task.start();\n }", "title": "" }, { "docid": "d3d25fcea376ba9d5b99be4d35f7e0fd", "score": "0.4208711", "text": "@BeforeClass\n\tpublic void setUp() {\n\t\tctx = new AnnotationConfigApplicationContext();\n\t\tctx.register(CommuterFileConfig.class);\n\t\tctx.refresh();\n\t\tinputAddress = (AddressBean) ctx.getBean(\"inputAddress\");\n\t}", "title": "" }, { "docid": "7c5fce442dbefce4e89b46654d7a015b", "score": "0.41957563", "text": "private void registerWX(Application context) {\n }", "title": "" }, { "docid": "bfac39b5219736cf6a52c907cd4d5cea", "score": "0.41860682", "text": "public AutowiredInjectResolver(ApplicationContext ctx) {\n this.ctx = ctx;\n }", "title": "" }, { "docid": "a0a762f1086973a253194095d3bd2fc3", "score": "0.41741234", "text": "public void loadBeans() { }", "title": "" }, { "docid": "cd492296ddd975a474fe7d13b2241112", "score": "0.41669166", "text": "public TaskScheduler() {\n taskQueue = new ArrayList<>();\n executedCommands = new HashMap<>();\n }", "title": "" }, { "docid": "b314af42461d7efbef2bc4a7cc85fc4c", "score": "0.416466", "text": "public GenericGroovyApplicationContext(Class<?> relativeClass, String... resourceNames) {\n\t\tload(relativeClass, resourceNames);\n\t\trefresh();\n\t}", "title": "" }, { "docid": "64810130af4f3cfc8abff6bfd3d93df6", "score": "0.41645366", "text": "public RegisterBean() {\n \t}", "title": "" }, { "docid": "eadc74d62ca838895a7bff617f87f7ed", "score": "0.4161868", "text": "@Override\n\tpublic void initByCustom(Map<String, Object> task) {\n\t\t\n\t}", "title": "" }, { "docid": "dd07102d929a07217f2eb3f390225743", "score": "0.41588944", "text": "@ApplicationScope\n@Component(modules = {ApplicationModule.class, NetworkModule.class, DataModule.class})\npublic interface AppComponent {\n\n Context getContext();\n\n Retrofit getRetrofit();\n\n void inject(SearchUsersActivity searchUsersActivity);\n\n}", "title": "" }, { "docid": "f410564810f3913268a39738af0e1254", "score": "0.41558775", "text": "public static TasksInstanceRegistry getInstance() {\n\t\tif (registry == null) {\n\t\t\tregistry = new TasksInstanceRegistry();\n\t\t}\n\t\treturn registry;\n\t}", "title": "" } ]
e6fbf2a0ed4061f64c1d1509c5511a00
repeated .User users = 1;
[ { "docid": "4f837b7045f44ab3fe54f92f6b0cc4de", "score": "0.4853463", "text": "public java.util.List<? extends com.lys.protobuf.ProtocolPair.UserOrBuilder> \n getUsersOrBuilderList() {\n return users_;\n }", "title": "" } ]
[ { "docid": "a3f5c685054aaa734728137eda1dfe16", "score": "0.6039074", "text": "public void setUsers(int users) {\n this.users = users;\n }", "title": "" }, { "docid": "df09d077313e8e21be77ae2ed06c9929", "score": "0.5815328", "text": "public void setNumUsers(Long numUsers) { this.numUsers = numUsers; }", "title": "" }, { "docid": "0a8a6c812a64cae854b838d4d6e85e5c", "score": "0.5715236", "text": "com.lys.protobuf.ProtocolPair.User getUsers(int index);", "title": "" }, { "docid": "be0ddb0fcf77586e55f04f2647a672e4", "score": "0.5699793", "text": "public static void getRandomUser(int count) {\n }", "title": "" }, { "docid": "350f9b5d394d3d40a4cd90fb256ae0e3", "score": "0.56912744", "text": "public void addUser() {\r\n\t\tthis.conectedUsers++;\r\n\t}", "title": "" }, { "docid": "217e47b22e11f4d00da9e4160b27dd1b", "score": "0.567606", "text": "@Test\n\tvoid testRegisterUserWithRepeatedInputs() {\n\t}", "title": "" }, { "docid": "5f34e00536775a3364f71ef276367a9e", "score": "0.56328905", "text": "com.zy17.protobuf.domain.Eng.User getUsers(int index);", "title": "" }, { "docid": "7902f0fddc440b91d599ba8ad7e6c97b", "score": "0.5552068", "text": "public int getUsers() {\n return users;\n }", "title": "" }, { "docid": "99ac9a895a191ea4a21cb6ef409d4cce", "score": "0.5411737", "text": "public int getUsersCount() ;", "title": "" }, { "docid": "4ff376dc65712ae4c2c610850acb8dba", "score": "0.540243", "text": "public Long getNumUsers() { return numUsers; }", "title": "" }, { "docid": "997839cce4b061f6df429236d6118614", "score": "0.53991854", "text": "public void setUsers(ArrayList<User> users) {\n this.users = users;\n }", "title": "" }, { "docid": "999528e40bc69e08620113efa915ed56", "score": "0.53400266", "text": "void setUsers(List<User> users);", "title": "" }, { "docid": "2dc88beebabeed8c2f763ccc4d385cac", "score": "0.5337381", "text": "private static List<User> populateDummyUsers() {\n\t\tList<User> users = new ArrayList<User>();\n\t\tusers.add(new User(counter.incrementAndGet(), \"LIMBAREDDY\", \"1234567\",\n\t\t\t\t\"finra.es.test@gmail.com\", \"test123\"));// 7\n\t\tusers.add(new User(counter.incrementAndGet(), \"TESTFINRA\",\n\t\t\t\t\"1234567890\", \"testreddy@gmail.com\", \"test123\")); // 10\n\t\treturn users;\n\t}", "title": "" }, { "docid": "85756708290514299418ddb9cd01eb73", "score": "0.533683", "text": "public void setRepeatedSequence() {\n this.repeatedSequence += 1;\n }", "title": "" }, { "docid": "5f1a20f9f81d6eec635f5f37926ee63d", "score": "0.5333134", "text": "public static List<User> readUsers(){\n List <User>users =new ArrayList<User>();\n\n for(int i=0;i<10;i++) {\n User user = new User(\"User\"+i, \"LastName1\"+i, \"description\"+i, \"msidd\"+i, \"user\"+i);\n users.add(user);\n }\n\n return users;\n\n }", "title": "" }, { "docid": "25188896f0bb6cbae898f5498f0512f3", "score": "0.52944136", "text": "@ApiModelProperty(required = true, value = \"Total number of users in the account.\")\n\n public Integer getUsers() {\n return users;\n }", "title": "" }, { "docid": "a9bd6dd756e5dc12d7510a94038e8275", "score": "0.52664685", "text": "public void setUserCount(int value) {\n this.userCount = value;\n }", "title": "" }, { "docid": "5515115cf9237106f1feaa34479b88ed", "score": "0.52503824", "text": "public void setUsersCount(Integer usersCount) {\n this.usersCount = usersCount;\n }", "title": "" }, { "docid": "4f131341c9edc586c47c2a3cb3015fd2", "score": "0.52499574", "text": "@Test\n\tpublic void test1() {\n\t\tSystem.out.println(userService.getUserById(23).getUserName());\n\t\t\n\t\t\n\t\tfor(int i = 0; i<5; i++) {\n\t\t\tjedisUtil.set(\"name\" + i, \"zhou\" + (i + 1));\n\t\t\tSystem.out.println(jedisUtil.get(\"name\" + i));\n\t\t}\n\t}", "title": "" }, { "docid": "2c752a867449d17ce90f86cac2b9d38d", "score": "0.5231881", "text": "public void setNumberOfUsers(int numberOfUsers)\r\n\t{\r\n\t\tNumberOfUsers = numberOfUsers;\r\n\t}", "title": "" }, { "docid": "41ae0f9a5229e8e9f74141ce701283ca", "score": "0.5226271", "text": "ru.bagrusss.demo.proto.User getPeople(int index);", "title": "" }, { "docid": "be6be6dbc59f0b80429b845bf231ebb7", "score": "0.5220382", "text": "public static void addOne(int count){\n }", "title": "" }, { "docid": "53bd4eca17f21e1dc8b1ff55e97b4823", "score": "0.5219262", "text": "public ServerMessageUsers(List<DataUser> users) {\n\t\tthis.users = users;\n\t}", "title": "" }, { "docid": "99db230e3fbf22e8ebae3b26416a717b", "score": "0.52013403", "text": "int countByExample(UpUserExample example);", "title": "" }, { "docid": "b7285e59a3fb87193e1ff61d2cb6f70c", "score": "0.5194462", "text": "@java.lang.Override\n public int getUserCount() {\n return user_.size();\n }", "title": "" }, { "docid": "c3faf0f330a68dcefc67f67631d3e48d", "score": "0.5194041", "text": "public void setUsers(Set<User> users) { \n\t\tthis.users = users; \n\t}", "title": "" }, { "docid": "6bbd13f7f3437cdfc9049c2d623e412d", "score": "0.51935333", "text": "@Override\n\tpublic void count() {\n\t\tSystem.out.println(userMapper.count());\n\t}", "title": "" }, { "docid": "1a88597c2e3de63eea2dfabb862b557c", "score": "0.5193249", "text": "private List<User> initializeFollowees() { // people i follow\n List<User> randomUsers = generateUsers(20);\n\n return randomUsers;\n }", "title": "" }, { "docid": "b1db2f5763be334a0aa7ee4b77e263c4", "score": "0.5180158", "text": "private void setRandomUser() {\n ArrayList<String> users = tweetReader.getAllScreenames();\r\n\r\n //Generate Random Number (From 0 - users.size())\r\n Random rand = new Random();\r\n Integer n = rand.nextInt(users.size());\r\n\r\n //Get random user string and set RobotController2 USER\r\n String user = users.get(n);\r\n\r\n //Check If User Already Taken\r\n boolean foundAvailableUser = false;\r\n while(!foundAvailableUser) {\r\n if (!takenUsers.contains(user)) {\r\n foundAvailableUser = true;\r\n } else {\r\n System.out.println(user + \" already taken by the other robot. Picking another...\");\r\n\r\n //Regenerate Random Number\r\n n = rand.nextInt(users.size());\r\n\r\n //Try Again\r\n user = users.get(n);\r\n }\r\n }\r\n\r\n setUSER(user);\r\n takenUsers.add(user);\r\n System.out.println(\"User set to \" + user);\r\n }", "title": "" }, { "docid": "928f0fe77bef8d36f905329cbfe88406", "score": "0.51510364", "text": "@Override\n\tpublic int getUserCount() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "28131379cfc85753e4cd5387d63718c3", "score": "0.5136511", "text": "public void addCount(){\n this.count++;\n }", "title": "" }, { "docid": "bec304f592f0afa67f21f5c42f7c8af6", "score": "0.513275", "text": "com.zy17.protobuf.domain.Eng.UserOrBuilder getUsersOrBuilder(\n int index);", "title": "" }, { "docid": "5c03f1d29987522324c398c62c8f583b", "score": "0.5128027", "text": "int getUserListCount();", "title": "" }, { "docid": "832a7fdb776540daf7b5bc29983d7565", "score": "0.5121944", "text": "public void setCount(int i);", "title": "" }, { "docid": "a9c1cde463ed95de35ffff916ee3f8df", "score": "0.51151913", "text": "public Builder user(User[] user);", "title": "" }, { "docid": "74ecdc99fcef147edcd0f3fb28482f1d", "score": "0.51043355", "text": "public void initUsers() {\r\n /*\r\n initUserOffsets();\r\n */\r\n for (User u : Singleton.getInstance().userList) {\r\n for (int i = 0; i < SingletonAccount.getInstance().accountModelList.size(); i++) {\r\n AccountModel acc = SingletonAccount.getInstance().accountModelList.get(i);\r\n if (acc.getUserId() == u.getUserId()) {\r\n u.registerObs(acc);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "301f47f2126cb2b6925eb40f3494ade0", "score": "0.5100008", "text": "public TelephoneBook() {\r\n users = new ArrayList<>();\r\n }", "title": "" }, { "docid": "bbbbfb40f902dfac851daa040fc6aa44", "score": "0.50981337", "text": "private List<User> testRetrieveFriends(){\n List<User> userList = new ArrayList<User>();\n\n for(int i = 0; i <100; i++)\n userList.add(new User(\"bryant\", \"test_email@test.com\"));\n\n\n return userList;\n }", "title": "" }, { "docid": "c8b0eafdb4431da72d0d248ca80d8ddd", "score": "0.506437", "text": "private void init() {\n userList = new ArrayList<>();\n\n }", "title": "" }, { "docid": "92bb6135f031e949428f947a501ef83c", "score": "0.50575286", "text": "public void setUsers(ArrayList<User> users) {\n\t\tmUsers = users;\n\t}", "title": "" }, { "docid": "fce4f1a3071a6e088c7ebc9d5a3232db", "score": "0.5054096", "text": "public void increaseUseCount();", "title": "" }, { "docid": "d746251ee79543076452130e518bc9e0", "score": "0.5051847", "text": "void setCount(int count);", "title": "" }, { "docid": "eae22fccf521c6d8208a653a8b8d7d7a", "score": "0.5048361", "text": "public int count(){\n\t\treturn containerOfUsers.size();\n\t}", "title": "" }, { "docid": "62928d9cd1cd4eb5c82c95e25ca37f67", "score": "0.50410545", "text": "public void incrementByOne()\n\t{\n\t\t++count;\n\t}", "title": "" }, { "docid": "782ff884421193b1ae5b22d60de13bc0", "score": "0.5038634", "text": "int getUsersCount();", "title": "" }, { "docid": "782ff884421193b1ae5b22d60de13bc0", "score": "0.5038634", "text": "int getUsersCount();", "title": "" }, { "docid": "782ff884421193b1ae5b22d60de13bc0", "score": "0.5038634", "text": "int getUsersCount();", "title": "" }, { "docid": "0447303493b431249dd28ae15fcb7712", "score": "0.50376475", "text": "long countByExample(LitemallUserExample example);", "title": "" }, { "docid": "93f9c1131bda3f9092dd9fdb24504846", "score": "0.5027051", "text": "@Test\n public void testFindUserFailed(){\n // first user from list of users\n Users emptyList = new Users(path + \"emptylist.json\");\n model.getUsers().setUsers(emptyList.getUsers());\n var user = new User(999, \"added user\", \"hello\", \"testfilepath.json\");\n model.setUser(user);\n \n assertNull(model.findUser());\n }", "title": "" }, { "docid": "a371fd3207f3de80dbbe753a004abb9a", "score": "0.5024758", "text": "int countByExample(AccUserExample example);", "title": "" }, { "docid": "f2597a97af77705669e3ef633cb0b379", "score": "0.50155085", "text": "@Override\n\tpublic int getUsersCount() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "9665cc4cdec45034315bc71339727a66", "score": "0.50069636", "text": "private static void incrementGeneratedMessageIDs()\r\n\t{\r\n\t\tgeneratedIDs++;\r\n\t\tif (generatedIDs == Long.MAX_VALUE)\r\n\t\t{\r\n\t\t\tgeneratedIDs = 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d7dcf36ed8e31ff5f03421d514446d81", "score": "0.4991439", "text": "public int getUserCount() {\n return userCount;\n }", "title": "" }, { "docid": "1eee911c32808e91d848b9dff4943dbe", "score": "0.49786788", "text": "int getUserIdsCount();", "title": "" }, { "docid": "1eee911c32808e91d848b9dff4943dbe", "score": "0.49786788", "text": "int getUserIdsCount();", "title": "" }, { "docid": "ce7bda07bf8f689ea58d2d4600a8b432", "score": "0.49756175", "text": "@Override\n\tpublic void incrementCount() {\n\n\t}", "title": "" }, { "docid": "6385ffaffc5b95b73626682078c06962", "score": "0.4974057", "text": "@Test\n public void whenAddTwentyUniqeItemsThenMustRetrieve() {\n SimpleSet<Integer> set = new SimpleSet<>();\n for (int i = 0; i < 20; i++) {\n set.add(i);\n }\n Iterator<Integer> iterator = set.iterator();\n iterator.next();\n iterator.next();\n int expect = 2;\n assertThat(iterator.next(), is(expect));\n }", "title": "" }, { "docid": "15c858ac79f5fea454436c9625584504", "score": "0.4964062", "text": "private void addExistingUsers() {\r\n try {\r\n BufferedReader br = new BufferedReader(new FileReader(filename));\r\n String currentLine = br.readLine();\r\n while (!currentLine.equals(\"\")) {\r\n Scanner s = new Scanner(currentLine).useDelimiter(\"\\t\");\r\n maxID ++;\r\n int id = Integer.valueOf(s.next());\r\n users.ensureCapacity(users.size() + 1);\r\n users.add(new User(id, s.next(), s.next()));\r\n currentLine = br.readLine();\r\n }\r\n }\r\n catch (Exception e) {\r\n \r\n }\r\n }", "title": "" }, { "docid": "435fbdc812aff00b23aa1f9776c2fe3e", "score": "0.4963704", "text": "public UserEntities(Collection<UserEntity> users) {\n this.users = users;\n }", "title": "" }, { "docid": "a034766f9e7e480fef2a7490658b2cb8", "score": "0.4955187", "text": "private void checkAssociation(List<User> users) throws ProtocolException{\n\n for (User user: users){\n if (user.getRoles() != null){\n Set<Role> roles = new HashSet<>();\n user.getRoles().stream().forEach(t -> roleRepo.addObjectToSet(roles, roleRepo, t));\n user.setRoles(roles);\n }\n\n if (user.getConnection() != null){\n Connection connection = connectionRepo.getUniqueResultByColumn(\"id\", user.getConnection().getId());\n user.setConnection(connection);\n }\n }\n }", "title": "" }, { "docid": "2478531fa4deb3a79487f0893261c01e", "score": "0.495296", "text": "@Override\r\n\tpublic void addUsers(User user1, User user2) {\n\t}", "title": "" }, { "docid": "5634652a2b7ba56ed1b309f55f39d627", "score": "0.49476656", "text": "@Override\n public BatchResult<User> addAll(Set<UserTemplateWithCredentialAndAttributes> users) {\n if (users.size() > maxBatchSize) {\n List<BatchResult<User>> results = new ArrayList<>();\n for (Set<UserTemplateWithCredentialAndAttributes> partition : partitionSet(users, maxBatchSize)) {\n BatchResult<User> curResult = addAll(partition);\n results.add(curResult);\n }\n return combineBatchResults(results);\n }\n\n //Otherwise we just process all the users in the list\n synchronized (indexLock) {\n try {\n //Add all users to the database\n BatchResult<User> addResult = super.addAll(users);\n Collection<OfBizUser> addedUsers = addResult.getSuccessfulEntities().stream()\n .map(this::toOfBizUser)\n .collect(Collectors.toList());\n\n //Add the new users as read by the database into the index\n indexer.index(addedUsers.toArray(new OfBizUser[addedUsers.size()]));\n\n Set<Long> userIds = addedUsers.stream().map(OfBizUser::getId).collect(Collectors.toSet());\n invalidateUsersOnOtherNodes(userIds);\n\n return addResult;\n } catch (Throwable t) {\n for (UserTemplateWithCredentialAndAttributes user : users) {\n reindexFromScratch(user);\n }\n throw t;\n }\n }\n }", "title": "" }, { "docid": "d470448303703dd61dee192f9377a6d8", "score": "0.4945672", "text": "@Override\n public void getUsers(List<UserType> users) {}", "title": "" }, { "docid": "6dcce740f59a842e2f32961e07f8d20c", "score": "0.49456564", "text": "public void setUsers(Set<User> users) {\r\n\t\tthis.users = users;\r\n\t}", "title": "" }, { "docid": "44cfe1ac1c9ec927ad8eeda1ee96cf30", "score": "0.49409485", "text": "@java.lang.Override\n public int getUserListCount() {\n return userList_.size();\n }", "title": "" }, { "docid": "d5db7ba25c7b2c7e625cf54658cde27a", "score": "0.49398425", "text": "com.dongbawen.netty.starter.the7th.ProtoBufInfo.UserOrBuilder getUserOrBuilder();", "title": "" }, { "docid": "36bc04c89bd1dca8c7303330c73227b1", "score": "0.49370542", "text": "int countByExample(User_Example example);", "title": "" }, { "docid": "5e588bba90b8b3e57c8f9aff8bc47c47", "score": "0.49319595", "text": "private void setUser(List<Reply> replys) {\n\t\t for (Reply reply : replys) {\n\t setUser(reply);\n\t }\n\t}", "title": "" }, { "docid": "5ef9e461e633232cf46138cac39e13db", "score": "0.493003", "text": "public int getUsersCount() {\n return users_.size();\n }", "title": "" }, { "docid": "5ef9e461e633232cf46138cac39e13db", "score": "0.493003", "text": "public int getUsersCount() {\n return users_.size();\n }", "title": "" }, { "docid": "5ef9e461e633232cf46138cac39e13db", "score": "0.493003", "text": "public int getUsersCount() {\n return users_.size();\n }", "title": "" }, { "docid": "48568adeb88c6170ff0a7c1dd739392e", "score": "0.49146894", "text": "Iterator getAllUsers();", "title": "" }, { "docid": "e0dcee9a264a6c1413c5511679fa40b7", "score": "0.4913901", "text": "public int bobCount ()\n {\n return 1;\n }", "title": "" }, { "docid": "c1fbea164ef65e611101349b6350773c", "score": "0.4911826", "text": "@Test\r\n public void testFindOrdersByUserId(){\n\t for(int i=0;i<10;i++){\r\n\t\t News news=new News();\r\n\t\t news.setTitle(\"title\"+i);\r\n\t\t news.setContent(\"content\"+i);\r\n\t\t newsService.add(news);\r\n\t }\r\n }", "title": "" }, { "docid": "77fa4bca395af4cc148a011f663eee50", "score": "0.4899698", "text": "@Override\n public void setCount(int count) {\n }", "title": "" }, { "docid": "23ae675d1e242dd6cc23adfdd9f42616", "score": "0.48992714", "text": "com.lys.protobuf.ProtocolPair.UserOrBuilder getUsersOrBuilder(\n int index);", "title": "" }, { "docid": "54fcb787a7f1512c67296b81825bf9b8", "score": "0.48963237", "text": "long countByExample(MUserExample example);", "title": "" }, { "docid": "24a668fd1aebbf88dbfe3bff4f8a5c36", "score": "0.48926672", "text": "public User() {\n emails = new ArrayList<>();\n emailsSet = new HashSet<>();\n id = Users.nextUserId++;\n }", "title": "" }, { "docid": "dfb1e1500378801d3c124bcbbc67f6e1", "score": "0.48892277", "text": "int countByExample(MemUserRoleExample example);", "title": "" }, { "docid": "a204b607f6ed32c06664819b2da596b1", "score": "0.4876558", "text": "public Twitter_Users users() {\r\n\t\treturn new Twitter_Users(this);\r\n\t}", "title": "" }, { "docid": "8aaf64dbe9432af98c18e9bb81597766", "score": "0.48738417", "text": "@Test\n\tpublic void testIndexAllUserData() {\n\t\tfinal User savedUser1 = saveAndGetNewUser(\"user1\",\"user@1.test\");\n\t\tfinal User savedUser2 = saveAndGetNewUser(\"user2\",\"user@2.test\");\n\t\tfinal BitSet itemSet = new BitSet(2);\n\t\tfinal MutableInt numIndexed = new MutableInt(0);\n\t\t\n\t\tBasicBatchOptions batchOptions = new BasicBatchOptions(\n\t\t\t\tMediaItemDao.BATCH_NAME_INDEX);\n\t\tBatchResult results = userDao.batchProcess(\n\t\t\t\tnew magoffin.matt.dao.BatchableDao.BatchCallback<User>() {\n\t\t\t\n\t\t\tpublic BatchCallbackResult handle(User domainObject) {\n\t\t\t\tnumIndexed.setValue(numIndexed.intValue()+1);\n\t\t\t\tif ( logger.isDebugEnabled() ) {\n\t\t\t\t\tlogger.debug(\"Got item: \" +domainObject.getUserId());\n\t\t\t\t}\n\t\t\t\tassertNotNull(domainObject.getUserId());\n\t\t\t\tif ( domainObject.getUserId().equals(savedUser1.getUserId())) {\n\t\t\t\t\titemSet.set(0);\n\t\t\t\t} else if ( domainObject.getUserId().equals(savedUser2.getUserId())) {\n\t\t\t\t\titemSet.set(1);\n\t\t\t\t}\n\t\t\t\treturn BatchCallbackResult.CONTINUE;\n\t\t\t}\n\t\t\t\n\t\t}, batchOptions);\n\t\tassertNotNull(results);\n\t\tassertEquals(2, numIndexed.intValue());\n\t\tassertEquals(2, itemSet.cardinality());\n\t\tassertEquals(2, results.numProcessed());\n\t}", "title": "" }, { "docid": "5e2c5badf7534fc2b941cb6fbf0fb218", "score": "0.48713505", "text": "java.util.List<? extends com.lys.protobuf.ProtocolPair.UserOrBuilder> \n getUsersOrBuilderList();", "title": "" }, { "docid": "1748941d071fb42642e3f6c8bfaa8384", "score": "0.48676777", "text": "@Override\r\n\tpublic List<User> checkRepeat(String username) {\n\t\treturn loginDao.checkRepeat(username);\r\n\t}", "title": "" }, { "docid": "40539b782464082aab77fae6b047eade", "score": "0.48641664", "text": "@Override\n\tprotected int get_count() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "42e9cbb23336e28484ccc42850d70443", "score": "0.48625603", "text": "private Users() { }", "title": "" }, { "docid": "8d625a814a6a08ce41ea9d1346a85a33", "score": "0.4854949", "text": "void connectedWith(Set<RumpInfo> uniqueUsers);", "title": "" }, { "docid": "d58b3b004b2ab3b3e9bade32cf32874c", "score": "0.48527968", "text": "public void generateUsers() {\r\n\t\t\r\n\t\tPersistenceManager pm;\r\n\t\tTransaction tx;\r\n\t\tList<User> pass = new ArrayList<User>(Arrays.asList(new User(),new User()));\r\n\t\tpass.get(0).setFirstName(\"Michel\");\r\n\t\tpass.get(0).setLastName(\"Bertrand\");\r\n\t\tpass.get(0).setMail(\"paulagopian94@gmail.com\");\r\n\t\tpass.get(0).setPwd(\"1234\");\r\n\t\tpass.get(0).setPhoneNumber(\"07 82 65 38 89\");\r\n\t\tpass.get(0).setLivingLocation(\"Paris\");\r\n\t\tpass.get(1).setFirstName(\"Jean-Patrick\");\t\t\r\n\t\tpass.get(1).setLastName(\"Dupont\");\r\n\t\tpass.get(1).setMail(\"jp@gmail.com\");\r\n\t\tpass.get(1).setPwd(\"abcd\");\r\n\r\n\t\t// save\r\n\t\tpm = pmf.getPersistenceManager();\r\n\t\ttx = pm.currentTransaction();\r\n\t\ttry {\r\n\t\t\ttx.begin();\r\n\t\t\tfor(User a: pass) {\r\n\t\t\t\tpm.makePersistent(a);\r\n\t\t\t}\r\n\t\t\ttx.commit();\r\n\t\t} finally {\r\n\t\t\tif (tx.isActive()) {\r\n\t\t\t\ttx.rollback();\r\n\t\t\t}\r\n\t\t\tpm.close();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "df2eb63129130cef3839536c42127137", "score": "0.48458654", "text": "int getUserIdListCount();", "title": "" }, { "docid": "df2eb63129130cef3839536c42127137", "score": "0.48458654", "text": "int getUserIdListCount();", "title": "" }, { "docid": "60f28273e1520f9bd7f3cb4882c768b2", "score": "0.48444074", "text": "int countByExample(TbWzzUserStoreExample example);", "title": "" }, { "docid": "2158637615b80fcfaedf5d244fa1aef3", "score": "0.4841582", "text": "public Object userCount() {\n\t\treturn userCount;\n\t}", "title": "" }, { "docid": "fd97d04970a93cbe4e7e339f347d3e9b", "score": "0.48414415", "text": "int insertSelective(Users record);", "title": "" }, { "docid": "4230500da2733affd73516faa2082732", "score": "0.48413706", "text": "public void incrementNumVisits(){\n this.numVisits++;\n }", "title": "" }, { "docid": "df64e53ce256c6b59806ba34733616f4", "score": "0.48374793", "text": "public com.lys.protobuf.ProtocolPair.UserOrBuilder getUsersOrBuilder(\n int index) {\n return users_.get(index);\n }", "title": "" }, { "docid": "95d2b51659f8e3547690fa9c81dd158a", "score": "0.483217", "text": "int getAndIncNextBotWord(UserDto user) throws SQLException;", "title": "" }, { "docid": "78e01eb3adfba8a5da5e2afe16f6fdd3", "score": "0.4831799", "text": "int importUsers(List<User> userList);", "title": "" }, { "docid": "bc8fd6b2f5739f317bcfc73dd370af91", "score": "0.48261458", "text": "public beanUsers() {\n \n }", "title": "" }, { "docid": "c529edecf827b944f12ff881c3952a1e", "score": "0.48228875", "text": "java.util.List<ru.bagrusss.demo.proto.User> \n getPeopleList();", "title": "" }, { "docid": "cd5daca64c33067cfa404587f48f51dc", "score": "0.4820592", "text": "public com.zy17.protobuf.domain.Eng.UserOrBuilder getUsersOrBuilder(\n int index) {\n return users_.get(index);\n }", "title": "" }, { "docid": "c30025fabd25884cf322dbba757d5608", "score": "0.48192438", "text": "public MCS(){\n\t\tusers = new User[SIZE_OF_USERS];\n\t\tpoolOfSongs = new Song[AMOUNT_OF_SONGS];\n\t\tplaylists = new Playlist[AMOUNT_OF_PLAYLISTS];\n\n\t}", "title": "" } ]
d7104fd350c383e9e84edc90b2c4741e
Selects a number of columns from a table based on columnspecs
[ { "docid": "9e6b2a3efab0877d7d579b2c454301ae", "score": "0.0", "text": "public ComputedTable selectColumns(Table oldTable, HashMap<String,String> tableNameAliases) throws InvalidNameException {\r\n\t\tArrayList<Column> cols = oldTable.getColumns();\r\n\t\tArrayList<Column> newCols = new ArrayList<>();\r\n\t\tfor (Column c : cols) {\r\n\t\t\tfor (ColumnSpec spec : getColumnSpecs()) {\r\n\t\t\t\t//Given a columnSpec tableName.columnName,\r\n\t\t\t\t//A column should be kept if:\r\n\t\t\t\t//a columnSpec is tableNameAlias.columnName and \r\n\t\t\t\t//an alias tableNameAlias -> tableName exists.\r\n\t\t\t\t//DebugPrinter.print(tableNameAliases.get(spec.getCellID().getRowID())+\".\"+spec.getCellID().getcolumnName());\r\n\t\t\t\t//DebugPrinter.print(c.getName());\r\n\t\t\t\tif ((tableNameAliases.get(spec.getCellID().getRowID())+\".\"+spec.getCellID().getcolumnName()).equals(c.getName())) {\r\n\t\t\t\t\t//Keep column\r\n\t\t\t\t\tnewCols.add(c);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//Rename columns according to columnSpecs\r\n\t\tfor (int i=0; i<getColumnSpecs().size(); i++) {\r\n\t\t\tnewCols.get(i).setName(getColumnSpecs().get(i).getName());\r\n\t\t}\r\n\t\t\r\n\t\tint keep = getColumnSpecs().size();\r\n\t\tnewCols = new ArrayList<Column>(newCols.subList(0, keep));\r\n\t\t\r\n\t\tComputedTable newTable = new ComputedTable(\"Result\",this);\r\n\t\tnewTable.addAllColumns(newCols);\r\n\t\treturn newTable;\r\n\r\n\t}", "title": "" } ]
[ { "docid": "809151a3385837b487882e28e73b64c8", "score": "0.6271851", "text": "List<ColumnInfo> getColumns(String tableName, String rowKey, List<ColumnInfo> columns, List<ColumnInfo> filters);", "title": "" }, { "docid": "ab196b556dc951b3e49b77d9f9f20f77", "score": "0.62073594", "text": "public abstract RegularAndStaticColumns fetchedColumns();", "title": "" }, { "docid": "0ca90c3f6ae3d38454ac08b34d5ecea3", "score": "0.6093386", "text": "List<ColumnInfo> getColumns(String tableName, String rowKey, String columnFamily);", "title": "" }, { "docid": "a96619c6876e51c8e2cef23222504fb9", "score": "0.6069397", "text": "ScannerBuilder fetch(Collection<Column> columns);", "title": "" }, { "docid": "5440e47ca64c8512de1cabe71735634a", "score": "0.6017747", "text": "Set<String> getDynamicColumnNames();", "title": "" }, { "docid": "b38490850fbef5281ef8d4f4f67f196f", "score": "0.60122466", "text": "List<ColumnInfo> getColumnsByPage(String tableName, String rowKey, Integer pageNo, Integer pageSize);", "title": "" }, { "docid": "2d98545375c2246dc99f9a6cc29b0cca", "score": "0.59962314", "text": "ScannerBuilder fetch(Column... columns);", "title": "" }, { "docid": "a193f8a0e98502bd4a6691fb26702dc5", "score": "0.5983903", "text": "List<ColumnInfo> getColumns(String tableName, String rowKey);", "title": "" }, { "docid": "f8a52ddbdb65e60ccf1fb9ce78fd20a7", "score": "0.59674454", "text": "List<ColumnInfo> getColumns(String tableName, String rowKey, String columnFamily, List<ColumnInfo> columns,\n List<ColumnInfo> filters);", "title": "" }, { "docid": "728c36f6e5d622c75e180b54fe6242f9", "score": "0.59307003", "text": "public Iterable<ColumnInformation> getColumns(TableInformation tableInformation);", "title": "" }, { "docid": "5665bed172e181a3bb4916da353ef592", "score": "0.5810335", "text": "public List<Columns> findlm() {\n\t\t return DBHelper.select(\"select * from columns\", Columns.class);\n\t}", "title": "" }, { "docid": "a2083d97539f08876589d78178828b4b", "score": "0.5794164", "text": "List<SotwoGoodsSpecification> selectByExampleSelective(@Param(\"example\") SotwoGoodsSpecificationExample example, @Param(\"selective\") SotwoGoodsSpecification.Column ... selective);", "title": "" }, { "docid": "760d93df1521b0c9825c50f7e7028e01", "score": "0.577273", "text": "protected List<ColumnSpec> createColumnSpecs() {\n return null;\r\n }", "title": "" }, { "docid": "f49121d7e7f3dc80cfc8dac50cc9e23b", "score": "0.5754137", "text": "public List<IColumn> getColumns();", "title": "" }, { "docid": "b1c01b7e9af08093648ed3ba1a920770", "score": "0.5694235", "text": "public QueryBuilder select(String... columnNames) {\n\t\treturn select(List.of(columnNames));\n\t}", "title": "" }, { "docid": "b7fc183501b6a73919050593078b18a2", "score": "0.56841093", "text": "List<AxOrderGoods> selectByExampleSelective(@Param(\"example\") AxOrderGoodsExample example, @Param(\"selective\") AxOrderGoods.Column ... selective);", "title": "" }, { "docid": "87ac1947ce71058a2e76d106dfecb9cf", "score": "0.5624807", "text": "private PGPColumnNode readColumns( String line ) throws AdapterException\r\n\t\t {\n\t\t String columnName = \"\";\r\n\t\t String description = \"No description available\" ;\r\n\t\t String datatype = AWColumn.AWT_VARCHAR ;\r\n\t\t boolean nullable = true ;\r\n\t\t int lengthOrPrecision = 0;\r\n\t\t int scale = 0 ;\r\n\r\n\t\t PGPColumnNode cn = new PGPColumnNode() ;\r\n\t\t StringTokenizer st = new StringTokenizer(line, \"|\") ;\r\n\t\t try\r\n\t\t {\r\n\t\t columnName = st.nextToken() ;\r\n\t\t //datatype\t\t \t\r\n\t\t\t datatype = st.nextToken();\t\t\t \r\n\t\t String ln = st.nextToken() ;\r\n\t\t lengthOrPrecision = Integer.parseInt(ln) ;\r\n\t\t String sc = st.nextToken() ;\r\n\t\t scale = Integer.parseInt(sc) ;\t\t \r\n\t\t \r\n\t\t String nl = st.nextToken() ;\r\n\t\t nullable = Boolean.getBoolean(nl);\r\n\t\t description = st.nextToken() ;\r\n\t\t }\r\n\t\t catch ( NoSuchElementException e )\r\n\t\t {\r\n\t\t \r\n\t\t _logger.warning(e.getLocalizedMessage());\r\n\t\t }\r\n\t\t catch ( Exception e )\r\n\t\t {\r\n\t\t throw new AdapterException ( e, \"Error when read table description form line: \" + line ) ;\r\n\t\t }\r\n\r\n\t\t if ( columnName.length() < 1 )\r\n\t\t throw new AdapterException ( \"Must define column name.\" ) ;\r\n\r\n\t\t cn.setName(columnName);\r\n\t\t cn.setDatatype(datatype);\r\n\t\t cn.setDescription(description);\r\n\t\t cn.setNullable(nullable);\r\n\t\t cn.setLength(lengthOrPrecision);\r\n\t\t cn.setPrecision(lengthOrPrecision);\r\n\t\t cn.setScale(scale);\r\n\t\t return cn ;\r\n\t\t }", "title": "" }, { "docid": "43eef0df4e52fcdf84f7336bc69aad21", "score": "0.56158423", "text": "SelectColumn<T> buildColumn();", "title": "" }, { "docid": "a2e50fe2e6025d7e3acca80234f46852", "score": "0.56012344", "text": "@Test\n public void testGetColumns(){\n List<Column> columns = TestFactory.createListColumn(List.of(\"nom\",\"prenom\",\"age\"));\n\n Table table = Table\n .builder()\n .name(\"test\")\n .columns(columns)\n .build();\n\n Assertions.assertEquals(columns, table.getColumns());\n }", "title": "" }, { "docid": "ca2f77c6bd9ea52caed8ce51f664ea17", "score": "0.55743325", "text": "EntityFind selectFields(Collection<String> fieldsToSelect);", "title": "" }, { "docid": "5bde4424f24d0768354ca8f019c5e2dd", "score": "0.55563945", "text": "List<SysDept> selectByExampleSelective(@Param(\"example\") SysDeptExample example, @Param(\"selective\") SysDept.Column ... selective);", "title": "" }, { "docid": "a5d24cdd686c4316187deffee6ae253b", "score": "0.5555276", "text": "List<ColumnInfo> getColumnsByPage(String tableName, String rowKey, Integer pageNo, Integer pageSize,\n List<ColumnInfo> columns, List<ColumnInfo> filters);", "title": "" }, { "docid": "24681e7dda3061a74bff16cd1fc94f84", "score": "0.5546774", "text": "List<ManufacturingUser> selectByExampleSelective(@Param(\"example\") ManufacturingUserExample example, @Param(\"selective\") ManufacturingUser.Column ... selective);", "title": "" }, { "docid": "31ef8cbacb8f68dd803c997bc1d832a4", "score": "0.5546252", "text": "void explicitTableColumnsRequired(Object source, Locator loc);", "title": "" }, { "docid": "359735077be9860977d80ce837095c86", "score": "0.55129975", "text": "@Test\n public void testColumnNames() {\n final List<ColumnName> columns = ColumnName.names(\n new Columns(\n \"users\",\n TestDbInstance.datasource\n )\n );\n Assert.assertThat(\n columns.get(0).name(),\n CoreMatchers.is(\"id\")\n );\n Assert.assertThat(\n columns.get(1).name(),\n CoreMatchers.is(\"name\")\n );\n Assert.assertThat(\n columns.get(2).name(),\n CoreMatchers.is(\"surname\")\n );\n Assert.assertThat(\n columns.get(3).name(),\n CoreMatchers.is(\"age\")\n );\n Assert.assertThat(\n columns.get(4).name(),\n CoreMatchers.is(\"active\")\n );\n Assert.assertThat(\n columns.get(5).name(),\n CoreMatchers.is(\"birthday\")\n );\n }", "title": "" }, { "docid": "9f8d180c947cc1daa6f93df2ff6fa097", "score": "0.55034137", "text": "public void selectByStatementWithColumnIndex() throws SQLException {\n String sql = \"select id, name, sex, birth from student\";\n\n Connection conn = null;\n try {\n conn = new DatabaseConnection().getConnection();\n\n Statement stmt = conn.createStatement(); // 建立Statement对象\n\n ResultSet rs = stmt.executeQuery(sql); // STEP 4: Execute a query 通过Statement对象执行查询SQL语句\n\n while (rs.next()) {\n\n int id = rs.getInt(1); // 通过列的索引值来获取这个列的数值\n String name = rs.getString(2);\n String sex = rs.getString(3);\n Date birth = rs.getDate(4);\n\n System.out.println(\"id=\" + id + \",name=\" + name + \",sex=\" + sex + \",birth=\" + birth);\n }\n\n rs.close();\n stmt.close();\n\n } finally {\n if (conn != null)\n conn.close();\n }\n }", "title": "" }, { "docid": "ae8ec8ad78e6bce7527ead5e28f85261", "score": "0.54863924", "text": "abstract RegularAndStaticColumns getFetchedColumns(TableMetadata metadata, RegularAndStaticColumns queried);", "title": "" }, { "docid": "e701633d64c8804f909c666d673e5ed1", "score": "0.5480783", "text": "protected static List<ColumnMetaData>\r\n columns(ResultSetMetaData metaData) throws SQLException {\r\n if (metaData == null) {\r\n return Collections.emptyList();\r\n }\r\n final List<ColumnMetaData> columns = new ArrayList<>();\r\n for (int i = 1; i <= metaData.getColumnCount(); i++) {\r\n int typeId = 0;\r\n switch (metaData.getColumnType(i)) {\r\n case -7:\r\n typeId = Types.BOOLEAN;\r\n break;\r\n case -1:\r\n typeId = 12;\r\n break;\r\n default:\r\n typeId = metaData.getColumnType(i);\r\n }\r\n String columnClassName = metaData.getColumnClassName(i);\r\n final SqlType sqlType = SqlType.valueOf(typeId);\r\n final Rep rep = Rep.of(sqlType.internal);\r\n final ColumnMetaData.AvaticaType t;\r\n if (sqlType == SqlType.ARRAY || sqlType == SqlType.STRUCT || sqlType == SqlType.MULTISET) {\r\n ColumnMetaData.AvaticaType arrayValueType = ColumnMetaData.scalar(Types.JAVA_OBJECT,\r\n metaData.getColumnTypeName(i), Rep.OBJECT);\r\n t = ColumnMetaData.array(arrayValueType, metaData.getColumnTypeName(i), rep);\r\n } else {\r\n t = ColumnMetaData.scalar(typeId, metaData.getColumnTypeName(i), rep);\r\n }\r\n ColumnMetaData md =\r\n new ColumnMetaData(i - 1, metaData.isAutoIncrement(i),\r\n metaData.isCaseSensitive(i), metaData.isSearchable(i),\r\n metaData.isCurrency(i), metaData.isNullable(i),\r\n metaData.isSigned(i), metaData.getColumnDisplaySize(i),\r\n metaData.getColumnLabel(i), metaData.getColumnName(i),\r\n metaData.getSchemaName(i), metaData.getPrecision(i),\r\n metaData.getScale(i), metaData.getTableName(i),\r\n metaData.getCatalogName(i), t, metaData.isReadOnly(i),\r\n metaData.isWritable(i), metaData.isDefinitelyWritable(i),\r\n columnClassName);\r\n columns.add(md);\r\n }\r\n return columns;\r\n }", "title": "" }, { "docid": "bb49327cba5a12378df1fcecac0e30b2", "score": "0.54638064", "text": "List<HyHyjbxx> selectByExampleSelective(@Param(\"example\") HyHyjbxxExample example, @Param(\"selective\") HyHyjbxx.Column ... selective);", "title": "" }, { "docid": "da2d9e3f1b044ba3962fad49e128de8d", "score": "0.5459432", "text": "boolean supportsDynamicColumns();", "title": "" }, { "docid": "c89ac51dc5f52be9aa2dad94f938d82f", "score": "0.5458436", "text": "@Test\n public void testSelectColumnRead() throws Exception {\n HashMap<String, FieldInfo> fields = new HashMap<>();\n ParquetTestProperties props = new ParquetTestProperties(4, 3000, DEFAULT_BYTES_PER_PAGE, fields);\n // generate metatdata for a series of test columns, these columns are all generated in the test file\n populateFieldInfoMap(props);\n TestFileGenerator.generateParquetFile(\"/tmp/test.parquet\", props);\n fields.clear();\n // create a new object to describe the dataset expected out of the scan operation\n // the fields added below match those requested in the plan specified in parquet_selective_column_read.json\n // that is used below in the test query\n props = new ParquetTestProperties(4, 3000, DEFAULT_BYTES_PER_PAGE, fields);\n props.fields.put(\"integer\", new FieldInfo(\"int32\", \"integer\", 32, TestFileGenerator.intVals, TypeProtos.MinorType.INT, props));\n props.fields.put(\"bigInt\", new FieldInfo(\"int64\", \"bigInt\", 64, TestFileGenerator.longVals, TypeProtos.MinorType.BIGINT, props));\n props.fields.put(\"bin\", new FieldInfo(\"binary\", \"bin\", -1, TestFileGenerator.binVals, TypeProtos.MinorType.VARBINARY, props));\n props.fields.put(\"bin2\", new FieldInfo(\"binary\", \"bin2\", -1, TestFileGenerator.bin2Vals, TypeProtos.MinorType.VARBINARY, props));\n testParquetFullEngineEventBased(true, false, \"/parquet/parquet_selective_column_read.json\", null, \"/tmp/test.parquet\", 1, props, QueryType.PHYSICAL);\n }", "title": "" }, { "docid": "e881247c7fd5fe65a51d23aa8a9e7a15", "score": "0.54584116", "text": "public scala.collection.Seq<java.lang.String> viewQueryColumnNames () { throw new RuntimeException(); }", "title": "" }, { "docid": "032998c42004871a85a5f1fb09fd8896", "score": "0.54386985", "text": "T allColumns(boolean all);", "title": "" }, { "docid": "c38fbfe7e43a3583fa2f2b4751421806", "score": "0.5434102", "text": "List<OrderInfo> selectByExampleSelective(@Param(\"example\") OrderInfoExample example, @Param(\"selective\") OrderInfo.Column ... selective);", "title": "" }, { "docid": "01d78a63f54187a60da7c3b46bf131d5", "score": "0.54332167", "text": "List<CameraCatInfo> selectByExampleSelective(@Param(\"example\") CameraCatInfoExample example, @Param(\"selective\") CameraCatInfo.Column ... selective);", "title": "" }, { "docid": "d3ebd55a48b26803c959fe51944e4bed", "score": "0.5429301", "text": "com.google.protobuf.ByteString getColumns();", "title": "" }, { "docid": "541f6818b88b55926c774bc5af466307", "score": "0.54197264", "text": "public void selectColumnsTab(){\n tbpLayout().selectPage(getBundleString(\"cols\"));\n }", "title": "" }, { "docid": "9023963d745de350a716259fb61a765f", "score": "0.53968877", "text": "SotwoGoodsSpecification selectByPrimaryKeySelective(@Param(\"id\") Integer id, @Param(\"selective\") SotwoGoodsSpecification.Column ... selective);", "title": "" }, { "docid": "40a428d081ae3c4193c102e62095e0cb", "score": "0.5390533", "text": "public String[] getColumnas();", "title": "" }, { "docid": "922764a89e671780fc5f51e9d6f9c6c2", "score": "0.5384136", "text": "@NotNull\n protected List<String> compileColumns(@NotNull Table table)\n {\n List<String> compiledColumns = new ArrayList<>();\n\n for ( Column column : table.getColumns() )\n {\n switch ( column.getType().toLowerCase() )\n {\n case \"integer\":\n compiledColumns.add(compileInteger(column));\n break;\n case \"string\":\n compiledColumns.add(compileString(column));\n break;\n case \"binary\":\n compiledColumns.add(compileBinary(column));\n break;\n case \"boolean\":\n compiledColumns.add(compileBoolean(column));\n break;\n case \"timestamp\":\n compiledColumns.add(compileTimestamp(column));\n break;\n default:\n System.out.println(\"SchemaGrammar: cant create column: \" + column.getType().toUpperCase());\n }\n }\n\n return compiledColumns;\n }", "title": "" }, { "docid": "79a7c79fe006f75be208c18f1803671d", "score": "0.5375194", "text": "abstract public List<String> getColumnNames();", "title": "" }, { "docid": "0d550d64cf72648a8cec9beffaf5a2f0", "score": "0.53708535", "text": "List<DtsAd> selectByExampleSelective(@Param(\"example\") DtsAdExample example, @Param(\"selective\") DtsAd.Column... selective);", "title": "" }, { "docid": "d5b002df63f6f34cd223655507c6487f", "score": "0.5363982", "text": "int getColumns();", "title": "" }, { "docid": "d5b002df63f6f34cd223655507c6487f", "score": "0.5363982", "text": "int getColumns();", "title": "" }, { "docid": "837f03759938592f0d074311c443a0ef", "score": "0.5350575", "text": "public ArrayList<ColumnSpec> getColumnSpecs() {\r\n\t\treturn this.columnSpecs;\r\n\t}", "title": "" }, { "docid": "edbe62fb33e42f3c4cf898a3016f04eb", "score": "0.5343359", "text": "@Test public void testColumnAccess() {\r\n\t\tString tmp[];\r\n\t\t// Create a new Table called 'A'\r\n\t\tTable t = new Table(\"A\");\r\n\r\n\t\t// Add five columns to 'A'\r\n\t\tt.addColumn(\"a1\");\r\n\t\tt.addColumn(\"a2\");\r\n\t\tt.addColumn(\"a3\");\r\n\t\tt.addColumn(\"a4\");\r\n\t\tt.addColumn(\"a5\");\r\n\r\n\t\t// Get the columns of 'A'\r\n\t\ttmp = t.getColumns();\r\n\t\t// A must have five columns with the given names\r\n\t\tassertTrue(tmp.length == 5);\r\n\t\tassertTrue(tmp[0].equals(\"a1\"));\r\n\t\tassertTrue(tmp[1].equals(\"a2\"));\r\n\t\tassertTrue(tmp[2].equals(\"a3\"));\r\n\t\tassertTrue(tmp[3].equals(\"a4\"));\r\n\t\tassertTrue(tmp[4].equals(\"a5\"));\r\n\t}", "title": "" }, { "docid": "049337ec439d84064125c485a820939f", "score": "0.53381187", "text": "public void testColumnsByName() throws SQLException {\n Order order = (Order) sqlMap.queryForObject(\"getOrderLiteByColumnName\", new Integer(1));\n assertOrder1(order);\n }", "title": "" }, { "docid": "c2f5230b46060aaf5c9b9bddd05eee3f", "score": "0.5337641", "text": "TableColumnFactory getTableColumnFactory();", "title": "" }, { "docid": "468b62b20a0e0f2bb83b17a323f9e670", "score": "0.53352857", "text": "public ResultSet getPseudoColumns(String arg0, String arg1, String arg2,\r\n\t\t\tString arg3) throws SQLException {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "777c100354fb033b33707280e01d27ba", "score": "0.5323354", "text": "public void selectFromTable(ArrayList<String> column, String[] conditions, String tableName, String coulmnOrder,\n\t\t\tString order, boolean distinct);", "title": "" }, { "docid": "e55da73785cdcaa53f8adcedcc633d2e", "score": "0.5307743", "text": "@Test\n public void testGetColumns() {\n sheet = new Spreadsheet();\n List<String> columns = sheet.setGrid(createColumnsOnlyGrid()).getColumns();\n assertNotNull(columns);\n assertEquals(1, columns.size());\n assertEquals(\"column\", columns.get(0));\n\n columns = sheet.setGrid(createComplexGrid()).getColumns();\n assertNotNull(columns);\n assertEquals(1, columns.size());\n assertEquals(\"header\", columns.get(0));\n\n columns = sheet.setSkipHeader(2).getColumns();\n assertNotNull(columns);\n assertEquals(1, columns.size());\n assertEquals(\"column\", columns.get(0));\n\n columns = sheet.setGrid(createEmptyGrid()).getColumns();\n assertNotNull(columns);\n assertEquals(0, columns.size());\n }", "title": "" }, { "docid": "013a62f94e8359fb61c44c02f8667b6d", "score": "0.53034526", "text": "@Override\n public String[][] getSelectColNames()\n {\n return new String[0][];\n }", "title": "" }, { "docid": "2961ac0b707202fca654495c2125143a", "score": "0.5295909", "text": "String getDynamicColumnName(int index);", "title": "" }, { "docid": "d33d47c0a1eca7750eea85d9682950b8", "score": "0.5283379", "text": "@Override\n public ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException {\n\tStatement stmt = conn.createStatement();\n // Downloads all the data. Grossly inefficient\n\tResultSet rs = stmt.executeQuery(\"SELECT * FROM \\\"\" + schemaPattern + \"\\\".\\\"\" + tableNamePattern + \"\\\"\");\n\tResultSetMetaData rsmd = rs.getMetaData();\n\tint columnCount = rsmd.getColumnCount();\n\tLinkedList<RecordItem> columnData = new LinkedList<RecordItem>();\n\tfor (int i = 1; i <= columnCount; i++) {\n\t LinkedHashMap<String, Object> columnMetaData = new LinkedHashMap<String, Object>();\n\t columnMetaData.put(\"TABLE_CAT\", \"Airtable\");\n\t columnMetaData.put(\"TABLE_SCHEM\", schemaPattern);\n\t columnMetaData.put(\"TABLE_NAME\", tableNamePattern);\n\t columnMetaData.put(\"COLUMN_NAME\", rsmd.getColumnName(i));\n\t columnMetaData.put(\"DATA_TYPE\", rsmd.getColumnType(i));\n\t columnMetaData.put(\"TYPE_NAME\", rsmd.getColumnTypeName(i));\n\t columnMetaData.put(\"COLUMN_SIZE\", 0); // TODO\n\t columnMetaData.put(\"BUFFER_LENGTH\", 0); // TODO\n\t columnMetaData.put(\"DECIMAL_DIGITS\", 0); // TODO\n\t columnMetaData.put(\"NUM_PREC_RADIX\", 0); // TODO\n\t columnMetaData.put(\"NULLABLE\", rsmd.isNullable(i)); // TODO\n\t columnMetaData.put(\"REMARKS\", null); // TODO\n\t columnMetaData.put(\"COLUMN_DEF\", null); // TODO\n\t columnMetaData.put(\"SQL_DATA_TYPE\", null); // TODO\n\t columnMetaData.put(\"SQL_DATETIME_SUB\", null); // TODO\n\t columnMetaData.put(\"CHAR_OCTET_LENGTH\", null); // TODO\n\t columnMetaData.put(\"ORDINAL_POSITION\", i);\n\t columnMetaData.put(\"IS_NULLABLE\", \"YES\");\n\t columnMetaData.put(\"SCOPE_CATALOG\", null);\n\t columnMetaData.put(\"SCOPE_SCHEMA\", null);\n\t columnMetaData.put(\"SCOPE_TABLE\", null);\n\t columnMetaData.put(\"SOURCE_DATA_TYPE\", null);\n\t columnMetaData.put(\"IS_AUTOINCREMENT\", \"NO\");\n\t columnMetaData.put(\"IS_GENERATEDCOLUMN\", \"NO\");\n\t RecordItem ri = new RecordItem();\n\t ri.setFields(columnMetaData);\n\t columnData.add(ri);\n\t}\n\treturn new AirtableJDBCResultSet(columnData, null);\n }", "title": "" }, { "docid": "bb0551b3ba47c840c00eda00dea465a5", "score": "0.5279555", "text": "List<AccountRecordAllDO> selectByExampleSelective(@Param(\"example\") AccountRecordAllDOExample example, @Param(\"selective\") AccountRecordAllDO.Column ... selective);", "title": "" }, { "docid": "bb253e776f65a73c028002ba1748f5e0", "score": "0.5276501", "text": "protected abstract Path<?>[] getAllColumns();", "title": "" }, { "docid": "42ffc124b84bae4670bbb194091d4856", "score": "0.5275245", "text": "public void generateColumns() throws SQLException\r\n {\r\n ResultSet columnData = data.getColumns(null, null, name, null);\r\n while (columnData.next()) {\r\n String columnName = columnData.getString(\"COLUMN_NAME\");\r\n Column column = new Column(columnData);\r\n\r\n columns.put(columnName, column);\r\n }\r\n }", "title": "" }, { "docid": "fb6add0ce8ef172b5eedca537b73c6f1", "score": "0.5274282", "text": "DynamicQuery select(Object... selections);", "title": "" }, { "docid": "fb7a6aa6da2ef49f6f6b16f22c927614", "score": "0.52694905", "text": "public abstract String columnsName();", "title": "" }, { "docid": "90ee7b9fb530b3cc5d64026c9ceecb7d", "score": "0.52682865", "text": "public void useFirstColumnOnly()\r\n {\r\n if (mapping.getNumberOfColumnMappings() <= 1)\r\n {\r\n // Do nothing\r\n return;\r\n }\r\n\r\n // Replace the expressionList and SQL as if starting from scratch\r\n subExprs = new ColumnExpressionList();\r\n ColumnExpression colExpr = new ColumnExpression(stmt, table, mapping.getColumnMapping(0).getColumn());\r\n subExprs.addExpression(colExpr);\r\n st.clearStatement();\r\n st.append(subExprs.toString());\r\n }", "title": "" }, { "docid": "857ffa52f819f3ed34994acf6b09e9d8", "score": "0.5268224", "text": "@Override\n public Dataset<Row> readFirstRow() {\n Dataset<Row> columnDataSet = sparkSession.sql(String.format(\"SHOW COLUMNS IN %s\", this.appConfig.getCommandLineConf().getInputLocation()));\n columnDataSet.show();\n return columnDataSet;\n }", "title": "" }, { "docid": "83ee315c040a8d11724330252016cb53", "score": "0.5238732", "text": "public boolean testColumns(EIfctable type) throws SdaiException;", "title": "" }, { "docid": "e1869732735394691b2b8a43be38a4f5", "score": "0.5221273", "text": "public QueryBuilder select(List<String> columnNames) {\n\t\tthis.queryStart = String.format(\"SELECT %s FROM %s\", toCSV(columnNames), tableName);\n\t\treturn this;\n\t}", "title": "" }, { "docid": "b751cab1495316e6794776bc9c517ba9", "score": "0.52182347", "text": "@NonNull\n public static List<SqlColumn> allOf(@NonNull ResultSetMetaData md) throws SQLException {\n SqlColumn[] result = new SqlColumn[md.getColumnCount()];\n for (int i = 0; i < result.length; i++) {\n result[i] = of(md, i + 1);\n }\n return Arrays.asList(result);\n }", "title": "" }, { "docid": "81c0cb5e280bd20b5df0109e92e1644d", "score": "0.5213123", "text": "List<LitemallFlashSales> selectByExampleSelective(@Param(\"example\") LitemallFlashSalesExample example, @Param(\"selective\") LitemallFlashSales.Column ... selective);", "title": "" }, { "docid": "fb27ad8784fb9f995187658b90517fd3", "score": "0.521125", "text": "String getColumnFamily();", "title": "" }, { "docid": "ef7f708ff7a57a07481c3f6aa11e5c27", "score": "0.5198444", "text": "public abstract List<String> getColumnNames(String tableName);", "title": "" }, { "docid": "e8767c62f1c171092b5edaa131aa0b36", "score": "0.519335", "text": "public void setColumnNames(String[] colsName){columnNames = colsName;}", "title": "" }, { "docid": "77fdfb33246be7adb7972b5d6f9408f8", "score": "0.51769024", "text": "<T> List<T> getColumnObjList(String tableName, String rowKey, List<String> columns, Class<? extends T> clazz);", "title": "" }, { "docid": "1206bfe97a7546e278161fcc7984b309", "score": "0.51691556", "text": "int findColumn(String name);", "title": "" }, { "docid": "22eeebd61a53b1270bd9507ad400d340", "score": "0.51641786", "text": "public static String get_table_cols(){\r\n\t\tString cols = _table_cols;\r\n\t\t_table_cols = \"\";\r\n\t\treturn cols;\r\n\t}", "title": "" }, { "docid": "92032441fe1dbbd09fdad27a49a0ea1d", "score": "0.51544976", "text": "List<MemberData> selectByExampleWithRowbounds(MemberDataExample example, RowBounds rowBounds);", "title": "" }, { "docid": "302c7a89ef28cc6c1164c04d68ebd795", "score": "0.5153567", "text": "List<IotAftersale> selectByExampleSelective(@Param(\"example\") IotAftersaleExample example, @Param(\"selective\") IotAftersale.Column ... selective);", "title": "" }, { "docid": "b45a3765dbb5d4f3db22c86c219a4c55", "score": "0.5149623", "text": "public ResultSet select(List<String> columnNames, List<String> tables, List<String> conditions)\n {\n return query(selectClause(columnNames, tables, conditions));\n }", "title": "" }, { "docid": "d5ed9c4736857e55e4e8042975321cef", "score": "0.5147169", "text": "public int[] getColumnTypes(){return columnTypes;}", "title": "" }, { "docid": "13e3f26eb84cf552830a4f2c782c8e5a", "score": "0.5140999", "text": "public Map<Long, String> getColumnNames(Set<Long> columnIds);", "title": "" }, { "docid": "6204bb32f4708beaaa4ff42051432046", "score": "0.5140831", "text": "Set<String> getDynamicColumnNamesOfType(Class<?> type, boolean appendableOnly);", "title": "" }, { "docid": "bcabed987fe0d9cc420f3d65cfe36a68", "score": "0.51315194", "text": "@Test\n\tpublic void removeExcludedColumns() {\n\t\tSimpleQueryCreator creator = new SimpleQueryCreator(schema);\n\t\tcreator.setDatabase(\"DB\");\n\t\tcreator.addTable(\"table\");\n\t\tcreator.addAllKnownColumns(\"table\", Arrays.asList(\"column2\", \"column3\"));\n\t\tString q = creator.buildQueries().get(0).getQuery();\n\t\tassertNotNull(q);\n\t\tassertFalse(q.isEmpty());\n\t\tassertTrue(\"No select\", q.startsWith(\"select\"));\n\t\tassertEquals(\"a.column\", q.substring(q.indexOf(\"select\")+ \"select\".length(), q.indexOf(\"from\")).trim());\n\t\tassertTrue(\"No from\", q.contains(\"from\"));\n\t\tassertEquals(\"DB.table a\", q.substring(q.indexOf(\"from\")+ \"from\".length(), q.indexOf(\";\")).trim());\n\t\tassertTrue(\"No terminal semicolon\", q.contains(\";\"));\n\t}", "title": "" }, { "docid": "2c991341ab239da349a5612124dc8b81", "score": "0.51243216", "text": "@Override\n public Map<ColumnId, ColumnDefinition> describeColumns(\n Connection connection,\n String tablePattern,\n String columnPattern\n ) throws SQLException {\n TableId tableId = parseTableNameToTableId(tablePattern);\n String catalog = tableId.catalogName() != null ? tableId.catalogName() : catalogPattern;\n String schema = tableId.schemaName() != null ? tableId.schemaName() : schemaPattern;\n return describeColumns(connection, catalog, schema, tableId.tableName(), columnPattern);\n }", "title": "" }, { "docid": "5c8f1ab4e8d973ee8a055d1caeea4328", "score": "0.5123315", "text": "public PRESTATION_COLUMNS getPrestationColumns();", "title": "" }, { "docid": "31a9280e1a891af3577c0898c9f6df83", "score": "0.51174253", "text": "public Builder select(String firstColumn, String... otherColumns) {\n\t\t\tcheckParametersForNull(firstColumn);\n\t\t\tcolumns.add(firstColumn);\n\t\t\tcolumns.addAll(Arrays.asList(otherColumns));\n\t\t\treturn this;\n\t\t}", "title": "" }, { "docid": "fb934b53a25a3162f769a03217a27e76", "score": "0.5108764", "text": "List<TCpyLegalRoom> selectByExampleSelective(@Param(\"example\") TCpyLegalRoomExample example, @Param(\"selective\") TCpyLegalRoom.Column ... selective);", "title": "" }, { "docid": "54e81db9d66172ed854fe057568dec8a", "score": "0.5104528", "text": "private void splitColumns(TableList tableList, SQLTokenizer t)\n throws SQLException {\n functionColumns = new ArrayList<ValueExpression>();\n if(t.countTokens() == 0) {\n // no args\n return;\n }\n if(\"COUNT\".equals(function.getName())) {\n // special case for count\n ValueExpression ve = new CountValueExpression();\n ve.parseExpression(t, tableList);\n functionColumns.add(ve);\n return;\n }\n SQLTokenizer[] tkz = t.parseOutsideBrackets(SQLTokenizer.COMMA);\n for(int i = 0; i < tkz.length; i++) {\n ValueExpression ve = new NumericValueExpression();\n ve.parseExpression(tkz[i], tableList);\n functionColumns.add(ve);\n }\n }", "title": "" }, { "docid": "c959f4fe0870fb4c5ce6da9c336555b7", "score": "0.5102373", "text": "public IColumn getColumnByIndex(int idx) throws ETLException;", "title": "" }, { "docid": "32b807c48fb21e10c446548a712d3f01", "score": "0.51015246", "text": "public void initializeTableColumns() {\n if (suiteTable.hasTableData() == false) {\n List<TableColumnData> columnNames = new ArrayList<TableColumnData>();\n TableColumnData tcd = new TableColumnData(\"Suite Name\", 150);\n columnNames.add(tcd);\n tcd = new TableColumnData(\"Category\");\n columnNames.add(tcd);\n\n suiteTableData = new TableData(columnNames);\n suiteTable.populateTable(suiteTableData);\n }\n }", "title": "" }, { "docid": "4837b20ab1682fcb90db93d84974bec6", "score": "0.5098288", "text": "public List<ColumnCall> getColumns() {\r\n this.logger.debug(\"CALLED GETCOLUMNS\");\r\n return this.getAllinstancesof(ColumnCall.class, JdbcGrammarParser.COLUMN);\r\n }", "title": "" }, { "docid": "812049f280508b5bdf2e85eae62511d3", "score": "0.5096876", "text": "public static void checkColumns(String[] projection) {\n String[] available = availableColumns();\n\n if (projection != null) {\n Set<String> requestedColumns = new HashSet<>(Arrays.asList(projection));\n Set<String> availableColumns = new HashSet<>(Arrays.asList(available));\n\n if (!availableColumns.containsAll(requestedColumns)) {\n throw new IllegalArgumentException(\"Unknown columns in projection\");\n }\n }\n }", "title": "" }, { "docid": "eddb1b85e11c65c0d0bbc89d8f8dd976", "score": "0.50968266", "text": "public void setCols(String cols) {\r\n this.cols = cols;\r\n }", "title": "" }, { "docid": "e3a719260fabb33e2bd7d7eb24eee46c", "score": "0.5096064", "text": "int getDynamicColumnIndex(String columnName);", "title": "" }, { "docid": "6f1f1e15d0e289a94c0050ab45c4af89", "score": "0.50960255", "text": "public void getCols(List<Pattern> colHeaders, List<Double> appNums) {\r\n\t\tfor (Entry<Pattern, int[]> e : colSums.entrySet()) {\r\n\t\t\tcolHeaders.add(e.getKey());\r\n\t\t\tappNums.add((double) e.getValue()[0]);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7ed4fb7ce9ea8198a7772b27d015950a", "score": "0.5094203", "text": "private void doColumns(ResultSet rs) throws Exception {\n\t\n\tString typFld = \"char[*]\";\n\twhile (rs.next()) {\n\t \n\t String name = rs.getString(\"COLUMN_NAME\");\n\t int type = rs.getInt(\"DATA_TYPE\");\n\t \n\t if (type == Types.DOUBLE || type == Types.REAL) {\n\t\ttypFld = \"double\";\n\t } else if (type == Types.FLOAT) {\n\t\ttypFld = \"float\";\n\t } else if (type == Types.TINYINT || type == Types.SMALLINT || type == Types.INTEGER) {\n\t\ttypFld = \"int\";\n\t }\n\t\n\t String ucd = null;\n\t String nm = name.toLowerCase();\n\t if (nm.equals(SkyNode.raName)) {\n\t ucd = \"pos.eq.ra;meta.main\";\n\t } else if (nm.equals(SkyNode.decName)) {\n\t ucd = \"pos.eq.dec;meta.main\";\n\t }\n\t buf.append(\"<MetaColumn>\");\n\t buf.append(\"<Name>\"+name+\"</Name>\");\n\t buf.append(\"<Type>\"+type+\"</Type>\");\n\t if (ucd != null) {\n\t\tbuf.append(\"<UCD>\"+ucd+\"</UCD>\");\n\t }\n\t buf.append(\"</MetaColumn>\");\n\t}\n }", "title": "" }, { "docid": "c932b79db8668d162e98c0d1b102f47c", "score": "0.5094104", "text": "public String[] getColumns()\r\n {\r\n return columns != null ? columns : tableAlias.getColumns();\r\n }", "title": "" }, { "docid": "f06e0e1c9fa9cc049de64aae64475657", "score": "0.5093273", "text": "SotwoGoodsSpecification selectOneByExampleSelective(@Param(\"example\") SotwoGoodsSpecificationExample example, @Param(\"selective\") SotwoGoodsSpecification.Column ... selective);", "title": "" }, { "docid": "21c92fc0e9760c923e9a80ff79a40121", "score": "0.50917935", "text": "java.lang.String getInsertColumns(int index);", "title": "" }, { "docid": "9943f639a8dd585e99edd093852425fa", "score": "0.5089038", "text": "public List<Comparable<?>> getColumnKeys();", "title": "" }, { "docid": "1f8aff68aa39fb9ebe6ee5f30c13873b", "score": "0.5087956", "text": "void initializeColumnInfoArrays(\n Typdef typdef,\n int columnCount) throws DisconnectException {\n\n qrydscTypdef_ = typdef;\n\n // Allocate arrays to hold the descriptor information.\n setNumberOfColumns(columnCount);\n fdocaLength_ = new int[columnCount];\n isGraphic_ = new boolean[columnCount];\n typeToUseForComputingDataLength_ = new int[columnCount];\n }", "title": "" }, { "docid": "cae2a001a051929024c5d2a9bbd79060", "score": "0.5085286", "text": "int columns();", "title": "" }, { "docid": "8182d3fe8e7c9fe83c7fc62d4a3b5218", "score": "0.5078031", "text": "List<MymallOrder> selectByExampleSelective(@Param(\"example\") MymallOrderExample example, @Param(\"selective\") MymallOrder.Column ... selective);", "title": "" }, { "docid": "40b714d33a1c607caf2729a9859d7b8f", "score": "0.50709975", "text": "public List<String> getColumnNames(String table) throws SQLException;", "title": "" }, { "docid": "c21683db978413f4b56642904b2ac368", "score": "0.50665915", "text": "@Override\n\tpublic List<ColumnMeta> getColumns(String tableName) throws SQLException {\n\t\tList<ColumnMeta> columns = new ArrayList<>();\n\t\tResultSet rs = null;\n\n\t\trs = getRawDatabaseMetaData().getColumns(null, null, tableName, null);\n\n\t\twhile (rs.next()) {\n\t\t\tif (!rs.getString(\"TABLE_NAME\").equals(tableName))\n\t\t\t\tcontinue;\n\t\t\tColumnMeta column = packColumn(rs);\n\t\t\tcolumns.add(column);\n\t\t}\n\t\trs.close();\n\t\treturn columns;\n\t}", "title": "" }, { "docid": "92ba21fa72a6042d57499badf8a46eec", "score": "0.50577444", "text": "@Override\n\tprotected void initColumns() {\n\t}", "title": "" } ]
227fb6715be9d69d71036dbebd9a8680
end of method Crea una entity e la registra
[ { "docid": "796c51f1207bf7dc761c9a4b104ae72a", "score": "0.0", "text": "public Log crea(String descrizione) {\n return crea(EALogType.edit, descrizione, 0);\n }", "title": "" } ]
[ { "docid": "a1ccf9db9a5cc003c04b9ae48811d4ab", "score": "0.80004543", "text": "Entier createEntier();", "title": "" }, { "docid": "16405039e84166e81a2a89c53b79fabb", "score": "0.7637204", "text": "@Override\r\n\tvoid createNewEntity() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e540839c51ba5e6603605333184e347a", "score": "0.7509923", "text": "Entity createEntity();", "title": "" }, { "docid": "540b48f3eff9ab52f1024eea6e91179a", "score": "0.73439527", "text": "@Override\r\n\tpublic void create(DetalleVenta entity) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "8794cee97b300377262a59076be61ea7", "score": "0.7272981", "text": "public void create(Telefono entity) {\n\n\t}", "title": "" }, { "docid": "cc0791f013af7c68900cb8d993b0cfa5", "score": "0.7242518", "text": "@Override\n\tpublic void makeNewEntity() {\n\t\t\n\t}", "title": "" }, { "docid": "d10fff118d6ca68e9c41501aa886729b", "score": "0.71509117", "text": "public void create() {\n\n\t\tIdentityGeneratorEntity identityGeneratorEntity = new IdentityGeneratorEntity();\n\t\tem.persist(identityGeneratorEntity);\n\n\t\ttry {\n\t\t\tLOGGER.info(\"Sleeping for 10 secs ....\");\n\t\t\tThread.sleep(10000);\n\n\t\t\tLOGGER.info(\"IdentityGeneratorEntity created id : \" + identityGeneratorEntity.getId());\n\n\t\t\tLOGGER.info(\"Sleeping for again 10 secs ....\");\n\t\t\tThread.sleep(10000);\n\t\t} catch (InterruptedException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "aa782afce9527cb0190badf70e1283f0", "score": "0.7102726", "text": "E create(E entity);", "title": "" }, { "docid": "6728aa2f9ab39a2f00a8d0c37a53028e", "score": "0.7048903", "text": "private void crearEntidad()\r\n/* 108: */ {\r\n/* 109:156 */ this.costosDeFabricacion = new CostosDeFabricacion();\r\n/* 110:157 */ this.costosDeFabricacion.setIdOrganizacion(AppUtil.getOrganizacion().getIdOrganizacion());\r\n/* 111:158 */ this.costosDeFabricacion.setIdSucursal(Integer.valueOf(AppUtil.getSucursal().getId()));\r\n/* 112:159 */ this.costosDeFabricacion.setEstado(Estado.ELABORADO);\r\n/* 113:160 */ Date hoy = new Date();\r\n/* 114:161 */ this.fechaInicio = FuncionesUtiles.getFechaInicioMes(hoy);\r\n/* 115:162 */ this.fechaFin = FuncionesUtiles.getFechaFinMes(hoy);\r\n/* 116: */ \r\n/* 117:164 */ this.costosDeFabricacion.setAnio(Integer.valueOf(FuncionesUtiles.getAnio(hoy)));\r\n/* 118:165 */ this.costosDeFabricacion.setMes(Integer.valueOf(FuncionesUtiles.getMes(hoy)));\r\n/* 119: */ }", "title": "" }, { "docid": "47b240dc5f407fb7a852545392e48644", "score": "0.700683", "text": "@Override\r\n\t\tprotected void criarNovoBean() {\r\n\t\t\ttry {\r\n\t\t\t\tthis.pEntity = new VendedorEntity();\r\n\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\r\n\t\t\t\tmensagemErro(e.getMessage());\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "0ed3e7ec7b48b0e803aa5bbf73b78e83", "score": "0.69467676", "text": "@Override\n\tpublic Paiement creer(Paiement entity) throws InvalideTogetException {\n\t\treturn paiementRepository.save(entity);\n\t}", "title": "" }, { "docid": "0f86ba02cd14a6edfc81bb45f0d13bcc", "score": "0.6901936", "text": "public ClienteEntity create(ClienteEntity empresaEntity) {\n LOGGER.log(Level.INFO, \"Inicia proceso de creación del autor\");\n ClienteEntity newClienteEntity = persistence.create(empresaEntity);\n LOGGER.log(Level.INFO, \"Termina proceso de creación del autor\");\n return newClienteEntity;\n }", "title": "" }, { "docid": "e305efa8b5e553b0c202c7491fc3f14d", "score": "0.6840769", "text": "public void create( T entity ){\n getSession().persist( entity );\n }", "title": "" }, { "docid": "4bfaf899147530ce25850ebd3642b6e0", "score": "0.6810361", "text": "public Entity createEntity () {\n return addEntity(new Entity());\n }", "title": "" }, { "docid": "cd7e6c54263b135421d9b40636719d20", "score": "0.680132", "text": "@Override\n\tpublic void newEntity() {\n\t\t\n\t}", "title": "" }, { "docid": "8af3d84c397e6acd5459e16e9f25d210", "score": "0.67779493", "text": "protected T implementCreate(final T entity) {\n return this.getService().insert(entity);\n }", "title": "" }, { "docid": "31cddf29c8857d7410f48230a7ada688", "score": "0.676249", "text": "@Override\r\n\tpublic UnidadOrdenEntrega crear() {\n\t\treturn new UnidadOrdenEntrega();\r\n\t}", "title": "" }, { "docid": "b9b04aa32927d694c9271d487de673de", "score": "0.67367065", "text": "@Override\n\t@Transactional\n\tpublic DetalleCarrito create(DetalleCarrito entity) throws Exception {\n\t\treturn detalleCarritoRepository.save(entity);\n\t}", "title": "" }, { "docid": "a3bea0d3589fba5e396b7bacb15b5ec1", "score": "0.67234164", "text": "@Test\r\n public void createSeguimientoTest() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n SeguimientoEntity newEntity = factory.manufacturePojo(SeguimientoEntity.class);\r\n SeguimientoEntity result = seguimientoPersistence.create(newEntity);\r\n\r\n Assert.assertNotNull(result);\r\n\r\n SeguimientoEntity entity = em.find(SeguimientoEntity.class, result.getId());\r\n\r\n Assert.assertEquals(newEntity.getTiempo(), entity.getTiempo());\r\n }", "title": "" }, { "docid": "c196795816c1e5466c57777374aec356", "score": "0.6700672", "text": "public static void create(String prenom, String nom,Groupe groupe,List<Module> listeModules){\n EntityManager em = GestionFactory.factory.createEntityManager();\n\n //\n em.getTransaction().begin();\n\n Etudiant etudiant = new Etudiant();\n etudiant.setNom(nom);\n etudiant.setPrenom(prenom);\n etudiant.setGroupe(groupe);\n etudiant.setModules(listeModules);\n System.out.println(\"Etudiant : \");\n System.out.println(etudiant.toString());\n\n\n em.persist(etudiant);\n em.flush();\n\n // Commit\n em.getTransaction().commit();\n\n // Close the entity manager\n em.close();\n\n }", "title": "" }, { "docid": "b6d834441ab6f61c019a581f4f75a4ba", "score": "0.66892576", "text": "ID create(E entities);", "title": "" }, { "docid": "f38560269ba8b23bc6daca8242dc3c39", "score": "0.6671912", "text": "@Test\n public void testCreate() throws Exception {\nPodamFactory factory = new PodamFactoryImpl();\n EstudianteEntity newEntity = factory.manufacturePojo(EstudianteEntity.class);\n EstudianteEntity result = persistence.create(newEntity);\n\n Assert.assertNotNull(result);\n EstudianteEntity entity = em.find(EstudianteEntity.class, result.getId());\n Assert.assertNotNull(entity);\n Assert.assertEquals(newEntity.getNombre(), entity.getNombre());\n }", "title": "" }, { "docid": "3b8d067f4d3489083043062ac8c1cc9d", "score": "0.6659729", "text": "private void insertData() {\r\n\r\n fatherEntity = factory.manufacturePojo(ClienteEntity.class);\r\n fatherEntity2 = factory.manufacturePojo(SucursalEntity.class);\r\n fatherEntity.setId(1L);\r\n fatherEntity2.setId(2L);\r\n em.persist(fatherEntity);\r\n em.persist(fatherEntity2);\r\n for (int i = 0; i < 4; i++) {\r\n ReservaEntity entity = factory.manufacturePojo(ReservaEntity.class);\r\n entity.setCliente(fatherEntity);\r\n entity.setSucursal(fatherEntity2);\r\n em.persist(entity);\r\n reservaData.add(entity);\r\n }\r\n }", "title": "" }, { "docid": "ee2faa46c01c8bccda3cc51870a14a85", "score": "0.6626938", "text": "Entity create(String entityName);", "title": "" }, { "docid": "1f1212232c8689a33a79d841668dea13", "score": "0.6616579", "text": "@Override\n\tpublic void entregar() {\n\t\t\n\t}", "title": "" }, { "docid": "1e83bc016802cafaf4e407750bdd1d08", "score": "0.66034967", "text": "public void saveVtUsuario(VtUsuario entity) throws Exception;", "title": "" }, { "docid": "091a197f9393d9a7394a626e72c09a60", "score": "0.6581391", "text": "@Override\n\tpublic void create(Sexo entidad) {\n\t\tem.persist(entidad);\n\t}", "title": "" }, { "docid": "fb7afdb47274c647d494c5c5c17134a1", "score": "0.65772647", "text": "public void registrar() {\r\n\t\t//invocar al servicio\r\n\t\tproductoService.nuevoProducto(getProducto());\r\n\t\t// limpia los valores del objeto\r\n\t\tsetProducto(new Producto());\r\n\t\t// se actualiza los valores de la tabla\r\n\t\tsetlistaProducto(productoService.obtenerProductosConMarca());\r\n\t\tgetlistaProducto();\r\n\t\tFacesContext.getCurrentInstance().addMessage(\"null\", new\r\n\t\tFacesMessage(\"Registro exitoso!\"));\t\t\r\n\t}", "title": "" }, { "docid": "7dcb8b8ada395a9b6d11a5d01061de8f", "score": "0.65646505", "text": "@WebMethod(operationName = \"create\")\n @Oneway\n public void create(@WebParam(name = \"entity\") Factura entity) {\n ejbRef.create(entity);\n }", "title": "" }, { "docid": "642a2712503d897df460f23471c0fb78", "score": "0.6530943", "text": "public QuejasReclamosEntity(){\r\n \r\n }", "title": "" }, { "docid": "35f27643caad9ecaf404982735770a92", "score": "0.6497285", "text": "public void crear(Contacto c) throws Exception {\r\n\t\tEntityManager en = AdministradorEntityManager.getEntityManager();\r\n\t\ten.getTransaction().begin();\r\n\t\ten.persist(c);\r\n\t\ten.getTransaction().commit();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e66f40a33eb1403554a2354b9589ad65", "score": "0.6496158", "text": "public MensagemEntidade() {}", "title": "" }, { "docid": "218c5c6b464c37b444a41cb19ae63e44", "score": "0.6492807", "text": "BankTrans create(BankTrans entity);", "title": "" }, { "docid": "650662ecc5c8207b870bb2924469fc76", "score": "0.6490082", "text": "@Transactional\n public void crear(Long dni, String nombre, String apellido,\n String telefono, String email,\n String nombreU, String clave) {\n\n Paciente paciente = new Paciente();\n String rolnombre = \"PACIENTE\";\n Rol rol=rolServicio.buscarPorNombre(rolnombre);\n paciente.setRolPaciente(rol);\n paciente.setDni(dni);\n paciente.setNombre(nombre);\n paciente.setApellido(apellido);\n paciente.setTelefono(telefono);\n paciente.setEmail(email);\n paciente.setUsuarioPaciente(usuarioServicio.crear(nombreU, clave,rol));\n pacienteRepositorio.save(paciente);\n }", "title": "" }, { "docid": "f42c8f2a8b24196786e8361026fff3f8", "score": "0.6483932", "text": "void create(Place entity);", "title": "" }, { "docid": "0fdf978a12e3ba7a8b65faf48cb5aa37", "score": "0.64684784", "text": "private Soci creaObjecteSoci() {\n try {\n \n\n Date d = new Date();\n String nif = txtDNI.getText();\n String nom = txtNom.getText();\n String cog1 = txtCognom1.getText();\n String cog2 = txtCognom2.getText();\n String paswd = Encriptar(String.valueOf(txtPsswd.getPassword())); \n Icon icon = imgFoto.getIcon();\n Blob foto = null;\n if (icon != null) {\n foto = ImageToBlob(iconToImage(icon));\n }\n soci = new Soci(nif,nom,cog1,cog2,paswd,foto,true);\n \n /*if(!txtCoeficientBase.getText().equals(\"\")){ \n Modalitat mod = modalitats.get(cmbModalitat.getSelectedIndex());\n EstadisticaModalitat est = new EstadisticaModalitat(soci, mod, new Double(txtCoeficientBase.getText().toString()),0,0);\n soci.addEstadistica(est);\n }*/\n \n dbConnector.crearNouSoci(soci);\n dbConnector.commit();\n \n //soci = s; \n deshabilitarPswd();\n JOptionPane.showMessageDialog(null, \"Soci processat correctament\",\"OK\",JOptionPane.INFORMATION_MESSAGE);\n } catch (Exception ex) {\n if(ex.getClass().equals(SociException.class)){\n JOptionPane.showMessageDialog(null, ex.getMessage(),\"ERROR\",JOptionPane.ERROR_MESSAGE);\n }else{\n JOptionPane.showMessageDialog(null, \"Problemes en enregistrar el Soci\",\"ERROR\",JOptionPane.ERROR_MESSAGE);\n }\n }\n return null;\n }", "title": "" }, { "docid": "11945b8f5ec8bb5f2a7aabef768c5610", "score": "0.6467533", "text": "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n\r\n // crea reservas en la base de datos\r\n for (int i = 0; i < 3; i++) {\r\n // crea una reserva de prueba\r\n ReservaEntity entity = factory.manufacturePojo(ReservaEntity.class);\r\n /*\r\n // asigna la fecha inicio y final\r\n entity.setFechaInicio(hoy);\r\n entity.setFechaFinal(agregaDias(hoy, 5));\r\n // asigna cliente y salon\r\n entity.setCliente(clienteEnBaseDatos);\r\n entity.setSalon(salonEnBaseDatos);\r\n */\r\n\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "title": "" }, { "docid": "953e6a3c5e1c69eebaa78d78f09f482b", "score": "0.6460927", "text": "public abstract SelfDiagnosisEntity createEntity();", "title": "" }, { "docid": "487b7311d2a8dd7d1d3edc7ef08761c3", "score": "0.64530957", "text": "public void adicionarContatoEmergencia(ContatoEmergencia contatoEmergencia){\n ge.getTransaction().begin();\n ge.persist(contatoEmergencia);\n ge.getTransaction().commit();\n }", "title": "" }, { "docid": "e4b7f9bc7dc7fe76e2f4e8223e12b460", "score": "0.64405197", "text": "public static Object newEntity(Object entity){\n Object entitynew = entity;\n try {\n entitynew = entity.getClass().newInstance();\n } catch (Exception e) {\n JmoordbUtil.errorMessage(\"newEntity() \" + e.getLocalizedMessage());\n Logger.getLogger(Repository.class.getName() + \"callSet() \").log(Level.SEVERE, null, e);\n System.out.println(\"newEntity() \" + e.getLocalizedMessage());\n }\n return entitynew;\n}", "title": "" }, { "docid": "4875c8d320d138a4eb02d2fdb7295379", "score": "0.64349484", "text": "@Override\n\t@Transactional\n\tpublic DetalleFactura create(DetalleFactura entity) throws Exception {\n\t\treturn detalleFacturaRepository.save(entity);\n\t}", "title": "" }, { "docid": "105baa22a0d0beb211ba7f52674bca2a", "score": "0.64262384", "text": "@Test\r\n public void createReservaTest1() throws RestauranteLogicException{\r\n ReservaEntity newEntity = factory.manufacturePojo(ReservaEntity.class);\r\n ReservaEntity result = reservaLogic.createReserva(fatherEntity2.getId(),fatherEntity.getId(), newEntity);\r\n Assert.assertNotNull(result);\r\n ReservaEntity entity = em.find(ReservaEntity.class, result.getId());\r\n Assert.assertEquals(newEntity.getName(), entity.getName());\r\n Assert.assertEquals(newEntity.getId(), entity.getId());\r\n }", "title": "" }, { "docid": "1b2dae1373a5cba9ef74af8406d24501", "score": "0.6406715", "text": "@Override\r\n public void crearArticulo(String etiqueta, BigInteger existencias, String nombre, BigDecimal precio){\r\n int idArticulo = fachada.devolverNumArticulos() + 1;\r\n int idMojito = fachada.devolverElementos(3) + 1;\r\n Articulo articulo = new Articulo(idArticulo, nombre, precio);\r\n Mojito mojito = new Mojito(idMojito, etiqueta, articulo);\r\n try {\r\n manager.getTransaction().begin();\r\n manager.persist(articulo);\r\n manager.persist(mojito);\r\n System.out.println(\"Registra mojito\");\r\n manager.getTransaction().commit();\r\n } catch (Exception e) {\r\n System.out.println(\"No registra mojito\");\r\n }\r\n }", "title": "" }, { "docid": "e7b4273796af74adda44b5b9270c97d7", "score": "0.64030874", "text": "protected LegoEntity(){}", "title": "" }, { "docid": "d3f8d335112f1fdb2e19853dc6f1b73b", "score": "0.63989425", "text": "@Override\r\n\tpublic void createEntity() {\n\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\tif((conn = DBConnection.getConnection())== null) {\r\n\t\t\t\tconn = DBConnection.setConnection();\r\n\t\t\t}\r\n\t\r\n\t\t\t\r\n\t\t stm = conn.createStatement();\r\n\t\t stm.executeUpdate(RESERVATIONS_TABLE);\r\n\t\t \r\n\t\t\r\n\t\t\r\n\t\t System.out.println(\"CreateReservationsTableMySQL: table created.\");\r\n\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t System.out.println(\"error: failed to create a connection object.\");\r\n\t\t e.printStackTrace();\r\n\t\t} catch (Exception e) {\r\n\t\t System.out.println(\"other error:\");\r\n\t\t e.printStackTrace();\r\n\t\t} finally {\r\n\t\t try {\r\n\t\t close(); \r\n\t\t } catch (Exception e) {\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "60e911a1e91aa0adbcc382f9b6012a59", "score": "0.6389023", "text": "@Path(\"/creer\")\n @POST\n @Transactional\n public Response creerFournisseur(Fournisseur f) throws Exception {\n entityManager.persist(f);\n return Response.status(200).build();\n }", "title": "" }, { "docid": "faba29dceee0bc9b9e623eab1fc823a8", "score": "0.6387348", "text": "@Override\n public boolean crearCarpeta(CarpetaDTO carpetaDTO, int idUsuario) throws Exception {\n \ttry{\n\t Carpeta carpeta = new Carpeta();\n\t carpeta.setNombreCarpeta(carpetaDTO.getNombreCarpeta());\n\t carpeta.setDescripcion(carpetaDTO.getDescripcion());\n\t Query query = entityManager.createNamedQuery(\"Usuario.findById\", Usuario.class).setParameter(\"idUsuario\", idUsuario);\n\t Usuario usuarioEncontrado = (Usuario) query.getSingleResult();\n\t carpeta.setUsuario(usuarioEncontrado);\n\t if(carpetaDTO.getCarpetaPadre() != -1){\n\t\t Query query2 = entityManager.createNamedQuery(\"Carpeta.findByID\", Carpeta.class).setParameter(\"idCarpeta\", carpetaDTO.getCarpetaPadre());\n\t\t Carpeta carpetaPadre = (Carpeta) query2.getSingleResult();\n\t\t carpeta.setCarpeta(carpetaPadre);\n\t }\n\t entityManager.persist(carpeta);\n\t return true;\n \t}\n\t catch(Exception e){\n\t \tthrow new Exception(\"Fallo persistiendo la carpeta\");\n\t }\n }", "title": "" }, { "docid": "ac3afb865ee0f2d35de6c1359e3e56ee", "score": "0.63851756", "text": "public E save(E entidad);", "title": "" }, { "docid": "7d90cd7c5bbde63b8314b2d257de18d9", "score": "0.6383125", "text": "public void createFail() {\n\n\t\tIdentityGeneratorEntity identityGeneratorEntity = new IdentityGeneratorEntity();\n\t\tem.persist(identityGeneratorEntity);\n\n\t\ttry {\n\t\t\tLOGGER.info(\"Sleeping for 10 secs ....\");\n\t\t\tThread.sleep(10000);\n\n\t\t\tLOGGER.info(\"IdentityGeneratorEntity created id : \" + identityGeneratorEntity.getId());\n\n\t\t\tLOGGER.info(\"Sleeping for again 10 secs ....\");\n\t\t\t\n\t\t\tThread.sleep(10000);\n\t\t\t\n\t\t\tLOGGER.info(\"Setting tollback true ... so that trnasaction get rollbacked\");\n\t\t\tsessionContext.setRollbackOnly();\n\t\t\n\t\t} catch (InterruptedException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "c195c7203aa7fa865ab9b12d84d0421a", "score": "0.6381376", "text": "@Override\n\tpublic void create(Client entity) {\n\t\tsuper.create(entity);\n\t}", "title": "" }, { "docid": "b90c7cc8791384b2c80e4dcf390b0520", "score": "0.6379317", "text": "public void create(String nameEntity){\n\n OkHttpClient client = new OkHttpClient();\n\n Request requestTo = new Request.Builder()\n .url(String.format(getBaseUrl()+ query,nameEntity))\n .build();\n\n try {\n Response respons = client.newCall(requestTo).execute();\n } catch (IOException e) {\n e.printStackTrace();\n }\n info(String.format(messageOne,\"создание\", nameEntity));\n info(mesageExpexted);\n\n checkCreateStatus(requestTo, client);\n }", "title": "" }, { "docid": "31361f97bedbec322e1c4132251edf2d", "score": "0.6378659", "text": "public void saveFacturapago(Facturapago entity) throws Exception;", "title": "" }, { "docid": "94c3d056a350151e84ebb2250b3f868c", "score": "0.6374261", "text": "@Override\n\tpublic Facturado crear(Facturado fac) {\n\t\ttry {\n\t\t\treturn nuev.save(fac);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\tSystem.out.println(e);\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a73bf42364c76b85c6c369fa657814ca", "score": "0.6369346", "text": "public EncargadoEntity insert(EncargadoEntity a){\r\n em.persist(a);\r\n return a;\r\n }", "title": "" }, { "docid": "89b33c62ebeee2bab20c58ec4e15084b", "score": "0.6368604", "text": "@WebMethod\n public ClientEntity create(ClientEntity entity) {\n connection.persist(entity);\n connection.flush();\n return entity;\n }", "title": "" }, { "docid": "8eaa8ef6ff13790ee1bedfbffd5f1699", "score": "0.63574475", "text": "public VeiculoEntity() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "title": "" }, { "docid": "3924d8c0b375d42d9642c5f18f6ad949", "score": "0.6332593", "text": "@Override\n\tpublic void crear(Tipo tipo) throws MyException {\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = getSession();\n\t\t\t// Se crea un objeto del tipo Transaction y se le asigna la session,\n\t\t\t// lo anterior con el fin de comenzar operaciones en la base de\n\t\t\t// datos\n\t\t\tTransaction tx = session.beginTransaction();\n\t\t\t// Se envia al metodo de guardar, correspondiente a session, el\n\t\t\t// Objeto Tipo que se almacenara como nuevo registro en la\n\t\t\t// BD\n\t\t\tsession.save(tipo);\n\t\t\t// Se realiza el commit en la base de datos para que persistan los\n\t\t\t// objetos\n\t\t\ttx.commit();\n\t\t} catch (TransactionException e) {\n\t\t\t// Si se presenta un fallo en la conexion a la base de datos o en la\n\t\t\t// creacion de filas en la BD se lanza una excepcion propia\n\t\t\t// (MyException) con el mensaje de error correspondiente\n\t\t\tthrow new MyException(e);\n\t\t} finally {\n\t\t\t// session.close();\n\t\t}\n\n\t}", "title": "" }, { "docid": "59073b6396c533774c093d282dfe8c07", "score": "0.63292253", "text": "public static Insumo createEntity() {\n Insumo insumo = new Insumo()\n .nome(DEFAULT_NOME);\n return insumo;\n }", "title": "" }, { "docid": "938526a2324da43c81fed49ec33199a3", "score": "0.63241607", "text": "Entity create(MetaClass metaClass);", "title": "" }, { "docid": "d6ccceb558ab04042e2d1216dcf3a5d8", "score": "0.63180184", "text": "public ProductosEntity crearProductos(ProductosEntity productosEntity){\r\n productosPersistence.create(productosEntity);\r\n return productosEntity;\r\n }", "title": "" }, { "docid": "6a285c3eea6efdd398b4a3b338a472b5", "score": "0.631663", "text": "public static AutoTiempoPrueba createEntity(EntityManager em) {\n AutoTiempoPrueba autoTiempoPrueba = new AutoTiempoPrueba();\n // Add required entity\n Auto id_auto = AutoResourceIntTest.createEntity(em);\n em.persist(id_auto);\n em.flush();\n autoTiempoPrueba.setId_auto(id_auto);\n // Add required entity\n Tiempos id_tiempos = TiemposResourceIntTest.createEntity(em);\n em.persist(id_tiempos);\n em.flush();\n autoTiempoPrueba.setId_tiempos(id_tiempos);\n // Add required entity\n Pruebas id_prueba = PruebasResourceIntTest.createEntity(em);\n em.persist(id_prueba);\n em.flush();\n autoTiempoPrueba.setId_prueba(id_prueba);\n return autoTiempoPrueba;\n }", "title": "" }, { "docid": "1010f63146f0ee608a81f4e7812f3304", "score": "0.6310166", "text": "public Entity() {\r\n \r\n }", "title": "" }, { "docid": "685095acc56a596b468bc11ae0ce8ae5", "score": "0.6279194", "text": "void create(Userplainte userplainte);", "title": "" }, { "docid": "8351ea538816fba874cfcce053950473", "score": "0.62729365", "text": "public void AddNewTask(T entity) {\n EntityManager em = DBConnection.getEntityManager();\n try {\n em.getTransaction().begin();\n em.persist(entity);\n em.getTransaction().commit();\n Logger.info(\"New entity added\");\n } catch (Exception e) {\n Logger.error(\"Failed to upload entity\" + e.toString());\n } finally {\n em.close();\n }\n }", "title": "" }, { "docid": "0a88fde029be6542c776eb630201af95", "score": "0.6272619", "text": "public static DetalleVenta createEntity(EntityManager em) {\n DetalleVenta detalleVenta = new DetalleVenta();\n // Add required entity\n Venta venta;\n if (TestUtil.findAll(em, Venta.class).isEmpty()) {\n venta = VentaResourceIT.createEntity(em);\n em.persist(venta);\n em.flush();\n } else {\n venta = TestUtil.findAll(em, Venta.class).get(0);\n }\n detalleVenta.setVenta(venta);\n // Add required entity\n Producto producto;\n if (TestUtil.findAll(em, Producto.class).isEmpty()) {\n producto = ProductoResourceIT.createEntity(em);\n em.persist(producto);\n em.flush();\n } else {\n producto = TestUtil.findAll(em, Producto.class).get(0);\n }\n detalleVenta.setPruducto(producto);\n return detalleVenta;\n }", "title": "" }, { "docid": "639995e6514ab53be3436dac53856cdd", "score": "0.62674844", "text": "@Override\r\n\tpublic Boolean create(TableKey entity) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "9dc4dd7fe3ce10be694b01a8e9c72270", "score": "0.6258185", "text": "Entity(String name) {\n\n // While not at use yet, we will keep record of id's for later use.\n id = ++last_used_id;\n\n /* Internal names must be unique. If the name is duplicated, the entity creation won't actually\n * fail. The new entity just won't be registered to the hash table and will call it's own\n * destruction method right after it's creation. */\n this.name = name;\n\n /* Event if the entity creation fails due to duplicated name, we need to setup the\n * CommandComponent for receiving the self destruction command.\n * This ensures proper assets disposal. */\n command_comp = new CommandComponent(this);\n\n // By default we use a 32x32 pixels size.\n setDefaultDimensions();\n\n // The so important duplicated name checkup\n if (CoreGame.entities.containsKey(name)) {\n\n // Debug warnings\n Log.d(TAG + \" - Entidade com nome \" + name + \" já existe. É o objeto \"\n + CoreGame.entities.get(name).toString() );\n Log.d(TAG + \" - Duplicatas não são permitidas, emitindo comando de autodestruição\");\n\n // Issue self destruct command\n CoreGame.command_manager.sendCommand( new DestroyEntityCommand(this) );\n\n }\n\n // If name is free, register self into the hash table and proceed to the initial creation\n else {\n\n // Hash table registration\n CoreGame.entities.put(name, this);\n\n // Debug notification\n Log.i(TAG + \" - Adicionado \" + name + \" à Hashtable de entidades.\");\n\n }\n\n }", "title": "" }, { "docid": "b946fa7f91184dfd3be72a6147abbd2e", "score": "0.62558645", "text": "public Persona newEntity(String nome, String cognome, String telefono, String email, Address indirizzo) {\n Persona entity = null;\n\n entity = Persona.builderPersona()\n .nome(nome)\n .cognome(cognome)\n .telefono(telefono.equals(\"\") ? null : telefono)\n .email(email.equals(\"\") ? null : email)\n .indirizzo(indirizzo)\n .build();\n\n return entity;\n }", "title": "" }, { "docid": "28a723248a3337f9ee5f2911daff1d88", "score": "0.62469304", "text": "public static Employeur createEntity(EntityManager em) {\n Employeur employeur = new Employeur()\n .employerType(DEFAULT_EMPLOYER_TYPE)\n .typeEtablissement(DEFAULT_TYPE_ETABLISSEMENT)\n .raisonSociale(DEFAULT_RAISON_SOCIALE)\n .maisonMere(DEFAULT_MAISON_MERE)\n .prenom(DEFAULT_PRENOM)\n .nom(DEFAULT_NOM)\n .typeIdentifiant(DEFAULT_TYPE_IDENTIFIANT)\n .numeroIdentifiant(DEFAULT_NUMERO_IDENTIFIANT)\n .legalStatus(DEFAULT_LEGAL_STATUS)\n .shortName(DEFAULT_SHORT_NAME)\n .businessSector(DEFAULT_BUSINESS_SECTOR)\n .mainLineOfBusiness(DEFAULT_MAIN_LINE_OF_BUSINESS)\n .noOfWorkersInGenScheme(DEFAULT_NO_OF_WORKERS_IN_GEN_SCHEME)\n .noOfWorkersInBasicScheme(DEFAULT_NO_OF_WORKERS_IN_BASIC_SCHEME)\n .region(DEFAULT_REGION)\n .department(DEFAULT_DEPARTMENT)\n .arondissement(DEFAULT_ARONDISSEMENT)\n .commune(DEFAULT_COMMUNE)\n .qartier(DEFAULT_QARTIER)\n .address(DEFAULT_ADDRESS)\n .postboxNo(DEFAULT_POSTBOX_NO)\n .telephone(DEFAULT_TELEPHONE)\n .email(DEFAULT_EMAIL)\n .website(DEFAULT_WEBSITE)\n .zoneCss(DEFAULT_ZONE_CSS)\n .zoneIpres(DEFAULT_ZONE_IPRES)\n .sectorCss(DEFAULT_SECTOR_CSS)\n .sectorIpres(DEFAULT_SECTOR_IPRES)\n .agencyCss(DEFAULT_AGENCY_CSS)\n .agencyIpres(DEFAULT_AGENCY_IPRES)\n .tauxAT(DEFAULT_TAUX_AT)\n .processFlowId(DEFAULT_PROCESS_FLOW_ID)\n .statutDossier(DEFAULT_STATUT_DOSSIER)\n .statutImmatriculation(DEFAULT_STATUT_IMMATRICULATION);\n return employeur;\n }", "title": "" }, { "docid": "6a41a79000c4ac6cd2298897f000d800", "score": "0.62468535", "text": "@TransactionAttribute(TransactionAttributeType.REQUIRED)\r\n\tpublic void crearHorario(HorariosDisponibles h){\r\n\t\tem.persist(h);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5115c1236a2c6494595548b8bbb6b9d1", "score": "0.6236904", "text": "@Test\n public void createTest()\n {\n PodamFactory podam = new PodamFactoryImpl();\n OrdenPedidoEntity newEntity= podam.manufacturePojo(OrdenPedidoEntity.class);\n OrdenPedidoEntity result = ordenPedido.create(newEntity);\n \n Assert.assertNotNull(result);\n \n OrdenPedidoEntity entity = em.find(OrdenPedidoEntity.class, result.getId());\n \n Assert.assertEquals(result.getNumeroComprasComprador(), entity.getNumeroComprasComprador());\n Assert.assertEquals(result.getTarjetaCredito(), entity.getTarjetaCredito());\n }", "title": "" }, { "docid": "ac7d200de03bc1a5f6cc6ad251973e6f", "score": "0.6233817", "text": "public void registrarPersona(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "171c58716cfe90d42b17eb6b88abf1e6", "score": "0.62300676", "text": "public void createUser() {\n\t\tUser u = new User(7321, \"nacht@tag.de\", \"himmegugga\", \"Nachter\",\"Hallo\",1 , \"Tag\");\n\t\tem.persist(u);\n\t}", "title": "" }, { "docid": "7c349b69a7cd7fdd72b69dec3d82056b", "score": "0.6228856", "text": "public Usuario create(Usuario usuario);", "title": "" }, { "docid": "5fb95e60261b941240cde1adc5bcd0cc", "score": "0.6225243", "text": "@Test\n\tpublic void pruebaCreate(){\n\t\ttipoCursoPrueba = new TipoCurso();\n\t\ttipoCursoPrueba.setActivo(true);\n\t\ttipoCursoPrueba.setDuracion(5);\n\t\ttipoCursoPrueba.setNombreCurso(\"Curso de Prueba\");\n\t\ttipoCursoPrueba.setLibreta(\"A\");\n\t\ttipoCursoPrueba.setIdTipoCurso(\"PRUEBA_CURSO\");\n\t\ttipoCursoDao.create(tipoCursoPrueba);\n\t\tAssert.notNull(tipoCursoPrueba);\n\t}", "title": "" }, { "docid": "981d1b62383b9ce8443f32ee5d2b5b98", "score": "0.62247854", "text": "public static Contenido createEntity(EntityManager em) {\n\t\tContenido contenido = new Contenido().indice(DEFAULT_INDICE).subindice(DEFAULT_SUBINDICE)\n\t\t\t\t.tipoContenido(DEFAULT_TIPO_CONTENIDO).valor(DEFAULT_VALOR).resumen(DEFAULT_RESUMEN);\n\t\t// Add required entity\n\t\tObra obra;\n\t\tif (TestUtil.findAll(em, Obra.class).isEmpty()) {\n\t\t\tobra = ObraResourceIT.createEntity(em);\n\t\t\tem.persist(obra);\n\t\t\tem.flush();\n\t\t} else {\n\t\t\tobra = TestUtil.findAll(em, Obra.class).get(0);\n\t\t}\n\t\tcontenido.setObra(obra);\n\t\treturn contenido;\n\t}", "title": "" }, { "docid": "b4e1eb8a84eb2d6ec4dfbcdb2fbab43e", "score": "0.62245226", "text": "@Override\r\n\tpublic boolean create(ProfesseurEntity obj) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "9c0482c534f7692f1d08a422ea898cd1", "score": "0.6212236", "text": "public void registrar(Docente docente) throws RegisteredObjectException, NoResponseBDException;", "title": "" }, { "docid": "d0798e95fe6192051256ca9edd091da1", "score": "0.6211606", "text": "public void saveTipoSoporte(TipoSoporte entity) throws Exception;", "title": "" }, { "docid": "60c653d6ca5f6ecf28b0141d1a3169de", "score": "0.6208466", "text": "public void CrearEncima(Encima c){\r\n\t\tem.persist(c);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0aca634d1e528831b2f4d0291cac71c5", "score": "0.62066865", "text": "@Override\n\tpublic Bancos create(Bancos entity) {\n\t\treturn bancosRepository.save(entity);\n\t}", "title": "" }, { "docid": "9a6f9e18f10de0fd3575ad7c5da78310", "score": "0.62056607", "text": "@Override\n public void agregarMueble(Mueble mueble) throws OperacionInvalidaException {\n try {\n persistencia.create(mueble); \n }\n catch(Exception ex)\n {\n throw new OperacionInvalidaException(ex.getMessage());\n }\n }", "title": "" }, { "docid": "b287fec17095606e98ce6b7870ad48fe", "score": "0.6202828", "text": "@Override\n\tpublic int create(Usuario u) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "d7ddf5710dbee30a5e59b7875888db83", "score": "0.6198705", "text": "public static Societe createEntity(EntityManager em) {\n Societe societe = new Societe()\n .idsociete(DEFAULT_IDSOCIETE)\n .libelle(DEFAULT_LIBELLE)\n .adresse(DEFAULT_ADRESSE);\n return societe;\n }", "title": "" }, { "docid": "33a8486f30a637685872f8a632a3c1d8", "score": "0.6185697", "text": "@Override\n\tpublic void addEntity(Entity entity) {\n\n\t}", "title": "" }, { "docid": "8a34018bf875e80cdefa246a500d996a", "score": "0.6175179", "text": "public void adicionarUsuario(Usuario u) {\n \n // processo de salvar usuario\n em.getTransaction().begin();\n em.persist(u);\n em.getTransaction().commit();\n \n }", "title": "" }, { "docid": "83192c2c0b455672cbe9eb998a059265", "score": "0.6163403", "text": "public void addEntity(EntityService ent);", "title": "" }, { "docid": "284ca8968f0a9a52299c2075994a48ae", "score": "0.6158391", "text": "@Override\r\n\tpublic Cliente crear(Cliente cliente) {\n\t\tint id = repositorio.insertar(cliente);\r\n\t\tcliente.setId(id);\r\n\t\treturn cliente;\r\n\t}", "title": "" }, { "docid": "a29d88c1b55dd85c54e89ad7354bd531", "score": "0.61563754", "text": "private void createSave(){\n //TODO\n }", "title": "" }, { "docid": "ffdd0b73da90e1ef522da4c43217afd0", "score": "0.6153867", "text": "public boolean crear( Solicitante objSo,int idPersona) throws DAOException;", "title": "" }, { "docid": "4e7afcb37a72bc92c0adede8e5dc0abb", "score": "0.6145026", "text": "@Test\r\n public void createUbicaiconTest() throws BusinessLogicException {\r\n UbicacionEntity newEntity = factory.manufacturePojo(UbicacionEntity.class);\r\n UbicacionEntity result = ubicacionLogic.createUbicacion(newEntity);\r\n Assert.assertNotNull(result);\r\n UbicacionEntity entity = em.find(UbicacionEntity.class, result.getId());\r\n Assert.assertEquals(newEntity.getId(), entity.getId());\r\n Assert.assertEquals(newEntity.getNombre(), entity.getNombre());\r\n }", "title": "" }, { "docid": "57e1a81bb14a31ef2ba8e97ab2aec1d4", "score": "0.6139276", "text": "Entity()\n\t{\n\n\t}", "title": "" }, { "docid": "c914a0b14da8bdf7b181cf909c09747f", "score": "0.6136392", "text": "public T createEntity(K dto);", "title": "" }, { "docid": "834f265aabc0d2bd3798c371d09c2d72", "score": "0.61336946", "text": "public void insert(Compromisso compromisso) {\n try{\n \tentityManager.getTransaction().begin();\n entityManager.persist(compromisso);\n entityManager.getTransaction().commit();\n \n }catch(Exception ex){\n ex.printStackTrace();\n entityManager.getTransaction().rollback();\n }\n\t}", "title": "" }, { "docid": "e738b74cbec176dd029e61e63438315a", "score": "0.6121199", "text": "@Override\n\tpublic void create(Employe o) {\n\t\temployeRepository.save(o);\n\t}", "title": "" }, { "docid": "74d6d7110329abc0da5a89cd070cf7b0", "score": "0.6115639", "text": "public Persona newEntity(String nome, String cognome) {\n return newEntity(nome, cognome, \"\", \"\", (Address) null);\n }", "title": "" }, { "docid": "cacc038da09ff6397b7f3ab6133ec6e3", "score": "0.6110588", "text": "public Entity newEntity() { return newMyEntity(); }", "title": "" }, { "docid": "c9ae5e8987136336e84de1ad50f955f3", "score": "0.6107383", "text": "private void insertData() {\r\n for (int i = 0; i < 3; i++) {\r\n UsuarioEntity entity = factory.manufacturePojo(UsuarioEntity.class);\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "title": "" }, { "docid": "09e7f99b22b4b9c2b1bd192b2ab26e13", "score": "0.6104933", "text": "@Override\n public Carpeta crearCarpetaRaiz(CarpetaDTO carpetaDTO, int idUsuario)throws Exception {\n \ttry{\n\t Carpeta carpeta = new Carpeta();\n\t carpeta.setNombreCarpeta(carpetaDTO.getNombreCarpeta());\n\t carpeta.setDescripcion(carpetaDTO.getDescripcion());\n\t Query query = entityManager.createNamedQuery(\"Usuario.findById\", Usuario.class).setParameter(\"idUsuario\", idUsuario);\n\t Usuario usuarioEncontrado = (Usuario) query.getSingleResult();\n\t carpeta.setUsuario(usuarioEncontrado);\n\t carpeta.setCarpetaRaiz(true);\n\t entityManager.persist(carpeta);\n\t return carpeta;\n \t}\n\t catch(Exception e){\n\t \tthrow new Exception(\"Fallo persistiendo la carpeta\");\n\t }\n }", "title": "" }, { "docid": "f1c5b7a2058c5a85cbf18b79eefbd710", "score": "0.6104891", "text": "public void creerjeu() {\n }", "title": "" }, { "docid": "adac84e9d39911f3bd1976c69cbfc6d1", "score": "0.61039776", "text": "public void create(Dvigatel obj) {\n\tSession session = HibernateSessionFactory.getSessionFactory().openSession();\n\tTransaction transaction = session.beginTransaction();\n\tsession.save(obj);\n\ttransaction.commit();\n\tsession.close();\n }", "title": "" } ]
37e6005ec789d6bfe2f90ae370018bab
Constructs a new empty database.
[ { "docid": "7b2d4f09c54e7cf71c21508ed43e193b", "score": "0.6434066", "text": "public Database() {\n //Assign instance variables.\n this.movies = new ArrayList<>();\n this.users = new ArrayList<>();\n }", "title": "" } ]
[ { "docid": "4e95355bcca4c173875e724512220e53", "score": "0.79526126", "text": "public Database() {\n size = 0;\n tables = new HashMap();\n p = new Parse(this);\n }", "title": "" }, { "docid": "bbf8d26d14e121ba0251c2746e021676", "score": "0.7635271", "text": "public Database()\r\n\t{\r\n\t\tinitializeDatabase();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4f14440178b7358ac088a29184ff1d4a", "score": "0.74278295", "text": "Database createDatabase();", "title": "" }, { "docid": "9927b4131430a6186c13e557080c5f3a", "score": "0.73104936", "text": "protected abstract ODatabaseInternal<?> newDatabase();", "title": "" }, { "docid": "a4f71c02f16d41877404f6e253c5f574", "score": "0.7298003", "text": "private Db() {\n super(Ke.getDatabase(), null);\n }", "title": "" }, { "docid": "e54b66303daec028495cec5a60cde1b5", "score": "0.7284953", "text": "public DB() {\r\n\t\r\n\t}", "title": "" }, { "docid": "02d7d0beb951ac94858b39f1f7256c55", "score": "0.7188991", "text": "public Database() {\n\t\tconn = null;\n\t}", "title": "" }, { "docid": "6427e38d91c043423078580a784668f8", "score": "0.70647705", "text": "@Override\n\tpublic Database createDatabase(Type type) throws FSException {\n\t\treturn new DummyDatabase();\n\t}", "title": "" }, { "docid": "b299d2b6eabbb40702abd2cb903b623e", "score": "0.7055643", "text": "public FakeDatabase() {\n\t\t\n\t\t// Add initial data\n\t\t\n//\t\tSystem.out.println(authorList.size() + \" authors\");\n//\t\tSystem.out.println(bookList.size() + \" books\");\n\t}", "title": "" }, { "docid": "b45cbd8349b6831b18e7ea696cf436ff", "score": "0.7036502", "text": "public Database() {\n if (init) {\n\n //creating Transaction data\n Transaction transactionOne\n = new Transaction(1, \"Debit\", \"Spar Grocery\", 54.68,1);\n\n transactionDB.add(transactionOne);\n\n // Creating an Account data\n Account accountOne = new Account(1, 445, 111111111, \"Savings\",\n 1250.24, transactionDB);\n\n accountDB.add(accountOne);\n\n //creating withdrawal data\n Withdrawal withdrawalOne = new Withdrawal(1, 64422545, 600.89);\n withdrawalDB.add(withdrawalOne);\n\n //creating transfer data\n Transfer transferOne = new Transfer(1, 25252525, 521.23);\n transferDB.add(transferOne);\n\n //creating lodgement data\n Lodgement lodgementOne = new Lodgement(1, 67766666, 521.23);\n lodgementDB.add(lodgementOne);\n\n //add Customer data \n Customer customerOne\n = new Customer(1, \"Darth Vader\", \"DarthVader@deathStar.com\",\n \"Level 5, Suit Dark\", \"darkSideIsGoodStuff\",\n accountDB, withdrawalDB, transferDB, lodgementDB);\n\n customerDB.add(customerOne);\n\n init = false;\n }\n }", "title": "" }, { "docid": "85784e6cb46637a96b3156b983816a36", "score": "0.69333816", "text": "public sqlDatabase() {\n }", "title": "" }, { "docid": "52d80e13c490ec8ca91b26a55f7f6ab3", "score": "0.6869592", "text": "private createSingletonDatabase()\n\t{\n\t\tConnection conn = createDatabase();\n\t\tcreateTable();\n\t\tString filename = \"Summer expereince survey 2016 for oliver.csv\"; \n\t\timportData(conn, filename);\n\t}", "title": "" }, { "docid": "089f26c6e6f67793c93e1a35f83c2104", "score": "0.6737904", "text": "public DatabaseTable() { }", "title": "" }, { "docid": "a8bb0b6a762424b75b22810ac8ab6bf5", "score": "0.66826814", "text": "private void createDB() {\n try {\n Statement stat = conn.createStatement();\n stat.execute(\"CREATE TABLE settings (name TEXT, state);\");\n stat.execute(\"CREATE TABLE expressions (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n stat.execute(\"CREATE TABLE summaries (id INTEGER PRIMARY KEY ASC, expression_id INTEGER, title TEXT, abstract TEXT);\");\n stat.execute(\"CREATE TABLE history (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }", "title": "" }, { "docid": "29d8f3849dbe318c2b09024def16cba9", "score": "0.66688627", "text": "public Database(Context context) { \n\t\tsuper( context, database_MEF, null, 2); \n\t}", "title": "" }, { "docid": "266de33f403ed4c673eed227d41254dc", "score": "0.6613986", "text": "public Database(Context context) {\n super(context, DB_NAME, null, DB_VER);\n }", "title": "" }, { "docid": "76327ae64938cddac5ad1e2b95ff44b5", "score": "0.65180326", "text": "public static void createDataBase() {\n final Configuration conf = new Configuration();\n\n addAnnotatedClass(conf);\n\n conf.configure();\n new SchemaExport(conf).create(true, true);\n }", "title": "" }, { "docid": "c3a08bdf4c7aa6181fe57872f1b2c41b", "score": "0.6514175", "text": "public Database(){\n ItemBox.getLogger().info(\"[Database] protocol version \" + net.mckitsu.itembox.protocol.ItemBoxProtocol.getVersion());\n }", "title": "" }, { "docid": "07d39e0fcdeb602c2e0377898f842c20", "score": "0.6491827", "text": "DataBase createDataBase();", "title": "" }, { "docid": "de45570c2cd1223a77de5023fa1d0404", "score": "0.6443299", "text": "public Database(Context context) {\n super(context, nome_db, null, versao_db);\n }", "title": "" }, { "docid": "47f468e6c76e4c4fd9ca3eae3e18aa6a", "score": "0.6436506", "text": "public Database() {\r\n\t\ttry {\t\r\n\t\t\tSystem.out.println(\"Database: Connected\");\r\n\t\t\tconn = DriverManager.getConnection(DB_URL,USER,PASS);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Unable to connect to database\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c21f40c30ee9be5b46f106738f394033", "score": "0.63772535", "text": "public DbBasic1( String _dbName ) {\n\t\tdbName = _dbName;\n\n\t\tif ( debug )\n\t\t\tSystem.out.println(\n\t\t\t\t \"Db.constructor [\"\n\t\t\t\t+ dbName\n\t\t\t\t+ \"]\");\n\n\t\topen();\n\t\treadMetaData();\n\t\tprintData();\n\t}", "title": "" }, { "docid": "1ba7fa8a274ddfcde1caa2b3ec90a071", "score": "0.6370588", "text": "public DatabaseAdaptor() {\n\t\ttry {\n\t\t\tdatabase = new MyDatabase(DB_NAME);\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "14160ca0ebd5b4cf97091d500a27f137", "score": "0.63607615", "text": "private AttendantDatabase() {}", "title": "" }, { "docid": "1ecb6a016306be6f9703486d2650b7a0", "score": "0.632834", "text": "private static void initializeDatabase()\n\t{\n\t\tResultSet resultSet = dbConnect.getMetaData().getCatalogs();\n\t\tStatment statement = dbConnect.createStatement();\n\t\t\n\t\tif (resultSet.next())\n\t\t{\n\t\t\tstatement.execute(\"USE \" + resultSet.getString(1));\n\t\t\tstatement.close();\n\t\t\tresultSet.close();\n\t\t\treturn; //A database exists already\n\t\t}\n\t\tresultSet.close();\n\t\t//No database exists yet, create it.\n\t\t\n\t\tstatement.execute(\"CREATE DATABASE \" + dbName);\n\t\tstatement.execute(\"USE \" + dbName);\n\t\tstatement.execute(createTableStatement);\n\t\tstatement.close();\n\t\treturn;\n\t}", "title": "" }, { "docid": "0d597d23bf9f788036e411a392c4bb64", "score": "0.63139665", "text": "public KVDatabase() {\n //private constructor to prevent instantiation.\n }", "title": "" }, { "docid": "8d490518c3ebb0379818c6a19897be5a", "score": "0.6312993", "text": "public Database(Context context)\n\t{\n\t\t/* Instanciation de l'openHelper */\n\t\tDBOpenHelper helper = new DBOpenHelper(context);\n\t\t\n\t\t/* Load de la database */\n\t\t//TODO passer en asynchrone pour les perfs\n\t\tmainDatabase = helper.getWritableDatabase();\n\t\t\n\t\t/* DEBUG PRINT */\n\t\tLog.i(\"info\", \"Database Loading Suceeded\");\n\t}", "title": "" }, { "docid": "db8592c62ba1b2c4a101a0ee6531ac93", "score": "0.63117373", "text": "public Database (String pw) {\n password = pw;\n dbConnection = null;\n if (DBExists()) dbConnect(true); else dbCreate();\n }", "title": "" }, { "docid": "185ec9d60240987f4dc34dc1176648f9", "score": "0.628711", "text": "public static DatabaseConnection create(String... args) {\n\t\treturn new DatabaseConnection(args);\n\t}", "title": "" }, { "docid": "d16e7e7ba046a10b8f8e4f6bf2801af5", "score": "0.62721366", "text": "public void createNewDataBase() {\n try (Connection conn = DriverManager.getConnection(url)) {\n if (conn != null) {\n DatabaseMetaData meta = conn.getMetaData();\n createNewTable();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "e2b582602d79d853aa2a23e1aa5e4621", "score": "0.6269016", "text": "@Override\r\n protected CassandraEmbDatabase createDatabaseInternal(final String theDB) {\r\n return new CassandraEmbDatabase(this, theDB);\r\n }", "title": "" }, { "docid": "8cd4d7a50cc849b38bf8f4a2013c6362", "score": "0.6264734", "text": "public Database(String name) {\r\n\t\tthis.name = name;\r\n\t\tDatabaseUniverse.getAllDatabases().add(this);\r\n\t\tDatabaseUniverse.setDatabaseNumber(1);\r\n\t\tCommandLineMenu.setActiveDatabase(this);\r\n\t}", "title": "" }, { "docid": "85c6bedf96b2b02b9b3a5d190ab4b015", "score": "0.625647", "text": "public void initDb() {\n String createVac = \"create table if not exists vacancies(id serial primary key,\"\n + \"name varchar(1500) NOT NULL UNIQUE, url varchar (1500), description text, dateVac timestamp);\";\n try (Statement st = connection.createStatement()) {\n st.execute(createVac);\n } catch (SQLException e) {\n LOG.error(e.getMessage());\n }\n }", "title": "" }, { "docid": "2e24387a12c8c4e75ecaee8f5edc168c", "score": "0.6239148", "text": "public PostDatabase() {\r\n\ttry {\r\n\t Class.forName(DRIVER);\r\n\t db = DriverManager.getConnection(URI);\r\n\t Statement create = db.createStatement();\r\n\t create.execute(\"CREATE TABLE IF NOT EXISTS posts ( id INTEGER PRIMARY KEY, author TEXT, date INTEGER, isPublic INTEGER, content TEXT );\");\r\n\t} catch (ClassNotFoundException e) {\r\n\t System.err.println(\"Caught exception while attempting to use database driver: \" + e.getMessage());\r\n\t} catch (SQLException e) {\r\n\t System.err.println(\"Caught exception while doing something to the database: \" + e.getMessage());\r\n\t}\r\n }", "title": "" }, { "docid": "4565f85064e71122ed57d960aaa5fa37", "score": "0.6238902", "text": "public Database initDB() {\n Database db = new Database(\"dataBase.db\");\n\n// db.insertData(\"1 Dragos Dinescu dragos@yahoo.com 0744522600 Digi 10-12-2020\");\n// db.insertData(\"2 Adelina Mirea ademirea@gmail.com 0733651320 Orange 14-10-2020\");\n// db.insertData(\"3 Radu Sorostinean radusoro@gmail.com 0733723321 Digi 1-10-2020\");\n// db.insertData(\"4 Andrei Brasoveanu andreibraso@gmail.com 0732341390 Vodafone 12-11-2020\");\n return db;\n\n //db.deleteFromDB();\n //db.updateDB(\"1 alex radu radu@gmail.com 022256926 orange 10/08/2010\");\n }", "title": "" }, { "docid": "0380af05e3469e27e67ba80a90450d10", "score": "0.62373626", "text": "public DbUtil() {}", "title": "" }, { "docid": "0a68b7ff9d39803db9ce43f8f94c4668", "score": "0.6225364", "text": "private DatabaseManager() {}", "title": "" }, { "docid": "689cce63d9a1f882df979f1a0828e469", "score": "0.62062365", "text": "long createDatabase(long actor, String nameToDisplay, long proteinDBType, long sizeInBytes, boolean bPublic, boolean bReversed, ExperimentCategory category);", "title": "" }, { "docid": "3af569d2d00c7d38e60a6c2e0a570b26", "score": "0.6195337", "text": "private Database() throws SQLException {\n con = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:MusicAlbums\", \"c##dba\", \"sql\");\n }", "title": "" }, { "docid": "4d31cd9320fdeba4600eb2b306c555ff", "score": "0.61925125", "text": "@Override\n\t\tpublic void onCreate(SQLiteDatabase database) {\n\t\t\tcreateTable(database);\n\n\t\t}", "title": "" }, { "docid": "53091a5597a3a248a176426bd0213f7a", "score": "0.61775714", "text": "private Database() throws SQLException, ClassNotFoundException {\r\n Class.forName(\"org.postgresql.Driver\");\r\n con = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/postgres\", \"postgres\", \"kuka\");\r\n }", "title": "" }, { "docid": "b177431a52a0842ad7ad975a0837898f", "score": "0.6175678", "text": "public Database(String dbName) {\n this.dbName = dbName;\n }", "title": "" }, { "docid": "ea6c8901006a7db2282ceca0a705be72", "score": "0.61645955", "text": "public Builder clearDatabase() {\n if (databaseBuilder_ == null) {\n database_ = messages.Databaseinterface.DatabaseInterface.getDefaultInstance();\n onChanged();\n } else {\n databaseBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000010);\n return this;\n }", "title": "" }, { "docid": "4062321fbc6567e8b13564ad75ee804d", "score": "0.6159225", "text": "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "title": "" }, { "docid": "d11d4bbbdd10f33635e59ebbea50b368", "score": "0.6153245", "text": "private PurchaseDB() {}", "title": "" }, { "docid": "8b23668fc70556f8bfd26b5e0e779012", "score": "0.6140021", "text": "private DatabaseOperations() {\n }", "title": "" }, { "docid": "55e7d3c58f7a9018aac8b89ce6dbb490", "score": "0.61317766", "text": "private void initDatabase() {\n\n String sql = \"CREATE TABLE IF NOT EXISTS books (\\n\"\n + \"\tISBN integer PRIMARY KEY,\\n\"\n + \"\tBookName text NOT NULL,\\n\"\n + \" AuthorName text NOT NULL, \\n\"\n + \"\tPrice integer\\n\"\n + \");\";\n\n try (Connection conn = DriverManager.getConnection(urlPath);\n Statement stmt = conn.createStatement()) {\n System.out.println(\"Database connected\");\n stmt.execute(sql);\n\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "e93b39feb672d65058cfb04550d5d548", "score": "0.6127883", "text": "public GosplPopulationInDatabase() {\n\t\ttry {\n\t\t\tthis.connection = DriverManager.getConnection(\n\t\t\t\t\t\"jdbc:hsqldb:mem:\"+mySqlDBname+\";shutdown=true\", \"SA\", \"\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"error while trying to initialize the HDSQL database engine in memory: \"+e.getMessage(), e);\n\t\t}\n\t}", "title": "" }, { "docid": "55b699b1d3bafde2fd136ea6bc140059", "score": "0.61237085", "text": "void createDb(String dbName);", "title": "" }, { "docid": "d9ac2e5d16eafa67586a5e3715283051", "score": "0.61183554", "text": "@Override\n public Database getAndInitialize() throws IOException {\n Database database = Databases.createPostgresDatabaseWithRetry(\n username,\n password,\n connectionString,\n isDatabaseConnected(databaseName));\n\n new ExceptionWrappingDatabase(database).transaction(ctx -> {\n boolean hasTables = tableNames.stream().allMatch(tableName -> hasTable(ctx, tableName));\n if (hasTables) {\n LOGGER.info(\"The {} database has been initialized\", databaseName);\n return null;\n }\n LOGGER.info(\"The {} database has not been initialized; initializing it with schema: {}\", databaseName, initialSchema);\n ctx.execute(initialSchema);\n return null;\n });\n\n return database;\n }", "title": "" }, { "docid": "aff37de8b4d92f3c4bcd2b8b1fb618cc", "score": "0.6108579", "text": "private DatabaseContract() {}", "title": "" }, { "docid": "3ba064087df632215128261f3323617f", "score": "0.6104184", "text": "private void createDatabase() throws Exception{\n Statement stm = this.con.createStatement();\n stm.execute(\"CREATE DATABASE IF NOT EXISTS \" + database +\n \" DEFAULT CHARACTER SET utf8 COLLATE utf8_persian_ci\");\n }", "title": "" }, { "docid": "e50eeb8107690a82a9c1dac8adf85c1a", "score": "0.6103459", "text": "public Database() throws SQLException {\n conn = DriverManager.getConnection(dbURL, username, password);\n }", "title": "" }, { "docid": "f481ea63d64eaf2e636bff55a92c6b22", "score": "0.61021733", "text": "public SetupDatabase() {\n }", "title": "" }, { "docid": "bbc5deca2c30819009201ab14fe2760f", "score": "0.60882366", "text": "public void dbCreate() {\n Logger.write(\"INFO\", \"DB\", \"Creating database\");\n try {\n if (!Database.DBDirExists())\n Database.createDBDir();\n dbConnect(false);\n for (int i = 0; i < DBStrings.createDB.length; i++)\n execute(DBStrings.createDB[i]);\n } catch (Exception e) {\n Logger.write(\"FATAL\", \"DB\", \"Failed to create databse: \" + e);\n }\n }", "title": "" }, { "docid": "d7942881151ec2038514729f390801ad", "score": "0.6081639", "text": "public void createDB(){\r\n\t\t\r\n\t\t Connection connection = null;\r\n\t try\r\n\t {\r\n\t // create a database connection\r\n\t connection = DriverManager.getConnection(\"jdbc:sqlite:project.sqlite\");\r\n\t Statement statement = connection.createStatement();\r\n\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\r\n\t statement.executeUpdate(\"drop table if exists task\");\r\n\t statement.executeUpdate(\"create table task (taskId integer primary key asc, description string, status string, createDate datetime default current_timestamp)\");\r\n\t statement.executeUpdate(\"insert into task values(1, 'leo', 'Active', null)\");\r\n\t statement.executeUpdate(\"insert into task values(2, 'yui', 'Complete', null)\");\r\n\t }\r\n\t catch(SQLException ex){\r\n\t \tthrow new RuntimeException(ex);\r\n\t }\r\n\t\t\r\n\t}", "title": "" }, { "docid": "97e5416aee840f07b2cc8e577bb58649", "score": "0.6076268", "text": "public ServiceCacheDB()\n\t{\n\t\tthis(0);\n\t}", "title": "" }, { "docid": "43e7f07ce5ec7e6efe9e7c3613c2beb2", "score": "0.6039645", "text": "private DatabaseManager() {\n // Default constructor\n }", "title": "" }, { "docid": "4fb3273794e570933b2f11213f1340f2", "score": "0.6035202", "text": "public Database(String url) {\n this.url = url;\n\n File f = new File(url);\n\n if (f.exists()) {\n try {\n f.mkdirs();\n f.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //create table relationship\n LinkedList<String> relationship_attributes = new LinkedList<>();\n relationship_attributes.add(\"id_entity1\");\n relationship_attributes.add(\"id_entity2\");\n relationship_attributes.add(\"description\");\n this.create_table(\"relationship\", relationship_attributes);\n }", "title": "" }, { "docid": "20cf444feac6299cb5579186f992c286", "score": "0.6034152", "text": "private TexeraDb() {\n super(\"texera_db\", null);\n }", "title": "" }, { "docid": "bbd50627ae91c48cde373e81095929a8", "score": "0.6030355", "text": "public CreateJavaDBDatabaseOperator() {\n super(Bundle.getStringTrimmed(\"org.netbeans.modules.derby.Bundle\", \"LBL_CreateDatabaseTitle\"));\n }", "title": "" }, { "docid": "0aab219331e287fb70e8b6328c3a09bb", "score": "0.60297537", "text": "public DBManager() {\n\t\t\n\t}", "title": "" }, { "docid": "9a89b53d93e6b9071540106a1dae8731", "score": "0.60168403", "text": "private DatabaseContext() {\r\n datastore = createDatastore();\r\n init();\r\n }", "title": "" }, { "docid": "6f4a3297aef12e11350486181f0a8519", "score": "0.6000584", "text": "public void initDatabase(){\n CovidOpener cpHelper = new CovidOpener(this);\n cdb = cpHelper.getWritableDatabase();\n }", "title": "" }, { "docid": "f12e61d3e8a56ab0f6863def650309bf", "score": "0.60005546", "text": "public void creatDataBase(String dbName);", "title": "" }, { "docid": "d4baf455d6271562801851af29717dc3", "score": "0.5997609", "text": "public static void createDatabase() throws ArcException {\n\t\tcreateDatabase(userWithRestrictedRights);\t\t\n\t}", "title": "" }, { "docid": "85fd7b4585a3e8fbffd4c940f0904dbf", "score": "0.5990927", "text": "private Connection createDatabase() {\n\t\tSystem.out.println(\"We are creating a database\");\n\t\ttry (\n\t\t\t\t// Step 1: Allocate a database \"Connection\" object\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:\" + PORT_NUMBER + \"/\", \n\t\t\t\t\t\t\"root\", \"root\"); // MySQL\n\t\t\t\t// Step 2: Allocate a \"Statement\" object in the Connection\n\t\t\t\tStatement stmt = conn.createStatement();\n\t\t\t\t) {\n\t\t\t// Step 3 - create our database\n\t\t\tString sql = \"CREATE DATABASE IF NOT EXISTS experiences\";\n\t\t\tstmt.execute(sql);\n\t\t\treturn conn;\n\t\t\t\n\n\t\t} catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn null; }\n\t}", "title": "" }, { "docid": "de48b5a48b9f7d5ed661fff07dc09802", "score": "0.59880847", "text": "private DatabaseManager() {\r\n }", "title": "" }, { "docid": "255aa8227063836baa25058becbb9b27", "score": "0.59621996", "text": "private void initDb() {\n\t\tif (dbHelper == null) {\n\t\t\tdbHelper = new DatabaseOpenHelper(this);\n\t\t}\n\t\tif (dbAccess == null) {\n\t\t\tdbAccess = new DatabaseAccess(dbHelper.getWritableDatabase());\n\t\t}\n\t}", "title": "" }, { "docid": "3f1cf42d35f478dca7ba1e471fbe3d6d", "score": "0.59491056", "text": "@Override\r\n\tpublic Database getDefaultDatabase() {\r\n\t\treturn databases.getDatabase( \"default\" );\r\n\t}", "title": "" }, { "docid": "cc2957d7f95478d03a78f017d6a3fc9f", "score": "0.59414274", "text": "private static void initializeDatabase() {\n\t\tArrayList<String> data = DatabaseHandler.readDatabase(DATABASE_NAME);\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\trecords = serializer.deserialize(data);\n\t}", "title": "" }, { "docid": "7e478e0f80bf49a2075896a76616e9d0", "score": "0.59350026", "text": "public DatabaseHandler(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "title": "" }, { "docid": "468d79d3d9a22bbcad8519493a001999", "score": "0.5930755", "text": "public SRWDatabasePool() {\n }", "title": "" }, { "docid": "9baf103f94b327c74d768a250ec68b2e", "score": "0.5927477", "text": "public void createDB() {\n String url = \"jdbc:sqlite:stats.db\";\n Statement stmt = null;\n try (Connection conn = DriverManager.getConnection(url)) {\n stmt = conn.createStatement();\n String query = \"CREATE TABLE IF NOT EXISTS games \"\n + \"(ownships int, \"\n + \"ownremaining int, \"\n + \"aiships int,\"\n + \"airemaining int, \"\n + \"turns int)\";\n\n stmt.executeUpdate(query);\n\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n }", "title": "" }, { "docid": "d721ef2d2aefad5ea5f1199131d5de45", "score": "0.5921826", "text": "public Persistence() {\n\t\tconn = dbConnection();\n\t}", "title": "" }, { "docid": "7d569fddddf8611eab47e311eafb6878", "score": "0.59178674", "text": "public DatabaseOperations(){\n\n }", "title": "" }, { "docid": "ed714cda8efad0e80ef200c111f5cf3b", "score": "0.59150374", "text": "public OWLAnonymousIndividualHGDB()\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "6ffe8e50c142f69f406d66d7b073ebb0", "score": "0.5907622", "text": "public DbUtils() {\r\n // do nothing\r\n }", "title": "" }, { "docid": "f0612b859d5906b7d939f1449ed588e1", "score": "0.59072125", "text": "@Override\n public Database getInitialized() {\n return Databases.createPostgresDatabaseWithRetry(\n username,\n password,\n connectionString,\n isDatabaseReady);\n }", "title": "" }, { "docid": "d1a56c5bfe8d73e25dfb36b0f12b9cd3", "score": "0.59067196", "text": "public DataManager() {\n\t\tthis(PUnit == null ? \"eElectionsDB\" : PUnit);\n\t}", "title": "" }, { "docid": "1541159823b9cb7fba8f7ca2dc4a13c7", "score": "0.59027654", "text": "public void createDatabase() throws IOException {\n boolean dbExists = checkDatabase();\n\n if (dbExists) {\n // Do nothing - database already exists\n } else {\n // By calling this method an empty database will be created into the\n // default system path of our application so we are going to be able\n // to overwrite the database with our database.\n this.getReadableDatabase();\n\n try {\n copyDatabase();\n } catch (IOException e) {\n throw new Error(\"Error copying database\");\n }\n }\n }", "title": "" }, { "docid": "373c1060cd19a40bb316fce8e04af32d", "score": "0.58989584", "text": "private void createDatabase() throws SQLException\r\n {\r\n myStmt.executeUpdate(\"create database \" + dbname);\r\n }", "title": "" }, { "docid": "693910c0bb5238683d28cda4e699bd5f", "score": "0.588805", "text": "public AccountDatabase() {\n accounts = new Account[5];\n size = 0;\n }", "title": "" }, { "docid": "00835e848d25d67b34ab2fd091415d7d", "score": "0.58787394", "text": "public AddressDatabase() {\n\t\ttimes=new Vector ();\n\t\tcids=new Vector ();\n\t\taddresses=new Hashtable();\n\t\ttseqnums=new Hashtable();\n\t}", "title": "" }, { "docid": "85ac6c9d5a1688831da78f23a847b53b", "score": "0.58732235", "text": "public MoviesDatabase()\n {\n file = new FileOperation();\n menu = new Menu();\n validation = new Validation();\n }", "title": "" }, { "docid": "2e8479867bce6070c4ad971957aa5efc", "score": "0.5871471", "text": "private DatabaseRepository() {\n try {\n // connect to database\n\n DB_URL = \"jdbc:sqlite:\"\n + this.getClass().getProtectionDomain()\n .getCodeSource()\n .getLocation()\n .toURI()\n .getPath().replaceAll(\"[/\\\\\\\\]\\\\w*\\\\.jar\", \"/\")\n + \"lib/GM-SIS.db\";\n connection = DriverManager.getConnection(DB_URL);\n mapper = ObjectRelationalMapper.getInstance();\n mapper.initialize(this);\n }\n catch (SQLException | URISyntaxException e) {\n System.out.println(e.toString());\n }\n }", "title": "" }, { "docid": "62ae669dad3cf22e1ee1e03ba29f0c30", "score": "0.5870883", "text": "public DBConnection()\n {\n\n }", "title": "" }, { "docid": "8e527dbc33ceb42c2316c823114e0115", "score": "0.58594054", "text": "public void testEmptyDbSetup() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n sqlDbManager = new SqlDbManager();\n theDaemon.setDbManager(sqlDbManager);\n sqlDbManager.initService(theDaemon);\n assertTrue(sqlDbManager.setUpDatabase(0));\n sqlDbManager.setTargetDatabaseVersion(0);\n sqlDbManager.startService();\n assertTrue(sqlDbManager.isReady());\n\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, SqlDbManager.OBSOLETE_METADATA_TABLE));\n }", "title": "" }, { "docid": "60274497146b56141e86c213b67c15ae", "score": "0.5859349", "text": "public static void createDatabase() throws SQLException {\n\t\tSystem.out.println(\"DROP database IF EXISTS project02;\");\n\t\tstatement = connection.prepareStatement(\"DROP database IF EXISTS project02;\");\n\t\tstatement.executeUpdate();\n\t\tSystem.out.println(\"CREATE database project02;\");\n\t\tstatement = connection.prepareStatement(\"CREATE database project02;\");\n\t\tstatement.executeUpdate();\n\t\tSystem.out.println(\"USE project02;\");\n\t\tstatement = connection.prepareStatement(\"USE project02;\");\n\t\tstatement.executeUpdate();\n\t}", "title": "" }, { "docid": "1a732e884dde7d2fd8332ed864d89ffc", "score": "0.5857083", "text": "@Before\n public void initDb() {\n mDatabase = Room.inMemoryDatabaseBuilder(InstrumentationRegistry.getContext(),\n ToDoDatabase.class).build();\n }", "title": "" }, { "docid": "1a9b78c9b97b4074c121e11901ef8b0f", "score": "0.5852516", "text": "public DatabaseHandler(Context context) {\r\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\r\n }", "title": "" }, { "docid": "24503dd19e97241429ebcfca32091213", "score": "0.5847449", "text": "private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = DatabaseHelperFactory.getInstance();\r\n\t}", "title": "" }, { "docid": "4aae53708c8ed78981380608f457d5be", "score": "0.584677", "text": "@Override\n\tpublic void onCreate(SQLiteDatabase database) {\n\t\tcreateTables(database);\n\t}", "title": "" }, { "docid": "05ef0f48683ec879f9869832d7debfbc", "score": "0.5839619", "text": "public LocalDatabase(String DBName) {\n\t\tname = DBName;\n\t\texternal = new RS_LastFMInterface();\t\t\n\t}", "title": "" }, { "docid": "48ac0a72f95ae1fa7124cebf4fdc112c", "score": "0.5836366", "text": "public MovieDB()\n\t{\n\t\t//Create an empty list\n\t\tlist_of_movies = new ArrayList<Movie>();\n\t}", "title": "" }, { "docid": "58c1d9c57eca2e3ec988f318253c6b1c", "score": "0.58313805", "text": "public DBPoolImpl()\n {\n }", "title": "" }, { "docid": "b89b1c8ac1f76ccf948b11f49707b92a", "score": "0.58274263", "text": "private DatabaseHandler(){\n createConnection();\n }", "title": "" }, { "docid": "e016ab17ccbe515ba650082beed5e83a", "score": "0.58261704", "text": "public void createDatabase() throws IOException{\r\n\r\n boolean dbDoesExist = checkDatabase();\r\n if(!dbDoesExist)\r\n {\r\n // Create or open db if db is not connected\r\n this.getReadableDatabase();\r\n try{\r\n createNewDB();\r\n }catch (IOException e){\r\n throw new Error(\"DB Copy Failed\");\r\n }\r\n }\r\n }", "title": "" }, { "docid": "f49217061d4c5053a915b71999fa419f", "score": "0.58169335", "text": "public interface DatabaseFactory {\r\n\r\n Database makeDatabase();\r\n}", "title": "" }, { "docid": "356ea854760975b3043da0c244ffa3e6", "score": "0.58149654", "text": "public void createDB() {\n\t\ttry {\n\t\t\tBufferedReader br= new BufferedReader(new FileReader(\"db_schema.txt\"));\n\t\t\tString line= null;\n\t\t\tStringBuilder sb= new StringBuilder();\n\t\t\twhile ((line=br.readLine())!=null){\n\t\t\t\tsb.append(line);\n\t\t\t\tif(sb.length()>0 && sb.charAt(sb.length()-1)==';'){//see if it is the end of one line of command\n\t\t\t\t\tstatement.executeUpdate(sb.toString());\n\t\t\t\t\tsb= new StringBuilder();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" } ]
d9bcd8962f8ece8eae4c538ed9f3325b
Gets the height of the actual data.
[ { "docid": "0b2fa5b236521ab389ed19fa27a95979", "score": "0.0", "text": "public int getActualHeight() {\n return actualHeight;\n }", "title": "" } ]
[ { "docid": "8156542d8d75ac69c8fe686ec23ee71c", "score": "0.8315174", "text": "public int getHeight() {\n\t\treturn buffer.getHeight();\n\t}", "title": "" }, { "docid": "559c9fb9aa177cdf7f35932a59a8d09d", "score": "0.82069373", "text": "@Basic\n\t@Raw\n\tpublic double getHeight() {\n\t\treturn this.height;\n\t}", "title": "" }, { "docid": "3d6941804ec3a2739aa332a7dd4a8cb2", "score": "0.81418794", "text": "public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "3d6941804ec3a2739aa332a7dd4a8cb2", "score": "0.81418794", "text": "public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "3d6941804ec3a2739aa332a7dd4a8cb2", "score": "0.81418794", "text": "public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "3d6941804ec3a2739aa332a7dd4a8cb2", "score": "0.81418794", "text": "public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "3d6941804ec3a2739aa332a7dd4a8cb2", "score": "0.81418794", "text": "public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "3d6941804ec3a2739aa332a7dd4a8cb2", "score": "0.81418794", "text": "public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "3d6941804ec3a2739aa332a7dd4a8cb2", "score": "0.81418794", "text": "public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "fe2f0719de878a1a63a5675c85b53fbc", "score": "0.8112028", "text": "public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "fe2f0719de878a1a63a5675c85b53fbc", "score": "0.8112028", "text": "public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "fe2f0719de878a1a63a5675c85b53fbc", "score": "0.8112028", "text": "public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "fe2f0719de878a1a63a5675c85b53fbc", "score": "0.8112028", "text": "public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "fe2f0719de878a1a63a5675c85b53fbc", "score": "0.8112028", "text": "public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "fe2f0719de878a1a63a5675c85b53fbc", "score": "0.8112028", "text": "public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "fe2f0719de878a1a63a5675c85b53fbc", "score": "0.8112028", "text": "public long getHeight() {\n return height_;\n }", "title": "" }, { "docid": "9e796bd76edf6a3e73b0ed2cce18bec9", "score": "0.80990154", "text": "public int getHeight()\n {\n return getSizeInternal().height;\n }", "title": "" }, { "docid": "b076875a170cb18257b6372787474f82", "score": "0.8072844", "text": "public double getHeight()\n\t{\n\t\treturn _height;\n\t}", "title": "" }, { "docid": "d67f4f7663412fd6a8af137f739f4bad", "score": "0.8070037", "text": "public int getHeight() {\n return height_;\n }", "title": "" }, { "docid": "d67f4f7663412fd6a8af137f739f4bad", "score": "0.8070037", "text": "public int getHeight() {\n return height_;\n }", "title": "" }, { "docid": "f57303145a75cc79cde6977f17546152", "score": "0.8065654", "text": "public static int getHeight() {\n return height;\n }", "title": "" }, { "docid": "556b984d5e70489af641e81841b71da5", "score": "0.8053623", "text": "public double getHeight() {\r\n return height;\r\n }", "title": "" }, { "docid": "556b984d5e70489af641e81841b71da5", "score": "0.8053623", "text": "public double getHeight() {\r\n return height;\r\n }", "title": "" }, { "docid": "8906c9f8c05125bce1932050b0076074", "score": "0.8051606", "text": "public double getHeight() {\n return height;\n }", "title": "" }, { "docid": "6931d8274bb02db3c713974410b26e3e", "score": "0.80403966", "text": "public double getHeight() {\r\n return this.height;\r\n }", "title": "" }, { "docid": "126319f0938808895b1759ba4f130d43", "score": "0.80369794", "text": "public int getHeight() {\n return height_;\n }", "title": "" }, { "docid": "126319f0938808895b1759ba4f130d43", "score": "0.80369794", "text": "public int getHeight() {\n return height_;\n }", "title": "" }, { "docid": "126319f0938808895b1759ba4f130d43", "score": "0.80369794", "text": "public int getHeight() {\n return height_;\n }", "title": "" }, { "docid": "80d33f78ad2cd3151ada22703288f260", "score": "0.80363107", "text": "public double getHeight() {\n return this.height;\n }", "title": "" }, { "docid": "613cb1cdbcee732cf4596c8ee31fb9f8", "score": "0.8035648", "text": "public double getHeight() {\n return height;\n }", "title": "" }, { "docid": "613cb1cdbcee732cf4596c8ee31fb9f8", "score": "0.8035648", "text": "public double getHeight() {\n return height;\n }", "title": "" }, { "docid": "613cb1cdbcee732cf4596c8ee31fb9f8", "score": "0.8035648", "text": "public double getHeight() {\n return height;\n }", "title": "" }, { "docid": "613cb1cdbcee732cf4596c8ee31fb9f8", "score": "0.8035648", "text": "public double getHeight() {\n return height;\n }", "title": "" }, { "docid": "613cb1cdbcee732cf4596c8ee31fb9f8", "score": "0.8035648", "text": "public double getHeight() {\n return height;\n }", "title": "" }, { "docid": "88e1ad5b45a62977538bd880151c1c26", "score": "0.80313337", "text": "public double getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "88e1ad5b45a62977538bd880151c1c26", "score": "0.80313337", "text": "public double getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "88e1ad5b45a62977538bd880151c1c26", "score": "0.80313337", "text": "public double getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "88e1ad5b45a62977538bd880151c1c26", "score": "0.80313337", "text": "public double getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "88e1ad5b45a62977538bd880151c1c26", "score": "0.80313337", "text": "public double getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "e1815fd4e5be372fd1618f5f90675e30", "score": "0.8022952", "text": "public double getHeight()\n {\n \treturn height;\n }", "title": "" }, { "docid": "c8c52db918491769be4f26c2313bfca2", "score": "0.8019059", "text": "public double getHeight()\n {\n return height;\n }", "title": "" }, { "docid": "82f7099f02bd6d7ec0abb96277ec8b0f", "score": "0.8007828", "text": "public double getHeight() {\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "82f7099f02bd6d7ec0abb96277ec8b0f", "score": "0.8007828", "text": "public double getHeight() {\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "82f7099f02bd6d7ec0abb96277ec8b0f", "score": "0.8007828", "text": "public double getHeight() {\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "77be118b9922e35bfc05cd4a43583e90", "score": "0.80047196", "text": "public double getHeight()\n\t{\n\t\treturn height;\n\t}", "title": "" }, { "docid": "3f7d7904c223fbe95767e198af2eff12", "score": "0.7998151", "text": "public int getHeight(){\n\t\treturn this.height;\n\t}", "title": "" }, { "docid": "c42d18cf2454d6cbc65026bb78d8fb5d", "score": "0.79954386", "text": "public int getHeight() {\n return height_;\n }", "title": "" }, { "docid": "146663936cb627af21548c9f3e0f0637", "score": "0.79861367", "text": "public int getHeight() {\r\n return height;\r\n }", "title": "" }, { "docid": "146663936cb627af21548c9f3e0f0637", "score": "0.79861367", "text": "public int getHeight() {\r\n return height;\r\n }", "title": "" }, { "docid": "edaeec5545562106ddef50e4d5e4428f", "score": "0.7984244", "text": "public double getHeight ()\n {\n return this.height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7966472", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7966472", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7966472", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7966472", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7966472", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7966472", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7966472", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7966472", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7966472", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7966472", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7966472", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7966472", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7966472", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7966472", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7964323", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7964323", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7964323", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7964323", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7964323", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7964323", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7964323", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7964323", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7964323", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "541ff0f9bc8aa8723cfa95cee62e1df3", "score": "0.7962013", "text": "public int getHeight() {\n\t\treturn this.height;\n\t}", "title": "" }, { "docid": "dded6b60852c973732a988b179d0ad6a", "score": "0.7960717", "text": "public int getHeight(){\n\t\treturn height;\n\t}", "title": "" }, { "docid": "dded6b60852c973732a988b179d0ad6a", "score": "0.7960717", "text": "public int getHeight(){\n\t\treturn height;\n\t}", "title": "" }, { "docid": "ac83c833daade3a4f93a96f5502068f7", "score": "0.796062", "text": "public Number getHeight()\n {\n return (Number)getAttributeInternal(HEIGHT);\n }", "title": "" }, { "docid": "725744efe988a68465d0a76e9fed06fd", "score": "0.79522717", "text": "public int getHeight() {\n return this.height;\n }", "title": "" }, { "docid": "725744efe988a68465d0a76e9fed06fd", "score": "0.79522717", "text": "public int getHeight() {\n return this.height;\n }", "title": "" }, { "docid": "725744efe988a68465d0a76e9fed06fd", "score": "0.79522717", "text": "public int getHeight() {\n return this.height;\n }", "title": "" }, { "docid": "ebf8c00b97bf1eff82fd2c4d29e2f4fd", "score": "0.79518366", "text": "public int getHeight() {\r\n\t\treturn this.height;\r\n\t}", "title": "" }, { "docid": "f7356010b8538149616598ee3505e085", "score": "0.79485464", "text": "public double getHeight()\n {\n return height;\n }", "title": "" }, { "docid": "aab708dc3656049d8d6afd501096996d", "score": "0.794283", "text": "public Integer getHeight() {\r\n return height;\r\n }", "title": "" }, { "docid": "2b77e3e24ca5a8fca060902129301df0", "score": "0.7940608", "text": "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "2b77e3e24ca5a8fca060902129301df0", "score": "0.7940608", "text": "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "2b77e3e24ca5a8fca060902129301df0", "score": "0.7940608", "text": "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "7fc8393fa1a3d8212ab4944eccd7ebb2", "score": "0.79377264", "text": "public int getHeight()\n {\n return height;\n }", "title": "" }, { "docid": "bf7bd9feb8048bffc4f91e28950272f0", "score": "0.7933116", "text": "public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "845c197f9f5c39a11ddb7dc77050c6b2", "score": "0.79317135", "text": "public int getHeight() {\n\t\t\n\t\treturn this.height;\n\t}", "title": "" }, { "docid": "3a730ba9cae35471effce707b0aef144", "score": "0.7931271", "text": "public Integer getHeight() {\n return height;\n }", "title": "" }, { "docid": "3a730ba9cae35471effce707b0aef144", "score": "0.7931271", "text": "public Integer getHeight() {\n return height;\n }", "title": "" }, { "docid": "164d1634d5295cea5de27753f9cb78a3", "score": "0.792222", "text": "public int getHeight () {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "b9d67bf2a011dc99882630eedfde47ea", "score": "0.7916656", "text": "public String getHeight() {\r\n return height;\r\n }", "title": "" }, { "docid": "2ead6bc0efbb9ba3be38ccadca126a15", "score": "0.7912047", "text": "public int getHeight()\n {\n return height;\n }", "title": "" }, { "docid": "351be17b221cd4e0c81ef26db2524460", "score": "0.7905937", "text": "public String getHeight() {\n return height;\n }", "title": "" }, { "docid": "351be17b221cd4e0c81ef26db2524460", "score": "0.7905937", "text": "public String getHeight() {\n return height;\n }", "title": "" }, { "docid": "64992c4fc73ed98bb03b7a869b3297f5", "score": "0.790284", "text": "double getHeight() {\n\t\treturn getValue(Property.HEIGHT, Undefined.DOUBLE);\n\t}", "title": "" }, { "docid": "ebec75ca7380f480c222b5e2772958d1", "score": "0.7902426", "text": "public int getHeight (){\n\t\treturn height;\n\t}", "title": "" }, { "docid": "30860f26bdc421bfaea9aa413fe7b976", "score": "0.7901073", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "30860f26bdc421bfaea9aa413fe7b976", "score": "0.7901073", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "30860f26bdc421bfaea9aa413fe7b976", "score": "0.7901073", "text": "public int getHeight() {\n return height;\n }", "title": "" } ]
99ddb8983b9042df1a0a3ac92519a8f7
Get the formatted URL with base URL and endpoint concatenated.
[ { "docid": "bb95cef78cfbd5e9f077d45aa60dc4b8", "score": "0.8067851", "text": "private String getFormattedUrl(final String baseUrl, final String endpoint) throws URISyntaxException {\n return new URIBuilder(baseUrl.concat(endpoint)).build().toString();\n }", "title": "" } ]
[ { "docid": "3d0fab0b3cba4833a6fdb7d5b1e581b9", "score": "0.7410962", "text": "private String getFormattedUrl(final Response authResponse, final String endpoint, final List<NameValuePair> params)\n throws RestClientException, URISyntaxException {\n\n String formattedUrl = StringUtils.EMPTY;\n\n try {\n JSONObject authJson = getAuthJson(authResponse);\n String instanceUrl = ResponseUtils.getValueFromJson(Authentication.INSTANCE_URL.getValue(), authJson);\n if (StringUtils.isBlank(instanceUrl)) {\n throw new RestClientException(\"SFDC Instance URL came back blank or null. Please check OSGi configurations.\");\n }\n\n formattedUrl = instanceUrl.concat(endpoint);\n } catch (Exception e) {\n LOG.error(\"An exception has occurred.\", e);\n }\n\n URIBuilder uriBuilder = new URIBuilder(formattedUrl);\n\n if (params != null) {\n for (NameValuePair param : params) {\n uriBuilder.setParameter(param.getName(), param.getValue());\n }\n }\n\n return uriBuilder.build().toString();\n }", "title": "" }, { "docid": "3225d31669910466e8c6164bca3117a5", "score": "0.6926812", "text": "private String getUrl() {\n return String.format(\"%s:%s/%s\", null, null, null);\n }", "title": "" }, { "docid": "b284a9a81edfddf668564d57172ea4cb", "score": "0.68631685", "text": "public String getFullURL() {\n\t\tString scheme = req.getScheme();\n\t\tString serverName = req.getServerName();\n\t\tint serverPort = req.getServerPort();\n\t\tString contextPath = req.getContextPath();\n\t\tStringBuffer url = new StringBuffer();\n\t\turl.append(scheme).append(\"://\").append(serverName);\n\n\t\tif ((serverPort != 80) && (serverPort != 443)) {\n\t\t\turl.append(\":\").append(serverPort);\n\t\t}\n\t\turl.append(contextPath);\n\t\turl.append(\"/\");\n\t\treturn url.toString();\n\t}", "title": "" }, { "docid": "cb56ee99ab80e30ba80b8319875c1a79", "score": "0.66960984", "text": "java.lang.String getBaseUrl();", "title": "" }, { "docid": "d9ccca3a82656576c6a099ca5891a143", "score": "0.6683915", "text": "public String getURL()\n {\n StringBuffer buff = new StringBuffer();\n buff.append(getProtocol());\n buff.append(\"://\");\n buff.append(getHostname());\n buff.append(\":\");\n buff.append(getPort());\n if(getOtherHostnames() != null && getOtherHostnames().length() > 0)\n {\n buff.append(\",\");\n buff.append(getOtherHostnames());\n }\n buff.append(\"/\");\n buff.append(getDatabaseName());\n if(getParameters() != null && getParameters().length() > 0)\n {\n buff.append(\"?\");\n buff.append(getParameters());\n }\n return buff.toString();\n }", "title": "" }, { "docid": "98620b93872b939dea4ae313a98d9fb3", "score": "0.6529855", "text": "private String buildBaseUrl() {\n\n Map<String, String> params = new HashMap<>();\n\n if (!StringUtils.isEmpty(getBean().getEntryId())) {\n params.put(\"bean.entryId\", getBean().getEntryId());\n }\n if (!StringUtils.isEmpty(getBean().getSearchString())) {\n params.put(\"bean.searchString\", getBean().getSearchString());\n }\n if (!StringUtils.isEmpty(getBean().getStartDateString())) {\n params.put(\"bean.startDateString\", getBean().getStartDateString());\n }\n if (!StringUtils.isEmpty(getBean().getEndDateString())) {\n params.put(\"bean.endDateString\", getBean().getEndDateString());\n }\n if (!StringUtils.isEmpty(getBean().getApprovedString())) {\n params.put(\"bean.approvedString\", getBean().getApprovedString());\n }\n\n return WebloggerFactory.getWeblogger().getUrlStrategy()\n .getActionURL(\"comments\", \"/roller-ui/authoring\", getActionWeblog().getHandle(), params, false);\n }", "title": "" }, { "docid": "11e1f883625f4dba33dba5322e05afae", "score": "0.6430677", "text": "String getBaseURL();", "title": "" }, { "docid": "b1919d964c84962d7959c2f08ef7c16d", "score": "0.6372332", "text": "public static String getURL(){\r\n\t\tStringBuffer sbUrl = new StringBuffer(\"http://\");\r\n\t\tswitch(VERSION_MODE){\r\n\t\tcase VERSION_MODE_DEV:\r\n\t\t\tsbUrl.append(SERVER_HOST + \":\" + port + \"/sg-ws/base\");\r\n\t\t\tbreak;\r\n\t\tcase VERSION_MODE_REL:\r\n\t\t\tsbUrl.append(relHost + \":\" + relPort + \"/sg-ws/base\");\r\n\t\t\tOPENFIRE_SERVER_HOST = relHost;\r\n\t\t\tbreak;\r\n\t\tcase VERSION_MODE_TEST:\r\n\t\t\tsbUrl.append(SERVER_HOST_TEST + \":\" + port_test + \"/sg-ws/base\");\r\n//\t\t\tOPENFIRE_SERVER_HOST = ALIYUN_OPENFIRE_HOST;\r\n\t\t\tbreak;\r\n\t\tcase VERSION_MODE_ALIYUN:\r\n\t\t\tsbUrl.append(ALIYUN_APP_HOST + \":\" + ALIYUN_APP_PORT + \"/sg-ws/base\");\r\n\t\t\tOPENFIRE_SERVER_HOST = ALIYUN_OPENFIRE_HOST;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn sbUrl.toString();\r\n\t}", "title": "" }, { "docid": "bc0ba2c94a13fc73e1797b72afd6ae32", "score": "0.63559854", "text": "@Override\n\tpublic final String getUrlBase() {\n\t\t\n\t\treturn this.urlBase;\n\t}", "title": "" }, { "docid": "b442b5ca43469d3d5214969723de11cf", "score": "0.6347937", "text": "public String getEndpoint() {\n return URL_PATH;\n }", "title": "" }, { "docid": "1d5f895d9e6012e8673f43e825effaaa", "score": "0.6337433", "text": "public static String getBasePortalUrl(String enterpriseAccount, String endpoint) {\n\t\treturn getEndpoint(endpoint) + \"/services/\" + enterpriseAccount + \"/portal/host\";\n\t}", "title": "" }, { "docid": "ee1afbe69ec5b09ec69e53391a7d39bf", "score": "0.63052183", "text": "@java.lang.Override\n public java.lang.String getEndpointUri() {\n java.lang.Object ref = endpointUri_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n endpointUri_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "90030d66085b95737238640579117fdd", "score": "0.630249", "text": "public java.lang.String getEndpointUri() {\n java.lang.Object ref = endpointUri_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n endpointUri_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "6dfd604e097add6caf5438805ec5f6bf", "score": "0.63006115", "text": "public String getResourceUrlFormat( )\r\n {\r\n return AppPropertiesService.getProperty( PROPERTY_RESOURCE_URL_FORMAT );\r\n }", "title": "" }, { "docid": "a2c54751d6b66e15cefb6ee020dfb40b", "score": "0.629615", "text": "public URL createURL() {\n\t\tStringBuilder urlSpec = new StringBuilder(URL_BASE);\n\t\turlSpec.append('?');\n\t\turlSpec.append(URL_BEGIN_DATE).append('=').append(getUrlFragment(beginDate));\n\t\turlSpec.append('&');\n\t\turlSpec.append(URL_END_DATE).append('=').append(getUrlFragment(endDate));\n\t\turlSpec.append('&');\n\t\turlSpec.append(URL_DATA_CHANNEL).append('=').append(dataChannel);\n\t\ttry {\n\t\t\treturn new URL(urlSpec.toString());\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "9af0b21583e77b0362f7457c9a0b7aa1", "score": "0.62785053", "text": "public String buildURLString() {\n return Flinnt.API_URL + Flinnt.URL_CONTENTS_COPY;\n }", "title": "" }, { "docid": "d50a049b1a22ae00215b289f73d2f02f", "score": "0.62379795", "text": "@Override\n public StringBuffer getRequestURL() {\n\n StringBuffer url = new StringBuffer();\n String scheme = getScheme();\n int port = getServerPort();\n if (port < 0)\n port = 80; // Work around java.net.URL bug\n\n url.append(scheme);\n url.append(\"://\");\n url.append(getServerName());\n if ((scheme.equals(\"http\") && (port != 80))\n || (scheme.equals(\"https\") && (port != 443))) {\n url.append(':');\n url.append(port);\n }\n url.append(getRequestURI());\n\n return (url);\n\n }", "title": "" }, { "docid": "4269111c0051df661590a312c7fee456", "score": "0.62179935", "text": "public static String getBaseURIForEndPoint() throws IOException\r\n\t{\r\n\t\t//Get the restbase base URL\r\n\t\t\t\treturn ReadPropertyFile.readPropFileAndReturnPropertyValue(BusinessFunctions.BASEURI);\r\n\t}", "title": "" }, { "docid": "4b9c1be1143b260259f411ef1be5b96c", "score": "0.6203913", "text": "java.lang.String getApiEndpoint();", "title": "" }, { "docid": "13401a98ca27d49a772b31bac058a81b", "score": "0.61925346", "text": "public String buildURLString() {\n\t\treturn Flinnt.API_URL + Flinnt.URL_COMMUNICATION_OPTIONS;\n\t}", "title": "" }, { "docid": "265a24200750966bf640af403752da84", "score": "0.61811364", "text": "public static String getBaseUri(Servers server) {\r\n StringBuilder baseUrl = new StringBuilder(environmentMapper(Configuration.environment, server));\r\n Map<String, Object> parameters = new HashMap<String, Object>();\r\n APIHelper.appendUrlWithTemplateParameters(baseUrl, parameters);\r\n return baseUrl.toString();\r\n }", "title": "" }, { "docid": "af70c6ae0082d806e5de4f59972c512b", "score": "0.61690074", "text": "String getRequestMethodBaseUri();", "title": "" }, { "docid": "0008ebdf0eed35fed1480a554cf8638e", "score": "0.61595273", "text": "URL getBaseURL();", "title": "" }, { "docid": "33a3860b1e7be35501ec86daaf028171", "score": "0.61165065", "text": "java.lang.String getNewBaseUrl();", "title": "" }, { "docid": "fe79c0e4e8c9ad2e67a9edc92423805a", "score": "0.6053813", "text": "private String getBaseUri() {\n\t\tfinal String URI = \"http://localhost\";\n\n\t\t//default port is 3000\n\t\tString portStr = System.getProperty(\"port\", \"3000\");\n\n\t\t//exception would be thrown if the input port is not integer\n\t\tint port = Integer.valueOf(portStr);\n\n\t\treturn URI + \":\" + port + \"/\";\n\n\t}", "title": "" }, { "docid": "64e068ed61eb084b57742882938d7e8c", "score": "0.60192555", "text": "String getEndpoint();", "title": "" }, { "docid": "e1b38d692d7914f68d99f1da3244c373", "score": "0.5991314", "text": "public String getUrl() {\n if (! this.isParseUrl()) {\n return this.url;\n }\n \n if (! this.hasAllRequiredTokens()) {\n return \"\";\n }\n \n // Compose the URL based on the properties set.\n int length = urlComponents.size();\n UrlSection section = new UrlSection();\n \n // Iterate through the components that define the structure\n // of a URL. Use this to build up a URL string, substituting\n // in values when parameter tokens are found.\n for (int i=0 ; i < length ; i++) {\n String component = urlComponents.get(i); \n if (isOptionalStart(component)) {\n section.setOptionalChild(new OptionalSection());\n section = section.getOptionalChild();\n } else if (isOptionalEnd(component)) {\n UrlSection parent = ((OptionalSection)section).getParent();\n parent.addText(section.getText());\n section = parent;\n } else if (supportedTokens.contains(component)) {\n section.setValue(get(component));\n } else {\n section.addText(component);\n }\n }\n \n return section.getText();\n }", "title": "" }, { "docid": "5f2123c5ffb022ac23f15aa7f0ec76f2", "score": "0.5967441", "text": "public String getURL() {\n\t\treturn appendQuery(url).toString();\n\t}", "title": "" }, { "docid": "6660ef48f1b1a8f41e057d769ae05a96", "score": "0.59627503", "text": "public java.lang.String getBaseUrl() {\n java.lang.Object ref = baseUrl_;\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 baseUrl_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "5c16d57589b8c84340d8ef04da26bb18", "score": "0.59608835", "text": "String getUrl(String uri) {\n String path = uri.toLowerCase();\n StringBuilder sb = new StringBuilder();\n if(path.startsWith(\"http://\") || path.startsWith(\"https://\")) {\n sb.append(path);\n } else {\n sb.append(endpoint());\n if(!path.startsWith(\"/\")) {\n sb.append(\"/\");\n }\n sb.append(path);\n }\n\n uri = sb.toString();\n return uri;\n }", "title": "" }, { "docid": "567280688efa1b578aad34bcc1f0d435", "score": "0.5954116", "text": "private String createLDAPURL(String host, String port, String baseDN) {\n StringBuilder url = new StringBuilder();\n url.append(\"ldap://\");\n url.append(host);\n url.append(':');\n url.append(port);\n if ((baseDN != null) && (baseDN.length() >= 3)) {\n if (!baseDN.startsWith(\"/\")) {\n url.append('/');\n }\n url.append(baseDN);\n }\n return url.toString();\n }", "title": "" }, { "docid": "6724fc9f9c204c238b9c77fac3eb2aff", "score": "0.5943421", "text": "public URL getURL(URL baseURL, Stage stage) throws MalformedURLException {\n\t\treturn new URL(baseURL, String.format(urlTemplate, stage.getProfileID(), stage.getStageID()));\n\t}", "title": "" }, { "docid": "d7457f75d041c3e99761bc484d64b2b7", "score": "0.59311414", "text": "default String uri() {\n String v = get(prefix() + \".apiHost\");\n return v == null ? \"https://ingest.signalfx.com\" : v;\n }", "title": "" }, { "docid": "f2a044f215d0950a88984fbd422f5c26", "score": "0.58951396", "text": "public String getPreparedUrl() {\n if (preparedUrl == null) {\n String url = getUrl();\n\n String urlWithSchema;\n if (url.startsWith(\"http://\") || url.startsWith(\"https://\")) {\n urlWithSchema = url;\n } else {\n urlWithSchema = (getSsl() != null ? \"https://\" : \"http://\") + url;\n }\n\n this.preparedUrl = urlWithSchema.endsWith(\"/\") ? urlWithSchema : urlWithSchema + \"/\";\n }\n return preparedUrl;\n }", "title": "" }, { "docid": "8a416cc29cde4c6b7fbde44e24af333c", "score": "0.58942044", "text": "public static String getBaseUri() {\r\n return Configuration.getBaseUri(Servers.ENUM_DEFAULT);\r\n }", "title": "" }, { "docid": "ffaac81bb43a78c84c27adbaa53799a4", "score": "0.58931863", "text": "public final String build() {\n return url.buildRelativeUrl().substring(\"/\".length());\n }", "title": "" }, { "docid": "cdab5d4d4ca7c267d0ec605f8e8d4c98", "score": "0.58924156", "text": "String baseUrl();", "title": "" }, { "docid": "ecb7d1f02ca42ebef1dfad89efc76157", "score": "0.58840686", "text": "@Override\n public String toString() {\n return \"http://\" + url;\n }", "title": "" }, { "docid": "83fb8a4c48cb0c9d283087b43001baed", "score": "0.5875993", "text": "String getGatewayURL();", "title": "" }, { "docid": "da1498f1abda50e3aa52c91418c79fd3", "score": "0.5863318", "text": "public URL buildUrl(String endPoint) {\n Uri builtUri = Uri.parse(TMDB_URL + endPoint).buildUpon()\n .appendQueryParameter(PARAM_API, apiKey)\n .build();\n\n URL url = null;\n try {\n url = new URL(builtUri.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n return url;\n }", "title": "" }, { "docid": "f987120a639494c2c0a9da4a40155aaa", "score": "0.58625424", "text": "public String getEndpointUri()\n {\n return endpointUri;\n }", "title": "" }, { "docid": "c39a42729b3e3cc47ef73de5d6580d0a", "score": "0.58377874", "text": "public String completeUrl(String base_url,String... args) {\n String[] newArgs = new String[args.length+1];\n newArgs[0] = plivoAuthenticator.getAuth_id();\n for(int i=0;i<args.length;i++) {\n newArgs[i+1] = args[i];\n }\n return String.format(base_url,newArgs);\n }", "title": "" }, { "docid": "b960f9d5650331b7547dfd16d5aaf111", "score": "0.58348066", "text": "public java.lang.String getBaseUrl() {\n java.lang.Object ref = baseUrl_;\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 baseUrl_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "9ccea606407933e6926c16f024325cfb", "score": "0.5822003", "text": "URI getBaseUri();", "title": "" }, { "docid": "9ccea606407933e6926c16f024325cfb", "score": "0.5822003", "text": "URI getBaseUri();", "title": "" }, { "docid": "9ccea606407933e6926c16f024325cfb", "score": "0.5822003", "text": "URI getBaseUri();", "title": "" }, { "docid": "c8f927612d7cd98f710f90ad4aeff528", "score": "0.58037174", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getEndpointUriBytes() {\n java.lang.Object ref = endpointUri_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n endpointUri_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "1eb849855bd5041249b1ec9678c61716", "score": "0.5800431", "text": "private String createSearchTenantUrl() {\n StringBuilder uriBuilder = new StringBuilder();\n uriBuilder.append(mdsConfiguration.getIfixMasterGovernmentHost())\n .append(mdsConfiguration.getIfixMasterGovernmentContextPath())\n .append(mdsConfiguration.getIfixMasterGovernmentSearchPath());\n return uriBuilder.toString();\n }", "title": "" }, { "docid": "f7af966787c3031c8b6662cb503d731f", "score": "0.5798621", "text": "private String makeUrl(Properties theseProperties)\n\t{\n\t\tString thisURL = theseProperties.getProperty(\"url\");\n\t\tif (thisURL == null || thisURL.isEmpty())\n\t\t{\n\t\t\tString thisProtocol = theseProperties.getProperty(\"protocol\");\n\t\t\tString thisServer = theseProperties.getProperty(\"server\");\n\t\t\tif (thisServer == null || thisServer.isEmpty())\n\t\t\t\tthisServer = \"localhost\";\n\t\t\tString thisDatabase = theseProperties.getProperty(\"db\");\n\t\t\tthisURL = thisProtocol + \"://\" + thisServer + \"/\" + thisDatabase;\n\t\t}\n\t\treturn thisURL;\n\t}", "title": "" }, { "docid": "3f1df44e23bc95a5271f5506498ca064", "score": "0.5797965", "text": "public String getUriBase() {\n String[] uriStrArray = uriStr.split(\"/\");\n return uriStrArray.length > 1 ? uriStrArray[1] : \"\";\n }", "title": "" }, { "docid": "f62923cb8f7d4087911a8280c8dc14e5", "score": "0.57976156", "text": "java.lang.String getServiceEndpoint();", "title": "" }, { "docid": "f9080209d06ae88054b1aabf0a54f705", "score": "0.57935756", "text": "public String getTestURL() {\n return NameUtils.ensureLastSlash( BASE_URL.substring(0, BASE_URL.length()-1) + getWebappContext() );\n }", "title": "" }, { "docid": "f144ea4fff9af23ef1ef22c8e45439b6", "score": "0.5792744", "text": "public String getBaseUrl2() {\r\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\r\n String requestServer = request.getServerName();\r\n String requestScheme = request.getScheme();\r\n int serverPort = request.getServerPort();\r\n ServletContext servletContext = (ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext();\r\n String serverContextPath = servletContext.getContextPath();\r\n String logoutUrl = requestScheme + \"://\" + requestServer + \":\" + Integer.toString(serverPort) + serverContextPath;\r\n return logoutUrl;\r\n }", "title": "" }, { "docid": "c77991fe8c512675bbd387ba1a66e679", "score": "0.57905644", "text": "public static String getBaseUrl() {\n\t\treturn String.format(\"http://%s:%d\", server.getIp(), server.getPort());\n\t}", "title": "" }, { "docid": "a36985a03d163401c5583e3558169d89", "score": "0.5787053", "text": "protected abstract String baseUrl();", "title": "" }, { "docid": "4b2145fbe7f3f5297c190f6bfc6f233d", "score": "0.57744163", "text": "public static String getURL(String property) {\r\n\r\n AbpSettings settings = AbpSettings.getInstance();\r\n\r\n String host = settings.getString(PREFIX + URLConstants.URL_HOST_KEY);\r\n\r\n String responseType = settings.getString(PREFIX + URLConstants.URL_RESPONSE_TYPE_KEY);\r\n\r\n String service = settings.getString(PREFIX + property);\r\n\r\n StringBuilder builder = new StringBuilder();\r\n builder.append(host);\r\n builder.append(service);\r\n\r\n if (responseType != null && !responseType.equals(\"\")) {\r\n builder.append(\"?responsetype=\" + responseType);\r\n }\r\n\r\n return builder.toString();\r\n }", "title": "" }, { "docid": "94398c0660b5f24ec15448d5394b7ac4", "score": "0.57706106", "text": "public String getRemoteUrl() {\n return user + accessKey + baseurl;\n }", "title": "" }, { "docid": "4b380c8e029f661e0226cdec91c35fa8", "score": "0.57639253", "text": "public UrlBuilder(String base) throws MalformedURLException {\n\t\t\tcontext_ = new URL(base);\n\t\t\tquery_ = \"\";\n\t\t\tjoiner_ = \"?\";\n\t\t}", "title": "" }, { "docid": "e1b7c9ed91193e688edef0f90f561f36", "score": "0.5742326", "text": "UriBuilder getBaseUriBuilder();", "title": "" }, { "docid": "2984225249c9e3b4b8aa6520edcebe7c", "score": "0.5741766", "text": "private String buildBaseUrl(int sslFlg, String siteAliasUrl) {\n\t\tStringBuilder url = new StringBuilder(75);\n\t\turl.append(sslFlg == SiteVO.SITE_SSL ? \"https://\" : \"http://\");\n\t\turl.append(siteAliasUrl).append(Section.UPDATES_EDITION.getPageURL());\n\t\treturn url.toString();\n\t}", "title": "" }, { "docid": "ce88c77739fb5eb09cf82cb504700a9a", "score": "0.574145", "text": "java.lang.String getUri();", "title": "" }, { "docid": "1432ee9b0066a78404170e3921575bad", "score": "0.57393306", "text": "@Override\n public String getBaseURL() {\n\n String currentURL = getCurrentURL();\n try {\n URL url = new URL(currentURL);\n return new URL(currentURL).getProtocol() + \"://\" + url.getHost();\n } catch (MalformedURLException e) {\n LOGGER.error(\"The current Url returned by the browser is not valid [{}], O_o\", currentURL, e);\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "1ed6afa01fbbd357a66e9414ad395db5", "score": "0.57290345", "text": "public static String getBaseAPICallUrl() {\n return ApiController.BASE_APIURL + \"/\" + ApiController.API_VERSION;\n }", "title": "" }, { "docid": "d2f6ef4c007caefb2410779e63c5bbdc", "score": "0.57186675", "text": "@Override\n\tprotected String getBaseUrl() {\n\t\treturn BASEBY;\n\t}", "title": "" }, { "docid": "d1086e45b1359bbf106340048bfc01a2", "score": "0.5698777", "text": "String requestUrl();", "title": "" }, { "docid": "cf537b21e44d3026d1c86b5537dcc9ea", "score": "0.56874985", "text": "private String getOauthRedirectUri() {\n return ServletUriComponentsBuilder.fromCurrentContextPath()\n .path(EndpointUris.AUTHORIZATION)\n .build().toUriString();\n }", "title": "" }, { "docid": "afbe66b129ef721fa3f8f7f3227f9aa5", "score": "0.5683176", "text": "public static String getUrl() {\n return \"http://\" + DOMAIN + \":\" + PORT; //this does NOT cause an error to occur when using null!!\n }", "title": "" }, { "docid": "549b628246cbd41cb4cf589131071324", "score": "0.5677247", "text": "AutoRestBaseUrl getBaseUrl();", "title": "" }, { "docid": "098b836d2732d0b649282bb1d2cb4c2f", "score": "0.56758463", "text": "public URI getEndpoint() {\r\n return endpoint;\r\n }", "title": "" }, { "docid": "18729a038064b712d8de28b8c33b31f8", "score": "0.567581", "text": "public String getEndpoint();", "title": "" }, { "docid": "126fbdac8c28b989a7e97655e0da946b", "score": "0.5672605", "text": "private static String getFullURL(HttpServletRequest request) {\n StringBuffer buffer = request.getRequestURL();\n if (request.getQueryString() != null) {\n buffer.append('?');\n buffer.append(request.getQueryString());\n }\n return buffer.toString();\n }", "title": "" }, { "docid": "2ff93be0c452e2261f3a7b399b1b238d", "score": "0.5668289", "text": "public com.google.protobuf.ByteString getEndpointUriBytes() {\n java.lang.Object ref = endpointUri_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n endpointUri_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "1ecacc36435e6b21122eb01f6784d87e", "score": "0.5664514", "text": "@Override\n\tprotected String buildApiDocUrl() {\n\t\treturn buildUrl(contextPath + pathPrefix, springDocConfigProperties.getApiDocs().getPath());\n\t}", "title": "" }, { "docid": "1c09ff46fa36a2e98f4c6da8f6f395ca", "score": "0.5660327", "text": "public String builtURL() {\n\n String MOVIE_BASE_URL =\n \"http://api.themoviedb.org/3/discover/movie?\";\n String QUERY_PARAM = \"sort_by\";\n String APPID_PARAM = \"api_key\";\n\n SharedPreferences categories = PreferenceManager.getDefaultSharedPreferences(getActivity());\n String category = categories.getString(getString(R.string.pref_category_key),\n getString(R.string.pref_category_nowplaying));\n\n SharedPreferences orders = PreferenceManager.getDefaultSharedPreferences(getActivity());\n String order = orders.getString(getString(R.string.pref_sort_key),\n getString(R.string.pref_sort_desc));\n\n Uri.Builder builtUri = Uri.parse(MOVIE_BASE_URL).buildUpon()\n .appendQueryParameter(QUERY_PARAM, category + order)\n .appendQueryParameter(APPID_PARAM, BuildConfig.THE_MOVIE_DB_API_KEY);\n\n // This is the built url for when the app calls on the server for the grid of movies\n return builtUri.toString();\n }", "title": "" }, { "docid": "ec52a94960563d845de23b22491c593a", "score": "0.565085", "text": "java.lang.String getRequestUrl();", "title": "" }, { "docid": "eca84c1a9eec102094e6c75c7deb1c5b", "score": "0.56377935", "text": "public StringBuilder getUpdateDemandUrl() {\n return new StringBuilder().append(configurations.getBillingServiceHost()).append(configurations.getDemandUpdateEndPoint());\n }", "title": "" }, { "docid": "ce8b08ef267624a393275737034c4628", "score": "0.56352854", "text": "public java.lang.String getNewBaseUrl() {\n java.lang.Object ref = newBaseUrl_;\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 newBaseUrl_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "f29906a6f9cfeada7057a26aef5cd462", "score": "0.5621512", "text": "default void decorateServiceURL(final ServiceRequest request) {\n final Service service = request.getService();\n final UriComponentsBuilder builder = getBaseUrl(request);\n Map<String,String> paramMap = request.getParameters();\n if (service.isAddAllParam() && MapUtils.isNotEmpty(paramMap)) {\n for (Entry<String, String> entry : paramMap.entrySet()) {\n builder.replaceQueryParam(entry.getKey(), entry.getValue());\n }\n }\n if (MapUtils.isNotEmpty(request.getPathParameters())) {\n paramMap.putAll(request.getPathParameters());\n }\n request.setUri(builder.buildAndExpand(paramMap).encode().toUri());\n }", "title": "" }, { "docid": "0e7e6202a95ac9657bcbf412084eceac", "score": "0.5619986", "text": "String getURL(String service);", "title": "" }, { "docid": "4820716690485b0408bc95002e4d77ea", "score": "0.5610584", "text": "private String createUrl(String method) {\n return Coriunder.getServiceUrl() + SERVICE_URL_PART + \"/\" + method;\n }", "title": "" }, { "docid": "b2da87cdbfb976b58be2442de55e4016", "score": "0.56048995", "text": "public String getRestUrlBase() {\r\n return restBase;\r\n }", "title": "" }, { "docid": "6c9a1497796e9c428dab431e4554f5da", "score": "0.5602125", "text": "private URI buildRequestURI(HttpRequestBase request) {\r\n\t\tString requestURL = getEndPoint() + request.getURI();\r\n\r\n\t\ttry {\r\n\t\t\trequestURL = getEndPoint() + request.getURI();\r\n\t\t\treturn new URI(requestURL);\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t\tlog.log(Level.SEVERE, requestURL + \" could not be parsed as a URI reference\");\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "541805d629bf76dae1f1e379df52a096", "score": "0.5601832", "text": "private URL encodeUrl(String eventId) throws MalformedURLException {\n String query = \"id=\" + eventId + \"&apikey=\" + API_KEY;\n URL url;\n url = new URL(API_BASE_URL + query);\n return url;\n\n }", "title": "" }, { "docid": "ea53810ea1df52050b419d80998285f1", "score": "0.55986595", "text": "private URI compileUri() {\n\t\ttry {\n\t\t\tboolean oAuth = (consumerKey != null) && (consumerSecret != null);\n\t\t\tboolean aliasQuery = queryString == null;\n\n\t\t\tString baseUri = oAuth ? QUERY_URL_OAUTH : QUERY_URL_PUBLIC;\n\t\t\tif (aliasQuery) {\n\t\t\t\tbaseUri += \"/\" + aliasPrefix + \"/\" + aliasName;\n\t\t\t}\n\t\t\tURIBuilder builder = new URIBuilder(baseUri);\n\n\t\t\t// Set parameters\n\t\t\tbuilder.addParameter(\"diagnostics\", Boolean.toString(diagnostics));\n\t\t\tfor (String env : environmentFiles) {\n\t\t\t\tbuilder.addParameter(\"env\", env);\n\t\t\t}\n\t\t\tif (format != null) {\n\t\t\t\tbuilder.addParameter(\"format\", format.name().toLowerCase());\n\t\t\t}\n\t\t\tif (!aliasQuery) {\n\t\t\t\tString useTablesPrefix = \"\";\n\t\t\t\tfor (Entry<String, String> entry : tableFiles.entrySet()) {\n\t\t\t\t\tuseTablesPrefix += \"USE '\" + entry.getKey() + \"' AS \" + entry.getValue() + \"; \";\n\t\t\t\t}\n\t\t\t\tbuilder.addParameter(\"q\", useTablesPrefix + queryString);\n\t\t\t}\n\t\t\tfor (Entry<String, String> varDef : variables.entrySet()) {\n\t\t\t\tbuilder.addParameter(varDef.getKey(), varDef.getValue());\n\t\t\t}\n\n\t\t\treturn builder.build();\n\t\t} catch (URISyntaxException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "54a1e33a6d4b899b686dc60de25609bd", "score": "0.5584944", "text": "java.lang.String getAuthUrl();", "title": "" }, { "docid": "ff583285030c548c9a7c741ade45f90d", "score": "0.55747044", "text": "public String build() {\n\t\treturn this.pathParams != null ? this.builder.buildAndExpand(pathParams).toUriString()\n\t\t\t\t: this.builder.build().toUriString();\n\t}", "title": "" }, { "docid": "0953c57248f0e620c1f9cb80cc104d7e", "score": "0.5559422", "text": "public URL toUrl() throws MalformedURLException {\n\t\t\treturn new URL(context_, query_);\n\t\t}", "title": "" }, { "docid": "ec369dbf2720c5cab142692fc2c0d6b8", "score": "0.55535686", "text": "public String getEndpoint() { return endpoint; }", "title": "" }, { "docid": "321da0bae559c47ebd5b98bc8f815b1e", "score": "0.5548207", "text": "String getGitTransportUrl();", "title": "" }, { "docid": "7992b0ad00bcf53efd337b6a66122c36", "score": "0.55425453", "text": "protected String getEndpoint() {\n \treturn String.format(\"http://api.mijntuin.org/plants/show?plant_id=%s&image_size=f\", \n \t\t\tid);\n }", "title": "" }, { "docid": "72248f58a40a392c219f90ae32f67033", "score": "0.55409753", "text": "public String getServerBaseURL() {\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this.appContext);\n String baseURL = sharedPref.getString(\"ServerURL\", serverBaseUrl);\n\t\treturn baseURL + \"/index.php/api/example\";\n\t}", "title": "" }, { "docid": "927339b8d93fb54e119f5938eb8cc5d8", "score": "0.5536096", "text": "public java.lang.String getNewBaseUrl() {\n java.lang.Object ref = newBaseUrl_;\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 newBaseUrl_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "8ca666dae4f0788e207e45592d173d68", "score": "0.55358166", "text": "String getRequestUri();", "title": "" }, { "docid": "d63a0a485e3a198475ce8d423a5f2c77", "score": "0.5528225", "text": "private String buildRedirectionDetailsBaseUrl( )\n {\n UrlItem urlRedirectionDetails = new UrlItem( MultiviewFormResponseDetailsJspBean.getMultiviewRecordDetailsBaseUrl( ) );\n\n if ( !CollectionUtils.isEmpty( _listFormFilterDisplay ) )\n {\n for ( IFormFilterDisplay formFilterDisplay : _listFormFilterDisplay )\n {\n // Add all the filters values\n String strFilterValue = formFilterDisplay.getValue( );\n if ( !StringUtils.isEmpty( strFilterValue ) )\n {\n String strFilterFullName = FormsConstants.PARAMETER_URL_FILTER_PREFIX + formFilterDisplay.getParameterName( );\n urlRedirectionDetails.addParameter( strFilterFullName, strFilterValue );\n }\n }\n }\n\n // Add the selected panel technical code\n urlRedirectionDetails.addParameter( FormsConstants.PARAMETER_SELECTED_PANEL, _strSelectedPanelTechnicalCode );\n\n // Add sort filter data to the url\n addFilterSortConfigToUrl( urlRedirectionDetails );\n\n return urlRedirectionDetails.getUrl( );\n }", "title": "" }, { "docid": "09ee98229fab8172cb6384289109e28d", "score": "0.5526911", "text": "public String getBaseUrl(String... parameterNames) {\n return getSuffixedUrl(null, parameterNames);\n }", "title": "" }, { "docid": "959a2c9d9cefaa4cd4fff80e16b88f95", "score": "0.55265063", "text": "public String toURI() {\n final StringBuilder buffer = new StringBuilder();\n buffer.append(this.schemeName);\n buffer.append(\"://\");\n buffer.append(this.host.toString());\n return buffer.toString();\n }", "title": "" }, { "docid": "0a120dd1fd3a602e7d4f3fb7b494175a", "score": "0.55224437", "text": "private void apiUrl() {\n endPoint = Config.Url.productlist +\"/\"+StoreId+\"/\"+storecategoryId+\"/\"+intentCategoryId +\"/\"+\"-1\";\n\n // endPoint = Config.Url.productlist;\n }", "title": "" }, { "docid": "d7bc06c9e95df243fa172d7ea4d29c82", "score": "0.5517872", "text": "static String logServiceBaseURL() {\n\t\tif (serviceType == AML_DEVICE_SERVICE) {\n\t\t\t//return GBL_LOG_FIELD_URL;\n\t\t\treturn (AML_SERVICE_LOCATION_USA.equals(serviceLocation)) ? GBL_LOG_FIELD_URL : GBL_LOG_FIELD_CN_URL;\n\t\t}\n\t\tif (serviceType == AML_FIELD_SERVICE) {\n\n\t\t\tString url;\n\n\t\t\tswitch(serviceLocation){\n\t\t\t\tcase AML_SERVICE_LOCATION_USA:\n\t\t\t\t\turl = GBL_LOG_FIELD_URL;\n\t\t\t\t\tbreak;\n\t\t\t\tcase AML_SERVICE_LOCATION_CHINA:\n\t\t\t\t\turl = GBL_LOG_FIELD_CN_URL;\n\t\t\t\t\tbreak;\n\t\t\t\tcase AML_SERVICE_LOCATION_EUROPE:\n\t\t\t\t\turl = GBL_LOG_FIELD_EU_URL;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\turl = GBL_LOG_FIELD_URL;\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\treturn url;\n\t\t}\n\t\tif (serviceType == AML_DEVELOPMENT_SERVICE) {\n\t\t\t//return GBL_LOG_DEVELOP_URL;\n\t\t\treturn (AML_SERVICE_LOCATION_USA.equals(serviceLocation)) ? GBL_LOG_DEVELOP_URL : GBL_LOG_DEVELOP_CN_URL;\n\t\t}\n\t\tif (serviceType == AML_STAGING_SERVICE) {\n\t\t\t//return GBL_LOG_STAGING_URL;\n\t\t\treturn (AML_SERVICE_LOCATION_USA.equals(serviceLocation)) ? GBL_LOG_STAGING_URL : GBL_LOG_STAGING_CN_URL;\n\t\t}\n\t\tif (serviceType == AML_DEMO_SERVICE) {\n\t\t\t//return GBL_LOG_DEMO_URL;\n\t\t\treturn (AML_SERVICE_LOCATION_USA.equals(serviceLocation)) ? GBL_LOG_DEMO_URL : GBL_LOG_DEMO_CN_URL;\n\t\t}\n\t\tsaveToLog(\"%s, %s, %s:%s, %s\", \"E\", \"SystemUtils\", \"serviceType\", \"null\", \"logServiceBaseURL\");\n\t\treturn null;\n\t}", "title": "" }, { "docid": "578df9250e4b6e645bf4d28ada90211c", "score": "0.5515237", "text": "String uri();", "title": "" }, { "docid": "1eb4c17d5b2a7430598c5f3272736edc", "score": "0.5513414", "text": "private URI getSelfLink(final GenericEndpoint endpoint)\n throws ResourceNotFoundException {\n return getSelfLink(endpoint, genericEndpointAssembler);\n }", "title": "" } ]
ec5f402b0822b8828cacbeeac4a27ab1
Server communication Reads from the server process's stdout until the port number is printed, then stores it in port. This blocks until the port number is read, or throws an exception.
[ { "docid": "df617b493d3d1ce486c8ab054c49256b", "score": "0.7886715", "text": "private void capturePortNumber() throws IOException {\n \t\t// Wait until the port number is printed\n \t\tfinal String start = \"=== Listening on port: \";\n \t\tString line;\n \t\tdo {\n \t\t\tline = serverStdOutReader.readLine();\n \t\t\tif (line == null) {\n \t\t\t\tthrow new ScionServerException(\"Server process gave EOF before printing port number\");\n \t\t\t}\n \t\t\tTrace.trace(SERVER_STDOUT_PREFIX, line);\n \t\t} while (!line.startsWith(start));\n \t\t\n \t\t// Parse the port number from the string\n \t\tport = Integer.parseInt(line.substring(start.length()));\n \t}", "title": "" } ]
[ { "docid": "023d5f9b49f066ea084c509fc1bc02a5", "score": "0.68894285", "text": "protected synchronized void getPortFromServer() {\n try {\n socket = new Socket(\"localhost\", PortNumbers.SERVER_PORT);\n DataInputStream inputStream = new DataInputStream(socket.getInputStream());\n DataOutputStream outputStream = new DataOutputStream(socket.getOutputStream());\n outputStream.writeInt(ClientType.BOT);\n do {\n outputStream.writeInt(portNumber);\n outputStream.writeUTF(this.getName());\n Thread.sleep(1000);\n portNumber = inputStream.readInt();\n Thread.sleep(1000);\n } while (portNumber < 0);\n socket.close();\n } catch (IOException e) {\n System.out.println(\"Could not receive port from server!\");\n } catch (InterruptedException e) {\n System.out.println(\"Interrupted while receiving port!\");\n }\n }", "title": "" }, { "docid": "bccd621335c20553cfbb0a71a5109c56", "score": "0.6650438", "text": "public void listen(){\n try{\n for(;;){\n Socket client = serverSocket.accept();\n System.out.println(client);\n //someone has connected, start a new server thread...\n qServerTcp aServer = new qServerTcp(0); //first available port\n PrintWriter writer = new PrintWriter(client.getOutputStream(), true);\n aServer.start();\n //let the client know of a new port\n writer.println(aServer.getLocalPort());\n //close the outfacing port to allow for another client\n client.close();\n }\n }catch(Exception e){\n System.out.println(e);\n }\n }", "title": "" }, { "docid": "995ccbb1d4444571942d5510d8f5f27a", "score": "0.6520222", "text": "int start() throws IOException {\n server.start();\n return server.getPort();\n }", "title": "" }, { "docid": "79824021bd8a5c1aece29e9b57a6e980", "score": "0.64110404", "text": "private void waitForConn() throws IOException {\n Socket temp = this.serviceSocket.accept();\n new PrintWriter(temp.getOutputStream(), true).println(\"\" + portNumber);\n temp.close();\n new ServiceServer(portNumber).start();\n portNumber++;\n }", "title": "" }, { "docid": "e214d5eeba14bd6045507de9b4b426c8", "score": "0.63693917", "text": "private native int listen (int port) throws IOException, IllegalArgumentException;", "title": "" }, { "docid": "8e043c94c642e850f757e73766e8db97", "score": "0.62907296", "text": "public int start() throws IOException {\n\t\tsynchronized (this.monitor) {\n\t\t\tAssert.state(this.serverThread == null, \"Server already started\");\n\t\t\tServerSocketChannel serverSocketChannel = ServerSocketChannel.open();\n\t\t\tserverSocketChannel.socket().bind(new InetSocketAddress(this.listenPort));\n\t\t\tint port = serverSocketChannel.socket().getLocalPort();\n\t\t\tlogger.trace(\"Listening for TCP traffic to tunnel on port \" + port);\n\t\t\tthis.serverThread = new ServerThread(serverSocketChannel);\n\t\t\tthis.serverThread.start();\n\t\t\treturn port;\n\t\t}\n\t}", "title": "" }, { "docid": "a1805852dc14666133f07b621afdc1bf", "score": "0.60646063", "text": "protected void listenOnPort() throws Exception {\r\n\t\tif (serverSocket == null)\r\n\t\t\tinitSocket();\r\n\t\tSocket clientSocket = null;\r\n\t\ttry {\r\n\t\t\twhile (true) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tclientSocket = serverSocket.accept();\r\n\t\t\t\t\tif (badSocket(clientSocket)) {\r\n\t\t\t\t\t\tcloseSocket(clientSocket);\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"got a client from \"\r\n\t\t\t\t\t\t\t+ clientSocket.getInetAddress() + \"to \"\r\n\t\t\t\t\t\t\t+ clientSocket.getLocalAddress() + \" on \"\r\n\t\t\t\t\t\t\t+ getPortNumber());\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\tSystem.out.println(\"DBAuthService failed to accept on \"\r\n\t\t\t\t\t\t\t+ getPortNumber() + \": \" + ex);\r\n\t\t\t\t\tSystem.exit(1);\r\n\t\t\t\t}\r\n\t\t\t\tdoHttpTransaction(clientSocket);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d1f84327c207fbe4ce8c13a5489ead03", "score": "0.6009113", "text": "public Server (int port) throws IOException\n {\n ListeningSocket = new DatagramSocket (port);\n }", "title": "" }, { "docid": "b0d18bc9475df4c1c06744050219e8f3", "score": "0.60020053", "text": "public static void startServer(int port) throws IOException {\n sSocket = new ServerSocket(port);//initiate server socket\r\n System.out.println(\"server has been set for port: \" + port);\r\n clientList = new ArrayList<sClient>();\r\n\r\n BasicServer.ServerThread = new ListenServerThread();\r\n BasicServer.ServerThread.start(); //start thread to listen for/accept new clients\r\n System.out.println(\"server has been started\");\r\n }", "title": "" }, { "docid": "21ed7a2d6a266707a026ee7879c37a20", "score": "0.59617084", "text": "public static int checkPortNumber() {\n\tboolean checker = false;\n\tString serverPort = \"\";\n\t// This loop will run until user inputs a valid port number\n\twhile(!checker) {\n\t // Ask user for a port number\n\t System.out.print(\"\\nPlease enter the port number provided by Server: \");\n\t Console console = System.console();\n serverPort = console.readLine();\n\t // check if the port number is valid or not\n\t try {\n\t\tif(Integer.parseInt(serverPort) >= 0 && Integer.parseInt(serverPort) <= 65535) {\n\t\t checker = true;\n\t\t}\n\t }\n\t catch (NumberFormatException e) { }\n\t // if the port number is invalid, show error message to user\n\t if(!checker) {\n\t\tSystem.out.println(\"\\nYou have entered an invalid port number. Please try again.\");\n\t\tSystem.out.println(\"Port number should be an integer from 0 to 65535.\");\n\t }\n\t}\n\t// return the valid port number\n\treturn Integer.parseInt(serverPort);\n }", "title": "" }, { "docid": "87f3bab830d1bfb30f6db3732d3fb93a", "score": "0.59596944", "text": "public void run(){\n\t\tint numberRead = 0;\n\t\tOutputStream toLocal;\n\t\tInputStream fromServer;\n\n\t\ttry{\n\t\t\ttoLocal = outgoing.getOutputStream(); \n\t\t\tfromServer = incoming.getInputStream();\n\t\t\tboolean notEnd = true;\n\t\t\twhile (notEnd) {\n\t\t\t\tif(incoming.isInputShutdown())\n\t\t\t\t\tbreak;\n\t\t\t\tnumberRead = fromServer.read();\n\t\t\t\tif (numberRead == -1){\n\t\t\t\t\tif (consoleLog.isDebugEnabled()) {\n\t\t\t\t\t\tconsoleLog.debug(\"Closing a ProxyPipeIn: \" \n\t\t\t\t\t\t\t\t+ incoming.getPort() + \" \" \n\t\t\t\t\t\t\t\t+ incoming.getLocalPort() + \" \" \n\t\t\t\t\t\t\t\t+ outgoing.getPort() + \" \" \n\t\t\t\t\t\t\t\t+ outgoing.getLocalPort());\n\t\t\t\t\t}\n\t\t\t\t\tincoming.close();\n\t\t\t\t\tnotEnd = false;\n\t\t\t\t} else {\n\t\t\t\t\tmyProxyOwner.incrementProxyReceiveAmount();\n\t\t\t\t\tif (myProxyOwner.getProxyTimeResponded() == 0) {\n\t\t\t\t\t\tmyProxyOwner.setProxyTimeResponded(System.currentTimeMillis());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttoLocal.write(numberRead);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SocketTimeoutException e) {\n\t\t\t//Normal exception\n\t\t\tif (consoleLog.isDebugEnabled()) {\n\t\t\t\tconsoleLog.debug(\"Socket Timed Out\", e);\n\t\t\t}\n\t\t\tmyProxyOwner.setProxyMessage(\"SocketTimeoutException\");\n\t\t\ttry {\n\t\t\t\tincoming.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\tconsoleLog.error(\"Could not close the local socket.\", e1);\n\t\t\t}\n\t\t} catch (UnknownHostException e) {\n\t\t\t//Fatal Exception\n\t\t\tconsoleLog.fatal(\"UnknownHostException \" + incoming.getInetAddress(), e);\n\t\t\tmyProxyOwner.setProxyMessage(\"UnknownHostException \" + incoming.getInetAddress());\n\t\t\ttry {\n\t\t\t\tincoming.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\tconsoleLog.error(\"Could not close the local socket.\", e1);\n\t\t\t}\n\t\t} catch (BindException e) {\n\t\t\t//Fatal Exception\n\t\t\tconsoleLog.fatal(\"BindException to remoteport: \" + incoming.getPort(), e);\n\t\t\tmyProxyOwner.setProxyMessage(\"BindException to remoteport: \" + incoming.getPort());\n\t\t\ttry {\n\t\t\t\tincoming.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\tconsoleLog.error(\"Could not close the local socket.\", e1);\n\t\t\t}\n\t\t} catch (ConnectException e) {\n\t\t\t//Fatal Exception\n\t\t\tconsoleLog.fatal(\"ConnectException to: \" + incoming.getInetAddress() + \":\" + incoming.getPort(), e);\n\t\t\tmyProxyOwner.setProxyMessage(\"ConnectException to: \" + incoming.getInetAddress() + \":\" + incoming.getPort());\n\t\t\ttry {\n\t\t\t\tincoming.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\tconsoleLog.error(\"Could not close the local socket.\", e1);\n\t\t\t}\n\t\t} catch (NoRouteToHostException e) {\n\t\t\t//Fatal Exception\n\t\t\tconsoleLog.fatal(\"NoRouteToHostException to remote host: \" + incoming.getInetAddress(), e);\n\t\t\tmyProxyOwner.setProxyMessage(\"NoRouteToHostException to remote host: \" + incoming.getInetAddress());\n\t\t\ttry {\n\t\t\t\tincoming.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\tconsoleLog.error(\"Could not close the local socket.\", e1);\n\t\t\t}\n\t\t} catch (PortUnreachableException e) {\n\t\t\t//Fatal Exception\n\t\t\tconsoleLog.fatal(\"PortUnreachableException to remote port: \" + incoming.getPort(), e);\n\t\t\tmyProxyOwner.setProxyMessage(\"PortUnreachableException to remote port: \" + incoming.getPort());\n\t\t\ttry {\n\t\t\t\tincoming.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\tconsoleLog.error(\"Could not close the local socket.\", e1);\n\t\t\t}\n\t\t} catch (SocketException e) {\n\t\t\t//Occurs when a connection resets on a bad port\n\t\t\t//Fatal Exception\n\t\t\tconsoleLog.fatal(\"SocketException to remote port: \" + incoming.getPort(), e);\n\t\t\tmyProxyOwner.setProxyMessage(\"SocketException to remote port: \" + incoming.getPort());\n\t\t\ttry {\n\t\t\t\tincoming.close();\n\t\t\t\toutgoing.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\tconsoleLog.error(\"Could not close the local socket.\", e1);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t//Normal Exception\n\t\t\tconsoleLog.error(\"IOException when accepting new connection.\", e);\n\t\t\tmyProxyOwner.setProxyMessage(\"IO Error\");\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t//Buffer overflow, should be impossible\n\t\t\tconsoleLog.error(\"Buffer Overflow on \" + numberRead, e);\n\t\t}\n\t}", "title": "" }, { "docid": "f26a755de77e99715c5c20eee8252b00", "score": "0.59587115", "text": "public void setupServerSocket(int port, ServerProcess<? extends Socket> serverProcess) {\n if (running) return;\n running = true;\n listenThread = new Thread(() -> {\n ServerSocket serverSock = null;\n try {\n serverSock = new ServerSocket(port);\n } catch (IOException e) {\n e.printStackTrace(); //end the program since this can not fail.\n System.exit(0);\n }\n\n while (running) {\n try {\n Socket sock = serverSock.accept();\n //we got a packet\n if (serverSockets.size() > 100) // packet drop.\n continue;\n serverSockets.push(sock);\n } catch (IOException e) {\n }\n }\n });\n listenThread.start();\n server = new Thread(() -> {\n final ServerProcess serverProcess1 = serverProcess;\n while (running) {\n while (!serverSockets.isEmpty()) {\n Socket ptr = serverSockets.pop();\n if (ptr != null)\n try {\n serverProcess1.process(ptr);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n });\n server.start();\n }", "title": "" }, { "docid": "77e1192a60bff2756f72d646fa09a27c", "score": "0.59372175", "text": "public String recv(String receivingPort);", "title": "" }, { "docid": "12048a938aff7f95b4ff0a707e24db78", "score": "0.592856", "text": "public int getPort()\n\t{\n\t\tif (server != null && !server.isClosed())\n\t\t{\n\t\t\treturn server.getLocalPort();\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "a9d611a2591012bda3aa0892d064ca7f", "score": "0.59265065", "text": "public int getPort() { return port; }", "title": "" }, { "docid": "a9d611a2591012bda3aa0892d064ca7f", "score": "0.59265065", "text": "public int getPort() { return port; }", "title": "" }, { "docid": "f2f58f2f1b0f5ae3700f76c8b3c6dcdf", "score": "0.59130454", "text": "private void run() {\n\t\ttry {\n\t\t\tserv = new ServerSocket(PORT);\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Error creating server socket\");\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\"Server running...\");\n\t\twhile(true) {\n\t\t\tSystem.out.println(\"Waiting for a connection...\");\n\t\t\t//Attempt connection\n\t\t\ttry {\n\t\t\t\tsock = serv.accept();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Error accepting connection...\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t//Connection successful\n\t\t\tSystem.out.println(\"Got a connection: \" + new Date());\n\t\t\tSystem.out.println(\"Connected to \" + serv.getInetAddress() + \" Port: \" + serv.getLocalPort());\n\n\t\t\t//Read bytes\n\t\t\ttry {\n\t\t\t\tin = new DataInputStream(sock.getInputStream());\n\t\t\t\t//Get filename\n\t\t\t\tString fileName = getNullTerminatedString().trim();\n\t\t\t\tSystem.out.println(\"Got file name: \" + fileName);\n\t\t\t\t//Get filesize\n\t\t\t\tString fileSize = getNullTerminatedString().trim();\n\t\t\t\tSystem.out.println(\"File size: \" + fileSize);\n\n\t\t\t\t//Stream to write to socket\n\t\t\t\tDataOutputStream out = new DataOutputStream(sock.getOutputStream());\n\n\t\t\t\t//Get file contents\n\t\t\t\tif(getFile(fileName, Long.parseLong(fileSize)) == false) out.write('x'); //fail\n\t\t\t\telse out.write('@'); //success\n\t\t\t\t\n\t\t\t\tout.close();\n\t\t\t\t//Close socket and listen for new connections\n\t\t\t\tsock.close();\n\t\t\t} catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1ee3045de52e7d97db1e7e6e1f1c7d38", "score": "0.5883533", "text": "private void listen() throws IOException {\n listener = new ServerSocket(port);\n\n try {\n while (!listener.isClosed()) {\n socket = listener.accept();\n\n try {\n processRequest();\n } finally {\n socket.close();\n }\n }\n } catch (SocketException ex) {\n System.out.println(\"Server stopped listening\");\n }\n }", "title": "" }, { "docid": "0c1a291d304650ae1cb16101d7250551", "score": "0.5862342", "text": "void start(int port);", "title": "" }, { "docid": "d8fac8c5d7865c0e308829eabb3011ab", "score": "0.5860236", "text": "public void displayPort(int port);", "title": "" }, { "docid": "6859829ccdad324676e64b2b4cf41ad8", "score": "0.58588094", "text": "public SocketServer(DisplayImpl d, int port) throws IOException {\n display = d;\n this.port = port;\n \n // create a server socket at the given port\n serverSocket = new ServerSocket(port);\n \n // create a thread that listens for connecting clients\n connectThread = new Thread(connect);\n connectThread.start();\n \n // create a thread for client/server communication\n commThread = new Thread(comm);\n commThread.start();\n \n // register socket server as a \"slaved display\"\n display.addSlave(this);\n }", "title": "" }, { "docid": "7d65baec5bdb0d89d907c505f4f03858", "score": "0.58584267", "text": "public int askForPortNumber() {\n\t\tint port = -1;\n\t\twhile (port == -1) {\n\t\t\tString inputString = JOptionPane\n\t\t\t\t\t .showInputDialog(this, \"Enter the server's port number: \", \"Port number\",\n\t\t\t\t\t\t\tJOptionPane.QUESTION_MESSAGE);\n\t\t\tif (inputString == null) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tport = Integer.parseInt(inputString);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Please enter a valid number\",\n\t\t\t\t\t\t \"Number Invalid\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t\t}\n\t\treturn port;\n\t}", "title": "" }, { "docid": "8876da8c976962eb2844b3beebb251e7", "score": "0.5858024", "text": "public void run(int port) {\n\n\t\tthis.port = port;\n\t\ttry {\n\t\t\tinitializeServer();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlogger.error(e.getMessage());\n\t\t\treturn;\n\t\t}\n\n\t\tsynchronized (state) {\n\n\t\t\tThread messageReceiver = new Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tcommunicateECS();\n\t\t\t\t}\n\t\t\t};\n\t\t\tmessageReceiver.start();\n\n\t\t\ttry {\n\t\t\t\tif (state.getState() != State.RUNNING) {\n\t\t\t\t\tstate.wait();\n\t\t\t\t\tlogger.info(\"start to serve\");\n\t\t\t\t}\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\tlogger.error(e.getMessage());\n\t\t\t}\n\n\t\t\twhile (state.getState() != State.SHUTDOWN) {\n\t\t\t\tif (state.getState() == State.RUNNING) {\n\t\t\t\t\tstate.setState(State.WAITINGSOCKET);\n\t\t\t\t\tThread waitSocket = new Thread() {\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\twaitSocket();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tlogger.error(\"Error! \" + \"Unable to establish connection. \\n\", e);\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\twaitSocket.start();\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstate.wait();\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\tlogger.error(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlogger.info(\"The server is closed\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "6df4a15d9829d9e990b988dec0d73a8a", "score": "0.5850179", "text": "public RemoteServer() {\t\n\t\ttry {\n\t\t\t// Request the port number\n\t\t\tScanner input = new Scanner(System.in);\n\t\t\tSystem.out.println(\"Please type the host name for set-up:\");\n\t\t\tthis.hostname = input.nextLine().toString();\n\t\t\tSystem.out.println(\"Please type port number:\");\n\t\t\tthis.port = input.nextLine().toString();\n\t\t\t\n\t\t\t// Close the scanner\n\t\t\tinput.close();\n\t\t\t\t\t\n\t\t\t// Use regular expression to verify the port number\n\t\t\tPattern pattern = Pattern.compile(\"[1-9][0-9]*\");\n\t\t\tMatcher isNum = pattern.matcher(port);\n\t\t\twhile(!isNum.matches() || Integer.parseInt(port) >= 65535 ){\n\t\t\t\tSystem.out.println(\"Please type a valid port number:\");\t\t\n\t\t\t\tthis.port = input.nextLine().toString();\t\t\t\n\t\t\t\tisNum = pattern.matcher(port);\n\t\t\t}\n\t\t}catch(NumberFormatException e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"What are you doing? I will shut down the program now.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "title": "" }, { "docid": "207ef090ae232a36fc88f1c80e76f1c3", "score": "0.5811701", "text": "public int getPort() {\n/* 630 */ return getServer().getPort();\n/* */ }", "title": "" }, { "docid": "e84d1560834db9cc2c50fc3d4557f99f", "score": "0.5803898", "text": "@Override\n public void run() {\n try {\n ServerSocket serverSocket = new ServerSocket(Integer.parseInt(this.prop.getProperty(\"port\")));\n while (true) {\n Socket socket = serverSocket.accept();\n executeCommand(socket);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "3d92e85aa7a19b05ab971f6b8c95bda1", "score": "0.58026904", "text": "private void \t\tserverRuntime() throws IOException {\n\n\t\twhile (true) {\n\n\t\t\tthis.openConnection();\n\t\t\tSystem.out.println(\"Someone connected...\");\n\n\t\t\tDataInputStream\t\tin = new DataInputStream(this.serverInputStream);\n\t\t\tDataOutputStream \tout = new DataOutputStream(this.serverOutputStream);\n\n\t\t\twhile (true) {\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tString\t\t\tcommand = in.readUTF();\n\t\t\t\t\tString\t\t\tresponse;\n\t\t\t\t\tif (command.equals(\"disconnect\")) {\n\n\t\t\t\t\t\tSystem.out.println(\"Client disconnected...\");\n\t\t\t\t\t\tthis.closeConnection();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tresponse = this.commandDispatcher.execute(command);\n\t\t\t\t\t\tif (response == null)\n\t\t\t\t\t\t\tresponse = \"\";\n\t\t\t\t\t}\n\t\t\t\t\tcatch (InterruptedException e) {\n\n\t\t\t\t\t\tSystem.out.println(\"Process has been interrupted... \");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tout.writeUTF(response);\n\t\t\t\t}\n\t\t\t\tcatch (IOException e) {\n\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "dede842f627c25f8c269edcf16bb8fcf", "score": "0.580049", "text": "public void setServerPort(int port)\r\n\t{\r\n\t\tserverPort = port;\r\n\t}", "title": "" }, { "docid": "9436d800a2a1ff3388d18710f15e6522", "score": "0.58001983", "text": "@Override\n\tpublic void run() {\n\t\trunning = true;\n\t\tSystem.out.println(\"Server started on port \" + port);\n\t\tmanageClients();\n\t\treceive();\n\t}", "title": "" }, { "docid": "d156444e39ab73b86aa8348c38651657", "score": "0.5798801", "text": "public String getPort() { return port; }", "title": "" }, { "docid": "3a4aef1f57e90bc65dbb57747d37816d", "score": "0.5797938", "text": "public int getPort();", "title": "" }, { "docid": "3a4aef1f57e90bc65dbb57747d37816d", "score": "0.5797938", "text": "public int getPort();", "title": "" }, { "docid": "1a190c2f99131f55afe073305bab1eb9", "score": "0.57785153", "text": "public static void main(String[] args) throws IOException {\n\n if (args.length != 1) // Test for correct # of args\n throw new IllegalArgumentException(\"Parameter(s): <Port>\");\n\n int servPort = Integer.parseInt(args[0]);\n\n // Create a server socket to accept client connection requests\n ServerSocket servSock = new ServerSocket(servPort);\n\n int recvMsgSize; // Size of received message\n byte[] receiveBuf = new byte[BUFSIZE]; // Receive buffer\n byte[] responseBuf = new byte[BUFSIZE]; // Receive buffer\n\n while (true) { // Run forever, accepting and servicing connections\n Socket clntSock = servSock.accept(); // Get client connection\n\n SocketAddress clientAddress = clntSock.getRemoteSocketAddress();\n System.out.println(\"Handling client at \" + clientAddress);\n\n System.out.println(\"get Inet Address\" + clntSock.getInetAddress());\n System.out.println(\"get Local Address:\" + clntSock.getLocalAddress());\n System.out.println(\"get Local Port:\" + clntSock.getLocalPort());\n\n\n InputStream in = clntSock.getInputStream();\n OutputStream out = clntSock.getOutputStream();\n\n // Receive until client closes connection, indicated by -1 return\n while ((recvMsgSize = in.read(responseBuf)) != -1) {\n //out.write(123456);\n out.write(responseBuf, 0, recvMsgSize);\n //out.write(123456);\n //break;\n }\n\n clntSock.close(); // Close the socket. We are done with this client!\n }\n /* NOT REACHED */\n }", "title": "" }, { "docid": "e94572913d5d52e525cf19138aac8abb", "score": "0.577754", "text": "public static void main(String[] args) throws IOException {\n ConsoleHelper.writeMessage(\"Enter port number\");\n int portNumber = ConsoleHelper.readInt();\n\n ServerSocket serverSocket = new ServerSocket(portNumber);\n try {\n while (true) {\n Socket socket = serverSocket.accept();\n new Handler(socket).start();\n }\n } catch (Exception e) {\n serverSocket.close();\n ConsoleHelper.writeMessage(\"Server socket has been closed!\");\n }\n }", "title": "" }, { "docid": "ddcdda96e5ea3da4ff5fa493164491f7", "score": "0.57772964", "text": "public void runServer()\n {\n SocketManager.receive(obNode.getPort(), this);\n }", "title": "" }, { "docid": "cc6746d7a12db40c91a33b8c882170f4", "score": "0.57648927", "text": "public void runTcpProtocolServer(int port) {\n\n\t\ttry (ServerSocket serverSocket = new ServerSocket(port)) {\n\n\t\t\tSystem.out.println(\"Server is listening on port \" + port);\n\n\t\t\twhile (true) {\n\t\t\t\tSocket socket = serverSocket.accept();\n\n\t\t\t\tSystem.out.println(\"New client connected\");\n\n\t\t\t\tInputStream input = socket.getInputStream();\n\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(input));\n\n\t\t\t\tOutputStream output = socket.getOutputStream();\n\t\t\t\tPrintWriter writer = new PrintWriter(output, true);\n\n\t\t\t\t// Read the task key and value in a string\n\t\t\t\tString task = reader.readLine();\n\n\t\t\t\t// call function to implement the operations\n\t\t\t\timplementTcpOperations(socket, writer, task);\n\t\t\t}\n\n\t\t} catch (IOException ex) {\n\t\t\tSystem.out.println(\"Server exception: \" + ex.getMessage());\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "a562724003ddb0a5673eb05225786cef", "score": "0.576465", "text": "public void setBindPort(int port);", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.5762866", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.5762866", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "73a1292490000dc6e153e32dce82f917", "score": "0.5762866", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "c5c7fc54e591220c23980b76e43bdd84", "score": "0.57616794", "text": "public int getPort() {\n return m_Socket.getLocalPort();\n }", "title": "" }, { "docid": "652372905033ed15736c3b9234aa8270", "score": "0.57562894", "text": "public Socket3Server (int port) throws IOException {\n\t\t\n\t\t// Port\n\t\tthis.port = port;\t\t\n\t\n\t\t\n\t\t// While Loop For Multiple Clients\n\t\twhile (true) {\n\t\t\t\n\t\t\t// Server Socket Initialization\n\t\t\tthis.socketStarter();\n\t\t\n\t\t\t// Read From Single Client\n\t\t\tthis.readFromClient();\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "a646c8e7f5353c4554588878b20f67b5", "score": "0.575286", "text": "public static void Connect(String p_host, String p_port) throws IOException {\n //init vars\n // user inputs port as a string, must convert to integer and validate \n Out = null;\n In = null;\n client = null; \n InFile = null;\n FileOut = null; \n \n try {\n \n int i = Integer.parseInt(p_port.trim());\n if(!(i == 10101))\n {\n Helpers.OutputText(\"Error: Incorrect Port Number.\");\n Out.println(\"Error: Incorrect Port Number.\"); \n System.exit(1);\n } \n client = new Socket(p_host, i); \n Out = new PrintWriter(client.getOutputStream(), true);\n In = new BufferedReader(new InputStreamReader(client.getInputStream()));\n \n } catch (NumberFormatException e) {\n Helpers.OutputText(\"Error: Invalid Port Number.\");\n Out.println(\"Error: Invalid Port Number.\"); \n System.exit(1);\n }\n catch (UnknownHostException e) {\n Helpers.OutputText(\"Error: host does not exist.\");\n Out.println(\"Error: host does not exist.\");\n System.exit(1);\n } catch (IOException e) {\n Helpers.OutputText(\"Error: Couldn't get I/O for the connection.\");\n Out.println(\"Error: Couldn't get I/O for the connection.\");\n System.exit(1);\n }\n Helpers.OutputText(\"connection with server established!\");\n DesktopApplication1View.q = true; \n\n }", "title": "" }, { "docid": "f2cd119db2a90768bfb041d8846920bd", "score": "0.57505417", "text": "public void run() {\n \t\tthis.eventListener.log(InternationalisationUtils.getI18NString(I18N_STARTING_ON_PORT, String.valueOf(this.getPort())));\n \t\ttry {\n \t\t\tserver.start();\n \t\t} catch (Exception ex) {\n \t\t\tlog.warn(\"Problem starting listener.\", ex);\n \t\t\ttry {\n \t\t\t\tthis.server.stop();\n \t\t\t} catch (Exception e) {\n \t\t\t\tlog.info(\"Problem stopping listener which failed to start.\", e);\n \t\t\t}\n \t\t}\n \t\ttry {\n \t\t\tserver.join();\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\tthis.eventListener.log(InternationalisationUtils.getI18NString(I18N_TERMINATED_ON_PORT, String.valueOf(this.getPort())));//\"Listener terminated on port: \" + this.getPort());\n \t}", "title": "" }, { "docid": "15cf26403889753d828031cf40fc9f31", "score": "0.5744598", "text": "@java.lang.Override\n public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "e06518759cf0a54e188ded61a7dbe858", "score": "0.574327", "text": "public synchronized int getPort() {\n return (serverSocket != null ? serverSocket.getLocalPort() : port);\n }", "title": "" }, { "docid": "b7446085928f753fb35d6965c36a8b74", "score": "0.5738542", "text": "public Server(int serverPort) {\r\n\t\tthis.serverPort = serverPort;\r\n\t}", "title": "" }, { "docid": "cee638fd9229ac7ed6cac613a7b86c44", "score": "0.5734531", "text": "@Override\r\npublic void run() {\r\n\tBufferedReader reader = null;\r\n PrintWriter writer = null;\r\n try {\r\n \treader = new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n \twriter = new PrintWriter(socket.getOutputStream(), true);\r\n \r\n \twhile(true) {\r\n \t\tString line = reader.readLine();\r\n \t\tif(line == null) break;\r\n \t\twriter.println(\"Echo: \" + line);\r\n \t}\r\n } \r\n catch (IOException e) {\r\n \tthrow new RuntimeException(e);\r\n }\r\n finally {\r\n \ttry {\r\n \t\tif(reader != null) reader.close();\r\n \t\tif(writer != null) writer.close();\r\n \t} \r\n \tcatch (IOException e) {\r\n \t\tthrow new RuntimeException(e);\r\n \t}\r\n }\r\n \r\n}", "title": "" }, { "docid": "77d8124c2aaf4b83a9580c1629621e2d", "score": "0.5729527", "text": "private BufferedReader connectTo(int preferredPort) {\n BufferedReader inFromServer = null;\n Future<String> future = null;\n boolean localGoProcess = false;\n\n while (!tcpConnected) {\n try {\n localGoProcess = startGoProcess(preferredPort);\n\n while (!goServerRunning) {\n Thread.sleep(200);\n }\n\n if (udpSocket == null || udpSocket.getLocalPort() != preferredPort)\n udpSocket = new DatagramSocket(preferredPort);\n receivePacket = new DatagramPacket(receiveData, receiveData.length);\n\n\n TimeUnit.SECONDS.sleep(1);\n tcpSocket = new Socket(\"localhost\", preferredPort);\n outToServer = new DataOutputStream(tcpSocket.getOutputStream());\n\n writeToServer(\"Hello Go Beep Boop\\n\");\n inFromServer = new BufferedReader(new InputStreamReader(tcpSocket.getInputStream()));\n\n ExecutorService executor = Executors.newCachedThreadPool();\n future = executor.submit(inFromServer::readLine);\n if (future.get(3, TimeUnit.SECONDS).compareTo(\"Hello Java Beep Boop\") != 0) {\n throw new IOException(\"Unknown server on port \" + preferredPort);\n } else {\n if (comPort != \"\")\n writeToServer(comPort);\n tcpConnected = true;\n System.out.println(\"Connected to Go on port \" + preferredPort);\n }\n } catch (IOException e) {\n tcpConnected = false;\n e.printStackTrace();\n System.out.println(\"Retrying...\");\n if (goServerRunning && localGoProcess)\n stopGoProcess();\n } catch (TimeoutException ex) {\n System.out.println(\"Timeout when connected to server on port \" + preferredPort);\n tcpConnected = false;\n } catch (InterruptedException e) {\n System.out.println(\"Interrupted when connected to server on port \" + preferredPort);\n tcpConnected = false;\n } catch (ExecutionException e) {\n e.printStackTrace();\n tcpConnected = false;\n } finally {\n if (future != null)\n future.cancel(true); // may or may not desire this\n if (!tcpConnected)\n preferredPort = Math.max((preferredPort + 1) % 65535, 1024);\n }\n }\n return inFromServer;\n }", "title": "" }, { "docid": "a3c07b279087a5d62522ae13014bb0b8", "score": "0.5725415", "text": "public int getPort ( )\r\n\t{\r\n\t\tif ( dataOutServer != null )\r\n\t\t{\r\n\t\t\t// return the port of the server\r\n\t\t\treturn dataOutServer.getLocalPort ( );\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "be0434d3838d08265f039aedaf02fd29", "score": "0.572499", "text": "private static int getPort() {\n\n\t\tInteger input;\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdo {\n\t\t\tSystem.out.print(\"Please select a port by entering an integer value between 1 and 65535 or\\n\");\n\t\t\tSystem.out.print(\"insert \\\"0\\\" in order to continue with the default setting (\" + Server1.port + \"): \");\n\t\t\tinput = sc.nextInt();\n\n\t\t} while (input != 0 && !Server1.validPort(input));\n\n\t\tsc.close();\n\n\t\treturn input == 0 ? Server1.port : input;\n\t}", "title": "" }, { "docid": "ef3ed385c715f020154067a601b484bd", "score": "0.57233346", "text": "@java.lang.Override\n public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "3aca11958d169767f2d2566b229bafa3", "score": "0.57220787", "text": "static private native void setTcpPort(int port);", "title": "" }, { "docid": "41dd0dbf766e9148abed33a8fbc626fd", "score": "0.5709242", "text": "public void listen(){\n try {\r\n System.out.println(\"Server is listening\");\r\n client = listener.accept(); \r\n System.out.println(\"Now moving onto processClient\");\r\n \r\n processClient();\r\n }\r\n catch(IOException ioe)\r\n {\r\n System.out.println(\"IO Exception: \" + ioe.getMessage());\r\n }\r\n }", "title": "" }, { "docid": "584c83662b74375a9a67fbfcc9b7f79b", "score": "0.570756", "text": "public static int getPort()\n {\n return ServerInfo.port;\n }", "title": "" }, { "docid": "aa32183d7db6a8e2238c8dd3f3add4f9", "score": "0.5704463", "text": "public void bind (int port)\n throws IOException, IllegalArgumentException\n {\n _port = listen (port);\n if ((port > 0) && (port != _port)) {\n throw new IOException (\"failed to bind server socket to port \" + port);\n }\n }", "title": "" }, { "docid": "9e5d657f05849858626e60df1c59ae69", "score": "0.5702844", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "2309d8bcd0cf475d2f8867192c3be42f", "score": "0.5702493", "text": "public int getPort()\n {\n return _port;\n }", "title": "" }, { "docid": "11b7a6d338ed141c0a20a6c57d06a386", "score": "0.57000166", "text": "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\ts = server.accept();\n\t\t\tdataInputStream = new BufferedReader(new InputStreamReader(\n\t\t\t\t\ts.getInputStream()));\n\t\t\twhile(dataInputStream.readLine() != null) {\n\t\t\t\t//String mess = dataInputStream.readLine();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.e(\"LEServerSocketConnector\", e.toString());\n\t\t}\n\t}", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.5685915", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.5685915", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "cff04483af9301012016ef943680299c", "score": "0.5685915", "text": "public int getPort() {\n return port_;\n }", "title": "" }, { "docid": "1f8e8d43765d54161cf4c6b0bfef1cc6", "score": "0.5684337", "text": "@Override\r\n\tpublic void run() {\n\t\tInputStream inputStream = null;\r\n\t\tDataInputStream dataInputStream = null;\r\n\t\ttry {\r\n\t\t\twhile (true) {\r\n\t\t\t\tinputStream = s.getInputStream();\r\n\t\t\t\tdataInputStream = new DataInputStream(inputStream);\r\n\t\t\t\tSystem.out.println(\"Server received:\" + dataInputStream.readUTF());\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0be736fc0791615967036945689a69d2", "score": "0.5672083", "text": "public int get_port(){\n return dg_socket.getLocalPort();\n }", "title": "" }, { "docid": "ddab0237d88cdc81763e9389b0960718", "score": "0.56609523", "text": "public void setServerPort ( long server_port )\n {\n this.ServerPort = server_port;\n }", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.56597656", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.56597656", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.56597656", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.56597656", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.56597656", "text": "int getPort();", "title": "" }, { "docid": "d525cf1e9683fc022f7fd2b94bd544f3", "score": "0.56597656", "text": "int getPort();", "title": "" }, { "docid": "526a71c22f63d54693ac21932dd295a4", "score": "0.56540334", "text": "@Override\n public int getRpcPort() {\n return server.getBindAddress().getPort();\n }", "title": "" }, { "docid": "b9a0e994708606be77afbccd97aea63c", "score": "0.5650528", "text": "public static int getPort() {\n\t\tServerSocket listener = null;\n\t\tfor (int port = 6881; port < 6890; port++) {\n\t\t\ttry {\n\t\t\t\tlistener = new ServerSocket(port);\n\t\t\t\tlistener.close();\n\t\t\t\tSystem.out.println(\"Connected to port \" + port);\n\t\t\t\treturn port;\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Port \" + port + \" is not available. Trying next port ...\");\n\t\t\t\t//e.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "298b09ae63c7ec154bd4c2a2f381aa10", "score": "0.56451523", "text": "public ServerMocket (int port)\n throws IOException, IllegalArgumentException\n {\n init (null);\n _port = listen (port);\n if ((port > 0) && (port != _port)) {\n throw new IOException (\"failed to bind server socket to port \" + port);\n }\n }", "title": "" }, { "docid": "8eeab0b9252209c3274f7277c38edacd", "score": "0.56443113", "text": "private static void openPort() {\n try {\n ssock = new ServerSocket(PORT);\n Logger.getLogger(\"Server\").log(Level.INFO, \"Servidor iniciado, escuchando por el puerto {0}\", PORT);\n } catch (IOException ex) {\n Logger.getLogger(OnlineRestaurantServerSocket.class.getName()).log(Level.SEVERE, \"Error del server socket al abrir el puerto\", ex);\n }\n }", "title": "" }, { "docid": "b5d9ace31199164d3fc6a6cf297e6370", "score": "0.5640663", "text": "public int getPort() {\r\n return port;\r\n }", "title": "" }, { "docid": "08c5ebf743934443f9363fd10572e454", "score": "0.5639665", "text": "public int getPort()\r\n\t{\r\n\t\treturn port;\r\n\t}", "title": "" }, { "docid": "08c5ebf743934443f9363fd10572e454", "score": "0.5639665", "text": "public int getPort()\r\n\t{\r\n\t\treturn port;\r\n\t}", "title": "" }, { "docid": "8addca2a293585c1623bd8a0be82c9d1", "score": "0.56394875", "text": "public int getPort()\n {\n return port;\n }", "title": "" }, { "docid": "51aca9dc82b09d110a0f9e30ea30fd20", "score": "0.56337124", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "956053f3231dea81d7065d2f30017309", "score": "0.5628396", "text": "public void setPort(int port);", "title": "" }, { "docid": "5e70530c377c6de874be8504733e2ef7", "score": "0.56210935", "text": "public void startServer(int portNum) throws IOException\n {\t\n server = new ServerSocket(portNum);\n\n runServer = true;\n\n }", "title": "" }, { "docid": "7cac1189993b79dc6cafb758f8d90f04", "score": "0.56165123", "text": "@Override\n\tpublic void run() {\n\t\ttry (ServerSocket serverSocket = new ServerSocket(this.portNo)) {\n\t\t\ttry {\n\t\t\t\t// Create a server socket\n\t\t\t\ttextQueryArea.append(SERVER_STARTED_AT + new Date() + '\\n');\n\t\t\t\ttextQueryArea.append(LISTENING_ON_PORT + this.portNo);\n\t\t\t\twhile (true) {\n\t\t\t\t\tSocket socket = serverSocket.accept();\n\t\t\t\t\tclientNo++;\n\n\t\t\t\t\ttextQueryArea.append(\"\\n\");\n\t\t\t\t\ttextQueryArea.append(STARTING_THREAD + clientNo + AT + new Date() + '\\n');\n\t\t\t\t\tInetAddress inetAddress = socket.getInetAddress();\n\t\t\t\t\ttextQueryArea.append(CLIENT + clientNo + HOST_NAME + inetAddress.getHostName() + \"\\n\");\n\t\t\t\t\ttextQueryArea.append(CLIENT + clientNo + IP_ADDRESS + inetAddress.getHostAddress() + \"\\n\");\n\t\t\t\t\tnew Thread(new HandleAClient(socket, clientNo)).start();\n\t\t\t\t}\n\t\t\t} catch (IOException ex) {\n\t\t\t\tSystem.out.println(ex);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t}", "title": "" }, { "docid": "cdb18ea2f0d2f5088c2cb5d342e946a3", "score": "0.5614557", "text": "@Override\n public void run() {\n try (ServerSocket server = new ServerSocket(COMMAND_PORT)) {\n int threads = ServerProperties.getThreadPoolSize();\n ExecutorService executor = Executors.newFixedThreadPool(threads);\n printStartInfo();\n while (true) {\n try {\n Socket socket = server.accept();\n executor.execute(new ClientSocketHandler(socket));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "0ad04654a0eaf89564512d798d77690f", "score": "0.560696", "text": "public ServerLocal(int portPassed) throws IOException {\n super(\"Local Server\");\n\n port = portPassed;\n serverSocket = new ServerSocket(portPassed);\n server = this;\n // serverSocket.setSoTimeout(10000);\n }", "title": "" }, { "docid": "53967e40b92f1195a66b5fd8d4c20cee", "score": "0.5596267", "text": "private static boolean listenToPort() {\n\t\tboolean success = false;\n\t\t\n\t\t// Try to create a server socket at the given port\n\t\ttry{\n\t\t\tsocket = new ServerSocket(port);\n\t\t\tsuccess = true;\n\t\t\tSystem.out.println(\"Listening on port \" + port + \"...\");\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Error: Failed to listen to port \" + port + \".\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn success;\n\t}", "title": "" }, { "docid": "9ec83590bce31ae80af6a8114d0b138e", "score": "0.55921817", "text": "public static void run(final String ip, final int port) throws IOException {\n LoggerSingleton.get().enable();\n NetworkServerListener listener = null;\n Controller controller = null;\n\n LoggerSingleton.get().add(LogSeverity.INFO, Main.class, \"Starting server...\");\n listener = TcpIPv4ServerListener.startNewServerListener(port, TcpIPv4ServerListener.DEFAULT_BACKLOG,\n InetAddress.getByName(ip), Arrays.asList());\n controller = NetworkControllerImpl.newNetworkController(StandardControllerImpl.newStandardControllerImpl(),\n listener);\n LoggerSingleton.get().add(LogSeverity.INFO, Main.class, \"Started.\");\n\n String cmd;\n do {\n cmd = readLine();\n if (\"info\".equals(cmd)) {\n LoggerSingleton.get().add(LogSeverity.INFO, Main.class, controller.toString());\n }\n } while (!(\"stop\".equals(cmd) || \"exit\".equals(cmd) || \"q\".equals(cmd)));\n\n LoggerSingleton.get().add(LogSeverity.INFO, Main.class, \"Closing server...\");\n listener.close();\n controller.close();\n LoggerSingleton.get().add(LogSeverity.INFO, Main.class, \"Closed.\");\n }", "title": "" }, { "docid": "a02e254d99ad9208f76cd920a1f55958", "score": "0.5587409", "text": "public void run() {\n\t\t\t\t\t\tInputStream in;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tin = socket.getInputStream();\n\t\t\t\t\t\t\t// wrap input stream in reader so can read String\n\t\t\t\t\t\t\t// instead of\n\t\t\t\t\t\t\t// bytes\n\t\t\t\t\t\t\t// (can also wrap it in Scanner)\n\t\t\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\t\t\t\t\t\t// read in a whole text. not just one line\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "title": "" }, { "docid": "1b4a203e135875c27f097aff4b9df91c", "score": "0.5583927", "text": "public int getPort() {\n return this.port;\n }", "title": "" }, { "docid": "cd667cd16f93388480b09d644e4ce6ab", "score": "0.55805594", "text": "public final int getPort() {\n return port;\n }", "title": "" }, { "docid": "3068a22ab1421ee211b57c1ee6d310e7", "score": "0.55786896", "text": "public int getBindPort();", "title": "" }, { "docid": "fbe8ab98bd523489f20e92f8bbf12920", "score": "0.55759525", "text": "int getRecverPort();", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.55656403", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.55656403", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.55656403", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ba1e533f922f358d9e62de24ac5b5d0a", "score": "0.55656403", "text": "public int getPort() {\n return port;\n }", "title": "" }, { "docid": "ff851761dc1cec62c55cbca4b6f71bd2", "score": "0.55649287", "text": "public void setServerPort ( String server_port )\n {\n this.ServerPort = Long .parseLong ( server_port );\n }", "title": "" }, { "docid": "d3d79d60465da8a042da3b6566897edc", "score": "0.5561523", "text": "public void advisePort(Integer portNum) {\n \n try {\n InetAddress addr = InetAddress.getLocalHost();\n localIp = addr.getHostAddress().toString(); // get local ip\n localPort = portNum.toString();\n \n /* get listen socket */\n final ServerSocket listenSocket = new ServerSocket(portNum);\n \n /* start a thread to waiting for other portal's connection */\n \n Thread sockThread = new Thread(new Runnable() {\n /* override the run function */\n public void run() {\n while (true) {\n try {\n /* accept connection */\n Socket conSocket = listenSocket.accept();\n \n /* reader prepare */\n BufferedReader inFromClient = new BufferedReader(\n new InputStreamReader(conSocket.getInputStream()));\n \n /* message dispose */\n String mesgLine = inFromClient.readLine();\n \n System.out.println(\"recv:\"+ mesgLine);\n \n if (mesgLine.indexOf(\"add-agent\") == 0) {\n addRemoteAgents(mesgLine);\n \n /* response own agents list */\n DataOutputStream outToClient = new DataOutputStream(\n conSocket.getOutputStream());\n \n String response = \"add-agent \" + localIp + \"-\" + localPort;\n for (String agentName : cm.keySet()) {\n response += \" \" + agentName;\n }\n \n outToClient.writeBytes(response + \"\\n\");\n } else if (mesgLine.indexOf(\"message\") == 0){\n String[] items = mesgLine.split(\"#\");\n if (items.length == 5 && items[0].equals(\"message\")) {\n MsgId mi = new MsgId(items[4]);\n Message msg = new Message(items[1], items[2], items[3], mi);\n \n enqueue(msg);\n }\n }\n } catch(Exception e) {\n e.printStackTrace();\n }\n }\n }\n });\n \n sockThread.start(); /* begin run */\n \n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "83f353e380734b6ce68e8aa7d6941b28", "score": "0.5561449", "text": "public synchronized void start() throws IOException {\r\n\t\tif (running) return;\r\n\r\n\t\tTCPListener listener;\r\n\t\tif (!isSecure)\r\n\t\t\tlistener = TCPServer.open(ipAddress, port, handler);\r\n\t\telse\r\n\t\t\tlistener = TCPServer.open(ipAddress, port, handler, true, this.alias);\r\n\r\n\t\tif (port == 0) {\r\n\t\t\tport = listener.getPort();\r\n\t\t}\r\n\t\trunning = true;\r\n\t}", "title": "" }, { "docid": "aaeeaf058aae42c7910fb6341a08cdec", "score": "0.55555475", "text": "public Integer getPort() {\r\n return port;\r\n }", "title": "" } ]
42f4e8e7fa650a62609fbf5b7a126579
get toOne destination and create its transient companion
[ { "docid": "725fd057da2b3d68fb9bf2653aab0b14", "score": "0.45706245", "text": "public Persistable propagateManyToOne( Object attributeOwner, String attributeName, Class attributeType,\n String inverseAttributeName, Class inverseType )\n {\n Persistable otherDestination;\n Persistable thisDestination;\n thisDestination = (Persistable) getToOneDestination( attributeOwner, attributeName );\n if( thisDestination == null )\n return null;\n if( wasPreviouslyTransitioned( new Transition( attributeOwner, attributeName, thisDestination ) ) )\n return null;\n addPreviouslyTransitioned( new Transition( attributeOwner, attributeName, thisDestination ) );\n if( wasPreviouslyTransitioned( new Transition( thisDestination, inverseAttributeName, attributeOwner ) ) )\n return null;\n addPreviouslyTransitioned( new Transition( thisDestination, inverseAttributeName, attributeOwner ) );\n\n otherDestination = (Persistable) createOther( thisDestination );\n\n // Assign the transient toOne companion to the current transient other\n // and return the persistent toOne.\n setToOneDestination( getOther(), attributeName, deriveOthersType( attributeType ), otherDestination );\n return (Persistable) thisDestination.accept( propagationVisitor( otherDestination ) );\n }", "title": "" } ]
[ { "docid": "58062444663c80ade4b334235c37031a", "score": "0.60255784", "text": "public Object destinationEntity(D2WContext c) {\n EOEntity destinationEntity = (EOEntity)c.valueForKeyPath(\"smartRelationship.destinationEntity\");\n return destinationEntity;\n }", "title": "" }, { "docid": "366fadfb40f286963bf9fc5e1ffaedb7", "score": "0.5953976", "text": "public Persistable propagateToOne( Persistable aDestination )\n {\n if( (aDestination != null) )\n {\n addPreviouslyVisited( aDestination );\n return (Persistable) aDestination.accept( propagationVisitor() );\n }\n else\n return (Persistable) null;\n }", "title": "" }, { "docid": "f7579ed88de524568bb3908051633b2b", "score": "0.59020853", "text": "Object getDest();", "title": "" }, { "docid": "0076cfbf24eaa8fed1af5ec4052b1c17", "score": "0.588912", "text": "public <S> T manyToOne(T destination,final S source);", "title": "" }, { "docid": "02cebf1648fdd33c77cdd3aa3c734d7f", "score": "0.57453084", "text": "private EOEntity destinationEntityEntity() {\n\t\treturn EOUtilities.entityNamed( editingContext(), destinationEntity() );\n\t}", "title": "" }, { "docid": "aac4ac531b094ee086792d2ac29579c5", "score": "0.5676686", "text": "public <S> T manyToOneWithoutControl(T destination,final S source);", "title": "" }, { "docid": "24d6f5f3e2020db1b060be54d7bc1193", "score": "0.56031275", "text": "public Object getDestination() {\r\n return dest;\r\n }", "title": "" }, { "docid": "2e1aee57f8dc09f089f745f48bef50d8", "score": "0.5519382", "text": "public PDDestination getDestination() throws IOException {\n/* 146 */ COSBase base = getCOSObject().getDictionaryObject(COSName.DEST);\n/* 147 */ return PDDestination.create(base);\n/* */ }", "title": "" }, { "docid": "59656a2b152744815bbd35212381050b", "score": "0.54871035", "text": "public Persistable propagateToOne( Object attributeOwner, String attributeName, Class attributeType )\n {\n Persistable thisDestination;\n Persistable otherDestination;\n thisDestination = (Persistable) getToOneDestination( attributeOwner, attributeName );\n if( thisDestination == null )\n return null;\n if( wasPreviouslyTransitioned( new Transition( attributeOwner, attributeName, thisDestination ) ) )\n return null;\n addPreviouslyTransitioned( new Transition( attributeOwner, attributeName, thisDestination ) );\n\n otherDestination = (Persistable) createOther( thisDestination );\n\n // Assign the transient toOne companion to the current transient other\n // and return the persistent toOne.\n setToOneDestination( getOther(), attributeName, deriveOthersType( attributeType ), otherDestination );\n return (Persistable) thisDestination.accept( propagationVisitor( otherDestination ) );\n }", "title": "" }, { "docid": "0bfdd60426c2f138cf4f31d2fa98f897", "score": "0.54816735", "text": "Destination save( Destination destination );", "title": "" }, { "docid": "8ce6a33cfa47a60b2608983f93ea3a42", "score": "0.5474384", "text": "public <S> T manyToOne(T destination,final S source,final MappingType mtDestination,final MappingType mtSource);", "title": "" }, { "docid": "1e0ca2dc324d6eee4c8ae44a1870324c", "score": "0.5463291", "text": "N getDestination();", "title": "" }, { "docid": "1d09c943c4f6c925114a3be1cda075e5", "score": "0.54484105", "text": "public <S> T manyToOne(T destination,final S source,final NullPointerControl nullPointerControl,final MappingType mtDestination,final MappingType mtSource);", "title": "" }, { "docid": "08f0dea949278aac26ebc9cc53f666a6", "score": "0.53867495", "text": "public Destination getMyDestination() { return _myDestination; }", "title": "" }, { "docid": "ca24e0a569056afbfd697f7c39d40fa6", "score": "0.5344228", "text": "public Object getDestination() {\n/* 747 */ return this.peer.getTarget();\n/* */ }", "title": "" }, { "docid": "62adab5057c36640579ce18927b70c6a", "score": "0.53049845", "text": "public Room destination() { return sameroom; }", "title": "" }, { "docid": "9dbfe46e3ab8de9c8883796e08c4bb37", "score": "0.52653277", "text": "int getDestinationId();", "title": "" }, { "docid": "8c4387ccb7ea34f9a4c328a7fe6b7f3a", "score": "0.5234743", "text": "public boolean visitToOne(ToOneProperty property) {\n for (Persistent relatedObject : relatedObjects) {\n property.setTarget(relatedObject, null, true);\n }\n return false;\n }", "title": "" }, { "docid": "44cd4a4c749b70b04a9b4153d1a54b32", "score": "0.5151099", "text": "String getDestination();", "title": "" }, { "docid": "9c0878d65682dcd7dca672986babafc4", "score": "0.5114638", "text": "public Object record() {\n\t\tObject record = USEOUtilities.objectMatchingKeyAndValue( editingContext(), destinationEntity(), destinationEntityEntity().primaryKeyAttributeNames().objectAtIndex( 0 ), destinationID() );\n\t\treturn record;\n\t}", "title": "" }, { "docid": "9b87d4ea0c8048019496aaa6b4a85d0c", "score": "0.5078066", "text": "public InstanceConfiguration getDestination() {\r\n return this.instance2;\r\n }", "title": "" }, { "docid": "92f5c3379b65cec545c8859c5153453b", "score": "0.5057469", "text": "@Override\r\n\tpublic Destination getDestinationbyId(long id_d) {\n\t\treturn destinationDao.getDestinationbyId(id_d);\r\n\t}", "title": "" }, { "docid": "97bf865344ea0ba313dfec1ddec0c3be", "score": "0.50557566", "text": "public void setDestination(){\n\n }", "title": "" }, { "docid": "fe97ae3878c818c39526c2dd015b13ab", "score": "0.5053083", "text": "WithCreate withDestinationAccount(String destinationAccount);", "title": "" }, { "docid": "8ea123461be27c67e30b05687500b26e", "score": "0.5033266", "text": "protected S morphTToS(final T destination) {\n\t\treturn mapper.map(destination, klassS, getParameter());\n\t}", "title": "" }, { "docid": "c52cecae64d673100979864fb049caaa", "score": "0.5023925", "text": "EdgProto.Edg.Vtx getDestination();", "title": "" }, { "docid": "1414e5fc45c992ce9623f79655feb8a4", "score": "0.5022818", "text": "T findDestinationByIdAndByDestinationTargetId(String destinationId, String destinationTargetId);", "title": "" }, { "docid": "fb46d1f90981a2d5e763e169a135b8a2", "score": "0.5016427", "text": "private com.google.protobuf.SingleFieldBuilder<\n EdgProto.Edg.Vtx, EdgProto.Edg.Vtx.Builder, EdgProto.Edg.VtxOrBuilder> \n getDestinationFieldBuilder() {\n if (destinationBuilder_ == null) {\n destinationBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n EdgProto.Edg.Vtx, EdgProto.Edg.Vtx.Builder, EdgProto.Edg.VtxOrBuilder>(\n getDestination(),\n getParentForChildren(),\n isClean());\n destination_ = null;\n }\n return destinationBuilder_;\n }", "title": "" }, { "docid": "84a795f2787b9bb124d7b4bc9d887c0a", "score": "0.5007135", "text": "public T destination(Family dest) {\n\t\t\t\tthis.destFamily = dest.index();\n\t\t\t\treturn (T) this;\n\t\t\t}", "title": "" }, { "docid": "dbf96d01f5952fad0ec60d45509e9953", "score": "0.50001746", "text": "public ENTITY convertFrom(DTO source);", "title": "" }, { "docid": "ddeda4c677a421569fd3b3b29de7ac04", "score": "0.49939197", "text": "public String getDestination() \n {\n return destination; \n }", "title": "" }, { "docid": "c2b8eea8f5c463774315f3e56f228a97", "score": "0.49745473", "text": "public String getDestination()\n {\n return destination;\n }", "title": "" }, { "docid": "63c3229c8757fde9b0530f5ffdc8ce3f", "score": "0.49678522", "text": "public String getDestination () {\n return destination;\n }", "title": "" }, { "docid": "b0945c2e30e1335adc5d29b75b45b6a5", "score": "0.49628273", "text": "public <S> T manyToOne(final S source);", "title": "" }, { "docid": "cbff63a933bf291e88b823aee496bc64", "score": "0.49620658", "text": "public Site toSite ()\n {\n Site site = new Site();\n site.siteId = siteId;\n site.siteString = siteString;\n return site;\n }", "title": "" }, { "docid": "68be47c19322343d7a346ed9437338e0", "score": "0.49590293", "text": "Pathway createPathway();", "title": "" }, { "docid": "66a444f2f320fc3fe9aaf426b60d3a68", "score": "0.4938393", "text": "public LocationObject getDestinationLocationObject(){\n return locationMap.getLocationByName(destinationLocation);\n }", "title": "" }, { "docid": "eaed0f48d5b46beeee91729a2973038e", "score": "0.49293458", "text": "@Override\n\tpublic BuildingInterface getDestination() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b719d031dbb2535a557c04fcf589d3f5", "score": "0.4919605", "text": "@JsonGetter(\"destination\")\r\n @JsonInclude(JsonInclude.Include.NON_NULL)\r\n public Destination getDestination() {\r\n return destination;\r\n }", "title": "" }, { "docid": "8da8856f3317da1a372e1aefa95b6e13", "score": "0.49027768", "text": "public String getDestId() {\n return destId;\n }", "title": "" }, { "docid": "6693206e372c46f1b0a2475d54259ccb", "score": "0.4883053", "text": "public Road roadTo(Place dest) {\n\n for (Road i : this.toRoads) {\n if (i.firstPlace().getName().equals(dest.getName()) || i.secondPlace().getName().equals(dest.getName()))\n return i;\n }\n\n return null;\n }", "title": "" }, { "docid": "4a0c87afa90f2d5655775a4f32bd06d5", "score": "0.48824134", "text": "public Waypoint get_dest() {\n\t\treturn dest;\n\t}", "title": "" }, { "docid": "bbfd16fbfa43dd112a0305b9aeb517ad", "score": "0.4873092", "text": "public Entrepot getDestination() {\n\t\treturn this.destination;\n\t}", "title": "" }, { "docid": "b88941455cd0ca097a293081142c30ec", "score": "0.48694062", "text": "public DetalleTO() {\r\n\t\tsuper();\r\n\t\tthis.medidaTO = new MedidaTO();\r\n\t\tthis.reporteTO = new ReporteTO();\r\n\t\tthis.codigoBarraTO = new CodigoBarraTO();\r\n\t}", "title": "" }, { "docid": "15b4f7282279aeeda0d1a5c66c5b6b15", "score": "0.48624504", "text": "public String getDestination() {\n return destination;\n }", "title": "" }, { "docid": "15b4f7282279aeeda0d1a5c66c5b6b15", "score": "0.48624504", "text": "public String getDestination() {\n return destination;\n }", "title": "" }, { "docid": "a8c1fe550d8de467f72a7a023f7fcba0", "score": "0.48615623", "text": "public Road roadTo(Place dest) {\n\t\tfor (Road road : roads) {\n\t\t\tif (road.firstPlace() == this && road.secondPlace() == dest) {\n\t\t\t\treturn road;\n\t\t\t}\n\t\t\tif (road.secondPlace() == this && road.firstPlace() == dest) {\n\t\t\t\treturn road;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0f310cd848a1e98fc8bde670e5a95141", "score": "0.48557457", "text": "public <D> D oneToMany(D destination,final T source);", "title": "" }, { "docid": "43381e032d2d62db8cf0bc7bb125048a", "score": "0.4846242", "text": "public ClienteTO() { }", "title": "" }, { "docid": "c0442d2f0e5cae979166f8d1eaabfc5c", "score": "0.48386708", "text": "public <D> D oneToManyWithoutControl(D destination,final T source);", "title": "" }, { "docid": "1444843e08368df88900adf962bd0f00", "score": "0.48184833", "text": "Mission saveOne(Mission mission);", "title": "" }, { "docid": "f130cf192d228ec851f8b939aef53579", "score": "0.48082924", "text": "public Integer getDestinationId() {\n return destinationId;\n }", "title": "" }, { "docid": "7f82af84e14385a5d1aeb70ed913f97d", "score": "0.47987625", "text": "Transfer createTransfer(Transfer transfer);", "title": "" }, { "docid": "ce18961e8f7e7608c5c5ec20e310a032", "score": "0.47883102", "text": "@Override\n\tpublic void joinOneTrip(Trip trip) {\n\n\t}", "title": "" }, { "docid": "b5efff275302f5080c53edff52e26ee7", "score": "0.47818932", "text": "public Relationship(UUID npcOne, UUID npcTwo) {\n this.npcOne = npcOne;\n this.npcTwo = npcTwo;\n trust = 1;\n }", "title": "" }, { "docid": "34253ff9fe30feb084db8845e1306f25", "score": "0.4759694", "text": "public int getDestinationId() {\n return destinationId_;\n }", "title": "" }, { "docid": "820842a150844971f96d87d8ce24db82", "score": "0.47480917", "text": "public Builder mapForeignKeyColumnToToOne(String columnName, String toOneName) {\n int indexOfColumn = SqlMigration.indexOfColumnIn(database, columnName, tableName);\n if (indexOfColumn == -1) {\n throw new IllegalArgumentException(\"There is no column '\" + columnName\n + \"' in table '\" + tableName + \"'\");\n }\n if (!SqlMigration.isForeignKeyColumn(foreignKeys, columnName)) {\n throw new IllegalArgumentException(\"'\" + columnName + \"' is not a FOREIGN KEY column\");\n }\n Field field;\n try {\n field = entityClass.getDeclaredField(toOneName);\n if (!ToOne.class.isAssignableFrom(field.getType())) {\n throw new IllegalArgumentException(\"Field '\" + toOneName + \"' is not a ToOne\");\n }\n } catch (NoSuchFieldException e) {\n throw new IllegalStateException(\"Failed to access field '\" + toOneName\n + \"' of entity '\" + entityInfo.getEntityName() + \"'\");\n }\n field.setAccessible(true); // to set private fields\n\n ColumnMapping foreignKeyMapping = new ColumnMapping(columnName, indexOfColumn,\n null, field, ColumnMapping.FOREIGN_KEY_MAPPER);\n columnMap.put(foreignKeyMapping.getColumnName(), foreignKeyMapping);\n return this;\n }", "title": "" }, { "docid": "4e9d5cf5f852ca9af687ed5444f45f17", "score": "0.47466043", "text": "public String getDestination(){\n\t\treturn destination;\n\t}", "title": "" }, { "docid": "5c295c1628fbd9d474a071c4c6cea1b4", "score": "0.47361088", "text": "public void ship (String dest) {\n Contents c = new Contents();\n Destination d = new Destination(dest);\n }", "title": "" }, { "docid": "8ce5d1fb40925882b6cb6e3c1efb9b7e", "score": "0.4733141", "text": "private Onto1 getOnto1(ISchema schema1) {\n\t\tOnto1 onto1 = new Onto1();\n\t\tonto1.setOntology(getOntologyType(schema1));\n\t\treturn onto1;\n\t}", "title": "" }, { "docid": "3ba0a6ae1d2f47da289e0dac36a282ac", "score": "0.4728065", "text": "public <D> D oneToMany(Class<D> destinationClass, final T source);", "title": "" }, { "docid": "0b5c5c9ea1b36746641f0160bcb71879", "score": "0.47137144", "text": "@Override\n\tprotected Task<Entity> copyTo (Task<Entity> task) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a5be59935b15d8edb31eac785bc422c3", "score": "0.47127283", "text": "Destinations getDestination(String label)\n\t{\n\t\tclass PDestination implements Destinations //Class definition starts here\n\t\t{\n\t\t\t//Cannot have static variables in non-static\n//\t\t\tstatic Name name = new Name (\"StatIC METHOD INNER CLASS VARIABLE\");\n\t\t\tName name1 = new Name (\"NON-StatIC METHOD INNER CLASS VARIABLE\");\n\t\t\tprivate String destinationName;\n\t\t\tPDestination(String destinationName)\n\t\t\t{\n\t\t\t\tthis.destinationName = destinationName;\n\t\t\t}\n\t\t\t\n\t\t\tpublic String readLabel ()\n\t\t\t{\n\t\t\t\treturn destinationName;\n\t\t\t}\n\t\t} // Class definition ends here\n\t\t\n\t\treturn new PDestination (label);//Creating a new Object\t\n\t}", "title": "" }, { "docid": "b856de928428c2b2f4a7793392a54829", "score": "0.4707322", "text": "public String destinationType() {\n return this.destinationType;\n }", "title": "" }, { "docid": "9876cc2a4e899158dc8aac72875899bc", "score": "0.47038043", "text": "public CopyDTO() {}", "title": "" }, { "docid": "e56a21e9464f6e99800dc912d24f5155", "score": "0.46992937", "text": "public int getDestination() {\n return destination;\n }", "title": "" }, { "docid": "fa0ce5af02381f704ca07ada0560fb10", "score": "0.4696874", "text": "interface WithDestinationAccount {\n /**\n * Specifies the destinationAccount property: Required. Destination account name..\n *\n * @param destinationAccount Required. Destination account name.\n * @return the next definition stage.\n */\n WithCreate withDestinationAccount(String destinationAccount);\n }", "title": "" }, { "docid": "ac7f3436bf38696f2096a87b93586656", "score": "0.46905604", "text": "String destinationAccount();", "title": "" }, { "docid": "7036f8df2044cf80f4450dfbe20544b7", "score": "0.4686664", "text": "public WaitPerson3 destination() {\n\t\treturn originator;\n\t}", "title": "" }, { "docid": "efc8f737be1110e0ed746a68027d6ece", "score": "0.46788764", "text": "public <D> D oneToManyWithoutControl(Class<D> destinationClass, final T source);", "title": "" }, { "docid": "289465f11e1c1e7f527685c08c1ba82e", "score": "0.46776277", "text": "public <S> T manyToOne(final S source,final MappingType mtSource);", "title": "" }, { "docid": "91889c174cb3c1bd871855899312daf1", "score": "0.4669111", "text": "public DestinationName() {\n }", "title": "" }, { "docid": "ceebf82bdc6d8bdd1d2c98ffc9f8acd1", "score": "0.46550855", "text": "public EdgProto.Edg.Vtx getDestination() {\n return destination_;\n }", "title": "" }, { "docid": "15d89b8296f2253f2f969895108907c9", "score": "0.46539718", "text": "public int getDestinationId() {\n return destinationId_;\n }", "title": "" }, { "docid": "ce2ab0dd4cd19df7916641992a1c7ea6", "score": "0.46500924", "text": "public CopyBeanUtils to(Object destination) {\n this.destination = destination;\n\n this.isTargetMap = destination instanceof Map;\n\n return this;\n }", "title": "" }, { "docid": "9dfa1e76181b445b2db63f13262c78ab", "score": "0.46441418", "text": "public com.guidewire.datamodel.OnetooneDocument.Onetoone addNewOnetoone()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.OnetooneDocument.Onetoone target = null;\r\n target = (com.guidewire.datamodel.OnetooneDocument.Onetoone)get_store().add_element_user(ONETOONE$34);\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "473f22e54d37daebb89491238a6f29d0", "score": "0.46431166", "text": "@Override\n\tpublic String getDestination() {\n\t\treturn destination;\n\t}", "title": "" }, { "docid": "b1721948da2a48dd67ee82fdf7af6a4f", "score": "0.46364117", "text": "public CopyBeanUtils toBean(Object destination) {\n this.destination = destination;\n return this;\n }", "title": "" }, { "docid": "ff5353385c7144ea78a8b23da88cfcaa", "score": "0.46333423", "text": "protected Destination createDestination(Session session, DestinationType type) throws JMSException {\n return createDestination(session, type, false);\n }", "title": "" }, { "docid": "1735564eb3cff44da1eb1c567c81b7a3", "score": "0.4624183", "text": "public Turno_DTO(Turno turno) {\n\t}", "title": "" }, { "docid": "96ecb353ee39028275bf743fb151f66b", "score": "0.4622443", "text": "PaginaWeb getDestino();", "title": "" }, { "docid": "2b5f3f7eba2a2da3a424fc2e3e585f95", "score": "0.46204048", "text": "public ContentDto converter(Contents source) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "68f72b8fc52403e39ce85ba6f1458346", "score": "0.46143523", "text": "public java.lang.String getDestinationresourceid(){\n return localDestinationresourceid;\n }", "title": "" }, { "docid": "68f72b8fc52403e39ce85ba6f1458346", "score": "0.46143523", "text": "public java.lang.String getDestinationresourceid(){\n return localDestinationresourceid;\n }", "title": "" }, { "docid": "68f72b8fc52403e39ce85ba6f1458346", "score": "0.46143523", "text": "public java.lang.String getDestinationresourceid(){\n return localDestinationresourceid;\n }", "title": "" }, { "docid": "68f72b8fc52403e39ce85ba6f1458346", "score": "0.46143523", "text": "public java.lang.String getDestinationresourceid(){\n return localDestinationresourceid;\n }", "title": "" }, { "docid": "68f72b8fc52403e39ce85ba6f1458346", "score": "0.46143523", "text": "public java.lang.String getDestinationresourceid(){\n return localDestinationresourceid;\n }", "title": "" }, { "docid": "68f72b8fc52403e39ce85ba6f1458346", "score": "0.46143523", "text": "public java.lang.String getDestinationresourceid(){\n return localDestinationresourceid;\n }", "title": "" }, { "docid": "dde4453b41e0f214b74963fdd0bdd9d4", "score": "0.46124765", "text": "public void setDestination(String destination)\n {\n this.destination = destination;\n }", "title": "" }, { "docid": "075d07d672055d81a10907ac7f231ebd", "score": "0.46112925", "text": "public ElementKey getDestination() {\n return destination;\n }", "title": "" }, { "docid": "30d1a8b430b809eb62bcce6c6acc44ea", "score": "0.46101397", "text": "public <S> T manyToOneWithoutControl(final S source);", "title": "" }, { "docid": "0ef76b25950b79396510f187b51c303b", "score": "0.4599232", "text": "E toEntity(D dto);", "title": "" }, { "docid": "e6c29937086001f75e9c56aa103b7e27", "score": "0.4599093", "text": "Entity getTarget();", "title": "" }, { "docid": "13fd698de78e6a0e65e1ee089f0f1907", "score": "0.4598364", "text": "public Long getToId() {\n return toId;\n }", "title": "" }, { "docid": "17a47ebfdd40879a1f18a1188747a92a", "score": "0.4593684", "text": "public Location getDestination() {\n return destination;\n }", "title": "" }, { "docid": "e6b7f9474307ee94eb839aff5163f445", "score": "0.4588913", "text": "boolean hasDestinationId();", "title": "" }, { "docid": "0b15d908c2d64bcbd6c167cf07ecce81", "score": "0.45851353", "text": "@Override\r\n\tpublic BroadcastDTO selectOne(BroadcastDTO dto) throws Exception {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e916731b85bfd58bd5038560e49f9141", "score": "0.45819277", "text": "public <S> T manyToOne(final S source,final NullPointerControl nullPointerControl,final MappingType mtSource);", "title": "" }, { "docid": "846d5419439c86173afe550ac7b420a6", "score": "0.45773223", "text": "private void getDestination() {\n\n if(destination == null || destination.isEmpty()){\n\n\n chatRoomDb.child(chatRoomId).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n DataSnapshot participants = dataSnapshot.child(\"participants\");\n for(DataSnapshot participant : participants.getChildren()){\n if(!participant.getKey().equals(sender)){\n destination = participant.getKey();\n setupToolBar();\n }\n }\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n } else {\n setupToolBar();\n }\n }", "title": "" }, { "docid": "183fe71132eaebe6649505c06772548b", "score": "0.45755476", "text": "E newInstance(N source, N destination);", "title": "" } ]
67165eff0d07eae41f51880b4cde1f54
stringRedisTemplate.opsForValue().set(prefix + KEY_SPLIT + key, value);
[ { "docid": "3890da3ad977ae940f252e53e16d7fbf", "score": "0.70414394", "text": "public void setStringToSet(String prefix, String key, String value) {\n redisTemplate2.opsForSet().add(prefix + KEY_SPLIT + key, value);\n Slf4jLogUtil.SimpleLogUtil.debug(\"RedisService:set cache key={},value={}\", prefix + KEY_SPLIT + key, value);\n }", "title": "" } ]
[ { "docid": "eadb2b870522756133ea64b37dadf755", "score": "0.69741744", "text": "@Test\n\tvoid testRedis() {\n\t\tValueOperations<String, String> valueStr = redisTemplate.opsForValue();\n\t\t// insert set\n\t\tvalueStr.set(\"goodsProdu\",\"BMW\");\n\t\t// redis get\n\t\tString goodsName = valueStr.get(\"goodsProdu\");\n\t\tSystem.out.println(goodsName);\n\t\t//insert multiple data\n\t\tMap<String,String> map = new HashMap<>();\n\t\tmap.put(\"goodsName\",\"BMWCar\");\n\t\tmap.put(\"goodsPrice\",\"88888\");\n\t\tmap.put(\"goodsId\",\"88\");\n\n\t\tvalueStr.multiSet(map);\n\t\t//get multiple data\n\t\tList<String>list = new ArrayList<>();\n\t\tlist.add(\"goodsName\");\n\t\tlist.add(\"goodsPrice\");\n\t\tlist.add(\"goodsId\");\n\t\tlist.add(\"goodsProdu\");\n\n\t\tList<String> listKeys = valueStr.multiGet(list);\n\t\tfor (String key : listKeys) {\n\t\t\tSystem.out.println(key);\n\t\t}\n\t}", "title": "" }, { "docid": "6fa20758ee11e7b61565dc88da1406d4", "score": "0.6686152", "text": "@Override\r\n\tpublic void set(String key, String value) {\n\t\tvalueOperationRedis.set(key, value);\r\n\r\n\t}", "title": "" }, { "docid": "2a3097793565f498948e95e1285ac2f8", "score": "0.6464114", "text": "V put(String prefix, V value);", "title": "" }, { "docid": "f5eaa0b681599ca6797095a231acaf43", "score": "0.6347949", "text": "@Override\r\n\tpublic void set(String key, String value, long offset) {\n\t\tvalueOperationRedis.set(key, value, offset);\r\n\t}", "title": "" }, { "docid": "b7f4c17912fb76b5ac48b64d9552d146", "score": "0.631399", "text": "@Test\n public void testAdd() {\n String key = \"goods_003\";\n Map<String,String> map = new HashMap<>();\n map.put(\"a\",\"A\");\n map.put(\"b\",\"B\");\n map.put(\"c\",\"C\");\n redisTemplate.opsForHash().putAll(key,map);\n /**\n * hset key field1 value1\n */\n redisTemplate.opsForHash().put(key,\"d\",\"D\");\n redisTemplate.opsForHash().put(key,\"e\",\"1\");\n redisTemplate.opsForHash().put(key,\"f\",\"3.3\");\n\n /**\n * hsetnx key field value\n */\n Boolean aBoolean = redisTemplate.opsForHash().putIfAbsent(key, \"d\", \"DD\");\n System.out.println(aBoolean);\n }", "title": "" }, { "docid": "e6299540d12af51dcca1e3ac83abecd5", "score": "0.6288492", "text": "@Override\r\n\tpublic String getAndSet(String key, String value) {\n\t\treturn valueOperationRedis.getAndSet(key, value);\r\n\t}", "title": "" }, { "docid": "d1c542d47bc7e7f8f69a2ccb57189c03", "score": "0.6243625", "text": "@Override\r\n\tpublic Boolean setIfAbsent(String key, String value) {\n\t\treturn valueOperationRedis.setIfAbsent(key, value);\r\n\t}", "title": "" }, { "docid": "6ffec5984566ed591cc75ab1fc265e3e", "score": "0.6202832", "text": "@Override\r\n\tpublic Integer append(String key, String value) {\n\t\treturn valueOperationRedis.append(key, value);\r\n\t}", "title": "" }, { "docid": "ab9c5d3b930366c853fdd6dbe709e0d9", "score": "0.58626324", "text": "public String put(String key, String value);", "title": "" }, { "docid": "98c491c75f715b8fdfb401aa9fbdab59", "score": "0.5855306", "text": "public void set(String key, String value);", "title": "" }, { "docid": "5db6594543dc15f166596be9e0522df9", "score": "0.5840252", "text": "void set(String key, String value, long ttl) throws Exception;", "title": "" }, { "docid": "ed6150a0fdb5517acd8098c9fc1d69a7", "score": "0.5816163", "text": "public interface RedisService {\n\n /**\n *\n * @param key\n * @param value\n * @param seconds 超时时间\n */\n public void put(String key, Object value, long seconds);\n\n public Object get(String key);\n}", "title": "" }, { "docid": "2777399d414d65c6e2184ee8c98bda26", "score": "0.5787309", "text": "public interface RedisConstant {\n\n String TOKEN_PEFIX = \"token_%s\";\n\n Integer EXPIRE = 2 * 60 * 60; // 2 hours\n}", "title": "" }, { "docid": "399fcac3864091182d14c3dc84172237", "score": "0.5639244", "text": "public interface BinaryJedisCommands {\n String set(byte[] key, byte[] value);\n\n byte[] get(byte[] key);\n\n Integer exists(byte[] key);\n\n String type(byte[] key);\n\n Integer expire(byte[] key, int seconds);\n\n Integer expireAt(byte[] key, long unixTime);\n\n Integer ttl(byte[] key);\n\n byte[] getSet(byte[] key, byte[] value);\n\n Integer setnx(byte[] key, byte[] value);\n\n String setex(byte[] key, int seconds, byte[] value);\n\n Integer decrBy(byte[] key, int integer);\n\n Integer decr(byte[] key);\n\n Integer incrBy(byte[] key, int integer);\n\n Integer incr(byte[] key);\n\n Integer append(byte[] key, byte[] value);\n\n byte[] substr(byte[] key, int start, int end);\n\n Integer hset(byte[] key, byte[] field, byte[] value);\n\n byte[] hget(byte[] key, byte[] field);\n\n Integer hsetnx(byte[] key, byte[] field, byte[] value);\n\n String hmset(byte[] key, Map<byte[], byte[]> hash);\n\n List<byte[]> hmget(byte[] key, byte[]... fields);\n\n Integer hincrBy(byte[] key, byte[] field, int value);\n\n Integer hexists(byte[] key, byte[] field);\n\n Integer hdel(byte[] key, byte[] field);\n\n Integer hlen(byte[] key);\n\n Set<byte[]> hkeys(byte[] key);\n\n Collection<byte[]> hvals(byte[] key);\n\n Map<byte[], byte[]> hgetAll(byte[] key);\n\n Integer rpush(byte[] key, byte[] string);\n\n Integer lpush(byte[] key, byte[] string);\n\n Integer llen(byte[] key);\n\n List<byte[]> lrange(byte[] key, int start, int end);\n\n String ltrim(byte[] key, int start, int end);\n\n byte[] lindex(byte[] key, int index);\n\n String lset(byte[] key, int index, byte[] value);\n\n Integer lrem(byte[] key, int count, byte[] value);\n\n byte[] lpop(byte[] key);\n\n byte[] rpop(byte[] key);\n\n Integer sadd(byte[] key, byte[] member);\n\n Set<byte[]> smembers(byte[] key);\n\n Integer srem(byte[] key, byte[] member);\n\n byte[] spop(byte[] key);\n\n Integer scard(byte[] key);\n\n Integer sismember(byte[] key, byte[] member);\n\n byte[] srandmember(byte[] key);\n\n Integer zadd(byte[] key, double score, byte[] member);\n\n Set<byte[]> zrange(byte[] key, int start, int end);\n\n Integer zrem(byte[] key, byte[] member);\n\n Double zincrby(byte[] key, double score, byte[] member);\n\n Integer zrank(byte[] key, byte[] member);\n\n Integer zrevrank(byte[] key, byte[] member);\n\n Set<byte[]> zrevrange(byte[] key, int start, int end);\n\n Set<Tuple> zrangeWithScores(byte[] key, int start, int end);\n\n Set<Tuple> zrevrangeWithScores(byte[] key, int start, int end);\n\n Integer zcard(byte[] key);\n\n Double zscore(byte[] key, byte[] member);\n\n List<byte[]> sort(byte[] key);\n\n List<byte[]> sort(byte[] key, SortingParams sortingParameters);\n\n Integer zcount(byte[] key, double min, double max);\n\n Set<byte[]> zrangeByScore(byte[] key, double min, double max);\n\n Set<byte[]> zrangeByScore(\n \t\tbyte[] key,\n \t\tdouble min,\n \t\tdouble max,\n \t\tint offset,\n \t\tint count);\n\n Set<Tuple> zrangeByScoreWithScores(byte[] key, double min, double max);\n\n Set<Tuple> zrangeByScoreWithScores(\n \t\tbyte[] key,\n \t\tdouble min,\n double max,\n int offset,\n int count);\n\n Integer zremrangeByRank(byte[] key, int start, int end);\n\n Integer zremrangeByScore(byte[] key, double start, double end);\n\n Integer linsert(\n \t\tbyte[] key,\n \t\tLIST_POSITION where,\n \t\tbyte[] pivot,\n \t\tbyte[] value);\n}", "title": "" }, { "docid": "5ea908c3e1d7f820edc95c1e0d52e69e", "score": "0.5623822", "text": "public Long hset(String key, String field, String value){\n\t\tJedis jedis = null;\n\t\tLong result = null;\n\t\t\n\t\ttry {\n\t\t\tjedis = getJedis();// 获得jedis实例\n\t\t\tresult = jedis.hset(key, field, value);\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t\tLogCvt.error(e.getMessage(), e);\n\t\t} finally {\n\t\t\treturnJedis(jedis);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "840905e37319f3300113080d07374d09", "score": "0.56225497", "text": "public interface RedisUtilService {\n\n /**\n * 保存值到redis\n * @param key 键\n * @param value 值\n */\n void setValue(final String key, final Object value);\n\n// /**\n// * 保存值到redis带失效时间\n// * @param key 键\n// * @param value 值\n// * @param expire 有效时长\n// */\n// void setValueWithExpire(final String key, final Object value, final long expire);\n\n /**\n * 保存对象到redis\n * @param key 键\n * @param value 值\n */\n void setObjectValue(String key, Object value);\n\n /**\n * 保存对象到redis带失效时间\n * @param key 键\n * @param value 值\n * @param expire 有效时长\n */\n <T> void setValueWithExpire(final String key, final T value, final long expire);\n\n// /**\n// * 从redis获取值\n// * @param key 键\n// */\n// Object getVal(String key);\n\n /**\n * 从redis获取对象\n * @param key 键\n */\n <T> T getValue(String key);\n\n /**\n * 从redis删除对象\n * @param key 键\n */\n long delete(String key);\n\n /**\n * 从redis获取hash对象\n * @param key1 主键\n * @param key2 副键\n */\n <T> T getHashVal(final String key1, final Object key2);\n\n /**\n * 保存hash对象到redis\n * @param key1 主键\n * @param key2 副键\n * @param obj 值\n */\n <T> int saveHashVal(final String key1, final Object key2, T obj);\n\n /**\n * 获取redisConnectionFactory\n * @return\n */\n RedisConnectionFactory getRedisConnectionFactory();\n\n /**\n * 插入set单个数据\n * @param key\n * @param t\n * @param <T>\n * @return\n */\n <T> long sAdd(String key, T t);\n /**\n * 插入set多个个数据\n * @param key\n * @param tList\n * @param <T>\n * @return\n */\n <T> long sAdd(String key, List<T> tList);\n /**\n * 获取set中的数据\n * @param key\n * @param classOfT\n * @param <T>\n * @return\n */\n <T> Set<T> getSet(String key, Class<T> classOfT);\n\n <T> long sRem(String key, T t);\n\n <T> Set<T> sInter(Class<T> classOfT,String... keys);\n\n <K,V> boolean hSet(String key1, K k, V v);\n\n <K,V> boolean hMSet(String key, final Map<K, V> valMap);\n\n// <K, V> List<Object> hSetByPipeline(final Map<String, Map<K, V>> valMap);\n\n <K,V> V hGet(String key1, K k, Class<V> classOfV);\n\n <K>Long hDel(String key1, K... key2);\n\n// public <T> Map<String,T> hGetAll(String key1, Class<T> classOfT);\n <K, V> Map<K, V> hGetAll(String key1);\n\n <K,V> Map<K,V> hMGetMap(Class<V> classOfT, String key1, K... keys);\n\n <K,V> List<V> hMGetList(Class<V> classOfT, String key1, K... keys);\n\n <T> Set<T> hKeys(String key1,Class<T> classOfT);\n\n <T> List<T> hVals(String key1,Class<T> classOfT);\n\n Set<String> keys(String nurse_ciTY_id);\n\n <V> Boolean sIsMember(String key,V value);\n}", "title": "" }, { "docid": "f36b2ac2aa87b7e98625086662217f44", "score": "0.56130576", "text": "public interface RedisConst {\n\n String PREFIX = \"token_%s\";\n\n Integer EXPIRE = 7200; //过期时间,秒\n\n}", "title": "" }, { "docid": "169846cf2fdc99067b0b2b8070d1ab7d", "score": "0.56051975", "text": "@Test\n public void testRedisList(){\n Jedis jedis = new Jedis(\"redis://user:foobared@127.0.0.1:6379/2\");\n /*jedis.lpush(\"list_test_key1\",\"aaa\");\n jedis.lpush(\"list_test_key1\",\"aab\");\n jedis.lpush(\"list_test_key1\",\"aac\");*/\n System.out.println(jedis.lindex(\"list_test_key1\",1));\n System.out.println(jedis.ltrim(\"list_test_key1\",0,0));\n System.out.println(jedis.llen(\"list_test_key1\"));\n }", "title": "" }, { "docid": "10a9f45e9f1fd16b13128f93ff55ada3", "score": "0.55961746", "text": "@Test\n\tpublic void testRedis() throws Exception {\n\n\t\tSystem.out.println(redisUtil.set(\"num\",\"1\",60));\n//\t\tredisUtil.incr(\"num\",5);\n//\t\tredisUtil.decr(\"num\",2);\n\t\tSystem.out.println(redisUtil.get(\"num\"));\n\t\tSystem.out.println(redisUtil.getExpire(\"num\"));\n\t\tredisUtil.del(\"num\");\n//\n//\t\tredisUtil.hset(\"car\",\"name\",\"BM\");\n//\t\tSystem.out.println(redisUtil.hget(\"car\",\"name\"));\n//\t\tredisUtil.hset(\"car\",\"price\",\"160\",60);\n//\t\tSystem.out.println(redisUtil.hmget(\"car\"));\n//\t\tMap<String,Object> user = new HashMap<>();\n//\t\tuser.put(\"name\",\"张三\");\n//\t\tuser.put(\"age\",\"23\");\n//\t//\tredisUtil.hmset(\"user\",user);\n//\t\t//redisUtil.hmset(\"user\",user,60);\n//\t\tredisUtil.hdel(\"car\",\"price\");\n//\t\tSystem.out.println(redisUtil.hHasKey(\"car\",\"name\"));\n//\t\tSystem.out.println(redisUtil.hget(\"car\",\"name\"));\n//\t\tSystem.out.println(redisUtil.hget(\"car\",\"price\"));\n//\t\t//System.out.println(redisUtil.hmget(\"user\"));\n//\t\tredisUtil.hincr(\"car\",\"id\",5);\n//\t\tredisUtil.hdecr(\"car\",\"id\",1);\n//\t\tSystem.out.println(redisUtil.hmget(\"car\"));\n\n////\t\tMap<String,Object> user = new HashMap<>();\n////\t\tuser.put(\"name\",\"张三\");\n////\t\tuser.put(\"age\",\"23\");\n//\t\tredisUtil.sSet(\"user\",\"1\");\n//\t\tSystem.out.println(redisUtil.sGetSetSize(\"user\"));\n////\t\tMap<String,Object> user1 = new HashMap<>();\n////\t\tuser.put(\"name\",\"张三1\");\n////\t\tuser.put(\"age\",\"23\");\n//\t\tredisUtil.sSetAndTime(\"user\",60,\"2\");\n//\t\tSystem.out.println(redisUtil.sGetSetSize(\"user\"));\n//\t\tSystem.out.println(redisUtil.sGet(\"user\"));\n//\t\tSystem.out.println(redisUtil.sHasKey(\"user\",\"1\"));\n//\t\tSystem.out.println(redisUtil.setRemove(\"user\",\"1\"));\n//\t\tSystem.out.println(redisUtil.sGet(\"user\"));\n\n//\t\tredisUtil.lSet(\"user\",\"1\");\n//\t\tredisUtil.lSet(\"user\",\"2\");\n//\t\tSystem.out.println(redisUtil.lGet(\"user\",0,-1));\n//\t\tSystem.out.println(redisUtil.lGetListSize(\"user\"));\n//\t\tSystem.out.println(redisUtil.lGetIndex(\"user\",1));\n//\t\tredisUtil.lUpdateIndex(\"user\",0,\"3\");\n//\t\tSystem.out.println(redisUtil.lGetIndex(\"user\",0));\n//\t\tredisUtil.lRemove(\"user\",1,\"2\");\n//\t\tSystem.out.println(redisUtil.lGetListSize(\"user\"));\n//\t\tSystem.out.println(redisUtil.lGetIndex(\"user\",0));\n//\t\tList<String> list = new ArrayList<>();\n//\t\tlist.add(\"4\");\n//\t\tlist.add(\"5\");\n//\t\tredisUtil.lSet(\"users\",list);\n//\t\tSystem.out.println(redisUtil.lGet(\"users\",0,-1));\n//\t\tSystem.out.println(redisUtil.lGetListSize(\"users\"));\n//\t\tSystem.out.println(redisUtil.lGetIndex(\"users\",1));\n//\t\tredisUtil.lUpdateIndex(\"users\",0,\"3\");\n//\t\tSystem.out.println(redisUtil.lGetIndex(\"users\",0));\n//\t\tredisUtil.lRemove(\"users\",1,\"3\");\n//\t\tSystem.out.println(redisUtil.lGetListSize(\"users\"));\n//\t\tSystem.out.println(redisUtil.lGetIndex(\"users\",0));\n\n\n\n\n\t}", "title": "" }, { "docid": "763f925c31e212bedca975edcc125d58", "score": "0.5566429", "text": "@Override\n public String set(final byte[] key, final byte[] value) {\n writeAsync(key, new Callable<OperationResult<String>>(){\n @Override\n public OperationResult<String> call() throws Exception {\n return d_set(key, value);\n }\n });\n\n return targetClient.set(key, value);\n }", "title": "" }, { "docid": "0f7254d3858d24d08d900b32a67b74c1", "score": "0.5556845", "text": "@Override\n public void setKey(String key, String value) {\n\n }", "title": "" }, { "docid": "b1d99489720e59e0068f907b607461fb", "score": "0.5519035", "text": "@Override\r\n\tpublic String get(Object key) {\n\t\treturn valueOperationRedis.get(key);\r\n\t}", "title": "" }, { "docid": "448611cf9fcea8f63c8136186c9bfb66", "score": "0.54922783", "text": "@Override\r\n\tpublic void set(String key, String value, long timeout, TimeUnit unit) {\n\t\tvalueOperationRedis.set(key, value, timeout, unit);\r\n\t}", "title": "" }, { "docid": "3820e665ae8cdc8963adb08686dc4645", "score": "0.54831195", "text": "protected abstract List<String> retrieveValuesFromRedis(T state, List<String> keys);", "title": "" }, { "docid": "8235bdafafbcbace3c616267adf68500", "score": "0.54612523", "text": "MapBuilder putString(String key, String stringValue);", "title": "" }, { "docid": "01eb80bd55c09302787417b919be66a7", "score": "0.54592377", "text": "Mono<Boolean> put(String cacheName, String key, Object value);", "title": "" }, { "docid": "8ca32694da9870c4db3f8a8ebc943713", "score": "0.5450051", "text": "@Test\n public void testRedisHash(){\n Jedis jedis = new Jedis(\"redis://user:foobared@127.0.0.1:6379/2\");\n /**\n * 插入\n * */\n /*jedis.hset(\"hash_test_key1\",\"1\",\"hash1\");\n jedis.hset(\"hash_test_key1\",\"2\",\"hash2\");*/\n System.out.println(jedis.hget(\"hash_test_key1\",\"1\"));\n System.out.println(jedis.hmget(\"hash_test_key1\",new String[]{\"1\",\"2\"}));\n\n /*jedis.hdel();\n jedis.hexists();\n jedis.hget();\n jedis.hgetAll();\n jedis.hincrBy();\n jedis.hincrByFloat();\n jedis.hkeys();\n jedis.hlen();\n jedis.hmget();\n jedis.hmset();\n jedis.hscan();\n jedis.hset();\n jedis.hget();\n jedis.hsetnx();\n jedis.hvals();*/\n }", "title": "" }, { "docid": "b4d2a6406ea6be2bb988058cd250ace7", "score": "0.54410034", "text": "public void set(String key, Object value);", "title": "" }, { "docid": "3b2ba53f52b837a9dcd337d7cec47c6d", "score": "0.54344445", "text": "public abstract void write(String key, String value);", "title": "" }, { "docid": "0620aeaa1e26b0f98a2a4ba718813abc", "score": "0.5424616", "text": "@Test\r\n\tpublic void testRedisTemplate() {\n\t\tSet sets = redisTemplate.opsForHash().keys(RedisFastDto.class.getName());\r\n\t\t//redisTemplate.delete(sets);\r\n\t\tSystem.out.println(sets);\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "d1a1ed97c02cef37d3b8f94cadbe936a", "score": "0.5414077", "text": "void put(String value);", "title": "" }, { "docid": "d1a1ed97c02cef37d3b8f94cadbe936a", "score": "0.5414077", "text": "void put(String value);", "title": "" }, { "docid": "d1db19c56de579a531ed0534e7ad242e", "score": "0.5375049", "text": "public static void main(String[] args) {\n Jedis jedis = new Jedis(\"localhost\", 22121);\n // Jedis jedis = new Jedis(\"localhost\");\n //adding a new key\n System.out.println(jedis.hcdsetproxy(\"key777\", \"myvalue55555\"));\n //getting the key value\n System.out.println(jedis.hcdgetproxy(\"key456\"));\n\n //generating a json object\n JSONObject obj = new JSONObject();\n obj.put(\"name\", \"mystuff.com\");\n obj.put(\"age\", new Integer(100));\n JSONArray list = new JSONArray();\n list.add(\"msg 1\");\n list.add(\"msg 2\");\n list.add(\"msg 6\");\n list.add(\"msg 7\");\n obj.put(\"messages\", list);\n System.out.println(obj.toString());\n System.out.println(obj.toJSONString());\n\n //saving json object to a file \"test.json\"\n try {\n FileWriter file = new FileWriter(\"test.json\");\n file.write(obj.toJSONString());\n file.flush();\n file.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //testing redis cmd: ping, info, set, get,\n // hcdsetproxy, hcdgetproxy\n System.out.println(jedis.ping());\n// System.out.println(jedis.info());\n jedis.set(\"keys1\", obj.toString());\n System.out.println(jedis.hcdsetproxy(\"keyhcd\", obj.toString()));\n System.out.println(\"from redis server: \"+jedis.get(\"keys1\"));\n }", "title": "" }, { "docid": "fbb8cb591000cab1d7bc0e5b27798cfc", "score": "0.5360426", "text": "void put(String key, Object value, int ttl);", "title": "" }, { "docid": "6daf6c9b7895206dd214b13ed72e7c04", "score": "0.53315115", "text": "@Override\r\n\tpublic Boolean multiSetIfAbsent(Map<? extends String, ? extends String> m) {\n\t\treturn valueOperationRedis.multiSetIfAbsent(m);\r\n\t}", "title": "" }, { "docid": "6e4b12d61f677b3e73964f80ec3a1281", "score": "0.532666", "text": "public ResultCode prefixPut(int namespace, Serializable pkey,\n\t\t\tSerializable skey, Serializable value);", "title": "" }, { "docid": "6601d924f52fc029a3a9f19dec8ff217", "score": "0.53255665", "text": "int incr(String key);", "title": "" }, { "docid": "3d82c83fe5d3ba6441ae867fcd8d3d91", "score": "0.5311238", "text": "public void put(String key, String value);", "title": "" }, { "docid": "44d0d49acfbffb41322b6283dcc3e35d", "score": "0.53063786", "text": "@Override\r\n\tpublic void multiSet(Map<? extends String, ? extends String> m) {\n\t\tvalueOperationRedis.multiSet(m);\r\n\t}", "title": "" }, { "docid": "ad6abb70b0a6227fa024f1770cfcf61d", "score": "0.5304657", "text": "@Bean(name = \"userJsonObjHashRedisTemplate\")\n public ValueOperations<String,JSONObject> createJsonObjHashRedisTemplate() {\n return createTemplateCache(OperateEnum.DEFAULT).opsForValue();\n }", "title": "" }, { "docid": "6db6abd883d2fe1e36b78e134ace479f", "score": "0.5298152", "text": "public interface JedisClient {\n\n String set(String key,String value);\n\n String get(String key);\n\n Long hset(String key,String item,String value);\n\n String hget(String key,String item);\n\n Long incr(String key); // 加一\n\n Long decr(String key); // 减一\n\n Long expire(String key,int second); // 设置键过期时间\n\n Long ttl(String key); // 键过期数 整数为倒计时 -1为永久保存 -2为已过期\n\n Long hdel(String key,String item); // 删除map中的key值\n\n}", "title": "" }, { "docid": "9853def18ded91f0d2ba09287a4691d9", "score": "0.5296941", "text": "public V set(K key, V value);", "title": "" }, { "docid": "9853def18ded91f0d2ba09287a4691d9", "score": "0.5296941", "text": "public V set(K key, V value);", "title": "" }, { "docid": "88c77055058282827a880545417bb96f", "score": "0.5281291", "text": "public interface RedisProfileRatingRepository {\n\n /**\n * get rating by key and type\n *\n * @param key profile or mobile\n * @param type (mobilerating)\n * @return\n */\n long getMobileRating(String key, String type);\n\n long incrMobileRating(String key, String type,long value);\n\n}", "title": "" }, { "docid": "8aff245e768516c5753ee5b3337191e3", "score": "0.52809787", "text": "public <T> void putInServerDB(MixedDataKey<T> key, T value);", "title": "" }, { "docid": "caf8f6ce508ccd375bab282ea0056366", "score": "0.5274671", "text": "@Override\n public void putValue(String key, Object value) {\n \n }", "title": "" }, { "docid": "9276f97955486158adf4687afad27358", "score": "0.5264392", "text": "public void hset(String key, String field, String value) {\n\t\tif (StringUtils.isEmpty(field)) {\n\t\t\treturn;\n\t\t}\n\t\ttry (Jedis jedis = jedisPool.getResource()) {\n\t\t\tjedis.hset(key, field, value);\n\t\t}\n\t}", "title": "" }, { "docid": "9b7be0aa15cffd164711a0c0619f5bec", "score": "0.52548605", "text": "public void createOrUpdateValueByKey(String key, String value){\n\t\ttry { \r\n\t\t\tjedis.setex(key, KEY_EXPIRED_PERIOD, value);\r\n\t\t} catch(JedisConnectionException e){ \r\n\t\t\t\r\n\t\t} finally { \r\n\t\t\t//jedisPool.close();\r\n\t\t} \r\n\t\t\r\n\t}", "title": "" }, { "docid": "5f704b8144e9c54b4785be3b76cd73a2", "score": "0.5252304", "text": "public boolean put(Object key, String value);", "title": "" }, { "docid": "1c277a5a0b1beef4a423edf0a1f20fa7", "score": "0.52519536", "text": "public ResultCode prefixPut(int namespace, Serializable pkey,\n\t\t\tSerializable skey, Serializable value, int version);", "title": "" }, { "docid": "3ba0aa4953bf43b1c86846f2c39a4f83", "score": "0.5229316", "text": "public interface RedisService {\n\n /**\n * 将登录用户信息存入缓存\n *\n * @param token\n * @param loginUserCache\n * @return\n */\n String setLoginUserCache(String token, LoginUserCache loginUserCache);\n /**\n *\n * @param token\n * @return\n */\n LoginUserCachePhp getLoginUserCachePhp(String token);\n /**\n * 根据token获取缓存的登录用户信息\n *\n * @param token\n * @return\n */\n LoginUserCache getLoginUserCache(String token);\n\n /**\n * 将key对应的value加1,只有value可以转为数字时该方法才可用\n *\n * @param key\n * @return long 加1后的值\n */\n long incr(String key);\n\n /**\n * 将key对应的value减1,只有value可以转为数字时该方法才可用\n *\n * @param key\n * @return long 减1后的值\n */\n long decr(String key);\n\n /**\n * 设置key和value\n *\n * @param key\n * @param value\n * @return\n */\n String set(String key, String value);\n\n /**\n * 设置key和value,并设置过期时间\n *\n * @param key\n * @param value\n * @param second 秒为单位\n * @return\n */\n String set(String key, String value, int second);\n\n /**\n * 根据key获取value\n *\n * @param key\n * @return\n */\n String get(String key);\n\n /**\n * 判断key是否存在\n *\n * @param key\n * @return\n */\n boolean exists(String key);\n\n /**\n * 重命名key\n *\n * @param oldKey\n * @param newKey\n * @return 状态码\n */\n String rename(String oldKey, String newKey);\n\n /**\n * 为key设置默认过期时间:7天\n *\n * @param key\n * @return\n */\n void expire(String key);\n\n /**\n * 为key设置过期时间\n *\n * @param key\n * @param seconds\n * @return\n */\n void expire(String key, int seconds);\n\n /**\n * 删除keys对应的记录,可以是多个key\n *\n * @param keys\n * @return 删除的记录数\n */\n long del(String... keys);\n\n /**\n * 添加一个或多个成员到有序集合,或者如果它已经存在更新其分数\n *\n * @param key\n * @param scoreMembers\n * @return\n */\n long zadd(String key, Map<String, Double> scoreMembers);\n\n /**\n * 添加一个或多个成员到有序集合,或者如果它已经存在更新其分数\n *\n * @param key\n * @param score\n * @param members\n * @return\n */\n long zadd(String key, double score, String members);\n\n /**\n * 根据key和集合成员返回其索引值,若其不存在则返回null\n *\n * @param key\n * @param members\n * @return\n */\n Long zrank(String key, String members);\n\n /**\n * key的集合数量\n *\n * @param key\n * @return\n */\n Long zcard(String key);\n\n /**\n * 根据key和member增加分数score,若元素不存在则创建并返回新的分数\n *\n * @param key\n * @param score\n * @param member\n * @return\n */\n Double zincrby(String key, double score, String member);\n\n /**\n * 根据key和索引值查询成员集合\n *\n * @param key\n * @param start\n * @param end\n * @return\n */\n Set<String> zrange(String key, long start, long end);\n\n /**\n * 根据key和索引值查询成员集合(包括分数)\n *\n * @param key\n * @param start\n * @param end\n * @return\n */\n List<TupleDto> zrangeWithScores(String key, long start, long end);\n\n /**\n * 删除指定成员,返回删除的数量\n *\n * @param key\n * @param members\n * @return\n */\n long zrem(String key, String... members);\n}", "title": "" }, { "docid": "6c633dc32f27258c1d9780d9e61b9bec", "score": "0.52291", "text": "public void putValue(String key, String value);", "title": "" }, { "docid": "7c1ad7fe3937730c0036663c2f1ddc94", "score": "0.52172446", "text": "public void put(String key, Object value, int ttlInSeconds) {\n\t\tJedis jedis = getJedis();\n\t\t// ticker.tick(\"init getJedis();\");\n\t\tObjectMapper mapper = getMapper();\n\t\t// ticker.tick(\" new ObjectMapper();\");\n\t\ttry {\n\t\t\tString json = mapper.writeValueAsString(value);\n\t\t\t// ticker.tick(\"mapper.writeValueAsString(value)\");\n\t\t\tjedis.set(key, json);\n\n\t\t\tjedis.expire(key, ttlInSeconds);\n\t\t\t// ticker.tick(\"jedis.set(key, json);jedis.expire(key, ttlInSeconds);\");\n\n\t\t} catch (JsonProcessingException e) {\n\t\t\t// is fine\n\t\t} finally {\n\t\t\tjedis.close();\n\t\t}\n\n\t}", "title": "" }, { "docid": "f67076f54f79dbfa2a7e460eb08177c8", "score": "0.5215231", "text": "public void setForValue(final Serializable key, final Serializable value) {\n template.opsForValue().set(key, value);\n }", "title": "" }, { "docid": "ba7ac5741684da26d4d1ccd2e1b3da9d", "score": "0.5201928", "text": "ResultCode put(int namespace, Serializable key, Serializable value);", "title": "" }, { "docid": "a3dfd3f593ca74eaaaa72a1850fabd13", "score": "0.51582164", "text": "VALUE put(KEY key, VALUE value);", "title": "" }, { "docid": "0108b35f652e0ddc9364c52ecf80407d", "score": "0.5143615", "text": "public static void main( String[] args )\n {\n JedisPool jedisPool = RedisUtils.open(\"192.168.139.129\",6379);\n Jedis jedis = jedisPool.getResource();\n jedis.flushDB();\n jedis.set(\"ads\",\"ads\");\n String ads = jedis.get(\"ads\");\n System.out.println(ads);\n System.out.println(\"=============\");\n Map<String ,String> map = new HashMap<>();\n map.put(\"id\",\"10001\");\n map.put(\"name\",\"李四\");\n jedis.hmset(\"student\",map);\n List<String> hmget = jedis.hmget(\"student\",\"id\",\"name\");\n System.out.println(hmget);\n jedisPool.close();\n\n }", "title": "" }, { "docid": "554826c58eb42cb655ca206a8fe204d1", "score": "0.5141489", "text": "public ServerRecord mapKey(String key);", "title": "" }, { "docid": "c5223489bd9d0a0db6dbe6e62ef2637e", "score": "0.51111037", "text": "void put(String k, Object data) throws RemoteException;", "title": "" }, { "docid": "108aacbc16b6663d958c237576d06674", "score": "0.51033634", "text": "void put(String key, Object value);", "title": "" }, { "docid": "8278af2be1703ed11f1524d8238d9a09", "score": "0.50927246", "text": "@RedisCommand(cmd = \"BHSET\", returns = \"OK\")\n\tpublic void chanset(MessageEvent e, Object[] args) throws Exception {\n\t\tString map = new String((byte[]) args[1]);\n\t\tString k = new String((byte[]) args[2]);\n\t\tString v = new String((byte[]) args[3]);\n\t\tIMap<String, String> kvstore = base.client.getMap(map);\n\t\tkvstore.set(k, v, 0, TimeUnit.SECONDS);\n\t\ttry {\n\t\t\tthis.base.addBoundKey(map, k);\n\t\t} catch (Exception exc) {\n\t\t\tSystem.out.println(\"exception on BHSET - \" + exc.getMessage());\n\t\t\tthrow exc;\n\t\t}\n\t}", "title": "" }, { "docid": "533073f77071acf9879328d7347dedf2", "score": "0.5078307", "text": "public void setList(String key, List<String> value);", "title": "" }, { "docid": "0025213cca1cd8acb068dc72f903fc00", "score": "0.50772214", "text": "@Override\n\t public String put(Integer key, String value) {\n\t\t\tString value1 = super.put(key, value);\n \n\t if(getLoadFactor() >= 0.5) {\n\t reHashing();\n\t }\n\t return value1;\n\t }", "title": "" }, { "docid": "acaddeb7a27f555bc7a98a773c733b6b", "score": "0.5071497", "text": "public ResultCode prefixPut(int namespace, Serializable pkey,\n\t\t\tSerializable sKey, Serializable value, int version, int expireTime);", "title": "" }, { "docid": "85c13f00291d45c5d5e7f34f40559748", "score": "0.50598735", "text": "public interface RedisManager {\n\n JedisPool getPool();\n\n String get(String key);\n\n byte[] getBytes(String key);\n\n String set(String key, String value);\n\n String set(byte[] key, byte[] value);\n\n String setex(String key, int exp, String value);\n\n String setex(byte[] key, int exp, byte[] value);\n\n Long expire(String key, int expire);\n\n Long del(String key);\n}", "title": "" }, { "docid": "d7d31c6a65f6da51f33d75d6eb7b242b", "score": "0.5051114", "text": "@Test\r\n public void testAddValueWithPrefix() {\r\n CommandParameters pl = new DefaultCommandParameters();\r\n String key = pl.addValueWithPrefix(\":p\", 12345);\r\n assertThat(key, is(\":p0\"));\r\n assertThat(pl, hasSize(1));\r\n\r\n CommandParameter p = pl.get(0);\r\n assertThat(p.getKey(), is(\":p0\"));\r\n assertThat(p.getValue(), is((Object) 12345));\r\n\r\n key = pl.addValueWithPrefix(\":a\", \"John\");\r\n assertThat(key, is(\":a1\"));\r\n assertThat(pl, hasSize(2));\r\n\r\n p = pl.get(1);\r\n assertThat(p.getKey(), is(\":a1\"));\r\n assertThat(p.getValue(), is((Object) \"John\"));\r\n }", "title": "" }, { "docid": "9de55a1c4c5e9109b778bc3811f442b7", "score": "0.50492066", "text": "@Override\r\n\tpublic String get(String key, long start, long end) {\n\t\treturn valueOperationRedis.get(key, start, end);\r\n\t}", "title": "" }, { "docid": "de54bab3a266aa3e3184cbe9127e1a73", "score": "0.50288063", "text": "@Override\n\tpublic void setObjectForKey(Object value, String key) {\n\t}", "title": "" }, { "docid": "1af005be9c44bf9ce3957f71b25277a0", "score": "0.5026091", "text": "public interface RedisService {\n TaotaoResult syncContent(long contentCid);\n}", "title": "" }, { "docid": "4302a7baf5e123ca514d3912937557d8", "score": "0.5021538", "text": "@Override\n public void set(final String key, final String value) {\n set(key, (Object) value);\n }", "title": "" }, { "docid": "2e6e9f2e946adbae82cd32440af95f99", "score": "0.5014611", "text": "@Test\n\tpublic void testKeysLike() {\n\t\t\tSet<String> keysLike = jedisService.keysLike(\"you[n,m]g\");\n\t\t\tSystem.err.println(keysLike);\n\t}", "title": "" }, { "docid": "c1778b11c03ef24e0b1457e86aa4781c", "score": "0.4999984", "text": "@Bean\n\tpublic RedisTemplate<String, Object> redisTemplate() {\n\t final RedisTemplate<String, Object> template = new RedisTemplate<String, Object>();\n\t template.setConnectionFactory(jedisConnectionFactory());\n\t return template;\n\t}", "title": "" }, { "docid": "a51d9ff185e60b9b79129a9c56752bf0", "score": "0.49968845", "text": "void createAndUpdateKvConfig(String namespace, String key,\n String value) throws RemotingException, BrokerException,\n InterruptedException, ClientException;", "title": "" }, { "docid": "77e4fcaac3712c82b326858773b35af8", "score": "0.49903753", "text": "public void $put(String key, T object, int originator);", "title": "" }, { "docid": "69f66e8d8cc60806bf8b85f455f06a2b", "score": "0.4988454", "text": "void setKey(String key);", "title": "" }, { "docid": "f807edd84448a4d7990cc10bc7872364", "score": "0.49878922", "text": "@Override\n\t//Map에 sql저장.\n\tpublic void register(String key, String value) {\n\t\tsqlmap.put(key, value);\n\t}", "title": "" }, { "docid": "f02db222679034468bf09eaa41ee84ad", "score": "0.4971297", "text": "public abstract boolean put(String key, byte[] value);", "title": "" }, { "docid": "ab8378fbba66d1635caa9a4130aad6ed", "score": "0.49383", "text": "public StringAttribute set(String key, String value) {\n StringAttribute attr = new StringAttribute(key,value);\n return put(attr.getKey(),attr);\n}", "title": "" }, { "docid": "e7eed9eb211264d4b901a023473caf03", "score": "0.49292564", "text": "public static void main(String[] args) {\n\t\tJedis jedis = new Jedis(\"192.168.0.111\");\r\n\t long start = System.currentTimeMillis();\r\n\t for (int i = 0; i < 100000; i++) {\r\n\t String result = jedis.set(\"test\" + i, \"n\" + i);\r\n\t }\r\n\t long end = System.currentTimeMillis();\r\n\t System.out.println(\"Simple SET: \" + ((end - start)/1000.0) + \" seconds\");\r\n\t\t\r\n//\t\tString name = jedis.get(\"baila\");\r\n//\t\tSystem.out.println(name);\r\n\t\t\r\n\t jedis.disconnect();\r\n\t}", "title": "" }, { "docid": "936b7e05809f7fc5c859053971c96ecc", "score": "0.49251106", "text": "<T> void put(String key, T value, BaseSerializer<T> serializer);", "title": "" }, { "docid": "6d478916173258fde5f3fc8bc5779243", "score": "0.49227923", "text": "boolean add(String key, String value);", "title": "" }, { "docid": "6a48c3f6abd0c5b8c64be70a42ea0ff5", "score": "0.491367", "text": "@Override\n public void putValue(final String key, final Object value) {\n }", "title": "" }, { "docid": "160fa5d971d43fbb912cae58ee73302b", "score": "0.49102262", "text": "public void setValue( K key, V value );", "title": "" }, { "docid": "bca6cd1b521e06908a350be5b9b5a67e", "score": "0.49092272", "text": "@Override\n\tpublic void map(Text key, ValuePair value, Context context) throws IOException, InterruptedException {\n\t key.set(key.toString().toLowerCase());\n\t context.write(key, value);\n\t}", "title": "" }, { "docid": "f5d235f611de8955004e3e95c6ef9f96", "score": "0.4905385", "text": "int incr(String key, int ttl);", "title": "" }, { "docid": "56b89b7ae1aa54c95ec4367864b64766", "score": "0.4898799", "text": "void data(String key, Object value);", "title": "" }, { "docid": "ad3317dea7f9373900f24eb342bc7291", "score": "0.4887671", "text": "@RequestMapping(\"/redis/set\")\r\n\tpublic String redisCotroller() {\r\n\t\tString result = redisService.setTest();\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "c7ccd4505bbccf66b2d5554417a55559", "score": "0.4884302", "text": "public void put(String key, Object value);", "title": "" }, { "docid": "1b993eddb3ccba0da7d57d459b9b77f6", "score": "0.48801723", "text": "public interface RedisService {\n TaotaoResult contentCacheSync(Long contentId);\n}", "title": "" }, { "docid": "f1cc98a6178c2d627978efb453b151b0", "score": "0.48771164", "text": "@Override\r\n\t\t\t\t\tpublic void write(@NonNull String key, @NonNull DatabaseShard value) {\n\t\t\t\t\t}", "title": "" }, { "docid": "b9fd2e4905a4b286e500e14a2e9a3131", "score": "0.48674667", "text": "@Test\n public void testUpdate() {\n Long increment = redisTemplate.opsForHash().increment(\"goods_003\", \"e\", 2L);\n System.out.println(increment);\n Double increment1 = redisTemplate.opsForHash().increment(\"goods_003\", \"e\", 2.5);\n System.out.println(increment1);\n\n /**\n * hincrbyfloat key field incrment\n */\n Double increment2 = redisTemplate.opsForHash().increment(\"goods_003\", \"f\", 2.5);\n System.out.println(increment2);\n }", "title": "" }, { "docid": "ea026aa757c32380b84c442fa70e92c3", "score": "0.4867417", "text": "LuaValue key();", "title": "" }, { "docid": "42c4833c90ccd9729564bdbb773c870b", "score": "0.48645687", "text": "public String set(String key, String value) throws TimeoutException{\r\n\t\tString result = \"\";\r\n\t\tJedis jedis = null;\r\n\t\ttry {\r\n\t\t\tjedis = getJedis();\r\n\t\t\tresult = jedis.set(key, value);\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\treleaseJedisInstance(jedis);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "51b3cd303520244fffcc010e0c97069c", "score": "0.48624465", "text": "public void addKeyVal(String key, String value) \n\t{\n\t\tint keyHashOptOne = Integer.parseInt(key)*5 - 4;\n\t\tint keyHashOptTwo = Integer.parseInt(key);\n\t\tint hashInt = keyHashOptTwo - 1;\n\t\t\n\t\tif (this.getTable()[hashInt] != null && keyHashOptTwo > 0) \n\t\t{\n\t\t\tthis.hashTable[hashInt] = this.getTable()[hashInt] + \";\" + value;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tthis.hashTable[hashInt] = value;\n\t\t}\n\t}", "title": "" }, { "docid": "1e93883c1036e59ff487b3139a95b26d", "score": "0.48471022", "text": "@Override\r\n\tpublic Object put(String key, Object value) {\n\t\tthis.hash = this.hash + (key.hashCode() + value.getClass().hashCode() + value.hashCode());\r\n\t\treturn super.put(key, value);\r\n\t}", "title": "" }, { "docid": "305d5f33698441f43b8ebb2c396aa7e4", "score": "0.4836235", "text": "T set(String name, String value);", "title": "" }, { "docid": "cccfb2642242a9e98bc576018a4fc98a", "score": "0.48349997", "text": "public static void main(String[] args) {\n\n RedisUtility.saveString(\"redis\", \"version-2.8.4\");\n\n /*Save list in redis*/\n\n List<String> versionList = new ArrayList<String>();\n versionList.add(\"v-1.2.0\");\n versionList.add(\"v-1.3.0\");\n versionList.add(\"v-1.4.0\");\n RedisUtility.saveList(\"version\", versionList);\n\n\n\n /*Save set in redis*/\n\n\n List<String> nameList = new ArrayList<String>();\n nameList.add(\"Jon\");\n nameList.add(\"Tim\");\n nameList.add(\"Smith\");\n nameList.add(\"Smith\");\n RedisUtility.saveSet(\"name\", nameList);\n\n\n /*Save sorted set in redis*/\n\n RedisUtility.saveSortedSet(\"name-sort\", nameList);\n\n\n /*Save hashes in redis*/\n\n Map<String,String> userDetailMap = new HashMap<String, String>();\n userDetailMap.put(\"name\",\"Farnando\");\n userDetailMap.put(\"id\",\"ID001\");\n userDetailMap.put(\"city\",\"Melborne\");\n userDetailMap.put(\"profession\",\"Business\");\n RedisUtility.saveHash(\"user\", userDetailMap);\n RedisUtility.getHash(\"user\",\"name\",\"id\");\n\n /*Get all key's stroed in redis*/\n\n RedisUtility.getAllKey();\n }", "title": "" }, { "docid": "9036d011d2c582ae4bcb33f2ba5f2b0d", "score": "0.48305014", "text": "public void Add(String key, String value)\r\n {\r\n Values.put(new BString(key), new BString(value));\r\n }", "title": "" }, { "docid": "5ca59c8a547aeaa21e2990d23885a9a3", "score": "0.4821259", "text": "@Override\n\tpublic void putValue(String arg0, Object arg1) {\n\n\t}", "title": "" }, { "docid": "be24c10b7ec5b026033cbbcaf4ecc7e0", "score": "0.48202503", "text": "@Override\n\tpublic String getRemote(String key, String value) {\n\t\tStringBuffer temp = new StringBuffer();\n\t\tString[] arr = value.split(\",\");\n\t\t/*\n\t\tbody = String.format(\"%s%s%s%s%s%s%s\", body, MyUtils.strTo16(arr[0]),\n\t\t\t\tMyUtils.strTo16(arr[1]), ByteAndStr16.Bytes2HexString(MyUtils\n\t\t\t\t\t\t.integerTo4Bytes(Integer.parseInt(arr[2]))), Long\n\t\t\t\t\t\t.toHexString(MyUtils.ipToLong(arr[3])), ByteAndStr16\n\t\t\t\t\t\t.Bytes2HexString(MyUtils.integerTo4Bytes(Integer\n\t\t\t\t\t\t\t\t.parseInt(arr[4]))), ByteAndStr16\n\t\t\t\t\t\t.Bytes2HexString(MyUtils.integerTo4Bytes(Integer\n\t\t\t\t\t\t\t\t.parseInt(arr[5]))));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t*/\n\t\t\n\t\t\n\t\ttemp.append( MyUtils.strTo16(arr[0])).append(MyUtils.strTo16(arr[1])).append(ByteAndStr16.Bytes2HexString(MyUtils\n\t\t\t\t\t\t.integerTo4Bytes(Integer.parseInt(arr[2])))).append(Long\n\t\t\t\t\t\t.toHexString(MyUtils.ipToLong(arr[3]))).append(ByteAndStr16\n\t\t\t\t\t\t.Bytes2HexString(MyUtils.integerTo4Bytes(Integer\n\t\t\t\t\t\t\t\t.parseInt(arr[4])))).append(ByteAndStr16\n\t\t\t\t\t\t.Bytes2HexString(MyUtils.integerTo4Bytes(Integer\n\t\t\t\t\t\t\t\t.parseInt(arr[5]))));\n\t\t\n\t\tString body=temp.toString();\n\t\ttemp.setLength(0);\n\t\ttemp.append(key).append(MyUtils.IntegerToString16For4(body.length() / 2)).append(body);\n\n\t\t//body = String.format(\"%s%s%s\", key,\n\t\t//\t\tMyUtils.IntegerToString16For4(body.length() / 2), body);\n\t\treturn temp.toString();\n\t}", "title": "" } ]
5d9001aa652a43019073d2464d1e707a
Created by hp on 11/19/2016.
[ { "docid": "97c7dea32849b92dc9b31beb03d2ce4b", "score": "0.0", "text": "public interface OnAdminDetailItemClick {\n\n void onAdminDetailItemClicked(ArrayList<UserList> lstEvt, int position);\n\n\n}", "title": "" } ]
[ { "docid": "76b3966c8e3f64884c4127d1a3df09a8", "score": "0.6087406", "text": "@Override\r\n\t\t\tpublic void maruti() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "b7c706d331e2b507ec0ff8404ad87dc7", "score": "0.60064715", "text": "@Override\r\n\t\t\tpublic void crispel() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "b5dec8709a9a146ca6e5962661476057", "score": "0.5903988", "text": "private Semitones() {\n \n }", "title": "" }, { "docid": "f13a29996996a34a710d85285e104a7f", "score": "0.58843595", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "04c0a4c3b41f5112e89f151d02135096", "score": "0.5856782", "text": "private static void auto() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bde53ee3de9072b04cd122133e6162a1", "score": "0.5822678", "text": "public void soigner() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f5fd4f1b89ecbb54b8b64a1b9e40552c", "score": "0.58061635", "text": "protected void mo7431b() {\n }", "title": "" }, { "docid": "a21047eaafcc2c1ada6326bfbe33e0ad", "score": "0.5785223", "text": "@Override\r\n public void alquilar() {\n }", "title": "" }, { "docid": "90586632a4af36d51003a1554ebef902", "score": "0.5759399", "text": "public void mo24205Oz() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.57070386", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.57070386", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.57070386", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.57070386", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.57070386", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.57070386", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.5701433", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.5671409", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "34b43810a805e0d48661629f62b35f2b", "score": "0.565768", "text": "@Override\r\n\tpublic void 위험물회피() {\n\t\t\r\n\t}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.5657588", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "c5fa2315669c0925b60762f7cca5f0f6", "score": "0.5643482", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5622474", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.56162935", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.5593693", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "86ed6713ba8e5a54203c31fb8f461898", "score": "0.55867493", "text": "protected boolean func_70814_o() { return true; }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5582326", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5582326", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5582326", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5582326", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5582326", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5582326", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.5570729", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f448e47f2da25727e964a3718545f012", "score": "0.5561291", "text": "public final void mo93547c() {\n }", "title": "" }, { "docid": "c2b1e81a080804916a788413031e651f", "score": "0.5544102", "text": "public void mo39596a() {\n }", "title": "" }, { "docid": "c2b1e81a080804916a788413031e651f", "score": "0.5544102", "text": "public void mo39596a() {\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5536534", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5536534", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "96950fcd6668067c4f88772215663192", "score": "0.5522358", "text": "private void init() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55211574", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55211574", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55211574", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55211574", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55211574", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55211574", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55211574", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55211574", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "81488a3212e9004be8808ba15e91f1a5", "score": "0.55203813", "text": "public final void mo93546b() {\n }", "title": "" }, { "docid": "6fdee6df859d02229649e9693fa28697", "score": "0.5517365", "text": "public final void mo74769c() {\n }", "title": "" }, { "docid": "73505425d75fccf0aaca07c596941abd", "score": "0.5516715", "text": "static private void herd() {\n\t\t\n\t}", "title": "" }, { "docid": "64d7e7aa6171a58c9037c52f7f0f1382", "score": "0.55165434", "text": "public final void mo74769c() {\n }", "title": "" }, { "docid": "3fb97b46c147b19f8180197325c66d34", "score": "0.551549", "text": "@Override\n public void quite() {\n }", "title": "" }, { "docid": "40a41a107fa03a270a78b03d0bcf910d", "score": "0.5499938", "text": "private void ergebnisAuswerten() {\n\n\t}", "title": "" }, { "docid": "28fcdb48fa0b9890f9666ae29ef02f55", "score": "0.54939646", "text": "private void init() {\n\n\t}", "title": "" }, { "docid": "a1483cb59e81616cafe07934cf2a28f5", "score": "0.5487655", "text": "protected void mo1960i() {\n }", "title": "" }, { "docid": "6ba5badabb09f55bd648ba4977358e14", "score": "0.5487442", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5478297", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5477296", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "4ff7fd5d2a0aebc561e81557b528262a", "score": "0.54567015", "text": "@Override\n\tprotected void initialize() {\n\n }", "title": "" }, { "docid": "9da42c54ca8fb8825afce96ad2d2781c", "score": "0.54506063", "text": "@Override\r\n\tpublic void comenzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5448334", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5447116", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5447116", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5447116", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5447116", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.54464585", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c18c3127184f8abd7be145ddb9d4c3e6", "score": "0.54462445", "text": "@Override\r\n\tpublic void 온도내리기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5443513", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5443513", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5443513", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9ee6be05232928533401d708d518b6ed", "score": "0.5441823", "text": "@Override\r\n\t\t\tpublic void enginetype() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "1d4f71b71db1c79dfd50a9e0bfb7c928", "score": "0.54412484", "text": "@Test\n\t\tpublic void testBugOne() {\n\t\t}", "title": "" }, { "docid": "c387be8fe936bea8d505f3a779d6ba15", "score": "0.5433487", "text": "@Override\n\tpublic void actualise() {\n\t\t\n\t}", "title": "" }, { "docid": "547c78689e54ebf8a887c5f60840ef15", "score": "0.5431084", "text": "public static void initate() {\n\n\t}", "title": "" }, { "docid": "0e281be4fbc814290809cbdae250ea77", "score": "0.5426546", "text": "public final void mo59418f() {\n }", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.5412602", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "6f28b858823f2e868517ee6030db6fc1", "score": "0.54118395", "text": "private Kontobewegung() {}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.54081297", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.54081297", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.54081297", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.5402291", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "4c3b3d975dd112cd0977aeae3ca50081", "score": "0.5383434", "text": "public void mo12930a() {\n }", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.53821903", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "6575bb2e40b92b7e378d5d71b5551f39", "score": "0.53701353", "text": "public void mo383a() {\n }", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.5368129", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.5368129", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "3591cdf9e5727233d437e1972b8f12cb", "score": "0.5362279", "text": "protected abstract void mo5419a();", "title": "" }, { "docid": "096eb77080c8c192fe461650f49ca14b", "score": "0.53477776", "text": "@Override\r\n public void catering() {\r\n\r\n }", "title": "" }, { "docid": "556495e35d508ac961dae051dd40b377", "score": "0.53475136", "text": "@Override\n\tpublic void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "8e056894cd061aea767d71a9c1b43d97", "score": "0.5339021", "text": "@Override\n\tpublic void init(){\n\t}", "title": "" }, { "docid": "c7e46898326a8035a77f0ef2c6d699de", "score": "0.53369915", "text": "public void mo54944s() {\n }", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.5335635", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.5335635", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.5335635", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.5335635", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "6827ba40809e6f9bad9a043036edaa04", "score": "0.5332224", "text": "@Override\r\n\tpublic void dormir() {\n\t}", "title": "" }, { "docid": "ce01e16cbc1fc0a29d28a4365b63f79d", "score": "0.5326716", "text": "@Override\n\tprotected void specialFuntion() {\n\t\t\n\t}", "title": "" }, { "docid": "da4fa7e263bb2e6d703854259aaf6363", "score": "0.5320393", "text": "@Override\n\tprotected void initialize() \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "da4fa7e263bb2e6d703854259aaf6363", "score": "0.5320393", "text": "@Override\n\tprotected void initialize() \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "da4fa7e263bb2e6d703854259aaf6363", "score": "0.5320393", "text": "@Override\n\tprotected void initialize() \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.53187394", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "099c702d1600d91871f63d5522fae998", "score": "0.5318609", "text": "@Override\n public int creationState() {\n return 0;\n }", "title": "" }, { "docid": "0b7e29585e9b303438dec938b5361005", "score": "0.5317264", "text": "@Override\n public int describeContents()\n {\n return 0;\n }", "title": "" } ]
dc9b538d59e0ad611f246cb0b252246e
Retrieves the default settings.
[ { "docid": "a6cfbc8f2f381a67a7e0adcf8358c381", "score": "0.8225919", "text": "public DefaultSettings getDefaultSettings ()\n {\n return (m_defaultSettings);\n }", "title": "" } ]
[ { "docid": "e41621852347f481e697bcdbc7cb0c8b", "score": "0.82274485", "text": "public Map< String, Object > getDefaultSettings();", "title": "" }, { "docid": "1bdbc23d26f4e58ddaf1d3285fd32f89", "score": "0.7224712", "text": "public static void getDefaultSettings(UserSettings settings) {\n // Done on instantiation\n }", "title": "" }, { "docid": "142cd65d233729c2124218d0a2e69a1b", "score": "0.7081413", "text": "private static Properties getDefaults() {\n try {\n Properties defaults = new Properties();\n defaults.load(\n DomainListFactory.class.getResourceAsStream(PROPERTYFILE));\n return defaults;\n\n } catch (IOException e) {\n throw new RuntimeException(e);\n\n }\n }", "title": "" }, { "docid": "f84f67e59d893fd5710d063e09da64d8", "score": "0.693984", "text": "Settings getSettings();", "title": "" }, { "docid": "141c87f512b361a2aed0febaa2215347", "score": "0.6913707", "text": "@Override\n public Defaults getDefaultSettings() {\n Defaults d = new ScatterDefaults();\n d.add(new VisualizeUtils.VisualizeDefaults());\n return d;\n }", "title": "" }, { "docid": "d9a6bc324b83d33a0820c9a10b32f58f", "score": "0.68369716", "text": "public static ThemeSettings defaults() {\n\t\treturn new DefaultThemeSettings(StyleSettings.defaults(), FigureSettings.defaults());\n\t}", "title": "" }, { "docid": "712388ee31458a6d4d6797d53655cab4", "score": "0.6786495", "text": "private static Preferences getSettings() {\n if (settings == null) {\n \tsettings = Preferences.userNodeForPackage(Settings.class);\n }\n return settings;\n }", "title": "" }, { "docid": "abf3f4f1e347593a1cdb343c3978f575", "score": "0.6777257", "text": "public static Properties getDefaultProperties(){\n\t\treturn defaultProperties; \n\t}", "title": "" }, { "docid": "81748bdd483dc2fe73e907768528da87", "score": "0.6686968", "text": "public static Map<String, String> getViewerPreferencesDefault() { return _viewerPreferencesDefault; }", "title": "" }, { "docid": "c189cc5306afc36eccbefc4fc75bba2a", "score": "0.6657396", "text": "public static synchronized Properties getDefaultProperties() {\n try {\n initDefaultProperties(\"org.jboss.jbossts.xts.propertiesFile\");\n } catch (Exception e) {\n defaultProperties = new Properties(System.getProperties());\n }\n\n return defaultProperties;\n }", "title": "" }, { "docid": "7c7f20c5b9f3f513315781e0ea8cdd82", "score": "0.66526043", "text": "public static Preferences getSettings() {\n\t\tif(pref == null) {\n\t\t\tpref = Gdx.app.getPreferences(\"AwesomeSheepGame\");\n\t\t}\n\t\t\n\t\t// Return it\n\t\treturn pref;\n\t}", "title": "" }, { "docid": "c0c2cd3a438d68fad485aae27f30c600", "score": "0.6580702", "text": "public static HashMap<String, String> getDefaultSettings() {\n HashMap<String, String> defaultSettings = new HashMap<>();\n\n defaultSettings.put(\"api_url_base\", \"http://cswebcat.swansea.ac.uk/\");\n defaultSettings.put(\"puzzle_route\", \"puzzle\");\n defaultSettings.put(\"message_route\", \"message\");\n defaultSettings.put(\"token_identifier\", \"?solution=\");\n\n defaultSettings.put(\"window_height\", \"720\");\n defaultSettings.put(\"window_width\", \"1280\");\n defaultSettings.put(\"button_spacing\", \"10\");\n defaultSettings.put(\"menu_image_url\", \"resources/images/background 1280 x 720.png\");\n defaultSettings.put(\"title_image_url\", \"resources/images/title.png\");\n defaultSettings.put(\"title_image_height\", \"315\");\n defaultSettings.put(\"title_image_width\", \"210\");\n defaultSettings.put(\"font_family\", \"Ink Free\");\n defaultSettings.put(\"font_size\", \"40\");\n defaultSettings.put(\"font_stroke\", \"1\");\n defaultSettings.put(\"text_wrapping_width\", \"1240\");\n defaultSettings.put(\"start_button_unpressed_url\", \"resources/images/start unpressed.png\");\n defaultSettings.put(\"start_button_pressed_url\", \"resources/images/start pressed.png\");\n defaultSettings.put(\"leaderboard_button_unpressed_url\", \"resources/images/leaderboard unpressed.png\");\n defaultSettings.put(\"leaderboard_button_pressed_url\", \"resources/images/leaderboard pressed.png\");\n defaultSettings.put(\"how_play_button_unpressed\", \"resources/images/how to play unpressed.png\");\n defaultSettings.put(\"how_play_button_pressed\", \"resources/images/how to play pressed.png\");\n defaultSettings.put(\"settings_button_unpressed\", \"resources/images/settings unpressed.png\");\n defaultSettings.put(\"settings_button_pressed\", \"resources/images/settings pressed.png\");\n defaultSettings.put(\"exit_button_unpressed\", \"resources/images/exit unpressed.png\");\n defaultSettings.put(\"exit_button_pressed\", \"resources/images/exit pressed.png\");\n\n defaultSettings.put(\"tile_route_id_0\", \"a,b,c,d\");\n defaultSettings.put(\"tile_route_id_1\", \"b,d\");\n defaultSettings.put(\"tile_route_id_2\", \"a,c\");\n defaultSettings.put(\"tile_route_id_3\", \"a,b\");\n defaultSettings.put(\"tile_route_id_4\", \"b,c\");\n defaultSettings.put(\"tile_route_id_5\", \"c,d\");\n defaultSettings.put(\"tile_route_id_6\", \"d,a\");\n defaultSettings.put(\"tile_route_id_7\", \"a,b,c\");\n defaultSettings.put(\"tile_route_id_8\", \"b,c,d\");\n defaultSettings.put(\"tile_route_id_9\", \"c,d,a\");\n defaultSettings.put(\"tile_route_id_10\", \"d,a,b\");\n defaultSettings.put(\"num_tile_routes\", \"11\");\n defaultSettings.put(\"max_tiles\", \"10\");\n\n defaultSettings.put(\"tile_spacing\", \"3\");\n defaultSettings.put(\"table_image_url\", \"resources/images/table.png\");\n\n defaultSettings.put(\"tile_width\", \"64\");\n defaultSettings.put(\"tile_height\", \"64\");\n defaultSettings.put(\"tile_images_url\", \"resources/images/tiles/\");\n\n defaultSettings.put(\"tile_weight_fire\", \"15\");\n defaultSettings.put(\"tile_weight_freeze\", \"15\");\n defaultSettings.put(\"tile_weight_backtrack\", \"10\");\n defaultSettings.put(\"tile_weight_doublemove\", \"10\");\n defaultSettings.put(\"tile_weight_floortile\", \"50\");\n\n defaultSettings.put(\"serialized_objects_folder\", \"data/serializing/serialized/\");\n\n defaultSettings.put(\"tutorial_text\", \"TUTORIAL TEXT GOES HERE!\");\n\n defaultSettings.put(\"tiles_fed_below\", \"0,2,4,5,7,8,9\");\n defaultSettings.put(\"tiles_fed_above\", \"0,2,3,6,7,9,10\");\n defaultSettings.put(\"tiles_fed_left\", \"0,1,5,6,8,9,10\");\n defaultSettings.put(\"tiles_fed_right\", \"0,1,3,4,7,8,10\");\n\n defaultSettings.put(\"level_files\", \"data/level_files/\");\n\n\n return defaultSettings;\n }", "title": "" }, { "docid": "9c73e6074b629d4f05973639156eb2bb", "score": "0.65700316", "text": "public Settings getSettings() {\n Settings settings;\n String jSettings = appPreferences.getString(Settings.SETTINGS_MAIN_KEY, null);\n if(jSettings == null) return new Settings();\n try {\n settings = new Settings(jSettings);\n } catch (JSONException e) {\n settings = new Settings();\n }\n return settings;\n }", "title": "" }, { "docid": "c5da51c4a566c17c893f9d31a1d9184d", "score": "0.6547998", "text": "String getDefaults();", "title": "" }, { "docid": "9bc044bc716592b3c60e7e186f1aafda", "score": "0.6505917", "text": "protected SchemagenOptions getDefaultOptions() {\n return defaultOptions;\n }", "title": "" }, { "docid": "e85146dd4b2b03307bee410fae4ff654", "score": "0.6505023", "text": "private void initializeDefaults ()\n {\n IPreferenceStore store = getPreferenceStore();\n // TODO fix defaults\n store.setDefault(LejosPreferences.P_PORT, LejosPreferences.D_PORT);\n store.setDefault(LejosPreferences.P_FASTMODE, LejosPreferences.D_FASTMODE);\n }", "title": "" }, { "docid": "de3a59f7df45ad1157c763b0fdd3e8b5", "score": "0.64472157", "text": "private IDialogSettings createDefaultSettings() {\n\t\tIDialogSettings section = new DialogSettings(SETTINGS_SECTION_NAME);\n\n\t\t// Output file path\n\t\tsection.put(\"mapFilePath\", \"\");\n\n\t\t// Checkboxes\n\t\tsection.put(\"enableHDDCache\", true);\n\t\tsection.put(\"enableCustomStartPosition\", false);\n\t\tsection.put(\"enableCustomStartZoomLevel\", false);\n\t\tsection.put(\"enableCustomBB\", false);\n\t\tsection.put(\"enableCustomTagConfig\", false);\n\t\tsection.put(\"enablePolygonClipping\", true);\n\t\tsection.put(\"enableWayClipping\", true);\n\t\tsection.put(\"computeLabelPositions\", true);\n\t\tsection.put(\"enableDebugFile\", false);\n\n\t\t// Start position\n\t\tsection.put(\"startPositionLat\", 0);\n\t\tsection.put(\"startPositionLon\", 0);\n\n\t\t// Map start zoom level\n\t\tsection.put(\"mapZoomLevel\", 14);\n\n\t\t// Bounding box\n\t\tsection.put(\"BBMinLat\", -90);\n\t\tsection.put(\"BBMaxLat\", 90);\n\t\tsection.put(\"BBMinLon\", -180);\n\t\tsection.put(\"BBMaxLon\", 180);\n\n\t\t// Preferred language\n\t\tsection.put(\"preferredLanguage\", \"\");\n\n\t\t// Comment\n\t\tsection.put(\"comment\", \"Created with m³.\");\n\n\t\t// Tag configuration\n\t\tsection.put(\"tagConfigurationFilePath\", \"\");\n\n\t\t// Simplification factor\n\t\tsection.put(\"simplificationFactor\", 500);\n\n\t\t// BB enlargement\n\t\tsection.put(\"BBEnlargement\", 20);\n\n\t\t// Zoom interval configuration\n\t\tsection.put(\"zoomIntervalConfiguration\", \"5,0,7,10,8,11,14,12,21\");\n\n\t\treturn section;\n\t}", "title": "" }, { "docid": "5c98c2ddf4354b916a95a8d6da4cc4dd", "score": "0.6440876", "text": "public Settings getSettings()\n \t{\n \t\treturn settings;\n \t}", "title": "" }, { "docid": "1958e84d1bc9cce81a0765d131ab0d06", "score": "0.63833314", "text": "public Settings getSettings() {\r\n return new Settings(this);\r\n }", "title": "" }, { "docid": "c254aafc7bbaab79c1d3e3f8f2e0cd55", "score": "0.63268524", "text": "CT getDefaultConfiguration();", "title": "" }, { "docid": "247fadfd0d25cd4a4c419447457e28cc", "score": "0.63228947", "text": "public static Settings getSettings(Context context) {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context.getApplicationContext());\n return new Settings(preferences);\n\t}", "title": "" }, { "docid": "110431d15feff3877ec1dfe908d214ac", "score": "0.6301642", "text": "public DataSettings getDateSettings() {\n if (dataSettings == null) {\n loadDefaultSettings();\n }\n return dataSettings;\n }", "title": "" }, { "docid": "3cdfee5feef440c283e6c49f749b5dc2", "score": "0.6286486", "text": "public static ThemeSettings dump() {\n\t\treturn new DefaultThemeSettings();\n\t}", "title": "" }, { "docid": "dcf62902032584be5de530632e00d225", "score": "0.62710685", "text": "public static Map getDefaultValues() {\n return instance.defValues;\n }", "title": "" }, { "docid": "b87c03c3a77b515651e01d478b818d4e", "score": "0.62375975", "text": "public Map<String, List<String>> getSettings()\n\t {\n\n\t return settings;\n\n\t }", "title": "" }, { "docid": "9831bc431b187fa3b5f363a872af6851", "score": "0.62367165", "text": "@Override\n\tpublic List<Setting> getSettings() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "068754a28919137b527ab5a3ab4bad74", "score": "0.62225103", "text": "public static Sala getDefault() {\n\t\tSala sala = null;\n\t\tint idSala = CompanyPrefs.idSalaDefault.getInt();\n\n\t\tif (idSala > 0) {\n\t\t\tsala = Sala.read((long) idSala);\n\t\t}// end of if cycle\n\n\t\treturn sala;\n\t}", "title": "" }, { "docid": "5509f2263228d0e85581737a4dcc8fef", "score": "0.62203497", "text": "public static Settings retrieve () {\n if (settings == null) {\n settings = new Settings();\n }\n\n //Returns instance\n return settings;\n }", "title": "" }, { "docid": "c2a7c20952a590c3dea43560ea268d96", "score": "0.6185969", "text": "public static String[] getDefaultSettingsArray() {\n ArrayList<String> settings = new ArrayList<>();\n getDefaultSettings().forEach((k, v) -> {\n settings.add(String.format(\"%s;%s\", k, v));\n });\n String[] settingsArray = new String[settings.size()];\n return settings.toArray(settingsArray);\n }", "title": "" }, { "docid": "8932ac51252a7cb3a80ec59690d9f815", "score": "0.6175964", "text": "public DriveDefaultSettings() {\n\t\t\n\t}", "title": "" }, { "docid": "ea3365235c9f1dc3ca94c1c7c4d55796", "score": "0.6162524", "text": "public void loadDefaults() {\n\t\tBUY_COMMANDS.addAll(getMainConfig().getStringList(\"buy-commands\"));\n\t\tSELL_COMMANDS.addAll(getMainConfig().getStringList(\"sell-commands\"));\n\t\tUtils.setPrefix(ChatColor.translateAlternateColorCodes('&', getMainConfig().getString(\"prefix\")));\n\t\tUtils.setSignsOnly(getMainConfig().getBoolean(\"signs-only\"));\n\t\tUtils.setSignTitle(ChatColor.translateAlternateColorCodes('&', getMainConfig().getString(\"sign-title\")));\n\t\tUtils.setNotEnoughPre(ChatColor.translateAlternateColorCodes('&', getMainConfig().getString(\"not-enough-pre\")));\n\t\tUtils.setNotEnoughPost(ChatColor.translateAlternateColorCodes('&', getMainConfig().getString(\"not-enough-post\")));\n\t\tUtils.setPurchased(ChatColor.translateAlternateColorCodes('&', getMainConfig().getString(\"purchased\")));\n\t\tUtils.setTaken(ChatColor.translateAlternateColorCodes('&', getMainConfig().getString(\"taken\")));\n\t\tUtils.setSold(ChatColor.translateAlternateColorCodes('&', getMainConfig().getString(\"sold\")));\n\t\tUtils.setAdded(ChatColor.translateAlternateColorCodes('&', getMainConfig().getString(\"added\")));\n\t\tUtils.setCantSell(ChatColor.translateAlternateColorCodes('&', getMainConfig().getString(\"cant-sell\")));\n\t\tUtils.setEscapeOnly(getMainConfig().getBoolean(\"escape-only\"));\n\t\tUtils.setSound(getMainConfig().getString(\"purchase-sound\"));\n\t\tUtils.setSoundEnabled(getMainConfig().getBoolean(\"enable-sound\"));\n\t\tUtils.setCreatorEnabled(getMainConfig().getBoolean(\"ingame-config\"));\n\t\tUtils.setCantBuy(ChatColor.translateAlternateColorCodes('&', getMainConfig().getString(\"cant-buy\")));\n\t\tUtils.setMenuRows(getMainConfig().getInt(\"menu-rows\"));\n\t\tgetDataFolder();\n\t}", "title": "" }, { "docid": "b2aeca1e7649b0f4ead4457e336bd7b2", "score": "0.61472553", "text": "@Override\n\tprotected ZipEntrySettings getDefaultDefaultDirectoryEntrySettings()\n\t{\n\t\treturn ZipBuilderConstants.DEFAULT_DEFAULT_ZIP_DIRECTORY_ENTRY_SETTINGS;\n\t}", "title": "" }, { "docid": "09c628baef5589392ace7f0435b2027a", "score": "0.61426955", "text": "public java.util.Map<String, String> getDefaultRunProperties() {\n return defaultRunProperties;\n }", "title": "" }, { "docid": "671432da56c8f6501d86a0e1e98f3705", "score": "0.61388844", "text": "public Settings getSettings() {\r\n\t\treturn settings;\r\n\t}", "title": "" }, { "docid": "acc27ca4b7846673b94f5d736baf87a6", "score": "0.61323214", "text": "private void getAppsDefaults() {\n AppsDefaults appsDefaults = AppsDefaults.getInstance();\n\n pil = appsDefaults.getToken(\"xdat_afosid\");\n route = appsDefaults.getToken(\"xdat_route_code\");\n hdr = appsDefaults.getToken(\"xdat_office_hdr\");\n userId = appsDefaults.getToken(\"LOGNAME\");\n send = appsDefaults.getToken(\"xdat_send_shef\");\n xmitCmd = appsDefaults.getToken(\"xdat_xmit_cmd\");\n shefDir = appsDefaults.getToken(\"shefdecode_input\");\n localDataDir = appsDefaults.getToken(\"xdat_localdata_dir\");\n }", "title": "" }, { "docid": "5e41a66b58464c79d4f18bd110c10f1b", "score": "0.6128926", "text": "private void setDefaultPreferences() {\n \t\tprefs = PreferenceManager.getDefaultSharedPreferences(this);\n \n \t\t//currency exchange\n \t\tSharedPreferences.Editor editor = prefs.edit();\n \t\teditor.putString(PreferencesActivity.KEY_SOURCE_CURRENCY_PREFERENCE, CaptureActivity.DEFAULT_SOURCE_CURRENCY).commit();\n \t\teditor.putString(PreferencesActivity.KEY_TARGET_CURRENCY_PREFERENCE, CaptureActivity.DEFAULT_TARGET_CURRENCY).commit();\n \t\teditor.putString(PreferencesActivity.KEY_EXCHANGE_RATE_PREFERENCE, CaptureActivity.DEFAULT_EXCHANGE_RATE).commit();\n \t\teditor.putBoolean(PreferencesActivity.KEY_AUTO_EXCHANGE_RATE_PREFERENCE, CaptureActivity.DEFAULT_AUTO_EXCHANGE_RATE_PREFERENCE).commit();\n \t\t//TODO: This commit is unnecessary\n \t\teditor.commit();\n \t}", "title": "" }, { "docid": "c1e0f78d0f2f3477d51c4dc349d50e2f", "score": "0.61218745", "text": "@Override\n\tprotected ZipEntrySettings getDefaultDefaultFileEntrySettings()\n\t{\n\t\treturn ZipBuilderConstants.DEFAULT_DEFAULT_ZIP_FILE_ENTRY_SETTINGS;\n\t}", "title": "" }, { "docid": "46ed05eb60a1a29080a0c4fbf932ee39", "score": "0.6088141", "text": "public Settings getSettings() {\n\t\treturn settings;\n\t}", "title": "" }, { "docid": "312cc3ef6b8226997958e42c1d77de5a", "score": "0.608493", "text": "public Settings settings() {\n return settings;\n }", "title": "" }, { "docid": "d2ddec790621176f395703f91109c9fc", "score": "0.60662645", "text": "@Override\n\tpublic Properties getDefaultProperties() {\n\t\tProperties properties = new Properties();\n\t\t\n\t\tproperties.setProperty(\"crossfade\", String.valueOf(DEFAULT_CROSSFADE));\n\t\tproperties.setProperty(\"crossfade-seconds\", String.valueOf(DEFAULT_CROSSFADE_SECONDS));\n\t\tproperties.setProperty(\"soundEnhancer\", String.valueOf(DEFAULT_SOUNDENHANCER));\n\t\tproperties.setProperty(\"soundEnhancer-value\", String.valueOf(DEFAULT_SOUNDENHANCER_VALUE));\n\t\tproperties.setProperty(\"playbackQuality\", String.valueOf(DEFAULT_PLAYBACKQUALITY));\n\t\t\n\t\treturn properties;\n\t}", "title": "" }, { "docid": "1ec5e520fe670796976e38325b1bbb24", "score": "0.6065625", "text": "@Test\n public void getSettingsTest() throws ApiException {\n Long viewId = null;\n SettingsDTO response = api.getSettings(viewId);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "e5d26deffaee71c4e7be93eed914b233", "score": "0.6060863", "text": "private void setSettingsDefault() {\n this.miter = 90;\n this.psi = 45;\n this.speed = 0;\n\n this.clamps = false;\n this.rollers = false;\n this.running = false;\n\n //Build the map\n buildSettingMap();\n }", "title": "" }, { "docid": "748523a848eb3f1d67de2c36b2d5d0a4", "score": "0.6049358", "text": "public HashMap<String, SettingModel> getSettings() {\n return settings;\n }", "title": "" }, { "docid": "c4f1b5b23af76bb8d58a6f64f7c83a42", "score": "0.6040236", "text": "public Settings getSettings() {\n\t\treturn gameSettings;\n\t}", "title": "" }, { "docid": "94cb28842885106fcc5738a37ffb09dd", "score": "0.6021563", "text": "private static void loadDefaultProperties() {\n\t\tString fileName = IConstants.DEFAULT_CONFIG_FILES_PATH\r\n\t\t\t\t+ IConstants.SHIPPING_PROPERTIES_FILE;\r\n\t\tuserProperties = PropertyFileReader.readProperties(fileName, null);\r\n\t}", "title": "" }, { "docid": "ce88cb359c47707db4eb39cbc94da06d", "score": "0.59950036", "text": "@Override\r\n public String getSystemSetting(final String settingName, final String defaultValue) {\r\n return getSystemSetting(DEFAULT_PROPERTIES_FILE_NAME, settingName, defaultValue);\r\n }", "title": "" }, { "docid": "9b26738df44f60174b98e0a088e76e54", "score": "0.594659", "text": "@Provides\n public Settings getSettings() {\n if (settings == null || settings.isEmpty()) {\n settings = new Settings();\n settings.put(\"A\", \"1\");\n settings.put(\"B\", \"2\");\n }\n\n return settings;\n }", "title": "" }, { "docid": "b8fb165a4aa956b6d0971d157b472570", "score": "0.5939363", "text": "public HBackgroundConfiguration getDefaultConfiguration()\n {\n return configurations[0];\n }", "title": "" }, { "docid": "37c663b60d713f0d869f5b32a43e44da", "score": "0.5927584", "text": "public static Map<String, String> getDefaultOptions() {\n Map<String, String> options = new HashMap<>();\n options.put(\"print\", \"0\");\n options.put(\"fail-on\", \"error\");\n options.put(\"labels\", \"false\");\n options.put(\"format\", null);\n options.put(\"profile\", null);\n options.put(\"base-iri\", null);\n options.put(\"tdb\", \"false\");\n options.put(\"tdb-directory\", \".tdb\");\n options.put(\"keep-tdb-mappings\", \"false\");\n options.put(\"standalone\", \"true\");\n return options;\n }", "title": "" }, { "docid": "0f16eaa3192272633d5719c463f9d1b5", "score": "0.59083766", "text": "protected final ToolSettings getApplicationSettings() {\n return this.uiController.getApplicationSettings();\n }", "title": "" }, { "docid": "f6d40f28e87e67721f11524b85495a7f", "score": "0.59055465", "text": "public GameType getSettings() {\n return game.getSettings();\n }", "title": "" }, { "docid": "2339c196904ae64765cab30410babcde", "score": "0.58891994", "text": "public void getSettings() throws FileNotFoundException\n\t{\n\t\tFile file = new File(\"lib/settings\");\n\t\tif(file.exists())\n\t\t{\n\t\t\tlabelFont = set.getUserLabelFont();\n\t\t\ttextFont = set.getUserTextFont();\n\t\t\tbackgroundColor = set.getUserBackGround();\n\t\t\tforegroundColor = set.getUserForeGround();\n\t\t}\n\t}", "title": "" }, { "docid": "6dbac6f5d491f2c22e613f186dddcc92", "score": "0.5888678", "text": "@GET\r\n @Path(\"defaultshopparams\")\r\n public Response loadPOSDefaultParamValues() {\r\n try {\r\n\r\n Workspace workspace = getWorkspaceOracle();\r\n RetailManagerHelper.checkViewPOSDefaultsPermission(workspace, false);\r\n\r\n POSDefaultParamValuesManager posDefaultValuesManager = workspace.getAbpManager()\r\n .getPOSDefaultParamValuesManager(workspace);\r\n POSDefaultParameterValuesResponse response = posDefaultValuesManager.loadValuesFromSnapShot(workspace);\r\n\r\n return respondGet(response);\r\n } catch (AbpException e) {\r\n throw new WebApplicationException(e);\r\n } catch (NotAuthorizedException e) {\r\n throw new WebApplicationException(e);\r\n } catch (BadRequestException e) {\r\n throw e;\r\n } catch (RestMLException e) {\r\n throw ResourceHelper.handleRestMLException(getLocale(), e);\r\n }\r\n }", "title": "" }, { "docid": "0f4631d21dfbf9a3a632a244b3796671", "score": "0.5881585", "text": "public Hashtable<String, String> createDefaultOptions() {\n\t\tHashtable<String, String> value = new Hashtable<String, String>();\n\t\tvalue.put(\"maxTries\", \"1\");\n\t\tvalue.put(\"revealAnswer\", \"false\");\n\t\treturn value;\n\t}", "title": "" }, { "docid": "3c0210d3a3b1722e51907a3612dcf392", "score": "0.5856046", "text": "private static void loadUserSetting() {\n\t\tDEFAULT_USER_SETTING = getSavedUserSetting();\n\t\ttry {\n\t\t\tuserSetting = (DEFAULT_USER_SETTING != null) ? DEFAULT_USER_SETTING\n\t\t\t\t\t.clone() : null;\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "fa993ca0455005a9377f715dc4a9db61", "score": "0.5839999", "text": "public Settings() {\n initComponents();\n this.readSavedOptions();\n }", "title": "" }, { "docid": "9ec4aae155311149352483eefb344bb6", "score": "0.582843", "text": "private void loadPluginDefaults(){\n if(!plugin.getConfig().contains(\"color-logs\")){\n plugin.getConfig().addDefault(\"color-logs\", true);\n }\n if(!plugin.getConfig().contains(\"debug\")){\n plugin.getConfig().addDefault(\"debug\", false);\n }\n if(!plugin.getConfig().contains(\"rollback.per-tick\")){\n plugin.getConfig().addDefault(\"rollback.per-tick\", 100);\n }\n if(!plugin.getConfig().contains(\"game-length\")){\n plugin.getConfig().addDefault(\"game-length\", 600);\n }\n plugin.getConfig().options().copyDefaults(true);\n plugin.saveConfig();\n }", "title": "" }, { "docid": "babafee6adfbc9fd70cbb5b02b7de3df", "score": "0.58278674", "text": "static private void _setDefaults(Context context){\n\t\tPreferenceManager.setDefaultValues(\n\t\t\t\tcontext,\n\t\t\t\tcontext.getResources().getString(\n\t\t\t\t\t\tR.string.preferenceutil_PREFERENCE_FILE_KEY),\n\t\t\t\tContext.MODE_PRIVATE,\n\t\t\t\tR.xml.preference_defaults, \n\t\t\t\ttrue);\n\t}", "title": "" }, { "docid": "b6d20eefe17266d4f20dba8eef3b6d7c", "score": "0.58223826", "text": "public void peekDefaults() {\n\tpeek(defaultSettings);\n }", "title": "" }, { "docid": "87c83af20d7630252f3c4565d5e42cc6", "score": "0.5812394", "text": "public ClientSettings loadClientSettings() {\r\n _cat.finest(\"Client Settings preferences \" + PlayerPreferences.stringValue(_preferences));\r\n _settings = new ClientSettings(_preferences);\r\n return _settings;\r\n }", "title": "" }, { "docid": "d5dba3aaaed5235b41d47484b25bb758", "score": "0.58101225", "text": "public static InstancedConfiguration defaults() {\n return new InstancedConfiguration(ConfigurationUtils.defaults());\n }", "title": "" }, { "docid": "5dfa100c271fc27dd70ac1ca5429556d", "score": "0.57970273", "text": "BaseQuery[] getDefaultConfigList();", "title": "" }, { "docid": "af819fc32af6bdd5db6bc1adcbbb8156", "score": "0.5793781", "text": "public static Settings getInstance() {\n return new Settings();\n }", "title": "" }, { "docid": "3114bb695d6b4ad7fdb15399d7fd7ad0", "score": "0.5764139", "text": "private Properties getProperties()\n {\n final Properties properties = (Properties)m_properties.get();\n if( null != properties )\n {\n return properties;\n }\n else\n {\n return defaults;\n }\n }", "title": "" }, { "docid": "b3ffea6b791bd2c6ad1fff7590e297c9", "score": "0.57604563", "text": "public static PropertiesTestPlugin getDefault() {\r\n\t\treturn plugin;\r\n\t}", "title": "" }, { "docid": "4c93980b3f3d1278af7ad64828d5352d", "score": "0.5758989", "text": "public void defaultSettings() {\n //default colors are black and white\n javafx.scene.paint.Color colorP1 = javafx.scene.paint.Color.BLACK;\n javafx.scene.paint.Color colorP2 = javafx.scene.paint.Color.WHITE;\n //default size is 8\n int sizeBoard = 8;\n String str = colorP1.toString() + \" \" + colorP2.toString() + \" \" + sizeBoard;\n File settingsFIle = new File(\"settings.txt\");\n try {\n FileOutputStream file = new FileOutputStream(settingsFIle.getName());\n PrintStream writer = new PrintStream(file);\n writer.print(str);\n file.close();\n }catch (Exception FileNotFoundException) {\n throw new RuntimeException();\n }\n }", "title": "" }, { "docid": "8f077a38c76000f342680f7504ef4358", "score": "0.57407516", "text": "public savedSettings getSavable() {\n return new savedSettings(locale, settings, permited);\n }", "title": "" }, { "docid": "772ed93e528868400b5e5ce4705a785c", "score": "0.57380706", "text": "public String getDefault() {\n return _default;\n }", "title": "" }, { "docid": "76ece74f85adbd98a9b10c391c39b97b", "score": "0.5731445", "text": "private DefaultBotOptions getDefaultBotOptions() {\n DefaultBotOptions botOptions = ApiContext.getInstance(DefaultBotOptions.class);\r\n\r\n botOptions.setProxyHost(proxyProperties.getUrl());\r\n botOptions.setProxyPort(proxyProperties.getPort());\r\n // Select proxy type: [HTTP|SOCKS4|SOCKS5] (default: NO_PROXY)\r\n botOptions.setProxyType(DefaultBotOptions.ProxyType.SOCKS5);\r\n\r\n return botOptions;\r\n }", "title": "" }, { "docid": "fdd5e1f3661d894871d4c523c47d93b1", "score": "0.5728334", "text": "public StandardizationSettings getSettings() {\n\t\treturn standardSettings;\n\t}", "title": "" }, { "docid": "3319793f2298623d047ff2f79d01175b", "score": "0.5723893", "text": "public String getDefaultUrl() {\n return this.props.getProperty(\"defaultUrl\");\n }", "title": "" }, { "docid": "836f648efeb9175ce8d54757f5ed0b56", "score": "0.57204217", "text": "private void loadSettings() {\n logger.debug(\"Loading game settings\");\n UserSettings.Settings settings = UserSettings.get();\n UserSettings.applySettings(settings);\n }", "title": "" }, { "docid": "836f648efeb9175ce8d54757f5ed0b56", "score": "0.57204217", "text": "private void loadSettings() {\n logger.debug(\"Loading game settings\");\n UserSettings.Settings settings = UserSettings.get();\n UserSettings.applySettings(settings);\n }", "title": "" }, { "docid": "920d3fbf1ab23869b294eb32f385f8be", "score": "0.5715372", "text": "public static LoadTestConfig defaultConfig() {\n return new LoadTestConfig()\n .setAdditionalRequestLatency(TestsHelper.getLoadTestsRequestsLatency())\n .setBatchSize(TestsHelper.getBulkOperationSize())\n .setCacheName(TestsHelper.getLoadTestsCacheName())\n .setWarmupPeriod(TestsHelper.getLoadTestsWarmupPeriod())\n .setReportFrequency(TestsHelper.getLoadTestsStatisticsReportFrequency())\n .setWorkerExecutionPeriod(TestsHelper.getLoadTestsExecutionTime())\n .setThreads(TestsHelper.getLoadTestsThreadsCount())\n .setGradualLoadIncreaseEnabled(TestsHelper.isLoadTestsGradualLoadIncreaseEnabled())\n .setGradualLoadIncreasePeriodicity(TestsHelper.getLoadTestsGradualLoadIncreasePeriodicity())\n .setTestClientsNumber(TestsHelper.getLoadTestsClientsNumber());\n }", "title": "" }, { "docid": "2edd2e5e513ff6b5ad7bd9c9c412ccd0", "score": "0.57149416", "text": "private Preferences getPrefs() {\n if(preferences == null) {\n preferences = Gdx.app.getPreferences(PREFS_NAME);\n }\n return preferences;\n }", "title": "" }, { "docid": "8efe082ecd6d47f381e2111d8fa657c6", "score": "0.5698695", "text": "public Settings() {\n this.reset();\n }", "title": "" }, { "docid": "099cc5e8cd209f2f40246d786871f85e", "score": "0.5690917", "text": "public static TurboSocketSessionManager getDefault() {\n return DEFAULT;\n }", "title": "" }, { "docid": "783cffca597ae1196303837c8639ebe0", "score": "0.5685972", "text": "protected Preferences getPreferences()\n {\n return Preferences.userNodeForPackage(Main.class);\n }", "title": "" }, { "docid": "ea5203558fa27c38ddc7c9a01076e9d3", "score": "0.56841", "text": "private void startDefaultSettingsDatabase() {\n\t\tisOffMapSending = IS_OFF_MAP_SENDING;\n\t\t\n\t\tSettingDAO bdInstance = new SettingDAO(getApplicationContext());\n\n\t\tSetting isMapSending = new Setting(SettingsID.IS_OFF_MAP_SENDING,\n\t\t\t\tBoolean.toString(IS_OFF_MAP_SENDING));\n\t\tSetting onMapSendingRate = new Setting(SettingsID.ON_MAP_SENDING_RATE,\n\t\t\t\tLong.toString(ON_MAP_SENDING_RATE));\n\t\tSetting offMapSendingRate = new Setting(SettingsID.OFF_MAP_SENDING_RATE,\n\t\t\t\tLong.toString(OFF_MAP_SENDING_RATE));\n\n\t\tbdInstance.open();\n\t\tbdInstance.saveSetting(isMapSending);\n\t\tbdInstance.saveSetting(onMapSendingRate);\n\t\tbdInstance.saveSetting(offMapSendingRate);\n\t\tbdInstance.close();\n\t}", "title": "" }, { "docid": "8e40a703415b886b41043315615a0ffd", "score": "0.5683437", "text": "public String getDefault() {\n\t\treturn _default;\n\t}", "title": "" }, { "docid": "8734b3f5b754304e694cbbbe82912000", "score": "0.56772006", "text": "protected void initializeDefaultPreferences(IPreferenceStore store) {\n\t\tstore.setDefault(\"helpShown\", false);\n//\t\tColor color= Display.getDefault().getSystemColor(DEFAULT_HIGHLIGHT);\n//\t\tPreferenceConverter.setDefault(store, HIGHLIGHT_PREFERENCE, color.getRGB());\n\n\t}", "title": "" }, { "docid": "aad99bb403ed9f52a6cdb8e35cb003b4", "score": "0.56749564", "text": "public void getUserSettings() {\n sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n userName = sharedPref.getString(\"Username\", \"\");\n isAccelerometer = sharedPref.getBoolean(\"AccelerometerCheck\", false);\n isGyrometer = sharedPref.getBoolean(\"GyrometerCheck\", false);\n isGps = sharedPref.getBoolean(\"GpsCheck\", false);\n sampleRate = sharedPref.getInt(\"SampleRate\", 0);\n\n }", "title": "" }, { "docid": "2a144c17911823a7701e3a8d176ac169", "score": "0.56730074", "text": "@Override\n public ConfigurationSection getSettings() {\n return settings;\n }", "title": "" }, { "docid": "f22181d423d21841e6dbb0e6645e18dc", "score": "0.56728226", "text": "private void setDefaultValues()\n\t{\n\t\tPreferenceManager.setDefaultValues(this, R.xml.preferences_gameplay, false);\n\t\tPreferenceManager.setDefaultValues(this, R.xml.preferences_animation, false);\n\t}", "title": "" }, { "docid": "e28b5e82e5baceb476bfb55e8bfb4fdd", "score": "0.5669486", "text": "public FrontFacebookMessengerSettings getSettings()\r\n\t{\r\n\t\treturn this.settings;\r\n\t}", "title": "" }, { "docid": "07ecf5c7a1a3063ca80e93fc4427d578", "score": "0.5665623", "text": "public String getSettingsDocument() {\n return settingsDocument;\n }", "title": "" }, { "docid": "5ddd0b0bd2de1484cbb34725a6bd47db", "score": "0.5664357", "text": "public String getDefault() {\n return aDefault;\n }", "title": "" }, { "docid": "3c106b22d12db9763d78527341eb78b7", "score": "0.56642663", "text": "public static EditorConfigUIPlugin getDefault() {\n\t\treturn plugin;\n\t}", "title": "" }, { "docid": "3ee207e8455112243e0a9bbf3e3a11be", "score": "0.566223", "text": "public Config() {\n\t\ttry {\n\t\t\tproperties = new Properties();\n\t\t\tproperties.load(getClass().getClassLoader().getResourceAsStream(DEFAULT_PROPS_FILE));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tthrow new RuntimeException(\"Default settings properties file not found for JS-Class-Loader.\"\n\t\t\t\t\t+ \"It should be in the classpath and called \" + DEFAULT_PROPS_FILE);\n\t\t}\n\t}", "title": "" }, { "docid": "407e62282aee402c60fdab84358b5855", "score": "0.5656975", "text": "public static MeasurementConfig defaultConfig() {\n return newConfig()\n .expectIdWithLength(4)\n .expectTimeWithLength(8)\n .expectVelocityWithLength(8)\n .expectAltitudeWithLength(8)\n .expectPressureWithLength(8)\n .expectTemperatureWithLength(8)\n .expectAttitudeWithLength(8);\n }", "title": "" }, { "docid": "9e687f2d5130af8fec9ae3bd813bb304", "score": "0.56469667", "text": "public static void load()\n {\n load(SETTINGS_LOCATION);\n }", "title": "" }, { "docid": "a3a612636ac3787d48e6c569270df0db", "score": "0.56306076", "text": "GuiSettings getGuiSettings();", "title": "" }, { "docid": "a3a612636ac3787d48e6c569270df0db", "score": "0.56306076", "text": "GuiSettings getGuiSettings();", "title": "" }, { "docid": "a3a612636ac3787d48e6c569270df0db", "score": "0.56306076", "text": "GuiSettings getGuiSettings();", "title": "" }, { "docid": "a3a612636ac3787d48e6c569270df0db", "score": "0.56306076", "text": "GuiSettings getGuiSettings();", "title": "" }, { "docid": "a3a612636ac3787d48e6c569270df0db", "score": "0.56306076", "text": "GuiSettings getGuiSettings();", "title": "" }, { "docid": "a3a612636ac3787d48e6c569270df0db", "score": "0.56306076", "text": "GuiSettings getGuiSettings();", "title": "" }, { "docid": "a4dece8517c95ecf3960abf01a4567b8", "score": "0.5626909", "text": "@Override\n\tprotected IDialogSettings getDialogBoundsSettings() {\n\t\tif (centerOnMonitor) {\n\t\t\treturn null;\n\t\t}\n\n\t\tIDialogSettings settings = SSDToolUtils\n\t\t\t\t.getDialogSettingsBySectionName(\n\t\t\t\t\t\tBasicPlatformPluginConstants.DIALOG_SETTINGS_SECTION_TKSTOREPATH,\n\t\t\t\t\t\ttrue);\n\t\tif (settings != null) {\n\t\t\treturn settings;\n\t\t}\n\t\treturn super.getDialogBoundsSettings();\n\t}", "title": "" }, { "docid": "7260b23c8bcf2004abcfc1cfd736b718", "score": "0.5613685", "text": "public void loadSettings() {\n \n }", "title": "" }, { "docid": "b55a11122d371e0f1dcc131ed281ffc7", "score": "0.56079733", "text": "@Override\r\n public String getConfiguration(Object requestingObject, String key, String defaultValue) {\r\n String cfgKey = buildConfigurationKey(requestingObject, key);\r\n\t\treturn preferences.get(cfgKey, defaultValue);\r\n }", "title": "" } ]
452fde016fa3108f92071c21369fdf83
Construct a InflatableMap with the same mappings as the given map.
[ { "docid": "2dd813c9c128522d8a144300dfcb6d0b", "score": "0.7439707", "text": "public InflatableMap(Map<? extends K, ? extends V> map)\n {\n putAll(map);\n }", "title": "" } ]
[ { "docid": "72387051af2b54fc01cef9a37375a3ba", "score": "0.68661416", "text": "public InflatableMap()\n {\n }", "title": "" }, { "docid": "de15316e4ac1077094b58b9937f23215", "score": "0.6441422", "text": "public static <K, V> IModel<Map<K, V>> ofMap(final Map<K, V> map)\n\t{\n\t\treturn new MapModel<>(map);\n\t}", "title": "" }, { "docid": "1d4271a0ce2e5a875f88535a73a76cea", "score": "0.622998", "text": "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-02-24 14:42:09.113 -0500\", hash_original_method = \"A6044E4311D15BDAC205EAB611B1078B\", hash_generated_method = \"8416BACE806C6F858F66806C75501E66\")\n @DSVerified\n @DSSafe(DSCat.SAFE_LIST)\npublic IdentityHashMap(Map<? extends K, ? extends V> map) {\n this(map.size() < 6 ? 11 : map.size() * 2);\n super.putAll(map);\n }", "title": "" }, { "docid": "5d2110862f25245868f35af8f53aeec0", "score": "0.6225683", "text": "public static Mapping newMapping(SortedMap<Class<?>, ValueRenderer<?>> map) {\n if (map instanceof Mapping) {\n return Mapping.class.cast(map);\n } else {\n return new DefaultMapping(map);\n }\n }", "title": "" }, { "docid": "5ea72cf9925c9ccdb19c4a871f94e5d0", "score": "0.62144214", "text": "public static <I, O> MatcherMapBuilder<I, O> create(Map<I, O> map) {\n MatcherMapBuilder<I, O> mapper = MatcherMapBuilder.create();\n for (I key : map.keySet()) {\n mapper.map(key, map.get(key));\n }\n return mapper;\n }", "title": "" }, { "docid": "7b6dcea95dd87f71b6f50770213fa829", "score": "0.5811533", "text": "public static <K, T> void iMap(Map<K, T> map) {\n\t\t// Create ImmutableMap from Map using copyOf()\n\t\tImmutableMap<K, T> immutableMap = ImmutableMap.copyOf(map);\n\n\t\t// Print the ImmutableMap\n\t\tSystem.out.println(immutableMap);\n\t}", "title": "" }, { "docid": "a3aa5397faa8a0bc3fab6cada9ae0fe2", "score": "0.56855476", "text": "public Object clone()\n {\n InflatableMap that;\n try\n {\n that = (InflatableMap) super.clone();\n }\n catch (CloneNotSupportedException e)\n {\n throw ensureRuntimeException(e);\n }\n\n switch (this.m_nImpl)\n {\n case I_EMPTY:\n // nothing to do\n break;\n\n case I_SINGLE:\n {\n Map.Entry<K, V> entry = (Map.Entry) m_oContents;\n that.m_oContents = that.instantiateEntry(entry.getKey(), entry.getValue());\n }\n break;\n\n case I_ARRAY_1: case I_ARRAY_2: case I_ARRAY_3: case I_ARRAY_4:\n case I_ARRAY_5: case I_ARRAY_6: case I_ARRAY_7: case I_ARRAY_8:\n {\n Map.Entry<K, V>[] aEntryThis = (Map.Entry[]) this.m_oContents;\n Map.Entry<K, V>[] aEntryThat = new Map.Entry[THRESHOLD];\n for (int i = 0, c = m_nImpl - I_ARRAY_1 + 1; i < c; ++i)\n {\n Map.Entry<K, V> entryThis = aEntryThis[i];\n aEntryThat[i] = that.instantiateEntry(\n entryThis.getKey(), entryThis.getValue());\n }\n that.m_oContents = aEntryThat;\n }\n break;\n\n case I_OTHER:\n Map<K, V> mapThis = (Map<K, V>) this.m_oContents;\n Map<K, V> mapThat = that.instantiateMap();\n mapThat.putAll(mapThis);\n that.m_oContents = mapThat;\n break;\n\n default:\n throw new IllegalStateException();\n }\n\n return that;\n }", "title": "" }, { "docid": "38b3246b496c075cce4e43650e0722b9", "score": "0.5644295", "text": "public static <B> MutableClassToInstanceMap<B> create(Map<Class<? extends B>, B> backingMap) {\n/* 62 */ return new MutableClassToInstanceMap<>(backingMap);\n/* */ }", "title": "" }, { "docid": "50250cf621178114c64cee98ba6fb544", "score": "0.5593492", "text": "public static final <K, V> Map<K, V> m23384a(Map<? extends K, ? extends V> map) {\n C7573i.m23587b(map, \"$this$toSingletonMap\");\n Entry entry = (Entry) map.entrySet().iterator().next();\n Map<K, V> singletonMap = Collections.singletonMap(entry.getKey(), entry.getValue());\n C7573i.m23582a((Object) singletonMap, \"java.util.Collections.singletonMap(key, value)\");\n C7573i.m23582a((Object) singletonMap, \"with(entries.iterator().…ingletonMap(key, value) }\");\n return singletonMap;\n }", "title": "" }, { "docid": "6dc7cdf7321af224a7c9136b63aec0ef", "score": "0.5534158", "text": "public Map(){}", "title": "" }, { "docid": "0fbe405e9aa7b84c3ac3a6dbb27fda27", "score": "0.5510186", "text": "public EntryIterator(InflatableMap<K, V> map, Map.Entry<K, V>[] aEntry)\n {\n m_map = map;\n m_aEntry = aEntry;\n }", "title": "" }, { "docid": "30b818bbf498c2d8e03e5f5d6508a66f", "score": "0.5505753", "text": "@Override\n public Map<K, V> materializeToMap() {\n return new MaterializableMap<K, V>(this.materialize());\n }", "title": "" }, { "docid": "383f4e4272f4c283460a0284477153f6", "score": "0.54484177", "text": "public Builder putAllI2MapMap(\n java.util.Map<Integer, MapValue> values) {\n internalGetMutableI2MapMap().getMutableMap()\n .putAll(values);\n return this;\n }", "title": "" }, { "docid": "bf6aaa7dd1ec009aafeca9c7c9404159", "score": "0.54074395", "text": "public Builder putI2MapMap(\n int key,\n MapValue value) {\n \n if (value == null) { throw new NullPointerException(); }\n internalGetMutableI2MapMap().getMutableMap()\n .put(key, value);\n return this;\n }", "title": "" }, { "docid": "bd7584c5d60dd9e275c6539bdc46fcbe", "score": "0.53516626", "text": "private MapPreservingOrderBuilder(LinkedHashMap<A, B> map) {\n this.map = map;\n }", "title": "" }, { "docid": "8a859674d6717134e1e13c8f9d0d1455", "score": "0.5331628", "text": "@SuppressWarnings(\"unchecked\")\r\n\tprivate static <K, V> Map<K, V> mapcopy(Map<K, V> map)\r\n\t{\r\n\t\tif (map == null) return null;\r\n\t\tMap<K, V> ret = new MassiveMap<>();\r\n\t\tfor (Entry<K, V> entry : map.entrySet())\r\n\t\t{\r\n\t\t\tK key = entry.getKey();\r\n\t\t\tV value = entry.getValue();\r\n\t\t\t\r\n\t\t\tif (value instanceof Map<?, ?>) value = (V) mapcopy((Map<Object, Object>) value);\r\n\t\t\tif (value == null) continue;\r\n\t\t\tif (value instanceof Integer && ((Integer)value).equals(0)) continue;\r\n\t\t\tret.put(key, value);\r\n\t\t}\r\n\t\t\r\n\t\tif (map.size() == 0) return null;\r\n\t\treturn ret;\r\n\t}", "title": "" }, { "docid": "541bad3fd0a980dd74c75bf0fbca5fe1", "score": "0.5331532", "text": "public Builder clearMapIds() {\n mapIds_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "efdd44c7a34d3c415448d7449c199602", "score": "0.5311698", "text": "@SuppressWarnings(\"unchecked\")\n public MultiHashMap(Map mapToCopy) {\n \n final float defaultSize = 1.4f;\n\n data = new HashMap<K, Collection<V>>((int) (mapToCopy.size() * defaultSize));\n if (mapToCopy instanceof MultiMap) {\n Map<K, Collection<V>> copyMap = (Map<K, Collection<V>>) mapToCopy;\n\n for (Iterator<Map.Entry<K, Collection<V>>> it = copyMap.entrySet().iterator(); it.hasNext();) {\n Map.Entry<K, Collection<V>> entry = it.next();\n Collection<V> coll = entry.getValue();\n Collection<V> newColl = createCollection(coll);\n data.put((K) entry.getKey(), newColl);\n }\n } else {\n putAll(mapToCopy);\n }\n }", "title": "" }, { "docid": "354877717cfa1c8dba2f502081074faa", "score": "0.5306464", "text": "public static <K, V> Map<V, K> inverse(Map<K, V> map) {\n return inverse(map, false);\n }", "title": "" }, { "docid": "c26d776e23be1cfba9a1ba3feb1d2918", "score": "0.52917045", "text": "public static <K,V> AMutableMapWrapper<K,V> fromIterator(Iterator<? extends Map.Entry<K,V>> it) {\n return AMutableMapWrapper.<K,V>builder().addAll(it).build();\n }", "title": "" }, { "docid": "73002d6a17b27339b2d7ae90712cc7b3", "score": "0.52127445", "text": "public ImmutableMultimap(ImmutableMap immutableMap) {\n this.A00 = immutableMap;\n }", "title": "" }, { "docid": "205e44e103bbe7d3387530ae40c9e043", "score": "0.5203837", "text": "public static <K,V> AMutableMapWrapper<K,V> from(Iterable<? extends Map.Entry<K,V>> coll) {\n return AMutableMapWrapper.<K,V>builder().addAll(coll).build();\n }", "title": "" }, { "docid": "ba335a785f54ff1abd6e4439bd1131d5", "score": "0.5193637", "text": "public EMapSerializer() {\n\t\tsuper(EMap.class, false);\n\t}", "title": "" }, { "docid": "d5f8d8b29cb5436f8da123cde45812c5", "score": "0.5145513", "text": "<Sk, Sv, Dk, Dv> Map<Dk, Dv> mapAsMap(Map<Sk, Sv> source, Type<? extends Map<Sk, Sv>> sourceType,\n Type<? extends Map<Dk, Dv>> destinationType);", "title": "" }, { "docid": "f34e472e24ad71c33bc9b8fa9f7c87a6", "score": "0.51260686", "text": "public IndexedHashMap(IndexedHashMap<K, V> map) {\n this.indices = new HashMap<>(map.indices);\n this.delegate = new LinkedHashMap<>(map.delegate);\n }", "title": "" }, { "docid": "267d06d622065a6c665e0d1474c8313f", "score": "0.50945204", "text": "static Map createMap() {\n return new Map();\n }", "title": "" }, { "docid": "4e90e5e0af50fd3cb299cdcaf46d3369", "score": "0.50945026", "text": "private HashPMap(PMap<Integer, PSequence<Entry<K, V>>> intMap, int size) {\n this.intMap = intMap;\n this.size = size;\n }", "title": "" }, { "docid": "9e807cee79dc0208de73d0fd62fbb290", "score": "0.5090931", "text": "public TrashMap(Map<K,V> m) {\n this();\n for(K key: m.keySet()) {\n this.put(key, m.get(key));\n }\n\n }", "title": "" }, { "docid": "a14a8244266f392af4f9347d4b949e73", "score": "0.50840586", "text": "@Override // io.reactivex.functions.Function\n public LoadingState<? super Map<String, ? extends String>> apply(Map<String, ? extends String> map) {\n Map<String, ? extends String> map2 = map;\n Intrinsics.checkNotNullParameter(map2, \"it\");\n return new LoadingState.Loaded(r.toMap(map2));\n }", "title": "" }, { "docid": "8eb34b1b6239f66148fd8982299d6f2f", "score": "0.5074426", "text": "@Override\n public void initMap(VanillaChronicleMap map) {\n m = (ReplicatedChronicleMap<K, V, R>) map;\n }", "title": "" }, { "docid": "93f9c0d50845d6f7498ceaa6e7d16b75", "score": "0.50719815", "text": "@Override\n public void initMap() {\n }", "title": "" }, { "docid": "a6de4bf23d9f07baa978fd9e0d19415d", "score": "0.50670975", "text": "public Map toMap() throws TemplateModelException {\n if (unwrappedMap == null) {\n Class mapClass = this.map.getClass();\n Map m = null;\n try {\n m = (Map) mapClass.newInstance();\n } catch (Exception e) {\n throw new TemplateModelException(\"Error instantiating map of type \" + mapClass.getName() + \"\\n\" + e.getMessage());\n }\n // Create a copy to maintain immutability semantics and\n // Do nested unwrapping of elements if necessary.\n BeansWrapper bw = BeansWrapper.getDefaultInstance();\n for (Iterator it = map.entrySet().iterator(); it.hasNext(); ) {\n Map.Entry entry = (Map.Entry) it.next();\n Object key = entry.getKey();\n Object value = entry.getValue();\n if (value instanceof TemplateModel) {\n value = bw.unwrap((TemplateModel) value);\n }\n m.put(key, value);\n }\n unwrappedMap = m;\n }\n return unwrappedMap;\n }", "title": "" }, { "docid": "3a4cca181d4028d467c3b0604766d69c", "score": "0.5059639", "text": "protected Map createInverseStyleMap() {\n Map invertMe = createStyleMap();\n invertMe.remove(DEFAULT);\n return invert(invertMe);\n }", "title": "" }, { "docid": "0443378ac096cfa554ff52a31fd9ffc1", "score": "0.50563544", "text": "<Sk, Sv, Dk, Dv> Map<Dk, Dv> mapAsMap(Map<Sk, Sv> source, Type<? extends Map<Sk, Sv>> sourceType,\n Type<? extends Map<Dk, Dv>> destinationType, MappingContext context);", "title": "" }, { "docid": "4918a449549f86a1f103056095856691", "score": "0.50547045", "text": "public PrintableMap(final Map<?, ?> map) {\n for (final Map.Entry<?, ?> entry : map.entrySet()) {\n final String key = keyToString(entry.getKey());\n final Printable value = toPrintable(entry.getValue());\n put(key, value);\n }\n }", "title": "" }, { "docid": "a27b1b1b33b8bbf81d93f706413ba7a0", "score": "0.5050187", "text": "public Builder clearMapId() {\n bitField0_ = (bitField0_ & ~0x00000010);\n mapId_ = 0L;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1c0eed1914f636aff2132ffe8c51e3ea", "score": "0.50391597", "text": "public Builder putAllI2IMap(\n java.util.Map<Integer, Integer> values) {\n internalGetMutableI2IMap().getMutableMap()\n .putAll(values);\n return this;\n }", "title": "" }, { "docid": "984f2b77944f1c0ee84fc3806e9c74c8", "score": "0.50318986", "text": "public Builder clearMapId() {\n bitField0_ = (bitField0_ & ~0x00000001);\n mapId_ = 0L;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8cae911b7e8f1d896383634d7df33b7d", "score": "0.5024746", "text": "public Map(int[][] map) {\n this.map = map;\n }", "title": "" }, { "docid": "e3e2e5876663022f5bce90448cb3a8d7", "score": "0.50121284", "text": "public IsoMapView(Composite parent, Map map) {\n super(parent, map);\n }", "title": "" }, { "docid": "866433e69ec65592aaa249556bc1c1eb", "score": "0.49979734", "text": "public Map<A, B> build() {\n return map;\n }", "title": "" }, { "docid": "ea66bea9ba3ec4f044b3d590874985ce", "score": "0.4990695", "text": "public T objectFromMap(Map<?, ?> map) throws InstantiationException, IllegalAccessException, InvocationTargetException {\n \t\tObject[] initargs = new Object[param_type.size()];\n \t\tint i=0;\n \t\tfor (Map.Entry<String, Class<?>> en: param_type.entrySet()) {\n \t\t\tString property = en.getKey();\n \t\t\tClass<?> type = en.getValue();\n \t\t\tObject value = map.get(property);\n \t\t\ttry {\n \t\t\t\tif (type.isPrimitive()) {\n \t\t\t\t\tvalue = boxCast(type, value);\n \t\t\t\t} else {\n \t\t\t\t\tvalue = type.cast(value);\n \t\t\t\t}\n \t\t\t} catch (ClassCastException e) {\n\t\t\t\tthrow new IllegalArgumentException(\"Parameter for property \" +property+ \" is not of the correct type\", e);\n \t\t\t}\n \t\t\tinitargs[i++] = value;\n \t\t}\n \t\treturn constructor.newInstance(initargs);\n \t}", "title": "" }, { "docid": "aa934acfb933d7194792853b4a9273a5", "score": "0.49776855", "text": "public Builder clearMapId() {\n bitField0_ = (bitField0_ & ~0x00000040);\n mapId_ = 0L;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c008f134f6a662b46946102d70b532df", "score": "0.49765235", "text": "public Builder putAllS2MapMap(\n java.util.Map<String, MapValue> values) {\n internalGetMutableS2MapMap().getMutableMap()\n .putAll(values);\n return this;\n }", "title": "" }, { "docid": "67ca0a71687c344f2424cfb7d93d2f2a", "score": "0.49633136", "text": "public Map() {\r\n }", "title": "" }, { "docid": "da75ce096461cba0be8592790963bfb9", "score": "0.4960126", "text": "MapValue getI2MapMapOrThrow(\n int key);", "title": "" }, { "docid": "c9dfa8bdf2b94764a9d97c3f1bda1645", "score": "0.49502182", "text": "public Builder putI2BsMap(\n int key,\n com.google.protobuf.ByteString value) {\n \n if (value == null) { throw new NullPointerException(); }\n internalGetMutableI2BsMap().getMutableMap()\n .put(key, value);\n return this;\n }", "title": "" }, { "docid": "9daa61cbd953852079d0be5756d4477b", "score": "0.49330112", "text": "MapType createMapType();", "title": "" }, { "docid": "615fdcb7f4cebabfa9514f90699cc5e7", "score": "0.49293077", "text": "protected Map<K, V> instantiateMap()\n {\n return new HashMap<>();\n }", "title": "" }, { "docid": "431a513e535a4e68c356fc76a93c2fd7", "score": "0.49274817", "text": "public void createNewMap()\n {\n //if map is not null, stop all previous seeds\n if( map != null)\n {\n map.stopAllSeeds();\n map.stopAllTrees();\n }\n try\n {\n map = new Map(fileManager.readMapData());\n }\n catch(FileNotFoundException e)\n {\n\n }\n }", "title": "" }, { "docid": "600a998d9ba04713449a9749d111b5b5", "score": "0.49265796", "text": "public interface IMapFactory {\n\n Map create();\n\n}", "title": "" }, { "docid": "71da3cfd3e8e49aee9fb29c02ec2c214", "score": "0.49184957", "text": "Map<?,?> flatten();", "title": "" }, { "docid": "c18a961e7b25ce8dbe0b0c9bfc42f37b", "score": "0.49145305", "text": "public MapOverlay(final Map map) {\n this.map = map;\n }", "title": "" }, { "docid": "288bc0aadca215429a80a580798b128d", "score": "0.48999378", "text": "@SuppressWarnings(\"rawtypes\")\r\n\tprivate HashMap<Integer, String> createCopy(Map<Integer, String> finalMap) {\r\n\t\tHashMap<Integer,String> newMap = new HashMap<Integer, String>();\r\n\t\tIterator<Entry<Integer, String>> it = finalMap.entrySet().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tMap.Entry entry = (Map.Entry)it.next();\r\n\t\t\tnewMap.put((Integer) entry.getKey(),(String) entry.getValue());\r\n\t\t}\r\n\t\treturn newMap;\r\n\t}", "title": "" }, { "docid": "99c8374ba92b8142ca9a70e69438a7c5", "score": "0.48990732", "text": "@Test\n public void testEqualsAndHashCode() throws Exception {\n TestMap b1 =\n TestMap.newBuilder()\n .putInt32ToInt32Field(1, 2)\n .putInt32ToInt32Field(3, 4)\n .putInt32ToInt32Field(5, 6)\n .build();\n TestMap m1 = b1;\n\n TestMap.Builder b2 =\n TestMap.newBuilder()\n .putInt32ToInt32Field(5, 6)\n .putInt32ToInt32Field(1, 2)\n .putInt32ToInt32Field(3, 4);\n TestMap m2 = b2.build();\n\n assertThat(m2).isEqualTo(m1);\n assertThat(m2.hashCode()).isEqualTo(m1.hashCode());\n\n // Make sure we did compare map fields.\n b2.putInt32ToInt32Field(1, 0);\n m2 = b2.build();\n assertThat(m1.equals(m2)).isFalse();\n // Don't check m1.hashCode() != m2.hashCode() because it's not guaranteed\n // to be different.\n\n // Regression test for b/18549190: if a map is a subset of the other map,\n // equals() should return false.\n b2.removeInt32ToInt32Field(1);\n m2 = b2.build();\n assertThat(m1.equals(m2)).isFalse();\n assertThat(m2.equals(m1)).isFalse();\n }", "title": "" }, { "docid": "7f198ec9310383ceb32c809d9c085506", "score": "0.4894135", "text": "public Builder putAllI2BsMap(\n java.util.Map<Integer, com.google.protobuf.ByteString> values) {\n internalGetMutableI2BsMap().getMutableMap()\n .putAll(values);\n return this;\n }", "title": "" }, { "docid": "f66f80992f090aa6216956f600282d23", "score": "0.4890039", "text": "@NotNull\n public Map<K, V> getClonedMap() {\n accessLock.writeLock().lock();\n @NotNull HashMap<K, V> mapClone = new HashMap<>(objectMap);\n accessLock.writeLock().unlock();\n return Collections.unmodifiableMap(mapClone);\n }", "title": "" }, { "docid": "fb921a5ce263998bfa77b86455237fb3", "score": "0.48785293", "text": "public Builder putAllL2MapMap(\n java.util.Map<Long, MapValue> values) {\n internalGetMutableL2MapMap().getMutableMap()\n .putAll(values);\n return this;\n }", "title": "" }, { "docid": "a620d7afad134db3abd98c4279885f1d", "score": "0.4872199", "text": "public Builder clearCombinedMapIds() {\n combinedMapIds_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000080);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "87cd720851f31ccbb8b99b2e129b3998", "score": "0.48560306", "text": "public Map clone() {\n Gson gson = new GsonBuilder()\n .registerTypeAdapter(AmmoCard.class, new JsonAdapter<AmmoCard>())\n .registerTypeAdapter(Border.class, new JsonAdapter<Border>())\n .registerTypeAdapter(Map.class, new JsonAdapter<Map>())\n .registerTypeAdapter(Cell.class, new JsonAdapter<Cell>())\n .registerTypeAdapter(WeaponCard.class, new JsonAdapter<WeaponCard>())\n .registerTypeAdapter(FireMode.class, new JsonAdapter<FireMode>())\n .setExclusionStrategies(new SkinnyObjectExclusionStrategy())\n .create();\n\n Type TYPE = new TypeToken<Map>() {\n }.getType();\n\n return gson.fromJson(gson.toJson(this, TYPE), TYPE);\n }", "title": "" }, { "docid": "4b10867a65ddbb129f9b987b0804102c", "score": "0.48535", "text": "public static <K, V> HashMap<V, K> invertMap(Map<K, V> aMap) {\n HashMap<V, K> invertedMap = new HashMap<>();\n\n for (K key : aMap.keySet()) {\n V value = aMap.get(key);\n if (value == null) {\n continue;\n }\n\n invertedMap.put(value, key);\n }\n\n return invertedMap;\n }", "title": "" }, { "docid": "25835e602c54adff2409b9ec9333cacb", "score": "0.48426494", "text": "public Builder putI2IMap(\n int key,\n int value) {\n \n \n internalGetMutableI2IMap().getMutableMap()\n .put(key, value);\n return this;\n }", "title": "" }, { "docid": "3d2d6ccff61c1c0e5f1bf6042ee6f73d", "score": "0.4826887", "text": "public static <K,V> AMap<K,V> wrapMapWithDefaultValue(AMap<K,V> inner, Function<K,V> defaultProvider) {\n return (AMap<K, V>) Proxy.newProxyInstance(AMapSupport.class.getClassLoader(),\n new Class[]{AMap.class, Serializable.class},\n new MapWithDefaultValueInvocationHandler<>(inner, defaultProvider));\n }", "title": "" }, { "docid": "f3330547a3bd4fc07230c1ca076a3b3a", "score": "0.48261136", "text": "public Builder removeI2MapMap(\n int key) {\n \n internalGetMutableI2MapMap().getMutableMap()\n .remove(key);\n return this;\n }", "title": "" }, { "docid": "b86b603e8fe3860dfdfca4fce7fcfb0c", "score": "0.482609", "text": "protected Map materializeMap(final Traverser.Admin<S> traverser, Traversal.Admin<S, ?> mapTraversal) {\n final Map map = (Map) TraversalUtil.apply(traverser, mapTraversal);\n return map == null ? new LinkedHashMap() : map;\n }", "title": "" }, { "docid": "4a0ea16203d50914c07348877bb1dcf7", "score": "0.48187405", "text": "public SimpleInstantiatingReflector(Map requestedToInstantiatedClassMap) {\n\t\tsuper();\n\t\tthis.requestedToInstantiatedTypeMap = requestedToInstantiatedClassMap;\n\t}", "title": "" }, { "docid": "3773ae3c69190044ccf5765bd47a26ef", "score": "0.48098928", "text": "MapMetadata newMapMetadata();", "title": "" }, { "docid": "3448ff35b6f2df9fa6f58c103bcc35ad", "score": "0.48090056", "text": "public MappingContext putAll(Map<String, Object> map) {\n context.putAll(map);\n return this;\n }", "title": "" }, { "docid": "95adc8833d3069d1385b5f279dbd6a2c", "score": "0.4808196", "text": "<S, Dk, Dv> Map<Dk, Dv> mapAsMap(Iterable<S> source, Type<S> sourceType, Type<? extends Map<Dk, Dv>> destinationType);", "title": "" }, { "docid": "38c6d7f74029da718d8afc8c697c2d01", "score": "0.4806946", "text": "public Map<String, String> topping1(Map<String, String> map) {\n if (map.containsKey(\"ice cream\")) {\n map.put(\"ice cream\", \"cherry\");\n }\n map.put(\"bread\", \"butter\");\n\n return map;\n }", "title": "" }, { "docid": "67fbc570cc474067a4f088558a7b735a", "score": "0.4806401", "text": "public Faturacao(Map<String,NodoFatura> faturas)\n {\n this.faturas = faturas.entrySet().stream().collect(Collectors.toMap(e -> e.getKey(), e -> e.getValue().clone()));\n }", "title": "" }, { "docid": "eed92ddc70d57086881a5f229d56936d", "score": "0.48053226", "text": "AnnotationMapEntry createAnnotationMapEntry();", "title": "" }, { "docid": "fe058986a05445284c16fb84cc7c3b54", "score": "0.48043498", "text": "public static <K, V> OptionalMap<K, V> om(Map<K, V> pre) {\n\t\tOptionalMap<K, V> o = om();\n\t\to.putAll(pre);\n\t\treturn o;\n\t}", "title": "" }, { "docid": "1354fdea56c2fa7232a48eb29f845b66", "score": "0.4788248", "text": "public boolean isFromMap() {\n return hasConstructorString(Operation_new.FROM_MAP_PREFIX);\n }", "title": "" }, { "docid": "bb2c13950376e7cf11a583c7af3e5864", "score": "0.4775166", "text": "java.util.Map<Integer, MapValue>\n getI2MapMapMap();", "title": "" }, { "docid": "a3e83a68ff4c77893caa3cdc069e83ce", "score": "0.47723147", "text": "public Builder putAllL2IMap(\n java.util.Map<Long, Integer> values) {\n internalGetMutableL2IMap().getMutableMap()\n .putAll(values);\n return this;\n }", "title": "" }, { "docid": "d8e1e14b173d7d02e622a56b57ac238a", "score": "0.47716123", "text": "public void setMap(Map toMap) {\n // TODO: Some error checking, possibly?\n this._map = toMap;\n }", "title": "" }, { "docid": "b56fa47ef8f499f975badb86b286fcd7", "score": "0.47669026", "text": "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-02-24 14:42:09.077 -0500\", hash_original_method = \"CF4E04D9BE7BBED84D489834E5A66249\", hash_generated_method = \"EEBC4270709A81BAEA5E9378F3C6027B\")\n @DSVerified\n @DSSafe(DSCat.SAFE_LIST)\npublic IdentityHashMap() {\n this(DEFAULT_MAX_SIZE);\n }", "title": "" }, { "docid": "265664d67c4d8729146e85e651847e75", "score": "0.47642732", "text": "public Builder withSubstitutionMap(SubstitutionMap d) {\n this.delegate = Preconditions.checkNotNull(d);\n return this;\n }", "title": "" }, { "docid": "a2f153889dcec3f0c2dca223a8be19c8", "score": "0.47638446", "text": "public final DataHolder mo17958b(Map map) {\n Bundle bundle = new Bundle();\n if (map != null) {\n for (Map.Entry entry : map.entrySet()) {\n Bundle bundle2 = new Bundle();\n for (Map.Entry entry2 : ((TreeMap) entry.getValue()).entrySet()) {\n bundle2.putByteArray((String) entry2.getKey(), (byte[]) entry2.getValue());\n }\n bundle.putBundle((String) entry.getKey(), bundle2);\n }\n }\n PackageConfigTable packageConfigTable = new PackageConfigTable(bundle);\n rtu d = rts.m34440d();\n rts.m34439a(d, packageConfigTable);\n return d.mo25163a(0);\n }", "title": "" }, { "docid": "322fba15107a175f80408407c364026c", "score": "0.47562796", "text": "public static BridgeConfig fromMap(Map<String, Object> map) {\n KafkaConfig kafkaConfig = KafkaConfig.fromMap(map);\n HttpConfig httpConfig = HttpConfig.fromMap(map);\n\n return new BridgeConfig(map.entrySet().stream()\n .filter(e -> e.getKey().startsWith(BridgeConfig.BRIDGE_CONFIG_PREFIX))\n .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)),\n kafkaConfig, httpConfig);\n }", "title": "" }, { "docid": "9317404a723f86698b5693ae3d11fbbd", "score": "0.47530532", "text": "public OutbreakGenerationMap toOutbreakGenerationMap() {\n // TODO think of finding a smarter way to not create an intermediate multimap?\n\n Multimap<Integer, CityId> map = ArrayListMultimap.create();\n for (OutbreakGeneration generation : outbreakedCities.values()) {\n map.put(generation.generation(), generation.cityId);\n }\n CityId[][] generations = new CityId[map.size()][];\n for(int i=0,n=map.size(); i<n; i++) {\n Collection<CityId> cityIds = map.get(i);\n generations[i] = cityIds.toArray(new CityId[cityIds.size()]);\n }\n\n return new OutbreakGenerationMap(generations);\n }", "title": "" }, { "docid": "d3f04b17b0c134ffdaf2368fed728485", "score": "0.47386393", "text": "public static <K, V> OptionalMap<K, V> om() {\n\t\treturn new OptionalMap<K, V>();\n\t}", "title": "" }, { "docid": "1120f0a753156cdd8914da3151266054", "score": "0.47366935", "text": "public Builder putAllI2FMap(\n java.util.Map<Integer, Float> values) {\n internalGetMutableI2FMap().getMutableMap()\n .putAll(values);\n return this;\n }", "title": "" }, { "docid": "d2c6720fe7040e6f404ef95e0dbe5bc5", "score": "0.4732893", "text": "public Builder putAllI2LMap(\n java.util.Map<Integer, Long> values) {\n internalGetMutableI2LMap().getMutableMap()\n .putAll(values);\n return this;\n }", "title": "" }, { "docid": "0d78e90c757119d02a24a82eb4d1aebc", "score": "0.47313794", "text": "public PositionerOptions indoor(String indoorMapId, int indoorMapFloorId) {\n m_indoorMapId = indoorMapId;\n m_indoorMapFloorId = indoorMapFloorId;\n return this;\n }", "title": "" }, { "docid": "d3aa27a07a89fb0c3b764b99bf76456f", "score": "0.47310677", "text": "public InputMap() {\n }", "title": "" }, { "docid": "4c9dee976933b666805ea094e573d857", "score": "0.47284985", "text": "private MutableClassToInstanceMap(Map<Class<? extends B>, B> delegate) {\n/* 68 */ this.delegate = (Map<Class<? extends B>, B>)Preconditions.checkNotNull(delegate);\n/* */ }", "title": "" }, { "docid": "3704f06db5d750efa9c2cea92b3d9a8e", "score": "0.4727862", "text": "public <K, S, T> Map<K, T> map(Map<K, S> map, Class<T> mapValueClass) {\n return mapCollection(map, mapValueClass);\n }", "title": "" }, { "docid": "d5388e7ab2498bb3794dd99261d50592", "score": "0.47263223", "text": "public Builder clearMapInfo() {\n if (mapInfoBuilder_ == null) {\n mapInfo_ = com.funcy.g01.base.proto.bo.SynFightBoProtoBuffer.FightMapInfoProto.getDefaultInstance();\n onChanged();\n } else {\n mapInfoBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000001);\n return this;\n }", "title": "" }, { "docid": "63c7c9cbd0ed061f9dd0adc5ef87d078", "score": "0.47250023", "text": "public static <A, B> MapPreservingOrderBuilder<A, B> builder() {\n return new MapPreservingOrderBuilder<>(new LinkedHashMap<>());\n }", "title": "" }, { "docid": "ad5fb4a841e61c8e17c89cec8b71b2d0", "score": "0.4724089", "text": "<S, Dk, Dv> Map<Dk, Dv> mapAsMap(Iterable<S> source, Type<S> sourceType, Type<? extends Map<Dk, Dv>> destinationType,\n MappingContext context);", "title": "" }, { "docid": "6be7e56b5e71ac75888762f0b76d8134", "score": "0.47159794", "text": "public static FMap emptyMap(){\n return new Empty();\n }", "title": "" }, { "docid": "8b407b907c334415c0b8356ea91eb62b", "score": "0.4708999", "text": "public StringMap createMap() {\n\t\treturn new StringMap();\n\t}", "title": "" }, { "docid": "e1ee2d79fbe572b8b874a425edd06712", "score": "0.47047597", "text": "public String getFromMapString() {\n return getConstructorString(Operation_new.FROM_MAP_PREFIX);\n }", "title": "" }, { "docid": "533c3854607ddb1441f866ee80643703", "score": "0.47041583", "text": "private Map makeNewMap(Map oldMap, Game game) {\n Map newMap = oldMap.copy();\n game.getCurrentPiece().cement(newMap);\n newMap.checkCompletion();\n return newMap;\n }", "title": "" }, { "docid": "c1f347e8009237b55e52a5a34409ec48", "score": "0.47037804", "text": "InMemoryDirectoryServerSnapshot(final Map<DN,ReadOnlyEntry> m,\n final long firstChangeNumber,\n final long lastChangeNumber)\n {\n this.firstChangeNumber = firstChangeNumber;\n this.lastChangeNumber = lastChangeNumber;\n\n entryMap = Collections.unmodifiableMap(new TreeMap<DN,ReadOnlyEntry>(m));\n }", "title": "" }, { "docid": "706516ed2da83dab156f6920e89bad8d", "score": "0.46930683", "text": "public static Dictionary toDictionary(Map<String, ?> map) {\n return map == null ? null : new MapToDictionary(map);\n }", "title": "" }, { "docid": "3e3b524dfccef0085e42189cada1fa9d", "score": "0.4688788", "text": "public Builder putAllS2IMap(\n java.util.Map<String, Integer> values) {\n internalGetMutableS2IMap().getMutableMap()\n .putAll(values);\n return this;\n }", "title": "" }, { "docid": "b8ffe54624f9026d7d1aafae2f8f4026", "score": "0.46875134", "text": "MapValue getI2MapMapOrDefault(\n int key,\n MapValue defaultValue);", "title": "" } ]
7b084cc2d7f18b523dca51e04f752fbf
The architecture of the AMI. Default: For Amazon EBSbacked AMIs, i386. For instance storebacked AMIs, the architecture specified in the manifest file.
[ { "docid": "da5926f7eaf966eec924ae91dbfad150", "score": "0.7310789", "text": "public String getArchitecture() {\n return this.architecture;\n }", "title": "" } ]
[ { "docid": "58c36a0fae0a78210d9cd20381571347", "score": "0.71214056", "text": "static public native int getArchitecture();", "title": "" }, { "docid": "08a27c9d559977dfcb510fa90968eb76", "score": "0.70337826", "text": "@Nonnull\n\tGenericAttributeValue<String> getArchitecture();", "title": "" }, { "docid": "a9f8cddf95b0edb9359639c642717d4a", "score": "0.67181754", "text": "java.lang.String getCpuArchitecture();", "title": "" }, { "docid": "da708ebc9e4303c60f32f63f626a6236", "score": "0.6694349", "text": "private CPUArchitecture getCPUArchitecture() {\n\n String abi =\"\";\n if(Build.VERSION.SDK_INT>=21) {\n abi = Build.SUPPORTED_ABIS[0];\n } else {\n abi = Build.CPU_ABI;\n }\n Log.i(TAG,\"ABI: \" + abi);\n if (abi.equals(\"x86\")){\n return CPUArchitecture.X86;\n } else if (abi.equals(\"armeabi-v7a\")) {\n // check if NEON is supported:\n if(isNeonSupported()){\n return CPUArchitecture.ARMEABI_V7A_NEON;\n }else{\n return CPUArchitecture.ARMEABI_V7A;\n }\n }\n //return null;\n return CPUArchitecture.ARMEABI_V7A;\n }", "title": "" }, { "docid": "cf0defcff28e3f12496ebdd573604594", "score": "0.6527481", "text": "public String getFileArchitecture() {\n return fileArchitecture;\n }", "title": "" }, { "docid": "e0de2ff7bfdd10b078822ee877c257fe", "score": "0.63250965", "text": "public static String getArch() {\n return Constant.messages.getString(\"support.arch.label\")\n + \" \"\n + System.getProperty(\"os.arch\");\n }", "title": "" }, { "docid": "3508fbf00eff6c06ea35b56ab3943539", "score": "0.63170314", "text": "@Nonnull @Override\n public Iterable<Architecture> listSupportedArchitectures() throws InternalException, CloudException {\n return Collections.unmodifiableList(\n Arrays.asList(Architecture.I64, Architecture.I32)\n );\n }", "title": "" }, { "docid": "c403a70b4d7517779fd80a10151e64e3", "score": "0.63005483", "text": "public void setArchitecture(String architecture) {\n this.architecture = architecture;\n }", "title": "" }, { "docid": "c403a70b4d7517779fd80a10151e64e3", "score": "0.63005483", "text": "public void setArchitecture(String architecture) {\n this.architecture = architecture;\n }", "title": "" }, { "docid": "d8585b2bf5c89fe97915310a237d771f", "score": "0.60224867", "text": "com.google.protobuf.ByteString getCpuArchitectureBytes();", "title": "" }, { "docid": "2101933462e4537ddad1fda823be89f7", "score": "0.60014427", "text": "public ArchitectureModel getArchitecture() {\n\t\tif (type == ElementType.ARCHITECTURE) {\n\t\t\treturn (ArchitectureModel) this;\n\t\t}\n\t\tif (architecture == null) {\n\t\t\tElementModel arch = parent;\n\t\t\twhile (arch.getType() != ElementType.ARCHITECTURE) {\n\t\t\t\tarch = arch.getParent();\n\t\t\t}\n\t\t\tarchitecture = (ArchitectureModel) arch;\n\t\t}\n\t\treturn architecture;\n\t}", "title": "" }, { "docid": "3d907366296c51b6415f40b5c183e455", "score": "0.5897745", "text": "@ApiModelProperty(value = \"Host operating system architecture\")\r\n public String getOsArchitecture() {\r\n return osArchitecture;\r\n }", "title": "" }, { "docid": "f2fc97493d018b75cff5e23a5a8a8577", "score": "0.55703986", "text": "public void setArchitecture(ArchitectureValues architecture) {\n withArchitecture(architecture);\n }", "title": "" }, { "docid": "96a04abb8d31529abbe241befe7ec833", "score": "0.53193563", "text": "com.google.cloud.migrationcenter.v1.MachineArchitectureDetails.FirmwareType getFirmwareType();", "title": "" }, { "docid": "980f5848a01441b99099b206509bdc64", "score": "0.51325244", "text": "public final void mT__35() throws RecognitionException {\r\n try {\r\n int _type = T__35;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../br.ufmg.dcc.asml.ui/src-gen/br/ufmg/dcc/asml/ui/contentassist/antlr/internal/InternalASMLModel.g:34:7: ( 'architecture' )\r\n // ../br.ufmg.dcc.asml.ui/src-gen/br/ufmg/dcc/asml/ui/contentassist/antlr/internal/InternalASMLModel.g:34:9: 'architecture'\r\n {\r\n match(\"architecture\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "title": "" }, { "docid": "45c193a1899a23e907f0bc57d2d9179e", "score": "0.51060545", "text": "public RegisterImageRequest withArchitecture(String architecture) {\n setArchitecture(architecture);\n return this;\n }", "title": "" }, { "docid": "4402bbd9b361e3849e86848d045b1904", "score": "0.50733733", "text": "public int getNetworkType() {\n //MTK-START [mtk04070][111116][ALPS00093395]Support Gemini\n \tif(mtkGeminiSupport){\n \t\treturn getNetworkTypeGemini(getDefaultSim());\n \t}else{\n try{\n ITelephony telephony = getITelephony();\n if (telephony != null) {\n return telephony.getNetworkType();\n } else {\n // This can happen when the ITelephony interface is not up yet.\n return NETWORK_TYPE_UNKNOWN;\n }\n } catch(RemoteException ex) {\n // This shouldn't happen in the normal case\n return NETWORK_TYPE_UNKNOWN;\n } catch (NullPointerException ex) {\n // This could happen before phone restarts due to crashing\n return NETWORK_TYPE_UNKNOWN;\n }\n }\n //MTK-END [mtk04070][111116][ALPS00093395]Support Gemini\n }", "title": "" }, { "docid": "bf8a3d704d3c53d37de4f387023906db", "score": "0.50226855", "text": "java.lang.String getMachineType();", "title": "" }, { "docid": "367a490c842a0d2505b0ff4c4df82960", "score": "0.5011366", "text": "private boolean is64() {\n String architecture = System.getProperty(PROP_SUN_ARCH);\n return ARCHITECTURE_64.equals(architecture);\n }", "title": "" }, { "docid": "e45bf539d08a374338ffd955da7e65d1", "score": "0.4989273", "text": "public RegisterImageRequest withArchitecture(ArchitectureValues architecture) {\n this.architecture = architecture.toString();\n return this;\n }", "title": "" }, { "docid": "c6a061adac4c862d1d6b9ed30415206c", "score": "0.49182093", "text": "public gov.georgia.dhr.dfcs.sacwis.structs.input.ArchInputStruct getArchInputStruct()\r\n {\r\n return this._archInputStruct;\r\n }", "title": "" }, { "docid": "c6a061adac4c862d1d6b9ed30415206c", "score": "0.49182093", "text": "public gov.georgia.dhr.dfcs.sacwis.structs.input.ArchInputStruct getArchInputStruct()\r\n {\r\n return this._archInputStruct;\r\n }", "title": "" }, { "docid": "c6a061adac4c862d1d6b9ed30415206c", "score": "0.49182093", "text": "public gov.georgia.dhr.dfcs.sacwis.structs.input.ArchInputStruct getArchInputStruct()\r\n {\r\n return this._archInputStruct;\r\n }", "title": "" }, { "docid": "c6a061adac4c862d1d6b9ed30415206c", "score": "0.49182093", "text": "public gov.georgia.dhr.dfcs.sacwis.structs.input.ArchInputStruct getArchInputStruct()\r\n {\r\n return this._archInputStruct;\r\n }", "title": "" }, { "docid": "6332d9f47ee46b46e45400ab3d94be8c", "score": "0.490809", "text": "java.lang.String getOsImage();", "title": "" }, { "docid": "b58276558d4c1e96cc451efefb260004", "score": "0.48456517", "text": "public String getPlatform() {\n String platform;\n if (isAmazonDevice()) {\n platform = AMAZON_PLATFORM;\n } else {\n platform = ANDROID_PLATFORM;\n }\n return platform;\n }", "title": "" }, { "docid": "b58276558d4c1e96cc451efefb260004", "score": "0.48456517", "text": "public String getPlatform() {\n String platform;\n if (isAmazonDevice()) {\n platform = AMAZON_PLATFORM;\n } else {\n platform = ANDROID_PLATFORM;\n }\n return platform;\n }", "title": "" }, { "docid": "82ca0486e678940637c1d41f7edb12ac", "score": "0.48226517", "text": "public java.lang.String getMultiplatform () {\n\t\treturn _multiplatform;\n\t}", "title": "" }, { "docid": "312fb40476d366c1feb96e16e824b01b", "score": "0.4763405", "text": "public gov.georgia.dhr.dfcs.sacwis.structs.output.ArchOutputStruct getArchOutputStruct()\r\n {\r\n return this._archOutputStruct;\r\n }", "title": "" }, { "docid": "312fb40476d366c1feb96e16e824b01b", "score": "0.4763405", "text": "public gov.georgia.dhr.dfcs.sacwis.structs.output.ArchOutputStruct getArchOutputStruct()\r\n {\r\n return this._archOutputStruct;\r\n }", "title": "" }, { "docid": "e71f660e8e78019fc1c0eb556743e528", "score": "0.47335804", "text": "public String getMachine_type() {\n return machine_type;\n }", "title": "" }, { "docid": "d191f2eb370e8218ac747cafe9877160", "score": "0.46864372", "text": "public String getAmiId() {\n return this.amiId;\n }", "title": "" }, { "docid": "ad3bb069734b37e5166b8cf32aaefa89", "score": "0.46860343", "text": "String getPlatform();", "title": "" }, { "docid": "120fbe46e9aca66a8c35bde41382cc11", "score": "0.4680609", "text": "public abstract String platformName();", "title": "" }, { "docid": "2255e0a487f9a0814fffbbc926f00595", "score": "0.46274158", "text": "public static boolean is64bit() {\n\t\tString val = System.getProperty(\"sun.arch.data.model\");\n\t\tboolean is64bit = false;\n\t\tif (val.equals(\"64\")) {\n\t\t\tis64bit = true;\n\t\t}\n\t\treturn is64bit;\n\t}", "title": "" }, { "docid": "95fb142f58089a25ab616e907c6ec26b", "score": "0.4594091", "text": "public String platform() {\n return this.platform;\n }", "title": "" }, { "docid": "22dce90afa33ab18d18b349cd1acb5eb", "score": "0.45911402", "text": "public abstract OperatingSystemTypes operatingSystemType();", "title": "" }, { "docid": "b9374e831a25f12cba5544e9639a56c7", "score": "0.45739907", "text": "static String getNativeLibraryResourcePrefix(int osType, String arch, String name) {\n/* 299 */ arch = getCanonicalArchitecture(arch, osType);\n/* 300 */ switch (osType)\n/* */ { case 8:\n/* 302 */ if (arch.startsWith(\"arm\")) {\n/* 303 */ arch = \"arm\";\n/* */ }\n/* 305 */ osPrefix = \"android-\" + arch;\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/* 343 */ return osPrefix;case 2: osPrefix = \"win32-\" + arch; return osPrefix;case 6: osPrefix = \"w32ce-\" + arch; return osPrefix;case 0: osPrefix = \"darwin\"; return osPrefix;case 1: osPrefix = \"linux-\" + arch; return osPrefix;case 3: osPrefix = \"sunos-\" + arch; return osPrefix;case 4: osPrefix = \"freebsd-\" + arch; return osPrefix;case 5: osPrefix = \"openbsd-\" + arch; return osPrefix;case 11: osPrefix = \"netbsd-\" + arch; return osPrefix;case 10: osPrefix = \"kfreebsd-\" + arch; return osPrefix; } String osPrefix = name.toLowerCase(); int space = osPrefix.indexOf(\" \"); if (space != -1) osPrefix = osPrefix.substring(0, space); osPrefix = osPrefix + \"-\" + arch; return osPrefix;\n/* */ }", "title": "" }, { "docid": "a73aedaa23e49c0b885b0be8bf7b6f26", "score": "0.45567352", "text": "public double getArchHeight() {\n return archHeight;\n }", "title": "" }, { "docid": "0eb5523e7819e0a3b57a636d353f7ede", "score": "0.45500037", "text": "public boolean isArch() {\n return archHeight >= 0;\n }", "title": "" }, { "docid": "f9f5d5f178894d20b9811f6f53f7d8e0", "score": "0.4541598", "text": "public AzureBareMetalHardwareTypeNamesEnum hardwareType() {\n return this.hardwareType;\n }", "title": "" }, { "docid": "f478e66dcdf0c349e9ceb2eea27e6188", "score": "0.45363998", "text": "com.google.protobuf.ByteString getMachineTypeBytes();", "title": "" }, { "docid": "c301fc0ad6978a5ef8d9a00baa3ee15a", "score": "0.45231658", "text": "com.google.protobuf.ByteString getOsImageBytes();", "title": "" }, { "docid": "332696734c7a04c2bd6d4edb547fdbfe", "score": "0.45206857", "text": "public boolean isArchway() {\r\n return arch;\r\n }", "title": "" }, { "docid": "0257efc2946f1daabf5de492329ddafd", "score": "0.45121372", "text": "private static int getPlatform()\n\t{\n\t\tString os = System.getProperty(\"os.name\");\n\t\tif ( os != null && os.startsWith(WIN_PREFIX)) return WIN_ID;\n\t\tif ( os != null && os.startsWith(MAC_PREFIX)) return MAC_ID;\n\t\treturn OTHER_ID;\n\t}", "title": "" }, { "docid": "bb4e5720108948edf454f55bc2cf34ef", "score": "0.45111734", "text": "public String getOSType(Image image) {\n\t\tString osType = null;\n\t\tif (image.getProperties() != null ) {\n\t\t\tif(image.getProperties().containsKey(OpenStackConstants.CUSTOM_PROPERTY_OS_TYPE)) {\n\t\t\t\tosType = image.getProperties().get(OpenStackConstants.CUSTOM_PROPERTY_OS_TYPE);\n\t\t\t} else {\n\t\t\t\t// Find base Image and check the OS Type there\n\t\t\t\tif(image.getProperties().containsKey(OpenStackConstants.CUSTOM_PROPERTY_BASE_IMAGE_REF)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tImage baseImage = describeImage(image.getProperties().get(OpenStackConstants.CUSTOM_PROPERTY_BASE_IMAGE_REF));\n\t\t\t\t\t\tif (baseImage.getProperties() != null ) {\n\t\t\t\t\t\t\tif (baseImage.getProperties().containsKey(OpenStackConstants.CUSTOM_PROPERTY_OS_TYPE)) {\n\t\t\t\t\t\t\t\tosType = baseImage.getProperties().get(OpenStackConstants.CUSTOM_PROPERTY_OS_TYPE);\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (CloudClientException e) {\n\t\t\t\t\t\t// $JL-EXC$ disable exception caught --> OSType cannot be retrieved\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t}\n\t\t\n\t\treturn osType;\n\t}", "title": "" }, { "docid": "8087205d4b723c1940ee71f6b4db80c3", "score": "0.45109168", "text": "public GetCoreDeviceResult withArchitecture(String architecture) {\n setArchitecture(architecture);\n return this;\n }", "title": "" }, { "docid": "4b84b0e2a09026adb4ec30065ee3a9a1", "score": "0.44981927", "text": "public native String getLocalOS();", "title": "" }, { "docid": "8407a112818bc0d6876ea529c5bbafb7", "score": "0.4490124", "text": "public abstract String getPlatform();", "title": "" }, { "docid": "f566cf3f7e929567e41746463ca2c3f4", "score": "0.44687355", "text": "public int getImageType() {\n\t\treturn imageType;\n\t}", "title": "" }, { "docid": "704d680f6eaf01ba86814cf9a8b2ddb0", "score": "0.445093", "text": "public Integer getOsType() {\r\n return osType;\r\n }", "title": "" }, { "docid": "066fbeec1cdb626c2f1232a0a5c32f69", "score": "0.4447047", "text": "public java.lang.String getTargetOS() {\n return _application.getTargetOS();\n }", "title": "" }, { "docid": "0f9615b333a82d0e0d1d3e45dfde5454", "score": "0.44428888", "text": "public String getPlatformArn() {\n return this.platformArn;\n }", "title": "" }, { "docid": "0f9615b333a82d0e0d1d3e45dfde5454", "score": "0.44428888", "text": "public String getPlatformArn() {\n return this.platformArn;\n }", "title": "" }, { "docid": "8e7c0fe54fe7a03616736bb9296d74bb", "score": "0.44137463", "text": "Sys_arch_ver createSys_arch_ver();", "title": "" }, { "docid": "106b75bf8a1881d38fab4f10bef8953c", "score": "0.4406007", "text": "public String getPlatform() {\n return platform;\n }", "title": "" }, { "docid": "7a8744631458a97389291a0dca228cd3", "score": "0.44003668", "text": "public String getAssembly() {\n return assembly;\n }", "title": "" }, { "docid": "fe7f698d4f898a5cffb7a0906dfacc3b", "score": "0.43998212", "text": "OSInfo getOsInfo();", "title": "" }, { "docid": "5424459e9e4c9ddd0904da06b84ea371", "score": "0.43901303", "text": "java.lang.String getOsName();", "title": "" }, { "docid": "18cc27790c3c053fb286693272084e92", "score": "0.43834153", "text": "public byte getAppletInterfaceVersion() {\n\t\treturn fAppletInterfaceVersion;\n\t}", "title": "" }, { "docid": "287de9f224e61b16802f620ba3ff1302", "score": "0.43753615", "text": "public Short getIassembly() {\r\n return iassembly;\r\n }", "title": "" }, { "docid": "eca4268b46affc6064ad95d95437533a", "score": "0.43747804", "text": "public String getBootMode() {\n return this.bootMode;\n }", "title": "" }, { "docid": "a527212eefbe6c92fa8d2cc47a3744ec", "score": "0.437001", "text": "public String getOsType() {\n\treturn osType;\n }", "title": "" }, { "docid": "721c2d50f3e4067e0a8171e297a06d46", "score": "0.4347477", "text": "public String getOSVersion() {\n\t\t// OSVersion is memoized for quicker lookup\n\t\tif (OSVersion == null) {\n\t\t\t// Reference app to use: Ribbon App\n\t\t\tString refapp = \"net_rim_bb_ribbon_app\";\n\t\t\tApplicationManager appMan = ApplicationManager\n\t\t\t\t\t.getApplicationManager();\n\t\t\t// Get running applications\n\t\t\tApplicationDescriptor[] appDes = appMan.getVisibleApplications();\n\t\t\tfor (int i = 0; i < appDes.length; i++) {\n\t\t\t\tif ((appDes[i].getModuleName()).equals(refapp)) {\n\t\t\t\t\tOSVersion = appDes[i].getVersion();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn OSVersion;\n\t}", "title": "" }, { "docid": "449a007d28ff32198b34aa98be1c24e1", "score": "0.43404377", "text": "private int getPhoneTypeFromNetworkType() {\n // When the system property CURRENT_ACTIVE_PHONE, has not been set,\n // use the system property for default network type.\n // This is a fail safe, and can only happen at first boot.\n int mode = SystemProperties.getInt(\"ro.telephony.default_network\", -1);\n if (mode == -1)\n return PHONE_TYPE_NONE;\n return PhoneFactory.getPhoneType(mode);\n }", "title": "" }, { "docid": "7b4d810dcc520995e7e93efdf59dd93d", "score": "0.4331824", "text": "public String getNetworkTypeName() {\n //MTK-START [mtk04070][111116][ALPS00093395]Support Gemini\n \tif(mtkGeminiSupport){\n \t\treturn getNetworkTypeNameGemini(getDefaultSim());\n \t}else{\n return getNetworkTypeName(getNetworkType());\n }\n //MTK-END [mtk04070][111116][ALPS00093395]Support Gemini\n }", "title": "" }, { "docid": "a8960653af43c1fa4c9140623bb7a85f", "score": "0.43084645", "text": "private static String resolveCPUType() {\n \t\ttry {\n \t\t\tCPUInfo c = CPUID.getInfo();\n \t\t\tif (c instanceof AMDCPUInfo) {\n \t\t\t\tAMDCPUInfo amdcpu = (AMDCPUInfo) c;\n \t\t\t\tif (amdcpu.IsAthlonCompatible())\n \t\t\t\t\treturn JBIGI_OPTIMIZATION_ATHLON;\n \t\t\t\tif (amdcpu.IsK6_3_Compatible())\n \t\t\t\t\treturn JBIGI_OPTIMIZATION_K6_3;\n \t\t\t\tif (amdcpu.IsK6_2_Compatible())\n \t\t\t\t\treturn JBIGI_OPTIMIZATION_K6_2;\n \t\t\t\tif (amdcpu.IsK6Compatible())\n \t\t\t\t\treturn JBIGI_OPTIMIZATION_K6;\n \t\t\t} else {\n \t\t\t\tif (c instanceof IntelCPUInfo) {\n \t\t\t\t\tIntelCPUInfo intelcpu = (IntelCPUInfo) c;\n \t\t\t\t\tif (intelcpu.IsPentium4Compatible())\n \t\t\t\t\t\treturn JBIGI_OPTIMIZATION_PENTIUM4;\n \t\t\t\t\tif (intelcpu.IsPentium3Compatible())\n \t\t\t\t\t\treturn JBIGI_OPTIMIZATION_PENTIUM3;\n \t\t\t\t\tif (intelcpu.IsPentium2Compatible())\n \t\t\t\t\t\t\t\treturn JBIGI_OPTIMIZATION_PENTIUM2;\n \t\t\t\t\tif (intelcpu.IsPentiumMMXCompatible())\n \t\t\t\t\t\treturn JBIGI_OPTIMIZATION_PENTIUMMMX;\n \t\t\t\t\tif (intelcpu.IsPentiumCompatible())\n \t\t\t\t\t\treturn JBIGI_OPTIMIZATION_PENTIUM;\n \t\t\t\t}\n \t\t\t}\n \t\t\treturn null;\n \t\t} catch (UnknownCPUException e) {\n \t\t\treturn null; //TODO: Log something here maybe..\n \t\t}\n \t}", "title": "" }, { "docid": "2160610998f18e04a206ce5480bb0cc7", "score": "0.4307254", "text": "public interface PlatformName {\n byte ANDROID = 1;\n byte IOS = 2;\n byte WEB = 3;\n String Android = \"Android\";\n String iOS = \"IOS\";\n String Web = \"Web\";\n}", "title": "" }, { "docid": "29e322b56d6104bade70d306d7ee06e3", "score": "0.43004084", "text": "public String getOperatingSystem() {\n return operatingSystem;\n }", "title": "" }, { "docid": "fd1ecc038425674a43b6c5dee48bf775", "score": "0.4297457", "text": "@Override\n\tpublic String getMachineName() {\n\t\treturn tipo();\n\t}", "title": "" }, { "docid": "21dda9f79f6e860c12db5d9d05abcf7f", "score": "0.42952973", "text": "@java.lang.Override\n public com.google.cloud.aiplatform.v1.MachineSpec getMachineSpec() {\n return machineSpec_ == null\n ? com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance()\n : machineSpec_;\n }", "title": "" }, { "docid": "a72e399df4179505766d4dff2cf0d7e5", "score": "0.4294062", "text": "public boolean isHostOS64Bit() {\n return hostOS64Bit;\n }", "title": "" }, { "docid": "a2d6a5845aea529e765e2dab50a5cb90", "score": "0.42835832", "text": "public static MatchingMachine getInst() {\n if (mac == null) {\n mac = new MatchingMachine();\n matchedSocks = 0;\n return mac;\n } else\n return mac;\n }", "title": "" }, { "docid": "e443faa5f30f1531aec24fedae20c7d2", "score": "0.4281241", "text": "public VHDLarchitecture(String n, VHDLentity e) throws VHDLexception {\n\t\tname = n;\n\t\tentity = e;\n\t\tif (e!=null) {\n\t\t\te.add(this);\n\t\t\tsymboltable = new VHDLsymbolTable(\"arch\", e.symboltable);\n\t\t}\n\t}", "title": "" }, { "docid": "0c4d89e5f98964417ecec4a3e59220a3", "score": "0.4279378", "text": "private static String _uname() {\n \t\ttry {\n \t\t\tProcess p = Runtime.getRuntime().exec(\"uname -r\"); //$NON-NLS-1$\n \t\t\tp.waitFor();\n \t\t\tif (p.exitValue() != 0) {\n \t\t\t\treturn OprofileProperties.getString(\"unkown-kernel\"); //$NON-NLS-1$\n \t\t\t}\n \t\t\n \t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));\n \t\t\treturn br.readLine();\n \t\t} catch (Exception e) { }\n \t\t\n \t\treturn OprofileProperties.getString(\"unknown-kernel\"); //$NON-NLS-1$\n \t}", "title": "" }, { "docid": "34a6212d4040d7038435e6da0ac75223", "score": "0.42647326", "text": "public int getMIBenum() {\n return MIBenum;\n }", "title": "" }, { "docid": "f90b51231e1d4e2e618b8f4bc36ba405", "score": "0.42628163", "text": "public String getOsInfo()\n {\n return OS_INFO;\n }", "title": "" }, { "docid": "4181251432c4db877f4c27765b62ca76", "score": "0.4248805", "text": "private static int getFramework()\n\t{\n\t\tif (framework != UNKNOWN_FRAMEWORK)\n\t\t\treturn framework;\n\t\tString frameworkString = System.getProperty(\"framework\");\n\t\tif (frameworkString == null || \n\t\t frameworkString.toUpperCase(Locale.ENGLISH).equals(\"EMBEDDED\"))\n\t\t\tframework = EMBEDDED_FRAMEWORK;\n\t\telse if (frameworkString.toUpperCase(Locale.ENGLISH).equals(\"DERBYNETCLIENT\"))\n\t\t\tframework = DERBY_NET_CLIENT_FRAMEWORK;\n\t\telse if (frameworkString.toUpperCase(Locale.ENGLISH).equals(\"DERBYNET\"))\n\t\t\tframework = DERBY_NET_FRAMEWORK;\n\t\telse if (frameworkString.toUpperCase(Locale.ENGLISH).indexOf(\"DB2JNET\") != -1)\n\t\t\tframework = OLD_NET_FRAMEWORK;\n\n\t\treturn framework;\n\n\t}", "title": "" }, { "docid": "9e392d43e4142ba72dcf31dc61c7d77d", "score": "0.42487013", "text": "public String getImageFormat() {\n\t\treturn imageFormat;\n\t}", "title": "" }, { "docid": "cc92827381d1cc6be1e4bea2977bbe8a", "score": "0.42439035", "text": "public static String getPlatform() {\r\n\t\treturn properties.get(KEY_PLATFORM);\r\n\t}", "title": "" }, { "docid": "a6d3121e5c32ca7ef35c0208f8f974f1", "score": "0.42423832", "text": "public int getImageType();", "title": "" }, { "docid": "ef365dd4009522c96e64fe7c0a105011", "score": "0.42386064", "text": "public String getOs() {\n return this.os;\n }", "title": "" }, { "docid": "bb6a25d76d555c7d573b49b03edb8a53", "score": "0.42367762", "text": "public String getICode();", "title": "" }, { "docid": "1b2ed9d830d62298c864651207bc34eb", "score": "0.42354357", "text": "public static OS getOperatingSystem() {\n\t\tOS result = null;\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\n\n\t\tif (os.contains(\"win\"))\n\t\t\tresult = OS.WINDOWS;\n\t\telse if (os.contains(\"mac\"))\n\t\t\tresult = OS.MAC;\n\t\telse if (os.contains(\"nix\") || os.contains(\"nux\") || os.contains(\"aix\"))\n\t\t\tresult = OS.LINUX;\n\t\telse\n\t\t\tresult = OS.OTHER;\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "4f1b88cf1cde6a621cb32401ee33c375", "score": "0.42354062", "text": "private static String getOS() {\n return System.getProperty(\"os.name\");\n }", "title": "" }, { "docid": "1efe46b6ea3085a107b81e177ed4c397", "score": "0.42350167", "text": "@Override\n\tpublic DockerImageName apply(DockerImageName dockerImageName) {\n\t\tvar isNeo4jRepo = dockerImageName.getRepository().startsWith(\"neo4j\");\n\t\tvar versionPart = dockerImageName.getVersionPart();\n\t\tif (!isNeo4jRepo || OFFICIALLY_SUPPORTED_ON_ARM.stream().anyMatch(versionPart::startsWith)) {\n\t\t\treturn dockerImageName;\n\t\t}\n\t\tif (versionPart.startsWith(\"LATEST\")) {\n\t\t\treturn DockerImageName.parse(dockerImageName.getRepository() + \":\" + versionPart.replace(\"LATEST\", \"5\"));\n\t\t}\n\n\t\tString dockerArchitecture = DockerClientFactory.instance().getInfo().getArchitecture();\n\t\tif (\"aarch64\".equals(dockerArchitecture)) {\n\t\t\tvar version = dockerImageName.getVersionPart();\n\t\t\tif (version.equals(\"4.0\")) {\n\t\t\t\tversion = \"4.0.12\";\n\t\t\t}\n\t\t\treturn DockerImageName.parse(\"neo4j/neo4j-arm64-experimental:\" + version + \"-arm64\");\n\t\t}\n\t\treturn dockerImageName;\n\t}", "title": "" }, { "docid": "e4b331c57a761bdcc34333afb5e9f918", "score": "0.4211624", "text": "public ImagingMirror getImagingMirror() {\n return _imagingMirror;\n }", "title": "" }, { "docid": "71a06881bc484969c0fe78b2c0829626", "score": "0.42093927", "text": "private int m45484b() {\n String str;\n if (f31598e == -1 && (str = Build.MANUFACTURER) != null && str.length() > 0) {\n if (str.toLowerCase().equals(\"huawei\")) {\n try {\n Class.forName(\"com.huawei.hms.aaid.HmsInstanceId\");\n f31598e = 4;\n } catch (Throwable unused) {\n f31598e = 0;\n }\n } else {\n f31598e = 0;\n }\n }\n return f31598e;\n }", "title": "" }, { "docid": "589181b7d554e40d9d97cf28c1126780", "score": "0.42077994", "text": "public static String createMiiImageAndVerify(String miiImageNameBase,\n List<String> wdtModelList,\n List<String> appSrcDirList,\n String baseImageName,\n String baseImageTag,\n String domainType,\n boolean oneArchiveContainsMultiApps) {\n\n return createImageAndVerify(\n miiImageNameBase, wdtModelList, appSrcDirList, null, baseImageName,\n baseImageTag, domainType, true, null, oneArchiveContainsMultiApps);\n }", "title": "" }, { "docid": "a7038f254d42ac836147224f06f30536", "score": "0.4203069", "text": "Set<String> getSupportedHardwareFromArchive() throws IOException;", "title": "" }, { "docid": "cbdb850e57b105f7825e24077f5e2f0f", "score": "0.41934508", "text": "public String getInputType() {\n\t\treturn \"image/bmp\";\n\t}", "title": "" }, { "docid": "cc96b771ce1931fb256c51f81e734f5a", "score": "0.4193063", "text": "@Nonnull\n\tGenericAttributeValue<String> getPlatform();", "title": "" }, { "docid": "defc4743d744dbb751329f1215501a7e", "score": "0.41860214", "text": "public OperatingSystemTypes supportedOSType() {\n return this.innerProperties() == null ? null : this.innerProperties().supportedOSType();\n }", "title": "" }, { "docid": "636383d7c2b6b8f0d10c098b396194dd", "score": "0.41822502", "text": "public MobileNetworkResourceId mobileNetwork() {\n return this.innerProperties() == null ? null : this.innerProperties().mobileNetwork();\n }", "title": "" }, { "docid": "12638c4391fb09654da2c05aa823fd7e", "score": "0.417899", "text": "public String getModel()\r\n {\r\n return getProperty(\"microedition.platform\");\r\n }", "title": "" }, { "docid": "7672d8f2893e6e57d1f1ff2fd8a51013", "score": "0.41783434", "text": "public static String getOSName() {\n\n\t\treturn System.getProperty(\"os.name\");\n\n\t}", "title": "" }, { "docid": "4702c9acfb92e5249f277f7a745c33e7", "score": "0.4176931", "text": "String getMachineImageWithIMachineImage_software_amazon_awscdk_services_ec2_IMachineImage_AsReference();", "title": "" }, { "docid": "9ad724a597c9b6fbfc1d69b2429ec713", "score": "0.4173357", "text": "public StackPreferredOs preferredOs() {\n return this.innerProperties() == null ? null : this.innerProperties().preferredOs();\n }", "title": "" }, { "docid": "ed22e3d02e5c669c1b4450cb8b266dee", "score": "0.41731185", "text": "public static String findNetworkAPN(){\r\n\t\t\r\n\t\tString t_carrierName = RadioInfo.getCurrentNetworkName();\r\n\t\t\r\n\t\tString t_apn = null;\r\n\t\tif(t_carrierName.equals(\"中国移动\") || t_carrierName.toLowerCase().equals(\"china mobile\")){\r\n\t\t\tt_apn = \"cmwap\";\r\n\t\t}else if(t_carrierName.equals(\"中国联通\") || t_carrierName.toLowerCase().equals(\"china unicom\")){\r\n\t\t\tt_apn = \"uniwap\";\r\n\t\t}else if(t_carrierName.equals(\"中国电信\") || t_carrierName.toLowerCase().equals(\"china telecom\")){\r\n\t\t\tt_apn = \"ctwap\";\r\n\t\t}\r\n\t\t\r\n\t\treturn t_apn;\r\n\t}", "title": "" } ]
6e11fc78369ad11dc22472633e581e30
Hurt Mobs around it
[ { "docid": "8c3ee9c9ead7d81abfc0438ec5e4ca83", "score": "0.0", "text": "private void explode()\r\n\t{\n\t\tint radius2 = (int) (160F / 4);\r\n\r\n\t\tBlockPos pos1 = new BlockPos(this.posX - radius2, this.posY - radius2, this.posZ - radius2);\r\n\t\tBlockPos pos2 = new BlockPos(this.posX + radius2, this.posY + radius2, this.posZ + radius2);\r\n\r\n\t\tAxisAlignedBB bb = new AxisAlignedBB(pos1, pos2);\r\n\t\tList<LivingEntity> list = world.getEntitiesWithinAABB(LivingEntity.class, bb);\r\n\r\n\r\n\t\t//Create Explosion\r\n\t\tExplosion explosion = world.createExplosion(this.tntPlacedBy, this.posX, this.posY, this.posZ, 160F, true, Explosion.Mode.BREAK);\r\n\t\tworld.createExplosion(this.tntPlacedBy, this.posX + 10, this.posY, this.posZ, 40F, true, Explosion.Mode.BREAK);\r\n\t\tworld.createExplosion(this.tntPlacedBy, this.posX - 10, this.posY, this.posZ, 40F, true, Explosion.Mode.BREAK);\r\n\t\tworld.createExplosion(this.tntPlacedBy, this.posX, this.posY, this.posZ + 10, 40F, true, Explosion.Mode.BREAK);\r\n\t\tworld.createExplosion(this.tntPlacedBy, this.posX, this.posY, this.posZ - 10, 40F, true, Explosion.Mode.BREAK);\r\n\r\n\t\tfor(LivingEntity element : list)\r\n\t\t{\r\n\t\t\tfloat distance = this.getDistance(element);\r\n\r\n\t\t\telement.attackEntityFrom(DamageSource.causeExplosionDamage(explosion), 160F - (distance * 4));\r\n\t\t}\t\r\n\t}", "title": "" } ]
[ { "docid": "0bfd5584a184d1af4999b84ddeb71bb0", "score": "0.6749732", "text": "@Override@Model\n\tprotected void hurt(GameObject other){\n\t\tif(other instanceof Mazub && !((Mazub) other).isImmune() &&\n\t\t\t\t!((Mazub) other).standsOn(this)){\n\t\t\t((Mazub) other).getImmuneTimer().reset();\n\t\t\tother.subtractHp(50);\n\t\t\tif (other.isDead())\n\t\t\t\tother.getHpTimer().reset();\n\t\t}\t\n\t\telse if(other instanceof Shark && !((Shark) other).isImmune()){\n\t\t\tother.subtractHp(50);\n\t\t\t((Shark)other).getImmuneTimer().reset();\n\t\t\tif (other.isDead())\n\t\t\t\tother.getHpTimer().reset();\n\t\t}\n\t\telse if(!(other instanceof Slime))\n\t\t\tother.getHurtBy(this);\n\t}", "title": "" }, { "docid": "022503e72b9892434077e4f825901ce6", "score": "0.6508694", "text": "public void hurt(int hitPoints)\r\n\t{\r\n\t\t_health -= hitPoints;\r\n\t\t_health = Math.max(_health, 0);\r\n\t}", "title": "" }, { "docid": "68322302f7a9ce723a3b499f11dc8eba", "score": "0.63670594", "text": "public void performHurtAnimation() {\n\t}", "title": "" }, { "docid": "85d5596fa55a83443f7bbe595e9efc62", "score": "0.6313983", "text": "@Override\n\tpublic void hurt(int damage,int deltaX,int deltaY) {\n\t\t\n\t\thealth-=damage;\n\t\tstunned = false;\n\t\tif (health<=0) {\n\t\t\tdie();\n\t\t}\n\t\t//knockback\n\t\tdamageFlicker=60;\n\t\tif (deltaX<0) {\n\t\t\txMove=(speed*4);\n\t\t}else {\n\t\t\txMove=-(4*speed);\n\t\t}\n\t\tif(deltaY<0) {\n\t\t\tyMove=(speed*4);\n\t\t}else {\n\t\t\tyMove=-(4*speed);\n\t\t}\n\t\tstunned=true;\n\t\tstunnedDuration=2;\n\t}", "title": "" }, { "docid": "09aa92e73a6fc9c9590e9ee80757f768", "score": "0.6271804", "text": "@Override\r\n\tpublic void hurt(int damage) {\n\t\t\r\n\t}", "title": "" }, { "docid": "51f58e905e7704dcf6294f2e19537b3c", "score": "0.61984694", "text": "public int hurt(Box area, Actor instigator, Actor.Damage type, double amount, Vector location);", "title": "" }, { "docid": "76c5368b6675637684538cd65ec4016b", "score": "0.6187565", "text": "public void hurt(int damage){\n pv -= damage;\n }", "title": "" }, { "docid": "54d79b62d8b78872683662cee550aab9", "score": "0.6138965", "text": "@Override\n public void hurt(int amt) {\n if(!MultiplayerGameState.getEntityHashMap().containsValue(this)) { //Tests if the RemotePlayer is still valid in the World\n return; //If not, return and do nothing.\n }\n super.hurt(amt);\n }", "title": "" }, { "docid": "34f51f1d8b345562395ea681e81d755b", "score": "0.609821", "text": "public static void onLivingHurt(final LivingHurtEvent evt)\r\n {\r\n final IHasPokemobs pokemobHolder = TrainerCaps.getHasPokemobs(evt.getEntity());\r\n final IHasMessages messages = TrainerCaps.getMessages(evt.getEntity());\r\n\r\n if (evt.getEntity() instanceof Npc && !Config.instance.pokemobsHarmNPCs\r\n && (evt.getSource() instanceof PokemobDamageSource || evt.getSource() instanceof TerrainDamageSource))\r\n evt.setAmount(0);\r\n\r\n if (evt.getSource().getEntity() instanceof LivingEntity mob)\r\n {\r\n if (messages != null)\r\n {\r\n messages.sendMessage(MessageState.HURT, mob, evt.getEntity().getDisplayName(),\r\n evt.getSource().getEntity().getDisplayName());\r\n messages.doAction(MessageState.HURT, new ActionContext(mob, evt.getEntityLiving(), evt.getSource()));\r\n }\r\n if (pokemobHolder != null && pokemobHolder.getTarget() == null) pokemobHolder.onSetTarget(mob);\r\n }\r\n }", "title": "" }, { "docid": "5a216e58ee7471786393f500ceb599b3", "score": "0.6084363", "text": "private void isolate(){\n if (Math.random() < 0.2){\n this.damage = 0;\n }\n }", "title": "" }, { "docid": "db5a8ea536ed0e6ef995ce20cbaa41f7", "score": "0.60709625", "text": "public void performHurtAnimation()\n {\n }", "title": "" }, { "docid": "4af8ddc93f0865b22ae5cd30d711407b", "score": "0.6052109", "text": "@Override\n\tpublic void update() {\n\t\tList<Entity> list = world.getEntitiesWithinAABB(Entity.class, new AxisAlignedBB(\n getPos().add(-1, 0, -1), getPos().add(2, Config.shulkerRoseTime, 2)));\n\t\tfor (Entity entity : list) {\n\t\t\t// If a player is sneaking, don't shoot them up.\n\t\t\tif (entity instanceof EntityPlayer && ((EntityPlayer)entity).isSneaking()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// TODO: add a velocity cap\n\t\t\t// random velocity is so entities won't get stuck bouncing up and down on top of the shulker field.\n\t\t\tentity.addVelocity(random.nextDouble() * 0.01, 0.12, random.nextDouble() * 0.01);\n\t\t}\n\t}", "title": "" }, { "docid": "14e6644ae7507dd3b416d0b073a85dc9", "score": "0.6035871", "text": "@Override@Model\n\tprotected void updateHitPoints(){\n\t\tMazub alien = getWorld().getMazub();\n\t\tboolean isHurt = false;\n\t\tboolean isDamaged = false;\n\t\tif(!isDead()){\n\t\t\tif (!isOverlappingWith(Terrain.WATER) && !isOverlappingWith(Terrain.MAGMA))\n\t\t\t\tgetHpTimer().reset();\n\t\t\tint oldHitPoints = getHitPoints();\n\t\t\tif(isOverlappingWith(Terrain.WATER)){\n\t\t\t\tupdateHitPointsTerrain(Terrain.WATER);\n\t\t\t}\n\t\t\tif(isOverlappingWith(Terrain.MAGMA)){\n\t\t\t\tupdateHitPointsTerrain(Terrain.MAGMA);\n\t\t\t}\t\t\n\t\t\tif(getHitPoints()<oldHitPoints)\n\t\t\t\tisDamaged = true;\n\t\t\tif (!isDead() && alien != null && !alien.isImmune() && isOverlappingWith(alien)){\n\t\t\t\tif (!alien.standsOn(this)){\n\t\t\t\t\talien.getHurtBy(this);\n\t\t\t\t}\n\t\t\t\tif(!isImmune()){\n\t\t\t\t\tgetHurtBy(alien);\n\t\t\t\t\tisHurt = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Shark shark: getWorld().getAllSharks()){\n\t\t\t\tif(!isDead() && isOverlappingWith(shark)){\n\t\t\t\t\tif(!isImmune()){\n\t\t\t\t\t\tgetHurtBy(shark);\n\t\t\t\t\t\tisHurt = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(!shark.isImmune())\n\t\t\t\t\t\tshark.getHurtBy(this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(isHurt || isDamaged)\n\t\t\tgetSchool().reduceHpAll(this);\n\t\tif(isHurt)\n\t\t\tgetImmuneTimer().reset();\n\t\tif (isHurt && isDead())\n\t\t\tgetHpTimer().reset();\n\t\telse if (isDead() && getHpTimer().getTimeSum()>= 0.6){\n\t\t\tterminate();\n\t\t}\n\t}", "title": "" }, { "docid": "7ac9bd0be099c9f3960197625b0fa52d", "score": "0.60325736", "text": "public void hurt(int damage) { \n health -= damage; \n }", "title": "" }, { "docid": "6a88fa611054e41ae97e0cf13cd10405", "score": "0.60278296", "text": "@Override \n\t\tpublic void callback(FlxObject Bullet, FlxObject Skeleton)\n\t\t{\n\t\t\tskeleton.hurt(1);\n\t\t}", "title": "" }, { "docid": "5878562a08f530f538f5d73cd1bb0228", "score": "0.5982225", "text": "@Override@Model\n\tprotected void getHurtBy(GameObject other){\n\t\tif(!isImmune()){\n\t\t\tif(other instanceof Mazub)\n\t\t\t\tsubtractHp(50);\n\t\t\telse if(other instanceof Shark)\n\t\t\t\tsubtractHp(50);\n\t\t\telse if(!(other instanceof Slime))\n\t\t\t\tother.hurt(this);\n\t\t}\n\t}", "title": "" }, { "docid": "b599c6e9e8ddf6c6fd86e7ceeb4dd702", "score": "0.5944", "text": "public void odoberHP() {\n \n int pocetHP = this.lodicka.getHP() - 1; \n this.hpBar.get(pocetHP).skry();\n this.hpBar.remove(pocetHP);\n this.lodicka.setHP(this.lodicka.getHP() - 1);\n }", "title": "" }, { "docid": "ea6e069626928ee3ca67d506b8feae4e", "score": "0.5942171", "text": "public void beAtk(Hero h) {\n\t\tthis.hp-=h.getAtk();\n\t\tSystem.out.println(\"怪物生命值减少\"+h.getAtk()+\"变为\"+hp);\n\t}", "title": "" }, { "docid": "45f49e15eb1b87e8d0654edd385c312c", "score": "0.59399986", "text": "public void hurt(int i) {\n energy -= i;\n if (energy <= 0) {\n die();\n }\n }", "title": "" }, { "docid": "934a8d5e8dc89e9c9a1086c3b1bebd8b", "score": "0.586618", "text": "public void takeDamage(int h)\r\n {\r\n hp-=h;\r\n }", "title": "" }, { "docid": "6e935db8e8d3bc5c4503fc510fe52b7e", "score": "0.5837529", "text": "void unsetHazenWilliams();", "title": "" }, { "docid": "5e4d80d08310ae86cdbe16238928c234", "score": "0.58259887", "text": "public void eatSandBonus() {\n\t\tthis.setSheared(false);\n\t\tif (this.isBaby()) {\n\t\t\tthis.ageUp(60);\n\t\t}\n\t}", "title": "" }, { "docid": "7b6171b72ecf1ce50a2789b62aba68c6", "score": "0.5819754", "text": "private void updateHammers() {\n for (AGSprite hammer : hammerVector) {\n if (hammer.bRecycled)\n continue;\n\n hammer.vrPosition.fY += 10;\n hammer.fAngle += 15;\n\n if (hammer.vrPosition.fY > AGScreenManager.iScreenHeight - topBar.getSpriteHeight() + hammer.getSpriteHeight() / 2) {\n hammer.bRecycled = true;\n hammer.bVisible = false;\n }\n }\n }", "title": "" }, { "docid": "a4bb4505cbf41f341f72de5efd5d343c", "score": "0.5798542", "text": "public void meditate(){\n int halfHealth = health / 2;\n System.out.println(\"Meditating increased your health by \"+ halfHealth);\n health += halfHealth;\n }", "title": "" }, { "docid": "185b5f21d326452cd85f118cd0ed698f", "score": "0.57950073", "text": "public void throttle(double throttle) {\n shooterMotor.set(-throttle);\r\n }", "title": "" }, { "docid": "dfad957b1b7de8666916e77961135aac", "score": "0.5788918", "text": "@Override\n\tpublic void move() {\n\t\tif(this.hitted) {\n\t\t\tdestroy();\n//\t\t\tSystem.out.println(\"Hit and destroy\");\n\t\t}\n\t\telse {\n\t\t\ty += GameManager.GRID_SIZE;\n\t\t\tif(y+radius >= GameStage.LOSE_LINE) destroy(); \n\t\t\tcanvas.setTranslateY(y-radius);\n//\t\t\tSystem.out.println(\"pwr move\");\n\t\t}\n\t}", "title": "" }, { "docid": "66c557c622c01e4d94edfa7d588daf62", "score": "0.5757649", "text": "public void ShootLow(){\n \tshooter.set(.85);\n \tshooterTrigger.set(-1);\n }", "title": "" }, { "docid": "980c7fccb035059438453c9325049653", "score": "0.5754037", "text": "public void hurt(int damage) {\r\n\t\tlifeBar.decreaseLife(damage);\r\n\t}", "title": "" }, { "docid": "05e7fc2918984fd19d84afb42c2f5be1", "score": "0.5724263", "text": "public void raisehp(){\n\t\thpMax +=2;\n\t\tif(hpMax >20){\n\t\t\thpMax = 20;\n\t\t}\n\t}", "title": "" }, { "docid": "07622630c0fb0f3cfd0a77b66139afa8", "score": "0.5696105", "text": "private void homingAttack(){\n //Fire every 0.5 seonds\n if(GameClock.timeInSEC() - lastHoming > 1 && homingCount < maxHoming){\n homingMissiles[homingCount] = createHoming();\n GameEngine.add(homingMissiles[homingCount]);\n homingCount++;\n lastHoming = GameClock.timeInSEC();\n }\n for(int i = 0; i<homingCount; i++){\n Vector2f missilePos = homingMissiles[i].getPosition();\n Vector2f playerPos = GameUtils.playerPosition();\n Vector2f shootDirection = Entity.normaliseVector(Vector2f.sub(playerPos, missilePos));\n homingMissiles[i].setMaxVelocity(0.000000000001f);\n homingMissiles[i].setMaxVelocity(0.001f);\n homingMissiles[i].addForce(Entity.normaliseVector(shootDirection), 100f);\n }\n }", "title": "" }, { "docid": "8abd2c76129447b4cca2e7ddb6bc801d", "score": "0.5693244", "text": "public void doHobbitsMove(){\n\t aMEWorld.aHobbitMove();\n\t}", "title": "" }, { "docid": "6b32882e4b0541f3e028e754782db6f0", "score": "0.5656869", "text": "public synchronized void horseOutOfPaddock(){\n horsesOnPaddock -= 1;\n }", "title": "" }, { "docid": "a758f5927b60d01826f720c2be549a08", "score": "0.56463337", "text": "public void repairWith(Hammer hammer){\n if(hammer instanceof Hammer && damage > 0 && damage < 100){\n\n temperature = ((damage - 50) * 40) + 2000;\n\n if(damage > 50){\n damage -= 50;\n updateAnimation();\n }else{\n damage = 0;\n updateAnimation();\n }\n\n hammer.use();\n }\n }", "title": "" }, { "docid": "8f6976ae49b74ce4ee52c49412f9ed51", "score": "0.56449485", "text": "public void heal() {\n if (health == maxHealth - 1) {\n health = maxHealth;\n } else {\n health += 2;\n }\n healable = false;\n movable = false;\n //This should also trigger some sort of animation to show that the piece has healed.\n }", "title": "" }, { "docid": "9cb38e88d1f8410dba6ac07d5c94f6c1", "score": "0.5633136", "text": "@SubscribeEvent(priority = EventPriority.LOW)\n static void livingHurt(LivingHurtEvent event) {\n LivingEntity entity = event.getEntityLiving();\n\n // determine if there is any modifiable armor, if not nothing to do\n // TODO: shields should support this hook too, probably with a separate tag so holding armor does not count as a shield\n DamageSource source = event.getSource();\n EquipmentContext context = new EquipmentContext(entity);\n int vanillaModifier = 0;\n float modifierValue = 0;\n float originalDamage = event.getAmount();\n\n // for our own armor, we have boosts from modifiers to consider\n if (context.hasModifiableArmor()) {\n // first, fetch vanilla enchant level, assuming its not bypassed in vanilla\n if (!source.isBypassMagic()) {\n modifierValue = vanillaModifier = EnchantmentHelper.getDamageProtection(entity.getArmorSlots(), source);\n }\n\n // next, determine how much tinkers armor wants to change it\n // note that armor modifiers can choose to block \"absolute damage\" if they wish, currently just starving damage I think\n for (EquipmentSlot slotType : ModifiableArmorMaterial.ARMOR_SLOTS) {\n IToolStackView tool = context.getToolInSlot(slotType);\n if (tool != null && !tool.isBroken()) {\n for (ModifierEntry entry : tool.getModifierList()) {\n modifierValue = entry.getModifier().getProtectionModifier(tool, entry.getLevel(), context, slotType, source, modifierValue);\n }\n }\n }\n\n // give slimes a 4x armor boost\n if (entity.getType().is(TinkerTags.EntityTypes.SMALL_ARMOR)) {\n modifierValue *= 4;\n }\n } else if (!source.isBypassMagic() && entity.getType().is(TinkerTags.EntityTypes.SMALL_ARMOR)) {\n vanillaModifier = EnchantmentHelper.getDamageProtection(entity.getArmorSlots(), source);\n modifierValue = vanillaModifier * 4;\n }\n\n // TODO: consider hook for modifiers to change damage directly\n // if we changed anything, run our logic\n if (vanillaModifier != modifierValue) {\n // fetch armor and toughness if blockable, passing in 0 to the logic will skip the armor calculations\n float armor = 0, toughness = 0;\n if (!source.isBypassArmor()) {\n armor = entity.getArmorValue();\n toughness = (float)entity.getAttributeValue(Attributes.ARMOR_TOUGHNESS);\n }\n\n // set the final dealt damage\n float finalDamage = ArmorUtil.getDamageForEvent(originalDamage, armor, toughness, vanillaModifier, modifierValue);\n event.setAmount(finalDamage);\n\n // armor is damaged less as a result of our math, so damage the armor based on the difference if there is one\n if (!source.isBypassArmor()) {\n int damageMissed = getArmorDamage(originalDamage) - getArmorDamage(finalDamage);\n // TODO: is this check sufficient for whether the armor should be damaged? I partly wonder if I need to use reflection to call damageArmor\n if (damageMissed > 0 && entity instanceof Player) {\n for (EquipmentSlot slotType : ModifiableArmorMaterial.ARMOR_SLOTS) {\n // for our own armor, saves effort to damage directly with our utility\n IToolStackView tool = context.getToolInSlot(slotType);\n if (tool != null && (!source.isFire() || !tool.getItem().isFireResistant())) {\n ToolDamageUtil.damageAnimated(tool, damageMissed, entity, slotType);\n } else {\n // if not our armor, damage using vanilla like logic\n ItemStack armorStack = entity.getItemBySlot(slotType);\n if (!armorStack.isEmpty() && (!source.isFire() || !armorStack.getItem().isFireResistant()) && armorStack.getItem() instanceof ArmorItem) {\n armorStack.hurtAndBreak(damageMissed, entity, e -> e.broadcastBreakEvent(slotType));\n }\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "f451b2e58d051a9536f8b8c398dfed3c", "score": "0.5627441", "text": "public void act() \n {\n IncreaseSP();\n if (BeingHit && (SpecialAttack == 0 || SpecialAttack % 2 != 0))\n {\n if (Guarding && (TurnedRight != (((Kenshin) getWorld().getObjects(Kenshin.class).get(0)).GetTurnedRight())))\n {\n BeingHit = false;\n setLocation(getX() + DODGE_MOVE_SPEED[HurtDir], getY());\n return;\n }\n DecreaseHP(SIMPLE_DAMAGE);\n Hurt = 1;\n BeingHit = false;\n act();\n return;\n }\n BeingHit = false;\n if (Hurt != 0)\n {\n if (Hurt == 5)\n {\n Hurt = 0;\n //BeingHit = false;\n return;\n }\n setLocation(getX() + HURT_MOVE_SPEED[HurtDir], getY());\n if (Hurt++ == 1)\n setImage(shishio_hurt[TurnedRight][Greenfoot.getRandomNumber(3)]);\n return;\n }\n if (BeingHitSpecial)\n {\n switch (BeingHitSpecialNum)\n {\n case 2: DecreaseHP(SPECIAL1_DAMAGE); break;\n case 10: DecreaseHP(SOURYUSEN_DAMAGE); break;\n case 6: DecreaseHP(KUZURYUSEN_DAMAGE); break;\n case 8: DecreaseHP(SPECIAL2_DAMAGE); break;\n }\n SpecialAttack = 0;\n \n HurtSpecial = 1;\n BeingHitSpecial = false;\n ChangeFrame = ImageCounter = 0;\n act();\n return;\n }\n if (HurtSpecial != 0)\n {\n if (HurtSpecial > 3)\n {\n --HurtSpecial;\n return;\n }\n if (HurtSpecial == 3)\n {\n if (((MainPage) getWorld()).GameEnded)\n return;\n \n ChangeFrame = ImageCounter = 0;\n HurtSpecial = 2;\n act();\n return;\n }\n if (HurtSpecial == 2)\n {\n if (ImageCounter == 4)\n {\n HurtSpecial = ChangeFrame = ImageCounter = 0;\n return;\n }\n if (ChangeFrame++ % 10 == 0)\n setImage(shishio_standup[TurnedRight][ImageCounter++ % 4]);\n return;\n }\n \n if (ImageCounter == 4)\n {\n HurtSpecial = 43;\n //BeingHit = false;\n return;\n }\n setLocation(getX() + HURT_SPECIAL_MOVE_SPEED[HurtDir], Jumping ? (getY() + 2 > 300 ? 300 : getY() + 2) : getY());\n if (ChangeFrame++ % 10 == 0)\n setImage(shishio_fall[TurnedRight][ImageCounter++ % 4]);\n return;\n }\n if (SpecialAttack < -5)\n {\n if (ImageCounter == 8)\n setImage(shishio_flame_disappear[TurnedRight][0]);\n else\n setImage(shishio_specialattack1[TurnedRight][1]);\n ++SpecialAttack;\n return;\n }\n if (SpecialAttack < 0)\n {\n if (ImageCounter == 8)\n setImage(shishio_flame_disappear[TurnedRight][1]);\n else\n setImage(shishio_specialattack1[TurnedRight][0]);\n if (++SpecialAttack == 0 && ImageCounter == 7)\n {\n SpecialAttack = -10;\n ImageCounter = 0;\n }\n return;\n }\n \n if (Attacking && !Attacking_Aerial)\n {\n AttackNotAerial();\n return;\n }\n \n if (Guarding && !Greenfoot.isKeyDown(GUARD))\n {\n setImage(shishio_guard[TurnedRight][0]);\n Guarding = false;\n return;\n }\n if (Greenfoot.isKeyDown(GUARD) && SpecialAttack == 0 && !Jumping)\n {\n Guard();\n return;\n }\n if (!TimeToJump && Greenfoot.isKeyDown(JUMP) && SpecialAttack == 0)\n {\n if (JumpMomentum > -4)\n JumpMomentum -= 1;\n else\n TimeToJump = true;\n \n ImageCounter = ChangeFrame = 0;\n Jumping = true;\n setImage(shishio_jump[TurnedRight][0]);\n }\n else if (Jumping)\n {\n JumpJumpJump();\n return;\n }\n \n if (Greenfoot.isKeyDown(ATTACK) && SpecialAttack == 0)\n {\n Attacking = true;\n ChangeFrame = ImageCounter = 0;\n AttackType = Greenfoot.getRandomNumber(2);\n setImage(shishio_attack[TurnedRight][AttackType][0]);\n return;\n }\n if (Greenfoot.isKeyDown(ATTACK_UP) && SpecialAttack == 0)\n {\n Attacking = AttackingUpwards = true;\n ChangeFrame = ImageCounter = 0;\n setImage(shishio_attack_upwards[TurnedRight][0]);\n return;\n }\n \n \n if (SpecialAttack == 2 || (SpecialAttack < 2 && Greenfoot.isKeyDown(HOMURADAMA)))\n {\n Homuradama1(); \n return;\n }\n if (SpecialAttack == 4 || (Greenfoot.isKeyDown(KAGUZUCHI) && (SpecialAttack == 0 || SpecialAttack == 3)))\n {\n Kaguzuchi(); \n return;\n }\n if (SpecialAttack == 6 || (Greenfoot.isKeyDown(SPECIAL) && (SpecialAttack == 0 || SpecialAttack == 5)))\n {\n SpecialAttack1(); \n return;\n }\n if (SpecialAttack == 8 || SpecialAttack == 9 || (Greenfoot.isKeyDown(HOMURADAMA2) && (SpecialAttack == 0 || SpecialAttack == 7)))\n {\n Homuradama2(); \n return;\n }\n if (SpecialAttack > 0)\n {\n SpecialAttack = -10;\n return;\n }\n if(Greenfoot.isKeyDown(MOVE_RIGHT))\n {\n MoveRight();\n }\n else if(Greenfoot.isKeyDown(MOVE_LEFT))\n {\n MoveLeft();\n }\n else\n {\n Stance();\n }\n\n }", "title": "" }, { "docid": "0983d654f20a8e82ed75edf748592f90", "score": "0.56249815", "text": "private void deviate() {\n\t\tCoordinate c = this.getNearestTower();\n\t\tif (c == null)\n\t\t\treturn;\n\t\tif (deviationTick > 30) {\n\t\t\tNBTTagCompound data = new NBTTagCompound();\n\t\t\tthis.writeEntityToNBT(data);\n\t\t\tEntityEnderEyeT2 repl = EntityEnderEyeT2.create(worldObj, posX, posY, posZ, data);\n\t\t\trepl.moveTowards(c.xCoord, c.yCoord, c.zCoord);\n\t\t\trepl.deviateTime = -1;\n\t\t\tworldObj.spawnEntityInWorld(repl);\n\t\t\tthis.setDead();\n\t\t}\n\t\telse {\n\t\t\tdeviationTick++;\n\t\t\tdouble dx = c.xCoord-posX;\n\t\t\tdouble dz = c.zCoord-posZ;\n\t\t\tdouble d = ReikaMathLibrary.py3d(dx, 0, dz);\n\t\t\tdouble f = deviationTick/30D;\n\t\t\t//motionX += dx/d*f;\n\t\t\t//motionZ += dz/d*f;\n\t\t\tdouble tx = f*dx+(1-f)*(finalX-posX);\n\t\t\tdouble tz = f*dz+(1-f)*(finalZ-posZ);\n\t\t\tthis.setTarget(tx, targetY, tz);\n\t\t}\n\t}", "title": "" }, { "docid": "db8e3fe5c28832fe542081b53e6bfc9c", "score": "0.56155366", "text": "public void moveBias(Movement m) {\n\n }", "title": "" }, { "docid": "91df6cc3f4e157a8d3b34cfb37ab9d65", "score": "0.5604309", "text": "private void slamAttack() {\n if(inRange()) {\n GameUtils.getPlayer().health.dealDamage(host.getDamage());\n }\n\n inAttack = false;\n\n lastAction = GameClock.timeInSEC();\n\n host.playAnimation(1);\n host.setAnimationSpeedInSeconds(0.8f);\n }", "title": "" }, { "docid": "1ab0c36640ebf84d8ef4a1606490ed53", "score": "0.5586321", "text": "public void throwHammer() {\n Hammer hammer;\n try {\n hammer = new Hammer(new Vector2f(this.position.x + 10.0f, this.position.y + 24.0f));\n \n // calculate the velocity/direction for the hammer\n double theta = Math.toRadians(this.rotation);\n double xVel = Math.cos(theta) * 400.0f;\n double yVel = Math.sin(theta) * 400.0f; \n hammer.velocity = new Vector2f((float)xVel, (float)yVel);\n \n McHammerGame.getInstance().addHammer(hammer);\n } catch (SlickException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "388068f4698cc95e96f2fd6af1411920", "score": "0.5572278", "text": "public void unclimb() {\r\n\t\t\r\n\t\ttalon_winch_1.set(Constants.SPEEDS.SPEED_WINCH_UNCLIMB);\r\n\t\ttalon_winch_2.set(Constants.SPEEDS.SPEED_WINCH_UNCLIMB);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c11376ab9b9049a8f3d78867fe185b75", "score": "0.55652905", "text": "public void normalize() {\n\tdefense = 30;\n\tattackRating = 0.5;\n }", "title": "" }, { "docid": "916d8297395a84591db1a73daeca396c", "score": "0.5556922", "text": "@Override\n\tpublic void rewardKiller(BaseUnit unit) {\n\t\tunit.gainHeal(this.HP_MAX);\n\t}", "title": "" }, { "docid": "35eef32f0002475214ec22eddf6780af", "score": "0.55541295", "text": "public void ShootLowReverse(){\n \tshooterTrigger.set(1);\n \tshooter.set(-.85);\n }", "title": "" }, { "docid": "c66529e539129c298658e7f45ee58579", "score": "0.555385", "text": "@Override\n public void onUpdate(double tpf) {\n if (this.getEntity().getY() >= 900){\n this.getEntity().removeFromWorld();\n }\n }", "title": "" }, { "docid": "328d4a9148efa0029c8eed94846b14b0", "score": "0.55494374", "text": "@Override\n\tprotected String getHurtSound()\n {\n return TF2weapons.MOD_ID+\":mob.sniper.hurt\";\n }", "title": "" }, { "docid": "1bc7de5bd1640db63ca263d3ee4cb8db", "score": "0.5537796", "text": "public void attack(Hero h)\n {\n double rand = Math.random();\n if (rand >= 0.2)\n {\n h.setHP(h.getHP() - attackDmg);\n System.out.println(this.type+ \" has dealt \" + String.valueOf(attackDmg)+ \" to \" + h.getName() +\".\");\n } else\n {\n System.out.println (this.type+\"'s attack missed!\");\n }\n }", "title": "" }, { "docid": "9916b090115636dc4aefae19609e4615", "score": "0.55117345", "text": "public void healPlayer(){\r\n player.setHP(player.getMaxHP());\r\n }", "title": "" }, { "docid": "ebea800e0a3dd252a63454928c82f614", "score": "0.5501376", "text": "public void move() {\n this.energy -= 0.03;\n }", "title": "" }, { "docid": "a7669b2d109c57b77d0b1dbad914db92", "score": "0.5494847", "text": "public void climb() {\r\n\t\t\r\n\t\ttalon_winch_1.set(Constants.SPEEDS.SPEED_WINCH_CLIMB);\r\n\t\ttalon_winch_2.set(-Constants.SPEEDS.SPEED_WINCH_CLIMB);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "eb2cb1f7c55c12cd0555d658616e0c9c", "score": "0.54921407", "text": "private void ButcherSweep() {\n skillId = 21554;\n skillLevel = 65;\n }", "title": "" }, { "docid": "ad63644a43014a0c54f3f2db1ffc079f", "score": "0.54907024", "text": "public void act() {\nsuper.act();\ny-=BULLET_SPEED;\nif (y < 0)\nremove();\n}", "title": "" }, { "docid": "a133ae0c3a7855201f4f2ce20d75afab", "score": "0.5488474", "text": "private void implyMoments()\n\t{\n\t\t// TODO: Take rotationfriction into account somewhere?\n\t\tfor (Point p: this.moments.keySet())\n\t\t\trotateAroundRelativePoint(this.moments.get(p), p);\n\t}", "title": "" }, { "docid": "04292ce9b92e048225f15aa39a432318", "score": "0.5481827", "text": "public void normalize(){\n\n\t\tdefense = 40;\n\t\tattackRating = .4;\n }", "title": "" }, { "docid": "4cfab5daf096acf7f109fb6b6250dfc6", "score": "0.5458714", "text": "public void act() \n {\n spawnPowerUp();\n \n setLocation(getMoveSpeed(),getY());\n double bombProb = Math.random();\n if (bombProb<=0.01) {\n dropBomb();\n }\n \n //Disappears once it leaves the screen\n if (getX() == 0)\n getWorld().removeObject(this);\n }", "title": "" }, { "docid": "77522e045bbc649151ecb796b07fecff", "score": "0.5454894", "text": "public void health()\n {\n hPoints -= 1;\n nHits += 1;\n health.decHealth(nHits);\n street = (Street) getWorld();\n if(hPoints <= 0 && nHits >= 3)\n {\n spawnPower();\n street.addScore(100);\n Greenfoot.playSound(\"bExplosion.wav\");\n getWorld().removeObject(health);\n Explosion explode = new Explosion();\n street.spawnExplosion(explode,getX(),getY());\n getWorld().removeObject(this);\n }\n }", "title": "" }, { "docid": "c6845b1feef75186aeea321590c7d7ec", "score": "0.54542273", "text": "@Override\r\n\tpublic void move() {\r\n\t\tthis.setHeading(super.getHeading() + random.nextInt(5 - (-5)) - 5);\r\n\t\tsuper.move();\r\n\t}", "title": "" }, { "docid": "4e85dc6f46ada6160e0e9cb8ccc64ccd", "score": "0.54535556", "text": "public void shittyEat(){\n\n\t\thandler.getWorld().playerLocation[handler.getWorld().body.getLast().x][handler.getWorld().body.getLast().y] = false;\n\t\thandler.getWorld().appleLocation[xCoord][yCoord]=false;\n\t\thandler.getWorld().body.removeLast();\n\t\thandler.getWorld().appleOnBoard = false;\n\t}", "title": "" }, { "docid": "b25009a88dce87cd9e32c12afec074c2", "score": "0.5452998", "text": "public void reinforceSkin(){\n\t\thappiness += 2;\r\n\t\tfireResistance += 5;\r\n\t\tcheck();\r\n\t}", "title": "" }, { "docid": "c779829fe8774ccc53d973dedbe772d6", "score": "0.5445944", "text": "@Override \n\t\tpublic void callback(FlxObject Enemy, FlxObject Bullet)\n\t\t{\n\t\t\tEnemy.hurt(1);\n\t\t}", "title": "" }, { "docid": "345953d97aef8d67c8993bb8706aa2e3", "score": "0.5436028", "text": "@Override\r\n\tpublic void setUp() {\n\t\tItemStack m = new ItemStack(Material.BONE);\r\n\t\t\r\n\t\ti = caster.getWorld().dropItem(loc, m);\r\n\t\r\n\t\tplaySound(Sound.ENTITY_SKELETON_DEATH,loc,2,5);\r\n\t\t \r\n\t\t//ar.addPassenger(i);\r\n\t\tif (caster.isSneaking()) {\r\n\t\t\ti.setVelocity(caster.getLocation().getDirection().multiply(2));\r\n\t\t}\r\n\t\telse {\r\n\t\t\ti.setVelocity(caster.getLocation().getDirection().multiply(1));\r\n\t\t\tstep = 20;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ba52851db451c00e03c3bfb805a66c4e", "score": "0.5435311", "text": "public void removeInfluence(int howMuch){\n this.influencePoints -= howMuch;\n\n // prevent the explorer from going completely broke\n if(this.influencePoints <= 0) {\n this.influencePoints = 1;\n }\n }", "title": "" }, { "docid": "f5f6ce927dae1c5b8ff07573b2da13e0", "score": "0.542509", "text": "void setHazenWilliams(double hazenWilliams);", "title": "" }, { "docid": "6123a1f7a37856b61e7f1a312cc285a4", "score": "0.5420201", "text": "public void heal(int h)\r\n {\r\n hp+=h;\r\n }", "title": "" }, { "docid": "d9626715fa68342a54decfbfdb7d49fb", "score": "0.541878", "text": "public Hormone() {\n\t\t//growthFactor = Math.random()*0.1d+0.975d;\n\t\tduration = (int) (Math.random()*5d) + 1;\n\t}", "title": "" }, { "docid": "3a49a58c292b0d35c76e213ffe6ec1e1", "score": "0.5411941", "text": "@Override\n \tprotected String getHurtSound()\n {\n \tplaySound(\"Paleocraft:mob.dimorph.dimorphhurt\", getSoundVolume(), getSoundPitch());\n \treturn null;\n }", "title": "" }, { "docid": "847bef581eec1caef90f5e889cd550de", "score": "0.54081225", "text": "public void doHobbitsAttack(){\n\t\taMEWorld.aHobbitAttack();\n\t}", "title": "" }, { "docid": "b3a58eb68bd82f7d8b1cdd26c2c115d2", "score": "0.54073316", "text": "@Override\n public boolean hurt(final DamageSource source, final float damage)\n {\n if (this.isLoot || this.isReleasing() || !this.canBePickedUp) return false;\n if (source.getDirectEntity() instanceof ServerPlayer player\n && (this.tilt <= 0 || player.getAbilities().instabuild))\n {\n this.interact(player, InteractionHand.MAIN_HAND);\n return false;\n }\n if (source == DamageSource.OUT_OF_WORLD)\n {\n if (PokecubeManager.isFilled(this.getItem()))\n {\n final IPokemob mob = PokemobCaps.getPokemobFor(SendOutManager.sendOut(this, true));\n if (mob != null) mob.onRecall();\n }\n this.discard();\n }\n return false;\n }", "title": "" }, { "docid": "6fb23e3889d79132b1aeb9d8b19872a1", "score": "0.5404481", "text": "public void imposingDamage(int amount) {\r\n\t\thealthLevel += amount;\r\n\t\tif(healthLevel > maxDamage) {\r\n\t\t\thealthLevel = maxDamage;\r\n\t\t}\r\n\t\tsetSpeed(getSpeed());\r\n\t\tint color = ColorUtil.rgb(255, 0, 0);\r\n\t\tint red = ColorUtil.red(color)*(maxDamage - healthLevel)/maxDamage;\r\n\t\tint green = ColorUtil.green(color)*(maxDamage - healthLevel)/maxDamage;\r\n\t\tint blue = ColorUtil.blue(color)*(maxDamage - healthLevel)/maxDamage;\r\n\t\tsetColor(red, green, blue);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e2fbf4f4abc4cf2eee4dd06bc94f7bac", "score": "0.5398563", "text": "public void TakeOver(){\n controllerState.buttons.replace(Utils.Button.START,true);\n moveBadger(0.5,3000,0.5,2000,0.5,2000);\n// moveBadger(0.6,0.6,2000,0.5);\n //shootBalls(1.0,3000);\n controllerState.buttons.replace(Utils.Button.START,false);\n }", "title": "" }, { "docid": "620ff9a2a355b9d4efbf940f286f522d", "score": "0.5383603", "text": "public void simulate()\n\t{\n\t\tif(simulated) return;\n\t\tsimulated = true;\n\t\t\n\t\tmove();\n\t\tif(timeToBreed())\n\t\t{\n\t\tbreed();\n\t\tbreedCounter = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "eb1a5a6eb0aaf8a60fad1937f02dfac0", "score": "0.53820914", "text": "public static void reallyMilked(PlayerInteractEvent.EntityInteract event){\n Entity target = event.getTarget();\n String target_name = target.getName();\n\n EntityPlayer player = event.getEntityPlayer();\n //EnumHand hand = player.getActiveHand();\n // I had trouble with this, since it spits an error every time I use it\n\n ItemStack itemstack = player.getItemStackFromSlot(EntityEquipmentSlot.MAINHAND);\n // This works however, but it's ugly\n FluidStack fluidstack = new FluidStack(ModFluids.DIARIA.getFluid(),1);\n ItemStack bucket = FluidUtil.getFilledBucket(fluidstack);\n\n if (target_name.equals(\"Pig\")) {\n //Main.logger.info(\"Pig milked\");\n if (itemstack.getItem() == Items.BUCKET && !player.capabilities.isCreativeMode) {\n player.playSound(SoundEvents.ENTITY_COW_MILK, 1.0F, 1.0F);\n itemstack.shrink(1);\n if (itemstack.isEmpty()) {\n\n player.setItemStackToSlot(EntityEquipmentSlot.MAINHAND,bucket);\n\n } else if (!player.inventory.addItemStackToInventory(bucket)) {\n player.dropItem(bucket, false);\n }\n }\n }\n }", "title": "" }, { "docid": "e1531eabb17b2e09e2ffae5add217278", "score": "0.5377264", "text": "private void updateInfluencedState( final double timeOfSpike ) {\n\t\tdouble nextTime = _simulator.tN() + timeOfSpike;\n\t\tregenerateInteractions( _spikingNeuron ).stream().forEach( ( postSynInteraction ) -> {\n\t\t\tint neuron = postSynInteraction._postSynapticNeuron;\n\t\t\tif( neuron == _spikingNeuron ) {\n\t\t\t\t_POTENTIAL[ _spikingNeuron ] += postSynInteraction._postSynapticInteraction;\n\t\t\t\t_MAX[ _spikingNeuron ] = ProbSpike.max( _spikingNeuron, _POTENTIAL[ _spikingNeuron ] );\n\t\t\t} else {\n\t\t\t\tdouble elapsedTime = nextTime - _LAST_SPIKING_TIMES[ neuron ];\t// Computes the time elapsed since the last spike of the neuron (true or false spike).\n\t\t\t\t_LAST_SPIKING_TIMES[ neuron ] = nextTime;\t\t\t\t\t// Makes the current spike the last spike of the neuron.\n\t\t\t\tdouble variance = _SIG[ neuron ] * _SIG[ neuron ] * ( 1 - Math.exp( -2 * _LAMBDA[ neuron ] * elapsedTime ) / ( 2 * _LAMBDA[ neuron ] ) ); // The variance for the brownian motion.\n\t\t\t\tNormalGen ng = new NormalGen( _MRG, 0, variance );\n\t\t\t\t_POTENTIAL[ neuron ] = _A[ neuron ] + Math.exp( -_LAMBDA[ neuron ] * elapsedTime ) * ( _POTENTIAL[ neuron ] - _A[ neuron ] ) // The primitive of the b function. The reset is made here.\n\t\t\t\t\t\t\t + ng.nextDouble() // The random normal value generated for the brownian motion.\n\t\t\t\t\t\t\t + postSynInteraction._postSynapticInteraction;\t// The interaction between the spiking neuron and this neuron.\n\t\t\t\t_MAX[ neuron ] = ProbSpike.max( _spikingNeuron, _POTENTIAL[ neuron ] );\n\t\t\t}\n\t\t} );\n\t}", "title": "" }, { "docid": "5c6d5eb59583d34329ba7a93d47f54cd", "score": "0.53754896", "text": "protected String getHurtSound()\n {\n return \"mob.slime.\" + (this.getSlimeSize() > 1 ? \"big\" : \"small\");\n }", "title": "" }, { "docid": "eaeedf9dfe3e6673d9e6b8b18204677b", "score": "0.53713953", "text": "public static void moveSlightly() {\n\t\tPoint p = new Point(\n\t\t\t\t(int) (getPosition().getX() + (Math.random() * 50 > 25 ? 1 : -1)\n\t\t\t\t\t\t* (30 + Math.random() * 90)), (int) (getPosition()\n\t\t\t\t\t\t.getY() + (Math.random() * 50 > 25 ? 1 : -1)\n\t\t\t\t\t\t* (30 + Math.random() * 90)));\n\t\tif (p.getX() < 1 || p.getY() < 1 || p.getX() > 761 || p.getY() > 499) {\n\t\t\tmoveSlightly();\n\t\t\treturn;\n\t\t}\n\t\tmove(p);\n\t}", "title": "" }, { "docid": "de61336df92b0d76b0e87d74d0e255ff", "score": "0.5368775", "text": "private void mouth() {\r\n\t\tgraphics.setColor(Color.BLACK);\r\n\t\tgraphics.fillRect(this.point.x + this.size / 8, this.point.y + this.size * 5 / 8, this.size * 3 / 4,\r\n\t\t\t\tthis.size / 4);\r\n\t\tgraphics.setColor(Color.WHITE);\r\n\t\tgraphics.drawLine(this.point.x + this.size / 8, this.point.y + this.size * 3 / 4,\r\n\t\t\t\tthis.point.x + this.size * 7 / 8, this.point.y + this.size * 3 / 4);\r\n\t}", "title": "" }, { "docid": "188963a4ac0ec1f869dfef7fe28cafc1", "score": "0.5365136", "text": "private void moveAndUpdateEnemy1() {\n\t\t// Weiwen's comment: perhaps efficient coding can play a role in enemy's movement. \n\t\tfor(Enemy1 enemy : enemy1List){\n\t\t\tif(enemy.fullness == 0){\n\t\t\t\tenemy.fastPace++;\n\t\t\t\t//extra movement every 6 moves\n\t\t\t\tif(enemy.fastPace % 6 == 0 && enemy.enemy1state.equals(Enemy1.State.HUNTING)){\n\t\t\t\t\tenemy.moveEnemy1(mouseBrain.current);\n\t\t\t\t}\n\t\t\t\tif(enemy.fullness == 0){ // ??? why do you need to have this if condition?\n\t\t\t\t\tenemy.moveEnemy1(mouseBrain.current);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tLinkedList<Hex> enemyToHunterPath = shortestPathHunter.getPath(enemy.current);\n\t\t\t\t\n\t\t\t\t//turn hunting on with Gaussian probability\n\t\t\t\tif(Math.abs(gRand.nextValue()) >enemyToHunterPath.size()){\n\t\t\t\t\tenemy.enemy1state = Enemy1.State.HUNTING;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//turn hunting off with fixed probability (10%)\n\t\t\t\tif(enemy.enemy1state == Enemy1.State.HUNTING && Math.abs(rnd.nextInt(10)) < 1){\n\t\t\t\t\tenemy.enemy1state = Enemy1.State.WANDERING;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (enemy.fullness > 0){\n\t\t\t\tthis.decreaseHunger();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "7bb5bb7c2b58402a721b36429ba74ce2", "score": "0.53600496", "text": "public void hit() {\n if (hp > 0 && hp <= 3) {\n hp--;\n }\n }", "title": "" }, { "docid": "bd188278287464856ffdc0f55d02ac9a", "score": "0.5346609", "text": "@SubscribeEvent\n public void onDamage(LivingHurtEvent event) {\n EntityLivingBase victim = event.getEntityLiving();\n Affinity attackType = Affinity.resolve(event.getSource());\n if (attackType != null) {\n int bitmask = ((BitmaskAttribute.Instance)victim.getEntityAttribute(TKAttributes.AFF_BLOCK)).getModifiedBitmask();\n if ((bitmask & attackType.ordinal()) != 0) {\n // TODO block\n return;\n }\n Entity source = event.getSource().getEntity();\n if (source != null && source instanceof EntityLivingBase) {\n IAttributeInstance accAttr = ((EntityLivingBase)source).getEntityAttribute(TKAttributes.ACCURACY);\n if (accAttr != null && source.worldObj.rand.nextDouble() < accAttr.getAttributeValue()) {\n // TODO miss\n return;\n }\n }\n IAttributeInstance evadeAttr = victim.getEntityAttribute(TKAttributes.EVASION);\n if (evadeAttr != null && victim.worldObj.rand.nextDouble() > evadeAttr.getAttributeValue()) {\n // TODO miss\n return;\n }\n bitmask = ((BitmaskAttribute.Instance)victim.getEntityAttribute(TKAttributes.AFF_RESIST)).getModifiedBitmask();\n bitmask = ((BitmaskAttribute.Instance)victim.getEntityAttribute(TKAttributes.AFF_WEAK)).getModifiedBitmask();\n // TODO resist and weak\n }\n doDamage(event, victim, 1F);\n }", "title": "" }, { "docid": "4f6c9792be01c237674e7c1dced8f116", "score": "0.53417003", "text": "public void playermove()\n {\n MODescriptor targetobject = closestMO();\n\n if(!targetobject.type().equals(\"Reward\"))\n {\n if(targetobject.position().minus(position()).magSq() < 300*300)\n {\n turnAway(targetobject.position());\n thrust();\n }\n else\n {\n while(velocity().magSq() > 1 )\n slowdown();\n }\n }\n else\n {\n Vec velRelative = targetobject.velocity().minus(velocity());\n Vec distance = targetobject.position().minus(position());\n\n float perpFrac = distance.cross(velRelative) /\n distance.magnitude()/velRelative.magnitude();\n\n Vec perpendicular = velRelative.times(perpFrac);\n\n if (perpendicular.magSq() > (float)(1.5*1.5))\n turnToward(this.position().plus(velRelative));\n else\n turnToward(targetobject.position());\n\n thrust();\n }\n }", "title": "" }, { "docid": "5f8d01fcc9c3f97177b76056eb39d099", "score": "0.53404", "text": "public void applyDamage(int dmg) {\n if (hitPoints > dmg) {\n hitPoints -= dmg;\n } else {\n hitPoints = 0;\n }\n\n }", "title": "" }, { "docid": "4f1162b23073a732fd14f60da61d7990", "score": "0.53341943", "text": "public void lower(){\n\t\tchangeTarget(lifterTarget -= .01);\n\t}", "title": "" }, { "docid": "6668d94d792932b78cfec644a1d2f1cb", "score": "0.53235096", "text": "@Override\n\tpublic void swim() {\n\t\tSystem.out.println(\"Whale is swimming!\");\n\t}", "title": "" }, { "docid": "4ed5e98243c1eed9eed443a050ce81ec", "score": "0.531404", "text": "public void adjustHeading() {\n\t\t/**\n\t\t * determine the amount of deflection between -5 and 5 degrees\n\t\t */\n\t\tint deflection = rand.nextInt(Drone.STEER_MAX) - 5;\n\t\t/**\n\t\t * Use the parent class setHEading method to set the new heading\n\t\t */\n\t\tsuper.setHeading(super.getHeading() + deflection);\n\t}", "title": "" }, { "docid": "49f63d7b771ce058c8f65f827ca7ba63", "score": "0.5311008", "text": "public void tick() {\n\t\t\n\t\tx-=2;\n\t\tif(x<-100) {\n\t\t\tx=1300;\n\t\t\ty=random.nextInt(600);\n\t\t}\n\t\tanim.tick();\n\t}", "title": "" }, { "docid": "6e4359076019ee68fa7caa62325d4764", "score": "0.5309317", "text": "private void CleavingMassacre() {\n skillId = 21553;\n skillLevel = 65;\n }", "title": "" }, { "docid": "549172ab1c737683644aaceac08777d2", "score": "0.5306649", "text": "public void updateHunger()\r\n\t{\r\n\t\tif (_hunger > 0)\r\n\t\t{\r\n\t\t\t_hunger -= 1 / 60.0;\r\n\t\t}\r\n\t\t_hunger = Math.max(_hunger, 0);\r\n\t}", "title": "" }, { "docid": "8e7badaa341389374f16672951bbb296", "score": "0.5305304", "text": "@Override\n public void onLivingUpdate() {\n super.onLivingUpdate();\n if (this.riddenByEntity != null) {\n \tthis.riddenByEntity.attackEntityFrom(DamageSource.causeThornsDamage(this), 1.0F);\n \tthis.attackTime = 20;\n }\n }", "title": "" }, { "docid": "ce23c7a74cbf2fcc1230e5fcb3dddb63", "score": "0.5303751", "text": "public void useHammer() {;\r\n\t\tSound.HammerPowerUsed.setFramePosition(0);\r\n\t\tfindCollidingTile();\r\n\t\tcheckHammerCollision();\r\n\t}", "title": "" }, { "docid": "e5e72e9b9e7af141044b670aba28f95c", "score": "0.53000647", "text": "public void meleeAtk() {\n\n currHitZone = new Rectangle(player.spriteLocation[0] - 25 , player.spriteLocation[1] - 25 , player.spriteBounds[0] + 50 , player.spriteBounds[1] + 50);\n\n int enemiesHit = 0;\n\n for (Boss bau5 : bosses) {\n if (bau5 != null && currHitZone != null) {\n if (bau5.boundaries().intersects(currHitZone)) {\n if (enemiesHit >= 3) {\n currHitZone = null;\n break;\n } else {\n bau5.setLives(bau5.getLives() - 1);\n enemiesHit++;\n }\n }\n }\n }\n\n for (Bug b : enemies) {\n if (b != null && currHitZone != null) {\n if (b.boundaries().intersects(currHitZone)) {\n if (enemiesHit >= 3) {\n currHitZone = null;\n break;\n } else {\n b.setLives(b.getLives() - player.getDamage());\n enemiesHit++;\n }\n }\n }\n }\n\n for (Bug b : gfx.bossesMinions) {\n if (b != null && currHitZone != null) {\n if (b.boundaries().intersects(currHitZone)) {\n if (enemiesHit >= 3) {\n currHitZone = null;\n break;\n } else {\n gfx.bossesMinions.set(b.id , null); //One shot!\n enemiesHit++;\n }\n }\n }\n }\n\n }", "title": "" }, { "docid": "6e1abfc21f9605f363f8d42c8e42efec", "score": "0.52962637", "text": "public void eat()\n {\n sugarMaxSpeed = 0.75f;\n sugarNew = sugarMaxSpeed;\n }", "title": "" }, { "docid": "5259e234a228a1d7314e2174f0e58ff4", "score": "0.5295683", "text": "public void mover(){\n\n\t\tif(player == null){\n\t\t\tplayer = this.getHome().getPlayer();\n\t\t\tif(player == null){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t}\n\n\t\t//finds how for enemy is from player\n\t\tint xDif = this.getX() - player.getX();\n\t\tint yDif = this.getY() - player.getY();\n\n\t\tint yMove = 0;\n\t\tint xMove = 0;\n\n\t\t//finds direction of x and y\n\t\tint xSign =1;\n\t\tint ySign =1;\n\t\tif (xDif > 0) xSign =-1;\n\t\tif (yDif > 0) ySign =-1;\n\n\t\t//logic for how to move\n\t\tif(xDif == 0){ //player up or down from enemy\n\t\t\tyMove = speed * ySign;\n\t\t}\n\t\telse if (yDif == 0){//player left or right\n\t\t\txMove = speed * xSign;\n\t\t}\n\t\telse if (Math.abs(xDif) > Math.abs(yDif)){ //player more up or down then left or right\n\t\t\txMove = speed/2 * xSign;\n\t\t\tyMove = speed/3 * ySign;\n\t\t}\n\t\telse if (Math.abs(xDif) < Math.abs(yDif)){//more left/right then up/down\n\t\t\tyMove = speed/2 * ySign;\n\t\t\txMove = speed/3 * xSign;\n\t\t}\n\t\telse {//player perfect 45 degree angle\n\t\t\tyMove =speed/2 * ySign;\n\t\t\txMove =speed/2 * xSign;\n\t\t}\n\t\t//creates explosion on step\n\t\tif(count ==0 || count ==5 || count ==10 || count ==15 || count ==20 ||count ==25)\n\t\tattack = new BouncerExplosion(this,0,0);\n\n\t\t//apply acceleration\n\t\tsetVx(getVx()+xMove);\n\t\tsetVy(getVy()+yMove);\n\n\t\t//apply deceleration\n\t\tsetVx(getVx()/2);\n\t\tsetVy(getVy()/2);\n\n\t}", "title": "" }, { "docid": "536256c4e5ed581db2c5b4bafbf0066a", "score": "0.5292061", "text": "@Override\n public void makeAttack() {\n Zombie[] zombies = new Zombie[8];\n int i = 0;\n for (int dy = -1; dy < 2; dy++) {\n for (int dx = -1; dx < 2; dx++) {\n if (dx == dy && dx == 0) continue;\n Tuple pos = new Tuple(position.x + dx, position.y + dy);\n Player nearby = board.getPlayer(pos);\n if (nearby instanceof Zombie) {\n zombies[i++] = (Zombie) nearby;\n }\n }\n }\n if (i == 0) return; //noone to kill\n //otherwise, pick and slay at least two\n int howMany = Math.min(2, i);\n int remaining = i;\n //choose zombies at random\n for (int slayCount = 0; slayCount < howMany; slayCount++) {\n int index = RND.nextInt(remaining);\n\n Zombie toKill = zombies[index];\n board.put(board.EMPTY, toKill.position.x, toKill.position.y);\n board.remove(toKill);\n totalKillPoints++;\n\n //choose remaining zombie from the nearby group\n Zombie tmp = zombies[remaining - 1];\n zombies[remaining - 1] = zombies[index];\n zombies[index] = tmp;\n remaining--;\n }\n if (howMany == 2) totalDoubleKills++;\n }", "title": "" }, { "docid": "0cc181df3924a951e35db14f5d70a7ec", "score": "0.52822286", "text": "private void flee(Animal predator) {\n\t\tVector to = predator.getPos().sub(this.getPos());\n\t\tif(to.getMag() > 0)\n\t\t\theading = to.rotateDegrees(180).normalized();\n\t\telse\n\t\t\tresetHeading();\n\t}", "title": "" }, { "docid": "44052df814f5d5536eadf89a241e8636", "score": "0.5278778", "text": "private void setAmountToAttackMedium() {\n this.troopsToAttack = this.source.getTroops() - 1;\n }", "title": "" }, { "docid": "1460faffbc46ff8c2a6df93b7f328bdf", "score": "0.52783644", "text": "public void normalize() {\n defense = 3;\n attackRating = 0.5;\n }", "title": "" }, { "docid": "4d35098d88c7b3afb49fb0fa84b1f979", "score": "0.5277218", "text": "public void act() \n {\n setLocation(getX()+speed, getY());\n \n if (getX() == 1200) \n {\n getWorld().removeObject(this);\n }\n }", "title": "" }, { "docid": "2dbc907d80a5f7e0e32ce73217c44855", "score": "0.5276342", "text": "public void optimizeOdometryHeading(){ odometry.resetHeading(Optimizer.optimizeHeading(odometry.h)); }", "title": "" }, { "docid": "f04a40a5ef22462ffdabbefb90a80c5b", "score": "0.5270603", "text": "public void depleteHealth() {\n Random generator = new Random();\n int randomNumber = generator.nextInt(20) + 1;\n\n player.setHealth( player.getHealth() - randomNumber);\n System.out.println(\"Current health: \" + player.getHealth() );\n }", "title": "" }, { "docid": "8ad4ba78b20809cb13e4187291f03f4a", "score": "0.52660745", "text": "private void killMonster(Monster monster) {\n map.setElement(monster.position.x, monster.position.y,\r\n monster.getSavedMapPixel());\r\n\r\n // Mark monster inactive.\r\n monster.markInactive();\r\n\r\n if (monster.isSpecial()) {\r\n game.resetBonusTime();\r\n\r\n // 50-50 chance of resetting damage or giving ammo.\r\n if ((monster.getIndex() & 1) == 0) {\r\n game.resetDamage();\r\n } else {\r\n game.resetClips();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "b30ff6ccbb4b0209c19e4abebcb56e31", "score": "0.5263308", "text": "public void resetStable() {\n\t\tsoundplayed = false;\n\t\tisExploded = false;\n\t\tspeedX = 8;\n\t\tint xposition = rand.nextInt(20);\n\t\tcenterX += xposition;\n\t}", "title": "" } ]
d880caf1b3d5db660ea08415e5af50e4
O(n^2) time complexity and O(n) space complexity
[ { "docid": "b2b753f4e934d6c73d0c30285dfe302f", "score": "0.0", "text": "public BSTSet union(BSTSet s) {\n int[] thisArray = BSTToArray();\n int[] sArray = s.BSTToArray();\n int[] unionArray = new int[thisArray.length + sArray.length];\n int unionArrayIndex = 0;\n\n // add both arrays together\n for (int i = 0; i < thisArray.length; i++) {\n unionArray[unionArrayIndex++] = thisArray[i];\n }\n\n for (int i = 0; i < sArray.length; i++) {\n unionArray[unionArrayIndex++] = sArray[i];\n }\n\n return new BSTSet(unionArray);\n }", "title": "" } ]
[ { "docid": "333ce2308611e2ab70ba55551d271083", "score": "0.73594856", "text": "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "title": "" }, { "docid": "4cbbe27863e67b0ec5877d190c23b54d", "score": "0.6921181", "text": "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }", "title": "" }, { "docid": "03bbca6ce6f00095d3c4326514c1285b", "score": "0.6708833", "text": "public static int example2(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j += 2) // note the increment of 2 // O(1)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Once Again, we have a (for) loop and it runs (n) times and this\r\n\t\t * for loop dominates the runtime.So this is linear time and the answer is O(n).\r\n\t\t * \r\n\t\t */\r\n\t}", "title": "" }, { "docid": "014f90b34e072bec0f3578886e29a5e1", "score": "0.65689653", "text": "public int[] squareUp(int n) {\r\n int[]arreglo=new int[(n*n)]; // O(1)\r\n if(n==0){ // O(1)\r\n return arreglo; // O(1)\r\n }\r\n for(int i=n-1;i<arreglo.length;i=i+n){ // O(n)\r\n for (int j=i;j>=i-(i/n);j--){ // O(1)\r\n arreglo[j]=1+(i-j); // O(1)\r\n }\r\n }\r\n return arreglo; // O(1)\r\n}", "title": "" }, { "docid": "b6c549810cd4041e3cf3c90e5602cea5", "score": "0.6347238", "text": "public static int example3(int[] arr) { // O(n)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n^2)\r\n\t\t\tfor (int k = 0; k <= j; k++) // loop from 0 to j\r\n\t\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Since we have nested for loop which dominates here and it is\r\n\t\t * O(n^2) and we always take the maximum. so the answer is quadratic time O(n^2)\r\n\t\t * \r\n\t\t */\r\n\t}", "title": "" }, { "docid": "1647873093f312d2e326a50cd08e8325", "score": "0.6119383", "text": "public static int example4(int[] arr) { // O(1)\r\n\t\tint n = arr.length, prefix = 0, total = 0; // O(1), O(1), (1)\r\n\t\tfor (int j = 0; j < n; j++) { // loop from 0 to n-1 // O(n)\r\n\t\t\tprefix += arr[j];\r\n\t\t\ttotal += prefix;\r\n\t\t}\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: The method contains a (for) loop and it runs (n) times.This loop\r\n\t\t * dominates the runtime.We always aim for the worse-case and maximum time. The\r\n\t\t * answer is it is linear time of O(n) notation.\r\n\t\t * \r\n\t\t */\r\n\t}", "title": "" }, { "docid": "5eb6f43d606afa09a9f313deec631b77", "score": "0.6103526", "text": "public static void main(String args[] ) throws Exception {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] seqArray = new int[n];\n for (int i = 0; i < n; i++) {\n seqArray[i] = scanner.nextInt();\n }\n // getSeqValue(seqArray); //this method is an accepted one on Hackerrank but time complexity is not order n; i.e. !O(n);\n getLinearOrderY(seqArray); // trying to get O(n) time complexity;\n }", "title": "" }, { "docid": "2069790e6a643035c6e49a0da736d654", "score": "0.6042674", "text": "public int[] fix34(int[] nums) {\r\n\tint i=0; // O(1)\r\n while(i<nums.length && nums[i]!=3) // O(n)\r\n i++; // n+1\r\n int j=i; // O(1)\r\n while(j+1<nums.length && nums[j+1]!=4) // O(n)\r\n j++; // n+1\r\n while(i<nums.length){ // O(n)\r\n if(nums[i]==3){ // O(1)\r\n int temp=nums[i+1]; // O(1)\r\n nums[i+1]=nums[j+1]; //O(1)\r\n nums[j+1]=temp; // O(1)\r\n while(j+1<nums.length && nums[j+1] != 4) //O(n)\r\n j++; // n+1\r\n }\r\n i++; // n+1\r\n }\r\n return nums; //O(1)\r\n}", "title": "" }, { "docid": "edcd00f0ec6ff9fbb1e1d2b6d531d4af", "score": "0.5980708", "text": "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint a[] = {2,1,3,-4,-2};\n\t\t//int a[] = {1 ,2, 3, 7, 5};\n\t\tboolean found = false;\n\t\t\n\t\t//this will solve in o n^2\n\t\tfor(int i = 0 ; i < a.length ; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = i ; j< a.length ; j++){\n\t\t\t\tsum += a[j] ;\n\t\t\t\tif(sum == 0){\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(found)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// link : https://www.youtube.com/watch?v=PSpuM9cimxA&list=PLKKfKV1b9e8ps6dD3QA5KFfHdiWj9cB1s&index=49\n\t\tSystem.out.println(found + \" found\");\n\t\tfound = false;\n\t\t//solving with O of N with the help sets\n\t\t// x + 0 = y\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint sum = 0;\n\t\tfor(int element : a){\n\t\t\tset.add(sum);\n\t\t\tsum += element;\n\t\t\tif(set.contains(sum)){\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(set);\n\t\t\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t\tfound = false;\n\t\t// when the sum of subarray is K\n\t\t\n\t\t//solving with O of N with the help sets\n\t\t//x + k = y >>>\n\t\tSet<Integer> set1 = new HashSet<>();\n\t\tint k = 12;\n\t\tint summ = 0;\n\t\tfor(int element : a){\n\t\t\tset1.add(summ);\n\t\t\tsumm += element;\n\t\t\tif(set1.contains(summ - k)){ // y - k = x(alredy presnt or not)\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(set1);\n\t\tSystem.out.println();\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "52e937be4f8ae35b1cd85f23212ceab8", "score": "0.59408385", "text": "public static int example1(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\t}", "title": "" }, { "docid": "6b20a8efb0050e685c5741bb16626303", "score": "0.59120154", "text": "private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }", "title": "" }, { "docid": "ab99c66bb2a877a719995f64117e27db", "score": "0.5856677", "text": "public void sum2(int n){\n int sum =0; //1\n for (int j = 0; j < n; j++) //2n+2\n for (int k = 0; k < n; k++) //2n+2\n sum += k + j; //1\n for (int l = 0; l < n; l++) //2n+2\n sum += l; //1\n }", "title": "" }, { "docid": "396f292448d0d48002b29871595df4cc", "score": "0.5770532", "text": "static int[] sol1(int[]a, int n){\r\n\t\tMap <Integer,Integer> map= new HashMap();\r\n\t\tfor (int i = 0; i< a.length; i++){\r\n\t\t\tmap.put(a[i],i);\r\n\t\t}\r\n\t\tArrays.sort(a);\r\n\t\tint i = 0; \r\n\t\tint j = a.length -1;\r\n\t\twhile (i <= j){\r\n\t\t\tif(a[i]+a[j]>n) j--;\r\n\t\t\telse if (a[i]+a[j]<n) i++;\r\n\t\t\telse break;\r\n\t\t}\r\n\t\tint[] ans= {map.get(a[i]),map.get(a[j])};\r\n\t\treturn ans;\r\n\t}", "title": "" }, { "docid": "f18c691aa8307fe6dab15c4d7ad0c7d7", "score": "0.5699907", "text": "public boolean linearIn(int[] outer, int[] inner) {\r\n int comp=0; // O(1)\r\n int count=0; // O(1)\r\n if(inner.length==0) // O(1)\r\n return true; // O(1)\r\n for(int i=0; i<outer.length; i++) { // O(n)\r\n if(outer[i]==inner[count]) { // O(1)\r\n comp++; // O(1)\r\n count++; // O(1)\r\n } else if(outer[i]>inner[count]) // O(1)\r\n return false; // O(1)\r\n if (comp==inner.length) // O(1)\r\n return true; // O(1)\r\n }\r\n return false; // O(1)\r\n}", "title": "" }, { "docid": "767624e9d9f44341e5999b394ee6204c", "score": "0.56889296", "text": "public static int solveEfficient(int n) {\n if (n == 0 || n == 1)\n return 1;\n\n int n1 = 1;\n int n2 = 1;\n int sum = 0;\n\n for (int i = 2; i <= n; i++) {\n sum = n1 + n2;\n n1 = n2;\n n2 = sum;\n }\n return sum;\n }", "title": "" }, { "docid": "f665165a2f5121ebd73e213e094ea0bb", "score": "0.5683803", "text": "public static int[] exe1(int[] arr){ // Solution O(n) in time and constant in Memory\n int nzeros=0;\n\n for (int i=0; i<arr.length; i++) {\n arr[i-nzeros] = arr[i];\n if (arr[i] == 0) {\n nzeros++;\n }\n }\n for (int i=arr.length-1; i>arr.length-nzeros-1; i--) {\n arr[i] = 0;\n }\n\n return arr;\n }", "title": "" }, { "docid": "e0d08ac50e4653898ce4aa62a4fd4e7f", "score": "0.5633744", "text": "public static void main(String[] args) {\n\t\tint a[]= {15,3,7,1,9,2};\n\t\tsubarraysum(a,11);//Time complexity O(n^2) space O(1)\n\n\t\tsubarraysum_reducecomplexity(a,11,a.length); //Time complexity O(n) space O(1)\n\n\t}", "title": "" }, { "docid": "7266df16769b474acd9bba9be9b3f9c2", "score": "0.5614249", "text": "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int T = sc.nextInt();\n for(int i = 0 ; i < T; i++) {\n int n = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n PriorityQueue<Integer> queue = new PriorityQueue<Integer>();\n int[][] m = new int[n][n];\n //n^2 * log(n)\n for(int row = 0; row < n; row++) {\n for(int col = 0; col < n; col++) {\n if(row == 0 && col == 0 && n != 1) {\n continue;\n }else if(row == 0) {\n m[row][col] = m[row][col - 1] + a;\n }else if(col == 0) {\n m[row][col] = m[row-1][col] + b;\n }else {\n m[row][col] = m[row-1][col-1] + a + b;\n }\n\n if(row + col == (n -1)) {\n pool.add(m[row][col]); //log(n)\n }\n }\n }\n //O(n*log(n))\n for (Integer item:pool) {\n queue.add(item); //O(logn)\n }\n while(!queue.isEmpty()) {\n System.out.print(queue.poll() + \" \"); //O(1)\n }\n System.out.println();\n queue.clear();\n pool.clear();\n }\n }", "title": "" }, { "docid": "6b7179028a0b90fc85e46dd4e8381ee9", "score": "0.56108004", "text": "public static int f5(int N) { \n int x = 0;\n // log(n)\n for(int i = N; i > 0; i = i/2)\n // O(n) + O(n/2) + O(n/4)\n x += f1(i);\n \n return x; \n \n }", "title": "" }, { "docid": "187bf35ef6736f7cb3999bfb3a66eae2", "score": "0.5588285", "text": "public static boolean find3Numbers(int A[], int n, int X) { \n \n // Your code \n for(int i=0;i<n-2;i++)\n {\n HashSet<Integer> set = new HashSet<>();\n int toFind=X-A[i];\n for(int j=i+1;j<n;j++)\n {\n if(set.contains(toFind-A[j]))\n {\n return true;\n }\n set.add(A[j]);\n }\n }\n return false;\n }", "title": "" }, { "docid": "5c73beee480c626b12845bfce26eb0ad", "score": "0.5579929", "text": "public static void process(int n){\n\t\tint right, left, i;\n\n\t\tright = i = 0;\n\t\twhile(i < n){\n\t\t\twhile (right < n && c[i] == c[right]) right++;\n\t\t\tfor(int j = i; j < right; ++j) max_right[j] = right;\n\t\t\ti = right;\n\t\t}\n\n\t\tleft = i = n-1;\n\t\twhile(i >= 0){\n\t\t\twhile (left >= 0 && c[i] == c[left]) left--;\n\t\t\tfor (int j = i; j > left; --j) max_left[j] = left;\n\t\t\ti = left;\n\t\t}\n\t}", "title": "" }, { "docid": "976905ca103efdc9133a172d85598932", "score": "0.55647963", "text": "static int[] OnepassSol1(int[]a, int n){\r\n Map<Integer, Integer> map = new HashMap<>();\r\n for (int i = 0; i < a.length; i++) {\r\n int complement = n - a[i];\r\n if (map.containsKey(complement)) {\r\n return new int[] { map.get(complement), i };\r\n }\r\n map.put(a[i], i);\r\n }\r\n int[] ans = {-1,-1};\r\n return ans;\r\n }", "title": "" }, { "docid": "19e4b8cf5f74f6ebda82593f9d87e4bd", "score": "0.5561054", "text": "public int findDuplicate(int[] nums) {\n if(nums == null || nums.length == 0) return 0;\n\n int slow = nums[0];\n int fast = nums[nums[0]];\n\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[nums[fast]];\n }\n\n fast = 0;\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[fast];\n }\n\n return slow;\n}", "title": "" }, { "docid": "aecdacc7f62d3d5ff53857d272465396", "score": "0.55526286", "text": "public static int degreeOfArray(List<Integer> arr) { arr.length = n\n // num of Keys = k\n // O(n + k)\n // max value count = m\n //\n PriorityQueue<Node> pq = new PriorityQueue<>((i, j)-> j.count - i.count);\n Map<Integer, NodePosition> posMap = new HashMap<>();\n Map<Integer, Node> countMap = new HashMap<>();\n // [1, 2, 3, 4, 5, 6]\n for (int i = 0; i < arr.size(); i++) {\n int cur = arr.get(i);\n\n if (!countMap.containsKey(cur)) {\n countMap.put(cur, new Node(cur, 1));\n } else {\n Node curNode = countMap.get(cur);\n curNode.count++;\n countMap.put(cur, curNode);\n }\n\n if (!posMap.containsKey(cur)) {\n posMap.put(cur, new NodePosition(i, i));\n } else {\n NodePosition curNodePos = posMap.get(cur);\n curNodePos.endIndex = i;\n posMap.put(cur, curNodePos);\n }\n }\n //Iterator<Map.Entry<Integer, Node> it = new Iterator<>(countMap);\n for (Map.Entry<Integer, Node> e : countMap.entrySet()) {\n pq.add(e.getValue());\n }\n\n // [1, 2, 1, 3 ,2]\n // 1 , 2 , 3\n Node curNode = pq.remove();\n int maxCount = curNode.count;\n\n int minRange = posMap.get(curNode.num).endIndex - posMap.get(curNode.num).startIndex;\n\n while (!pq.isEmpty() && maxCount == pq.peek().count) {\n curNode = pq.remove();\n NodePosition nPos = posMap.get(curNode.num);\n minRange = Math.min(minRange, nPos.endIndex - nPos.startIndex);\n }\n\n return minRange + 1;\n }", "title": "" }, { "docid": "02f2599bc0ccaf8574cc9305d7971e15", "score": "0.5544762", "text": "public static void targetSumPair(int[] arr, int target){\n //write your code here\n Arrays.sort(arr); // O(nlogn)\n int i=0, j=arr.length-1;\n while(i < j) {\n if(arr[i]+arr[j] < target) {\n i++;\n }\n else if(arr[i] + arr[j] > target)\n j--;\n else {\n System.out.println(arr[i] + \", \" + arr[j]);\n i++; j--;\n }\n }\n }", "title": "" }, { "docid": "5c31aa19ff1c6f9f6257fe61d87c959f", "score": "0.55312204", "text": "private static void get4ElementsSumCountFastest(String inputLine, int target) {\n String[] arr = inputLine.split(\" \");\n if (arr.length < 3) {\n System.out.println(0);\n return;\n }\n\n Map<Integer, Set<String>> pairSumMap = new HashMap<>();\n List<Integer> list = new ArrayList<>(arr.length);\n for (String s : arr) {\n list.add(Integer.parseInt(s.trim()));\n }\n\n int sum = 0, diff = 0;\n for (int i = 0; i < arr.length; i++) {\n for (int j = i + 1; j < arr.length; j++) {\n sum = list.get(i) + list.get(j);\n if (sum < target) {\n pairSumMap.putIfAbsent(sum, new HashSet<>());\n pairSumMap.get(sum).add(i + \"-\" + j);\n }\n }\n }\n\n for (Map.Entry<Integer, Set<String>> mk : pairSumMap.entrySet()) {\n diff = target - mk.getKey();\n if (pairSumMap.containsKey(diff)) {\n Set<String> indexesList = mk.getValue();\n for (String index : indexesList) {\n int indexOrgX = Integer.parseInt(index.split(\"-\")[0]);\n int indexOrgY = Integer.parseInt(index.split(\"-\")[1]);\n for (String newIdx : pairSumMap.get(diff)) {\n int indexNewX = Integer.parseInt(newIdx.split(\"-\")[0]);\n int indexNewY = Integer.parseInt(newIdx.split(\"-\")[1]);\n if (indexOrgX != indexNewX && indexOrgX != indexNewY && indexOrgY != indexNewX && indexOrgY != indexNewY) {\n System.out.println(1);\n return;\n }\n }\n }\n }\n }\n System.out.println(0);\n }", "title": "" }, { "docid": "11cbab51303b50a282afcdd9e12bb161", "score": "0.5518341", "text": "private int d(@Nullable K ☃) {\r\n/* 127 */ return (xq.f(System.identityHashCode(☃)) & Integer.MAX_VALUE) % this.b.length;\r\n/* */ }\r\n/* */ private int b(@Nullable K ☃, int i) {\r\n/* */ int j;\r\n/* 131 */ for (j = i; j < this.b.length; j++) {\r\n/* 132 */ if (this.b[j] == ☃) {\r\n/* 133 */ return j;\r\n/* */ }\r\n/* 135 */ if (this.b[j] == a) {\r\n/* 136 */ return -1;\r\n/* */ }\r\n/* */ }", "title": "" }, { "docid": "43d4b513494bc957eadb71367e385ef3", "score": "0.5489119", "text": "int minOperations(int[] arr) {\n // Write your code here\n Set<String> set = new HashSet<>();//store visited string\n Queue<String> queue = new LinkedList<>(); // store next strs\n int counter = 0;\n\n queue.offer(getKey(arr));\n set.add(getKey(arr));\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n List<String> curs = new ArrayList<>();\n while (size > 0) {\n curs.add(queue.poll());\n size--;\n }\n\n for(String cur : curs) {\n if (isIncreasing(cur)) {\n return counter;\n }\n\n for(int i = 0; i < cur.length(); i++) {\n String next = reverseString(cur, i);\n if (!set.contains(next)) {\n set.add(next);\n queue.offer(next);\n }\n }\n }\n\n counter++;\n }\n\n return counter;\n }", "title": "" }, { "docid": "51107b3d82eae68b4d33f9eaf0a061e7", "score": "0.54586214", "text": "static int[] find2(int a[]){\r\n int sum = a[0];\r\n int pro = a[0];\r\n for(int i=1;i<a.length;i++){\r\n sum += a[i];\r\n pro += a[i]*a[i];\r\n }\r\n int s = (n*(n+1))/2 - sum;\r\n int p = (n*(n+1)*(2*n+1))/6 - pro;\r\n return solveSP(s, p);\r\n }", "title": "" }, { "docid": "7ce4abf37ef5cb1d397b60e096ff7cd7", "score": "0.5441916", "text": "public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n System.out.println(flag);\n\n String s = \"\";\n for (int i = 0; i < 100000; i++) {\n // s += \"CodefightsIsAwesome\";\n }\n long start = System.currentTimeMillis();\n // int k = subStr(s, \"IsA\");\n System.out.println(System.currentTimeMillis() - start);\n // System.out.println(k);\n\n String[] a = { \"aba\", \"aa\", \"ad\", \"vcd\", \"aba\" };\n String[] b = sum.allLongestStrings(a);\n System.out.println(Arrays.deepToString(b));\n\n List<String> al = new ArrayList<>();\n al.toArray();\n\n Map<Integer, Integer> map = new HashMap<>();\n Set<Integer> keySet = map.keySet();\n for (Integer integer : keySet) {\n\n }\n\n String st = reverseBracksStack(\"a(bc(de)f)g\");\n System.out.println(st);\n\n int[] A = { 1, 2, 3, 2, 2, 3, 3, 33 };\n int[] B = { 1, 2, 2, 2, 2, 3, 2, 33 };\n\n System.out.println(sum.isIPv4Address(\"2.2.34\"));\n\n Integer[] AR = { 5, 3, 6, 7, 9 };\n int h = sum.avoidObstacles(AR);\n System.out.println(h);\n\n int[][] image = { { 36, 0, 18, 9 }, { 27, 54, 9, 0 }, { 81, 63, 72, 45 } };\n int[][] im = { { 7, 4, 0, 1 }, { 5, 6, 2, 2 }, { 6, 10, 7, 8 }, { 1, 4, 2, 0 } };\n int[][] res = sum.boxBlur(im);\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[0].length; j++) {\n System.out.print(res[i][j] + \" \");\n }\n System.out.println();\n }\n\n boolean[][] ms = { { true, false, false, true }, { false, false, true, false }, { true, true, false, true } };\n int[][] mines = sum.minesweeper(ms);\n for (int i = 0; i < mines.length; i++) {\n for (int j = 0; j < mines[0].length; j++) {\n System.out.print(mines[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println(sum.variableName(\"var_1__Int\"));\n\n System.out.println(sum.chessBoard());\n\n System.out.println(sum.depositProfit(100, 20, 170));\n\n String[] inputArray = { \"abc\", \"abx\", \"axx\", \"abx\", \"abc\" };\n System.out.println(sum.stringsRearrangement(inputArray));\n\n int[][] queens = { { 1, 1 }, { 3, 2 } };\n int[][] queries = { { 1, 1 }, { 0, 3 }, { 0, 4 }, { 3, 4 }, { 2, 0 }, { 4, 3 }, { 4, 0 } };\n boolean[] r = sum.queensUnderAttack(5, queens, queries);\n\n }", "title": "" }, { "docid": "415042d40a64c0d53956b12751acf4c4", "score": "0.5418263", "text": "static long nPolyNTime(int[] n) {\n int temp = n.length;\n long sum = 0;\n if(n == null || n.length == 0) return -1;\n for(int i = 0; i < n.length; ++i) {\n while(temp --> 0) {\n for(int j = 0; j < n.length; ++j) {\n sum += n[i] + n[j];\n }\n }\n }\n return sum;\n }", "title": "" }, { "docid": "b9b74d80cce9ecc2ad5cf965f5401de0", "score": "0.5413457", "text": "@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }", "title": "" }, { "docid": "d8480919f1a8f18a80b67b52e1c270ad", "score": "0.5412419", "text": "private static int[] p2(int[] ar, int n) {\n int[] p2 = new int[n];\n Arrays.fill(p2, n);\n Stack<Integer> st = new Stack<>();\n for (int i = 0; i < n; i++) {\n while (st.size() != 0 && ar[i] < ar[st.peek()]) {\n p2[st.peek()] = i;\n st.pop();\n }\n st.push(i);\n }\n return p2;\n }", "title": "" }, { "docid": "90c8cd74d335a5fb393b19c044c0dc2a", "score": "0.54053277", "text": "private static int betterSolution(int n) {\n return n*n*n;\n }", "title": "" }, { "docid": "4c5175fdb41a254027534f6887a1619a", "score": "0.540386", "text": "private static int f(int n, int complete, int other, int[] arr) {\n if(n<=0)\n return 0;\n int res=0;\n ArrayList<Integer>list=new ArrayList<Integer>();\n for(int a:arr)\n if(a>0)\n list.add(a);\n int brr[]=new int[list.size()];\n for(int i=0;i<brr.length;i++)\n brr[i]=list.get(i);\n while(brr.length!=0){\n int index=0;\n for(int i=1;i<brr.length;i++)\n if(brr[index]<brr[i])\n index=i;\n for(int i=0;i<brr.length;i++){\n if(index==i)\n brr[i]-=complete;\n else\n brr[i]-=other;\n }\n list=new ArrayList<Integer>();\n for(int a:brr)\n if(a>0)\n list.add(a);\n brr=new int[list.size()];\n for(int i=0;i<brr.length;i++)\n brr[i]=list.get(i);\n res++;\n }\n return res;\n }", "title": "" }, { "docid": "67d876ef1c193c95750c5bcdbd80b46d", "score": "0.539456", "text": "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint arr[] = new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\tint sum = sc.nextInt();\n\t\tHashMap<Integer,Integer> map = new HashMap<>();\n \t\tArrays.sort(arr);\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint reqSum = sum-temp;\n\t\t\tarr[i]=0;\n\t\t\tint l=0;\n\t\t\tint r = n-1;\n\t\t\twhile(l<r) {\n\t\t\t\t//System.out.println(\"l \" + l + \" r \" + r + \" i = \"+ i);\n\t\t\t\tif(arr[l] + arr[r]==reqSum && arr[l]!=0 && arr[r]!=0 ) {\n\t\t\t\t\tint arr2[] = new int[3];\n\t\t\t\t\tarr2[0] = temp;\n\t\t\t\t\tarr2[1] = arr[l];\n\t\t\t\t\tarr2[2] = arr[r];\n\t\t\t\t\tif(map.containsKey(arr2[0]) || map.containsKey(arr2[1]) || map.containsKey(arr2[2])) {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\tArrays.sort(arr2);\n\t\t\t\t\t\tSystem.out.println(arr2[0] + \" \" + arr2[1] + \" \" + arr2[2]);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tl++;\n\t\t\t\t}else if(arr[l] + arr[r] < reqSum) {\n\t\t\t\t\tl++;\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tr--;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tarr[i] = temp;\t\n\t\t\tmap.put(arr[i], 1);\n\t\t}\n\t}", "title": "" }, { "docid": "a9a8fd2ae2863652711ddf0a493881b0", "score": "0.5378227", "text": "public boolean containsNearbyDuplicate2(int[] nums, int k) {\n\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < nums.length; i++) {\n max=Math.max(max,nums[i]);\n }\n Integer[] map = new Integer[max+1];\n for (int i = 0; i < nums.length; i++) {\n Integer c = map[nums[i]];\n if(c!=null && i-c<=k){\n return true;\n }else {\n map[nums[i]]=i;\n }\n }\n return false;\n }", "title": "" }, { "docid": "2986c7777181acb4093ea352c3f466d1", "score": "0.53752637", "text": "private int gameV(int i, int j, int x) {\n int count = 2;\n for (int ii = 0; ii < i; ii++) {\n for (int jj = ii + 1; jj < n; jj++) {\n if (ii != x && jj != x) count++;\n }\n }\n for (int jj = i + 1; jj < j; jj++) {\n if (jj != x) count++;\n }\n return count;\n }", "title": "" }, { "docid": "8c17a8f554813386dff46359b3c3e241", "score": "0.5367336", "text": "public void sum(int n) {\n int sum = 0;\n for (int j = 0; j < n; j++) // 2n+2\n sum += j;\n for (int k = 0; k < n; k++) // 2n+2\n sum += k;\n for (int l = 0; l < n; l++) //2n+2\n sum += l;\n }", "title": "" }, { "docid": "0eb96d66a4e8031dea844cb95608295c", "score": "0.53665453", "text": "public static int solution(int[] arr) {\n int n = arr.length;\n for (int i = 0; i < n; i++) {\n while (arr[i] != i + 1 && arr[i] < n && arr[i] > 0) {\n int temp = arr[i];\n if (temp == arr[temp - 1])\n break;\n arr[i] = arr[temp - 1];\n arr[temp - 1] = temp;\n }\n }\n for (int i = 0; i < n; i++)\n if (arr[i] != i + 1)\n return i + 1;\n return n + 1;\n }", "title": "" }, { "docid": "b57afbfb3ae9ad8c09a2f05230ea267b", "score": "0.53610426", "text": "public static int ulam(int n) {\n\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n\n int i = 3;\n while (list.size() < n) {\n\n int count = 0;\n for (int j = 0; j < list.size() - 1; j++) {\n\n for (int k = j + 1; k < list.size(); k++) {\n if (list.get(j) + list.get(k) == i)\n count++;\n if (count > 1)\n break;\n }\n if (count > 1)\n break;\n }\n if (count == 1)\n list.add(i);\n i++;\n }\n return list.get(n - 1);\n }", "title": "" }, { "docid": "e19295cebcc1afbe9c0c677c9529e4dc", "score": "0.5353237", "text": "static long findSum(int N)\n\t{\n\t\tif(N==0) return 0;\n\t\treturn (long)((N+1)>>1)*((N+1)>>1)+findSum((int)N>>1);\n\t\t\n\t}", "title": "" }, { "docid": "b7ef02d6c391d39e4575e1c2ec444a4d", "score": "0.5344298", "text": "private int getCondensedIndex(int n, int i, int j) {\n if (i < j) {\n return n * i - (i * (i + 1) / 2) + (j - i - 1);\n }\n else if (i > j) {\n return n * j - (j * (j + 1) / 2) + (i - j - 1);\n }\n else{\n return 0;\n }\n }", "title": "" }, { "docid": "5212d05b7c2db8a021cde93647256105", "score": "0.5341931", "text": "public static void main(String[] args) {\nScanner s=new Scanner(System.in);\nint n=s.nextInt();\nint a[]=new int[n];\nint x=0;\nfor(int i=1;i<=n;i++)\n{\n\tif(i%2!=0)\n\t{\n\t\ta[x++]=i;\n\t}\n}\nint sum=0;\nsum=a[0];\nfor(int i=0;i<x;i++)\n{\n\tif((i+1)<x)\n\t{\n\tif(i%2==0)\n\t\tsum=sum+a[i+1];\n\telse\n\t\tsum=sum-a[i+1];\n\t}\n}\nSystem.out.println(sum);\n\t}", "title": "" }, { "docid": "b9f837dd5315eb963ed2c104f55e07e0", "score": "0.5337335", "text": "private static int solution2(String s) {\r\n int n = s.length();\r\n int ans = 0;\r\n for (int i = 0; i < n; i++)\r\n for (int j = i + 1; j <= n; j++)\r\n if (allUnique(s, i, j)) ans = Math.max(ans, j - i);\r\n return ans;\r\n }", "title": "" }, { "docid": "70c79f330e05142e06384b7d385b1ba2", "score": "0.53293", "text": "public static boolean addUpToFast(int[] array, int n){\n\t\tHashSet<Integer> hs = new HashSet<Integer>();\n\t\tfor(int i = 0; i < array.length; i++){\n\t\t\tif(hs.contains(n-array[i]))\n\t\t\t\treturn true;\n\t\t\ths.add(array[i]);\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "cceb6c8b396809cc0d51584d4e5b7dd1", "score": "0.53228325", "text": "static int getMissingByAvoidingOverflow(int a[], int n)\n\t {\n\t int total = 2;\n\t for (int i = 3; i <= (n + 1); i++)\n\t {\n\t total =total+ i -a[i - 2];\n\t //total =total- a[i - 2];\n\t }\n\t return total;\n\t }", "title": "" }, { "docid": "26f400ab8a24f47754846ee2d9e9428e", "score": "0.53195924", "text": "private static void sortAccording(int A1[], int A2[], int m, int n)\n {\n // The temp array is used to store a copy \n // of A1[] and visited[] is used to mark the \n // visited elements in temp[].\n int temp[] = new int[m], visited[] = new int[m];\n for (int i = 0; i < m; i++)\n {\n temp[i] = A1[i];\n visited[i] = 0;\n }\n \n // Sort elements in temp\n Arrays.sort(temp);\n \n // for index of output which is sorted A1[]\n int ind = 0; \n \n // Consider all elements of A2[], find them\n // in temp[] and copy to A1[] in order.\n for (int i = 0; i < n; i++){\n\n // Find index of the first occurrence\n // of A2[i] in temp\n int f = first(temp, 0, m-1, A2[i], m);\n \n // If not present, no need to proceed\n if (f == -1) \n continue;\n \n // Copy all occurrences of A2[i] to A1[]\n for (int j = f; (j < m && temp[j] == A2[i]); j++){\n \n A1[ind++] = temp[j];\n visited[j] = 1;\n }\n }\n \n // Now copy all items of temp[] which are \n // not present in A2[]\n for (int i = 0; i < m; i++)\n if (visited[i] == 0)\n A1[ind++] = temp[i];\n }", "title": "" }, { "docid": "8e42a8502b9c3b5fca8291caa8012db6", "score": "0.53172886", "text": "void h(List<List<Integer>> r, List<Integer> t, int n, int s){ \n for(int i = s; i*i <= n; i++){\n if(n % i != 0) continue; \n t.add(i);\n t.add(n / i);\n r.add(new ArrayList<>(t));\n t.remove(t.size() - 1);\n h(r, t, n/i, i);\n t.remove(t.size() - 1);\n }\n }", "title": "" }, { "docid": "b137fff742f1456c243c64189304f25c", "score": "0.5286106", "text": "public static void a2v2(int[] A)\n {\n Map<Integer, List<Integer>> hashMap = new HashMap<>();\n\n insert(hashMap, 0, -1);\n\n int sum = 0;\n\n for (int i = 0; i < A.length; i++)\n {\n sum += A[i];\n\n if (hashMap.containsKey(sum))\n {\n List<Integer> list = hashMap.get(sum);\n\n // find all subarrays with the same sum\n for (Integer value: list)\n {\n System.out.println(\"Subarray [\" + (value + 1) + \"…\" +\n i + \"]\");\n }\n }\n\n // insert (sum so far, current index) pair into the hashmap\n insert(hashMap, sum, i);\n }\n }", "title": "" }, { "docid": "f4ac5a95bbd083c6cc42d1c3ecec6e37", "score": "0.5283491", "text": "public static int[] twoSum(int[] numbers, int target) {\n // Start typing your Java solution below\n // DO NOT write main() function\n int[] aux = new int[numbers.length];\n HashMap<Integer, Integer> valueToIndex = new HashMap<Integer, Integer>();\n for (int i = 0; i < numbers.length; i++) {\n valueToIndex.put(numbers[i], i);\n aux[i] = numbers[i];\n }\n \n int i = 0, j = numbers.length - 1;\n boolean found = false;\n \n Arrays.sort(aux);\n \n while (i != j) {\n if (aux[i] + aux[j] < target) i++;\n else if (aux[i] + aux[j] > target) j--;\n else {\n found = true;\n break;\n }\n }\n \n if (!found) return null;\n \n int[] result = new int[2];\n if (aux[i] == aux[j]) { /* Handle duplicates */\n int first = -1, second = -1;\n for (int k = 0; k < numbers.length; k++) {\n if (numbers[k] == aux[i]) {\n if (first == -1) {\n first = k;\n } else if (second == -1) {\n second = k;\n break;\n }\n }\n }\n result[0] = first + 1;\n result[1] = second + 1;\n return result;\n }\n \n \n if (valueToIndex.get(aux[i]) < valueToIndex.get(aux[j])) {\n result[0] = valueToIndex.get(aux[i]) + 1;\n result[1] = valueToIndex.get(aux[j]) + 1;\n } else {\n result[0] = valueToIndex.get(aux[j]) + 1;\n result[1] = valueToIndex.get(aux[i]) + 1;\n }\n return result;\n }", "title": "" }, { "docid": "bf1302a27d5639314bfba6d2ff71a1e9", "score": "0.52822596", "text": "public static int f3(int N) {\n \n // O(1)\n if (N == 0) return 1;\n else{ \n \n int x = 0;\n // O(N)\n for(int i = 0; i < N; i++)\n x += f3(N-1);\n return x;\n }\n }", "title": "" }, { "docid": "8983ffe579b9500afafe5558578a9bab", "score": "0.5265189", "text": "public static List<Integer> solution2(int n) {\n List<Integer> rs=new ArrayList<Integer>();\n rs.add(0);\n for(int i=0;i<n;i++){\n int size=rs.size();\n for(int k=size-1;k>=0;k--)\n rs.add(rs.get(k) | 1<<i);\n }\n return rs;\n }", "title": "" }, { "docid": "c563bb2b76e5f939f122320a923a1693", "score": "0.52629656", "text": "static int countSubarrWithEqualZeroAndOne(int arr[], int n)\n {\n int count=0;\n int currentSum=0;\n HashMap<Integer,Integer> mp=new HashMap<>();\n for(int i=0;i<arr.length;i++)\n {\n if(arr[i]==0)\n arr[i]=-1;\n currentSum+=arr[i];\n \n if(currentSum==0)\n count++;\n if(mp.containsKey(currentSum))\n count+=mp.get(currentSum);\n if(!mp.containsKey(currentSum))\n mp.put(currentSum,1);\n else\n mp.put(currentSum,mp.get(currentSum)+1);\n \n \n }\n return count;\n }", "title": "" }, { "docid": "1089ba6b286bfae6825a25820d578fdd", "score": "0.52619976", "text": "public List<List<Integer>> threeSum(int[] nums) {\n List<List<Integer>> result = new ArrayList<>(nums.length);\n\n // Prepare\n Arrays.sort(nums);\n// int firstPositiveIndex = 0;\n// int negativeLength = 0;\n// List<Integer> numsFiltered = new ArrayList<>();\n// for (int i = 0; i < nums.length; i++) {\n// if (i == 0 || i == 1 || nums[i] == 0 || (nums[i] != nums[i-2])) {\n// numsFiltered.add(nums[i]);\n// if ((nums[i] >= 0) && (firstPositiveIndex == 0)) {\n// firstPositiveIndex = numsFiltered.size() - 1;\n// }\n// if ((nums[i] <= 0)) {\n// negativeLength = numsFiltered.size();\n// }\n// }\n// }\n// nums = numsFiltered.stream().mapToInt(i->i).toArray();\n\n // Func\n\n for(int i=0; (i < nums.length) && (nums[i] <= 0); i++) {\n if (i != 0 && nums[i] == nums[i-1]) {\n continue;\n }\n for(int j=i+1; j<nums.length; j++) {\n if (j != i+1 && nums[j] == nums[j-1]) {\n continue;\n }\n for(int k=nums.length-1; (k>j) && nums[k] >= 0; k--) {\n if (k != nums.length-1 && nums[k] == nums[k+1]) {\n continue;\n }\n int sum = nums[i]+nums[j]+nums[k];\n if (sum > 0) {\n continue;\n } else if (sum < 0) {\n break;\n }\n\n List<Integer> ok = new ArrayList<>();\n ok.add(nums[i]);\n ok.add(nums[j]);\n ok.add(nums[k]);\n result.add(ok);\n break;\n }\n }\n }\n\n// System.out.println(\"Finish time = \" + (System.nanoTime() - start) / 1_000_000);\n// System.out.println(\"result size = \" + result.size());\n\n return result;\n }", "title": "" }, { "docid": "32456fcdb4409c1ca7f2d67bff9e29bd", "score": "0.52569616", "text": "public static ArrayList<ArrayList<Integer>> fourSum(ArrayList<Integer> a, int k) {\n Collections.sort(a);\n System.out.println(a);\n LinkedHashMap<Integer, List<List<Integer>>> m = new LinkedHashMap<Integer, List<List<Integer>>>();\n for (int i = 0; i <= a.size() - 3; i++) {\n for (int j = i + 1; j <= a.size() - 2; j++) {\n if (m.get(a.get(i) + a.get(j)) == null) {\n ArrayList<List<Integer>> v = new ArrayList<List<Integer>>();\n List<Integer> c = new ArrayList<Integer>();\n c.add(i);\n c.add(j);\n v.add(c);\n m.put(a.get(i) + a.get(j), v);\n } else {\n List<List<Integer>> v = m.get(a.get(i) + a.get(j));\n List<Integer> c = new ArrayList<Integer>();\n c.add(i);\n c.add(j);\n v.add(c);\n m.put(a.get(i) + a.get(j), v);\n }\n\n }\n }\n LinkedHashSet<ArrayList<Integer>> res = new LinkedHashSet<ArrayList<Integer>>();\n for (int i = 2; i <= a.size() - 1; i++) {\n for (int j = i + 1; j < a.size(); j++) {\n List<List<Integer>> v = m.get(k - (a.get(i) + a.get(j)));\n if (v != null && v.size() >= 1) {\n for (List<Integer> l : v) {\n\n if (l.get(0) < l.get(1) && l.get(1) < i && l.get(1) < j) {\n //System.out.println(l.get(0) + \" \" + l.get(1) + \" \" + i + \" \" + j);\n ArrayList<Integer> out = new ArrayList<Integer>();\n out.add(a.get(l.get(0)));\n out.add(a.get(l.get(1)));\n out.add(a.get(i));\n out.add(a.get(j));\n Collections.sort(out);\n //System.out.println(out);\n res.add(out);\n }\n }\n }\n }\n }\n return new ArrayList<ArrayList<Integer>>(res);\n }", "title": "" }, { "docid": "179959f4f848d5cf0de3c930746fb3ac", "score": "0.5249635", "text": "static public void findPossibleTrianglesCount_V2(int[] arr, int n){\n \r\n int i,j,k; //loop or index variables\r\n int nTriangles = 0;\r\n \r\n Arrays.sort(arr);\r\n \r\n for(i=0; i<n-2; i++){\r\n k = i+2;\r\n for(j=i+1; j<n-1; j++){\r\n while(k<n && arr[i]+arr[j]>arr[k])\r\n k++;\r\n nTriangles+= k-j-1;\r\n }\r\n }\r\n \r\n System.out.println(\"Number of possible triangles \" + nTriangles);\r\n }", "title": "" }, { "docid": "7495c3f160571600409b5d5d6fe93281", "score": "0.5243253", "text": "public int findPairsTwoPointers(int[] nums, int k) {\n if (k < 0) {\n return 0;\n }\n Arrays.sort(nums); // O(N*logN)\n\n int i = 0;\n int j = 1;\n int count = 0;\n while (j < nums.length) { // O(N)\n if (i == j || nums[j] - nums[i] < k) {\n j++;\n } else if (nums[j] - nums[i] > k) {\n i++;\n } else {\n count += 1;\n j++;\n while (j < nums.length && nums[j] == nums[j - 1]) {\n j++;\n }\n }\n }\n return count;\n }", "title": "" }, { "docid": "afa3316a37edb7e2868eb6b355403a49", "score": "0.5229818", "text": "public static long sb(long a[], long n, long x) {\n long len = Long.MAX_VALUE;\n int p1 = 0;\n int p2 = 0;\n long sum = 0l;\n while(p1<=p2 && p2<n) {\n sum = sum + a[p2];\n p2++;\n while(sum >= x) {\n len = len > (p2-p1) ? (p2-p1) : len;\n sum = sum - a[p1];\n p1++;\n }\n }\n return len == Long.MAX_VALUE ? -1 : len;\n }", "title": "" }, { "docid": "e69c970f9f133f81f34a2c8b756f1a15", "score": "0.52281517", "text": "public int get_odd_occurences_optimal_v2(int[] a) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tresult ^= i;\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "65abcb9957a2d2e7fa322506153aee0d", "score": "0.5227642", "text": "public static int solutionN2(int[] A) {\n\n\t\tclass Pair {\n\t\t\tpublic int start;\n\t\t\tpublic int end;\n\n\t\t\tpublic Pair(int start, int end) {\n\t\t\t\tthis.start = start;\n\t\t\t\tthis.end = end;\n\t\t\t}\n\t\t}\n\n\t\tPair[] pairs = new Pair[A.length];\n\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tpairs[i] = new Pair(i - A[i], i + A[i]);\n\t\t}\n\n\t\tArrays.sort(pairs, new Comparator<Pair>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Pair o1, Pair o2) {\n\t\t\t\treturn o1.start - o2.start;\n\t\t\t}\n\t\t});\n\n\t\tint countIntersection = 0;\n\n\t\tfor (int i = 0; i < A.length; i++) {\n\t\t\tPair current = pairs[i];\n\n\t\t\tfor (int j = i + 1; j < A.length; j++) {\n\t\t\t\tPair p = pairs[j];\n\t\t\t\tif (current.end >= p.start) {\n\t\t\t\t\tcountIntersection++;\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\tif (countIntersection > 10000000)\n\t\t\treturn -1;\n\n\t\treturn countIntersection;\n\t}", "title": "" }, { "docid": "a95261c6654dc37f7442b5c7764805e8", "score": "0.52081573", "text": "static int gen(int n)\n{ \n int []S = new int [n + 1];\n \n S[0] = 0;\n if(n != 0)\n S[1] = 1;\n \n for (int i = 2; i <= n; i++)\n { \n \n // S(2 * n) = 4 * S(n)\n if (i % 2 == 0)\n S[i] = 4 * S[i / 2];\n \n // S(2 * n + 1) = 4 * S(n) + 1\n else\n S[i] = 4 * S[i/2] + 1;\n }\n \n return S[n];\n}", "title": "" }, { "docid": "695e553045c104405ee9763d7dacd999", "score": "0.519944", "text": "private static boolean findEqualSumSubsetBottomUp(int[] arr, int n) {\n\t\tint sum=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tsum+=arr[i];\n\t\t}\n\t\tif(sum%2==1) {\n\t\t\treturn false;\n\t\t}\n \t\treturn findEqualSumBottomUp(arr,n,sum/2);\n\t}", "title": "" }, { "docid": "0a4e6857126d46e6ff885f18fd380456", "score": "0.51961094", "text": "public static void main(String[] args) \n {\n int[] numOfPoints = { 1000, 10000, 7000, 10000, 13000 };\n for(int count = 0; count < numOfPoints.length; count++)\n {\n List<Point> pointsTobeUsed = new ArrayList<Point>();\n int current = numOfPoints[count];\n int inc = 0;\n \n //creating list of points to be used\n for(int x = 0; x <= current; x++)\n {\n \n if(x <= current/2)\n {\n pointsTobeUsed.add(new Point(x,x));\n \n }\n else\n {\n pointsTobeUsed.add(new Point(x, x - (1 + 2*(inc)) ) );\n inc++;\n }\n }\n \n //n logn implementation of Pareto optimal\n long timeStart = System.currentTimeMillis();\n \n // n logn quicksort\n pointsTobeUsed = quickSort(pointsTobeUsed, 0, pointsTobeUsed.size() -1 );\n \n \n \n ParetoOptimal(pointsTobeUsed);\n \n \n long timeEnd = System.currentTimeMillis();\n System.out.println(\"final:\" + \" exper: \" + (timeEnd - timeStart) + \" N: \" + current ); \n }\n }", "title": "" }, { "docid": "199792b5578b39eb751fbee0fbbe2378", "score": "0.5193019", "text": "static int trappingWater(int arr[], int n) {\r\n\r\n // Your code here\r\n /** *** tle\r\n for(int i=1;i<n-1;i++){\r\n int l=arr[i];\r\n for (int j = 0; j < i; j++) {\r\n l=l < arr[j] ? arr[j] : l;\r\n }\r\n int r=arr[i];\r\n for (int j = i+1; j <n ; j++) {\r\n r=r < arr[j] ? arr[j] : r;\r\n }\r\n\r\n s=s+(l>r? r:l) -arr[i];\r\n }\r\n return s;\r\n\r\n //////////////////////////////////////////////\r\n SC=O(N)\r\n if(n<=2)\r\n return 0;\r\n int[] left=new int[n];\r\n int[] right=new int[n];\r\n left[0]=0;\r\n int leftmax=arr[0];\r\n for (int i = 1; i <n ; ++i) {\r\n left[i]=leftmax;\r\n leftmax=Math.max(leftmax,arr[i]);\r\n }\r\n right[n-1]=0;\r\n int mxright=arr[n-1];\r\n for (int i = n-2; i >=0 ; --i) {\r\n right[i]=mxright;\r\n mxright=Math.max(mxright,arr[i]);\r\n }\r\n int s=0;\r\n for (int i = 1; i < n-1; ++i) {\r\n if(arr[i]<left[i] && arr[i]<right[i]){\r\n s+=Math.min(left[i],right[i])-arr[i];\r\n }\r\n }\r\n return s;\r\n /////////////////////////////////////////////////////\r\n **/\r\n\r\n if(n<=2)\r\n return 0;\r\n\r\n int leftMax = arr[0];\r\n int rightMax = arr[n-1];\r\n\r\n int left = 1;\r\n int right = n-2;\r\n int water = 0;\r\n\r\n while(left <= right) {\r\n if (leftMax < rightMax) {\r\n if (arr[left] >= leftMax) {\r\n leftMax = arr[left];\r\n } else\r\n water = water + (leftMax - arr[left]);\r\n\r\n //leftMax = Math.max(leftMax, arr[left]);\r\n left++;\r\n } else {\r\n if (arr[right] > rightMax) {\r\n rightMax = arr[right];\r\n }\r\n\r\n water = water + (rightMax - arr[right]);\r\n right--;\r\n }\r\n }\r\n return water;\r\n\r\n }", "title": "" }, { "docid": "e527287ffc201e88d5bb501bf8e17d8f", "score": "0.51913726", "text": "void solve() throws IOException {\n int[] nk = ril(2);\n int n = nk[0];\n int k = nk[1];\n int[] p = ril(n);\n int[] b = ril(k);\n for (int i = 0; i < n; i++) p[i]--;\n for (int i = 0; i < k; i++) b[i]--;\n\n int[] numToIdx = new int[n];\n for (int i = 0; i < n; i++) numToIdx[p[i]] = i;\n\n boolean[] remove = new boolean[n];\n Arrays.fill(remove, true);\n for (int bi : b) remove[bi] = false;\n List<Integer> toRemove = new ArrayList<>(n - k);\n for (int i = 0; i < n; i++) if (remove[i]) toRemove.add(i);\n Collections.sort(toRemove);\n\n int[] prevSmaller = new int[n];\n prevSmaller[0] = -1;\n int prevIdx = remove[p[0]] ? -1 : 0;\n for (int i = 1; i < n; i++) {\n int j = prevIdx;\n while (j != -1 && p[i] < p[j]) j = prevSmaller[j];\n prevSmaller[i] = j;\n if (!remove[p[i]]) prevIdx = i;\n }\n int[] nextSmaller = new int[n];\n nextSmaller[n-1] = n;\n prevIdx = remove[p[n-1]] ? n : n-1;\n for (int i = n-2; i >= 0; i--) {\n int j = prevIdx;\n while (j != n && p[i] < p[j]) j = nextSmaller[j];\n nextSmaller[i] = j;\n if (!remove[p[i]]) prevIdx = i;\n }\n\n int[] init = new int[n];\n Arrays.fill(init, 1);\n SegmentTree st = new SegmentTree(init);\n long ans = 0;\n for (int x : toRemove) {\n int idx = numToIdx[x];\n int l = prevSmaller[idx] + 1;\n int r = nextSmaller[idx] - 1;\n ans += st.query(l, r+1);\n st.modify(idx, 0);\n }\n pw.println(ans);\n }", "title": "" }, { "docid": "4f260ab995db83e5bd3d8ec0455833f3", "score": "0.5190968", "text": "public static void findTriplets(int[] arr,int n)\n {\n boolean found = false;\n for (int i=0;i<n-2;i++)\n {\n for (int j=i+1; j<n-1; j++)\n {\n for(int k=j+1; k<n;k++)\n {\n if(arr[i]+arr[j]+arr[k] == 0)\n {\n System.out.println(arr[i]);\n System.out.println(\" \");\n System.out.println(arr[j]);\n System.out.println(\" \");\n System.out.println(arr[k]);\n System.out.println(\"\\n\");\n found = true;\n }\n }\n }\n }\n //if no triplet with 0 sum found in arrat\n if(found == false)\n System.out.println(\"not exist\");\n }", "title": "" }, { "docid": "045047fb868721c614e70c11268e62b0", "score": "0.518709", "text": "public boolean findComplimentaryPair_O_NlogN(int []a, int k, int[] basket){\n\t\tQuickSort.qSort(a, 0, a.length-1);\n\t\tint i = 0;\t\t//left pointer\n\t\tint j = a.length - 1; // right pointer\n\n\t\twhile( i <= j){\n\t\t int s = a[i] + a[j];\n\t\t if(s < k){\n\t\t ++i;\n\t\t }else if( s > k ){\n\t\t --j;\n\t\t }else{\n\t\t basket[0] = i;\n\t\t basket[1] = j;\n\t\t return true;\n\t\t }\n\t\t }\n\t\t return false;\n\t}", "title": "" }, { "docid": "c204fb4cf1f703d92c42409c44b0280a", "score": "0.51794785", "text": "public static void getLeastNumbers_2(int[] input, int[] output) {\n int start = 0;\n int end = input.length - 1;\n int k = output.length;\n int index = partition(input, start, end);\n while(index != k - 1) {\n if(index > k - 1) {\n end = index - 1;\n index = partition(input, start, end);\n }\n else {\n start = index + 1;\n index = partition(input, start, end);\n }\n }\n \n for(int i = 0; i < k; ++i)\n output[i] = input[i];\n }", "title": "" }, { "docid": "7231551c646a9d168d569ff4a1c4da34", "score": "0.5179257", "text": "static long findNumberOfTriangles(int arr[], int n)\n {\n\n long count=0;\n\n for(int i=0;i<n;i++){\n for(int j=i;j<n;j++){\n if(arr[i]>arr[j]){\n int temp=arr[j];\n arr[j]=arr[i];\n arr[i]=temp;\n }\n }\n }\n\n int k =n-1;\n for(int i=n-2;i>=0;i--){\n for(int j=i-1;j>=0;j--){\n if(arr[k]<arr[j]+arr[i]){\n count++;\n }\n }\n k--;\n }\n\n return count;\n }", "title": "" }, { "docid": "9626ca1ec9738f1d88ecf8396c243450", "score": "0.51759225", "text": "public void triplet(int[] b,int n){\r\n\t\tint count=0;\r\n\t\tfor(int i=0;i<n;i++){\r\n\t\t\tfor(int j=i+1;j<n-1;j++){\r\n\t\t\t\tfor(int k=j+1;k<n-2;k++){\r\n\t\t\t\t\tif(b[i]+b[j]+b[k]==0){\r\n\t\t\t\t\t\tSystem.out.println(b[i]+\" \"+b[j]+\" \"+b[k]);\r\n\t\t\t\t\t\tcount++;\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\tSystem.out.println(\"no of distinct triplet is:\"+count);\t\r\n\r\n\t}", "title": "" }, { "docid": "f45c8d784a12a0681492a1e41534bc60", "score": "0.51750505", "text": "static public int solve(int n,int A[])\n {\n int freqArr[] = new int[1001];\n int dp[] = new int[1001];\n\n for(int i=0; i<n; i++){\n freqArr[A[i]]++;\n }\n\n dp[0] = 0;\n dp[1] = freqArr[1] > 0 ? freqArr[1] : 0;\n\n for(int i=2; i<=1000; i++){\n dp[i] = Math.max(dp[i-2] + i*freqArr[i], dp[i-1]);\n }\n return dp[1000];\n }", "title": "" }, { "docid": "e20e98cf135ae7473a797028354005ac", "score": "0.5174452", "text": "private static List<Integer> getCommonElementsAlgo2(int [] arr1, int [] arr2) {\n\t\t\n\t\tList<Integer> duplicates = new ArrayList<>();\n\t\t\n\t\tHashtable<Integer, Integer> table = new Hashtable<>();\n\t\t\n\t\tfor (int i : arr1) {\n\t\t\tif (table.containsKey(i)) {\n\t\t\t\ttable.put(i, table.get(i) + 1);\n\t\t\t}\n\t\t\ttable.put(i, 1);\n\t\t}\n\t\t\n\t\tfor (int j : arr2) {\n\t\t\tif (table.containsKey(j)) {\n\t\t\t\tduplicates.add(j);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn duplicates;\n\t\t\n\t}", "title": "" }, { "docid": "b8717c7f25095913c9ba44e92b64b6b5", "score": "0.51599747", "text": "public void log(int[] numbers) {\n\t\tSystem.out.println(); // O(1)\n\t\tfor (int number: numbers) // O(n)\n\t\t\tSystem.out.println(number);\n\t\tSystem.out.println(); // O(1)\n\t\t\n\t\t// O(2n), O(n+n)\n\t\t// We can drop 2* constant, O(n). Both represent linear growth\n\t\t// as we care only about input size\n\t\tfor (int number: numbers) // O(n)\n\t\t\tSystem.out.println(number);\n\t\tfor (int number: numbers) // O(n)\n\t\t\tSystem.out.println(number);\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "4f08c31855c085113a65898ab3e47ac5", "score": "0.51555425", "text": "@Override public short getComplexity() {\n return 0;\n }", "title": "" }, { "docid": "71db081695f87baee340a75674a3d21f", "score": "0.51515883", "text": "public static int findCommon2(int[] in1, int[] in2) {\r\n\t\tint common = 0;\r\n\t\t//iterate through the shorter array and do a binary search for every element of short array in big array\r\n\t\tif (in2.length > in1.length) {\r\n\t\t\tfindCommon2(in2, in1);\r\n\t\t}\r\n\t\t//nlogn\r\n\t\tArrays.sort(in2);\r\n\t\t//mlogn\r\n\t\tfor (int i = 0; i < in1.length; i++) {\r\n\t\t\tif(Arrays.binarySearch(in2, in1[i]) > 0) {\r\n\t\t\t\t++common;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn common;\r\n\t}", "title": "" }, { "docid": "f832de4f9c92436e9177335e9f139fa1", "score": "0.5142939", "text": "private static void second(int[] arr, int sum){\n\n Map<Integer,Boolean> map = new Hashtable<>();\n\n for(int i:arr){\n\n if (map.containsKey(sum - i)){\n System.out.println(i + \" , \" + (sum-i));\n }\n else{\n map.put(i, true);\n }\n\n }\n\n }", "title": "" }, { "docid": "733c75e65f056d9f6bb08469154477ee", "score": "0.51423395", "text": "private boolean calculateMaximumLengthBitonicSubarray() {\n\n boolean found = false; // does any BSA found\n\n boolean directionChange = false; //does direction numberOfWays increase to decrease\n\n int countOfChange = 0;\n\n int i = 0;\n directionChange = false;\n int start = i;\n i++;\n for (; i < input.length; i++) {\n if (countOfChange != 0 && countOfChange % 2 == 0) {\n if (this.length < (i - 2 - start + 1)) {\n this.i = start;\n this.j = i - 2;\n this.length = this.j - this.i + 1;\n }\n start = i - 2;\n countOfChange = 0;\n }\n\n if (input[i] > input[i - 1]) {\n if (directionChange == true) {\n countOfChange++;\n }\n directionChange = false;\n }\n if (input[i] < input[i - 1]) {\n if (directionChange == false) {\n countOfChange++;\n }\n directionChange = true;\n }\n\n\n }\n\n if (directionChange == true) {\n if (this.length < (i - 1 - start + 1)) {\n this.i = start;\n this.j = i - 1;\n this.length = this.j - this.i + 1;\n }\n }\n return directionChange;\n }", "title": "" }, { "docid": "b0ae87ed717d90dc303e1506307b8a0d", "score": "0.5141651", "text": "static void heapify1(Vector<Integer> arr, int n, int i) {\r\n\t\tint s = i;\r\n\t\tint l = 2 * i + 1;\r\n\t\tint r = l + 1;\r\n\r\n\t\tif (r < n && arr.get(s) > arr.get(r)) {\r\n\t\t\ts = r;\r\n\t\t}\r\n\t\tif (l < n && arr.get(s) > arr.get(l)) {\r\n\t\t\ts = l;\r\n\t\t}\r\n\t\tif (s != i) {\r\n\t\t\tint temp = arr.get(i);\r\n\t\t\tarr.set(i, arr.get(s));\r\n\t\t\tarr.set(s, temp);\r\n\t\t\theapify1(arr, n, s);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "104ebace3a421f85c15c8780340302e3", "score": "0.5141491", "text": "static void UseArrayList(ArrayList<Integer> myList2){\r\n\t\tLong start = System.currentTimeMillis();\r\n\t\tfor (int n=0; n<myList2.size();n++)\r\n\t\t{\r\n\t\t\tfor (int m=n+1; m<myList2.size();m++){\r\n\t\t\t\tif( myList2.get(n)== myList2.get(m) ) {System.out.println(\"Duplicate found \"+myList2.get(n));}\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong End = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Total time taken for executing this code is: \" + (End-start));\r\n\t}", "title": "" }, { "docid": "9da7dd118f2b2f14450648068449180b", "score": "0.5135521", "text": "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t\tint n = sc.nextInt();\r\n\t\tint[] a = new int[n];\r\n\t\tfor(int i = 0; i < n; i++){\r\n\t\t\ta[i] = sc.nextInt();\r\n\t\t}\r\n\t\tint res = 0, p = 0, t = 0;\r\n\t\twhile(true){\r\n\t\t\tp = 0; t = 0;\r\n\t\t\tfor(int i = 0; i < a.length; i++){\r\n\t\t\t\t\r\n\t\t\t\tif(i == a.length-1){\r\n\t\t\t\t\ta[i] /= 2;\r\n\t\t\t\t\tt = a[i];\r\n\t\t\t\t\ta[i] += p;\r\n\t\t\t\t\tp = t;\r\n\t\t\t\t\ta[0] += p;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\ta[i] /= 2;\r\n\t\t\t\t\tt = a[i];\r\n\t\t\t\t\ta[i] += p;\r\n\t\t\t\t\tp = t;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tboolean flag = true;\r\n\t\t\tint temp = a[0];\r\n\t\t\tfor(int j = 1; j < a.length; j++){\r\n\t\t\t\tif(a[j] != temp){\r\n\t\t\t\t\tflag = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(flag){\r\n\t\t\t\tSystem.out.println(res);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tfor(int j = 0; j < a.length; j++){\r\n\t\t\t\tif(a[j] % 2 != 0){\r\n\t\t\t\t\ta[j] += 1;\r\n\t\t\t\t\tres++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7417ba3c1f7053792c96de818aedc51f", "score": "0.5132177", "text": "static int linearLogTime(int[] n, int[] m) {\n if(n == null || n.length == 0 || m == null || m.length == 0) return -1;\n int sum = 0;\n for(int i = 0; i < n.length; ++i) {\n sum += logTime(m, 0, m.length, 15);\n }\n return sum;\n }", "title": "" }, { "docid": "fe31f5be4f9cd3275b2b34eaebecd24b", "score": "0.5124547", "text": "private int hashFunc2(String word) {\n int hashVal = word.hashCode();\n hashVal = hashVal % arraySize;\n\n if (hashVal < 0) {\n hashVal += arraySize;\n }\n\n // Research shows that you can use a Prime number Less than the array size to calculate the step value.\n // Prime Number 3 arbitrarily chosen.\n return 3 - hashVal % 3;\n }", "title": "" }, { "docid": "88fd7f7c0a06ad1bf19b1921d84bef7c", "score": "0.51070553", "text": "private int calcDistanceMemoize(int i, int j, char[] one, char[] two, int [][]table) {\n if (i < 0)\n return j+1;\n\tif (j < 0)\n\t return i+1;\n\n if (table[i][j] == -1) \n table[i][j] = calcDistanceRecursive(i, j, one, two, table);\n\t\n return table[i][j];\n }", "title": "" }, { "docid": "059d0c4f6374d5e3d179c64686aaf324", "score": "0.5106814", "text": "public int solution(int K, int[] A) {\n HashMap<Integer,ArrayList<Integer>> map = new HashMap<Integer,ArrayList<Integer>>();\n \n int dup=0,nonDup=0;\n for (int i=0;i< A.length;i++){\n if(2*A[i]==K){\n if(!map.containsKey(A[i])){\n dup++;\n map.put(A[i],new ArrayList<Integer>());\n }\n continue;\n }\n \n if(!map.containsKey(A[i])){\n \tmap.put(A[i],new ArrayList<Integer>());\n }\n map.get(A[i]).add(i);\n nonDup+=map.get(K-A[i]).size();\n }\n return nonDup*2+dup;\n }", "title": "" }, { "docid": "69bb3869d583071e0c52247ecb843be0", "score": "0.51032996", "text": "static int logTime(int[] n, int start, int end, int val) {\n if(n == null || n.length == 0) return -1;\n int mid = (start + end) / 2;\n if(val < n[mid]) logTime(n, 0, mid, val);\n if(val > n[mid]) logTime(n, mid + 1, n.length, val);\n return n[mid];\n }", "title": "" }, { "docid": "85cfc012b3955bd9cad5e76e48f348a1", "score": "0.50992733", "text": "public static int getBetterApproach(int n){\n\t\t\n\t\tint t[] = new int[n+1];\n\t\t\n if(n<=2)\n return n;\n \n\t\tt[0] = 0;\n\t\tt[1] = 1;\n\t\tt[2] = 2;\n\t\tfor(int i = 3;i<=n;i++){\n\t\t\tt[i] = t[i-1] + t[i-2];\n\t\t}\n\t\treturn t[n];\n\t}", "title": "" }, { "docid": "55f1d8c60a22970cc772ac5cd78ac008", "score": "0.50988466", "text": "public static void main(String[] args) {\n\t\tArrays.fill(arr, 1);\n\t\tlong startTime = System.nanoTime();\n\t\t// Traverse till square root of MAX\n\t\t// Using logic similar to sieve of eratosthenes to\n\t\t// populate factor sum array\n\t\tint limit = (int)Math.sqrt(MAX);\n\t\tfor (int i = 2; i <= limit; ++i) {\n\t\t\tint j = i+i;\n\t\t\tint count = 2;\n\t\t\twhile (j <= MAX){\n\t\t\t\t// As we already add count (j/i) to the factor sum when adding i,\n\t\t\t\t// we don't add when i is equal to or greater than count\n\t\t\t\tif (i < count) {\n\t\t\t\t\t// Adding i and count (j/i) to the factor sum of j\n\t\t\t\t\tarr[j] += i;\n\t\t\t\t\tarr[j] += count;\n\t\t\t\t}\n\t\t\t\tj += i;\n\t\t\t\tcount++;\n\t\t\t} \n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tSystem.out.println(\"The following are amicable numbers\");\n\t\tfor (int i = 2; i <= MAX; ++i) {\n\t\t\tint num = arr[i];\n\t\t\tif (num <= MAX && num > i) {\n\t\t\t\tif (arr[num] == i) {\n\t\t\t\t\tSystem.out.println(count+\": \"+i+\" and \"+num);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tlong endTime = System.nanoTime();\n\t\tdouble duration = timeInSec(endTime,startTime) ;\n\t\tSystem.out.println(\"Run time \" + duration + \" : secs\");\t\t\n\t}", "title": "" }, { "docid": "abe005fe8a1eb03efeeca6662656bb93", "score": "0.5097446", "text": "static int findMajority(int arr[], int n) {\n int res = 0, count = 1;\n\n for (int i = 1; i < n; i++) {\n if (arr[res] == arr[i])\n count++;\n else\n count--;\n if (count == 0) {\n res = i;\n count = 1;\n }\n }\n\n count = 0;\n for (int i = 0; i < n; i++) {\n if (arr[res] == arr[i])\n count++;\n\n }\n if (count < n / 2)\n res = -1;\n return res;\n }", "title": "" }, { "docid": "2fe623c9569c87415570de0101411b62", "score": "0.5089916", "text": "public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {\n if (t < 0) return false;\n long sz = (long)t + 1;\n Map<Long, Long> map = new HashMap<>();\n for (int i = 0; i < nums.length; ++i) {\n long bucket = getBucket(nums[i], sz);\n if (map.containsKey(bucket)) return true;\n if (map.containsKey(bucket + 1) && Math.abs(nums[i] - map.get(bucket + 1)) < sz) return true;\n if (map.containsKey(bucket - 1) && Math.abs(nums[i] - map.get(bucket - 1)) < sz) return true;\n map.put(bucket, (long)nums[i]);\n if (i >= k) map.remove(getBucket(nums[i - k], sz));\n }\n return false;\n}", "title": "" }, { "docid": "fff2f4b8ca8ca1774c22f8c10e3d8294", "score": "0.50855106", "text": "public int findFirstUniqueNumber (List<Integer> numberList) {\n\n ////// Solution 1:\n LinkedHashMap<Integer, Integer> occurMap = new LinkedHashMap<>();\n\n for (int number: numberList) { // O(n)\n if (occurMap.containsKey(number) && occurMap.get(number) != 0) {\n occurMap.replace(number, occurMap.get(number), 0);\n }\n occurMap.putIfAbsent(number, 1);\n }\n\n for (Map.Entry<Integer, Integer> entry: occurMap.entrySet()) {\n if (entry.getValue() == 1) {\n return entry.getKey();\n }\n }\n\n ////// Solution 2: O(n * n)\n// for (int n: numberList) {\n// if (numberList.indexOf(n) == numberList.lastIndexOf(n)) { // O(n * n)\n// return n;\n// }\n// }\n\n return -1;\n }", "title": "" }, { "docid": "ffa18f81d69e3a3197348fc2d1029bb9", "score": "0.50822055", "text": "public int sget2(int n) {\n\t\tint res = get(n);\n\t\tint top = 1 << (n - 1);\n\t\tif ((res & top) != 0) {\n\t\t\tint mask = top - 1;\n\t\t\tif ((res & mask) == 0) {\n\t\t\t\tint res2 = sget2(n);\n\t\t\t\tres = (~mask | res) + 1 + res2;\n\t\t\t} else {\n\t\t\t\tres = ~mask | res;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "title": "" }, { "docid": "69a41113cc711dd18300e77f2047e88b", "score": "0.50778216", "text": "public int[] twoSum2(int[] nums, int target) {\n int[] res = new int[2];\n int n = nums.length;\n Map<Integer, Integer> map = new HashMap<>();\n for (int i = 0; i < n; i++) {\n map.put(nums[i], i);\n }\n for (int i = 0; i < n; i++) {\n int key = target - nums[i];\n if (map.containsKey(key) && map.get(key) != i) {\n res[0] = i;\n res[1] = map.get(key);\n return res;\n }\n }\n return res;\n }", "title": "" }, { "docid": "1b187a1186224cb58a98fd9ea12ff8ca", "score": "0.5075288", "text": "public static int findCommon4(int[] in1, int[] in2) {\r\n\t\tint common = 0;\r\n\t\t//mlogn\r\n\t\tArrays.sort(in1);\r\n\t\t//nlogn\r\n\t\tArrays.sort(in2);\r\n\t\t//m+n-1 (as one element will remain uncompared in the end)\r\n\t\tint i=0,j=0;\r\n\t\twhile (i < in1.length && j < in2.length) {\r\n\t\t\tif (in1[i] == in2[j]) {\r\n\t\t\t\t++common;\r\n\t\t\t\t++i;\r\n\t\t\t\t++j;\r\n\t\t\t} else if (in1[i] < in2[j]) {\r\n\t\t\t\t++i;\r\n\t\t\t} else {\r\n\t\t\t\t++j;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn common;\r\n\t}", "title": "" }, { "docid": "80862abbee4b35c0f8f9e298147d31c3", "score": "0.5069688", "text": "public static int[] answer(int[] data, int n) {\n\t\tHashMap <Integer, Integer> h = new HashMap<Integer, Integer>();\r\n\t\t\r\n\t\tfor (int i=0; i<data.length; i++){\r\n\t\t\tif (!h.containsKey(data[i])){\r\n\t\t\t\th.put(data[i], 0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\th.put(data[i], h.get(data[i])+1);\r\n\t\t\t//h[data[i]]++;\r\n\t\r\n\t\t\tif (h.get(data[i]) > n){\r\n\t\t\t\th.put(data[i], Integer.MIN_VALUE);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tArrayList<Integer> r = new ArrayList<Integer>();\r\n\t\t\r\n\t\tfor(int i=0; i<data.length; i++){\r\n\t\t\t\r\n\t\t\tif (h.get(data[i])>0){\r\n\t\t\t\tr.add(data[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//pp(h);\r\n\t\t//System.out.println(h);\r\n\t\t\r\n\t\tint [] rr = new int [r.size()];\r\n\r\n\t\tfor(int k=0; k<r.size(); k++){\r\n\t\t\trr[k] = r.get(k);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn rr;\r\n }", "title": "" }, { "docid": "4ed2ad042b9ecc1a298de120b6c9cf18", "score": "0.5069571", "text": "public static int firstMissingEffective(int[] x){\n int i = 0;\n while(i<x.length){\n // first two conditions check that element can correspond to index of array\n // third condition checks that they are not in their required position\n // fourth condition checks that there is no duplicate already at their position\n if( x[i]>0 && x[i]<x.length && x[i]-1!=i && x[x[i]-1]!=x[i]) exch(x,i,x[i]-1);\n else i++;\n }\n\n // second pass\n for(int j=0; j < x.length; j++){\n if( x[j]-1!=j) return j+1;\n }\n return x.length+1;\n\n }", "title": "" }, { "docid": "23c47496714408b5075c9cbd782e6f7c", "score": "0.506738", "text": "public boolean containsNearbyDuplicate2(int[] nums, int k) {\n \tif(nums == null || nums.length <=1) return false;\r\n \tSet<Integer> set = new HashSet<Integer> ();\r\n \tfor(int i=0; i< nums.length; i++) {\r\n \t\tif(i>k) set.remove(nums[i-k-1]);\r\n \t\tif(!(set.add(nums[i]))) return true;\r\n \t}\r\n \treturn false;\r\n }", "title": "" }, { "docid": "7e975896c1b9f87bac6d05795ee66173", "score": "0.50671995", "text": "static void subsetSums(int arr[], int n)\n {\n \n // There are totoal 2^n subsets\n int total = 1 << n;\n \n // Consider all numbers from 0 to 2^n - 1\n for (int i = 0; i < total; i++) {\n int sum = 0;\n \n // Consider binary reprsentation of\n // current i to decide which elements\n // to pick.\n for (int j = 0; j < n; j++)\n if ((i & (1 << j)) != 0)\n sum += arr[j];\n \n // Print sum of picked elements.\n System.out.print(sum + \" \");\n }\n }", "title": "" }, { "docid": "77a1f8ea17a5084c67ec7ebbb66b8c43", "score": "0.50665456", "text": "static int uniqueNumbers(int arr[], int n)\n {\n // Sorting the given array\n Arrays.sort(arr);\n\n // This array will store the frequency\n // of each number in the array\n // after performing the given operation\n int freq[] = new int[n + 2];\n\n // Initialising the array with all zeroes\n for(int i = 0; i < n + 2; i++)\n freq[i] = 0;\n\n // Loop to apply operation on\n // each element of the array\n for (int x = 0; x < n; x++) {\n\n // Incrementing the value at index x\n // if the value arr[x] - 1 is\n // not present in the array\n if (freq[arr[x] - 1] == 0) {\n freq[arr[x] - 1]++;\n }\n\n // If arr[x] itself is not present, then it\n // is left as it is\n else if (freq[arr[x]] == 0) {\n freq[arr[x]]++;\n }\n\n // If both arr[x] - 1 and arr[x] are present\n // then the value is incremented by 1\n else {\n freq[arr[x] + 1]++;\n }\n }\n\n // Variable to store the number of unique values\n int unique = 0;\n\n // Finding the unique values\n for (int x = 0; x <= n + 1; x++) {\n if (freq[x] != 0) {\n unique++;\n }\n }\n\n // Returning the number of unique values\n return unique;\n }", "title": "" }, { "docid": "7ecc532bdb7d4e9de65c79bfd7ba0331", "score": "0.5066266", "text": "static public void findPossibleTrianglesCount_V1(int[] arr, int n){\n \r\n int i,j,k; //loop or index variables\r\n int nTriangles = 0;\r\n \r\n for(i=0; i<n-2; i++){\r\n for(j=i+1; j<n-1; j++){\r\n for(k=j+1; k<n; k++){\r\n if(arr[i] != arr[j] && arr[i] != arr[k] && arr[j] != arr[k]){\r\n if(arr[i]+arr[j] > arr[k] && arr[i]+arr[k] > arr[j] && arr[j]+arr[k] > arr[i] ){ //a+b > c \r\n System.out.println(arr[i] + \" , \" + arr[j] + \" , \" + arr[k]);\r\n nTriangles+=1;\r\n }\r\n } //if\r\n } //innermost for k\r\n } //inner for j\r\n } //outer for i\r\n \r\n System.out.println(\"Number of possible triangles: \" + nTriangles);\r\n }", "title": "" }, { "docid": "0a4ebafa21ae8affa2855b919d4dd88d", "score": "0.50502264", "text": "static long arrayManipulation(int n, int[][] queries) {\r\n long result = 0, sum = 0;\r\n long[] arr = new long[n];\r\n for(int i = 0; i < queries.length; i++){\r\n int firstIndex = queries[i][0] - 1;\r\n int lastIndex = queries[i][1] - 1;\r\n long numberToAdd = queries[i][2];\r\n arr[firstIndex] += numberToAdd;\r\n if (lastIndex+1 < n)\r\n arr[lastIndex+1] -= numberToAdd;\r\n }\r\n\r\n for(long l : arr){\r\n sum += l;\r\n if(sum > result)\r\n result = sum;\r\n }\r\n\r\n return result;\r\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "638c3badc78adbefed9d55ce262cbde8", "score": "0.0", "text": "@Override\n\tpublic void resume() {\n\t\t\n\t}", "title": "" } ]
[ { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.6681592", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.6681592", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "ccbad2fe39581989696edf7ff479266d", "score": "0.65706384", "text": "private static void somrtinhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.64830863", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.64358324", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "c63a11bb1bf0acb98a99c66ee94527a7", "score": "0.63142073", "text": "@Override\r\n\tpublic void ispeci() {\n\r\n\t}", "title": "" }, { "docid": "ccde520bca72caa0d77ef1b117291759", "score": "0.6233861", "text": "@Override\r\n\tpublic void osmossis() {\n\r\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "9b8d94120800074e25f9674e2e960bd0", "score": "0.62156105", "text": "@Override\n public void curar() {\n\n }", "title": "" }, { "docid": "73d2e78e03547e3a30a40b196bae2c7d", "score": "0.61959624", "text": "@Override\r\n\tpublic void calificar() {\n\r\n\t}", "title": "" }, { "docid": "74a1be816f56189120d6d74f61abd8f9", "score": "0.6177264", "text": "@Override\n\tpublic void apagate() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9674eaf92d88fa5ee1741a3c135f859c", "score": "0.609503", "text": "@Override\n\tpublic void Resert() {\n\n\t}", "title": "" }, { "docid": "c04e1693c791e5601b6d72a13641e7b1", "score": "0.60708153", "text": "@Override\n\tpublic void angriff() {\n\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.60667324", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "4a4d6ca4f76cf550f30a1b3469c5c600", "score": "0.6050197", "text": "@Override\n\tpublic void heilen() {\n\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.60484", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.60398114", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.6027122", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "792350939017ccf304337ff492e7db06", "score": "0.601073", "text": "@Override\n\tpublic void init() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.600875", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "06b59299a5db6a0902fdbf88e7826cfa", "score": "0.599773", "text": "private void naceSer() {\n\n\t}", "title": "" }, { "docid": "2ccd2a90144fab8b5fa71c58ca003352", "score": "0.5978821", "text": "@Override\n\tpublic void falar() {\n\t\t\n\t}", "title": "" }, { "docid": "0f6e1929716bfb216fb0d53f4c72c746", "score": "0.5975817", "text": "@Override\n\tpublic void hesapla() {\n\t\t\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935147", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "fede515c585b365b04aace2b909737cf", "score": "0.59062445", "text": "@Override\r\n\tvoid dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "8a51433116320d5ea7de338cae668e7e", "score": "0.5878679", "text": "@Override\n\tpublic void competir() {\n\t\t\n\t}", "title": "" }, { "docid": "69b1247a4afd513b9853da385d6f2d24", "score": "0.5865623", "text": "@Override\n\tpublic void resta() {\n\t\t\n\t}", "title": "" }, { "docid": "b8693030a2b5a0ed9423a2578e5d2a26", "score": "0.58643967", "text": "@Override\n\tpublic void toto() {\n\t\t\n\t}", "title": "" }, { "docid": "f3d9d337b86266fa06b6c124066ba10f", "score": "0.5853753", "text": "@Override\n\tpublic void suivant() {\n\n\t}", "title": "" }, { "docid": "ab2f45ed8ffa08a06ff449780f0ea9da", "score": "0.5835419", "text": "@Override\r\n\tpublic void ha() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9293596216c60e2004e0a8cfb950ad0f", "score": "0.5823172", "text": "@Override\r\n\tpublic void pripremi() {\n\r\n\t}", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "8a33b8de7a2fdf8b7088903dc4a4cf5f", "score": "0.5779682", "text": "@Override\n\tpublic void affiche() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c19a49911957739008b73b032429cb01", "score": "0.57708335", "text": "public void initalize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1717024d52ad1ad5517c9f135ea71904", "score": "0.57634485", "text": "@Override\r\n\tprotected void initValue()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "598681cc815af7b9f96d5d7ce97e7b20", "score": "0.5756299", "text": "public void mo5669b() {\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.5737521", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "dbccea21c95a2d676935a3ea758b163e", "score": "0.57351506", "text": "@Override\r\n\tpublic void limpiar() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94b0ced5bfd6c8796dfd708a164694df", "score": "0.5717778", "text": "@Override\n public void desplazarse() {\n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "a1a79ff63f3eb784a0134fc70f7de913", "score": "0.57160354", "text": "@Override\n\tpublic void initdata() {\n\n\t}", "title": "" }, { "docid": "27e436f0a0c9200a542c73eabe9c3662", "score": "0.57140064", "text": "private void Met4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6c823d8b0c4f55d3f03359daefc39a00", "score": "0.5712678", "text": "@Override\n\tpublic void lanzar() {\n\n\t}", "title": "" }, { "docid": "15823e29a9b2fc554cc535992e0eacee", "score": "0.5709881", "text": "@Override\r\n\tpublic void initData() {\n\r\n\r\n\t}", "title": "" }, { "docid": "0694b71fd24e10a480fa3f3dcd28b3ca", "score": "0.570341", "text": "public void mo7243j() {\n }", "title": "" }, { "docid": "9b197585ec90d98a2e41d154a1678e4a", "score": "0.57023877", "text": "@Override\n protected void refreshInit() {\n \n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "a3060192856bd2663b96bd0ef31d99fd", "score": "0.56853366", "text": "@Override\n\t\t\t\tpublic void refresh() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "c13ae19df69e3abfecf963fdcf9a29ee", "score": "0.568208", "text": "@Override\n\tpublic void c12() {\n\t\t\n\t}", "title": "" }, { "docid": "3207dcaa6322a2a59b6687b951ef91d7", "score": "0.5679023", "text": "@Override\n\tpublic void Damege() {\n\t\t\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "5d97082ad890b2df7c126438819d2c54", "score": "0.5665557", "text": "private void envejecer() {\n\t\t\n\t}", "title": "" }, { "docid": "8c203fbc4b35fbc9b64bf6b47d67d29a", "score": "0.56584716", "text": "@Override\n\tpublic void freshStart() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "4dc967945b63b3f9ccc200b50799205b", "score": "0.56479424", "text": "@Override\n\tprotected Item func_149866_i() {\n return null;\n }", "title": "" }, { "docid": "4701bace660096d78c2bf92bfe4b6dd4", "score": "0.5643848", "text": "@Override\n\t\t\t\t\tpublic Sequence sequence() {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "title": "" }, { "docid": "8ce70d18e04299fa79dc9066550f3a42", "score": "0.56376165", "text": "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f2b0e20cc959024f21173c16e77430c4", "score": "0.5629117", "text": "@Override\n\tpublic void deneme() {\n\t\t\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5628332", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "892e81ba33fe99f590f49f4fd7ed10a8", "score": "0.5621647", "text": "private void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.5617086", "text": "public final void mo63019a() {\n }", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.5617086", "text": "public final void mo63019a() {\n }", "title": "" }, { "docid": "1e530a3abecfdbdcf6f7ca4bd7294921", "score": "0.56150234", "text": "@Override\n\tpublic void andar() {\n\t\t\n\t}", "title": "" } ]
1b0db9a86fbc30535f4932272842fb48
/ renamed from: a
[ { "docid": "09b7c391ee6775df683ff855937e822a", "score": "0.0", "text": "public final void mo25387a(String str, String str2, int i, ServiceConnection serviceConnection, String str3) {\n mo25389b(new C9880a(str, str2, i), serviceConnection, str3);\n }", "title": "" } ]
[ { "docid": "59fb7d137f85b012d3708b776f11150f", "score": "0.6218701", "text": "public interface C32666a {\n /* renamed from: a */\n void mo84109a();\n }", "title": "" }, { "docid": "42bede8e5f8886d152f3ee2639e2ed0e", "score": "0.6139383", "text": "public interface C11126a {\n /* renamed from: a */\n void mo38931a();\n }", "title": "" }, { "docid": "ad155f6673d224f4237a3f40fbc5ff93", "score": "0.61253923", "text": "public interface C1329a {\n /* renamed from: a */\n void mo1126a();\n }", "title": "" }, { "docid": "e43677f14a44267debe15d95e1a3685c", "score": "0.6087863", "text": "public interface C2133a {\n /* renamed from: a */\n void mo7763a();\n}", "title": "" }, { "docid": "0803842e69076deac8fe0748dfe90f50", "score": "0.60869926", "text": "public interface C9189b {\n /* renamed from: a */\n void mo9236a(int i);\n }", "title": "" }, { "docid": "b999f2dbad1d4f7c45e4035532f7a605", "score": "0.60529524", "text": "public interface C0489a {\n /* renamed from: a */\n Object mo3406a();\n }", "title": "" }, { "docid": "7908226c7ea226e033be8e077bd5a7ba", "score": "0.60422593", "text": "public interface C4382a {\n /* renamed from: a */\n void mo23365a();\n\n /* renamed from: b */\n void mo23366b();\n }", "title": "" }, { "docid": "fb9f431b95b0f987a8462a51768cceaa", "score": "0.60331315", "text": "public interface C0263jr {\n /* renamed from: a */\n void mo3747a();\n}", "title": "" }, { "docid": "5e4ff1152fd3eee3df23afeeb132b176", "score": "0.60135376", "text": "public interface C37381d {\n /* renamed from: a */\n void mo69769a();\n}", "title": "" }, { "docid": "50fa2ba58104680aaa21e4ef0a11e3ae", "score": "0.5993191", "text": "public interface C9307c {\n /* renamed from: a */\n void mo21812a();\n }", "title": "" }, { "docid": "eb0196bb9866eca7ea8245b15fed9870", "score": "0.5973832", "text": "protected oa a(ada paramada)\r\n/* 29: */ {\r\n/* 30:38 */ return a;\r\n/* 31: */ }", "title": "" }, { "docid": "65f38214c915ad500d425a7aa03cbaf0", "score": "0.5973552", "text": "public interface C0288a {\n /* renamed from: a */\n Object mo879a(View view, Object obj);\n }", "title": "" }, { "docid": "d45d3a5166888aee53d4f68589d465ca", "score": "0.59695315", "text": "public interface C2308a {\n /* renamed from: a */\n int mo5634a(int i);\n }", "title": "" }, { "docid": "389aff6f7210aafe7ad92a979640a147", "score": "0.5953496", "text": "public interface C12589f {\n /* renamed from: a */\n void mo30864a(Object obj);\n}", "title": "" }, { "docid": "9703ff562cfed5366eeff57681d0922f", "score": "0.59494436", "text": "public interface C18485j {\n /* renamed from: a */\n void mo47972a();\n}", "title": "" }, { "docid": "6c2a21c36fd32d6bcd75fe20a01654f4", "score": "0.5918676", "text": "public interface C1467a<T> {\n /* renamed from: a */\n void mo6708a(T t);\n}", "title": "" }, { "docid": "be1ea47945323d17bec7df2a34950ac2", "score": "0.5893873", "text": "public interface C2608a {\n /* renamed from: a */\n void mo1973a();\n\n /* renamed from: b */\n void mo1974b();\n }", "title": "" }, { "docid": "feecc8c1716d6c5dbc5dd79c2bc528a6", "score": "0.58885384", "text": "interface C0287g {\n /* renamed from: a */\n void mo942a(C0288h c0288h);\n}", "title": "" }, { "docid": "627d879051ff8ff2cd5ea444065ee4be", "score": "0.585964", "text": "public interface C14916b {\n /* renamed from: a */\n String mo37946a();\n\n /* renamed from: b */\n int mo37947b();\n}", "title": "" }, { "docid": "71865ee6087d666262e800e9b32a83d4", "score": "0.58540416", "text": "public interface C5579b {\n /* renamed from: a */\n void mo11983a();\n\n /* renamed from: a */\n void mo11984a(C2328a aVar);\n\n /* renamed from: b */\n void mo11985b(C2328a aVar);\n }", "title": "" }, { "docid": "7c5125c5540339ab337a6b3431a21919", "score": "0.5819651", "text": "public interface C26588c {\n /* renamed from: a */\n void mo68269a();\n }", "title": "" }, { "docid": "3bc1933ca9f548dec2c4c1f5dd972689", "score": "0.5814237", "text": "public interface C2740b {\n /* renamed from: a */\n void mo2082a(C2739a c2739a);\n }", "title": "" }, { "docid": "bed5a3aeb118fb670021fca1373d7d99", "score": "0.58131325", "text": "public interface C5170g {\n /* renamed from: a */\n void mo18975a(int i);\n}", "title": "" }, { "docid": "c97dc0557fb09dd7df3ebbbc24d20e20", "score": "0.58058804", "text": "public interface C30352b<T> {\n /* renamed from: a */\n void mo67980a(T t, int i);\n}", "title": "" }, { "docid": "fb635bb237864b54d87d2069c810668c", "score": "0.580423", "text": "public void a(pm ☃, s.a<a> a1) {}", "title": "" }, { "docid": "661ca8d6c3403670fa658001057d930d", "score": "0.57961845", "text": "public interface C32071e {\n /* renamed from: a */\n void mo52415a(C37272b c37272b);\n }", "title": "" }, { "docid": "958bfb9523ca5c6b36c1ecb3bf496b3f", "score": "0.5788958", "text": "interface C1155b {\n /* renamed from: a */\n int mo5316a();\n\n /* renamed from: a */\n int mo5317a(View view);\n\n /* renamed from: a */\n View mo5318a(int i);\n\n /* renamed from: b */\n int mo5319b();\n\n /* renamed from: b */\n int mo5320b(View view);\n }", "title": "" }, { "docid": "bd09917edb37c0c9b6a912c91e840948", "score": "0.5785561", "text": "public interface C4421a {\n /* renamed from: a */\n void mo24709a();\n\n /* renamed from: b */\n void mo24710b();\n\n /* renamed from: c */\n void mo24711c();\n }", "title": "" }, { "docid": "eb7098c74afb598471608a44881e93eb", "score": "0.5781045", "text": "public void b(pm ☃, s.a<a> a1) {}", "title": "" }, { "docid": "50332658a579d3d668766e992ab7abf8", "score": "0.5749245", "text": "private interface C1505d {\n /* renamed from: a */\n void mo6693a(String str, String str2) throws IOException;\n }", "title": "" }, { "docid": "1d1f744ebc5f3b5c57cdf8b02e1fbf67", "score": "0.57268465", "text": "public interface C1939c {\n /* renamed from: a */\n void m9982a(int i);\n }", "title": "" }, { "docid": "cf4d6d4dc39583c244f256f42a4f162f", "score": "0.57239234", "text": "public interface C6865a {\n /* renamed from: a */\n String mo19635a();\n\n /* renamed from: b */\n boolean mo19636b();\n\n /* renamed from: c */\n List<String> mo19637c();\n}", "title": "" }, { "docid": "16c0b5ce6ad37fcf9c47b03dff9ae088", "score": "0.5716316", "text": "public interface ae extends Serializable {\n /* renamed from: a */\n String mo1954a();\n\n /* renamed from: b */\n String mo1955b();\n}", "title": "" }, { "docid": "edd6bef7552fe55205b3e9d6a04c1b80", "score": "0.57154655", "text": "public interface C12427h {\n /* renamed from: a */\n void mo30331a();\n\n /* renamed from: a */\n void mo30332a(String str);\n}", "title": "" }, { "docid": "076b0e0cff37343e7948a7b31ebcf311", "score": "0.5708384", "text": "public interface C1202a<T> {\n /* renamed from: a */\n void mo6434a(T t);\n}", "title": "" }, { "docid": "e8b635d4c7681cebfe13ae193787c097", "score": "0.56579965", "text": "public interface C2461ge {\n /* renamed from: a */\n boolean mo7687a();\n}", "title": "" }, { "docid": "7e25577b26bf47ad6d2f4c35ed996526", "score": "0.56542444", "text": "public interface C0812l extends C4416a<C0506a> {\n\n /* renamed from: f.a.a.g.b.b.l$a */\n public interface C0813a extends C4417a<C0506a> {\n }\n}", "title": "" }, { "docid": "9f5ac681360bef75c980398484c0ba94", "score": "0.56446624", "text": "public interface C0175y {\n /* renamed from: a */\n String mo141a();\n\n /* renamed from: b */\n String mo142b();\n}", "title": "" }, { "docid": "fab3a8f722d39f9e6ec29cac77b090c4", "score": "0.5642093", "text": "public interface C1204bz extends IInterface {\n /* renamed from: a */\n String mo10776a();\n\n /* renamed from: b */\n List<C1210ce> mo10777b();\n}", "title": "" }, { "docid": "a11654126d8c9dd6feaa66de0a497260", "score": "0.56383914", "text": "public interface C0226cy {\n /* renamed from: a */\n CharSequence mo1338a();\n}", "title": "" }, { "docid": "7dc38f75da6f1d1a520b4d3fb4fd5c1c", "score": "0.5629169", "text": "interface C1068c {\n /* renamed from: a */\n void mo4280a();\n\n /* renamed from: b */\n void mo4281b();\n }", "title": "" }, { "docid": "8e59d9fe40b6fa817431132d9db7ca02", "score": "0.5621564", "text": "public interface C2381a {\n /* renamed from: a */\n void mo3482a(Date date);\n}", "title": "" }, { "docid": "086296de9c1a9d5cb01887492e8e3424", "score": "0.5621066", "text": "public interface C25677e extends C25678f {\n /* renamed from: a */\n void mo59135a(int i);\n\n /* renamed from: a */\n void mo59136a(List list, int i);\n}", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.56183887", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.56183887", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "55c46b869b6d786d8df5e3524b6bb6a9", "score": "0.56183887", "text": "@Override\n\tpublic void a() {\n\t\t\n\t}", "title": "" }, { "docid": "3131adc099d843ce7ca173e76e04a8ec", "score": "0.56070566", "text": "public interface C3357du<T extends C3356dt> {\n /* renamed from: a */\n void mo39399a(T t);\n}", "title": "" }, { "docid": "8c41ef0ffb200fb4613008eef13519d8", "score": "0.55940276", "text": "private interface C0396a {\n /* renamed from: b */\n void mo3529b(byte[] bArr, byte[] bArr2);\n }", "title": "" }, { "docid": "26ed182fbbf9294d94a75641a2cf1981", "score": "0.55939025", "text": "public interface a {\n\n /* compiled from: Renewal */\n public interface a {\n void i();\n\n void j();\n }\n\n void a();\n\n void a(String str);\n\n d b(String str);\n\n void c(String str);\n}", "title": "" }, { "docid": "2f7825bc60095d2c5c08cf2cec0df3f5", "score": "0.5589974", "text": "public interface C6293a<A, B> {\n /* renamed from: a */\n boolean mo15075a(A a, B b);\n }", "title": "" }, { "docid": "4d045d9df51954f58843a89a27e1657a", "score": "0.55806553", "text": "public static void naming() {\n String _a;\n String $a;\n String a;\n }", "title": "" }, { "docid": "148f3c9e93183faeecc3744f18b2a279", "score": "0.55796754", "text": "public interface C3334b<R> {\n /* renamed from: a */\n void mo13267a(R r);\n }", "title": "" }, { "docid": "276a56c4c0ffd48717eee4d0b9eb067b", "score": "0.5567835", "text": "public interface C22758p extends C1694a {\n /* renamed from: a */\n void mo38341a(String str, String str2, C43853o c43853o);\n}", "title": "" }, { "docid": "d013c9c4f72952ccd6b5a3f7d4187261", "score": "0.5565389", "text": "public interface C41596a {\n /* renamed from: a */\n List<VideoCategoryParam> mo102222a();\n}", "title": "" }, { "docid": "58590291fbb74581a695738f74e20673", "score": "0.5561268", "text": "public abstract void mo13022a(A a) throws RemoteException;", "title": "" }, { "docid": "b69407efb83e1e8cdc8d0eb8360b394e", "score": "0.554521", "text": "public interface C0424dt {\n /* renamed from: a */\n CharSequence mo4580a();\n}", "title": "" }, { "docid": "f12e4720fed1d07d71eb31e3056ce54a", "score": "0.5533604", "text": "public interface C32003d {\n /* renamed from: a */\n void mo81900a(int i);\n\n /* renamed from: a */\n void mo81901a(boolean z, String str);\n}", "title": "" }, { "docid": "879e99b226eb541ed7ac08b696d6f20e", "score": "0.55305725", "text": "public interface C2074c {\n /* renamed from: a */\n void mo27496a(float f);\n}", "title": "" }, { "docid": "e28bcfad5c42a7302e9c7329e03fa18f", "score": "0.55302936", "text": "public interface C16108a {\n /* renamed from: b */\n void mo25291b(C5127a c5127a);\n\n /* renamed from: p */\n void mo25292p(int i, String str);\n }", "title": "" }, { "docid": "28e1718043299847464c4f27b74a6077", "score": "0.5520328", "text": "private interface C1324c {\n /* renamed from: a */\n Iterator<String> mo8109a(Splitter iVar, CharSequence charSequence);\n }", "title": "" }, { "docid": "93ce1bec37ff5c9224fa7ac1b2230bb2", "score": "0.5515593", "text": "public void a(Object o) {\n\t\t\n\t}", "title": "" }, { "docid": "83f5210ccb89494b013e1d15a89cad21", "score": "0.5504232", "text": "public interface C1949a {\n /* renamed from: a */\n void mo1437a();\n\n /* renamed from: a */\n void mo1438a(C1951f c1951f);\n }", "title": "" }, { "docid": "775b1ee367c44ff8457358b3e52afac1", "score": "0.5503487", "text": "public interface C30390j<T> {\n /* renamed from: a */\n T mo79978a();\n\n /* renamed from: b */\n void mo79979b();\n}", "title": "" }, { "docid": "ca253d6cb58ba13bbe5b44853d4f0039", "score": "0.55004966", "text": "public interface amc {\n /* renamed from: a */\n void mo497a(int i, long j, long j2);\n\n /* renamed from: b */\n void mo504b(akh akh);\n\n /* renamed from: b */\n void mo506b(String str, long j, long j2);\n\n /* renamed from: c */\n void mo507c(int i);\n\n /* renamed from: c */\n void mo508c(ani ani);\n\n /* renamed from: d */\n void mo509d(ani ani);\n}", "title": "" }, { "docid": "bb50d8ab08e838b20d669e74746f5a0c", "score": "0.55003566", "text": "public interface C1200i {\n /* renamed from: a */\n String mo983a();\n}", "title": "" }, { "docid": "40537ae356b9fa076e1e26d02eeddc45", "score": "0.5493289", "text": "public interface C47598a<T> extends C47597i<T> {\n /* renamed from: a */\n boolean mo119684a(T t);\n}", "title": "" }, { "docid": "602ca7aef6d89dd6215f6a8c37dfc484", "score": "0.5478458", "text": "interface C1875a {\n /* renamed from: a */\n void mo1908a(@NonNull C3492k c3492k, int i);\n }", "title": "" }, { "docid": "067a5ce37262d367eda0b30054aa0f69", "score": "0.54728997", "text": "public interface C24092c {\n /* renamed from: a_ */\n void mo62464a_(boolean z);\n}", "title": "" }, { "docid": "f843c1c923e8c19b48cba1d77d87c60b", "score": "0.5461977", "text": "public interface C3428c {\n /* renamed from: a */\n void mo2520a(boolean z, String str);\n }", "title": "" }, { "docid": "20070790791f3d904f0a089d8eba8a08", "score": "0.5451957", "text": "int m1(int a) {\n\t\treturn this.a;\r\n\r\n\t}", "title": "" }, { "docid": "98536c63537df269ae3a7e0120385743", "score": "0.544659", "text": "public interface C23148c {\n /* renamed from: a */\n View mo60290a(int i);\n}", "title": "" }, { "docid": "79c91ed79631662a28fac67cd6a3947b", "score": "0.5440412", "text": "public abstract void a(B b2, int i2, Xa xa);", "title": "" }, { "docid": "00ec7d166202c54b098c4ea1abf366d1", "score": "0.5427304", "text": "public interface C1620d {\n /* renamed from: a */\n void m8786a();\n\n /* renamed from: b */\n void m8787b();\n}", "title": "" }, { "docid": "a3e3b4d810a4b27dedfd147fab2113ef", "score": "0.54256326", "text": "public interface C19069a {\n /* renamed from: a */\n void mo50695a(C19068c cVar, int i);\n }", "title": "" }, { "docid": "81a0565706127fc2404802f9f6b98c48", "score": "0.5419265", "text": "public interface C0879b {\n /* renamed from: b */\n void mo2608b(C25552a c25552a);\n\n /* renamed from: sx */\n void mo2609sx();\n }", "title": "" }, { "docid": "3cded2798bff46c7a2434922b49b727e", "score": "0.5418745", "text": "private static void swap(List<String> a, int i, int change) {\n String replace = a.get(i);\n a.set(i, a.get(change));\n a.set(change, replace);\n }", "title": "" }, { "docid": "093549220639b15a79336051c507d424", "score": "0.5409399", "text": "public static a a() {\n }", "title": "" }, { "docid": "f7116a7174c87b9f8ad6a9335c640a72", "score": "0.54087776", "text": "private static void swap(List<Card> a, int i, int change) throws UnsupportedOperationException, ClassCastException,\n\tNullPointerException, IllegalArgumentException, IndexOutOfBoundsException {\n Card helper = a.get(i);\n a.set(i, a.get(change));\n a.set(change, helper);\n }", "title": "" }, { "docid": "0b4409b6a73d34d3eb4dd94d6f2da6a8", "score": "0.5404335", "text": "public a(Object obj) {\n super(1);\n this.a = obj;\n }", "title": "" }, { "docid": "a15f77f6f63b62721b92d3b6ac09c661", "score": "0.54035884", "text": "public interface class_13 {\n // $FF: renamed from: a (com.a.a.b.a, com.a.a.b.a) java.lang.Double\n Double method_55(class_106 var1, class_106 var2);\n}", "title": "" }, { "docid": "80800c3a63a8a78e18c3135dd6879206", "score": "0.5397414", "text": "public interface C35790d {\n /* renamed from: a */\n void mo9626a(String str, C40432m c40432m);\n\n void aeQ(String str);\n\n String awa();\n\n /* renamed from: b */\n void mo9629b(String str, C40432m c40432m);\n}", "title": "" }, { "docid": "bb000331168bfedbf20878ebfa46d707", "score": "0.5381105", "text": "public interface C10857d {\n /* renamed from: a */\n void mo27935a(int i);\n\n /* renamed from: a */\n void mo27936a(C10837a aVar);\n\n /* renamed from: a */\n void mo27937a(C10862d dVar);\n\n /* renamed from: a */\n void mo27938a(Map<String, String> map);\n\n /* renamed from: b */\n void mo27939b(int i);\n}", "title": "" }, { "docid": "16184462748e9846a4da65ad2b43e8a5", "score": "0.5372418", "text": "public abstract void mo10540a(A a) throws RemoteException;", "title": "" }, { "docid": "aff475fd4b16053ddc42a47048226392", "score": "0.53711414", "text": "public interface C1503b {\n /* renamed from: a */\n void mo6691a(C2661r rVar);\n }", "title": "" }, { "docid": "d9e07575fdf7b0ec3377a520c46fdcb9", "score": "0.5367815", "text": "@Override\n\tpublic void A1(String a) {\n\t\t\n\t}", "title": "" }, { "docid": "75044d2312e51477b304cd45e2e02302", "score": "0.53633904", "text": "public interface C0816a {\n /* renamed from: a */\n void mo694a(int i);\n\n /* renamed from: g */\n void mo697g(boolean z);\n\n /* renamed from: l */\n void mo698l();\n\n /* renamed from: m */\n void mo699m();\n\n /* renamed from: n */\n void mo700n();\n\n /* renamed from: o */\n void mo701o();\n }", "title": "" }, { "docid": "6a580d33a8088d6b0dbd7ff520e7827f", "score": "0.5353962", "text": "public interface AbstractC0009c {\n /* renamed from: a */\n void mo81a();\n}", "title": "" }, { "docid": "eed0b46333e95a684de046e76c16ebba", "score": "0.534571", "text": "public interface C4941c<T> {\n /* renamed from: a */\n T mo17828a(C4940b bVar);\n}", "title": "" }, { "docid": "eb3926976ecbcef2365166f8426f64f0", "score": "0.5341964", "text": "interface a {\n void a(com.fyusion.sdk.viewer.internal.b.c.a aVar, com.fyusion.sdk.viewer.internal.b.a aVar2);\n }", "title": "" }, { "docid": "23d1915bce14a8d6922d34bb287f65d9", "score": "0.5341382", "text": "public interface C7296e extends C7295d {\n /* renamed from: b */\n C7452c0 mo24927b();\n}", "title": "" }, { "docid": "f7a9e70d9c004965c1d1de450c6188e4", "score": "0.5339389", "text": "public interface C4238a<D> {\n /* renamed from: a */\n C4246b<D> mo14920a(int i, Bundle bundle);\n\n /* renamed from: a */\n void mo14921a(C4246b<D> bVar);\n\n /* renamed from: a */\n void mo14922a(C4246b<D> bVar, D d);\n }", "title": "" }, { "docid": "1c8fdf4cebf3ce3747d5d779d8d38e2f", "score": "0.5334332", "text": "public interface C14187a {\n /* renamed from: a */\n void mo44793a(JSONObject jSONObject);\n }", "title": "" }, { "docid": "03306801dd1a1b5035cd65f98d571498", "score": "0.5333651", "text": "public interface Fba extends Lba, Iterable<Lba> {\n /* renamed from: a */\n Fba mo257a(String str);\n\n /* renamed from: a */\n Hba mo258a(String str, InputStream inputStream);\n\n /* renamed from: a */\n Iterator<Lba> mo259a();\n}", "title": "" }, { "docid": "86ca94482999c8f12065642ae0f15648", "score": "0.5328446", "text": "interface C1273a {\n /* renamed from: a */\n void mo1038a(C1216c c1216c, C3493n<?> c3493n);\n }", "title": "" }, { "docid": "2ff65232a21e47e93118f402aa3d92f7", "score": "0.5327363", "text": "public interface C0077a {\n /* renamed from: a */\n void mo43a(C0876j c0876j, int i);\n\n /* renamed from: a */\n boolean mo44a();\n\n C0876j getItemData();\n }", "title": "" }, { "docid": "8c6e3d3ceafec9fc98320f0c7c186e50", "score": "0.5323352", "text": "public interface C2638b {\n /* renamed from: a */\n void mo9220a(C9355c cVar);\n }", "title": "" }, { "docid": "fbec289de41314ba82a660cfda6b0348", "score": "0.53208745", "text": "public interface C2226c {\n /* renamed from: a */\n void mo4056a(Format format);\n }", "title": "" }, { "docid": "77271d432de527ef245a0b77c0e375fa", "score": "0.5319552", "text": "public b(Object obj) {\n this.a = obj;\n }", "title": "" }, { "docid": "1668499b1e896af2950fd5c33773c679", "score": "0.5319283", "text": "public interface C41458a {\n /* renamed from: a */\n void mo96370a(PublishResultState publishResultState);\n }", "title": "" }, { "docid": "983705c95e7c62365468a465eebec6f8", "score": "0.5316212", "text": "public interface C47383a {\n /* renamed from: d */\n void mo102210d();\n }", "title": "" }, { "docid": "f3f3bb9b1c649d05f4ab4110285be1b1", "score": "0.53161067", "text": "public interface C0393cp {\n /* renamed from: a */\n boolean mo4522a();\n}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "294bca9ea12372fe29f3f5332be88eb0", "score": "0.0", "text": "@Override\n\t\t\t\t\t\tpublic void onFailure(int arg0, String arg1) {\n\t\t\t\t\t\t\tToast.makeText(AddBook.this, \"添加书籍失败,请重新上传\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}", "title": "" } ]
[ { "docid": "63a51b9825ac81396e1d7ad0b9f3ed82", "score": "0.6866318", "text": "@Override\n\tpublic void 군무() {\n\t\t\n\t}", "title": "" }, { "docid": "15ae679aae74424c73fde647cf4332f6", "score": "0.68461496", "text": "@Override\r\n\t\t\tpublic void hissetmek() {\n\r\n\t\t\t}", "title": "" }, { "docid": "76a80470fd21f5a9092c258ed3a8a632", "score": "0.68199706", "text": "private static void 로또번호리스트() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bfad11e436c98998f434617a4d2907e5", "score": "0.6690517", "text": "@Override\r\n\tpublic void adharno() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6679176", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "9969c2cd0a26f223be9eea348d1c6160", "score": "0.6571234", "text": "private static void 로또수동생성() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1dd3d9bdd67d8cc8bddfe021796a9286", "score": "0.6433148", "text": "@Override\n protected void lodate() {\n\n }", "title": "" }, { "docid": "b62655d47438ae6875a06d0702721dbc", "score": "0.6424808", "text": "@Override\r\n\t\t\tpublic void koklama() {\n\r\n\t\t\t}", "title": "" }, { "docid": "d92d5fe4c6efcfe66d53457e76817518", "score": "0.64108074", "text": "@Override\r\n\t\t\tprotected void init() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.63912827", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dda3b5a5b8e9e69b6eec0807bf162606", "score": "0.63636446", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t\t\r\n\t}", "title": "" }, { "docid": "00075c50e26b18237953cd05ffd5428b", "score": "0.63032013", "text": "@Override\n\tpublic void beber() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "76e3d99118a00e74a082f6a955778f7d", "score": "0.62293875", "text": "Grensesnitt(){}", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.6186996", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "bf8fefe7b85b49281edb456698bfd556", "score": "0.616781", "text": "@Override\r\n\tpublic void descansar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c612bcadafd393d086f44fd19558a8be", "score": "0.61533993", "text": "@Override\r\n\tpublic void inicialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "106ce0ada7b978eeffda7ec9cccc29e2", "score": "0.61470556", "text": "public void дразнит() {\n\n\t}", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.6139653", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "958663dc976180cba7b91b2a4ebcb522", "score": "0.61089844", "text": "@Override\n\tpublic void atualiza() {\n\n\t}", "title": "" }, { "docid": "2bd152bb33ecbe797b9818e175c5d4ec", "score": "0.6105675", "text": "public void mo55659a() {\n }", "title": "" }, { "docid": "42693116fba02f3f07be1ab752c6d9bc", "score": "0.6063955", "text": "@Override\r\n\tpublic void concentrarse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.6063628", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "c95af00aee2fa41e8a03e3640ca30750", "score": "0.6041561", "text": "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.60215324", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "0d996fa345e18b74a73dce6394fc0b15", "score": "0.60198766", "text": "@Override\r\n\tpublic void sunricers() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124713", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "27c725838f280928d869cc973588317c", "score": "0.6001773", "text": "@Override\r\n\tpublic void doSelfOpertion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f350fb57d7c81ec6d70f2643960940a8", "score": "0.5986621", "text": "@Override \r\n public void init() {\n \r\n }", "title": "" }, { "docid": "4f035da85a44bb830509e046190e6ee5", "score": "0.59682363", "text": "@Override\r\n\tpublic void rajastanroyals() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a0486d5f3890f3b56ce5a39122c4bdd7", "score": "0.59527355", "text": "@Override\r\n\tvoid metodo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c744960aa067b28111e99db9ddf6aeed", "score": "0.59477377", "text": "@Override\r\n\tpublic void fragancia() {\n\t\t\r\n\t}", "title": "" }, { "docid": "288fd3ee71b736e770bbef790831c263", "score": "0.59301406", "text": "User mo18615e();", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59270483", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59020513", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "416a053368cfd700d9d09414458911cd", "score": "0.58986443", "text": "@Override\n\tpublic void assamblyOfControlhead() {\n\t\t\n\t\t\n\t\t\n\t\n\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "77d32d2a2070d9c3117ff146ac04f114", "score": "0.5891585", "text": "@Override\r\n\tpublic void climaChuvoso() {\n\r\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "40577cf33330bd70c08bc8e310b4436d", "score": "0.58706117", "text": "@Override\n\tpublic void falar() {\n\n\t}", "title": "" }, { "docid": "79c707f3d28263fcc89902b0527d5c14", "score": "0.58528596", "text": "public void mo736a() {\n }", "title": "" }, { "docid": "42c3f8e63385f8e328b6828c1f7243d4", "score": "0.584987", "text": "@Override\r\n\t\tpublic void method_4() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "60e50abec8df6d4d5a80de13ba750171", "score": "0.5842782", "text": "@Override\r\n\tpublic void retour() {\n\t\t\r\n\t}", "title": "" }, { "docid": "debc6b4612a5fe9f0680a6bff73f25e6", "score": "0.58388203", "text": "@Override\r\n\t\tpublic void emettreSon() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "d56c498b25d1ea77dc09f49efcf80f6c", "score": "0.58347356", "text": "@Override\r\n\tpublic void aumentaFatorAcidade() {\n\r\n\t}", "title": "" }, { "docid": "a5d63cf5eb472d80fba18b0149c96501", "score": "0.5825308", "text": "@Override\n\tpublic void memberSecession() {\n\t\t\n\t}", "title": "" }, { "docid": "f4f7bcdf27874d7a17a80f57f8df43e0", "score": "0.5822819", "text": "public void mo10744d() {\n }", "title": "" }, { "docid": "d45e7311f809d3019d7382af887cb3cf", "score": "0.5799729", "text": "@Override\r\n\tpublic void dehlidervels() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "89b37f5fcca98bdfa7c243fc99d06675", "score": "0.5790634", "text": "@Override\r\n\tpublic void reanudar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4a3a3aeaffc4b367a8aa8488e4b59610", "score": "0.57720804", "text": "public void mo10856b() {\n }", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.5770528", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "a46afb3a57efda28ee1b37c4a9b1960f", "score": "0.57642525", "text": "private void getEx() {\n\r\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b95bbed498007dfeba9b078798c02e53", "score": "0.5754483", "text": "@Override\r\n\tpublic void exibir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "03b93c6668ea7af171bbcdb3af74bb4a", "score": "0.57524616", "text": "@Override\n public void bicar() {\n }", "title": "" }, { "docid": "b2cde12cf50e0ec60f909684878e936c", "score": "0.57514966", "text": "@Override\n\tpublic void wykonajZamknij() {\n\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a53d232dac89259f961cbc93762f65b2", "score": "0.5731746", "text": "@Override\r\n\t\t\tvoid n() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.57304704", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.57304704", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "3b072172b17a5e5ab0081f24545795f2", "score": "0.57235396", "text": "public void przymocowac() {\n\t\t\n\t}", "title": "" }, { "docid": "17e507b0166d99f88c8237ad30d967b7", "score": "0.5716563", "text": "public void zamowic() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "7bbf3f0011f317b7faa88562e06495b7", "score": "0.5714223", "text": "@Override\r\n public void reculer() {\n }", "title": "" }, { "docid": "1ba6f6b334c51461b3fe944110e91ef5", "score": "0.5707728", "text": "@Override\n\tpublic void comerHojas() {\n\t\t\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "0ca16e78cddd3c7d9de74c662606bbac", "score": "0.5686997", "text": "public void mo4570b() {\n }", "title": "" }, { "docid": "359579516b65b36ff8c4344d8363a3ed", "score": "0.5686103", "text": "@Override\r\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "09488e6c7d4190869b37b126a578249f", "score": "0.56821704", "text": "@Override\r\n\t/**\r\n\t * \r\n\t */\r\n\tpublic int size() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "001227e6b58a587f9eb4f77b15fc3588", "score": "0.5668976", "text": "@Override\n\tprotected void local() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
61535011cae19c76bf1f3fa5666ab602
File file = new File("C:\\Users\\user\\Desktop\\a.csv");
[ { "docid": "93ef1c72d0a49376158ac3c2c1bcfcaa", "score": "0.0", "text": "public static void processing() {\n\t\tFile file2 = new File(\"C:\\\\Users\\\\user\\\\Desktop\\\\word_defination4.csv\");\n\n\t\ttry {\n\t\t\t// Scanner scanner = new Scanner(file);\n\t\t\tBufferedWriter bufferedwriter = new BufferedWriter(new FileWriter(file2));\n\t\t\t// scanner.useDelimiter(\",\");\n\t\t\t// String temp_word = \"\";\n\t\t\t// String temp_def = \"\";\n\t\t\tfor (int i = 1; i <= file_processing.size() - 1; i++) {\n\t\t\t\t\n\t\t\t\tfile_processing.get(i).type = file_processing.get(i).type.replaceAll(\",imPronoun & Pronoun Pronoun\", \",pronoun\");\n\t\t\t\tfile_processing.get(i).type = file_processing.get(i).type.replaceAll(\",Pronoun Pronoun. & vb. Noun\", \",pronoun|Noun|Verb\");\n\t\t\t\tfile_processing.get(i).type = file_processing.get(i).type.replaceAll(\",Pronoun Pronoun\", \",pronoun\");\n\t\t\t\tfile_processing.get(i).type = file_processing.get(i).type.replaceAll(\",AdjectiVerb & AdjectiVerbVerb\", \",adjective|Verb\");\n\t\t\t\tfile_processing.get(i).type = file_processing.get(i).type.replaceAll(\"t.\", \"\");\n\t\t\t\tfile_processing.get(i).type = file_processing.get(i).type.replaceAll(\"i.\",\"\");\n\t\t\t\tfile_processing.get(i).type = file_processing.get(i).type.replaceAll(\"&\",\" \");\n\t\t\t\tfile_processing.get(i).type = file_processing.get(i).type.replaceAll(\"adjecve\",\"adjective\");\n\t\t\t\tSystem.out.println(file_processing.get(i).type);\n\t\t\t\tbufferedwriter.write(file_processing.get(i).word.toLowerCase().trim());\n\t\t\t\tbufferedwriter.write(file_processing.get(i).type.toLowerCase().trim());\n\t\t\t\tbufferedwriter.write(file_processing.get(i).defination.toLowerCase().trim());\n\t\t//\t\tSystem.out.println(file_processing.get(i).defination);\n\t\t\t\tbufferedwriter.newLine();\n\t\t\t\t// temp_word = scanner.next();\n\t\t\t\t// type = scanner.next();\n\t\t\t\t// temp_def += scanner.nextLine();\n\t\t\t\t// line = word + \",\" + type + temp_def;\n\n\t\t\t\t// if (word.equals(temp_word)) {\n\t\t\t\t// defination += temp_def;\n\t\t\t\t// // line += defination;\n\t\t\t\t// } else {\n\t\t\t\t// line = temp_word + \",\" + temp_def + defination;\n\t\t\t\t// bufferedwriter.write(line);\n\t\t\t\t// defination = \"\";\n\t\t\t\t// temp_def = \"\";\n\t\t\t\t// System.out.println(line);\n\t\t\t\t// temp_word = word;\n\t\t\t\t// bufferedwriter.newLine();\n\t\t\t\t//\n\t\t\t\t// }\n\t\t\t}\n\t\t\tbufferedwriter.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" } ]
[ { "docid": "eee94c75ff97893f538c9ca99d5b2d0a", "score": "0.65041333", "text": "public void readCSV(String pathToFile) ;", "title": "" }, { "docid": "cbfd758f527ed8f8e0a612c5a2ff0ec7", "score": "0.64779246", "text": "public void abrirArchivo(){\n try{\n entrada = new Scanner(new File(\"data/data1.csv\")); //metodo para abrir el archivo colocando la direccion\n }catch(FileNotFoundException fileNotFoundException) {\n System.err.println(\"Error al abrir el archivo.\");\n System.exit(1);\n }\n }", "title": "" }, { "docid": "6271b2d5532be009fc73b5dad3800540", "score": "0.6396856", "text": "@Test\n\tpublic void testCreateCSVFile() {\n\t\tSystem.out\n\t\t\t\t.println(\"path = \" + Project.root + File.separator + \"datas\" + File.separator + \"correctCsvFile0.csv\");\n\t\tCSVFile csvFile = new CSVFile(Project.root + File.separator + \"datas\" + File.separator + \"correctCsvFile0.csv\");\n\t\tassertTrue(true, \"correct\");\n\t\tcsvFile = new CSVFile(Project.root + File.separator + \"datas\" + File.separator + \"incorrectCsvFile1.csv\");\n\t\tassertTrue(true, \"incorrect file \");\n\t}", "title": "" }, { "docid": "e5b4c2cbd5ccd672cf9c8fb0fa561b89", "score": "0.6060076", "text": "public DataFile() {\n this(System.getProperty(\"user.home\") + \"/.clexp/data.csv\");\n }", "title": "" }, { "docid": "1fcd11575ea10d059aac1a4312540d10", "score": "0.5909703", "text": "public static FileCreator createCSVFile(String filename) {\n try {\n File myfile = new File(filename + \".csv\");\n if (myfile.createNewFile()) {\n System.out.println(\"File created: \" + myfile.getName());\n } else {\n System.out.println(\"File already exists.\");\n }\n return new FileCreator(myfile);\n\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "b1f37911f8437afdf8fe5c536c336f6d", "score": "0.5905721", "text": "File asFile() throws IOException;", "title": "" }, { "docid": "d006d7452556d3a1dceb2e24c255ce9e", "score": "0.5882018", "text": "public String getDataCsvFile() throws IOException {\n URL url = this.getClass().getResource(\"/data-demo/input/\");\n return url.getPath();\n }", "title": "" }, { "docid": "b20248073deecd7235d4225f1a8bada0", "score": "0.5813923", "text": "private CSVReader chooseFile() throws FileNotFoundException {\n\t\tFileChooser fileChooser = new FileChooser();\n\t\tFileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\"CSV Files\", \"*.csv\");\n\t\tfileChooser.getExtensionFilters().add(extFilter);\n\t\tfileChooser.setTitle(\"Open Resource File\");\n\t\tFile file = fileChooser.showOpenDialog(new Stage());\n\t\tCSVReader csvFile = new CSVReader(new FileReader(file.getPath()));\n\t\treturn csvFile;\n\t}", "title": "" }, { "docid": "23166f6af50b60d1decec2d175ac4f8f", "score": "0.57551676", "text": "public File getCSV() {\n return csv;\n }", "title": "" }, { "docid": "f64b8fa4f894a9e46f08a713a38f0ec7", "score": "0.571201", "text": "private static Path saveTempFile(InputStream input) throws IOException {\n Path tempFile = Files.createTempFile(null, \".csv\");\n Files.copy(input, tempFile, StandardCopyOption.REPLACE_EXISTING);\n return tempFile;\n }", "title": "" }, { "docid": "00a47454ccb3f5f24751a5dc2e7c4327", "score": "0.5696831", "text": "public boolean isCsvPathFile(String csvPath) {\n File file = new File(csvPath);\n return file.isFile();\n }", "title": "" }, { "docid": "014681936f15bdc0bdd2cb90f88f8403", "score": "0.560329", "text": "public String getCsvFile() {\n return this.arguments.get(Options.CSV).get(FIRST_ELEMENT);\n }", "title": "" }, { "docid": "8105ee05cbc69c3f05aa455a29c4d6a6", "score": "0.5534493", "text": "private String getCSVFilePath() {\r\n\t\tString path = null;\r\n\t\tlog.debug(\"Fetching the csvpath........constant file entry:::\" + ReportConstants.JASPERCSVPATH1);\r\n\t\ttry {\r\n\t\t\tpath = PropertyUtil.getProperty(ReportConstants.JASPERCSVPATH1, ReportConstants.AI_ENV);\r\n\t\t} catch (IOException e) {\r\n\t\t\tlog.error(\"Error getting the csv file :: \" + e.getMessage(), e);\r\n\t\t}\r\n\t\tlog.debug(\"The file path is...........\" + path);\r\n\t\treturn path;\r\n\t}", "title": "" }, { "docid": "f5499d713492579405bd279993b31505", "score": "0.55207306", "text": "public static void main(String[] args) {\n Path file = Paths.get(\"E:\\\\Elca Docs\\\\data\\\\companies.csv\");\n try (InputStream in = Files.newInputStream(file)){\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n String line = null;\n List<String> list = new ArrayList<>();\n while((line = reader.readLine())!=null){\n list.add(line);\n System.out.println(line);\n }\n System.out.println(\"-----------------\");\n list.stream().filter(p->p.contains(\"CH\")).forEach(e-> System.out.println(e));\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //Creating and Writing a File by Using Stream I/O\n /*String s =\"Hello Quang Viet!\";\n byte data[] = s.getBytes();\n Path path = Paths.get(\"E:\\\\Data\\\\a.zip\");\n try (OutputStream out = new BufferedOutputStream(\n Files.newOutputStream(path, CREATE, APPEND))) {\n out.write(data, 0, data.length);\n System.out.println(\"write success\");\n } catch (IOException x) {\n System.err.println(x);\n }*/\n }", "title": "" }, { "docid": "7b7f9594c4ef42efd36bd70e5d075c03", "score": "0.54800034", "text": "public static void writeCSVFile(String record)\n\t{\t\t\n\t\tSystem.out.println(record);\n try {\n //\tFile file = new File(csvFile);\n BufferedWriter output = new BufferedWriter(new FileWriter(csvFile,true));\n if (firstCSVRecord) {\n \toutput.write(runDate + \"\\n\");\n }\n output.write(record + \"\\n\");\n output.close();\n firstCSVRecord = false;\n } catch ( IOException e ) {\n e.printStackTrace();\n }\n\t}", "title": "" }, { "docid": "3587804c0c7579a4542a9c3c9f637a51", "score": "0.5423341", "text": "private void exportCSV() {\r\n JFileChooser fileChooser = new JFileChooser();\r\n fileChooser.setSelectedFile(new File(DEFAULT_CSV_FILE));\r\n fileChooser.setFileFilter(new javax.swing.filechooser.FileFilter() {\r\n public boolean accept(File file) {\r\n return file.isDirectory() || file.getName().endsWith(\".csv\");\r\n }\r\n\r\n public String getDescription() {\r\n return \"Comma Separated Values (CSV)\";\r\n }\r\n });\r\n if(fileChooser.showSaveDialog(this) != JFileChooser.APPROVE_OPTION) {\r\n return;\r\n }\r\n\r\n // Process the file\r\n String fileName = fileChooser.getSelectedFile().getPath();\r\n File file = new File(fileName);\r\n if(file.exists()) {\r\n int selection = JOptionPane.showConfirmDialog(null,\r\n \"File already exists:\" + LS + fileName + \"\\nOK to replace?\",\r\n \"Warning\", JOptionPane.OK_CANCEL_OPTION,\r\n JOptionPane.WARNING_MESSAGE);\r\n if(selection != JOptionPane.OK_OPTION) return;\r\n }\r\n\r\n // Save it\r\n writeCSV(file);\r\n }", "title": "" }, { "docid": "18f937fc2ec20a65626aef676ce2ef9d", "score": "0.5349089", "text": "private void createcsv() throws IOException {\n String direc = \"/e3softData/\";\n String fileName = \"e3softRepairOrdersExcel.csv\";\n // get the path to sdcard\n File sdcard = Environment.getExternalStorageDirectory();\n // to this path add a new directory path\n File dir = new File(sdcard.getAbsolutePath() + direc);\n // create this directory if not already created\n dir.mkdir();\n // create the file in which we will write the contents\n File file = new File(dir, fileName);\n String f = file.toString();\n BufferedWriter bw;\n bw = new BufferedWriter(new FileWriter(file, true));\n String Data2 = \"site,area,unitNumber,unitName,unitSize,drawing,\"\n + \"stream,specificLocation,system,equipmentLocation,cameraOperator,\"\n + \"cameraSerial,gasSurveyor, gasSurveyorSerial,product,\"\n + \"equipmentDescription,measurementType,equipmentType,\"\n + \"equipmentSize,equipmentClass,equipmentID,measurementPosition,\"\n + \"measuremntResult,readingUnit,potentialLoss,recommendations,\"\n + \"time,date,leakerID\" + \"\\n\";\n bw.write(Data2);\n bw.flush();\n bw.close();\n }", "title": "" }, { "docid": "8e133721ccca895282dc4a1cde9af6e6", "score": "0.53257793", "text": "public ShapesFile() {\n final String defaultPath = \"./data.csv\";\n this.setFilePath(defaultPath);\n }", "title": "" }, { "docid": "bbba9baea1d94d80197b91709c478cc5", "score": "0.5302223", "text": "@Test\n\tpublic void testCsvReaderBadFilepath() {\n\t\tURL resource = CsvReader.class.getResource(\"test_case_0/fake.csv\");\n\t\torg.junit.Assert.assertNull(resource);\n\t}", "title": "" }, { "docid": "5b2ed7eea27e91b85acb0a68b214a28c", "score": "0.5299443", "text": "public static void main(String[] args) throws IOException {\n\t\tFileInputStream fin;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tfin = new FileInputStream(\"E:\\\\books.csv\");\r\n\t\t\tDataInputStream dr=new DataInputStream(fin);\r\n\t\t\twhile(dr.available()!=0)\r\n\t\t\t{\r\n\t\t\tSystem.out.println(dr.readLine());\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (FileNotFoundException e) \r\n\t\t{\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e92a31d5fb44725248d434fb95c8138b", "score": "0.52882177", "text": "URI getCsv();", "title": "" }, { "docid": "f227ac94c6ae230a73649a901b2bd4df", "score": "0.527938", "text": "public FileAcces(String path){\n fichero=new File(path);\n }", "title": "" }, { "docid": "28e616fa0208ef1ba78b2939a94c8456", "score": "0.5265387", "text": "public void openFile(File file);", "title": "" }, { "docid": "21e400f9ee4e5b3e24b8144868a5cb1f", "score": "0.5255477", "text": "private static File createSampleFile(String myFile) throws IOException {\n \tFile f = new File(myFile);\n return f;\n }", "title": "" }, { "docid": "f0da60128df4b576855364f827f3519e", "score": "0.5231423", "text": "public void parseCSV (String sFilePath)\r\n throws ArrayIndexOutOfBoundsException,IOException,FileNotFoundException,\r\n RuntimeException,NullPointerException,IllegalArgumentException {\r\n\r\n parseCSV (sFilePath, null);\r\n\r\n }", "title": "" }, { "docid": "166cda99d2d9bdd413711b0423fc7c5e", "score": "0.5228553", "text": "private static void openFile(){\n\t\tString filePath=getLogUri();//getString FilePath (and create the directory if not created)\n\t\tString fileName=getFileName();\n\t\t\n\t\ttry {\n\t\t\tfile = new FileOutputStream(new File(filePath,fileName),false);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t}", "title": "" }, { "docid": "fcbc35c925b227d373dc4e4638251b78", "score": "0.5212408", "text": "public @NonNull File getFile(@NonNull String tableName) throws IOException {\n if (!ALLOWED_NAMES.matcher(tableName).matches()) {\n throw new IOException(\"Can only access tables with names that match \" + ALLOWED_NAMES.pattern());\n }\n \n File parent = baseName.getParentFile();\n if (parent == null) {\n parent = baseName.getCanonicalFile().getParentFile();\n if (parent == null) {\n throw new IOException(\"Can't get parent directory for \" + baseName.getPath());\n }\n }\n \n return new File(parent, baseName.getName() + \"_\" + tableName + \".csv\");\n }", "title": "" }, { "docid": "a8bb3326de43d984e5bc831bf7a68c91", "score": "0.52013505", "text": "private void openFile(int row) {\r\n Desktop desktop = Desktop.getDesktop();\r\n String fileURI = folder + \"/\" + Jtable.getValueAt(row, 0);\r\n try {\r\n desktop.open(new File(fileURI));\r\n } catch (IOException ex) {\r\n Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "36d69c98731198f43e2a4f182e8555f5", "score": "0.52006215", "text": "public void createFile() {\r\n Parse filenameCell = cells.at(1);\r\n Parse fileContentsCell = cells.at(2);\r\n String filename = filenameCell.text().trim();\r\n String contents = unescape(fileContentsCell.text(), \"&quot;\", \"\\\"\");;\r\n if (checkFilename(filename, filenameCell)) {\r\n try {\r\n File file = new File(filename);\r\n FileWriter writer = new FileWriter(file);\r\n writer.write(contents);\r\n writer.close();\r\n } catch (IOException e) {\r\n exception(filenameCell, e);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "469914ccf4b643a692041d7d5b7fec49", "score": "0.5193399", "text": "public static void main(String[] args) {\n\n String path = \"./data.csv\";\n\n CSVReader reader;\n try {\n reader = new CSVReader(new FileReader(path));\n String[] line;\n while ((line = reader.readNext()) != null) {\n System.out.println(Arrays.toString(line));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "51d7510ebc7e72fec664e9599b5585d1", "score": "0.5183654", "text": "@Test\n\t@EnabledOnOs({ OS.LINUX })\n\tpublic void saveAbsolutePathInFilenamePermitted() {\n\t\tActivity dummyActivity = TestActivities.createActivityWithRecords(\"Morning Ride\",\n\t\t\t\t\"Cycling\", 2);\n\t\tString fileName = \"test.csv\";\n\t\tservice.store(\n\t\t\t\tnew MockMultipartFile(fileName, fileName, MediaType.TEXT_PLAIN_VALUE,\n\t\t\t\t\t\t\"activty_def,name,type,start_time,\".getBytes()),\n\t\t\t\tdummyActivity);\n\t\tassertTrue(Files.exists(\n\t\t\t\tPaths.get(properties.getLocation()).resolve(Paths.get(fileName))));\n\t}", "title": "" }, { "docid": "16a64c677456b54656498d08061c8d33", "score": "0.51781", "text": "public Fichero(String pathFile) {\n file = new File(pathFile);\n }", "title": "" }, { "docid": "5a0824648f07e9574d45107aec031307", "score": "0.51624805", "text": "public CSV(String formattedStringToWriteToCSV, File file) throws FileNotFoundException, IllegalArgumentException, IllegalAccessException{\n\t\tsetFile(file);\n\t\tPrintWriter printWriter = new PrintWriter(file);\n\t\tsetPrintWriter(printWriter);\n\t\twriteToCSV(formattedStringToWriteToCSV);\n\t\tclosePrintWriter();\n\t}", "title": "" }, { "docid": "f5cf02fb0fd6bca6d2a27b6c4d872bab", "score": "0.5152901", "text": "File mo38955l();", "title": "" }, { "docid": "13a8ca6aef9ea8d6d5ba9a3ee64f8a7d", "score": "0.5149399", "text": "private void saveFile(String file) throws IOException {\r\n\t\t\r\n\t\t//Grabs users home location.\r\n\t\tProperties p = System.getProperties();\r\n\t\tString userHome = p.getProperty(\"user.home\");\r\n\t\t\r\n\t\t\r\n\t\t//Write file and automatically closer BufferedWriter when finished.\r\n\t\ttry ( BufferedWriter out = new BufferedWriter( new FileWriter(String.format(\"%s\\\\Desktop\\\\Accounts.csv\", userHome)))) { \r\n\t\t\tout.write(file); \r\n\t\t\t\r\n\t\t\t//Alert user if file written successfully and provides them with location where it is saved.\r\n\t\t\tgenerateAlert(AlertType.INFORMATION, \"Success\", String.format(\"Accounts.csv saved to the following location: \\n%s\\\\Desktop\", userHome));\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e663a1fd82e6b8af4d6203a70be3ee8e", "score": "0.5145988", "text": "public static void main(String[] args)throws Exception {\n\r\n\tint count=0;\r\n\tString datafile = \"E:\\\\JIJO A J\\\\ECLIPSE\\\\Exceptionhandling\\\\Book.csv\";\r\n\tBufferedReader br = null;\r\n\tString line = \"\";\r\n\tString cvsSplitBy = \",\";\r\n\tbr = new BufferedReader(new FileReader(datafile));\r\n\twhile ((line = br.readLine()) != null)\r\n\t{\r\n\t count+=1;\r\n\t \r\n\t}\r\nSystem.out.println(count);\r\n\t}", "title": "" }, { "docid": "3fc1365a98e940489ac9ae7bd7965f5c", "score": "0.5143512", "text": "CSVReader(String fileName, char delimiter) throws FileNotFoundException {\n this.delimiter = delimiter;\n\t\tthis.fileName = fileName;\n\n reader = new BufferedReader(\n new FileReader(fileName)\n );\n }", "title": "" }, { "docid": "19f0ff8a1d46ae1e985da069b2db3e5a", "score": "0.5138402", "text": "String filename();", "title": "" }, { "docid": "a18d705e383ff0364a7e276bb79b0ee0", "score": "0.5118314", "text": "public void openFile() throws FileNotFoundException {\n String line;\n elecArr = new double[24]; \n \n try {\n sc = new Scanner(new File(\"EnergyRates.csv\")); // read in the CSV file\n sc.useDelimiter(\" , \"); \n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } \n\n List<Double> temps = new ArrayList<Double>();\n\n while(sc.hasNextLine()) { // while there's more lines to read\n line = sc.nextLine(); // read next line\n String[] rowAsString;\n rowAsString = line.split(\",\"); // split row into array of 3 strings\n\n // read row into CSV Data array for later use\n for (int i=1; i < rowAsString.length; i++) {\n elecArr[numOfRows]= Double.parseDouble(rowAsString[i]);\n numOfRows++; \n }\n // miningRate += Double.parseDouble(rowAsString[1]); // add each miner to mining rate\n // increment so we can go to next row\n\n }\n\n sc.close(); //closes the scanner \n }", "title": "" }, { "docid": "1a7b1f124a2fa873defb1a8401b32568", "score": "0.51129997", "text": "private static void generateCustomerFile(BufferedReader in) {\n try {\n\n System.out.println(\"Generating Customer file...\");\n\n System.out.print(\"Enter file location:\");\n String location = in.readLine();\n\n System.out.print(\"Enter file name:\");\n String fileName = in.readLine();\n\n PrintWriter out = new PrintWriter(new FileOutputStream(new File(location + fileName + \".csv\")));\n\n printCustomerFormat(out);\n\n for (Customer customer : customers) {\n out.println(customer);\n }\n out.close();\n\n System.out.println(\"File successfully written.\");\n\n } catch (Exception e) {\n\n System.out.println(\"error generating customer file\");\n\n }\n }", "title": "" }, { "docid": "4ca8506e3ea8a11889c632d3910fb461", "score": "0.51109076", "text": "private static File loadMotifCSV(File csv, File motifsDir) throws ClassNotFoundException, IOException, SQLException {\n Class.forName(\"org.sqlite.JDBC\");\n // create the file to contain the database\n File db = File.createTempFile(\"motif_db_\", \".sqlite\");\n db.deleteOnExit();\n // configure the database\n SQLiteConfig config = new SQLiteConfig();\n config.enforceForeignKeys(true);\n SQLiteDataSource ds = new SQLiteDataSource(config);\n ds.setUrl(\"jdbc:sqlite:\" + db);\n // open a connection\n Connection connection = null;\n try {\n connection = ds.getConnection();\n Statement statement = connection.createStatement();\n statement.executeUpdate(SQL.CREATE_TBL_CATEGORY);\n statement.executeUpdate(SQL.CREATE_TBL_LISTING);\n statement.executeUpdate(SQL.CREATE_TBL_MOTIF_FILE);\n statement.executeUpdate(SQL.CREATE_TBL_LISTING_MOTIF);\n connection.setAutoCommit(false);\n importMotifCSV(csv, motifsDir, connection);\n connection.commit();\n } finally {\n if (connection != null) {\n try {\n connection.close();\n } catch (SQLException e) { /* ignore */ }\n }\n }\n if (!db.setLastModified(csv.lastModified())) {\n logger.log(Level.WARNING, \"Failed to set last modified date on \" + db);\n }\n logger.log(Level.INFO, \"Loaded Motif CSV \\\"\" + csv + \"\\\" into \\\"\" + db + \"\\\"\");\n return db;\n }", "title": "" }, { "docid": "f55958c4c2a24dce7916dba34fe6d1f6", "score": "0.5101794", "text": "public void exportOneCSVButtonPressed(){\n CSVWriter writer = new CSVWriter();\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Save file as\");\n fileChooser.getExtensionFilters().addAll(\n new FileChooser.ExtensionFilter(\"CSV Files\", \"*.csv\"),\n new FileChooser.ExtensionFilter(\"All Files\", \"*.*\"));\n Stage stage = new Stage();\n File selectedFile = fileChooser.showSaveDialog(stage);\n if(selectedFile != null) {\n writer.WriteOne(watch, selectedFile, true);\n }\n }", "title": "" }, { "docid": "a619ec611828a25ca6b76b84d482d5a9", "score": "0.50966436", "text": "String getFilePath();", "title": "" }, { "docid": "06dccd37882dc70d991b6933533637f0", "score": "0.50862414", "text": "public File selectInput(){\n JFileChooser chooser=new JFileChooser();\n FileNameExtensionFilter filter=new FileNameExtensionFilter(\"Supported Files\",\"csv\");\n chooser.setFileFilter(filter);\n int result=chooser.showOpenDialog(this);\n if(result==JFileChooser.APPROVE_OPTION){\n return chooser.getSelectedFile();\n }\n return null;\n }", "title": "" }, { "docid": "c91957832cb4f4f2f3fdcf00ecca05e5", "score": "0.50774413", "text": "private void writeFileToDisk(String fileName, StringBuffer csvBuffer, String destinationDirectory, StringBuffer buffer) throws IOException {\t\t\r\n\t\tBufferedWriter bwr = new BufferedWriter(new FileWriter(new File(destinationDirectory + fileName)));\r\n\t\tbwr.write(buffer.toString());\r\n\t\tbwr.flush();\r\n\t\tbwr.close();\r\n\t}", "title": "" }, { "docid": "b985f6f3bf9439ebb30aecc3f647670f", "score": "0.50739163", "text": "public CsvIO(File csvFile, String separator) {\n CsvFile = csvFile;\n Separator = separator;\n }", "title": "" }, { "docid": "f28af06b8bdf19b66b7f656b55c4cea9", "score": "0.50629956", "text": "private static void guardarFichero(String[] a) {\n\n FileWriter fichero = null;\n PrintWriter pw;\n try {\n //Indicamos el fichero donde se escribiran los datos\n //Si indicamos true como segundo parametro y el fichero ya existe\n //copiara la linea seguidamente de los datos ya existentes,\n //si no SOBREESCRIBE el archivo con los datos nuevos\n fichero = new FileWriter(\"./DGTcsv.txt\", true);\n pw = new PrintWriter(fichero);\n\n //Por cada string de la lista lo guarda en una linea en el fichero\n for (String aLista : a) {\n pw.print(aLista);\n System.out.print(aLista);\n }\n\n //Agregamos el salto de linea al final de la linea almacenada\n pw.println(\"\");\n\n System.out.println(\"\");\n\n } catch (Exception e) {\n e.printStackTrace();\n //En caso de error informamos al usuario\n System.out.println(\"Problema al emmagatzenar una linea\");\n } finally {\n try {\n // Nuevamente aprovechamos el finally para\n // asegurarnos que se cierra el fichero.\n if (null != fichero)\n fichero.close();\n } catch (Exception e2) {\n e2.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "40bcf931226b41f4ad95cee1e7888394", "score": "0.50333726", "text": "public void writeCsvFile(String fileName) {\n\t\ttry {\n\t\t\tfileWriter.append(sb.toString());\n\t\t\tSystem.out.println(\"CSV Created\");\n\t\t}catch(Exception e) {\n\t\t\tSystem.out.println(\"Error in CsvFileWriter !!!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "7288c4ad7bcf2203ea5d12c428348001", "score": "0.5032998", "text": "Path getFilePath();", "title": "" }, { "docid": "b8b6edca5ee88658f5c9c20f82eb31f9", "score": "0.5031575", "text": "private void crear(String path) {\r\n\t\tthis.file = new File(path);\r\n\t}", "title": "" }, { "docid": "cb32a25addd33600074ab4db363066e9", "score": "0.50291705", "text": "abstract String toFile();", "title": "" }, { "docid": "ba9e6e5754bf6b3e3fddc5b8e5c4676b", "score": "0.5003508", "text": "public CsvUtil(String fileName){\n String path = String.format(\"src/test/resources/%s.csv\",fileName);\n try {\n FileInputStream csvFile = new FileInputStream(path);\n csvParser = CSVFormat.DEFAULT.withFirstRecordAsHeader().parse(new InputStreamReader(csvFile));\n records = csvParser.getRecords();\n Assert.assertNotNull(csvParser,\"file is empty\");\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "49f7de07ccdb6a0a8b0e7b30be94fe6e", "score": "0.49988484", "text": "@SuppressWarnings(\"unused\")\n public static void main(String[] args) throws FileNotFoundException\n {\n if (args[0] != null)\n {\n FileReader f = new FileReader(args[0]);\n }\n else\n {\n FileReader f = new FileReader(\n \"Cases_and_Deaths_by_race_CRDT_Sep2020.csv\");\n }\n\n }", "title": "" }, { "docid": "8a8d9025cc9634c13ddf9aa486771afa", "score": "0.49974507", "text": "private void openFile()\n {\n try\n {\n\t String filename1;\n\t filename1 = \"C:/tmp/readfiles/\"+fileName;\n histoFile = new RandomAccessFile( filename1, \"rw\");\n }\n catch ( IOException ex)\n {\n System.err.println(\" File not opened properly :\"+ex.toString() );\n//\tSystem.exit(1);\n }\n }", "title": "" }, { "docid": "57c7647789b845e7f8e099bcb11fe2b9", "score": "0.49862507", "text": "public CSVWriter(String file) {\r\n\t\tsuper(file, \",\");\r\n\t}", "title": "" }, { "docid": "ab9c36c3866d17f01cdf820eef9c6e53", "score": "0.49814704", "text": "public void data(String csv) {\n\t\tthis.dataTmpStr += \"\\n\" + csv;\n\t\tthis.dataTmpCt++;\n\t\tif (this.dataTmpCt >= this.TEMP_MAX) {\n\t\t\tBoolean done = false;\n\t\t\twhile (!done) {\n\t\t\t\tdone = this.writeToDataFile();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "bf26edc5fea7fc412ae2ccaeedefd6a5", "score": "0.4949951", "text": "private void readComplexCSV() {\n\t\t\n\t}", "title": "" }, { "docid": "2bae44bb82870636099039755b5f135d", "score": "0.49489313", "text": "public String[][] readDataFile(){\n Scanner input = null;\n String[][] res = new String[14][6];\n try{\n // Get file URL\n InputStream url = getClass().getResourceAsStream(\"COIT20257Ass2Data.csv\");// refer to same location with class files\n input = new Scanner(url);\n int row = 0;\n String[] arr;\n // Read data from file and store in array\n while(input.hasNextLine()){\n arr = input.nextLine().split(\",\");\n if(row > 0){// skip the first line\n res[row-1] = arr;\n }\n row++;\n }\n input.close();\n } \n catch (NullPointerException e){\n System.err.println(\"Error opening or close the file. Please, include COIT20257Ass2Data.csv file in same folder as other class files\"); \n System.exit(0);\n }\n catch (NoSuchElementException elemntException) { // Read content\n System.err.println(\"File impropertly formed.\");\n }\n catch (IllegalStateException stateException) { // Read content\n System.err.println(\"Error reading from file.\");\n }\n return res;\n }", "title": "" }, { "docid": "4127f85a0c9e576703b86a6b6ae62fa8", "score": "0.49471232", "text": "public void newFile();", "title": "" }, { "docid": "25611feb692d88553e48bd1a1005428b", "score": "0.49463046", "text": "void mo38312a(File file);", "title": "" }, { "docid": "469052fe82eb56f0ee96529498dfc28c", "score": "0.49441338", "text": "java.lang.String getFile();", "title": "" }, { "docid": "2623c73559fb6366186fe3fc8167fa79", "score": "0.49415118", "text": "private void createCSV(IProject project) {\n\t\t// Create a file in the project folder, with the name \"Project Name Report.csv\"\n\t\tFile file = new File(project.getLocation().toString(), project.getName() + \" Report.csv\");\n\t\t\n\t\t// Try to remove program stopping errors\n\t\ttry {\n\t\t\t// Create a FileWriter for the file\n\t\t\tcsvWriter = new FileWriter(file);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "124c6facc283309ac1b96c9cfd4aef1c", "score": "0.49402228", "text": "private String getNameOfFile(File file) throws IoxException{\n\t\t// get path of csv file\n\t\tString path=file.getName();\n\t\tif(path!=null){\n\t\t\tString fileName=GenericFileFilter.stripFileExtension(path);\n\t\t\treturn fileName;\n\t\t}else{\n\t\t\tthrow new IoxException(\"expected csv file\");\n\t\t}\n\t}", "title": "" }, { "docid": "b9b5648d8cb95b0233acbdf08a4f3b15", "score": "0.49384806", "text": "public void createFile(String fileName){\n }", "title": "" }, { "docid": "b3f6e53da32c70db2d8789429d78ccf6", "score": "0.49372926", "text": "@Override\n public boolean accept(File file) {\n return file.isDirectory() || file.getAbsolutePath().endsWith(\".csv\");\n }", "title": "" }, { "docid": "38c58417d956cf3539cdf8e8db7840df", "score": "0.49366665", "text": "Path load(String filename);", "title": "" }, { "docid": "34b3f4e0c75043e5120560daf9580e2d", "score": "0.4934499", "text": "private static void createTheFile(Path p) {\n\n try {\n // Delete test file if it exists\n Files.deleteIfExists(p);\n\n List<String> list = List.of(\n \"1,George,ABC\",\n \"2,Carol,DEF\",\n \"3,Mary,EFG\",\n \"4,Ralph,ABC\",\n \"5,Arthur,ABC\",\n \"6,Maggie,DEF\",\n \"7,Brandy,EFG\"\n );\n\n // Write List<String to the file in a single line\n Files.write(p, list);\n\n } catch (IOException io) {\n System.out.println(io);\n }\n }", "title": "" }, { "docid": "5cb169e8caaac70c6942a50a201b9ae6", "score": "0.4930332", "text": "public static void writeCSV(String path, ArrayList<String> file){\n\n if(csvCheck(path)){\n\n try(FileWriter fw = new FileWriter(path)){\n for(String l : file)\n fw.append(l + \"\\n\");\n fw.close();\n } catch(IOException e){\n System.out.println(\"<!> Error: file '\" + path + \"' is not writable or does not exist\");\n }\n\n }\n\n }", "title": "" }, { "docid": "43e2f05cfaff595690eae107294be48e", "score": "0.49231806", "text": "public ArrayList<String[]> readCSV() {\n ArrayList<String[]> csvInput = new ArrayList<>();\n try {\n File f = new File(getClass().getResource(csvName).getFile());\n Scanner scan = new Scanner(f);\n // read each line and split by \",\" delimiter\n while (scan.hasNextLine()) {\n csvInput.add(scan.nextLine().split(\",\"));\n }\n scan.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return csvInput;\n }", "title": "" }, { "docid": "1869b87898db0cac9817a0aadeee7db0", "score": "0.4916558", "text": "public static File getTestFile(String path)\n {\n return new File(getBasedir(), path);\n }", "title": "" }, { "docid": "185d2133683e2c02920144f4cab9103e", "score": "0.49122718", "text": "Path getUltiStudentFilePath();", "title": "" }, { "docid": "026f2f47f05aecbf66ef91a383059e6e", "score": "0.4911069", "text": "public CsvFileCollection(@NonNull File baseName) {\n // strip the .csv file suffix\n if (baseName.getName().endsWith(\".csv\")) {\n baseName = new File(baseName.getParentFile(),\n baseName.getName().substring(0, baseName.getName().length() - \".csv\".length()));\n }\n this.baseName = baseName;\n }", "title": "" }, { "docid": "69abed4227320d92121ae62125798818", "score": "0.49092245", "text": "private void addStudentToFile(Student student) {\n if (existsInFile(student)) {\n return;\n }\n PrintWriter pw = null;\n String output = \"\";\n output += Long.toString(student.studentId) + \",\";\n output += student.studentName + \",\";\n output += student.major + \",\";\n output += student.level + \",\";\n output += Integer.toString(student.age) + \",\";\n output += Long.toString(student.recordId);\n try {\n pw = new PrintWriter(new FileOutputStream(new File(\"src/Student.csv\"), true));\n pw.println(output);\n pw.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found.\");\n }\n }", "title": "" }, { "docid": "7b5bb7416db20d7bdc0e0724aa20fda8", "score": "0.48979118", "text": "public void testAverageTemperatureInFile()\n {\n FileResource fr = new FileResource();\n CSVParser parser = fr.getCSVParser();\n double csv = averageTemperatureInFile (parser);\n System.out.println(\" Average temperature in file is \" +csv);\n }", "title": "" }, { "docid": "36057dff1688fdf3cda6d7a562fa8202", "score": "0.48970327", "text": "private static void readCSVFile(){\n String[] nextLine;\n try {\n while ((nextLine = getReader().readNext()) != null) {\n allLines.add(nextLine);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "eaf4d3d5758f84de6353b39032b81e08", "score": "0.4864623", "text": "String getFileName();", "title": "" }, { "docid": "86c68f133d1db6439f8f89fe94be7c40", "score": "0.48626924", "text": "void createFile(String fileName) throws IOException;", "title": "" }, { "docid": "08e48038ebf1468dce7ce9f0629239d4", "score": "0.4861962", "text": "Path getSpendingBookFilePath();", "title": "" }, { "docid": "78257b8ff4aa1f844b25e3cd539d299a", "score": "0.48543307", "text": "public void readCSVData() {\n\t\tString pathToFile = \"\";\n\t\tList<String[]> data = dataDrivenTesting.CsvData.get(pathToFile);\n\t\tfor (String[] record : data) {\n\t\t\tfor (String field : record) {\n\t\t\t\tSystem.out.println(field);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "48e3d1d5a1f80655cf6937b2c829eaef", "score": "0.4838562", "text": "public saveFile(String file_path)\r\n\t{\r\n\t\tpath= file_path;\r\n\t}", "title": "" }, { "docid": "4ecd04eadbe7ca4ff7dc8565c6ce61f7", "score": "0.48335811", "text": "String path();", "title": "" }, { "docid": "4ecd04eadbe7ca4ff7dc8565c6ce61f7", "score": "0.48335811", "text": "String path();", "title": "" }, { "docid": "9841fb79d820e637902ccc92e4c754bb", "score": "0.482648", "text": "Path getPatientRecordsFilePath();", "title": "" }, { "docid": "24687b35f7a8c14f08d7444546e3b289", "score": "0.48114127", "text": "public void SubmitCsvFile() throws Exception {\n\t\tgetDriver().get(\"https://stg.autobrain.com/worker/retail_fulfillment/ready_for_distribution\");\n\n\t\t// Click on upload file button\n\t\tWebElement upload_file = PresenceOfElementByXpath(\"//input[@name='file']\", 15);\n\n\t\tupload_file.sendKeys(SignupModel.csvFile.getAbsolutePath());\n\t\tThread.sleep(2000);\n\t}", "title": "" }, { "docid": "02c8d7e72d66f110ae5334bc73124808", "score": "0.480904", "text": "private static void openFile() throws Exception{\n RandomAccessFile raf=new RandomAccessFile(file,\"rwd\");\n fileChannel = raf.getChannel();\n /*fileChannel = FileChannel.open(path,\n StandardOpenOption.CREATE, StandardOpenOption.APPEND, StandardOpenOption.WRITE);*/\n }", "title": "" }, { "docid": "0a59538e7d7b3adbf3a1f09c863b9298", "score": "0.48060688", "text": "@Test\r\n\tpublic void ExcelTest() {\r\n\t\tString filePath = \"D://\"+\"file/\"+1+\".xls\";\r\n\t\tSystem.out.println(filePath);\r\n\t\tList<User> users = userServiceImpl.findUserByDeptIdAndUser(16, null);\r\n\t\tExcelExportUtil.exportToFile(users,filePath);\r\n\t}", "title": "" }, { "docid": "99091a5bf9ddf986d9d098059afc01f3", "score": "0.47868556", "text": "public void fileNotFound() throws FileNotFoundException {\n\t\tFileReader f = new FileReader(\"C:\\\\Test.xlsx\");\n\t}", "title": "" }, { "docid": "84bef8903e79dd0ddc4e258a6666fc39", "score": "0.47851458", "text": "public void printToFile(String pathName);", "title": "" }, { "docid": "6c201e2ab8cbf8a38455c29aef1c2cfb", "score": "0.47845995", "text": "public static void catt(String path) throws Exception {\n\t\tif (!path.contains(\":\")) {\r\n\t\t\tpath = System.getProperty(\"user.dir\") + \"\\\\\" + path;\r\n\t\t}\r\n\r\n\t\tFileReader fileReader = new FileReader(new File(path));\r\n\t\tString filecontents = \"\";\r\n\t\tint i;\r\n\t\twhile ((i = fileReader.read()) != -1) {\r\n\t\t\tchar ch = (char) i; // takes char char because if there any space\r\n\t\t\tfilecontents = filecontents + ch;\r\n\t\t}\r\n\r\n\t\tSystem.out.print(filecontents);\r\n\r\n\t}", "title": "" }, { "docid": "3caa49bd3caf4def98fe3c5f334c04a2", "score": "0.47758144", "text": "public boolean testFile(String filepath);", "title": "" }, { "docid": "2819ff7ae16e49d9008b98f06dac698d", "score": "0.47706422", "text": "public static void GetCSVFile(String Dir, ArrayList<GetImageInfo> RawData) throws IOException\n\t{\n\t\t\n\t\tFile file = new File(Dir + \"Data\");\n\t\tif (!file.exists()) \n { \n file.mkdirs();\n }\n\t\tfile = new File(Dir + \"Data/data.csv\");\t\n\t\t\n\t\t\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(file));\n\t\t\n\t\t\n\t\tString line;\n\t\tfor (int i = 0; i < RawData.size(); i++) \n\t\t{\n\t\t\tline = RawData.get(i).GetInfo();\n\t\t\tString[] values= line.split(\" \",-1);\n\t\t\tbw.write(values[0] + \",\" + values[1] + \",\" + values[2] + \",\" + values[3] + \",\" + values[4] + \",\" + values[5] + \",\" + values[6] + \",\" + values[7] + \",\" + values[8] + \"\\n\");\n\t\t}\n\t\t//br.close();\n\t\tbw.close();\n\t}", "title": "" }, { "docid": "ac8596a0b3d389699a532f8dd22a4b3b", "score": "0.4754772", "text": "public File()\r\n {\r\n super(\"file\");\r\n }", "title": "" }, { "docid": "fa3c5f5da4732162a3e115912cbd96da", "score": "0.4749661", "text": "public static void showAllRecords()\r\n {\r\n String filePath = \"src\\\\marks.csv\";\r\n File myfile = new File(filePath);\r\n \r\n try \r\n {\r\n Scanner readAllRecords = new Scanner(myfile);\r\n \r\n while(readAllRecords.hasNext())\r\n {\r\n String marksFileData = readAllRecords.next();\r\n System.out.println(marksFileData);\r\n }\r\n readAllRecords.close();\r\n System.out.println(\"\");\r\n } \r\n catch (FileNotFoundException ex) \r\n {\r\n //If an error occurs in the try statement, this block runs\r\n Logger.getLogger(editAMark.class.getName()).log(Level.SEVERE, null, ex);\r\n } \r\n }", "title": "" }, { "docid": "cfc50b763adbd4f917d1807f5aa63d9f", "score": "0.47469828", "text": "public String getFileName();", "title": "" }, { "docid": "cfc50b763adbd4f917d1807f5aa63d9f", "score": "0.47469828", "text": "public String getFileName();", "title": "" }, { "docid": "cfc50b763adbd4f917d1807f5aa63d9f", "score": "0.47469828", "text": "public String getFileName();", "title": "" }, { "docid": "2f37099bf767009458bf2f09d2ed596d", "score": "0.47445065", "text": "void ReadCsvReport(String ReportCsvFile)\n {\n \tString filename = ReportCsvFile;\n\n\t File file =new File(filename);\n\t try {\n\t \t String data = null ,ViewReportInfo=\"\" ;\n\t \t Scanner inputStream =new Scanner(file);\n\t \t while(inputStream.hasNext()){\n\t \t\t data=inputStream.nextLine().split(\",\")[0];\t \t\t \n\t \t\t ViewReportInfo=ViewReportInfo+data+\"\\n\";\n\t \t\t System.out.println(data+\"\\n\");\n\t \t\t \n\t \t }\n\t \t \n\t \t resultLbl.setVisible(true);\n\t \t ResultLabel1.setVisible(true);\n\t \t ResultLabel1.setText(ViewReportInfo);\n\t \t ViewReportInfo=\"\";\n\t \t inputStream =new Scanner(file);\n\n\t \t while(inputStream.hasNext()){\n\t \t\t data=inputStream.nextLine().split(\",\")[1];\t \t\t \n\t \t\t ViewReportInfo=ViewReportInfo+data+\"\\n\";\n\t \t\t System.out.println(data+\"\\n\");\n\t \t\t \n\t \t }\n\t \t ResultLabel.setVisible(true);\n\t \t ResultLabel.setText(ViewReportInfo);\n\n\t }\n\t catch(FileNotFoundException e)\n\t {\n \t\t System.out.println(\"Src File Error\");\n\n\t }\n }", "title": "" }, { "docid": "f703c3ef230ca8594d6bda3419446744", "score": "0.47414982", "text": "static void open(){\n \n try{ \n //Se llama al metodo get de la clase Desktop\n Desktop d = Desktop.getDesktop();\n //La variable dir contiene la direccion del archivo\n File f = new File(\"/home/ray_din/proteco/java/proyecto/pokemon_easy/build/test.pdf\");\n d.open(f);\n }\n catch(Exception e) {\n System.out.println(\"The file is not found\");\n }\n \n \n }", "title": "" }, { "docid": "6fea3b7c8533ebcc3c14992a3474a476", "score": "0.4736225", "text": "static void readfile(String path)\n\t{\n\t\tFileInputStream in;\n\t\ttry {\n\t\t\tin = new FileInputStream(\"C:\\\\Users\\\\sridhar\\\\Desktop\\\\IO Demo\\\\input1.txt\");\n\t\t\tint i;\n\t\t\t while(( i = in.read())!= -1)\n{\n\tSystem.out.print( (char)i);\n}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t}", "title": "" }, { "docid": "eb03fd8ccecf477fb296b201e5839ce8", "score": "0.47351262", "text": "public File(String name, String path) {\r\n super(name, path);\r\n }", "title": "" }, { "docid": "7818804d0fa672059b506373621da7ef", "score": "0.47300687", "text": "@Override\n\tpublic boolean importCSVAsTable(String file, String tableName){\n\t\tString command = \"DROP TABLE \"+ tableName +\" IF EXISTS; CREATE TABLE \"+ tableName +\" AS SELECT * FROM CSVREAD('\" + file + \"');\";\n\t\tDM.addNode(new TableNode(tableName));\n\t\tif(!IDBCutoff){\n\t\treturn DB.arbitrarySQL(command);\n\t\t}else {return true;}\n\t}", "title": "" } ]
5fcd82e235a834d7e9d2a397fefc305f
READ CLASS JAVA_DOC WHEN TEST FAILS!
[ { "docid": "b06f38807115dda5b54ade3a000e1f1d", "score": "0.0", "text": "@Test\n public void subjectsByName() throws Exception {\n final SubjectResponse response = isbndb.subjectsByName(\"Fantasy\");\n assertNotNull(response);\n assertThat(response.getIndexSearched(), is(\"subject_name\"));\n assertThat(response.getCurrentPage(), is(1));\n final List<Subject> data = response.getData();\n assertThat(data.size(), is(10));\n assertNotNull(response.getJson());\n }", "title": "" } ]
[ { "docid": "82b6a7791a8e6851951541eb2d298d52", "score": "0.61456466", "text": "@Test\n public void testGetDoc_fornecedor() {\n }", "title": "" }, { "docid": "7786d81f85a73158d84d1f44830ce23e", "score": "0.6078868", "text": "public static void process(Class clazz) {\n if (clazz.isAnnotationPresent(Doc.class)) {\n int errorsCount = 0;\n System.out.println(\"Analyzing \\'\" + clazz.getSimpleName() + \"\\'...\");\n\n Doc classdoc = (Doc) clazz.getDeclaredAnnotation(Doc.class);\n if (classdoc.desc().isEmpty()) {\n System.out.println(\"\\n\\t=> Documentation for Class Desc is missing.\");\n errorsCount++;\n }\n\n Method[] methods = clazz.getDeclaredMethods();\n for (Method method : methods) {\n\n\n int methodModifier = method.getModifiers();\n\n // check for the non private method\n if (!Modifier.isPrivate(methodModifier)) {\n\n System.out.println();\n System.out.println(\"\\t\" + method.getName() + \" : \");\n\n int errors = 0;\n // check for the Doc annotation\n if (method.isAnnotationPresent(Doc.class)) {\n Doc doc = method.getAnnotation(Doc.class);\n\n // method desc check\n if (!isDescPresent(method, doc)) {\n System.out.println(\"\\t\\t=> \" + \"Method Desc is missing\");\n ++errors;\n }\n\n // method params check\n if (getMissingParams(method, doc) > 0) {\n System.out.println(\"\\t\\t=> \" + \"Documtentation for \" + getMissingParams(method, doc) + \" parameter(s) is missing.\");\n ++errors;\n }\n\n // method returnType check\n if (!isReturnTypePresent(method, doc)) {\n System.out.println(\"\\t\\t=> \" + \"Documtentation for return Type is missing.\");\n ++errors;\n }\n }\n else {\n System.out.println(\"\\t\\t=> \" + \"@Doc Annotation is missing\");\n ++errors;\n }\n if (errors == 0) {\n System.out.println(\"\\t\\t=> \" + \"No changes needed.\");\n }\n errorsCount += errors;\n }\n }\n System.out.println();\n if (errorsCount > 0)\n System.out.println(\"DocProcessor has found \" + errorsCount + \" errors in class \\'\" + clazz.getSimpleName() + \"\\'.\");\n else\n System.out.println(\"DocProcessor has found no errors in class \\'\" + clazz.getSimpleName() + \"\\'.\");\n }\n else\n System.out.println(\"Doc annotation is not present in \" + clazz.getSimpleName());\n }", "title": "" }, { "docid": "637331e0f78c8430f18cd024f1a0e136", "score": "0.6073212", "text": "@Test\r\n\tpublic void testClass(){\r\n\t\ttestUtilityClass(IO.class);\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "102aaa6f2242ecb14a05de7bd1082f55", "score": "0.60638136", "text": "@Test\n public void test20130722093607208742()\n throws Exception\n {\n System.out.println(\"Test: 20130722093607208742\");\n\n final URL resource = Resources.getResource(getClass(),\n \"List of rt.jar Classes.dat\");\n\n final List<String> lines = Resources.readLines(resource, Charset.defaultCharset());\n\n for (String line : lines)\n {\n if (line.trim().startsWith(\"java.\") || line.trim().startsWith(\"javax.\"))\n {\n try\n {\n final Class clazz = Class.forName(line.trim());\n\n checkDeclaredType(clazz);\n }\n catch (ClassNotFoundException ex)\n {\n // Skip the class.\n }\n }\n }\n\n assertTrue(class_count > 1000);\n assertTrue(field_count > 1000);\n assertTrue(ctor_count > 1000);\n assertTrue(method_count > 1000);\n assertTrue(annotation_count > 250);\n assertTrue(parameter_count > 1000);\n\n System.out.println(\"------------------------------------------------------------\");\n System.out.println(\"Class Count: \" + class_count);\n System.out.println(\"Field Count: \" + field_count);\n System.out.println(\"Constructor Count: \" + ctor_count);\n System.out.println(\"Method Count: \" + method_count);\n System.out.println(\"Annotation Count: \" + annotation_count);\n System.out.println(\"Parameter Count: \" + parameter_count);\n System.out.println(\"------------------------------------------------------------\");\n\n }", "title": "" }, { "docid": "5644d59eda3cf7e4d56ddbd02eafb706", "score": "0.5919542", "text": "@Test\n void t1() throws IOException, ClassNotFoundException {\n System.out.println(123);\n }", "title": "" }, { "docid": "d4c20e28f21eddafd5385df4387353e7", "score": "0.5818768", "text": "@Test\n public void testReadFromFile() {\n }", "title": "" }, { "docid": "697bd4c6a4096e9ef80434663e6d217e", "score": "0.58092153", "text": "@Test\n\t\t@Order(5)\n\t\tpublic void testFileClass() throws IOException {\n\t\t\tString source = Files.readString(\n\t\t\t\t\tPath.of(\"src\", \"main\", \"java\", \"TextFileFinder.java\"),\n\t\t\t\t\tStandardCharsets.UTF_8);\n\t\t\t\n\t\t\tAssertions.assertFalse(source.contains(\"import java.io.File;\"));\n\t\t\tAssertions.assertFalse(source.contains(\".toFile()\"));\n\t\t}", "title": "" }, { "docid": "5fa01f7ef77e090604c63f3d68a62783", "score": "0.56870717", "text": "@Test\n public void testRead() throws Exception {\n }", "title": "" }, { "docid": "70650520809b221f488289ad2e7a387e", "score": "0.5644682", "text": "@Test\n\t@Ignore\n\tpublic void testReadFromFile()\n\t{\n\t}", "title": "" }, { "docid": "4aa6c845237358f81e48507ff29192e7", "score": "0.5643639", "text": "public Package javadoc(Package unPackage, String allPack) throws IOException, ClassNotFoundException {\n\n System.out.println(\"Package :\" + unPackage.getNom().split(File.separator)[unPackage.getNom().split(File.separator).length - 1]);\n if (unPackage.getClasse().size() > 0) {\n Files.createDirectory(Paths.get(unPackage.getNom() + File.separator + \"JAVADOC\"));\n\n }\n for (Classe a : unPackage.getClasse()) {\n\n System.out.println(\"JavaDoc classe :\" + a.toString());\n\n m_terminal.command(\"javadoc\", \"-cp\", allPack, \"-d\", unPackage.getNom() + File.separator + \"JAVADOC\", unPackage.getNom() + File.separator + a.toString());\n try {\n Process test = m_terminal.start();\n test.waitFor();\n InputStream i = test.getErrorStream();\n int nbOctet;\n\n if (i.available() != 0) {\n\n byte[] buffer = new byte[2048];\n String erreur = new String();\n while ((nbOctet = i.read(buffer, 0, 2048)) > 0) {\n erreur = erreur.concat(new String(buffer, 0, nbOctet));\n\n // System.out.print(erreur.concat(new String(buffer,0,nbOctet)));\n }\n if (erreur.contains(\"error: class\")) {\n\n \n\n //System.out.println(\"Classe erreur :\"+ a.toString() + erreur);\n // a.initJavaDoc(unPackage.getNom() + File.separator + \"JAVADOC\" + File.separator + a.toString().replace(\".java\", \".html\"));\n\n \n a.addError(erreur);\n } else if (erreur.contains(\"warning\")) {\n // System.out.println(\"Classe warning :\"+ a.toString() );\n a.initJavaDoc(unPackage.getNom() + File.separator + \"JAVADOC\" + File.separator + a.toString().replace(\".java\", \".html\"));\n\n } else {\n a.initJavaDoc(unPackage.getNom() + File.separator + \"JAVADOC\" + File.separator + a.toString().replace(\".java\", \".html\"));\n }\n\n } else {\n a.initJavaDoc(unPackage.getNom() + File.separator + \"JAVADOC\" + File.separator + a.toString().replace(\".java\", \".html\"));\n\n }\n\n } catch (IOException ex) {\n Logger.getLogger(Console.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InterruptedException ex) {\n Logger.getLogger(Console.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n\n ArrayList<Package> racine = unPackage.getPack();\n for (int i = 0; i < racine.size(); i++) {\n Package actuel = racine.get(i);\n\n this.javadoc(actuel, allPack);\n\n }\n return unPackage;\n\n }", "title": "" }, { "docid": "cc12342b30ce9ba6388bb7c81b6fa974", "score": "0.56173867", "text": "@Test\n public void scanFileWithNoBugs() throws InvocationTargetException {\n String fileName = \"empty.xml\";\n Collection<FileAnnotation> annotations = parseFile(fileName);\n\n assertEquals(ERROR_MESSAGE, 0, annotations.size());\n }", "title": "" }, { "docid": "6a2fa8ee2caf8c331a33933813de995e", "score": "0.5613251", "text": "@Test\n public void testRead_3() {\n }", "title": "" }, { "docid": "b239a918225255124be38908060d0706", "score": "0.559989", "text": "@Test(timeout = 4000)\n public void test06() throws Throwable {\n SupportingDocument supportingDocument0 = new SupportingDocument();\n supportingDocument0.setFileName(\"supportingDocument.documentCode.label\");\n try { \n SupportingDocument.validateFields(supportingDocument0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"macaw.businessLayer.SupportingDocument\", e);\n }\n }", "title": "" }, { "docid": "42525f0fc9d1a1b41f48ff26e991e188", "score": "0.5599609", "text": "@Test\n\tpublic void scanClassTest() {\n\t\tfinal List<Annotation> annotations = AnnotationUtil.scanClass(TargetClass.class);\n\t\tAssert.assertEquals(5, annotations.size());\n\t\tAssert.assertEquals(\"TargetClass\", ((AnnotationForTest)annotations.get(0)).value());\n\t\tAssert.assertEquals(\"TargetSuperClass\", ((AnnotationForTest)annotations.get(1)).value());\n\t\tAssert.assertEquals(\"TargetSuperInterface\", ((AnnotationForTest)annotations.get(2)).value());\n\t\tAssert.assertEquals(\"SuperInterface\", ((AnnotationForTest)annotations.get(3)).value());\n\t\tAssert.assertEquals(\"SuperTargetSuperInterface\", ((AnnotationForTest)annotations.get(4)).value());\n\t}", "title": "" }, { "docid": "2aa0b7ebdb98ac24c57fa40330186945", "score": "0.5589686", "text": "@Test\n public void validClass() throws IOException {\n compileAndAssertNoMessage(\"/com/github/pellaton/springconfigvalidation/ValidTestConfiguration\");\n }", "title": "" }, { "docid": "0b0c2c2c8c89d55c3b35cd3e51153284", "score": "0.5546051", "text": "@Test\n public void testGetReader() {\n System.out.println(\"getReader\");\n Launcher instance = new LauncherImpl();\n Class expResult = null;\n Class result = instance.getReader();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "e0f0fb463f7172c486f4f05e2af0135a", "score": "0.5530641", "text": "public void testClassForNameFalsePickup() throws Exception {\n\t\ttry (Analyzer a = new Analyzer()) {\n\t\t\tClazz c = new Clazz(a, \"\", null);\n\t\t\tc.parseClassFile(new FileInputStream(\"jar/DeploymentAdminPermission.1.jclass\"),\n\t\t\t\tnew ClassDataCollector() {});\n\t\t\tSet<PackageRef> referred = c.getReferred();\n\t\t\tDescriptors d = new Descriptors();\n\t\t\tassertFalse(referred.contains(d.getPackageRef(\"\")));\n\t\t\tSystem.out.println(referred);\n\t\t}\n\t}", "title": "" }, { "docid": "71e9c71fe878ca26f25b06b33a45b5d8", "score": "0.5529435", "text": "@Test\n public void testGetClassAnnotations() {\n String json = \"{}\";\n List<String> expectedAnnotations = new ArrayList<>();\n\n PageObjectClass node = createRootNode(json).getImplementation();\n PageObjectValidationTestHelper.validateAnnotationList(\n node.getClassAnnotations(), expectedAnnotations);\n }", "title": "" }, { "docid": "d6faeabbbefc02610075b8124fb6ffcf", "score": "0.55099314", "text": "@Test public void testResources() throws Exception\n \t{\n \t\tClass<?> c = loader.loadClass(GOOD_APPLICATION);\n \t\tClassLoader loader = c.getClassLoader();\n \n \t\t// Read the .class file for the app's entry point.\n \t\tURL classFileUrl = loader.getResource(GOOD_CLASS_FILE);\n \t\tInputStream in = classFileUrl.openStream();\n \t\tassertNotNull(in);\n \n \t\tbyte buffer[] = new byte[4096];\n \t\tint bytes = in.read(buffer);\n \n \t\t// Just make sure the file is a valid Java class file (magic 0xCAFEBABE).\n \t\tbyte magic[] = { (byte) 0xCA, (byte) 0xFE, (byte) 0xBA, (byte) 0xBE };\n \t\tassertTrue(bytes > magic.length);\n \t\tfor (int i = 0; i < magic.length; i++) assertEquals(magic[i], buffer[i]);\n \t}", "title": "" }, { "docid": "e9af8464884b0e1eb3498889ce39616a", "score": "0.5506326", "text": "public void testForErno() throws FileStateInvalidException, IOException {\n File tutorialFile = getFile(getSourceDir(), \"/org/netbeans/test/codegen/Tutorial2.java\");\n JavaSource tutorialSource = JavaSource.forFileObject(FileUtil.toFileObject(tutorialFile));\n \n Task task = new Task<WorkingCopy>() {\n\n public void run(WorkingCopy workingCopy) throws java.io.IOException {\n workingCopy.toPhase(Phase.RESOLVED);\n CompilationUnitTree cut = workingCopy.getCompilationUnit();\n \n TreeMaker make = workingCopy.getTreeMaker();\n // we know there is exactly one class, named Tutorial2.\n // (ommiting test for kind corectness!)\n ClassTree clazz = (ClassTree) cut.getTypeDecls().get(0);\n // get the method, there is a default constructor and\n // exactly one method, named demoMethod().\n VariableTree var = make.Variable(make.Modifiers(\n Collections.<Modifier>emptySet(), Collections.<AnnotationTree>emptyList()),\n \"myField\",\n make.Identifier(\"MyClass\"),\n make.MethodInvocation(\n Collections.<ExpressionTree>emptyList(), \n make.MemberSelect(make.Identifier(\"Something\"), \"getMyClass\"),\n Collections.<ExpressionTree>emptyList()\n )\n );\n // rewrite the original modifiers with the new one:\n ClassTree copy = make.addClassMember(clazz, var);\n workingCopy.rewrite(clazz, copy);\n }\n\n };\n\n tutorialSource.runModificationTask(task).commit();\n \n // print the result to the System.err to see the changes in console.\n BufferedReader in = new BufferedReader(new FileReader(tutorialFile));\n PrintStream out = System.out;\n String str;\n while ((str = in.readLine()) != null) {\n out.println(str);\n }\n in.close();\n }", "title": "" }, { "docid": "81d64f88e62d4a2b234d27878bb5428b", "score": "0.54473823", "text": "public void testBug374063() throws JavaModelException, IOException {\n IPath projectPath = env.addProject(\"Project\", \"1.5\");\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n fullBuild(projectPath);\n // remove old package fragment root so that names don't collide\n env.removePackageFragmentRoot(projectPath, \"\");\n IPath srcRoot = env.addPackageFragmentRoot(projectPath, \"src\");\n env.setOutputFolder(projectPath, \"bin\");\n // prepare the project:\n setupProjectForNullAnnotations(projectPath);\n env.getJavaProject(projectPath).setOption(JavaCore.COMPILER_PB_MISSING_NONNULL_BY_DEFAULT_ANNOTATION, JavaCore.ERROR);\n env.getJavaProject(projectPath).setOption(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION, JavaCore.ERROR);\n String test1Code = \"package p1;\\n\" + \"public class Test1 {\\n\" + \" public String output(List<Integer> integers) {\\n\" + \" return \\\"\\\";\\n\" + \" }\\n\" + \"\t public void output(List<Double> doubles) {}\\n\" + \"}\";\n env.addClass(srcRoot, \"p1\", \"Test1\", test1Code);\n fullBuild(projectPath);\n // resource for compile errors should be Test1 and not p1\n expectingProblemsFor(projectPath, \"Problem : A default nullness annotation has not been specified for the package p1 [ resource : </Project/src/p1> range : <8,10> category : <90> severity : <2>]\\n\" + \"Problem : List cannot be resolved to a type [ resource : </Project/src/p1/Test1.java> range : <130,134> category : <40> severity : <2>]\\n\" + \"Problem : List cannot be resolved to a type [ resource : </Project/src/p1/Test1.java> range : <58,62> category : <40> severity : <2>]\");\n // add package-info.java with default annotation\n String packageInfoCode = \"@org.eclipse.jdt.annotation.NonNullByDefault\\n\" + \"package p1;\\n\";\n env.addClass(srcRoot, \"p1\", \"package-info\", packageInfoCode);\n incrementalBuild(projectPath);\n expectingProblemsFor(projectPath, \"Problem : List cannot be resolved to a type [ resource : </Project/src/p1/Test1.java> range : <130,134> category : <40> severity : <2>]\\n\" + \"Problem : List cannot be resolved to a type [ resource : </Project/src/p1/Test1.java> range : <58,62> category : <40> severity : <2>]\");\n // verify that all package CU's were recompiled\n expectingUniqueCompiledClasses(new String[] { \"p1.Test1\", \"p1.package-info\" });\n }", "title": "" }, { "docid": "3c93c890de87d4170c0269d02f3624ea", "score": "0.543423", "text": "@Test\n\tpublic void testGetClassVal() {\n\t}", "title": "" }, { "docid": "1be33a429e1e0c7ddf083154eb40217a", "score": "0.5432095", "text": "public void test001() throws Exception {\n\t\tthis.runNegativeTest(\n\t\t\t\tnew String[] {\n\t\t\t\t\t\"X.java\",\n\t\t\t\t\t\"public class X {\\n\" +\n\t\t\t\t\t\" @Marker int x;\\n\" +\n\t\t\t\t\t\" Zork z;\\n\" +\n\t\t\t\t\t\"}\\n\" +\n\t\t\t\t\t\"@java.lang.annotation.Target (java.lang.annotation.ElementType.TYPE_USE)\\n\" +\n\t\t\t\t\t\"@interface Marker {}\\n\",\n\t\t\t\t\t\n\t\t\t\t\t\"java/lang/annotation/ElementType.java\",\n\t\t\t\t\t\"package java.lang.annotation;\\n\"+\n\t\t\t\t\t\"public enum ElementType {\\n\" +\n\t\t\t\t\t\" TYPE,\\n\" +\n\t\t\t\t\t\" FIELD,\\n\" +\n\t\t\t\t\t\" METHOD,\\n\" +\n\t\t\t\t\t\" PARAMETER,\\n\" +\n\t\t\t\t\t\" CONSTRUCTOR,\\n\" +\n\t\t\t\t\t\" LOCAL_VARIABLE,\\n\" +\n\t\t\t\t\t\" ANNOTATION_TYPE,\\n\" +\n\t\t\t\t\t\" PACKAGE,\\n\" +\n\t\t\t\t\t\" TYPE_PARAMETER,\\n\" +\n\t\t\t\t\t\" TYPE_USE\\n\" +\n\t\t\t\t\t\"}\\n\"\n\t\t\t\t},\n\t\t\t\t\"----------\\n\" + \n\t\t\t\t\"1. ERROR in X.java (at line 3)\\n\" + \n\t\t\t\t\"\tZork z;\\n\" + \n\t\t\t\t\"\t^^^^\\n\" + \n\t\t\t\t\"Zork cannot be resolved to a type\\n\" + \n\t\t\t\t\"----------\\n\");\n\t}", "title": "" }, { "docid": "1c3982a9110bca038b1a57308049602f", "score": "0.54307675", "text": "public abstract Object getTestClasspath();", "title": "" }, { "docid": "b5129c1338a3388b5fe34df2885d83d7", "score": "0.542949", "text": "@Test\n public void getFileFromTestClass() {\n String testClass = \"com.example.Class\";\n String expectedFile = \"Class.java\";\n\n // execute method to be tested\n String actualFile = MavensurefireTest.getFileFromTestClass(testClass);\n\n // assert result\n Assert.assertEquals(expectedFile, actualFile);\n }", "title": "" }, { "docid": "54ba8f6159e6bded003c8b8910131d48", "score": "0.5402496", "text": "public static String TestabilityResult_TestClass() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f6c63d2280fd904cc8ecfce5a0c7e8eb", "score": "0.5397892", "text": "public void test003() throws Exception {\n\t\tthis.runNegativeTest(\n\t\t\t\tnew String[] {\n\t\t\t\t\t\"X.java\",\n\t\t\t\t\t\"public class X {\\n\" +\n\t\t\t\t\t\" @Marker int x() { return 10; };\\n\" +\n\t\t\t\t\t\" Zork z;\\n\" +\n\t\t\t\t\t\"}\\n\" +\n\t\t\t\t\t\"@java.lang.annotation.Target (java.lang.annotation.ElementType.TYPE_USE)\\n\" +\n\t\t\t\t\t\"@interface Marker {}\\n\",\n\t\t\t\t\t\n\t\t\t\t\t\"java/lang/annotation/ElementType.java\",\n\t\t\t\t\t\"package java.lang.annotation;\\n\"+\n\t\t\t\t\t\"public enum ElementType {\\n\" +\n\t\t\t\t\t\" TYPE,\\n\" +\n\t\t\t\t\t\" FIELD,\\n\" +\n\t\t\t\t\t\" METHOD,\\n\" +\n\t\t\t\t\t\" PARAMETER,\\n\" +\n\t\t\t\t\t\" CONSTRUCTOR,\\n\" +\n\t\t\t\t\t\" LOCAL_VARIABLE,\\n\" +\n\t\t\t\t\t\" ANNOTATION_TYPE,\\n\" +\n\t\t\t\t\t\" PACKAGE,\\n\" +\n\t\t\t\t\t\" TYPE_PARAMETER,\\n\" +\n\t\t\t\t\t\" TYPE_USE\\n\" +\n\t\t\t\t\t\"}\\n\"\n\t\t\t\t},\n\t\t\t\t\"----------\\n\" + \n\t\t\t\t\"1. ERROR in X.java (at line 3)\\n\" + \n\t\t\t\t\"\tZork z;\\n\" + \n\t\t\t\t\"\t^^^^\\n\" + \n\t\t\t\t\"Zork cannot be resolved to a type\\n\" + \n\t\t\t\t\"----------\\n\");\n\t}", "title": "" }, { "docid": "322f575da80cc88bba8af523968c1d35", "score": "0.53587997", "text": "@Test\n\tpublic void testParseFilesJarFileOneJavaFileDeclaration() throws IOException {\n\t\tString dir = BASEDIR + \"testFiles\\\\jarTest.jar\";\n\t\tTypeFinder tf = new TypeFinder(dir, true);\n\t\tint[] dr = tf.getDeclarationsAndReferences(\"TestClass\");\n\t\tassertEquals(1, dr[0]);\n\t\t}", "title": "" }, { "docid": "2aa45fa5254ba9c03c4d941a8c559e46", "score": "0.5357019", "text": "public void testJavaTestabilityModule918() throws Exception {\n\t\tCommandLineConfig var2871 = instantiateCommandLineConfig455();\n\t\tByteArrayOutputStream var2863 = new ByteArrayOutputStream();\n\t\tPrintStream var2864 = new PrintStream(var2863);\n\t\tByteArrayOutputStream var2865 = new ByteArrayOutputStream();\n\t\tPrintStream var2866 = new PrintStream(var2865);\n\t\tInjector var2867 = Guice\n\t\t\t\t.createInjector(new ConfigModule(\n\t\t\t\t\t\tnew String[] { \"-cp\", \"not/default/path\",\n\t\t\t\t\t\t\t\t\"com.google.FirstClass com.google.second.package com.google.third.package\" },\n\t\t\t\t\t\tvar2864, var2866));\n\t\tJavaTestabilityModule var2872 = new JavaTestabilityModule(var2871);\n\t\tvar2871.validate();\n\t\tvar2871.validate();\n\t\tvar2872.getEntryList();\n\t\tvar2872.getFormat();\n\t\tvar2872.getErr();\n\t\tvar2872.getPrintDepth();\n\t\tvar2872.getEntryList();\n\t\tvar2872.getFormat();\n\t\tvar2872.getErr();\n\t\tvar2872.getPrintDepth();\n\t}", "title": "" }, { "docid": "802bdf9787b7b030aded03227a174611", "score": "0.5355585", "text": "@Test (expected = NullPointerException.class)\n\tpublic void testFileConverterMissingJavaFile() {\n\t\tString directory = BASEDIR + \"testFiles\\\\testFile(2).java\"; \n\t\tassertEquals(\"\", new String(testParser.fileToCharArray(directory)));\n\t}", "title": "" }, { "docid": "5607f10afda3b4f02a0d2f98b37e18dc", "score": "0.53534806", "text": "@Test\n public void descTest() {\n // TODO: test desc\n }", "title": "" }, { "docid": "6c35b4bbc6fd5dff076dcf3d37b52ac4", "score": "0.5313958", "text": "@Test\n public void shouldDowwmloadHtmlToDoc(){\n }", "title": "" }, { "docid": "16b7fb0cef6ab7c1444682ae1de08209", "score": "0.53134483", "text": "@Test(timeout = 4000)\n public void test2() throws Throwable {\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n ClassWriter classWriter0 = new ClassWriter(3);\n FieldWriter fieldWriter0 = new FieldWriter(classWriter0, (-974), \"K>p4%nR3C<N\", \"!\", \"Eh'\", \"Eh'\");\n fieldWriter0.visitAnnotation(\"\", true);\n Attribute attribute0 = new Attribute(\"!\");\n byte[] byteArray0 = classWriter0.toByteArray();\n fieldWriter0.getSize();\n // Undeclared exception!\n try { \n attribute0.write(classWriter0, byteArray0, 48, (-974), 54);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Attribute\", e);\n }\n }", "title": "" }, { "docid": "e153a4f82659a6f3aaf8ab4fe463fb76", "score": "0.5299195", "text": "protected void runClassFileTest(String name) {\n\t\trunJava(srcPath, \"whilelang.Main\", \"-jvm\", name + \".while\");\n//\t\tSystem.out.println(\"aaa\");\n\t\t// Second, we need to run it on the JVM\n\t\tString output = runJava(srcPath, name);\n\t\tcompare(output, outputPath + File.separatorChar + name + \".\"\n\t\t\t\t+ outputExtension);\n\t}", "title": "" }, { "docid": "b8bea6bebde458bd4990393199969b68", "score": "0.52894187", "text": "public DocException() {\r\n }", "title": "" }, { "docid": "31f765aaf5b71258ca2c4d0eb4ac3c3a", "score": "0.5284069", "text": "@Test\n\tpublic void testSimple() throws DocletException, IOException {\n\t\tString srcpath = \"org.dbdoclet.music\";\n\t\tString classpath = sourcePath;\n\n\t\tjavadoc(\"-cp\", classpath, srcpath);\n\t}", "title": "" }, { "docid": "376e6414c384e56dd36e033eca39c40d", "score": "0.5269668", "text": "public AdditionalClassTestDoc getClassTestDoc(String qualifiedClassName) {\n if (qualifiedClassName == null) {\n throw new NullPointerException();\n }\n // last set data is referred first\n for (int i = classTestDocs.size() - 1; i >= 0; i--) {\n AdditionalClassTestDoc classTestDoc = classTestDocs.get(i);\n if (qualifiedClassName.equals(classTestDoc.getQualifiedName())) {\n return classTestDoc;\n }\n }\n return null;\n }", "title": "" }, { "docid": "4d36291c991ebf2a03ce00d1f576ffa9", "score": "0.52380997", "text": "@Test(timeout = 4000)\n public void test012() throws Throwable {\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager((JavaCharStream) null);\n // Undeclared exception!\n try { \n javaParserTokenManager0.jjFillToken();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "title": "" }, { "docid": "c7c55578cb66f666de858eea2e305ee1", "score": "0.5237956", "text": "public void testForClassDefDoFirst() {\n ClassDef cd0 = new ClassDef(SourceInfo.NONE, PUBLIC_MAV, new Word(SourceInfo.NONE, \"Lisa\"),\n new TypeParameter[0], \n new ClassOrInterfaceType(SourceInfo.NONE, \"java.lang.Object\", new Type[0]), \n new ReferenceType[0], \n new BracedBody(SourceInfo.NONE, new BodyItemI[0]));\n \n _iv.forClassDefDoFirst(cd0);\n assertEquals(\"should be no errors\", 0, errors.size());\n \n //check that an error is not thrown if a class doesn't explicitely extend another class\n ClassDef cd1 = new ClassDef(SourceInfo.NONE, PUBLIC_MAV, \n new Word(SourceInfo.NONE, \"Test\"), new TypeParameter[0], JExprParser.NO_TYPE,\n new ReferenceType[0], new BracedBody(SourceInfo.NONE, new BodyItemI[0]));\n \n _iv.forClassDefDoFirst(cd1);\n assertEquals(\"there should still be 0 errors\", 0, errors.size());\n \n //check that an error is not thrown if a class implements any interfaces.\n ClassDef cd2 = \n new ClassDef(SourceInfo.NONE, PUBLIC_MAV, \n new Word(SourceInfo.NONE, \"Test\"),\n new TypeParameter[0],\n new ClassOrInterfaceType(SourceInfo.NONE, \"java.lang.Object\", new Type[0]), \n new ReferenceType[] {new ClassOrInterfaceType(SourceInfo.NONE, \"java.lang.Object\", new Type[0])}, \n new BracedBody(SourceInfo.NONE, new BodyItemI[0]));\n \n \n _iv.forClassDefDoFirst(cd2);\n assertEquals(\"there should still be 0 errors\", 0, errors.size());\n }", "title": "" }, { "docid": "0be04a16711cc33f95121cccfa859683", "score": "0.5234101", "text": "@Test(timeout = 4000)\n public void test031() throws Throwable {\n StringReader stringReader0 = new StringReader(\"abstract\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1054, 67);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(7, javaCharStream0.bufpos);\n assertEquals(\"abstract\", token0.toString());\n }", "title": "" }, { "docid": "63ee7f64072c290aa7dfc8a39f5da435", "score": "0.5232506", "text": "@Test(timeout = 4000)\n public void test013() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.jjFillToken();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "a42568600d11de58fb6fa9fcde2017a5", "score": "0.5230277", "text": "@Test\n public void scanFileWithSeveralWarnings() throws InvocationTargetException {\n String fileName = \"pmd.xml\";\n Collection<FileAnnotation> annotations = parseFile(fileName);\n\n assertEquals(ERROR_MESSAGE, 669, annotations.size());\n }", "title": "" }, { "docid": "db9bf6d49f51786f6bdb7272e3a1824b", "score": "0.5218105", "text": "@Test(timeout = 4000)\n public void test115() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\\\"package\\\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 3044, 3044);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(8, javaCharStream0.bufpos);\n assertEquals(\"\\\"package\\\"\", token0.toString());\n }", "title": "" }, { "docid": "2f0ecd02fcb1ce0bd0717cba5f41d1a7", "score": "0.52118474", "text": "@Test\n public final void testStripJavaComments() throws BuildException {\n buildRule.executeTarget(\"testStripJavaComments\");\n assertEquals(buildRule.getProject().getProperty(\"expected\"),\n buildRule.getProject().getProperty(\"testStripJavaComments\"));\n }", "title": "" }, { "docid": "85f3a2f582cbab15bd8a54d1cf08bca0", "score": "0.520633", "text": "@Test\n public void testBookShopConstructorException() {\n System.out.println(\"BookShop.BookShop(filename)\");\n try {\n BookShop shop4 = new BookShop(\"data/library4.txt\");\n fail();\n } catch (FileNotFoundException fnfe) { }\n }", "title": "" }, { "docid": "399ca224e94ff76bf475a2f1742b300d", "score": "0.5203128", "text": "public void testBug372012b() throws JavaModelException, IOException {\n IPath projectPath = env.addProject(\"Project\", \"1.5\");\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n fullBuild(projectPath);\n // remove old package fragment root so that names don't collide\n env.removePackageFragmentRoot(projectPath, \"\");\n IPath srcRoot = env.addPackageFragmentRoot(projectPath, \"src\");\n env.setOutputFolder(projectPath, \"bin\");\n // prepare the project:\n setupProjectForNullAnnotations(projectPath);\n env.getJavaProject(projectPath).setOption(JavaCore.COMPILER_PB_MISSING_NONNULL_BY_DEFAULT_ANNOTATION, JavaCore.ERROR);\n env.getJavaProject(projectPath).setOption(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION, JavaCore.ERROR);\n String test1Code = \"package p1;\\n\" + \"public class Test1 {\\n\" + \" public void foo() {\\n\" + \" new Test2().bar(\\\"\\\");\\n\" + \" }\\n\" + \"\t class Test1Inner{}\\n\" + \"}\";\n String test2Code = \"package p1;\\n\" + \"public class Test2 {\\n\" + \" public void bar(String str) {}\\n\" + \"}\";\n IPath test1Path = env.addClass(srcRoot, \"p1\", \"Test1\", test1Code);\n env.addClass(srcRoot, \"p1\", \"Test2\", test2Code);\n fullBuild(projectPath);\n expectingNoProblemsFor(test1Path);\n // should have only one marker\n expectingProblemsFor(srcRoot, \"Problem : A default nullness annotation has not been specified for the package p1 [ resource : </Project/src/p1> range : <8,10> category : <90> severity : <2>]\");\n // add default annotation to Test1\n test1Code = \"package p1;\\n\" + \"@org.eclipse.jdt.annotation.NonNullByDefault\\n\" + \"public class Test1 {\\n\" + \" public void foo() {\\n\" + \" new Test2().bar(\\\"\\\");\\n\" + \" }\\n\" + \"\t class Test1Inner{}\\n\" + \"}\";\n env.addClass(srcRoot, \"p1\", \"Test1\", test1Code);\n incrementalBuild(projectPath);\n // should have only one marker\n expectingProblemsFor(srcRoot, \"Problem : A default nullness annotation has not been specified for the package p1 [ resource : </Project/src/p1> range : <8,10> category : <90> severity : <2>]\");\n // verify that only Test1's CU's were recompiled\n expectingUniqueCompiledClasses(new String[] { \"p1.Test1\", \"p1.Test1$Test1Inner\" });\n }", "title": "" }, { "docid": "7f5d3926fb1922ba0edc9f2aa7dd2206", "score": "0.5203008", "text": "@Test\n public void testMainClass() {\n String html = source.toHTML(new SEclipseStyle(), new SMainClass());\n assertEquals(html, \"<pre style='color:#000000;background\"\n + \":#ffffff;'>\"\n + \"public class Foo {\\n \\n \"\n + \"public boolean bar(){\\n \"\n + \"return false;\\n \\n }\\n }</pre>\");\n }", "title": "" }, { "docid": "a802e9f23894f8cd60907d28b848cd59", "score": "0.5188751", "text": "@Test(timeout = 4000)\n public void test03() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(0);\n FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 25, \"j\", \"j\", \"j\", \"SW[e5m\");\n // Undeclared exception!\n try { \n fieldWriter0.visitAnnotation((String) null, false);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "453c01fda2034e03ae4df97da80ab923", "score": "0.51870924", "text": "public void testDefaultConfig()\n throws Exception\n {\n File testPom =\n new File( getBasedir(), \"src/test/resources/unit/javadocjar-default/javadocjar-default-plugin-config.xml\" );\n JavadocJar mojo = lookupMojo( testPom );\n mojo.execute();\n\n //check if the javadoc jar file was generated\n File generatedFile =\n new File( getBasedir(), \"target/test/unit/javadocjar-default/target/javadocjar-default-javadoc.jar\" );\n assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) );\n\n //validate contents of jar file\n ZipFile jar = new ZipFile( generatedFile );\n Set<String> set = new HashSet<String>();\n for( Enumeration<? extends ZipEntry> entries = jar.entries(); entries.hasMoreElements(); )\n {\n ZipEntry entry = entries.nextElement();\n set.add( entry.getName() );\n }\n\n assertTrue( set.contains( \"stylesheet.css\" ) );\n float javadocVersion = (Float) getVariableValueFromObject( mojo, \"fJavadocVersion\" );\n if ( Float.compare( javadocVersion, 1.7f ) < 0 )\n {\n assertTrue( set.contains( \"resources/inherit.gif\" ) );\n }\n else if ( Float.compare( javadocVersion, 1.8f ) < 0 )\n {\n assertTrue( set.contains( \"resources/background.gif\" ) /* JDK7 */);\n }\n else\n {\n // JDK8 has no resources anymore\n assertFalse( set.contains( \"resources\" ) );\n }\n\n assertTrue( set.contains( \"javadocjar/def/package-use.html\" ) );\n assertTrue( set.contains( \"javadocjar/def/package-tree.html\" ) );\n assertTrue( set.contains( \"javadocjar/def/package-summary.html\" ) );\n assertTrue( set.contains( \"javadocjar/def/package-frame.html\" ) );\n assertTrue( set.contains( \"javadocjar/def/class-use/AppSample.html\" ) );\n assertTrue( set.contains( \"index.html\" ) );\n assertTrue( set.contains( \"javadocjar/def/App.html\" ) );\n assertTrue( set.contains( \"javadocjar/def/AppSample.html\" ) );\n assertTrue( set.contains( \"javadocjar/def/class-use/App.html\" ) );\n\n assertFalse( set.contains( AbstractJavadocMojo.ARGFILE_FILE_NAME ) );\n assertFalse( set.contains( AbstractJavadocMojo.FILES_FILE_NAME ) );\n assertFalse( set.contains( AbstractJavadocMojo.OPTIONS_FILE_NAME ) );\n assertFalse( set.contains( AbstractJavadocMojo.PACKAGES_FILE_NAME ) );\n\n //check if the javadoc files were created\n generatedFile =\n new File( getBasedir(), \"target/test/unit/javadocjar-default/target/site/apidocs/javadocjar/def/App.html\" );\n assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) );\n\n generatedFile = new File( getBasedir(),\n \"target/test/unit/javadocjar-default/target/site/apidocs/javadocjar/def/AppSample.html\" );\n assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) );\n }", "title": "" }, { "docid": "1b3297605dcd168550e70160653bfb2e", "score": "0.5183055", "text": "public void testGetDocType() {\n System.out.println(\"getDocType\");\n EJFlags instance = new EJFlags(0x63);\n int expResult = 3;\n int result = instance.getDocType();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "9a787990e87b6024058c29d4bd37b885", "score": "0.5181154", "text": "public static Object MSG_testsuite_class_not_found_def_pkg() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "abb83d06793f8c6cc12153b0978b70f4", "score": "0.5176915", "text": "@Test(timeout = 4000)\n public void test3() throws Throwable {\n FileSystemHandling.createFolder((EvoSuiteFile) null);\n ClassWriter classWriter0 = new ClassWriter(2962);\n FieldWriter fieldWriter0 = new FieldWriter(classWriter0, (-1304), \"\", \"Ody\", \"\", (Object) null);\n FieldWriter fieldWriter1 = classWriter0.lastField;\n fieldWriter1.visitAnnotation(\"\", false);\n FileSystemHandling.shouldAllThrowIOExceptions();\n Attribute attribute0 = new Attribute(\"\");\n byte[] byteArray0 = classWriter0.toByteArray();\n assertEquals(140, byteArray0.length);\n \n int int0 = fieldWriter1.getSize();\n assertEquals(40, int0);\n }", "title": "" }, { "docid": "d6d65640f9c42a680f162c924524f415", "score": "0.516745", "text": "public void testForClassDef() {\n initTopLevel();\n ClassDef cd0 = \n new ClassDef(SourceInfo.NONE, PACKAGE_MAV, new Word(SourceInfo.NONE, \"Lisa\"),\n new TypeParameter[0], \n new ClassOrInterfaceType(SourceInfo.NONE, \"java.lang.Object\", new Type[0]), \n new ReferenceType[0], \n new BracedBody(SourceInfo.NONE, new BodyItemI[0])); \n \n cd0.visit(_iv);\n assertEquals(\"There should be no errors\", 0, errors.size());\n assertTrue(\"Should have resolved java.lang.Object\", \n LanguageLevelConverter.symbolTable.containsKey(\"java.lang.Object\"));\n assertFalse(\"Should not be a continuation\", \n LanguageLevelConverter.symbolTable.get(\"java.lang.Object\").isContinuation());\n SymbolData sd = LanguageLevelConverter.symbolTable.get(\"Lisa\");\n assertTrue(\"Lisa should be in _newSDs\", LanguageLevelConverter._newSDs.containsKey(sd));\n MethodData md2 = \n new MethodData(\"equals\",\n PUBLIC_MAV, \n new TypeParameter[0], \n SymbolData.BOOLEAN_TYPE, \n new VariableData[] { new VariableData(_iv.getSymbolData(\"java.lang.Object\", \n SourceInfo.make(\"java.lang.Object\"))) },\n new String[0], \n sd,\n null);\n \n md2.getParams()[0].setEnclosingData(sd.getMethods().getLast()); \n \n assertEquals(\"sd's last method should be equals()\", md2, sd.getMethods().getLast());\n assertEquals(\"sd's package should be correct\", \"\", sd.getPackage());\n \n //check an example that's abstract\n _iv._package = \"\";\n ClassDef cd1 = new ClassDef(SourceInfo.NONE, \n ABSTRACT_MAV, \n new Word(SourceInfo.NONE, \"Bart\"),\n new TypeParameter[0],\n new ClassOrInterfaceType(SourceInfo.NONE, \"System\", new Type[0]), \n new ReferenceType[0], \n new BracedBody(SourceInfo.NONE, new BodyItemI[0]));\n cd1.visit(_iv);\n assertEquals(\"There should be no errors\", 0, errors.size());\n assertTrue(\"Should have resolved java.lang.System\", \n LanguageLevelConverter.symbolTable.containsKey(\"java.lang.System\"));\n assertFalse(\"Should not be a continuation\", \n LanguageLevelConverter.symbolTable.get(\"java.lang.System\").isContinuation());\n sd = LanguageLevelConverter.symbolTable.get(\"Bart\");\n \n assertEquals(\"There should be 3 methods\", 3, sd.getMethods().size());\n \n \n //Check an example where the class extends TestCase, and has a test method that returns void.\n ConcreteMethodDef cmd = new ConcreteMethodDef(SourceInfo.NONE, \n PACKAGE_MAV, \n new TypeParameter[0], \n new VoidReturn(SourceInfo.NONE, \"void\"), \n new Word(SourceInfo.NONE, \"testMethodName\"),\n new FormalParameter[0],\n new ReferenceType[0], \n new BracedBody(SourceInfo.NONE, new BodyItemI[0]));\n \n ClassDef cd3 = new ClassDef(SourceInfo.NONE, \n ABSTRACT_MAV, \n new Word(SourceInfo.NONE, \"TestSuper2\"),\n new TypeParameter[0], \n new ClassOrInterfaceType(SourceInfo.NONE, \"TestCase\", new Type[0]), \n new ReferenceType[0], \n new BracedBody(SourceInfo.NONE, new BodyItemI[] { cmd }));\n \n _iv._file=new File(\"TestSuper2.dj0\");\n _iv._importedFiles.addLast(\"junit.framework.TestCase\");\n LanguageLevelConverter.symbolTable.put(\"junit.framework.TestCase\", new SymbolData(\"junit.framework.TestCase\"));\n cd3.visit(_iv);\n assertEquals(\"There should still just be no errors\", 0, errors.size());\n assertNotNull(\"Should have looked up TestSuper2\", LanguageLevelConverter.symbolTable.get(\"TestSuper2\"));\n \n // Check a method with void return, but name not starting with test, but it's still okay.\n //This is now checked in the type checker!\n ConcreteMethodDef cmd2 = new ConcreteMethodDef(SourceInfo.NONE, \n PACKAGE_MAV, \n new TypeParameter[0], \n new VoidReturn(SourceInfo.NONE, \"void\"), \n new Word(SourceInfo.NONE, \"uhOh\"),\n new FormalParameter[0],\n new ReferenceType[0], \n new BracedBody(SourceInfo.NONE, new BodyItemI[0]));\n \n ClassDef cd4 = new ClassDef(SourceInfo.NONE, \n ABSTRACT_MAV, \n new Word(SourceInfo.NONE, \"TestVoidNoTestMethod\"),\n new TypeParameter[0], \n new ClassOrInterfaceType(SourceInfo.NONE, \"junit.framework.TestCase\", new Type[0]), \n new ReferenceType[0], \n new BracedBody(SourceInfo.NONE, new BodyItemI[] { cmd2 }));\n \n \n \n _iv._file=new File(\"TestVoidNoTestMethod.dj0\");\n cd4.visit(_iv);\n \n assertEquals(\"There should still be 0 errors\", 0, errors.size());\n _iv._importedFiles.remove(\"junit.framework.TestCase\");\n \n }", "title": "" }, { "docid": "33de06e6cb0771346696621a48e0139e", "score": "0.5156815", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n SupportingDocument supportingDocument0 = new SupportingDocument();\n supportingDocument0.getDisplayName();\n supportingDocument0.setDocumentCode(\"~}b{?; _a.++-KLz@X\");\n SupportingDocument supportingDocument1 = new SupportingDocument();\n supportingDocument1.setDocumentCode(\"UNABLE_TO_GET_CATEGORY\");\n supportingDocument1.setFileName(\"~}b{?; _a.++-KLz@X\");\n supportingDocument1.getIdentifier();\n supportingDocument0.getDisplayName();\n SupportingDocument supportingDocument2 = new SupportingDocument();\n supportingDocument2.setDocumentCode(\"~}b{?; _a.++-KLz@X\");\n supportingDocument2.getDescription();\n User user0 = new User(\"-~}b{?; _a.++-KLz@X\", \"UNABLE_TO_FILTER_ONTOLOGY_TERMS\");\n SupportingDocument.detectFieldChanges(user0, supportingDocument0, supportingDocument1);\n try { \n SupportingDocument.validateFields(supportingDocument1);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"macaw.businessLayer.SupportingDocument\", e);\n }\n }", "title": "" }, { "docid": "9bfa68243fdc0cf01b0c69d42d7d5b8f", "score": "0.51504904", "text": "public void testJavaTestabilityModule916() throws Exception {\n\t\tCommandLineConfig var2862 = instantiateCommandLineConfig453();\n\t\tByteArrayOutputStream var2863 = new ByteArrayOutputStream();\n\t\tPrintStream var2864 = new PrintStream(var2863);\n\t\tByteArrayOutputStream var2865 = new ByteArrayOutputStream();\n\t\tPrintStream var2866 = new PrintStream(var2865);\n\t\tInjector var2867 = Guice\n\t\t\t\t.createInjector(new ConfigModule(\n\t\t\t\t\t\tnew String[] { \"-cp\", \"not/default/path\",\n\t\t\t\t\t\t\t\t\"com.google.FirstClass com.google.second.package com.google.third.package\" },\n\t\t\t\t\t\tvar2864, var2866));\n\t\tJavaTestabilityModule var2868 = new JavaTestabilityModule(var2862);\n\t\tvar2862.validate();\n\t\tvar2862.validate();\n\t\tvar2868.getFormat();\n\t\tvar2868.getFormat();\n\t}", "title": "" }, { "docid": "5f4e6d50cf30c08ae71d7bbdeab634f2", "score": "0.5146503", "text": "@Test\n public void testClassToFullPath() {\n String testClass = \"com.example.Class\";\n String expectedFullPath = \"src/test/java/com/example/Class.java\";\n\n // execute method to be tested\n String actualFullPath = MavensurefireTest.testClassToFullPath(testClass);\n\n // assert result\n Assert.assertEquals(expectedFullPath, actualFullPath);\n }", "title": "" }, { "docid": "5bd51a0511d92c3fcb7749021afbfca3", "score": "0.514159", "text": "public void test004() throws Exception {\n\t\tthis.runNegativeTest(\n\t\t\t\tnew String[] {\n\t\t\t\t\t\"X.java\",\n\t\t\t\t\t\"public class X {\\n\" +\n\t\t\t\t\t\" int x(@Marker int p) { return 10; };\\n\" +\n\t\t\t\t\t\" Zork z;\\n\" +\n\t\t\t\t\t\"}\\n\" +\n\t\t\t\t\t\"@java.lang.annotation.Target (java.lang.annotation.ElementType.TYPE_USE)\\n\" +\n\t\t\t\t\t\"@interface Marker {}\\n\",\n\t\t\t\t\t\n\t\t\t\t\t\"java/lang/annotation/ElementType.java\",\n\t\t\t\t\t\"package java.lang.annotation;\\n\"+\n\t\t\t\t\t\"public enum ElementType {\\n\" +\n\t\t\t\t\t\" TYPE,\\n\" +\n\t\t\t\t\t\" FIELD,\\n\" +\n\t\t\t\t\t\" METHOD,\\n\" +\n\t\t\t\t\t\" PARAMETER,\\n\" +\n\t\t\t\t\t\" CONSTRUCTOR,\\n\" +\n\t\t\t\t\t\" LOCAL_VARIABLE,\\n\" +\n\t\t\t\t\t\" ANNOTATION_TYPE,\\n\" +\n\t\t\t\t\t\" PACKAGE,\\n\" +\n\t\t\t\t\t\" TYPE_PARAMETER,\\n\" +\n\t\t\t\t\t\" TYPE_USE\\n\" +\n\t\t\t\t\t\"}\\n\"\n\t\t\t\t},\n\t\t\t\t\"----------\\n\" + \n\t\t\t\t\"1. ERROR in X.java (at line 3)\\n\" + \n\t\t\t\t\"\tZork z;\\n\" + \n\t\t\t\t\"\t^^^^\\n\" + \n\t\t\t\t\"Zork cannot be resolved to a type\\n\" + \n\t\t\t\t\"----------\\n\");\n\t}", "title": "" }, { "docid": "9044f033445f624d716eea6b19056088", "score": "0.51375735", "text": "public void test009() throws Exception {\n\t\tthis.runNegativeTest(\n\t\t\t\tnew String[] {\n\t\t\t\t\t\"X.java\",\n\t\t\t\t\t\"public class X {\\n\" +\n\t\t\t\t\t\" int x() {\\n\" +\n\t\t\t\t\t\" try (@Marker Integer p = null; final @Marker Integer q = null; @Marker final Integer r = null) {\\n\" +\n\t\t\t\t\t\" }\\n\" +\n\t\t\t\t\t\" return 10;\\n\" +\n\t\t\t\t\t\" }\\n\" +\n\t\t\t\t\t\" Zork z;\\n\" +\n\t\t\t\t\t\"}\\n\" +\n\t\t\t\t\t\"@java.lang.annotation.Target (java.lang.annotation.ElementType.TYPE_USE)\\n\" +\n\t\t\t\t\t\"@interface Marker {}\\n\",\n\t\t\t\t\t\n\t\t\t\t\t\"java/lang/annotation/ElementType.java\",\n\t\t\t\t\t\"package java.lang.annotation;\\n\"+\n\t\t\t\t\t\"public enum ElementType {\\n\" +\n\t\t\t\t\t\" TYPE,\\n\" +\n\t\t\t\t\t\" FIELD,\\n\" +\n\t\t\t\t\t\" METHOD,\\n\" +\n\t\t\t\t\t\" PARAMETER,\\n\" +\n\t\t\t\t\t\" CONSTRUCTOR,\\n\" +\n\t\t\t\t\t\" LOCAL_VARIABLE,\\n\" +\n\t\t\t\t\t\" ANNOTATION_TYPE,\\n\" +\n\t\t\t\t\t\" PACKAGE,\\n\" +\n\t\t\t\t\t\" TYPE_PARAMETER,\\n\" +\n\t\t\t\t\t\" TYPE_USE\\n\" +\n\t\t\t\t\t\"}\\n\"\n\t\t\t\t},\n\t\t\t\t\"----------\\n\" + \n\t\t\t\t\"1. ERROR in X.java (at line 3)\\n\" + \n\t\t\t\t\"\ttry (@Marker Integer p = null; final @Marker Integer q = null; @Marker final Integer r = null) {\\n\" + \n\t\t\t\t\"\t ^^^^^^^\\n\" + \n\t\t\t\t\"The resource type Integer does not implement java.lang.AutoCloseable\\n\" + \n\t\t\t\t\"----------\\n\" + \n\t\t\t\t\"2. ERROR in X.java (at line 3)\\n\" + \n\t\t\t\t\"\ttry (@Marker Integer p = null; final @Marker Integer q = null; @Marker final Integer r = null) {\\n\" + \n\t\t\t\t\"\t ^^^^^^^\\n\" + \n\t\t\t\t\"The resource type Integer does not implement java.lang.AutoCloseable\\n\" + \n\t\t\t\t\"----------\\n\" + \n\t\t\t\t\"3. ERROR in X.java (at line 3)\\n\" + \n\t\t\t\t\"\ttry (@Marker Integer p = null; final @Marker Integer q = null; @Marker final Integer r = null) {\\n\" + \n\t\t\t\t\"\t ^^^^^^^\\n\" + \n\t\t\t\t\"The resource type Integer does not implement java.lang.AutoCloseable\\n\" + \n\t\t\t\t\"----------\\n\" + \n\t\t\t\t\"4. ERROR in X.java (at line 7)\\n\" + \n\t\t\t\t\"\tZork z;\\n\" + \n\t\t\t\t\"\t^^^^\\n\" + \n\t\t\t\t\"Zork cannot be resolved to a type\\n\" + \n\t\t\t\t\"----------\\n\");\n\t}", "title": "" }, { "docid": "7aa34340761cbe8d448f80374cd2495c", "score": "0.51307005", "text": "@Test\n public void testSetDoc_fornecedor() {\n }", "title": "" }, { "docid": "6eece7f56f4ba442cb72b72eefef414b", "score": "0.5130183", "text": "String getTestClassName();", "title": "" }, { "docid": "6eece7f56f4ba442cb72b72eefef414b", "score": "0.5130183", "text": "String getTestClassName();", "title": "" }, { "docid": "51af98999f8c44a0061dec2324c2aab0", "score": "0.51299155", "text": "@Test(timeout = 4000)\n public void test121() throws Throwable {\n StringReader stringReader0 = new StringReader(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 2052, 2052);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(8, javaCharStream0.bufpos);\n assertEquals(\"soops\", token0.toString());\n }", "title": "" }, { "docid": "c53e46bb25673c2a5c70d6b33d06e386", "score": "0.51294756", "text": "@Test\n public void testGetClasses() throws Exception {\n assertNotNull(mFirestore.collection(\"users\").document(mUser.getUid()));\n }", "title": "" }, { "docid": "5dc75baca1ac1d99d2fbe92a71b69f2e", "score": "0.51243174", "text": "@Test(timeout = 4000)\n public void test014() throws Throwable {\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager((JavaCharStream) null);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "title": "" }, { "docid": "27ab74e194ac7cc5933484b630a47f03", "score": "0.51207274", "text": "@Test\n public void testSpreadsheetIOFIleDoesntExist() {\n\n boolean thrown = false;\n try {\n SpreadsheetIO.readFromFile(\"src/test/resources/no_file.jtc\");\n } catch (IOException | SpreadsheetException exception) {\n thrown = true;\n }\n assertTrue(thrown);\n }", "title": "" }, { "docid": "78651781fefb2873ebcdcb4e2d7d2f63", "score": "0.511778", "text": "@Test\n public void testGetMetaClass()\n {\n System.out.println(\"getMetaClass\");\n String name = \"\";\n ArtefactType type = null;\n ControllerImpl instance = new ControllerImpl();\n MetaClass expResult = null;\n MetaClass result = instance.getMetaClass(name, type);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "8da5ba1b91cc0ffb618ce6d0fb896875", "score": "0.5111972", "text": "@Test(timeout = 3000)\n public void ticketManagerDoesNotUseInputUtilsOrSystemOutPrintln() {\n String projectRoot = Paths.get(\"\").toString();\n Path ticketFilePath = Paths.get(projectRoot,\n \"src\", \"main\", \"java\", \"week_7\", \"q2_ticket\", \"TicketManager.java\");\n \n try {\n \n byte[] bytes = Files.readAllBytes(ticketFilePath);\n String allFileText = new String(bytes);\n \n String msg = \"TicketManager should not use any InputUtils, System.out.print calls. \" +\n \"\\nAll user input and output should be delegated to TicketUI. \" +\n \"\\nCall the ticketUI methods to print data, and to ask the user for input. \";\n \n assertFalse(msg, allFileText.contains(\"InputUtils\"));\n assertFalse(msg, allFileText.contains(\"intInput\"));\n assertFalse(msg, allFileText.contains(\"stringInput\"));\n assertFalse(msg, allFileText.contains(\"System.out.print\"));\n assertFalse(msg, allFileText.contains(\"Scanner\"));\n \n } catch (IOException e) {\n fail(\"If you have moved or renamed TicketManager.java, or any of the directories in the project, please restore the original location and names. \\nIf not, please push your code to GitHub and report this test fail to Clara. \");\n }\n \n \n }", "title": "" }, { "docid": "edbe0bc19d5aa5e66ac3a877e3c1366f", "score": "0.5105753", "text": "public void testBug372012a() throws JavaModelException, IOException {\n IPath projectPath = env.addProject(\"Project\", \"1.5\");\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n fullBuild(projectPath);\n // remove old package fragment root so that names don't collide\n env.removePackageFragmentRoot(projectPath, \"\");\n IPath srcRoot = env.addPackageFragmentRoot(projectPath, \"src\");\n env.setOutputFolder(projectPath, \"bin\");\n // prepare the project:\n setupProjectForNullAnnotations(projectPath);\n env.getJavaProject(projectPath).setOption(JavaCore.COMPILER_PB_MISSING_NONNULL_BY_DEFAULT_ANNOTATION, JavaCore.ERROR);\n env.getJavaProject(projectPath).setOption(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION, JavaCore.ERROR);\n String test1Code = \"package p1;\\n\" + \"public class Test1 {\\n\" + \" public void foo() {\\n\" + \" new Test2().bar(\\\"\\\");\\n\" + \" }\\n\" + \"\t class Test1Inner{}\\n\" + \"}\";\n String test2Code = \"package p1;\\n\" + \"@org.eclipse.jdt.annotation.NonNullByDefault\\n\" + \"public class Test2 {\\n\" + \" public void bar(String str) {}\\n\" + \"}\";\n IPath test1Path = env.addClass(srcRoot, \"p1\", \"Test1\", test1Code);\n env.addClass(srcRoot, \"p1\", \"Test2\", test2Code);\n fullBuild(projectPath);\n expectingNoProblemsFor(test1Path);\n // should have only one marker\n expectingProblemsFor(srcRoot, \"Problem : A default nullness annotation has not been specified for the package p1 [ resource : </Project/src/p1> range : <8,10> category : <90> severity : <2>]\");\n // add default annotation to Test1\n test1Code = \"package p1;\\n\" + \"@org.eclipse.jdt.annotation.NonNullByDefault\\n\" + \"public class Test1 {\\n\" + \" public void foo() {\\n\" + \" new Test2().bar(\\\"\\\");\\n\" + \" }\\n\" + \"\t class Test1Inner{}\\n\" + \"}\";\n env.addClass(srcRoot, \"p1\", \"Test1\", test1Code);\n incrementalBuild(projectPath);\n // should have only one marker\n expectingProblemsFor(srcRoot, \"Problem : A default nullness annotation has not been specified for the package p1 [ resource : </Project/src/p1> range : <8,10> category : <90> severity : <2>]\");\n // verify that all package CU's were recompiled\n expectingUniqueCompiledClasses(new String[] { \"p1.Test1\", \"p1.Test1$Test1Inner\" });\n }", "title": "" }, { "docid": "f283eaacb945cac8b4b46cd4db8bd069", "score": "0.50950944", "text": "public void test005() throws Exception {\n\t\tthis.runNegativeTest(\n\t\t\t\tnew String[] {\n\t\t\t\t\t\"X.java\",\n\t\t\t\t\t\"public class X {\\n\" +\n\t\t\t\t\t\" int x(@Marker int ... p) { return 10; };\\n\" +\n\t\t\t\t\t\" Zork z;\\n\" +\n\t\t\t\t\t\"}\\n\" +\n\t\t\t\t\t\"@java.lang.annotation.Target (java.lang.annotation.ElementType.TYPE_USE)\\n\" +\n\t\t\t\t\t\"@interface Marker {}\\n\",\n\t\t\t\t\t\n\t\t\t\t\t\"java/lang/annotation/ElementType.java\",\n\t\t\t\t\t\"package java.lang.annotation;\\n\"+\n\t\t\t\t\t\"public enum ElementType {\\n\" +\n\t\t\t\t\t\" TYPE,\\n\" +\n\t\t\t\t\t\" FIELD,\\n\" +\n\t\t\t\t\t\" METHOD,\\n\" +\n\t\t\t\t\t\" PARAMETER,\\n\" +\n\t\t\t\t\t\" CONSTRUCTOR,\\n\" +\n\t\t\t\t\t\" LOCAL_VARIABLE,\\n\" +\n\t\t\t\t\t\" ANNOTATION_TYPE,\\n\" +\n\t\t\t\t\t\" PACKAGE,\\n\" +\n\t\t\t\t\t\" TYPE_PARAMETER,\\n\" +\n\t\t\t\t\t\" TYPE_USE\\n\" +\n\t\t\t\t\t\"}\\n\"\n\t\t\t\t},\n\t\t\t\t\"----------\\n\" + \n\t\t\t\t\"1. ERROR in X.java (at line 3)\\n\" + \n\t\t\t\t\"\tZork z;\\n\" + \n\t\t\t\t\"\t^^^^\\n\" + \n\t\t\t\t\"Zork cannot be resolved to a type\\n\" + \n\t\t\t\t\"----------\\n\");\n\t}", "title": "" }, { "docid": "b2e1b648a0fe6b887a351c53f14c5c9c", "score": "0.50921696", "text": "public void testUnusedClassConstant() throws Exception {\n\t\ttry (Analyzer a = new Analyzer()) {\n\t\t\tClazz c = new Clazz(a, \"\", null);\n\t\t\tc.parseClassFile(new FileInputStream(\"testresources/TestWeavingHook.jclass\"), new ClassDataCollector() {});\n\t\t\t// TODO test someething here\n\t\t\tSystem.out.println(c.getReferred());\n\t\t}\n\t}", "title": "" }, { "docid": "1eda2e0235aed593ca57ad0583cca4db", "score": "0.5090456", "text": "@Test\n public void testProcessRulesForDocument() {\n\n //configure the source files\n String ruleEnginesFile = enginerules;\n String docRulesFile = docrules;\n String[] runTheseRules = { \"AllowedChildSections\", \"OrderOfChildSections\"};\n //initalize the rules engine\n StructuralRulesEngine sre = new StructuralRulesEngine(docRulesFile, ruleEnginesFile, runTheseRules);\n boolean bState = sre.processRulesForDocument(odoc);\n log.error(\"No. of errors = \" + sre.getErrors().size());\n for (StructuralError e : sre.getErrors()) {\n log.info(e.toString());\n }\n org.junit.Assert.assertEquals(ERRORS_RESULT, sre.getErrors().size());\n \n }", "title": "" }, { "docid": "1a7b0e01d7d709a1fc3926238cef2534", "score": "0.50894636", "text": "@Test(timeout = 1000)\n public void testSimpleLibrary() throws Exception\n {\n this.testXMLLibrary(\"fabric.module.exi.java.lib.xml.Simple\");\n }", "title": "" }, { "docid": "7aac4626199ca58f34f2685c29abf62d", "score": "0.5084208", "text": "public void testNativeAnnotation() {\n\t\tString jarFileName = //\"D:\\\\research\\\\guierror\\\\subjects\\\\android-programs\\\\extracted\\\\sgtpuzzles.jar\";\n\t\t \"D:\\\\research\\\\guierror\\\\subjects\\\\android-programs\\\\extracted\\\\sgtpuzzles-annotation.jar\";\n\t\t\n\t\tString lib = \"D:\\\\research\\\\guierror\\\\eclipsews\\\\GUIErrorDetector\\\\exp-subjects\\\\original-android.jar\";\n\t\ttry {\n\t\t\tSet<Class<?>> loadedClasses = NativeAnnotationProcessor.loadAllClasses(jarFileName, lib);\n\t\t\tSystem.out.println(\"Number of loaded class: \" + loadedClasses.size());\n\t\t\t\n\t\t\t//get the relations\n\t\t\tMap<String, Collection<String>> relations\n\t\t\t = NativeAnnotationProcessor.findCalledByNativesAnntationFromJarFile(jarFileName, lib);\n\t\t\tSystem.out.println(relations);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "3c5afaa5d670fbad03c95b4c25ebe543", "score": "0.5081126", "text": "public static void main ( String args[] ) throws Exception{\n\t\t\n\t\tString javaFile = \"data/test1.java\";\n\t\t\n\t\t\n\t\tEclipseJDTTool tool = new EclipseJDTTool();\n\t\ttool.obtainMethodInfo( javaFile );\n\t\t//tool.obtainMethodInfo( javaFile );\n\t\t//tool.obtainAST( javaFile );\n\t\t\n\t\t//ArrayList<String> result = tool.praseJavaFile( javaFile );\n\t\t//System.out.println( result.toString() );\n\t}", "title": "" }, { "docid": "d48507523d52ebaabb996a56729dd04f", "score": "0.5081091", "text": "@Test\n public void testGetClassAnnotationsWithRootNode() {\n String json =\n \"{\"\n + \" \\\"selector\\\": {\"\n + \" \\\"css\\\": \\\"rootSelector\\\"\"\n + \" },\"\n + \" \\\"root\\\": true\"\n + \"}\";\n List<String> expectedAnnotations = new ArrayList<>();\n expectedAnnotations.add(\"@PageMarker.Find(css = \\\"rootSelector\\\")\");\n\n PageObjectClass node = createRootNode(json).getImplementation();\n PageObjectValidationTestHelper.validateAnnotationList(\n node.getClassAnnotations(), expectedAnnotations);\n }", "title": "" }, { "docid": "37948a7e8187c7faee9a9bc657c1b500", "score": "0.50789464", "text": "public void processAnnotation() {\n int passed = 0;\n\n /*\n * The failure of the test.\n */\n int failed = 0;\n\n /*\n * An error occurred during the test.\n */\n int error = 0;\n\n /*\n * The status of the test.\n */\n boolean ok = true;\n\n /*\n * Time of the test.\n */\n double time = 0;\n double newTime = 0;\n\n /*\n * Test results stored in the file.\n */\n File fileInfoTest = new File(\"src/main/resources/MyJUnitInfo.dat\"); // /media/92DF-E892/Intellij IDEA/workspace/task4/src/\n try {\n fileInfoTest.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n FileWriter wFile = null;\n try {\n wFile = new FileWriter(fileInfoTest);\n } catch (IOException e) {\n e.printStackTrace();\n }\n BufferedWriter buffWriteFile = new BufferedWriter(wFile);\n\n /*\n * The cycle performs a pass on all annotation methods.\n */\n for(Method m : TestAnnotation.class.getMethods()){\n if(m.isAnnotationPresent(TMarker.class)){\n TMarker an = m.getAnnotation(TMarker.class);\n try{\n time = System.nanoTime();\n m.invoke(new TestAnnotation());\n newTime = System.nanoTime() - time;\n time = newTime/1000000;\n if(!an.expected().equals(Null.class)){\n buffWriteFile.write(\"\\r\\nFor the method (\" + m.getName() + \") does not meet the exception -> \" + an.expected());\n }else{\n buffWriteFile.write(\"\\r\\nMETHOD \" + m.getName() + \"()\");\n buffWriteFile.write(\"\\r\\nRun-time: \" + time + \" ms\");\n if(statusTest){\n passed++;\n if(!notAssert){\n buffWriteFile.write(\"\\r\\nTest: PASSED\\r\\n\");\n notAssert = true;\n }\n statusTest = false;\n }else{\n failed++;\n if(!notAssert){\n buffWriteFile.write(\"\\r\\nTest: FAILED\\r\\n\");\n notAssert = true;\n }\n }\n }\n } catch (Throwable e){\n if(an.expected().equals(e.getCause().getClass())){\n try {\n buffWriteFile.write(\"\\r\\nMETHOD \" + m.getName() + \"()\");\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n try {\n buffWriteFile.write(\"\\r\\nRun-time: \" + time + \" ms\");\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n if(statusTest){\n passed++;\n try {\n buffWriteFile.write(\"\\r\\nTest: PASSED\\r\\n\");\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }else{\n failed++;\n try {\n buffWriteFile.write(\"\\r\\nTest: FAILED\\r\\n\");\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n statusTest = false;\n }\n\n } else {\n try {\n buffWriteFile.write(\"\\r\\nTest \"+m+\" Error: \"+e.getCause());\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n System.err.printf(\"\\r\\nTest %s Error: %s %n\", m, e.getCause());\n error++;\n ok = false;\n }\n }\n }else if(m.isAnnotationPresent(TIgnore.class)){}\n }\n\n\n try {\n buffWriteFile.write(\"\\r\\n------------------------------\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n buffWriteFile.write(\"\\r\\nPassed: \" + passed + \" Failed \" + failed + \" Error \" + error);\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n buffWriteFile.write(\"\\r\\nThe test is completed: \" + (ok ? \"OK\" : \"Failed\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n buffWriteFile.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n FileReader readFile = null;\n try {\n readFile = new FileReader(fileInfoTest);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n BufferedReader readInBufferFile = new BufferedReader(readFile);\n\n String st;\n try {\n while ((st = readInBufferFile.readLine()) != null){\n System.out.println(st);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "0406f6b323efeeb771403b908cbc5e98", "score": "0.50787675", "text": "@Test\n public void parse() {\n }", "title": "" }, { "docid": "6b8c9bdeb337b4a03d7ca00e7f194a2d", "score": "0.50780606", "text": "@Test\n public void testit() throws Exception {\n File testDir = ResourceExtractor.simpleExtractResources(getClass(), \"/mng-4829\");\n\n Verifier verifier = newVerifier(testDir.getAbsolutePath());\n verifier.setAutoclean(false);\n verifier.deleteDirectory(\"target\");\n verifier.deleteArtifacts(\"org.apache.maven.its.mng4829\");\n verifier.addCliArgument(\"-s\");\n verifier.addCliArgument(\"settings.xml\");\n verifier.setEnvironmentVariable(\"CI\", \"false\");\n verifier.filterFile(\"settings-template.xml\", \"settings.xml\", \"UTF-8\");\n verifier.addCliArgument(\"validate\");\n verifier.execute();\n verifier.verifyErrorFreeLog();\n\n List<String> lines = verifier.loadFile(new File(testDir, verifier.getLogFileName()), false);\n\n boolean foundWarningJar = false, foundWarningPom = false;\n\n for (String line : lines) {\n if (line.matches(\"(?i)\\\\[WARNING\\\\].*Checksum.*failed.*fa23720355eead3906fdf4ffd2a1a5f5.*\")) {\n foundWarningPom = true;\n } else if (line.matches(\n \"(?i)\\\\[WARNING\\\\].*Checksum.*failed.*d912aa49cba88e7e9c578e042953f7ce307daac5.*\")) {\n foundWarningJar = true;\n }\n }\n\n assertTrue(\"Checksum warning for corrupt.pom has not been logged.\", foundWarningPom);\n assertTrue(\"Checksum warning for corrupt.jar has not been logged.\", foundWarningJar);\n }", "title": "" }, { "docid": "8c20a12a09df6025fa0bb9099850cd6a", "score": "0.5075556", "text": "@Test(timeout = 4000)\n public void test00() throws Throwable {\n SupportingDocument supportingDocument0 = new SupportingDocument();\n try { \n SupportingDocument.validateFields(supportingDocument0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"macaw.businessLayer.SupportingDocument\", e);\n }\n }", "title": "" }, { "docid": "4629e6f5e9fbf28a930dc2ae5cf765f8", "score": "0.5069835", "text": "@Test(timeout = 4000)\n public void test01() throws Throwable {\n SupportingDocument supportingDocument0 = new SupportingDocument();\n supportingDocument0.getTitle();\n supportingDocument0.setFilePath(\"\");\n supportingDocument0.setTitle(\"\");\n boolean boolean0 = supportingDocument0.isNewRecord();\n assertFalse(boolean0);\n \n supportingDocument0.getDescription();\n assertEquals(0, supportingDocument0.getIdentifier());\n }", "title": "" }, { "docid": "62b9848bebeeca34a55b30cbd3bf0bf0", "score": "0.50690347", "text": "@Test\n\tpublic void testYylex_2()\n\t\tthrows Exception {\n\t\tReader in = new StringReader(\"\");\n\n\t\tYylex result = new Yylex(in);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "title": "" }, { "docid": "46a266a883a73e19aee1203bc11c9641", "score": "0.50684965", "text": "@Test(timeout = 4000)\n public void test2() throws Throwable {\n SupportingDocument supportingDocument0 = new SupportingDocument();\n String string0 = \"user.status.unverified\";\n supportingDocument0.setFileName(\"user.status.unverified\");\n boolean boolean0 = true;\n supportingDocument0.clone();\n supportingDocument0.setIsNewRecord(true);\n try { \n SupportingDocument.validateFields(supportingDocument0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"macaw.businessLayer.SupportingDocument\", e);\n }\n }", "title": "" }, { "docid": "06bd77e6b91256e316e3644911759674", "score": "0.50681067", "text": "public void test008() throws Exception {\n\t\tthis.runNegativeTest(\n\t\t\t\tnew String[] {\n\t\t\t\t\t\"X.java\",\n\t\t\t\t\t\"public class X {\\n\" +\n\t\t\t\t\t\" int x() {\\n\" +\n\t\t\t\t\t\" @Marker int p;\\n\" +\n\t\t\t\t\t\" final @Marker int q;\\n\" +\n\t\t\t\t\t\" @Marker final int r;\\n\" +\n\t\t\t\t\t\" return 10;\\n\" +\n\t\t\t\t\t\" }\\n\" +\n\t\t\t\t\t\" Zork z;\\n\" +\n\t\t\t\t\t\"}\\n\" +\n\t\t\t\t\t\"@java.lang.annotation.Target (java.lang.annotation.ElementType.TYPE_USE)\\n\" +\n\t\t\t\t\t\"@interface Marker {}\\n\",\n\t\t\t\t\t\n\t\t\t\t\t\"java/lang/annotation/ElementType.java\",\n\t\t\t\t\t\"package java.lang.annotation;\\n\"+\n\t\t\t\t\t\"public enum ElementType {\\n\" +\n\t\t\t\t\t\" TYPE,\\n\" +\n\t\t\t\t\t\" FIELD,\\n\" +\n\t\t\t\t\t\" METHOD,\\n\" +\n\t\t\t\t\t\" PARAMETER,\\n\" +\n\t\t\t\t\t\" CONSTRUCTOR,\\n\" +\n\t\t\t\t\t\" LOCAL_VARIABLE,\\n\" +\n\t\t\t\t\t\" ANNOTATION_TYPE,\\n\" +\n\t\t\t\t\t\" PACKAGE,\\n\" +\n\t\t\t\t\t\" TYPE_PARAMETER,\\n\" +\n\t\t\t\t\t\" TYPE_USE\\n\" +\n\t\t\t\t\t\"}\\n\"\n\t\t\t\t},\n\t\t\t\t\"----------\\n\" + \n\t\t\t\t\"1. ERROR in X.java (at line 8)\\n\" + \n\t\t\t\t\"\tZork z;\\n\" + \n\t\t\t\t\"\t^^^^\\n\" + \n\t\t\t\t\"Zork cannot be resolved to a type\\n\" + \n\t\t\t\t\"----------\\n\");\n\t}", "title": "" }, { "docid": "44fc84a770ea9c162ed84d2b64a64153", "score": "0.506559", "text": "public void testJavaTestabilityModule917() throws Exception {\n\t\tCommandLineConfig var2869 = instantiateCommandLineConfig454();\n\t\tByteArrayOutputStream var2854 = new ByteArrayOutputStream();\n\t\tByteArrayOutputStream var2855 = new ByteArrayOutputStream();\n\t\tvar2857 = new CommandLineConfig(new PrintStream(var2854),\n\t\t\t\tnew PrintStream(var2855));\n\t\tJavaTestabilityModule var2870 = new JavaTestabilityModule(var2869);\n\t\tvar2869.validate();\n\t\tvar2869.validate();\n\t\tvar2870.getEntryList();\n\t\tvar2870.getFormat();\n\t\tvar2870.getErr();\n\t\tvar2870.getPrintDepth();\n\t\tvar2870.getEntryList();\n\t\tvar2870.getFormat();\n\t\tvar2870.getErr();\n\t\tvar2870.getPrintDepth();\n\t}", "title": "" }, { "docid": "089d630378093ed478faf8172f9b0d08", "score": "0.50557274", "text": "@Test\n\tpublic void test() {\n\t\tString code = FileUtils.readFileToString(\"./test/edu/ucla/cs/so/process/snippet-9288544.txt\");\n\t\tcode = StringEscapeUtils.unescapeHtml4(code);\n\t\tPartialProgramParser parser = new PartialProgramParser();\n\t\ttry {\n\t\t\tArrayList<String> methods = parser.extractMethod(code);\n\t\t\tfor(String m : methods) {\n\t\t\t\tSystem.out.println(m);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "a587d9000b110958310dbb5b437c96bd", "score": "0.50548995", "text": "@Test\n\tpublic void testFileConverterJavaFile() {\n\t\tString directory = BASEDIR + \"testFiles\\\\testFile.java\"; \n\t\tassertEquals(fileContents, new String(testParser.fileToCharArray(directory)));\n\t}", "title": "" }, { "docid": "664042a0c7c828f370b761e9a08649d4", "score": "0.5054559", "text": "@Test\n\tpublic void getFileContents_validFilePath_Success() throws IOException {\n\t\tString validFilePath = _TestSuite.JAVA_RETRIEVER_TEST_DIR.concat(\"Test.java\");\n\t\tString expectedResult = \"package test.javaRetriever;\" + FileManager.lineSeparator + FileManager.lineSeparator + \"public class Test {\" + FileManager.lineSeparator + FileManager.lineSeparator + \"}\" + FileManager.lineSeparator;\n\t\tString actualResult = FileManager.getFileContents(validFilePath);\n\t\tassertEquals(expectedResult, actualResult);\n\t}", "title": "" }, { "docid": "29c6addd496c67e2d73c7b98db761f5b", "score": "0.5045535", "text": "@Test(timeout = 4000)\n public void test015() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+W*SFV{ru|+\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 21, 586);\n char[] charArray0 = new char[1];\n javaCharStream0.nextCharBuf = charArray0;\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.StringReader\", e);\n }\n }", "title": "" }, { "docid": "8104a327ec92205f153dcfc75a1db0eb", "score": "0.50454414", "text": "@Test(timeout = 4000)\n public void test062() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(0);\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 0, \"\", \"\", \"\", (String[]) null, false, false);\n // Undeclared exception!\n try { \n methodWriter0.visitAnnotation((String) null, false);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "bc41d393a7751eb25db28cc6d3387253", "score": "0.50374335", "text": "@Test\n\tpublic void testFileExistance() {\n\t\tClassLoader classLoader = this.getClass().getClassLoader();\n\t\tFile file = new File(classLoader.getResource(\"testFile.txt\").getFile());\n\t\tassertTrue(file.exists());\n\t}", "title": "" }, { "docid": "a9270f2c6c10af7283911c36b3bd2f23", "score": "0.50373167", "text": "public void testClassLoadFailure() throws Exception {\r\n boolean exception = false;\r\n String msg = \"\";\r\n try {\r\n new MappingTestProject(Thread.currentThread().getContextClassLoader(), platform, metadata);\r\n msg = \"\\nA ClassNotFoundException did not occur as expected\";\r\n } catch (RuntimeException re) {\r\n Throwable nestedException = re.getCause();\r\n // exception should be ClassNotFoundException - if not, an unexpected exception occurred\r\n try {\r\n ClassNotFoundException cnfe = (ClassNotFoundException) nestedException;\r\n exception = true;\r\n } catch (ClassCastException cce) {\r\n msg = \"\\nAn unexpected exception occurred: \" + cce.getMessage();\r\n }\r\n }\r\n assertTrue(msg, exception);\r\n }", "title": "" }, { "docid": "dd50aeebebec22ce264e8ca0f267fcb5", "score": "0.50366664", "text": "@Test\n public void testitShouldResolveTheDependenciesWithoutBuildConsumer() throws Exception {\n File testDir =\n ResourceExtractor.simpleExtractResources(getClass(), \"/mng-5895-ci-friendly-usage-with-property\");\n\n Verifier verifier = newVerifier(testDir.getAbsolutePath(), false);\n verifier.setAutoclean(false);\n\n // verifier.setLogFileName( \"log-only.txt\" );\n verifier.addCliArgument(\"-Drevision=1.2\");\n verifier.addCliArgument(\"-Dmaven.experimental.buildconsumer=false\");\n verifier.addCliArgument(\"clean\");\n verifier.execute();\n verifier.addCliArgument(\"package\");\n verifier.execute();\n verifier.verifyErrorFreeLog();\n }", "title": "" }, { "docid": "e1b892e8184f3b0783d8e680e9a3966f", "score": "0.5036502", "text": "public void testBug372012() throws JavaModelException, IOException {\n IPath projectPath = env.addProject(\"Project\", \"1.5\");\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n fullBuild(projectPath);\n // remove old package fragment root so that names don't collide\n env.removePackageFragmentRoot(projectPath, \"\");\n IPath srcRoot = env.addPackageFragmentRoot(projectPath, \"src\");\n env.setOutputFolder(projectPath, \"bin\");\n // prepare the project:\n setupProjectForNullAnnotations(projectPath);\n env.getJavaProject(projectPath).setOption(JavaCore.COMPILER_PB_MISSING_NONNULL_BY_DEFAULT_ANNOTATION, JavaCore.ERROR);\n env.getJavaProject(projectPath).setOption(JavaCore.COMPILER_PB_REDUNDANT_NULL_ANNOTATION, JavaCore.ERROR);\n String test1Code = \"package p1;\\n\" + \"public class Test1 {\\n\" + \" public void foo() {\\n\" + \" new Test2().bar(\\\"\\\");\\n\" + \" }\\n\" + \"\t class Test1Inner{}\\n\" + \"}\";\n String test2Code = \"package p1;\\n\" + \"@org.eclipse.jdt.annotation.NonNullByDefault\\n\" + \"public class Test2 {\\n\" + \" public void bar(String str) {}\\n\" + \"}\";\n String test3Code = \"package p1;\\n\" + \"public class Test3 {\\n\" + \" public void bar(String str) {}\\n\" + \"}\";\n IPath test1Path = env.addClass(srcRoot, \"p1\", \"Test1\", test1Code);\n env.addClass(srcRoot, \"p1\", \"Test2\", test2Code);\n env.addClass(srcRoot, \"p1\", \"Test3\", test3Code);\n fullBuild(projectPath);\n expectingNoProblemsFor(test1Path);\n // should have only one marker\n expectingProblemsFor(srcRoot, \"Problem : A default nullness annotation has not been specified for the package p1 [ resource : </Project/src/p1> range : <8,10> category : <90> severity : <2>]\");\n // add package-info.java with default annotation\n String packageInfoCode = \"@org.eclipse.jdt.annotation.NonNullByDefault\\n\" + \"package p1;\\n\";\n env.addClass(srcRoot, \"p1\", \"package-info\", packageInfoCode);\n incrementalBuild(projectPath);\n expectingProblemsFor(projectPath, \"Problem : Nullness default is redundant with a default specified for the enclosing package p1 [ resource : </Project/src/p1/Test2.java> range : <12,56> category : <120> severity : <2>]\");\n // verify that all package CU's were recompiled\n expectingUniqueCompiledClasses(new String[] { \"p1.Test1\", \"p1.Test1$Test1Inner\", \"p1.Test2\", \"p1.Test3\", \"p1.package-info\" });\n }", "title": "" }, { "docid": "aa2fcfccfda06399ecce17a911fdee0e", "score": "0.50338495", "text": "@Test\n\tpublic void t06() {\n\t}", "title": "" }, { "docid": "0e80e6ac10716a431f574c25c9e60f6c", "score": "0.5028894", "text": "public void test18() throws IM3Exception {\n //varios bemoles\n test(\"test18.xml\");\n }", "title": "" }, { "docid": "d994bc371006d2d125a06609eb5ae348", "score": "0.502736", "text": "@Test(timeout = 4000)\n public void test028() throws Throwable {\n StringReader stringReader0 = new StringReader(\"1wS\\\"/La31'6crv;\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 119, 119);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n char[] charArray0 = new char[8];\n stringReader0.read(charArray0);\n javaParserTokenManager0.getNextToken();\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 119, column 122. Encountered: \\\"c\\\" (99), after : \\\"\\\\'6\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "title": "" }, { "docid": "087c9aa67ded2a7c76652d7c691e5660", "score": "0.5023018", "text": "@Test\n\tpublic void testLibraryNotInClassPathFieldClass() throws Exception {\n\t\tfinal String[] files = {\n\t\t\tgetClassFilePath(\"samples/effectivejava/item10/ToStringLibraryFieldClass\"),\n\t\t};\n\n\t\t// This line is unnecessary, but having it make the tested case clearer.\n\t\tfinal String[] classpathes = {};\n\n\t\t// Run the analysis\n\t\tanalyze(files, classpathes, reporter);\n\n\t\tverify(reporter, never()).doReportBug(\n\t\t\tbugDefinition()\n\t\t\t\t.bugType(ToStringDetector.MISSING_TO_STRING_OVERRIDE)\n\t\t\t\t.build()\n\t\t);\n\t}", "title": "" }, { "docid": "a891f63e09805d8d29f568878fc8f872", "score": "0.50224036", "text": "@Test\n public void testSourceCodeOnly() {\n\n File sourceLocation = new File(\"src/test/resources/testdata/sourcecode\");\n SourceCodeProvider sourceCodeProvider = new BaseSourceCodeProviderDirectory(sourceLocation);\n BaseSourceLoader loader = new JavaSourceLoader(sourceCodeProvider);\n String id = \"com.example.demo\";\n CodeSourceDescriptor descriptor = new BaseSourceDescriptorType(id);\n BaseSourceImpl source = new BaseSourceImpl(null, sourceLocation, id, descriptor, loader);\n BaseSourceProvider sourceProvider = null;\n JavaExtendedContext context = new JavaExtendedContext(JavaRootContext.get(), source, sourceProvider);\n BaseType type = context.getType(\"com.example.demo.Demo\");\n assertThat(type.getQualifiedName().equals(\"com.example.demo.Demo\"));\n assertThat(type.getDoc().getLines())\n .containsExactlyInAnyOrder(\"This is a simple java file to test reading of source-code only Java context.\");\n assertThat(type.getConstructors().getDeclared()).hasSize(1);\n assertThat(type.getMethods().getDeclared()).hasSize(2);\n List<? extends CodeType> nestedTypes = type.getNestedTypes().getDeclared();\n assertThat(nestedTypes).hasSize(1);\n CodeType nestedType = nestedTypes.get(0);\n assertThat(nestedType.getQualifiedName()).isEqualTo(\"com.example.demo.Demo.Foo\");\n assertThat(context.getType(\"com.example.demo.Demo.Foo\")).isSameAs(nestedType);\n context.close();\n }", "title": "" }, { "docid": "136e0e7cedcfe5e7ccdb4f689a22ec12", "score": "0.50198036", "text": "@Test(timeout = 4000)\n public void test02() throws Throwable {\n SupportingDocument supportingDocument0 = new SupportingDocument();\n String string0 = \"dKvdjpmG$wNEPXb=|\";\n supportingDocument0.clone();\n supportingDocument0.setFilePath(\"dKvdjpmG$wNEPXb=|\");\n User user0 = new User();\n supportingDocument0.clone();\n user0.setPassword(\"\");\n try { \n User.validateFields(user0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"macaw.businessLayer.User\", e);\n }\n }", "title": "" }, { "docid": "3840adb8d6d8b21d2df902858952ac41", "score": "0.5018376", "text": "@Test(timeout = 4000)\n public void test02() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-4624));\n FieldWriter fieldWriter0 = new FieldWriter(classWriter0, 399, \"Synthetic\", \"Synthetic\", \"Synthetic\", \"Synthetic\");\n // Undeclared exception!\n try { \n fieldWriter0.visitAttribute((Attribute) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.FieldWriter\", e);\n }\n }", "title": "" }, { "docid": "aa529a4f082b53c4c54885e8b2052971", "score": "0.50179774", "text": "public static int mainProgram(String args[]) throws Exception {\n\n Main.reInitAll();\n JJDocOptions.init();\n\n bannerLine(\"Documentation Generator\", \"0.1.4\");\n\n JavaCCParser parser = null;\n if (args.length == 0) {\n help_message();\n return 1;\n } else {\n info(\"(type \\\"jjdoc\\\" with no arguments for help)\");\n }\n\n\n if (JJDocOptions.isOption(args[args.length-1])) {\n error(\"Last argument \\\"\" + args[args.length-1] + \"\\\" is not a filename or \\\"-\\\". \");\n return 1;\n }\n for (int arg = 0; arg < args.length-1; arg++) {\n if (!JJDocOptions.isOption(args[arg])) {\n error(\"Argument \\\"\" + args[arg] + \"\\\" must be an option setting. \");\n return 1;\n }\n JJDocOptions.setCmdLineOption(args[arg]);\n }\n\n if (args[args.length-1].equals(\"-\")) {\n info(\"Reading from standard input . . .\");\n parser = new JavaCCParser(new java.io.DataInputStream(System.in));\n JJDocGlobals.input_file = \"standard input\";\n JJDocGlobals.output_file = \"standard output\";\n } else {\n info(\"Reading from file \" + args[args.length-1] + \" . . .\");\n try {\n java.io.File fp = new java.io.File(args[args.length-1]);\n if (!fp.exists()) {\n error(\"File \" + args[args.length-1] + \" not found.\");\n return 1;\n }\n if (fp.isDirectory()) {\n error(args[args.length-1] + \" is a directory. Please use a valid file name.\");\n return 1;\n }\n JJDocGlobals.input_file = fp.getName();\n parser = new JavaCCParser(new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(args[args.length-1]), JJDocOptions.getGrammarEncoding())));\n } catch (SecurityException se) {\n error(\"Security violation while trying to open \" + args[args.length-1]);\n return 1;\n } catch (java.io.FileNotFoundException e) {\n error(\"File \" + args[args.length-1] + \" not found.\");\n return 1;\n }\n }\n try {\n\n parser.javacc_input();\n JJDoc.start();\n\n if (JavaCCErrors.get_error_count() == 0) {\n if (JavaCCErrors.get_warning_count() == 0) {\n info(\"Grammar documentation generated successfully in \" + JJDocGlobals.output_file);\n } else {\n info(\"Grammar documentation generated with 0 errors and \"\n + JavaCCErrors.get_warning_count() + \" warnings.\");\n }\n return 0;\n } else {\n error(\"Detected \" + JavaCCErrors.get_error_count() + \" errors and \"\n + JavaCCErrors.get_warning_count() + \" warnings.\");\n return (JavaCCErrors.get_error_count()==0)?0:1;\n }\n } catch (org.javacc.parser.MetaParseException e) {\n error(e.toString());\n error(\"Detected \" + JavaCCErrors.get_error_count() + \" errors and \"\n + JavaCCErrors.get_warning_count() + \" warnings.\");\n return 1;\n } catch (org.javacc.parser.ParseException e) {\n error(e.toString());\n error(\"Detected \" + (JavaCCErrors.get_error_count()+1) + \" errors and \"\n + JavaCCErrors.get_warning_count() + \" warnings.\");\n return 1;\n }\n }", "title": "" } ]
10ae6eda130e4d2d0f21efe93ad2f90f
/ adds padding to the UI components
[ { "docid": "1012f9b8f6378c755d4023421d93ebaf", "score": "0.7913466", "text": "private void setComponentPadding() {\n\t\tBorder padding = BorderFactory.createEmptyBorder(10, 10, 10, 10);\n\t\treel1Panel.setBorder(padding);\n\t\treel2Panel.setBorder(padding);\n\t\treel3Panel.setBorder(padding);\n\n\t\tdisplayArePanel.setBorder(padding);\n\t\tbuttonAreaPanel.setBorder(padding);\n\t}", "title": "" } ]
[ { "docid": "df29c5cd71e7f08d4d6f9e4afc552073", "score": "0.7305561", "text": "@Override\n public void setPadding(int left, int top, int right, int bottom) {\n }", "title": "" }, { "docid": "56caa1ad85ff9281aa9dc0ff95d34062", "score": "0.662885", "text": "private void setPaddings() {\n\t\tif (Build.VERSION.SDK_INT >= 21) {\n\n\t\t\tint bottomPadding = 0;\n\t\t\tint rightPadding = 0;\n\t\t\t// int topPadding = insets.top;\n\t\t\tint leftPadding = 0;\n\n\t\t\tint size = getNavBarHeight(this);\n\t\t\tif (size > 0 && !isTablet(this)) {\n\t\t\t\tWindowManager manager = (WindowManager) this\n\t\t\t\t\t\t.getSystemService(Context.WINDOW_SERVICE);\n\t\t\t\tswitch (manager.getDefaultDisplay().getRotation()) {\n\t\t\t\tcase Surface.ROTATION_90:\n System.out.println(\"entro en el 90\");\n\t\t\t\t\t//rightPadding += size;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Surface.ROTATION_180:\n\t\t\t\t\t// topPadding += size;\n System.out.println(\"entro en el 180\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase Surface.ROTATION_270:\n System.out.println(\"entro en el 270\");\n\t\t\t\t\t//rightPadding += size;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n System.out.println(\"entro en el default\");\n\t\t\t\t\t//bottomPadding += size;\n\t\t\t\t}\n\t\t\t} else if (size > 0) {\n\t\t\t}\n\n\t\t\tView scrollViewMenu = findViewById(R.id.sv_left_menu);\n\t\t\tscrollViewMenu.setPadding(scrollViewMenu.getPaddingLeft(), 0 +\n\t\t\tgetStatusBarHeight(),scrollViewMenu.getPaddingRight(),scrollViewMenu.getPaddingBottom());\n\n\t\t\tView menu = findViewById(R.id.menu);\n\t\t\tmenu.setPadding(0 + leftPadding,\n\t\t\t\t\tmenu.getPaddingTop(), 0 + rightPadding,\n\t\t\t\t\t0 + bottomPadding);\n\t\t\tView main = findViewById(R.id.main);\n\t\t\tmain.setPadding(0 + leftPadding,\n\t\t\t\t\tmain.getPaddingTop(), 0 + rightPadding,\n\t\t\t\t\t0 + bottomPadding);\n\t\t}\n }", "title": "" }, { "docid": "61a6a6c87ecadf052ce5862bafdcba23", "score": "0.63033026", "text": "protected Widget createSpacer() {\n\t\treturn new HTML(\"&nbsp;&nbsp;\");\n\t}", "title": "" }, { "docid": "3ca828bebffd8ce39a6bb2bc7767ebed", "score": "0.6302751", "text": "public void setDividerPadding(int padding) {\n mDividerPadding = padding;\n }", "title": "" }, { "docid": "8821f10c7d3f9d508e2fc39d15c5f919", "score": "0.6295429", "text": "public int getDisplayPadding(){\n return mDisplayPadding;\n }", "title": "" }, { "docid": "7f43afa57428a09a1c891a7f1dda9f9b", "score": "0.62306535", "text": "public void setDisplayPadding(int displayPadding){\n mDisplayPadding = displayPadding;\n }", "title": "" }, { "docid": "a6d21e188ac324aa8abd6ff8da4e63ca", "score": "0.6135339", "text": "public void setPadding(\n\t\t\tfloat paddingLeft ,\n\t\t\tfloat paddingRight ,\n\t\t\tfloat paddingTop ,\n\t\t\tfloat paddingBottom )\n\t{\n\t}", "title": "" }, { "docid": "f0354a3efe17d416133a72ddd93f0b0b", "score": "0.6124513", "text": "public void fixScrollerPadding(int left, int top, int right, int bottom) {\n\n }", "title": "" }, { "docid": "fcbf8a4c7816a3d73b764320b8ab39cd", "score": "0.60979253", "text": "private String addPadding(String text) {\r\n\t\t\tif(isPaddingNeeded(text)) {\r\n\t\t\t\tpaddingLength = 4 - text.length() % 4;\r\n\t\t\t\tString padding = createPadding();\r\n\t\t\t\t//System.out.println(\"padding: \" + padding);\r\n\t\t\t\ttext += padding;\r\n\t\t\t\t//System.out.println(\"text: \" + text);\r\n\r\n\t\t\t}\r\n\t\t\treturn text;\r\n\t\t}", "title": "" }, { "docid": "5d9f6ebec553142c5f602e7bd3e29964", "score": "0.6092009", "text": "public void addSpaceBetweenChannels(){\n\t\t\n\t\tLinearLayout.LayoutParams params= new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, height_of_rows);\n\t\tparams.setMargins(0, 0, 0, 0);\n\t\tLinearLayout container = new LinearLayout(view.getContext());\n\t\tp_layout.addView(container, params);\n\t}", "title": "" }, { "docid": "aef4b500454283f535d5f541d3c61cb7", "score": "0.6082147", "text": "public void setSelectorPadding(int leftPadding, int topPadding, int rightPadding, int bottomPadding){\n \tmSelectionLeftPadding = leftPadding;\n \tmSelectionTopPadding = topPadding;\n \tmSelectionRightPadding = rightPadding;\n \tmSelectionBottomPadding = bottomPadding;\n }", "title": "" }, { "docid": "48ec0b699e6c9b8f2adcda3435776588", "score": "0.6059928", "text": "private void setPadding(Stage primaryStage, BorderPane schema, GridPane schema2) {\n\n HBox hbox = new HBox(50);\n hbox.setPadding(new Insets(50, 50, 50, 50));\n hbox.getChildren().addAll(butt1, butt2, butt3, next, score);\n hbox.setAlignment(Pos.CENTER);\n\n HBox hbox1 = new HBox(20);\n hbox1.setPadding(new Insets(10, 10, 10, 10));\n hbox1.getChildren().addAll(timerText);\n hbox1.setAlignment(Pos.CENTER);\n\n schema.setTop(hbox1);\n\n schema2.setAlignment(Pos.CENTER);\n schema2.add(frage, 1, 1);\n schema2.add(butt, 1, 2);\n\n schema.setCenter(schema2);\n schema.setBottom(hbox);\n primaryStage.setTitle(\"Chestionar auto\");\n }", "title": "" }, { "docid": "759abad9871b85a7265d520e6c681532", "score": "0.6054054", "text": "public void setPadding(Insets p_insets)\n\t{\n\t\tf_propertyRow.setPadding(p_insets);\n\t}", "title": "" }, { "docid": "6431d1693ae1c029b36068121c2792c3", "score": "0.60444444", "text": "public void setPadding ( String padding ) {\r\n\t\tgetStateHelper().put(PropertyKeys.padding, padding);\r\n\t\thandleAttribute(\"padding\", padding);\r\n\t}", "title": "" }, { "docid": "898787af4f5aab5a6ead134a6a9a068e", "score": "0.5992161", "text": "private void adjustHeaderPadding(MotionEvent ev) {\n // adjust header padding according to motion event history\n int pointerCount = ev.getHistorySize();\n if (isVerticalFadingEdgeEnabled()) {\n setVerticalScrollBarEnabled(false);\n }\n for (int i = 0; i < pointerCount; i++) {\n if (currentHeaderStatus == HEADER_STATUS_DROP_DOWN_TO_LOAD\n || currentHeaderStatus == HEADER_STATUS_RELEASE_TO_LOAD) {\n headerLayout\n .setPadding(\n headerLayout.getPaddingLeft(),\n (int) (((ev.getHistoricalY(i) - actionDownPointY) - headerOriginalHeight) / headerPaddingTopRate),\n headerLayout.getPaddingRight(), headerLayout.getPaddingBottom());\n }\n }\n }", "title": "" }, { "docid": "b10b11d6ffc6e3ae82e90a9fd594fc70", "score": "0.58308053", "text": "public void setImagePadding(int newPadding){\n paddingBetweenImages = newPadding;\n for(int i = 0; i < List.getChildCount(); i++){\n ImageView im = (ImageView) List.getChildAt(i);\n RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) im.getLayoutParams();\n layoutParams.leftMargin = (imageWidth + paddingBetweenImages) * i;\n }\n fullListWidth = (imageWidth + paddingBetweenImages) * List.getChildCount();\n }", "title": "" }, { "docid": "df576ab5c12d8da1ec1fe2ac33366132", "score": "0.5806074", "text": "public Chart setPadding(Number[] padding) {\n if (jsBase == null) {\n this.padding = null;\n this.padding1 = null;\n this.padding2 = null;\n \n this.padding = padding;\n } else {\n this.padding = padding;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".padding(%s)\", Arrays.toString(padding)));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".padding(%s);\", Arrays.toString(padding)));\n js.setLength(0);\n }\n }\n return this;\n }", "title": "" }, { "docid": "0c09e2dc3c7bcd2bb927a15d22b3702b", "score": "0.57807934", "text": "int getHPadding();", "title": "" }, { "docid": "ee7983bff6e8be347c3ca779eed689b7", "score": "0.5769997", "text": "int getBPadding();", "title": "" }, { "docid": "6c5978c2e4070a4512f3c444b4920cca", "score": "0.5753923", "text": "private void setCardPadding(View root)\n\t{\n\t\tRelativeLayout header = root.findViewById(R.id.nac_header);\n\t\tthis.mCardPadding = header.getPaddingStart() + header.getPaddingEnd();\n\t\t//NacUtility.printf(\"CARD PADDING : %d\", mCardPadding);\n\t}", "title": "" }, { "docid": "30fe1da93b0ac7ed52f1751f277cf733", "score": "0.57442427", "text": "public void setMarginsToTen() {\n MainVBox.setPadding(new Insets(10, 10, 10, 10));\n }", "title": "" }, { "docid": "a3a24a955a12bb045dac824b731a12e4", "score": "0.5731055", "text": "public InsetsCustomEditor(InsetsEditor editor, PropertyEnv env) {\n super( env );\n env.setState(PropertyEnv.STATE_NEEDS_VALIDATION);\n env.addPropertyChangeListener(this);\n\n initComponents ();\n this.editor = editor;\n Insets insets = (Insets)editor.getValue ();\n if (insets == null) insets = new Insets (0, 0, 0, 0);\n xField.setText (Integer.toString(insets.top)); // NOI18N\n yField.setText (Integer.toString(insets.left)); // NOI18N\n widthField.setText (Integer.toString(insets.bottom)); // NOI18N\n heightField.setText (Integer.toString(insets.right)); // NOI18N\n\n setBorder (new javax.swing.border.EmptyBorder (new Insets(5, 5, 5, 5)));\n jPanel2.setBorder (new javax.swing.border.CompoundBorder (\n new javax.swing.border.TitledBorder (\n new javax.swing.border.EtchedBorder (),\n \" \" + NbBundle.getMessage (InsetsCustomEditor.class, \"CTL_Insets\") + \" \"),\n new javax.swing.border.EmptyBorder (new java.awt.Insets(5, 5, 5, 5))));\n\n Mnemonics.setLocalizedText(xLabel, NbBundle.getMessage (InsetsCustomEditor.class, \"CTL_Top\"));\n Mnemonics.setLocalizedText(yLabel, NbBundle.getMessage (InsetsCustomEditor.class, \"CTL_Left\"));\n Mnemonics.setLocalizedText(widthLabel, NbBundle.getMessage (InsetsCustomEditor.class, \"CTL_Bottom\"));\n Mnemonics.setLocalizedText(heightLabel, NbBundle.getMessage (InsetsCustomEditor.class, \"CTL_Right\"));\n\n xLabel.setLabelFor(xField);\n yLabel.setLabelFor(yField);\n widthLabel.setLabelFor(widthField);\n heightLabel.setLabelFor(heightField);\n\n\n xField.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage (InsetsCustomEditor.class, \"ACSD_CTL_Top\"));\n yField.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage (InsetsCustomEditor.class, \"ACSD_CTL_Left\"));\n widthField.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage (InsetsCustomEditor.class, \"ACSD_CTL_Bottom\"));\n heightField.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage (InsetsCustomEditor.class, \"ACSD_CTL_Right\"));\n \n getAccessibleContext().setAccessibleDescription(NbBundle.getMessage (InsetsCustomEditor.class, \"ACSD_CustomRectangleEditor\"));\n\n setPanel(jPanel2);\n getMap().put(widthField,widthLabel);\n getMap().put(xField,xLabel);\n getMap().put(yField,yLabel);\n getMap().put(heightField,heightLabel);\n }", "title": "" }, { "docid": "2e97a32e62a9d79497de60c236141f0e", "score": "0.57298243", "text": "protected String leftPadAndCenter(String toPrint, int padding) {\n int startOS = (lineLength - padding - toPrint.length()) / 2;\n return \" \".repeat(startOS) + toPrint;\n }", "title": "" }, { "docid": "46565b9e0ceec905b237c2a96646f786", "score": "0.56247646", "text": "private void adaptTabContainerAndToolbarMargins() {\n FrameLayout.LayoutParams tabContainerLayoutParams =\n (FrameLayout.LayoutParams) tabContainer.getLayoutParams();\n tabContainerLayoutParams.setMargins(getModel().getPaddingLeft(), getModel().getPaddingTop(),\n getModel().getPaddingRight(), 0);\n FrameLayout.LayoutParams primaryToolbarLayoutParams =\n (FrameLayout.LayoutParams) primaryToolbar.getLayoutParams();\n primaryToolbarLayoutParams\n .setMargins(getModel().getPaddingLeft(), 0, getModel().getPaddingRight(), 0);\n FrameLayout.LayoutParams secondaryToolbarLayoutParams =\n (FrameLayout.LayoutParams) secondaryToolbar.getLayoutParams();\n secondaryToolbarLayoutParams\n .setMargins(getModel().getPaddingLeft(), 0, getModel().getPaddingRight(), 0);\n }", "title": "" }, { "docid": "e98d8eee70fecef149c4b93e8558ef61", "score": "0.5611598", "text": "public int getLeftPadding();", "title": "" }, { "docid": "2018be32f6a0f815c87afefb76cb18bd", "score": "0.56036234", "text": "public Cell<?> applyPadding (final Cell<?> cell) {\n\t\tcell.pad(top, left, bottom, right);\n\t\treturn cell;\n\t}", "title": "" }, { "docid": "cafd3c50772cd37bef0216f2dc3b82e9", "score": "0.5585755", "text": "public void setCellPadding(int value) {\r\n _cellPadding = value;\r\n }", "title": "" }, { "docid": "16a3dffa438ab7afc1241586f60fee34", "score": "0.5584659", "text": "private void addNameWithPadding(String attrName, int padding, StringBuffer sb){\n\t\tsb.append(attrName);\n\t\tif (attrName.length() < padding){\n\t\t\tfor(int i=attrName.length(); i<padding; i++)\n\t\t\t\tsb.append(\" \");\n\t\t}\n\t}", "title": "" }, { "docid": "f88f3ed53480aea16c60add0a613f551", "score": "0.55809784", "text": "public void getGUI() {\n this.setPadding(new Insets(20, 10, 10, 10));\n createUItopPanel();\n createUIbottomPanel();\n createUIleftPanel();\n createUIrightPanel();\n createUIcenterPanel();\n }", "title": "" }, { "docid": "70eb0a968457062bc8b6469bb54efb84", "score": "0.55638164", "text": "public void adjustComponent() {\n if (component != null) {\n switch (horizontalAlignment) {\n case HORIZONTAL_ALIGN_LEFT:\n component.setX(getX() + leftMargin);\n break;\n case HORIZONTAL_ALIGN_CENTER:\n component.setX(getX() + (getWidth() / 2 - component.getWidth() / 2));\n break;\n case HORIZONTAL_ALIGN_RIGHT:\n component.setX((getX() + getWidth()) - (component.getWidth() + rightMargin));\n break;\n }\n switch (verticalAlignment) {\n case VERTICAL_ALIGN_TOP:\n component.setY(getY() + topMargin);\n break;\n case VERTICAL_ALIGN_CENTER:\n component.setY(getY() + (getHeight() / 2 - component.getHeight() / 2));\n break;\n case VERTICAL_ALIGN_BOTTOM:\n component.setY((getY() + getHeight()) - (component.getHeight() + bottomMargin));\n }\n }\n }", "title": "" }, { "docid": "e8f22989ce554dae7d6ddc773fd0b4ed", "score": "0.55539936", "text": "int getObjectPadding();", "title": "" }, { "docid": "240cfcdfbff8b78aa6dd477ada36536d", "score": "0.5553345", "text": "private static InsetsUIResource getButtonMargin(int top, int bottom)\r\n/* 85: */ {\r\n/* 86:333 */ int pad = Options.getUseNarrowButtons() ? 4 : 14;\r\n/* 87:334 */ return new InsetsUIResource(top, pad, bottom, pad);\r\n/* 88: */ }", "title": "" }, { "docid": "93ec7fb65c3c30c4ef7152a3b80431b3", "score": "0.55506575", "text": "private void addButtonsAlignComponent() {\n GridBagConstraints gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 100; // put the label as low as possible\n gbc.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gbc.weighty = 0.5;\n jPObjList.add(jLAlignNorth, gbc);\n }", "title": "" }, { "docid": "17c723f04349e39c33d99f1bc968b61b", "score": "0.554245", "text": "ILC insets(String top, String left, String bottom, String right);", "title": "" }, { "docid": "561b9f70ede4ca245a4de8e62d4f7b5d", "score": "0.55242866", "text": "public int getDividerPadding() {\n return mDividerPadding;\n }", "title": "" }, { "docid": "db2d520ed04323fd55d3bd0d2711fb24", "score": "0.55207187", "text": "public void getMaxShadowAndCornerPadding(Rect into) {\n boolean padding = getPadding(into);\n }", "title": "" }, { "docid": "609cba2f28559288dc91e97e2f4b9d9a", "score": "0.5509688", "text": "public void setSpacing(int spacing) {\n this.spacing = spacing;\n for(LayoutContainer l : columns) {\n l.setStyleAttribute(\"padding\", spacing + \"px 0 0 \" + spacing+\"px\");\n }\n }", "title": "" }, { "docid": "8c85471c67407db3cc8c371fdd11ee0b", "score": "0.54843706", "text": "public Insets getBorderInsets(Component c)\r\n/* 36: */ {\r\n/* 37:36 */ return new Insets(0, 0, 0, 0);\r\n/* 38: */ }", "title": "" }, { "docid": "5208189a0b5a54325dd7d0150fc77607", "score": "0.5483192", "text": "public String getPadding () {\r\n\t\treturn (String) getStateHelper().eval(PropertyKeys.padding);\r\n\t}", "title": "" }, { "docid": "37d4ed49c00edf98fad340a13c490c15", "score": "0.5473968", "text": "private void bigPadding() {\n\t\t\tSystem.out.println(\"\\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\t\t}", "title": "" }, { "docid": "aac289b8d73adf31c67e549a93b7e7e9", "score": "0.54720306", "text": "@Override\r\n public Insets getBorderInsets(Component c, Insets insets) {\r\n insets.left = insets.top = insets.right = insets.bottom = gap;\r\n return insets;\r\n }", "title": "" }, { "docid": "b93e6fe60c339dab7abdb73e2f8e1860", "score": "0.54704744", "text": "public Chart setPadding(String[] padding1) {\n if (jsBase == null) {\n this.padding = null;\n this.padding1 = null;\n this.padding2 = null;\n \n this.padding1 = padding1;\n } else {\n this.padding1 = padding1;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".padding(%s)\", arrayToStringWrapQuotes(padding1)));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".padding(%s);\", arrayToStringWrapQuotes(padding1)));\n js.setLength(0);\n }\n }\n return this;\n }", "title": "" }, { "docid": "cb593dd9fcb86289873cb1cb447914f3", "score": "0.5470032", "text": "public void setAllPaddings(int padding)\n {\n this.setNumber(PADDING, padding);\n }", "title": "" }, { "docid": "d57d9ae444d60b74b069170a0ca4cff8", "score": "0.5467344", "text": "public PackAs inset( Insets insets );", "title": "" }, { "docid": "99160f22ced3d4a173e769d51663cc0f", "score": "0.54319304", "text": "public static String pad(String orig, String padding, int width) {\n while(orig.length() < Math.abs(width)) {\n if(width > 0) {\n orig += padding;\n } else {\n orig = padding + orig;\n }\n\t}\n return orig;\n }", "title": "" }, { "docid": "b1873aeddf5c0eae9abee49e633bb58f", "score": "0.54218006", "text": "protected void adjustUI() {\r\n setLineWrap(true);\r\n setWrapStyleWord(true);\r\n setEditable(false);\r\n setRequestFocusEnabled(false);\r\n setFocusable(false);\r\n setOpaque(false);\r\n putClientProperty(\"Synthetica.opaque\", false);\r\n\r\n // add this for Nimbus to disable all the painting of a component in Nimbus\r\n putClientProperty(\"Nimbus.Overrides.InheritDefaults\", false);\r\n putClientProperty(\"Nimbus.Overrides\", new UIDefaults());\r\n\r\n setCaret(new DefaultCaret() {\r\n @Override\r\n protected void adjustVisibility(Rectangle nloc) {\r\n }\r\n });\r\n \r\n LookAndFeel.installBorder(this, \"Label.border\");\r\n Color fg = getForeground();\r\n if (fg == null || fg instanceof UIResource) {\r\n setForeground(UIManager.getColor(\"Label.foreground\"));\r\n }\r\n Font f = getFont();\r\n if (f == null || f instanceof UIResource) {\r\n setFont(UIManager.getFont(\"Label.font\"));\r\n }\r\n setBackground(null);\r\n }", "title": "" }, { "docid": "a3c7b4b2beabef9dd47298a9ea957ea6", "score": "0.54037845", "text": "protected int getLayoutGap() {\r\n Font font = this.commandButton.getFont();\r\n if (font == null)\r\n font = UIManager.getFont(\"Button.font\");\r\n return (font.getSize() - 4) / 4;\r\n }", "title": "" }, { "docid": "98d64c7a30d5ba5cfd6e65ad0f3ad929", "score": "0.5392382", "text": "void set_diff(){\n easy.setPadding(0,0,0,0);\n medium.setPadding(0,0,0,0);\n hard.setPadding(0,0,0,0);\n people.setPadding(0,0,0,0);\n geo.setPadding(0,0,0,0);\n programming.setPadding(0,0,0,0);\n\n if (diff == 1) easy.setPadding(15,15,15,15);\n if (diff == 2) medium.setPadding(15,15,15,15);\n if (diff == 3) hard.setPadding(15,15,15,15);\n if (category == 1) people.setPadding(15,15,15,15);\n if (category == 2) programming.setPadding(15,15,15,15);\n if (category == 3) geo.setPadding(15,15,15,15);\n }", "title": "" }, { "docid": "4d74ab567aee9b4761c9f79447248bb4", "score": "0.53915983", "text": "private void smallPadding() {\n\t\t\tSystem.out.println(\"\\n\\n\\n\\n\\n\");\n\t\t}", "title": "" }, { "docid": "16fe8de4268ee628a11f216c2515f990", "score": "0.53884107", "text": "private void printBottomOfSpaces() {\n System.out.print(\" |\"); //indent plus left border of space\n for (char x = 'a'; x < ('a' + chessboard.getXDimension()); x++) {\n System.out.print(\"______|\");\n }\n System.out.println();\n }", "title": "" }, { "docid": "f6273e379cafb35e2baae2188d1f1966", "score": "0.5385022", "text": "private void initializeBottomSpaces() {\n\t\t\n\t}", "title": "" }, { "docid": "0237de3feed5c34587c94323153efc14", "score": "0.5383648", "text": "private void alignComponents() {\n playButton.setAlignmentX(Component.CENTER_ALIGNMENT);\n leaderBoardButton.setAlignmentX(Component.CENTER_ALIGNMENT);\n wordButton.setAlignmentX(Component.CENTER_ALIGNMENT);\n }", "title": "" }, { "docid": "e4614c59743a1cf5bf0ab05a899a10b6", "score": "0.53766453", "text": "@JsProperty\n public final native int getCellPadding();", "title": "" }, { "docid": "47a9a70ace0d834d233558ac749fabe5", "score": "0.5372367", "text": "private static String addPadding(String originalString, String padding,\n\t\t\tint maxLength) {\n\t\tString prefix = \"\";\n\t\tfor (int i = 0; i < maxLength - originalString.length(); i++) {\n\t\t\tprefix = prefix.concat(padding);\n\t\t}\n\t\treturn prefix + originalString;\n\t}", "title": "" }, { "docid": "8b10bdfdac59110b87f4be1bbbd8cd65", "score": "0.53505653", "text": "void addSpaces() {\n\t\tSystem.out.print(\" \");\n\t\tfor (int j = 0; j < 3; j++)\n\t\t\tSystem.out.print(\"| \");\n\t\tSystem.out.println(\"|\");\n\t}", "title": "" }, { "docid": "60eac49b9972d4ce2ccf4584d1c00b75", "score": "0.5345906", "text": "public void setPadding(double p) {\n\t\tipad = p;\n\t}", "title": "" }, { "docid": "14e4d011c6f98357f7c9fcee458c8ca1", "score": "0.5343183", "text": "private void layoutComponents()\r\n\t{\r\n\t\tthis.setupExplanatoryText();\r\n\t\tthis.setupZipCodePanel();\r\n\t\t\r\n\t\tthis.add(Box.createVerticalGlue());\r\n\t}", "title": "" }, { "docid": "c1b6a65a091da3d65989f45a1b5b8774", "score": "0.53409064", "text": "@Override\r\n public Insets getBorderInsets(Component c) {\r\n return (getBorderInsets(c, new Insets(gap, gap, gap, gap)));\r\n }", "title": "" }, { "docid": "3045d65208794af141458c1a1d806153", "score": "0.53324085", "text": "public void setAllPaddings(float padding)\n {\n this.setNumber(PADDING, padding);\n }", "title": "" }, { "docid": "010bf2cdfa47f2b1cebdd6330f122718", "score": "0.53115666", "text": "@Override\n public float getWidth() {\n return padLeft + regionWidth + padRight;\n }", "title": "" }, { "docid": "7d03a7cc007c7cd017cecec49200ea37", "score": "0.53044224", "text": "Insets getBorderInsets(Component c);", "title": "" }, { "docid": "e677eb39bdfe6b26624c4bf470687e57", "score": "0.53014886", "text": "@Override\n\tpublic int calcRemainingSpaces() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "7b680bcbf5236d995b53f37e827bdb4f", "score": "0.5301022", "text": "private void createUItopPanel() {\n Label topLabel = new Label(\" VaqChat UTRGV \");\n topLabel.setFont(Font.font(\"Times New Roman\", FontPosture.REGULAR, 40));\n topLabel.setTextFill(Color.CORAL);\n topLabel.setWrapText(true);\n\n topLabel.setBorder(new Border(new BorderStroke(Color.DARKBLUE, BorderStrokeStyle.SOLID, new CornerRadii(3), new BorderWidths(2))));\n topLabel.setTextAlignment(TextAlignment.CENTER);\n\n Separator separator = new Separator();\n separator.setMinSize(20, 20);\n separator.setOrientation(Orientation.HORIZONTAL);\n\n VBox topVB = new VBox();\n topVB.setAlignment(Pos.CENTER);\n topVB.getChildren().addAll(topLabel, separator);\n BorderPane.setAlignment(topVB, Pos.CENTER);\n\n this.setTop(topVB);\n }", "title": "" }, { "docid": "965b859bced49a9b3b38b4d5337f57e2", "score": "0.52943844", "text": "public void setDecorPaddingTop(int paddingTop) {\n final View view = findViewById(R.id.suw_layout_decor);\n if (view != null) {\n view.setPadding(view.getPaddingLeft(), paddingTop, view.getPaddingRight(),\n view.getPaddingBottom());\n }\n }", "title": "" }, { "docid": "9739f18e4e9525f11838c2952bf40a64", "score": "0.5285352", "text": "public void setTextOffset(float horzPadding, float vertPadding)\r\n {\r\n this.horzPadding = horzPadding;\r\n this.vertPadding = vertPadding;\r\n }", "title": "" }, { "docid": "ff110b6b96e34987437b527d51e8af15", "score": "0.52852696", "text": "private static Node addPadding (Node head, int numPads) {\n for (int i = 0; i < numPads; i++) {\n head = addBefore(head, 0);\n }\n return head;\n }", "title": "" }, { "docid": "186b1f951c59f21f99706ddef91c5c0f", "score": "0.5281999", "text": "protected byte getMarginWidth() {\n return 11;\n }", "title": "" }, { "docid": "4a512b189a43bda45a33ac020f54bbbc", "score": "0.52813905", "text": "public UtilsPadding getPadding() {\n if (getPadding == null)\n getPadding = new UtilsPadding(jsBase + \".padding()\");\n\n return getPadding;\n }", "title": "" }, { "docid": "ab64bc54a4af880ded8904565aa22886", "score": "0.5271967", "text": "@Override\n protected LayoutParams generateLayoutParams(LayoutParams p) {\n return new MarginLayoutParams(p);\n }", "title": "" }, { "docid": "ef1391272117cce22a091cb78aefb67e", "score": "0.5270927", "text": "public static void addCutoutAndNavigationInsets(@Nullable View view) {\n if (view == null) return;\n ViewGroup.LayoutParams params = view.getLayoutParams();\n CustomInsets navigationInsets = getNavigationInsets(view.getContext());\n CustomInsets cutoutInsets = getCutoutInsets(view.getContext());\n CustomInsets insets = new CustomInsets(\n navigationInsets.getTop() + cutoutInsets.getTop(),\n navigationInsets.getRight() + cutoutInsets.getRight(),\n navigationInsets.getBottom() + cutoutInsets.getBottom(),\n navigationInsets.getLeft() + cutoutInsets.getLeft()\n );\n\n if (params instanceof FrameLayout.LayoutParams) {\n FrameLayout.LayoutParams frameParams = (FrameLayout.LayoutParams) params;\n int gravity = frameParams.gravity;\n if ((gravity & Gravity.TOP) == Gravity.TOP) {\n frameParams.topMargin += insets.getTop();\n }\n if ((gravity & Gravity.BOTTOM) == Gravity.BOTTOM) {\n frameParams.bottomMargin += insets.getBottom();\n }\n if ((gravity & Gravity.RIGHT) == Gravity.RIGHT) {\n frameParams.rightMargin += insets.getRight();\n }\n if ((gravity & Gravity.LEFT) == Gravity.LEFT) {\n frameParams.leftMargin += insets.getLeft();\n }\n view.setLayoutParams(frameParams);\n } else if (params instanceof RelativeLayout.LayoutParams) {\n RelativeLayout.LayoutParams relativeParams = (RelativeLayout.LayoutParams) params;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (relativeParams.getRule(RelativeLayout.ALIGN_PARENT_TOP) == RelativeLayout.TRUE) {\n relativeParams.topMargin += insets.getTop();\n }\n if (relativeParams.getRule(RelativeLayout.ALIGN_PARENT_BOTTOM) == RelativeLayout.TRUE) {\n relativeParams.bottomMargin += insets.getBottom();\n }\n if (relativeParams.getRule(RelativeLayout.ALIGN_PARENT_RIGHT) == RelativeLayout.TRUE\n || relativeParams.getRule(RelativeLayout.ALIGN_PARENT_END) == RelativeLayout.TRUE\n ) {\n relativeParams.rightMargin += insets.getRight();\n }\n if (relativeParams.getRule(RelativeLayout.ALIGN_PARENT_LEFT) == RelativeLayout.TRUE\n || relativeParams.getRule(RelativeLayout.ALIGN_PARENT_START) == RelativeLayout.TRUE\n ) {\n relativeParams.leftMargin += insets.getLeft();\n }\n }\n view.setLayoutParams(relativeParams);\n } else {\n LogUtil.error(TAG, \"Can't set insets, unsupported LayoutParams type.\");\n }\n }", "title": "" }, { "docid": "0c335c5117c4c66f6f21ee31d5781c05", "score": "0.52342844", "text": "private void addInternalTrim(Rectangle trim) {\n \t\ttrim.x-= fBorderWidth;\n \t\ttrim.y-= fBorderWidth;\n \t\ttrim.width+= 2 * fBorderWidth;\n \t\ttrim.height+= 2 * fBorderWidth;\n \t\t\n \t\tif (! fHideScrollBars) {\n \t\t\tboolean RTL= (fShell.getStyle() & SWT.RIGHT_TO_LEFT) != 0;\n \t\t\tif (RTL) {\n \t\t\t\ttrim.x-= fgScrollBarSize.x;\n \t\t\t}\n \t\t\ttrim.width+= fgScrollBarSize.x;\n \t\t\ttrim.height+= fgScrollBarSize.y;\n \t\t}\n \t\t\n \t\tif (fStatusTextField != null) {\n \t\t\ttrim.height+= 2; // from the layout's verticalSpacing\n \t\t\ttrim.height+= fSeparator.computeSize(SWT.DEFAULT, SWT.DEFAULT).y;\n \t\t\ttrim.height+= fStatusTextField.computeSize(SWT.DEFAULT, SWT.DEFAULT).y;\n \t\t}\n \t\t\n \t\tif (fToolBar != null) {\n \t\t\ttrim.height+= 2; // from the layout's verticalSpacing\n \t\t\ttrim.height+= fTBSeparator.computeSize(SWT.DEFAULT, SWT.DEFAULT).y;\n \t\t\ttrim.height+= fToolBar.computeSize(SWT.DEFAULT, SWT.DEFAULT).y;\n \t\t}\n \t}", "title": "" }, { "docid": "2bbc1bbbd85f71127fcffff24a6ba330", "score": "0.52313745", "text": "public Insets getBorderInsets ( Component c )\r\n {\r\n return Theme.menuBorderInsets [ Theme.style ];\r\n }", "title": "" }, { "docid": "776e13b78ab0e3c282233767bb34d8ea", "score": "0.52243185", "text": "public void setSpacingToTen() {\n MainVBox.setSpacing(10);\n }", "title": "" }, { "docid": "0bf8e27cfa682542424eac2aab88a5f8", "score": "0.52136683", "text": "void assignCoordinateFromPadding() {\n int n = this.mLayoutFromEnd ? StaggeredGridLayoutManager.this.mPrimaryOrientation.getEndAfterPadding() : StaggeredGridLayoutManager.this.mPrimaryOrientation.getStartAfterPadding();\n this.mOffset = n;\n }", "title": "" }, { "docid": "ccbe55bb5f2fbc57fd70688dd6d4010a", "score": "0.5207914", "text": "public void countPaddings() {\r\n\t\tGameInfo.paddingsAreCounted = true;\r\n\t}", "title": "" }, { "docid": "740231668cc3d2e983c4955f466df3f6", "score": "0.5197576", "text": "public void setDialogDividerRightPadding(int i) {\n this.dialogDividerRightPadding = i;\n }", "title": "" }, { "docid": "83d8a1fd0663ddceafc319e029a58024", "score": "0.5187236", "text": "public void onComputeInternalInsets(InternalInsetsInfo inoutInfo);", "title": "" }, { "docid": "ba09cbd27f4b8dfbf51159c06d929652", "score": "0.5177024", "text": "private void style() {\n\t\tMyResource.INSTANCE.getStlUIMenu().ensureInjected();\n\t\tWindow.setMargin(\"0px\");\n\t\tsetHeightContainer(105);\n\t\t//container.setHeight((height - 84) + \"px\");\n\t\t//scrollPanel.setWidth(\"100%\");\n\t\t//scrollPanel.setHeight(\"100%\");\n\t\t//cellList.addStyleName(MyResource.INSTANCE.getStlUIMenu().cellList());\n\t}", "title": "" }, { "docid": "453da71fb5acd8992a1f17e2136a2cbc", "score": "0.5176666", "text": "@Override\n public LayoutParams generateLayoutParams(AttributeSet attrs) {\n return new MarginLayoutParams(getContext(), attrs);\n }", "title": "" }, { "docid": "6276ec25b9440977d2193ee3078b638b", "score": "0.51766205", "text": "public Chart setPadding(String padding2) {\n if (jsBase == null) {\n this.padding = null;\n this.padding1 = null;\n this.padding2 = null;\n \n this.padding2 = padding2;\n } else {\n this.padding2 = padding2;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".padding(%s)\", wrapQuotes(padding2)));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".padding(%s);\", wrapQuotes(padding2)));\n js.setLength(0);\n }\n }\n return this;\n }", "title": "" }, { "docid": "8dfb7da1fbe117d6d8721a5c3891aa65", "score": "0.5170436", "text": "public Table applyPadding (final Table table) {\n\t\ttable.pad(top, left, bottom, right);\n\t\treturn table;\n\t}", "title": "" }, { "docid": "c3c44ab10c4c9684480861feaaca640b", "score": "0.5156712", "text": "public ToolbarLayout(int align) {\n\t\tthis(align, 5, 5);\n }", "title": "" }, { "docid": "d2fc6f8a20cfad230370be4a3dfd9146", "score": "0.5155837", "text": "public HUD(Game game, int width, int height, int padding) \n {\n this.width = width;\n this.height = height;\n this.padding = padding;\n this.game = game;\n\n setPreferredSize(new Dimension(width + 2 * padding + 1, height + 2 * padding + 1));\n }", "title": "" }, { "docid": "b123fc936690eb625b8ffc53fd27d721", "score": "0.5150064", "text": "private void setTextAndSpace(){\n division.setLayoutX(300);\n division.setLayoutY(190);\n division.setStyle(\"-fx-font: 20px futura; -fx-text-fill: #16284f\");\n division.setFont(new Font(20));\n getChildren().add(division);\n\n //Add extra space to visualize complete in scroll panel\n if(number == 1) {\n Line l = new Line();\n l.setStartY(420);\n l.setStartX(0);\n l.setEndY(420);\n l.setEndX(0);\n getChildren().add(l);\n }\n }", "title": "" }, { "docid": "776ae674a4b9566db72f605f3f599f24", "score": "0.51447296", "text": "@Override\n public WindowInsets onApplyWindowInsets(WindowInsets insets) {\n int bottomInset = insets.getInsetsIgnoringVisibility(systemBars()).bottom;\n int imeInset = insets.getInsets(ime()).bottom;\n int inset = max(bottomInset, imeInset);\n setPadding(getPaddingLeft(), getPaddingTop(), getPaddingRight(), inset);\n return insets.inset(0, 0, 0, inset);\n }", "title": "" }, { "docid": "c851a93ca4bfa09106e38d0494824186", "score": "0.51394045", "text": "public void createLabels()\r\n {\r\n LabelIBM = new Label(\"From IBM\");\r\n LabelAuthor = new Label(\"Kyle Faith, Cameron Yeager, Kyle Mack, William Sarabia\");\r\n LabelContinue = new Label(\"Press space bar to continue\");\r\n LabelDonkey = new Label(\"DONKEY\");\r\n LabelRemaster = new Label(\"Remastered\");\r\n LabelPC = new Label(\"Personal Computer\");\r\n\r\n LabelIBM.setTextFill(ColorScheme.colorTitleWhite);\r\n LabelDonkey.setTextFill(ColorScheme.colorTitleGreen);\r\n LabelPC.setTextFill(ColorScheme.colorTitleWhite);\r\n LabelRemaster.setTextFill(ColorScheme.colorTitleGreen);\r\n LabelAuthor.setTextFill(ColorScheme.colorTitleWhite);\r\n LabelContinue.setTextFill(ColorScheme.colorTitleYellow);\r\n\r\n LabelIBM.setFont(Font.font(\"Rockwell\", 40));\r\n LabelDonkey.setFont(Font.font(\"Rockwell\", 40));\r\n LabelPC.setFont(Font.font(\"Rockwell\", 40));\r\n LabelRemaster.setFont(Font.font(\"Rockwell\", 40));\r\n LabelAuthor.setFont(Font.font(\"Rockwell\", 40));\r\n LabelContinue.setFont(Font.font(\"Rockwell\", 40));\r\n\r\n LabelIBM.setMaxWidth(Double.MAX_VALUE);\r\n LabelDonkey.setMaxWidth(Double.MAX_VALUE);\r\n LabelContinue.setMaxWidth(Double.MAX_VALUE);\r\n LabelPC.setMaxWidth(Double.MAX_VALUE);\r\n LabelRemaster.setMaxWidth(Double.MAX_VALUE);\r\n LabelAuthor.setMaxWidth(Double.MAX_VALUE);\r\n\r\n LabelIBM.setAlignment(Pos.BASELINE_CENTER);\r\n LabelDonkey.setAlignment(Pos.BASELINE_CENTER);\r\n LabelPC.setAlignment(Pos.BASELINE_CENTER);\r\n LabelRemaster.setAlignment(Pos.BASELINE_CENTER);\r\n LabelAuthor.setAlignment(Pos.BASELINE_CENTER);\r\n LabelContinue.setAlignment(Pos.BASELINE_CENTER);\r\n\r\n // insets are top ,right ,bottom ,left\r\n LabelIBM.setPadding(new Insets(75,0,0, 0));\r\n LabelPC.setPadding(new Insets(20,0,0, 0));\r\n LabelDonkey.setPadding(new Insets(75,0,0, 0));\r\n LabelRemaster.setPadding(new Insets(15,0,0, 0));\r\n LabelAuthor.setPadding(new Insets(75,0,0, 0));\r\n LabelContinue.setPadding(new Insets(150,0,0, 0));\r\n\r\n LabelDonkeyScore = new Label(\"Donkey\");\r\n LabelDriverScore = new Label(\"Driver\");\r\n LabelDonkeyNum = new Label(\"\" + DonkeyNum);\r\n LabelDriverNum = new Label(\"\" + DriverNum);\r\n LabelInstructions = new Label(\"Press Left Arrow to\\nmove to the left lane\\nPress Right Arrow to\\n\" +\r\n \"move to the right lane\\n\\nPress ESC to exit\");\r\n\r\n LabelDonkeyScore.setTextFill(ColorScheme.colorGameWhite);\r\n LabelDriverScore.setTextFill(ColorScheme.colorGameWhite);\r\n LabelDonkeyNum.setTextFill(ColorScheme.colorGameWhite);\r\n LabelDriverNum.setTextFill(ColorScheme.colorGameWhite);\r\n LabelInstructions.setTextFill(ColorScheme.colorGameWhite);\r\n\r\n LabelDonkeyScore.setFont(Font.font(\"Rockwell\", 55));\r\n LabelDriverScore.setFont(Font.font(\"Rockwell\", 55));\r\n LabelDonkeyNum.setFont(Font.font(\"Rockwell\", 55));\r\n LabelDriverNum.setFont(Font.font(\"Rockwell\", 55));\r\n LabelInstructions.setFont(Font.font(\"Rockwell\", 40));\r\n\r\n LabelDonkeyScore.setMaxWidth(Double.MAX_VALUE);\r\n LabelDriverScore.setMaxWidth(Double.MAX_VALUE);\r\n LabelDonkeyNum.setMaxWidth(Double.MAX_VALUE);\r\n LabelDriverNum.setMaxWidth(Double.MAX_VALUE);\r\n LabelInstructions.setMaxWidth(Double.MAX_VALUE);\r\n\r\n LabelDonkeyScore.setAlignment(Pos.TOP_LEFT);\r\n LabelDriverScore.setAlignment(Pos.TOP_RIGHT);\r\n LabelDonkeyNum.setAlignment(Pos.TOP_LEFT);\r\n LabelDriverNum.setAlignment(Pos.TOP_RIGHT);\r\n LabelInstructions.setAlignment(Pos.BOTTOM_RIGHT);\r\n\r\n // insets are top ,right ,bottom ,left\r\n LabelDonkeyScore.setPadding(new Insets(20,0,0, 50));\r\n LabelDriverScore.setPadding(new Insets(20,250,0, 0));\r\n LabelDonkeyNum.setPadding(new Insets(30,0,0, 120));\r\n LabelDriverNum.setPadding(new Insets(30,315,0, 0));\r\n LabelInstructions.setPadding(new Insets(450,100,0, 0));\r\n\r\n }", "title": "" }, { "docid": "089da19d88870a6976eb3dc910d9d626", "score": "0.5131346", "text": "protected void setParagraphInsets(AttributeSet attr) {\n // Since version 1.1 doesn't have scaling and assumes\n // a pixel is equal to a point, we just cast the point\n // sizes to integers.\n top = (short) StyleConstants.getSpaceAbove(attr);\n left = (short) StyleConstants.getLeftIndent(attr);\n bottom = (short) StyleConstants.getSpaceBelow(attr);\n right = (short) StyleConstants.getRightIndent(attr);\n }", "title": "" }, { "docid": "bec15d31efcc525fc5b34aa6c896a261", "score": "0.51282483", "text": "@Override\n @RequiresApi(api = Build.VERSION_CODES.KITKAT_WATCH)\n public WindowInsets onApplyWindowInsets(View view, WindowInsets insets) {\n rootView.setOnApplyWindowInsetsListener(null);\n\n toolbar.setPadding(toolbar.getPaddingStart() + insets.getSystemWindowInsetLeft(),\n toolbar.getPaddingTop() + insets.getSystemWindowInsetTop(),\n toolbar.getPaddingEnd() + insets.getSystemWindowInsetRight(),\n toolbar.getPaddingBottom());\n\n actionArea.setPadding(actionArea.getPaddingStart() + insets.getSystemWindowInsetLeft(),\n actionArea.getPaddingTop(),\n actionArea.getPaddingEnd() + insets.getSystemWindowInsetRight(),\n actionArea.getPaddingBottom() + insets.getSystemWindowInsetBottom());\n\n /*cropImageView.setPadding(cropImageView.getPaddingStart() + insets.getSystemWindowInsetLeft(),\n cropImageView.getPaddingTop(),\n cropImageView.getPaddingEnd() + insets.getSystemWindowInsetRight(),\n cropImageView.getPaddingBottom());*/\n\n return insets.consumeSystemWindowInsets();\n }", "title": "" }, { "docid": "057d362c7bb3ae1bc39f53ad7996968c", "score": "0.5127501", "text": "@JsProperty\n public final native void setCellPadding(int cellPadding);", "title": "" }, { "docid": "5b21a70f27a0134c6fad06322ba41573", "score": "0.512208", "text": "@Override\n public TextFormatter pad() {\n /*\n * We'll need this many pad characters (if>0). Note\n * Spec.UNDEFINED<0.\n */\n int n = spec.width\n - result.codePointCount(mark, result.length());\n if (n > 0) { pad(mark, n); }\n return this;\n }", "title": "" }, { "docid": "d54599116b20a054d190dc1d14e878f3", "score": "0.5117401", "text": "@Override\n \t\t\t\t\tpublic void paintBorder(Component c, Graphics g, int x, int y, int width, int height)\n \t\t\t\t\t{\n \t\t\t\t\t}", "title": "" }, { "docid": "ad3684ee90df2fcc45bd682787f75570", "score": "0.5113852", "text": "private static String pad(long value, int width)\r\n {\r\n StringBuilder sb = new StringBuilder(width);\r\n String stringValue = String.valueOf(value);\r\n for (int i = 0, n = width - stringValue.length(); i < n; i++)\r\n {\r\n sb.append('0');\r\n }\r\n sb.append(stringValue);\r\n return sb.toString();\r\n }", "title": "" }, { "docid": "600fdfaf21ecc0b49b4b0520da4d70ed", "score": "0.51044834", "text": "public void setAllPad(float pad){\n padLeft = pad;\n padRight = pad;\n padTop = pad;\n padBottom = pad;\n }", "title": "" }, { "docid": "e98dba8df16c3d854b9f07e4494f8534", "score": "0.51044685", "text": "private JPanel createTop(){\n JPanel panel = new JPanel(new BorderLayout(10, 10)); //the parameters in the border layout specify spaces between components\n JLabel label = new JLabel(\"Enter a name: \");\n panel.add(label, BorderLayout.WEST); //label to the left(west)\n panel.add(addButton, BorderLayout.EAST);// button to the right(east)\n panel.add(field);//text field at the center\n return panel;\n }", "title": "" }, { "docid": "edd587882907ee753663ca1f9cb31ab5", "score": "0.5099797", "text": "protected void setInsets(short top, short left, short bottom, short right) {\n this.top = top;\n this.left = left;\n this.right = right;\n this.bottom = bottom;\n }", "title": "" }, { "docid": "45d4581f497794d9466d931c8233c2e6", "score": "0.50990796", "text": "public void setDialogDividerLeftPadding(int i) {\n this.dialogDividerLeftPadding = i;\n }", "title": "" }, { "docid": "365fcb906a1cfd0f5d391d2e4a63a519", "score": "0.5091127", "text": "public GBC setInsets(int distance) \r\n { \r\n this.insets = new Insets(distance, distance, distance, distance);\r\n return this;\r\n }", "title": "" }, { "docid": "1ec600971ec1a3b367c3ced571f71145", "score": "0.508943", "text": "static private void sharedLayout(TextView tv) {\n tv.setHeight(ROW_HEIGHT);\n tv.setTextSize(TEXT_SIZE);\n tv.setPadding(5, 1, 0, 0);\n tv.setGravity(Gravity.BOTTOM);\n margins(tv,1,1,1,1);\n }", "title": "" }, { "docid": "3bbc78b3c98f27eb94f31a38c53ca86b", "score": "0.5085965", "text": "private VBox makeLayout() {\n\t\tVBox layout = new VBox();\n\t\tlayout.setPadding(new Insets(10,10,10,10));\n\t\tlayout.setSpacing(15);\n\t\treturn layout;\n\t}", "title": "" }, { "docid": "dd6a5eee3dd1db38ffc21e325ef9febf", "score": "0.5085034", "text": "private void spacePanel()\r\n {\r\n lpane.setBounds(panelNum*150, 0, 300, SCREEN_HEIGHT);\r\n panelNum += 2;\r\n }", "title": "" } ]
6dee2faa9892d37284a32fb842a55c7b
Metodo que obtiene el tipo de sorpresa
[ { "docid": "cd64319a96a62c4d20c9bb0f32549fac", "score": "0.6495448", "text": "public String getTipo() {\r\n\t\treturn tipo;\r\n\t}", "title": "" } ]
[ { "docid": "8e61954dcf71f17b45dda0ace2720be0", "score": "0.71262", "text": "TipoRecurso getTipo();", "title": "" }, { "docid": "5d6cb27283d3148df634a6dc4243548c", "score": "0.7089318", "text": "public String getTipo();", "title": "" }, { "docid": "ca3abc7b384b841c8f71be7e85efd7ca", "score": "0.6930549", "text": "@Override\r\n\tpublic String obtenerTipo() {\n\t\treturn tipoUnidad;\r\n\t}", "title": "" }, { "docid": "b4f29fd762fc51416e3a5ed5ecd40f68", "score": "0.6809028", "text": "wiki.sliki.model.SlikiModel.PersonaType getPersonaType();", "title": "" }, { "docid": "efa6358eb49c444440e2263b019d1f6b", "score": "0.67930454", "text": "public void obtenerTipo() {\n System.out.println(\"El tipo T es:\" + objeto.getClass().getSimpleName());\n }", "title": "" }, { "docid": "18d555493a708d6fc69a2fa94bda71bb", "score": "0.6790672", "text": "Type getCodomain();", "title": "" }, { "docid": "f72d17f6747abcdad94b60e02b588554", "score": "0.66653234", "text": "public String getTipo() {\r\n return this.tipo;\r\n }", "title": "" }, { "docid": "99520d84e6e3cc6b8e93491118ae24d0", "score": "0.66018486", "text": "public String getTipologia() {\n return tipologia;\n }", "title": "" }, { "docid": "cca8e4706e8500d3901c046f99121a3b", "score": "0.65265054", "text": "public String getTipo() {\r\n return tipo;\r\n }", "title": "" }, { "docid": "5922e5c6db638540eb2796af694ca6b5", "score": "0.6501872", "text": "public String getTipo() {\n return tipo;\n }", "title": "" }, { "docid": "5922e5c6db638540eb2796af694ca6b5", "score": "0.6501872", "text": "public String getTipo() {\n return tipo;\n }", "title": "" }, { "docid": "5922e5c6db638540eb2796af694ca6b5", "score": "0.6501872", "text": "public String getTipo() {\n return tipo;\n }", "title": "" }, { "docid": "5922e5c6db638540eb2796af694ca6b5", "score": "0.6501872", "text": "public String getTipo() {\n return tipo;\n }", "title": "" }, { "docid": "1b6f68617840851a8854420dfdad4075", "score": "0.648604", "text": "public java.lang.String getPeti_tipo();", "title": "" }, { "docid": "c949963eb6004442416bdcb5482ffcf1", "score": "0.64734346", "text": "String getTypeFusee();", "title": "" }, { "docid": "d4fe0f51458e0e38f84cd9b780026b0e", "score": "0.6447206", "text": "public String getTipo() {\n\t\treturn tipo;\n\t}", "title": "" }, { "docid": "207bd0f82e9cb5449decd29f112503de", "score": "0.6429795", "text": "String getTypeId();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.64077973", "text": "String getType();", "title": "" }, { "docid": "8a7f35796405f5b78786014a6a984ea1", "score": "0.64067787", "text": "Domain getDomainType();", "title": "" }, { "docid": "367308af1b2e6bc5f6989162621e9d97", "score": "0.6384988", "text": "public TipoStanzaAccessoria getTipo() {\r\n return tipo;\r\n }", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.6384578", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.6384578", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.6384578", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.6384578", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.6384578", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.6384578", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.6384578", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.6384578", "text": "public String getType();", "title": "" }, { "docid": "558df8e575500cd6726f09ededdb0547", "score": "0.6382166", "text": "protected abstract String getNomType();", "title": "" }, { "docid": "5c30aba91186663f565e17f0c611f4f8", "score": "0.63389385", "text": "public String getTipoDocumento()\r\n/* 26: */ {\r\n/* 27:52 */ return this.tipoDocumento;\r\n/* 28: */ }", "title": "" }, { "docid": "e473b5c636b45a96c45cdf024e892130", "score": "0.63334334", "text": "public Oid getNameType();", "title": "" }, { "docid": "2e55cb468ed6ba5603c5639e6b7a7243", "score": "0.63272756", "text": "public String Tipo() throws Exception\n {\n //String oTipo; \n this.oToken = this.anLexico.Escanear();\n if (this.oToken.getGrupoLexico().equals(TiposNativos.BOOL))//reconoce BOOLEANO\n { \t\n \treturn TiposNativos.BOOL;\n }else if (this.oToken.getGrupoLexico().equals(TiposNativos.NUM)){\n \t\treturn TiposNativos.NUM;\n }else if (this.oToken.getGrupoLexico().equals(TiposNativos.FINVAR)){\n \t\treturn TiposNativos.FINVAR;\n }else\n error(\"Sintactico. \\nSe esperaba una declaracion de tipo\");\n return null;\t\n }", "title": "" }, { "docid": "d2cb30a78153cadaa6f2523de5962912", "score": "0.63043946", "text": "public String getTipo()\n {return tipo;}", "title": "" }, { "docid": "9b03c7539e8ae309e84ce583456e056c", "score": "0.6302981", "text": "public String getTipo() {\n\treturn TIPO_ITEM_PERSONALIZADO;\n }", "title": "" }, { "docid": "63d449646ad51e0afd41eeeac3413ec1", "score": "0.62750816", "text": "public java.lang.String getTipoEmpaquetador();", "title": "" }, { "docid": "49e1ed3e4a10dad5f795eee6541fd3ae", "score": "0.6271745", "text": "public TipoDispositivo obtenerTipoDispositivo(String tipoD) throws DAOException;", "title": "" }, { "docid": "5dca69645ac9ea3d144ca8898bfe5556", "score": "0.62623405", "text": "public void setTipoIdentificacion(String p) { this.tipoIdentificacion = p; }", "title": "" }, { "docid": "0f4fa6b9b1125b14ca8dafcadb32e057", "score": "0.6260939", "text": "public abstract java.lang.String getTipo_averia();", "title": "" }, { "docid": "f862e31f0c8d6570ef882e9a8f9b6a09", "score": "0.6242827", "text": "@Override\n\tpublic void consultaTipo() {\n\t}", "title": "" }, { "docid": "f95de7ebfb1a6a27e7b3e3b9f0840158", "score": "0.62255883", "text": "public String getType() {\n }", "title": "" }, { "docid": "5f494af2a9aff5a360e892c86c31ae7b", "score": "0.6217018", "text": "public String getTipoCuenta() {\n\t\treturn tipoCuenta;\n\t}", "title": "" }, { "docid": "cbe4aaeb0d995fcba499ea61475a929e", "score": "0.62149745", "text": "PrincipalType principalType();", "title": "" }, { "docid": "d4e2c682f9809a6792e543e2a9882ddf", "score": "0.6205601", "text": "String getTyp();", "title": "" }, { "docid": "03d1169a68d73d09e7122d4c90c42ceb", "score": "0.62034404", "text": "public TipoEfeito verTipo() {\n\t\treturn tipo;\n\t}", "title": "" }, { "docid": "03d1169a68d73d09e7122d4c90c42ceb", "score": "0.62034404", "text": "public TipoEfeito verTipo() {\n\t\treturn tipo;\n\t}", "title": "" }, { "docid": "03d1169a68d73d09e7122d4c90c42ceb", "score": "0.62034404", "text": "public TipoEfeito verTipo() {\n\t\treturn tipo;\n\t}", "title": "" }, { "docid": "2a37118903200df58f8c4c82d907d8f6", "score": "0.6192133", "text": "public Oid getStringNameType();", "title": "" }, { "docid": "5c8efcc19f948da7d21b7d522e27d722", "score": "0.6190127", "text": "Object getObjectType();", "title": "" }, { "docid": "f2796d79d9ebe092e97ee6d4191d51d5", "score": "0.61808085", "text": "private String getId(T tipo) {\n if (tipo instanceof Salon)\n {\n Salon salon = (Salon) tipo;\n return String.valueOf(salon.getId());\n }\n return null;\n }", "title": "" }, { "docid": "f61b900c36a5490fcb6c155e9794eec9", "score": "0.61769605", "text": "public String getTipo_postre() {\r\n\t\treturn Tipo_postre;\r\n\t}", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.61725503", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.61725503", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.61725503", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.61725503", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.61725503", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.61725503", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.61725503", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.61725503", "text": "public abstract String getType();", "title": "" }, { "docid": "9a8ea615b10cddc5b033ea659e03596d", "score": "0.6171429", "text": "@GET\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic Response getTipoComidas() {\n\t\tRotondAndesTM tm = new RotondAndesTM(getPath());\n\t\tList<TipoComida> tiposComida;\n\t\ttry {\n\t\t\ttiposComida = tm.darTiposComida();\n\t\t} catch (Exception e) {\n\t\t\treturn Response.status(500).entity(doErrorMessage(e)).build();\n\t\t}\n\t\treturn Response.status(200).entity(tiposComida).build();\n\t}", "title": "" }, { "docid": "978374581483e397b1f8ee6a006b2069", "score": "0.616923", "text": "private List<ValorNombre> tipoInstituciones() {\n\t\tList<ValorNombre> objetos = new ArrayList<ValorNombre>();\n\n\t\tValorNombre valorNombre = new ValorNombre(\"S\", \"No Convenido\");\n\t\tobjetos.add(valorNombre);\n\t\tvalorNombre = new ValorNombre(\"N\", \"Convenido\");\n\t\tobjetos.add(valorNombre);\n\t\treturn objetos;\n\t}", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.61676127", "text": "java.lang.String getType();", "title": "" }, { "docid": "e96ade744561ad94f92bb1037e3f9226", "score": "0.61665756", "text": "protected abstract String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.6166517", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.6166517", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.6166517", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.6166517", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.6166517", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.6166517", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.6166517", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.6166517", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.6166517", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.6166517", "text": "java.lang.String getType();", "title": "" }, { "docid": "ab13f60e6c529672e07e811de9960292", "score": "0.6155286", "text": "public Domain obtenerDominioTipo(int idDominio, int idTipo, String nombreDominio){\r\n \r\n Domain dRet=null;\r\n \r\n switch (idTipo){\r\n \r\n case Domain.CODEBOOK:\r\n dRet= new CodeBookDomain(); \r\n break;\r\n case Domain.PATTERN:\r\n dRet= new StringDomain(); \r\n break;\r\n case Domain.DATE:\r\n dRet= new DateDomain(); \r\n break;\r\n case Domain.NUMBER:\r\n dRet= new NumberDomain(); \r\n break;\r\n case Domain.TREE:\r\n dRet=new TreeDomain(); \r\n break;\r\n case Domain.BOOLEAN:\r\n dRet=new BooleanDomain(); \r\n break;\r\n case Domain.CODEDENTRY:\r\n dRet=new CodedEntryDomain(); \r\n break;\r\n case Domain.AUTO:\r\n dRet=new AutoFieldDomain(); \r\n break;\r\n \r\n }\r\n \r\n if (dRet != null){\r\n dRet.setSystemID(idDominio);\r\n dRet.setName(nombreDominio);\r\n }\r\n \r\n return dRet; \r\n \r\n }", "title": "" }, { "docid": "da8b89f73eec09905abc90d3fee305dd", "score": "0.6153841", "text": "public void setNombreTipoIdentificacion(String p) { this.nombreTipoIdentificacion = p; }", "title": "" }, { "docid": "c5b2ef98b181e6684d6cf25118bb7089", "score": "0.6142978", "text": "public String tipo() {\r\n\r\n\t\t// Variaveis\r\n\t\tString nome = null;\r\n\t\tint um;\r\n\r\n\t\tum = this.nome.indexOf(\".\");\r\n\t\tnome = this.nome.substring(um + 1);\r\n\r\n\t\treturn nome;\r\n\t}", "title": "" }, { "docid": "58cc919a0191a4bab9ffb78f25f4712c", "score": "0.61318564", "text": "Types getObjectType();", "title": "" }, { "docid": "7e92c2bc2d4f181b05b27efc9d7a822f", "score": "0.6109326", "text": "protected String realizeType() {\r\n\t\tString ret = null;\r\n\t\tif (this.parentTypeURI.equals(Conference.COUNTRY) \r\n\t\t\t\t|| this.parentTypeURI.equals(Conference.PROVINCE) \r\n\t\t\t\t|| this.parentTypeURI.equals(Conference.STATE)) {\r\n\t\t\tret = Conference.CITY;\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "title": "" }, { "docid": "a145aab8f3b84d1ebb9014a3c5989dd9", "score": "0.6098942", "text": "public java.lang.String getTipo_desconcilia();", "title": "" }, { "docid": "22b2aa6175344cf43562847ddf1d255e", "score": "0.60947466", "text": "public String getTipoSangre() {\n return tipoSangre;\n }", "title": "" } ]
af85bb6c482d73705eab8afad5fa7652
This method was generated by MyBatis Generator. This method corresponds to the database table t_oms_comm_sys_para
[ { "docid": "b7bec77b9befa14fc7de19ed4fa97b99", "score": "0.0", "text": "int updateByExampleSelective(@Param(\"record\") OmsCommSysPara record, @Param(\"example\") OmsCommSysParaExample example);", "title": "" } ]
[ { "docid": "bb61b91b43d8fb1cd22acd75dd8595bd", "score": "0.571391", "text": "OmsCommSysPara selectByPrimaryKey(Long id);", "title": "" }, { "docid": "c8893e57952f819fd7a6406b28a44c08", "score": "0.55245143", "text": "public List<SystemsParameterEntity> findAllSystemsParameter() {\n\t\treturn template.query(SYSTEMSPARAMETER_FINDALL, new SystemsParameterEntity());\n\t}", "title": "" }, { "docid": "6927e9b24fc46ec393d72cb58169272b", "score": "0.5471934", "text": "Table SYSTEM_PROCEDURECOLUMNS(Session session, PersistentStore store) {\n\n Table t = sysTables[SYSTEM_PROCEDURECOLUMNS];\n\n if (t == null) {\n t = createBlankTable(sysTableHsqlNames[SYSTEM_PROCEDURECOLUMNS]);\n\n // ----------------------------------------------------------------\n // required\n // ----------------------------------------------------------------\n addColumn(t, \"PROCEDURE_CAT\", SQL_IDENTIFIER); // 0\n addColumn(t, \"PROCEDURE_SCHEM\", SQL_IDENTIFIER); // 1\n addColumn(t, \"PROCEDURE_NAME\", SQL_IDENTIFIER); // not null\n addColumn(t, \"COLUMN_NAME\", SQL_IDENTIFIER); // not null\n addColumn(t, \"COLUMN_TYPE\", Type.SQL_SMALLINT); // not null\n addColumn(t, \"DATA_TYPE\", Type.SQL_SMALLINT); // not null\n addColumn(t, \"TYPE_NAME\", SQL_IDENTIFIER); // not null\n addColumn(t, \"PRECISION\", Type.SQL_INTEGER); // 7\n addColumn(t, \"LENGTH\", Type.SQL_INTEGER); // 8\n addColumn(t, \"SCALE\", Type.SQL_SMALLINT); // 9\n addColumn(t, \"RADIX\", Type.SQL_SMALLINT); // 10\n addColumn(t, \"NULLABLE\", Type.SQL_SMALLINT); // not null\n addColumn(t, \"REMARKS\", CHARACTER_DATA); // 12\n\n // ----------------------------------------------------------------\n // JDBC 4.0\n // ----------------------------------------------------------------\n addColumn(t, \"COLUMN_DEF\", CHARACTER_DATA); // 13\n addColumn(t, \"SQL_DATA_TYPE\", Type.SQL_INTEGER); // 14\n addColumn(t, \"SQL_DATETIME_SUB\", Type.SQL_INTEGER); // 15\n addColumn(t, \"CHAR_OCTET_LENGTH\", Type.SQL_INTEGER); // 16\n addColumn(t, \"ORDINAL_POSITION\", Type.SQL_INTEGER); // 17\n addColumn(t, \"IS_NULLABLE\", CHARACTER_DATA); // 18\n addColumn(t, \"SPECIFIC_NAME\", SQL_IDENTIFIER); // 19\n\n // order: PROCEDURE_SCHEM, PROCEDURE_NAME, SPECIFIC_NAME, ORDINAL_POSITION\n //\n HsqlName name = HsqlNameManager.newInfoSchemaObjectName(\n sysTableHsqlNames[SYSTEM_PROCEDURECOLUMNS].name, false,\n SchemaObject.INDEX);\n\n t.createPrimaryKeyConstraint(name, new int[] {\n 0, 1, 2, 19, 17\n }, false);\n\n return t;\n }\n\n // column number mappings\n final int specific_cat = 0;\n final int specific_schem = 1;\n final int procedure_name = 2;\n final int parameter_name = 3;\n final int parameter_mode = 4;\n final int data_type_sql_id = 5;\n final int data_type = 6;\n final int numeric_precision = 7;\n final int byte_length = 8;\n final int numeric_scale = 9;\n final int numeric_precision_radix = 10;\n final int nullable = 11;\n final int remark = 12;\n final int default_val = 13;\n final int sql_data_type = 14;\n final int sql_datetime_sub = 15;\n final int character_octet_length = 16;\n final int ordinal_position = 17;\n final int is_nullable = 18;\n final int specific_name = 19;\n\n // intermediate holders\n int columnCount;\n Iterator routines;\n RoutineSchema routineSchema;\n Routine routine;\n Object[] row;\n Type type;\n\n // Initialization\n boolean translateTTI = database.sqlTranslateTTI;\n\n routines = database.schemaManager.databaseObjectIterator(\n SchemaObject.ROUTINE);\n\n while (routines.hasNext()) {\n routineSchema = (RoutineSchema) routines.next();\n\n if (!session.getGrantee().isAccessible(routineSchema)) {\n continue;\n }\n\n Routine[] specifics = routineSchema.getSpecificRoutines();\n\n for (int i = 0; i < specifics.length; i++) {\n routine = specifics[i];\n columnCount = routine.getParameterCount();\n\n for (int j = 0; j < columnCount; j++) {\n ColumnSchema column = routine.getParameter(j);\n\n row = t.getEmptyRowData();\n type = column.getDataType();\n\n if (translateTTI) {\n if (type.isIntervalType()) {\n type = ((IntervalType) type).getCharacterType();\n } else if (type.isDateTimeTypeWithZone()) {\n type = ((DateTimeType) type)\n .getDateTimeTypeWithoutZone();\n }\n }\n\n row[specific_cat] = database.getCatalogName().name;\n row[specific_schem] = routine.getSchemaName().name;\n row[specific_name] = routine.getSpecificName().name;\n row[procedure_name] = routine.getName().name;\n row[parameter_name] = column.getName().name;\n row[ordinal_position] = ValuePool.getInt(j + 1);\n row[parameter_mode] =\n ValuePool.getInt(column.getParameterMode());\n row[data_type] = type.getFullNameString();\n row[data_type_sql_id] =\n ValuePool.getInt(type.getJDBCTypeCode());\n row[numeric_precision] = ValuePool.INTEGER_0;\n row[character_octet_length] = ValuePool.INTEGER_0;\n\n if (type.isCharacterType()) {\n row[numeric_precision] =\n ValuePool.getInt(type.getJDBCPrecision());\n\n // this is length not octet_length, for character columns\n row[character_octet_length] =\n ValuePool.getInt(type.getJDBCPrecision());\n }\n\n if (type.isBinaryType()) {\n row[numeric_precision] =\n ValuePool.getInt(type.getJDBCPrecision());\n row[character_octet_length] =\n ValuePool.getInt(type.getJDBCPrecision());\n }\n\n if (type.isNumberType()) {\n row[numeric_precision] = ValuePool.getInt(\n ((NumberType) type).getNumericPrecisionInRadix());\n row[numeric_precision_radix] =\n ValuePool.getLong(type.getPrecisionRadix());\n\n if (type.isExactNumberType()) {\n row[numeric_scale] = ValuePool.getLong(type.scale);\n }\n }\n\n if (type.isDateTimeType()) {\n int size = column.getDataType().displaySize();\n\n row[numeric_precision] = ValuePool.getInt(size);\n }\n\n row[sql_data_type] =\n ValuePool.getInt(column.getDataType().typeCode);\n row[nullable] = ValuePool.getInt(column.getNullability());\n row[is_nullable] = column.isNullable() ? \"YES\"\n : \"NO\";\n\n t.insertSys(session, store, row);\n }\n }\n }\n\n return t;\n }", "title": "" }, { "docid": "f9d1c80aabefab3391c4f51f09f1448d", "score": "0.54566914", "text": "List<OmsCommSysPara> selectByExample(OmsCommSysParaExample example);", "title": "" }, { "docid": "6fe8765fa263b7b0028e7d93d3bcd397", "score": "0.5438647", "text": "public interface SysDao {\n\n @Select(\"select * from t_sys_config where id = #{id}\")\n Map<String,Object> queryConfigById(Map<String, Object> params);\n\n @Insert(\"insert into t_sys_config (id , paramName , paramDesc , paramValue , createTime) values(#{id},#{paramName} , #{paramDesc} , #{paramValue} , now())\")\n int saveSysConfigSetting(Map<String, Object> params);\n\n @Update(\"update t_sys_config set paramValue = #{paramValue} ,updateTime = now() where id = #{id}\")\n int updateSysConfigSetting(Map<String, Object> params);\n\n @Select(\"select * from t_sys_config\")\n List<Map<String,Object>> querySysConfigs();\n\n @Select(\"select * from t_sys_level_config where ls = #{ls}\")\n Map<String,Object> queryLevelConfigByLevel(Map<String, Object> params);\n\n @Insert(\"insert into t_sys_level_config(ls , rate , createTime) values(#{ls},#{rate},now())\")\n void saveSysLevelConfigSetting(Map<String, Object> params);\n\n @Update(\"update t_sys_level_config set rate = #{rate} , updateTime = now() where ls = #{ls}\")\n void updateSysLevelConfigSetting(Map<String, Object> params);\n\n @Select(\"select * from t_sys_level_config\")\n List<Map<String,Object>> querySysLevelConfigs();\n\n @Select(\"select paramValue from t_sys_config where id = 1\")\n String querySysName();\n}", "title": "" }, { "docid": "8624a99ef404c2d5a99b9eacdbe8930f", "score": "0.5134723", "text": "public SysParaOpt (\n\t\t Long in_sysParaOptId\n ) {\n\t\tthis.setSysParaOptId(in_sysParaOptId);\n }", "title": "" }, { "docid": "1d1e58a59152828b7c6067e80afa0762", "score": "0.5065164", "text": "public void writeArrayDesignBundle(ArrayDesignBundle arrayDesignBundle) {\n // execute this procedure...\n /*\n PROCEDURE A2_ARRAYDESIGNSET(\n Accession varchar2\n ,Type varchar2\n ,Name varchar2\n ,Provider varchar2\n ,DesignElements DesignElementTable\n );\n */\n SimpleJdbcCall procedure =\n new SimpleJdbcCall(template)\n .withProcedureName(\"ATLASLDR.A2_ARRAYDESIGNSET\")\n .withoutProcedureColumnMetaDataAccess()\n .useInParameterNames(\"ACCESSION\")\n .useInParameterNames(\"TYPE\")\n .useInParameterNames(\"NAME\")\n .useInParameterNames(\"PROVIDER\")\n // .useInParameterNames(\"ENTRYPRIORITYLIST\")\n .useInParameterNames(\"DESIGNELEMENTS\")\n .declareParameters(\n new SqlParameter(\"ACCESSION\", Types.VARCHAR))\n .declareParameters(\n new SqlParameter(\"TYPE\", Types.VARCHAR))\n .declareParameters(\n new SqlParameter(\"NAME\", Types.VARCHAR))\n .declareParameters(\n new SqlParameter(\"PROVIDER\", Types.VARCHAR))\n // .declareParameters(\n // new SqlParameter(\"ENTRYPRIORITYLIST\", Types.VARCHAR))\n .declareParameters(\n new SqlParameter(\"DESIGNELEMENTS\", OracleTypes.ARRAY, \"DESIGNELEMENTTABLE\"));\n \n SqlTypeValue designElementsParam =\n arrayDesignBundle.getDesignElementNames().isEmpty() ? null :\n convertDesignElementsToOracleARRAY(arrayDesignBundle);\n \n StringBuffer sb = new StringBuffer();\n Iterator<String> stringIt = arrayDesignBundle.getGeneIdentifierNames().iterator();\n if (stringIt.hasNext()) {\n sb.append(stringIt.next());\n }\n while (stringIt.hasNext()) {\n sb.append(\",\").append(stringIt.next());\n }\n String entryPriorityList = sb.toString();\n \n MapSqlParameterSource params = new MapSqlParameterSource();\n params.addValue(\"ACCESSION\", arrayDesignBundle.getAccession())\n .addValue(\"TYPE\", arrayDesignBundle.getType())\n .addValue(\"NAME\", arrayDesignBundle.getName())\n .addValue(\"PROVIDER\", arrayDesignBundle.getProvider())\n // .addValue(\"ENTRYPRIORITYLIST\", entryPriorityList)\n .addValue(\"DESIGNELEMENTS\", designElementsParam, OracleTypes.ARRAY, \"DESIGNELEMENTTABLE\");\n \n procedure.execute(params);\n }", "title": "" }, { "docid": "fb684386899ebc6b21a608a28a4652bf", "score": "0.50564873", "text": "int insertSelective(OmsCommSysPara record);", "title": "" }, { "docid": "5b75665d585fdf0ea9c9f49c105a60c3", "score": "0.50521296", "text": "public void update(CsoSystemParametersDTO bean) throws DAOException {\n\t\t\t\n\t\tCsoSystemParameters csoSystemParametersEntity = new CsoSystemParameters();\n\t\tcsoSystemParametersEntity.setCccoreInterval((short) bean.getCccoreInterval());\n\t\tcsoSystemParametersEntity.setCisDownloadInd(bean.getCisDownloadInd());\n\t\tcsoSystemParametersEntity.setEodDone(bean.getEodDone());\n\t\tcsoSystemParametersEntity.setLiveTestCode(bean.getLiveTestCode());\n\t\tcsoSystemParametersEntity.setNextOutputDate(bean.getNextOutputDate());\n\t\tcsoSystemParametersEntity.setProcessActiveInd(bean.getProcessActiveInd());\n\t\tcsoSystemParametersEntity.setProcessDate(bean.getProcessDate());\n\t\tcsoSystemParametersEntity.setRunBatch(bean.getRunBatch());\n\t\tcsoSystemParametersEntity.setUnixSodDone(bean.getUnixSodDone());\n\n\t\ttry {\n\t\t\t\n\t\t\tcsoSystemParametersDao.update(csoSystemParametersEntity);\n\n\t\t} catch (Exception ex) {\n\t\t\tex.getMessage();\n\t\t} \n\t}", "title": "" }, { "docid": "f719894fefac76e83adb54b768260d66", "score": "0.50085956", "text": "public LACSDDb2ProcDAO(String spName) {\r\n\tsuper();\r\n\tstoredProcedureName = spName;\r\n\tinputs = new HashMap<Integer, Object>();\r\n\toutputs = new HashMap<Integer, Integer>();\r\n}", "title": "" }, { "docid": "6df83a9d7ba49431ff4ff6c600cbcba6", "score": "0.5005391", "text": "private StoredProcedureQuery createStoredProcedure(String nameSP, List<ParametrosSP> parametros){\n\t\t\n\t\t// Variable\n\t\tStoredProcedureQuery storedProcedure = null;\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\t // registra Stored Procedure\n\t\t\t storedProcedure = entityManager.createStoredProcedureQuery(nameSP);\n\n\t\t\t // declara y configura parametros\n\t\t\t int totalParametros = parametros.size();\n\t\t\t \n\t\t\t for(int i=0; i<totalParametros; i++){\n\t\t\t\t \n\t\t\t\t switch(parametros.get(i).getTipoDato()){\n\t\t\t\t \n\t\t\t \t\tcase PARAMETRO_Integer:\n\t\t\t \t\t\tparametroInteger = (Integer) parametros.get(i).getParametro();\n\t\t\t \t\t\tstoredProcedure.registerStoredProcedureParameter(parametros.get(i).getNombreParametro(), Integer.class, ParameterMode.IN);\n\t\t\t \t\t\tstoredProcedure.setParameter(parametros.get(i).getNombreParametro(), parametroInteger);\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t\n\t\t\t \t\tcase PARAMETRO_Float:\n\t\t\t \t\t\tparametroFloat = (Float) parametros.get(i).getParametro();\n\t\t\t \t\t\tstoredProcedure.registerStoredProcedureParameter(parametros.get(i).getNombreParametro(), Float.class, ParameterMode.IN);\n\t\t\t \t\t\tstoredProcedure.setParameter(parametros.get(i).getNombreParametro(), parametroFloat);\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t\t\n\t\t\t \t\tcase PARAMETRO_String:\n\t\t\t \t\t\tparametroString = (String) parametros.get(i).getParametro();\n\t\t\t \t\t\tstoredProcedure.registerStoredProcedureParameter(parametros.get(i).getNombreParametro(), String.class, ParameterMode.IN);\n\t\t\t \t\t\tstoredProcedure.setParameter(parametros.get(i).getNombreParametro(), parametroString);\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t\t\n\t\t\t \t\tcase PARAMETRO_Byte:\n\t\t\t \t\t\tparametroByte = (Byte) parametros.get(i).getParametro();\n\t\t\t \t\t\tstoredProcedure.registerStoredProcedureParameter(parametros.get(i).getNombreParametro(), Byte.class, ParameterMode.IN);\n\t\t\t \t\t\tstoredProcedure.setParameter(parametros.get(i).getNombreParametro(), parametroByte);\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t\t\n\t\t\t \t\tcase PARAMETRO_Short:\n\t\t\t \t\t\tparametroShort = (Short) parametros.get(i).getParametro();\n\t\t\t \t\t\tstoredProcedure.registerStoredProcedureParameter(parametros.get(i).getNombreParametro(), Short.class, ParameterMode.IN);\n\t\t\t \t\t\tstoredProcedure.setParameter(parametros.get(i).getNombreParametro(), parametroShort);\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t\t\n\t\t\t \t\tcase PARAMETRO_Long:\n\t\t\t \t\t\tparametroLong = (Long) parametros.get(i).getParametro();\n\t\t\t \t\t\tstoredProcedure.registerStoredProcedureParameter(parametros.get(i).getNombreParametro(), Long.class, ParameterMode.IN);\n\t\t\t \t\t\tstoredProcedure.setParameter(parametros.get(i).getNombreParametro(), parametroLong);\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t\t\n\t\t\t \t\tcase PARAMETRO_Double:\n\t\t\t \t\t\tparametroDouble = (Double) parametros.get(i).getParametro();\n\t\t\t \t\t\tstoredProcedure.registerStoredProcedureParameter(parametros.get(i).getNombreParametro(), Double.class, ParameterMode.IN);\n\t\t\t \t\t\tstoredProcedure.setParameter(parametros.get(i).getNombreParametro(), parametroDouble);\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t\t\n\t\t\t \t\tcase PARAMETRO_Boolean:\n\t\t\t \t\t\tparametroBoolean = (Boolean) parametros.get(i).getParametro();\n\t\t\t \t\t\tstoredProcedure.registerStoredProcedureParameter(parametros.get(i).getNombreParametro(), Boolean.class, ParameterMode.IN);\n\t\t\t \t\t\tstoredProcedure.setParameter(parametros.get(i).getNombreParametro(), parametroBoolean);\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t\t\n\t\t\t \t\tcase PARAMETRO_Character:\n\t\t\t \t\t\tparametroCharacter = (Character) parametros.get(i).getParametro();\n\t\t\t \t\t\tstoredProcedure.registerStoredProcedureParameter(parametros.get(i).getNombreParametro(), Character.class, ParameterMode.IN);\n\t\t\t \t\t\tstoredProcedure.setParameter(parametros.get(i).getNombreParametro(), parametroCharacter);\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t\t\n\t\t\t \t\t\tdefault:\n\t\t\t \t\t\t\tbreak;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t\t\n\t\t} catch(Exception ex){\n\t\t\tex.getMessage();\n\t\t}\n\t\t\n\t\treturn storedProcedure;\n\t\t\n\t}", "title": "" }, { "docid": "d148d68be53684363dbec678ffe48132", "score": "0.49912456", "text": "public void writeAssay(final Assay assay) {\n // execute this procedure...\n /*\n PROCEDURE \"A2_ASSAYSET\" (\n TheAccession varchar2\n ,TheExperimentAccession varchar2\n ,TheArrayDesignAccession varchar2\n ,TheProperties PropertyTable\n ,TheExpressionValues ExpressionValueTable\n )\n */\n SimpleJdbcCall procedure =\n new SimpleJdbcCall(template)\n .withProcedureName(\"ATLASLDR.A2_ASSAYSET\")\n .withoutProcedureColumnMetaDataAccess()\n .useInParameterNames(\"ACCESSION\")\n .useInParameterNames(\"EXPERIMENTACCESSION\")\n .useInParameterNames(\"ARRAYDESIGNACCESSION\")\n .useInParameterNames(\"PROPERTIES\")\n .useInParameterNames(\"EXPRESSIONVALUES\")\n .declareParameters(\n new SqlParameter(\"ACCESSION\", Types.VARCHAR))\n .declareParameters(\n new SqlParameter(\"EXPERIMENTACCESSION\", Types.VARCHAR))\n .declareParameters(\n new SqlParameter(\"ARRAYDESIGNACCESSION\", Types.VARCHAR))\n .declareParameters(\n new SqlParameter(\"PROPERTIES\", OracleTypes.ARRAY, \"PROPERTYTABLE\"))\n .declareParameters(\n new SqlParameter(\"EXPRESSIONVALUES\", OracleTypes.ARRAY, \"EXPRESSIONVALUETABLE\"));\n \n // map parameters...\n List<Property> props = assay.getProperties() == null\n ? new ArrayList<Property>()\n : assay.getProperties();\n Map<String, Float> evs = new HashMap<String, Float>();\n // Map<String, Float> evs = assay.getExpressionValuesByDesignElementReference() == null\n // ? new HashMap<String, Float>()\n // : assay.getExpressionValuesByDesignElementReference();\n MapSqlParameterSource params = new MapSqlParameterSource();\n \n StringBuffer sb = new StringBuffer();\n sb.append(\"Properties listing for \").append(assay.getAccession()).append(\":\\n\");\n for (Property p : props) {\n sb.append(\"\\t\").append(p.getName()).append(\"\\t\\t->\\t\\t\").append(p.getValue()).append(\"\\n\");\n }\n log.debug(sb.toString());\n \n SqlTypeValue propertiesParam =\n props.isEmpty() ? null :\n convertPropertiesToOracleARRAY(props);\n SqlTypeValue expressionValuesParam = null;\n // evs.isEmpty() ? null :\n // convertExpressionValuesToOracleARRAY(evs);\n \n params.addValue(\"ACCESSION\", assay.getAccession())\n .addValue(\"EXPERIMENTACCESSION\", assay.getExperimentAccession())\n .addValue(\"ARRAYDESIGNACCESSION\", assay.getArrayDesignAccession())\n .addValue(\"PROPERTIES\", propertiesParam, OracleTypes.ARRAY, \"PROPERTYTABLE\")\n .addValue(\"EXPRESSIONVALUES\", expressionValuesParam, OracleTypes.ARRAY, \"EXPRESSIONVALUETABLE\");\n \n log.debug(\"Invoking A2_ASSAYSET with the following parameters...\" +\n \"\\n\\tassay accession: {}\" +\n \"\\n\\texperiment: {}\" +\n \"\\n\\tarray design: {}\" +\n \"\\n\\tproperties count: {}\" +\n \"\\n\\texpression value count: {}\",\n new Object[]{assay.getAccession(), assay.getExperimentAccession(), assay.getArrayDesignAccession(),\n props.size(), evs.size()});\n \n // and execute\n procedure.execute(params);\n }", "title": "" }, { "docid": "7880585b8020c141e845f502f553538f", "score": "0.4987392", "text": "int insert(OmsCommSysPara record);", "title": "" }, { "docid": "7f15208b6f3a62b8c8902fdb1be1601d", "score": "0.49728742", "text": "public SysParaOpt () {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "19e6370308657cbd16d001a1075bb68d", "score": "0.49721766", "text": "public interface ProductManagementMapper {\n\n\n final class SqlProvider extends SQL {\n\n //生产管理主页面数据查询\n private void productManagementQuery(){\n SELECT(\"m.SO_ID soId\");\n SELECT(\"s.ID sid\");\n SELECT(\"o.OU_CODE ouCode\");\n SELECT(\"o.OU_NAME ouName\");\n SELECT(\"s.SO_NO soNo\");\n //SELECT(\"m.RETURN_DATE returnDate\");//数据表里面缺失字段,此字段需要修改\n SELECT(\"m.ACPT_USER acptUser\");\n SELECT(\"m.ACPT_TIME acptTime\");\n SELECT(\"p.PROD_CODE prodCode\");\n SELECT(\"p.PROD_NAME prodName\");\n // SELECT(\"p.PROD_TYPE prodType\");\n SELECT(\"p.QUALITY_LEVEL qualifyLevel\");\n SELECT(\"p.PRINT_DIFF_LEVEL printDiffLevel\");\n SELECT(\"p.BIND_DIFF_LEVEL bindDiffLevel\");\n SELECT(\"m.DIST_QTY distQty\");\n SELECT(\"m.PAPER_READY_STATUS paperReadyStatus\");\n SELECT(\"m.PAPER_APPR_DATE paperApprDate\");\n //SELECT(\"m.PROD_INFO_STATUS prodInfoStatus\");\n SELECT(\"(SELECT DISTINCT UDC.VAL_DESC1 FROM T_UDC UDC WHERE UDC.UDC_CODE=M.PROD_INFO_STATUS AND UDC.DOMAIN_CODE=#{meta.domainCode} AND UDC.UDC_TYPE=#{meta.udcType}) AS prodInfoStatus\");\n SELECT(\"m.PROD_APPR_DATE prodApprDate\");\n SELECT(\"m.SO_PROD_ID soProdId\");//此字段替换T_SO_MANU表中缺失的SO_MANU_ID\n }\n\n private void selectCondition(){\n FROM(\"T_SO s\");\n LEFT_OUTER_JOIN(\"T_SO_PROD d ON d.SO_ID = s.ID\");\n LEFT_OUTER_JOIN(\"T_PROD p ON p.ID = d.PROD_ID\");\n LEFT_OUTER_JOIN(\"T_OU o ON o.ID= s.OU_ID\");\n LEFT_OUTER_JOIN(\"T_SO_MANU m ON m.SO_PROD_ID=d.ID\");\n WHERE(\"m.MANU_STATUS != 04\");\n }\n\n //过滤条件\n private void whereCondition(@Param(\"productManagement\")ProductManagementCondition productManagementCondition){\n if (!StringUtils.isEmpty(StringUtils.trimAll(productManagementCondition.getProdName()))) {\n WHERE(\"p.PROD_NAME = #{productManagement.prodName}\");\n }\n if (!StringUtils.isEmpty(StringUtils.trimAll(productManagementCondition.getSoNo()))) {\n WHERE(\"s.SO_NO = #{productManagement.soNo}\");\n }\n if (!StringUtils.isEmpty(StringUtils.trimAll(productManagementCondition.getProdAppr()))) {\n WHERE(\"m.PROD_INFO_STATUS = #{productManagement.prodAppr}\");\n }\n if (!StringUtils.isEmpty(StringUtils.trimAll(productManagementCondition.getPaperAppr()))) {\n WHERE(\"m.PAPER_READY_STATUS = #{productManagement.paperAppr}\");\n }\n }\n\n //分页数据总条数NUM\n private static final String PRODUCT_MANAGEMENT_NUM_QUERYSQL = \"productManagementSearchNumSQL\";\n public String productManagementSearchNumSQL(@Param(\"productManagement\")ProductManagementCondition productManagementCondition,\n @Param(\"meta\") UdcMeta udcMeta){\n SELECT(\"COUNT(1) AS N\");\n selectCondition();\n whereCondition(productManagementCondition);\n return toString();\n }\n\n //生产管理主页面\n private static final String PRODUCT_MANAGEMENT_QUERY_SQL = \"productManagementQuerySql\";\n public String productManagementQuerySql(@Param(\"productManagement\")ProductManagementCondition productManagementCondition,\n @Param(\"meta\") UdcMeta udcMeta) {\n productManagementQuery();\n selectCondition();\n whereCondition(productManagementCondition);\n //排序字段\n if (!StringUtils.isEmpty(productManagementCondition.getField())) {\n ORDER_BY(productManagementCondition.getField() + \" \" + productManagementCondition.getOrder());\n }\n return SqlUtil.paging(toString(),productManagementCondition);\n }\n\n //子页面头部数据查询\n private static final String HEAD_INFO_QUERY_SQL = \"headInfoQuerySql\";\n public String headInfoQuerySql(@Param(\"sid\") Integer sid,\n @Param(\"meta\") UdcMeta udcMeta) {\n productManagementQuery();\n selectCondition();\n if (null!=sid) {\n WHERE(\"s.ID = #{sid}\");\n }\n return toString();\n }\n //生产管理-详情页-产品明细数据查询语句\n private void productDetailQuery(){\n SELECT(\"p.PROD_CODE as prodCode\");\n SELECT(\"p.PROD_NAME as prodName\");\n //SELECT(\"p.PROD_TYPE as prodType\");\n SELECT(\"p.QUALITY_LEVEL as qualifyLevel\");\n SELECT(\"p.PRINT_DIFF_LEVEL as printDiffLevel\");\n SELECT(\"p.BIND_DIFF_LEVEL as bindDiffLevel\");\n //SELECT(\"p.BIND_TYPE as bindType\");\n SELECT(\"m.DIST_QTY as manuQty\");\n SELECT(\"m.PROD_INFO_STATUS as prodInfoStatus\");\n SELECT(\"NVL((select sum(WHIN_QTY) from T_PRODIN i where I.SOMANU_ID=M.ID)/m.DIST_QTY,0)*100 as finishRate\");\n\n }\n //生产管理-详情页-产品明细数据查询\n private static final String PRODUCT_DETAIL_QUERY_SQL = \"productDetailQuerySql\";\n public String productDetailQuerySql(@Param(\"sid\") Integer sid){\n productDetailQuery();\n selectCondition();\n if (null!=sid) {\n WHERE(\"s.ID = #{sid}\");\n }\n return toString();\n }\n\n //生产管理-详情页-产能需求数据查询\n private void productRequireQuery(){\n SELECT(\"OU.CAPA_TYPE cat3\");\n SELECT(\"OU.CAPA processQty\");\n SELECT(\"OU.UOM processUom\");\n FROM(\"T_OCCUPY OU\");\n INNER_JOIN(\"T_SO_MANU M ON M.ID = OU.SO_MANU_ID\");\n INNER_JOIN(\"T_FACT_STDCAPA f ON f.OU_ID = OU.DISTOU_ID\");\n //WHERE(\"M.ID=\")\n }\n //生产管理-详情页-产能需求数据查询\n private static final String PRODUCT_REQUIRE_QUERY_SQL = \"productRequireQuerySql\";\n public String productRequireQuerySql(){\n productRequireQuery();\n return toString();\n }\n\n //生产管理-子页面-文件检查查询 seven\n private static final String FILE_CHECK_QUERY_SQL = \"fileCheckQuerySql\";\n public String fileCheckQuerySql(@Param(\"meta\") UdcMeta udcMeta) {\n productManagementQuery();\n selectCondition();\n return toString();\n }\n\n //生产管理-子页面-文件检查-产能需求 seven\n private static final String FILE_CHECK_DOUBLE_CLICK_QUERY_SQL = \"fileCheckDoubleClickQuerySql\";\n public String fileCheckDoubleClickQuerySql(@Param(\"soProdId\") Integer soProdId){\n SELECT(\"o.CAPA_TYPE capaType\");\n SELECT(\"o.CAPA capa\");\n SELECT(\"s.UOM uom\");\n FROM(\"T_OCCUPY o\");\n INNER_JOIN(\"T_SO_MANU m on m.SO_PROD_ID = o.SO_MANU_ID\");\n INNER_JOIN(\"T_FACT_STDCAPA s on s.OU_ID=o.DISTOU_ID and s.FACT_ID=o.FACT_ID\");\n WHERE(\"o.SO_MANU_ID=#{soProdId}\");\n return toString();\n }\n\n //生产管理-子页面-纸张检查查询 seven\n private void paperCheckQuery(){\n SELECT(\"p.DOC_NO docNo\");\n SELECT(\"P.DOC_DATE docDate\");\n SELECT(\"p.ITEM_ID itemId\");\n SELECT(\"e.ITEM_NAME itemName\");\n SELECT(\"e.LINE_TYPE lineType\");\n SELECT(\"e.CAT1 cat1\");\n SELECT(\"e.CAT2 cat2\");\n SELECT(\"e.cat7 cat7\");\n SELECT(\"e.cat8 cat8\");\n SELECT(\"e.cat9 cat9\");\n SELECT(\"p.PLAN_OUT_QTY planOutQty\");\n SELECT(\"s.PAPER_READY_STATUS paperReadyStatus\");\n FROM(\"T_PAPERTRANS p\");\n INNER_JOIN(\"T_SO_MANU s on s.SO_ID = p.SO_ID and s.SO_PROD_ID = p.SOPROD_ID\");\n INNER_JOIN(\"T_ITEM e on e.ID = p.ITEM_ID\");\n WHERE(\"s.SO_ID = #{soId}\");\n }\n private static final String PAPER_CHECK_QUERY_SQL = \"paperCheckQuerySql\";\n public String paperCheckQuerySql(){\n paperCheckQuery();\n return toString();\n }\n\n //生产管理-子页面-生产报工\n private void productReportQuery(){\n SELECT(\"p.PROD_CODE prodCode\");\n SELECT(\"p.PROD_NAME prodName\");\n SELECT(\"s.RPT_DT rptDt\");\n SELECT(\"s.RPTER_NAME rpterName\");\n SELECT(\"s.RPT_TYPE rptType\");\n SELECT(\"s.RPT_UOM rptUom\");\n SELECT(\"o.CAPA capa\");\n SELECT(\"s.RPT_QTY rptQty\");\n FROM(\"T_SORPT s\");\n JOIN(\"T_SO_MANU u ON u.ID= s.SO_MANU_ID\");\n JOIN(\"T_OCCUPY o ON o.SO_MANU_ID = s.SO_MANU_ID\");\n JOIN(\"T_PROD p ON p.ID = s.PROD_ID\");\n //WHERE(\"\");\n }\n private static final String PRODUCT_REPORT_QUERY_SQL = \"productReportQuerySql\";\n public String productReportQuerySql(){\n productReportQuery();\n return toString();\n }\n\n //生产管理-子页面-记录上报查询\n private void recordReportQuery(){\n SELECT(\"P.ITEM_DT itemDt\");\n SELECT(\"P.RPTER_NAME rpterName\");\n SELECT(\"P.ITEM_DESC itemDesc\");\n SELECT(\"P.ITEM_IMPACT itemImpact\");\n SELECT(\"P.ITEM_SOLUTION itemSolution\");\n\n FROM(\"T_SONOTE_ITEM P\");\n INNER_JOIN(\"T_SO_MANU S ON S.MANU_DIST_ID = P.SO_MANU_ID\");\n }\n private static final String RECORD_REPORT_QUERY_SQL = \"recordReportQuerySql\";\n public String recordReportQuerySql(@Param(\"soId\") Integer soId) {\n recordReportQuery();\n //有需要的,不要删\n // if (null!=soId) {\n // WHERE(\"S.SO_ID = #{soId} OR S.MANU_DIST_ID = #{soId}\");\n // }\n return toString();\n }\n\n //生产管理-子页面-完工入库查询\n private void finishPutQuery(){\n SELECT(\"S.SO_ID soId\");\n SELECT(\"D.PROD_CODE prodCode\");\n SELECT(\"D.PROD_NAME prodName\");\n SELECT(\"P.WHIN_PIC whinPic\");\n SELECT(\"P.DOC_DATE docDate\");\n SELECT(\"S.DIST_QTY distQty\");\n SELECT(\"(select sum(SM.WHIN_QTY) From T_SO_MANU SM where SM.SO_ID=S.SO_ID OR SM.MANU_DIST_ID=S.MANU_DIST_ID) AS sumDistQty\");\n SELECT(\"P.WHIN_QTY whinQty\");\n SELECT(\"NVL(S.DIST_QTY-(select sum(SM.WHIN_QTY) From T_SO_MANU SM where SM.SO_ID=S.SO_ID OR SM.MANU_DIST_ID=S.MANU_DIST_ID),0) AS unWhinQty\");\n SELECT(\"P.REMARK remark\");\n\n FROM(\"T_PRODIN P\");\n INNER_JOIN(\"T_SO_MANU S ON S.ID = P.SOMANU_ID\");\n INNER_JOIN(\"T_PROD D ON D.ID = P.PROD_ID\");\n // WHERE(\"S.SO_ID='1' OR S.MANU_DIST_ID='1'\");\n }\n private static final String FINISH_PUT_QUERY_SQL = \"finishPutQuerySql\";\n public String finishPutQuerySql(@Param(\"soId\") Integer soId) {\n finishPutQuery();\n //有需要的,不要删\n // if (null!=soId) {\n // WHERE(\"S.SO_ID = #{soId} OR S.MANU_DIST_ID = #{soId}\");\n // }\n return toString();\n }\n\n //生产管理-子页面-完工入库-成功保存后-更新T_SO_MANU表状态\n private static final String UPDATE_T_SO_MANU_SQL = \"updateTSoManuSql\";\n public String updateTSoManuSql() {\n UPDATE(\"T_SO_MANU SM\");\n SET(\"SM.MANU_STATUS = '03'\");\n WHERE(\"(select sum(WHIN_QTY) from T_PRODIN WHERE SOMANU_ID=#{somanuId})>= DIST_QTY\");\n return toString();\n }\n\n }\n\n /**\n * 生产管理主页分页总数量\n */\n @SelectProvider(type = SqlProvider.class, method = SqlProvider.PRODUCT_MANAGEMENT_NUM_QUERYSQL)\n Integer totalProductManagement(@Param(\"productManagement\")ProductManagementCondition productManagementCondition,\n @Param(\"meta\") UdcMeta udcMeta);\n\n //生产管理主页数据\n @SelectProvider(type = SqlProvider.class, method = SqlProvider.PRODUCT_MANAGEMENT_QUERY_SQL)\n List<ProductManagementDomain> productManagementInfo(@Param(\"productManagement\")ProductManagementCondition productManagementCondition,\n @Param(\"meta\") UdcMeta udcMeta);\n /**\n * 生产管理子页面数据查询\n * @return\n */\n @SelectProvider(type = SqlProvider.class, method = SqlProvider.HEAD_INFO_QUERY_SQL)\n List<ProductManagementDomain> headInfoList(@Param(\"sid\") Integer sid,\n @Param(\"meta\") UdcMeta udcMeta);\n\n //生产管理-详情页-产品明细\n @SelectProvider(type = SqlProvider.class,method = SqlProvider.PRODUCT_DETAIL_QUERY_SQL)\n List<ProductDetailDomain> productDetailInfoList(@Param(\"sid\") Integer sid);\n\n //生产管理-详情页-产能需求\n @SelectProvider(type = SqlProvider.class,method = SqlProvider.PRODUCT_REQUIRE_QUERY_SQL)\n List<ProductRequireDomain> productRequireInfoList();\n\n //生产管理-子页面-文件检查查询 seven\n @SelectProvider(type = SqlProvider.class, method = SqlProvider.FILE_CHECK_QUERY_SQL)\n List<ProductManagementDomain> fileCheckList(@Param(\"meta\") UdcMeta udcMeta);\n\n //生产管理-子页面-文件检查-产能需求\n @SelectProvider(type = SqlProvider.class, method = SqlProvider.FILE_CHECK_DOUBLE_CLICK_QUERY_SQL)\n List<ProductManagementPageCheckDomain> fileCheckDoubleClickList(@Param(\"soProdId\") Integer soProdId);\n\n //生产管理-子页面-纸张检查\n @SelectProvider(type = SqlProvider.class,method = SqlProvider.PAPER_CHECK_QUERY_SQL)\n List<ProductManagementPaperCheckDomain> productManagementPaperCheckList(@Param(\"soId\") Integer soId);\n\n //生产管理-子页面-生产报工\n @SelectProvider(type = SqlProvider.class,method = SqlProvider.PRODUCT_REPORT_QUERY_SQL)\n List<ProductManagementProductReportDomain> productManagementProductReportList();\n\n //生产管理-子页面-记录上报查询\n @SelectProvider(type = SqlProvider.class, method = SqlProvider.RECORD_REPORT_QUERY_SQL)\n List<RecordReportDomain> recordReportList(@Param(\"soId\") Integer soId);\n\n //生产管理-子页面-完工入库查询\n @SelectProvider(type = SqlProvider.class, method = SqlProvider.FINISH_PUT_QUERY_SQL)\n List<FinishPutDomain> finishPutList(@Param(\"soId\") Integer soId);\n\n //生产管理-子页面-完工入库-成功保存后-更新T_SO_MANU表状态\n @UpdateProvider(type = SqlProvider.class, method = SqlProvider.UPDATE_T_SO_MANU_SQL)\n int tSoManuSattusUpdate(@Param(\"somanuId\") Long somanuId);\n\n}", "title": "" }, { "docid": "590e08191b52a0149242ab273cec33ec", "score": "0.49176142", "text": "ParametroSistema selectByPrimaryKey(String idparametrosistema);", "title": "" }, { "docid": "bdf95c1068b7051cb05b5c0649488d7b", "score": "0.49168912", "text": "public List<CsoSystemParametersDTO> retrieveRelated(CsoSystemParametersDTO bean) throws DAOException {\n\t\tList<CsoSystemParametersDTO> dtoList = new LinkedList<CsoSystemParametersDTO>();\n\t\tCsoSystemParametersDTO dto;\n\t\ttry{\n\n\t\t\tString sql = \"SELECT c FROM CsoSystemParameters c \" + buildWhereClause(bean,true);\n\t\t\tList<CsoSystemParameters> csoSystemParametersretrieveRelated = csoSystemParametersDao.executeQueryParameters(sql, map);\n\n\t\t\tfor (CsoSystemParameters csoSystemParametersRelated : csoSystemParametersretrieveRelated) {\n\t\t\t\tdto = new CsoSystemParametersDTO();\n\t\t\t\tdto.setCccoreInterval(csoSystemParametersRelated.getCccoreInterval());\n\t\t\t\t\n\t\t\t\tif(csoSystemParametersRelated.getCisDownloadInd()!=null){\n\t\t\t\tdto.setCisDownloadInd(csoSystemParametersRelated.getCisDownloadInd());\n\t\t\t\t}\n\t\t\t\tif(csoSystemParametersRelated.getEodDone()!=null){\n\t\t\t\tdto.setEodDone(csoSystemParametersRelated.getEodDone());\n\t\t\t\t}\n\t\t\t\tif(csoSystemParametersRelated.getLiveTestCode()!=null){\n\t\t\t\tdto.setLiveTestCode(csoSystemParametersRelated.getLiveTestCode());\n\t\t\t\t}\n\t\t\t\tif(csoSystemParametersRelated.getNextOutputDate()!=null){\n\t\t\t\tdto.setNextOutputDate(csoSystemParametersRelated.getNextOutputDate());\n\t\t\t\t}\n\t\t\t\tif(csoSystemParametersRelated.getProcessActiveInd()!=null){\n\t\t\t\tdto.setProcessActiveInd(csoSystemParametersRelated.getProcessActiveInd());\n\t\t\t\t}\n\t\t\t\tif(csoSystemParametersRelated.getProcessDate()!=null){\n\t\t\t\tdto.setProcessDate(csoSystemParametersRelated.getProcessDate());\n\t\t\t\t}\n\t\t\t\tif(csoSystemParametersRelated.getRunBatch()!=null){\n\t\t\t\tdto.setRunBatch(csoSystemParametersRelated.getRunBatch());\n\t\t\t\t}\n\t\t\t\tif(csoSystemParametersRelated.getUnixSodDone()!=null){\n\t\t\t\tdto.setUnixSodDone(csoSystemParametersRelated.getUnixSodDone());\n\t\t\t\t}\n\t\t\t\tdtoList.add(dto);\n\t\t\t}\n\n\t\t}catch(Exception ex){\n\t\t\tex.getMessage();\n\t\t}\n\t\tmap.clear();\n\t\treturn dtoList;\n\t}", "title": "" }, { "docid": "17ab00966ccecadc258f4b305cc0fe3a", "score": "0.48923987", "text": "public static String SICMOFM100(TableParams params){\r\n\t\tString query = \"\";\r\n\t\t\r\n\t\tquery=\r\n\t\t\t\" SELECT /*+ INDEX(PTLV NDX_PRSA_LOC_VIS_CTA) */PTLV.ARCH_NUMERO FUENTE , \\n\"+\r\n\t\t\t\" PA.DESCRIPCION , \\n\"+\r\n\t\t\t\" PTLV.NOMBRE_ARCHIVO , \\n\"+\r\n\t\t\t\" PTLV.FECHA_CONSUMO_TRANSAC F_CONSUMO , \\n\"+\r\n\t\t\t\" PTLV.FECHA_PROCESO_TRANSAC F_PROCESO , \\n\"+\r\n\t\t\t\" PTLV.ENT_NUMERO_PROSA_ADQ ENT_ADQ , \\n\"+\r\n\t\t\t\" VBA.DESCRIPCION ADQ_DESCRIPCION , \\n\"+\r\n\t\t\t\" VBA.BU_TX_ADQ BU_ADQ , \\n\"+\r\n\t\t\t\" PTLV.ENT_NUMERO_PROSA_EMI ENT_EMI , \\n\"+\r\n\t\t\t\" PEE.DESCRIPCION EMI_DESCRIPCION , \\n\"+\r\n\t\t\t\" (SELECT DISTINCT DECODE(VBE.BU_TX_PARENT,641,522,VBE.BU_TX_PARENT) \\n\"+\r\n\t\t\t\" FROM PMADMIN.VW_BUS_EMI VBE \\n\"+\r\n\t\t\t\" WHERE VBE.NUMERO_PROSA = PTLV.ENT_NUMERO_PROSA_EMI \\n\"+\r\n\t\t\t\" ) BU_EMI , \\n\"+\r\n\t\t\t\" PTLV.NUMERO_AUTORIZACION NO_AUTORIZACION , \\n\"+\r\n\t\t\t\" PTLV.NUMERO_REFERENCIA NO_REFERENCIA , \\n\"+\r\n\t\t\t\" TO_CHAR(PTLV.CUENTA) CUENTA , \\n\"+\r\n\t\t\t\" PTLV.TTR_NUMERO CLAVE_TXS , \\n\"+\r\n\t\t\t\" PTT.DESCRIPCION DESCRIPCION_CLAVE_TXS , \\n\"+\r\n\t\t\t\" PTLV.NUMERO_COMERCIO NO_COMERCIO , \\n\"+\r\n\t\t\t\" PTLV.NOMBRE_COMERCIO , \\n\"+\r\n\t\t\t\" PTLV.BDU_SIC_CVE GIRO , \\n\"+\r\n\t\t\t\" TO_CHAR(PTLV.IMPORTE_TOTAL_TRANSAC,'999,999,999.99') IMP_TRANS , \\n\"+\r\n\t\t\t\" PTLV.IMPORTE_CUOTA_INTERCAMBIO IMP_INTERCAMBIO , \\n\"+\r\n\t\t\t\" PTLV.IMPORTE_IVA_INTERCAMBIO IVA_INT , \\n\"+\r\n\t\t\t\" PTLV.PREF_NUMERO PREFIJO , \\n\"+\r\n\t\t\t\" PTLV.MODO_ENTRADA_POS MODO_POS, \\n\"+\r\n\t\t\t\" NULL CATEGORIA, \\n\"+ //PTLV.BDU_COM_CAT_CRE CATEGORIA \r\n\t\t\t\" NULL FACTOR_COM, \\n\"+ //PTLV.CLAVE_FACTOR_COMERCIO FACTOR_COM \r\n\t\t\t\" PTLV.CLAVE_FACTOR_INTERCAMBIO FACTOR_INT, \\n\"+\r\n\t\t\t\" NULL CUOTA_INT, \\n\"+ //PTLV.CUOTA_INTERCAMBIO CUOTA_INT\r\n\t\t\t\" NULL IVA_COM, \\n\"+ //PTLV.IMPORTE_IVA_COMERCIO IVA_COM \r\n\t\t\t\" PTLV.CUENTA_CHEQUES REF_CHEQ, \\n\"+\r\n\t\t\t\" NULL RUTEO, \\n\"+ //PTLV.RUTEO \r\n\t\t\t\" PTLV.MAPR_NUMERO MARCA, \\n\"+\r\n\t\t\t\" NULL LIQ, \\n \"+ //PTLV.TLI_NUMERO LIQ\r\n\t\t\t\" NULL RED_LOGICA_ADQ, \\n\"+ //PTLV.RED_LOGICA RED_LOGICA_ADQ \r\n\t\t\t\" NULL RED_LOGICA_EMI, \\n\"+ //PTLV.RED_LOGICA_EMI\r\n\t\t\t\" PTLV.TTR_NUMERO TIPO_TXS , \\n\"+\r\n\t\t\t\" PTLV.FECHA_CONSUMO_TRANSAC HORA_CONSUMO, \\n\"+\r\n\t\t\t\" PTLV.CODIGO_RAZON, \\n\"+\r\n\t\t\t\" NULL TERM_CAP, \\n\"+ //PTLV.IND_TER_CAP TERM_CAP \r\n\t\t\t\" PTLV.TERM_ID TERMINAL, \\n\"+\r\n\t\t\t\" NULL TB_VIG, \\n\"+ //PTLV.BDU_COM_VIG TB_VIG \r\n\t\t\t\" NULL TB_CAT_DR, \\n\"+ //PTLV.BDU_COM_CAT_CRE TB_CAT_DR \r\n\t\t\t\" (SELECT PP_VALOR \\n\"+\r\n\t\t\t\" FROM PMADMIN.PRSA_PARAMETROS \\n\"+\r\n\t\t\t\" WHERE PP_ID_PARAMETRO = 'IVA_PARM' \\n\"+\r\n\t\t\t\" ) IVA , \\n\"+\r\n\t\t\t\" PTLV.PROC_NUMERO PROCEDENCIA , \\n\"+\r\n\t\t\t\" PTLV.CODIGO_RESPUESTA_AUT , \\n\"+\r\n\t\t\t\" PTLV.TIPO_CAPTURA, \\n\"+\r\n\t\t\t\" NULL CODIGO_RESPUESTA_ISO, \\n\"+ //PTLV.CODIGO_RESPUESTA_ISO \r\n\t\t\t\" PTLV.LV_WH_SEQ NUMERO, \\n\"+\r\n\t\t\t\" NULL IND_TER_ACT, \\n\"+ //PTLV.IND_TER_ACT \r\n\t\t\t\" NULL IND_TER_CAP, \\n\"+ //PTLV.IND_TER_CAP \r\n\t\t\t\" PTLV.IMPORTE_CUOTA_INTERCAMBIO TARIFA_TASA , \\n\"+\r\n\t\t\t\" PTLV.INDICADOR_COM_ELEC ICE , \\n\"+\r\n\t\t\t\" PTLV.ES_NACIONAL PBIN_GLOBAL_LOCALE_S , \\n\"+\r\n\t\t\t\" PTLV.IMPORTE_CUOTA_COMERCIO IMPORTE_COMERCIO , \\n\"+\r\n\t\t\t\" PTLV.CUOTA_COMERCIO CUOTA_COM , \\n\"+\r\n\t\t\t\" PTLV.TIPO_CAPTURA IND_EMV , \\n\"+\r\n\t\t\t\" NULL IND_DIF, \\n\"+\r\n\t\t\t\" NULL TC, \\n\"+ //PTLV.TC \r\n\t\t\t\" NULL TYP, \\n\"+ //PTLV.TYP \r\n\t\t\t\" PTLV.TIER_CODIGO_MONEDA MONEDA \\n\"+\r\n\t\t\t\" FROM PMADMIN.PRSA_TXN_LOCALES_VISA PTLV \\n\"+\r\n\t\t\t\" INNER JOIN PMADMIN.VW_BUS_ACQ VBA \\n\"+\r\n\t\t\t\" ON VBA.NUMERO_PROSA = PTLV.ENT_NUMERO_PROSA_ADQ \\n\"+\r\n\t\t\t\" INNER JOIN PMADMIN.PRSA_ENTIDADES PEE \\n\"+\r\n\t\t\t\" ON PEE.NUMERO_PROSA = PTLV.ENT_NUMERO_PROSA_EMI \\n\"+\r\n\t\t\t\" INNER JOIN PMADMIN.PRSA_TIPOS_TRANSACCION PTT \\n\"+\r\n\t\t\t\" ON PTT.NUMERO = PTLV.TTR_NUMERO \\n\"+\r\n\t\t\t\" INNER JOIN PMADMIN.PRSA_ARCHIVOS PA \\n\"+\r\n\t\t\t\" ON PA.NUMERO = PTLV.ARCH_NUMERO \\n\";\r\n\t\t\r\n\t\tif(!params.tipoTransaccion.equals(\"None\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tquery+=\" INNER JOIN PMADMIN.PRSA_TIPOS_SAC PTS \\n\"+\r\n\t\t\t\t\t\" ON PTS.PTS_TIPO_SAC = PTA.TTR_NUMERO \\n\";\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\tquery+=\r\n\t\t\t\" WHERE PTLV.TTR_NUMERO NOT IN (10,11,51,52,53,54) \\n\";\r\n\t\t\r\n\t\tif (!params.session.getAttribute(\"fechaXML\").toString().equals(\"01/01/2000\")){\r\n\t\t\tquery+=\" AND PTLV.PARTITION_ID >= (SELECT PMADMIN.FN_PARTITION_ID(TO_DATE('\"+params.session.getAttribute(\"fechaXML\").toString()+\"','DD/MM/YYYY')) FROM DUAL) \\n\";\r\n\t\t}\r\n\t\tquery+=\" AND PTLV.PARTITION_ID >= (SELECT PMADMIN.FN_PARTITION_ID(TO_DATE (TO_CHAR(SYSDATE-7,'DD-MM-YYYY'),'DD-MM-YYYY')) FROM DUAL) \\n\";\r\n\t\t\r\n\t\tif(!params.tipoTransaccion.equals(\"None\")){\r\n\t\t\tquery+=\" AND PTS.TIPO_PMT IN ( \"+params.tipoTransaccion+\") /* PARAMETRO */ \\n\";\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif(params.rol.equals(\"banco\")){\r\n\t\t\tif(params.bancoRecep.equals(\"None\")&&params.bancoEmi.equals(\"None\")){\r\n\t\t\t\tquery+=\" AND (VBA.ENTIDAD_PADRE IN (\"+params.numerosProsa+\") /* PARAMETRO */ \\nOR PEE.ENTIDAD_PADRE IN (\"+params.numerosProsa+\")) /* PARAMETRO */ \\n\";\r\n\t\t\t}else{\r\n\t\t\t\tquery+=\" AND VBA.ENTIDAD_PADRE IN (\"+params.bancoRecep+\") /* PARAMETRO */ \\n\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(!params.bancoEmi.equals(\"None\")){\r\n\t\t\t\tquery+=\" AND PEE.ENTIDAD_PADRE IN (\"+params.bancoEmi+\") /* PARAMETRO */ \\n\";\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tif(!params.bancoRecep.equals(\"None\")){\r\n\t\t\t\tquery+=\" AND VBA.ENTIDAD_PADRE IN (\"+params.bancoRecep+\") /* PARAMETRO */ \\n\";\r\n\t\t\t}\r\n\t\t\tif(!params.bancoEmi.equals(\"None\")){\r\n\t\t\t\tquery+=\" AND PEE.ENTIDAD_PADRE IN (\"+params.bancoEmi+\") /* PARAMETRO */ \\n\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(!params.numeroCuenta.equals(\"\")){\r\n\t\t\tquery+=\" AND PTLV.CUENTA = '\"+params.numeroCuenta+\"' /* PARAMETRO */ \\n\";\r\n\t\t}\r\n\t\t\r\n\t\tif(!params.numeroAutorizacion.equals(\"\")){\r\n\t\t\tquery+=\" AND PTLV.NUMERO_AUTORIZACION = '\"+params.numeroAutorizacion+\"' /* PARAMETRO */ \\n\";\r\n\t\t}\r\n\t\t\r\n\t\tif(!params.numeroRef.equals(\"\")){\r\n\t\t\tquery+=\" AND PTLV.NUMERO_REFERENCIA = '\"+params.numeroRef+\"' /* PARAMETRO */ \\n\";\r\n\t\t}\r\n\t\t\r\n\t\tif(!params.numeroComercio.equals(\"\")){\r\n\t\t\tquery+=\" AND PTLV.NUMERO_COMERCIO IN (\"+params.numeroComercio+\") /* PARAMETRO */ \\n\";\r\n\t\t}\r\n\t\t\r\n\t\tif(!params.nombreComercio.equals(\"\")){\r\n\t\t\tquery+=\" AND PTLV.NOMBRE_COMERCIO = '\"+params.nombreComercio+\"' /* PARAMETRO */ \\n\";\r\n\t\t}\r\n\t\t\r\n\t\tif(!params.importe.equals(\"\")){\r\n\t\t\tquery+=\" AND PTLV.IMPORTE_TOTAL_TRANSAC = \"+params.importe+\" /* PARAMETRO */ \\n\";\r\n\t\t}\r\n\t\r\n\t\treturn query;\r\n\t}", "title": "" }, { "docid": "c34ec7d96d47562a04f09165caca6b56", "score": "0.48717156", "text": "public String getProcedureSQL();", "title": "" }, { "docid": "1a82ee6f7e226d0a14dbcfb7b7ec4213", "score": "0.48416838", "text": "public Map<String,String> selectFromMes(String process, JdbcTemplate jdbcTemplate) {\n\t\tLong stageId = Long.valueOf(process);\n\t\tString productLine = \"\";\n\t\tString processName = \"\";\n\t\tMap<String,String> map = new HashMap<String,String>();\n\t\tif(stageId!=null){\n\t\t\tString sql2 = \"select distinct(l.pdline_name) from sys_terminal t,sys_pdline l where t.pdline_id = l.pdline_id and t.stage_id = ? and t.enabled='Y'\";\n\t\t\tSqlRowSet rowSet2 = jdbcTemplate.queryForRowSet(sql2 ,new Object[]{stageId});\n\t\t\twhile(rowSet2.next()){\n\t\t\t\tif(productLine.length()==0){\n\t\t\t\t\tproductLine = rowSet2.getString(\"pdline_name\");\n\t\t\t\t}else{\n\t\t\t\t\tproductLine += \",\" + rowSet2.getString(\"pdline_name\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tmap.put(\"productLine\", productLine);\n\t\t\tString sql3 = \"select distinct( p.process_name) from sys_terminal t,sys_process p where t.process_id = p.process_id and t.stage_id=? and t.enabled='Y'\";\n\t\t\tSqlRowSet rowSet3 = jdbcTemplate.queryForRowSet(sql3 ,new Object[]{stageId});\n\t\t\twhile(rowSet3.next()){\n\t\t\t\tif(processName.length()==0){\n\t\t\t\t\tprocessName = rowSet3.getString(\"process_name\");\n\t\t\t\t}else{\n\t\t\t\t\tprocessName += \",\" + rowSet3.getString(\"process_name\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tmap.put(\"processName\", processName);\n\t\t}\n\t\t\n\t\treturn map;\n\t}", "title": "" }, { "docid": "73d46a9ace74d726ef65c0ab19dd60e7", "score": "0.48182368", "text": "public static String SICMORPTLF(TableParams params)\r\n\t{\r\n\t\tString query = \"\";\r\n\t\tString where = \"\";\r\n\t\t\tif (params.initDate.toString().equals(\"01\"))\r\n\t\t\t{\r\n\t\t\t\tquery = \" SELECT /*index (TA ENE51_NDX51)*/ \\n\";\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\twhere = \" FROM SSAUD.TANDEMENE51@LG_PMTU_PTLF TA \\n\";\r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t}\r\n\t\t\telse if (params.initDate.toString().equals(\"02\"))\r\n\t\t\t{\r\n\t\t\t\tquery = \" SELECT /*index (TA FEB51_NDX51)*/ \\n\";\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\twhere = \" FROM SSAUD.TANDEMFEB51@LG_PMTU_PTLF TA \\n\";\r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t}\r\n\t\t\telse if (params.initDate.toString().equals(\"03\"))\r\n\t\t\t{\r\n\t\t\t\tquery = \" SELECT /*index (TA MAR51_NDX51)*/ \\n\";\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\twhere = \" FROM SSAUD.TANDEMMAR51@LG_PMTU_PTLF TA \\n\";\r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t}\r\n\t\t\telse if (params.initDate.toString().equals(\"04\"))\r\n\t\t\t{\r\n\t\t\t\tquery = \" SELECT /*index (TA ABR51_NDX51)*/ \\n\";\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\twhere = \" FROM SSAUD.TANDEMABR51@LG_PMTU_PTLF TA \\n\";\r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t}\r\n\t\t\telse if (params.initDate.toString().equals(\"05\"))\r\n\t\t\t{\r\n\t\t\t\tquery = \" SELECT /*index (TA MAY51_NDX51)*/ \\n\";\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\twhere = \" FROM SSAUD.TANDEMMAY51@LG_PMTU_PTLF TA \\n\";\r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t}\r\n\t\t\telse if (params.initDate.toString().equals(\"06\"))\r\n\t\t\t{\r\n\t\t\t\tquery = \" SELECT /*index (TA JUN51_NDX51)*/ \\n\";\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\twhere = \" FROM SSAUD.TANDEMJUN51@LG_PMTU_PTLF TA \\n\";\r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t}\r\n\t\t\telse if (params.initDate.toString().equals(\"07\"))\r\n\t\t\t{\r\n\t\t\t\tquery = \" SELECT /*index (TA JUL51_NDX51)*/ \\n\";\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\twhere = \" FROM SSAUD.TANDEMJUL51@LG_PMTU_PTLF TA \\n\";\r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t}\r\n\t\t\telse if (params.initDate.toString().equals(\"08\"))\r\n\t\t\t{\r\n\t\t\t\tquery = \" SELECT /*index (TA AGO51_NDX51)*/ \\n\";\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\twhere = \" FROM SSAUD.TANDEMAGO51@LG_PMTU_PTLF TA \\n\";\r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t}\r\n\t\t\telse if (params.initDate.toString().equals(\"09\"))\r\n\t\t\t{\r\n\t\t\t\tquery = \" SELECT /*index (TA SEP51_NDX51)*/ \\n\";\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\twhere = \" FROM SSAUD.TANDEMSEP51@LG_PMTU_PTLF TA \\n\";\r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t}\r\n\t\t\telse if (params.initDate.toString().equals(\"10\"))\r\n\t\t\t{\r\n\t\t\t\tquery = \" SELECT /*index (TA OCT51_NDX51)*/ \\n\";\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\twhere = \" FROM SSAUD.TANDEMOCT51@LG_PMTU_PTLF TA \\n\";\r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t}\r\n\t\t\telse if (params.initDate.toString().equals(\"11\"))\r\n\t\t\t{\r\n\t\t\t\tquery = \" SELECT /*index (TA NOV51_NDX51)*/ \\n\";\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\twhere = \" FROM SSAUD.TANDEMNOV51@LG_PMTU_PTLF TA \\n\";\r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t}\r\n\t\t\telse if (params.initDate.toString().equals(\"12\"))\r\n\t\t\t{\r\n\t\t\t\tquery = \" SELECT /*index (TA DIC51_NDX51)*/ \\n\";\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\twhere = \" FROM SSAUD.TANDEMDIC51@LG_PMTU_PTLF TA \\n\";\r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t}\r\n\t\t\r\n\t\tquery+=\r\n\t\t\" TA.NUMERO NUMERO \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//00\r\n\t\t/********** Inicio Modificacion WELLCOM N-04-2207-12 11/03/2014 **********/\t\r\n\t\t//\" ,(SELECT DISTINCT PE.ENTIDAD_PADRE FROM PMADMIN.PRSA_ENTIDADES PE WHERE PE.NUMERO_FIID = TA.FIIDC) ADQ \\n \"+\r\n\t\t//\" ,(SELECT DISTINCT PE.ENTIDAD_PADRE FROM PMADMIN.PRSA_ENTIDADES PE WHERE PE.NUMERO_FIID = TA.FIID) EMI \\n \"+\r\n\t\t// INICIA MODIFICACION WELL-D-52-8122-17 22-08-2017\r\n\t\t//\" ,(SELECT DISTINCT PE.ENTIDAD_PADRE FROM PMADMIN.PRSA_ENTIDADES PE WHERE PE.NUMERO_FIID = DECODE(TA.FIIDC,'EGLO','EOTR',TA.FIIDC)) ADQ \\n \"+ //01\r\n\t\t\" ,(SELECT DISTINCT PE.ENTIDAD_PADRE FROM PMADMIN.PRSA_ENTIDADES PE WHERE PE.NUMERO_FIID = DECODE(TA.FIIDC,'EGLO','EOTR',TA.FIIDC) AND ROWNUM=1) ADQ \\n \"+ //01\r\n\t\t// FIN MODIFICACION WELL-D-52-8122-17 22-08-2017\r\n\t\t\" ,(SELECT DISTINCT PE.ENTIDAD_PADRE FROM PMADMIN.PRSA_ENTIDADES PE WHERE PE.NUMERO_FIID = DECODE(TA.FIID ,'EGLO','EOTR',TA.FIID ) AND ROWNUM=1) EMI \\n \"+ //02\r\n\t\t/********** Fin Modificacion WELLCOM N-04-2207-12 11/03/2014 **********/\t\r\n\t\t\" ,TA.FIID FIID_EMISOR \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//03\r\n\t\t\" ,TA.NUM CUENTA \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//04\r\n\t\t\" ,TA.TC||' '||TA.TYP CLAVE_TXS \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//05\r\n\t\t\" ,TA.APPRV_CDE AUTORIZACION \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//06\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 03/03/2014 **********/\t\t\r\n\t\t\" ,TO_CHAR(TO_NUMBER(SUBSTR(AMT_1,0,16)||'.'||SUBSTR(AMT_1,17,18)),'9,999,999,999,999,999.99') IMPORTE \\n \"+\t//07\r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 03/03/2014 **********/\r\n\t\t\" ,TA.PT_SRV_ENTRY_MDE MODO_ENTRADA \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//08\r\n\t\t\" ,SUBSTR(CH.TKN_C4,21,1) TER_CAP \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//09\r\n\t\t\" ,CH.TKN_Q1 TK1 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//10\r\n\t\t\" ,CH.TKN_Q2_ID_ACCESO TK2 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//11\r\n\t\t\" ,CH.TKN_Q6 TK3 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//12\r\n\t\t\" ,CH.TKN_04 TK4 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//13\r\n\t\t\" ,TT.C0_01||TT.C0_02||TT.C0_03||TT.C0_04||TT.C0_05||TT.C0_06||TT.C0_07||TT.C0_08||TT.C0_09\"+\r\n\t\t\t\t \"||TT.C0_10||TT.C0_11||TT.C0_12 TK5 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//14\r\n\t\t\" ,CH.TKN_C4 TK6 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//15\r\n\t\t\" ,CH.TKN_C6 TK7 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//16\r\n\t\t\" ,CH.TKN_CE TK8 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//17\r\n\t\t\" ,TA.LN RED_LOGICA \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//18\r\n\t\t\" ,TA.TERM_ID TERMINAL_ID \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//19\r\n\t\t\" ,TA.TC TC \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//20\r\n\t\t/********** Inicio Modificacion WELLCOM N-04-2207-12 03/03/2014 **********/\r\n\t\t\" ,TA.YYA||'-'||MMA||'-'||DDA||' '||HHA||':'||MMAA||':'||SSA FECHA_CONSUMO \\n \"+\t\t\t\t\t\t\t\t//21\r\n\t\t/********** Fin Modificacion WELLCOM N-04-2207-12 03/03/2014 **********/\r\n\t\t\" ,TA.RETAILER_ID NUM_COMERCIO \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//22\r\n\t\t\" ,DECODE(TA.T,1,'C',2,'D','X') NAT_CON \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//23\r\n\t\t\" ,TA.RESP_CDE CODIGO_RESPUESTA \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//24\r\n\t\t\" ,DECODE(SUBSTR(CH.TKN_Q9,13,1),'2','A','6','A','1','B','5','B','C') SERV_CODE \\n \"+\t\t\t\t\t\t\t//25\r\n\t\t\" ,TA.TERM_CITY CIUDAD \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//26\r\n\t\t\" ,TA.TERM_CNTRY_CDE PAIS \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//27\r\n\t\t\" ,TTE.B4_ARQC_VRFY ARQC \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//28\r\n\t\t\" ,TA.RETL_SIC_CDE GIRO \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//29\r\n\t\t/********** Inicio Modificacion WELLCOM N-04-2207-12 25/03/2014 **********/\r\n\t\t\" ,TO_CHAR(TO_NUMBER(NVL(SUBSTR(AMT_2,0,7),0)||'.'||NVL(SUBSTR(AMT_2,8,9),0)),'9,999,999.99') IMPORTE \\n \"+\t\t//30\r\n\t\t/********** Fin Modificacion WELLCOM N-04-2207-12 25/03/2014 **********/\r\n\t\t\" ,TA.TERM_ID TERM_NUM \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//31\r\n\t\t\" ,SUBSTR(CH.TKN_C4,21,1) IND_CAP_TERM \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//32\r\n\t\t\" ,TT.C0_05 IND_COM \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//33\r\n\t\t\r\n\t\t/********** Inicio Modificacion WELLCOM N-04-2207-12 25/03/2014 **********/\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_Q1,11,LENGTH(CH.TKN_Q1)),1,1) TKQ1_S01 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//34\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_Q1,11,LENGTH(CH.TKN_Q1)),2,1) TKQ1_S02 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//35\r\n\t\t/********** Fin Modificacion WELLCOM N-04-2207-12 25/03/2014 **********/\r\n\t\t\r\n\t\t\" ,CH.TKN_Q2_ID_ACCESO TKQ2_S01 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//36\r\n\t\t\r\n\t\t\" ,TT.C0_01 TKC0_S01 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//37\r\n\t\t\" ,TT.C0_02 TKC0_S02 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//38\r\n\t\t\" ,TT.C0_03 TKC0_S03 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//39\r\n\t\t\" ,TT.C0_04 TKC0_S04 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//40\r\n\t\t\" ,TT.C0_05 TKC0_S05 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//41\r\n\t\t\" ,TT.C0_06 TKC0_S06 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//42\r\n\t\t\" ,TT.C0_07 TKC0_S07 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//43\r\n\t\t\" ,TT.C0_08 TKC0_S08 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//44\r\n\t\t\" ,TT.C0_09 TKC0_S09 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//45\r\n\t\t\" ,TT.C0_10 TKC0_S10 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//46\r\n\t\t\" ,TT.C0_11 TKC0_S11 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//47\r\n\t\t\" ,TT.C0_12 TKC0_S12 \\n \"+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//48\r\n\t\t\r\n\t\t/********** Inicio Modificacion WELLCOM N-04-2207-12 25/03/2014 **********/\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),1,1) TKC4_S01 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//49\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),2,1) TKC4_S02 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//50\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),3,1) TKC4_S03 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//51\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),4,1) TKC4_S04 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//52\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),5,1) TKC4_S05 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//53\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),6,1) TKC4_S06 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//54\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),7,1) TKC4_S07 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//55\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),8,1) TKC4_S08 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//56\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),9,1) TKC4_S09 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//57\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),10,1) TKC4_S010 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//58\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),11,1) TKC4_S011 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//59\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),12,1) TKC4_S012 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//60\r\n\t\t\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),1,1) TK04_S01 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//61\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),2,11) TK04_S02 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//62\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),13,1) TK04_S03 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//63\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),14,5) TK04_S04 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//64\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),19,1) TK04_S05 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//65\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),20,1) TK04_S06 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//66\r\n\t\t\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_Q6,11,LENGTH(CH.TKN_Q6)),1,2) TKQ6_S01 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//67\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_Q6,11,LENGTH(CH.TKN_Q6)),3,2) TKQ6_S02 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//68\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_Q6,11,LENGTH(CH.TKN_Q6)),5,2) TKQ6_S03 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//69\r\n\t\t\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C6,11,LENGTH(CH.TKN_C6)),1,40) TKC6_S01 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//70\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C6,11,LENGTH(CH.TKN_C6)),41,40) TKC6_S02 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//71\r\n\t\t\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_CE,11,LENGTH(CH.TKN_CE)),1,40) TKCE_S01 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//72\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_CE,11,LENGTH(CH.TKN_CE)),41,40) TKCE_S02 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//73\r\n\t\t/********** Fin Modificacion WELLCOM N-04-2207-12 25/03/2014 **********/\r\n\r\n\t\t/********** Inicio Modificacion WELLCOM N-51-2098-14 14/08/2014 **********/\r\n\t\t/********** Inicio Modificacion WELLCOM N-51-2098-14 18/02/2015 **********/\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+18,2) TKB2_S01 \\n\"+ //74\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+20,10) TKB2_S02 \\n\"+ //75\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+30,16) TKB2_S03 \\n\"+ //76\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+46,12) TKB2_S04 \\n\"+ //77\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+58,12) TKB2_S05 \\n\"+ //78\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+70,4) TKB2_S06 \\n\"+ //79\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+74,4) TKB2_S07 \\n\"+ //80\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+78,3) TKB2_S08 \\n\"+ //81\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+81,3) TKB2_S09 \\n\"+ //82\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+84,6) TKB2_S10 \\n\"+ //83\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+90,2) TKB2_S11 \\n\"+ //84\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+92,8) TKB2_S12 \\n\"+ //85\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+104,64) TKB2_S13 \\n\"+ //86\r\n\t\t\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+14,8) TKB3_S01 \\n\"+ //87\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+22,8) TKB3_S02 \\n\"+ //88\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+42,2) TKB3_S03 \\n\"+ //89\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+44,4) TKB3_S04 \\n\"+ //90\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+48,6) TKB3_S05 \\n\"+ //91\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+58,32) TKB3_S06 \\n\"+ //92\r\n\t\t\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+10,3) TKB4_S01 \\n\"+ //93\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+13,1) TKB4_S02 \\n\"+ //94\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+14,1) TKB4_S03 \\n\"+ //95\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+15,1) TKB4_S04 \\n\"+ //96\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+16,2) TKB4_S05 \\n\"+ //97\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+18,6) TKB4_S06 \\n\"+ //98\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+24,4) TKB4_S07 \\n\"+ //99\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+28,1) TKB4_S08 \\n\"+ //100\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+29,1) TKB4_S09 \\n\"+ //101\r\n\t\t\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B5')+10,4) TKB5_S01 \\n\"+ //102\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B5')+14,16) TKB5_S02 \\n\"+ //103\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B5')+30,16) TKB5_S03 \\n\"+ //104\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B5')+46,1) TKB5_S04 \\n\"+ //105\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B5')+47,1) TKB5_S05 \\n\"+ //106\r\n\t\t/**************** INICIO Modificacion SAS N-51-2390-15 12/02/2016***********************/\r\n\t\t\",CASE SUBSTR(CH.TKN_EMVFULL ,INSTR(CH.TKN_EMVFULL,'! B2')+24,2) \"+//107\r\n\t\t\" WHEN NULL THEN \t \"+//107\r\n\t\t\" ''\t\t\t\t \"+//107\r\n\t\t\" WHEN '' THEN \t\t\t \"+//107\r\n\t\t\" ''\t\t\t\t \"+//107\r\n\t\t\" WHEN '00' THEN \t\t \"+//107\r\n\t\t\" 'Exitoso'\t\t\t \"+//107\r\n\t\t\" ELSE\t\t\t\t\t\t\t\t \"+//107\r\n\t\t\" DECODE(SUBSTR(lpad(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(CH.TKN_EMVFULL \"+//107\r\n\t\t\" ,INSTR(CH.TKN_EMVFULL,'! B2')+24,2))),'XXXXXX')),8,0),1,1),'0','Exitoso','1','Fallido')\t\t\"+//107\r\n\t\t\"END TVR,\t\t\t\"+//107\r\n\t\t \" CASE \t\"+//108\r\n\t\t \" WHEN SUBSTR(TA.NUM,1,1)='5' OR SUBSTR(TA.NUM,1,1)='2' THEN \t\"+//108\r\n\t\t \" CASE\t\"+//108\r\n\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))='00' THEN \t\"+//108\r\n\t\t \" DECODE(SUBSTR(LPAD(NVL(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \t\"+//108\r\n\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+110,2))),'XX')),'00'),8,0),6,1),'0','No','1','Si')\t\"+//108\r\n\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))!='01' THEN \t\"+//108\r\n\t\t \" DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \t\"+//108 \r\n\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+108,2))),'XX')),8,0),6,1) ,'0','No','1','Si') \t\"+//108\r\n\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))='01' THEN \t\"+//108\r\n\t\t \" DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \"+//108\r\n\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+110,2))),'XX')),8,0),6,1),'0','No','1','Si') \"+//108\r\n\t\t \" END \t\"+//108\r\n\t\t \" END || \t\"+//108\r\n\t\t \" CASE WHEN SUBSTR(TA.NUM,1,1)='4' THEN\t\"+//108\r\n\t\t \" CASE SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+108,2) \"+//108\r\n\t\t \" WHEN NULL THEN '' WHEN '' THEN '' WHEN '00' THEN 'No' \"+//108\r\n\t\t \" ELSE DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+112,2))),'XX')) \"+//108\r\n\t\t \" ,8,0),6,1),'0','No','1','Si') \"+//108\r\n\t\t \" END \t\"+//108\r\n\t\t \" END CVRPIN,\t\"+//108\r\n\t\t \"CASE \"+ //109\r\n\t\t \" WHEN SUBSTR(TA.NUM,1,1)='5' OR SUBSTR(TA.NUM,1,1)='2' THEN\t\"+ //109\r\n\t\t \" CASE \t\"+ //109\r\n\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))='00' THEN \t\"+ //109\r\n\t\t \" DECODE(SUBSTR(LPAD(NVL(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \t\"+ //109\r\n\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+110,2))),'XX')),'00'),8,0),7,1),'1','Exitoso','01','Exitoso','10','Exitoso','11','Exitoso','0','Fallido','00','Fallido') \"+ //109\r\n\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))='01' THEN \"+ //109\r\n\t\t \" DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \"+ //109 \r\n\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+110,2))),'XX')),8,0),7,1),'1','Fallido','01','Fallido','10','Fallido','11','Fallido','0','Exitoso','00','Exitoso') \t\"+ //109\r\n\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))!='01' THEN \t\"+ //109\r\n\t\t \" DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \t\"+ //109 \r\n\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+108,2))),'XX')),8,0),7,2),'1','Exitoso','01','Exitoso','10','Exitoso','11','Exitoso','0','Fallido','00','Fallido')\t\"+ //109\r\n\t\t \" END\t\"+ //109\r\n\t\t \"END ||\t\"+ //109\r\n\t\t \"CASE WHEN SUBSTR(TA.NUM,1,1)='4' THEN\t\"+ //109\r\n\t\t \" CASE SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+108,2) \"+ //109\r\n\t\t \" WHEN NULL THEN '' WHEN '' THEN '' WHEN '00' THEN 'Fallido' \"+ //109\r\n\t\t \" ELSE DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+112,2))),'XX'))\t\"+ //109 \r\n\t\t \" ,8,0),7,1),'0','Exitoso','1','Fallido') \t\"+ //109\r\n\t\t \" END \t\"+ //109\r\n\t\t \"END CVRRESULT,\t\"+ //109\r\n\t\t\"CASE \"+//110\r\n\t\t\" WHEN SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+48,2)=''THEN \"+//110\r\n\t\t\" DECODE(NVL(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(CH.TKN_EMVFULL \"+//110\r\n\t\t\" ,INSTR(CH.TKN_EMVFULL,'! B3')+48,2))),'XXXXXX')),'000000'),'000000','Falló CVM','000001' \"+//110\r\n\t\t\" ,'Verificación del PIN en texto plano realizada por el ICC', '000010','Verificación en línea del PIN cifrado' \"+//110\r\n\t\t\" ,'000011','Verificación del PIN en texto plano realizada por el ICC y firma (papel)','000100' \"+//110\r\n\t\t\" ,'Verificación del PIN cifrado realizada por el ICC','000101','Verificación del PIN cifrado realizada por el ICC y firma (papel)','011110','Firma (papel)','011111','No se requirió CVM') \"+//110\r\n\t\t\" WHEN SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+48,2)= NULL THEN \"+//110\r\n\t\t\" DECODE(NVL(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(CH.TKN_EMVFULL \"+//110\r\n\t\t\" ,INSTR(CH.TKN_EMVFULL,'! B3')+48,2))),'XXXXXX')),'000000'),'000000','Falló CVM','000001' \"+//110\r\n\t\t\" ,'Verificación del PIN en texto plano realizada por el ICC', '000010','Verificación en línea del PIN cifrado' \"+//110\r\n\t\t\" ,'000011','Verificación del PIN en texto plano realizada por el ICC y firma (papel)','000100' \"+//110\r\n\t\t\" ,'Verificacion del PIN cifrado realizada por el ICC','000101','Verificación del PIN cifrado realizada por el ICC y firma (papel)','011110','Firma (papel)','011111','No se requirió CVM') \"+//110\r\n\t\t\" WHEN SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+48,2)='00' THEN \"+//110\r\n\t\t\" DECODE(NVL(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(CH.TKN_EMVFULL \"+//110\r\n\t\t\" ,INSTR(CH.TKN_EMVFULL,'! B3')+48,2))),'XXXXXX')),'000000'),'000000','Falló CVM','000001' \"+//110\r\n\t\t\" ,'Verificación del PIN en texto plano realizada por el ICC', '000010','Verificación en línea del PIN cifrado' \"+//110\r\n\t\t\" ,'000011','Verificación del PIN en texto plano realizada por el ICC y firma (papel)','000100' \"+//110\r\n\t\t\" ,'Verificación del PIN cifrado realizada por el ICC','000101','Verificación del PIN cifrado realizada por el ICC y firma (papel)','011110','Firma (papel)','011111','No se requirió CVM') \"+//110\r\n\t\t\" ELSE \"+//110\r\n\t\t\" DECODE(SUBSTR(lpad(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(CH.TKN_EMVFULL \"+//110\r\n\t\t\" ,INSTR(CH.TKN_EMVFULL,'! B3')+48,2))),'XXXXXX')),8,0),3,6),'000000','Falló CVM','000001' \"+//110 \r\n\t\t\" ,'Verificación del PIN en texto plano realizada por el ICC', '000010','Verificación en línea del PIN cifrado' \"+//110\r\n\t\t\" ,'000011','Verificación del PIN en texto plano realizada por el ICC y firma (papel)','000100' \"+//110\r\n\t\t\" ,'Verificación del PIN cifrado realizada por el ICC','000101','Verificación del PIN cifrado realizada por el ICC y firma (papel)' \"+//110\r\n\t\t\" ,'011110','Firma (papel)','011111','No se requirio CVM') \"+//110\r\n\t\t\"END CVMRESULT \"+//110\r\n\t\t\",DECODE(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+52,2),'00','Desconocido','01','Fallido','02','Exitoso') CVR \"+//111\r\n\t\t//\t\" ,SUBSTR(SUBSTR(CH.TKN_R4,11,LENGTH(CH.TKN_R4)),1,20) TKN_R4 \\n\"+\t\t\t\t //112\r\n\t\t/**************** FIN Modificacion SAS N-51-2390-15 12/02/2016***********************/\r\n\t\t/*************** INICIO Implementación SAS N-51-2823-15_LMRV 11/08/2016 ****************/\r\n\t\t\",CASE\t\t \t\"+//112\r\n\t\t\t\"SUBSTR(TTE.B2_TVR,+5,2)\t\"+//112\r\n\t\t\t\"WHEN '00' THEN '0' \t\"+//112\r\n\t\t\t\"ELSE SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(TTE.B2_TVR,+5,2))),'XX')),8,0),4,1) \t\"+//112\r\n\t\t\"END TVRPINBPSH \t\"+//112\r\n\t\t\",CASE \t\"+//113\r\n\t\t\t\"SUBSTR(TTE.B2_TVR,+5,2)\t\t\"+//113\r\n\t\t\t\"WHEN '00' THEN '0' \t\t\"+//113\r\n\t\t\t\"ELSE SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(TTE.B2_TVR,+5,2))),'XX')),8,0),5,1)\t\t\"+//113\r\n\t\t\"END TVRQPSSPSH \t\"+//113\r\n\t\t\",CASE SUBSTR(TTQH.TKN_CZ,INSTR(TTQH.TKN_CZ,'! CZ')+15,2) \t\"+//114\r\n\t\t\t\"WHEN '' THEN ''\t\"+//114\r\n\t\t\t\"WHEN NULL THEN ''\t\t\"+//114\r\n\t\t\t\"WHEN SUBSTR(TTQH.TKN_CZ,INSTR(TTQH.TKN_CZ,'! CZ')+15,2) \t\t\"+//114\r\n\t\t\t\"THEN SUBSTR(TTQH.TKN_CZ,INSTR(TTQH.TKN_CZ,'! CZ')+15,2) END TKCZ\t\t\";//114\r\n\t\t/*************** FIN Implementación SAS N-51-2823-15_LMRV 11/08/2016 ****************/\t\r\n\t\t/********** Fin Modificacion WELLCOM N-51-2098-14 18/02/2015 **********/\r\n\t\t/********** Fin Modificacion WELLCOM N-51-2098-14 14/08/2014 **********/\r\n\t\tquery=query+where+\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\" LEFT JOIN SSAUD.TBL_PTLFCHIP@LG_PMTU_PTLF CH \\n\"+\r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\" ON TA.NUMERO = CH.NUMERO \\n\"+\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\" LEFT JOIN SSAUD.TBL_TKNS_EMV@LG_PMTU_PTLF TTE \\n\"+ \r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\" ON TA.NUMERO = TTE.NUMERO \\n\"+\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t\t\t\" LEFT JOIN SSAUD.TBL_TOKENC0@LG_PMTU_PTLF TT \\n\"+ \r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 21/08/2013 **********/\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 24/02/2014 **********/\r\n\t\t\t\" ON TA.NUMERO = TT.NUMERO \\n\"+\t\t\r\n\t\t\t/*************** INICIO Implementación SAS N-51-2823-15_LMRV 11/08/2016 ****************/\r\n\t\t\t\" LEFT JOIN SSAUD.TBL_TOKENQH@LG_PMTU_PTLF TTQH \\n\"+\r\n\t\t\t\" ON TA.NUMERO = TTQH.NUMERO \\n\"+\r\n\t\t\t/*************** FIN Implementación SAS N-51-2823-15_LMRV 11/08/2016 ****************/\t\t\t\r\n\t\t\t\" WHERE 1=1 \\n\"+\r\n\t\t\t\" AND TA.NUM = '\"+params.comercio+\"' \\n\";\r\n\t// INICIA MODIFICACION WELL-F-52-8181-17 17-10-2017\t\t\r\n\t//\t\t\" AND TA.NUM = '\"+params.comercio+\"' \\n\"+\r\n\t//\" AND TO_DATE((TA.DDA||'/'||TA.MMA||'/'||TA.YYA),'DD/MM/YY') >= TO_DATE('01/\"+params.initDate+'/'+params.endDate+\"','DD/MM/YYYY') \\n\";\r\n\t// FIN MODIFICACION WELL-F-52-8181-17 17-10-2017\r\n\t\t\tif ((params.cuenta!=\"\") && (params.cuenta!=null) && (params.cuenta!=\"null\"))\r\n\t\t\t\tquery+=\" AND TA.RETAILER_ID IN (\"+params.cuenta+\") \\n\";\t\t\t\r\n\t/********** Fin Modificacion WELLCOM N-04-2207-12 24/02/2014 **********/\t\r\n\t/* ====== WELLCOM P-02-0256-12 20/08/2015 Inicia Cambio de Banistmo ====== */\r\n\t\t\t\r\n\t\t\tquery+=\r\n\t\t\t\" UNION ALL \\n\"+\r\n\t\t\t\t\" SELECT /*index (TP NDX_NUM_PMM)*/ \\n\"+ \r\n\t\t\t\t\" TP.RCRD_NUM NUMERO \\n\"+ //00\r\n\t\t\t\t\" ,(SELECT DISTINCT PE.ENTIDAD_PADRE FROM PMADMIN.PRSA_ENTIDADES PE WHERE PE.NUMERO_FIID = DECODE(TP.FIIDC,'EGLO','EOTR',TP.FIIDC)) ADQ \\n\"+ //01 \r\n\t\t\t\t\" ,(SELECT DISTINCT PE.ENTIDAD_PADRE FROM PMADMIN.PRSA_ENTIDADES PE WHERE PE.TIE_NUMERO = 13 AND PE.NUMERO_FIID = DECODE(TP.FIID ,'EGLO','EOTR',TP.FIID )) EMI \\n\"+ //02 \r\n\t\t\t\t\" ,TP.FIID FIID_EMISOR \\n\"+ //03\r\n\t\t\t\t\" ,TP.NUM CUENTA \\n\"+ //04\r\n\t\t\t\t\" ,TP.TC||' '||TP.TYP CLAVE_TXS \\n\"+ //05 \r\n\t\t\t\t\" ,TP.APPRV_CDE AUTORIZACION \\n\"+ //06\r\n\t\t\t\t\" ,TO_CHAR(TO_NUMBER(SUBSTR(TP.AMT_1,0,16)||'.'||SUBSTR(TP.AMT_1,17,18)),'9,999,999,999,999,999.99') IMPORTE \\n\"+ //07 \r\n\t\t\t\t\" ,TP.PT_SRV_ENTRY_MDE MODO_ENTRADA \\n\"+ //08\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_C4,21,1) TER_CAP \\n\"+ //09\r\n\t\t\t\t\" ,CH.TKN_Q1 TK1 \\n\"+ //10\r\n\t\t\t\t\" ,CH.TKN_Q2_ID_ACCESO TK2 \\n\"+ //11 \r\n\t\t\t\t\" ,CH.TKN_Q6 TK3 \\n\"+ //12\r\n\t\t\t\t\" ,CH.TKN_04 TK4 \\n\"+ //13\r\n\t\t\t\t\" ,TT.C0_01||TT.C0_02||TT.C0_03||TT.C0_04||TT.C0_05||TT.C0_06||TT.C0_07||TT.C0_08||TT.C0_09||TT.C0_10||TT.C0_11||TT.C0_12 TK5 \\n\"+ //14\r\n\t\t\t\t\" ,CH.TKN_C4 TK6 \\n\"+ //15\r\n\t\t\t\t\" ,CH.TKN_C6 TK7 \\n\"+ //16\r\n\t\t\t\t\" ,CH.TKN_CE TK8 \\n\"+ //17\r\n\t\t\t\t\" ,TP.LN RED_LOGICA \\n\"+ //18\r\n\t\t\t\t\" ,TP.TERM_ID TERMINAL_ID \\n\"+ //19\r\n\t\t\t\t\" ,TP.TC TC \\n\"+ //20\r\n\t\t\t\t\" ,TP.YYA||'-'||TP.MMA||'-'||TP.DDA||' '||TP.HHA||':'||TP.MMAA||':'||SSA FECHA_CONSUMO \\n\"+ //21 \r\n\t\t\t\t\" ,TP.RETAILER_ID NUM_COMERCIO \\n\"+ //22\r\n\t\t\t\t\" ,DECODE(TP.T,1,'C',2,'D','X') NAT_CON \\n\"+ //23\r\n\t\t\t\t\" ,TP.RESP_CDE CODIGO_RESPUESTA \\n\"+ //24\r\n\t\t\t\t\" ,DECODE(SUBSTR(CH.TKN_Q9,13,1),'2','A','6','A','1','B','5','B','C') SERV_CODE \\n\"+ //25 \r\n\t\t\t\t\" ,TP.TERM_CITY CIUDAD \\n\"+ //26\r\n\t\t\t\t\" ,TP.TERM_CNTRY_CDE PAIS \\n\"+ //27\r\n\t\t\t\t\" ,TTE.B4_ARQC_VRFY ARQC \\n\"+ //28\r\n\t\t\t\t\" ,TP.RETL_SIC_CDE GIRO \\n\"+ //29\r\n\t\t\t\t\" ,'0' IMPORTE --Este campo no existe en esta tabla \\n\"+ //30 \r\n\t\t\t\t\" ,TP.TERM_ID TERM_NUM \\n\"+ //31\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_C4,21,1) IND_CAP_TERM \\n\"+ //32 \r\n\t\t\t\t\" ,TT.C0_05 IND_COM \\n\"+ //33\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_Q1,11,LENGTH(CH.TKN_Q1)),1,1) TKQ1_S01 \\n\"+ //34 \r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_Q1,11,LENGTH(CH.TKN_Q1)),2,1) TKQ1_S02 \\n\"+ //35\r\n\t\t\t\t\" ,CH.TKN_Q2_ID_ACCESO TKQ2_S01 \\n\"+ //36\r\n\t\t\t\t\" ,TT.C0_01 TKC0_S01 \\n\"+ //37\r\n\t\t\t\t\" ,TT.C0_02 TKC0_S02 \\n\"+ //38\r\n\t\t\t\t\" ,TT.C0_03 TKC0_S03 \\n\"+ //39\r\n\t\t\t\t\" ,TT.C0_04 TKC0_S04 \\n\"+ //40\r\n\t\t\t\t\" ,TT.C0_05 TKC0_S05 \\n\"+ //41\r\n\t\t\t\t\" ,TT.C0_06 TKC0_S06 \\n\"+ //42\r\n\t\t\t\t\" ,TT.C0_07 TKC0_S07 \\n\"+ //43\r\n\t\t\t\t\" ,TT.C0_08 TKC0_S08 \\n\"+ //44\r\n\t\t\t\t\" ,TT.C0_09 TKC0_S09 \\n\"+ //45\r\n\t\t\t\t\" ,TT.C0_10 TKC0_S10 \\n\"+ //46\r\n\t\t\t\t\" ,TT.C0_11 TKC0_S11 \\n\"+ //47\r\n\t\t\t\t\" ,TT.C0_12 TKC0_S12 \\n\"+ //48\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),1,1) TKC4_S01 \\n\"+ //49\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),2,1) TKC4_S02 \\n\"+ //50\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),3,1) TKC4_S03 \\n\"+ //51\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),4,1) TKC4_S04 \\n\"+ //52\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),5,1) TKC4_S05 \\n\"+ //53\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),6,1) TKC4_S06 \\n\"+ //54\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),7,1) TKC4_S07 \\n\"+ //55\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),8,1) TKC4_S08 \\n\"+ //56\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),9,1) TKC4_S09 \\n\"+ //57\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),10,1) TKC4_S010 \\n\"+ //58\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),11,1) TKC4_S011 \\n\"+ //59\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),12,1) TKC4_S012 \\n\"+ //60\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),1,1) TK04_S01 \\n\"+ //61\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),2,11) TK04_S02 \\n\"+ //62\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),13,1) TK04_S03 \\n\"+ //63\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),14,5) TK04_S04 \\n\"+ //64\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),19,1) TK04_S05 \\n\"+ //65\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),20,1) TK04_S06 \\n\"+ //66\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_Q6,11,LENGTH(CH.TKN_Q6)),1,2) TKQ6_S01 \\n\"+ //67\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_Q6,11,LENGTH(CH.TKN_Q6)),3,2) TKQ6_S02 \\n\"+ //68\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_Q6,11,LENGTH(CH.TKN_Q6)),5,2) TKQ6_S03 \\n\"+ //69\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C6,11,LENGTH(CH.TKN_C6)),1,40) TKC6_S01 \\n\"+ //70\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C6,11,LENGTH(CH.TKN_C6)),41,40) TKC6_S02 \\n\"+ //71\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_CE,11,LENGTH(CH.TKN_CE)),1,40) TKCE_S01 \\n\"+ //72\r\n\t\t\t\t\" ,SUBSTR(SUBSTR(CH.TKN_CE,11,LENGTH(CH.TKN_CE)),41,40) TKCE_S02 \\n\"+ //73\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+18,2) TKB2_S01 \\n\"+ //74\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+20,10) TKB2_S02 \\n\"+ //75\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+30,16) TKB2_S03 \\n\"+ //76\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+46,12) TKB2_S04 \\n\"+ //77\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+58,12) TKB2_S05 \\n\"+ //78\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+70,4) TKB2_S06 \\n\"+ //79\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+74,4) TKB2_S07 \\n\"+ //80\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+78,3) TKB2_S08 \\n\"+ //81\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+81,3) TKB2_S09 \\n\"+ //82\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+84,6) TKB2_S10 \\n\"+ //83\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+90,2) TKB2_S11 \\n\"+ //84\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+92,8) TKB2_S12 \\n\"+ //85\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+100,64) TKB2_S13 \\n\"+ //86\r\n\t\t\t\t\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+18,8) TKB3_S01 \\n\"+ //87\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+26,8) TKB3_S02 \\n\"+ //88\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+46,2) TKB3_S03 \\n\"+ //89\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+48,4) TKB3_S04 \\n\"+ //90\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+52,6) TKB3_S05 \\n\"+ //91\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+58,32) TKB3_S06 \\n\"+ //92\r\n\t\t\t\t\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+18,3) TKB4_S01 \\n\"+ //93\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+21,1) TKB4_S02 \\n\"+ //94\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+22,1) TKB4_S03 \\n\"+ //95\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+23,1) TKB4_S04 \\n\"+ //96\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+24,2) TKB4_S05 \\n\"+ //97\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+26,6) TKB4_S06 \\n\"+ //98\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+32,4) TKB4_S07 \\n\"+ //99\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+36,1) TKB4_S08 \\n\"+ //100\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+37,1) TKB4_S09 \\n\"+ //101\r\n\t\t\t\t\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B5')+18,4) TKB5_S01 \\n\"+ //102\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B5')+22,16) TKB5_S02 \\n\"+ //103\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B5')+38,16) TKB5_S03 \\n\"+ //104\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B5')+54,1) TKB5_S04 \\n\"+ //105\r\n\t\t\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B5')+55,1) TKB5_S05 \\n\"+ //106\r\n\t\t\t\t/**************** INICIO Modificacion SAS N-51-2390-15 12/02/2016***********************/\r\n\t\t\t\t\",CASE SUBSTR(CH.TKN_EMVFULL ,INSTR(CH.TKN_EMVFULL,'! B2')+24,2) \"+//107\r\n\t\t\t\t\" WHEN NULL THEN \t \"+//107\r\n\t\t\t\t\" ''\t\t\t\t \"+//107\r\n\t\t\t\t\" WHEN '' THEN \t\t\t \"+//107\r\n\t\t\t\t\" ''\t\t\t\t \"+//107\r\n\t\t\t\t\" WHEN '00' THEN \t\t \"+//107\r\n\t\t\t\t\" 'Exitoso'\t\t\t \"+//107\r\n\t\t\t\t\" ELSE\t\t\t\t\t\t\t\t \"+//107\r\n\t\t\t\t\" DECODE(SUBSTR(lpad(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(CH.TKN_EMVFULL \"+//107\r\n\t\t\t\t\" ,INSTR(CH.TKN_EMVFULL,'! B2')+24,2))),'XXXXXX')),8,0),1,1),'0','Exitoso','1','Fallido')\t\t\"+//107\r\n\t\t\t\t\"END TVR,\t\t\t\"+//107\r\n\t\t\t\t \" CASE \t\"+//108\r\n\t\t\t\t \" WHEN SUBSTR(TP.NUM,1,1)='5' OR SUBSTR(TP.NUM,1,1)='2' THEN \t\"+//108\r\n\t\t\t\t \" CASE\t\"+//108\r\n\t\t\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))='00' THEN \t\"+//108\r\n\t\t\t\t \" DECODE(SUBSTR(LPAD(NVL(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \t\"+//108\r\n\t\t\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+110,2))),'XX')),'00'),8,0),6,1),'0','No','1','Si')\t\"+//108\r\n\t\t\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))!='01' THEN \t\"+//108\r\n\t\t\t\t \" DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \t\"+//108 \r\n\t\t\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+108,2))),'XX')),8,0),6,1),'0','No','1','Si') \t\"+//108\r\n\t\t\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))='01' THEN \t\"+//108\r\n\t\t\t\t \" DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \"+//108\r\n\t\t\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+110,2))),'XX')),8,0),6,1),'0','No','1','Si') \"+//108\r\n\t\t\t\t \" END \t\"+//108\r\n\t\t\t\t \" END || \t\"+//108\r\n\t\t\t\t \" CASE WHEN SUBSTR(TP.NUM,1,1)='4' THEN\t\"+//108\r\n\t\t\t\t \" CASE SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+108,2) \"+//108\r\n\t\t\t\t \" WHEN NULL THEN '' WHEN '' THEN '' WHEN '00' THEN 'No' \"+//108\r\n\t\t\t\t \" ELSE DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+112,2))),'XX')) \"+//108\r\n\t\t\t\t \" ,8,0),6,1),'0','No','1','Si') \"+//108\r\n\t\t\t\t \" END \t\"+//108\r\n\t\t\t\t \" END CVRPIN,\t\"+//108\r\n\t\t\t\t \"CASE \"+ //109\r\n\t\t\t\t \" WHEN SUBSTR(TP.NUM,1,1)='5' OR SUBSTR(TP.NUM,1,1)='2'THEN\t\"+ //109\r\n\t\t\t\t \" CASE \t\"+ //109\r\n\t\t\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))='00' THEN \t\"+ //109\r\n\t\t\t\t \" DECODE(SUBSTR(LPAD(NVL(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \t\"+ //109\r\n\t\t\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+110,2))),'XX')),'00'),8,0),7,1),'1','Exitoso','01','Exitoso','10','Exitoso','11','Exitoso','0','Fallido','00','Fallido') \"+ //109\r\n\t\t\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))='01' THEN \"+ //109\r\n\t\t\t\t \" DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \"+ //109 \r\n\t\t\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+110,2))),'XX')),8,0),7,1),'1','Fallido','01','Fallido','10','Fallido','11','Fallido','0','Exitoso','00','Exitoso') \t\"+ //109\r\n\t\t\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))!='01' THEN \t\"+ //109\r\n\t\t\t\t \" DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \t\"+ //109 \r\n\t\t\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+108,2))),'XX')),8,0),7,2),'1','Exitoso','01','Exitoso','10','Exitoso','11','Exitoso','0','Fallido','00','Fallido')\t\"+ //109\r\n\t\t\t\t \" END\t\"+ //109\r\n\t\t\t\t \"END ||\t\"+ //109\r\n\t\t\t\t \"CASE WHEN SUBSTR(TP.NUM,1,1)='4' THEN\t\"+ //109\r\n\t\t\t\t \" CASE SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+108,2)\"+ //109\r\n\t\t\t\t \" WHEN NULL THEN '' WHEN '' THEN '' WHEN '00' THEN 'Fallido' \"+ //109\r\n\t\t\t\t \" ELSE DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+112,2))),'XX'))\t\"+ //109 \r\n\t\t\t\t \" ,8,0),7,1),'0','Exitoso','1','Fallido') \t\"+ //109\r\n\t\t\t\t \" END \t\"+ //109\r\n\t\t\t\t \"END CVRRESULT,\t\"+ //109\r\n\t\t\t\t\"CASE \"+//110\r\n\t\t\t\t\" WHEN SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+48,2)=''THEN \"+//110\r\n\t\t\t\t\" DECODE(NVL(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(CH.TKN_EMVFULL \"+//110\r\n\t\t\t\t\" ,INSTR(CH.TKN_EMVFULL,'! B3')+48,2))),'XXXXXX')),'000000'),'000000','Falló CVM','000001' \"+//110\r\n\t\t\t\t\" ,'Verificación del PIN en texto plano realizada por el ICC', '000010','Verificación en línea del PIN cifrado' \"+//110\r\n\t\t\t\t\" ,'000011','Verificación del PIN en texto plano realizada por el ICC y firma (papel)','000100' \"+//110\r\n\t\t\t\t\" ,'Verificación del PIN cifrado realizada por el ICC','000101','Verificación del PIN cifrado realizada por el ICC y firma (papel)','011110','Firma (papel)','011111','No se requirió CVM') \"+//110\r\n\t\t\t\t\" WHEN SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+48,2)= NULL THEN \"+//110\r\n\t\t\t\t\" DECODE(NVL(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(CH.TKN_EMVFULL \"+//110\r\n\t\t\t\t\" ,INSTR(CH.TKN_EMVFULL,'! B3')+48,2))),'XXXXXX')),'000000'),'000000','Falló CVM','000001' \"+//110\r\n\t\t\t\t\" ,'Verificación del PIN en texto plano realizada por el ICC', '000010','Verificación en línea del PIN cifrado' \"+//110\r\n\t\t\t\t\" ,'000011','Verificación del PIN en texto plano realizada por el ICC y firma (papel)','000100' \"+//110\r\n\t\t\t\t\" ,'Verificacion del PIN cifrado realizada por el ICC','000101','Verificación del PIN cifrado realizada por el ICC y firma (papel)','011110','Firma (papel)','011111','No se requirió CVM') \"+//110\r\n\t\t\t\t\" WHEN SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+48,2)='00' THEN \"+//110\r\n\t\t\t\t\" DECODE(NVL(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(CH.TKN_EMVFULL \"+//110\r\n\t\t\t\t\" ,INSTR(CH.TKN_EMVFULL,'! B3')+48,2))),'XXXXXX')),'000000'),'000000','Falló CVM','000001' \"+//110\r\n\t\t\t\t\" ,'Verificación del PIN en texto plano realizada por el ICC', '000010','Verificación en línea del PIN cifrado' \"+//110\r\n\t\t\t\t\" ,'000011','Verificación del PIN en texto plano realizada por el ICC y firma (papel)','000100' \"+//110\r\n\t\t\t\t\" ,'Verificación del PIN cifrado realizada por el ICC','000101','Verificación del PIN cifrado realizada por el ICC y firma (papel)','011110','Firma (papel)','011111','No se requirió CVM') \"+//110\r\n\t\t\t\t\" ELSE \"+//110\r\n\t\t\t\t\" DECODE(SUBSTR(lpad(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(CH.TKN_EMVFULL \"+//110\r\n\t\t\t\t\" ,INSTR(CH.TKN_EMVFULL,'! B3')+48,2))),'XXXXXX')),8,0),3,6),'000000','Falló CVM','000001' \"+//110 \r\n\t\t\t\t\" ,'Verificación del PIN en texto plano realizada por el ICC', '000010','Verificación en línea del PIN cifrado' \"+//110\r\n\t\t\t\t\" ,'000011','Verificación del PIN en texto plano realizada por el ICC y firma (papel)','000100' \"+//110\r\n\t\t\t\t\" ,'Verificación del PIN cifrado realizada por el ICC','000101','Verificación del PIN cifrado realizada por el ICC y firma (papel)' \"+//110\r\n\t\t\t\t\" ,'011110','Firma (papel)','011111','No se requirio CVM') \"+//110\r\n\t\t\t\t\"END CVMRESULT \"+//110\r\n\t\t\t\t\",DECODE(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+52,2),'00','Desconocido','01','Fallido','02','Exitoso') CVR \"+//111\t\t\t\r\n\t\t\t\t//\t\" ,SUBSTR(SUBSTR(CH.TKN_R4,11,LENGTH(CH.TKN_R4)),1,20) TKN_R4 \\n\"+\t\t\t\t //112\r\n\t\t\t\t/**************** FIN Modificacion SAS N-51-2390-15 12/02/2016***********************/\t\t\t\t\r\n\t\t\t\t/*************** INICIO Implementación SAS N-51-2823-15_LMRV 11/08/2016 ****************/\r\n\t\t\t\t\",CASE\t\t \t\"+//112\r\n\t\t\t\t\t\"SUBSTR(TTE.B2_TVR,+5,2)\"+//112\r\n\t\t\t\t\t\"WHEN '00' THEN '0' \t\"+//112\r\n\t\t\t\t\t\"ELSE SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(TTE.B2_TVR,+5,2))),'XX')),8,0),4,1) \t\"+//112\r\n\t\t\t\t\"END TVRPINBPSH \t\"+//112\r\n\t\t\t\t\",CASE \t\"+//113\r\n\t\t\t\t\t\"SUBSTR(TTE.B2_TVR,+5,2)\t\t\"+//113\r\n\t\t\t\t\t\"WHEN '00' THEN '0' \t\t\"+//113\r\n\t\t\t\t\t\"ELSE SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(TTE.B2_TVR,+5,2))),'XX')),8,0),5,1)\t\t\"+//113\r\n\t\t\t\t\"END TVRQPSSPSH \t\"+//113\r\n\t\t\t\t\",CASE SUBSTR(TTQH.TKN_CZ,INSTR(TTQH.TKN_CZ,'! CZ')+15,2) \t\"+//114\r\n\t\t\t\t\t\"WHEN '' THEN ''\t\"+//114\r\n\t\t\t\t\t\"WHEN NULL THEN ''\t\t\"+//114\r\n\t\t\t\t\t\"WHEN SUBSTR(TTQH.TKN_CZ,INSTR(TTQH.TKN_CZ,'! CZ')+15,2) \t\t\"+//114\r\n\t\t\t\t\t\"THEN SUBSTR(TTQH.TKN_CZ,INSTR(TTQH.TKN_CZ,'! CZ')+15,2) END TKCZ\t\t\"+//114\r\n\t\t\t\t/*************** FIN Implementación SAS N-51-2823-15_LMRV 11/08/2016 ****************/\r\n\t\t\t\t\" FROM PMM.TBL_PTLFMMHIST@LG_PMTU_PTLF TP \\n\"+\r\n\t\t\t\t\" LEFT JOIN SSAUD.TBL_PTLFCHIP@LG_PMTU_PTLF CH \\n\"+\r\n\t\t\t\t\" ON TP.RCRD_NUM = CH.NUMERO \\n\"+\r\n\t\t\t\t\" LEFT JOIN SSAUD.TBL_TKNS_EMV@LG_PMTU_PTLF TTE \\n\"+ \r\n\t\t\t\t\" ON TP.RCRD_NUM = TTE.NUMERO \\n\"+\r\n\t\t\t\t\" LEFT JOIN SSAUD.TBL_TOKENC0@LG_PMTU_PTLF TT \\n\"+ \r\n\t\t\t\t\" ON TP.RCRD_NUM = TT.NUMERO \\n\"+\r\n\t\t\t\t/*************** INICIO Implementación SAS N-51-2823-15_LMRV 11/08/2016 ****************/\r\n\t\t\t\t\" LEFT JOIN SSAUD.TBL_TOKENQH@LG_PMTU_PTLF TTQH \\n\"+\r\n\t\t\t\t\" ON TP.RCRD_NUM = TTQH.NUMERO \\n\"+\r\n\t\t\t\t/*************** FIN Implementación SAS N-51-2823-15_LMRV 11/08/2016 ****************/\r\n\t\t\t\t\" WHERE 1=1 \\n\"+\r\n\t\t\t\t\" AND TP.NUM = '\"+params.comercio+\"' \\n\"+\r\n\t\t\t\t\" AND TO_CHAR(TP.FECHA_PROCESO_TRANSAC,'MM/YYYY') = '\"+params.initDate+'/'+params.endDate+\"' \\n\";\r\n\t\t\t\r\n\t/* ====== WELLCOM P-02-0256-12 20/08/2015 Fin Cambio de Banistmo ====== */\r\n\t\r\n\t\treturn query;\r\n\t}", "title": "" }, { "docid": "22b395369208b0d1d57c24ed419e09e5", "score": "0.48074996", "text": "public void create(CsoSystemParametersDTO bean) throws DAOException {\n\n\t\tCsoSystemParameters csoSystemParameters= new CsoSystemParameters();\n\t\tcsoSystemParameters.setCccoreInterval((short) bean.getCccoreInterval());\n\t\tcsoSystemParameters.setCisDownloadInd(bean.getCisDownloadInd());\n\t\tcsoSystemParameters.setEodDone(bean.getEodDone());\n\t\tcsoSystemParameters.setLiveTestCode(bean.getLiveTestCode());\n\t\tcsoSystemParameters.setNextOutputDate(bean.getNextOutputDate());\n\t\tcsoSystemParameters.setProcessActiveInd(bean.getProcessActiveInd());\n\t\tcsoSystemParameters.setProcessDate(bean.getProcessDate());\n\t\tcsoSystemParameters.setRunBatch(bean.getRunBatch());\n\t\tcsoSystemParameters.setUnixSodDone(bean.getUnixSodDone());\n\n\t\tcsoSystemParametersDao.create(csoSystemParameters);\n\n\t}", "title": "" }, { "docid": "cce8b5274d46662bcbdf74a61874ba2b", "score": "0.48025224", "text": "@Override\n\tpublic List<SySeguridadAutorizaciones> listarComboSySeguridadAutorizacionesSucursal(\n\t\t\tSySeguridadAutorizaciones objSySeguridadAutorizaciones) {\n\t\ttry {\n\t\t\tQuery query = getCurrentSession().createSQLQuery(\n\t\t\t\t\t\"Select dbo.SY_SeguridadAutorizaciones.AplicacionCodigo,SeguridadAutorizacionCompania.Companyowner,\"\n\t\t\t\t\t\t\t+ \" dbo.SY_SeguridadAutorizaciones.Grupo,dbo.AC_Sucursal.Sucursal,AC_Sucursal.DescripcionLocal ,0 \"\n\t\t\t\t\t\t\t+ \" FROM dbo.SY_SeguridadAutorizaciones INNER JOIN \"\n\t\t\t\t\t\t\t+ \" dbo.AC_Sucursal ON dbo.SY_SeguridadAutorizaciones.Concepto = dbo.AC_Sucursal.Sucursal INNER JOIN \"\n\t\t\t\t\t\t\t+ \" dbo.SeguridadAutorizacionCompania ON dbo.SY_SeguridadAutorizaciones.Usuario = dbo.SeguridadAutorizacionCompania.Usuario AND\"\n\t\t\t\t\t\t\t+ \" dbo.AC_Sucursal.Compania = dbo.SeguridadAutorizacionCompania.Companyowner\"\n\t\t\t\t\t\t\t+ \" where ltrim(SY_SeguridadAutorizaciones.Usuario) = '\"\n\t\t\t\t\t\t\t+ objSySeguridadAutorizaciones.getString1() + \"'\" + \"and AC_Sucursal.Compania = '\"\n\t\t\t\t\t\t\t+ objSySeguridadAutorizaciones.getString2() + \"'\" + \"and Grupo = '\"\n\t\t\t\t\t\t\t+ objSySeguridadAutorizaciones.getString3() + \"'\");\n\n\t\t\tList<Object> result = query.list();\n\t\t\tIterator itr = result.iterator();\n\t\t\tList<SySeguridadAutorizaciones> listaRetorno = new ArrayList<SySeguridadAutorizaciones>();\n\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tObject[] obj = (Object[]) itr.next();\n\t\t\t\tSySeguridadAutorizaciones autorizaciones = new SySeguridadAutorizaciones();\n\n\t\t\t\tif (obj[0] != null) {\n\t\t\t\t\tautorizaciones.setString1(String.valueOf(obj[0]));\n\t\t\t\t}\n\n\t\t\t\tif (obj[1] != null) {\n\t\t\t\t\tautorizaciones.setString2(String.valueOf(obj[1]));\n\t\t\t\t}\n\t\t\t\tif (obj[2] != null) {\n\t\t\t\t\tautorizaciones.setString3(String.valueOf(obj[2]));\n\t\t\t\t}\n\t\t\t\tif (obj[3] != null) {\n\t\t\t\t\tautorizaciones.setString4(String.valueOf(obj[3]).trim());\n\t\t\t\t}\n\t\t\t\tif (obj[4] != null) {\n\t\t\t\t\tautorizaciones.setString5(String.valueOf(obj[4]));\n\t\t\t\t}\n\t\t\t\tif (obj[5] != null) {\n\t\t\t\t\tautorizaciones.setString6(String.valueOf(obj[5]));\n\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\tlistaRetorno.add(autorizaciones);\n\t\t\t}\n\n\t\t\treturn listaRetorno;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "50696a40df30906ae06a80c2f07ed902", "score": "0.48019096", "text": "public interface ApplicationModuleSysParamConstants {\r\n\r\n String DEFAULT_APPLICATION = \"APP-0001\";\r\n\r\n String SHOW_FORM_ALTERNATE_ACTIONS = \"APP-0002\";\r\n\r\n String SHOW_MENU_SECTIONS_ITEMS_ONLY = \"APP-0003\";\r\n\r\n String STUDIO_APPLICATION_NAME = \"APP-0004\";\r\n\r\n String STUDIO_MENU_ENABLED = \"APP-0005\";\r\n\r\n String STUDIO_APPLICATION = \"APP-0006\";\r\n\r\n String IMPORT_APPLICATION_NAME = \"APP-0007\";\r\n\r\n String ENABLE_MULTIPLE_TABS = \"APP-0008\";\r\n\r\n String ASSIGN_APPLICATIONENTITY_ONCREATE = \"APP-0009\";\r\n\r\n String USE_APPLICATION_FORM_COLOR_SCHEME = \"APP-000A\";\r\n\r\n String ALL_TABLE_HEADER_TO_UPPERCASE = \"APP-000B\";\r\n\r\n String ALL_TABLE_HEADER_CENTER_ALIGNED = \"APP-000C\";\r\n\r\n String STRICT_FORM_REVIEW_MODE = \"APP-000D\";\r\n\r\n String AUTOSAVE_SUGGESTIONS = \"APP-000E\";\r\n\r\n String ALL_TABLE_IN_CLASSIC_MODE = \"APP-000F\";\r\n\r\n String APPLICATION_HEADER_TITLE = \"APP-0010\";\r\n\r\n String SECTOR_LABEL_INDICATION_ON_MENU = \"APP-0011\";\r\n\r\n String SECTOR_INDICATION_ON_TABS = \"APP-0012\";\r\n\r\n String SECTOR_INDICATION_ON_PAGE = \"APP-0013\";\r\n\r\n String SAVE_HEADER_FORM_ON_TAB_ACTION = \"APP-0014\";\r\n\r\n String SHOW_BUTTONS_FOR_FOOTER_ACTION = \"APP-0015\";\r\n\r\n String SEARCH_ENTRY_COLUMNS = \"APP-0016\";\r\n\r\n String SEARCH_MINIMUM_ITEMS_PER_PAGE = \"APP-0017\";\r\n\r\n String ENABLE_HIGH_LATENCY_INDICATION = \"APP-0018\";\r\n\r\n String SHOW_RESOLVED_BASE_RESTRICTION = \"APP-0019\";\r\n \r\n String SEARCH_ENTRY_SHOW_CONDITIONS = \"APP-001A\";\r\n\r\n String SECTOR_SORT_ON_MENU = \"APP-001B\";\r\n\r\n String FORM_SECTION_CLASSIC_MODE = \"APP-001C\";\r\n\r\n String SECTOR_COLOR_INDICATION_ON_MENU = \"APP-001D\";\r\n\r\n String ENABLE_QUICK_REPORT = \"APP-001E\";\r\n\r\n String ENABLE_VIEW_ENTITY_IN_SEPARATE_TAB = \"APP-001F\";\r\n\r\n String SHOW_WORK_ITEMS_ON_LOGIN = \"APP-0020\";\r\n \r\n String ENABLE_STICKY_WORK_ITEMS_PAGE = \"APP-0021\";\r\n}", "title": "" }, { "docid": "5543517a582765881aaea026e777891e", "score": "0.47992727", "text": "public interface MybatisEntityOperations extends JdbcEntityOperations {\n\n <T> List <T> selectList(String namespance, Map <String, Object> params, Class <T> domainType);\n}", "title": "" }, { "docid": "97cbc954cf9c9e1a78e592f55bb1f844", "score": "0.47919613", "text": "private static StringBuilder generateMainSql(Object entity,\n\t\t\tAnnotatedProperty annotatedProperty, List<Object> parameters) throws AAException\n\t{\n\t\tAccelaQuery accelaQuery = annotatedProperty.getAnnotation(AccelaQuery.class);\n\t\tObject[] queryParameters = AccelaQueryHelper.getQueryParameters(accelaQuery, entity, annotatedProperty.getName());\n\t\tif (isFoundNullValue(queryParameters))\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tfor (Object param : queryParameters)\n\t\t{\n\t\t\tparameters.add(param);\n\t\t}\n\t\tObject subModelObject = annotatedProperty.getValue(entity);\n\t\tList<?> subModels = convertToList(subModelObject);\n\t\tfinal StringBuilder sqlBuilder;\n\t\t//Check to see if sub model exist.\n\t\tif (subModels == null || subModels.isEmpty())\n\t\t{\n\t\t\tsqlBuilder = new StringBuilder(getQueryString(accelaQuery));\n\t\t}\t\n\t\telse\n\t\t{\n\t\t\tsqlBuilder = new StringBuilder();\n\t\t\t//For example, \n\t\t\t//SELECT * FROM (Sub SQL query)) X_Y WHERE\n\t\t\tsqlBuilder.append(\"SELECT * FROM (\").append(getQueryString(accelaQuery)).append(\") X_Y WHERE \");\n\t\t\tClass<?> targetEntity = accelaQuery.targetEntity();\n\t\t\tAnnotatedClass subClassAnnotation = AnnotationConfigurationUtil.getClassAnnotation(targetEntity);\n\t\t\tTable table2 = subClassAnnotation.getTable();\n\t\t\tString[] idColumns = subClassAnnotation.getPkColumns();\n\t\t\t//For example,\n\t\t\t// X_Y WHERE \n\t\t\t//NOT EXISTS (SELECT SERV_PROV_CODE,BDV_SEQ_NBR FROM RBIZDOMAIN_VALUE WHERE \n\t\t\tsqlBuilder.append(\"NOT EXISTS (SELECT \");\n\t\t\tgetSqlColumns(sqlBuilder, idColumns, null);\n\t\t\tsqlBuilder.append(\" FROM \").append(table2.name()).append(\" WHERE (\");\n\t\t\t//For example, (SERV_PROV_CODE='Agency' AND BDV_SEQ_NBR=10000001) OR (SERV_PROV_CODE='Agency' AND BDV_SEQ_NBR=10000005)) \n\t\t\tgetSqlOrWhere(subClassAnnotation, parameters, subModels, sqlBuilder, idColumns);\n\t\t\tsqlBuilder.append(\")\");\t\t\n\t\t\t\n\t\t\t//AND (X_Y.SERV_PROV_CODE = SERV_PROV_CODE AND X_Y.BDV_SEQ_NBR = BDV_SEQ_NBR))\n\t\t\tsqlBuilder.append(\" AND ( \");\n\t\t\tboolean isFirst = true;\n\t\t\t//Generate join SQL.\n\t\t\tfor (String pkColumn : idColumns)\n\t\t\t{\n\t\t\t\t//It is first time.\n\t\t\t\tif(isFirst)\n\t\t\t\t{\n\t\t\t\t\tsqlBuilder.append(\" X_Y.\"+pkColumn +\" = \"+ pkColumn);\n\t\t\t\t\tisFirst =false;\n\t\t\t\t}\n\t\t\t\t//Otherwise,\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsqlBuilder.append(\" AND X_Y.\"+pkColumn +\" = \"+ pkColumn);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsqlBuilder.append(\" )) \");\n\t\t}\n\n\t\treturn sqlBuilder;\n\t}", "title": "" }, { "docid": "a920029892bca54062afb03ec56d238b", "score": "0.47876298", "text": "public String getSequence_SQL();", "title": "" }, { "docid": "abcf7402be0fdc0e6fb5b6fd069ddc88", "score": "0.47828197", "text": "@MyBatisDao\npublic interface MakeCompanyStampDao {\n\n public String geteleModel(String makecompId);\n}", "title": "" }, { "docid": "b48c5516d247e51f595b1d2d9a17616e", "score": "0.4759489", "text": "@Override\r\n\tpublic void setSysId(long sysId) {\n\t\t\r\n\t}", "title": "" }, { "docid": "213bdfb465020b6c213fbba4d49edca5", "score": "0.4742782", "text": "SysInfos selectByPrimaryKey(String keyval);", "title": "" }, { "docid": "6f5fb1f9e9c9dd0068c2ab99ad4cf9a3", "score": "0.47382063", "text": "public void addParameter(MColumn column, String parameter) {\n\t\tif (column == null)\n\t\t\treturn;\n\t\t\n\t\tif (column.isSecure() || column.isEncrypted())\n\t\t\tthrow new AdempiereException(\"Cannot query the column: \" + column);\n\t\t\t\n\t\tint displayType = column.getAD_Reference_ID();\n\t\ttry {\n\t\t\t\n\t\t\tif (DisplayType.isID(displayType) && \n\t\t\t\t\t// Two special columns: Defined as Table but DB Type is String\t\t\t\t\t\n\t\t\t\t\t!column.getColumnName().equals(\"EntityType\") && \n\t\t\t\t\t!column.getColumnName().equals(\"AD_Language\"))\n\t\t\t\taddParameter(Integer.valueOf(parameter));\n\t\t\telse if (displayType == DisplayType.Integer || (displayType == DisplayType.Button && column.getColumnName().endsWith(\"_ID\"))) // Integer\n\t\t\t\taddParameter(Integer.valueOf(parameter));\n\t\t\telse if (DisplayType.isNumeric(displayType)) //\tNumber\n\t\t\t\taddParameter(new BigDecimal(parameter));\n\t\t\telse if (DisplayType.isDate(displayType)) //\tTimestamps\n\t\t\t{\n\t\t\t\t// Try Timestamp format - then date format\n\t\t\t\tjava.util.Date date = null;\n\t\t\t\tSimpleDateFormat dateTimeFormat = DisplayType.getTimestampFormat_Default();\n\t\t\t\tSimpleDateFormat dateFormat = DisplayType.getDateFormat_JDBC();\n\t\t\t\t\n\t\t\t\t//If the value comes with ' remove them\n\t\t\t\tif (parameter.contains(\"'\"))\n\t\t\t\t\tparameter = extractFromStringValue(parameter);\n\t\t\t\ttry {\n\t\t\t\t\tif (displayType == DisplayType.Date) {\n\t\t\t\t\t\tdate = dateFormat.parse(parameter);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdate = dateTimeFormat.parse(parameter);\n\t\t\t\t\t}\n\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\tdate = dateFormat.parse(parameter);\n\t\t\t\t}\n\t\t\t\taddParameter(new Timestamp (date.getTime()));\n\t\t\t}\n\t\t\telse if (displayType == DisplayType.YesNo) //\tBoolean\n\t\t\t\taddParameter(Boolean.valueOf(\"Y\".equals(parameter) || \"true\".equals(parameter)));\n\t\t\telse if (displayType == DisplayType.String || DisplayType.isList(displayType) || \n\t\t\t\t\tparameter.startsWith(\"'\") && parameter.endsWith(\"'\")) {\n\t\t\t\tif (parameter.startsWith(\"'\") && parameter.endsWith(\"'\"))\n\t\t\t\t\taddParameter(extractFromStringValue(parameter));\n\t\t\t\telse \n\t\t\t\t\tthrow new IDempiereRestException(\"String values must be put between single quotes. ColumnName: \" + column.getName(), Status.BAD_REQUEST);\n\t\t\t}\n\t\t\telse \n\t\t\t\taddParameter(parameter);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IDempiereRestException(\"Error convertig parameter with value: \" + parameter + \" - \" + e.getMessage(), Status.BAD_REQUEST);\n\t\t}\n\t}", "title": "" }, { "docid": "7686734d3ac400a3b9cbcfbe48b84dc0", "score": "0.4732326", "text": "TSystemCode selectByPrimaryKey(@Param(\"codeType\") String codeType, @Param(\"codeId\") String codeId);", "title": "" }, { "docid": "fbceefb8ed606c6bf79cd97348a1d703", "score": "0.4721594", "text": "public interface I_M_LabLine \n{\n\n /** TableName=M_LabLine */\n public static final String Table_Name = \"M_LabLine\";\n\n /** AD_Table_ID=1000110 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name Help */\n public static final String COLUMNNAME_Help = \"Help\";\n\n\t/** Set Comment/Help.\n\t * Comment or Hint\n\t */\n\tpublic void setHelp (String Help);\n\n\t/** Get Comment/Help.\n\t * Comment or Hint\n\t */\n\tpublic String getHelp();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name M_Lab_ID */\n public static final String COLUMNNAME_M_Lab_ID = \"M_Lab_ID\";\n\n\t/** Set M_Lab_ID\t */\n\tpublic void setM_Lab_ID (int M_Lab_ID);\n\n\t/** Get M_Lab_ID\t */\n\tpublic int getM_Lab_ID();\n\n\tpublic I_M_Lab getM_Lab() throws RuntimeException;\n\n /** Column name M_LabLine_ID */\n public static final String COLUMNNAME_M_LabLine_ID = \"M_LabLine_ID\";\n\n\t/** Set M_LabLine\t */\n\tpublic void setM_LabLine_ID (int M_LabLine_ID);\n\n\t/** Get M_LabLine\t */\n\tpublic int getM_LabLine_ID();\n\n /** Column name M_Test_ID */\n public static final String COLUMNNAME_M_Test_ID = \"M_Test_ID\";\n\n\t/** Set M_Test\t */\n\tpublic void setM_Test_ID (int M_Test_ID);\n\n\t/** Get M_Test\t */\n\tpublic int getM_Test_ID();\n\n\tpublic org.pentanet.model.I_M_Test getM_Test() throws RuntimeException;\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name Result1 */\n public static final String COLUMNNAME_Result1 = \"Result1\";\n\n\t/** Set Result1\t */\n\tpublic void setResult1 (String Result1);\n\n\t/** Get Result1\t */\n\tpublic String getResult1();\n\n /** Column name Result10 */\n public static final String COLUMNNAME_Result10 = \"Result10\";\n\n\t/** Set Result10\t */\n\tpublic void setResult10 (String Result10);\n\n\t/** Get Result10\t */\n\tpublic String getResult10();\n\n /** Column name Result11 */\n public static final String COLUMNNAME_Result11 = \"Result11\";\n\n\t/** Set Result11\t */\n\tpublic void setResult11 (String Result11);\n\n\t/** Get Result11\t */\n\tpublic String getResult11();\n\n /** Column name Result12 */\n public static final String COLUMNNAME_Result12 = \"Result12\";\n\n\t/** Set Result12\t */\n\tpublic void setResult12 (String Result12);\n\n\t/** Get Result12\t */\n\tpublic String getResult12();\n\n /** Column name Result13 */\n public static final String COLUMNNAME_Result13 = \"Result13\";\n\n\t/** Set Result13\t */\n\tpublic void setResult13 (String Result13);\n\n\t/** Get Result13\t */\n\tpublic String getResult13();\n\n /** Column name Result14 */\n public static final String COLUMNNAME_Result14 = \"Result14\";\n\n\t/** Set Result14\t */\n\tpublic void setResult14 (String Result14);\n\n\t/** Get Result14\t */\n\tpublic String getResult14();\n\n /** Column name Result15 */\n public static final String COLUMNNAME_Result15 = \"Result15\";\n\n\t/** Set Result15\t */\n\tpublic void setResult15 (String Result15);\n\n\t/** Get Result15\t */\n\tpublic String getResult15();\n\n /** Column name Result16 */\n public static final String COLUMNNAME_Result16 = \"Result16\";\n\n\t/** Set Result16\t */\n\tpublic void setResult16 (String Result16);\n\n\t/** Get Result16\t */\n\tpublic String getResult16();\n\n /** Column name Result17 */\n public static final String COLUMNNAME_Result17 = \"Result17\";\n\n\t/** Set Result17\t */\n\tpublic void setResult17 (String Result17);\n\n\t/** Get Result17\t */\n\tpublic String getResult17();\n\n /** Column name Result18 */\n public static final String COLUMNNAME_Result18 = \"Result18\";\n\n\t/** Set Result18\t */\n\tpublic void setResult18 (String Result18);\n\n\t/** Get Result18\t */\n\tpublic String getResult18();\n\n /** Column name Result19 */\n public static final String COLUMNNAME_Result19 = \"Result19\";\n\n\t/** Set Result19\t */\n\tpublic void setResult19 (String Result19);\n\n\t/** Get Result19\t */\n\tpublic String getResult19();\n\n /** Column name Result2 */\n public static final String COLUMNNAME_Result2 = \"Result2\";\n\n\t/** Set Result2\t */\n\tpublic void setResult2 (String Result2);\n\n\t/** Get Result2\t */\n\tpublic String getResult2();\n\n /** Column name Result20 */\n public static final String COLUMNNAME_Result20 = \"Result20\";\n\n\t/** Set Result20\t */\n\tpublic void setResult20 (String Result20);\n\n\t/** Get Result20\t */\n\tpublic String getResult20();\n\n /** Column name Result3 */\n public static final String COLUMNNAME_Result3 = \"Result3\";\n\n\t/** Set Result3\t */\n\tpublic void setResult3 (String Result3);\n\n\t/** Get Result3\t */\n\tpublic String getResult3();\n\n /** Column name Result4 */\n public static final String COLUMNNAME_Result4 = \"Result4\";\n\n\t/** Set Result4\t */\n\tpublic void setResult4 (String Result4);\n\n\t/** Get Result4\t */\n\tpublic String getResult4();\n\n /** Column name Result5 */\n public static final String COLUMNNAME_Result5 = \"Result5\";\n\n\t/** Set Result5\t */\n\tpublic void setResult5 (String Result5);\n\n\t/** Get Result5\t */\n\tpublic String getResult5();\n\n /** Column name Result6 */\n public static final String COLUMNNAME_Result6 = \"Result6\";\n\n\t/** Set Result6\t */\n\tpublic void setResult6 (String Result6);\n\n\t/** Get Result6\t */\n\tpublic String getResult6();\n\n /** Column name Result7 */\n public static final String COLUMNNAME_Result7 = \"Result7\";\n\n\t/** Set Result7\t */\n\tpublic void setResult7 (String Result7);\n\n\t/** Get Result7\t */\n\tpublic String getResult7();\n\n /** Column name Result8 */\n public static final String COLUMNNAME_Result8 = \"Result8\";\n\n\t/** Set Result8\t */\n\tpublic void setResult8 (String Result8);\n\n\t/** Get Result8\t */\n\tpublic String getResult8();\n\n /** Column name Result9 */\n public static final String COLUMNNAME_Result9 = \"Result9\";\n\n\t/** Set Result9\t */\n\tpublic void setResult9 (String Result9);\n\n\t/** Get Result9\t */\n\tpublic String getResult9();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n\t/** Set Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic void setValue (String Value);\n\n\t/** Get Search Key.\n\t * Search key for the record in the format required - must be unique\n\t */\n\tpublic String getValue();\n}", "title": "" }, { "docid": "47fc968bd6e92ccb525d926750b5a726", "score": "0.47132817", "text": "@DAO\npublic interface PersonalUserInfoDAO {\n public static String TABLE_NAME = \" personal_user_info \";\n public static String COLS = \" id, open_id, nick_name, gender, city, province, country, avatar_url, personal_statement, age, \" +\n \" emotion_state, job, constellation, hobby, update_time, create_time \";\n public static String INSERT_VALUES = \" NULL, :1.openId, :1.nickName, :1.gender, :1.city, :1.province, :1.country, :1.avatarUrl, \" +\n \" :1.personalStatement, :1.age, :1.emotionState, :1.job, :1.constellation, :1.hobby, :1.updateTime, :1.createTime \";\n\n @ReturnGeneratedKeys\n @SQL(\" insert into \" + TABLE_NAME + \" ( \" + COLS + \" ) values ( \" + INSERT_VALUES + \" )\")\n long insert(PersonalUserInfo personalUserInfo);\n\n @SQL(\" select \" + COLS + \" from \" + TABLE_NAME + \" where id = :userId\")\n PersonalUserInfo getByUserId(@SQLParam(\"userId\") long userId);\n}", "title": "" }, { "docid": "b284afb2959fb478818b4e01883d2eb7", "score": "0.47063413", "text": "@Override\n\tpublic List<SySeguridadAutorizaciones> listarComboSySeguridadAutorizacionesCompania(\n\t\t\tSySeguridadAutorizaciones objSySeguridadAutorizaciones) {\n\t\ttry {\n\t\t\tQuery query = getCurrentSession()\n\t\t\t\t\t.createSQLQuery(\" SELECT distinct \"\n\t\t\t\t\t\t\t+ \"dbo.SY_SeguridadAutorizaciones.AplicacionCodigo, \"\n\t\t\t\t\t\t\t+ \"dbo.SeguridadAutorizacionCompania.Companyowner,\"\n\t\t\t\t\t\t\t+ \" dbo.SY_SeguridadAutorizaciones.Grupo,\"\n\t\t\t\t\t\t\t+ \"dbo.companyowner.companyowner, \"\n\t\t\t\t\t\t\t+ \"dbo.companyowner.description ,0 \"\n\t\t\t\t\t\t\t+ \" FROM dbo.SY_SeguridadAutorizaciones INNER JOIN dbo.SeguridadAutorizacionCompania \"\n\t\t\t\t\t\t\t+ \" ON dbo.SY_SeguridadAutorizaciones.Usuario = dbo.SeguridadAutorizacionCompania.Usuario INNER JOIN \"\n\t\t\t\t\t\t\t+ \" dbo.companyowner ON dbo.SeguridadAutorizacionCompania.Companyowner = dbo.companyowner.companyowner \"\n\t\t\t\t\t\t\t+ \" where ltrim(SY_SeguridadAutorizaciones.Usuario) = '\"\n\t\t\t\t\t\t\t+ objSySeguridadAutorizaciones.getString1() + \"' and Grupo = '\"\n\t\t\t\t\t\t\t+ objSySeguridadAutorizaciones.getString2() + \"'\");\n\n\t\t\tList<Object> result = query.list();\n\t\t\tIterator itr = result.iterator();\n\t\t\tList<SySeguridadAutorizaciones> listaRetorno = new ArrayList<SySeguridadAutorizaciones>();\n\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tObject[] obj = (Object[]) itr.next();\n\t\t\t\tSySeguridadAutorizaciones autorizaciones = new SySeguridadAutorizaciones();\n\n\t\t\t\tif (obj[0] != null) {\n\t\t\t\t\tautorizaciones.setString1(String.valueOf(obj[0])); //aplicacion codigo\n\t\t\t\t}\n\n\t\t\t\tif (obj[1] != null) {\n\t\t\t\t\tautorizaciones.setString2(String.valueOf(obj[1])); //codigo compania\n\t\t\t\t}\n\t\t\t\tif (obj[2] != null) {\n\t\t\t\t\tautorizaciones.setString3(String.valueOf(obj[2])); //grupo\n\t\t\t\t}\n\t\t\t\tif (obj[3] != null) {\n\t\t\t\t\tautorizaciones.setString4(String.valueOf(obj[3])); //\n\t\t\t\t}\n\t\t\t\tif (obj[4] != null) {\n\t\t\t\t\tautorizaciones.setString5(String.valueOf(obj[4])); //\n\t\t\t\t}\n\n\t\t\t\tlistaRetorno.add(autorizaciones);\n\t\t\t}\n\n\t\t\treturn listaRetorno;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "a2e356441a85fc03dc888ce084e9b1fc", "score": "0.46817172", "text": "@Override\n\tpublic MesAllProcessReq selectBySysCode(String sysCode) throws Exception {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b2fd2c6d95f4ab2bb6a4b9a51097edfa", "score": "0.46771935", "text": "public void writeSample(final Sample sample, final String experimentAccession) {\n // execute this procedure...\n /*\n PROCEDURE \"A2_SAMPLESET\" (\n p_Accession varchar2\n , p_Assays AccessionTable\n , p_Properties PropertyTable\n , p_Species varchar2\n , p_Channel varchar2\n )\n */\n SimpleJdbcCall procedure =\n new SimpleJdbcCall(template)\n .withProcedureName(\"ATLASLDR.A2_SAMPLESET\")\n .withoutProcedureColumnMetaDataAccess()\n .useInParameterNames(\"EXPERIMENTACCESSION\")\n .useInParameterNames(\"SAMPLEACCESSION\")\n .useInParameterNames(\"ASSAYS\")\n .useInParameterNames(\"PROPERTIES\")\n .useInParameterNames(\"SPECIES\")\n .useInParameterNames(\"CHANNEL\")\n .declareParameters(\n new SqlParameter(\"EXPERIMENTACCESSION\", Types.VARCHAR))\n .declareParameters(\n new SqlParameter(\"SAMPLEACCESSION\", Types.VARCHAR))\n .declareParameters(\n new SqlParameter(\"ASSAYS\", OracleTypes.ARRAY, \"ACCESSIONTABLE\"))\n .declareParameters(\n new SqlParameter(\"PROPERTIES\", OracleTypes.ARRAY, \"PROPERTYTABLE\"))\n .declareParameters(\n new SqlParameter(\"SPECIES\", Types.VARCHAR))\n .declareParameters(\n new SqlParameter(\"CHANNEL\", Types.VARCHAR));\n \n // map parameters...\n MapSqlParameterSource params = new MapSqlParameterSource();\n SqlTypeValue accessionsParam =\n sample.getAssayAccessions() == null || sample.getAssayAccessions().isEmpty() ? null :\n convertAssayAccessionsToOracleARRAY(sample.getAssayAccessions());\n SqlTypeValue propertiesParam =\n sample.getProperties() == null || sample.getProperties().isEmpty()\n ? null\n : convertPropertiesToOracleARRAY(sample.getProperties());\n \n params.addValue(\"EXPERIMENTACCESSION\", experimentAccession)\n .addValue(\"SAMPLEACCESSION\", sample.getAccession())\n .addValue(\"ASSAYS\", accessionsParam, OracleTypes.ARRAY, \"ACCESSIONTABLE\")\n .addValue(\"PROPERTIES\", propertiesParam, OracleTypes.ARRAY, \"PROPERTYTABLE\")\n .addValue(\"SPECIES\", sample.getSpecies())\n .addValue(\"CHANNEL\", sample.getChannel());\n \n int assayCount = sample.getAssayAccessions() == null ? 0 : sample.getAssayAccessions().size();\n int propertiesCount = sample.getProperties() == null ? 0 : sample.getProperties().size();\n log.debug(\"Invoking A2_SAMPLESET with the following parameters...\" +\n \"\\n\\texperiment accession: {}\" +\n \"\\n\\tsample accession: {}\" +\n \"\\n\\tassays count: {}\" +\n \"\\n\\tproperties count: {}\" +\n \"\\n\\tspecies: {}\" +\n \"\\n\\tchannel: {}\",\n new Object[]{experimentAccession, sample.getAccession(), assayCount, propertiesCount, sample.getSpecies(),\n sample.getChannel()});\n \n // and execute\n procedure.execute(params);\n }", "title": "" }, { "docid": "ba496d2eb26ab02adcd8c8d16dad2472", "score": "0.46739605", "text": "@Override\n protected List<String> getParametersForUpdate(Program entity) {\n List<String> parameters = getParametersForInsert(entity);\n\n int programId = entity.getId();\n String programIdValue = String.valueOf(programId);\n parameters.add(programIdValue);\n\n return parameters;\n }", "title": "" }, { "docid": "4c65dd2714e7410913ee8c255c1c7075", "score": "0.46737894", "text": "public interface I_X_Action_Purpose {\n\n /** TableName=X_Action_Purpose */\n public static final String Table_Name = \"X_Action_Purpose\";\n\n /** Column name DailyLimit */\n public static final String COLUMNNAME_DailyLimit = \"DailyLimit\";\n\n /** Set Daily Limit\t */\n public void setDailyLimit (int DailyLimit);\n\n /** Get Daily Limit\t */\n public int getDailyLimit();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n /** Set Description.\n * Optional short description of the record\n */\n public void setDescription (String Description);\n\n /** Get Description.\n * Optional short description of the record\n */\n public String getDescription();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n /** Set Active.\n * The record is active in the system\n */\n public void setIsActive (String IsActive);\n\n /** Get Active.\n * The record is active in the system\n */\n public String isActive();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n /** Set Name.\n * Alphanumeric identifier of the entity\n */\n public void setName (String Name);\n\n /** Get Name.\n * Alphanumeric identifier of the entity\n */\n public String getName();\n\n /** Column name SalesValueQuantifiable */\n public static final String COLUMNNAME_SalesValueQuantifiable = \"SalesValueQuantifiable\";\n\n /** Set Quantifiable Sales Value\t */\n public void setSalesValueQuantifiable (String SalesValueQuantifiable);\n\n /** Get Quantifiable Sales Value\t */\n public String isSalesValueQuantifiable();\n\n /** Column name TableName */\n public static final String COLUMNNAME_TableName = \"TableName\";\n\n public static final String COLUMNNAME_TotalSalesValue = \"TotalSalesValue\";\n\n /** Set Total Sales Value\t */\n public void setTotalSalesValue (double TotalSalesValue);\n\n /** Get Total Sales Value\t */\n public double getTotalSalesValue();\n\n /** Column name Value */\n public static final String COLUMNNAME_Value = \"Value\";\n\n /** Set Search Key.\n * Search key for the record in the format required - must be unique\n */\n public void setValue (String Value);\n\n /** Get Search Key.\n * Search key for the record in the format required - must be unique\n */\n public String getValue();\n\n\n /** Column name X_Action_Purpose_ID */\n public static final String COLUMNNAME_X_Action_Purpose_ID = \"X_Action_Purpose_ID\";\n\n /** Set Action Purpose\t */\n public void setX_Action_Purpose_ID (int X_Action_Purpose_ID);\n\n /** Get Action Purpose\t */\n public int getX_Action_Purpose_ID();\n\n /** Column name X_Action_Status_ID */\n public static final String COLUMNNAME_X_Action_Status_ID = \"X_Action_Status_ID\";\n\n /** Set Action Status\t */\n public void setX_Action_Status_ID (int X_Action_Status_ID);\n\n /** Get Action Status\t */\n public int getX_Action_Status_ID();\n\n public static String tableCreationSQL = \"CREATE TABLE X_Action_Purpose ( \"\n + COLUMNNAME_X_Action_Purpose_ID + \" INTEGER PRIMARY KEY , \"\n + COLUMNNAME_X_Action_Status_ID + \" INTEGER, \"\n + COLUMNNAME_Name + \" TEXT, \"\n + COLUMNNAME_DailyLimit + \" INTEGER, \"\n + COLUMNNAME_Description + \" TEXT, \"\n + COLUMNNAME_IsActive + \" TEXT, \"\n + COLUMNNAME_SalesValueQuantifiable + \" TEXT, \"\n + COLUMNNAME_Value + \" TEXT, \"\n + COLUMNNAME_TotalSalesValue + \" NUMERIC \"\n + \" ); \";\n\n public static String tableDeletionSQL = \"DROP TABLE IF EXISTS \" + Table_Name;\n }", "title": "" }, { "docid": "387404b27ba338bd10e2b3c726b4438c", "score": "0.46729392", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic CsoSystemParametersDTO retrieve(CsoSystemParametersDTO bean) throws DAOException {\n\t\tCsoSystemParametersDTO dto = null;\n\n\t\ttry{\n\n\t\t\tString sql = \"SELECT c FROM CsoSystemParameters c \"+ buildWhereClause(bean,true);\n\n\t\t\tCsoSystemParameters csoSystemParameters = csoSystemParametersDao.executeQueryParametersSingleDate(sql, map);\n\n\t\t\t\tif(csoSystemParameters != null){\n\t\t\t\t\tdto = new CsoSystemParametersDTO();\n\t\t\t\t\tdto.setCccoreInterval(csoSystemParameters.getCccoreInterval());\n\t\t\t\t\t\n\t\t\t\t\tif(csoSystemParameters.getCisDownloadInd()!=null){\n\t\t\t\t\tdto.setCisDownloadInd(csoSystemParameters.getCisDownloadInd());\n\t\t\t\t\t}\n\t\t\t\t\tif(csoSystemParameters.getEodDone()!=null){\n\t\t\t\t\tdto.setEodDone(csoSystemParameters.getEodDone());\n\t\t\t\t\t}\n\t\t\t\t\tif(csoSystemParameters.getLiveTestCode()!=null){\n\t\t\t\t\tdto.setLiveTestCode(csoSystemParameters.getLiveTestCode());\n\t\t\t\t\t}\n\t\t\t\t\tif(csoSystemParameters.getNextOutputDate()!=null){\n\t\t\t\t\tdto.setNextOutputDate(csoSystemParameters.getNextOutputDate());\n\t\t\t\t\t}\n\t\t\t\t\tif(csoSystemParameters.getProcessActiveInd()!=null){\n\t\t\t\t\tdto.setProcessActiveInd(csoSystemParameters.getProcessActiveInd());\n\t\t\t\t\t}\n\t\t\t\t\tif(csoSystemParameters.getProcessDate()!=null){\n\t\t\t\t\tdto.setProcessDate(csoSystemParameters.getProcessDate());\n\t\t\t\t\t}\n\t\t\t\t\tif(csoSystemParameters.getRunBatch()!=null){\n\t\t\t\t\tdto.setRunBatch(csoSystemParameters.getRunBatch());\n\t\t\t\t\t}\n\t\t\t\t\tif(csoSystemParameters.getUnixSodDone()!=null){\n\t\t\t\t\tdto.setUnixSodDone(csoSystemParameters.getUnixSodDone());\n\t\t\t\t\t}\n\t\t\t\n\t\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.getMessage();\n\t\t}\n\t\tmap.clear();\n\t\treturn dto;\n\n\t}", "title": "" }, { "docid": "70f7acdad2a78387502282a15721d1df", "score": "0.46715844", "text": "@Override\r\n\t\tpublic void setValues(PreparedStatement ps) throws SQLException {\n for(int i=0;i<colList.size();i++){\r\n\t\t\t\tString key=colList.get(i);\r\n\t\t\t\tString propertyName=config.getMapping(key);\r\n\t\t\t\tString getterName=\"get\"+propertyName.substring(0,1).toUpperCase()+propertyName.substring(1);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tObject type=local.getClass().getMethod(getterName).invoke(local);\r\n\t\t\t\t\tps.setObject(i+1, type);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "040297330dfc19dff3f1ea371a022495", "score": "0.46692988", "text": "@Insert({\n \"insert into mt_product_spu (id, cate_back_id, \",\n \"cate_front, brand_id, \",\n \"type, title, subtitle, \",\n \"product_desc_id, specs_desc_id, \",\n \"support_desc_id, main_image_id, \",\n \"resource, status, \",\n \"created_at, modified_at, \",\n \"is_deleted)\",\n \"values (#{id,jdbcType=INTEGER}, #{cateBackId,jdbcType=INTEGER}, \",\n \"#{cateFront,jdbcType=VARCHAR}, #{brandId,jdbcType=INTEGER}, \",\n \"#{type,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{subtitle,jdbcType=VARCHAR}, \",\n \"#{productDescId,jdbcType=INTEGER}, #{specsDescId,jdbcType=INTEGER}, \",\n \"#{supportDescId,jdbcType=INTEGER}, #{mainImageId,jdbcType=INTEGER}, \",\n \"#{resource,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, \",\n \"#{createdAt,jdbcType=TIMESTAMP}, #{modifiedAt,jdbcType=TIMESTAMP}, \",\n \"#{isDeleted,jdbcType=TINYINT})\"\n })\n int insert(Spu record);", "title": "" }, { "docid": "647211986415f20e2305851897dce5d1", "score": "0.46517548", "text": "@Override\n\tpublic List<SySeguridadAutorizaciones> listarComboSySeguridadAutorizacionesEstablecimiento(\n\t\t\tSySeguridadAutorizaciones objSySeguridadAutorizaciones) {\n\t\ttry {\n\t\t\tQuery query = getCurrentSession()\n\t\t\t\t\t.createSQLQuery(\"SELECT dbo.SY_SeguridadAutorizaciones.AplicacionCodigo, \"\n\t\t\t\t\t\t\t+ \" dbo.SY_SeguridadAutorizaciones.Grupo,\"\n\t\t\t\t\t\t\t+ \"dbo.AC_Sucursal.Sucursal, \"\n\t\t\t\t\t\t\t+ \" dbo.CM_CO_Establecimiento.IdEstablecimiento,\"\n\t\t\t\t\t\t\t+ \"dbo.CM_CO_Establecimiento.Codigo,\"\n\t\t\t\t\t\t\t+ \" dbo.CM_CO_Establecimiento.Nombre,\"\n\t\t\t\t\t\t\t+ \"dbo.CM_CO_Establecimiento.Descripcion, \"\n\t\t\t\t\t\t\t+ \" dbo.CM_CO_Establecimiento.Estado,\"\n\t\t\t\t\t\t\t+ \"dbo.SY_SeguridadAutorizaciones.Usuario , \"\n\t\t\t\t\t\t\t+ \" CM_CO_Establecimiento.IdEstablecimiento as d \"\n\t\t\t\t\t\t\t+ \"FROM dbo.AC_Sucursal INNER JOIN \"\n\t\t\t\t\t\t\t+ \" dbo.CM_CO_Establecimiento ON dbo.AC_Sucursal.Sucursal = dbo.CM_CO_Establecimiento.Sucursal INNER JOIN \"\n\t\t\t\t\t\t\t+ \" dbo.SY_SeguridadAutorizaciones ON dbo.AC_Sucursal.Sucursal = dbo.SY_SeguridadAutorizaciones.Concepto \"\n\t\t\t\t\t\t\t+ \" where ltrim(SY_SeguridadAutorizaciones.Usuario) = '\"\n\t\t\t\t\t\t\t+ objSySeguridadAutorizaciones.getString1() + \"'\" + \" and CM_CO_Establecimiento.Compania ='\"\n\t\t\t\t\t\t\t+ objSySeguridadAutorizaciones.getString2() + \"'\" + \" and CM_CO_Establecimiento.Sucursal ='\"\n\t\t\t\t\t\t\t+ objSySeguridadAutorizaciones.getString3() + \"'\");\n\n\t\t\tList<Object> result = query.list();\n\t\t\tIterator itr = result.iterator();\n\t\t\tList<SySeguridadAutorizaciones> listaRetorno = new ArrayList<SySeguridadAutorizaciones>();\n\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tObject[] obj = (Object[]) itr.next();\n\t\t\t\tSySeguridadAutorizaciones autorizaciones = new SySeguridadAutorizaciones();\n\n\t\t\t\tif (obj[0] != null) {\n\t\t\t\t\tautorizaciones.setString1(String.valueOf(obj[0]));\n\t\t\t\t}\n\n\t\t\t\tif (obj[1] != null) {\n\t\t\t\t\tautorizaciones.setString2(String.valueOf(obj[1]));\n\t\t\t\t}\n\t\t\t\tif (obj[2] != null) {\n\t\t\t\t\tautorizaciones.setString3(String.valueOf(obj[2]));\n\t\t\t\t}\n\t\t\t\tif (obj[3] != null) {\n\t\t\t\t\tautorizaciones.setInt_1(Integer.parseInt(String.valueOf(obj[3])));\n\t\t\t\t}\n\t\t\t\tif (obj[4] != null) {\n\t\t\t\t\tautorizaciones.setString4(String.valueOf(obj[4]));\n\t\t\t\t}\n\t\t\t\tif (obj[5] != null) {\n\t\t\t\t\tautorizaciones.setString5(String.valueOf(obj[5]));\n\t\t\t\t}\n\t\t\t\tif (obj[6] != null) {\n\t\t\t\t\tautorizaciones.setString6(String.valueOf(obj[6]));\n\t\t\t\t}\n\t\t\t\tif (obj[7] != null) {\n\t\t\t\t\tautorizaciones.setInt_2(Integer.parseInt(String.valueOf(obj[7])));\n\t\t\t\t}\n\t\t\t\tif (obj[8] != null) {\n\t\t\t\t\tautorizaciones.setString7(String.valueOf(obj[8]));\n\t\t\t\t}\n\n\t\t\t\tlistaRetorno.add(autorizaciones);\n\t\t\t}\n\n\t\t\treturn listaRetorno;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "24837e61e1f5730e00b23c4d2f406289", "score": "0.4646675", "text": "@JYBatis\npublic interface TaskPrizeDao extends BaseDao<TaskPrizeInfo> {\n int save ( @Param(\"fileName\") String fileName, @Param(\"sycDate\")String date);\n /**\n * 删除全部数据\n */\n void deleteByAll(@Param(\"sycDate\") String sycDate);\n}", "title": "" }, { "docid": "0b524bfbd666143712f5dbd62961fa66", "score": "0.4633675", "text": "private void initSysTable() throws SQLException {\n\t\tStatement stmt = connection.createStatement();\n\t\ttry {\n\t\t\tstmt.execute(\"insert into \" + SYS_TABLE + \" values (1,1,1,1)\");\n\t\t} finally {\n\t\t\tstmt.close();\n\t\t}\n\t}", "title": "" }, { "docid": "d3ea7ecebb13d3408c741f2814074b32", "score": "0.46333477", "text": "public void setSysId(String sysId) {\n\t\tthis.sysId = sysId;\n\t}", "title": "" }, { "docid": "beb000f892331986c7d3e73f715e09b3", "score": "0.46217144", "text": "public interface AuthorDbConst {\n\n public interface AuthorFieldName {\n\n public static final String AUTHOR_ID = \"author_id\";\n public static final String AUTHOR_LASTNAME = \"author_lastname\";\n public static final String AUTHOR_FIRSTNAME = \"author_firstname\";\n public static final String AUTHOR_MIDDLENAME = \"author_middlename\";\n public static final String AUTHOR_EMAIL = \"author_email\";\n public static final String AUTHOR_SEX = \"author_sex\";\n public static final String AUTHOR_DATEOFBIRTH = \"author_dateOfBirth\";\n\n public static final String AUTHOR_SP_AUTHORNAME = \"authorName\";\n\n }\n\n\n public interface AuthorSPName {\n\n public static final String INSERT_AUTHOR = \"InsertAuthor\";\n public static final String UPDATE_AUTHOR = \"UpdateAuthor\";\n public static final String DELETE_AUTHOR = \"DeleteAuthor\";\n public static final String SELECT_ALL_AUTHOR = \"SelectAllAuthor\";\n public static final String SELECT_AUTHOR = \"SelectAuthor\";\n\n }\n\n public interface AuthorSPParamName {\n\n public static final SqlParameter SQL_PARAMETER_AUTHOR_ID = new SqlParameter(AuthorFieldName.AUTHOR_ID + PARAM_IN, Types.INTEGER);\n public static final SqlParameter SQL_PARAMETER_AUTHOR_LASTNAME = new SqlParameter(AuthorFieldName.AUTHOR_LASTNAME + PARAM_IN, Types.VARCHAR);\n public static final SqlParameter SQL_PARAMETER_AUTHOR_FIRSTNAME = new SqlParameter(AuthorFieldName.AUTHOR_FIRSTNAME + PARAM_IN, Types.VARCHAR);\n public static final SqlParameter SQL_PARAMETER_AUTHOR_MIDDLENAME = new SqlParameter(AuthorFieldName.AUTHOR_MIDDLENAME + PARAM_IN, Types.VARCHAR);\n public static final SqlParameter SQL_PARAMETER_AUTHOR_EMAIL = new SqlParameter(AuthorFieldName.AUTHOR_EMAIL + PARAM_IN, Types.VARCHAR);\n public static final SqlParameter SQL_PARAMETER_AUTHOR_SEX = new SqlParameter(AuthorFieldName.AUTHOR_SEX + PARAM_IN, Types.VARCHAR);\n public static final SqlParameter SQL_PARAMETER_AUTHOR_DATEOFBIRTH = new SqlParameter(AuthorFieldName.AUTHOR_DATEOFBIRTH + PARAM_IN, Types.DATE);\n\n }\n\n}", "title": "" }, { "docid": "d1065354f317c224fb4349e5d332b75d", "score": "0.4594246", "text": "@SuppressWarnings(\"all\")\npublic interface I_T_CargoSummary \n{\n\n /** TableName=T_CargoSummary */\n public static final String Table_Name = \"T_CargoSummary\";\n\n /** AD_Table_ID=1100293 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 7 - System - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(7);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AD_PInstance_ID */\n public static final String COLUMNNAME_AD_PInstance_ID = \"AD_PInstance_ID\";\n\n\t/** Set Process Instance.\n\t * Instance of the process\n\t */\n\tpublic void setAD_PInstance_ID (int AD_PInstance_ID);\n\n\t/** Get Process Instance.\n\t * Instance of the process\n\t */\n\tpublic int getAD_PInstance_ID();\n\n\tpublic org.compiere.model.I_AD_PInstance getAD_PInstance() throws RuntimeException;\n\n /** Column name bargename */\n public static final String COLUMNNAME_bargename = \"bargename\";\n\n\t/** Set bargename\t */\n\tpublic void setbargename (String bargename);\n\n\t/** Get bargename\t */\n\tpublic String getbargename();\n\n /** Column name C_BPartner_ID */\n public static final String COLUMNNAME_C_BPartner_ID = \"C_BPartner_ID\";\n\n\t/** Set Business Partner .\n\t * Identifies a Business Partner\n\t */\n\tpublic void setC_BPartner_ID (int C_BPartner_ID);\n\n\t/** Get Business Partner .\n\t * Identifies a Business Partner\n\t */\n\tpublic int getC_BPartner_ID();\n\n\tpublic org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException;\n\n /** Column name C_Invoice_ID */\n public static final String COLUMNNAME_C_Invoice_ID = \"C_Invoice_ID\";\n\n\t/** Set Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic void setC_Invoice_ID (int C_Invoice_ID);\n\n\t/** Get Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic int getC_Invoice_ID();\n\n\tpublic org.compiere.model.I_C_Invoice getC_Invoice() throws RuntimeException;\n\n /** Column name completed_loading */\n public static final String COLUMNNAME_completed_loading = \"completed_loading\";\n\n\t/** Set completed_loading\t */\n\tpublic void setcompleted_loading (Timestamp completed_loading);\n\n\t/** Get completed_loading\t */\n\tpublic Timestamp getcompleted_loading();\n\n /** Column name completed_unloading */\n public static final String COLUMNNAME_completed_unloading = \"completed_unloading\";\n\n\t/** Set completed_unloading\t */\n\tpublic void setcompleted_unloading (Timestamp completed_unloading);\n\n\t/** Get completed_unloading\t */\n\tpublic Timestamp getcompleted_unloading();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name customerlocation */\n public static final String COLUMNNAME_customerlocation = \"customerlocation\";\n\n\t/** Set customerlocation\t */\n\tpublic void setcustomerlocation (String customerlocation);\n\n\t/** Get customerlocation\t */\n\tpublic String getcustomerlocation();\n\n /** Column name customername */\n public static final String COLUMNNAME_customername = \"customername\";\n\n\t/** Set customername\t */\n\tpublic void setcustomername (String customername);\n\n\t/** Get customername\t */\n\tpublic String getcustomername();\n\n /** Column name DateInvoiced */\n public static final String COLUMNNAME_DateInvoiced = \"DateInvoiced\";\n\n\t/** Set Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic void setDateInvoiced (Timestamp DateInvoiced);\n\n\t/** Get Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic Timestamp getDateInvoiced();\n\n /** Column name dischargingportname */\n public static final String COLUMNNAME_dischargingportname = \"dischargingportname\";\n\n\t/** Set dischargingportname\t */\n\tpublic void setdischargingportname (String dischargingportname);\n\n\t/** Get dischargingportname\t */\n\tpublic String getdischargingportname();\n\n /** Column name HBC_Barge_ID */\n public static final String COLUMNNAME_HBC_Barge_ID = \"HBC_Barge_ID\";\n\n\t/** Set Barge\t */\n\tpublic void setHBC_Barge_ID (int HBC_Barge_ID);\n\n\t/** Get Barge\t */\n\tpublic int getHBC_Barge_ID();\n\n\tpublic I_HBC_Barge getHBC_Barge() throws RuntimeException;\n\n /** Column name HBC_Tugboat_ID */\n public static final String COLUMNNAME_HBC_Tugboat_ID = \"HBC_Tugboat_ID\";\n\n\t/** Set TugBoat\t */\n\tpublic void setHBC_Tugboat_ID (int HBC_Tugboat_ID);\n\n\t/** Get TugBoat\t */\n\tpublic int getHBC_Tugboat_ID();\n\n\tpublic I_HBC_Tugboat getHBC_Tugboat() throws RuntimeException;\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name LoadingDraftSurvey */\n public static final String COLUMNNAME_LoadingDraftSurvey = \"LoadingDraftSurvey\";\n\n\t/** Set LoadingDraftSurvey\t */\n\tpublic void setLoadingDraftSurvey (BigDecimal LoadingDraftSurvey);\n\n\t/** Get LoadingDraftSurvey\t */\n\tpublic BigDecimal getLoadingDraftSurvey();\n\n /** Column name loadingportname */\n public static final String COLUMNNAME_loadingportname = \"loadingportname\";\n\n\t/** Set loadingportname\t */\n\tpublic void setloadingportname (String loadingportname);\n\n\t/** Get loadingportname\t */\n\tpublic String getloadingportname();\n\n /** Column name T_CargoSummary_ID */\n public static final String COLUMNNAME_T_CargoSummary_ID = \"T_CargoSummary_ID\";\n\n\t/** Set T_CargoSummary\t */\n\tpublic void setT_CargoSummary_ID (int T_CargoSummary_ID);\n\n\t/** Get T_CargoSummary\t */\n\tpublic int getT_CargoSummary_ID();\n\n /** Column name T_CargoSummary_UU */\n public static final String COLUMNNAME_T_CargoSummary_UU = \"T_CargoSummary_UU\";\n\n\t/** Set T_CargoSummary_UU\t */\n\tpublic void setT_CargoSummary_UU (String T_CargoSummary_UU);\n\n\t/** Get T_CargoSummary_UU\t */\n\tpublic String getT_CargoSummary_UU();\n\n /** Column name tonnage */\n public static final String COLUMNNAME_tonnage = \"tonnage\";\n\n\t/** Set tonnage\t */\n\tpublic void settonnage (BigDecimal tonnage);\n\n\t/** Get tonnage\t */\n\tpublic BigDecimal gettonnage();\n\n /** Column name TotalCargoQty */\n public static final String COLUMNNAME_TotalCargoQty = \"TotalCargoQty\";\n\n\t/** Set Total Cargo Qty\t */\n\tpublic void setTotalCargoQty (BigDecimal TotalCargoQty);\n\n\t/** Get Total Cargo Qty\t */\n\tpublic BigDecimal getTotalCargoQty();\n\n /** Column name tugboatname */\n public static final String COLUMNNAME_tugboatname = \"tugboatname\";\n\n\t/** Set tugboatname\t */\n\tpublic void settugboatname (String tugboatname);\n\n\t/** Get tugboatname\t */\n\tpublic String gettugboatname();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name UserName */\n public static final String COLUMNNAME_UserName = \"UserName\";\n\n\t/** Set User Name\t */\n\tpublic void setUserName (String UserName);\n\n\t/** Get User Name\t */\n\tpublic String getUserName();\n\n /** Column name userposition */\n public static final String COLUMNNAME_userposition = \"userposition\";\n\n\t/** Set userposition\t */\n\tpublic void setuserposition (String userposition);\n\n\t/** Get userposition\t */\n\tpublic String getuserposition();\n}", "title": "" }, { "docid": "ea4f189f324902e60d8a0ce9077760ba", "score": "0.4590751", "text": "public interface MbSysTdssiteInfoDAO {\n\t/**\n\t * Query DB table <tt>MB_SYS_TDSSITE_INFO</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select rnc_id, site_oid, site_name, lac, vendor, longitude, latitude, netgrid, environ, freq_band, cover_type, record_time, update_time, update_user, site_glb_id from mb_sys_tdssite_info where (rnc_id = ?)</tt>\n\t *\n\t *\t@param rncId\n\t *\t@return MbSysTdssiteInfoDO\n\t *\t@throws DataAccessException\n\t */\t \n public MbSysTdssiteInfoDO getRNCByRncId(String rncId) throws DataAccessException;\n\n\t/**\n\t * Insert one <tt>MbSysTdssiteInfoDO</tt> object to DB table <tt>MB_SYS_TDSSITE_INFO</tt>, return primary key\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>insert into mb_sys_tdssite_info(rnc_id,site_oid,site_name,lac,vendor,longitude,latitude,netgrid,environ,freq_band,cover_type,record_time,update_time,update_user,site_glb_id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, sysdate, sysdate, ?, ?)</tt>\n\t *\n\t *\t@param mbSysTdssiteInfo\n\t *\t@return String\n\t *\t@throws DataAccessException\n\t */\t \n public String insertRNC(MbSysTdssiteInfoDO mbSysTdssiteInfo) throws DataAccessException;\n\n\t/**\n\t * Update DB table <tt>MB_SYS_TDSSITE_INFO</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>update mb_sys_tdssite_info set rnc_id=?, site_oid=?, site_name=?, lac=?, vendor=?, longitude=?, latitude=?, netgrid=?, environ=?, freq_band=?, cover_type=?, update_user=?, site_glb_id=? where (rnc_id = ?)</tt>\n\t *\n\t *\t@param mbSysTdssiteInfo\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int updateRNC(MbSysTdssiteInfoDO mbSysTdssiteInfo) throws DataAccessException;\n\n\t/**\n\t * Delete records from DB table <tt>MB_SYS_TDSSITE_INFO</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>delete from mb_sys_tdssite_info where (rnc_id = ?)</tt>\n\t *\n\t *\t@param rncId\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int deleteRNC(String rncId) throws DataAccessException;\n\n}", "title": "" }, { "docid": "2ff096938a427dc775d699642e0e20f9", "score": "0.4577746", "text": "@SuppressWarnings(\"all\")\npublic interface I_JP_PP_FactLine \n{\n\n /** TableName=JP_PP_FactLine */\n public static final String Table_Name = \"JP_PP_FactLine\";\n\n /** AD_Table_ID=1000272 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 1 - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(1);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name C_UOM_ID */\n public static final String COLUMNNAME_C_UOM_ID = \"C_UOM_ID\";\n\n\t/** Set UOM.\n\t * Unit of Measure\n\t */\n\tpublic void setC_UOM_ID (int C_UOM_ID);\n\n\t/** Get UOM.\n\t * Unit of Measure\n\t */\n\tpublic int getC_UOM_ID();\n\n\tpublic org.compiere.model.I_C_UOM getC_UOM() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DocumentNote */\n public static final String COLUMNNAME_DocumentNote = \"DocumentNote\";\n\n\t/** Set Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic void setDocumentNote (String DocumentNote);\n\n\t/** Get Document Note.\n\t * Additional information for a Document\n\t */\n\tpublic String getDocumentNote();\n\n /** Column name Help */\n public static final String COLUMNNAME_Help = \"Help\";\n\n\t/** Set Comment/Help.\n\t * Comment or Hint\n\t */\n\tpublic void setHelp (String Help);\n\n\t/** Get Comment/Help.\n\t * Comment or Hint\n\t */\n\tpublic String getHelp();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCreated */\n public static final String COLUMNNAME_IsCreated = \"IsCreated\";\n\n\t/** Set Records created\t */\n\tpublic void setIsCreated (String IsCreated);\n\n\t/** Get Records created\t */\n\tpublic String getIsCreated();\n\n /** Column name IsEndProduct */\n public static final String COLUMNNAME_IsEndProduct = \"IsEndProduct\";\n\n\t/** Set End Product.\n\t * End Product of production\n\t */\n\tpublic void setIsEndProduct (boolean IsEndProduct);\n\n\t/** Get End Product.\n\t * End Product of production\n\t */\n\tpublic boolean isEndProduct();\n\n /** Column name JP_PP_FactLine_ID */\n public static final String COLUMNNAME_JP_PP_FactLine_ID = \"JP_PP_FactLine_ID\";\n\n\t/** Set PP Fact Line\t */\n\tpublic void setJP_PP_FactLine_ID (int JP_PP_FactLine_ID);\n\n\t/** Get PP Fact Line\t */\n\tpublic int getJP_PP_FactLine_ID();\n\n /** Column name JP_PP_FactLine_UU */\n public static final String COLUMNNAME_JP_PP_FactLine_UU = \"JP_PP_FactLine_UU\";\n\n\t/** Set PP Fact Line(UU)\t */\n\tpublic void setJP_PP_FactLine_UU (String JP_PP_FactLine_UU);\n\n\t/** Get PP Fact Line(UU)\t */\n\tpublic String getJP_PP_FactLine_UU();\n\n /** Column name JP_PP_Fact_ID */\n public static final String COLUMNNAME_JP_PP_Fact_ID = \"JP_PP_Fact_ID\";\n\n\t/** Set PP Fact.\n\t * JPIERE-0501:JPBP\n\t */\n\tpublic void setJP_PP_Fact_ID (int JP_PP_Fact_ID);\n\n\t/** Get PP Fact.\n\t * JPIERE-0501:JPBP\n\t */\n\tpublic int getJP_PP_Fact_ID();\n\n\tpublic I_JP_PP_Fact getJP_PP_Fact() throws RuntimeException;\n\n /** Column name JP_PP_PlanLine_ID */\n public static final String COLUMNNAME_JP_PP_PlanLine_ID = \"JP_PP_PlanLine_ID\";\n\n\t/** Set PP Plan Line\t */\n\tpublic void setJP_PP_PlanLine_ID (int JP_PP_PlanLine_ID);\n\n\t/** Get PP Plan Line\t */\n\tpublic int getJP_PP_PlanLine_ID();\n\n\tpublic I_JP_PP_PlanLine getJP_PP_PlanLine() throws RuntimeException;\n\n /** Column name JP_Processing1 */\n public static final String COLUMNNAME_JP_Processing1 = \"JP_Processing1\";\n\n\t/** Set Process Now\t */\n\tpublic void setJP_Processing1 (String JP_Processing1);\n\n\t/** Get Process Now\t */\n\tpublic String getJP_Processing1();\n\n /** Column name JP_Processing2 */\n public static final String COLUMNNAME_JP_Processing2 = \"JP_Processing2\";\n\n\t/** Set Process Now\t */\n\tpublic void setJP_Processing2 (String JP_Processing2);\n\n\t/** Get Process Now\t */\n\tpublic String getJP_Processing2();\n\n /** Column name JP_Processing3 */\n public static final String COLUMNNAME_JP_Processing3 = \"JP_Processing3\";\n\n\t/** Set Process Now\t */\n\tpublic void setJP_Processing3 (String JP_Processing3);\n\n\t/** Get Process Now\t */\n\tpublic String getJP_Processing3();\n\n /** Column name Line */\n public static final String COLUMNNAME_Line = \"Line\";\n\n\t/** Set Line No.\n\t * Unique line for this document\n\t */\n\tpublic void setLine (int Line);\n\n\t/** Get Line No.\n\t * Unique line for this document\n\t */\n\tpublic int getLine();\n\n /** Column name M_AttributeSetInstance_ID */\n public static final String COLUMNNAME_M_AttributeSetInstance_ID = \"M_AttributeSetInstance_ID\";\n\n\t/** Set Attribute Info.\n\t * Product Attribute Set Instance\n\t */\n\tpublic void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID);\n\n\t/** Get Attribute Info.\n\t * Product Attribute Set Instance\n\t */\n\tpublic int getM_AttributeSetInstance_ID();\n\n\tpublic I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException;\n\n /** Column name M_Locator_ID */\n public static final String COLUMNNAME_M_Locator_ID = \"M_Locator_ID\";\n\n\t/** Set Locator.\n\t * Warehouse Locator\n\t */\n\tpublic void setM_Locator_ID (int M_Locator_ID);\n\n\t/** Get Locator.\n\t * Warehouse Locator\n\t */\n\tpublic int getM_Locator_ID();\n\n\tpublic org.compiere.model.I_M_Locator getM_Locator() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic org.compiere.model.I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name M_ProductionLine_ID */\n public static final String COLUMNNAME_M_ProductionLine_ID = \"M_ProductionLine_ID\";\n\n\t/** Set Production Line.\n\t * Document Line representing a production\n\t */\n\tpublic void setM_ProductionLine_ID (int M_ProductionLine_ID);\n\n\t/** Get Production Line.\n\t * Document Line representing a production\n\t */\n\tpublic int getM_ProductionLine_ID();\n\n\tpublic org.compiere.model.I_M_ProductionLine getM_ProductionLine() throws RuntimeException;\n\n /** Column name MovementQty */\n public static final String COLUMNNAME_MovementQty = \"MovementQty\";\n\n\t/** Set Movement Quantity.\n\t * Quantity of a product moved.\n\t */\n\tpublic void setMovementQty (BigDecimal MovementQty);\n\n\t/** Get Movement Quantity.\n\t * Quantity of a product moved.\n\t */\n\tpublic BigDecimal getMovementQty();\n\n /** Column name PlannedQty */\n public static final String COLUMNNAME_PlannedQty = \"PlannedQty\";\n\n\t/** Set Planned Quantity.\n\t * Planned quantity for this project\n\t */\n\tpublic void setPlannedQty (BigDecimal PlannedQty);\n\n\t/** Get Planned Quantity.\n\t * Planned quantity for this project\n\t */\n\tpublic BigDecimal getPlannedQty();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name QtyUsed */\n public static final String COLUMNNAME_QtyUsed = \"QtyUsed\";\n\n\t/** Set Quantity Used\t */\n\tpublic void setQtyUsed (BigDecimal QtyUsed);\n\n\t/** Get Quantity Used\t */\n\tpublic BigDecimal getQtyUsed();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "title": "" }, { "docid": "e713753e5b266dbf9beecd1bc14d9b59", "score": "0.4574849", "text": "private void privateExecute( )\r\n {\r\n pr_default.execute(0);\r\n while ( (pr_default.getStatus(0) != 101) )\r\n {\r\n A81EntidadId = TABLEID41U2_A81EntidadId[0] ;\r\n A42EmpresaId = TABLEID41U2_A42EmpresaId[0] ;\r\n A31CfgComprobanteId = TABLEID41U2_A31CfgComprobanteId[0] ;\r\n A32CfgComprobantePrefijo = TABLEID41U2_A32CfgComprobantePrefijo[0] ;\r\n A55ComprobanteNumero = TABLEID41U2_A55ComprobanteNumero[0] ;\r\n A35CfgComprobanteDetalleLetra = TABLEID41U2_A35CfgComprobanteDetalleLetra[0] ;\r\n /*\r\n INSERT RECORD ON TABLE Entidad\r\n\r\n */\r\n W81EntidadId = A81EntidadId ;\r\n W82EntidadNombre = A82EntidadNombre ;\r\n W82EntidadNombre = A82EntidadNombre ;\r\n W83EntidadNumeroDocumento = A83EntidadNumeroDocumento ;\r\n W83EntidadNumeroDocumento = A83EntidadNumeroDocumento ;\r\n W9TipoDocumentoId = A9TipoDocumentoId ;\r\n W9TipoDocumentoId = A9TipoDocumentoId ;\r\n W15CondicionCpraVtaId = A15CondicionCpraVtaId ;\r\n W15CondicionCpraVtaId = A15CondicionCpraVtaId ;\r\n W13CondicionIvaId = A13CondicionIvaId ;\r\n W13CondicionIvaId = A13CondicionIvaId ;\r\n W1ProvinciaId = A1ProvinciaId ;\r\n W1ProvinciaId = A1ProvinciaId ;\r\n W3PaisId = A3PaisId ;\r\n W3PaisId = A3PaisId ;\r\n W5LocalidadId = A5LocalidadId ;\r\n W5LocalidadId = A5LocalidadId ;\r\n W94EntidadTipo = A94EntidadTipo ;\r\n W94EntidadTipo = A94EntidadTipo ;\r\n W95EntidadActiva = A95EntidadActiva ;\r\n W95EntidadActiva = A95EntidadActiva ;\r\n if ( (GXutil.strcmp(\"\", A82EntidadNombre)==0) )\r\n {\r\n A82EntidadNombre = \" \" ;\r\n }\r\n else\r\n {\r\n }\r\n if ( (GXutil.strcmp(\"\", A83EntidadNumeroDocumento)==0) )\r\n {\r\n A83EntidadNumeroDocumento = \" \" ;\r\n }\r\n else\r\n {\r\n }\r\n if ( (0==A9TipoDocumentoId) )\r\n {\r\n A9TipoDocumentoId = (short)(0) ;\r\n }\r\n else\r\n {\r\n }\r\n if ( (0==A15CondicionCpraVtaId) )\r\n {\r\n A15CondicionCpraVtaId = (short)(0) ;\r\n }\r\n else\r\n {\r\n }\r\n if ( (0==A13CondicionIvaId) )\r\n {\r\n A13CondicionIvaId = (short)(0) ;\r\n }\r\n else\r\n {\r\n }\r\n if ( (0==A1ProvinciaId) )\r\n {\r\n A1ProvinciaId = (short)(0) ;\r\n }\r\n else\r\n {\r\n }\r\n if ( (0==A3PaisId) )\r\n {\r\n A3PaisId = (short)(0) ;\r\n }\r\n else\r\n {\r\n }\r\n if ( (0==A5LocalidadId) )\r\n {\r\n A5LocalidadId = (short)(0) ;\r\n }\r\n else\r\n {\r\n }\r\n if ( (0==A94EntidadTipo) )\r\n {\r\n A94EntidadTipo = (byte)(0) ;\r\n }\r\n else\r\n {\r\n }\r\n if ( (false==A95EntidadActiva) )\r\n {\r\n A95EntidadActiva = false ;\r\n }\r\n else\r\n {\r\n }\r\n /* Using cursor TABLEID41U3 */\r\n pr_default.execute(1, new Object[] {new Integer(A81EntidadId)});\r\n if ( (pr_default.getStatus(1) != 101) )\r\n {\r\n Gx_err = (short)(1) ;\r\n Gx_emsg = localUtil.getMessages().getMessage(\"GXM_noupdate\") ;\r\n }\r\n else\r\n {\r\n Gx_err = (short)(0) ;\r\n Gx_emsg = \"\" ;\r\n /* Using cursor TABLEID41U4 */\r\n pr_default.execute(2, new Object[] {new Integer(A81EntidadId), A82EntidadNombre, A83EntidadNumeroDocumento, new Short(A9TipoDocumentoId), new Short(A15CondicionCpraVtaId), new Short(A13CondicionIvaId), new Short(A1ProvinciaId), new Short(A3PaisId), new Short(A5LocalidadId), new Byte(A94EntidadTipo), new Boolean(A95EntidadActiva)});\r\n Application.getSmartCacheProvider(remoteHandle).setUpdated(\"Entidad\") ;\r\n }\r\n A81EntidadId = W81EntidadId ;\r\n A82EntidadNombre = W82EntidadNombre ;\r\n A82EntidadNombre = W82EntidadNombre ;\r\n A83EntidadNumeroDocumento = W83EntidadNumeroDocumento ;\r\n A83EntidadNumeroDocumento = W83EntidadNumeroDocumento ;\r\n A9TipoDocumentoId = W9TipoDocumentoId ;\r\n A9TipoDocumentoId = W9TipoDocumentoId ;\r\n A15CondicionCpraVtaId = W15CondicionCpraVtaId ;\r\n A15CondicionCpraVtaId = W15CondicionCpraVtaId ;\r\n A13CondicionIvaId = W13CondicionIvaId ;\r\n A13CondicionIvaId = W13CondicionIvaId ;\r\n A1ProvinciaId = W1ProvinciaId ;\r\n A1ProvinciaId = W1ProvinciaId ;\r\n A3PaisId = W3PaisId ;\r\n A3PaisId = W3PaisId ;\r\n A5LocalidadId = W5LocalidadId ;\r\n A5LocalidadId = W5LocalidadId ;\r\n A94EntidadTipo = W94EntidadTipo ;\r\n A94EntidadTipo = W94EntidadTipo ;\r\n A95EntidadActiva = W95EntidadActiva ;\r\n A95EntidadActiva = W95EntidadActiva ;\r\n /* End Insert */\r\n pr_default.close(1);\r\n pr_default.readNext(0);\r\n }\r\n pr_default.close(0);\r\n cleanup();\r\n }", "title": "" }, { "docid": "62f634eb75e5756d58d98c9bea7246cf", "score": "0.45727542", "text": "private void setCoordSysParams( CoordSys coordSys, ParamElement[] params ) throws SedParsingException\n {\n for(int pii=0; pii < params.length; pii++)\n {\n\n String paramUtype = params[pii].getAttribute(VOTableKeywords._UTYPE);\n int utypeIdx = VOTableKeywords.getUtypeFromString( paramUtype, this.namespace );\n\n switch (utypeIdx)\n {\n case VOTableKeywords.SEG_CS_ID:\n coordSys.setId( params[pii].getValue() );\n break;\n case VOTableKeywords.SEG_CS_UCD:\n coordSys.setUcd( params[pii].getValue() );\n break;\n case VOTableKeywords.SEG_CS_TYPE:\n coordSys.setType( params[pii].getValue() );\n break;\n case VOTableKeywords.SEG_CS_HREF:\n coordSys.setHref( params[pii].getValue() );\n break;\n default:\n this.setCustomParam (coordSys, params[pii]);\n break;\n\n }\n }\n }", "title": "" }, { "docid": "45d4a943c627f8bbc56e033d4be3c73c", "score": "0.45701504", "text": "@Override\r\n\tpublic VOParmTpParcelamento consultarParametrizacaoParcelamento() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "1b7490365841e6be07d48a255184a211", "score": "0.45687205", "text": "public ListVos2 (String args[]) {\n\n/*\n // +------------------------------------------------------------+\n // | Load the Oracle JDBC driver and connect to the dabase |\n // +------------------------------------------------------------+\n try {\n Class.forName(sc.DRIVER);\n conn = DriverManager.getConnection\n (sc.CONNECTION1 + sc.USER + \"/\" + sc.PWD +\n sc.CONNECTION); // steamer\n conn.setAutoCommit(false);\n } catch (Exception e) {\n return;\n } // try-catch\n\n // prepare the sql string\n String sql = \"\";\n*/\n\n // +------------------------------------------------------------+\n // | Get input paramaters |\n // +------------------------------------------------------------+\n String datatypeCode = ec.getArgument(args,sc.CODE);\n String sessionCode = ec.getArgument(args,sc.PSC); //ub03\n String latNorth = ec.getArgument(args,sc.LATITUDENORTH);\n String latSouth = ec.getArgument(args,sc.LATITUDESOUTH);\n String lonWest = ec.getArgument(args,sc.LONGITUDEWEST);\n String lonEast = ec.getArgument(args,sc.LONGITUDEEAST);\n String startDate = ec.getArgument(args,sc.STARTDATE);\n String endDate = ec.getArgument(args,sc.ENDDATE);\n\n // +------------------------------------------------------------+\n // | Get the datatype details |\n // +------------------------------------------------------------+\n String datatypeName = \"\";\n String datatypeDesc = \"\";\n try {\n\n sql =\n \" select name, description \"+\n \" from survey_type \"+\n \" where code = \"+datatypeCode;\n\n stmt = conn.createStatement();\n rset = stmt.executeQuery(sql);\n\n if (dbg) System.out.println(\"<br> **sql \"+sql);\n\n while (rset.next()) {\n datatypeName = checkNull(rset.getString(1));\n datatypeDesc = checkNull(rset.getString(2));\n if (dbg) System.out.println(\"<br> **datatypeName \"+datatypeName);\n\n } //while (rset.next()) {\n\n rset.close();\n stmt.close();\n rset = null;\n stmt = null;\n\n } catch (SQLException e) {\n System.err.println(\"<br> \"+e.getMessage());\n e.printStackTrace();\n } // try-catch\n\n // +------------------------------------------------------------+\n // | Create the main listing table |\n // +------------------------------------------------------------+\n DynamicTable header_tab = new DynamicTable(1);\n header_tab\n .setBorder(1)\n .setCellSpacing(1)\n .setBackgroundColor(new Color(\"FFFF99\"))\n .setFrame(ITableFrame.BOX)\n .setRules(ITableRules.ALL)\n ;\n\n // +------------------------------------------------------------+\n // | Create the headings |\n // +------------------------------------------------------------+\n TableRow rows = new TableRow();\n rows.addCell(new TableHeaderCell(new SimpleItem(\n datatypeName + \"<br>\" +datatypeDesc).setFontSize(5)));\n header_tab.addRow(rows);\n\n // +------------------------------------------------------------+\n // | Build a new row and add to the list table |\n // +------------------------------------------------------------+\n rows = new TableRow();\n rows.addCell(new TableDataCell(\n \"Date range : from 1662 till present<br>\" +\n \"Number of records : > 7.25 million<br>\" +\n \"Area : 10 N - 80 S, 30 W - 70 E\"));\n header_tab.addRow(rows);\n\n this.addItem(header_tab .setCenter());\n\n // +------------------------------------------------------------+\n // | Info Heading |\n // +------------------------------------------------------------+\n this.addItem(new SimpleItem(\"<br>\"));\n\n if (!\"\".equals(sessionCode)) {\n\n // +------------------------------------------------------------+\n // | Create the table to display allowable extractions |\n // +------------------------------------------------------------+\n DynamicTable infoTab = new DynamicTable(10);\n infoTab\n .setBorder(3)\n .setBackgroundColor(new Color(\"FFFF99\"))\n .setFrame(ITableFrame.BOX)\n .setRules(ITableRules.ALL);\n rows = new TableRow();\n rows.addCell(new TableDataCell(\n \"The following extractions are allowed on-line:<br>\" +\n \"1. 1 degree, up to 10 years of data<br>\" +\n \"2. 1 year of data, up to 10 degrees square<br>\" +\n \"Any other extraction size an off-line request will \" +\n \"be submitted on your behalf\"));\n infoTab.addRow(rows);\n this.addItem(infoTab.setCenter());\n this.addItem(new SimpleItem(\"<br>\"));\n\n // +------------------------------------------------------------+\n // | Enter a input parameters |\n // +------------------------------------------------------------+\n DynamicTable table = new DynamicTable(1);\n table.setBorder(0).setCellPadding(0).setCellSpacing(0);\n table.setFrame(ITableFrame.BOX).setRules(ITableRules.NONE);\n table.addRow(ec.latlonRangeInput(\"\", 6));\n ec.datetimeRangeInput(table, \"daterange\", 12,\n \"\", \"00:00\", \"\", \"23:59\", \"\");\n\n Form frm = new Form(\"GET\", sc.APP);\n frm\n .addItem(table.setCenter())\n .addItem(new Hidden(sc.SCREEN, sc.DATATYPEVOS2))\n .addItem(new Hidden(sc.CODE, datatypeCode))\n .addItem(new Hidden(sc.PSC, sessionCode)) //ub03\n .addItem(\"<br>\")\n .addItem(new Submit(\"Submit\", \"Go!\").setCenter())\n ;\n\n this.addItem(frm);\n\n } // if (!\"\".equals(sessionCode))\n\n // +------------------------------------------------------------+\n // | Close down the Oracle database session |\n // +------------------------------------------------------------+\n try {\n if (stmt != null) {\n stmt.close();\n stmt = null;\n } // if (stmt != null)\n if (rset != null) {\n rset.close();\n rset = null;\n } // if (rset != null)\n if (conn != null) {\n conn.close();\n conn = null;\n } // if (conn != null)\n } catch (SQLException e) { }\n\n }", "title": "" }, { "docid": "ed047923897536007010d4dbfcab91e9", "score": "0.45629323", "text": "public void makeSql() {\n for(int i=0; i<arr_sql.length; i++)\n arr_sql[i] = new StringBuffer();\n \n //매입자료 조회\n arr_sql[0].append (\"{ CALL SALES.PR_AC810B_02 (?, ?) }\");\n \n //매입자료 생성\n arr_sql[1].append (\"{ CALL SALES.PR_AC810B_01 (?, ?, ?, ?, ?, ?, ?) }\");\n\t}", "title": "" }, { "docid": "dedc1a8d904f42821bdcf40b091b2a0a", "score": "0.45610902", "text": "public static String getIndMostrarColumnasDesc() throws SQLException {\n parametros = new ArrayList();\n log.debug(\"PTOVENTA_GRAL.GET_IND_MOSTRAR_DESC\" + parametros);\n return FarmaDBUtility.executeSQLStoredProcedureStr(\"PTOVENTA_GRAL.GET_IND_MOSTRAR_DESC\", parametros);\n }", "title": "" }, { "docid": "1554a8628a1c1378fa234121a15a52ea", "score": "0.45588642", "text": "@PersistenceContext\r\n public void write2ModelParam() {\r\n // get all model initial conditions\r\n ModelAPI mapi = new ModelAPI();\r\n List<Model> mList = mapi.getAllModelInitialConditions();\r\n List<BeamParameterProp> bppList = null;\r\n\r\n // write the header\r\n StringBuilder sb = new StringBuilder(\"<?xml version = '1.0' encoding = 'UTF-8'?>\\n\"\r\n + \"<!DOCTYPE tablegroup [\\n\"\r\n + \" <!ELEMENT tablegroup (table*) >\\n\"\r\n + \" <!ELEMENT table (schema, record*) >\\n\"\r\n + \" <!ATTLIST table name NMTOKEN #REQUIRED >\\n\"\r\n + \" <!ATTLIST table recordClass CDATA #IMPLIED >\\n\"\r\n + \" <!ELEMENT schema (attribute*) >\\n\"\r\n + \" <!ELEMENT attribute EMPTY >\\n\"\r\n + \" <!ATTLIST attribute isPrimaryKey (true|false) #IMPLIED>\\n\"\r\n + \" <!ATTLIST attribute name NMTOKEN #REQUIRED >\\n\"\r\n + \" <!ATTLIST attribute type CDATA #REQUIRED >\\n\"\r\n + \" <!ATTLIST attribute defaultValue CDATA #IMPLIED>\\n\"\r\n + \" <!ELEMENT record EMPTY >\\n\"\r\n + \" <!ATTLIST record name NMTOKEN #REQUIRED >\\n\"\r\n + \" <!ATTLIST record mass CDATA #IMPLIED >\\n\"\r\n + \" <!ATTLIST record charge CDATA #IMPLIED >\\n\"\r\n + \" <!ATTLIST record species CDATA #IMPLIED >\\n\"\r\n + \" <!ATTLIST record KE CDATA #IMPLIED >\\n\"\r\n + \"]>\\n\");\r\n\r\n sb.append(\"<tablegroup>\\n\");\r\n\r\n sb.append(\" <table name=\\\"species\\\">\\n\");\r\n sb.append(\" <schema>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"true\\\" name=\\\"name\\\" type=\\\"java.lang.String\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"mass\\\" type=\\\"java.lang.Double\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"charge\\\" type=\\\"java.lang.Double\\\"/>\\n\");\r\n sb.append(\" </schema>\\n\");\r\n\r\n // get all particle types\r\n ParticleTypeAPI pta = new ParticleTypeAPI();\r\n List<ParticleType> pList = pta.getAllParticleTypes();\r\n for (int i = 0; i < pList.size(); i++) {\r\n sb.append(\" <record name=\\\"\");\r\n sb.append(pList.get(i).getParticleName());\r\n sb.append(\"\\\" mass=\\\"\");\r\n sb.append(pList.get(i).getParticleMass());\r\n sb.append(\"\\\" charge=\\\"\");\r\n sb.append(pList.get(i).getParticleCharge());\r\n sb.append(\"\\\"/>\\n\");\r\n }\r\n\r\n sb.append(\" </table>\\n\");\r\n\r\n // for \"beam\" table\r\n sb.append(\" <table name=\\\"beam\\\">\\n\");\r\n sb.append(\" <schema>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"true\\\" name=\\\"name\\\" type=\\\"java.lang.String\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"I\\\" type=\\\"java.lang.Double\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"Q\\\" type=\\\"java.lang.Double\\\"/>\\n\");\r\n sb.append(\" </schema>\\n\");\r\n //I:current Q:charge\r\n sb.append(\" <record name=\\\"default\\\" I=\\\"0.01483760\\\" Q=\\\"8.07168E-15\\\"/>\\n\");\r\n for (int i = 0; i < mList.size(); i++) {\r\n // get beam parameters for this model\r\n BeamParameterAPI bpa = new BeamParameterAPI();\r\n List<BeamParameter> bpaList = bpa.getAllBeamParametersForModel(mList.get(i));\r\n // get beam properties\r\n Query q;\r\n if (bpaList.size() > 0) {\r\n\r\n q = em.createQuery(\"SELECT bpp FROM BeamParameterProp bpp JOIN bpp.beamParameterId pid WHERE pid.modelId=:modelId\")\r\n .setParameter(\"modelId\", mList.get(i));\r\n bppList = q.getResultList();\r\n\r\n if (!bppList.isEmpty()) {\r\n sb.append(\" <record name=\\\"\");\r\n //sb.append(bpList.get(i).getModelId().getModelName());\r\n sb.append(mList.get(i).getModelName());\r\n sb.append(\"\\\" \");\r\n for (int j = 0; j < bppList.size(); j++) {\r\n if (bppList.get(j).getPropCategory().equals(\"beam\") && bppList.get(j).getPropertyName().equals(\"current\")) {\r\n sb.append(\"I=\\\"\" + bppList.get(j).getBeamParameterDouble());\r\n sb.append(\"\\\" \");\r\n\r\n }\r\n if (bppList.get(j).getPropCategory().equals(\"beam\") && bppList.get(j).getPropertyName().equals(\"charge\")) {\r\n sb.append(\"Q=\\\"\" + bppList.get(j).getBeamParameterDouble());\r\n sb.append(\"\\\"\");\r\n\r\n }\r\n }\r\n sb.append(\"/>\\n\");\r\n }\r\n }\r\n }\r\n\r\n sb.append(\" </table>\\n\");\r\n\r\n // for \"adaptivetracker\" table\r\n sb.append(\" <table name=\\\"adaptivetracker\\\">\\n\");\r\n sb.append(\" <schema>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"true\\\" name=\\\"name\\\" type=\\\"java.lang.String\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"errortol\\\" type=\\\"java.lang.Double\\\" defaultValue=\\\"1.0E-5\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"initstep\\\" type=\\\"java.lang.Double\\\" defaultValue=\\\"0.01\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"maxstep\\\" type=\\\"java.lang.Double\\\" defaultValue=\\\"0.0\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"norm\\\" type=\\\"java.lang.Integer\\\" defaultValue=\\\"0\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"order\\\" type=\\\"java.lang.Integer\\\" defaultValue=\\\"2\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"slack\\\" type=\\\"java.lang.Double\\\" defaultValue=\\\"0.05\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"maxiter\\\" type=\\\"java.lang.Integer\\\" defaultValue=\\\"50\\\"/>\\n\");\r\n sb.append(\"\t</schema>\\n\");\r\n sb.append(\"\t<record name=\\\"default\\\"/>\\n\");\r\n for (int i = 0; i < mList.size(); i++) {\r\n sb.append(\" <record name=\\\"\");\r\n sb.append(mList.get(i).getModelName());\r\n sb.append(\"\\\" errortol=\\\"0.1\\\" initstep=\\\"0.1\\\" maxiter=\\\"1000\\\"/>\\n\");\r\n }\r\n sb.append(\" </table>\\n\");\r\n\r\n // for \"twiss\" table\r\n sb.append(\" <table name=\\\"twiss\\\">\\n\");\r\n sb.append(\" <schema>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"true\\\" name=\\\"name\\\" type=\\\"java.lang.String\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"true\\\" name=\\\"coordinate\\\" type=\\\"java.lang.String\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"alpha\\\" type=\\\"java.lang.Double\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"beta\\\" type=\\\"java.lang.Double\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"emittance\\\" type=\\\"java.lang.Double\\\"/>\\n\");\r\n sb.append(\"\t</schema>\\n\");\r\n // TODO\r\n for (int i = 0; i < mList.size(); i++) {\r\n // get twiss properties\r\n Query q;\r\n\r\n q = em.createQuery(\"SELECT bpp FROM BeamParameterProp bpp JOIN bpp.beamParameterId pid WHERE pid.modelId=:modelId\")\r\n .setParameter(\"modelId\", mList.get(i));\r\n bppList = q.getResultList();\r\n // TODO: need to fix problem here \r\n if (!bppList.isEmpty()) {\r\n sb.append(\" <record name=\\\"\");\r\n sb.append(mList.get(i).getModelName());\r\n sb.append(\"\\\" coordinate=\\\"x\");\r\n // loop over all beam parameter properties\r\n for (int j = 0; j < bppList.size(); j++) {\r\n switch (bppList.get(j).getPropertyName()) {\r\n case \"x_alpha\":\r\n sb.append(\"\\\" alpha=\\\"\");\r\n sb.append(bppList.get(j).getBeamParameterDouble());\r\n break;\r\n case \"x_beta\":\r\n sb.append(\"\\\" beta=\\\"\");\r\n sb.append(bppList.get(j).getBeamParameterDouble());\r\n break;\r\n case \"x_emittance\":\r\n sb.append(\"\\\" emittance=\\\"\");\r\n sb.append(bppList.get(j).getBeamParameterDouble());\r\n break;\r\n }\r\n }\r\n sb.append(\"\\\"/>\\n\");\r\n\r\n // for y coordinate\r\n sb.append(\" <record name=\\\"\");\r\n sb.append(mList.get(i).getModelName());\r\n sb.append(\"\\\" coordinate=\\\"y\");\r\n // loop over all beam parameter properties\r\n for (int j = 0; j < bppList.size(); j++) {\r\n switch (bppList.get(j).getPropertyName()) {\r\n case \"y_alpha\":\r\n sb.append(\"\\\" alpha=\\\"\");\r\n sb.append(bppList.get(j).getBeamParameterDouble());\r\n break;\r\n case \"y_beta\":\r\n sb.append(\"\\\" beta=\\\"\");\r\n sb.append(bppList.get(j).getBeamParameterDouble());\r\n break;\r\n case \"y_emittance\":\r\n sb.append(\"\\\" emittance=\\\"\");\r\n sb.append(bppList.get(j).getBeamParameterDouble());\r\n break;\r\n }\r\n }\r\n sb.append(\"\\\"/>\\n\");\r\n\r\n // for x coordinate\r\n sb.append(\" <record name=\\\"\");\r\n sb.append(mList.get(i).getModelName());\r\n sb.append(\"\\\" coordinate=\\\"z\");\r\n // loop over all beam parameter properties\r\n for (int j = 0; j < bppList.size(); j++) {\r\n switch (bppList.get(j).getPropertyName()) {\r\n case \"z_alpha\":\r\n sb.append(\"\\\" alpha=\\\"\");\r\n sb.append(bppList.get(j).getBeamParameterDouble());\r\n break;\r\n case \"z_beta\":\r\n sb.append(\"\\\" beta=\\\"\");\r\n sb.append(bppList.get(j).getBeamParameterDouble());\r\n break;\r\n case \"z_emittance\":\r\n sb.append(\"\\\" emittance=\\\"\");\r\n sb.append(bppList.get(j).getBeamParameterDouble());\r\n break;\r\n }\r\n }\r\n sb.append(\"\\\"/>\\n\");\r\n }\r\n }\r\n sb.append(\" </table>\\n\");\r\n\r\n // for \"location\" table\r\n sb.append(\" <table name=\\\"location\\\">\\n\");\r\n sb.append(\" <schema>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"true\\\" name=\\\"name\\\" type=\\\"java.lang.String\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"species\\\" type=\\\"java.lang.String\\\" defaultValue=\\\"PROTON\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"W\\\" type=\\\"java.lang.Double\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"start_elem\\\" type=\\\"java.lang.String\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"s\\\" type=\\\"java.lang.Double\\\" defaultValue=\\\"0\\\"/>\\n\");\r\n sb.append(\" <attribute isPrimaryKey=\\\"false\\\" name=\\\"t\\\" type=\\\"java.lang.Double\\\" defaultValue=\\\"0\\\"/>\\n\");\r\n sb.append(\"\t</schema>\\n\");\r\n // TODO\r\n for (int i = 0; i < mList.size(); i++) {\r\n // get location properties\r\n Query q;\r\n q = em.createQuery(\"SELECT bpp FROM BeamParameterProp bpp JOIN bpp.beamParameterId pid WHERE pid.modelId=:modelId\")\r\n .setParameter(\"modelId\", mList.get(i));\r\n bppList = q.getResultList();\r\n if (!bppList.isEmpty()) {\r\n sb.append(\" <record name=\\\"\");\r\n sb.append(mList.get(i).getModelName());\r\n q = em.createQuery(\"SELECT pt FROM ParticleType pt JOIN pt.beamParameterCollection bp WHERE bp.modelId=:modelId\")\r\n .setParameter(\"modelId\", mList.get(i));\r\n List<ParticleType> ptList = q.getResultList();\r\n sb.append(\"\\\" species=\\\"\");\r\n if (ptList.size() > 0) {\r\n sb.append(ptList.get(0).getParticleName());\r\n }\r\n\r\n // get the energy from beam parameter properties\r\n for (int j = 0; j < bppList.size(); j++) {\r\n switch (bppList.get(j).getPropertyName()) {\r\n case \"W\":\r\n sb.append(\"\\\" W=\\\"\");\r\n sb.append(bppList.get(j).getBeamParameterDouble());\r\n sb.append(\"\\\"\");\r\n break;\r\n }\r\n }\r\n sb.append(\"/>\\n\");\r\n }\r\n }\r\n\r\n sb.append(\" </table>\\n\");\r\n\r\n // close the tablegroup\r\n sb.append(\"</tablegroup>\");\r\n\r\n System.out.println(sb);\r\n\r\n // write to file\r\n BufferedWriter writer = null;\r\n try {\r\n File file = new File(\"model.params\");\r\n writer = new BufferedWriter(new FileWriter(file));\r\n writer.write(sb.toString());\r\n } catch (IOException ex) {\r\n Logger.getLogger(Db2Xal.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n try {\r\n writer.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(Db2Xal.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "98059e322bfb238286427d8f08278488", "score": "0.45575052", "text": "TbSys selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "f8f5e63fe14a3531a187b157f769bf4f", "score": "0.4554551", "text": "public void insertReconBankStatementLogFromStoredProcedure(String bankName,\r\n\t\t\tString accountNo, String amcCode, String startTime, String endTime,\r\n\t\t\tString status, String reason,String processType) throws Exception {\n\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tLog.info(\"Inside insert procedure log\"+processType);\r\n\t\t\tConnection con;\r\n\r\n\t\t\tcon = Decrypt.GetConnection(amc);\r\n\t\t\tCallableStatement callSt1 = null;\r\n\t\t\tLog.error(\"After Connecting to db: \" + con);\r\n\t\t\tSystem.out.println(\"Con:\" + con);\r\n\t\t\tSystem.out.println(\"userName:\" + Decrypt.AmcCodeSelected);\r\n\t\t\tif (con != null) {\r\n\t\t\t\t// WriteToLog(\"Connection Created and bank Name NULL\");\r\n\t\t\t\tStatement stmt = con.createStatement();\r\n\t\t\t\tSystem.out.println(\"Before Alter schema:\"\r\n\t\t\t\t\t\t+ Decrypt.SchemaSelected);\r\n\t\t\t\tstmt.execute(\"alter session set current_schema= \"\r\n\t\t\t\t\t\t+ Decrypt.SchemaSelected + \"\");\r\n\t\t\t\tSystem.out.println(\"after Alter schema:\"\r\n\t\t\t\t\t\t+ Decrypt.SchemaSelected);\r\n\t\t\t\tString getDBUSERCursorSql = \"{call pkg_recon_automation.itn_plp_recon_log(?,?,?,?,?,?,?,?,?,?)}\";// 3\r\n\t\t\t\tcallSt1 = con.prepareCall(getDBUSERCursorSql);\r\n\t\t\t\t// // callSt.setString(\"flag\", \"MANUAL\");\r\n\t\t\t\tcallSt1.setString(1, \"LOG\");\r\n\t\t\t\tcallSt1.setString(2, bankName);\r\n\t\t\t\tcallSt1.setString(3, accountNo);\r\n\t\t\t\tcallSt1.setString(4, amcCode);\r\n\t\t\t\tcallSt1.setString(5, status);\r\n\t\t\t\tcallSt1.setString(6, reason);\r\n\t\t\t\tcallSt1.setString(7, startTime);\r\n\t\t\t\tcallSt1.setString(8, endTime);\r\n\t\t\t\tcallSt1.setString(9, processType);\r\n\t\t\t\tcallSt1.registerOutParameter(10, OracleTypes.VARCHAR);\r\n\t\t\t\tcallSt1.executeUpdate();\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * if\r\n\t\t\t\t * (!(callSt1.getObject(9).toString().equals(\"Failure during Log\"\r\n\t\t\t\t * ))) {\r\n\t\t\t\t * \r\n\t\t\t\t * System.out.println(\"Record is inserted:\"+callSt1.getObject(9).\r\n\t\t\t\t * toString());\r\n\t\t\t\t * \r\n\t\t\t\t * } else {\r\n\t\t\t\t * \r\n\t\t\t\t * System.out.println(\"Record is not inserted\"); }\r\n\t\t\t\t */\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tLog.error(\"Error is throwing while inserting data from store procedure\"\r\n\t\t\t\t\t+ e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "236b4ab94910677e5ee9ee9e6002caba", "score": "0.45430756", "text": "public static String SICMOF0100(TableParams params){\r\n\t\tString query = \"\";\r\n\t\t\r\n\t\tquery=\r\n\t\t\t\" SELECT /*+ INDEX(PTA NDX_TAC_CUENTA) */ PTA.ARCH_NUMERO FUENTE \\n\"+\r\n\t\t\t\" ,PA.DESCRIPCION \\n\"+\r\n\t\t\t\" ,PTA.NOMBRE_ARCHIVO \\n\"+\r\n\t\t\t\" ,PTA.FECHA_CONSUMO_TRANSAC F_CONSUMO \\n\"+\r\n\t\t\t\" ,PTA.FECHA_PROCESO_TRANSAC F_PROCESO \\n\"+\r\n\t\t\t\" ,PTA.ENT_NUMERO_PROSA_ADQ ENT_ADQ \\n\"+\r\n\t\t\t\" ,VBA.DESCRIPCION ADQ_DESCRIPCION \\n\"+\r\n\t\t\t\" ,VBA.BU_TX_ADQ BU_ADQ \\n\"+\r\n\t\t\t\" ,PTA.ENT_NUMERO_PROSA_EMI ENT_EMI \\n\"+\r\n\t\t\t\" ,PEE.DESCRIPCION EMI_DESCRIPCION \\n\"+\r\n\t\t\t\" ,(SELECT DISTINCT DECODE(VBE.BU_TX_PARENT,641,522,VBE.BU_TX_PARENT) FROM PMADMIN.VW_BUS_EMI VBE WHERE VBE.NUMERO_PROSA = PTA.ENT_NUMERO_PROSA_EMI) BU_EMI \\n\"+\r\n\t\t\t\" ,PTA.NUMERO_AUTORIZACION NO_AUTORIZACION \\n\"+\r\n\t\t\t\" ,PTA.NUMERO_REFERENCIA NO_REFERENCIA \\n\"+\r\n\t\t\t\" ,PTA.CUENTA \\n\"+\r\n\t\t\t\" ,PTA.TTR_NUMERO CLAVE_TXS \\n\"+\r\n\t\t\t\" ,PTT.DESCRIPCION DESCRIPCION_CLAVE_TXS \\n\"+\r\n\t\t\t\" ,PTA.NUMERO_COMERCIO NO_COMERCIO \\n\"+\r\n\t\t\t\" ,PTA.NOMBRE_COMERCIO \\n\"+\r\n\t\t\t\" ,PTA.BDU_SIC_CVE GIRO \\n\"+\r\n\t\t\t\" ,TO_CHAR(PTA.IMPORTE_TOTAL_TRANSAC,'999,999,999.99') IMP_TRANS \\n\"+\r\n\t\t\t\" ,PTA.IMPORTE_CUOTA_INTERCAMBIO IMP_INTERCAMBIO \\n\"+\r\n\t\t\t\" ,PTA.IMPORTE_IVA_INTERCAMBIO IVA_INT \\n\"+\r\n\t\t\t\" ,PTA.PREF_NUMERO PREFIJO \\n\"+\r\n\t\t\t\" ,PTA.MODO_ENTRADA_POS MODO_POS \\n\"+\r\n\t\t\t\" ,PTA.BDU_COM_CAT_CRE CATEGORIA \\n\"+ \r\n\t\t\t\" ,PTA.CLAVE_FACTOR_COMERCIO FACTOR_COM \\n\"+\r\n\t\t\t\" ,PTA.CLAVE_FACTOR_INTERCAMBIO FACTOR_INT \\n\"+\r\n\t\t\t\" ,PTA.CUOTA_INTERCAMBIO CUOTA_INT \\n\"+\r\n\t\t\t\" ,PTA.IMPORTE_IVA_COMERCIO IVA_COM /* PENDIENTE */ \\n\"+\r\n\t\t\t\" ,PTA.CUENTA_CHEQUES REF_CHEQ \\n\"+\r\n\t\t\t\" ,PTA.RUTEO \\n\"+\r\n\t\t\t\" ,PTA.MAPR_NUMERO MARCA \\n\"+\r\n\t\t\t\" ,PTA.TLI_NUMERO LIQ \\n\"+\r\n\t\t\t\" ,PTA.RED_LOGICA RED_LOGICA_ADQ \\n\"+\r\n\t\t\t\" ,PTA.RED_LOGICA_EMI \\n\"+\r\n\t\t\t\" ,PTA.TTR_NUMERO TIPO_TXS \\n\"+\r\n\t\t\t\" ,PTA.FECHA_CONSUMO_TRANSAC HORA_CONSUMO /* PENDIENTE */ \\n\"+\r\n\t\t\t\" ,PTA.CODIGO_RAZON \\n\"+\r\n\t\t\t\" ,PTA.IND_TER_CAP TERM_CAP \\n\"+\r\n\t\t\t\" ,PTA.TERM_ID TERMINAL \\n\"+\r\n\t\t\t\" ,PTA.BDU_COM_VIG TB_VIG \\n\"+\r\n\t\t\t\" ,PTA.BDU_COM_CAT_CRE TB_CAT_DR \\n\"+\r\n\t\t\t\" ,(SELECT PP_VALOR FROM PMADMIN.PRSA_PARAMETROS WHERE PP_ID_PARAMETRO = 'IVA_PARM') IVA \\n\"+\r\n\t\t\t\" ,PTA.PROC_NUMERO PROCEDENCIA \\n\"+\r\n\t\t\t\" ,PTA.CODIGO_RESPUESTA_AUT \\n\"+\r\n\t\t\t\" ,PTA.TIPO_CAPTURA \\n\"+\r\n\t\t\t\" ,PTA.CODIGO_RESPUESTA_ISO \\n\"+\r\n\t\t\t\" ,PTA.TA_WH_SEQ NUMERO \\n\"+\r\n\t\t\t\" ,PTA.IND_TER_ACT \\n\"+\r\n\t\t\t\" ,PTA.IND_TER_CAP \\n\"+\r\n\t\t\t\" ,PTA.CUOTA_INTERCAMBIO TARIFA_TASA \\n\"+\r\n\t\t\t\" ,PTA.IND_COM_ELEC ICE \\n\"+\r\n\t\t\t\" ,PTA.ES_NACIONAL PBIN_GLOBAL_LOCALE_S \\n\"+\r\n\t\t\t\" ,PTA.IMPORTE_CUOTA_COMERCIO IMPORTE_COMERCIO \\n\"+\r\n\t\t\t\" ,PTA.CUOTA_COMERCIO CUOTA_COM \\n\"+\r\n\t\t\t\" ,PTA.TIPO_CAPTURA IND_EMV \\n\"+\r\n\t\t\t\" ,PTA.IND_PD IND_DIF \\n\"+\r\n\t\t\t\" ,PTA.TC \\n\"+\r\n\t\t\t\" ,PTA.TYP \\n\"+\r\n\t\t\t\" ,PTA.TIER_CODIGO_MONEDA MONEDA \\n\"+\r\n\t\t\t\" FROM PMADMIN.PRSA_TXN_ACEPTADAS PTA \\n\"+\r\n\t\t\t\" INNER JOIN PMADMIN.VW_BUS_ACQ VBA \\n\"+\r\n\t\t\t\" ON VBA.NUMERO_PROSA = PTA.ENT_NUMERO_PROSA_ADQ \\n\"+\r\n\t\t\t\" INNER JOIN PMADMIN.PRSA_ENTIDADES PEE \\n\"+\r\n\t\t\t\" ON PEE.NUMERO_PROSA = PTA.ENT_NUMERO_PROSA_EMI \\n\"+\r\n\t\t\t\" INNER JOIN PMADMIN.PRSA_TIPOS_TRANSACCION PTT \\n\"+\r\n\t\t\t\" ON PTT.NUMERO = PTA.TTR_NUMERO \\n\"+\r\n\t\t\t\" INNER JOIN PMADMIN.PRSA_ARCHIVOS PA \\n\"+\r\n\t\t\t\" ON PA.NUMERO = PTA.ARCH_NUMERO \\n\";\r\n\t\t\r\n\t\tif(!params.tipoTransaccion.equals(\"None\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tquery+=\" INNER JOIN PMADMIN.PRSA_TIPOS_SAC PTS \\n\"+\r\n\t\t\t\t\t\" ON PTS.PTS_TIPO_SAC = PTA.TTR_NUMERO \\n\";\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\tquery+=\r\n\t\t\t\" WHERE PTA.TTR_NUMERO NOT IN (10,11,51,52,53,54) \\n\";\r\n\t\t\r\n\t\tif (!params.session.getAttribute(\"fechaXML\").toString().equals(\"01/01/2000\")){\r\n\t\t\tquery+=\" AND PTA.PARTITION_ID >= (SELECT PMADMIN.FN_PARTITION_ID(TO_DATE('\"+params.session.getAttribute(\"fechaXML\").toString()+\"','DD/MM/YYYY')) FROM DUAL) \\n\";\r\n\t\t}\r\n\t\tquery+=\" AND PTA.PARTITION_ID >= (SELECT PMADMIN.FN_PARTITION_ID(TO_DATE (TO_CHAR(SYSDATE-7,'DD-MM-YYYY'),'DD-MM-YYYY')) FROM DUAL) \\n\";\r\n\t\t\r\n\t\tif(!params.tipoTransaccion.equals(\"None\")){\r\n\t\t\tquery+=\" AND PTS.TIPO_PMT IN ( \"+params.tipoTransaccion+\") /* PARAMETRO */ \\n\";\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif(params.rol.equals(\"banco\")){\r\n\t\t\tif(params.bancoRecep.equals(\"None\")&&params.bancoEmi.equals(\"None\")){\r\n\t\t\t\tquery+=\" AND (VBA.ENTIDAD_PADRE IN (\"+params.numerosProsa+\") /* PARAMETRO */ \\nOR PEE.ENTIDAD_PADRE IN (\"+params.numerosProsa+\")) /* PARAMETRO */ \\n\";\r\n\t\t\t}else{\r\n\t\t\t\tquery+=\" AND VBA.ENTIDAD_PADRE IN (\"+params.bancoRecep+\") /* PARAMETRO */ \\n\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(!params.bancoEmi.equals(\"None\")){\r\n\t\t\t\tquery+=\" AND PEE.ENTIDAD_PADRE IN (\"+params.bancoEmi+\") /* PARAMETRO */ \\n\";\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tif(!params.bancoRecep.equals(\"None\")){\r\n\t\t\t\tquery+=\" AND VBA.ENTIDAD_PADRE IN (\"+params.bancoRecep+\") /* PARAMETRO */ \\n\";\r\n\t\t\t}\r\n\t\t\tif(!params.bancoEmi.equals(\"None\")){\r\n\t\t\t\tquery+=\" AND PEE.ENTIDAD_PADRE IN (\"+params.bancoEmi+\") /* PARAMETRO */ \\n\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(!params.numeroCuenta.equals(\"\")){\r\n\t\t\tquery+=\" AND PTA.CUENTA = '\"+params.numeroCuenta+\"' /* PARAMETRO */ \\n\";\r\n\t\t}\r\n\t\t\r\n\t\tif(!params.numeroAutorizacion.equals(\"\")){\r\n\t\t\tquery+=\" AND PTA.NUMERO_AUTORIZACION = '\"+params.numeroAutorizacion+\"' /* PARAMETRO */ \\n\";\r\n\t\t}\r\n\t\t\r\n\t\tif(!params.numeroRef.equals(\"\")){\r\n\t\t\tquery+=\" AND PTA.NUMERO_REFERENCIA = '\"+params.numeroRef+\"' /* PARAMETRO */ \\n\";\r\n\t\t}\r\n\t\t\r\n\t\tif(!params.numeroComercio.equals(\"\")){\r\n\t\t\tquery+=\" AND PTA.NUMERO_COMERCIO IN (\"+params.numeroComercio+\") /* PARAMETRO */ \\n\";\r\n\t\t}\r\n\t\t\r\n\t\tif(!params.nombreComercio.equals(\"\")){\r\n\t\t\tquery+=\" AND PTA.NOMBRE_COMERCIO = '\"+params.nombreComercio+\"' /* PARAMETRO */ \\n\";\r\n\t\t}\r\n\t\t\r\n\t\tif(!params.importe.equals(\"\")){\r\n\t\t\tquery+=\" AND PTA.IMPORTE_TOTAL_TRANSAC = \"+params.importe+\" /* PARAMETRO */ \\n\";\r\n\t\t}\r\n\r\n\t\treturn query;\r\n\t}", "title": "" }, { "docid": "108171eb839122a3b06485aac12ed800", "score": "0.45354822", "text": "public void setSysRoleId(Integer sysRoleId) {\r\n\t\tthis.sysRoleId = sysRoleId;\r\n\t}", "title": "" }, { "docid": "bf97a9847956f71f26b08f1a4f615a05", "score": "0.45325577", "text": "@Repository\npublic interface SysConfigDao {\n\n\n public List<SystemConfig> getConfigList(@Param(\"param\")Map<String, Object> param);\n\n public SystemConfig getConfig(String key);\n\n public void Add(SystemConfig config);\n\n public void Update(SystemConfig config);\n\n public void Delete(String key);\n\n\n}", "title": "" }, { "docid": "acc981343ceaff9f8a4e62244d529992", "score": "0.4530825", "text": "public List<ComboOptionsSortTO> readHrOrgParmSigList() throws QueryException\n\t{\n\t\tfinal List<ComboOptionsSortTO> readSigList = new ArrayList<ComboOptionsSortTO>();\n\n\t\tMapStream inputs = new MapStream(\"readHumanResourcesOrganizationParameterByInputList\");\n\n\t\tlogger.debug(String.format(\"Entering readHrOrgParmSigList()\"));\n\n\t\tinputs.put(\"subSystemCode\", \"HR\");\n\t\tinputs.put(\"businessUnitId\", \"1\");\n\t\tinputs.put(\"parameterId\", \"sig.%\");\n\t\tinputs.addQualifier(\"parameterIdSearch\", true); // optional, when true\n\t\t// will use a Like for\n\t\t// parameterId\n\n\t\tBasicDAO.getResult(HRSTAFFING_CONTRACT_NAME, HRSTAFFING_BU_ID, HRSTAFFING_VERSION, inputs, new ResultsReader()\n\t\t{\n\t\t\tpublic void readResults(Results results, Query query, Inputs inputs) throws QueryException\n\t\t\t{\n\t\t\t\tComboOptionsSortTO comboOptionsTO = null;\n\t\t\t\twhile(results.next())\n\t\t\t\t{\n\t\t\t\t\tcomboOptionsTO = new ComboOptionsSortTO();\n\t\t\t\t\tcomboOptionsTO.setData(results.getString(\"parameterCharacterValue\"));\n\t\t\t\t\tcomboOptionsTO.setLabel(results.getString(\"parameterDescription\"));\n\t\t\t\t\t// Add a 200 to discontinued SIG's so that when active ones\n\t\t\t\t\t// are added the sort will still function correctly\n\t\t\t\t\t// Also set enabled to false\n\t\t\t\t\tif(results.getString(\"parameterIdOutput\").indexOf(\"active\") == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tcomboOptionsTO.setSortOrder(results.getInt(\"parameterIntegerValue\") + 200);\n\t\t\t\t\t\tcomboOptionsTO.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tcomboOptionsTO.setSortOrder(results.getInt(\"parameterIntegerValue\"));\n\t\t\t\t\t\tcomboOptionsTO.setEnabled(true);\n\t\t\t\t\t}\n\t\t\t\t\treadSigList.add(comboOptionsTO);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\treturn readSigList;\n\t}", "title": "" }, { "docid": "910ebc3f475e33a6af16b24c85c5433a", "score": "0.45304027", "text": "public void createUpdateDispAreaConcPlMin(ServicoSolicitacaoComercialTO to) throws DAOException {\n\t\t\n\t}", "title": "" }, { "docid": "80ce4c4407b7ede7d004474e031b88f9", "score": "0.45299384", "text": "public static String SICMOR0205(TableParams params)\r\n\t{\r\n\t\tString query = \"\";\r\n\t\tSystem.out.println(\"Entro 205\");\r\n\t\t\r\n\t\tString cadena = \"xxx\";\r\n\t\tif (params.initDate.substring(3, 5).toString().equals(\"01\"))\r\n\t\t\tcadena = \"ENE\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"02\"))\r\n\t\t\tcadena = \"FEB\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"03\"))\r\n\t\t\tcadena = \"MAR\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"04\"))\r\n\t\t\tcadena = \"ABR\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"05\"))\r\n\t\t\tcadena = \"MAY\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"06\"))\r\n\t\t\tcadena = \"JUN\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"07\"))\r\n\t\t\tcadena = \"JUL\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"08\"))\r\n\t\t\tcadena = \"AGO\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"09\"))\r\n\t\t\tcadena = \"SEP\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"10\"))\r\n\t\t\tcadena = \"OCT\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"11\"))\r\n\t\t\tcadena = \"NOV\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"12\"))\r\n\t\t\tcadena = \"DIC\";\r\n\t\t\r\n\t\t\r\n\t\t/* Inicia Marca de Cambio WELLCOM N-08-2253-12 29-05-2013 */\r\n\t\tquery = \r\n/*\t\t\t\" SELECT TO_CHAR(PTA.TA_WH_SEQ) NUMERO \\n\"+ // 00\r\n\t\t\t\" \t\t,PTA.ENT_NUMERO_PROSA_ADQ ADQ \\n\"+ // 01\r\n\t\t\t\" ,PTA.ENT_NUMERO_PROSA_EMI EMI \\n\"+ // 02\r\n\t\t\t\" ,PTA.ARCH_NUMERO FUENTE \\n\"+ // 03\r\n\t\t\t\" ,PTA.PROC_NUMERO PROC \\n\"+ // 04\r\n\t\t\t\" ,PTA.FIID_EMISOR BANCO_EMISOR \\n\"+ // 05\r\n\t\t\t\" ,PTA.CUENTA CUENTA \\n\"+ // 06\r\n\t\t\t\" ,PTA.TTR_NUMERO CVE_TXN \\n\"+ // 07\r\n\t\t\t\" ,PTA.TC||' '||PTA.TYP TYP \\n\"+ // 08\r\n\t\t\t\" ,PTA.NUMERO_AUTORIZACION NO_AUT \\n\"+ // 09\r\n\t\t\t\" ,PTA.IMPORTE_TOTAL_TRANSAC IMPORTE \\n\"+ // 10\r\n\t\t\t\" ,PTA.FECHA_CONSUMO_TRANSAC||' '||TO_CHAR(PTA.FECHA_CONSUMO_TRANSAC,'HH:mm:SS') FECHA_CONSUMO_TRANSAC \\n\"+//11\r\n\t\t\t\" ,PTA.MODO_ENTRADA_POS MODO_ENT \\n\"+ // 12\r\n\t\t\t\" ,PTA.TIPO_CAPTURA TIPO_CAPTURA \\n\"+ // 13\r\n\t\t\t\" \t\t,PTA.TIPO_CAPTURA IND_EMV \\n\"+ // 14\r\n\t\t\t\" ,PTA.IND_TER_CAP TERM_CAP \\n\"+ // 15\r\n\t\t\t\" ,PTA.CODIGO_RESPUESTA_ISO COD_ISO \\n\"+ // 16\r\n\t\t\t\" ,PTA.IND_COM_ELEC ICE \\n\"+\t\t\t // 17\r\n\t\t\t\" ,PTK1.TKQ1 \\n\"+ \t\t\t // 18\r\n\t\t\t\" ,PTK1.TKQ2 \\n\"+ \t\t\t // 19\r\n\t\t\t\" ,PTK1.TKQ6 \\n\"+ \t\t\t // 20\r\n\t\t\t\" ,PTK1.TK04 \\n\"+ \t\t\t // 21\r\n\t\t\t\" ,PTK1.TKC0 \\n\"+ \t\t\t // 22\r\n\t\t\t\" ,PTK2.TKC4 \\n\"+ \t\t\t // 23\r\n\t\t\t\" ,PTK2.TKC6 \\n\"+ \t\t\t // 24\r\n\t\t\t\" ,PTK1.TKCE \\n\"+ \t\t\t // 25\r\n\t\t\t\r\n\t\t\t\" ,VBA.NUMERO_FIID BANCO_ADQUIRENTE \\n\"+ // 26\r\n\t\t\t\" ,TO_CHAR(PTA.NUMERO_COMERCIO) NUMERO_COMERCIO \\n\"+ // 27\r\n\t\t\t\" ,PTA.NOMBRE_COMERCIO NOMBRE_COMERCIO \\n\"+ // 28\r\n\t\t\t\" ,PTA.RED_LOGICA RED_LOGICA_ADQ \\n\"+ // 29\r\n\t\t\t\" ,PTA.RED_LOGICA_EMI RED_LOGICA \\n\"+ // 30\r\n\t\t\t\" ,VBA.DESCRIPCION DESC_ADQ \\n\"+ // 31\r\n\t\t\t\" ,PE.DESCRIPCION DESC_EMI \\n\"+ // 32\r\n\t\t\t\" ,PTA.FIID_EMISOR BANCO_EMISOR \\n\"+ // 33\r\n\t\t\t*/\r\n\t\t\t\t\t\" SELECT TO_CHAR(PTA.TA_WH_SEQ) NUMERO \\n\"+ // 00\r\n\t\t\t\" \t\t,PTA.ENT_NUMERO_PROSA_ADQ ADQ \\n\"+ // 01\r\n\t\t\t\" ,PTA.ENT_NUMERO_PROSA_EMI EMI \\n\"+ // 02\r\n\t\t\t\" ,PTA.ARCH_NUMERO FUENTE \\n\"+ // 03\r\n\t\t\t\" ,PTA.PROC_NUMERO PROC \\n\"+ // 04\r\n\t\t\t\" ,PTA.FIID_EMISOR BANCO_EMISOR \\n\"+ // 05\r\n\t\t\t\" ,PTA.CUENTA CUENTA \\n\"+ // 06\r\n\t\t\t\" ,PTA.TTR_NUMERO CVE_TXN \\n\"+ // 07\r\n\t\t\t\" ,PTA.TC||' '||PTA.TYP TYP \\n\"+ // 08\r\n\t\t\t\" ,PTA.NUMERO_AUTORIZACION NO_AUT \\n\"+ // 09\r\n\t\t\t\" ,PTA.IMPORTE_TOTAL_TRANSAC IMPORTE \\n\"+ // 10\r\n\t\t\t\" ,PTA.FECHA_CONSUMO_TRANSAC||' '||TO_CHAR(PTA.FECHA_CONSUMO_TRANSAC,'HH:mm:SS') FECHA_CONSUMO_TRANSAC \\n\"+//11\r\n\t\t\t\" ,PTA.MODO_ENTRADA_POS MODO_ENT \\n\"+ // 12\r\n\t\t\t\" ,PTA.TIPO_CAPTURA TIPO_CAPTURA \\n\"+ // 13\r\n\t\t\t\" \t\t,DECODE(SUBSTR(PTK2.TKB4,5,1),NULL,'B',0,'B','1','A','C') IND_EMV \\n\"+ // 14\r\n\t\t\t\" ,PTA.IND_TER_CAP TERM_CAP \\n\"+ // 15\r\n\t\t\t\" ,PTA.CODIGO_RESPUESTA_ISO COD_ISO \\n\"+ // 16\r\n\t\t\t\" ,PTA.IND_COM_ELEC ICE \\n\"+\t\t\t // 17\r\n\t\t\t\" ,PTK1.TKQ1 \\n\"+ \t\t\t // 18\r\n\t\t\t\" ,PTK1.TKQ2 \\n\"+ \t\t\t // 19\r\n\t\t\t\" ,PTK1.TKQ6 \\n\"+ \t\t\t // 20\r\n\t\t\t\" ,PTK1.TK04 \\n\"+ \t\t\t // 21\r\n\t\t\t\" ,PTK1.TKC0 \\n\"+ \t\t\t // 22\r\n\t\t\t\" ,PTK2.TKC4 \\n\"+ \t\t\t // 23\r\n\t\t\t\" ,PTK2.TKC6 \\n\"+ \t\t\t // 24\r\n\t\t\t\" ,PTK1.TKCE \\n\"+ \t\t\t // 25\r\n\t\t\t\r\n\t\t\t\" ,VBA.NUMERO_FIID BANCO_ADQUIRENTE \\n\"+ // 26\r\n\t\t\t\" ,TO_CHAR(PTA.NUMERO_COMERCIO) NUMERO_COMERCIO \\n\"+ // 27\r\n\t\t\t\" ,PTA.NOMBRE_COMERCIO NOMBRE_COMERCIO \\n\"+ // 28\r\n\t\t\t\" ,PTA.RED_LOGICA RED_LOGICA_ADQ \\n\"+ // 29\r\n\t\t\t\" ,PTA.RED_LOGICA_EMI RED_LOGICA \\n\"+ // 30\r\n\t\t\t\" ,VBA.DESCRIPCION DESC_ADQ \\n\"+ // 31\r\n\t\t\t\" ,PE.DESCRIPCION DESC_EMI \\n\"+ // 32\r\n\t\t\t\" ,PTA.FIID_EMISOR BANCO_EMISOR \\n\"+ // 33\r\n\t\t\t\r\n\t\t\t\" ,SUBSTR(PTK1.TKQ1,1,1) TKQ1_S01 \\n\"+\t // 34\r\n\t\t\t\" ,SUBSTR(PTK1.TKQ1,2,1) TKQ1_S02 \\n\"+\t // 35\r\n\t\t\t\r\n\t\t\t\" ,SUBSTR(PTK1.TKQ2,1,2) TKQ2_S01 \\n\"+\t // 36\r\n\t\t\t\r\n\t\t\t\" ,SUBSTR(PTK1.TKC0,1,4) TKC0_S01 \\n\"+ // 37\r\n\t\t\t\" ,SUBSTR(PTK1.TKC0,5,1) TKC0_S02 \\n\"+ // 38\r\n\t\t\t\" ,SUBSTR(PTK1.TKC0,6,3) TKC0_S03 \\n\"+ // 39\r\n\t\t\t\" ,SUBSTR(PTK1.TKC0,10,10) TKC0_S04 \\n\"+ // 40\r\n\t\t\t\" ,SUBSTR(PTK1.TKC0,21,1) TKC0_S05 \\n\"+ // 41\r\n\t\t\t\" ,SUBSTR(PTK1.TKC0,22,1) TKC0_S06 \\n\"+ // 42\r\n\t\t\t\" ,SUBSTR(PTK1.TKC0,23,1) TKC0_S07 \\n\"+ // 43\r\n\t\t\t\" ,SUBSTR(PTK1.TKC0,24,1) TKC0_S08 \\n\"+ // 44\r\n\t\t\t\" ,SUBSTR(PTK1.TKC0,25,1) TKC0_S09 \\n\"+ // 45\r\n\t\t\t\" ,SUBSTR(PTK1.TKC0,26,1) TKC0_S10 \\n\"+ // 46\r\n\t\t\t\" ,SUBSTR(PTK1.TKC0,27,1) TKC0_S11 \\n\"+ // 47\r\n\t\t\t\" ,SUBSTR(PTK1.TKC0,28,1) TKC0_S12 \\n\"+ // 48\r\n\t\t\t\r\n\t\t\t\" ,SUBSTR(PTK2.TKC4,1,1) TKC4_S01 \\n\"+ // 49\r\n\t\t\t\" ,SUBSTR(PTK2.TKC4,2,1) TKC4_S02 \\n\"+ // 50\r\n\t\t\t\" ,SUBSTR(PTK2.TKC4,3,1) TKC4_S03 \\n\"+ // 51\r\n\t\t\t\" ,SUBSTR(PTK2.TKC4,4,1) TKC4_S04 \\n\"+ // 52\r\n\t\t\t\" ,SUBSTR(PTK2.TKC4,5,1) TKC4_S05 \\n\"+ // 53\r\n\t\t\t\" ,SUBSTR(PTK2.TKC4,6,1) TKC4_S06 \\n\"+ // 54\r\n\t\t\t\" ,SUBSTR(PTK2.TKC4,7,1) TKC4_S07 \\n\"+ // 55\r\n\t\t\t\" ,SUBSTR(PTK2.TKC4,8,1) TKC4_S08 \\n\"+ // 56\r\n\t\t\t\" ,SUBSTR(PTK2.TKC4,9,1) TKC4_S09 \\n\"+ // 57\r\n\t\t\t\" ,SUBSTR(PTK2.TKC4,10,1) TKC4_S10 \\n\"+ // 58\r\n\t\t\t\" ,SUBSTR(PTK2.TKC4,11,1) TKC4_S11 \\n\"+ // 59\r\n\t\t\t\" ,SUBSTR(PTK2.TKC4,12,1) TKC4_S12 \\n\"+ // 60\r\n\t\t\t\r\n\t\t\t\" ,SUBSTR(PTK1.TK04,1,1) TK04_S01 \\n\"+ // 61\r\n\t\t\t\" ,SUBSTR(PTK1.TK04,2,11) TK04_S02 \\n\"+ // 62\r\n\t\t\t\" ,SUBSTR(PTK1.TK04,13,1) TK04_S03 \\n\"+ // 63\r\n\t\t\t\" ,SUBSTR(PTK1.TK04,14,5) TK04_S04 \\n\"+ // 64\r\n\t\t\t\" ,SUBSTR(PTK1.TK04,19,1) TK04_S05 \\n\"+ // 65\r\n\t\t\t\" ,SUBSTR(PTK1.TK04,20,1) TK04_S06 \\n\"+ // 66\r\n\t\t\t\r\n\t\t\t\" ,SUBSTR(PTK1.TKQ6,1,2) TKQ6_S01 \\n\"+ // 67\r\n\t\t\t\" ,SUBSTR(PTK1.TKQ6,3,2) TKQ6_S02 \\n\"+ // 68\r\n\t\t\t\" ,SUBSTR(PTK1.TKQ6,5,2) TKQ6_S03 \\n\"+ // 69\r\n\t\t\t\r\n\t\t\t\" ,SUBSTR(PTK2.TKC6,1,40) TKC6_S01 \\n\"+ // 70\r\n\t\t\t\" ,SUBSTR(PTK2.TKC6,41,40) TKC6_S02 \\n\"+ // 71\r\n\t\t\t\r\n\t\t\t\" ,SUBSTR(PTK1.TKCE,1,40) TKCE_S01 \\n\"+ // 72\r\n\t\t\t\" ,SUBSTR(PTK1.TKCE,41,40) TKCE_S02 \\n\"+ // 73\r\n\t\t/* Fin Marca de Cambio WELLCOM N-08-2253-12 29-05-2013 */\r\n\r\n\t\t/* Inicia modificacion WELLCOM N-51-2098-14 13-08-2014 */\r\n\r\n\t\t\t/********** Inicio Modificacion WELLCOM N-51-2098-14 18/02/2015 **********/\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB2,9,2) TKB2_S01 \\n\"+ //74\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB2,11,10) TKB2_S02 \\n\"+ //75\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB2,21,16) TKB2_S03 \\n\"+ //76\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB2,37,12) TKB2_S04 \\n\"+ //77\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB2,49,12) TKB2_S05 \\n\"+ //78\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB2,61,4) TKB2_S06 \\n\"+ //79\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB2,65,4) TKB2_S07 \\n\"+ //80\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB2,69,3) TKB2_S08 \\n\"+ //81\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB2,72,3) TKB2_S09 \\n\"+ //82\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB2,75,6) TKB2_S10 \\n\"+ //83\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB2,81,2) TKB2_S11 \\n\"+ //84\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB2,83,8) TKB2_S12 \\n\"+ //85\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB2,95,64) TKB2_S13 \\n\"+ //86\r\n\t\t\t\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB3,5,8) TKB3_S01 \\n\"+ //87\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB3,13,8) TKB3_S02 \\n\"+ //88\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB3,33,2) TKB3_S03 \\n\"+ //89\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB3,35,4) TKB3_S04 \\n\"+ //90\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB3,39,6) TKB3_S05 \\n\"+ //91\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB3,49,32) TKB3_S06 \\n\"+ //92\r\n\t\t\t\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB4,1,3) TKB4_S01 \\n\"+ //93\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB4,4,1) TKB4_S02 \\n\"+ //94\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB4,5,1) TKB4_S03 \\n\"+ //95\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB4,6,1) TKB4_S04\t\\n\"+ //96\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB4,7,2) TKB4_S05\t\\n\"+ //97\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB4,9,6) TKB4_S06\t\\n\"+ //98\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB4,15,4) TKB4_S07 \\n\"+ //99\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB4,19,1) TKB4_S08 \\n\"+ //100\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB4,20,1) TKB4_S09 \\n\"+ //101\r\n\t\t\t\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB5,1,4) TKB5_S01 \\n\"+ //102\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB5,5,16) TKB5_S02 \\n\"+ //103\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB5,21,16) TKB5_S03 \\n\"+ //104\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB5,37,1) TKB5_S04 \\n\"+ //105\r\n\t\t\t\" \t\t,SUBSTR(PTK2.TKB5,38,1) TKB5_S05 \\n\"+ //106\r\n\t\t\t/********** Fin Modificacion WELLCOM N-51-2098-14 18/02/2015 **********/\r\n\t\t/* INICIO Modificacion SAS N-51-2390-15 12/02/2016 */\r\n\t\t\t\",CASE SUBSTR(PTK2.TKB2,15,2)\"+ //107\r\n\t\t\t\"\tWHEN NULL THEN\t\t\t\"+ //107\r\n\t\t\t\"\t\t ''\t\t\t\t\t\"+\t//107\r\n\t\t\t\"\tWHEN '' THEN \t\t\t\"+ //107\r\n\t\t\t\"\t\t ''\t\t\t\t\t\"+\t//107\r\n\t\t\t\"\tWHEN '00' THEN\t\t\t\"+\t//107\r\n\t\t\t\"\t\t 'Exitoso'\t\t\t\"+\t//107\r\n\t\t\t\"\tELSE\t\t\t\t\t\"+\t//107\r\n\t\t\t\"\t\t \t\tDECODE(SUBSTR(lpad(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(PTK2.TKB2,15,2))),'XXXXXX')),8,0),1,1),'0','Exitoso','1','Fallido')\"+\t\t\t\t\t\t//107\r\n\t\t\t\"END TVR,\t\"+//107\r\n\t\t\t\"CASE\t\t\"+ //108\r\n \"WHEN SUBSTR(PTA.CUENTA,1,1)='5' OR SUBSTR(PTA.CUENTA,1,1)='2' THEN\t\"+ //108\r\n\t\t\t\"CASE \t\t\t\t\t\t\"+ //108\r\n\t\t\t\"\tWHEN SUBSTR(PTK2.TKB2,97,2)=''THEN \"+ //108\r\n\t\t\t\"\t\tDECODE(SUBSTR(lpad(PMADMIN.FN_DEC_BIN(TO_NUMBER(ltrim(rtrim(SUBSTR(PTK2.TKB2,101,2))),'XX')),8,0),6,1),'0','No','1','Si')\"+ //108\r\n\t\t\t\"\tWHEN SUBSTR(PTK2.TKB2,97,2)='00'THEN \"+ //108\r\n\t\t\t\"\t\tDECODE(SUBSTR(lpad(nvl(PMADMIN.FN_DEC_BIN(TO_NUMBER(ltrim(rtrim(SUBSTR(PTK2.TKB2,101,2))),'XX')),'00'),8,0),6,1),'0','No','1','Si')\" + //108\r\n\t\t\t\"\tWHEN SUBSTR(PTK2.TKB2,97,2)='01' THEN\"+ //108\r\n\t\t\t\"\t\tDECODE(SUBSTR(lpad(nvl(PMADMIN.FN_DEC_BIN(TO_NUMBER(ltrim(rtrim(SUBSTR(PTK2.TKB2,101,2))),'XX')),'00'),8,0),6,1),'0','No','1','Si')\t\" + //108\r\n\t\t\t\"\tWHEN SUBSTR(PTK2.TKB2,97,2)!='01' THEN\" + //108\r\n\t\t\t\"\t\tDECODE(SUBSTR(lpad(PMADMIN.FN_DEC_BIN(TO_NUMBER(ltrim(rtrim(SUBSTR(PTK2.TKB2,99,2))),'XX')),8,0),6,1),'0','No','1','Si')\"+ //108\r\n\t\t\t\"END\t\t\t\t\"+ //108\r\n\t\t\t\"END ||\t\t\t\t\"+ //108\r\n\t\t\t\"CASE\t\t\t\t\"+ //108\r\n \"WHEN SUBSTR(PTA.CUENTA,1,1)='4'THEN \t\t\"+ //108\r\n \"CASE \"+ //108\r\n \" WHEN SUBSTR(PTK2.TKB2,99,2)='0A'THEN \"+ //108\r\n \" DECODE(SUBSTR(lpad(PMADMIN.FN_DEC_BIN(TO_NUMBER(ltrim(rtrim(SUBSTR(PTK2.TKB2,103,2))),'XX')),8,0),6,1),'0','No','1','Si')\"+//108\r\n\t\t\t\"END \t\"+ //108\r\n\t\t\t\"END CVRPIN,\t\t\t\t\"+\t\t //108\r\n\t\t\t\"CASE\t\t\t\t\t\t\"+ //109\r\n\t\t\t\"WHEN SUBSTR(PTA.CUENTA,1,1)='5' OR SUBSTR(PTA.CUENTA,1,1)='2' THEN\t\"+ //109\r\n\t\t\t\"CASE \t\t\t\t\t\t\"+ //109\r\n\t\t\t\"\tWHEN SUBSTR(PTK2.TKB2,97,2)='00' THEN \"+ //109\r\n\t\t\t\"\t DECODE(SUBSTR(lpad(nvl(PMADMIN.FN_DEC_BIN(TO_NUMBER(ltrim(rtrim(SUBSTR(PTK2.TKB2,101,2))),'XX')),'00'),8,0),7,1) \"+ //109\r\n\t\t\t\"\t ,'1','Exitoso','01','Exitoso','10','Exitoso','11','Exitoso','0','Fallido','00','Fallido')\"+//109\r\n\t\t\t\"\tWHEN SUBSTR(PTK2.TKB2,97,2)='01' THEN \"+//109\r\n\t\t\t\"\t DECODE(SUBSTR(lpad(PMADMIN.FN_DEC_BIN(TO_NUMBER(ltrim(rtrim(SUBSTR(PTK2.TKB2,101,2))),'XX')),8,0),7,1) \"+//109\r\n\t\t\t\"\t ,'1','Fallido','01','Fallido','10','Fallido','11','Fallido','0','Exitoso','00','Exitoso')\"+//109\r\n\t\t\t\"\tWHEN ltrim(rtrim(SUBSTR(PTK2.TKB2,97,2)))!='01' THEN\"+//109\r\n\t\t\t\"\t DECODE(SUBSTR(lpad(PMADMIN.FN_DEC_BIN(TO_NUMBER(ltrim(rtrim(SUBSTR(PTK2.TKB2,99,2))),'XX')),8,0),7,2)\"+//109\r\n\t\t\t\"\t ,'1','Exitoso','01','Exitoso','10','Exitoso','11','Exitoso','0','Fallido','00','Fallido')\"+//109\r\n\t\t\t\"END \"+//109\r\n\t\t\t\"END || \"+//109\r\n\t\t\t\"CASE\t\t\t\t\"+ //109\r\n \"WHEN SUBSTR(PTA.CUENTA,1,1)='4'THEN \t\t\"+ //109\r\n \"CASE \"+ //109\r\n \" WHEN SUBSTR(PTK2.TKB2,99,2)='0A'THEN \"+ //109\r\n \" DECODE(SUBSTR(lpad(PMADMIN.FN_DEC_BIN(TO_NUMBER(ltrim(rtrim(SUBSTR(PTK2.TKB2,103,2))),'XX')),8,0),7,1),'0','Exitoso','1','Fallido')\"+//109\r\n\t\t\t\"END \t\"+ //109\r\n\t\t\t\"END CVRESULTS,\t\t\t\t\"+//109\r\n\t\t\t\"CASE \"+//110\r\n\t\t\t\"\tWHEN SUBSTR(PTK2.TKB3,39,2)='' THEN \"+//110\r\n\t\t\t\"\t\tDECODE(nvl(PMADMIN.FN_DEC_BIN(TO_NUMBER(ltrim(rtrim(SUBSTR(PTK2.TKB3,39,2))),'XXXXXX')),'000000'),'000000','Falló CVM','000001'\t \"+//110\r\n\t\t\t\"\t\t,'Verificación del PIN en texto plano realizada por el ICC', '000010','Verificación en línea del PIN cifrado' \"+//110\r\n\t\t\t\"\t\t,'000011','Verificación del PIN en texto plano realizada por el ICC y firma (papel)','000100' \"+//110\r\n\t\t\t\"\t\t,'Verificación del PIN cifrado realizada por el ICC','000101','Verificación del PIN cifrado realizada por el ICC y firma (papel)','011110','Firma (papel)','011111','No se requirió CVM')\"+//110\r\n\t\t\t\"\tWHEN SUBSTR(PTK2.TKB3,39,2)='00' THEN \"+//110\r\n\t\t\t\"\t\tDECODE(nvl(PMADMIN.FN_DEC_BIN(TO_NUMBER(ltrim(rtrim(SUBSTR(PTK2.TKB3,39,2))),'XXXXXX')),'000000'),'000000','Falló CVM','000001'\t \"+//110\r\n\t\t\t\"\t\t,'Verificación del PIN en texto plano realizada por el ICC', '000010','Verificación en línea del PIN cifrado' \"+//110\r\n\t\t\t\"\t\t,'000011','Verificación del PIN en texto plano realizada por el ICC y firma (papel)','000100' \"+//110\r\n\t\t\t\"\t\t,'Verificación del PIN cifrado realizada por el ICC','000101','Verificación del PIN cifrado realizada por el ICC y firma (papel)','011110','Firma (papel)','011111','No se requirió CVM')\"+//110\r\n\t\t\t\"\tELSE \"+//110\r\n\t\t\t\"\t\tDECODE(SUBSTR(lpad(PMADMIN.FN_DEC_BIN(TO_NUMBER(ltrim(rtrim(SUBSTR(PTK2.TKB3,39,2))),'XXXXXX')),8,0),3,6),'000000','Falló CVM','000001'\t \"+//110\r\n\t\t\t\"\t\t,'Verificación del PIN en texto plano realizada por el ICC', '000010','Verificación en línea del PIN cifrado' \"+//110\r\n\t\t\t\"\t\t,'000011','Verificación del PIN en texto plano realizada por el ICC y firma (papel)','000100' \"+//110\r\n\t\t\t\"\t\t,'Verificación del PIN cifrado realizada por el ICC','000101','Verificación del PIN cifrado realizada por el ICC y firma (papel)','011110','Firma (papel)','011111','No se requirió CVM')\"+//110\r\n\t\t\t\"END CVMRESULTS\"+//110\r\n\t\t\t\",DECODE(SUBSTR(PTK2.TKB3,43,2),'00','Desconocido','01','Fallido','02','Exitoso')CVM \"+//111\r\n\t\t/**************** FIN Modificacion SAS N-51-2390-15 12/02/2016***********************/\t\r\n\t\t/*\t********** INICIO Implementación SAS N-51-2823-15 11/08/2016 *************** */\r\n\t\t\t\",CASE SUBSTR(PTK2.TKB2,+15,2) WHEN NULL THEN ''\t\" +//112\r\n\t\t\t\"WHEN '' THEN ''\t\"+//112\r\n\t\t\t\"WHEN '00' THEN '0'\t\"+//112\r\n\t\t\t\"ELSE SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(PTK2.TKB2,+15,2))),'XX')),8,0),4,1)\t\"+//112\r\n\t\t\t\"END TVRPINB\t\"+//112\r\n\t\t\t\",CASE SUBSTR(PTK2.TKB2,+15,2) WHEN NULL THEN ''\t\"+//113\r\n\t\t\t\"WHEN '' THEN ''\t\"+//113\r\n\t\t\t\"WHEN '00' THEN '0'\t\"+//113\r\n\t\t\t\"ELSE SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(PTK2.TKB2,+15,2))),'XX')),8,0),5,1)\tEND TVRQPSPIN\t\"+//113\r\n\t\t\t\",CASE SUBSTR(PTK3.TKCZ,+5,2)\t\"+//114\r\n\t\t\t\"WHEN '' THEN ''\t\"+//114\r\n\t\t\t\"WHEN SUBSTR(PTK3.TKCZ,+5,2) THEN SUBSTR(PTK3.TKCZ,+5,2) END TOKNCZ\t\t\"+//114\r\n\t\t\t/* ********** FIN Implementación SAS N-51-2823-15 11/08/2016 *************** */\t\r\n\t\t/* Fin modificacion WELLCOM N-51-2098-14 13-08-2014 */\r\n\t\t\t\" FROM PMADMIN.PRSA_TXN_ACEPTADAS PTA \\n\"+\r\n\t\t\t\" INNER JOIN PMADMIN.VW_BUS_ACQ VBA \\n\"+\r\n\t\t\t\" ON VBA.NUMERO_PROSA = PTA.ENT_NUMERO_PROSA_ADQ \\n\"+\r\n\t\t\t\" INNER JOIN PMADMIN.PRSA_ENTIDADES PE \\n\"+\r\n\t\t\t\" ON PE.NUMERO_PROSA = PTA.ENT_NUMERO_PROSA_EMI \\n\"+\r\n\t\t\t\" INNER JOIN PMADMIN.PRSA_TIPOS_TRANSACCION PTT \\n\"+\r\n\t\t\t\" ON PTT.NUMERO = PTA.TTR_NUMERO \\n\"+\r\n\t\t\t\" LEFT JOIN PMTW.POS_T_TKN1 PTK1 \\n\"+\r\n\t\t\t\" ON PTK1.PARTITION_ID = PTA.PARTITION_ID \\n\"+\r\n\t\t\t\" AND PTK1.POS_TRAN_ID_KEY = PTA.TA_WH_SEQ \\n\"+\r\n\t\t\t\" LEFT JOIN PMTW.POS_T_TKN2 PTK2 \\n\"+\r\n\t\t\t\" ON PTK2.PARTITION_ID = PTA.PARTITION_ID \\n\"+\r\n\t\t\t\" AND PTK2.POS_TRAN_ID_KEY = PTA.TA_WH_SEQ \\n\"+\r\n\t\t\t/*\t********** INICIO Implementación SAS N-51-2823-15 11/08/2016 *************** */\r\n\t\t\t\" LEFT JOIN PMTW.POS_T_TKN3 PTK3\t\\n\"+\r\n\t\t\t\" ON PTK3.PARTITION_ID = PTA.PARTITION_ID \\n\"+\r\n\t\t\t\"\t AND PTK3.POS_TRAN_ID_KEY = PTA.TA_WH_SEQ \\n\"+\r\n\t\t\t/*\t********** FIN Implementación SAS N-51-2823-15 11/08/2016 *************** */\r\n\t\t\t\" WHERE PTA.PARTITION_ID BETWEEN (SELECT PMADMIN.FN_PARTITION_ID(TO_DATE('\"+params.initDate+\"','DD/MM/YYYY')) FROM DUAL) \\n\"+\r\n\t\t\t\" AND (SELECT PMADMIN.FN_PARTITION_ID(TO_DATE('\"+params.endDate+\"','DD/MM/YYYY')) FROM DUAL) \\n\"+\r\n\t\t\t\" AND PTA.CUENTA = '\"+params.cuenta+\"' \";\r\n\t\t\tif (!params.session.getAttribute(\"fechaXML\").toString().equals(\"01/01/2000\")){\r\n\t\t\tquery+=\" AND PTA.PARTITION_ID >= (SELECT PMADMIN.FN_PARTITION_ID(TO_DATE('\"+params.session.getAttribute(\"fechaXML\").toString()+\"','DD/MM/YYYY')) FROM DUAL) \\n\";\r\n\t\t}\r\n\r\n\t\tif ((params.referencia!=\"\") && (params.referencia!=null) && (params.referencia!=\"null\"))\r\n\t\t{\r\n\t\t\tquery+=\" AND PTA.NUMERO_REFERENCIA = \"+params.referencia+\" \";\r\n\t\t}\r\n\r\n\t\tif ((params.comercio!=\"\") && (params.comercio!=null) && (params.comercio!=\"null\"))\r\n\t\t{\r\n\t\t\tquery+=\" AND PTA.NUMERO_COMERCIO = \"+params.comercio+\" \";\r\n\t\t}\r\n\r\n\t\treturn query;\r\n\t}", "title": "" }, { "docid": "3622eff8ecb45be42b738fdc5d9b0ff1", "score": "0.45233104", "text": "public void executeInsertNCService(int urcleunik) throws java.rmi.RemoteException,srcastra.astra.sys.rmi.Exception.ServeurSqlFailure,java.sql.SQLException{ \n String numpiece=\"\";\n JournalCompta_T obj=null;\n check.checkJournalt(CheckCompteCentral.CLIENT,ParamComptable.JOURNAL_NCVENTE);\n // numpiece=m_config.getM_serveur().renvParamCompta(urcleunik).checkNumero(m_config.getCle2(),ParamComptableInterface.JOURNAL_NCVENTE,m_config.getM_urcleunik(),m_config.getEecleunik());\n obj=m_config.getM_serveur().renvParamCompta(urcleunik).getGlobalJournal(m_config.getCle2(),ParamComptableInterface.JOURNAL_NCVENTE,0);\n //m_config.setNumnc(numpiece);\n PreparedStatement pstmt;\n //pstmt=m_config.getCon().prepareStatement(\"SELECT * FROM historique2 WHERE hetypeligne!='P' AND hetypeligne!='CP' AND hetypeligne!='BP' AND hetypeligne!='CPC' AND hetypeligne!='A' AND hetypeligne!='ACP' AND hetypeligne!='NCA' AND hetypeligne!='NCAB' AND hedossiercourant='O' AND drcleunik=? ORDER BY hecleunik\");\n pstmt=m_config.getCon().prepareStatement(\"SELECT * FROM historique2 WHERE (hetypeligne='B' OR hetypeligne='D' OR hetypeligne='TVAV') AND hedossiercourant='O' AND drcleunik=? ORDER BY hecleunik\");\n pstmt.setLong(1,cledossier);\n ResultSet result=pstmt.executeQuery();\n pstmt=m_config.getCon().prepareStatement(\"UPDATE historique2 set hetypeligne ='NCO' WHERE hetypeligne='NC' AND drcleunik =?\");\n pstmt.setLong(1,cledossier);\n pstmt.execute(); \n pstmt=m_config.getCon().prepareStatement(\"UPDATE historique2 set hetypeligne ='NCOB' WHERE hetypeligne='NCB' AND drcleunik =?\");\n pstmt.setLong(1,cledossier);\n pstmt.execute(); \n pstmt=m_config.getCon().prepareStatement(\"UPDATE historique2 set hetypeligne ='NCOT' WHERE hetypeligne='NCT' AND drcleunik =?\");\n pstmt.setLong(1,cledossier);\n pstmt.execute(); \n // pstmt=m_config.getCon().prepareStatement(\"UPDATE historique2 set hedossiercourant ='N' WHERE hedossiercourant='O' AND hetypeligne!='P' AND hetypeligne!='BP' AND hetypeligne!='CPC' AND hetypeligne!='CP' AND hetypeligne!='A' AND hetypeligne!='ACP' AND hetypeligne!='NCA' AND hetypeligne!='NCAB' AND drcleunik =?\");\n // pstmt=m_config.getCon().prepareStatement(\"UPDATE historique2 set hedossiercourant ='N' WHERE hedossiercourant='O' AND (hetypeligne='B' OR hetypeligne='D' OR hetypeligne='TVAV') AND drcleunik =?\");\n // pstmt.setLong(1,cledossier);\n // pstmt.execute(); \n // result.beforeFirst();\n ArrayList array=new ArrayList();\n long transac=Check.getTransaction2(m_config.getCon(),m_config.getM_serveur().getTransactSyn(),check.getTmpool(),m_config.getM_serveur());\n while (result.next()){\n I_ligneComptable tmp= new I_ligneComptable( \n result.getObject(2),result.getObject(3),result.getObject(4),result.getObject(5),\n result.getObject(6),result.getObject(7),result.getObject(8),\n result.getObject(9),result.getObject(10),result.getObject(11),\n result.getObject(12),result.getObject(13),result.getObject(14),result.getObject(15),result.getObject(16),\n result.getObject(17),result.getObject(18),result.getObject(19),result.getObject(20),result.getObject(21),\n result.getObject(22),result.getObject(23),result.getObject(24),result.getObject(25),result.getObject(26),\n result.getObject(27),result.getObject(28),result.getObject(29),result.getObject(30),result.getObject(31),\n result.getObject(32),result.getObject(33),result.getObject(34),result.getObject(35),result.getObject(36),\n result.getObject(37),result.getObject(38),result.getObject(39),result.getObject(40),result.getObject(41),\n result.getObject(42),result.getObject(45));\n array.add(tmp); \n // insertLigneNoteCrédit(tmp,con,pstmt);\n }\n for(int j=0;j<array.size();j++){\n /* \"INSERT INTO `historique2` ( `heperiode` , `henotcpt` , `heclottva` , `heclotperiode` \"\n +\", `heclotexercice` , `hetransact` , `jxcleunik` , `henumpiece` , `hedatecreation` , `hedatemouv` \"\n +\", `ce_cleunik_cent` , `tva_cleunik` , `ce_cleunik2` , `ce_cleunik` , `hevaleur` , `hecodetva` \"\n +\", `hevaleurbase` , `hevaleurtva` , `decleunik` , `hedatedevise` , `hevaleurdevise` , `helibelle` \"\n +\", `drcleunik` , `lignecleunik` , `sn_cleunik` , `ctprocleunik` , `typeintervenantcleunik` \"\n +\", `intervenantcleunik` , `cate_cleunik` , `hedossiercourant` , `hetypeligne` , `urcleunik` \"\n +\", `hetypepayement` , `helibellecompta2` , `pax` , `quantite` , `pourcent` , `hevaleuru` , `gn_cleunik` \"\n +\", `typegrpdec`,`exle_cleunik2` ) VALUES (? , ? , ? , ? , ? , ? , ?, ?, ? , ?\"\n +\", ?, ?, ?, ?, ?, ? , ? , ? , ? , ? , ? , ? , ? , ?, ?, ?, ?, ?\"\n +\", ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ?, ?)\";*/\n String nc=\"NCB\";\n /* if(j!=0){\n nc=\"NC\";\n }\n else{\n check.checkJournalt(CheckCompteCentral.CLIENT,ParamComptable.JOURNAL_NCVENTE);\n numpiece=m_config.getM_serveur().renvParamCompta(urcleunik).checkNumero(m_config.getCle2(),ParamComptableInterface.JOURNAL_NCVENTE,m_config.getM_urcleunik(),m_config.getEecleunik());\n obj=m_config.getM_serveur().renvParamCompta(urcleunik).getGlobalJournal(m_config.getCle2(),ParamComptableInterface.JOURNAL_NCVENTE,0);\n m_config.setNumnc(numpiece); \n }*/\n NcCompta.I_ligneComptable ligne=(NcCompta.I_ligneComptable)array.get(j); \n if(j!=0){\n nc=\"NC\";\n }\n else{ \n if(ligne.m_hevaleur.doubleValue()!=0d){\n // check.checkJournalt(CheckCompteCentral.CLIENT,ParamComptable.JOURNAL_NCVENTE);\n numpiece=m_config.getM_serveur().renvParamCompta(urcleunik).checkNumero(m_config.getCle2(),ParamComptableInterface.JOURNAL_NCVENTE,m_config.getM_urcleunik(),m_config.getEecleunik());\n // obj=m_config.getM_serveur().renvParamCompta(urcleunik).getGlobalJournal(m_config.getCle2(),ParamComptableInterface.JOURNAL_NCVENTE,0);\n m_config.setNumnc(numpiece); \n }\n else{\n \n numpiece=new Integer(0).toString();\n }\n }\n setSoldeValue(true,ligne);\n String datetmp=CalculDate.getTodayDate().toString();\n pstmt=m_config.getCon().prepareStatement(INSERT_LIGNE);\n pstmt.setInt(1,GetData.getCompteData(\"\"+urcleunik).getPeriode()); //heperiode` \n pstmt.setInt(2,ligne.m_henotcpt.intValue()); //henotcpt\n pstmt.setInt(3,ligne.m_heclottva.intValue()); //heclottva\n pstmt.setInt(4,ligne.m_heclotperiode.intValue()); //heclotperiode\n pstmt.setInt(5,ligne.m_heclotexercice.intValue()); //heclotexercice\n pstmt.setInt(6,new Long(transac).intValue()); //hetransact\n pstmt.setLong(7,obj.getJota_cleunik()); //jxcleunik\n pstmt.setInt(8,Integer.parseInt(numpiece)); //henumpiece\n pstmt.setString(9,datetmp); //hedatecreation\n pstmt.setString(10,datetmp); //`hedatemouv \n pstmt.setInt(11,ligne.m_ce_cleunik_cent.intValue()); //`hedatemouv \n pstmt.setInt(12,ligne.m_tva_cleunik.intValue()); //`hedatemouv \n pstmt.setInt(13,ligne.m_ce_cleunik2.intValue()); //`hedatemouv \n pstmt.setString(14,ligne.m_ce_cleunik); //`hedatemouv \n pstmt.setDouble(15,ligne.m_hevaleur.doubleValue()); //`hevaleur\n pstmt.setFloat(16,ligne.m_hecodetva.floatValue()); //hecodetva\n pstmt.setDouble(17,ligne.m_heValeurBase.doubleValue()); //hevaleurbase\n pstmt.setDouble(18,ligne.m_heValeurTva.doubleValue()); //`hevaleurtva\n pstmt.setDouble(19,ligne.m_decleunik.intValue()); //`decleunik`\n pstmt.setString(20,ligne.m_hedatedevise); //`hedatedevise`\n pstmt.setDouble(21,ligne.m_hevaleurdevise.doubleValue()); //hevaleurdevise\n pstmt.setString(22,ligne.m_helibelle); //helibelle`\n pstmt.setLong(23,ligne.m_drCleunik.longValue()); //drcleunik` \n pstmt.setLong(24,ligne.m_lecleunik.longValue()); //lignecleunik`\n pstmt.setLong(25,ligne.m_sn_cleunik.longValue()); //`sn_cleunik`\n pstmt.setInt(26,ligne.m_ct_cleunik.intValue()); //ctprocleunik`\n pstmt.setInt(27,ligne.m_typeIntervenant.intValue()); //typeintervenantcleunik\n pstmt.setLong(28,ligne.m_intervenantCleunik.intValue()); //`intervenantcleunik\n pstmt.setInt(29,ligne.m_cate_cleunik.intValue()); //cate_cleunik\n pstmt.setString(30,\"N\"); //hedossiercourant`\n if(ligne.m_he_dossier_lignetype.equals(\"TVAV\"))\n nc=\"NCT\";\n pstmt.setString(31,nc); //hetypeligne`\n pstmt.setInt(32,ligne.m_urcleunik.intValue()); //`urcleunik`\n pstmt.setInt(33,ligne.m_hetypePayement.intValue());\n pstmt.setString(34,ligne.m_helibellecompta);\n pstmt.setInt(35,ligne.m_pax.intValue());\n pstmt.setInt(36,ligne.m_quantite.intValue());\n pstmt.setFloat(37,ligne.m_pourcent.floatValue());\n pstmt.setDouble(38,ligne.m_hevaleur.doubleValue());\n pstmt.setInt(39,ligne.m_gn_cleunik.intValue());\n pstmt.setInt(40,ligne.m_typegrpdec.intValue());\n pstmt.setInt(41,ligne.m_exle_cleunik.intValue());\n pstmt.setString(42, ligne.m_debcre);\n pstmt.execute(); \n }\n }", "title": "" }, { "docid": "e95561e8d82d689c0e0a07aaf42daeba", "score": "0.45163944", "text": "List<SysTableDesp> selectByExample(SysTableDespExample example);", "title": "" }, { "docid": "d2c88a0ffff315a08f3e477f9ad4be0d", "score": "0.45140043", "text": "@DAO(catalog = \"ABC\")\npublic interface UserOrdersDAO {\n static final String FIELDS = \"id, order_id,readed,shop_id,user_id,address_id,remarks ,act,msg,info ,snapshot,status,price,create_time,update_time,order_info,order_status,user_device_id\" ;\n static final String INSERT_FIELDS = \" order_id,readed,shop_id,user_id,address_id,remarks,act ,info,snapshot,status,price,user_device_id\" ;\n\n\t@SQL(\"select \"+ FIELDS +\" from ##(:tableName) where user_id =:1 and ( status =1 or status = 2) order by create_time desc limit :2,:3\")\n\tpublic List<Order> getOrder(long user_id, int start, int offset, @SQLParam(\"tableName\") String tableName);\n\n\n @SQL(\"select \"+ FIELDS +\" from ##(:tableName) where shop_id =:1 order by create_time desc limit :2,:3\")\n public List<Order> getOrderByShop(long shop_id, int start, int offset, @SQLParam(\"tableName\") String tableName);\n\n\n @SQL(\"insert into ##(:tableName) (\" + INSERT_FIELDS + \") values(:1.order_id,:1.readed,:1.shop_id,\" +\n \":1.user_id,:1.address_id,:1.remarks,:1.act,:1.info,:1.snapshot,:1.status,:1.price,:1.user_device_id) \")\n public int insertUpdate(Order o, @SQLParam(\"tableName\") String tableName);\n\n @SQL(\"select \"+ FIELDS +\" from ##(:tableName) where shop_id =:1 and status = 1 \")\n public List<Order> getOrder2Print(long shop_id, @SQLParam(\"tableName\") String tableName);\n\n @SQL(\"select \"+ FIELDS +\" from ##(:tableName) where shop_id =:1 order by create_time desc limit :2,:3 \")\n List<Order> get10Orders(long shop_id, int from, int offset, @SQLParam(\"tableName\") String tableName);\n\n @SQL(\"select \"+ FIELDS +\" from ##(:tableName) order by create_time desc limit 0,100 \")\n List<Order> get10Orders(@SQLParam(\"tableName\") String tableName);\n\n @SQL(\"update ##(:tableName) set status=:1 where order_id = :2 \")\n int update(int i, String orderId, @SQLParam(\"tableName\") String tableName);\n\n @SQL(\"update ##(:tableName) set shop_id=:1 where order_id = :2 \")\n int updateShop_id(long shop_id, String orderId, @SQLParam(\"tableName\") String tableName);\n\n @SQL(\"select \"+ FIELDS +\" from ##(:tableName) where order_id =:1 \")\n public Order getOrder(String orderId, @SQLParam(\"tableName\") String tableName);\n \n @SQL(\"select \"+ FIELDS +\" from ##(:tableName) where create_time between :1 and :2\")\n public List<Order> getOrder(String beginTime, String endTime, @SQLParam(\"tableName\") String tableName);\n\n @SQL(\"update ##(:tableName) set readed=1 where order_id=:2\")\n public int read(@SQLParam(\"tableName\") String tableName, String order_id);\n\n\n @SQL(\"update ##(:tableName) set status=:1 where order_id = :2 \")\n public void paydone(int status, String order_id,@SQLParam(\"tableName\") String tableName);\n\n @SQL(\"update ##(:tableName) set pre_id =:2 , act =:3 where order_id = :1 \")\n public void updateWXPay(String order_id, String pre_id, String act,@SQLParam(\"tableName\") String tableName);\n\n @SQL(\"update ##(:tableName) set msg =:2 , update_time=now() where order_id = :1 \")\n public void confirm(String order_id, String msg, @SQLParam(\"tableName\") String tableName);\n \n @SQL(\"update ##(:tableName) set order_info =:2 ,order_status =:3, update_time=now() where order_id = :1 \")\n public int updateOrderStatus(String order_id, String orderInfo,int orderStatus, @SQLParam(\"tableName\") String tableName);\n \n @SQL(\"update ##(:tableName) set order_status =:2,update_time=now() where order_id = :1 \")\n public int updateOrderStatus(String order_id,int orderStatus, @SQLParam(\"tableName\") String tableName);\n \n @SQL(\"update ##(:tableName) set order_info =:2 , update_time=now() where order_id = :1 \")\n public int updateOrderInfo(String order_id,String orderInfo, @SQLParam(\"tableName\") String tableName);\n \n @SQL(\"update ##(:tableName) set order_info =:2 ,order_status =:3, update_time=now(),user_confirm_time =:4 where order_id = :1 \")\n public int updateOrderStatus(String order_id, String orderInfo,int orderStatus,String user_confirm_time,@SQLParam(\"tableName\") String tableName);\n \n @SQL(\"update ##(:tableName) set user_confirm_time =:4 where shop_id=:2 and order_id=:3\")\n int updateUserConfirmTimeByCondition(@SQLParam(\"tableName\") String tableName,long shopId,String orderId,String confirmTime);\n \n @SQL(\"update ##(:tableName) set pre_id =:2 , act =:3,receive_code =:4 where order_id = :1 \")\n public void updateWXPayDetail(String order_id, String pre_id, String act,String receiveCode, @SQLParam(\"tableName\") String tableName);\n \n @SQL(\"select \"+ FIELDS +\" from ##(:tableName) where user_device_id =:1 and ( status =1 or status = 2) order by create_time desc limit :2,:3\")\n\tpublic List<Order> getDeviceOrder(long user_device_id, int start, int offset, @SQLParam(\"tableName\") String tableName);\n \n @SQL(\"update ##(:tableName) set user_id =:2,user_device_id=-1 where user_device_id = :1 \")\n public int bindOrderToUser(long userDeviceId, long userId, @SQLParam(\"tableName\") String tableName);\n \n @SQL(\"select \"+ FIELDS +\" from ##(:tableName) where user_device_id =:1\")\n\tpublic List<Order> getOrdersByUserId(long user_device_id, @SQLParam(\"tableName\") String tableName);\n \n @SQL(\"select \"+ FIELDS +\" from ##(:tableName) where user_id =:1 and status in (0,1,2) order by create_time desc limit :2,:3\")\n\tpublic List<Order> getUserAppOrder(long user_id, int start, int offset, @SQLParam(\"tableName\") String tableName);\n \n @SQL(\"update ##(:tableName) set act =:2,status=:3 where order_id = :1 \")\n public int updateActByOrderId(String order_id, String act,int status, @SQLParam(\"tableName\") String tableName);\n}", "title": "" }, { "docid": "f2037b4f8938f22d2cad997fc59ad997", "score": "0.45060065", "text": "public ArrayList<parameter> getParameterBase() {\n\n //Return the saved parameterset in support-class for Multiphase-Opti\n if (support.getParameterBase() != null) {\n return support.getParameterBase();\n }\n\n //int parameterCount=this.jTableParameterList.getModel().getRowCount();\n parameterTableModel tModel = (parameterTableModel) this.jTableParameterList.getModel();\n //String [][] parameterArray=tModel.getParameterArray();\n ArrayList<parameter> parameterArray = new ArrayList<>();\n\n //Build ArrayList of parameters from table\n for (int i = 0; i < tModel.getRowCount(); i++) {\n parameter tmpParameter = new parameter();\n tmpParameter.setName(tModel.getValueAt(i, 0).toString());\n tmpParameter.setStartValue(tModel.getDoubleValueAt(i, 1));//=StartValue\n tmpParameter.setEndValue(tModel.getDoubleValueAt(i, 2));\n tmpParameter.setValue(tModel.getDoubleValueAt(i, 1));\n tmpParameter.setStepping(tModel.getDoubleValueAt(i, 3));\n parameterArray.add(tmpParameter);\n }\n return parameterArray;\n }", "title": "" }, { "docid": "01db21765a5be5fec874b0d40d635d25", "score": "0.44945863", "text": "public String parametro (String param){\n return \"PARAM,,,\" + param + \"\\n\";\n }", "title": "" }, { "docid": "6615cf1563a1073a41289ded02f0a13b", "score": "0.4493195", "text": "public ArrConducPf[] findByDynamicSelect(String sql, Object[] sqlParams) throws ArrConducPfDaoException;", "title": "" }, { "docid": "ebf30f50a097371056ecf1cf80a66d39", "score": "0.44931585", "text": "int updateByPrimaryKey(OmsCommSysPara record);", "title": "" }, { "docid": "b40767d822b0dc1bac5129a2a1a27a97", "score": "0.44895688", "text": "List<SysTableDesp> selectByExampleSelective(@Param(\"example\") SysTableDespExample example, @Param(\"selective\") SysTableDesp.Column ... selective);", "title": "" }, { "docid": "bbb10dfad917f547718c4a433beef24a", "score": "0.44834903", "text": "public interface SysParamterService {\n SysParameterDto getCacheInfo(int tenantId, String paramCode, String orgId) throws Exception;\n //SysUserLoginDto selectByPrimaryKey(String userId, Integer tenantId)throws Exception;\n}", "title": "" }, { "docid": "ca8b8e75f559e20cf0a13a0460f0a202", "score": "0.44822657", "text": "public interface CarinfoDao {\n /**\n * 带分页的显示汽车方法\n *\n */\n @Select(\"<script>select a.ID,a.LSICENSE,a.CARTYPE,a.SADDLE,a.APPLICATIONTYPE,a.DRIVER,to_char(a.BEGINTIME,'yyyy-mm-dd') as BEGINTIME,a.STATE,to_char(a.INSURANCETIMR,'yyyy-mm-dd') as INSURANCETIMR,a.MILEAGE,a.REMARK from \\n\" +\n \"(select rownum rn,b.* from CU_CARINFO b\\n\" +\n \"where rownum &lt; #{end} \" +\n \"<if test=\\\"LSICENSE!=null and LSICENSE!=''\\\"> and LSICENSE=#{LSICENSE}</if>\" +\n \"<if test=\\\"CARTYPE!=null and CARTYPE!=''\\\"> and CARTYPE like '%'||#{CARTYPE}||'%'</if>\" +\n \"<if test=\\\"SADDLE!=null and SADDLE!=''\\\"> and SADDLE =#{SADDLE}</if>\" + \" )\" +\n \"a where a.rn &gt; #{start} </script>\")\n List<Map> getCarInfoDao(Map map);\n /**\n *显示汽车总数量\n */\n @Select(\"<script> select count(*) from CU_CARINFO <where>\" +\n \"<if test=\\\"LSICENSE!=null and LSICENSE!=''\\\"> and LSICENSE=#{LSICENSE}</if>\" +\n \"<if test=\\\"CARTYPE!=null and CARTYPE!=''\\\"> and CARTYPE like '%'||#{CARTYPE}||'%'</if>\" +\n \"<if test=\\\"SADDLE!=null and SADDLE!=''\\\"> and SADDLE =#{SADDLE}</if>\" +\n \" </where></script>\")\n int getCarCount(Map map);\n\n /**to_date(#{hiredate},'yyyy-mm-dd'\n * 汽车的添加方法#{INSURANCETIMR}\n * #{BEGINTIME}\n */\n @Insert(\"insert into CU_CARINFO values(seq_CU_CARINFO_id.nextval,#{LSICENSE},#{CARTYPE},#{SADDLE},#{APPLICATIONTYPE},#{DRIVER},to_date(#{BEGINTIME},'yyyy-mm-dd'),#{STATE},to_date(#{INSURANCETIMR},'yyyy-mm-dd'),#{MILEAGE},#{REMARK})\")\n int addCar(Map map);\n /**\n * 汽车更新方法\n *\n */\n @Insert(\"update CU_CARINFO set LSICENSE=#{LSICENSE},CARTYPE=#{CARTYPE},SADDLE=#{SADDLE},APPLICATIONTYPE=#{APPLICATIONTYPE},DRIVER=#{DRIVER},BEGINTIME=to_date(substr(#{BEGINTIME},1,10),'yyyy-mm-dd'),STATE=#{STATE},INSURANCETIMR=to_date(substr(#{INSURANCETIMR},1,10),'yyyy-mm-dd'),MILEAGE=#{MILEAGE},REMARK=#{REMARK} where id=#{ID}\")\n\n int updateCar(Map map);\n /**\n * 汽车信息删除方法\n */\n @Insert(\"delete from CU_CARINFO where id=#{ID}\")\n int deleteCar(int id);\n /**\n * 批量删除\n */\n @Delete(\"<script>delete from CU_CARINFO where id in\" +\n \"<foreach collection='list' item='en' open='(' close=')' separator=','>#{en}</foreach></script>\")\n int batchDelete(List list);\n\n}", "title": "" }, { "docid": "1f348f7f53e89e71f9164eb720852e78", "score": "0.44820538", "text": "TbSau001m selectByPrimaryKey(@Param(\"usrId\") String usrId, @Param(\"pipaUsrId\") String pipaUsrId);", "title": "" }, { "docid": "9f120a4765281a40dbc88200c512295b", "score": "0.44801825", "text": "List<GIPIParItemMC> getGIPIEndtParItemMCs(int parId) throws SQLException;", "title": "" }, { "docid": "11dc2742f6e0f27b4afd7a3c8015077d", "score": "0.4476341", "text": "public interface SysDesignerItemDao extends BaseDao<SysDesignerItem, Long> {\n}", "title": "" }, { "docid": "3c2e548887a88cde0aa88bf8ff71b843", "score": "0.44754764", "text": "public interface LogMapper extends ServiceMapper {\n\n public final static String AC_STATUS_TB_NAME = \"spms_ac_status\";\n public final static String WIN_DOOR_RUN_LOG_TB_NAME = \"spms_win_door_status\";\n public final static String GATEWAY_STATUS_TB_NAME = \"spms_gw_status\";\n\n @Insert(\"INSERT INTO \" +\n \" \" + AC_STATUS_TB_NAME + \" \" +\n \"(`id`, `device_id`, `on_off`, `temp`,`humidity`, `power`, `accumulatePower`, `start_time`,`reactivePower`,\" +\n \"`reactiveEnergy`,`apparentPower`,`voltage`,`current`,`frequency`,`powerFactor`,`demandTime`,\" +\n \"`period`,`activeDemand`,`reactiveDemand`) VALUES \" +\n \"(#{id}, #{deviceId}, #{onOff}, #{currentTemperature}, #{humidity}, #{power}, #{accumulatePower}, #{currentTime},#{reactivePower},\" +\n \"#{reactiveEnergy},#{apparentPower},#{voltage},#{current},#{frequency},#{powerFactor},#{startTime},\" +\n \"#{period},#{activeDemand},#{reactiveDemand})\")\n public void insertAirconShortLog(\n @Param(\"id\") String id,\n @Param(\"deviceId\") String deviceId,\n @Param(\"onOff\") Integer onOff,\n @Param(\"currentTemperature\") Integer currentTemperature,\n @Param(\"power\") Integer power,\n @Param(\"accumulatePower\") Long accumulatePower,\n @Param(\"humidity\") Long humidity,\n @Param(\"currentTime\") Timestamp currentTime,\n @Param(\"reactivePower\") Integer reactivePower,\n @Param(\"reactiveEnergy\") Integer reactiveEnergy,\n @Param(\"apparentPower\") Integer apparentPower,\n @Param(\"voltage\") Integer voltage,\n @Param(\"current\") Integer current,\n @Param(\"frequency\") Integer frequency,\n @Param(\"powerFactor\") Integer powerFactor,\n @Param(\"startTime\") Timestamp startTime,\n @Param(\"period\") Integer period,\n @Param(\"activeDemand\") Integer activeDemand,\n @Param(\"reactiveDemand\") Integer reactiveDemand\n );\n\n @Insert(\"INSERT INTO \" +\n \" \" + AC_STATUS_TB_NAME + \" \" +\n \"(`id`, `device_id`, `on_off`, `temp`, `ac_temp`, `humidity`, `power`, `accumulatePower`, `model`, `speed`, `direction`, `start_time`) VALUES \" +\n \"(#{id}, #{deviceId}, #{onOff}, #{currentTemperature}, #{targetTemperature}, #{power}, #{accumulatePower}, #{mode}, #{speed}, #{direction}, #{currentTime})\")\n public void insertAirconLongLog(\n @Param(\"id\") String id,\n @Param(\"deviceId\") String deviceId,\n @Param(\"onOff\") Integer onOff,\n @Param(\"currentTemperature\") Integer currentTemperature,\n @Param(\"targetTemperature\") Integer targetTemperature,\n @Param(\"humidity\") Integer humidity,\n @Param(\"power\") Integer power,\n @Param(\"accumulatePower\") Long accumulatePower,\n @Param(\"mode\") Integer mode,\n @Param(\"speed\") Integer speed,\n @Param(\"direction\") Integer direction,\n @Param(\"currentTime\") Timestamp currentTime\n );\n\n\n @Insert(\"INSERT INTO \" +\n \" \" + WIN_DOOR_RUN_LOG_TB_NAME + \" \" +\n \"(`id`, `device_id`, `operate_type`, `operate_time`) VALUES \" +\n \"(#{id}, #{deviceId}, #{on}, #{currentTime})\")\n public void insertWinDoorLog(\n @Param(\"id\") String id,\n @Param(\"deviceId\") String deviceId,\n @Param(\"on\") Integer on,\n @Param(\"currentTime\") Timestamp currentTime\n );\n\n @Insert(\"INSERT INTO \" +\n \" \" + GATEWAY_STATUS_TB_NAME + \" \" +\n \"(`id`, `device_id`, `status`, `user_id`, `create_time`) VALUES \" +\n \"(#{id}, #{deviceId}, #{status}, #{userId}, #{timestamp})\")\n public void insertGatewayLog(\n @Param(\"id\") String id,\n @Param(\"deviceId\") String deviceId,\n @Param(\"status\") Integer status,\n @Param(\"userId\") String userId,\n @Param(\"timestamp\") Timestamp timestamp\n );\n /**\n * 批量插入gwlog\n */\n \n public void batchInsertGWLog(List<Map<String, Object>> list);\n /**\n * 批量插入aclog\n */\n @InsertProvider(type=LogSqlProvider.class,method=\"batchInsertACLog\")\n public void batchInsertACLog(List<Map<String, Object>> list);\n /**\n * 批量插入门窗日志\n */\n public void batchInsertWDLog(List<Map<String, Object>> list);\n}", "title": "" }, { "docid": "dfbee8a6fba36ffbaea41bab380b241d", "score": "0.44737756", "text": "public String getMetaData(ConnectionContext cc) throws NamingException, SQLException\n {\n // TODO : Using this metadata, we can determine what variables are in and out so that the developer doesn't even have to set it in XML\n // but currently the procedure-name attribute isn't required but the 'type' attribute is required. If we go the\n // metadata route we need to change some handling to accept setting the 'type' and if it's not set, we can use\n // the metadata to get the param type\n StringBuffer sb = new StringBuffer();\n if(procedureName != null && procedureName.length() > 0)\n {\n // Get DatabaseMetaData\n Connection connection = cc.getConnection();\n DatabaseMetaData dbmd = connection.getMetaData();\n ResultSet rs = dbmd.getProcedureColumns(null, null, procedureName, \"%\");\n // Printout table data\n while(rs.next())\n {\n // Get procedure metadata\n String dbProcedureCatalog = rs.getString(1);\n String dbProcedureSchema = rs.getString(2);\n String dbProcedureName = rs.getString(3);\n String dbColumnName = rs.getString(4);\n short dbColumnReturn = rs.getShort(5);\n String dbColumnReturnTypeName = rs.getString(7);\n int dbColumnPrecision = rs.getInt(8);\n int dbColumnByteLength = rs.getInt(9);\n short dbColumnScale = rs.getShort(10);\n short dbColumnRadix = rs.getShort(11);\n String dbColumnRemarks = rs.getString(13);\n // Interpret the return type (readable for humans)\n String procReturn;\n switch(dbColumnReturn)\n {\n case DatabaseMetaData.procedureColumnIn:\n procReturn = \"In\";\n break;\n case DatabaseMetaData.procedureColumnOut:\n procReturn = \"Out\";\n break;\n case DatabaseMetaData.procedureColumnInOut:\n procReturn = \"In/Out\";\n break;\n case DatabaseMetaData.procedureColumnReturn:\n procReturn = \"return value\";\n break;\n case DatabaseMetaData.procedureColumnResult:\n procReturn = \"return ResultSet\";\n default:\n procReturn = \"Unknown\";\n }\n // Printout\n sb.append(\"Procedure: \" + dbProcedureCatalog + \".\" + dbProcedureSchema\n + \".\" + dbProcedureName);\n sb.append(\" ColumnName [ColumnType(ColumnPrecision)]: \" + dbColumnName\n + \" [\" + dbColumnReturnTypeName + \"(\" + dbColumnPrecision + \")]\");\n sb.append(\" ColumnReturns: \" + procReturn + \"(\" + dbColumnReturnTypeName + \")\");\n sb.append(\" Radix: \" + dbColumnRadix + \", Scale: \" + dbColumnScale);\n sb.append(\" Remarks: \" + dbColumnRemarks);\n }\n rs.close();\n connection.close();\n }\n return sb.toString();\n }", "title": "" }, { "docid": "6576186b5e0b24b64a5bd065f1275850", "score": "0.447192", "text": "@Override\r\n\tprotected String getSqlString() {\n\t\treturn \" select m.menurole_id, lower(m.menuname) menuname, \"+\r\n\t\t\" m.nodeno, \"+ \r\n\t\t\" m.href, \"+\r\n\t\t\" coalesce(m.parent_id, 0) parent_id \"+\r\n\t\t\" from menu m order by menuname \";\r\n\t}", "title": "" }, { "docid": "9b76fc0e4a384d90b03e8f52446ddbcb", "score": "0.4470236", "text": "public String toSQL(){\n return null;\n }", "title": "" }, { "docid": "03eb0501fac086ae59a4037c65970b99", "score": "0.4468507", "text": "public void c2pPropos() {\n\t\t\n\t}", "title": "" }, { "docid": "afe32c7dc7068aaa4930c4f1ac617d04", "score": "0.4467505", "text": "@Insert({\n \"insert into sys_resource (name, parent_id, \",\n \"is_show, tag, path, \",\n \"icon, type, sort, \",\n \"create_time, modify_time)\",\n \"values (#{name,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER}, \",\n \"#{isShow,jdbcType=INTEGER}, #{tag,jdbcType=VARCHAR}, #{path,jdbcType=VARCHAR}, \",\n \"#{icon,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER}, \",\n \"#{createTime,jdbcType=TIMESTAMP}, #{modifyTime,jdbcType=TIMESTAMP})\"\n })\n @SelectKey(statement=\"SELECT LAST_INSERT_ID()\", keyProperty=\"id\", before=false, resultType=Integer.class)\n int insert(Resource record);", "title": "" }, { "docid": "35f9763a1097f7c258b4e959131bbd5b", "score": "0.4467371", "text": "public PimsSysReportItemsDaoHibernate() {\n super(PimsSysReportItems.class);\n }", "title": "" }, { "docid": "435ff5c6bf1a9958f6346f8be5f476c2", "score": "0.44658384", "text": "public interface ParametrosDao extends HibernateDao<Parametros, Long>\n{\n\n}", "title": "" }, { "docid": "d96fe11b16d18cf970f24365a91a8742", "score": "0.44655776", "text": "public static void createAndGenerate() throws IOException {\n\n\n String sqlCreate;\n String sqlGenerate;\n\n\n//SAP\n\n sqlCreate = \"CREATE TABLE sap (\" +\n \"Projektdef varchar(50),\" +\n \"PSPElement varchar(50),\" +\n \"Objektbezeichnung varchar(50),\" +\n \"Kostenart varchar(50),\" +\n \"KostenartenBez varchar(50),\" +\n \"Bezeichnung varchar(50),\" +\n \"Partnerobjekt varchar(50),\" +\n \"Periode varchar(50),\" +\n \"Jahr varchar(50),\" +\n \"Belegnr varchar(50),\" +\n \"BuchDatum date,\" +\n \"WertKWahr double,\" +\n \"KWahr varchar(50),\" +\n \"MengeErf varchar(50),\" +\n \"GME varchar(50))\";\n\n\n sqlGenerate = \"INSERT INTO sap \" +\n \"(Projektdef,PSPElement,Objektbezeichnung,Kostenart,KostenartenBez,Bezeichnung,Partnerobjekt,Periode,Jahr,Belegnr,BuchDatum,WertKWahr,KWahr,MengeErf,GME)\"+\n \"VALUES\"+\n \"(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\";\n\n\n try( Statement s = DbContext.getConnection().createStatement()) {\n s.executeUpdate(\"DROP TABLE IF EXISTS sap\");\n s.executeUpdate(sqlCreate);\n System.out.println(\"Table sap created\");\n } catch (SQLException e) {\n System.out.println(\"Table sap failed\");\n e.printStackTrace();\n }\n\n ArrayList<ExcelRow> list = readFromFile(null);\n Set<List> projects = new HashSet<>();\n\n\n try(PreparedStatement s = DbContext.getConnection().prepareStatement(sqlGenerate)){\n for(ExcelRow tmp : list){\n ArrayList<String> data = tmp.getData();\n java.util.Date date = tmp.getDate();\n\n for(int i = 0; i < data.size();i++){\n if(i == 7 || i == 8){\n s.setInt(i+1,Integer.parseInt(data.get(i)));\n }else if( i== 11 || i == 13){\n s.setBigDecimal(i+1, new BigDecimal(data.get(i)));\n }else {\n s.setString(i + 1, data.get(i));\n }\n }\n projects.add(Arrays.asList(data.get(0),\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"));\n java.sql.Date sqlDate = new java.sql.Date(date.getTime());\n\n s.setDate(11,sqlDate);\n s.executeUpdate();\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n//CUSTOMERS\n\n sqlCreate = \"CREATE TABLE customers ( id int primary key AUTO_INCREMENT, \" +\n \"name varchar(50) UNIQUE NOT NULL)\";\n\n sqlGenerate = \"insert into customers (name) values ('audi')\";\n\n try( Statement s = DbContext.getConnection().createStatement()) {\n s.executeUpdate(\"DROP TABLE IF EXISTS customers\");\n s.executeUpdate(sqlCreate);\n System.out.println(\"Table customers created\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n\n\n\n//PROJECTS\n\n sqlCreate = \"CREATE TABLE projects (\" +\n \"id int primary key auto_increment,\"+\n \"projectNumber varchar(50) UNIQUE NOT NULL,\" +\n \"projectName varchar(50) NOT NULL,\" +\n \"partNumber varchar(50),\" +\n \"ROS varchar(50),\" +\n \"ROCE varchar(50),\" +\n \"volumes varchar(50),\" +\n \"DDCost double,\" +\n \"prototypeCosts double,\" +\n \"lastUpdate date,\" +\n \"customer_id int references customers(id))\";\n\n sqlGenerate = \"INSERT INTO projects\"+\n \"(projectNumber,projectName,partNumber,ROS,ROCE,volumes,DDCost,prototypeCosts,lastUpdate, customer_id)\"+\n \"VALUES\"+\n \"(?,?,?,?,?,?,?,?,?,?)\";\n\n try( Statement s = DbContext.getConnection().createStatement()) {\n s.executeUpdate(\"DROP TABLE IF EXISTS projects\");\n s.executeUpdate(sqlCreate);\n System.out.println(\"Table projects created\");\n } catch (SQLException e) {\n System.out.println(\"Table projects failed\");\n e.printStackTrace();\n }\n\n int projectNr = 0;\n try(PreparedStatement s = DbContext.getConnection().prepareStatement(sqlGenerate)) {\n for(List arr : projects){\n\n s.setString(1,arr.get(0).toString());\n s.setString(2,\"project\"+projectNr++);\n s.setString(3,arr.get(2).toString());\n s.setString(4,arr.get(3).toString());\n s.setString(5,arr.get(4).toString());\n s.setString(6,arr.get(5).toString());\n s.setBigDecimal(7, BigDecimal.ZERO);\n s.setBigDecimal(8,BigDecimal.ZERO);\n s.setDate(9,null);\n s.setInt(10, 1);\n s.executeUpdate();\n\n }\n System.out.println(\"Table projects filled\");\n } catch (SQLException e) {\n System.out.println(\"projects INSERT FAILED\");\n e.printStackTrace();\n }\n\n\n\n\n//USERS\n\n ArrayList<List> users = new ArrayList();\n users.add(Arrays.asList(\"Adam\",\"Mrkvicka\",\"adam@boge.com\",\"nenavidimMrkvu\",\"CENTRAL_ADMIN\",true,false));\n users.add(Arrays.asList(\"Peter\",\"Zahradka\",\"peter@boge.com\",\"pestujemTravicku\",\"USER\",true,false));\n users.add(Arrays.asList(\"Jozef\",\"Strom\",\"jozef@boge.com\",\"stromySuLaska\",\"PROJECT_ADMIN\",true,false));\n users.add(Arrays.asList(\"Anna\",\"Bobrova\",\"anna@boge.com\",\"boborIbaVMene\",\"USER\",true,false));\n users.add(Arrays.asList(\"Lojzo\",\"Hipster\",\"lojzo@boge.com\",\"rawVeganForLife\",\"USER\",false,false));\n\n sqlCreate = \"CREATE TABLE users (\" +\n \"id integer primary key AUTO_INCREMENT,\"+\n \"name varchar(50) NOT NULL,\" +\n \"surname varchar(50) NOT NULL,\" +\n \"email varchar(50),\" +\n \"password varchar(50),\" +\n \"userType varchar(50),\" +\n \"approved boolean,\" +\n \"deleted boolean NOT NULL)\";\n\n sqlGenerate = \"INSERT INTO users\"+\n \"(name,surname,email,password,userType,approved,deleted)\"+\n \"VALUES\"+\n \"(?,?,?,?,?,?,?)\";\n\n try( Statement s = DbContext.getConnection().createStatement()) {\n s.executeUpdate(\"DROP TABLE IF EXISTS users\");\n s.executeUpdate(sqlCreate);\n System.out.println(\"Table users created\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n try(PreparedStatement s = DbContext.getConnection().prepareStatement(sqlGenerate)) {\n for(List arr : users){\n s.setString(1,arr.get(0).toString());\n s.setString(2,arr.get(1).toString());\n s.setString(3,arr.get(2).toString());\n s.setString(4,arr.get(3).toString());\n s.setString(5,arr.get(4).toString());\n s.setBoolean(6,(Boolean)arr.get(5));\n s.setBoolean(7,(Boolean)arr.get(6));\n s.executeUpdate();\n }\n System.out.println(\"Table users filled\");\n } catch (SQLException e) {\n System.out.println(\"user INSERT FAILED\");\n e.printStackTrace();\n }\n\n//ADMINISTRATION\n sqlCreate = \"CREATE TABLE administration(\" +\n \"id int primary key auto_increment, \" +\n \"user_id int references users(id),\"+\n \"project_id int references projects(id)\"+\n \")\";\n\n try( Statement s = DbContext.getConnection().createStatement()) {\n s.executeUpdate(\"DROP TABLE IF EXISTS administration\");\n s.executeUpdate(sqlCreate);\n System.out.println(\"Table administration created\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n//REMINDERS\n\n sqlCreate = \"CREATE TABLE reminders (id int primary key auto_increment, \" +\n \"text varchar(150) NOT NULL,\" +\n \"project_id int references projects(id), \" +\n \"date date,closed boolean,unique_code varchar(150) UNIQUE,sent boolean)\";\n\n try( Statement s = DbContext.getConnection().createStatement()) {\n s.executeUpdate(\"DROP TABLE IF EXISTS reminders\");\n s.executeUpdate(sqlCreate);\n System.out.println(\"Table reminders created\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n\n\n//REGISTRATION REQUESTS\n\n sqlCreate = \"CREATE TABLE registration_requests ( \" +\n \"id int primary key auto_increment,\" +\n \"user_id int references users(id),\"+\n \"text varchar(150) NOT NULL)\";\n\n try( Statement s = DbContext.getConnection().createStatement()) {\n s.executeUpdate(\"DROP TABLE IF EXISTS registration_requests\");\n s.executeUpdate(sqlCreate);\n System.out.println(\"Table registration_requests created\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n\n//LOGS\n\n sqlCreate = \"CREATE TABLE logs (\" +\n \"id int primary key AUTO_INCREMENT, \"+\n \"user_id int references users(id),\"+\n \"text longtext NOT NULL,\"+\n \"time timestamp NOT NULL)\";\n\n\n\n try( Statement s = DbContext.getConnection().createStatement()) {\n s.executeUpdate(\"DROP TABLE IF EXISTS logs\");\n s.executeUpdate(sqlCreate);\n System.out.println(\"Table logs created\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "b03c216646eadd5fa7d433f623ff3df3", "score": "0.44606993", "text": "private Long getSystemId() {\n\t\t\n\t\tProperties properties = em.find(Properties.class, SYSTEM_ID_PROPETY);\n\t\tif (properties==null) {\n\t\t\tString message = \"No property found in properties table for: \" + SYSTEM_ID_PROPETY + \". Please contact erm admin\";\n\t\t\tgetLogger().log(Level.SEVERE,message);\n\t\t\tthrow new RuntimeException(message);\n\t\t}\n\t\treturn properties.getLongValue();\n\t\t\n\t}", "title": "" }, { "docid": "1bc425a8a110daa41ae3b32f1193d231", "score": "0.44576734", "text": "public boolean saveDimensionMembers(String dimId, String dimTabId, String colName, String colType, String tableId, String bussTableName, String elementId, String bussTableId, String dimSegmentFormula, HttpSession session) {\r\n ArrayList queryList = new ArrayList();\r\n String sql = \"\";\r\n Connection con = null;\r\n Statement st2 = null;\r\n// Statement st3 = null;\r\n// ResultSet rs = null;\r\n// ResultSet rs1 = null;\r\n String Q1, Q2, Q3;\r\n int f = 0;\r\n String dbDimId = \"\";\r\n boolean flag = true;\r\n String columnId = \"\";\r\n String dbDimTabId = \"\";\r\n try {\r\n PbDb pbdb = new PbDb();\r\n PbReturnObject returnObj = null;\r\n String getDbDimId = \"select DB_DIM_ID from PRG_GRP_DIM_TABLES where DIM_ID=\" + dimId;\r\n returnObj = pbdb.execSelectSQL(getDbDimId);\r\n if (returnObj.getRowCount() > 0) {\r\n dbDimId = returnObj.getFieldValueString(0, 0);\r\n returnObj = null;\r\n String getAllDetails = \"select q.tab_id,d.table_name, q.dim_tab_id from prg_qry_dim_tables q , prg_db_master_table d where q.tab_id= d.table_id and q.dim_id=\" + dbDimId;\r\n returnObj = pbdb.execSelectSQL(getAllDetails);\r\n tableId = returnObj.getFieldValueString(0, 0);\r\n bussTableName = returnObj.getFieldValueString(0, 1);\r\n dbDimTabId = returnObj.getFieldValueString(0, 2);\r\n con = ProgenConnection.getInstance().getConnection();\r\n Q2 = \"select column_id from prg_db_master_table_details where table_id in (\" + tableId + \")and column_id not in( select col_id from prg_qry_dim_tab_details where dim_tab_id=\" + dbDimTabId + \")and is_active='Y'\";\r\n returnObj = null;\r\n returnObj = pbdb.execSelectSQL(Q2);\r\n if (returnObj.getRowCount() > 0) {\r\n for (int i = 0; i < returnObj.getRowCount(); i++) {\r\n columnId = returnObj.getFieldValueString(i, 0);\r\n if (ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.SQL_SERVER) || ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.MYSQL)) {\r\n Q3 = \"insert into prg_qry_dim_tab_details (dim_tab_id,col_id,is_available,is_pk_key) values (\" + dbDimTabId + \",\" + columnId + \",'Y','N')\";\r\n } else {\r\n Q3 = \"insert into prg_qry_dim_tab_details (dim_tab_col_id,dim_tab_id,col_id,is_available,is_pk_key) values (prg_qry_dim_tab_details_seq.nextval,\" + dbDimTabId + \",\" + columnId + \",'Y','N')\";\r\n }\r\n// st2 = con.createStatement();\r\n// f = st2.executeUpdate(Q3);\r\n// if(f==0){\r\n// flag = false;\r\n// }\r\n queryList.add(Q3);\r\n\r\n if (ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.MYSQL)) {\r\n flag = pbdb.executeMultiple(queryList);\r\n } else {\r\n flag = pbdb.execMultiple(queryList);\r\n }\r\n //Save member\r\n if (flag) {\r\n queryList.clear();\r\n PbReturnObject pbro = new PbReturnObject();\r\n int nextval = 0;\r\n returnObj = null;\r\n sql = \"select m.column_id,m.table_col_name,d.is_pk_key,d.is_available from prg_db_master_table_details m, prg_qry_dim_tab_details d where m.column_id= d.col_id and d.dim_tab_id=\" + dbDimTabId + \" and d.is_available='Y' and d.col_id=\" + columnId + \" order by d.is_pk_key desc,m.table_col_name ASC\";\r\n returnObj = pbdb.execSelectSQL(sql);\r\n if (returnObj.getRowCount() > 0) {\r\n String desc = returnObj.getFieldValueString(0, 1).replaceAll(\"_\", \" \");\r\n String memname = returnObj.getFieldValueString(0, 1).replaceAll(\"_\", \" \");\r\n String key = returnObj.getFieldValueString(0, 1);\r\n String keyValue = returnObj.getFieldValueString(0, 1);\r\n String all = \"Y\";\r\n String defaultValue = \"\";\r\n String orderBy = returnObj.getFieldValueString(0, 0);\r\n String isNullValue = \"NAN\";\r\n String denorQuery = \"SELECT DISTINCT \" + key + \",\" + keyValue + \" FROM \" + bussTableName;\r\n //insert in qry master\r\n String query = \"\";\r\n if (ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.SQL_SERVER) || ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.MYSQL)) {\r\n query = \"insert into prg_qry_dim_member ( MEMBER_NAME, DIM_ID, DIM_TAB_ID, USE_DENOM_TABLE, DENOM_TAB_ID, DENOM_QUERY,MEMBER_DESC,MEMBER_ORDER_BY,ISNULLvALUE) values('\" + memname + \"',\" + dbDimId + \",\" + dbDimTabId + \",'Y',\" + tableId + \",'\" + denorQuery + \"','\" + desc + \"',\" + orderBy + \",'\" + isNullValue + \"')\";\r\n } else {\r\n pbro = pbdb.execSelectSQL(\"select PRG_QRY_DIM_MEMBER_SEQ.nextval from dual\");\r\n nextval = pbro.getFieldValueInt(0, \"NEXTVAL\");\r\n query = \"insert into prg_qry_dim_member (MEMBER_ID, MEMBER_NAME, DIM_ID, DIM_TAB_ID, USE_DENOM_TABLE, DENOM_TAB_ID, DENOM_QUERY,MEMBER_DESC,MEMBER_ORDER_BY,ISNULLvALUE) values(\" + nextval + \",'\" + memname + \"',\" + dbDimId + \",\" + dbDimTabId + \",'Y',\" + tableId + \",'\" + denorQuery + \"','\" + desc + \"',\" + orderBy + \",'\" + isNullValue + \"')\";\r\n }\r\n try {\r\n queryList.add(query);\r\n // pbdb.execUpdateSQL(query);\r\n\r\n //insert in qry details\r\n String querydet = \"\";\r\n if (ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.SQL_SERVER)) {\r\n querydet = \"insert into PRG_QRY_DIM_MEMBER_DETAILS ( MEM_ID, COL_ID, COL_TYPE) values (ident_current('PRG_QRY_DIM_MEMBER'),\" + orderBy + \",'KEY')\";\r\n } else if (ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.MYSQL)) {\r\n querydet = \"insert into PRG_QRY_DIM_MEMBER_DETAILS ( MEM_ID, COL_ID, COL_TYPE) values ((select LAST_INSERT_ID(MEMBER_ID) FROM PRG_QRY_DIM_MEMBER ORDER BY 1 DESC LIMIT 1),\" + orderBy + \",'KEY')\";\r\n } else {\r\n querydet = \"insert into PRG_QRY_DIM_MEMBER_DETAILS (MEM_DETAIL_ID, MEM_ID, COL_ID, COL_TYPE) values (PRG_QRY_DIM_MEMBER_DETAILS_SEQ.nextval,\" + nextval + \",\" + orderBy + \",'KEY')\";\r\n }\r\n queryList.add(querydet);\r\n // pbdb.execUpdateSQL(query);\r\n // if (all == null) {\r\n // if (ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.SQL_SERVER)) {\r\n // pbdb.execModifySQL(\"insert into PRG_QRY_DIM_MEMBER_DETAILS (MEM_ID, COL_ID, COL_TYPE,DEFAULT_VAL) values (ident_current('PRG_QRY_DIM_MEMBER'),\" + keyValuearr[i] + \",'VALUE','\" + defaultarr[i] + \"')\");\r\n // } else if(ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.MYSQL)) {\r\n // pbdb.execModifySQL(\"insert into PRG_QRY_DIM_MEMBER_DETAILS (MEM_ID, COL_ID, COL_TYPE,DEFAULT_VAL) values ((select LAST_INSERT_ID(MEMBER_ID) FROM PRG_QRY_DIM_MEMBER ORDER BY 1 DESC LIMIT 1),\" + keyValuearr[i] + \",'VALUE','\" + defaultarr[i] + \"')\");\r\n // } else {\r\n // pbdb.execModifySQL(\"insert into PRG_QRY_DIM_MEMBER_DETAILS (MEM_DETAIL_ID, MEM_ID, COL_ID, COL_TYPE) values (PRG_QRY_DIM_MEMBER_DETAILS_SEQ.nextval,\" + nextval + \",\" + keyValuearr[i] + \",'VALUE')\");\r\n // }\r\n // } else {\r\n String querydets = \"\";\r\n if (ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.SQL_SERVER)) {\r\n querydets = \"insert into PRG_QRY_DIM_MEMBER_DETAILS ( MEM_ID, COL_ID, COL_TYPE) values (ident_current('PRG_QRY_DIM_MEMBER'),\" + orderBy + \",'VALUE')\";\r\n } else if (ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.MYSQL)) {\r\n querydets = \"insert into PRG_QRY_DIM_MEMBER_DETAILS ( MEM_ID, COL_ID, COL_TYPE) values ((select LAST_INSERT_ID(MEMBER_ID) FROM PRG_QRY_DIM_MEMBER ORDER BY 1 DESC LIMIT 1),\" + orderBy + \",'VALUE')\";\r\n } else {\r\n querydets = \"insert into PRG_QRY_DIM_MEMBER_DETAILS (MEM_DETAIL_ID, MEM_ID, COL_ID, COL_TYPE) values (PRG_QRY_DIM_MEMBER_DETAILS_SEQ.nextval,\" + nextval + \",\" + orderBy + \",'VALUE')\";\r\n }\r\n queryList.add(querydets);\r\n// flag = pbdb.execMultiple(queryList);\r\n if (ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.MYSQL)) {\r\n flag = pbdb.executeMultiple(queryList);\r\n } else {\r\n flag = pbdb.execMultiple(queryList);\r\n }\r\n if (flag) {\r\n// Step 4: save hierarchy\r\n flag = saveHierarchy(dbDimId, tableId, elementId);\r\n if (flag) {\r\n// Step 5: Save In Business Group\r\n flag = insertInBussGroupSrc(bussTableId, colName, tableId, colType, columnId);\r\n if (flag) {\r\n// Step 6: insert into Dimension Group\r\n flag = insertDimensionGrp(tableId, dimTabId, dimId, elementId, dbDimId, dbDimTabId);\r\n// Step 7: Truncate & Load Dim Map Table\r\n if (flag) {\r\n flag = truncateInsertDimValues();\r\n if (flag) {\r\n// Step 8: MIGRATE DIMENSION MEMBER TO BUSINESS ROLE\r\n flag = migrateDimensionMemberToRole(elementId, dimId, dimTabId, columnId, dimSegmentFormula, session);\r\n } else {\r\n return false;\r\n }\r\n }\r\n } else {\r\n return false;\r\n }\r\n } else {\r\n return false;\r\n }\r\n } else {\r\n return false;\r\n }\r\n } catch (Exception ex) {\r\n\r\n logger.error(\"Exception:\", ex);\r\n return false;\r\n }\r\n } else {\r\n return false;\r\n }\r\n } else {\r\n return false;\r\n }\r\n }\r\n } else {\r\n return false;\r\n }\r\n } else {\r\n return false;\r\n }\r\n } catch (SQLException ex) {\r\n\r\n logger.error(\"Exception:\", ex);\r\n return false;\r\n }\r\n return flag;\r\n\r\n }", "title": "" }, { "docid": "c278483866a8807faecea909b8fa519f", "score": "0.44476235", "text": "public String executeSchemaName(){ return null; }", "title": "" }, { "docid": "9da2f3bf85368a9f08671891cdf58c49", "score": "0.44454512", "text": "public ResponseService executeService(BasicInputParameters loInput){\n \n ResponseService loResponseService = new ResponseService();\n EntityMappedDao loEntityMappedDao = new EntityMappedDao();\n ResponseBreaksDao loResponseBreaksDao = new ResponseBreaksDao();\n boolean lbProcess = true;\n \n String lsReturn = \"Order/spots execute\";\n loResponseService.setLiIdRequest(loInput.getLiIdRequest());\n loResponseService.setLiIdService(loInput.getLiIdService());\n loResponseService.setLiIdUser(loInput.getLiIdUser());\n loResponseService.setLsMessageResponse(lsReturn);\n loResponseService.setLsServiceType(loInput.getLsServiceType());\n loResponseService.setLsMessageResponse(lsReturn);\n loResponseService.setLsUserName(loInput.getLsUserName());\n //Obtener idLog service de la tabla \n Integer liIdLogService = new ViewObjectDao().getMaxIdParadigm(\"Log\") + 1;\n LmkIntServicesLogRowBean loSlb = new LmkIntServicesLogRowBean();\n loSlb.setLiIdLogServices(liIdLogService);\n loSlb.setLiIdService(loInput.getLiIdService());\n loSlb.setLiIndProcess(0);\n loSlb.setLiNumPgmProcessId(loInput.getLiIdRequest());\n loSlb.setLiNumProcessId(loInput.getLiIdRequest());\n loSlb.setLiNumUser(loInput.getLiIdUser());\n loSlb.setLsIndEstatus(\"1\");\n loSlb.setLsIndResponse(\"N\");\n loSlb.setLsIndServiceType(loInput.getLsServiceType());\n loSlb.setLsMessage(\"Execute \"+loInput.getLsServiceName());\n loSlb.setLsUserName(loInput.getLsUserName());\n loSlb.setLiIdUser(loInput.getLiIdUser());\n new UtilFaces().insertLogServiceService(loSlb);\n \n LmkIntServiceBitacoraRowBean loBitBean = new LmkIntServiceBitacoraRowBean();\n Integer liIndProcess = \n new UtilFaces().getIdConfigParameterByName(\"ExecuteService\");//\n loBitBean.setLiIdLogServices(liIdLogService);\n loBitBean.setLiIdService(loInput.getLiIdService());\n loBitBean.setLiIndProcess(liIndProcess);\n loBitBean.setLiNumProcessId(0);\n loBitBean.setLiNumPgmProcessId(0);\n loBitBean.setLsIndEvento(\"Ejecución de Servicio para Orden/Spots de landmark \"+\n loInput.getLsServiceName());\n \n loEntityMappedDao.insertBitacoraWs(loBitBean,\n loInput.getLiIdUser(), \n loInput.getLsUserName()); \n \n //- Ir a la bd de archivos fisicos y extrer los archivos tipo request que se\n //descartarán vs extraidos de carpeta remota\n String lsWhere = \" AND NOM_FILE LIKE '%.xml' \" + //Solo archivos xml\n \" AND IND_ESTATUS = 'A'\";\n \n List<LmkIntXmlFilesRowBean> laList = \n loResponseBreaksDao.getAllFilesPending(lsWhere);\n \n //- Ir a carpeta de landmark y extraer nombres de archivo *.brk\n String lsPath = \n loEntityMappedDao.getGeneralParameter(\"PATH_SPOTS_INPUT\", \"SSH_CONNECTION\");\n String lsExt = \"*.brk\";\n \n SftpManagment loSmg = new SftpManagment();\n List<String> laLisSsh = loSmg.getListFileServerSFTP(lsPath, lsExt);\n System.out.println(\"Numero de archivos extrados del server ssh [\"+laLisSsh.size()+\"]\");\n List<String> laInputList = new ArrayList<String>();\n if(laList.size() > 0){\n for(LmkIntXmlFilesRowBean loBean : laList){\n int liI = 0;\n lbProcess = true;\n while(liI < laLisSsh.size() && lbProcess == true){\n //- Buscar cada nombre de archivo fisico en el grupo\n System.out.println(\"indexOf: loBean.getLsNomFile()[\"+loBean.getLsNomFile()+\n \"] VS laLis.get(\"+liI+\")[\"+laLisSsh.get(liI).indexOf(loBean.getLsNomFile())+\"]\");\n if(laLisSsh.get(liI).indexOf(loBean.getLsNomFile()) >= 0){\n lbProcess = false;//Para que el ciclo sea cortado\n System.out.println(\"COINCIDENCIA ENCONTRADA PARA (\"+loBean.getLsNomFile()+\")\");\n //Discriminar este registro, ya que ya está procesado\n }else{\n laInputList.add(laLisSsh.get(liI));\n }\n liI++;\n }\n \n } \n }else{//Een base de datos no hay ninguno en estatus alta\n laInputList.addAll(laLisSsh);\n }\n \n if(laInputList.size() > 0){\n //Con un cron por cada archivo encontrado, ejecutar la lectura, guardado y logica de cada archivo\n for(String lsFileName : laInputList){\n String lsTrigger = lsFileName+getIdBitacora();\n //Invocar job asincrono simple\n Scheduler loScheduler;\n try {\n loScheduler = new StdSchedulerFactory().getScheduler();\n JobDetail loJob = \n JobBuilder.newJob(OrderSpotsImpCron.class).build();\n Trigger loTrigger = \n TriggerBuilder.newTrigger().withIdentity(lsTrigger).build();\n JobDataMap loJobDataMap= loJob.getJobDataMap();\n //------------------------------------------\n loJobDataMap.put(\"lsIdService\", String.valueOf(loInput.getLiIdService())); \n loJobDataMap.put(\"lsIdUser\", String.valueOf(loInput.getLiIdUser())); \n loJobDataMap.put(\"lsUserName\", loInput.getLsUserName()); \n loJobDataMap.put(\"lsTypeProcess\", loInput.getLsServiceType());\n loJobDataMap.put(\"lsServiceName\", loInput.getLsServiceName());\n loJobDataMap.put(\"lsPathFiles\", loInput.getLsPathFiles()); \n loJobDataMap.put(\"lsIdLogService\", String.valueOf(liIdLogService)); \n //------------------------------------------\n loJobDataMap.put(\"lsFileName\", lsFileName); \n loJobDataMap.put(\"lsRequestMaster\", String.valueOf(loInput.getLiIdRequest())); \n loScheduler.scheduleJob(loJob, loTrigger);\n loScheduler.start();\n \n } catch (Exception loEx) {\n System.out.println(\"Error en invocacion de cron final \"+loEx.getMessage());\n }\n } \n \n }else{\n liIndProcess = \n new UtilFaces().getIdConfigParameterByName(\"NoData\");//\n loBitBean.setLiIdLogServices(liIdLogService);\n loBitBean.setLiIdService(loInput.getLiIdService());\n loBitBean.setLiIndProcess(liIndProcess);\n loBitBean.setLiNumProcessId(0);\n loBitBean.setLiNumPgmProcessId(0);\n loBitBean.setLsIndEvento(\"No existen archivos Orden/Spots para leer\");\n \n loEntityMappedDao.insertBitacoraWs(loBitBean,\n loInput.getLiIdUser(), \n loInput.getLsUserName()); \n }\n \n return loResponseService;\n \n }", "title": "" }, { "docid": "e85f8ca15ee8932e7ac2fe0db20e14cf", "score": "0.44374713", "text": "List<TbSys> selectByExample(TbSysExample example);", "title": "" }, { "docid": "0ead3c14130a88594ff58c67680a1fdb", "score": "0.44331908", "text": "public interface I_Z_RemitoDifInvLin \n{\n\n /** TableName=Z_RemitoDifInvLin */\n public static final String Table_Name = \"Z_RemitoDifInvLin\";\n\n /** AD_Table_ID=1000194 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID(int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AmtOpen */\n public static final String COLUMNNAME_AmtOpen = \"AmtOpen\";\n\n\t/** Set AmtOpen.\n\t * Monto pendiente\n\t */\n\tpublic void setAmtOpen(BigDecimal AmtOpen);\n\n\t/** Get AmtOpen.\n\t * Monto pendiente\n\t */\n\tpublic BigDecimal getAmtOpen();\n\n /** Column name AmtSubtotal */\n public static final String COLUMNNAME_AmtSubtotal = \"AmtSubtotal\";\n\n\t/** Set AmtSubtotal.\n\t * Subtotales para no mostrar impuestos incluídos\n\t */\n\tpublic void setAmtSubtotal(BigDecimal AmtSubtotal);\n\n\t/** Get AmtSubtotal.\n\t * Subtotales para no mostrar impuestos incluídos\n\t */\n\tpublic BigDecimal getAmtSubtotal();\n\n /** Column name AmtSubtotalPO */\n public static final String COLUMNNAME_AmtSubtotalPO = \"AmtSubtotalPO\";\n\n\t/** Set AmtSubtotalPO.\n\t * Subtotal considerando precio pactado para orden de compra\n\t */\n\tpublic void setAmtSubtotalPO(BigDecimal AmtSubtotalPO);\n\n\t/** Get AmtSubtotalPO.\n\t * Subtotal considerando precio pactado para orden de compra\n\t */\n\tpublic BigDecimal getAmtSubtotalPO();\n\n /** Column name C_Invoice_ID */\n public static final String COLUMNNAME_C_Invoice_ID = \"C_Invoice_ID\";\n\n\t/** Set Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic void setC_Invoice_ID(int C_Invoice_ID);\n\n\t/** Get Invoice.\n\t * Invoice Identifier\n\t */\n\tpublic int getC_Invoice_ID();\n\n\tpublic I_C_Invoice getC_Invoice() throws RuntimeException;\n\n /** Column name C_InvoiceLine_ID */\n public static final String COLUMNNAME_C_InvoiceLine_ID = \"C_InvoiceLine_ID\";\n\n\t/** Set Invoice Line.\n\t * Invoice Detail Line\n\t */\n\tpublic void setC_InvoiceLine_ID(int C_InvoiceLine_ID);\n\n\t/** Get Invoice Line.\n\t * Invoice Detail Line\n\t */\n\tpublic int getC_InvoiceLine_ID();\n\n\tpublic I_C_InvoiceLine getC_InvoiceLine() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name C_UOM_ID */\n public static final String COLUMNNAME_C_UOM_ID = \"C_UOM_ID\";\n\n\t/** Set UOM.\n\t * Unit of Measure\n\t */\n\tpublic void setC_UOM_ID(int C_UOM_ID);\n\n\t/** Get UOM.\n\t * Unit of Measure\n\t */\n\tpublic int getC_UOM_ID();\n\n\tpublic I_C_UOM getC_UOM() throws RuntimeException;\n\n /** Column name DifferenceAmt */\n public static final String COLUMNNAME_DifferenceAmt = \"DifferenceAmt\";\n\n\t/** Set Difference.\n\t * Difference Amount\n\t */\n\tpublic void setDifferenceAmt(BigDecimal DifferenceAmt);\n\n\t/** Get Difference.\n\t * Difference Amount\n\t */\n\tpublic BigDecimal getDifferenceAmt();\n\n /** Column name DifferencePrice */\n public static final String COLUMNNAME_DifferencePrice = \"DifferencePrice\";\n\n\t/** Set DifferencePrice.\n\t * Diferencia entre precios\n\t */\n\tpublic void setDifferencePrice(BigDecimal DifferencePrice);\n\n\t/** Get DifferencePrice.\n\t * Diferencia entre precios\n\t */\n\tpublic BigDecimal getDifferencePrice();\n\n /** Column name DifferenceQty */\n public static final String COLUMNNAME_DifferenceQty = \"DifferenceQty\";\n\n\t/** Set Difference.\n\t * Difference Quantity\n\t */\n\tpublic void setDifferenceQty(BigDecimal DifferenceQty);\n\n\t/** Get Difference.\n\t * Difference Quantity\n\t */\n\tpublic BigDecimal getDifferenceQty();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive(boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsClosed */\n public static final String COLUMNNAME_IsClosed = \"IsClosed\";\n\n\t/** Set Closed Status.\n\t * The status is closed\n\t */\n\tpublic void setIsClosed(boolean IsClosed);\n\n\t/** Get Closed Status.\n\t * The status is closed\n\t */\n\tpublic boolean isClosed();\n\n /** Column name IsDifferenceAmt */\n public static final String COLUMNNAME_IsDifferenceAmt = \"IsDifferenceAmt\";\n\n\t/** Set IsDifferenceAmt.\n\t * Si tiene o no diferencia por montos\n\t */\n\tpublic void setIsDifferenceAmt(boolean IsDifferenceAmt);\n\n\t/** Get IsDifferenceAmt.\n\t * Si tiene o no diferencia por montos\n\t */\n\tpublic boolean isDifferenceAmt();\n\n /** Column name IsDifferenceQty */\n public static final String COLUMNNAME_IsDifferenceQty = \"IsDifferenceQty\";\n\n\t/** Set IsDifferenceQty.\n\t * Si tiene o no diferencia de cantidades\n\t */\n\tpublic void setIsDifferenceQty(boolean IsDifferenceQty);\n\n\t/** Get IsDifferenceQty.\n\t * Si tiene o no diferencia de cantidades\n\t */\n\tpublic boolean isDifferenceQty();\n\n /** Column name M_InOutLine_ID */\n public static final String COLUMNNAME_M_InOutLine_ID = \"M_InOutLine_ID\";\n\n\t/** Set Shipment/Receipt Line.\n\t * Line on Shipment or Receipt document\n\t */\n\tpublic void setM_InOutLine_ID(int M_InOutLine_ID);\n\n\t/** Get Shipment/Receipt Line.\n\t * Line on Shipment or Receipt document\n\t */\n\tpublic int getM_InOutLine_ID();\n\n\tpublic I_M_InOutLine getM_InOutLine() throws RuntimeException;\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID(int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n\tpublic I_M_Product getM_Product() throws RuntimeException;\n\n /** Column name PriceInvoiced */\n public static final String COLUMNNAME_PriceInvoiced = \"PriceInvoiced\";\n\n\t/** Set Price Invoiced.\n\t * The priced invoiced to the customer (in the currency of the customer's AR price list) - 0 for default price\n\t */\n\tpublic void setPriceInvoiced(BigDecimal PriceInvoiced);\n\n\t/** Get Price Invoiced.\n\t * The priced invoiced to the customer (in the currency of the customer's AR price list) - 0 for default price\n\t */\n\tpublic BigDecimal getPriceInvoiced();\n\n /** Column name PricePO */\n public static final String COLUMNNAME_PricePO = \"PricePO\";\n\n\t/** Set PO Price.\n\t * Price based on a purchase order\n\t */\n\tpublic void setPricePO(BigDecimal PricePO);\n\n\t/** Get PO Price.\n\t * Price based on a purchase order\n\t */\n\tpublic BigDecimal getPricePO();\n\n /** Column name QtyDelivered */\n public static final String COLUMNNAME_QtyDelivered = \"QtyDelivered\";\n\n\t/** Set Delivered Quantity.\n\t * Delivered Quantity\n\t */\n\tpublic void setQtyDelivered(BigDecimal QtyDelivered);\n\n\t/** Get Delivered Quantity.\n\t * Delivered Quantity\n\t */\n\tpublic BigDecimal getQtyDelivered();\n\n /** Column name QtyInvoiced */\n public static final String COLUMNNAME_QtyInvoiced = \"QtyInvoiced\";\n\n\t/** Set Quantity Invoiced.\n\t * Invoiced Quantity\n\t */\n\tpublic void setQtyInvoiced(BigDecimal QtyInvoiced);\n\n\t/** Get Quantity Invoiced.\n\t * Invoiced Quantity\n\t */\n\tpublic BigDecimal getQtyInvoiced();\n\n /** Column name QtyOpen */\n public static final String COLUMNNAME_QtyOpen = \"QtyOpen\";\n\n\t/** Set QtyOpen.\n\t * Cantidad pendiente del documento o linea\n\t */\n\tpublic void setQtyOpen(BigDecimal QtyOpen);\n\n\t/** Get QtyOpen.\n\t * Cantidad pendiente del documento o linea\n\t */\n\tpublic BigDecimal getQtyOpen();\n\n /** Column name UPC */\n public static final String COLUMNNAME_UPC = \"UPC\";\n\n\t/** Set UPC/EAN.\n\t * Bar Code (Universal Product Code or its superset European Article Number)\n\t */\n\tpublic void setUPC(String UPC);\n\n\t/** Get UPC/EAN.\n\t * Bar Code (Universal Product Code or its superset European Article Number)\n\t */\n\tpublic String getUPC();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n\n /** Column name VendorProductNo */\n public static final String COLUMNNAME_VendorProductNo = \"VendorProductNo\";\n\n\t/** Set Partner Product Key.\n\t * Product Key of the Business Partner\n\t */\n\tpublic void setVendorProductNo(String VendorProductNo);\n\n\t/** Get Partner Product Key.\n\t * Product Key of the Business Partner\n\t */\n\tpublic String getVendorProductNo();\n\n /** Column name Z_RemitoDifInv_ID */\n public static final String COLUMNNAME_Z_RemitoDifInv_ID = \"Z_RemitoDifInv_ID\";\n\n\t/** Set Z_RemitoDifInv ID\t */\n\tpublic void setZ_RemitoDifInv_ID(int Z_RemitoDifInv_ID);\n\n\t/** Get Z_RemitoDifInv ID\t */\n\tpublic int getZ_RemitoDifInv_ID();\n\n\tpublic I_Z_RemitoDifInv getZ_RemitoDifInv() throws RuntimeException;\n\n /** Column name Z_RemitoDifInvLin_ID */\n public static final String COLUMNNAME_Z_RemitoDifInvLin_ID = \"Z_RemitoDifInvLin_ID\";\n\n\t/** Set Z_RemitoDifInvLin ID\t */\n\tpublic void setZ_RemitoDifInvLin_ID(int Z_RemitoDifInvLin_ID);\n\n\t/** Get Z_RemitoDifInvLin ID\t */\n\tpublic int getZ_RemitoDifInvLin_ID();\n}", "title": "" }, { "docid": "962db5f2bd510183cb0c4c5d6e79cf17", "score": "0.44330755", "text": "public void makeSql() {\n\t\tfor(int i=0; i<arr_sql.length; i++)\n\t\t\tarr_sql[i] = new StringBuffer();\n\t\t\n\t\t//MASTER 조회\n\t\tarr_sql[0].append (\"{call SALES.PR_CQ620I_01(?,?,?,?,?, \t?,?,?)}\");\n\t\t\n\t\t//DETAIL 조회\n\t\tarr_sql[1].append (\"{call SALES.PR_CQ620I_02(?,?,?)}\");\n\t\t\n\t\t//MASTER 저장\n\t\tarr_sql[2].append (\"{call SALES.PR_CQ620I_03(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?)}\");\n\t}", "title": "" }, { "docid": "8d4d54a781f36504f20caf7686278b78", "score": "0.44323483", "text": "private void readStaticParametersFromTable() {\n\n this.getpConfidenceIntervall().setStartValue(((parameterTableModel) this.jTableParameterList.getModel()).getDoubleValueByName(\"ConfidenceIntervall\", \"StartValue\"));\n this.getpConfidenceIntervall().setEndValue(((parameterTableModel) this.jTableParameterList.getModel()).getDoubleValueByName(\"ConfidenceIntervall\", \"EndValue\"));\n this.getpConfidenceIntervall().setStepping(((parameterTableModel) this.jTableParameterList.getModel()).getDoubleValueByName(\"ConfidenceIntervall\", \"Stepping\"));\n\n this.getpEndTime().setStartValue(((parameterTableModel) this.jTableParameterList.getModel()).getDoubleValueByName(\"EndTime\", \"StartValue\"));\n this.getpEndTime().setEndValue(((parameterTableModel) this.jTableParameterList.getModel()).getDoubleValueByName(\"EndTime\", \"EndValue\"));\n this.getpEndTime().setStepping(((parameterTableModel) this.jTableParameterList.getModel()).getDoubleValueByName(\"EndTime\", \"Stepping\"));\n\n this.getpMaxTime().setStartValue(((parameterTableModel) this.jTableParameterList.getModel()).getDoubleValueByName(\"MaxTime\", \"StartValue\"));\n this.getpMaxTime().setEndValue(((parameterTableModel) this.jTableParameterList.getModel()).getDoubleValueByName(\"MaxTime\", \"EndValue\"));\n this.getpMaxTime().setStepping(((parameterTableModel) this.jTableParameterList.getModel()).getDoubleValueByName(\"MaxTime\", \"Stepping\"));\n\n this.getpSeed().setStartValue(((parameterTableModel) this.jTableParameterList.getModel()).getDoubleValueByName(\"Seed\", \"StartValue\"));\n this.getpSeed().setEndValue(((parameterTableModel) this.jTableParameterList.getModel()).getDoubleValueByName(\"Seed\", \"EndValue\"));\n this.getpSeed().setStepping(((parameterTableModel) this.jTableParameterList.getModel()).getDoubleValueByName(\"Seed\", \"Stepping\"));\n\n this.getpMaxError().setStartValue(((parameterTableModel) this.jTableParameterList.getModel()).getDoubleValueByName(\"MaxRelError\", \"StartValue\"));\n this.getpMaxError().setEndValue(((parameterTableModel) this.jTableParameterList.getModel()).getDoubleValueByName(\"MaxRelError\", \"EndValue\"));\n this.getpMaxError().setStepping(((parameterTableModel) this.jTableParameterList.getModel()).getDoubleValueByName(\"MaxRelError\", \"Stepping\"));\n\n }", "title": "" }, { "docid": "17813af73a245769086014d21e0447cc", "score": "0.44315138", "text": "public static String SICMOR0205H(TableParams params)\r\n\t{\n\t\t\t\tString cadena = \"xxx\";\r\n\t\tif (params.initDate.substring(3, 5).toString().equals(\"01\"))\r\n\t\t\tcadena = \"ENE\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"02\"))\r\n\t\t\tcadena = \"FEB\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"03\"))\r\n\t\t\tcadena = \"MAR\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"04\"))\r\n\t\t\tcadena = \"ABR\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"05\"))\r\n\t\t\tcadena = \"MAY\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"06\"))\r\n\t\t\tcadena = \"JUN\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"07\"))\r\n\t\t\tcadena = \"JUL\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"08\"))\r\n\t\t\tcadena = \"AGO\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"09\"))\r\n\t\t\tcadena = \"SEP\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"10\"))\r\n\t\t\tcadena = \"OCT\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"11\"))\r\n\t\t\tcadena = \"NOV\";\r\n\t\telse if (params.initDate.substring(3, 5).toString().equals(\"12\"))\r\n\t\t\tcadena = \"DIC\";\r\n\t\t// FIN MODIFICACION WELLCOM N-08-2207-13 02-05-2014\r\n\t\t\r\n\t\tString query = \"\";\r\n\t\t\r\n\t\tquery = \r\n\t\t\t\" SELECT TO_CHAR(PTA.NUMERO) NUMERO \\n\"+ \t // 00\r\n\t\t\t\" \t\t,PTA.ENT_NUMERO_PROSA_ADQ ADQ \\n\"+ // 01\r\n\t\t\t\" ,PTA.ENT_NUMERO_PROSA_EMI EMI \\n\"+ // 02\r\n\t\t\t\" ,PTA.ARCH_NUMERO FUENTE \\n\"+ // 03\r\n\t\t\t\" ,PTA.PROC_NUMERO PROC \\n\"+ // 04\r\n\t\t\t\" ,PTA.FIID_EMISOR BANCO_EMISOR \\n\"+ // 05\r\n\t\t\t\" ,PTA.CUENTA CUENTA \\n\"+ // 06\r\n\t\t\t\" ,PTA.TTR_NUMERO CVE_TXN \\n\"+ // 07\r\n\t\t\t\" ,PTA.TC||' '||PTA.TYP TYP \\n\"+ // 08\r\n\t\t\t\" ,PTA.NUMERO_AUTORIZACION NO_AUT \\n\"+ // 09\r\n\t\t\t/********** Inicio Modificacion WELLCOM N-04-2207-12 03/03/2014 **********/\r\n\t\t\t\" ,TO_CHAR(PTA.IMPORTE_TOTAL_TRANSAC,'9,999,999,999,999,999.99') IMPORTE \\n\"+ // 10\r\n\t\t\t/********** Fin Modificacion WELLCOM N-04-2207-12 03/03/2014 **********/\r\n\t\t\t\" ,PTA.FECHA_CONSUMO_TRANSAC||' '||TO_CHAR(PTA.FECHA_CONSUMO_TRANSAC,'HH:mm:SS') FECHA_CONSUMO_TRANSAC \\n\"+//11\r\n\t\t\t\" ,PTA.MODO_ENTRADA_POS MODO_ENT \\n\"+ // 12\r\n\t\t\t\" ,PTA.TIPO_CAPTURA TIPO_CAPTURA \\n\"+ // 13\r\n/* Inicia modificacion Wellcom N-04-2207-13 */\r\n\t\t\t\" ,DECODE(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+14,1),NULL,'B',0,'B','1','A','C') IND_EMV \\n\"+// 14\r\n/* Fin modificacion Wellcom N-04-2207-13 */\r\n\t\t\t\" ,PTA.IND_TER_CAP TERM_CAP \\n\"+ // 15\r\n\t\t\t\" ,PTA.CODIGO_RESPUESTA_ISO COD_ISO \\n\"+ // 16\r\n\t\t\t\" ,PTA.IND_COM_ELEC ICE \\n\"+\t\t\t // 17\r\n\t\t\t\" ,CH.TKN_Q1 TK1 \"+\r\n\t\t\t\" ,CH.TKN_Q2_ID_ACCESO TK2 \"+\r\n\t\t\t\" ,CH.TKN_Q6 TK3 \"+\r\n\t\t\t\" ,CH.TKN_04 TK4 \"+\r\n\t\t\t\" ,TT.C0_01||TT.C0_02||TT.C0_03||TT.C0_04||TT.C0_05||TT.C0_06||TT.C0_07||TT.C0_08||TT.C0_09||TT.C0_10||TT.C0_11||TT.C0_12 TK5 \"+\r\n\t\t\t\" ,CH.TKN_C4 TK6 \"+\r\n\t\t\t\" ,CH.TKN_C6 TK7 \"+ \r\n\t\t\t\" ,CH.TKN_CE TK8 \"+\r\n\t\t\t\r\n\t\t\t\" ,VBA.NUMERO_FIID BANCO_ADQUIRENTE \\n\"+ // 26\r\n\t\t\t\" ,TO_CHAR(PTA.NUMERO_COMERCIO) NUMERO_COMERCIO \\n\"+ // 27\r\n\t\t\t\" ,PTA.NOMBRE_COMERCIO NOMBRE_COMERCIO \\n\"+ // 28\r\n\t\t\t\" ,PTA.RED_LOGICA RED_LOGICA_ADQ \\n\"+ // 29\r\n\t\t\t\" ,PTA.RED_LOGICA_EMI RED_LOGICA \\n\"+ // 30\r\n\t\t\t\" ,VBA.DESCRIPCION DESC_ADQ \\n\"+ // 31\r\n\t\t\t\" ,PE.DESCRIPCION DESC_EMI \\n\"+ // 32\r\n\t\t\t\" ,PTA.FIID_EMISOR BANCO_EMISOR \\n\"+ // 33\r\n\t\t\t\r\n\t\t\t/********** Inicio Modificacion WELLCOM N-04-2207-12 04/06/2014 **********/\r\n\t\t\t\" \t\t,SUBSTR(SUBSTR(CH.TKN_Q1,11,LENGTH(CH.TKN_Q1)),1,1) TKQ1_S01 \\n\"+\r\n\t\t\t\" \t\t,SUBSTR(SUBSTR(CH.TKN_Q1,11,LENGTH(CH.TKN_Q1)),2,1) TKQ1_S02 \\n\"+\r\n\t\t\t/********** Fin Modificacion WELLCOM N-04-2207-12 04/06/2014 **********/\r\n\t\t\t\r\n\t\t\t\" \t\t,CH.TKN_Q2_ID_ACCESO TKQ2_S01 \\n\"+\r\n\t\t\t\r\n\t\t\t\" \t\t,TT.C0_01 TKC0_S01 \\n\"+\r\n\t\t\t\" \t\t,TT.C0_02 TKC0_S02 \\n\"+\r\n\t\t\t\" \t\t,TT.C0_03 TKC0_S03 \\n\"+\r\n\t\t\t\" \t\t,TT.C0_04 TKC0_S04 \\n\"+\r\n\t\t\t\" \t\t,TT.C0_05 TKC0_S05 \\n\"+\r\n\t\t\t\" \t\t,TT.C0_06 TKC0_S06 \\n\"+\r\n\t\t\t\" \t\t,TT.C0_07 TKC0_S07 \\n\"+\r\n\t\t\t\" \t\t,TT.C0_08 TKC0_S08 \\n\"+\r\n\t\t\t\" \t\t,TT.C0_09 TKC0_S09 \\n\"+\r\n\t\t\t\" \t\t,TT.C0_10 TKC0_S10 \\n\"+\r\n\t\t\t\" \t\t,TT.C0_11 TKC0_S11 \\n\"+ \r\n\t\t\t\" \t\t,TT.C0_12 TKC0_S12 \\n\"+\r\n\r\n\r\n\t\t\t/********** Inicio Modificacion WELLCOM N-04-2207-12 04/06/2014 **********/\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),1,1) TKC4_S01 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//49\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),2,1) TKC4_S02 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//50\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),3,1) TKC4_S03 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//51\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),4,1) TKC4_S04 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//52\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),5,1) TKC4_S05 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//53\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),6,1) TKC4_S06 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//54\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),7,1) TKC4_S07 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//55\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),8,1) TKC4_S08 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//56\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),9,1) TKC4_S09 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//57\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),10,1) TKC4_S010 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//58\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),11,1) TKC4_S011 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//59\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C4,11,LENGTH(CH.TKN_C4)),12,1) TKC4_S012 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//60\r\n\t\t\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),1,1) TK04_S01 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//61\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),2,11) TK04_S02 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//62\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),13,1) TK04_S03 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//63\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),14,5) TK04_S04 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//64\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),19,1) TK04_S05 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//65\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_04,11,LENGTH(CH.TKN_04)),20,1) TK04_S06 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//66\r\n\t\t\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_Q6,11,LENGTH(CH.TKN_Q6)),1,2) TKQ6_S01 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//67\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_Q6,11,LENGTH(CH.TKN_Q6)),3,2) TKQ6_S02 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//68\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_Q6,11,LENGTH(CH.TKN_Q6)),5,2) TKQ6_S03 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//69\r\n\t\t\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C6,11,LENGTH(CH.TKN_C6)),1,40) TKC6_S01 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//70\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_C6,11,LENGTH(CH.TKN_C6)),41,40) TKC6_S02 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//71\r\n\t\t\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_CE,11,LENGTH(CH.TKN_CE)),1,40) TKCE_S01 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//72\r\n\t\t\" ,SUBSTR(SUBSTR(CH.TKN_CE,11,LENGTH(CH.TKN_CE)),41,40) TKCE_S02 \\n \"+\t\t\t\t\t\t\t\t\t\t\t//73\r\n\t\t\t/********** Fin Modificacion WELLCOM N-04-2207-12 04/06/2014 **********/\r\n\r\n\t\t/********** Inicio Modificacion WELLCOM N-51-2098-14 14/08/2014 **********/\r\n\t\t/********** Inicio Modificacion WELLCOM N-51-2098-14 18/02/2015 **********/\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+18,2) TKB2_S01 \\n\"+ //74\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+20,10) TKB2_S02 \\n\"+ //75\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+30,16) TKB2_S03 \\n\"+ //76\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+46,12) TKB2_S04 \\n\"+ //77\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+58,12) TKB2_S05 \\n\"+ //78\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+70,4) TKB2_S06 \\n\"+ //79\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+74,4) TKB2_S07 \\n\"+ //80\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+78,3) TKB2_S08 \\n\"+ //81\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+81,3) TKB2_S09 \\n\"+ //82\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+84,6) TKB2_S10 \\n\"+ //83\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+90,2) TKB2_S11 \\n\"+ //84\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+92,8) TKB2_S12 \\n\"+ //85\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+104,64) TKB2_S13 \\n\"+ //86\r\n\t\t\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+14,8) TKB3_S01 \\n\"+ //87\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+22,8) TKB3_S02 \\n\"+ //88\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+42,2) TKB3_S03 \\n\"+ //89\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+44,4) TKB3_S04 \\n\"+ //90\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+48,6) TKB3_S05 \\n\"+ //91\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+58,32) TKB3_S06 \\n\"+ //92\r\n\t\t\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+10,3) TKB4_S01 \\n\"+ //93\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+13,1) TKB4_S02 \\n\"+ //94\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+14,1) TKB4_S03 \\n\"+ //95\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+15,1) TKB4_S04 \\n\"+ //96\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+16,2) TKB4_S05 \\n\"+ //97\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+18,6) TKB4_S06 \\n\"+ //98\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+24,4) TKB4_S07 \\n\"+ //99\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+28,1) TKB4_S08 \\n\"+ //100\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B4')+29,1) TKB4_S09 \\n\"+ //101\r\n\t\t\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B5')+10,4) TKB5_S01 \\n\"+ //102\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B5')+14,16) TKB5_S02 \\n\"+ //103\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B5')+30,16) TKB5_S03 \\n\"+ //104\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B5')+46,1) TKB5_S04 \\n\"+ //105\r\n\t\t\" ,SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B5')+47,1) TKB5_S05 \\n\"+ //106\r\n\t\t/********** Fin Modificacion WELLCOM N-51-2098-14 18/02/2015 **********/\r\n\t\t/********** Fin Modificacion WELLCOM N-51-2098-14 14/08/2014 **********/\r\n\t\t/**************** INICIO Modificacion SAS N-51-2390-15 12/02/2016***********************/\r\n\t\t\",CASE SUBSTR(CH.TKN_EMVFULL ,INSTR(CH.TKN_EMVFULL,'! B2')+24,2) \"+//107\r\n\t\t\" WHEN NULL THEN \t \"+//107\r\n\t\t\" ''\t\t\t\t \"+//107\r\n\t\t\" WHEN '' THEN \t\t\t \"+//107\r\n\t\t\" ''\t\t\t\t \"+//107\r\n\t\t\" WHEN '00' THEN \t\t \"+//107\r\n\t\t\" 'Exitoso'\t\t\t \"+//107\r\n\t\t\" ELSE\t\t\t\t\t\t\t\t \"+//107\r\n\t\t\" DECODE(SUBSTR(lpad(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(CH.TKN_EMVFULL \"+//107\r\n\t\t\" ,INSTR(CH.TKN_EMVFULL,'! B2')+24,2))),'XXXXXX')),8,0),1,1),'0','Exitoso','1','Fallido')\t\t\"+//107\r\n\t\t\"END TVR,\t\t\t\"+//107\r\n\t\t\" CASE \t\"+//108\r\n\t\t \" WHEN SUBSTR(PTA.CUENTA,1,1)='5' OR SUBSTR(PTA.CUENTA,1,1)='2'THEN \t\"+//108\r\n\t\t \" CASE\t\"+//108\r\n\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))='00' THEN \t\"+//108\r\n\t\t \" DECODE(SUBSTR(LPAD(NVL(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \t\"+//108\r\n\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+110,2))),'XX')),'00'),8,0),6,1),'0','No','1','Si')\t\"+//108\r\n\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))!='01' THEN \t\"+//108\r\n\t\t \" DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \t\"+//108 \r\n\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+108,2))),'XX')),8,0),6,1) ,'0','No','1','Si') \t\"+//108\r\n\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))='01' THEN \t\"+//108\r\n\t\t \" DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \"+//108\r\n\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+110,2))),'XX')),8,0),6,1),'0','No','1','Si') \"+//108\r\n\t\t \" END \t\"+//108\r\n\t\t \" END || \t\"+//108\r\n\t\t \" CASE WHEN SUBSTR(PTA.CUENTA,1,1)='4' THEN\t\"+//108\r\n\t\t \" CASE SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+108,2)\"+//108\r\n\t\t \" WHEN NULL THEN '' WHEN '' THEN '' WHEN '00' THEN 'No' \"+//108\r\n\t\t \" ELSE DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+112,2))),'XX')) \"+//108\r\n\t\t \" ,8,0),6,1),'0','No','1','Si') \"+//108\r\n\t\t \" END \t\"+//108\r\n\t\t \" END CVRPIN,\t\"+//108\r\n\t\t \"CASE \"+ //109\r\n\t\t \" WHEN SUBSTR(PTA.CUENTA,1,1)='5' OR SUBSTR(PTA.CUENTA,1,1)='2' THEN\t\"+ //109\r\n\t\t \" CASE \t\"+ //109\r\n\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))='00' THEN \t\"+ //109\r\n\t\t \" DECODE(SUBSTR(LPAD(NVL(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \t\"+ //109\r\n\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+110,2))),'XX')),'00'),8,0),7,1),'1','Exitoso','01','Exitoso','10','Exitoso','11','Exitoso','0','Fallido','00','Fallido') \"+ //109\r\n\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))='01' THEN \"+ //109\r\n\t\t \" DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \"+ //109 \r\n\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+110,2))),'XX')),8,0),7,1),'1','Fallido','01','Fallido','10','Fallido','11','Fallido','0','Exitoso','00','Exitoso') \t\"+ //109\r\n\t\t \" WHEN LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+106,2)))!='01' THEN \t\"+ //109\r\n\t\t \" DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL \t\"+ //109 \r\n\t\t \" ,INSTR(CH.TKN_EMVFULL,'! B2')+108,2))),'XX')),8,0),7,2),'1','Exitoso','01','Exitoso','10','Exitoso','11','Exitoso','0','Fallido','00','Fallido')\t\"+ //109\r\n\t\t \" END\t\"+ //109\r\n\t\t \"END ||\t\"+ //109\r\n\t\t \"CASE WHEN SUBSTR(PTA.CUENTA,1,1)='4' THEN\t\"+ //109\r\n\t\t \" CASE SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+108,2)\t\"+ //109\r\n\t\t \" WHEN NULL THEN '' WHEN '' THEN '' WHEN '00' THEN 'Fallido'\"+ //109\r\n\t\t \" ELSE DECODE(SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B2')+112,2))),'XX'))\t\"+ //109 \r\n\t\t \" ,8,0),7,1),'0','Exitoso','1','Fallido') \t\"+ //109\r\n\t\t \" END \t\"+ //109\r\n\t\t \"END CVRRESULT,\t\"+ //109\r\n\t\t\"CASE \"+//110\r\n\t\t\" WHEN SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+48,2)=''THEN \"+//110\r\n\t\t\" DECODE(NVL(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(CH.TKN_EMVFULL \"+//110\r\n\t\t\" ,INSTR(CH.TKN_EMVFULL,'! B3')+48,2))),'XXXXXX')),'000000'),'000000','Falló CVM','000001' \"+//110\r\n\t\t\" ,'Verificación del PIN en texto plano realizada por el ICC', '000010','Verificación en línea del PIN cifrado' \"+//110\r\n\t\t\" ,'000011','Verificación del PIN en texto plano realizada por el ICC y firma (papel)','000100' \"+//110\r\n\t\t\" ,'Verificación del PIN cifrado realizada por el ICC','000101','Verificación del PIN cifrado realizada por el ICC y firma (papel)','011110','Firma (papel)','011111','No se requirió CVM') \"+//110\r\n\t\t\" WHEN SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+48,2)= NULL THEN \"+//110\r\n\t\t\" DECODE(NVL(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(CH.TKN_EMVFULL \"+//110\r\n\t\t\" ,INSTR(CH.TKN_EMVFULL,'! B3')+48,2))),'XXXXXX')),'000000'),'000000','Falló CVM','000001' \"+//110\r\n\t\t\" ,'Verificación del PIN en texto plano realizada por el ICC', '000010','Verificación en línea del PIN cifrado' \"+//110\r\n\t\t\" ,'000011','Verificación del PIN en texto plano realizada por el ICC y firma (papel)','000100' \"+//110\r\n\t\t\" ,'Verificacion del PIN cifrado realizada por el ICC','000101','Verificación del PIN cifrado realizada por el ICC y firma (papel)','011110','Firma (papel)','011111','No se requirió CVM') \"+//110\r\n\t\t\" WHEN SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+48,2)='00' THEN \"+//110\r\n\t\t\" DECODE(NVL(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(CH.TKN_EMVFULL \"+//110\r\n\t\t\" ,INSTR(CH.TKN_EMVFULL,'! B3')+48,2))),'XXXXXX')),'000000'),'000000','Falló CVM','000001' \"+//110\r\n\t\t\" ,'Verificación del PIN en texto plano realizada por el ICC', '000010','Verificación en línea del PIN cifrado' \"+//110\r\n\t\t\" ,'000011','Verificación del PIN en texto plano realizada por el ICC y firma (papel)','000100' \"+//110\r\n\t\t\" ,'Verificación del PIN cifrado realizada por el ICC','000101','Verificación del PIN cifrado realizada por el ICC y firma (papel)','011110','Firma (papel)','011111','No se requirió CVM') \"+//110\r\n\t\t\" ELSE \"+//110\r\n\t\t\" DECODE(SUBSTR(lpad(PMADMIN.FN_DEC_BIN(to_number(ltrim(rtrim(SUBSTR(CH.TKN_EMVFULL \"+//110\r\n\t\t\" ,INSTR(CH.TKN_EMVFULL,'! B3')+48,2))),'XXXXXX')),8,0),3,6),'000000','Falló CVM','000001' \"+//110 \r\n\t\t\" ,'Verificación del PIN en texto plano realizada por el ICC', '000010','Verificación en línea del PIN cifrado' \"+//110\r\n\t\t\" ,'000011','Verificación del PIN en texto plano realizada por el ICC y firma (papel)','000100' \"+//110\r\n\t\t\" ,'Verificación del PIN cifrado realizada por el ICC','000101','Verificación del PIN cifrado realizada por el ICC y firma (papel)' \"+//110\r\n\t\t\" ,'011110','Firma (papel)','011111','No se requirio CVM') \"+//110\r\n\t\t\"END CVMRESULT \"+//110\r\n\t\t\",DECODE(SUBSTR(CH.TKN_EMVFULL,INSTR(CH.TKN_EMVFULL,'! B3')+52,2),'00','Desconocido','01','Fallido','02','Exitoso') CVR \"+//111\t\t\t\r\n\t\t//\t\" ,SUBSTR(SUBSTR(CH.TKN_R4,11,LENGTH(CH.TKN_R4)),1,20) TKN_R4 \\n\"+\t\t\t\t //112\r\n\t\t/**************** FIN Modificacion SAS N-51-2390-15 12/02/2016***********************/\t\r\n\t\t/*************** INICIO Implementación SAS N-51-2823-15_LMRV 11/08/2016 ****************/\r\n\t\t\",CASE\t\t \t\"+//112\r\n\t\t\t\"SUBSTR(TTE.B2_TVR,+5,2)\"+//112\r\n\t\t\t\"WHEN '00' THEN '0' \t\"+//112\r\n\t\t\t\"ELSE SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(TTE.B2_TVR,+5,2))),'XX')),8,0),4,1) \t\"+//112\r\n\t\t\"END TVRPINBPSH \t\"+//112\r\n\t\t\",CASE \t\"+//113\r\n\t\t\t\"SUBSTR(TTE.B2_TVR,+5,2)\t\t\"+//113\r\n\t\t\t\"WHEN '00' THEN '0' \t\t\"+//113\r\n\t\t\t\"ELSE SUBSTR(LPAD(PMADMIN.FN_DEC_BIN(TO_NUMBER(LTRIM(RTRIM(SUBSTR(TTE.B2_TVR,+5,2))),'XX')),8,0),5,1)\t\t\"+//113\r\n\t\t\"END TVRQPSSPSH \t\"+//113\r\n\t \",CASE SUBSTR(TTQH.TKN_CZ,INSTR(TTQH.TKN_CZ,'! CZ')+15,2) \t\"+//114\r\n\t\t\t\"WHEN '' THEN ''\t\"+//114\r\n\t\t\t\"WHEN NULL THEN ''\t\t\"+//114\r\n\t\t\t\"WHEN SUBSTR(TTQH.TKN_CZ,INSTR(TTQH.TKN_CZ,'! CZ')+15,2) \t\t\"+//114\r\n\t\t\t\"THEN SUBSTR(TTQH.TKN_CZ,INSTR(TTQH.TKN_CZ,'! CZ')+15,2) END TKCZ\t\t\"+//114\r\n\t\t/*************** FIN Implementación SAS N-51-2823-15_LMRV 11/08/2016 ****************/\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 05/09/2013 **********/\r\n\t\t\t\" FROM SUPERSIC.TRANSACCIONES_ACEPTADAS@LG_PMTU_SICB PTA \\n\"+\r\n\t\t\t// Inicia marca de cambio N-04-2207-13 \r\n //\" FROM SUPERSIC.TRANSACCIONES_ACEPTADAS@LG_PMTU_SICB2 PTA \\n\"+\r\n\t\t\t// Termina N-04-2207-13 \t\r\n\t/********** Inicio Modificacion WELLCOM N-04-2207-12 05/09/2013 **********/\r\n\t\t\t\" INNER JOIN PMADMIN.VW_BUS_ACQ VBA \\n\"+\r\n\t\t\t\" ON VBA.NUMERO_PROSA = PTA.ENT_NUMERO_PROSA_ADQ \\n\"+\r\n\t\t\t\" INNER JOIN PMADMIN.PRSA_ENTIDADES PE \\n\"+\r\n\t\t\t\" ON PE.NUMERO_PROSA = PTA.ENT_NUMERO_PROSA_EMI \\n\"+\r\n\t\t\t\" INNER JOIN PMADMIN.PRSA_TIPOS_TRANSACCION PTT \\n\"+\r\n\t\t\t\" ON PTT.NUMERO = PTA.TTR_NUMERO \\n\"+\r\n\t\t\t// INICIA CAMBIO N-08-2207-13 02-05-2014 WELLCOM\r\n\t\t\t\" LEFT JOIN SSAUD.TANDEM\"+cadena.toString()+\"51@LG_PMTU_PTLF TA \\n\"+\r\n\t\t\t\" \tON TA.NUM = PTA.CUENTA \\n\"+\r\n\t\t\t\"\tAND TA.APPRV_CDE = PTA.NUMERO_AUTORIZACION \\n\"+\r\n\t\t \" AND TRIM(PTA.NUMERO_COMERCIO) = TRIM(TA.ID) \\n\"+\r\n\t\t\t\" LEFT JOIN SSAUD.TBL_PTLFCHIP@LG_PMTU_PTLF CH \\n\"+ \r\n\t\t\t\" \t ON TA.NUMERO = CH.NUMERO \\n\"+\r\n\t\t\t\" LEFT JOIN SSAUD.TBL_TOKENC0@LG_PMTU_PTLF TT \\n\"+ \r\n\t\t\t\" \t ON TA.NUMERO = TT.NUMERO \\n\"+\r\n\t\t\t// *************** INICIO Implementación SAS N-51-2823-15_LMRV 11/08/2016 ****************/\r\n\t\t\t\" LEFT JOIN SSAUD.TBL_TOKENQH@LG_PMTU_PTLF TTQH \\n\"+\r\n \" ON TA.NUMERO = TTQH.NUMERO \\n\"+\r\n \" LEFT JOIN SSAUD.TBL_TKNS_EMV@LG_PMTU_PTLF TTE \\n\"+\r\n \" ON TA.NUMERO = TTE.NUMERO \\n\"+\r\n\t\t\t// *************** FIN Implementación SAS N-51-2823-15_LMRV 11/08/2016 ****************/\r\n\t\t\t// INICIA CAMBIO N-08-2207-13 02-05-2014 WELLCOM\r\n\t\t\t\" WHERE PTA.FECHA_PROCESO_TRANSAC BETWEEN TO_DATE('\"+params.initDate+\"','DD/MM/YYYY') AND TO_DATE('\"+params.endDate+\"','DD/MM/YYYY') \\n\"+\r\n\t\t\t\" AND PTA.CUENTA = '\"+params.cuenta+\"' \";\r\n\r\n\t\tif ((params.referencia!=\"\") && (params.referencia!=null) && (params.referencia!=\"null\"))\r\n\t\t\t{\r\n\t\t\t\tquery+=\" AND PTA.NUMERO_REFERENCIA = \"+params.referencia+\" \";\r\n\t\t\t}\r\n\r\n\t\tif ((params.comercio!=\"\") && (params.comercio!=null) && (params.comercio!=\"null\"))\r\n\t\t\t{\r\n\t\t\t\tquery+=\" AND PTA.NUMERO_COMERCIO = \"+params.comercio+\" \";\r\n\t\t\t}\r\n\t\t\r\n\t\treturn query;\r\n\t}", "title": "" }, { "docid": "733d7565a7729945bcae3c063c7e2c27", "score": "0.44312954", "text": "@Override\n\tpublic String update() {\n\t\treturn \"OracleDao 수정\";\n\t}", "title": "" }, { "docid": "3293ebf1ee3f1f735c2f719859bde3d9", "score": "0.44294712", "text": "@Override\n\t\t\tpublic java.lang.String getSql() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "7592f814dd07684a405fddc6f12c3de2", "score": "0.4429108", "text": "private String getSqlGetAll(ParamConfig conf) {\n if (conf.getIdPrefix()==null)\n return null;\n else {\n StringBuilder sql= new StringBuilder()\n .append(\"SELECT \").append(conf.getIdColumnName()).append(\",\").append(conf.getValueColumnName())\n .append(\" FROM \").append(conf.getTableName())\n .append(\" WHERE \");\n\n // Path value present?\n if (StringUtils.isNotBlank(conf.getPathValue()))\n sql.append(\"path='\").append(conf.getPathValue()).append(\"' AND \");\n\n sql.append(conf.getIdColumnName()).append(\" LIKE '\").append(conf.getIdPrefix()).append(\"%'\");\n\n return sql.toString();\n }\n }", "title": "" }, { "docid": "13a9e993a18735134a172fa40d897268", "score": "0.4426373", "text": "@Override\r\n\tpublic long getSysId() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "fe7d59059b2119900b1fbdada64580ff", "score": "0.4425225", "text": "public StringBuilder getQuerySP(String nameSP, List<ParametrosSP> parametros){\n\t\t \n\t\t // Variable\n\t\t StoredProcedureQuery storedProcedure = null;\n\t\t \n\t\t try{\n\t\t\t // registra Stored Procedure, declara y configura parametros de entrada\n\t\t\t storedProcedure = createStoredProcedure(nameSP, parametros);\n\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(String.valueOf(\"Inicio Respuesta BD(getQuerySP): \\t\" + time.format(new Date())));\t\t\t \n\t\t\t // execute SP\n\t\t\t storedProcedure.execute();\n\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(String.valueOf(\"Fin Respuesta BD(getQuerySP): \\t\\t\" + time.format(new Date())));\n\t\t } catch(Exception ex){\n\t\t\t ex.getMessage();\n\t\t }\n\t\t \n\t\t return convertJSON((ArrayList<?>)storedProcedure.getResultList());\n\t }", "title": "" } ]
367f93824e03ae49b3c8e748936eb20b
TODO : play sound with a pattern, synchronized with vibrator
[ { "docid": "1fd04049e1e44dcf19c217e20d9abd5b", "score": "0.65413195", "text": "private void playSound(Context context, Uri alert) {\n mediaPlayer = new MediaPlayer();\r\n try {\r\n mediaPlayer.setDataSource(context, alert);\r\n final AudioManager audioManager = (AudioManager) context\r\n .getSystemService(Context.AUDIO_SERVICE);\r\n if (audioManager.getStreamVolume(AudioManager.STREAM_ALARM) != 0) {\r\n mediaPlayer.setAudioStreamType(AudioManager.STREAM_ALARM);\r\n mediaPlayer.setLooping(true);\r\n mediaPlayer.prepare();\r\n mediaPlayer.start();\r\n }\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "title": "" } ]
[ { "docid": "9c69839f749fcbc62c709f3dfaa4393d", "score": "0.7360876", "text": "public void playSound() {\n mMediaPlayer.setVolume(1.0f, 1.0f);\n mMediaPlayer.start();\n\n vibrate(500);\n }", "title": "" }, { "docid": "0d7dc55e3c9c217a5b02c9c7509952cb", "score": "0.731225", "text": "public void showSound(){\n //Am thanh cua moi dong vat la khac nhau -> ko the mo ta chinh xac duoc am thanh cua dong vat\n //Khai bao ra -> class con se co\n }", "title": "" }, { "docid": "7deb91b1da1fe47ce14aa28beb30c121", "score": "0.72426116", "text": "private void playSound(){\n\n final float volL =1;\n final float volR =1;\n final int prio = 0;\n final int n=0;\n final float rate =1;\n sound.play(mySound, volL, volR, prio, n, rate);\n\n\n }", "title": "" }, { "docid": "a7f7eff4a417235471c5dc41aed01aed", "score": "0.7170322", "text": "public static void playSound()\n {\n // A sequence of frequencies and durations (eg 1400hz for 15ms, 1350hz for 15ms, etc)\n short[] fire = {1400, 15, 1350, 15, 1320, 20, 1300, 20, 1250, 25, 1200, 35};\n\n try {\n Alert.startAudio(fire, 50);\n }\n catch (Exception e) {\n Dialog.alert(\"Error playing sound effect.\");\n } \n }", "title": "" }, { "docid": "ac99e66a5c89cdd1b4fcb64aaf77faca", "score": "0.7156627", "text": "public void sound() { }", "title": "" }, { "docid": "8b09fad7ed23b7fe761624f3ec5e5ab7", "score": "0.700109", "text": "@Override\r\n\tpublic String doSound() {\n\t\treturn \"Bzzz!\";\r\n\t}", "title": "" }, { "docid": "62e7940d1ff228a7f8dc67adf48cf0e0", "score": "0.6933172", "text": "public void playLivingSound();", "title": "" }, { "docid": "fb1cb3b6e6e3bd044c0bb4ad65b33314", "score": "0.6922652", "text": "public void playClickSound() {\n mpb = MediaPlayer.create(this, R.raw.test);\n mpb.start();\n }", "title": "" }, { "docid": "7e358ad9c08c9bbabcffb9c28d510cda", "score": "0.68685836", "text": "public void startSound(View v) {\n\t\tToast.makeText(getBaseContext(), \"hello\", Toast.LENGTH_LONG).show();\n\t\t mPlayer = MediaPlayer.create(this, R.raw.abc01);\n\n\t\tmPlayer.start();\n\t\tmPlayer.setLooping(true);\n\n\t}", "title": "" }, { "docid": "995386e5854d0cd6bc58c991e736197e", "score": "0.68426156", "text": "void playRandomExplosionSound(){\n }", "title": "" }, { "docid": "1963b4f07cbf7181db5c9f36d7f93b45", "score": "0.6713969", "text": "public void PlayClick(View v)\n\t{\n\t\t_valuePitch = 1;\n\t\tmy_player.setPitchValue(_valuePitch);\n \t\tthis.playSoundRecorded();\n\t}", "title": "" }, { "docid": "24d01f633b1bf91d5ca53e51c33ee85f", "score": "0.6681821", "text": "public void soundPlayb(){\n AudioClip sound = new AudioClip(getClass().getResource(\"MediaSweng/Spinosaurus.wav\").toString());\n sound.play();\n }", "title": "" }, { "docid": "89a345bffb27a38591545dc5d4486c51", "score": "0.66549003", "text": "public void playSound(){mySound.blockingPlay();}", "title": "" }, { "docid": "19b72da6cac5715f8d044474bcfdd51c", "score": "0.66542447", "text": "SoundCatcherResult catchLoudSound();", "title": "" }, { "docid": "df9bda8a3a72cb7c90a3576744a2dd4e", "score": "0.6630788", "text": "public void soundA(View v) {\n mSoundPool.play(soundId_A, LEFT_VOLUME, RIGHT_VOLUME, 0, NO_LOOP, NORMAL_PLAY_RATE);\n }", "title": "" }, { "docid": "ea7d192a45fa2e97b9d5d331d9a6fb94", "score": "0.6626515", "text": "public void playSound() {\r\n s1.play();\r\n }", "title": "" }, { "docid": "f0c50a111f2473fe5321fcae426ac375", "score": "0.6603957", "text": "@Override\n public void sound() {\n bark();\n }", "title": "" }, { "docid": "d7b541d623c28fce463c2125dc27cb30", "score": "0.6553759", "text": "public void playMine(){\n mineSound.seekTo(posActual);\n mineSound.start();\n }", "title": "" }, { "docid": "715701c0b278f25983c39d48451cb11f", "score": "0.65521884", "text": "@Override\n public void run() {\n ringtone.play();\n }", "title": "" }, { "docid": "c2cc4561fcd2184d1f648f4cea323196", "score": "0.6526483", "text": "public void playClick(){\n clickSound.seekTo(posActual);\n clickSound.start();\n }", "title": "" }, { "docid": "0a789f7a4fc59557a63e32304227ac1d", "score": "0.6523864", "text": "@Override\n public void run() {\n ringtone.play();\n }", "title": "" }, { "docid": "ae3f536787b80824972cc4eda35b7f85", "score": "0.6511199", "text": "@Override\n\tpublic void soundDown() {\n\n\t}", "title": "" }, { "docid": "7452db6631fec2ea8108329570fd5d08", "score": "0.6510722", "text": "public static void gameStartSound() {\n }", "title": "" }, { "docid": "2ff1feb7614e95705e0f18aeed48aa88", "score": "0.64779174", "text": "public void soundPlayd(){\n AudioClip sound = new AudioClip(getClass().getResource(\"MediaSweng/Suchomimus.wav\").toString());\n sound.play();\n }", "title": "" }, { "docid": "d514e4b239a73f0f12426b47e8f3acd5", "score": "0.64739746", "text": "protected void playClickSound() {\n\t\tAudioManager audio = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n\t\taudio.playSoundEffect(Sounds.TAP);\n\t}", "title": "" }, { "docid": "74e312ed70bf0d219254672e47f48695", "score": "0.6473721", "text": "private void doVibrate() {\n PavlokConnection conn = new PavlokConnection();\n if(this.token!=null && this.token!=\"\") {\n try {\n doAction(token, \"vibration\", 255);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "214a939ddf7446a95ffdbfe2d5227815", "score": "0.64720005", "text": "public void blockingPlay(){mySound.blockingPlay();}", "title": "" }, { "docid": "d83968c67d4184061508986fd08cf709", "score": "0.64671856", "text": "@Override\n public void sound(){\n System.out.println(\"Meow\");\n }", "title": "" }, { "docid": "0a6a79932872c00b704c3d798cce47da", "score": "0.6455864", "text": "private void play(){\r\n int volume = areaToVelocity(width * height);\r\n midiSynth.play(instrument, coordToNote(y), volume);\r\n }", "title": "" }, { "docid": "4e5243b36826eace0868aff94255e6b3", "score": "0.64518946", "text": "public void play(long millis) {\r\n\t\tchannel.programChange(defaultInstrument.getPatch().getProgram());\r\n\t\tchannel.noteOn(place, NotesHelp.velocity);\r\n\t\ttry {\r\n\t\t\tThread.sleep(millis);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tchannel.noteOff(place);\r\n\t}", "title": "" }, { "docid": "41ab4e6893551660b433cd8b981ff41b", "score": "0.64379483", "text": "private void playSound(String title) {\n try {\n Thread.sleep(1300);\n speakText(title);\n } catch (InterruptedException e) {\n //e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "6a4e956001049b8f6d44cac9ab0d0064", "score": "0.64298165", "text": "public void playAudio()\r\n\t{\r\n\t\taudio.loop();\r\n\t}", "title": "" }, { "docid": "84e44fe8ab5426de84e57d5e9f225dce", "score": "0.6428097", "text": "public static void soundSystem(){\r\n \r\n try {\r\n // Open an audio input stream. \r\n File soundFile = new File(\"AlertSound.wav\");\r\n if(!soundFile.exists())\r\n {\r\n soundFile=new File(\"src\\\\Data\\\\AlertSound.wav\");\r\n }\r\n \r\n AudioInputStream audioIn = AudioSystem.getAudioInputStream(soundFile); \r\n // Get a sound clip resource.\r\n Clip clip = AudioSystem.getClip();\r\n // Open audio clip and load samples from the audio input stream.\r\n clip.open(audioIn);\r\n clip.start();\r\n } catch (UnsupportedAudioFileException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } catch (LineUnavailableException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "80d795a3ba9cfe97a0a1c75b3fe31c54", "score": "0.63826066", "text": "public static void music() {\n\t\tAudioPlayer MGP = AudioPlayer.player;\n\t\tAudioStream BGM;\n\n\t\tContinuousAudioDataStream loop = null;\n\n\t\ttry {\n\t\t\tInputStream ringStream = DonGUI.class\n\t\t\t\t\t.getResourceAsStream(\"ring.wav\");\n\t\t\tBGM = new AudioStream(ringStream);\n\t\t\tAudioPlayer.player.start(BGM);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.print(e.toString());\n\t\t} catch (IOException error) {\n\t\t\tSystem.out.print(error.toString());\n\t\t}\n\t\tMGP.start(loop);\n\t}", "title": "" }, { "docid": "9ebed9759452c95be983875647e1155f", "score": "0.63824666", "text": "@Override // 무효화\n\tpublic void sound() {\n\t\tSystem.out.println(\"멍멍\");\n\t}", "title": "" }, { "docid": "f5fe92bc2b176ee15b1cbfae70386e62", "score": "0.6377628", "text": "public void soundPlay(){\n AudioClip sound = new AudioClip(getClass().getResource(\"MediaSweng/Triceratops.wav\").toString());\n sound.play();\n }", "title": "" }, { "docid": "2cecc79010224dd8cdad4a2707b4ed3c", "score": "0.6358502", "text": "@Override\n\tpublic void Sound() {\n\t\tSystem.out.println(\"Inside Mammals.Sound()\");\n\t}", "title": "" }, { "docid": "902fc354862b54d8a1c713165bcc2c8c", "score": "0.6356742", "text": "private void mi_play(){\n AudioClip Sonido;\n Sonido = java.applet.Applet.newAudioClip(getClass().getResource(\"/imagenes/switch-3.wav\"));\n Sonido.play();\n }", "title": "" }, { "docid": "e47620a9b34cab7ef3d0537b1e9a8bc7", "score": "0.63526875", "text": "public void soundPlayc(){\n AudioClip sound = new AudioClip(getClass().getResource(\"MediaSweng/T-Rex.wav\").toString());\n sound.play();\n }", "title": "" }, { "docid": "bf3678d2868c385430747af988f00536", "score": "0.63480157", "text": "public void onBtnFaisPasCaClick(View view) {\n playSound(R.raw.philippe_fais_pas_ca);\n }", "title": "" }, { "docid": "eec006f3510b24909d5bef346afaf855", "score": "0.63418144", "text": "@Override\n public void onPlayBegan(int index) {\n isPlaying = true;\n // 建立码流,自动开启音频\n if (mHander != null) {\n mHander.post(new Runnable() {\n @Override\n public void run() {\n// if (isAdded()) {\n// onClick(mLiveSound);\n// }\n updateLoadingState(2);\n }\n });\n }\n }", "title": "" }, { "docid": "f984c1cb3618e5743cc05e2baf471311", "score": "0.6336348", "text": "public void buttonSound(){\n manager.get(\"assets/Sounds/ButtonClick.wav\", Sound.class).play(4.0f);\n }", "title": "" }, { "docid": "4d894058aec877625b89fe2e4ab978cf", "score": "0.63220257", "text": "@Override\n public void run() {\n gvrAudioEngine.preloadSoundFile(OBJECT_SOUND_FILE);\n sourceId = gvrAudioEngine.createSoundObject(OBJECT_SOUND_FILE);\n gvrAudioEngine.setSoundObjectPosition(\n sourceId, targetPosition[0], targetPosition[1], targetPosition[2]);\n gvrAudioEngine.playSound(sourceId, true /* looped playback */);\n\n }", "title": "" }, { "docid": "476a683db756f7989289df9ebc605e62", "score": "0.6321718", "text": "@Override\r\n\tpublic void play() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8de29b7c8a1b956f96126b1c9e82cf2b", "score": "0.63133574", "text": "private void loadMenuSound() {\n \r\n }", "title": "" }, { "docid": "85d2b0ba3e241d398e12a346e02212b3", "score": "0.6306466", "text": "private void getSound(){\n\n setVolumeControlStream(AUSGABE);\n\n try\n {\n AssetManager am = getAssets();\n mySound = sound.load(am.openFd(\"sound/Bullshit.mp3\"), 1);\n\n }\n catch (IOException e){\n\n }\n\n\n }", "title": "" }, { "docid": "930471dfa6081a497018965d71146983", "score": "0.6301676", "text": "@Override\n public void doOneVibration() {\n this.startVibration(VibrationMode.VIBRATION_ONLY);\n }", "title": "" }, { "docid": "527fc2169faccabac6f2712e18a44ac1", "score": "0.6297516", "text": "void play(byte[] tune) {\n\ttry {\n\t if (tonePlayer == null) {\n\t\t// First time open the tonePlayer\n\t\ttonePlayer = Manager.createPlayer(Manager.TONE_DEVICE_LOCATOR);\n\t\ttonePlayer.realize();\n\t\ttoneControl = (ToneControl)tonePlayer.getControl(\"javax.microedition.media.control.ToneControl\");\n\t }\n\t tonePlayer.deallocate();\n\t toneControl.setSequence(tune);\n\t tonePlayer.start();\n\t} catch (Exception ex){\n\t System.out.println(ex.getMessage());\n\t}\n }", "title": "" }, { "docid": "8e6401283149d6230049631351accd36", "score": "0.62873477", "text": "public void onBtnVieuxClick(View view) {\n playSound(R.raw.philippe_vieux);\n }", "title": "" }, { "docid": "f7bf600b2e0fdb87357cdb70a778f3d9", "score": "0.6276362", "text": "public void Sound() {\n String gongFile = \"G:\\\\audio\\\\Presidencia\\\\src\\\\Presidencia\\\\som.wav\";\r\n InputStream in = null;\r\n try {\r\n in = new FileInputStream(gongFile);\r\n } catch (FileNotFoundException ex) {\r\n Logger.getLogger(Gui.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n// create an audiostream from the inputstream\r\n AudioStream audioStream = null;\r\n try {\r\n audioStream = new AudioStream(in);\r\n } catch (IOException ex) {\r\n Logger.getLogger(Gui.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n// play the audio clip with the audioplayer class\r\n AudioPlayer.player.start(audioStream);\r\n }", "title": "" }, { "docid": "f8563c181c007c412c43c01ad8ece8f4", "score": "0.62683105", "text": "private void playSoundRecorded()\n\t\t{\n\t\t\tmy_player.PlayCuaq(this.getFilename());\n\t\t}", "title": "" }, { "docid": "d27128254abe526e3135d6ed9bebab00", "score": "0.62681216", "text": "public void playLoopedSound(int index) {\n\t\t int streamVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); \n\t\tif (mSoundPool.play(mSoundArray[index], streamVolume, streamVolume, 1,-1, mSoundPitch[index]) == 0) {\n\t\t\tLog.d(\"SOUNDMANAGER\", \"Failed to play \" + index);\n\t\t}\n\t}", "title": "" }, { "docid": "8dff9e66c60738e8781c352236c02f8e", "score": "0.6246781", "text": "private void vibrate(int ms) {\n Vibrator v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);\n v.vibrate(ms);\n }", "title": "" }, { "docid": "855629905d0a95886cc0bf93f8563fdf", "score": "0.62440103", "text": "@Override\n public void run() {\n\n mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);\n AssetFileDescriptor afd = context.getResources().openRawResourceFd(R.raw.so_dau);\n try {\n mediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());\n mediaPlayer.prepare();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n mediaPlayer.setLooping(true);\n mediaPlayer.setVolume(1.0f, 1.0f);\n mediaPlayer.start();\n }", "title": "" }, { "docid": "20a4e2915f4a31b291f39cf14e06741c", "score": "0.6242921", "text": "public void play() {\n\t\t\n\t}", "title": "" }, { "docid": "bddf1ef058da2e098a0aab54957d034d", "score": "0.6241047", "text": "public PlaySound() {\n\t\n\t}", "title": "" }, { "docid": "8ee466338aa9ee0149e680aa8a2f4fb9", "score": "0.6230665", "text": "private void play() {\n midiSynth.play(PLACEHOLDER_INSTRUMENT, modelPitchToMidiPitch(pitch), PLACEHOLDER_VOLUME);\n }", "title": "" }, { "docid": "2bb2dce4da5dde2535070c87ab0a73c9", "score": "0.6230528", "text": "private void playTextSound() {\n if (playSoundNow) {\n Sound s = GameManager.assetManager().get(currentSpeakerSound, Sound.class);\n s.play();\n }\n playSoundNow = !playSoundNow;\n }", "title": "" }, { "docid": "19525f4fc5cd61e1a02fe6b25150f8a6", "score": "0.62223566", "text": "public void play(){\n\t}", "title": "" }, { "docid": "64f682b0be84c80458be4d4599e71155", "score": "0.6212804", "text": "private void alarmForTimesUp() {\n Uri alarmUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM);\n if (alarmUri == null) {\n alarmUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n }\n //Create a MediaPlayer to control the output of ringtone/notification\n mMediaPlayer = MediaPlayer.create(this, alarmUri);\n mMediaPlayer.start();\n vibrateDevice();\n }", "title": "" }, { "docid": "027e44f168ba5e58d24b1aafdcb13c07", "score": "0.6210091", "text": "private void play()\r\n/* 37: */ {\r\n/* 38: */ try\r\n/* 39: */ {\r\n/* 40:29 */ AudioInputStream localAudioInputStream1 = AudioSystem.getAudioInputStream(this.sound);\r\n/* 41:30 */ AudioInputStream localAudioInputStream2 = null;\r\n/* 42:31 */ if (localAudioInputStream1 != null)\r\n/* 43: */ {\r\n/* 44:33 */ AudioFormat localAudioFormat1 = localAudioInputStream1.getFormat();\r\n/* 45:34 */ AudioFormat localAudioFormat2 = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, localAudioFormat1.getSampleRate(), 16, localAudioFormat1.getChannels(), localAudioFormat1.getChannels() * 2, localAudioFormat1.getSampleRate(), false);\r\n/* 46:35 */ localAudioInputStream2 = AudioSystem.getAudioInputStream(localAudioFormat2, localAudioInputStream1);\r\n/* 47:36 */ rawplay(localAudioFormat2, localAudioInputStream2);\r\n/* 48:37 */ localAudioInputStream1.close();\r\n/* 49: */ }\r\n/* 50: */ }\r\n/* 51: */ catch (Exception localException)\r\n/* 52: */ {\r\n/* 53:42 */ localException.printStackTrace();\r\n/* 54:43 */ isPlaying = false;\r\n/* 55: */ }\r\n/* 56: */ }", "title": "" }, { "docid": "7b6e73b5a824e4cb530e721ac692a89a", "score": "0.6208308", "text": "public void rayGun () {\n disposeSoundEffect();\n soundEffector = new MediaPlayer(rayGunSound);\n soundEffector.play();\n }", "title": "" }, { "docid": "0846c6c5c6697f791a88c19fabcec3aa", "score": "0.62004334", "text": "public void begin_sounds(){\n img_correct = MediaPlayer.create (this,R.raw.mario_bros_woo_hoo);\n img_change = MediaPlayer.create (this,R.raw.mario_bros_jump);\n back_sund= MediaPlayer.create (this,R.raw.angry_birds_videojuegos);\n end_sound = MediaPlayer.create (this,R.raw.win);\n\n bgsond = new GeometricActivity.playbackground(back_sund);\n if (PunteroIMG <=10)\n bgsond.execute();\n }", "title": "" }, { "docid": "c5fd0d5c8c51e30f54bc7404cfa22b39", "score": "0.6197891", "text": "@Override\n\tpublic void onClick(View arg0) {\n\t\tif(car != 0)\n\t\tsp.play(car, 1,1,0,0,1);\n\t}", "title": "" }, { "docid": "dd6462ec6c20626643d77367d5b37014", "score": "0.61975366", "text": "@Override\n\tpublic void playSound(Location arg0, String arg1, float arg2, float arg3)\n\t{\n\n\t}", "title": "" }, { "docid": "ee221c2d382d7c6393192ea8a84b3324", "score": "0.6188677", "text": "protected void onResume(){\n super.onResume();\n Music.play(this, R.raw.funkandblues); //pone la musica\n }", "title": "" }, { "docid": "b27903014f7c902b03aa4d9952eff318", "score": "0.6188261", "text": "@Override\r\n\tpublic void playSound(String p_soundGroup, String p_soundIndex) {\n\t}", "title": "" }, { "docid": "a256b16d795de5e637ce2bc084702c50", "score": "0.6177467", "text": "private void buttonSound() {\n MediaPlayer buttonClick = MediaPlayer.create(loginActivity.this, R.raw.click);\n buttonClick.start();\n }", "title": "" }, { "docid": "8b12ab7b56f52bf3839f723a78dd62e8", "score": "0.61734617", "text": "@Test\n\tpublic void testPlaySound() {\n\t\t\n\t\tcustomViews.GameScene.playSound(Sounds.BrickBlow);\n\t\tassertEquals(\"Result\",Sounds.BrickBlow,customViews.GameScene.getCurrentSound());\n\t\tcustomViews.GameScene.playSound(Sounds.PaddleHit);\n\t\tassertEquals(\"Result\",Sounds.PaddleHit,customViews.GameScene.getCurrentSound());\n\t\tcustomViews.GameScene.playSound(Sounds.Win);\n\t\tassertEquals(\"Result\",Sounds.Win,customViews.GameScene.getCurrentSound());\n\t}", "title": "" }, { "docid": "fc57f2b17978c0a21cc3ec2f0269f975", "score": "0.61731565", "text": "private void alertTap(){\n audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION);\n audioManager.setSpeakerphoneOn(true);\n\n mediaPlayer = MediaPlayer.create(this, R.raw.chime_up);\n final float volume = (float) (Math.log(maxVolume - currVolume) / Math.log(maxVolume));\n //mediaPlayer.setVolume(1-volume,1-volume);\n mediaPlayer.setVolume(1.0f, 1.0f);\n mediaPlayer.setAudioStreamType(AudioManager.MODE_IN_COMMUNICATION);\n mediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n @Override\n public void onCompletion(MediaPlayer mp) {\n mp.reset();\n mp.release();\n mp = null;\n }\n });\n mediaPlayer.start();\n }", "title": "" }, { "docid": "e3989f3472473e8aee01a53686258257", "score": "0.6171687", "text": "public void play();", "title": "" }, { "docid": "e3989f3472473e8aee01a53686258257", "score": "0.6171687", "text": "public void play();", "title": "" }, { "docid": "e3989f3472473e8aee01a53686258257", "score": "0.6171687", "text": "public void play();", "title": "" }, { "docid": "e3989f3472473e8aee01a53686258257", "score": "0.6171687", "text": "public void play();", "title": "" }, { "docid": "6c6696e8c4b3dba671153c1749a1ba3f", "score": "0.6170974", "text": "@Override\n public void onClick(View view) {\n tv.append(\"in playit!\\n\");\n at.play();\n ok=1;\n\n while (ok==1){\n tmp=at.write(buffer, 0, bufsizsamps);\n //SystemClock.sleep(1000L);\n tv.append(\"tmpp=\"+tmp+\"\\n\");\n }\n\n }", "title": "" }, { "docid": "23fe8846f372524417e1f0090c554ba2", "score": "0.6157636", "text": "public void playSoundAtFrequency(double frequency)\n {\n // Play sine wave\n playInstrumentAtFrequency(0, frequency);\n }", "title": "" }, { "docid": "93db953d164060f31e923c8328a0ac6f", "score": "0.6153541", "text": "static public Single<Boolean> setSound(int val) {\n Log.d(TAG, \"setSound\");\n switch (val) {\n case 1:\n return runCommandWait(\"service call audio 6 i32 2 i32 0\", true);\n case 2:\n return runCommandWait(\"service call audio 6 i32 2 i32 7\", true);\n default:\n return Single.just(true);\n }\n }", "title": "" }, { "docid": "4d0fa4dac47198aced8c6675b07a2a5f", "score": "0.6152327", "text": "void play();", "title": "" }, { "docid": "4d0fa4dac47198aced8c6675b07a2a5f", "score": "0.6152327", "text": "void play();", "title": "" }, { "docid": "7a4444d90df00d04eaef1a522b3db113", "score": "0.6143022", "text": "public void playhurtSound(){\n soundPool.play(hurtSound, 1.0f, 1.0f, 1, 0 , 1.0f);\n }", "title": "" }, { "docid": "b5c4432c9ab0c469fd9bf91e4746551f", "score": "0.6140182", "text": "@Override\r\n\t\t\tpublic void onClick(View arg0) \r\n\t\t\t{\n\t\t\t\tvibrator.vibrate(new long[]{0,5000,1000},0);\r\n\t\t\t\tToast.makeText(VibratorDemo.this, \"vibrate shuru ho gya h\", Toast.LENGTH_LONG).show();\r\n\t\t\t}", "title": "" }, { "docid": "9617c758d2af1a092e3b3c5d569b1847", "score": "0.6140101", "text": "@Override\n\tpublic void playSound(Location arg0, Sound arg1, float arg2, float arg3)\n\t{\n\n\t}", "title": "" }, { "docid": "1663fe445394e18aa292908a077806aa", "score": "0.61400235", "text": "@Override\n\tpublic void soundUp() {\n\n\t}", "title": "" }, { "docid": "d986aaf6e21c9acb407d176491bdc8ab", "score": "0.61389685", "text": "public void PlaySound(File Sound){\n try{\n Clip clip = AudioSystem.getClip();\n clip.open(AudioSystem.getAudioInputStream(Sound));\n clip.start();\n\n\n }catch(Exception e)\n {\n\n }\n }", "title": "" }, { "docid": "ddd9decf9a4672e0c5c11c489ef7621e", "score": "0.6125982", "text": "public void sound(){\n System.out.println(\"Animals make sound\");\n }", "title": "" }, { "docid": "cfecc849a2d188240b11e7cf9b9ba918", "score": "0.6124473", "text": "public void soundEffect(Clip clip)\n {\n if(clip == paddleBounce)\n {\n try\n {\n File file = new File(\"Paddle_bounce.wav\");\n AudioInputStream audioIn = AudioSystem.getAudioInputStream(file);\n\n paddleBounce = AudioSystem.getClip();\n paddleBounce.open(audioIn);\n paddleBounce.start();\n }\n\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n\n else if(clip == brickBounce)\n {\n try\n {\n File file = new File(\"brick_bounce.wav\");\n AudioInputStream audioIn = AudioSystem.getAudioInputStream(file);\n\n clip = AudioSystem.getClip();\n clip.open(audioIn);\n clip.start();\n }\n\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "2a8c43c742d0b403561d1b4c7dca43e3", "score": "0.6117616", "text": "@Override\n\tpublic void play() {\n\t\t\n\t}", "title": "" }, { "docid": "2a8c43c742d0b403561d1b4c7dca43e3", "score": "0.6117616", "text": "@Override\n\tpublic void play() {\n\t\t\n\t}", "title": "" }, { "docid": "6a86fbcf66ba5d7fec7c6ee7fd09158f", "score": "0.6109446", "text": "public static void playRandomBounce() {\r\n try {\r\n int i = MathUtils.random(0, 3);\r\n bounceSounds.get(i).play(0.05f*Settings.getCurrentSettings().getSoundVolume());\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "1ccf28ccf934d2c0796e4cf7f7e87d62", "score": "0.6085419", "text": "public String makeSound() {\n\t\treturn \"LaLaLa\";\n\t}", "title": "" }, { "docid": "cb9247e91cf9427a0d0cd71835cc6c6b", "score": "0.6083062", "text": "public void play() {this.aClip.start();}", "title": "" }, { "docid": "1311eea224bf48ff0515acc7c140333e", "score": "0.60821587", "text": "@Override\r\n public void run() {\n Intent i = new Intent(getBaseContext(),SendMessage1.class);\r\n i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n getApplication().startActivity(i);\r\n MediaPlayer player;\r\n AssetFileDescriptor afd = null;\r\n try {\r\n afd = getAssets().openFd(\"Alarm.mp3\");\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n player = new MediaPlayer();\r\n try {\r\n player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n player.prepare();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n player.start();\r\n try {\r\n Thread.sleep(5000);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n // player.stop();\r\n }", "title": "" }, { "docid": "d3aefd823a76e6db1f45427c5f98df9f", "score": "0.60811394", "text": "private void playSound(boolean isCorrect) {\n mediaPlayer = MediaPlayer.create(this,\n isCorrect ? randomCorrectSound() : randomWrongSound());\n mediaPlayer.start();\n\n mediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n public void onCompletion(MediaPlayer player) {\n player.reset();\n }\n });\n }", "title": "" }, { "docid": "f6c0a39c142f934729516e0feafc580f", "score": "0.60764724", "text": "void playBeat();", "title": "" }, { "docid": "137ad7daa8a7a782872ffa0601bdc52f", "score": "0.6074239", "text": "public void run() {\n if(play) {\n Sound.playSound(new File(\"C:\\\\Users\\\\alxye\\\\Desktop\\\\tiles\\\\420.wav\"));\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n play = false;\n }", "title": "" }, { "docid": "d2bc4b60f21d31d29d8123655a7f2cf2", "score": "0.60652405", "text": "public void playShortBeep() {\n playEffect(SHORT_BEEP_INDEX);\n }", "title": "" }, { "docid": "43c625acf88b2c58211a6f6b931d9a00", "score": "0.60576063", "text": "public void play()\r\n {\r\n if(soundClip != null) {\r\n soundClip.start();\r\n }\r\n }", "title": "" }, { "docid": "0cca808909d5e215fc84a48d2ac759ea", "score": "0.60507876", "text": "public static void playSound (final String pSon){\n Audio vS = new Audio(pSon);\n vS.play();\n }", "title": "" }, { "docid": "af58f28e15d004e622e1f40f4a7e4ce3", "score": "0.6031487", "text": "@Override\n\tpublic String getSound() {\n\t\treturn \"Vroom\";\n\t}", "title": "" }, { "docid": "8dea7e147fa09b7a27a69962aa7cc458", "score": "0.60287863", "text": "@Override\n public void play(){ }", "title": "" } ]
59ab2d40f19b9a5efc7b72012464f5dc
use to get the list of task from sqlite
[ { "docid": "3f3bf8d3371e0f2d1882084ca993be91", "score": "0.73085654", "text": "public static List<TaskModel> getTasks(){\n return new Select().from(TaskModel.class).execute();\n }", "title": "" } ]
[ { "docid": "1eabbaa8ae4bb524d093dd4dd8ea243f", "score": "0.78089356", "text": "public ArrayList<String> getTaskNameList(){\n SQLiteDatabase db = dbHelper.getReadableDatabase();\n String selectQuery = \"SELECT \" +\n Task.KEY_ID + \",\" +\n Task.Task_Name+\n \" FROM \" + Task.TABLE;\n\n ArrayList<String> taskList = new ArrayList<String>();\n\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n if(cursor.moveToFirst()){\n do{\n String task;\n task = cursor.getString(cursor.getColumnIndex(Task.Task_Name));\n taskList.add(task);\n\n }while(cursor.moveToNext());\n }\n\n cursor.close();\n db.close();\n return taskList;\n }", "title": "" }, { "docid": "f880ebead39922ed628eb6266026f1c8", "score": "0.7468922", "text": "List<Task> getFullTaskList();", "title": "" }, { "docid": "3778500c5d00bd5e7e08e50929e27e17", "score": "0.7453178", "text": "public Task[] getTasks(String listName){\n Cursor cursor = null ;\n\n SQLiteDatabase sqLiteDatabase = getReadableDatabase() ;\n\n // the sql read statement\n\n switch (listName) {\n case \"All Tasks\":\n cursor = sqLiteDatabase.query(TABLE_NAME, new String[]{KEY_ID, TASK_TITLE, TASK_DETAILS,\n TIME, DONE}, DONE + \"=?\", new String[]{\"0\"}, null,\n null, TIME + \" ASC\");\n break;\n\n case \"Done\":\n cursor = sqLiteDatabase.query(TABLE_NAME, new String[]{KEY_ID, TASK_TITLE, TASK_DETAILS,\n TIME, DONE}, DONE + \"=?\", new String[]{\"1\"}, null,\n null, TIME + \" ASC\");\n break;\n\n case \"Overdue\":\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\" , Locale.getDefault());\n String time = simpleDateFormat.format(new Date()) ;\n\n cursor = sqLiteDatabase.query(TABLE_NAME, new String[]{KEY_ID, TASK_TITLE, TASK_DETAILS,\n TIME, DONE}, TIME + \"<?\", new String[]{time}, null,\n null, TIME + \" ASC\");\n break;\n }\n\n Task[] tasksArray = new Task[cursor.getCount()] ;\n int i = 0 ;\n\n while (cursor.moveToNext()){\n Task task = new Task();\n\n //setting the task object variables then adding it to the array\n\n task.setId(Integer.parseInt(cursor.getString(0)));\n task.setTitle(cursor.getString(1));\n task.setDetails(cursor.getString(2));\n task.setTaskTime(cursor.getString(3));\n task.setDone(cursor.getInt(4));\n tasksArray[i] = task;\n i++;\n }\n\n return tasksArray;\n }", "title": "" }, { "docid": "bd12820e96e4b0f25379e82a197504e2", "score": "0.742123", "text": "public List<Task> getAllTasks() {\n String[] columns = {\n KEY_ID,\n KEY_NAME,\n KEY_DUE_DATE,\n KEY_NOTES,\n KEY_STATUS,\n KEY_PRIORITY,\n KEY_CATEGORY,\n KEY_DUETIME\n\n };\n\n List<Task>taskList = new ArrayList<Task>();\n\n SQLiteDatabase db = this.getReadableDatabase();\n\n\n Cursor cursor = db.query(TABLE_TASKS, //Table to query\n columns, //columns to return\n null, //columns for the WHERE clause\n null, //The values for the WHERE clause\n null, //group the rows\n null, //filter by row groups\n null); //The sort order\n\n\n // Traversing through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Task task = new Task();\n task.setId(cursor.getLong(0));\n task.setTaskName(cursor.getString(1));\n task.setDueDate(cursor.getString(2));\n task.setTaskNotes(cursor.getString(3));\n task.setStatus(cursor.getString(4));\n task.setPriority(cursor.getString(5));\n task.setCategory(cursor.getString(6));\n task.setDueTime(cursor.getString(7));\n\n taskList.add(task);\n } while (cursor.moveToNext());\n }\n cursor.close();\n db.close();\n\n // return user list\n return taskList;\n }", "title": "" }, { "docid": "750989c6c28900c8338515e94995bd84", "score": "0.7412335", "text": "@Test\n\tpublic void ListTask() throws SQLException {\n\t\tConnection conn = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n\t\tSystem.out.println(\"DB connection is successful\");\n\n\t\tStatement st = conn.createStatement(); // importing from javaSql\n\n\t\tResultSet rs = st.executeQuery(\"select *from ohrm_job_title\");\n\n\t\tList<String> jobTitles = new ArrayList<>();\n\t\twhile (rs.next()) {\n\t\t\tjobTitles.add(rs.getObject(\"Job_title\").toString());\n\n\t\t}\n\t\tSystem.out.println(jobTitles);\n\n\t\tfor (String jt : jobTitles) {\n\t\t\tSystem.out.println(jt);\n\t\t}\n\t\trs.close();\n\t\tst.close();\n\t\tconn.close();\n\t}", "title": "" }, { "docid": "0caef9a39126931c6c06efc03f5d5b4d", "score": "0.73112917", "text": "public List<Task> listTasks();", "title": "" }, { "docid": "c77707ea8e396f1c46e0dd43dbbb3baa", "score": "0.7245855", "text": "List<Task> getAll();", "title": "" }, { "docid": "07a80243ad7b61a79215beda00d9f923", "score": "0.70793486", "text": "public List<Task> getAllTasks() {\r\n \r\n Session session = HibernateUtil.getSessionFactory().openSession();\r\n session.beginTransaction();\r\n Query query = session.getNamedQuery(\"Task.findAll\");\r\n List<Task> listTask = query.list();\r\n \r\n return listTask;\r\n }", "title": "" }, { "docid": "e5d01238fa4a82e3aa1d7efb5b551256", "score": "0.7070327", "text": "public ArrayList<Task> getListTasks(int listId){\n ArrayList<Task> listTasks = new ArrayList<>();\n String queryGetAllTasks = \"SELECT * FROM \" + TABLE_TASK + \" WHERE \" + COLUMN_TASK_LIST_ID + \" = \" + listId + \";\";\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(queryGetAllTasks, null);\n if (cursor.moveToFirst()){\n do {\n Task task = new Task();\n task.setId(cursor.getInt(cursor.getColumnIndex(COLUMN_TASK_ID)));\n task.setName(cursor.getString(cursor.getColumnIndex(COLUMN_TASK_NAME)));\n task.setDescription(cursor.getString(cursor.getColumnIndex(COLUMN_TASK_DESCRIPTION)));\n task.setList_id(cursor.getInt(cursor.getColumnIndex(COLUMN_TASK_LIST_ID)));\n listTasks.add(task);\n }while (cursor.moveToNext());\n }\n cursor.close();\n db.close();\n return listTasks;\n }", "title": "" }, { "docid": "eb270a878c5f27f90eaeba11c7ab304a", "score": "0.7046157", "text": "public List<Task> getCompletedTasks(String tag) {\n try {\n PreparedStatement stmt;\n\n if(tag != null) {\n stmt = conn.prepareStatement(\"SELECT * FROM task JOIN tagged_task ON id = task_id \" +\n \"WHERE tag_name = ? AND status = 1;\");\n stmt.setString(1,tag);\n } else {\n stmt = conn.prepareStatement(\"SELECT * FROM task WHERE status = 1;\");\n }\n ResultSet rs = stmt.executeQuery();\n ArrayList<Task> tasks = new ArrayList();\n while(rs.next()) {\n Task task = new Task(rs.getString(\"label\"));\n task.setId(rs.getInt(\"id\"));\n task.setDueDate(new Date(rs.getDate(\"due_date\",Calendar.getInstance(TimeZone.getTimeZone(\"MST\"))).getTime()));\n task.setCreateDate(rs.getDate(\"create_date\",Calendar.getInstance(TimeZone.getTimeZone(\"MST\"))));\n tasks.add(task);\n }\n return tasks;\n\n } catch(SQLException e) {\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "b10d44440aa27776faa5d57490b569af", "score": "0.70127004", "text": "public List<TaskDetail> getTasks() throws Exception;", "title": "" }, { "docid": "7e64b5dcedd89afe578378c4a182dd0a", "score": "0.7006644", "text": "@Override\n\tpublic List<CheckTask> findAll() {\n\t\tConnection conn = null;\n\t\tPreparedStatement pstm = null;\n\t\tResultSet rs = null;\n\t\tList<CheckTask> list = new ArrayList<CheckTask>();\n\t\tString sql = \"select * from `check_task`\";\n\t\t\n\t\ttry {\n\t\t\tconn = DBConn.getConnection();\n\t\t\t\n\t\t\tpstm = conn.prepareStatement(sql);\n\t\t\t\n\t\t\t\n\t\t\trs = pstm.executeQuery();\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\tTimestamp start_time = rs.getTimestamp(\"start_time\");\n\t\t\t\tTimestamp end_time = rs.getTimestamp(\"end_time\");\n\n\t\t\t\tCheckTask task = CheckTask.builder()\n\t\t\t\t\t\t.id(rs.getString(\"id\"))\n\t\t\t\t\t\t.start_time(start_time)\n\t\t\t\t\t\t.end_time(end_time)\n\t\t\t\t\t\t.shelves(rs.getString(\"shelves\"))\n\t\t\t\t\t\t.username(rs.getString(\"username\"))\n\t\t\t\t\t\t.build();\n\t\t\t\t\n/*\t\t\t\ttask.setId(rs.getString(\"id\"));\n\t\t\t\ttask.setStart_time(start_time);\n\t\t\t\ttask.setEnd_time(end_time);\n\t\t\t\ttask.setShelves(rs.getString(\"shelves\"));\n\t\t\t\ttask.setUsername(rs.getString(\"username\"));*/\n\n\t\t\t\tlist.add(task);\n\t\t\t}\n\t\t\tif (pstm != null) {\n\t\t\t\tpstm.close();\n\t\t\t}\n\t\t\tif (rs != null) {\n\t\t\t\trs.close();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t\treturn list;\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "title": "" }, { "docid": "b92029a307b5126fa0bb1f34a2fe9783", "score": "0.6951875", "text": "List<ReadOnlyTask> getTaskList();", "title": "" }, { "docid": "b92029a307b5126fa0bb1f34a2fe9783", "score": "0.6951875", "text": "List<ReadOnlyTask> getTaskList();", "title": "" }, { "docid": "d71f2bcca8138e91dc13d4abf72c6583", "score": "0.69029474", "text": "public Cursor getAllTasks()\r\n\t{\r\n\t\tString[] COLS = new String[] {KEY_ID, COLUMN_NAME, COLUMN_CONTENT, COLUMN_DUE, \r\n\t\t\t\tCOLUMN_COLOR, COLUMN_PRIORITY, COLUMN_SIZE};\r\n\t\tCursor cursor = db.query(DATABASE_TABLE, COLS, null, null, null, null, \"tasks.priority ASC\");\t//Sort tasks by priority\r\n\t\tif(cursor != null)\r\n\t\t{\r\n\t\t\tcursor.moveToFirst();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t}\r\n\t\treturn cursor;\r\n\t}", "title": "" }, { "docid": "cbbd57b8ef52e45e9fb3e4615a637863", "score": "0.6873322", "text": "public TaskList getTaskList ( int taskListId){\n SQLiteDatabase db = this.getReadableDatabase();\n String queryGetTaskList = \"SELECT * FROM \" + TABLE_LIST + \" WHERE \" + COLUMN_LIST_ID + \" = \" + taskListId + \" ;\";\n Cursor cursor = db.rawQuery(queryGetTaskList,null);\n if (cursor != null)\n cursor.moveToFirst();\n TaskList taskList = new TaskList();\n taskList.setId(cursor.getInt(cursor.getColumnIndex(COLUMN_LIST_ID)));\n taskList.setName(cursor.getString(cursor.getColumnIndex(COLUMN_LIST_NAME)));\n taskList.setDescription(cursor.getString(cursor.getColumnIndex(COLUMN_LIST_DESCRIPTION)));\n taskList.setIcon(cursor.getString(cursor.getColumnIndex(COLUMN_LIST_ICON)));\n taskList.setProject_id(cursor.getInt(cursor.getColumnIndex(COLUMN_LIST_PROJECT_ID)));\n cursor.close();\n db.close();\n return taskList;\n }", "title": "" }, { "docid": "d5d208fead4bbe13c71da2f2cf020a34", "score": "0.6855014", "text": "public ArrayList<TaskList> getAllTaskLists (int projectId){\n ArrayList<TaskList> taskLists = new ArrayList<>();\n String queryGetAllTaskLists = \"SELECT * FROM \" + TABLE_LIST + \" WHERE \" + COLUMN_LIST_PROJECT_ID + \" = \" + projectId + \" ;\";\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(queryGetAllTaskLists,null);\n if (cursor.moveToFirst()){\n do {\n TaskList taskList = new TaskList();\n taskList.setId(cursor.getInt(cursor.getColumnIndex(COLUMN_LIST_ID)));\n taskList.setName(cursor.getString(cursor.getColumnIndex(COLUMN_LIST_NAME)));\n taskList.setDescription(cursor.getString(cursor.getColumnIndex(COLUMN_LIST_DESCRIPTION)));\n taskList.setIcon(cursor.getString(cursor.getColumnIndex(COLUMN_LIST_ICON)));\n taskList.setProject_id(cursor.getInt(cursor.getColumnIndex(COLUMN_LIST_PROJECT_ID)));\n taskLists.add(taskList);\n }while (cursor.moveToNext());\n }\n cursor.close();\n db.close();\n return taskLists;\n }", "title": "" }, { "docid": "88ce079f59c4584cc4c09ac4799bf168", "score": "0.6787905", "text": "protected void loadTaskList(){\n }", "title": "" }, { "docid": "930a49cb2ca39c175cbddc1175505574", "score": "0.67607933", "text": "public List<ToDoTask> findAllToDo() {\n try {\n return jdbcTemplate.query(\"SELECT id, user_story, task_details, finish_date,difficulty,priority FROM to_do\",\n (rs, rowNum) -> new ToDoTask(rs.getLong(\"id\"), rs.getString(\"user_story\")\n ,rs.getString(\"task_details\"),rs.getDate(\"finish_date\")\n ,rs.getString(\"difficulty\"),rs.getString(\"priority\") ));\n } catch (Exception e) {\n return new ArrayList<ToDoTask>();\n }\n }", "title": "" }, { "docid": "c11561d396f1d5882322378b268b22b3", "score": "0.67378956", "text": "public abstract List<E> getTasks();", "title": "" }, { "docid": "8eb7170ccdbb9f1506589ba556c4f6b3", "score": "0.6732401", "text": "public void listTask () {\n System.out.println(\"Here are the tasks in your list: \");\n for (int j = 0; j < tasks.size(); j++) {\n Task task = tasks.get(j);\n System.out.println((j + 1)+ \".\" + task.toString());\n }\n }", "title": "" }, { "docid": "d03c19be08e8f828bc568fd5a65f22a2", "score": "0.66689366", "text": "@Override\r\n\tpublic List<TaskBean> getTaskList() {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tsession.beginTransaction();\r\n\t\tCriteria crteri=session.createCriteria(TaskBean.class);\r\n\t\tList<TaskBean> listTaskBean=crteri.list();\r\n\t\treturn listTaskBean;\r\n\t}", "title": "" }, { "docid": "e1c2ce902a496d3cc58edc6628c63716", "score": "0.6661159", "text": "private String getTaskList() {\n String strURL = Util.URL_SERVER + Util.LIST_RESOURCE + Util.AND + Util.USER_ID_KEY + \"=1\";\n Log.d(TAG, \"URL:\\t\" + strURL);\n\n try {\n URL url = new URL(strURL);\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n\n Log.d(TAG, \"Verifying answer...\");\n\n if (httpURLConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n String response = Util.convertStreamToString(httpURLConnection.getInputStream());\n\n Log.d(TAG, \"Response:\\t\\t\" + response);\n return response;\n }\n\n } catch (MalformedURLException e) {\n Log.e(TAG, e.getMessage());\n e.printStackTrace();\n } catch (IOException e) {\n Log.e(TAG, e.getMessage());\n e.printStackTrace();\n }\n\n return new JSONObject().toString();\n }", "title": "" }, { "docid": "5bca4db155ce3b66b5b16a676e326eab", "score": "0.6629592", "text": "List<Task<T>> getTasks();", "title": "" }, { "docid": "cdeb307cce0017c48a9ca6791180ff7b", "score": "0.6603027", "text": "private List<Task> getTasks(List<TaskEntity> list){\n\n ArrayList<Task> tasks = new ArrayList<Task>(list.size());\n\n for (TaskEntity te: list) {\n\n Task t = new Task();\n\n ReminderEntity re = new ReminderEntity();\n CategoryEntity ce = new CategoryEntity();\n Category c = new Category();\n Reminder r = new Reminder();\n UserEntity ue = new UserEntity();\n UserEntity ue2 = new UserEntity();\n WwwUser u = new WwwUser();\n WwwUser u2 = new WwwUser();\n WwwFamily f = new WwwFamily();\n\n re = te.getReminder();\n if(re != null) {\n BeanUtils.copyProperties(re, r);\n t.setReminder(r);\n }\n\n ce = te.getCategory();\n if (ce != null) {\n BeanUtils.copyProperties(ce, c);\n t.setCategory(c);\n }\n\n if (te.getFamily() != null) {\n FamilyEntity fe = familyRepository.findFamily(te.getFamily().getId());\n BeanUtils.copyProperties(fe, f);\n t.setFamily(f);\n }\n\n ue = userRepository.getUserById(te.getCreator().getId().intValue());\n long uid = ue.getId();\n\n FamilyEntity fe1 = ue.getFamily();\n WwwFamily wf= new WwwFamily();\n BeanUtils.copyProperties(fe1, wf);\n u.setFamily(wf);\n u.setId(uid);\n BeanUtils.copyProperties(ue, u);\n t.setCreator(u);\n\n ue2 = userRepository.getUserById(te.getAssignee().getId().intValue());\n long uid2 = ue2.getId();\n\n FamilyEntity fe2 = ue2.getFamily();\n WwwFamily wf2= new WwwFamily();\n BeanUtils.copyProperties(fe2, wf2);\n u2.setFamily(wf2);\n u2.setId(uid2);\n\n BeanUtils.copyProperties(ue2, u2);\n t.setAssignee(u2);\n\n TaskEntity.Status tes = te.getStatus();\n Task.Status ts = null;\n switch (tes) {\n case NEEDS_ACTION:\n ts = Task.Status.NEEDS_ACTION;\n break;\n case IN_PROGRESS:\n ts = Task.Status.IN_PROGRESS;\n break;\n case COMPLETED:\n ts = Task.Status.COMPLETED;\n break;\n }\n\n t.setStatus(ts);\n\n Reminder reminder = new Reminder();\n ReminderEntity rem = te.getReminder();\n if(rem != null) {\n BeanUtils.copyProperties(rem, reminder);\n t.setReminder(reminder);\n }\n\n BeanUtils.copyProperties(te,t);\n tasks.add(t);\n }\n return tasks;\n }", "title": "" }, { "docid": "89321cd1e7622da1d49a3a7c13a13bed", "score": "0.65749997", "text": "public String list() {\n StringBuilder tasks = new StringBuilder();\n String task;\n int index = 1;\n for (Iterator iterator = taskList.iterator(); iterator.hasNext(); index++) {\n assert (index >= 1);\n task = index + \".\" + iterator.next() + \"\\n\";\n tasks.append(task);\n }\n assert (tasks.length() >= 0);\n return tasks.toString();\n }", "title": "" }, { "docid": "e777bc4d9de2c3df7de3aef4d254f0bb", "score": "0.65612835", "text": "public void retreiveTasks( long projectID )\n\t{\n\t\tdbAdapter.open();\n\n\t\tString tasksJSON = ah.getTasks( projectID );\n\n\t\tLog.i( APP_TAG, \"Retreiving for project: \" +projectID );\n\t\tLog.i( APP_TAG, \"JSON: \" +tasksJSON );\n\n\t\ttry\n\t\t{\n\t\t\t// map the received JSON to a TaskSet\n\t\t\tTaskSet tasks = mapper.readValue(\n\t\t\t\ttasksJSON,\n\t\t\t\tTaskSet.class );\n\n\t\t\t// manually set the project ID. There MUST be a better way of\n\t\t\t// doing this.\n\t\t\tfor( Task t : tasks.getData() )\n\t\t\t\tt.setProjects( new long[] {projectID} );\n\n\t\t\tdbAdapter.addTasks( tasks );\n\t\t}\n\t\tcatch(Exception e)\n\t\t{ e.printStackTrace(); }\n\t\tfinally\n\t\t{\n\t\t\tdbAdapter.close();\n\t\t}\n\t}", "title": "" }, { "docid": "04129db138df398fdf5f6422e60b4985", "score": "0.65479594", "text": "public ArrayList<ToDo> getAllTasks() {\n\t\tArrayList<ToDo> results = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\t\t\t// executeQuery returns ResultSet containing matching entries\n\t\t\tresultSet = selectAllTasks.executeQuery();\n\t\t\tresults = new ArrayList<ToDo>();\n\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tresults.add(\n\t\t\t\t\t\tnew ToDo(resultSet.getInt(\"ID\"), resultSet.getString(\"Task\"), resultSet.getString(\"Category\")));\n\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tresultSet.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tclose();\n\t\t\t}\n\t\t}\n\n\t\treturn results;\n\t}", "title": "" }, { "docid": "05d37ad479a2ba9ad43fc174542982ee", "score": "0.6543538", "text": "public List<Task> getAllTasksFromUser(String user);", "title": "" }, { "docid": "ab87571f2b51ddca44f7feaa462773fb", "score": "0.65408957", "text": "public ArrayList<Task> getTaskList(String id){\n\t\treturn jobTable.get(id).getItemList();\n\t}", "title": "" }, { "docid": "8ba39231cc6b95996bf577cfdb8cd127", "score": "0.6529481", "text": "public List<Task> getActiveTasks(String tag) {\n try {\n PreparedStatement stmt;\n\n if(tag != null) {\n stmt = conn.prepareStatement(\"SELECT * FROM task JOIN tagged_task ON id = task_id \" +\n \"WHERE tag_name = ? AND status = 0;\");\n stmt.setString(1,tag);\n } else {\n stmt = conn.prepareStatement(\"SELECT * FROM task WHERE status = 0;\");\n }\n ResultSet rs = stmt.executeQuery();\n ArrayList<Task> tasks = new ArrayList();\n while(rs.next()) {\n Task task = new Task(rs.getString(\"label\"));\n task.setId(rs.getInt(\"id\"));\n task.setDueDate(rs.getDate(\"due_date\",Calendar.getInstance(TimeZone.getTimeZone(\"MST\"))));\n task.setCreateDate(rs.getDate(\"create_date\",Calendar.getInstance(TimeZone.getTimeZone(\"MST\"))));\n tasks.add(task);\n }\n return tasks;\n\n } catch(SQLException e) {\n return null;\n }\n }", "title": "" }, { "docid": "fa5dc3c02a7898e01486ce666d788699", "score": "0.6524626", "text": "@Override\n public ObservableList<CountedTime> loadTimeForTask(int taskId) throws SQLException {\n\n Connection con = null;\n ObservableList<CountedTime> tasks = FXCollections.observableArrayList();\n\n try {\n con = DBSettings.getInstance().getConnection();\n String sql = \"SELECT * FROM Tasks WHERE Tasks.taskID = ? ORDER BY Tasks.startTime asc\";\n PreparedStatement stmt = con.prepareStatement(sql);\n\n stmt.setInt(1, taskId);\n ResultSet rs = stmt.executeQuery();\n\n while (rs.next()) {\n\n int id = rs.getInt(\"ID\");\n int time = rs.getInt(\"time\");\n Date startTime = TimeConverter.convertStringToDateDB(rs.getString(\"startTime\"));\n Date stopTime = TimeConverter.convertStringToDateDB(rs.getString(\"stopTime\"));\n boolean isBillable = rs.getBoolean(\"isBillable\");\n\n CountedTime countedTime = new CountedTime(time, startTime, stopTime);\n countedTime.setId(id);\n countedTime.setBillable(isBillable);\n tasks.add(countedTime);\n }\n return tasks;\n\n } finally {\n DBSettings.getInstance().releaseConnection(con);\n }\n }", "title": "" }, { "docid": "66ce80f4bb0d5c9066fb2598ec1646c5", "score": "0.65198416", "text": "public ArrayList<Task> get_all_task(Long listid,GpUser gpuser) throws Exception {\r\n\r\n\t\ttry {\r\n\t\t\tArrayList<Task> Task_list;\r\n\r\n\t\t\tTask_list = Task_Default_Activity_dao.get_all_task(listid,gpuser);\r\n\t\t\t\r\n\t\t\treturn Task_list;\r\n\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t\tSystem.out.println(\"ServiceException: \" + e.toString());\r\n\r\n\t\t}\r\n\t\treturn null;\r\n\r\n\t}", "title": "" }, { "docid": "5e19b77b0f3f4787e74d48b390080573", "score": "0.65156674", "text": "public List<Task> getAllTask() {\n return taskRepository.findAll();\n }", "title": "" }, { "docid": "b723293f3bc97d5d8b541ba2fb385efd", "score": "0.65000457", "text": "List<T> readListDB();", "title": "" }, { "docid": "54009612fbc30ffd6fdc658e1f8f66bd", "score": "0.64968985", "text": "List<TaskLog> listTaskLogs();", "title": "" }, { "docid": "8a5f08e35b951ca2fc7afaec1d8906e7", "score": "0.6482943", "text": "public void getTaskGroupFile(DB db){\n try {\n String[] aux ;\n ArrayList<TaskGroupImpl> temp;\n File myObj = new File(FILES_PATH+\"taskGroupList.txt\");\n Scanner myReader = new Scanner(myObj);\n while (myReader.hasNextLine()) {\n String data = myReader.nextLine();\n aux=data.split(\";\");\n temp = db.getTaskGroups();\n TaskGroupImpl taskGroup = new TaskGroupImpl(aux[0],aux[1],aux[2],aux[3],aux[4],aux[5],aux[6],aux[7],aux[8]);\n temp.add(taskGroup);\n db.setTaskGroups(temp);\n getTaskFile(db, parseInt(aux[0]));\n System.out.println(db.getTasks());\n createWorkQueue(db,taskGroup);\n }\n myReader.close();\n } catch (FileNotFoundException | RemoteException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "ac057c7ab37adc62cfd772e0657637ce", "score": "0.64564157", "text": "public List<TaskTO> getallTasks()\n\t {\n\t\t List<Task> allTasks=repository.findAll();\n\t\t List<TaskTO> listOfTasks=convertToModel(allTasks);\n\t\t //Collections.sort(listOfTasks, new SortByStatusComparator());\n\t\t// Collections.sort(listOfTasks, new SortByRankComparator());\n\t\t Collections.sort(listOfTasks, new SortByStatusAndRank());\n\t\t \n\t\t return listOfTasks;\n\t }", "title": "" }, { "docid": "1260cc966fa1e4cb6d8e4efa12f68dba", "score": "0.64420336", "text": "public void getTaskFile(DB db, int taskGroupID){\n try {\n String[] aux ;\n ArrayList<Task> temp = new ArrayList<>();\n String txt = FILES_PATH+ \"tasks\" + taskGroupID +\".txt\";\n File myObj = new File(txt);\n Scanner myReader = new Scanner(myObj);\n while (myReader.hasNextLine()) {\n String data = myReader.nextLine();\n aux=data.split(\";\");\n String[] words = aux[7].split(\",\");\n ArrayList<String> arrayListWord = new ArrayList<>(Arrays.asList(words));\n temp = db.getTasks();\n TaskGroupImpl taskGroup = null;\n for(TaskGroupImpl t:db.getTaskGroups())\n if((t.getId()).compareTo(aux[13])==0){\n taskGroup=t;\n }\n temp.add(new Task(parseInt(aux[0]),null, Boolean.parseBoolean(aux[2]), parseInt(aux[3]), parseInt(aux[4]), parseInt(aux[5]),aux[6],arrayListWord,aux[8],aux[9],aux[10], parseInt(aux[11]), parseInt(aux[12]),taskGroup));\n }\n myReader.close();\n db.setTasks(temp);\n } catch (FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "093c68f4b6621b6f448b95b388449d05", "score": "0.6438878", "text": "public static ArrayList<DatabaseObject> load(SQLiteDatabase db, Context context) throws SQLiteException\n\t{\n\t\tArrayList<DatabaseObject> list = new ArrayList<>();\n\n\t\t//db.execSQL(\"SELECT * FROM tasks\");\n\t\tCursor c = db.rawQuery(\"SELECT * FROM tasks\", new String[]{});\n\n\t\tif (c.moveToFirst())\n\t\t{\n\t\t\twhile (!c.isAfterLast())\n\t\t\t{\n\t\t\t\t//It is advised to put a field into such try block when db upgrade happens\n\t\t\t\tInteger id;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tid = Integer.valueOf(c.getString(c.getColumnIndex(\"id\")));\n\t\t\t\t}\n\t\t\t\tcatch (IllegalStateException e)\n\t\t\t\t{\n\t\t\t\t\tid = 0;\n\t\t\t\t}\n\n\t\t\t\tlong tag = Long.valueOf(c.getString(c.getColumnIndex(\"tag\")));\n\t\t\t\tString name = c.getString(c.getColumnIndex(\"name\"));\n\t\t\t\tString desc = c.getString(c.getColumnIndex(\"description\"));\n\t\t\t\tlong date = Long.valueOf(c.getString(c.getColumnIndex(\"date\")));\n\t\t\t\tlong hours = Long.valueOf(c.getString(c.getColumnIndex(\"hours\")));\n\t\t\t\tlong minutes = Long.valueOf(c.getString(c.getColumnIndex(\"minutes\")));\n\n\t\t\t\tBoolean finished;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tfinished = Boolean.valueOf(c.getString(c.getColumnIndex(\"finished\")));\n\t\t\t\t}\n\t\t\t\tcatch (IllegalStateException e)\n\t\t\t\t{\n\t\t\t\t\tfinished = false;\n\t\t\t\t}\n\n\t\t\t\tDatabaseObject object = new DatabaseObject(id, tag, name, desc, date, hours, minutes, finished);\n\n\t\t\t\tlist.add(object);\n\t\t\t\tc.moveToNext();\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "title": "" }, { "docid": "c739d9a2ff18fcdae1f4bf6fc8207690", "score": "0.6438818", "text": "@Override\n public ObservableList<Task> loadTasks(int userId, int projectId) throws SQLException {\n\n Connection con = null;\n ObservableList<Task> tasks = FXCollections.observableArrayList();\n\n try {\n con = DBSettings.getInstance().getConnection();\n String sql = \"SELECT * FROM Task WHERE Task.employeeID = ? AND Task.projID = ?;\";\n PreparedStatement stmt = con.prepareStatement(sql);\n\n stmt.setInt(1, userId);\n stmt.setInt(2, projectId);\n ResultSet rs = stmt.executeQuery();\n\n while (rs.next()) {\n\n int id = rs.getInt(\"ID\");\n String name = rs.getString(\"name\");\n\n Task task = new Task(name);\n task.setId(id);\n tasks.add(task);\n }\n\n return tasks;\n\n } finally {\n DBSettings.getInstance().releaseConnection(con);\n }\n }", "title": "" }, { "docid": "e28bdf78ebb6a24199ccf76df5e43234", "score": "0.6371788", "text": "private void getAllTaskById()\r\n {\r\n\r\n spinKit.setVisibility(View.VISIBLE);\r\n\r\n Query query = FirebaseDatabase.getInstance().getReference(\"tasks\")\r\n .orderByChild(taskUserType).equalTo(taskUserId);\r\n query.addValueEventListener(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\r\n\r\n taskModelLArrayList.clear();\r\n searchAllTaskModelLArrayList.clear();\r\n if (dataSnapshot.hasChildren()) {\r\n ivError.setVisibility(View.GONE);\r\n rvAllAssignments.setVisibility(View.VISIBLE);\r\n GenericTypeIndicator<HashMap<String, TaskModel>> genericTypeIndicator = new GenericTypeIndicator<HashMap<String, TaskModel>>() {\r\n };\r\n\r\n taskModelLArrayList.putAll(dataSnapshot.getValue(genericTypeIndicator));\r\n\r\n notifyToSubscribers(AppConstants.ON_TASK_UPDATE);\r\n\r\n Log.e(\"test\", \"taskModelLArrayList \" + taskModelLArrayList.size());\r\n\r\n adapter = new AssignmentsAdapter(getActivity(), taskModelLArrayList);\r\n rvAllAssignments.setAdapter(adapter);\r\n\r\n spinKit.setVisibility(View.GONE);\r\n } else {\r\n\r\n Toast.makeText(activity, \"No Task Available \", Toast.LENGTH_LONG).show();\r\n ivError.setVisibility(View.VISIBLE);\r\n rvAllAssignments.setVisibility(View.GONE);\r\n spinKit.setVisibility(View.GONE);\r\n }\r\n }\r\n\r\n @Override\r\n public void onCancelled(DatabaseError databaseError) {\r\n spinKit.setVisibility(View.GONE);\r\n }\r\n });\r\n }", "title": "" }, { "docid": "daffc90f2579123a0c8d4a1cd812b392", "score": "0.6352333", "text": "public List<Task> lookForTasks()\r\n {\r\n listContext = NavDrawerActivity.nda;\r\n\r\n List<Task> tasks,list = new ArrayList<>();\r\n tasks = listContext.getTaskListFragment().getRoute().getTasks();\r\n List<Date> deliveries = listContext.getEstimates();\r\n int currentTask = listContext.getTaskListFragment().getCurrentTask();\r\n\r\n int i = 0;\r\n Date now = new Date();\r\n\r\n for(Task task:tasks)\r\n {\r\n if(i >= currentTask){\r\n Date delivery = deliveries.get(i);\r\n if(task.getEta().after(now) && task.getEta().before(new Date(now.getTime() + (20 * ONE_MINUTE_IN_MILLIS))))\r\n if(!task.getSentSMS()) {\r\n list.add(task);\r\n task.setSentSMS(true);\r\n }\r\n }\r\n i++;\r\n }\r\n\r\n return list;\r\n }", "title": "" }, { "docid": "288b35eb21f864bb04b07c887e264cbd", "score": "0.63517475", "text": "WeeklyTasks getWeeklyTaskList();", "title": "" }, { "docid": "43eef67391545535ae3b681c91a7bcd4", "score": "0.63125974", "text": "public List<Task> getTasks(ObjectId goalId);", "title": "" }, { "docid": "daff7c28805700f5a470fd9450a2ad71", "score": "0.6305961", "text": "@Override\n public void getTasks() {\n repository.readAllTask(new ViewRequestResponseListener<List<Task>>(view) {\n @Override\n public void onSuccess(List<Task> tasks) {\n // Show data in view\n view.showTasks(tasks);\n }\n });\n\n }", "title": "" }, { "docid": "e82969b31944130ddaf85fb6c2059a57", "score": "0.62994784", "text": "Task query(final String taskID);", "title": "" }, { "docid": "0cce241fb96521f0604623dc2130a982", "score": "0.6293462", "text": "@Override\n\tpublic List<AutoTaskBean> getAutoTasks() {\n\t\tDBContextHolder.setDBType(DBContextHolder.DATA_SOURCE);\n\t\tString sql = \"SELECT * FROM d_ec_new_statistics.t_ec_autojob_autotask t WHERE t.flag = '1' \";\n\t\t@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\t\tList<AutoTaskBean> autasks = jdbcTemplate.query(sql,new RowMapper() {\n\t\t\t@Override\n\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\tAutoTaskBean auto = new AutoTaskBean();\n\t\t\t\tauto.setId(rs.getInt(\"id\"));\n\t\t\t\tauto.setTaskcode(rs.getString(\"taskcode\"));\n\t\t\t\tauto.setTaskName(rs.getString(\"taskName\"));\n\t\t\t\tauto.setExectime(rs.getString(\"exectime\"));\n\t\t\t\tauto.setLastStartDate(rs.getTimestamp(\"lastStartDate\")); \n\t\t\t\tauto.setLastEndDate(rs.getTimestamp(\"lastEndDate\"));\n\t\t\t\tauto.setStarting(rs.getString(\"state\"));\n\t\t\t\tauto.setTaskPath(rs.getString(\"taskPath\"));\n\t\t\t\tauto.setTaskType(rs.getString(\"taskType\"));\n\t\t\t\tauto.setFlag(rs.getString(\"flag\"));\n\t\t\t\tauto.setFrequence(rs.getInt(\"frequence\"));\n\t\t\t\tauto.setCreateUser(rs.getString(\"createUser\"));\n\t\t\t\tauto.setCreateDate(rs.getString(\"createDate\"));\n\t\t\t\tauto.setUpdateUser(rs.getString(\"updateUser\"));\n\t\t\t\tauto.setUpdateDate(rs.getString(\"updateDate\"));\n\t\t\t\treturn auto;\n\t\t\t}\n\t\t});\n\t\t\t\t\n\t\treturn autasks;\n\t\t\n\t}", "title": "" }, { "docid": "9915d091ee7561989ab962d4adddd22c", "score": "0.6278074", "text": "public TaskList loadTasks () {\n try {\n File file = new File(this.filepath);\n file.createNewFile();\n Scanner fs = new Scanner(file);\n TaskList list = new TaskList();\n while (fs.hasNextLine()) {\n String[] task = fs.nextLine().split(\"/\");\n char type = task[0].charAt(0);\n boolean done = task[1].equals(\"true\");\n String desc = task[2];\n if (type == 'e' || type == 'd') {\n String det = task[3];\n list.addTask(new Task(type, done, desc, det));\n } else {\n list.addTask(new Task(type, done, desc));\n }\n }\n return list;\n } catch (IOException e) {\n return new TaskList();\n }\n }", "title": "" }, { "docid": "39f35dc6adf2cfad8bf16d9e100bc7f9", "score": "0.6262707", "text": "public interface TaskDao extends GenericDao<Task> {\n\n List<Task> findByTasKList(Long task_id);\n\n}", "title": "" }, { "docid": "c5543264c43f1aa4ed57baa504a1658e", "score": "0.6259686", "text": "public ArrayList<String> getStudentContent() {\n ArrayList<String> tasks = new ArrayList<String>();\n //select all tasks' description\n String selectQuery = \"SELECT \" + COLUMN_NAME + COLUMN_GRADE + \" FROM \" + TABLE_STUDENT;\n\n //Get instance of database to read\n SQLiteDatabase db = this.getReadableDatabase();\n //run SL and get back Cursor object\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n //moveToFirst() moves to first row\n if (cursor.moveToFirst()) {\n //loop while moveToNest() points to next row and return truel moveToNest() returns false when no more next row to move to\n do {\n //add task content to arrayList, 0 in getString(0) return data in the first position.\n tasks.add(cursor.getString(0));\n } while (cursor.moveToNext());\n }\n //close connection\n cursor.close();\n db.close();\n\n return tasks;\n }", "title": "" }, { "docid": "6ad4f9865eee7b4a072f8a890b106a87", "score": "0.6258052", "text": "@Override\n public ObservableList<Task> loadAllUniqueTasksDates(int projectID, LocalDate startDate, LocalDate endDate) throws SQLException\n {\n Connection con = null;\n ObservableList<Task> tasks = FXCollections.observableArrayList();\n\n try {\n con = DBSettings.getInstance().getConnection();\n \n String sql = \"WITH x AS (SELECT Tasks.time, Task.* FROM Tasks JOIN Task ON Tasks.taskID = Task.ID WHERE Tasks.startTime BETWEEN ? AND ? AND Task.projID = ?)\" +\n \"SELECT DISTINCT x.ID, x.name, Employees.fName, Employees.lName, COALESCE((SELECT SUM (Tasks.time) FROM Tasks WHERE Tasks.taskID = x.ID AND Tasks.isBillable = 0),0) as unbillabletime, SUM(x.time) over (partition by x.ID) as totalTime FROM x JOIN Employees ON x.employeeID = Employees.ID;\";\n PreparedStatement stmt = con.prepareStatement(sql);\n \n stmt.setString(1, startDate.toString());\n stmt.setString(2, TimeConverter.addDays(endDate, 1).toString());\n stmt.setInt(3, projectID);\n \n ResultSet rs = stmt.executeQuery();\n\n while (rs.next()) {\n\n int id = rs.getInt(\"ID\");\n String name = rs.getString(\"name\");\n String employeeName = rs.getString(\"fName\") + \" \" + rs.getString(\"lName\");\n int totalTime = rs.getInt(\"totalTime\");\n int unbillableTime = rs.getInt(\"unbillableTime\");\n\n Task task = new Task(name);\n task.setId(id);\n task.setEmployee(employeeName);\n task.setTotalTime(totalTime);\n task.setUnbillabletime(unbillableTime);\n tasks.add(task);\n }\n\n return tasks;\n\n } finally {\n DBSettings.getInstance().releaseConnection(con);\n }\n }", "title": "" }, { "docid": "26757245b1e94118abcd460d6fde23dd", "score": "0.6250431", "text": "public List<Task> getActiveTasks() {\n InputStream response = null;\n URI uri = new URIBase(getBaseUri()).path(\"_active_tasks\").build();\n try {\n response = couchDbClient.get(uri);\n return getResponseList(response, couchDbClient.getGson(), DeserializationTypes.TASKS);\n } finally {\n close(response);\n }\n }", "title": "" }, { "docid": "3ec1a5629f0ddbb09a543559b61b951e", "score": "0.62367177", "text": "private void getItemsFromSQLite() {\n new AsyncTask<Void, Void, Void>() {\n @Override\n protected Void doInBackground(Void... voids) {\n listItems.clear();\n listItems.addAll(dbHelper.getAllItems());\n\n return null;\n }\n\n protected void onPostExecute(Void params) {\n super.onPostExecute(params);\n itemAdapter.notifyDataSetChanged();\n }\n }.execute();\n }", "title": "" }, { "docid": "70c5593740233ca149a5af7a4a6f61e9", "score": "0.6222213", "text": "public void _getTasks() {\n// int cnt = 0 ;\n// boolean result = true ;\n// XTask task = null ;\n//\n// XEnumerationAccess enumAcc = oObj.getTasks() ;\n// XEnumeration enum = enumAcc.createEnumeration() ;\n// while (enum.hasMoreElements()) {\n// cnt ++ ;\n// try {\n// task = (XTask) enum.nextElement() ;\n// } catch (com.sun.star.container.NoSuchElementException e) {\n// e.printStackTrace(log);\n// } catch (com.sun.star.lang.WrappedTargetException e) {\n// e.printStackTrace(log);\n// }\n// if (task == null)\n// log.println(\"\" + cnt + \" task: null !!!\") ;\n// else\n// log.println(\"\" + cnt + \" task: \" + task.getName()) ;\n// result &= (task != null) ;\n// }\n// log.println(\"Totaly tasks: \" + cnt) ;\n//\n// if (cnt > 0 && result) tRes.tested(\"getTasks()\", true) ;\n\n log.println(\"DEPRECATED\");\n\n tRes.tested(\"getTasks()\", true);\n\n }", "title": "" }, { "docid": "2c560e2b0a74e28dcbe9ae0ff821439a", "score": "0.6193029", "text": "public void onViewAllTasksClick(View view) {\r\n database.collection(\"projectTasks\")\r\n .get()\r\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\r\n @Override\r\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\r\n if (task.isSuccessful()) {\r\n QuerySnapshot snap = task.getResult();\r\n List<ProjectTask> projectTasks = new ArrayList<>();\r\n for (DocumentSnapshot document : snap.getDocuments()) {\r\n Log.d(\"Task\", document.getId() + \" \" + document.getData());\r\n ProjectTask pt = document.toObject(ProjectTask.class);\r\n\r\n pt.withProjectTaskId(document.getId());\r\n String projectTaskId = document.getId();\r\n projectTasks.add(pt);\r\n }\r\n adapter.setProjectTasks(projectTasks);\r\n }\r\n else{\r\n Log.w(\"Task\", \"Error Getting Tasks\", task.getException());\r\n }\r\n }\r\n });\r\n }", "title": "" }, { "docid": "837f4f413c60d922c8300625608646c1", "score": "0.61811656", "text": "@Override\n\tpublic List<CheckTask> findAllTaskIsValid(String username) {\n\t\tConnection conn = null;\n\t\tPreparedStatement pstm = null;\n\t\tResultSet rs = null;\n\t\tList<CheckTask> list = new ArrayList<CheckTask>();\n\t\t\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\tString nowDate = df.format(new Date());\n\t\t\n\t\tString sql = \"select * from `check_task` where `start_time` <= ? AND `end_time` >= ? AND `username`=?\";\n\t\t\n\t\ttry {\n\t\t\tconn = DBConn.getConnection();\n\t\t\t\n\t\t\tpstm = conn.prepareStatement(sql);\n\t\t\t\n\t\t\tpstm.setString(1, nowDate);\n\t\t\tpstm.setString(2, nowDate);\n\t\t\tpstm.setString(3, username);\n\t\t\t\n\t\t\trs = pstm.executeQuery();\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\t\n\t\t\t\tTimestamp start_time = rs.getTimestamp(\"start_time\");\n\t\t\t\tTimestamp end_time = rs.getTimestamp(\"end_time\");\n\t\t\t\t\n\t\t\t\tCheckTask task = CheckTask.builder()\n\t\t\t\t\t\t.id(rs.getString(\"id\"))\n\t\t\t\t\t\t.start_time(start_time)\n\t\t\t\t\t\t.end_time(end_time)\n\t\t\t\t\t\t.shelves(rs.getString(\"shelves\"))\n\t\t\t\t\t\t.username(rs.getString(\"username\"))\n\t\t\t\t\t\t.build();\n\t\t\t\t\n/*\t\t\t\ttask.setId(rs.getString(\"id\"));\n\t\t\t\ttask.setStart_time(start_time);\n\t\t\t\ttask.setEnd_time(end_time);\n\t\t\t\ttask.setShelves(rs.getString(\"shelves\"));\n\t\t\t\ttask.setUsername(rs.getString(\"username\"));*/\n\n\t\t\t\tlist.add(task);\n\t\t\t}\n\t\t\tif (pstm != null) {\n\t\t\t\tpstm.close();\n\t\t\t}\n\t\t\tif (rs != null) {\n\t\t\t\trs.close();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t\treturn list;\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "title": "" }, { "docid": "f867d27696565bbd2f985a39a4b0c5cf", "score": "0.61548203", "text": "@Override\r\n\tpublic List<TrainningTask> findAll() {\n\t\tList<TrainningTask> result = TrainningTaskDao.findAll();\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "773370d7612ec9fed3a69b1dc8113c38", "score": "0.61449736", "text": "public static List<Tasks> getTasks(int project_id, int parent_id){\n return new Select().from(Tasks.class).where(\"project_id = ? AND task_parent_id = ?\", project_id, parent_id).execute();\n }", "title": "" }, { "docid": "2d119c00eed55a1bcc0288331a59e34b", "score": "0.6142059", "text": "public String[] getTaskList() {\n\t\tString[] tasks = {IMPORT_ACCESSIONS, IMPORT_MARC, EXPORT_MARC, IMPORT_EAD, EXPORT_EAD, EXPORT_DC, EXPORT_MODS};\n\t\treturn tasks;\n\t}", "title": "" }, { "docid": "c041ff3576429430e433997c3a4e0642", "score": "0.6137485", "text": "public static Tasks getTaskById(int task_id){\n return new Select().from(Tasks.class).where(\"task_id = ?\", task_id).executeSingle();\n }", "title": "" }, { "docid": "508b6edb2cccd9bdd321fa090034acd9", "score": "0.6124436", "text": "public List<Task> getAll() {\n return this.connector.getAll();\n }", "title": "" }, { "docid": "54f87b8fd5d04bc9b84eafd25d7f2e40", "score": "0.6117692", "text": "public static void listTasks(LinkedList<Task> list) {\n\n\t\t// Task taskUno = new Task(\"Jay\", \"Get food\", 111999);\n\n\t\t// list.add(taskUno);\n\t\tSystem.out.println(\" Name Description Due Date Finished Status\");\n\t\tSystem.out.println(\"==================================================================\");\n\t\tint z = 1;\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tSystem.out.printf(z + \"| %4s %17s %17d %19s\", list.get(i).getName(), list.get(i).getDescription(),\n\t\t\t\t\tlist.get(i).getDueDate(), list.get(i).getComplete());\n\t\t\tSystem.out.println();\n\t\t\tz++;\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "71ba76d54ba9d9fc48c8d68c25ece109", "score": "0.6094364", "text": "public String[] existingTasks(){\n\t\treturn task.retrieveExistingTasks();\n\t}", "title": "" }, { "docid": "922519f7d79544b2cd41d591435d4ede", "score": "0.60830235", "text": "private void populateTaskList() {\r\n\r\n btnAvTask.setEnabled(false);\r\n NetworkClient localclient = new NetworkClient(this);\r\n localclient.setHostname(this.host);\r\n localclient.setTaskPort(this.taskServerPort);\r\n localclient.setFilePort(this.fileServerPort);\r\n\r\n if (localclient.init() == false) {\r\n btnAvTask.setEnabled(true);\r\n return;\r\n }\r\n\r\n addLog(\"Getting task list from master\");\r\n localclient.getTaskList();\r\n if (tl == null) {\r\n addLog(\"TaskList not avaialable\");\r\n localclient.close();\r\n return;\r\n }\r\n\r\n System.out.println(\"Available Tasks\");\r\n String[] tasks = tl.getTaskClassName();\r\n String[] descs = tl.getAvailableTasks();\r\n boolean isAllDownloaded = true;\r\n for (String s : tasks) {\r\n System.out.println(s);\r\n addLog(\"Downloading task class \" + s);\r\n if (localclient.getTask(s) == false) {\r\n isAllDownloaded = false;\r\n break;\r\n }\r\n }\r\n if (isAllDownloaded) {\r\n setTasks(new LinkedList<>(Arrays.asList(descs)));\r\n addLog(\"Downloaded all available task list\");\r\n }\r\n else{\r\n addLog(\"Failed to download class files\");\r\n }\r\n btnAvTask.setEnabled(true);\r\n localclient.close();\r\n step2();\r\n }", "title": "" }, { "docid": "e4c48154f257a8d028485a4422c6b73f", "score": "0.60629725", "text": "public Task getTask(int id ){\n\n Task task = new Task() ;\n SQLiteDatabase sqLiteDatabase = getReadableDatabase() ;\n\n\n Cursor cursor = sqLiteDatabase.query(TABLE_NAME ,new String[] {KEY_ID , TASK_TITLE , TASK_DETAILS ,\n TIME , DONE }, KEY_ID +\"= ?\", new String[] {String.valueOf(id)} , null , null , null);\n\n // setting values from data base to the Task object\n cursor.moveToFirst() ;\n task.setId(Integer.parseInt(cursor.getString(0)));\n task.setTitle(cursor.getString(1));\n task.setDetails(cursor.getString(2));\n task.setTaskTime(cursor.getString(3));\n task.setDone(cursor.getInt(4));\n return task ;\n }", "title": "" }, { "docid": "67d9229b6c1159b579191be864bdacae", "score": "0.60599154", "text": "public List<Task> getTasksDueSoon() {\n PreparedStatement stmt = null;\n try {\n stmt = conn.prepareStatement(\"SELECT * FROM task \" +\n \"WHERE due_date < DATE_ADD(NOW(), INTERVAL 3 DAY) AND status = 0;\");\n\n ResultSet rs = stmt.executeQuery();\n ArrayList<Task> tasks = new ArrayList();\n while(rs.next()) {\n Task task = new Task(rs.getString(\"label\"));\n task.setId(rs.getInt(\"id\"));\n task.setDueDate(rs.getDate(\"due_date\",Calendar.getInstance(TimeZone.getTimeZone(\"MST\"))));\n task.setCreateDate(rs.getDate(\"create_date\",Calendar.getInstance(TimeZone.getTimeZone(\"MST\"))));\n tasks.add(task);\n }\n return tasks;\n\n } catch(SQLException e) {\n return null;\n }\n }", "title": "" }, { "docid": "b7812bcd883cd61e61ab03fd0de6e310", "score": "0.60592365", "text": "List<TaskDto> getAllPendingTasks();", "title": "" }, { "docid": "b93f3b1006c4a877cbf6d3f919aae77d", "score": "0.60542566", "text": "public Task findTasksByLabel(String label) {\n String query = \"Select * FROM \" + DATABASE_NAME + \" WHERE \" + \"LABEL \" + \"LIKE \" + \"'\" + label +\"'\" + \";\";\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n Cursor cursor = db.rawQuery(query, null);\n\n Task task = new Task();\n\n if (cursor.moveToFirst()) {\n cursor.moveToFirst();\n task.setId(Integer.parseInt(cursor.getString(0)));\n task.setLabel(cursor.getString(1));\n task.setState(cursor.getString(2));\n task.setParentTask(Integer.parseInt(cursor.getString(3)));\n task.setDescription(cursor.getString(4));\n\n cursor.close();\n\n } else {\n task = null;\n }\n\n db.close();\n return task;\n\n }", "title": "" }, { "docid": "2a6c8e5752546f09814741daa7d33f77", "score": "0.60525775", "text": "private static void findAlltasks() throws HttpException, IOException {\n\t\tGson gson=new Gson();\n\t\tHttpClient client = new HttpClient(); \n\t\tString url = \"http://192.168.2.101:8080/Task_Manage/admin/do_findTasks.do?\";\n\t\tPostMethod method = new UTF8PostMethod(url);\n\t\tmethod.setParameter(\"fromWeek\", \"0\");\n\t\tmethod.setParameter(\"toWeek\", \"88\");\n\t\tmethod.setParameter(\"pageSize\", \"2\");\n\t\tmethod.setParameter(\"projectName\", \"\");\n\t\tmethod.setParameter(\"year\", \"2013-00-00 00:00:00\");\n\t\tmethod.setParameter(\"page\", \"1\");\n\t\n\t\t\n\t\tclient.executeMethod(method);\n\t\tSystem.out.println(method.getStatusLine()); \n //打印返回的信息 \n System.out.println(\"接收到服务器返回的对象字符串\"+method.getResponseBodyAsString()); \n method.releaseConnection(); \n\t}", "title": "" }, { "docid": "028313db77d768de89f5a55a86ca699a", "score": "0.60398006", "text": "@Transaction\n @Query(\"SELECT * FROM project\")\n LiveData<List<ProjectWithTasks>> getAllProjectsWithTasks();", "title": "" }, { "docid": "c268181e524c97a3da11527ca36ea7bd", "score": "0.60355043", "text": "public com.sforce.soap.enterprise.QueryResult getTasks() {\n return tasks;\n }", "title": "" }, { "docid": "ea3ac46fd23148d444f4148482a798f3", "score": "0.60320544", "text": "@Override\r\n public Task getTaskDetails(int task_id) {\r\n Session session = HibernateUtil.getSessionFactory().openSession();\r\n session.beginTransaction();\r\n Query query = session.getNamedQuery(\"Task.findByTaskId\");\r\n query.setParameter(\"taskId\", task_id);\r\n List<Task> tasklist = query.list();\r\n \r\n Iterator<Task> iterator = tasklist.iterator();\r\n Task task = new Task();\r\n \r\n if(iterator.hasNext()){\r\n task = iterator.next();\r\n }\r\n \r\n return task;\r\n }", "title": "" }, { "docid": "e5e2a79ff1903778ce10c78b13c42f3d", "score": "0.60274535", "text": "private void setTaskList(List<TaskDataEntry> listData){\n new DBLocalData(listData).execute();\n\n }", "title": "" }, { "docid": "f85b1bf449628b85e61870956e7aa7ac", "score": "0.6020824", "text": "List<Project> getEmpProjects(List<TimeSheet> tasks);", "title": "" }, { "docid": "9d6ee174712929d8de68430d5f59590a", "score": "0.60196817", "text": "public TaskList getTaskList() {\n return taskList;\n }", "title": "" }, { "docid": "756781a9e611d615214f537f5e04f5b4", "score": "0.6018039", "text": "@Override\r\n\tpublic List<DownloadTask> readTasks() {\n\t\treturn readTasks(null);\r\n\t}", "title": "" }, { "docid": "f0a9d18383275ae42b4a04a9029cbdab", "score": "0.6016865", "text": "@Override\n\t\tprotected String doInBackground(String... params) {\n\n\t\t\tCursor c = logDB.getTodoList();\n\t\t\t\n\t\t\t//Add first with UnChecked:\n\t\t\tif(c.moveToFirst())\n\t\t\t{\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\tTodo_model todo = new Todo_model();\n\n\t\t\t\t\t\n\t\t\t\t\t\ttodo.setId(c.getString(0));\n\t\t\t\t\t\ttodo.setName(c.getString(1));\n\t\t\t\t\t\ttodo.setPoints(c.getString(2));\n\t\t\t\t\t\ttodo.setAdded(c.getString(3));\n\t\t\t\t\t\ttodo.setDate(c.getString(4));\n\t\t\t\t\t\ttodo.setEnable(c.getString(5));\n\n\t\t\t\t\t\tmList.add(todo);\n\t\t\t\t\t\n\t\t\t\t}while(c.moveToNext());\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "0c95164abf64eb807c2347813cb7f161", "score": "0.60092765", "text": "Map<String, List<ScheduledTask<?>>> getAllTasks();", "title": "" }, { "docid": "066c467b093062acc76aba5fd0384964", "score": "0.60048264", "text": "public ArrayList<MyItem> getMyItemList (ArrayList<Task> tasks) {\n int taskSize = tasks.size();\n\n ArrayList<MyItem> myItems = new ArrayList<>();\n\n for(int i = 0; i < taskSize; i++)\n {\n Task task = tasks.get(i);\n\n MyItem myitem = new MyItem(\n db.getUserName((int)task.getUserId()), db.getAirportName((int)task.getDepatureAirportId()),\n db.getAirportName((int)task.getDestinationAirportId()), db.getTimeValue((int)task.getTimeId()),\n Integer.toString(task.getAdultNum()), Integer.toString(task.getChildNum()),\n db.getTripType(task.getTripId())\n );\n\n myItems.add(myitem);\n }\n\n return myItems;\n }", "title": "" }, { "docid": "4521d01c416eb11deb53f81fdbfd68ed", "score": "0.59983474", "text": "public TaskList() {\n this.list = new ArrayList<Task>();\n }", "title": "" }, { "docid": "4521d01c416eb11deb53f81fdbfd68ed", "score": "0.59983474", "text": "public TaskList() {\n this.list = new ArrayList<Task>();\n }", "title": "" }, { "docid": "97ca7e2ae423a4fa9415a22af7879dd3", "score": "0.5993299", "text": "@Override\r\n\tpublic List getCommandtaskRowsetList(int start, int limit, Commandtask commandtask, String[] sorts) {\n\t\tString hql = \"from Commandtask m where 1=1 \";\r\n\t\tif(sorts[2].length()!=3){\r\n\t\t\thql+=\" and m.sendorgcode='\"+sorts[2]+\"' \";\r\n\t\t}\r\n\t\tif(sorts != null){\r\n\t\t\thql += \" order by m.taskstatecode asc,m.tasklevelcode asc, m.\"+sorts[0]+\" \"+sorts[1];\r\n\t\t}\r\n\t\treturn getCommonsDAO().queryRowsetByHql(start, limit, hql);\r\n\t}", "title": "" }, { "docid": "b4246127bcc399bddc31d9963c597519", "score": "0.59874445", "text": "@Override\n\tpublic List<CheckTask> findAllByUsername(String username) {\n\t\tConnection conn = null;\n\t\tPreparedStatement pstm = null;\n\t\tResultSet rs = null;\n\t\tList<CheckTask> list = new ArrayList<CheckTask>();\n\t\tString sql = \"select * from `check_task` where `username`='\" + username +\"'\";\n\t\t\n\t\ttry {\n\t\t\tconn = DBConn.getConnection();\n\t\t\t\n\t\t\tpstm = conn.prepareStatement(sql);\n\t\t\t\n\t\t\t\n\t\t\trs = pstm.executeQuery();\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\tTimestamp start_time = rs.getTimestamp(\"start_time\");\n\t\t\t\tTimestamp end_time = rs.getTimestamp(\"end_time\");\n\n\t\t\t\tCheckTask task = CheckTask.builder()\n\t\t\t\t\t\t.id(rs.getString(\"id\"))\n\t\t\t\t\t\t.start_time(start_time)\n\t\t\t\t\t\t.end_time(end_time)\n\t\t\t\t\t\t.shelves(rs.getString(\"shelves\"))\n\t\t\t\t\t\t.username(rs.getString(\"username\"))\n\t\t\t\t\t\t.build();\n\t\t\t\t\n/*\t\t\t\ttask.setId(rs.getString(\"id\"));\n\t\t\t\ttask.setStart_time(start_time);\n\t\t\t\ttask.setEnd_time(end_time);\n\t\t\t\ttask.setShelves(rs.getString(\"shelves\"));\n\t\t\t\ttask.setUsername(rs.getString(\"username\"));*/\n\n\t\t\t\tlist.add(task);\n\t\t\t}\n\t\t\tif (pstm != null) {\n\t\t\t\tpstm.close();\n\t\t\t}\n\t\t\tif (rs != null) {\n\t\t\t\trs.close();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t\treturn list;\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "title": "" }, { "docid": "86365184e91c7c060c812cb3cb7f7459", "score": "0.5985371", "text": "private void getDataFromSQLite() {\n // AsyncTask is used that SQLite operation not blocks the UI Thread.\n new AsyncTask<Void, Void, Void>() {\n @Override\n protected Void doInBackground(Void... params) {\n listUsers.clear();\n listUsers.addAll(databaseHelper.getAllUser());\n\n return null;\n }\n\n @Override\n protected void onPostExecute(Void aVoid) {\n super.onPostExecute(aVoid);\n usersRecyclerAdapter.notifyDataSetChanged();\n }\n }.execute();\n }", "title": "" }, { "docid": "e281404bd5bab98cd095318a7a184514", "score": "0.5966141", "text": "@Override\n public String execute(TaskList tasks, UI ui, Storage storage) {\n return tasks.list();\n }", "title": "" }, { "docid": "8dd9d43053a2f073f15f65c040cef75c", "score": "0.5966046", "text": "public abstract Set<net.sf.pmr.agilePlanning.domain.story.task.Task> getTasks();", "title": "" }, { "docid": "de676845e2fc90f19f5413e03854a2b7", "score": "0.5964466", "text": "@Override\npublic List<AcceptTask> getNotificationAcceptTask(Integer sup, Connection con)throws SQLException {\n\tList<AcceptTask> at = new ArrayList<AcceptTask>();\n\tPreparedStatement ps =null;\n\ttry{\n\t\tps=con.prepareStatement(SQLQueryConstants.GET_NOTIFICATION_ACCEPT_TASK);\n\t\tps.setInt(1, IntegerConstants.ASSIGNED_STATUS);\n\t\tps.setInt(2, sup);\n\t\tResultSet rs= ps.executeQuery();\n\t\twhile(rs.next()){\n\t\tAcceptTask accepts = new AcceptTask();\n\t\t// set the value \n\t\taccepts.setFirstName(rs.getString(1));\n\t\tSystem.out.println(rs.getString(1));\n\t\t\n\t\taccepts.setEmail(rs.getString(2));\n\t\tSystem.out.println(rs.getString(2));\n\t\t\n\t\taccepts.setMobileNo(rs.getString(3));\n\t\tSystem.out.println(rs.getString(3));\n\t\t\n\t\ttry {\n\t\t\taccepts.setImage(ImageUtil.encodeImage(rs.getBlob(4).getBinaryStream()));\n\t\t} catch (ImageStreamToByteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\taccepts.setProjectId(rs.getInt(5));\n\t\tSystem.out.println(rs.getInt(5));\n\t\t\n\t\taccepts.setProjectTitle(rs.getString(6));\n\t\tSystem.out.println(rs.getString(6));\n\t\t\n\t\t\n\t\t\n\t\taccepts.setProjectDescription(rs.getString(7));\n\t\tSystem.out.println(rs.getString(7));\n\t\t\n\t\taccepts.setProjectModuleId(rs.getString(8));\n\t\tSystem.out.println(rs.getString(8));\n\t\t\n\t\taccepts.setModuleTitle(rs.getString(9));\n\t\tSystem.out.println(rs.getString(9));\n\t\t\n\t\taccepts.setModuleDescription(rs.getString(10));\n\t\tSystem.out.println(rs.getString(10));\n\t\t\n\t\taccepts.setTaskTitle(rs.getString(11));\n\t\tSystem.out.println(rs.getString(11));\n\t\t\n\t\taccepts.setTaskDescription(rs.getString(12));\n\t\tSystem.out.println(rs.getString(12));\n\t\t\n\t\taccepts.setStatusId(rs.getString(14));\n\t\tSystem.out.println(rs.getString(14));\n\t\t\n\t\taccepts.setStatus(rs.getString(15));\n\t\tSystem.out.println(rs.getString(15));\n\t\t\n\t\taccepts.setDeveloperTasKId(rs.getString(16));\n\t\tSystem.out.println(rs.getString(16));\n\t\t}\n\t}catch(SQLException e1)\n\t{\n\t\tlogger.error(e1.getMessage());\n\t\te1.printStackTrace();\n\t}\n\treturn at;\n}", "title": "" }, { "docid": "791a9b41c1e7254bcfac82f34285a559", "score": "0.5960839", "text": "public ArrayList<Integer> getStaffOfTask(long idTask) {\n String query;\n query = String.format(\"select %s from %s where %s = ? order by %s\",\n Constants.TASKS_STAFF_STAFF,\n Constants.TABLE_TASKS_STAFF,\n Constants.TASKS_STAFF_TASK,\n Constants.TASKS_STAFF_STAFF);\n\n Cursor c = getDb().rawQuery(query, new String[]{String.valueOf(idTask)});\n ArrayList<Integer> result = new ArrayList<Integer>();\n\n while (c.moveToNext()) {\n\n result.add(c.getInt(0));\n }\n\n return result;\n }", "title": "" }, { "docid": "91f3d2adfceddb53f45eecdd5e55a360", "score": "0.59603363", "text": "public ArrayList<Task> getList() {\n return tasks;\n }", "title": "" }, { "docid": "adc70a4b662f97a7a6ee61599e03ea53", "score": "0.59514874", "text": "java.util.List<com.funcy.g01.base.proto.bo.GlobalBoProtoBuffer.NpcTaskProto> \n getNewTasksList();", "title": "" }, { "docid": "7219fe43e39b9cdba124df18ec0e1f6a", "score": "0.59429526", "text": "public List<Query> getQueriesByTask(ObjectId taskId);", "title": "" }, { "docid": "8100bcef626c05430181561185e44332", "score": "0.59406567", "text": "public java.util.ArrayList getLoadByUser(int idMember,\n Timestamp start, Timestamp end, int idAccount) throws PersistenceBrokerException {\n // New criteria for search\n Criteria criteria = new Criteria();\n \n // Se agrega el criteria por proyecto.\n criteria.addEqualTo(\"member\", Integer.valueOf(\"\" + idMember));\n criteria.addEqualTo(\"id_account\", Integer.valueOf(\"\" + idAccount));\n // Restringido en el espacio de fechas dadas.\n criteria.addGreaterOrEqualThan(\"day\", start);\n criteria.addLessOrEqualThan(\"day\", end); \n criteria.addOrderByAscending(\"task\");\n \n \n // Query of all the task in the calendar.\n Query query = new QueryByCriteria(calendarData.class, criteria);\n \n // Ejecutamos la consulta para con este usuario.\n Collection allLines = broker.getCollectionByQuery(query);\t\n Iterator e = allLines.iterator(); \n \n int oldValue = 0;\n int tiempoAgendado = 0;\n calendarData data = null;\n tasksData dataTask;\n performanceDetail performanceData;\n tasksBroker taskBroker = new tasksBroker();\n Hashtable proyectosHash = new Hashtable();\n String projName= \"\";\n // Se procesa cada entrada del calendario ordenada por id de tarea\n while(e.hasNext()) {\n data = (calendarData) e.next();\n if ((data.gettask() != oldValue && oldValue != 0)){\n // Es una tarea con un id diferente, se debe guardar en la lista de \n // tareas procesadas.\n // Se toma la referencia de la tarea.\n dataTask =(tasksData) taskBroker.getData(oldValue,idAccount); \n dataTask.setCalendarTime(tiempoAgendado); \n \n if (dataTask.getid() > 0) {\n \n // Se ve si esta atrasada o no.\n if (dataTask.getdue_date() == null || dataTask.getdue_date().before(end) &&\n dataTask.getstatus() == 3) {\n dataTask.setLate(true);\n } else {\n dataTask.setLate(false); \n }\n // Verificamos si el proyecto al cual pertenece esta en el hashtable.\n if (proyectosHash.containsKey(\"\" + dataTask.getproject())) {\n // Se extra el valor del hash para hacer una actualizacion\n performanceData = (performanceDetail) proyectosHash.get(\"\" + dataTask.getproject());\n performanceData.addToTaskList(dataTask);\n proyectosHash.put(\"\" + dataTask.getproject(), performanceData);\n } else {\n // No esta en el hash, lo incorporamos.\n ArrayList lista = new ArrayList();\n lista.add(dataTask);\n if (dataTask.getparentProject() != null)\n projName =dataTask.getparentProject().getname();\n if (projName == null) projName = \"N/A\";\n performanceData = new performanceDetail(lista, dataTask.getestimated_time(), \n new BigDecimal(dataTask.getCalendarTime()), new BigDecimal(0), new BigDecimal(0), \n projName);\n proyectosHash.put(\"\" + dataTask.getproject(), performanceData);\n }\n // Se actualiza la referencia \n tiempoAgendado = 0;\n \n }\n } \n \n oldValue = data.gettask();\n \n // Se hace la suma del tiempo agendado TODO: consider minutos.\n tiempoAgendado += Integer.valueOf(data.getHourEnd()).intValue() - \n Integer.valueOf(data.getHourStart()).intValue(); \n\n }\n \n \n \n if (allLines.size() > 0 ) {\n // Se debe consider el ultimo registro que ha sido procesado.\n // ya que no fue incluido en el ciclo anterior\n if (data.gettask() == oldValue ) {\n // El ultimo registro pertenece a una misma tarea que estuvo procesandose\n// tiempoAgendado += Integer.valueOf(data.getHourEnd()).intValue() - \n// Integer.valueOf(data.getHourStart()).intValue(); \n // Es una tarea con un id diferente, se debe guardar en la lista de \n // tareas procesadas.\n // Se toma la referencia de la tarea.\n dataTask =(tasksData) taskBroker.getData(oldValue,idAccount); \n dataTask.setCalendarTime(tiempoAgendado); \n } else {\n dataTask =(tasksData) taskBroker.getData(data.gettask(),idAccount); \n dataTask.setCalendarTime(Integer.valueOf(data.getHourEnd()).intValue() - \n Integer.valueOf(data.getHourStart()).intValue()); \n } \n // Se ve si esta atrasada o no.\n if (dataTask.getdue_date().before(end) &&\n dataTask.getstatus() == 3) {\n dataTask.setLate(true);\n } else {\n dataTask.setLate(false); \n }\n \n // Verificamos si el proyecto al cual pertenece esta en el hashtable.\n if (proyectosHash.containsKey(\"\" + dataTask.getproject())) {\n // Se extra el valor del hash para hacer una actualizacion\n performanceData = (performanceDetail) proyectosHash.get(\"\" + dataTask.getproject());\n performanceData.addToTaskList(dataTask);\n proyectosHash.put(\"\" + dataTask.getproject(), performanceData);\n } else {\n // No esta en el hash, lo incorporamos.\n ArrayList lista = new ArrayList();\n lista.add(dataTask);\n if (dataTask.getparentProject() != null)\n projName =dataTask.getparentProject().getname();\n if (projName == null) projName = \"N/A\";\n performanceData = new performanceDetail(lista, dataTask.getestimated_time(), \n new BigDecimal(dataTask.getCalendarTime()), new BigDecimal(0), new BigDecimal(0), \n projName);\n proyectosHash.put(\"\" + dataTask.getproject(), performanceData);\n } \n }\n \n // Se cierran los brokers que se han usado.\n taskBroker.close();\n \n ArrayList salida = new ArrayList(); \n e = proyectosHash.values().iterator();\n \n while (e.hasNext()) { \n salida.add(e.next());\n }\n return salida;\n }", "title": "" }, { "docid": "c804d44e339740034725f725d2165a75", "score": "0.5936648", "text": "void getTaskAdminPageList(String taskUUIDStr, AsyncCallback<List<String>> aCallBackHandler);", "title": "" }, { "docid": "2567d1ca8f1c750ecb5edf6a9e04ad83", "score": "0.59338784", "text": "List<ReadOnlyTask> getFloatingTaskList();", "title": "" }, { "docid": "edfd20dc2800431afaf495ea2617b9ac", "score": "0.5928812", "text": "ObservableList<Task> getFilteredTaskList();", "title": "" }, { "docid": "3e16ec1eecfd95d22882f1cd86b22ba3", "score": "0.5927095", "text": "public ArrayList<Task> loadData() {\n try {\n ArrayList<Task> lst = new ArrayList<>();\n BufferedReader br = new BufferedReader(new FileReader(this.filePath.toFile()));\n\n for (String line = br.readLine(); line != null; line = br.readLine()) {\n String[] txt = line.split(\"/\");\n boolean isDone = txt[1].equals(\"1\");\n switch (txt[0]) {\n case \"T\":\n lst.add(new Todo(txt[2], isDone));\n break;\n case \"E\":\n lst.add(new Event(Arrays.copyOfRange(txt, 2, 4), isDone));\n break;\n case \"D\":\n lst.add(new Deadline(Arrays.copyOfRange(txt, 2, 4), isDone));\n break;\n default:\n assert false; //Stored data should be in the correct format\n }\n }\n\n return lst;\n } catch (IOException e) {\n System.out.println(\"Can't load data\");\n return new ArrayList<>();\n }\n }", "title": "" }, { "docid": "6f4ae8a159e43d29f5252bf0398b6f52", "score": "0.5924979", "text": "List<Task> findAllTasksByTeam(Team team);", "title": "" }, { "docid": "867e6af14b2e00d411030330d91b38ef", "score": "0.5924544", "text": "List<SubTaskSelSQL> getSubTaskByuser(String userId) throws ServiceAccessException;", "title": "" }, { "docid": "6724ce053444ac0a9732376500e87ad9", "score": "0.59152", "text": "public void updateUI() {\n ArrayList<String> taskList = new ArrayList<>();\n ArrayList<String> taskListAisle = new ArrayList<>();\n SQLiteDatabase db = todoDatabase.getReadableDatabase();\n Cursor cursor = db.query(TodoDatabase.TODO_TABLE, new String[]{TodoDatabase.UID, TodoDatabase.TASK, TodoDatabase.AISLE},\n null, null, null, null, null);\n\n while (cursor.moveToNext()) {\n int index = cursor.getColumnIndex(TodoDatabase.TASK);\n int locIndex = cursor.getColumnIndex((TodoDatabase.AISLE));\n taskList.add(cursor.getString(index));\n taskListAisle.add((cursor.getString(locIndex)));\n }\n\n adapter = new ToDoAdapter(getActivity(), taskList, taskListAisle);\n taskListView.setAdapter(adapter);\n\n\n cursor.close();\n db.close();\n\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "36e3a4e4356c68db118720d501a94bd7", "score": "0.0", "text": "@Override\n\t\t\t\tpublic boolean onMarkerClick(Marker marker) {\n\t\t\t\t\tfor(int i=0;i<markerNum;i++){\n\t\t\t\t\t\tif(marker == mMarker[i]){\n\t\t\t\t\t\t\tLog.d(\"jy\", \"点击了第\"+i+\"个marker\");\n\t\t\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\t\t\tintent.putExtra(\"path\", list.get(i).getmAddress());\n\t\t\t\t\t\t\tintent.setClass(MainActivity.this, VideoPlayerActivity.class);\n\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}", "title": "" } ]
[ { "docid": "9208773f8d675a45ef2786d0cb668514", "score": "0.654538", "text": "@Override\n\tpublic void addiion() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.6490277", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "49f82de84791f2d90dd9ea5cce118bf5", "score": "0.6314085", "text": "@Override\r\n\tpublic void ader() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a4dcc093d4ff3452de6ac444aececdf1", "score": "0.61316955", "text": "public void ausgabeZugFiguren() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "9144a32a2cd5a72f1d1380aa1f1d5f09", "score": "0.6092728", "text": "public void mo5774g() {\n }", "title": "" }, { "docid": "19def8ee9a9cacfd168fa29cb08dcee2", "score": "0.6080876", "text": "@Override\n\tpublic void vaccination()\n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6071615", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "99bd004e44dd7019c8ef01a44a9b3eab", "score": "0.6067535", "text": "@Override\r\n\tpublic void breah() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e90bb5928accbf89387d2613629ce52f", "score": "0.60653234", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "e90bb5928accbf89387d2613629ce52f", "score": "0.60653234", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "04771723ee2c07e5fa5fe8c322190beb", "score": "0.60607964", "text": "@Override\n\tpublic void affichage() {\n\t\t\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "db1df23a1dd6753a6267bb04b332bf85", "score": "0.6054585", "text": "public void mo12026a() {\n }", "title": "" }, { "docid": "e46610ee0bd6f029738af766fdc21054", "score": "0.59955573", "text": "@Override\r\n\tpublic void vender() {\n\r\n\t}", "title": "" }, { "docid": "d0738cb6f0934e8c2706f8cceaa57916", "score": "0.5969007", "text": "@Override\r\n\tpublic void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "15d6b98b279429b150a682bd6349a355", "score": "0.59551615", "text": "@Override\n\tpublic void fertilise() {\n\t\t\n\t}", "title": "" }, { "docid": "cce0c669162940d6a1e5e611c61410b3", "score": "0.59530795", "text": "@Override\r\n\tpublic void getDirect() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8c3354ae13a827b8d836df56c4c510d8", "score": "0.59508646", "text": "@Override\n protected void init() {\n\n\n }", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935938", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "b9e40f8e651069ba40a35ef1db458ce9", "score": "0.59202784", "text": "@Override\r\n\tpublic void tyres() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cad86041007c052466e6525bc7dcd8c8", "score": "0.5901697", "text": "@Override\r\n\tpublic void trasation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5d9f4634054e808deccea8846817de31", "score": "0.588331", "text": "@Override\r\n\tpublic void vola() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d0b7e3f5544447dc12bf9d1bad50a34b", "score": "0.5864994", "text": "public void mo40391a() {\n }", "title": "" }, { "docid": "ff6eb8b61c178f23b971412958c256c8", "score": "0.58641464", "text": "@Override\n\tpublic void ate() {\n\t\t\n\t}", "title": "" }, { "docid": "c64411f2d7b4359b656294e598122466", "score": "0.58560646", "text": "public void mo1294d() {\n }", "title": "" }, { "docid": "d29a027cc93fdf42445fadb149d49da1", "score": "0.5855024", "text": "public void mo1184a() {\n }", "title": "" }, { "docid": "a672d2d2a4b7bb037f7f20d62ff1f55e", "score": "0.5849603", "text": "@Override\n\tpublic void ss() {\n\t\t\n\t}", "title": "" }, { "docid": "e04f934fbe00df663fa9d5d545a1a729", "score": "0.5842969", "text": "@Override\n public void sporcuPuaniGoster() {\n\n }", "title": "" }, { "docid": "d48ac35465c27e31c1f21be54513f8f9", "score": "0.58330834", "text": "@Override\r\n\tpublic void pirntA() {\n\r\n\t}", "title": "" }, { "docid": "ad7fe50be28bd3c3d7952d71f935957c", "score": "0.5829554", "text": "@Override\n\t\t\tpublic void work() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "63519e7beede7b06dcebbca99514f5c5", "score": "0.57981986", "text": "@Override\n\tprotected void salirsePorXIzq() {\n\t\t\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "53519f34ca6dc9b2249e5bf2a0182992", "score": "0.5762815", "text": "@Override\n\tpublic void Avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d92a1f963aafb73b8192e677b33d128f", "score": "0.57472074", "text": "@Override\n\tpublic void postConstruct() {\n\n\t}", "title": "" }, { "docid": "e3fcb762f77cfc9168a1bc0d865ded42", "score": "0.574678", "text": "@Override\n\tprotected void crier() {\n\t\t\n\t}", "title": "" }, { "docid": "770cd968ebdff1a71e678a800372d8c6", "score": "0.57460904", "text": "@Override\r\n\tpublic void afisareDatepers() {\n\t\t\r\n\t}", "title": "" }, { "docid": "260bb3e9c481a3e03724071c87239711", "score": "0.574225", "text": "private void m11272q() {\n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.573645", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "28872bba7a5c17cad13c73f21624cabc", "score": "0.57069", "text": "@Override\n\tpublic void CreateRs() {\n\t\t\n\t}", "title": "" }, { "docid": "3c6f91c038ca7ffdab72b5c233b827c5", "score": "0.5705329", "text": "@Override\n\tprotected void initMethod() {\n\t}", "title": "" }, { "docid": "3d6cdc1afb7138b4083b3a4a65f01db1", "score": "0.5702478", "text": "public void mo10296b() {\n }", "title": "" }, { "docid": "45fd99bd8793c6d67c4f276a27b4fdca", "score": "0.5685153", "text": "@Override public int getDefensa(){\n\n return 0;\n\n }", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.5683637", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "cc07b6e925fefd34942bfb2fd21e818a", "score": "0.56719893", "text": "public void ausgabeFiguren() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "f5766311eecc43fe076ad8e87f995b64", "score": "0.56654924", "text": "@Override\r\n\tvoid erstelleGebäude() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9b8a44f27329437a5b3f89427b894c91", "score": "0.56609863", "text": "public void mo36058a() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "3a2534d5fb04e020e5849904bbe4720a", "score": "0.56515974", "text": "@Override\r\n\tprotected void geJiage() {\n\t\tsuper.geJiage();\r\n\t}", "title": "" }, { "docid": "02e1bc278c2b2caf23edb429d02b85c0", "score": "0.56482685", "text": "@Override\n\tprotected void initialise() {\n\t\n }", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.5642345", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "674d6b47736013d84190eed15130aad6", "score": "0.5641662", "text": "@Override\n\tpublic void obtenerPrecalculados() {\n\t\t\n\t}", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.56412077", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.56412077", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "0ba831513140db25039c80559d16603f", "score": "0.5636391", "text": "@Override\n \tpublic void process_6() {\n \n \t}", "title": "" }, { "docid": "af9170e83e6f26bfa1f5e7b9cdbc491a", "score": "0.5623968", "text": "@Override\r\n public void initData() {\n\r\n }", "title": "" }, { "docid": "af9170e83e6f26bfa1f5e7b9cdbc491a", "score": "0.5623968", "text": "@Override\r\n public void initData() {\n\r\n }", "title": "" }, { "docid": "eb2ec3c736f6af0e79bde71492b6d2dd", "score": "0.56177896", "text": "@Override\n public int arność() {\n return 2;\n }", "title": "" }, { "docid": "870d28e8c0326c2e585508a88499e108", "score": "0.5607548", "text": "private void init() {\n\t\t\t\t\n\t\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.56050456", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.56050456", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "d69d82cd185340d978c1a70fb66c01db", "score": "0.560443", "text": "public void mo5773f() {\n }", "title": "" }, { "docid": "ccba64a54b47095e22d528bff878aff1", "score": "0.5600534", "text": "@Override\r\n public String toString()\r\n {\n return null;\r\n }", "title": "" }, { "docid": "c1e6f049bd0a6f8cdd055f88f3b45eaa", "score": "0.5596128", "text": "public void mo80311c() {\n }", "title": "" }, { "docid": "bc4c805ce86377a96c35c50ef04ab983", "score": "0.55958176", "text": "@Override\n\tprotected void initAfterData() {\n\t}", "title": "" }, { "docid": "0d47d46f06beb83b10147b5efbda9e6b", "score": "0.55933857", "text": "@Override\r\n\tpublic void see() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1d69f38b94702675a7a6d7b4ca002e6d", "score": "0.5592467", "text": "@Override\n\tpublic void init()\n\t{\n\n\t}", "title": "" }, { "docid": "822226d86d7514db3081754cf8a8d3b3", "score": "0.55916166", "text": "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "fb9a873c01eb354c85aac7a220fbaac2", "score": "0.5588414", "text": "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.55856144", "text": "@Override\n protected void initialize() {\n\n }", "title": "" } ]
d81e130ebd2d97100fe5bc13c22b69c7
builder for setProductPriceCustomType subtype
[ { "docid": "cb6457def179bc264f0a3eae229c4f4f", "score": "0.77326506", "text": "public static com.commercetools.api.models.product.ProductSetProductPriceCustomTypeActionBuilder setProductPriceCustomTypeBuilder() {\n return com.commercetools.api.models.product.ProductSetProductPriceCustomTypeActionBuilder.of();\n }", "title": "" } ]
[ { "docid": "902fc47f6878010d2ba8ac781036e778", "score": "0.6407488", "text": "public static com.commercetools.api.models.product.ProductSetProductPriceCustomFieldActionBuilder setProductPriceCustomFieldBuilder() {\n return com.commercetools.api.models.product.ProductSetProductPriceCustomFieldActionBuilder.of();\n }", "title": "" }, { "docid": "062e7e981c8d541b2014a8f0003536c6", "score": "0.61982495", "text": "public void setPriceType(Integer priceType) {\n this.priceType = priceType;\n }", "title": "" }, { "docid": "062e7e981c8d541b2014a8f0003536c6", "score": "0.61982495", "text": "public void setPriceType(Integer priceType) {\n this.priceType = priceType;\n }", "title": "" }, { "docid": "ea4036e370534ad4fa44fbd921984f72", "score": "0.60073453", "text": "public void setProductType(java.lang.String productType);", "title": "" }, { "docid": "d854d3779c42f71877002b67484beb96", "score": "0.5906147", "text": "public void setProductId(String type);", "title": "" }, { "docid": "38618788bc81a923d28cd0b4b6dcf983", "score": "0.5835248", "text": "InvoicePriceComponentType createInvoicePriceComponentType();", "title": "" }, { "docid": "5001155a7d811ea04d34cd27d8348497", "score": "0.57958114", "text": "@Override\n public void setPrice()\n {\n }", "title": "" }, { "docid": "5e5a5cd09bc7c45fe2ec11c51697fc2f", "score": "0.5790342", "text": "public void setPrice(double price) {spec.setPrice(price);}", "title": "" }, { "docid": "b51cfa15b441837ae84bb4081eab043f", "score": "0.5768283", "text": "public Integer getPriceType() {\n return priceType;\n }", "title": "" }, { "docid": "b51cfa15b441837ae84bb4081eab043f", "score": "0.5768283", "text": "public Integer getPriceType() {\n return priceType;\n }", "title": "" }, { "docid": "2b5528ef325a89211a99ec962f089478", "score": "0.56668293", "text": "public Builder setPrice(int value) {\n bitField0_ |= 0x00000002;\n price_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "7eedfd3de5b88dba210ace31cd32d91f", "score": "0.5662299", "text": "@Override\n\tpublic void setValue(String product, int price) {\n\t\t\n\t}", "title": "" }, { "docid": "4459dde7767573f313c910667d5fec76", "score": "0.56520855", "text": "public static com.commercetools.api.models.product.ProductSetPriceModeActionBuilder setPriceModeBuilder() {\n return com.commercetools.api.models.product.ProductSetPriceModeActionBuilder.of();\n }", "title": "" }, { "docid": "5c77492ee49ad0e990252d8bb2349534", "score": "0.55961484", "text": "public void setPrice(String price);", "title": "" }, { "docid": "38ab9c32a02c6176a38d2f02a49df6e8", "score": "0.5580824", "text": "public PermittedProduct (String name, int id, double price, int productType)\n {\n super(name,id,price);\n this.productType = productType;\n }", "title": "" }, { "docid": "efb19f567927398d8722810d386a0cf0", "score": "0.5579146", "text": "public static com.commercetools.api.models.review.ReviewSetCustomTypeActionBuilder setCustomTypeBuilder() {\n return com.commercetools.api.models.review.ReviewSetCustomTypeActionBuilder.of();\n }", "title": "" }, { "docid": "2f652ce12bddc6966f5ca9c9460cb48d", "score": "0.55561477", "text": "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "title": "" }, { "docid": "057504ee1049ed6a6228d930ae6b37a8", "score": "0.55547744", "text": "public void setPrice(int value) { this.price = value; }", "title": "" }, { "docid": "7a4fb602590dd54a49ec99cddd21852c", "score": "0.55481", "text": "public Builder setPrice(int value) {\n bitField0_ |= 0x00000004;\n price_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "48f45e5df57b8eb301a0a55a9ce08878", "score": "0.55477047", "text": "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "title": "" }, { "docid": "48f45e5df57b8eb301a0a55a9ce08878", "score": "0.55477047", "text": "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "title": "" }, { "docid": "48f45e5df57b8eb301a0a55a9ce08878", "score": "0.55477047", "text": "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "title": "" }, { "docid": "48f45e5df57b8eb301a0a55a9ce08878", "score": "0.55477047", "text": "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "title": "" }, { "docid": "48f45e5df57b8eb301a0a55a9ce08878", "score": "0.55477047", "text": "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "title": "" }, { "docid": "48f45e5df57b8eb301a0a55a9ce08878", "score": "0.55477047", "text": "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "title": "" }, { "docid": "48f45e5df57b8eb301a0a55a9ce08878", "score": "0.55477047", "text": "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "title": "" }, { "docid": "680243a37b0ef72f41359e0916df62f9", "score": "0.5500756", "text": "public void setPrice(double price);", "title": "" }, { "docid": "586654fdb75896f9baae480b6d1b8c43", "score": "0.5496334", "text": "protected void setPrice(int price) {this.price = price;}", "title": "" }, { "docid": "2245ca57292713122a7d45aa95f3159f", "score": "0.54809564", "text": "public static com.commercetools.api.models.product.ProductSetAssetCustomTypeActionBuilder setAssetCustomTypeBuilder() {\n return com.commercetools.api.models.product.ProductSetAssetCustomTypeActionBuilder.of();\n }", "title": "" }, { "docid": "46294a94aa2958f0a5cd6654fcedc1ab", "score": "0.54801255", "text": "public void setPrice(double p) { price = p; }", "title": "" }, { "docid": "49b01e3fbde08fb7c7ada0d3bbe61b71", "score": "0.5471927", "text": "public Builder setPrice(long value) {\n\n price_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "49b01e3fbde08fb7c7ada0d3bbe61b71", "score": "0.5471927", "text": "public Builder setPrice(long value) {\n\n price_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "49b01e3fbde08fb7c7ada0d3bbe61b71", "score": "0.5471927", "text": "public Builder setPrice(long value) {\n\n price_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c6a694c1ccbc2391ba58e970712ea870", "score": "0.5467856", "text": "public Builder price(Double price) {\n obj.setPrice(price);\n return this;\n }", "title": "" }, { "docid": "77453e8727283ca9b626dfa29f1d5620", "score": "0.54341877", "text": "public BaseItem(String title, CategoryType categoryType, ModelType modelType, double price) {\n this.title = title;\n this.categoryType = categoryType;\n this.modelType = modelType;\n this.price = BigDecimal.valueOf(price);\n this.availableDate = new Date();\n }", "title": "" }, { "docid": "443eaa557a91c9da84a674474390287c", "score": "0.539479", "text": "public ProductType() {\r\n }", "title": "" }, { "docid": "0b4fbc694453694c825cbfeed2771865", "score": "0.5390371", "text": "public static com.commercetools.api.models.product.ProductSetPriceKeyActionBuilder setPriceKeyBuilder() {\n return com.commercetools.api.models.product.ProductSetPriceKeyActionBuilder.of();\n }", "title": "" }, { "docid": "9021ff4ef3b942ab32547846300a2675", "score": "0.5382824", "text": "public void setPrice(double price){\n this.price = price;\n }", "title": "" }, { "docid": "ca65f6249ce53a12a7fcac78845dedb2", "score": "0.5381891", "text": "public void setVendorType(typekey.VendorType value);", "title": "" }, { "docid": "2798170aa3b28155050e953a439ef758", "score": "0.536655", "text": "public void setPrice(int price){\r\n this.price = price;\r\n }", "title": "" }, { "docid": "fba9de68c11746abd3b352143493d213", "score": "0.5337602", "text": "public void setCostType(typekey.CostType value);", "title": "" }, { "docid": "055a64047d12951d3c6269915808672d", "score": "0.53368014", "text": "void setPrice(double price);", "title": "" }, { "docid": "055a64047d12951d3c6269915808672d", "score": "0.53368014", "text": "void setPrice(double price);", "title": "" }, { "docid": "01d70335fc95b2654ddddebfee41d017", "score": "0.5335641", "text": "public void setPrice(double x);", "title": "" }, { "docid": "8e92e16321efe4fec3b0a8db235e58d7", "score": "0.5310223", "text": "public static com.commercetools.api.models.product.ProductSetPricesActionBuilder setPricesBuilder() {\n return com.commercetools.api.models.product.ProductSetPricesActionBuilder.of();\n }", "title": "" }, { "docid": "696208a67ba80b392487bb3b5e40bc4b", "score": "0.5304023", "text": "public void setPrice(BigDecimal price) {\r\n\t\tthis.price = price;\r\n\t}", "title": "" }, { "docid": "34a00946379ab605a4adbbde7ad0e020", "score": "0.52649236", "text": "public void setPrice(double newPrice);", "title": "" }, { "docid": "43e0a4f3b37468399a4e379c62dbc485", "score": "0.5261964", "text": "public void setPropertyMarketType(Byte propertyMarketType) {\r\n this.propertyMarketType = propertyMarketType;\r\n }", "title": "" }, { "docid": "65181c15e6b6fa2379c7ac33ab1a22c7", "score": "0.5248513", "text": "void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "title": "" }, { "docid": "a6670d15232dbe503313f81af50d4c57", "score": "0.524564", "text": "public void setCost_price(int value) { this.cost_price = value; }", "title": "" }, { "docid": "65eea206a8bdd2aed8ce394a61146a06", "score": "0.5241865", "text": "public Product(final String decription,final String htPrice,final ProductTypeEnum productTypeEnum) {\n this(decription,new BigDecimal(htPrice),productTypeEnum,false);\n }", "title": "" }, { "docid": "2c17f3525046f828278f2e70a28dfb3b", "score": "0.5235924", "text": "public Builder setPrice(int value) {\n copyOnWrite();\n instance.setPrice(value);\n return this;\n }", "title": "" }, { "docid": "1094530f14a3fcdb5bd7bc577fb4a36d", "score": "0.52357614", "text": "public void setPrice(double price) {\n this.price = price;\n }", "title": "" }, { "docid": "794ae9ffbf3fe4de98917c0be67d0be8", "score": "0.5220375", "text": "@Override\n\tpublic void setPrice(int price) {\n\n\t}", "title": "" }, { "docid": "8928c0009a7c8e3392c917cca930617d", "score": "0.52160424", "text": "public void setPrice(java.math.BigDecimal price) {\n this.price = price;\n }", "title": "" }, { "docid": "8928c0009a7c8e3392c917cca930617d", "score": "0.52160424", "text": "public void setPrice(java.math.BigDecimal price) {\n this.price = price;\n }", "title": "" }, { "docid": "d89758a165985822c8446dcbac2b6c01", "score": "0.5215357", "text": "public void setPrice(double price) {\n this.price = price;\n }", "title": "" }, { "docid": "d89758a165985822c8446dcbac2b6c01", "score": "0.5215357", "text": "public void setPrice(double price) {\n this.price = price;\n }", "title": "" }, { "docid": "d89758a165985822c8446dcbac2b6c01", "score": "0.5215357", "text": "public void setPrice(double price) {\n this.price = price;\n }", "title": "" }, { "docid": "8dbeab4da38a43ef9dee3a55a1d45cfa", "score": "0.52071095", "text": "public void setPrice(String price) {\n this.price = price;\n }", "title": "" }, { "docid": "561ab5187e964c7ee57208472ada2677", "score": "0.52057374", "text": "public static com.commercetools.api.models.product.ProductChangePriceActionBuilder changePriceBuilder() {\n return com.commercetools.api.models.product.ProductChangePriceActionBuilder.of();\n }", "title": "" }, { "docid": "a04b8c34bdade5e2e2ddd3d1a9b5d5d3", "score": "0.5201554", "text": "public void setPrice(int value) {\n this.price = value;\n }", "title": "" }, { "docid": "86cb4ae45951a1b328470f4244f3340d", "score": "0.5189172", "text": "public static OrderCustomTypeSetMessagePayloadBuilder builder() {\n return OrderCustomTypeSetMessagePayloadBuilder.of();\n }", "title": "" }, { "docid": "24dfb3cb047497607161ec6d857b2f23", "score": "0.51764643", "text": "public void setPrice(double value) {\r\n this.price = value;\r\n }", "title": "" }, { "docid": "ba20dbc831b26e2d6dac4934cf086d55", "score": "0.5173638", "text": "public void setProductPrice(BigDecimal productPrice) {\n this.productPrice = productPrice;\n }", "title": "" }, { "docid": "ba20dbc831b26e2d6dac4934cf086d55", "score": "0.5173638", "text": "public void setProductPrice(BigDecimal productPrice) {\n this.productPrice = productPrice;\n }", "title": "" }, { "docid": "f2f6a5ccc073089777f0744d814becc8", "score": "0.51573825", "text": "public QuantityType() {\r\n super();\r\n }", "title": "" }, { "docid": "dc3b9e9357b320a5b22517c98b3dab7d", "score": "0.5155566", "text": "public void setPrice(double value) {\n this.price = value;\n }", "title": "" }, { "docid": "fbba69a19bcd929830e3f87c2acf784e", "score": "0.5140617", "text": "void set_price(){\r\n\t\tif(s.m==s.LS[3]){\r\n\t\t\ts.getOP().StorePrice();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8fa195e8af5679b78e9961f4fe668ed3", "score": "0.51401275", "text": "protected void setPrice(double price) {\r\n this.price = price;\r\n }", "title": "" }, { "docid": "f8da6c3e5dfeacf14957151c5409d74c", "score": "0.51311874", "text": "public void setReservingCurrency(typekey.Currency value);", "title": "" }, { "docid": "025d2417f6abd65f089fe5db7ad6766a", "score": "0.5129197", "text": "public void setProductType(java.lang.String newProductType) throws java.rmi.RemoteException;", "title": "" }, { "docid": "85006b01251504a2b21bc817eb4c9831", "score": "0.51254654", "text": "public void setPrice(double pr) {\n price = pr;\n }", "title": "" }, { "docid": "ad2ba8f6abf68ee22f0912a6a1c9267a", "score": "0.5125312", "text": "public void setPrice(Money price) {\n this.price = price;\n }", "title": "" }, { "docid": "4cb810cf85e9d253c80612a1f2e8c9cf", "score": "0.5118185", "text": "public void setPrice(double price)\r\n\t{\r\n\t\tthis.price = price;\r\n\t}", "title": "" }, { "docid": "6f36272f3c2f73aa6ee19bd81bbae4d8", "score": "0.5117813", "text": "public void setPrice(Double price) {\r\n this.price = price;\r\n }", "title": "" }, { "docid": "34578462c8c97f03fae26e0e3db6e07c", "score": "0.50989276", "text": "public void setCurrency(typekey.Currency value);", "title": "" }, { "docid": "a4e6933af00fcd47dad4447519bc1d5a", "score": "0.50953615", "text": "public void setPriceTag(int price){\n priceTag=price;\n }", "title": "" }, { "docid": "8491bc636aecb1a194ba0fdef0454fae", "score": "0.5089757", "text": "public void setCostCategory(typekey.CostCategory value);", "title": "" }, { "docid": "834319b9c26d36cd9c098cabd8b132a0", "score": "0.5088563", "text": "@Override\n\tpublic Product createProduct(EnumParam type) {\n\t\tswitch (type) {\n\t\tcase product1:\n\t\t\treturn new Product1();\n\n\t\tcase product2:\n\t\t\treturn new Product2();\n\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "1cec812d238e3529db887025d38a58fd", "score": "0.5086699", "text": "public void setItemPrice() {\n String price;\n String price2;\n String text;\n int end;\n double fPrice;\n ZpLogger.v(TAG, TAG + \".setItemPrice.price = \" + this.mCurPrice);\n if (!TextUtils.isEmpty(this.mCurPrice)) {\n if (this.unitBuy > 1) {\n price = String.valueOf(Double.valueOf(this.mCurPrice).doubleValue() * ((double) this.unitBuy));\n } else {\n price = this.mCurPrice;\n }\n boolean bAllSelected = false;\n Map<Long, SkuEngine.PropData> selectMap = this.mSkuEngine.getSelectedPropDataMap();\n if (this.mSku) {\n List<TBDetailResultV6.SkuBaseBean.PropsBeanX> props = this.tbDetailResultV6.getSkuBase().getProps();\n if (selectMap != null && selectMap.size() > 0 && selectMap.size() == props.size()) {\n bAllSelected = true;\n }\n } else {\n bAllSelected = true;\n }\n if (bAllSelected && this.mBuyCount > 1) {\n String point = null;\n try {\n int index = this.mCurPrice.indexOf(\".\");\n if (index >= 0) {\n point = \"0.\";\n for (int i = 0; i < (this.mCurPrice.length() - index) - 1; i++) {\n point = point + \"0\";\n }\n }\n double fPrice2 = Double.valueOf(this.mCurPrice).doubleValue();\n if (this.unitBuy > 1) {\n fPrice = fPrice2 * ((double) (this.mBuyCount * this.unitBuy));\n } else {\n fPrice = fPrice2 * ((double) this.mBuyCount);\n }\n if (!TextUtils.isEmpty(point)) {\n price2 = new DecimalFormat(point).format(fPrice);\n } else {\n price2 = String.valueOf(fPrice);\n }\n ZpLogger.v(TAG, TAG + \".setItemPrice.fPrice = \" + fPrice + \", price = \" + price2 + \".point = \" + point);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n }\n if (!TextUtils.isEmpty(this.uriPrice)) {\n price2 = this.uriPrice;\n }\n ZpLogger.e(TAG, \"isPreSale = \" + this.isPreSale);\n if (!this.isPreSale || TextUtils.isEmpty(this.mSubPrice)) {\n text = getString(R.string.ytm_sku_jiesuan_text);\n this.mViewHolder.mSkuPreSaleTextView.setVisibility(4);\n } else {\n text = getString(R.string.ytm_sku_presale);\n }\n String text2 = text + price2;\n SpannableString spannableString = new SpannableString(text2);\n int end2 = text2.indexOf(\"¥\") + 1;\n spannableString.setSpan(new AbsoluteSizeSpan((int) getResources().getDimension(R.dimen.sp_20)), 0, end2, 33);\n int start = end2;\n if (price2.contains(\".\")) {\n end = text2.indexOf(\".\");\n } else {\n end = text2.length();\n }\n if (price2.length() > 10) {\n spannableString.setSpan(new AbsoluteSizeSpan((int) getResources().getDimension(R.dimen.sp_34)), start, end, 33);\n } else if (price2.length() > 16) {\n spannableString.setSpan(new AbsoluteSizeSpan((int) getResources().getDimension(R.dimen.sp_28)), start, end, 33);\n } else {\n spannableString.setSpan(new AbsoluteSizeSpan((int) getResources().getDimension(R.dimen.sp_40)), start, end, 33);\n }\n if (price2.contains(\".\")) {\n spannableString.setSpan(new AbsoluteSizeSpan((int) getResources().getDimension(R.dimen.sp_20)), text2.indexOf(\".\"), text2.length(), 33);\n }\n this.mViewHolder.mSkuPriceTextView.setText(spannableString);\n if (this.isPreSale && !TextUtils.isEmpty(this.mSubPrice)) {\n this.mViewHolder.mSkuPreSaleTextView.setText(\"预售价 ¥\" + this.mSubPrice);\n this.mViewHolder.mSkuPreSaleTextView.setTextSize(0, getResources().getDimension(R.dimen.sp_20));\n this.mViewHolder.mSkuPreSaleTextView.setVisibility(0);\n if (this.buildOrderPreSale != null) {\n this.buildOrderPreSale.setPriceText(this.mCurPrice);\n }\n }\n }\n }", "title": "" }, { "docid": "74324331454555de51ece7ac654525d2", "score": "0.50864863", "text": "public void setPrice(Double price) {\n this.price = price;\n }", "title": "" }, { "docid": "74324331454555de51ece7ac654525d2", "score": "0.50864863", "text": "public void setPrice(Double price) {\n this.price = price;\n }", "title": "" }, { "docid": "74324331454555de51ece7ac654525d2", "score": "0.50864863", "text": "public void setPrice(Double price) {\n this.price = price;\n }", "title": "" }, { "docid": "74324331454555de51ece7ac654525d2", "score": "0.50864863", "text": "public void setPrice(Double price) {\n this.price = price;\n }", "title": "" }, { "docid": "2ea8fa4c4adf2f6362b30e0f53347670", "score": "0.50752133", "text": "public Customfieldoption(Long id, Long customfield, Long customfieldconfig, Long parentoptionid, Long sequence, String customvalue, String optiontype, String disabled) {\n this.id = id;\n this.customfield = customfield;\n this.customfieldconfig = customfieldconfig;\n this.parentoptionid = parentoptionid;\n this.sequence = sequence;\n this.customvalue = customvalue;\n this.optiontype = optiontype;\n this.disabled = disabled;\n }", "title": "" }, { "docid": "55a53be56711272b10d94b7fa68399ab", "score": "0.5065115", "text": "@Override\n\tpublic SetPrice getSetPrice() {\n\t\treturn new SetPrice2();\n\t}", "title": "" }, { "docid": "adc02edf3a82d0da1fcd2efafdf9e7a3", "score": "0.5055442", "text": "public void setprice(Integer p) {\n\t\tprice=p.intValue();\r\n\t}", "title": "" }, { "docid": "357e3db310ab5133aa92460de073297c", "score": "0.505009", "text": "public void setPrice(Integer price) {\r\n this.price = price;\r\n }", "title": "" }, { "docid": "594f0c36a2a5cccbb120f54265bc7264", "score": "0.5026192", "text": "public void setPrice(Integer price) {\n this.price = price;\n }", "title": "" }, { "docid": "594f0c36a2a5cccbb120f54265bc7264", "score": "0.5026192", "text": "public void setPrice(Integer price) {\n this.price = price;\n }", "title": "" }, { "docid": "d0ae7b23da269c39162f0947058c63c2", "score": "0.502331", "text": "@Override\n\t\t\tpublic void tickPrice(TickType tickType, double price, int canAutoExecute) {\n\t\t\t\t// System.out.println(\" \" + nc.getID() + \" : \" + tickType.toString() + \" price:\" + price);\n\n\t\t\t\tmarket_data.put(tickType.toString(), price);\n\n\t\t\t\tswitch (tickType) {\n\t\t\t\t\tcase BID:\n\t\t\t\t\t\tSystem.out.println(nc.getID() + \" got BID:\" + price);\n\t\t\t\t\t\tgot_bid=true;\n\t\t\t\t\t\tbid = price;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase ASK:\n\t\t\t\t\t\tSystem.out.println(nc.getID() + \" got ASK:\" + price);\n\t\t\t\t\t\tgot_ask=true;\n\t\t\t\t\t\task = price;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase LAST:\n\t\t\t\t\t\tSystem.out.println(nc.getID() + \" got LAST:\" + price);\n\t\t\t\t\t\tgot_last=true;\n\t\t\t\t\t\tlast = price;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase HIGH:\n\t\t\t\t\t\tSystem.out.println(nc.getID() + \" got HIGH:\" + price);\n\t\t\t\t\t\tgot_high=true;\n\t\t\t\t\t\thigh = price;\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase LOW:\n\t\t\t\t\t\tSystem.out.println(nc.getID() + \" got LOW:\" + price);\n\t\t\t\t\t\tgot_low=true;\n\t\t\t\t\t\tlow = price;\t\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\t// Both triggered by generic tick 459 ? \n\t\t\t\t\tcase CLOSE:\n\t\t\t\t\t\tSystem.out.println(nc.getID() + \" got CLOSE:\" + price);\n\t\t\t\t\t\tgot_close=true;\n\t\t\t\t\t\tclose = price;\t\t\t\t\t\t\n\t\t\t\t\tbreak;\t\n\t\t\t\t\tcase OPEN:\n\t\t\t\t\t\tSystem.out.println(nc.getID() + \" got OPEN:\" + price);\n\t\t\t\t\t\tgot_open=true;\n\t\t\t\t\t\topen = price;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tcase LOW_13_WEEK:\n\t\t\t\t\tcase HIGH_13_WEEK:\n\t\t\t\t\tcase LOW_26_WEEK:\n\t\t\t\t\tcase HIGH_26_WEEK:\n\t\t\t\t\tcase LOW_52_WEEK:\n\t\t\t\t\tcase HIGH_52_WEEK:\n\t\t\t\t\tcase OPTION_HISTORICAL_VOL:\n\t\t\t\t\tcase OPTION_IMPLIED_VOL:\n\t\t\t\t\tcase OPTION_BID_EXCH:\n\t\t\t\t\tcase OPTION_ASK_EXCH:\n\t\t\t\t\tcase INDEX_FUTURE_PREMIUM:\n\t\t\t\t\tcase BID_EXCH:\n\t\t\t\t\tcase ASK_EXCH:\n\t\t\t\t\tcase AUCTION_PRICE:\n\t\t\t\t\tcase MARK_PRICE:\n\t\t\t\t\tcase BID_EFP_COMPUTATION:\n\t\t\t\t\tcase ASK_EFP_COMPUTATION:\n\t\t\t\t\tcase LAST_EFP_COMPUTATION:\n\t\t\t\t\tcase OPEN_EFP_COMPUTATION:\n\t\t\t\t\tcase HIGH_EFP_COMPUTATION:\n\t\t\t\t\tcase LOW_EFP_COMPUTATION:\n\t\t\t\t\tcase CLOSE_EFP_COMPUTATION:\n\t\t\t\t\tcase RT_VOLUME:\n\t\t\t\t\tcase BID_YIELD:\n\t\t\t\t\tcase ASK_YIELD:\n\t\t\t\t\tcase LAST_YIELD:\n\t\t\t\t\tcase TRADE_COUNT:\n\t\t\t\t\tcase TRADE_RATE:\n\t\t\t\t\tcase VOLUME_RATE:\n\t\t\t\t\tcase LAST_RTH_TRADE:\n\t\t\t\t\tcase RT_HISTORICAL_VOL:\n\t\t\t\t\t\tSystem.err.println(\"WARNING: Unusual field update : \" + nc.getID() + tickType.toString() + \" Value:\" + price);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tcase HALTED:\n\t\t\t\t\t\tSystem.err.println(\"WARNING: Trading is halted in : \" + nc.getID() + \" Value:\" + price);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tSystem.err.println(\"WARNING: Unknown field update : \" + nc.getID() + tickType.toString());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tupdated();\n\t\t\t}", "title": "" }, { "docid": "b12252d35712e7a962f54081e4b65274", "score": "0.5018818", "text": "private void getBasePrice(){\n if(\"Deep Pan\".equals(crustType)){\n updateCost(area * 0.11);\n } \n else if(\"Thin Crust\".equals(crustType)){\n updateCost(area * 0.08); \n }\n else{\n updateCost(area * 0.14);\n }\n \n }", "title": "" }, { "docid": "986b2cbae435504eb8fa2128bf498bca", "score": "0.5012332", "text": "public void setPrice(double p) {\n\t\tprice = p;\n\t}", "title": "" }, { "docid": "3048d5e658c49a682d9bee6d2f92794b", "score": "0.5009602", "text": "Price(double regularPrice) {\n this.regularPrice = regularPrice;\n modifiedDate = LocalDate.now();\n }", "title": "" }, { "docid": "ae3dc4b2a8ae86d897bd21ca14dfb5c0", "score": "0.50031084", "text": "public ProductAlternativeTypeInfoBuilder() {\n productAlternativeTypeInfo = new ProductAlternativeTypeInfo();\n }", "title": "" }, { "docid": "51265781c019908758e843cc90dd1281", "score": "0.49986666", "text": "public Builder product(Product[] product);", "title": "" }, { "docid": "40e7b9f7798958a934fafd1e0332ccff", "score": "0.49775624", "text": "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "title": "" }, { "docid": "40e7b9f7798958a934fafd1e0332ccff", "score": "0.49775624", "text": "public void setPrice(double price) {\r\n\t\tthis.price = price;\r\n\t}", "title": "" }, { "docid": "4fbd7fd69b2ce355c9e174e5e73ce25f", "score": "0.4975797", "text": "public Television(String company, String type, String three_d_enabled, int price) {\r\n\t\tsuper();\r\n\t\tthis.company = company;\r\n\t\tthis.type = type;\r\n\t\tthis.three_d_enabled = three_d_enabled;\r\n\t\tthis.price = price;\r\n\t}", "title": "" } ]
8a74c101cbad3acac30b47ccdfacd031
Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.
[ { "docid": "9b082dcc102df5689bdcaf03a51adfe8", "score": "0.87942", "text": "MethodDefinition<S> annotateParameter(int index, AnnotationDescription... annotation);", "title": "" } ]
[ { "docid": "30148df5e651a813004858286058683b", "score": "0.8892288", "text": "MethodDefinition<S> annotateParameter(int index, List<? extends Annotation> annotations);", "title": "" }, { "docid": "41c813bb9bba78111d3e51f4f7c07696", "score": "0.88617045", "text": "MethodDefinition<S> annotateParameter(int index, Annotation... annotation);", "title": "" }, { "docid": "b99506ed2ea4c9b56dd3afb5cb2f04c9", "score": "0.8747985", "text": "MethodDefinition<S> annotateParameter(int index, Collection<? extends AnnotationDescription> annotations);", "title": "" }, { "docid": "8e68aa3eb19fc3eb91c6c2c428045516", "score": "0.69717765", "text": "Annotatable<V> annotateParameter(Annotation... annotation);", "title": "" }, { "docid": "8e68aa3eb19fc3eb91c6c2c428045516", "score": "0.69717765", "text": "Annotatable<V> annotateParameter(Annotation... annotation);", "title": "" }, { "docid": "758fe50a939b3817ff933464a0e8a2f7", "score": "0.6952299", "text": "Annotatable<V> annotateParameter(AnnotationDescription... annotation);", "title": "" }, { "docid": "758fe50a939b3817ff933464a0e8a2f7", "score": "0.6952299", "text": "Annotatable<V> annotateParameter(AnnotationDescription... annotation);", "title": "" }, { "docid": "e2b6b809159f898d92a0b27b91cf937d", "score": "0.69434637", "text": "Annotatable<V> annotateParameter(List<? extends Annotation> annotations);", "title": "" }, { "docid": "e2b6b809159f898d92a0b27b91cf937d", "score": "0.69434637", "text": "Annotatable<V> annotateParameter(List<? extends Annotation> annotations);", "title": "" }, { "docid": "7d70fb4088d19a46f8e73956876a6754", "score": "0.6799844", "text": "Annotatable<V> annotateParameter(Collection<? extends AnnotationDescription> annotations);", "title": "" }, { "docid": "7d70fb4088d19a46f8e73956876a6754", "score": "0.6799844", "text": "Annotatable<V> annotateParameter(Collection<? extends AnnotationDescription> annotations);", "title": "" }, { "docid": "160b61b000a52efeaab120ba6fca06a2", "score": "0.6547973", "text": "MethodDefinition<S> annotateMethod(List<? extends Annotation> annotations);", "title": "" }, { "docid": "8ddfe5aeca46c97071aaa29eca351e6a", "score": "0.6240809", "text": "MethodDefinition<S> annotateMethod(Annotation... annotation);", "title": "" }, { "docid": "6b46535e9c8c7bf9d37453abf4ebfd9a", "score": "0.62357986", "text": "MethodDefinition<S> annotateMethod(Collection<? extends AnnotationDescription> annotations);", "title": "" }, { "docid": "d1700289f477530bae8de2ec7c368bfc", "score": "0.6234708", "text": "interface Annotatable<V> extends ParameterDefinition<V> {\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotation The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(Annotation... annotation);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotations The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(List<? extends Annotation> annotations);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotation The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(AnnotationDescription... annotation);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotations The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(Collection<? extends AnnotationDescription> annotations);\n\n /**\n * An abstract base implementation for defining an annotation on a parameter.\n *\n * @param <W> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<W> extends ParameterDefinition.AbstractBase<W> implements Annotatable<W> {\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<W> annotateParameter(Annotation... annotation) {\n return annotateParameter(Arrays.asList(annotation));\n }\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<W> annotateParameter(List<? extends Annotation> annotations) {\n return annotateParameter(new AnnotationList.ForLoadedAnnotations(annotations));\n }\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<W> annotateParameter(AnnotationDescription... annotation) {\n return annotateParameter(Arrays.asList(annotation));\n }\n\n /**\n * An adapter implementation for defining an annotation on a parameter.\n *\n * @param <X> A loaded type that the built type is guaranteed to be a subclass of.\n */\n protected abstract static class Adapter<X> extends ParameterDefinition.Annotatable.AbstractBase<X> {\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<X> withParameter(TypeDefinition type, String name, int modifiers) {\n return materialize().withParameter(type, name, modifiers);\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<X> throwing(Collection<? extends TypeDefinition> types) {\n return materialize().throwing(types);\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeVariableDefinition.Annotatable<X> typeVariable(String symbol, Collection<? extends TypeDefinition> bounds) {\n return materialize().typeVariable(symbol, bounds);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> intercept(Implementation implementation) {\n return materialize().intercept(implementation);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> withoutCode() {\n return materialize().withoutCode();\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> defaultValue(AnnotationValue<?, ?> annotationValue) {\n return materialize().defaultValue(annotationValue);\n }\n\n /**\n * {@inheritDoc}\n */\n public <V> MethodDefinition.ReceiverTypeDefinition<X> defaultValue(V value, Class<? extends V> type) {\n return materialize().defaultValue(value, type);\n }\n\n /**\n * Materializes this instance as a parameter definition with the currently defined properties.\n *\n * @return A parameter definition with the currently defined properties.\n */\n protected abstract MethodDefinition.ParameterDefinition<X> materialize();\n }\n }\n }", "title": "" }, { "docid": "737fc6766a8674b26753f241dfb1ffd7", "score": "0.6172812", "text": "public <T extends Annotation> WithCustomMapping bind(Class<T> type, Method method, int index) {\n if (index < 0) {\n throw new IllegalArgumentException(\"A parameter cannot be negative: \" + index);\n } else if (method.getParameterTypes().length <= index) {\n throw new IllegalArgumentException(method + \" does not declare a parameter with index \" + index);\n }\n return bind(type, new MethodDescription.ForLoadedMethod(method).getParameters().get(index));\n }", "title": "" }, { "docid": "85b45ff96eee788047a9c314ca09117d", "score": "0.61272407", "text": "MethodDefinition<S> annotateMethod(AnnotationDescription... annotation);", "title": "" }, { "docid": "72c07344ffaa3c2ad71ed2ac0bd81680", "score": "0.5992653", "text": "interface Annotatable<V> extends Simple<V> {\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotation The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(Annotation... annotation);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotations The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(List<? extends Annotation> annotations);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotation The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(AnnotationDescription... annotation);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotations The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(Collection<? extends AnnotationDescription> annotations);\n\n /**\n * An abstract base implementation of a simple parameter definition.\n *\n * @param <W> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<W> extends Simple.AbstractBase<W> implements Annotatable<W> {\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> annotateParameter(Annotation... annotation) {\n return annotateParameter(Arrays.asList(annotation));\n }\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> annotateParameter(List<? extends Annotation> annotations) {\n return annotateParameter(new AnnotationList.ForLoadedAnnotations(annotations));\n }\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> annotateParameter(AnnotationDescription... annotation) {\n return annotateParameter(Arrays.asList(annotation));\n }\n\n /**\n * An adapter implementation of a simple parameter definition.\n *\n * @param <X> A loaded type that the built type is guaranteed to be a subclass of.\n */\n protected abstract static class Adapter<X> extends Simple.Annotatable.AbstractBase<X> {\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<X> withParameter(TypeDefinition type) {\n return materialize().withParameter(type);\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<X> throwing(Collection<? extends TypeDefinition> types) {\n return materialize().throwing(types);\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeVariableDefinition.Annotatable<X> typeVariable(String symbol, Collection<? extends TypeDefinition> bounds) {\n return materialize().typeVariable(symbol, bounds);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> intercept(Implementation implementation) {\n return materialize().intercept(implementation);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> withoutCode() {\n return materialize().withoutCode();\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> defaultValue(AnnotationValue<?, ?> annotationValue) {\n return materialize().defaultValue(annotationValue);\n }\n\n /**\n * {@inheritDoc}\n */\n public <V> MethodDefinition.ReceiverTypeDefinition<X> defaultValue(V value, Class<? extends V> type) {\n return materialize().defaultValue(value, type);\n }\n\n /**\n * Materializes this instance as a simple parameter definition with the currently defined properties.\n *\n * @return A simple parameter definition with the currently defined properties.\n */\n protected abstract MethodDefinition.ParameterDefinition.Simple<X> materialize();\n }\n }\n }", "title": "" }, { "docid": "8e2c8a529c2586018efa5a0129f035c4", "score": "0.57131904", "text": "public String getParameterJavaDoc(int index);", "title": "" }, { "docid": "6d42884d87216aceca179973a32d18db", "score": "0.56103796", "text": "interface MethodDefinition<S> extends Builder<S> {\n\n /**\n * Annotates the previously defined or matched method with the supplied annotations.\n *\n * @param annotation The annotations to declare on the previously defined or matched method.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined or matched method.\n */\n MethodDefinition<S> annotateMethod(Annotation... annotation);\n\n /**\n * Annotates the previously defined or matched method with the supplied annotations.\n *\n * @param annotations The annotations to declare on the previously defined or matched method.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined or matched method.\n */\n MethodDefinition<S> annotateMethod(List<? extends Annotation> annotations);\n\n /**\n * Annotates the previously defined or matched method with the supplied annotations.\n *\n * @param annotation The annotations to declare on the previously defined or matched method.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined or matched method.\n */\n MethodDefinition<S> annotateMethod(AnnotationDescription... annotation);\n\n /**\n * Annotates the previously defined or matched method with the supplied annotations.\n *\n * @param annotations The annotations to declare on the previously defined or matched method.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined or matched method.\n */\n MethodDefinition<S> annotateMethod(Collection<? extends AnnotationDescription> annotations);\n\n /**\n * Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.\n *\n * @param index The parameter's index.\n * @param annotation The annotations to declare on the previously defined or matched method.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined or matched method's parameter of the given index.\n */\n MethodDefinition<S> annotateParameter(int index, Annotation... annotation);\n\n /**\n * Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.\n *\n * @param index The parameter's index.\n * @param annotations The annotations to declare on the previously defined or matched method.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined or matched method's parameter of the given index.\n */\n MethodDefinition<S> annotateParameter(int index, List<? extends Annotation> annotations);\n\n /**\n * Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.\n *\n * @param index The parameter's index.\n * @param annotation The annotations to declare on the previously defined or matched method.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined or matched method's parameter of the given index.\n */\n MethodDefinition<S> annotateParameter(int index, AnnotationDescription... annotation);\n\n /**\n * Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.\n *\n * @param index The parameter's index.\n * @param annotations The annotations to declare on the previously defined or matched method.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined or matched method's parameter of the given index.\n */\n MethodDefinition<S> annotateParameter(int index, Collection<? extends AnnotationDescription> annotations);\n\n /**\n * Applies the supplied method attribute appender factory onto the previously defined or matched method.\n *\n * @param methodAttributeAppenderFactory The method attribute appender factory that should be applied on the\n * previously defined or matched method.\n * @return A new builder that is equal to this builder but with the supplied method attribute appender factory\n * applied to the previously defined or matched method.\n */\n MethodDefinition<S> attribute(MethodAttributeAppender.Factory methodAttributeAppenderFactory);\n\n /**\n * Applies the supplied transformer onto the previously defined or matched method. The transformed\n * method is written <i>as it is</i> and it not subject to any validations.\n *\n * @param transformer The transformer to apply to the previously defined or matched method.\n * @return A new builder that is equal to this builder but with the supplied transformer\n * applied to the previously defined or matched method.\n */\n MethodDefinition<S> transform(Transformer<MethodDescription> transformer);\n\n /**\n * A builder for a method definition with a receiver type.\n *\n * @param <U> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface ReceiverTypeDefinition<U> extends MethodDefinition<U> {\n\n /**\n * Defines the supplied (annotated) receiver type for the previously defined or matched method.\n *\n * @param receiverType The receiver type to define on the previously defined or matched method.\n * @return A new builder that is equal to this builder but with the given type defined as the\n * receiver on the previously defined or matched method.\n */\n MethodDefinition<U> receiverType(AnnotatedElement receiverType);\n\n /**\n * Defines the supplied (annotated) receiver type for the previously defined or matched method.\n *\n * @param receiverType The receiver type to define on the previously defined or matched method.\n * @return A new builder that is equal to this builder but with the given type defined as the\n * receiver on the previously defined or matched method.\n */\n MethodDefinition<U> receiverType(TypeDescription.Generic receiverType);\n\n /**\n * An abstract base implementation of a method definition that can accept a receiver type.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<V> extends MethodDefinition.AbstractBase<V> implements ReceiverTypeDefinition<V> {\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition<V> receiverType(AnnotatedElement receiverType) {\n return receiverType(TypeDefinition.Sort.describeAnnotated(receiverType));\n }\n }\n }\n\n /**\n * A builder for defining an implementation of a method.\n *\n * @param <U> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface ImplementationDefinition<U> {\n\n /**\n * Implements the previously defined or matched method by the supplied implementation. A method interception\n * is typically implemented in one of the following ways:\n * <ol>\n * <li>If a method is declared by the instrumented type and the type builder creates a subclass or redefinition,\n * any preexisting method is replaced by the given implementation. Any previously defined implementation is lost.</li>\n * <li>If a method is declared by the instrumented type and the type builder creates a rebased version of the\n * instrumented type, the original method is preserved within a private, synthetic method within the instrumented\n * type. The original method therefore remains invokeable and is treated as the direct super method of the new\n * method. When rebasing a type, it therefore becomes possible to invoke a non-virtual method's super method\n * when a preexisting method body is replaced.</li>\n * <li>If a virtual method is inherited from a super type, it is overridden. The overridden method is available\n * for super method invocation.</li>\n * </ol>\n *\n * @param implementation The implementation for implementing the previously defined or matched method.\n * @return A new builder where the previously defined or matched method is implemented by the\n * supplied implementation.\n */\n MethodDefinition.ReceiverTypeDefinition<U> intercept(Implementation implementation);\n\n /**\n * Defines the previously defined or matched method not to declare a method body. This implies the\n * method to be {@code abstract} unless it was already declared to be {@code native}.\n *\n * @return A new builder where the previously defined or matched method is implemented to be abstract.\n */\n MethodDefinition.ReceiverTypeDefinition<U> withoutCode();\n\n /**\n * Defines the previously defined or matched method to return the supplied value as an annotation default value. The\n * value must be supplied in its unloaded state, i.e. enumerations as {@link net.bytebuddy.description.enumeration.EnumerationDescription},\n * types as {@link TypeDescription} and annotations as {@link AnnotationDescription}. For supplying loaded types, use\n * {@link ImplementationDefinition#defaultValue(Object, Class)} must be used.\n *\n * @param annotationValue The value to be defined as a default value.\n * @return A builder where the previously defined or matched method is implemented to return an annotation default value.\n */\n MethodDefinition.ReceiverTypeDefinition<U> defaultValue(AnnotationValue<?, ?> annotationValue);\n\n /**\n * Defines the previously defined or matched method to return the supplied value as an annotation default value. The\n * value must be supplied in its loaded state paired with the property type of the value.\n *\n * @param value The value to be defined as a default value.\n * @param type The type of the annotation property.\n * @param <W> The type of the annotation property.\n * @return A builder where the previously defined or matched method is implemented to return an annotation default value.\n */\n <W> MethodDefinition.ReceiverTypeDefinition<U> defaultValue(W value, Class<? extends W> type);\n\n /**\n * A builder for optionally defining an implementation of a method.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface Optional<V> extends ImplementationDefinition<V>, Builder<V> {\n /* union type */\n }\n\n /**\n * An abstract base implementation for a builder optionally defining an implementation of a method.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<V> implements ImplementationDefinition<V> {\n\n /**\n * {@inheritDoc}\n */\n public <W> MethodDefinition.ReceiverTypeDefinition<V> defaultValue(W value, Class<? extends W> type) {\n return defaultValue(AnnotationDescription.ForLoadedAnnotation.asValue(value, type));\n }\n }\n }\n\n /**\n * A builder for defining an implementation of a method and optionally defining a type variable.\n *\n * @param <U> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface TypeVariableDefinition<U> extends ImplementationDefinition<U> {\n\n /**\n * Defines a method variable to be declared by the currently defined method. The defined method variable does not define any bounds.\n *\n * @param symbol The symbol of the type variable.\n * @return A new builder that is equal to the current builder but where the currently defined method declares the specified type variable.\n */\n Annotatable<U> typeVariable(String symbol);\n\n /**\n * Defines a method variable to be declared by the currently defined method.\n *\n * @param symbol The symbol of the type variable.\n * @param bound The bounds of the type variables. Can also be {@link net.bytebuddy.dynamic.TargetType} for any type\n * if a bound type should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method declares the specified type variable.\n */\n Annotatable<U> typeVariable(String symbol, Type... bound);\n\n /**\n * Defines a method variable to be declared by the currently defined method.\n *\n * @param symbol The symbol of the type variable.\n * @param bounds The bounds of the type variables. Can also be {@link net.bytebuddy.dynamic.TargetType} for any type\n * if a bound type should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method declares the specified type variable.\n */\n Annotatable<U> typeVariable(String symbol, List<? extends Type> bounds);\n\n /**\n * Defines a method variable to be declared by the currently defined method.\n *\n * @param symbol The symbol of the type variable.\n * @param bound The bounds of the type variables. Can also be {@link net.bytebuddy.dynamic.TargetType} for any type\n * if a bound type should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method declares the specified type variable.\n */\n Annotatable<U> typeVariable(String symbol, TypeDefinition... bound);\n\n /**\n * Defines a method variable to be declared by the currently defined method.\n *\n * @param symbol The symbol of the type variable.\n * @param bounds The bounds of the type variables. Can also be {@link net.bytebuddy.dynamic.TargetType} for any type\n * if a bound type should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method declares the specified type variable.\n */\n Annotatable<U> typeVariable(String symbol, Collection<? extends TypeDefinition> bounds);\n\n /**\n * A builder for optionally defining an annotation for a type variable.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface Annotatable<V> extends TypeVariableDefinition<V> {\n\n /**\n * Annotates the previously defined type variable with the supplied annotations.\n *\n * @param annotation The annotations to declare on the previously defined type variable.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined type variable.\n */\n Annotatable<V> annotateTypeVariable(Annotation... annotation);\n\n /**\n * Annotates the previously defined type variable with the supplied annotations.\n *\n * @param annotations The annotations to declare on the previously defined type variable.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined type variable.\n */\n Annotatable<V> annotateTypeVariable(List<? extends Annotation> annotations);\n\n /**\n * Annotates the previously defined type variable with the supplied annotations.\n *\n * @param annotation The annotations to declare on the previously defined type variable.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined type variable.\n */\n Annotatable<V> annotateTypeVariable(AnnotationDescription... annotation);\n\n /**\n * Annotates the previously defined type variable with the supplied annotations.\n *\n * @param annotations The annotations to declare on the previously defined type variable.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined type variable.\n */\n Annotatable<V> annotateTypeVariable(Collection<? extends AnnotationDescription> annotations);\n\n /**\n * An abstract base implementation for defining an annotation on a parameter.\n *\n * @param <W> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<W> extends TypeVariableDefinition.AbstractBase<W> implements Annotatable<W> {\n\n /**\n * {@inheritDoc}\n */\n public TypeVariableDefinition.Annotatable<W> annotateTypeVariable(Annotation... annotation) {\n return annotateTypeVariable(Arrays.asList(annotation));\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeVariableDefinition.Annotatable<W> annotateTypeVariable(List<? extends Annotation> annotations) {\n return annotateTypeVariable(new AnnotationList.ForLoadedAnnotations(annotations));\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeVariableDefinition.Annotatable<W> annotateTypeVariable(AnnotationDescription... annotation) {\n return annotateTypeVariable(Arrays.asList(annotation));\n }\n\n /**\n * An adapter implementation for an annotatable type variable definition.\n *\n * @param <X> A loaded type that the built type is guaranteed to be a subclass of.\n */\n protected abstract static class Adapter<X> extends TypeVariableDefinition.Annotatable.AbstractBase<X> {\n\n /**\n * {@inheritDoc}\n */\n public TypeVariableDefinition.Annotatable<X> typeVariable(String symbol, Collection<? extends TypeDefinition> bounds) {\n return materialize().typeVariable(symbol, bounds);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> intercept(Implementation implementation) {\n return materialize().intercept(implementation);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> withoutCode() {\n return materialize().withoutCode();\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> defaultValue(AnnotationValue<?, ?> annotationValue) {\n return materialize().defaultValue(annotationValue);\n }\n\n /**\n * {@inheritDoc}\n */\n public <V> MethodDefinition.ReceiverTypeDefinition<X> defaultValue(V value, Class<? extends V> type) {\n return materialize().defaultValue(value, type);\n }\n\n /**\n * Materializes this instance as a parameter definition with the currently defined properties.\n *\n * @return A parameter definition with the currently defined properties.\n */\n protected abstract MethodDefinition.ParameterDefinition<X> materialize();\n }\n }\n }\n\n /**\n * An abstract base implementation for defining an implementation of a method and optionally defining a type variable.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<V> extends ImplementationDefinition.AbstractBase<V> implements TypeVariableDefinition<V> {\n\n /**\n * {@inheritDoc}\n */\n public Annotatable<V> typeVariable(String symbol) {\n return typeVariable(symbol, Collections.singletonList(Object.class));\n }\n\n /**\n * {@inheritDoc}\n */\n public Annotatable<V> typeVariable(String symbol, Type... bound) {\n return typeVariable(symbol, Arrays.asList(bound));\n }\n\n /**\n * {@inheritDoc}\n */\n public Annotatable<V> typeVariable(String symbol, List<? extends Type> bounds) {\n return typeVariable(symbol, new TypeList.Generic.ForLoadedTypes(bounds));\n }\n\n /**\n * {@inheritDoc}\n */\n public Annotatable<V> typeVariable(String symbol, TypeDefinition... bound) {\n return typeVariable(symbol, Arrays.asList(bound));\n }\n }\n }\n\n /**\n * A builder for defining an implementation of a method and optionally defining a type variable or thrown exception.\n *\n * @param <U> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface ExceptionDefinition<U> extends TypeVariableDefinition<U> {\n\n /**\n * Defines a method variable to be declared by the currently defined method.\n *\n * @param type The type of the exception being declared by the currently defined method.\n * @return A new builder that is equal to the current builder but where the currently defined method declares the specified exception type.\n */\n ExceptionDefinition<U> throwing(Type... type);\n\n /**\n * Defines a method variable to be declared by the currently defined method.\n *\n * @param types The type of the exception being declared by the currently defined method.\n * @return A new builder that is equal to the current builder but where the currently defined method declares the specified exception type.\n */\n ExceptionDefinition<U> throwing(List<? extends Type> types);\n\n /**\n * Defines a method variable to be declared by the currently defined method.\n *\n * @param type The type of the exception being declared by the currently defined method.\n * @return A new builder that is equal to the current builder but where the currently defined method declares the specified exception type.\n */\n ExceptionDefinition<U> throwing(TypeDefinition... type);\n\n /**\n * Defines a method variable to be declared by the currently defined method.\n *\n * @param types The type of the exception being declared by the currently defined method.\n * @return A new builder that is equal to the current builder but where the currently defined method declares the specified exception type.\n */\n ExceptionDefinition<U> throwing(Collection<? extends TypeDefinition> types);\n\n /**\n * An abstract base implementation for defining an implementation of a method and optionally defining a type variable or thrown exception.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<V> extends TypeVariableDefinition.AbstractBase<V> implements ExceptionDefinition<V> {\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<V> throwing(Type... type) {\n return throwing(Arrays.asList(type));\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<V> throwing(List<? extends Type> types) {\n return throwing(new TypeList.Generic.ForLoadedTypes(types));\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<V> throwing(TypeDefinition... type) {\n return throwing(Arrays.asList(type));\n }\n }\n }\n\n /**\n * A builder for defining an implementation of a method and optionally defining a type variable, thrown exception or method parameter.\n *\n * @param <U> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface ParameterDefinition<U> extends ExceptionDefinition<U> {\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @param name The parameter's name.\n * @param modifierContributor The parameter's modifiers.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<U> withParameter(Type type, String name, ModifierContributor.ForParameter... modifierContributor);\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @param name The parameter's name.\n * @param modifierContributors The parameter's modifiers.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<U> withParameter(Type type, String name, Collection<? extends ModifierContributor.ForParameter> modifierContributors);\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @param name The parameter's name.\n * @param modifiers The parameter's modifiers.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<U> withParameter(Type type, String name, int modifiers);\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @param name The parameter's name.\n * @param modifierContributor The parameter's modifiers.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<U> withParameter(TypeDefinition type, String name, ModifierContributor.ForParameter... modifierContributor);\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @param name The parameter's name.\n * @param modifierContributors The parameter's modifiers.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<U> withParameter(TypeDefinition type, String name, Collection<? extends ModifierContributor.ForParameter> modifierContributors);\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @param name The parameter's name.\n * @param modifiers The parameter's modifiers.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<U> withParameter(TypeDefinition type, String name, int modifiers);\n\n /**\n * A builder for optionally defining an annotation on a parameter.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface Annotatable<V> extends ParameterDefinition<V> {\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotation The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(Annotation... annotation);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotations The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(List<? extends Annotation> annotations);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotation The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(AnnotationDescription... annotation);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotations The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(Collection<? extends AnnotationDescription> annotations);\n\n /**\n * An abstract base implementation for defining an annotation on a parameter.\n *\n * @param <W> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<W> extends ParameterDefinition.AbstractBase<W> implements Annotatable<W> {\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<W> annotateParameter(Annotation... annotation) {\n return annotateParameter(Arrays.asList(annotation));\n }\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<W> annotateParameter(List<? extends Annotation> annotations) {\n return annotateParameter(new AnnotationList.ForLoadedAnnotations(annotations));\n }\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<W> annotateParameter(AnnotationDescription... annotation) {\n return annotateParameter(Arrays.asList(annotation));\n }\n\n /**\n * An adapter implementation for defining an annotation on a parameter.\n *\n * @param <X> A loaded type that the built type is guaranteed to be a subclass of.\n */\n protected abstract static class Adapter<X> extends ParameterDefinition.Annotatable.AbstractBase<X> {\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<X> withParameter(TypeDefinition type, String name, int modifiers) {\n return materialize().withParameter(type, name, modifiers);\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<X> throwing(Collection<? extends TypeDefinition> types) {\n return materialize().throwing(types);\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeVariableDefinition.Annotatable<X> typeVariable(String symbol, Collection<? extends TypeDefinition> bounds) {\n return materialize().typeVariable(symbol, bounds);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> intercept(Implementation implementation) {\n return materialize().intercept(implementation);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> withoutCode() {\n return materialize().withoutCode();\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> defaultValue(AnnotationValue<?, ?> annotationValue) {\n return materialize().defaultValue(annotationValue);\n }\n\n /**\n * {@inheritDoc}\n */\n public <V> MethodDefinition.ReceiverTypeDefinition<X> defaultValue(V value, Class<? extends V> type) {\n return materialize().defaultValue(value, type);\n }\n\n /**\n * Materializes this instance as a parameter definition with the currently defined properties.\n *\n * @return A parameter definition with the currently defined properties.\n */\n protected abstract MethodDefinition.ParameterDefinition<X> materialize();\n }\n }\n }\n\n /**\n * A builder for defining an implementation of a method and optionally defining a type variable, thrown exception or a parameter type.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface Simple<V> extends ExceptionDefinition<V> {\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<V> withParameter(Type type);\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<V> withParameter(TypeDefinition type);\n\n /**\n * A builder for optionally defining an annotation on a parameter.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface Annotatable<V> extends Simple<V> {\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotation The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(Annotation... annotation);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotations The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(List<? extends Annotation> annotations);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotation The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(AnnotationDescription... annotation);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotations The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(Collection<? extends AnnotationDescription> annotations);\n\n /**\n * An abstract base implementation of a simple parameter definition.\n *\n * @param <W> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<W> extends Simple.AbstractBase<W> implements Annotatable<W> {\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> annotateParameter(Annotation... annotation) {\n return annotateParameter(Arrays.asList(annotation));\n }\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> annotateParameter(List<? extends Annotation> annotations) {\n return annotateParameter(new AnnotationList.ForLoadedAnnotations(annotations));\n }\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> annotateParameter(AnnotationDescription... annotation) {\n return annotateParameter(Arrays.asList(annotation));\n }\n\n /**\n * An adapter implementation of a simple parameter definition.\n *\n * @param <X> A loaded type that the built type is guaranteed to be a subclass of.\n */\n protected abstract static class Adapter<X> extends Simple.Annotatable.AbstractBase<X> {\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<X> withParameter(TypeDefinition type) {\n return materialize().withParameter(type);\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<X> throwing(Collection<? extends TypeDefinition> types) {\n return materialize().throwing(types);\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeVariableDefinition.Annotatable<X> typeVariable(String symbol, Collection<? extends TypeDefinition> bounds) {\n return materialize().typeVariable(symbol, bounds);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> intercept(Implementation implementation) {\n return materialize().intercept(implementation);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> withoutCode() {\n return materialize().withoutCode();\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> defaultValue(AnnotationValue<?, ?> annotationValue) {\n return materialize().defaultValue(annotationValue);\n }\n\n /**\n * {@inheritDoc}\n */\n public <V> MethodDefinition.ReceiverTypeDefinition<X> defaultValue(V value, Class<? extends V> type) {\n return materialize().defaultValue(value, type);\n }\n\n /**\n * Materializes this instance as a simple parameter definition with the currently defined properties.\n *\n * @return A simple parameter definition with the currently defined properties.\n */\n protected abstract MethodDefinition.ParameterDefinition.Simple<X> materialize();\n }\n }\n }\n\n /**\n * An abstract base implementation of an exception definition.\n *\n * @param <W> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<W> extends ExceptionDefinition.AbstractBase<W> implements Simple<W> {\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> withParameter(Type type) {\n return withParameter(TypeDefinition.Sort.describe(type));\n }\n }\n }\n\n /**\n * A builder for defining an implementation of a method and optionally defining a type variable, thrown exception or method parameter.\n * Implementations allow for the <i>one-by-one</i> definition of parameters what gives opportunity to annotate parameters in a fluent\n * style. Doing so, it is optionally possible to define parameter names and modifiers. This can be done for either all or no parameters.\n * Alternatively, parameters without annotations, names or modifiers can be defined by a single step.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface Initial<V> extends ParameterDefinition<V>, Simple<V> {\n\n /**\n * Defines the specified parameters for the currently defined method.\n *\n * @param type The parameter types. Any type can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameters.\n */\n ExceptionDefinition<V> withParameters(Type... type);\n\n /**\n * Defines the specified parameters for the currently defined method.\n *\n * @param types The parameter types. Any type can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameters.\n */\n ExceptionDefinition<V> withParameters(List<? extends Type> types);\n\n /**\n * Defines the specified parameters for the currently defined method.\n *\n * @param type The parameter types. Any type can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameters.\n */\n ExceptionDefinition<V> withParameters(TypeDefinition... type);\n\n /**\n * Defines the specified parameters for the currently defined method.\n *\n * @param types The parameter types. Any type can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameters.\n */\n ExceptionDefinition<V> withParameters(Collection<? extends TypeDefinition> types);\n\n /**\n * An abstract base implementation for an initial parameter definition.\n *\n * @param <W> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<W> extends ParameterDefinition.AbstractBase<W> implements Initial<W> {\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> withParameter(Type type) {\n return withParameter(TypeDefinition.Sort.describe(type));\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<W> withParameters(Type... type) {\n return withParameters(Arrays.asList(type));\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<W> withParameters(List<? extends Type> types) {\n return withParameters(new TypeList.Generic.ForLoadedTypes(types));\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<W> withParameters(TypeDefinition... type) {\n return withParameters(Arrays.asList(type));\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<W> withParameters(Collection<? extends TypeDefinition> types) {\n ParameterDefinition.Simple<W> parameterDefinition = this;\n for (TypeDefinition type : types) {\n parameterDefinition = parameterDefinition.withParameter(type);\n }\n return parameterDefinition;\n }\n }\n }\n\n /**\n * An abstract base implementation for defining an implementation of a method and optionally defining a type variable, thrown exception or parameter type.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<V> extends ExceptionDefinition.AbstractBase<V> implements ParameterDefinition<V> {\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<V> withParameter(Type type, String name, ModifierContributor.ForParameter... modifierContributor) {\n return withParameter(type, name, Arrays.asList(modifierContributor));\n }\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<V> withParameter(Type type, String name, Collection<? extends ModifierContributor.ForParameter> modifierContributors) {\n return withParameter(type, name, ModifierContributor.Resolver.of(modifierContributors).resolve());\n }\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<V> withParameter(Type type, String name, int modifiers) {\n return withParameter(TypeDefinition.Sort.describe(type), name, modifiers);\n }\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<V> withParameter(TypeDefinition type, String name, ModifierContributor.ForParameter... modifierContributor) {\n return withParameter(type, name, Arrays.asList(modifierContributor));\n }\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<V> withParameter(TypeDefinition type, String name, Collection<? extends ModifierContributor.ForParameter> modifierContributors) {\n return withParameter(type, name, ModifierContributor.Resolver.of(modifierContributors).resolve());\n }\n }\n }\n\n /**\n * An abstract base implementation of a method definition.\n *\n * @param <U> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<U> extends Builder.AbstractBase.Delegator<U> implements MethodDefinition<U> {\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition<U> annotateMethod(Annotation... annotation) {\n return annotateMethod(Arrays.asList(annotation));\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition<U> annotateMethod(List<? extends Annotation> annotations) {\n return annotateMethod(new AnnotationList.ForLoadedAnnotations(annotations));\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition<U> annotateMethod(AnnotationDescription... annotation) {\n return annotateMethod(Arrays.asList(annotation));\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition<U> annotateParameter(int index, Annotation... annotation) {\n return annotateParameter(index, Arrays.asList(annotation));\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition<U> annotateParameter(int index, List<? extends Annotation> annotations) {\n return annotateParameter(index, new AnnotationList.ForLoadedAnnotations(annotations));\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition<U> annotateParameter(int index, AnnotationDescription... annotation) {\n return annotateParameter(index, Arrays.asList(annotation));\n }\n\n /**\n * An adapter implementation of a method definition.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n @HashCodeAndEqualsPlugin.Enhance\n protected abstract static class Adapter<V> extends MethodDefinition.ReceiverTypeDefinition.AbstractBase<V> {\n\n /**\n * The handler that determines how a method is implemented.\n */\n protected final MethodRegistry.Handler handler;\n\n /**\n * The method attribute appender factory to apply onto the method that is currently being implemented.\n */\n protected final MethodAttributeAppender.Factory methodAttributeAppenderFactory;\n\n /**\n * The transformer to apply onto the method that is currently being implemented.\n */\n protected final Transformer<MethodDescription> transformer;\n\n /**\n * Creates a new adapter for a method definition.\n *\n * @param handler The handler that determines how a method is implemented.\n * @param methodAttributeAppenderFactory The method attribute appender factory to apply onto the method that is currently being implemented.\n * @param transformer The transformer to apply onto the method that is currently being implemented.\n */\n protected Adapter(MethodRegistry.Handler handler,\n MethodAttributeAppender.Factory methodAttributeAppenderFactory,\n Transformer<MethodDescription> transformer) {\n this.handler = handler;\n this.methodAttributeAppenderFactory = methodAttributeAppenderFactory;\n this.transformer = transformer;\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition<V> attribute(MethodAttributeAppender.Factory methodAttributeAppenderFactory) {\n return materialize(handler, new MethodAttributeAppender.Factory.Compound(this.methodAttributeAppenderFactory, methodAttributeAppenderFactory), transformer);\n }\n\n /**\n * {@inheritDoc}\n */\n @SuppressWarnings(\"unchecked\") // In absence of @SafeVarargs\n public MethodDefinition<V> transform(Transformer<MethodDescription> transformer) {\n return materialize(handler, methodAttributeAppenderFactory, new Transformer.Compound<MethodDescription>(this.transformer, transformer));\n }\n\n /**\n * Materializes the current builder as a method definition.\n *\n * @param handler The handler that determines how a method is implemented.\n * @param methodAttributeAppenderFactory The method attribute appender factory to apply onto the method that is currently being implemented.\n * @param transformer The method transformer to apply onto the method that is currently being implemented.\n * @return Returns a method definition for the supplied properties.\n */\n protected abstract MethodDefinition<V> materialize(MethodRegistry.Handler handler,\n MethodAttributeAppender.Factory methodAttributeAppenderFactory,\n Transformer<MethodDescription> transformer);\n }\n }\n }", "title": "" }, { "docid": "f27d77dc6e5d1ac0c063e17104ae464d", "score": "0.5598823", "text": "@SingleAnno(100)\n\n //to re-assign any annotation, need to do it for all single/default\n //@SingleAnno(value = 100,num = 15, num1 = 5)\n public static void myMeth() {\n Single single = new Single();\n try {\n // get object Class, then get object Method\n Method meth = single.getClass().getMethod(\"myMeth\");\n\n // get annotations from the method\n SingleAnno singleAnno = meth.getAnnotation(SingleAnno.class);\n\n // display annotation value\n System.out.println(\"Single annotation value : \" + singleAnno.value()\n + \"\\nDefault val 1: \" + singleAnno.num() + \"\\nDefault val 2: \" + singleAnno.num1());\n\n } catch (NoSuchMethodException ex) {\n System.out.println(\"No Such Method\");\n }\n }", "title": "" }, { "docid": "083ee92711cb26e0cf62516cd4c1922d", "score": "0.5496473", "text": "public void setParamAt(Expression param, int idx) {\n\t\tparams[idx] = param;\n\t}", "title": "" }, { "docid": "3b449ea3a348f275ebb3b19a1b06309a", "score": "0.54236996", "text": "protected ParameterAnnotationAdapter(ParameterDescription.Token token) {\n this.token = token;\n }", "title": "" }, { "docid": "3803d1d25e1daf730f5f733f79a91389", "score": "0.5423517", "text": "interface Simple<V> extends ExceptionDefinition<V> {\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<V> withParameter(Type type);\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<V> withParameter(TypeDefinition type);\n\n /**\n * A builder for optionally defining an annotation on a parameter.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface Annotatable<V> extends Simple<V> {\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotation The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(Annotation... annotation);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotations The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(List<? extends Annotation> annotations);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotation The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(AnnotationDescription... annotation);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotations The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(Collection<? extends AnnotationDescription> annotations);\n\n /**\n * An abstract base implementation of a simple parameter definition.\n *\n * @param <W> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<W> extends Simple.AbstractBase<W> implements Annotatable<W> {\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> annotateParameter(Annotation... annotation) {\n return annotateParameter(Arrays.asList(annotation));\n }\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> annotateParameter(List<? extends Annotation> annotations) {\n return annotateParameter(new AnnotationList.ForLoadedAnnotations(annotations));\n }\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> annotateParameter(AnnotationDescription... annotation) {\n return annotateParameter(Arrays.asList(annotation));\n }\n\n /**\n * An adapter implementation of a simple parameter definition.\n *\n * @param <X> A loaded type that the built type is guaranteed to be a subclass of.\n */\n protected abstract static class Adapter<X> extends Simple.Annotatable.AbstractBase<X> {\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<X> withParameter(TypeDefinition type) {\n return materialize().withParameter(type);\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<X> throwing(Collection<? extends TypeDefinition> types) {\n return materialize().throwing(types);\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeVariableDefinition.Annotatable<X> typeVariable(String symbol, Collection<? extends TypeDefinition> bounds) {\n return materialize().typeVariable(symbol, bounds);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> intercept(Implementation implementation) {\n return materialize().intercept(implementation);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> withoutCode() {\n return materialize().withoutCode();\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> defaultValue(AnnotationValue<?, ?> annotationValue) {\n return materialize().defaultValue(annotationValue);\n }\n\n /**\n * {@inheritDoc}\n */\n public <V> MethodDefinition.ReceiverTypeDefinition<X> defaultValue(V value, Class<? extends V> type) {\n return materialize().defaultValue(value, type);\n }\n\n /**\n * Materializes this instance as a simple parameter definition with the currently defined properties.\n *\n * @return A simple parameter definition with the currently defined properties.\n */\n protected abstract MethodDefinition.ParameterDefinition.Simple<X> materialize();\n }\n }\n }\n\n /**\n * An abstract base implementation of an exception definition.\n *\n * @param <W> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<W> extends ExceptionDefinition.AbstractBase<W> implements Simple<W> {\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> withParameter(Type type) {\n return withParameter(TypeDefinition.Sort.describe(type));\n }\n }\n }", "title": "" }, { "docid": "1b685191eebe4bd9b710d2f243be19aa", "score": "0.5422883", "text": "void fyi(String annotation);", "title": "" }, { "docid": "14d4045adf87d05e11fc4186d3288e55", "score": "0.5400959", "text": "interface Annotatable<V> extends TypeVariableDefinition<V> {\n\n /**\n * Annotates the previously defined type variable with the supplied annotations.\n *\n * @param annotation The annotations to declare on the previously defined type variable.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined type variable.\n */\n Annotatable<V> annotateTypeVariable(Annotation... annotation);\n\n /**\n * Annotates the previously defined type variable with the supplied annotations.\n *\n * @param annotations The annotations to declare on the previously defined type variable.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined type variable.\n */\n Annotatable<V> annotateTypeVariable(List<? extends Annotation> annotations);\n\n /**\n * Annotates the previously defined type variable with the supplied annotations.\n *\n * @param annotation The annotations to declare on the previously defined type variable.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined type variable.\n */\n Annotatable<V> annotateTypeVariable(AnnotationDescription... annotation);\n\n /**\n * Annotates the previously defined type variable with the supplied annotations.\n *\n * @param annotations The annotations to declare on the previously defined type variable.\n * @return A new builder that is equal to this builder but with the given annotations declared\n * on the previously defined type variable.\n */\n Annotatable<V> annotateTypeVariable(Collection<? extends AnnotationDescription> annotations);\n\n /**\n * An abstract base implementation for defining an annotation on a parameter.\n *\n * @param <W> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<W> extends TypeVariableDefinition.AbstractBase<W> implements Annotatable<W> {\n\n /**\n * {@inheritDoc}\n */\n public TypeVariableDefinition.Annotatable<W> annotateTypeVariable(Annotation... annotation) {\n return annotateTypeVariable(Arrays.asList(annotation));\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeVariableDefinition.Annotatable<W> annotateTypeVariable(List<? extends Annotation> annotations) {\n return annotateTypeVariable(new AnnotationList.ForLoadedAnnotations(annotations));\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeVariableDefinition.Annotatable<W> annotateTypeVariable(AnnotationDescription... annotation) {\n return annotateTypeVariable(Arrays.asList(annotation));\n }\n\n /**\n * An adapter implementation for an annotatable type variable definition.\n *\n * @param <X> A loaded type that the built type is guaranteed to be a subclass of.\n */\n protected abstract static class Adapter<X> extends TypeVariableDefinition.Annotatable.AbstractBase<X> {\n\n /**\n * {@inheritDoc}\n */\n public TypeVariableDefinition.Annotatable<X> typeVariable(String symbol, Collection<? extends TypeDefinition> bounds) {\n return materialize().typeVariable(symbol, bounds);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> intercept(Implementation implementation) {\n return materialize().intercept(implementation);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> withoutCode() {\n return materialize().withoutCode();\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> defaultValue(AnnotationValue<?, ?> annotationValue) {\n return materialize().defaultValue(annotationValue);\n }\n\n /**\n * {@inheritDoc}\n */\n public <V> MethodDefinition.ReceiverTypeDefinition<X> defaultValue(V value, Class<? extends V> type) {\n return materialize().defaultValue(value, type);\n }\n\n /**\n * Materializes this instance as a parameter definition with the currently defined properties.\n *\n * @return A parameter definition with the currently defined properties.\n */\n protected abstract MethodDefinition.ParameterDefinition<X> materialize();\n }\n }\n }", "title": "" }, { "docid": "dfac77a5cccc5083242ef37312616197", "score": "0.53806466", "text": "com.clarifai.grpc.api.Annotation getAnnotations(int index);", "title": "" }, { "docid": "ec6556c30833eae9ac91649e9bf8f5e3", "score": "0.536623", "text": "Annotatable<V> annotateTypeVariable(List<? extends Annotation> annotations);", "title": "" }, { "docid": "b7dec0a0258c3f64d2ed62e9f7358224", "score": "0.53533614", "text": "AnnotationMirror getParameterAnnotation(VariableElement param) {\n\t\tValidateArgument.required(param, \"Param\");\n\t\tList<? extends AnnotationMirror> annotations = param.getAnnotationMirrors();\n\t\tif (annotations.size() != 1) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Each method parameter should have one annotation, this one has \" + annotations.size());\n\t\t}\n\t\treturn annotations.get(0);\n\t}", "title": "" }, { "docid": "fbe765c887aea7e4b11c736937923dba", "score": "0.5340026", "text": "public void setMethodParamIndex(Map<String, Integer> methodParamIndex) {\n this.methodParamIndex = methodParamIndex;\n }", "title": "" }, { "docid": "ad6ff8b6470ef6b7c1602c53805548af", "score": "0.53220034", "text": "interface ParameterDefinition<U> extends ExceptionDefinition<U> {\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @param name The parameter's name.\n * @param modifierContributor The parameter's modifiers.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<U> withParameter(Type type, String name, ModifierContributor.ForParameter... modifierContributor);\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @param name The parameter's name.\n * @param modifierContributors The parameter's modifiers.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<U> withParameter(Type type, String name, Collection<? extends ModifierContributor.ForParameter> modifierContributors);\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @param name The parameter's name.\n * @param modifiers The parameter's modifiers.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<U> withParameter(Type type, String name, int modifiers);\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @param name The parameter's name.\n * @param modifierContributor The parameter's modifiers.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<U> withParameter(TypeDefinition type, String name, ModifierContributor.ForParameter... modifierContributor);\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @param name The parameter's name.\n * @param modifierContributors The parameter's modifiers.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<U> withParameter(TypeDefinition type, String name, Collection<? extends ModifierContributor.ForParameter> modifierContributors);\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @param name The parameter's name.\n * @param modifiers The parameter's modifiers.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<U> withParameter(TypeDefinition type, String name, int modifiers);\n\n /**\n * A builder for optionally defining an annotation on a parameter.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface Annotatable<V> extends ParameterDefinition<V> {\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotation The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(Annotation... annotation);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotations The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(List<? extends Annotation> annotations);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotation The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(AnnotationDescription... annotation);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotations The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(Collection<? extends AnnotationDescription> annotations);\n\n /**\n * An abstract base implementation for defining an annotation on a parameter.\n *\n * @param <W> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<W> extends ParameterDefinition.AbstractBase<W> implements Annotatable<W> {\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<W> annotateParameter(Annotation... annotation) {\n return annotateParameter(Arrays.asList(annotation));\n }\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<W> annotateParameter(List<? extends Annotation> annotations) {\n return annotateParameter(new AnnotationList.ForLoadedAnnotations(annotations));\n }\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<W> annotateParameter(AnnotationDescription... annotation) {\n return annotateParameter(Arrays.asList(annotation));\n }\n\n /**\n * An adapter implementation for defining an annotation on a parameter.\n *\n * @param <X> A loaded type that the built type is guaranteed to be a subclass of.\n */\n protected abstract static class Adapter<X> extends ParameterDefinition.Annotatable.AbstractBase<X> {\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<X> withParameter(TypeDefinition type, String name, int modifiers) {\n return materialize().withParameter(type, name, modifiers);\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<X> throwing(Collection<? extends TypeDefinition> types) {\n return materialize().throwing(types);\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeVariableDefinition.Annotatable<X> typeVariable(String symbol, Collection<? extends TypeDefinition> bounds) {\n return materialize().typeVariable(symbol, bounds);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> intercept(Implementation implementation) {\n return materialize().intercept(implementation);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> withoutCode() {\n return materialize().withoutCode();\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> defaultValue(AnnotationValue<?, ?> annotationValue) {\n return materialize().defaultValue(annotationValue);\n }\n\n /**\n * {@inheritDoc}\n */\n public <V> MethodDefinition.ReceiverTypeDefinition<X> defaultValue(V value, Class<? extends V> type) {\n return materialize().defaultValue(value, type);\n }\n\n /**\n * Materializes this instance as a parameter definition with the currently defined properties.\n *\n * @return A parameter definition with the currently defined properties.\n */\n protected abstract MethodDefinition.ParameterDefinition<X> materialize();\n }\n }\n }\n\n /**\n * A builder for defining an implementation of a method and optionally defining a type variable, thrown exception or a parameter type.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface Simple<V> extends ExceptionDefinition<V> {\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<V> withParameter(Type type);\n\n /**\n * Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.\n *\n * @param type The parameter's type. Can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameter.\n */\n Annotatable<V> withParameter(TypeDefinition type);\n\n /**\n * A builder for optionally defining an annotation on a parameter.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface Annotatable<V> extends Simple<V> {\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotation The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(Annotation... annotation);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotations The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(List<? extends Annotation> annotations);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotation The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(AnnotationDescription... annotation);\n\n /**\n * Annotates the previously defined parameter with the specified annotations.\n *\n * @param annotations The annotations to declare on the previously defined parameter.\n * @return A new builder that is equal to this builder but with the previously defined parameter annotated with\n * the specified annotations.\n */\n Annotatable<V> annotateParameter(Collection<? extends AnnotationDescription> annotations);\n\n /**\n * An abstract base implementation of a simple parameter definition.\n *\n * @param <W> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<W> extends Simple.AbstractBase<W> implements Annotatable<W> {\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> annotateParameter(Annotation... annotation) {\n return annotateParameter(Arrays.asList(annotation));\n }\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> annotateParameter(List<? extends Annotation> annotations) {\n return annotateParameter(new AnnotationList.ForLoadedAnnotations(annotations));\n }\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> annotateParameter(AnnotationDescription... annotation) {\n return annotateParameter(Arrays.asList(annotation));\n }\n\n /**\n * An adapter implementation of a simple parameter definition.\n *\n * @param <X> A loaded type that the built type is guaranteed to be a subclass of.\n */\n protected abstract static class Adapter<X> extends Simple.Annotatable.AbstractBase<X> {\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<X> withParameter(TypeDefinition type) {\n return materialize().withParameter(type);\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<X> throwing(Collection<? extends TypeDefinition> types) {\n return materialize().throwing(types);\n }\n\n /**\n * {@inheritDoc}\n */\n public TypeVariableDefinition.Annotatable<X> typeVariable(String symbol, Collection<? extends TypeDefinition> bounds) {\n return materialize().typeVariable(symbol, bounds);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> intercept(Implementation implementation) {\n return materialize().intercept(implementation);\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> withoutCode() {\n return materialize().withoutCode();\n }\n\n /**\n * {@inheritDoc}\n */\n public MethodDefinition.ReceiverTypeDefinition<X> defaultValue(AnnotationValue<?, ?> annotationValue) {\n return materialize().defaultValue(annotationValue);\n }\n\n /**\n * {@inheritDoc}\n */\n public <V> MethodDefinition.ReceiverTypeDefinition<X> defaultValue(V value, Class<? extends V> type) {\n return materialize().defaultValue(value, type);\n }\n\n /**\n * Materializes this instance as a simple parameter definition with the currently defined properties.\n *\n * @return A simple parameter definition with the currently defined properties.\n */\n protected abstract MethodDefinition.ParameterDefinition.Simple<X> materialize();\n }\n }\n }\n\n /**\n * An abstract base implementation of an exception definition.\n *\n * @param <W> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<W> extends ExceptionDefinition.AbstractBase<W> implements Simple<W> {\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> withParameter(Type type) {\n return withParameter(TypeDefinition.Sort.describe(type));\n }\n }\n }\n\n /**\n * A builder for defining an implementation of a method and optionally defining a type variable, thrown exception or method parameter.\n * Implementations allow for the <i>one-by-one</i> definition of parameters what gives opportunity to annotate parameters in a fluent\n * style. Doing so, it is optionally possible to define parameter names and modifiers. This can be done for either all or no parameters.\n * Alternatively, parameters without annotations, names or modifiers can be defined by a single step.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n interface Initial<V> extends ParameterDefinition<V>, Simple<V> {\n\n /**\n * Defines the specified parameters for the currently defined method.\n *\n * @param type The parameter types. Any type can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameters.\n */\n ExceptionDefinition<V> withParameters(Type... type);\n\n /**\n * Defines the specified parameters for the currently defined method.\n *\n * @param types The parameter types. Any type can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameters.\n */\n ExceptionDefinition<V> withParameters(List<? extends Type> types);\n\n /**\n * Defines the specified parameters for the currently defined method.\n *\n * @param type The parameter types. Any type can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameters.\n */\n ExceptionDefinition<V> withParameters(TypeDefinition... type);\n\n /**\n * Defines the specified parameters for the currently defined method.\n *\n * @param types The parameter types. Any type can also be {@link net.bytebuddy.dynamic.TargetType} if the parameter type\n * should be equal to the currently instrumented type.\n * @return A new builder that is equal to the current builder but where the currently defined method appends the specified parameters.\n */\n ExceptionDefinition<V> withParameters(Collection<? extends TypeDefinition> types);\n\n /**\n * An abstract base implementation for an initial parameter definition.\n *\n * @param <W> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<W> extends ParameterDefinition.AbstractBase<W> implements Initial<W> {\n\n /**\n * {@inheritDoc}\n */\n public Simple.Annotatable<W> withParameter(Type type) {\n return withParameter(TypeDefinition.Sort.describe(type));\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<W> withParameters(Type... type) {\n return withParameters(Arrays.asList(type));\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<W> withParameters(List<? extends Type> types) {\n return withParameters(new TypeList.Generic.ForLoadedTypes(types));\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<W> withParameters(TypeDefinition... type) {\n return withParameters(Arrays.asList(type));\n }\n\n /**\n * {@inheritDoc}\n */\n public ExceptionDefinition<W> withParameters(Collection<? extends TypeDefinition> types) {\n ParameterDefinition.Simple<W> parameterDefinition = this;\n for (TypeDefinition type : types) {\n parameterDefinition = parameterDefinition.withParameter(type);\n }\n return parameterDefinition;\n }\n }\n }\n\n /**\n * An abstract base implementation for defining an implementation of a method and optionally defining a type variable, thrown exception or parameter type.\n *\n * @param <V> A loaded type that the built type is guaranteed to be a subclass of.\n */\n abstract class AbstractBase<V> extends ExceptionDefinition.AbstractBase<V> implements ParameterDefinition<V> {\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<V> withParameter(Type type, String name, ModifierContributor.ForParameter... modifierContributor) {\n return withParameter(type, name, Arrays.asList(modifierContributor));\n }\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<V> withParameter(Type type, String name, Collection<? extends ModifierContributor.ForParameter> modifierContributors) {\n return withParameter(type, name, ModifierContributor.Resolver.of(modifierContributors).resolve());\n }\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<V> withParameter(Type type, String name, int modifiers) {\n return withParameter(TypeDefinition.Sort.describe(type), name, modifiers);\n }\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<V> withParameter(TypeDefinition type, String name, ModifierContributor.ForParameter... modifierContributor) {\n return withParameter(type, name, Arrays.asList(modifierContributor));\n }\n\n /**\n * {@inheritDoc}\n */\n public ParameterDefinition.Annotatable<V> withParameter(TypeDefinition type, String name, Collection<? extends ModifierContributor.ForParameter> modifierContributors) {\n return withParameter(type, name, ModifierContributor.Resolver.of(modifierContributors).resolve());\n }\n }\n }", "title": "" }, { "docid": "26531e49ce4b428753a9c952409eca2e", "score": "0.5304894", "text": "public interface AnnotationType extends Type {\n\n /**\n * Returns the List of Annotations. <br>\n * Each Annotation Type MAY have defined multiple Annotations.\n *\n * @return the List of Annotations.\n */\n List<AnnotationType> getAnnotations();\n\n /**\n * Returns Parameter Definition assigned for given parameter name. <br>\n * If Annotation does not contain parameter with specified param name, the\n * method MAY return <code>null</code> value.\n *\n * @param paramName\n * Parameter Name\n * @return Parameter Definition assigned for given parameter name.\n */\n Parameter getParameter(final String paramName);\n\n /**\n * Returns List of all parameters assigned to Annotation Type.\n *\n * @return List of all parameters assigned to Annotation Type.\n */\n List<Parameter> getParameters();\n\n /**\n * Returns List of parameter names.\n *\n * @return List of parameter names.\n */\n List<String> getParameterNames();\n\n /**\n * Returns <code>true</code> if annotation contains parameters.\n *\n * @return <code>true</code> if annotation contains parameters.\n */\n boolean containsParameters();\n\n /**\n * Annotation Type parameter interface. For simplicity the Parameter\n * contains values and value types as Strings. Every annotation which\n * contains parameters could contain either single parameter or array of\n * parameters. To model this purposes the by contract if the parameter\n * contains single parameter the {@link #getValues()} method will return\n * empty List and {@link #getValue()} MUST always return non-\n * <code>null</code> parameter. If the Parameter holds List of values the\n * singular {@link #getValue()} parameter MAY return <code>null</code>\n * value.\n */\n interface Parameter {\n\n /**\n * Returns the Name of the parameter.\n *\n * @return the Name of the parameter.\n */\n String getName();\n\n /**\n * Returns value in String format if Parameter contains singular value,\n * otherwise MAY return <code>null</code>.\n *\n * @return value in String format if Parameter contains singular value.\n */\n String getValue();\n\n /**\n * Returns List of Parameter assigned values in order in which they were\n * assigned for given parameter name. <br>\n * If there are multiple values assigned for given parameter name the\n * method MUST NOT return empty List.\n *\n * @return List of Parameter assigned values in order in which they were\n * assigned for given parameter name.\n */\n List<String> getValues();\n }\n}", "title": "" }, { "docid": "48c050fdfeeed38a2a7c6a8e0988193b", "score": "0.52800924", "text": "Parameter<?> getParameter(int index);", "title": "" }, { "docid": "89eb3408aeb6b49e2b884d65212db8d7", "score": "0.527944", "text": "protected SimpleParameterAnnotationAdapter(ParameterDescription.Token token) {\n this.token = token;\n }", "title": "" }, { "docid": "a8bf920d0eee922960450209dada7d08", "score": "0.5258338", "text": "@Override\n\tpublic void visit(MethodRefParameterWrapper methodRefParameter) {\n\t}", "title": "" }, { "docid": "bd76c17b9f30ae533e5cd7a7fef4cb43", "score": "0.5235312", "text": "public void addAnnotation(T annotation);", "title": "" }, { "docid": "fba1a55910fb5fb5644a63d9ce17be96", "score": "0.52303684", "text": "Annotatable<V> annotateTypeVariable(Collection<? extends AnnotationDescription> annotations);", "title": "" }, { "docid": "208a43ffe4f8ec7f2ddf5464e473ba56", "score": "0.5166944", "text": "@Override\n protected void processMethodAnnotations(AbstractClassMetaData cmd, Method method) { }", "title": "" }, { "docid": "16379a365e768cb4e23c9f95e60dd8bb", "score": "0.51595587", "text": "Annotatable<V> annotateTypeVariable(Annotation... annotation);", "title": "" }, { "docid": "429908af6387954649f578d9ec5ba153", "score": "0.51500434", "text": "public interface Annotator {\n public void annotate(Annotation annotation) ;\n}", "title": "" }, { "docid": "79dd3f8e0ad5a0124b379cd12f54fee7", "score": "0.51494646", "text": "public String getParameterName(int index);", "title": "" }, { "docid": "1c2f35e9a4ac16dd59b4595af3cc3d89", "score": "0.51287127", "text": "void logAnnotation(String annotation);", "title": "" }, { "docid": "df64c3526200ae91f3a3dd3a0a3a1d2e", "score": "0.5113213", "text": "@Override\n\tpublic void visit(AnnotationWrapper annotation) {\n\t}", "title": "" }, { "docid": "1f49947bbfc785ba49f00c297822c0e6", "score": "0.5100126", "text": "@Override\n public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {\n HashMap<String, Integer> map = new HashMap<String, Integer>();\n\n for(Element element : roundEnv.getElementsAnnotatedWith(Overload.class)){\n \tSystem.out.println(element);\n String signature = element.getSimpleName().toString();\n int count = map.containsKey(signature) ? map.get(signature) : 0;\n map.put(signature, ++count);\n }\n\n for(Entry<String, Integer> entry: map.entrySet()){\n if(entry.getValue() == 1){\n processingEnv.getMessager().printMessage(Kind.ERROR, \"The method which signature is \" + entry.getKey() + \" has not been overloaded\");\n }\n }\n return true;\n }", "title": "" }, { "docid": "d4e71c3e8ee57b763ebc169ac72e2ec4", "score": "0.50958145", "text": "Annotatable<V> annotateTypeVariable(AnnotationDescription... annotation);", "title": "" }, { "docid": "0a2569b8a7b977a8fef5f25f2cc38ee1", "score": "0.5081307", "text": "public void updateIndex(int paramInt) {\n/* 145 */ int i = 0x42000000 | paramInt << 8;\n/* 146 */ if (this.visibleTypeAnnotations != null) {\n/* 147 */ for (TypeAnnotationNode typeAnnotationNode : this.visibleTypeAnnotations) {\n/* 148 */ typeAnnotationNode.typeRef = i;\n/* */ }\n/* */ }\n/* 151 */ if (this.invisibleTypeAnnotations != null) {\n/* 152 */ for (TypeAnnotationNode typeAnnotationNode : this.invisibleTypeAnnotations) {\n/* 153 */ typeAnnotationNode.typeRef = i;\n/* */ }\n/* */ }\n/* */ }", "title": "" }, { "docid": "3c6589edce791ff307c9bc35359d6e3d", "score": "0.5073738", "text": "public void setAnnotation(String text);", "title": "" }, { "docid": "b6a348fb07bf13e6c80fe970c27279a8", "score": "0.50641096", "text": "com.clarifai.grpc.api.AnnotationOrBuilder getAnnotationsOrBuilder(\n int index);", "title": "" }, { "docid": "3a0dbf064cc5c56e06f8af9546bb8e10", "score": "0.4988472", "text": "public static void integrateSentIndices(List<String> sentences, List<DiscourseAnnotation> annotations) {\n\n for (DiscourseAnnotation annotation : annotations) {\n\n // strategy: look for sentence which matches longest sequence of tokens\n // warning: biased towards longer sentences!\n\n\n // arg1:\n List<String> nGramsArg1 = generateNGrams(annotation.getArg1());\n\n int maxMatchArg1 = -1;\n int maxMatchIndexArg1 = -1;\n for (int i = 0; i < sentences.size(); i++) {\n String sentStr = sentences.get(i);\n int match = 0;\n for (String nGram : nGramsArg1) {\n if (sentStr.contains(nGram)) {\n match++;\n }\n }\n if (match > maxMatchArg1) {\n maxMatchArg1 = match;\n maxMatchIndexArg1 = i;\n }\n }\n annotation.setArg1SentIndex(maxMatchIndexArg1);\n\n // debug\n //System.out.println(\"debug: matching arg1 span \\n\\t\\\"\" + annotation.getArg1() + \"\\\" to sentence \\n\\t\\\"\" + sentences.get(maxMatchIndexArg1) + \"\\\"\");\n\n // arg2:\n List<String> nGramsArg2 = generateNGrams(annotation.getArg2());\n\n int maxMatchArg2 = -1;\n int maxMatchIndexArg2 = -1;\n for (int i = 0; i < sentences.size(); i++) {\n String sentStr = sentences.get(i);\n int match = 0;\n for (String nGram : nGramsArg2) {\n if (sentStr.contains(nGram)) {\n match++;\n }\n }\n if (match > maxMatchArg2) {\n maxMatchArg2 = match;\n maxMatchIndexArg2 = i;\n }\n }\n annotation.setArg2SentIndex(maxMatchIndexArg2);\n\n // debug\n //System.out.println(\"debug: matching arg2 span \\n\\t\\\"\" + annotation.getArg2() + \"\\\" to sentence \\n\\t\\\"\" + sentences.get(maxMatchIndexArg2) + \"\\\"\");\n\n // conn:\n // conn is generally too short to be matched correctly, so don't bother for now\n //if (!annotation.getConn().equals(\"\")) {\n // List<String> nGramsConn = generateNGrams(annotation.getConn());\n //\n // int maxMatchConn = -1;\n // int maxMatchIndexConn = -1;\n // for (int i = 0; i < sentences.size(); i++) {\n // String sentStr = sentences.get(i);\n // int match = 0;\n // for (String nGram : nGramsConn) {\n // if (sentStr.contains(nGram)) {\n // match++;\n // }\n // }\n // if (match > maxMatchConn) {\n // maxMatchConn = match;\n // maxMatchIndexConn = i;\n // }\n // }\n // annotation.setConnSentIndex(maxMatchIndexConn);\n //\n // debug\n //System.out.println(\"debug: matching conn span \\n\\t\\\"\" + annotation.getConn() + \"\\\" to sentence \\n\\t\\\"\" + sentences.get(maxMatchIndexConn) + \"\\\"\");\n //}\n\n }\n\n }", "title": "" }, { "docid": "92f67a6a8ccf2a0f55a0ae73aac7355e", "score": "0.4987954", "text": "com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getParamOrBuilder(\n int index);", "title": "" }, { "docid": "92f67a6a8ccf2a0f55a0ae73aac7355e", "score": "0.4987954", "text": "com.mysql.cj.x.protobuf.MysqlxExpr.ExprOrBuilder getParamOrBuilder(\n int index);", "title": "" }, { "docid": "20f0418308a1e343b4716169b0fb2709", "score": "0.49860084", "text": "@VisibleForTesting\n void setAnnotation(final Factor factor, final Measure measure, final MeasurementMethod method, final Tool tool,\n final Annotation annot, final Source source)\n {\n if (factor != null)\n {\n factor.addAnnotation(annot);\n }\n else if (measure != null)\n {\n measure.addAnnotation(annot);\n }\n else if (method != null)\n {\n method.addAnnotation(annot);\n }\n else if (source != null)\n {\n source.addAnnotation(annot);\n }\n else if (tool != null)\n {\n tool.addAnnotation(annot);\n }\n }", "title": "" }, { "docid": "155ddba4c570642dec1507d34a75d6ef", "score": "0.49741983", "text": "Builder<T> annotateType(List<? extends Annotation> annotations);", "title": "" }, { "docid": "46390facf6d2af83235456b5b12c9ee4", "score": "0.4955833", "text": "protected abstract T createDynamicParamExpr(int index);", "title": "" }, { "docid": "9adc9cdc28035e8bd42ba28e2552f32d", "score": "0.49538574", "text": "public List<Object> getParamAnnotation() {\n/* 105 */ if (this.paramAnnotation == null) {\n/* 106 */ this.paramAnnotation = new ArrayList();\n/* */ }\n/* 108 */ return this.paramAnnotation;\n/* */ }", "title": "" }, { "docid": "df04e66e1b8b2498c8880e09c5d96eed", "score": "0.49487665", "text": "private static void recordMethodAnnotationInfo(BufferedWriter out) throws IOException {\r\n for (Map.Entry<String, Set<String>> entry : methodAnnotationMap.entrySet()) {\r\n String fullMethod = entry.getKey();\r\n Set<String> annotationSet = entry.getValue();\r\n for (String annotation : annotationSet) {\r\n String methodWithAnnotation = fullMethod + \" \" + annotation + Constants.NEW_LINE;\r\n out.write(methodWithAnnotation);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "775201c23e977b03319779e9ed5d29fc", "score": "0.49393073", "text": "public static Parameter[] interceptParametersToUse(final Parameter[] currentParameters, final AccessibleObject member) {\n\t\tAnnotation[][] allAnnotations = getParameterAnnotations(member);\n\n\t\tif (currentParameters.length != allAnnotations.length) {\n\t\t\tthrow new PicoCompositionException(\"Internal error, parameter lengths, not the same as the annotation lengths\");\n\t\t}\n\n\t\t//Make this function side-effect free.\n\t\tParameter[] returnValue = Arrays.copyOf(currentParameters, currentParameters.length);\n\n\n\t\tfor (int i = 0; i < returnValue.length; i++) {\n\t\t\t//Allow composition scripts to override annotations\n\t\t\t//See comment in com.picocontainer.injectors.AnnotatedFieldInjection.AnnotatedFieldInjector.getParameterToUseForObject(AccessibleObject, AccessibleObjectParameterSet...)\n\t\t\t//for possible issues with this.\n\t\t\tif (returnValue[i] != ComponentParameter.DEFAULT && returnValue[i] != JSR330ComponentParameter.DEFAULT) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tNamed namedAnnotation = getNamedAnnotation(allAnnotations[i]);\n \t\tif (namedAnnotation != null) {\n \t\t\treturnValue[i] = new JSR330ComponentParameter(namedAnnotation.value());\n \t\t} else {\n \t\tAnnotation qualifier = JSR330PicoContainer.getQualifier(allAnnotations[i]);\n \t\tif (qualifier != null) {\n \t\t\treturnValue[i] = new JSR330ComponentParameter(qualifier.annotationType().getName());\n \t\t}\n \t\t}\n\n \t\t//Otherwise don't modify it.\n\t\t}\n\n\t\treturn returnValue;\n\t}", "title": "" }, { "docid": "4c40bfc68ba53330bac85eb633b0167e", "score": "0.49360937", "text": "public void transform(IDataProviderAnnotation annotation, Method method) {\n\t\tif(method.getName().equalsIgnoreCase(\"data\")) {\n\t\t\tannotation.setName(\"abc\");\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "c676ea223db923a85eae01b705b62d3a", "score": "0.4929989", "text": "@NotNull\n PsiAnnotation addAnnotation(@NotNull @NonNls String qualifiedName);", "title": "" }, { "docid": "6fd5a8042b818fb7988229bcb660e11a", "score": "0.49294728", "text": "void approve(String annotation);", "title": "" }, { "docid": "486800b6a14552cd6494c5fcb7967832", "score": "0.4912301", "text": "private void moveToNextParam() {\n\n\t\tJTextComponent tc = ac.getTextComponent();\n\t\tint dot = tc.getCaretPosition();\n\n\t\tint tagCount = tags.size();\n\t\tif (tagCount==0) {\n\t\t\ttc.setCaretPosition(maxPos.getOffset());\n\t\t\tsetVisible(false, false);\n\t\t}\n\n\t\tHighlight currentNext = null;\n\t\tint pos = -1;\n\t\tList highlights = getParameterHighlights();\n\t\tfor (int i=0; i<highlights.size(); i++) {\n\t\t\tHighlight hl = (Highlight)highlights.get(i);\n\t\t\t// Check \"< dot\", not \"<= dot\" as OutlineHighlightPainter paints\n\t\t\t// starting at one char AFTER the highlight starts, to work around\n\t\t\t// Java issue. Thanks to Matthew Adereth!\n\t\t\tif (currentNext==null || currentNext.getStartOffset()</*=*/dot ||\n\t\t\t\t\t(hl.getStartOffset()>dot &&\n\t\t\t\t\thl.getStartOffset()<=currentNext.getStartOffset())) {\n\t\t\t\tcurrentNext = hl;\n\t\t\t\tpos = i;\n\t\t\t}\n\t\t}\n\n\t\tif (currentNext!=null && dot<=currentNext.getStartOffset()) {\n\t\t\t // \"+1\" is a workaround for Java Highlight issues.\n\t\t\ttc.setSelectionStart(currentNext.getStartOffset()+1);\n\t\t\ttc.setSelectionEnd(currentNext.getEndOffset());\n\t\t\tupdateText(pos);\n\t\t}\n\t\telse {\n\t\t\ttc.setCaretPosition(maxPos.getOffset());\n\t\t\tsetVisible(false, false);\n\t\t}\n\n\t}", "title": "" }, { "docid": "74ca1ac64d1acd60d9d8371c0bb8b187", "score": "0.48928943", "text": "public Value getArg(int i);", "title": "" }, { "docid": "f93547149914d04b781af01e7d9f75d1", "score": "0.4886879", "text": "private int getParameterIndex(Document document, String methodName) {\n ((AbstractDocument) document).readLock();\n try {\n TokenSequence<PHPTokenId> ts = LexUtilities.getPHPTokenSequence(document, methodOffset);\n if (ts != null && !StringUtils.isEmpty(methodName) && methodOffset >= 0) {\n ts.move(methodOffset);\n int index = 0;\n int braceBalance = 0;\n int bracketBalance = 0;\n while (ts.moveNext()) {\n Token<PHPTokenId> token = ts.token();\n if (token == null) {\n break;\n }\n\n PHPTokenId id = token.id();\n if (id == PHPTokenId.PHP_SEMICOLON) {\n break;\n }\n\n String tokenText = token.text().toString();\n if (ts.offset() > caretOffset) {\n return index;\n }\n // check array(), [], function()\n switch (tokenText) {\n case \",\": // NOI18N\n if (braceBalance == 1 && bracketBalance == 0) {\n index++;\n }\n break;\n case \"(\": // NOI18N\n braceBalance++;\n break;\n case \")\": // NOI18N\n braceBalance--;\n break;\n case \"[\": // NOI18N\n bracketBalance++;\n break;\n case \"]\": // NOI18N\n bracketBalance--;\n break;\n default:\n break;\n }\n }\n }\n } finally {\n ((AbstractDocument) document).readUnlock();\n }\n return -1;\n }", "title": "" }, { "docid": "febc17916c8a7d3d5b512c8b8a2931f5", "score": "0.4886068", "text": "private int consumeINVOKEMETHOD(int pos, int index) {\n String class_name = pool().getFMIref_ClassName(index);\n String[] type_name = pool().getFMIref_Name_And_Type(index);\n\n MethodNode method = new MethodNode(class_name.replace(\"/\", \".\"), type_name[1], type_name[0], false);\n\n int params_ln = Descriptor.getParamCount(method.getType());\n\n System.err.println(\"params ln = \" + params_ln);\n\n for (int i = 0; i < params_ln; i++) {\n method.addParam(0, stack.pop());\n }\n\n InvocationNode invocation = new InvocationNode(stack.pop(), method);\n\n stack.push(invocation);\n\n return pos + 3;\n }", "title": "" }, { "docid": "5a06b610cb9e77023198fdda0a0abcba", "score": "0.48756802", "text": "private static void addAnnotationForMethodChecking(\r\n final PromiseDrop<?> anno, final IRNode promisedFor) {\r\n final Operator op = JJNode.tree.getOperator(promisedFor);\r\n if (ParameterDeclaration.prototype.includes(op) ||\r\n ReceiverDeclaration.prototype.includes(op) ||\r\n ReturnValueDeclaration.prototype.includes(op)) {\r\n consistency.addRelevantDrop(anno);\r\n }\r\n }", "title": "" }, { "docid": "8c5eb9d238a57981cbddd69026149757", "score": "0.48486122", "text": "public interface PsiExtensionMethod extends PsiMethod\n{\n\t/**\n\t * @return a target method\n\t */\n\t@Nonnull\n\tPsiMethod getTargetMethod();\n\n\t/**\n\t * @return a target method parameter that corresponds to the receiver of this extension method;\n\t * null if the receiver does not correspond to any parameter of the target method.\n\t */\n\t@Nullable\n\tPsiParameter getTargetReceiverParameter();\n\n\t/**\n\t * @param index index of this method parameter\n\t * @return a target method parameter that corresponds to the parameter of this extension method having the specified index;\n\t * null if the specified parameter does not correspond to any parameter of the target method.\n\t */\n\t@Nullable\n\tPsiParameter getTargetParameter(int index);\n}", "title": "" }, { "docid": "60019b7663ad257187bf2cbe5e85ba46", "score": "0.4845791", "text": "public void setAnnotation(String desc);", "title": "" }, { "docid": "ce92b42981267f8a93a534c60f707652", "score": "0.48406836", "text": "@Override\n public void visit(MethodDeclaration n, Void arg) {\n n.setName(n.getNameAsString().toUpperCase());\n\n // add a new parameter to the method\n n.addParameter(\"int\", \"value\");\n }", "title": "" }, { "docid": "4356bd5c3d70cef68f93922da9db1a0a", "score": "0.48384976", "text": "@Override\n\tpublic void visit(AnnotationMemberValuePairWrapper annotationMemberValuePair) {\n\t}", "title": "" }, { "docid": "2e7181da8cea57a1e9abb15c4b283ecd", "score": "0.48027724", "text": "Builder<T> annotateType(Collection<? extends AnnotationDescription> annotations);", "title": "" }, { "docid": "74199e915df9adfad06a1569ddfcd2f7", "score": "0.47889128", "text": "private Long myOtherAbstractMethod(@WithAnnotation Blah blah);", "title": "" }, { "docid": "ac27da5d609866466cca0742024a0fce", "score": "0.47864863", "text": "void route(String annotation);", "title": "" }, { "docid": "4c09e0c53e1c73e92614c83da9558756", "score": "0.47830778", "text": "protected abstract void applyParameter(Object[] args);", "title": "" }, { "docid": "5813dc388845a10cc5aee5d61738e534", "score": "0.47827908", "text": "public final void annotations() throws RecognitionException\n\t{\n\t\tint annotations_StartIndex = input.index();\n\t\ttry\n\t\t{\n\t\t\tif (backtracking > 0 && alreadyParsedRule(input, 64))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// /home/exp/data/devel/workspace-ecg/CPC_Similarity/parsers/java/Java.g:409:2: ( ( annotation )+ )\n\t\t\t// /home/exp/data/devel/workspace-ecg/CPC_Similarity/parsers/java/Java.g:409:4: ( annotation )+\n\t\t\t{\n\t\t\t\t// /home/exp/data/devel/workspace-ecg/CPC_Similarity/parsers/java/Java.g:409:4: ( annotation )+\n\t\t\t\tint cnt85 = 0;\n\t\t\t\tloop85: do\n\t\t\t\t{\n\t\t\t\t\tint alt85 = 2;\n\t\t\t\t\tint LA85_0 = input.LA(1);\n\n\t\t\t\t\tif ((LA85_0 == 71))\n\t\t\t\t\t{\n\t\t\t\t\t\tint LA85_3 = input.LA(2);\n\n\t\t\t\t\t\tif ((LA85_3 == Identifier))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint LA85_22 = input.LA(3);\n\n\t\t\t\t\t\t\tif ((synpred120()))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\talt85 = 1;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\tswitch (alt85)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t// /home/exp/data/devel/workspace-ecg/CPC_Similarity/parsers/java/Java.g:0:0: annotation\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpushFollow(FOLLOW_annotation_in_annotations1837);\n\t\t\t\t\t\t\tannotation();\n\t\t\t\t\t\t\t_fsp--;\n\t\t\t\t\t\t\tif (failed)\n\t\t\t\t\t\t\t\treturn;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tif (cnt85 >= 1)\n\t\t\t\t\t\t\t\tbreak loop85;\n\t\t\t\t\t\t\tif (backtracking > 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfailed = true;\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tEarlyExitException eee = new EarlyExitException(85, input);\n\t\t\t\t\t\t\tthrow eee;\n\t\t\t\t\t}\n\t\t\t\t\tcnt85++;\n\t\t\t\t}\n\t\t\t\twhile (true);\n\n\t\t\t}\n\n\t\t}\n\t\tcatch (RecognitionException re)\n\t\t{\n\t\t\treportError(re);\n\t\t\trecover(input, re);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif (backtracking > 0)\n\t\t\t{\n\t\t\t\tmemoize(input, 64, annotations_StartIndex);\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "7a96d7094c04db5787855b9ebd83ab50", "score": "0.47719812", "text": "private void visit(MethodSummary methodSummary)\r\n {\r\n Iterator iter = methodSummary.getParameters();\r\n if (iter != null) {\r\n while (iter.hasNext()) {\r\n ParameterSummary nextParameterSummary = (ParameterSummary) iter.next();\r\n System.out.println(\"Renaming: \" + nextParameterSummary.getName());\r\n try {\r\n renameParameter(methodSummary, nextParameterSummary);\r\n }\r\n catch (Exception exc) {\r\n exc.printStackTrace();\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "7cd498407e371b248b8cd3f619235645", "score": "0.47552836", "text": "private void passNativeParameter(CxxSource src, DeclInfo declInfo, List<String> paramNames, int paramIndex) {\n if (paramIndex < 0) {\n paramIndex = declInfo.getParams().size() + paramIndex;\n }\n ParamInfo paramInfo = declInfo.getParams().get(paramIndex);\n final CxxType type = paramInfo.getType();\n if (type.isByValueCxxObjectKind() || type.isByReferenceCxxObjectKind() || type.isRef()) {\n src.w(\"*\");\n }\n src.w(paramNames.get(paramIndex));\n }", "title": "" }, { "docid": "0042c58db06a5d568258b1f7e89d1a69", "score": "0.47533065", "text": "private void moveToNextParam() {\n\n\t\tJTextComponent tc = ac.getTextComponent();\n\t\tint dot = tc.getCaretPosition();\n\t\tint tagCount = tags.size();\n\t\tif (tagCount==0) {\n\t\t\ttc.setCaretPosition(maxPos.getOffset());\n\t\t\tdeactivate();\n\t\t}\n\n\t\tHighlight currentNext = null;\n\t\tint pos = -1;\n\t\tList<Highlight> highlights = getParameterHighlights();\n\t\tfor (int i=0; i<highlights.size(); i++) {\n\t\t\tHighlight hl = highlights.get(i);\n\t\t\t// Check \"< dot\", not \"<= dot\" as OutlineHighlightPainter paints\n\t\t\t// starting at one char AFTER the highlight starts, to work around\n\t\t\t// Java issue. Thanks to Matthew Adereth!\n\t\t\tif (currentNext==null || currentNext.getStartOffset()</*=*/dot ||\n\t\t\t\t\t(hl.getStartOffset()>dot &&\n\t\t\t\t\thl.getStartOffset()<=currentNext.getStartOffset())) {\n\t\t\t\tcurrentNext = hl;\n\t\t\t\tpos = i;\n\t\t\t}\n\t\t}\n\n\t\t// No params after caret - go to first one\n\t\tif (currentNext.getStartOffset()+1<=dot) {\n\t\t\tint nextIndex = getFirstHighlight(highlights);\n\t\t\tcurrentNext = highlights.get(nextIndex);\n\t\t\tpos = 0;\n\t\t}\n\n\t\t// \"+1\" is a workaround for Java Highlight issues.\n\t\ttc.setSelectionStart(currentNext.getStartOffset()+1);\n\t\ttc.setSelectionEnd(currentNext.getEndOffset());\n\t\tupdateToolTipText(pos);\n\n\t}", "title": "" }, { "docid": "8cb1d55a7ec20cb9f3c5e777428027fa", "score": "0.4740652", "text": "void placeInExceptionRouting(String annotation);", "title": "" }, { "docid": "fdd44f3cadcbe0337d79f2f37b7fd305", "score": "0.4720677", "text": "Builder<T> annotateType(Annotation... annotation);", "title": "" }, { "docid": "ceaeeeeac29ec4ba0c123467db73dbc9", "score": "0.47141385", "text": "public String getParameter(int index);", "title": "" }, { "docid": "e7e1af1431aa91bf69dbb308e1d74dc7", "score": "0.47052866", "text": "T at(int position, int... additionalPositions);", "title": "" }, { "docid": "d4e3f4fcb343433f2c28fea83ce64e16", "score": "0.47036937", "text": "public void transform(IFactoryAnnotation annotation, Method method) {\n\t\t\n\t}", "title": "" }, { "docid": "da3bb3abc4f38868a835901e234dff7e", "score": "0.4698101", "text": "FieldDefinition.Optional<S> annotateField(List<? extends Annotation> annotations);", "title": "" }, { "docid": "36d8028f36917ca5f6d7d73adeb8ce88", "score": "0.469787", "text": "private void renameParameter(MethodSummary method, ParameterSummary param)\r\n {\r\n HungarianNamer namer = new HungarianNamer();\r\n RenameParameterRefactoring rpr = RefactoringFactory.get().renameParameter();\r\n rpr.setMethodSummary(method);\r\n rpr.setParameterSummary(param);\r\n rpr.setNewName(namer.getDefaultName(param, \"a_\"));\r\n runRefactoring(rpr);\r\n }", "title": "" }, { "docid": "1588c97b1e7a1eaba066823c86486f10", "score": "0.46939224", "text": "com.mysql.cj.x.protobuf.MysqlxExpr.Expr getParam(int index);", "title": "" }, { "docid": "1588c97b1e7a1eaba066823c86486f10", "score": "0.46939224", "text": "com.mysql.cj.x.protobuf.MysqlxExpr.Expr getParam(int index);", "title": "" }, { "docid": "e4f112d808fd676cb482d66603bb4391", "score": "0.46896747", "text": "@Override public int inline() {\n// ^^^^^^^^^ meta.annotation\n// ^ punctuation.definition.annotation\n// ^^^^^^^^ variable.annotation\n }", "title": "" }, { "docid": "ad84b94f6c383f6cffe91640701b1156", "score": "0.4678956", "text": "public int indexOfParameter(Parameter p) { return parameters.indexOf(p); }", "title": "" }, { "docid": "5fc51984d6a89a1af668739513779ba6", "score": "0.46750364", "text": "public void addAnnotation(String key, List<String> value) {\n\t\tannotations.put(key, value);\n\t\t\n\t}", "title": "" }, { "docid": "0e3897a7048a2a3798a5c82480435f8e", "score": "0.46720004", "text": "public void contributeMethodArgument(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables, ConversionService conversionService)\n/* */ {\n/* 119 */ if (Map.class.isAssignableFrom(parameter.nestedIfOptional().getNestedParameterType())) {\n/* 120 */ return;\n/* */ }\n/* */ \n/* 123 */ PathVariable ann = (PathVariable)parameter.getParameterAnnotation(PathVariable.class);\n/* 124 */ String name = (ann != null) && (!StringUtils.isEmpty(ann.value())) ? ann.value() : parameter.getParameterName();\n/* 125 */ value = formatUriValue(conversionService, new TypeDescriptor(parameter.nestedIfOptional()), value);\n/* 126 */ uriVariables.put(name, value);\n/* */ }", "title": "" }, { "docid": "6b8a69345b2b27b353386deee9301baa", "score": "0.46705207", "text": "Annotation createAnnotation();", "title": "" }, { "docid": "6b8a69345b2b27b353386deee9301baa", "score": "0.46705207", "text": "Annotation createAnnotation();", "title": "" }, { "docid": "6b8a69345b2b27b353386deee9301baa", "score": "0.46705207", "text": "Annotation createAnnotation();", "title": "" }, { "docid": "6b8a69345b2b27b353386deee9301baa", "score": "0.46705207", "text": "Annotation createAnnotation();", "title": "" }, { "docid": "ee98b0b69b4dbe7cfb1a535e590aeac8", "score": "0.46621758", "text": "protected void createDynamicValueAnnotationAnnotations() {\r\n\t\tString source = \"DynamicValueAnnotation\";\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetDigits_VariableName(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The assignee variable\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetFullVariable_AssignToVar(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The variable owning the value that will be assigned\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getMultiStreamAudio_EscapeDigits(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"ScriptText\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"DTMF characters that will cause the audio playback to stop\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getRecordFile_File(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The name of the file that will be recorded (file extension omitted). \",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"com.safi.workshop.sheet.assist.FileBrowserAssistant\"\r\n\t\t });\t\t\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getSayAlpha_Text(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The text to be verbalized letter by letter\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getSayDateTime_DateTime(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The date/time to be verbalized. May be a number\\r\\n (representing the number of seconds since 1970) or text in the format\\r\\n (XX/yy/zzzz) or Date object or variable.\",\r\n\t\t\t \"expectedReturnType\", \"Unknown\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getSayDigits_Digits(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The text containing only numeric values to be verbalized one digit at a time\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getSayNumber_Number(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The integer value between 0 and 99,999,999 to be verbalized. \",\r\n\t\t\t \"expectedReturnType\", \"Integer\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getSayPhonetic_Text(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The text value to be verbalized one letter at a time (eg. alpha, bravo, charlie, etc)\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getSayTime_Time(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The date/time to be verbalized. May be a number\\r\\n (representing the number of seconds since 1970) or text in the format\\r\\n (XX/yy/zzzz) or Date object or variable.\",\r\n\t\t\t \"expectedReturnType\", \"Unknown\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getSetCallerId_CallerId(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The caller ID of the current call will be set to this text value.\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getSetChannelVariable_Value(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The specified variable of the current call will be set to this text value.\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getSetContext_Context(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The context of the current call will be set to this text value.\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getSetExtension_Extension(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The extension of the current call will be set to this text value.\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getSetMusicOn_HoldClass(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The Asterisk music class to play.\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getSetPriority_Priority(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The priority of the current call will be set to this numeric value.\",\r\n\t\t\t \"expectedReturnType\", \"Integer\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getStreamAudio_Filename(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"Prompt Filename\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The audio prompt file name that will be played\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"com.safi.workshop.sheet.PromptChooserDynamicValueEditorPage\"\r\n\t\t });\t\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getOriginateCall_Account(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The account code of the new call will be assigned this text value.\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getOriginateCall_Application(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"Application to use on connect (use Data for parameters)\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getOriginateCall_CallerId(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"CallerID to use for the call\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getOriginateCall_Context(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"Context to use on connect (must use Exten & Priority with it)\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getOriginateCall_Data(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"Data if Application parameter is used\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getOriginateCall_Extension(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"Extension to use on connect (must use Context & Priority with it)\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getOriginateCall_Priority(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"Priority to use on connect (must use Context & Exten with it)\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getOriginateCall_Channel(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"Context to use on connect (must use Exten & Priority with it)\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getOriginateCall_Variables(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"Array of variables to set [name1, value1, name2, value2...]\",\r\n\t\t\t \"expectedReturnType\", \"Array\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getRecordCall_Filename(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The name of the file that will be recorded (file extension omitted). \",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"com.safi.workshop.sheet.assist.DirBrowserAssistant\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getTransfer_Context(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The context of the current call will be set to this text value.\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getTransfer_Extension(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The context of the current call will be set to this text value.\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getExecuteApplication_Arguments(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the parameters to pass to the application. May be single text entry (ex. \\\"SIP/123\\\") or array or text. (ex. [\\\"Sip/123\\\",\\\"300\\\"...])\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getExecuteApplication_Application(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"ScriptText\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The name of the application\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetCallInfo_AccountCodeVar(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The variable name to where the account code of the current call will be assigned\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetCallInfo_CallerIdNameVar(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The variable name to where the caller ID name of the current call will be assigned\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetCallInfo_CallerIdNumVar(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The variable name to where the caller ID number of the current call will be assigned\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetCallInfo_ChannelNameVar(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The variable name to where the channel name of the current call will be assigned\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetCallInfo_ContextVar(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The variable name to where the context of the current call will be assigned\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetCallInfo_ExtensionVar(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The variable name to where the extension of the current call will be assigned\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetCallInfo_DialedNumber(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The variable name to where the dialed number (DNID) of the current call will be assigned\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetCallInfo_PriorityVar(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The variable name to where the priority of the current call will be assigned\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetCallInfo_StateVar(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The variable name to where the state (see below) of the current call will be assigned.\\r\\n * 0 Channel is down and available\\r\\n * 1 Channel is down, but reserved\\r\\n * 2 Channel is off hook\\r\\n * 3 Digits (or equivalent) have been dialed\\r\\n * 4 Line is ringing\\r\\n * 5 Remote end is ringing\\r\\n * 6 Line is up\\r\\n * 7 Line is busy \",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetCallInfo_UniqueIdVar(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The variable name to where the unique ID of the current call will be assigned.\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetCallInfo_Ani2Var(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The variable name to where the ani2 info of the current call will be assigned\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetCallInfo_Rdnis(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The variable name to where the forwarding number (RDNIS) of the current call will be assigned\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetCallInfo_Type(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The variable name to where the call type (e.g. SIP) of the current call will be assigned\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getPlayMusicOnHold_HoldClass(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The Asterisk music class to play.\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getPromptGetDigits_Filename(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"Prompt Filename\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The audio prompt file name that will be played\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"com.safi.workshop.sheet.PromptChooserDynamicValueEditorPage\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getPromptGetDigits_VariableName(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The variable name to where digits pressed will be assigned\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getStreamAudioExtended_Filename(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"Prompt Filename\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The audio prompt file name that will be played\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"com.safi.workshop.sheet.PromptChooserDynamicValueEditorPage\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getDial_OutgoingChannels(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"Array of channel names to attempt to dial\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\t\t\t\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getBackground_Filenames(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"Array file names to play\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getSoftHangup_ChannelName(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"Name of the channel to hangup\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getPickupChan_Channels(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"An array of channel names. First one ringing will be chosen\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getBridge_Channel1(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"Name of channel1\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getBridge_Channel2(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"Name of channel2\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getPlaceCall_Extension(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"Extension to call\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getPlaceCall_Context(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"Destination context \",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getPlaceCall_CallerId(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"CallerID to use for the call\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getVoicemail_Mailbox(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"an array of mailbox identifiers\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getVoicemailMain_Mailbox(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the mailbox name\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getVoicemailMain_DefaultFolder(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the mailbox folder name to default to. Default is \\'INBOX\\'\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getVMAuthenticate_Mailbox(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the mailbox name\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getMeetMe_ConferenceNumber(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the conference number\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getMeetMe_Pin(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the optional conference pin\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getMeetMeAdmin_ConferenceNumber(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the conference number\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getMeetMeAdmin_User(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the user at which the command will targeted (if applicable)\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getMeetMeCount_ConferenceNumber(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the conference number\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getMeetMeCount_VariableName(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the name of the variable in which to store the count\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\t\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetAvailableChannel_Channels(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the array of channels that will be iterated over\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getGetAvailableChannel_VariableName(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the name of the variable in which to store the name of the first available channel\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getSetGlobalVariable_Value(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the value to be assigned to the asterisk global variable\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getFestival_Text(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the text to be vocalized\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getPlaytones_Tones(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the tones or tone name to play\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getChanSpy_ChannelnamePrefix(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the prefix of the channel name to spy on\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getDictate_Directory(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the directory in which to store the audio files\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getDictate_Filename(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the filename (prefix) to use for the recorded files\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getExtensionSpy_Extension(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the extension of the channel name to spy on\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getExtensionSpy_Context(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The context of the channel to spy on\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getExtensionSpy_ChannelName(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the name of the channel name to spy on\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getMixMonitor_Filename(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the filename (prefix) to use for the recorded files\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getMonitor_FilenamePrefix(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the filename (prefix) to use for the recorded files\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getDirectory_VMContext(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the voicemail context\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getDirectory_DialContext(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"the dialed context\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getExtensionTransfer_Context(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The context of the current call will be set to this text value.\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getExtensionTransfer_Extension(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The context of the current call will be set to this text value.\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\r\n\t\taddAnnotation\r\n\t\t (getExtensionTransfer_Options(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"A string containing Asterisk flags and parameters to be applied to the \\'Dial\\' command\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getExtensionTransfer_ChannelType(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"LiteralText\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"It should be one of the registered channel types, such as \\\"Zap\\\", \\\"SIP\\\", \\\"IAX2\\\", etc\",\r\n\t\t\t \"expectedReturnType\", \"Channel Type\",\r\n\t\t\t \"helperClass\", \"com.safi.workshop.sheet.ChannelTypeDVEP\",\r\n\t\t\t \"enumeratedValues\", \"Local, SIP, Zap, IAX2, MGCP, H.323, Modem, Phone, CAPI, ALSA, Skinny\"\r\n\t\t });\t\t\r\n\t\taddAnnotation\r\n\t\t (getManagerAction_ManagerResponse(), \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"type\", \"VariableName\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The assignee variable\",\r\n\t\t\t \"expectedReturnType\", \"Object\",\r\n\t\t\t \"helperClass\", \"\"\r\n\t\t });\t\t\t\t\r\n\t\taddAnnotation\r\n\t\t (audioFileItemEClass, \r\n\t\t source, \r\n\t\t new String[] {\r\n\t\t\t \"superProperty\", \"dynamicValue\",\r\n\t\t\t \"type\", \"Prompt Filename\",\r\n\t\t\t \"isTypeLocked\", \"false\",\r\n\t\t\t \"description\", \"The audio prompt file name that will be played\",\r\n\t\t\t \"expectedReturnType\", \"Text\",\r\n\t\t\t \"helperClass\", \"com.safi.workshop.sheet.PromptChooserDynamicValueEditorPage\"\r\n\t\t });\t\r\n\t}", "title": "" }, { "docid": "5219db05b290cf1ade67b0eba4fb7353", "score": "0.4660875", "text": "public interface QuestionAnnotation {\n}", "title": "" }, { "docid": "02a554abe55af65e39e47b071cda3159", "score": "0.46563554", "text": "Builder<T> annotateType(AnnotationDescription... annotation);", "title": "" }, { "docid": "28450000f954dc6a6f059cbf2a6fad5c", "score": "0.46438646", "text": "public ConsumerMultiRecordEntryPointInterceptor(TraceContext traceContext, MethodDescriptor methodDescriptor, int parameterIndex) {\n super(traceContext, methodDescriptor, parameterIndex);\n }", "title": "" }, { "docid": "4e7612c6756a45f496e680fed474eed9", "score": "0.46396312", "text": "public String param(int index) {\r\n return param(index, new StringRepr());\r\n }", "title": "" }, { "docid": "62aba5bd9b18067ace734bae65aeb548", "score": "0.46284395", "text": "public Builder addParam(\n int index, com.mysql.cj.x.protobuf.MysqlxExpr.Expr value) {\n if (paramBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureParamIsMutable();\n param_.add(index, value);\n onChanged();\n } else {\n paramBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" } ]
263dcb9838302d75cdd3db372cfbdb5b
Inflate the layout for this fragment
[ { "docid": "859c1725980dbf1670026c7b0d6c0363", "score": "0.0", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_albums, container, false);\n }", "title": "" } ]
[ { "docid": "726a37df904bcdd4ebbe2d72a17d7ae6", "score": "0.6869027", "text": "@Override\n\tprotected int initLayout() {\n\t\treturn R.layout.fragment_my;\n\t}", "title": "" }, { "docid": "640e442841b6d1efbd06df59f42e7cdf", "score": "0.68370074", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View layout = inflater.inflate(R.layout.post_room_step_4_view, container, false);\n initControl(layout);\n\n //Lấy context của fragment\n postRoom = (postRoomAdapterUpdate) getContext();\n\n roomModel = postRoom.returnRoomModel();\n\n initData();\n\n return layout;\n }", "title": "" }, { "docid": "17f201a47a1c347f133b35fb07e0f1ef", "score": "0.6775612", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v =inflater.inflate(R.layout.fragment_visualizer, container, false);\n mBeanSpinner = (Spinner)v.findViewById(R.id.visualizer_spinner_bean);\n mGraph = (XYPlot)v.findViewById(R.id.visualizer_graph);\n mTargetBounds = new SimpleXYSeries[4];\n setupGraph();\n setupSpinner();\n return v;\n }", "title": "" }, { "docid": "23aa6f5235a9a24edfc5ea820ee6927c", "score": "0.6770762", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_teacher_roll_call, container, false);\n try {\n initUI(rootView);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return rootView;\n }", "title": "" }, { "docid": "12cbde69c7b940009d2c46e67c0b7be8", "score": "0.67691296", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.giphy_details_fragment, container, false);\n }", "title": "" }, { "docid": "a80f32d28b0a5c267a116fef9c4be05d", "score": "0.67480445", "text": "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.fragment_feed, container, false);\r\n//\t\tmGridView = (GridView) view.findViewById(R.id.fragment_feed_gridview);\r\n\t\tmGridView = (ListView) view.findViewById(R.id.fragment_feed_gridview);\r\n//\t\tmProgress = (ProgressBar)view.findViewById(R.id.fragment_feed_progress);\r\n\t\tmProgress = ((LayoutInflater)getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.item_footerview, null, false);\r\n\t\tProgressBar mProgressBar = (ProgressBar)mProgress.findViewById(R.id.fragment_feed_group_progress);\r\n\t\tmProgressBar.getIndeterminateDrawable().setColorFilter(\r\n\t getResources().getColor(R.color.background_actionbar),\r\n\t android.graphics.PorterDuff.Mode.SRC_IN);\r\n\t\treturn view;\r\n\t}", "title": "" }, { "docid": "be52f0352d9cc77a3631abb05a4f7dc4", "score": "0.6744868", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n root = inflater.inflate(R.layout.fragment_bookmark_details, container, false);\n setupViews();\n return root;\n }", "title": "" }, { "docid": "794b22bd558e8257dd59e5dcc8242018", "score": "0.67373365", "text": "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.feed_fragment, container, false);\n }", "title": "" }, { "docid": "95dccff49b6b7ec70549f91f49d0946f", "score": "0.6715155", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflatedView = inflater.inflate(R.layout.fragment_profile, container, false);\n\n mAvatarImage = (ImageView) inflatedView.findViewById(R.id.profile_fragment_avatar_image);\n mDisplayName = (TextView) inflatedView.findViewById(R.id.profile_fragment_display_name);\n mFullName = (TextView) inflatedView.findViewById(R.id.profile_fragment_full_name);\n mFriendRequestGroup = (LinearLayout) inflatedView.findViewById(R.id.profile_fragment_friend_request_group);\n mFriendRequestBtn = (Button) inflatedView.findViewById(R.id.profile_fragment_friend_request_btn);\n mFriendRequestBtn.setCompoundDrawablePadding(16);\n\n getUserDataAndSetupUI(mUserId);\n\n return inflatedView;\n }", "title": "" }, { "docid": "0fb930c6a7338b568b5ac61ac396a75f", "score": "0.67150235", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_send_crypto, container, false);\n ids();\n setup();\n return view;\n }", "title": "" }, { "docid": "43fa464e0d150a61f9557e38738d4902", "score": "0.67036974", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_chart_body_data, container, false);\n }", "title": "" }, { "docid": "27440f562d41e544f74a36ee7b20e280", "score": "0.66939664", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_friends, container, false);\n }", "title": "" }, { "docid": "7e2af2fbd670db173f27535000b78ec1", "score": "0.6693437", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_body_part, container, false);\n\n\n }", "title": "" }, { "docid": "9310b161973a4a98815447a34a6c6bd9", "score": "0.6685348", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n\n }", "title": "" }, { "docid": "ba00f9800e850910c4cd1ad61e9f7edf", "score": "0.6680965", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_more_friend, container, false);\n initVariables();\n initUI(view);\n getNonFriends();\n return view;\n }", "title": "" }, { "docid": "0aca321f323c5ccb8a2442454cb370bb", "score": "0.6680944", "text": "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "title": "" }, { "docid": "d15d308ba3090ae175358cb66504cb19", "score": "0.66788864", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_control, container, false);\n\n ivPlay = (ImageButton) v.findViewById(R.id.ivRecord);\n ibFlag = (ImageButton) v.findViewById(R.id.ibFlag);\n rippleBackground = (RippleBackground) v.findViewById(R.id.content);\n\n transcriptSnippets = new ArrayList<>();\n flags = new ArrayList<>();\n\n setupListeners();\n return v;\n }", "title": "" }, { "docid": "1a534edb6e785033bf19424af27455e6", "score": "0.66739833", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_friend, container, false);\n addControl(view);\n addEvent(view);\n return view;\n }", "title": "" }, { "docid": "4a184e8549c9e754030901ddc65feca0", "score": "0.66666245", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_lists_feed, container, false);\n }", "title": "" }, { "docid": "111ace47e34168571680ded67ff40091", "score": "0.6658598", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_water_l, container, false);\n getViewContent(view);\n setEvent();\n setData(1);\n return view;\n }", "title": "" }, { "docid": "01dbfb42a7c73acd5cd963e857fdb0cb", "score": "0.6650287", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\t// TODO Auto-generated method stub\n\t\tTAG = \"MainBRightUpQuickFragment\";\n\t\tLog.d(TAG, \"onCreateView\");\n\t\tmRoot = inflater.inflate(R.layout.rightup_main_b_quick, null);\n\t\tInitResource();\n\t\tInitValuables();\n\t\tInitButtonListener();\n\n\t\treturn mRoot;\n\t}", "title": "" }, { "docid": "8aa1c1efbf76eaf585cf2a57fc9dd382", "score": "0.66452295", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mLayout = inflater.inflate(R.layout.fragment_guest_list, container, false);\n initializeView();\n return mLayout;\n }", "title": "" }, { "docid": "31ae147c9d91f560dd9d589683a3378d", "score": "0.66400325", "text": "@Override\n\tprotected View initViews(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tlayout = inflater.inflate(layoudi, null);\n\t\tlistView = (ListView) layout.findViewById(R.id.frag4_lv);\n\t\tprogressBar = (ProgressBar) layout.findViewById(R.id.frag4_pb);\n\t\tnodata_tv = (TextView) layout.findViewById(R.id.nodata_textView1);\n\t\tnodata_layout = layout.findViewById(R.id.nodata_layout);\n\t\tconvers = new HashMap<String, Conversation>();\n\t\treturn layout;\n\t}", "title": "" }, { "docid": "a56584edc6eaa033245ed53924f6178a", "score": "0.6639572", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_all_document_upload, container, false);\n ids();\n setup();\n setAdapter();\n return view;\n }", "title": "" }, { "docid": "a7ce54cec29abcc3e7b88056b00a6e52", "score": "0.66339695", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_a_d_s, container, false);\n }", "title": "" }, { "docid": "25c109792dd96b8eed642113b0da6f14", "score": "0.66304594", "text": "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\tBundle savedInstanceState) {\n\t\t\treturn inflater.inflate(R.layout.nine_point_layout, container, false);\n\t\t}", "title": "" }, { "docid": "74f3adee6423a452e9d5cc10b4cc0851", "score": "0.6629289", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView= inflater.inflate(R.layout.fragment_room, container, false);\n prepareButtons(rootView);\n return rootView;\n }", "title": "" }, { "docid": "b6ec86248645d0b0addf6a8249ef3aee", "score": "0.66269654", "text": "@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_retrofit, container, false);\r\n\r\n initializeViews(rootView);\r\n\r\n return rootView;\r\n }", "title": "" }, { "docid": "83bd6d860096870029be9d11f14ebaca", "score": "0.6621646", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.fragment_uploading_document, container, false);\n ids();\n setup();\n feedback();\n return view;\n }", "title": "" }, { "docid": "29bad1108452994a52595f5b00efce75", "score": "0.6617877", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n myRealm = new MyRealm(SummaryFrag.this);\n vCall = new VollyCall(getContext(), SummaryFrag.this);\n// to get value from api\n vCall.getDataFromServer(mUrl);\n\n View mView = inflater.inflate(R.layout.fragment_summary, container, false);\n init(mView);\n return mView;\n }", "title": "" }, { "docid": "f2ad3320f0d6b32bb62a00a2d8c07e61", "score": "0.6614288", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_batch_summary, container, false);\n }", "title": "" }, { "docid": "928af9a4ff59f32ab06f20e1e03a8183", "score": "0.6613613", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_health_data, container, false);\n }", "title": "" }, { "docid": "e8f5ac2a62bc8ea9961f44c6b3fe9307", "score": "0.66126245", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.beauty_collect_fragment, null);\n\t}", "title": "" }, { "docid": "74f9ce3b3b03792ce7d62c07e24c4a7a", "score": "0.65999526", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_blank_2, container, false);\n persenter = new RecommendPersenter(this);\n initView(view);\n initDate();\n return view;\n }", "title": "" }, { "docid": "42eab2f37aae50fb6baebcafe0375f45", "score": "0.65987784", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_inbox, container, false);\n bindWidget(view);\n return view;\n }", "title": "" }, { "docid": "a31c80f174a0a19bc6dbc0acd1d60f55", "score": "0.6596519", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment_event_, container, false);\n }", "title": "" }, { "docid": "3be5004c3c234e97a07fddda3ee11498", "score": "0.65961367", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View layout = inflater.inflate(R.layout.fragment_verified, container, false);\n\n ButterKnife.bind(this,layout);\n\n //initializeLayout();\n\n return layout;\n }", "title": "" }, { "docid": "f39bd71cc69f150ee390d6a01a551fe8", "score": "0.65930724", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_input_data_guru_admin, container, false);\n }", "title": "" }, { "docid": "7d9b574967623663a7623aeb85a09b51", "score": "0.65904915", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_main, container, false);\n\n srl_main = view.findViewById(R.id.srl_main);\n\n tv_date = view.findViewById(R.id.tv_date);\n rv_mainData = view.findViewById(R.id.rv_mainData);\n cl_mainLoadingOverlay = view.findViewById(R.id.cl_mainLoadingOverlay);\n cl_countryLoadingOverlay = view.findViewById(R.id.cl_countryLoadingOverlay);\n rv_countries = view.findViewById(R.id.rv_countries);\n return view;\n }", "title": "" }, { "docid": "325dac69b5573cf4352c0dc7d83f838e", "score": "0.65883106", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n root = inflater.inflate(R.layout.fragment_learners, container, false);\n mProgressBar = root.findViewById(R.id.lProgressBar);\n apiCall();\n\n return root;\n }", "title": "" }, { "docid": "d0fc01762a78fb3515b6e07fe87d614e", "score": "0.65825564", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_result, container, false);\n init(view);\n registerListeners();\n tvTitle.setText(\"Title: \" + title);\n tvDate.setText(\"Date: \" + date);\n tvAmount.setText(\"Amount: \" + amount);\n tvCategory.setText(\"Category: \" + category);\n tvType.setText(\"Type: \" + type);\n ivCategory.setBackground(getResources().getDrawable(imageID));\n return view;\n }", "title": "" }, { "docid": "ed54f0936f2cb3c2e315b2717d1d5aff", "score": "0.65825164", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mLayout = inflater.inflate(R.layout.fragment_for_you, container, false);\n loadingIndicator = mLayout.findViewById(R.id.loadingIndicator);\n loadingIndicator.setVisibility(View.VISIBLE);\n\n contentLayout = mLayout.findViewById(R.id.linearLayout);\n\n if (CourseManager.sharedInstance().isLoaded()) {\n getRecommendationsAndBuildLayout();\n } else {\n CourseManager.sharedInstance().waitForLoad(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n getRecommendationsAndBuildLayout();\n return null;\n }\n });\n }\n\n return mLayout;\n }", "title": "" }, { "docid": "360e5339dc0f909944623d9e8bfc8ae3", "score": "0.657774", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.activity_indian_stats, container, false);\n }", "title": "" }, { "docid": "d3f82bde0eb8d4ef7ed25b7fbde0b77c", "score": "0.6573685", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_job_wall, container, false);\n }", "title": "" }, { "docid": "20690beab2507ecdf3d78470f29941e2", "score": "0.6572036", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_booking_review, container, false);\n }", "title": "" }, { "docid": "82bb7290ac093dc3089181b56fbbc208", "score": "0.6571318", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rmplab2, container, false);\n }", "title": "" }, { "docid": "5db85c1b66016a7133485103a406e4fa", "score": "0.6566752", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.content_baglog_treatment, parent, false);\n }", "title": "" }, { "docid": "72ba77446d44e3783f84c93e2b7d274a", "score": "0.6565517", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_talent_bank4, container, false);\n init();\n return mView;\n }", "title": "" }, { "docid": "833b32d449fb2cc8ee852953597db449", "score": "0.6563812", "text": "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\tBundle savedInstanceState) {\n\t\t\treturn inflater.inflate(R.layout.boardlayout, container, false);\n\t\t}", "title": "" }, { "docid": "bdbfd07049f564c36e7bfc64ae9446ba", "score": "0.65615535", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friends, container, false);\n }", "title": "" }, { "docid": "e9a4728db5d7cd42017d601db1e9bc1d", "score": "0.65585846", "text": "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_tri_hour_forecast, container, false);\n }", "title": "" }, { "docid": "4bb6706546e01d60207b663817b3f6db", "score": "0.6551488", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.bands_view, container, false);\n }", "title": "" }, { "docid": "9e889ba5d6b60b118ec84399c3ed85a8", "score": "0.65467024", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){\n\t\tView v= inflater.inflate(R.layout.weather_day_fragment, container,false);\n\n\t\t//get references to the textViews\n\t\tmPlaceTextview = (TextView) v.findViewById(R.id.placeTextView);\n\t\tmDayTextView = (TextView) v.findViewById(R.id.dayTextView);\n\t\tmMaxTempTextview = (TextView) v.findViewById(R.id.maxTempTextView);\n\t\tmMinTextView = (TextView) v.findViewById(R.id.minTempTextView);\n\t\tmCreditsTextView = (TextView) v.findViewById(R.id.yr);\n\t\tmMessageTextview = (TextView) v.findViewById(R.id.MessageTextView);\n\t\t\n\t\tmImageView = (ImageView) v.findViewById(R.id.imageView);\n\t\treturn v;\n\t}", "title": "" }, { "docid": "56e3be5a6b2f8765972535776541bd43", "score": "0.65459454", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v= inflater.inflate(R.layout.fragment_audio_fregment, container, false);\n\n\n return v;\n }", "title": "" }, { "docid": "3fa52ffe81dfc9fa005d1558e545a5c5", "score": "0.65440345", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_sponsors_detail, container, false);\n this.name = view.findViewById(R.id.sponsors_item_detail_fragment_name);\n this.description = view.findViewById(R.id.sponsors_item_detail_fragment_description);\n this.image = view.findViewById(R.id.sponsors_item_detail_fragment_image);\n return (view);\n }", "title": "" }, { "docid": "5f4f55bf3d04d32079673048878ab526", "score": "0.6542053", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed_and_dead_form, container, false);\n }", "title": "" }, { "docid": "cee4511d64e2b811c1d3c7080c5b5ce8", "score": "0.6538992", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_zui_xin, container, false);\n }", "title": "" }, { "docid": "56d5edb8ded679b4e463978555c52e9b", "score": "0.65368974", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_star, container, false);\n initView(inflate);\n return inflate;\n }", "title": "" }, { "docid": "6980cec1517ad3c1be5c2a0e5f9ea0aa", "score": "0.6536592", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.event_detail_map_fragment, container, false);\n return view;\n }", "title": "" }, { "docid": "8c2a6b25d99b1eece230c42cd18df8cf", "score": "0.65345055", "text": "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.calendar_slots,container,false);\n\n }", "title": "" }, { "docid": "246ddbddb1ecc33accfc421450647213", "score": "0.653012", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n vRoot = inflater.inflate(R.layout.fragment_place, container, false);\n init();\n getData();\n return vRoot;\n }", "title": "" }, { "docid": "7031066da4ee3ee602d8ffdc5dccf8d6", "score": "0.6527887", "text": "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.info_fragment, container, false);\r\n\t\t//this.nameEltv = (TextView) view.findViewById(R.id.testtv);\r\n\t\t//nameEltv.setText(s);\r\n\t\tthis.placenameElFragmenttv = (TextView) view.findViewById(R.id.placeNameFragmentTextView);\r\n\t\tthis.infoFragmenttv = (TextView) view.findViewById(R.id.infoFragmentTextView);\r\n\t\tthis.telFragmenttv = (TextView) view.findViewById(R.id.telFragmentTextView);\r\n\t\tthis.linkFragmenttv = (TextView) view.findViewById(R.id.linkFragmentTextView);\r\n\t\tthis.fbLinkFragmenttv = (TextView) view.findViewById(R.id.fbLinkFragmentTextView);\r\n\t\tthis.emailFragmenttv = (TextView) view.findViewById(R.id.emailFragmentTextView);\r\n\t\tthis.telFragmentButton = (Button) view.findViewById(R.id.telFragmentButton);\r\n\t\tthis.emailFragmentButton = (Button) view.findViewById(R.id.emailFragmentButton);\r\n\t\tthis.infosourcetv = (TextView) view.findViewById(R.id.infosourcetv);\r\n\t\t\r\n\t\treturn view;\r\n\t}", "title": "" }, { "docid": "4a13806c8cf68b84516514917cf1627c", "score": "0.65268326", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_buy_in_product, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "title": "" }, { "docid": "0df4abf4b64c266b2b419f298e891325", "score": "0.65257907", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n fragmentRootView= inflater.inflate(R.layout.fragment_select_payment_method_corporate, container, false);\n\n\n fetchViewsFromXml();\n setAmountPayable();\n setClickListeners();\n\n return fragmentRootView;\n }", "title": "" }, { "docid": "d31c8fc9753c26a5190f6e3e6128cd19", "score": "0.652107", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v;\n\n v = inflater.inflate(R.layout.fragment_planet, container, false);\n TextView planetName = (TextView) v.findViewById(R.id.textViewNamn);\n // Book b = (Book) getArguments().getSerializable(\"book\");\n FragmentList fl = new FragmentList();\n planetName.setText(fl.getName());\n TextView planetStats = (TextView) v.findViewById(R.id.textViewStats);\n planetStats.setText(fl.getStats());\n TextView planetFacts = (TextView) v.findViewById(R.id.textViewInfo);\n planetFacts.setText(fl.getFacts());\n ImageView planetImage = (ImageView) v.findViewById(R.id.planetImage);\n planetImage.setImageDrawable(fl.getImage());\n return v;\n }", "title": "" }, { "docid": "73313a24e57acdf1ccb56477f5114971", "score": "0.6520866", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_profile, parent, false);\n }", "title": "" }, { "docid": "82e5c4715fc46143a919a9c25173b2d0", "score": "0.651814", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\t\t\t\t Bundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.fragment_folder_recordings, container, false);\n\t}", "title": "" }, { "docid": "e04e0e12e1c397407e1c491d46691cd3", "score": "0.6514693", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_circle_detail, container, false);\n }", "title": "" }, { "docid": "43b64041f8e0dc0fa73f4697cab094f6", "score": "0.65142286", "text": "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n //View view = View.inflate(getActivity(),R.layout.fragment_home3,null);\n View view = inflater.inflate(R.layout.fragment_skill_collection, container, false);\n ButterKnife.bind(this, view);\n initView();\n fragment = this;\n return view;\n }", "title": "" }, { "docid": "f96f4f9ec291c36947c5210f18ef7c5a", "score": "0.6511711", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_number_of_packets, container, false);\n }", "title": "" }, { "docid": "88632e934517ad18964fb21b9d905304", "score": "0.6509977", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_juneichuanwen_xieban, container, false);\n unbinder = ButterKnife.bind(this, view);\n guid = getArguments().getString(\"guid\");\n actor = getArguments().getString(\"actor\");\n quanXian = getArguments().getString(\"quanxian\");\n Map<String, CommentLinearLayout> layoutMap = new HashMap<>();\n layoutMap.put(\"处长批示\", clChuzhangpishi);\n layoutMap.put(\"局领导批示\", clJulingdao);\n layoutMap.put(\"其他人意见\", clQitarenyijian);\n List<String> frames = new ArrayList<>();\n frames.add(\"处长批示\");\n frames.add(\"局领导批示\");\n frames.add(\"其他人意见\");\n if (actor.equals(\"todo\") || actor.equals(\"待办\")) {//默认共公文拷贝隐藏,如果是待办状态,显示按钮\n gongwenCopyJuneichuanwen.setVisibility(View.VISIBLE);\n }\n initData(layoutMap, frames, guid, formName, quanXian);\n\n getData();\n return view;\n }", "title": "" }, { "docid": "ed292c3dfeb5c9ae9c5028ab392514d4", "score": "0.6508643", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_list_wajib, container, false);\n }", "title": "" }, { "docid": "9236934b27b91fccffc551f255232dcc", "score": "0.65067166", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_info_batik_jakarta1, container, false);\n\n\n\n }", "title": "" }, { "docid": "82ba1a66cfae76397b231941d3713136", "score": "0.6503817", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_lead, container, false);\n initView(view);\n titleTv.setText(\"Lead data\");\n return view;\n }", "title": "" }, { "docid": "b665e2c1b6c4e649b7119b64a80b94cf", "score": "0.65036887", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_appointment_details, container, false);\n }", "title": "" }, { "docid": "33cb6b1ac5ecfcdac9d4e500ed21590a", "score": "0.64994776", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_paipinmiaoshu, container, false);\n }", "title": "" }, { "docid": "7f62a1521c0083315046dec87e66804f", "score": "0.6499355", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_sub_wise_attendance, container, false);\n\n Init(view);\n\n// API_call_Subject_Wise_Attendance();\n\n return view;\n }", "title": "" }, { "docid": "6006dc6bb321310cae3b6c1bb090fe09", "score": "0.649723", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.calc_fragment, container, false);\t\t\n\t}", "title": "" }, { "docid": "0bb86aa555ffc8f8939b4d2fc50650ff", "score": "0.64945203", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_q2, container, false);\n }", "title": "" }, { "docid": "5b511a52c7afac8b32f8526876215ac0", "score": "0.64939874", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_add_friend, container, false);\n }", "title": "" }, { "docid": "3789c0efefdafd7b37ad335b8fe3ab0f", "score": "0.64934206", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n vRoot = inflater.inflate(R.layout.fragment_contact, container, false);\n init();\n getData();\n return vRoot;\n }", "title": "" }, { "docid": "4f4e258187a1ac0eefa56a12b7303299", "score": "0.6493105", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_wenbrigade, container, false);\n initView(inflate);\n return inflate;\n\n }", "title": "" }, { "docid": "39b62eadb347a58ca5b104b41997d229", "score": "0.6489239", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n context = getActivity();\n view = inflater.inflate(R.layout.fragment_store_room, container, false);\n init();\n return view;\n }", "title": "" }, { "docid": "e5223c548ca0d178a4837ff3ceb8b8d7", "score": "0.64892006", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_task_detail, container, false);\n setupUI(view);\n return view;\n }", "title": "" }, { "docid": "0084d3c61d36b8864e8609a39195c643", "score": "0.64884084", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_sabtu, container, false);\n }", "title": "" }, { "docid": "8f1d52f1517df56392f62d89e3034802", "score": "0.64883035", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.podcast_layout, container, false);\n\n\t\t// recuperation des elements graphiques\n\t\tloadingLayout = (LinearLayout) view.findViewById(R.id.loadingLayout);\n\t\tpodcastListView = (ListView) view.findViewById(R.id.podcastsListView);\n\t\tmessageTextView = (TextView) view.findViewById(R.id.messageTextView);\n\n\t\tloadPodcast();\n\n\t\treturn view;\n\t}", "title": "" }, { "docid": "ca53eb6415d5f3d0c26680553ffecb1e", "score": "0.6485106", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mine_ask, container, false);\n }", "title": "" }, { "docid": "7eeef7f8997e502069dfc80de608d636", "score": "0.64835215", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_collect, container, false);\n initView(inflate);\n return inflate;\n\n }", "title": "" }, { "docid": "200a6367ba835511db1529e4e0f2ec7f", "score": "0.6481943", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_task_detail_image, container, false);\n }", "title": "" }, { "docid": "fba7984689a6ce5df51d95c53189fb51", "score": "0.6481476", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "title": "" }, { "docid": "750f17b11229eab54628fde7980c4ca3", "score": "0.64802086", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_inform, container, false);\n }", "title": "" }, { "docid": "c2caa33e23663b419ff07cbb89dfce86", "score": "0.6478119", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_xac_nhan, container, false);\r\n }", "title": "" }, { "docid": "ce10ad55a059e560a437a7c5be1a8471", "score": "0.6475254", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_queue, container, false);\n }", "title": "" }, { "docid": "d296b2b2db0c0f7fed8af5f037ea4315", "score": "0.64722896", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.lieux_fragment, container, false);\n }", "title": "" }, { "docid": "889ce2936f3bfbd4f65d309bbe03fc4c", "score": "0.6471639", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mp3, container, false);\n }", "title": "" }, { "docid": "24eba0afd41238717a21773262e584f1", "score": "0.6471177", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_options_bottom_sheet, container, false);\n }", "title": "" }, { "docid": "c52c5e08b83d3f20c6932d4c8d4c4a3d", "score": "0.6469961", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_frag1, container, false);\n configureImageButton();\n return v;\n }", "title": "" }, { "docid": "ebca000e538f769cf401a7383562e840", "score": "0.64682347", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_radio1, container, false);\n }", "title": "" }, { "docid": "022761c2f3703cd2ba5df57c2c459fb5", "score": "0.6466944", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_instructions, container, false);\n }", "title": "" }, { "docid": "aa2c1fbc303b0a8cf26be7568d22df0a", "score": "0.6465308", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n return inflater.inflate(R.layout.fragment_movie_details, container, false);\n }", "title": "" }, { "docid": "d2e09c78a149f69ef60e19b39d5493fd", "score": "0.64605975", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_maps_frag_holder, container, false);\n }", "title": "" } ]
c8909349ce34be989ab647a43b6d2478
Unsets the "description" element
[ { "docid": "90f49e26c43636ef555007effac3f03d", "score": "0.83922786", "text": "public void unsetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DESCRIPTION$0, 0);\n }\n }", "title": "" } ]
[ { "docid": "113f8140e29376df4967b0633d5f9768", "score": "0.84297734", "text": "public void unsetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DESCRIPTION$4, 0);\n }\n }", "title": "" }, { "docid": "6de9a41961e7f2c3fd5f998586966429", "score": "0.8405031", "text": "public void unsetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DESCRIPTION$2, 0);\n }\n }", "title": "" }, { "docid": "6de9a41961e7f2c3fd5f998586966429", "score": "0.8405031", "text": "public void unsetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DESCRIPTION$2, 0);\n }\n }", "title": "" }, { "docid": "cc355c3a48f87c20078ee2ac0533064a", "score": "0.84011614", "text": "void unsetDescription();", "title": "" }, { "docid": "cc355c3a48f87c20078ee2ac0533064a", "score": "0.84011614", "text": "void unsetDescription();", "title": "" }, { "docid": "cc355c3a48f87c20078ee2ac0533064a", "score": "0.84011614", "text": "void unsetDescription();", "title": "" }, { "docid": "fc4709d81b7f4903556913c428a2261a", "score": "0.8308922", "text": "public void clearDescription();", "title": "" }, { "docid": "b1b6d88a70e794c99b7a2ef559521aa4", "score": "0.7743518", "text": "void unsetDocumentDescription();", "title": "" }, { "docid": "bf2b42216965af821a81515249f5e968", "score": "0.76749146", "text": "public avro.Item.Builder clearDescription() {\n description = null;\n fieldSetFlags()[3] = false;\n return this;\n }", "title": "" }, { "docid": "27093484b4923a9ffb2c1e4e71451519", "score": "0.75827575", "text": "public void unsetDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(DESC$22);\r\n }\r\n }", "title": "" }, { "docid": "b191a3ebb179ead12e48d9f680667086", "score": "0.752654", "text": "public Builder clearDescription() {\n if (descriptionBuilder_ == null) {\n description_ = null;\n onChanged();\n } else {\n description_ = null;\n descriptionBuilder_ = null;\n }\n\n return this;\n }", "title": "" }, { "docid": "c9a642babeb8a814dfa8ecfa94c64bdf", "score": "0.7508569", "text": "public Builder clearDescription() {\n \n description_ = getDefaultInstance().getDescription();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "b8aa8ba6552549a370ea7d6742c4ae41", "score": "0.7504855", "text": "public Builder clearDescription() {\n\n\t\t\tdescription_ = getDefaultInstance().getDescription();\n\t\t\tonChanged();\n\t\t\treturn this;\n\t\t}", "title": "" }, { "docid": "4a83764552c751e909472be830d86bcb", "score": "0.7489258", "text": "public Builder clearDescription() {\n description_ = getDefaultInstance().getDescription();\n bitField0_ = (bitField0_ & ~0x00000040);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "07631c809bfef9b142f53ec3f8cfe229", "score": "0.748869", "text": "public Builder clearDescription() {\n description_ = getDefaultInstance().getDescription();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "07631c809bfef9b142f53ec3f8cfe229", "score": "0.748869", "text": "public Builder clearDescription() {\n description_ = getDefaultInstance().getDescription();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5d705108b2edb77428cbd6518bd4c5b1", "score": "0.7469218", "text": "public Builder clearDescription() {\n description_ = getDefaultInstance().getDescription();\n bitField0_ = (bitField0_ & ~0x00000010);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "299884960002a4720e24daafcac5111b", "score": "0.7444253", "text": "public Builder clearDescription() {\n description_ = getDefaultInstance().getDescription();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "299884960002a4720e24daafcac5111b", "score": "0.7444253", "text": "public Builder clearDescription() {\n description_ = getDefaultInstance().getDescription();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ba09f228cd05073e83c03fa9dd1d7861", "score": "0.7438793", "text": "public Builder clearDescription() {\n description_ = getDefaultInstance().getDescription();\n bitField0_ = (bitField0_ & ~0x00000010);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "544571d7fef64d8d12f25a18147243e6", "score": "0.74257386", "text": "public Builder clearDescription() {\r\n bitField0_ = (bitField0_ & ~0x00000200);\r\n description_ = getDefaultInstance().getDescription();\r\n onChanged();\r\n return this;\r\n }", "title": "" }, { "docid": "10bdfe1baad00510585b4b05ec57ad5b", "score": "0.7410259", "text": "public Builder clearDescriptionText() {\n bitField0_ = (bitField0_ & ~0x00000008);\n descriptionText_ = getDefaultInstance().getDescriptionText();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "44326aab8ef63cfbbe915262b81dfcfe", "score": "0.73473805", "text": "public Builder clearDescription() {\n bitField0_ = (bitField0_ & ~0x00000020);\n description_ = getDefaultInstance().getDescription();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8bca742d9175c8dc1bf6b64ae142de5e", "score": "0.73237747", "text": "public Builder clearDesc() {\r\n bitField0_ = (bitField0_ & ~0x00000020);\r\n desc_ = getDefaultInstance().getDesc();\r\n onChanged();\r\n return this;\r\n }", "title": "" }, { "docid": "55900e4b3335f70f6c377d7771533c2d", "score": "0.7286753", "text": "public Builder clearDescription() {\n \n description_ = getDefaultInstance().getDescription();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "55900e4b3335f70f6c377d7771533c2d", "score": "0.7286599", "text": "public Builder clearDescription() {\n \n description_ = getDefaultInstance().getDescription();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "55900e4b3335f70f6c377d7771533c2d", "score": "0.7286599", "text": "public Builder clearDescription() {\n \n description_ = getDefaultInstance().getDescription();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "55900e4b3335f70f6c377d7771533c2d", "score": "0.7286599", "text": "public Builder clearDescription() {\n \n description_ = getDefaultInstance().getDescription();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "55900e4b3335f70f6c377d7771533c2d", "score": "0.7286599", "text": "public Builder clearDescription() {\n \n description_ = getDefaultInstance().getDescription();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "55900e4b3335f70f6c377d7771533c2d", "score": "0.7286599", "text": "public Builder clearDescription() {\n \n description_ = getDefaultInstance().getDescription();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "55900e4b3335f70f6c377d7771533c2d", "score": "0.7286599", "text": "public Builder clearDescription() {\n \n description_ = getDefaultInstance().getDescription();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "55900e4b3335f70f6c377d7771533c2d", "score": "0.7286599", "text": "public Builder clearDescription() {\n \n description_ = getDefaultInstance().getDescription();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "55900e4b3335f70f6c377d7771533c2d", "score": "0.7286599", "text": "public Builder clearDescription() {\n \n description_ = getDefaultInstance().getDescription();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "55900e4b3335f70f6c377d7771533c2d", "score": "0.7286599", "text": "public Builder clearDescription() {\n \n description_ = getDefaultInstance().getDescription();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ba9fa646c452b514d1f63a09e82028d4", "score": "0.7191145", "text": "public void setNilDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DESCRIPTION$0);\n }\n target.setNil();\n }\n }", "title": "" }, { "docid": "fe877aed9d533426df5b5e0113c94cb5", "score": "0.70270026", "text": "public org.acalio.dm.model.avro.YChannel.Builder clearDescription() {\n description = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "title": "" }, { "docid": "0a5003c2fb2d4ad1700bf17cf47dae24", "score": "0.69933987", "text": "public com.yshi.avro.InnerRecord.Builder clearDesc() {\n desc = null;\n fieldSetFlags()[0] = false;\n return this;\n }", "title": "" }, { "docid": "fee51f9a1e77cc62a0067861b5efbcdf", "score": "0.67988306", "text": "public Builder clearDescriptionNull() {\n \n descriptionNull_ = false;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5b73297dcf89f572cde558b930c6e85e", "score": "0.67375755", "text": "public void xsetDescription(org.apache.xmlbeans.XmlString description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DESCRIPTION$0);\n }\n target.set(description);\n }\n }", "title": "" }, { "docid": "c9bc8770b6678c69a933de0444252f2b", "score": "0.6726361", "text": "public void xsetDescription(org.apache.xmlbeans.XmlString description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DESCRIPTION$4);\n }\n target.set(description);\n }\n }", "title": "" }, { "docid": "c9bc8770b6678c69a933de0444252f2b", "score": "0.6726361", "text": "public void xsetDescription(org.apache.xmlbeans.XmlString description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DESCRIPTION$4);\n }\n target.set(description);\n }\n }", "title": "" }, { "docid": "325f91079d5b4e00bd28afae30dc1310", "score": "0.6718557", "text": "public void xsetDescription(org.apache.xmlbeans.XmlString description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DESCRIPTION$2);\n }\n target.set(description);\n }\n }", "title": "" }, { "docid": "7cb1489ed597335f2091990d19fb5292", "score": "0.66598856", "text": "public void setDescription(String description) {\r\n this.description = description == null ? null : description.trim();\r\n }", "title": "" }, { "docid": "7cb1489ed597335f2091990d19fb5292", "score": "0.66598856", "text": "public void setDescription(String description) {\r\n this.description = description == null ? null : description.trim();\r\n }", "title": "" }, { "docid": "5bae771e6f9f5bf2a9a9a14a0c4012b8", "score": "0.66421115", "text": "public void setDescription(String description) {\r\n\t\tthis.description = description == null ? null : description.trim();\r\n\t}", "title": "" }, { "docid": "73cb9cb38af44c149906a8b6be9dba2d", "score": "0.6641273", "text": "public void setDescription(String description)\r\n {\r\n description=this.description;\r\n }", "title": "" }, { "docid": "e551bbbf519d2fab7b0529fc288fdd13", "score": "0.6579708", "text": "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "title": "" }, { "docid": "e551bbbf519d2fab7b0529fc288fdd13", "score": "0.6579708", "text": "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "title": "" }, { "docid": "e551bbbf519d2fab7b0529fc288fdd13", "score": "0.6579708", "text": "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "title": "" }, { "docid": "e551bbbf519d2fab7b0529fc288fdd13", "score": "0.6579708", "text": "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "title": "" }, { "docid": "e551bbbf519d2fab7b0529fc288fdd13", "score": "0.6579708", "text": "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "title": "" }, { "docid": "e551bbbf519d2fab7b0529fc288fdd13", "score": "0.6579708", "text": "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "title": "" }, { "docid": "e551bbbf519d2fab7b0529fc288fdd13", "score": "0.6579708", "text": "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "title": "" }, { "docid": "e551bbbf519d2fab7b0529fc288fdd13", "score": "0.6579708", "text": "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "title": "" }, { "docid": "e551bbbf519d2fab7b0529fc288fdd13", "score": "0.6579708", "text": "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "title": "" }, { "docid": "e551bbbf519d2fab7b0529fc288fdd13", "score": "0.6579708", "text": "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "title": "" }, { "docid": "e551bbbf519d2fab7b0529fc288fdd13", "score": "0.6579708", "text": "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "title": "" }, { "docid": "e551bbbf519d2fab7b0529fc288fdd13", "score": "0.6579708", "text": "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "title": "" }, { "docid": "e551bbbf519d2fab7b0529fc288fdd13", "score": "0.6579708", "text": "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "title": "" }, { "docid": "e551bbbf519d2fab7b0529fc288fdd13", "score": "0.6579708", "text": "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "title": "" }, { "docid": "e551bbbf519d2fab7b0529fc288fdd13", "score": "0.6579708", "text": "public void setDescription(String description) {\n this.description = description == null ? null : description.trim();\n }", "title": "" }, { "docid": "9229a81f6f3f4e086c8e429063c0eefd", "score": "0.6566526", "text": "public void setDescription(String description) {\n\t\tthis.description = description == null ? null : description.trim();\n\t}", "title": "" }, { "docid": "75e61f607ae32f3462a97a80c3bc2317", "score": "0.65400445", "text": "@Test\n\tpublic void testSetDescription_2()\n\t\tthrows Exception {\n\t\tModelElementImpl fixture = ModelElementImplFactory.createModelElementImpl4();\n\t\tString newDescription = \"\";\n\n\t\tfixture.setDescription(newDescription);\n\n\t\t\n\t}", "title": "" }, { "docid": "a087ed3e3fdaa4991f80f92a46e830ed", "score": "0.64942586", "text": "@Test\n\tpublic void testSetDescription_1()\n\t\tthrows Exception {\n\t\tModelElementImpl fixture = ModelElementImplFactory.createModelElementImpl3();\n\t\tString newDescription = \"\";\n\n\t\tfixture.setDescription(newDescription);\n\n\t\t\n\t}", "title": "" }, { "docid": "13d23ab05e61e5bfbc634b825d895eec", "score": "0.64789283", "text": "public void set_description(String desc) {\n if (has_desc) {\n this.desc = desc;\n }\n }", "title": "" }, { "docid": "8dc8d9ac45c0751f42a79175502f021d", "score": "0.6460923", "text": "public void setDescription(String desc) {\n description = desc;\n }", "title": "" }, { "docid": "d926b5f825a5f37be34a8402036360a2", "score": "0.6420479", "text": "void setDesc(String desc){\n\t\tdescription = desc;\n\t}", "title": "" }, { "docid": "39196ab2da29304e2ddea065ae992e7a", "score": "0.6400793", "text": "public Builder clearCharacteristicDescription() {\n if (characteristicDescriptionBuilder_ == null) {\n characteristicDescription_ = null;\n onChanged();\n } else {\n characteristicDescription_ = null;\n characteristicDescriptionBuilder_ = null;\n }\n\n return this;\n }", "title": "" }, { "docid": "144d1ba51f247619148a18d8da95b9d9", "score": "0.63980556", "text": "public void setDescription(String description) {\n this.description = new StringBuffer(description);\n }", "title": "" }, { "docid": "544c83536873f91452a8f5226babd50f", "score": "0.6331838", "text": "public void xsetDescription(au.gov.asic.types.fss.FssTransactionType.Description description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.fss.FssTransactionType.Description target = null;\n target = (au.gov.asic.types.fss.FssTransactionType.Description)get_store().find_element_user(DESCRIPTION$4, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.fss.FssTransactionType.Description)get_store().add_element_user(DESCRIPTION$4);\n }\n target.set(description);\n }\n }", "title": "" }, { "docid": "0677c3405a68934dfe04010aef68a4af", "score": "0.63281876", "text": "public void setDescription(String desc) {\n description = desc;\n }", "title": "" }, { "docid": "95a3bfe2a2141bb8e5274833eefdfe60", "score": "0.63270766", "text": "public void setDescription(String tmp) {\n this.description = tmp;\n }", "title": "" }, { "docid": "c91f18ceba76451caa0d200183ca0ee3", "score": "0.6305924", "text": "public void unsetExplanation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(EXPLANATION$30, 0);\n }\n }", "title": "" }, { "docid": "308bb907eef1568ca85a2d66219b050c", "score": "0.6299091", "text": "public Builder clearShortDesc() {\r\n bitField1_ = (bitField1_ & ~0x00000080);\r\n shortDesc_ = getDefaultInstance().getShortDesc();\r\n onChanged();\r\n return this;\r\n }", "title": "" }, { "docid": "61f39025df593ee967a3937b17c65c4e", "score": "0.6273179", "text": "public void setDescription(String description) {\r\n this.description = description;\r\n }", "title": "" }, { "docid": "61f39025df593ee967a3937b17c65c4e", "score": "0.6273179", "text": "public void setDescription(String description) {\r\n this.description = description;\r\n }", "title": "" }, { "docid": "61f39025df593ee967a3937b17c65c4e", "score": "0.6273179", "text": "public void setDescription(String description) {\r\n this.description = description;\r\n }", "title": "" }, { "docid": "61f39025df593ee967a3937b17c65c4e", "score": "0.6273179", "text": "public void setDescription(String description) {\r\n this.description = description;\r\n }", "title": "" }, { "docid": "61f39025df593ee967a3937b17c65c4e", "score": "0.6273179", "text": "public void setDescription(String description) {\r\n this.description = description;\r\n }", "title": "" }, { "docid": "b4779e952d54984e9094f432daa42bb1", "score": "0.6272456", "text": "public void setDescription(String description)\r\n\t{\r\n\t\tthis.description = description;\r\n\t}", "title": "" }, { "docid": "7cb685a60989109ea62f3659c789c97a", "score": "0.62693685", "text": "public void setDescription(String desc)\r\n {\r\n _description = desc;\r\n addField(\"x_description\", desc);\r\n }", "title": "" }, { "docid": "6bd3baad8da42e9c11152c04e2ca0942", "score": "0.62682253", "text": "public void setDescription(String description){\n this.description= description;\n }", "title": "" }, { "docid": "d26357eeb7cd02cc5cbd989d438716c0", "score": "0.6264822", "text": "public void setDescription (String description) {\n\t\tthis.description = description;\n\t}", "title": "" }, { "docid": "7f00db590753cb77e15f26200907bf2f", "score": "0.6260133", "text": "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "title": "" }, { "docid": "7f00db590753cb77e15f26200907bf2f", "score": "0.6260133", "text": "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "title": "" }, { "docid": "5e61df2143c6532cf70e5f4f8b3d984b", "score": "0.62552255", "text": "public void setDescription(String description) {\n this.mDescription = description;\n }", "title": "" }, { "docid": "637b9ec0a1be268ff2e95f7c5735063e", "score": "0.6245377", "text": "void setDescription(String newDesc) {\n this.description = newDesc;\n }", "title": "" }, { "docid": "f3f16f53947503d3ab4838fda8059bf6", "score": "0.6241432", "text": "public void setDescription(String description) {\n\t\tthis.description=description;\n\t}", "title": "" }, { "docid": "a79f651660c305cc4e67cb64f024b564", "score": "0.6225626", "text": "public void setDescription(String description) {\r\n \t\tfDescription = description;\r\n \t\tfDirty = true;\r\n \t}", "title": "" }, { "docid": "1faad710a2393fd323d379f01519bb0e", "score": "0.6224735", "text": "private void Clear() {\n DescText.setText(\"\");\n NameText.setText(\"\");\n LabText.setText(\"\");\n ExpíryText.setText(\"\");\n PriceText.setText(\"\"); \n TypeText.setText(\"\");\n }", "title": "" }, { "docid": "692d02a5a581e8c4d2c208e2503367b5", "score": "0.62201065", "text": "public void setDescription(java.lang.String description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESCRIPTION$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DESCRIPTION$0);\n }\n target.setStringValue(description);\n }\n }", "title": "" }, { "docid": "cacb592d46b36ba44be48b4200e5a6b1", "score": "0.6213134", "text": "public void setDescription(java.lang.String description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESCRIPTION$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DESCRIPTION$4);\n }\n target.setStringValue(description);\n }\n }", "title": "" }, { "docid": "cacb592d46b36ba44be48b4200e5a6b1", "score": "0.6213134", "text": "public void setDescription(java.lang.String description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESCRIPTION$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DESCRIPTION$4);\n }\n target.setStringValue(description);\n }\n }", "title": "" }, { "docid": "cacb592d46b36ba44be48b4200e5a6b1", "score": "0.6213134", "text": "public void setDescription(java.lang.String description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESCRIPTION$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DESCRIPTION$4);\n }\n target.setStringValue(description);\n }\n }", "title": "" }, { "docid": "11f4fa50fb83c7b3d4f7564949d86895", "score": "0.62130755", "text": "public void setDescription(java.lang.String description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESCRIPTION$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DESCRIPTION$2);\n }\n target.setStringValue(description);\n }\n }", "title": "" }, { "docid": "11f4fa50fb83c7b3d4f7564949d86895", "score": "0.62130755", "text": "public void setDescription(java.lang.String description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESCRIPTION$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DESCRIPTION$2);\n }\n target.setStringValue(description);\n }\n }", "title": "" }, { "docid": "2b62960f5e0e7763166d484a0de88cca", "score": "0.6212789", "text": "public void setDescription(String desc) {\n\t\tm_description = desc;\n\t}", "title": "" }, { "docid": "867f64dd2d82f6399a815c7e85ed7f57", "score": "0.62094784", "text": "public void setDescription(String description) {\n\t\tdescripcion = description;\n\t}", "title": "" }, { "docid": "56aa82be7591902cd69b76b92b91d483", "score": "0.62083507", "text": "public Builder clearContent() {\n if (documentationCase_ == 6) {\n documentationCase_ = 0;\n documentation_ = null;\n onChanged();\n }\n return this;\n }", "title": "" }, { "docid": "7b3830fc37ad0b91b64a6d1e391c9e38", "score": "0.6204736", "text": "public void setDescription(String description) {\n this.description = description;\n }", "title": "" } ]
3504a3fdc5855cfc972e0785587e0737
Created by cpu005 on 26/4/16.
[ { "docid": "d166eb753eec97cc8c9d458e74613be6", "score": "0.0", "text": "public interface OnClickListener {\n\n public void onClick(Object groupPosition, Object obj);\n}", "title": "" } ]
[ { "docid": "5cf6e7275cb8d34bdacabdb57b1297ed", "score": "0.61405087", "text": "public void mo74847b() {\n }", "title": "" }, { "docid": "fee1a18ceca61748f93149cd393850fc", "score": "0.60858154", "text": "public void mo74768d() {\n }", "title": "" }, { "docid": "7c007022c54a0806ff9bd5438ae3e2ec", "score": "0.60446674", "text": "public void mo74769c() {\n }", "title": "" }, { "docid": "17942d6ab34e0234c0d99b1b5c8e7a12", "score": "0.60095096", "text": "private void gemsupid() {\n\n }", "title": "" }, { "docid": "5188ca7aad5f258e672f0989f34a3f46", "score": "0.599534", "text": "public void mo80636c() {\n }", "title": "" }, { "docid": "5d5f8a204ab4201094295fffada02db6", "score": "0.5988149", "text": "public void mo5391b() {\n }", "title": "" }, { "docid": "06d440269c184993ff4f11d933a81aed", "score": "0.5963495", "text": "public void mo11421d() {\n }", "title": "" }, { "docid": "06d440269c184993ff4f11d933a81aed", "score": "0.5963495", "text": "public void mo11421d() {\n }", "title": "" }, { "docid": "81005989525ec80103fbaf46f9c37779", "score": "0.59476036", "text": "@Override\n\tpublic void agit() {\n\n\t}", "title": "" }, { "docid": "ded15aaeb71ec68606fe2fb94e86fd30", "score": "0.5928282", "text": "@Override\n\tpublic void festlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.5831798", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.57560056", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "7cc32e3215de6a5ea9e4ae55eb72e2bf", "score": "0.57458645", "text": "public void mo5387a() {\n }", "title": "" }, { "docid": "962e2aa1efc1eb9e8f7e2b38da8566b6", "score": "0.5726404", "text": "@Override\r\n\tprotected void method4() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "62af35269754b8acb72204c12f622caf", "score": "0.5719447", "text": "protected void mo1291L() {\n }", "title": "" }, { "docid": "df5a58b776d79955ce4bf7e18e9ddfc4", "score": "0.5717742", "text": "public void mo9214a() {\n }", "title": "" }, { "docid": "c74f29111dd26487e1359eb6abdacbec", "score": "0.571634", "text": "public void mo74767a() {\n }", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.56902665", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.56662184", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "625187fe31276d96395cbda7bb49fc48", "score": "0.5648358", "text": "public void method_9653() {}", "title": "" }, { "docid": "42ffe37d75a4692d6a9d7c6f22fbd819", "score": "0.56268287", "text": "private void m5638T() {\n }", "title": "" }, { "docid": "320da35135786dc4505079f4a9a73c36", "score": "0.55891216", "text": "@Override\r\n\tpublic void preen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9fa7a725e71b5132e949e10e3d90ccf", "score": "0.5584467", "text": "private void prin() {\n\n\t}", "title": "" }, { "docid": "10d40e9b81b4ba39c3ab6d779f3b2692", "score": "0.55820274", "text": "public void mo31237c() {\n }", "title": "" }, { "docid": "b07546ce140f2f3bb5b718f3bf303b9a", "score": "0.55755574", "text": "public void mo5721a() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.55550295", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.55550295", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.55406964", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.55406964", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "4a1a8198ad35933c43ad176efce311a4", "score": "0.5529404", "text": "public abstract void mo1339fc();", "title": "" }, { "docid": "7ec5770f7d08ac8791b261f76c6090ee", "score": "0.5529345", "text": "private void scarleTo() {\n\t\t\n\t}", "title": "" }, { "docid": "c303699d6c9f8d3a2b316125e204825c", "score": "0.55289", "text": "@Override\n\tpublic void verTop10() {\n\t\t\n\t}", "title": "" }, { "docid": "cd627f5e3327d0f281dc47084928366f", "score": "0.5528307", "text": "public abstract void mo1338fb();", "title": "" }, { "docid": "d782462e898859cd8f1a6e804776230b", "score": "0.55252576", "text": "@Override\n\tpublic void kahvalti() {\n\t\t\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.55185604", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "ad45e6c7b443b82ff991aee867aeb8fd", "score": "0.5511733", "text": "public abstract void mo25853UG();", "title": "" }, { "docid": "4e7f529ac1a882a15ed6a930790022f5", "score": "0.55060923", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5493867", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5493867", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5493867", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5493867", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5493867", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5493867", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5493867", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5493867", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "d1a8d273503a8a83168088151e077e15", "score": "0.5491235", "text": "public void method_9652() {}", "title": "" }, { "docid": "1b5d5130f159d5a6272fed091204e048", "score": "0.5484123", "text": "public final void mo102268a() {\n }", "title": "" }, { "docid": "c4fa257f1d9c8e55ec00612334f57e8b", "score": "0.5469728", "text": "@Override\n public void init() {\n\t\n }", "title": "" }, { "docid": "063c46135cece19b9c8d4ee43804fb54", "score": "0.54645735", "text": "@Override\n protected int firstPosition() {\n return 1;\n }", "title": "" }, { "docid": "14d7e79407599f4cf22826cf13c23428", "score": "0.5444634", "text": "private void tow() {\n }", "title": "" }, { "docid": "5c7ca80204874a0f2a61e9e407ccf2dc", "score": "0.5434571", "text": "public abstract void mo33962d();", "title": "" }, { "docid": "3b1600450ab3b5062389f9fe6d588e75", "score": "0.54345155", "text": "public final void mo80311c() {\n }", "title": "" }, { "docid": "6cc8d0325cff3ed68e7a4ee5cd7225a5", "score": "0.54332095", "text": "public void mo7033b() {\n }", "title": "" }, { "docid": "fb712911683b694cdce8a0591533827a", "score": "0.54277045", "text": "public void attaquer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.54243773", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "ff911c4d9bf7d5e05c41665bcb2f4cc9", "score": "0.5413368", "text": "public final void mo75709b() {\n }", "title": "" }, { "docid": "72a85ee1437809d0018d2bf7b929983a", "score": "0.54127693", "text": "public abstract void mo80635b();", "title": "" }, { "docid": "6d4285d3cacbea718a62779bee157e55", "score": "0.53736454", "text": "private void init() {\n\t\t\r\n\r\n\t\t\r\n\t}", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.53689605", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.53634536", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "3334d3b302fd55029e7bd247c823c639", "score": "0.53612393", "text": "@Override\n\tvoid accerlate() {\n\t\t\n\t}", "title": "" }, { "docid": "738bcd0a04420d62671cf9621596849d", "score": "0.5359987", "text": "private static void question26() {\n }", "title": "" }, { "docid": "691b15fed469ddc176b9c9e6151dea65", "score": "0.53546816", "text": "@Override\n\tpublic void breathes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "1121ee7f7fb44c1a82d76b74dfca36ce", "score": "0.53527045", "text": "@Override\r\n\tprotected void vivir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "86ba8b7d16a1dfbff014c09b0780fcb1", "score": "0.5350839", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "280199ee867322d00fa8fc8f17ee373c", "score": "0.53467405", "text": "private Loesung33() {\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5343717", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5343717", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "655b867aa97c25e03411b64746524868", "score": "0.5339307", "text": "void mo70906c_();", "title": "" }, { "docid": "ff043552178afb2cf8b4178dcb72350c", "score": "0.53383625", "text": "public abstract void mo1340fd();", "title": "" }, { "docid": "ba348d037fde33ef982a79632d7adf5e", "score": "0.5337491", "text": "@Override\n\tpublic void bouger()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "1087722b53755ae66a66cc4bf8a91c1d", "score": "0.53251195", "text": "public abstract void mo4604c();", "title": "" }, { "docid": "792350939017ccf304337ff492e7db06", "score": "0.530457", "text": "@Override\n\tpublic void init() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.52967376", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.52967376", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.52967376", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.52967376", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5296233", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5296233", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5296233", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5296233", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "9b29988979d452433bf9bca03dddd71d", "score": "0.52960205", "text": "public void mo3670c() {\n }", "title": "" }, { "docid": "10d92a66c246261fe6e471d744e9a556", "score": "0.52951336", "text": "@Override\n\tpublic void rysuje() {\n\t\t\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.52910113", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "ad2759fe5a270aa7d5fef65ee280f27d", "score": "0.52899575", "text": "public void afisareEl() {\n\t\t\n\t}", "title": "" }, { "docid": "ad2759fe5a270aa7d5fef65ee280f27d", "score": "0.52899575", "text": "public void afisareEl() {\n\t\t\n\t}", "title": "" }, { "docid": "407ea6981d818e928441c73001d7316b", "score": "0.5286853", "text": "void mo89796R_();", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.52799296", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.52799296", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "3b27d934ea30689efd52c6af24b481a1", "score": "0.5276597", "text": "@Override\n\tpublic void judeti() {\n\n\t}", "title": "" }, { "docid": "1e530a3abecfdbdcf6f7ca4bd7294921", "score": "0.52733535", "text": "@Override\n\tpublic void andar() {\n\t\t\n\t}", "title": "" }, { "docid": "dced8840cdc6e1ebb3224000472406a2", "score": "0.5271974", "text": "private void init() {\n\n }", "title": "" }, { "docid": "629a12ba2f042e875e68a80e04448324", "score": "0.52702725", "text": "private static void find() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1351a596cfde79c7fcbaa0c0ac90ed14", "score": "0.52678907", "text": "@Override\n public boolean Aapninger() {\n return true;\n }", "title": "" }, { "docid": "e8c3c03b62cc04f856bed77c99ee5f88", "score": "0.5261603", "text": "@Override\n public int locations() {\n return 8;\n }", "title": "" }, { "docid": "02b2c6e51ebb5faf78f05c34c734f88d", "score": "0.526067", "text": "@Override\n\tprotected void adjust() {\n\t\t\n\t}", "title": "" }, { "docid": "2d17f675c4797d1489ccbc9d83c3ec33", "score": "0.52561265", "text": "@Override\n\tpublic void umm() {\n\t\t\n\t}", "title": "" }, { "docid": "3a0aa7f30eee7a869c7fd2960b14db07", "score": "0.52545816", "text": "@Override\n public void destoty() {\n }", "title": "" }, { "docid": "aa11eda739c485941dc668462856c759", "score": "0.52537364", "text": "private Trimr() {}", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.52458626", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.52458626", "text": "@Override\n public void init() {\n \n }", "title": "" } ]
c72991232815cfb4f84a085489fe6241
Removes category and associated keys.
[ { "docid": "90656ad7ba759bce7ccfce7e9a5e126c", "score": "0.0", "text": "public static void removeCategory(String name) {\n Category category = CATEGORIES.remove(name);\n category.clear();\n }", "title": "" } ]
[ { "docid": "52a7aaf836d9d8d26c2ba48b46afc152", "score": "0.660272", "text": "public void removeCategory()\n\t{\n\t\tcategory = null;\n\t\tisCategorized = false;\n\t}", "title": "" }, { "docid": "9c7061ad0060ca0eeae4c8812eca3c88", "score": "0.62469834", "text": "public void removeCategoria(Categoria categoria);", "title": "" }, { "docid": "0adf6ba03c979634d835d78c6ef39392", "score": "0.6222352", "text": "@Override\r\n\tpublic void removeKey() {\n\t\t\r\n\t}", "title": "" }, { "docid": "536f7a9de65ca48269eba6440be40561", "score": "0.6221356", "text": "void unsetCategoryCode();", "title": "" }, { "docid": "02a62f81491e1038d347d36396585cda", "score": "0.6211813", "text": "private void unregisterAllCategories() {\n categoryNameMap.clear();\n }", "title": "" }, { "docid": "04a0543a6de2c6cbe80e85e6d8847397", "score": "0.6109111", "text": "public static void removeKey(String key) {\n DEFAULT_CATEGORY.removeKey(key);\n }", "title": "" }, { "docid": "543027a466f49e54fe87cc04b23690d2", "score": "0.60635775", "text": "public void clear() {\r\n\t\tcategorysHT.clear();\r\n\t}", "title": "" }, { "docid": "ea4f4ae20607d87c7511966001d3675c", "score": "0.5994708", "text": "@Override\r\n\tpublic void eliminar(Categoria cc) {\n\r\n\t}", "title": "" }, { "docid": "5c946c5ec5792f2c55b47a7a25f27d45", "score": "0.5974935", "text": "private void clean() {\r\n // Your code here.\r\n\r\n ArrayList<Long> removeList = new ArrayList<>();\r\n for (Node n : nodes.values()) {\r\n if (!n.connectedToGraph) {\r\n removeList.add(n.id);\r\n }\r\n }\r\n for (long id : removeList) {\r\n nodes.remove(id);\r\n }\r\n }", "title": "" }, { "docid": "67c7b03d5a2f34b5ec26bacef38b3841", "score": "0.59428525", "text": "public void deleteCategory() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_CATEGORY, null, null);\n db.close();\n\n Log.d(TAG, \"Deleted all Cities list from sqlite\");\n }", "title": "" }, { "docid": "8bf0f6b7963388301f2768245e3c872d", "score": "0.59207684", "text": "public void clear()\n {\n super.clear();\n this.keyOrder.clear();\n if (this.ignoredCaseMap != null) {\n this.ignoredCaseMap.clear(); \n }\n }", "title": "" }, { "docid": "c474579fefd28eb313742b905a61aa07", "score": "0.58926404", "text": "public void deleteCategory(Key categorykey) {\n\t\t\r\n\t\tDAOFactory.getCategoryDAOInstance().deleteCategory(categorykey);\r\n\t\tif (CACHE_ENABLED){\r\n\t\t\tCF.getCache().remove(categorykey);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d7209289b7abdcbe6e799c43e6f175cc", "score": "0.5873567", "text": "public void remove(K key);", "title": "" }, { "docid": "ef6a830997db6af5ed7d5beac13f9e93", "score": "0.5872858", "text": "public void remove(K foo) {\n entries.remove(getEntry(foo));\n }", "title": "" }, { "docid": "3098dee3e09431e8a08d48972318c8aa", "score": "0.5831717", "text": "protected final void clearCache() {\n synchronized (this.c) {\r\n synchronized (this) {\r\n final Iterator<K> iter = this.keys.iterator();\r\n while (iter.hasNext()) {\r\n final K key = iter.next();\r\n iter.remove();\r\n this.c.clear(key);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "30020bf260262e7fa01c6f85c1c6fb31", "score": "0.58234423", "text": "public Builder clearCategory() {\n\n category_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8fea28a3ef18fbbc7b490e483548ad0e", "score": "0.58156574", "text": "public void unsetKey()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(KEY$4);\n }\n }", "title": "" }, { "docid": "ae1ccb65a96a1d7a383d6a71c458a16f", "score": "0.5752471", "text": "public void remove() {\n\t\tfor (BogeyModelData[] data : contraptionModelData.values())\n\t\t\tfor (BogeyModelData model : data)\n\t\t\t\tmodel.delete();\n\t\tcontraptionModelData.clear();\n\t}", "title": "" }, { "docid": "0ce0722f3ba315c7c06f9bfe8b30ab9b", "score": "0.57522446", "text": "public void removeFromCategoryButton() {\n removeFromCategory(selectedCategory.getCategoryId(), selectedMovieInCategory);\n }", "title": "" }, { "docid": "c5365c2455fc73780ca5ebc0024f6b90", "score": "0.57512987", "text": "protected void removeAll(K key) {\n while (keys.remove(key)) {\n }\n }", "title": "" }, { "docid": "456b631c5658e0be672040d34c906524", "score": "0.5729792", "text": "void removeCategoryTree(long categoryUid) throws EpServiceException;", "title": "" }, { "docid": "26a84ca29a74bb46ae4a3ddcf60285ee", "score": "0.57294255", "text": "public void removeCategory(int index) {\n categories.remove(index);\n }", "title": "" }, { "docid": "3c942fa00366df8e2659d530c93b1922", "score": "0.57196045", "text": "public Builder clearCategory() {\n bitField0_ = (bitField0_ & ~0x00000004);\n category_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "707415c8ede531330a61ec3ad8ed5154", "score": "0.5711519", "text": "@Override\r\n\t\tpublic void delete(K key) {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "8bac676e2e92bb0b896a3b52535b8441", "score": "0.57095", "text": "void removeCategory(int categoryId) throws ModuleException;", "title": "" }, { "docid": "18f97f47038afeaf3924dbd7855b7edd", "score": "0.56884646", "text": "@Override\n\tpublic void eliminar(Integer idCategoria) {\n\t}", "title": "" }, { "docid": "ce51584a7afc19700cb3316e5085a6a0", "score": "0.56845003", "text": "@Override\n public void deleteCategory(Category category) throws CostManagerException {\n try {\n Connection connection = DriverManager.getConnection(protocol);\n Statement statement = connection.createStatement();\n //=========== Run a code to check if CateDB exsists =============\n //statement.execute(\"create table CateDB(CateIDCol int, CateNameCol varchar(40))\");\n statement.execute(\"DELETE FROM CateDB WHERE CateNameCol = '\" + category.getCategoryName()+\"'\");\n ResultSet rs = statement.executeQuery(\n \"SELECT * FROM ItemDB ORDER BY CateIDCol\");\n }\n catch(Exception e) { e.printStackTrace(); }\n\n for(int i = 0; i < categories.size();i++){\n if(category.getCategoryName().equals(categories.get(i).getCategoryName())){\n categories.remove(i);\n break;\n }\n }\n }", "title": "" }, { "docid": "7260c6f1197aa574d0f4a8cff00d1797", "score": "0.56823194", "text": "public void deleteSubCategory() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_SUB_CATEGORY, null, null);\n db.close();\n\n Log.d(TAG, \"Deleted all Sub Category list from sqlite\");\n }", "title": "" }, { "docid": "11614009f7baceeaf07b59438eef5c57", "score": "0.5675487", "text": "public Builder clearCategory() {\n bitField0_ = (bitField0_ & ~0x00000001);\n category_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "dab460ed7b303323009025ee65dbf6bf", "score": "0.5671947", "text": "public void removeAllKeys() {\n\t\tiKeys.setSize(0);\n\t\tiToString = null;\n\t}", "title": "" }, { "docid": "3e9ff54e1128c870d16629116522295d", "score": "0.56683755", "text": "public Builder clearCategory() {\n \n category_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "577495e54d84ccba4a38b2cdb607ef14", "score": "0.5661461", "text": "public static synchronized void removeCategory(Category category)\n\t{\n\t\tcache.remove(FQN, Integer.toString(category.getId()));\n\n\t\tfinal Set<Category> set = (Set<Category>)cache.get(FQN, CATEGORIES_SET);\n\t\tset.remove(category);\n\t\tcache.add(FQN, CATEGORIES_SET, set);\n\n\t\tfinal Map<String, String> map = (Map<String, String>)cache.get(FQN, RELATION);\n\t\tfor (final Iterator<String> iter = map.values().iterator(); iter.hasNext(); ) {\n\t\t\tif (Integer.parseInt((String)iter.next()) == category.getId()) {\n\t\t\t\titer.remove();\n\t\t\t}\n\t\t}\n\n\t\tcache.add(FQN, RELATION, map);\n\t}", "title": "" }, { "docid": "fbafb8eb9a7a84b2923c783785c8cd06", "score": "0.56604236", "text": "@Override\r\n\tpublic void remove(K key) {\n\r\n\t}", "title": "" }, { "docid": "850e663196476aa0782c6fe632468072", "score": "0.56583816", "text": "void removeLinkedCategoryTree(Category linkedCategory) throws EpServiceException;", "title": "" }, { "docid": "11b11e86d047dc554ba12b04de69072b", "score": "0.56396544", "text": "public void deleteCategory(Category category) {\r\n\t\tcategoryHashMap.remove(category.getCategoryId());\r\n\t\tfor (int i = 0; i < DataSource.taskArrayList.size(); i++) {\r\n\t\t\tTask task = DataSource.taskArrayList.get(i);\r\n\t\t\tif (task.getCategory() == category.getCategoryId()) {\r\n\t\t\t\tDataSource.taskArrayList.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tCategoryDataSource.toXmlFile(categoryHashMap);\r\n\t}", "title": "" }, { "docid": "62595c35a0a6551f9200a21b3958a922", "score": "0.5631477", "text": "public void clear() {\n mCategories.clear();\n mTitles.clear();\n mValues.clear();\n }", "title": "" }, { "docid": "a07a9b3d9c6207ecef25f16ea0629893", "score": "0.56097907", "text": "protected abstract void clearDictionaryContent();", "title": "" }, { "docid": "ae556988fbb17d6278fc6edc5093cf54", "score": "0.5602684", "text": "@Override\r\n\tpublic void delete(K key) {\n\t\t\r\n\t}", "title": "" }, { "docid": "d34c3f66a7e6ae294a0e2580214086fe", "score": "0.5590583", "text": "private void remove(K key) {\n\t\tdata.remove(key);\n\t}", "title": "" }, { "docid": "18ea2b8b16914aeb44c4b28930cdb92e", "score": "0.5580053", "text": "private void removeOld() {\n int key = head.next.entries.keySet().iterator().next();\n cache.remove(key);\n head.next.entries.remove(key);\n if(head.next.entries.size() == 0) {\n removeNode(head.next);\n }\n }", "title": "" }, { "docid": "9405a330f4577b6895c1325e3c60aa93", "score": "0.55365014", "text": "@Override\n public void removeCategoryAssoc(Integer id) throws Exception {\n Query deleteCategoryAssoc = sessionFactory.getCurrentSession().createQuery(\"delete from activityCodeAssocCategories where id = :id\");\n deleteCategoryAssoc.setParameter(\"id\", id);\n deleteCategoryAssoc.executeUpdate();\n }", "title": "" }, { "docid": "7abf3cef911f6aed3ecca0e5a95d2700", "score": "0.55278856", "text": "public void clear()\r\n\t{\r\n\t\tkeyValueMap.clear();\r\n\t\tvalueKeyMap.clear();\r\n\t}", "title": "" }, { "docid": "d78fc4d6924f42d33f794f90c52491bc", "score": "0.5522156", "text": "public void uninstallCertsAndKeys() {\n if (mCaCertificateAlias != null) {\n if (!mKeyStore.removeEntryFromKeyStore(mCaCertificateAlias)) {\n Log.e(TAG, \"Failed to remove entry: \" + mCaCertificateAlias);\n }\n mCaCertificateAlias = null;\n }\n if (mClientPrivateKeyAlias != null) {\n if (!mKeyStore.removeEntryFromKeyStore(mClientPrivateKeyAlias)) {\n Log.e(TAG, \"Failed to remove entry: \" + mClientPrivateKeyAlias);\n }\n mClientPrivateKeyAlias = null;\n }\n if (mClientCertificateAlias != null) {\n if (!mKeyStore.removeEntryFromKeyStore(mClientCertificateAlias)) {\n Log.e(TAG, \"Failed to remove entry: \" + mClientCertificateAlias);\n }\n mClientCertificateAlias = null;\n }\n }", "title": "" }, { "docid": "e259f7c12bc8e88281e395fe413642c1", "score": "0.5520081", "text": "private void clean() {\n totalNodes = new LinkedHashMap<>(nodes);\n ArrayList<Long> keys = new ArrayList<> (nodes.keySet());\n for(long id : keys) {\n if(!nodes.get(id).getConnected())\n removeNode(id);\n }\n }", "title": "" }, { "docid": "8bb1e4a1ff8e55b2b9624c10623cef4d", "score": "0.55194795", "text": "public Builder clearCategory() {\n if (categoryBuilder_ == null) {\n category_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n } else {\n categoryBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "dc98050e8611ac00bace6fc888a520e7", "score": "0.5505015", "text": "Category deleteCategorySingle( long id );", "title": "" }, { "docid": "7428de8a45cd50c9dc6c2f3120a6a1c7", "score": "0.55035156", "text": "public Object remove(Object key) {\n entries = null;\n Object value = get(key);\n context.removeAttribute(key.toString());\n return value;\n }", "title": "" }, { "docid": "dc14075aedfc824ba697863431b7ca25", "score": "0.54909986", "text": "public void clear()\r\n\t{\r\n\t\tIterator<K1> iterator\t= localMap.keySet().iterator();\r\n\r\n\t\twhile ( iterator.hasNext() )\r\n\t\t{\r\n\t\t\tMap<K2,V> columnMap\t= localMap.get( iterator.next() );\r\n\r\n\t\t\tif ( columnMap != null )\r\n\t\t\t{\r\n\t\t\t\tcolumnMap.clear();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlocalMap.clear();\r\n\t}", "title": "" }, { "docid": "0fddafb528e57cb11d57b1a20f591066", "score": "0.54809415", "text": "@Override\n\tpublic void delete(Key key) {\n\n\t}", "title": "" }, { "docid": "0fddafb528e57cb11d57b1a20f591066", "score": "0.54809415", "text": "@Override\n\tpublic void delete(Key key) {\n\n\t}", "title": "" }, { "docid": "46839716957691bd43e0c22097fa753e", "score": "0.54629904", "text": "void unsetFlightCategory();", "title": "" }, { "docid": "53e64fc861904b4ba8b6b50b7146c6ca", "score": "0.5456124", "text": "public void removeObjectMapping(Object mappingKey);", "title": "" }, { "docid": "03e7903f096f62c04551bb025d7af2e7", "score": "0.5444348", "text": "void deleteCriteria(String key);", "title": "" }, { "docid": "9d5d1c8654967ead267f7e5e7d5fa0ee", "score": "0.54169106", "text": "ReplicatedCounterMap<K> remove(K key);", "title": "" }, { "docid": "5ca5696525548acda1c7e49109f4508d", "score": "0.5408728", "text": "private void clean() {\n ArrayList<Long> idToRemove = new ArrayList<>();\n Collection<Node> nodes = allNodes.values();\n for (Node node: nodes) {\n if (node.con.size() == 0) {\n idToRemove.add(node.id);\n }\n }\n for (Long id: idToRemove) {\n allNodes.remove(id);\n }\n }", "title": "" }, { "docid": "3b8455db8b1183b764b61050c951eef7", "score": "0.54058963", "text": "public Builder clearCategory() {\n bitField0_ = (bitField0_ & ~0x00000001);\n category_ = getDefaultInstance().getCategory();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "377f0db0653b1bd727838cf859d6191a", "score": "0.53990555", "text": "public void destroyCategory(Long id) {\n }", "title": "" }, { "docid": "21eed05a52fc6a4bb2a5a3972e677018", "score": "0.5390962", "text": "@Override\n\tpublic void supprimerCategorie(Long idCat) {\n\t\tdao.supprimerCategorie(idCat);\n\t}", "title": "" }, { "docid": "3612b6abc632f61792ce6b0a8362415c", "score": "0.538817", "text": "public void remove(int classifier) {\n\t\tfor(final List<Entry> elist : entries.values()) {\n\t\t\tassert elist != null;\n\t\t\tfinal ArrayList<Entry> tormv = new ArrayList<Entry>();\n\t\t\tfor(final Entry e : elist) {\n\t\t\t\tif(e.classifier != null && e.classifier.intValue() == classifier) {\n\t\t\t\t\tlist.remove(e);\n\t\t\t\t\ttormv.add(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(final Entry e : tormv) {\n\t\t\t\telist.remove(e);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a1f51862160b0bdf0f4f37397b020e0c", "score": "0.5385362", "text": "@Override\n\tpublic void clearCrmTags(long pk) {\n\t\tcrmContactToCrmTagTableMapper.deleteLeftPrimaryKeyTableMappings(pk);\n\t}", "title": "" }, { "docid": "2a4d6c70d00c09d25312e4fdecc845c0", "score": "0.5384365", "text": "public void removeKey(String key) {\r\n props.remove(key);\r\n }", "title": "" }, { "docid": "4f114a8b00c8ec6b565fe839adc38a3e", "score": "0.5380371", "text": "private void leaveCategory() {\n\t\tcategoryLabel.setText(\"\");\n\t\tinCategory = false;\n\t\tbackButton.setEnabled(false);\n\t\tlist.setDragEnabled(false);\n\n\t\tlistModel.clear();\n\t\tfor (String category : catalog.getCategoryNames()) {\n\t\t\tlistModel.addElement(category);\n\t\t}\n\t}", "title": "" }, { "docid": "94bdb8933e7d1226f84775eafb9383c8", "score": "0.5375394", "text": "private void cleanMetadata() {\n for (int i=metadata.size() - 1; i>=0; i--) {\n Pair<String, ArrayList<String>> pair = metadata.get(i);\n\n if (pair.getKey().isEmpty() || pair.getValue().isEmpty())\n metadata.remove(pair);\n }\n }", "title": "" }, { "docid": "cd7bcb25073002a15035d04ca2ae7570", "score": "0.536539", "text": "public void resetCategoriasBorradas();", "title": "" }, { "docid": "b82bbe6f924a63685a533ebcdbd53ee8", "score": "0.53555447", "text": "public GetItemRequest clearKeyEntries() {\n this.key = null;\n return this;\n }", "title": "" }, { "docid": "fccdb41efe44cfafc3eeb4b8aaa51fc0", "score": "0.53495747", "text": "public void removeAllbiboSection() {\n\t\tBase.removeAll(this.model, this.getResource(), SECTION);\n\t}", "title": "" }, { "docid": "efc097b27cbeed5b4d6994c223c9db2a", "score": "0.53491294", "text": "public Builder clearCategory() {\n bitField0_ = (bitField0_ & ~0x00000001);\n category_ = getDefaultInstance().getCategory();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "010998b01a00fcca0b6edda609d14cae", "score": "0.53409296", "text": "public void remove(int index) {\n mCategories.remove(index);\n mTitles.remove(index);\n mValues.remove(index);\n }", "title": "" }, { "docid": "3bff8110d5143dc3bbbb9035979ff5f0", "score": "0.5339735", "text": "public V remove( K aKey );", "title": "" }, { "docid": "201a061d84783e6ee0ded95c46d5dc18", "score": "0.53376776", "text": "public void delete(Key key) {\r\n\t\troot = delete(root, key);\t\r\n\t}", "title": "" }, { "docid": "e4fa2c5ffe372ab26f6fc623cf943400", "score": "0.53373575", "text": "@Override\n public void clear() throws IOException {\n log.debug(\"Deleting all sessions\");\n datastore.delete(Arrays.stream(keys())\n .map(keyFactory::newKey)\n .toArray(Key[]::new));\n }", "title": "" }, { "docid": "36cae955d8bc4f726c3ad6909a2d689c", "score": "0.5336766", "text": "public void removeByCheckCategoryIdAndType(long categoryId, int type);", "title": "" }, { "docid": "846a85e966b1305006872c4c9a59ef06", "score": "0.53274983", "text": "public void itemRemoved(Object key);", "title": "" }, { "docid": "0b193542bb900853f6605312f07afb36", "score": "0.53239626", "text": "@Override\n\tpublic boolean remove(K key)\n\t{\n\t\tint indexKey = Keys.indexOf(key);\n\t\t\n\t\tif (indexKey == -1)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tKeys.remove(indexKey);\n\t\t\tLinks.remove(indexKey);\n\t\t\tVisited.remove(indexKey);\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "ea4c41f713cb525e7eb28abb847f4ed7", "score": "0.5323701", "text": "public void removeKey(T data) {\n\t\tList<Node<T>> copy = this.lookup.get(data);\n\t\tthis.size = this.size - copy.size();\n\t\twhile(copy.size()>0) {\n\t\t\tNode<T> next = copy.get(0);\n\t\t\tswap(next, this.lastAdded);\n\t\t\tthis.nextFree.free();\n\t\t\tthis.nextFree = this.lastAdded;\n\t\t\tthis.lastAdded.clear();\n\t\t\tif(next.leftChild != null) siftDown(next);\n\t\t\t\n\t\t\tcopy.clear();\n\t\t\tthis.lookup.get(data).forEach(x -> {\n\t\t\t\tif(x!=null) copy.add(x);\n\t\t\t});\n\t\t}\n\t\t// remove references to key in lookup\n\t\tthis.lookup.remove(data);\n\t}", "title": "" }, { "docid": "2adc520bf7aeedf6f29400f5ed083082", "score": "0.5321311", "text": "public void clearRemoves();", "title": "" }, { "docid": "6cd39694c583a1072376fab50274b90a", "score": "0.5320815", "text": "@Override\n public void discard(Serializable key)\n {\n remove(key);\n }", "title": "" }, { "docid": "fe79f19e6e3d1b71b7e9c379b4191768", "score": "0.53144103", "text": "public void delete(Key key) {\n }", "title": "" }, { "docid": "a9ea7711d09a97e6be1e55767fefb8cc", "score": "0.53115016", "text": "public void clear() {\r\n entries().clear();\r\n }", "title": "" }, { "docid": "80ff92898b9ff680b759588f776e1694", "score": "0.5305478", "text": "public Builder clearAdsCategory() {\n bitField0_ = (bitField0_ & ~0x00000008);\n adsCategory_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5d650079bd81227762a6237b81c14539", "score": "0.5302254", "text": "public void delete(Key key)\n {\n //node to eliminate\n root=delete(root,key);\n }", "title": "" }, { "docid": "e01cb1886d3df9614898ff6094363de8", "score": "0.5298756", "text": "void remove(String key);", "title": "" }, { "docid": "e01cb1886d3df9614898ff6094363de8", "score": "0.5298756", "text": "void remove(String key);", "title": "" }, { "docid": "e01cb1886d3df9614898ff6094363de8", "score": "0.5298756", "text": "void remove(String key);", "title": "" }, { "docid": "e01cb1886d3df9614898ff6094363de8", "score": "0.5298756", "text": "void remove(String key);", "title": "" }, { "docid": "7c5da877ad0b84a7fb93085f9697657d", "score": "0.52917194", "text": "public void clear() {\n while (keyListComboBox.getItemCount() != 0) {\n keyListComboBox.removeItemAt(0);\n }\n savedKeysSoFar = 1;\n }", "title": "" }, { "docid": "506869145e2fd2895d568b9d705abef6", "score": "0.5290297", "text": "public Object remove(Object key);", "title": "" }, { "docid": "3170026a2acc3ced3763774ece33052d", "score": "0.5285596", "text": "@Override\n\tpublic void delete(Collection<String> key) {\n\t\tstringRedisTemplate.delete(key);\n\t}", "title": "" }, { "docid": "5dcfc9b0dbc70d2ff77aa53f2c6afc35", "score": "0.5280704", "text": "public shopping_cidadao.fiap.evento.Value.Builder clearIdCategoria() {\n id_categoria = null;\n fieldSetFlags()[7] = false;\n return this;\n }", "title": "" }, { "docid": "53db42148d488b1f6e10f0c854e5bb91", "score": "0.5276387", "text": "private void removeEntries() {\r\n\t\tarray.clear();\r\n\t\tfor (int i = 0; i < capacity; i++) {\r\n\t\t\tif (table[i] != null) {\r\n\t\t\t\ttable[i].clear();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b783a9d6d241fa7518de834447e3b162", "score": "0.5275527", "text": "private void removeTitle(String key) {\n removeTitleByKey(key);\n }", "title": "" }, { "docid": "bbe06b2889cd69e94e9eeb50f597e79c", "score": "0.5259632", "text": "@Override\n\tpublic boolean clear(K key)\n\t{\n\t\tint indexKey = Keys.indexOf(key);\n\t\t\n\t\tif (indexKey != -1)\n\t\t{\n\t\t\tLinks.get(indexKey).clear();\n\t\t\tVisited.get(indexKey).clear();\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e651bc0c85a875dcd6c8554430132076", "score": "0.5252335", "text": "public Builder clearCategory() {\n \n category_ = getDefaultInstance().getCategory();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6d2ebb53eba15d12a2cda602800c0b90", "score": "0.5250867", "text": "public DeleteItemResult clearAttributesEntries() {\n this.attributes = null;\n return this;\n }", "title": "" }, { "docid": "e96746706dd61e9c49f2637b11c2df3d", "score": "0.524312", "text": "public void cleanTypeByGroupCache()\r\n\t{\r\n\t\tsynchronized (m_typeByGroupMaps)\r\n\t\t{\r\n\t\t\tif (!m_typeByGroupMaps.isEnabled())\r\n\t\t\t{\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tm_typeByGroupMaps.clear();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7ba56d90a498f1e99dd2866e7d21338d", "score": "0.5241544", "text": "@Override\n\tpublic void remove(String key) {\n\t\t\n\t}", "title": "" }, { "docid": "7ba56d90a498f1e99dd2866e7d21338d", "score": "0.5241544", "text": "@Override\n\tpublic void remove(String key) {\n\t\t\n\t}", "title": "" }, { "docid": "059ba74092283ecb555869406679a265", "score": "0.52397126", "text": "public void delete(Key key) {\n\t\troot = delete(root, key);\n\t}", "title": "" }, { "docid": "059ba74092283ecb555869406679a265", "score": "0.52397126", "text": "public void delete(Key key) {\n\t\troot = delete(root, key);\n\t}", "title": "" }, { "docid": "134e7a403c08d1b6b7a1d2202592ec3f", "score": "0.5236578", "text": "public void removeAll(final K key) {\n\t\t\t\tfinal Long count = map.get(key);\n\n\t\t\t\tif (count != null) {\n\t\t\t\t\tactualSize -= count;\n\t\t\t\t\tmap.remove(key);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "2f0a5097e2a80c215cb6501d7d29d2aa", "score": "0.52356344", "text": "public void delete(E key) {\n\t\troot = removeItem(root, key);\n\t}", "title": "" } ]
263dcb9838302d75cdd3db372cfbdb5b
Inflate the layout for this fragment
[ { "docid": "18683f37c7249e5eaa1a1d48c3d08cc6", "score": "0.0", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_search_grades, container, false);\n initializeFragment();\n return view;\n }", "title": "" } ]
[ { "docid": "9889cfe738b7e9b399fedfcc374cd8be", "score": "0.6940545", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_feed, parent, false);\n }", "title": "" }, { "docid": "4f94f9920e81a024a95f1f4d3863c5e2", "score": "0.68366355", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_load_feed, container, false);\n }", "title": "" }, { "docid": "0a7672b6d4427f1b45141a0b298c7975", "score": "0.67483634", "text": "@Override\n\tprotected void onFinishInflate() {\n\t\tsuper.onFinishInflate();\n\n\t\tsetupView();\n\t}", "title": "" }, { "docid": "5d4d559e82ef5c5cf43a4f075c0adc7b", "score": "0.670701", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n context = new ApplicationContext(getContext());\n View view = inflater.inflate(R.layout.home_fragment, container, false);\n \n progressBar = view.findViewById(R.id.progress_bar);\n textFullName = view.findViewById(R.id.text_name);\n textJob = view.findViewById(R.id.text_job);\n textSaldo = view.findViewById(R.id.text_home_saldo);\n textRerata = view.findViewById(R.id.text_average);\n textTotal = view.findViewById(R.id.text_pengeluaran);\n recyclerView = view.findViewById(R.id.week_recycler_view);\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getContext());\n recyclerView.setLayoutManager(layoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n \n populateControls();\n return view;\n }", "title": "" }, { "docid": "77466615b160096ff52647adb4c0fff4", "score": "0.6695663", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View viewCategory = inflater.inflate(R.layout.fragment_antitype, container, false);\n\n text_top = (TextView) viewCategory.findViewById(R.id.text_top);\n text_bottom = (TextView) viewCategory.findViewById(R.id.text_bottom);\n img_selectedtop = (ImageView) viewCategory.findViewById(R.id.img_selectedtop);\n img_selectedbottom = (ImageView) viewCategory.findViewById(R.id.img_selectedbottom);\n image_bottom = (ImageView) viewCategory.findViewById(R.id.image_bottom);\n image_top = (ImageView) viewCategory.findViewById(R.id.image_top);\n rl_top = (RelativeLayout) viewCategory.findViewById(R.id.rl_top);\n rl_bottom = (RelativeLayout) viewCategory.findViewById(R.id.rl_bottom);\n\n return viewCategory;\n }", "title": "" }, { "docid": "012a8062f0c717e4b06b7a7a5cbadea9", "score": "0.6695288", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.fragment_feeds, container, false);\n\n define();\n\n return view;\n }", "title": "" }, { "docid": "0a03251c57b177356431fe66a3920c5c", "score": "0.6666338", "text": "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\t\t\n\t\t\t//Show the new view of the fragment\n\t\t\tmView= inflater.inflate(R.layout.general_sensor_layout, container, false);\n\t\t\t//InitializeViews\n\t\t\tinitializeUIelements();\n\t\t\t\n\t\t return mView;\n\t\t}", "title": "" }, { "docid": "8aa1c1efbf76eaf585cf2a57fc9dd382", "score": "0.66452295", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mLayout = inflater.inflate(R.layout.fragment_guest_list, container, false);\n initializeView();\n return mLayout;\n }", "title": "" }, { "docid": "fd1b8c91df33fb219d4f2f1ea81d0990", "score": "0.66388357", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "title": "" }, { "docid": "a9b0091615e5ec7e27278149f832b353", "score": "0.6628885", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_my_booking, container, false);\n }", "title": "" }, { "docid": "7a4d8173aa270821f767a0b0bdbecd60", "score": "0.6628841", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.fragment_account, container, false);\n ids();\n setup();\n return view;\n }", "title": "" }, { "docid": "94f65f0704801de2819a8d938d5676de", "score": "0.6622015", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rating, container, false);\n }", "title": "" }, { "docid": "7b7147186d8723e2601aa24364f8072d", "score": "0.66204923", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n activity = getActivity();\n return inflater.inflate(R.layout.recsfragment, parent, false);\n }", "title": "" }, { "docid": "7d601af3dc2928928d6fb53788c315d6", "score": "0.6620298", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.vk_fragment, container, false);\n }", "title": "" }, { "docid": "5047493064121d1cb0382a67959903cb", "score": "0.6619188", "text": "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_slide_page_arqueo, container,\n false);\n bindArqueoData(rootView);\n return rootView;\n }", "title": "" }, { "docid": "b3c1d28ca76aa930f52be9e7c6e37806", "score": "0.6612816", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_answer_sheet, container, false);\n }", "title": "" }, { "docid": "8c8437f9c442a00e0df7ffd10fbaf077", "score": "0.6610318", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.info_content_pes, container, false);\n\n //todo show a spinner\n\n ButterKnife.bind(this, view);\n\n setData();\n\n return view;\n }", "title": "" }, { "docid": "6993483f0e2931433f7c9774b1374618", "score": "0.6608901", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_music_type, container, false);\n setupUI(view);\n loadData();\n return view;\n }", "title": "" }, { "docid": "ce3ab97886bb7924e7378773bcd450d0", "score": "0.6607964", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_teller, container, false);\n\n\n }", "title": "" }, { "docid": "d10f0a7ef87497210458c45bdba6669e", "score": "0.6605665", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.qr_code_scanner, container, false);\n }", "title": "" }, { "docid": "5020421151060188fe301aee78e164d1", "score": "0.6605455", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.bantuanfraghome, container, false);\n\n }", "title": "" }, { "docid": "09b77a5153b07e42fe5524c844f01d5e", "score": "0.6599876", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_found_luan_fan_shu, container, false);\n initView(view);\n return view;\n }", "title": "" }, { "docid": "f8a300fb412a0f9a482a5399eae5b54d", "score": "0.6597818", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v =inflater.inflate(R.layout.sight_frag, container, false);\n\n return v;\n }", "title": "" }, { "docid": "449d7842e5e5f93d06966a19dff92d75", "score": "0.65954924", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_school_class, container, false);\n }", "title": "" }, { "docid": "43266bdad70eb975e41d417b0c2a6443", "score": "0.65933603", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event_detail, container, false);\n askInfo = (Button) v.findViewById(R.id.askInfo);\n title = (TextView) v.findViewById(R.id.title);\n image = (ImageView) v.findViewById(R.id.image);\n date = (TextView) v.findViewById(R.id.date);\n description = (TextView) v.findViewById(R.id.description);\n eventLayout = (RelativeLayout) v.findViewById(R.id.event_detail_layout);\n mListener.disableSwipeRefresh();\n mListener.setImageLoading(true);\n fill();\n shre = getContext().getSharedPreferences(Statics.SHARED_PREF,Context.MODE_PRIVATE);\n edit = shre.edit();\n mListener.setEventSheetBehaviour();\n return v;\n }", "title": "" }, { "docid": "0d5583f93f38ef80cd7c2e9440a07c33", "score": "0.65931004", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_fragment, container, false);\r\n }", "title": "" }, { "docid": "275c2348a7282075a5713c5ace2be8ea", "score": "0.6591009", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_browse_all, container, false);\n initSpinnerValues();\n initViews(view);\n return view;\n }", "title": "" }, { "docid": "2e868ce5fb5c498e08dee9f89171cfce", "score": "0.6589947", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_other_info, container, false);\n\n init();\n\n return rootView;\n }", "title": "" }, { "docid": "86ec75dec34434f31ab9bee5ab878bd1", "score": "0.65852916", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wip, container, false);\r\n }", "title": "" }, { "docid": "988c2a4447ebde8682f2b8f40e0c8816", "score": "0.658476", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend_requests, container, false);\n }", "title": "" }, { "docid": "f58a2fb8d418907f9aa6cc45e98aec3c", "score": "0.6578367", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_know_more_mps, container, false);\n init(view);\n bindYear();\n setListener();\n return view;\n }", "title": "" }, { "docid": "3f5add3d51f2ff00e6f083ef6a4a7654", "score": "0.65768236", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hold_spot, container, false);\n }", "title": "" }, { "docid": "25dc98c498f5a65378e06044901a35d7", "score": "0.6573578", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n return inflater.inflate(R.layout.layout_booking_list, container, false);\n }", "title": "" }, { "docid": "eb05d89cd9bb5dfa9c210286c2b8d915", "score": "0.65681", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_publish_1, container, false);\r\n\r\n //初始化任务列表数据\r\n initTaskList(view);\r\n\r\n return view;\r\n }", "title": "" }, { "docid": "44cdd3029c870704cc6d6430f103b6e6", "score": "0.65677625", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quiz_a4, container, false);\n }", "title": "" }, { "docid": "a727f1f1891c8d6fa813bb831c4f6ff1", "score": "0.65646905", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_index2_depart2, container, false);\n ButterKnife.bind(this, inflate);\n init();\n return inflate;\n }", "title": "" }, { "docid": "1c5bb08ed8658fbcd244e05634f49b72", "score": "0.6563383", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View rootView = inflater.inflate(R.layout.fragment_standings, container, false);\n frameLayout = (FrameLayout) rootView.findViewById(R.id.frame_layout);\n progressBar = (ProgressBar) rootView.findViewById(R.id.progress_indicator);\n outer = (LinearLayout) rootView.findViewById(R.id.outerLayout);\n\n\n return rootView;\n\n }", "title": "" }, { "docid": "6386df908b281726a40f44e48205bf31", "score": "0.65631276", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_details, parent, false);\n }", "title": "" }, { "docid": "135fcde5b15b97b1ebddf6b0a2795227", "score": "0.6562549", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.sport_fragment, container, false);\n }", "title": "" }, { "docid": "9d7c0fa665fafd9c61804d16ee760761", "score": "0.65607995", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_fragmentfuli4, container, false);\n initView(view);\n initData();\n return view;\n }", "title": "" }, { "docid": "2c867ebdb2ff16d0361755c9dc04078d", "score": "0.6556541", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_class_schedule, container, false);\n }", "title": "" }, { "docid": "c69fa280cf38a2d87bf2959af58346a4", "score": "0.6555894", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_earrings, container, false);\n init();\n setupRecyclerView();\n return view;\n }", "title": "" }, { "docid": "fd9316e68d7305a5d11f330e8248b1ee", "score": "0.6555164", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_pic, container, false);\n initvew();\n initData(false);\n return view;\n }", "title": "" }, { "docid": "2e376356e2ce54be2fa635153a456c32", "score": "0.65514654", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment__r_e_v_i_e_w_s, container, false);\n return view;\n }", "title": "" }, { "docid": "e748cbc81aa3b9b625b3e53e3ecde9a3", "score": "0.6550794", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_day1, container, false);\n }", "title": "" }, { "docid": "4de5fc67d7925743e385d092f7a934d7", "score": "0.6543262", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data, container, false);\n }", "title": "" }, { "docid": "a42f16f9c9edd89a651059ae14f5f22b", "score": "0.65423036", "text": "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_buy_followers, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "title": "" }, { "docid": "e73ba8d102c34e962b757b081318d1e7", "score": "0.6540332", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n LinearLayout ll = (LinearLayout) inflater.inflate(R.layout.fragment_location, container, false);\n entering = (RadioButton) ll.findViewById(R.id.enteringRadio);\n exiting = (RadioButton) ll.findViewById(R.id.exitingRadio);\n radiusBar = (SeekBar) ll.findViewById(R.id.seekBar);\n radiusTW = (TextView) ll.findViewById(R.id.radius);\n\n setUpRadios();\n setUpSeekBar();\n\n return ll;\n }", "title": "" }, { "docid": "3c18377f2f451b9336a9b020da4bc64d", "score": "0.65372413", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.item_details_fragment, container, false);\n\n defineView();\n return v;\n }", "title": "" }, { "docid": "88bebaa1cbbe4bf0fe731758d0939b74", "score": "0.6535975", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n view= inflater.inflate(R.layout.fragment_my_annonce, container, false);\n Init();\n FillInList();\n\n //SyncAnnonce();\n\n return view;\n }", "title": "" }, { "docid": "84980fc0ff8b369a27f598dd08a7cb5b", "score": "0.65278316", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View fragmentView = inflater.inflate(R.layout.fragment_create_transaction_category_list, container, false);\n ButterKnife.bind(this, fragmentView);\n setupUi();\n\n return fragmentView;\n }", "title": "" }, { "docid": "66cb20c93e8e89360375b45e82f72ef4", "score": "0.6527662", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater,\r\n ViewGroup container, Bundle savedInstanceState) {\r\n\r\n View view=inflater.inflate( R.layout.individual_frame1, container, false);\r\n\r\n return view;\r\n }", "title": "" }, { "docid": "b6550bb48f6e56b4cea7db872bb45ffb", "score": "0.6527629", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_fragment_plau_queue, container, false);\n }", "title": "" }, { "docid": "7639a703bd9e7bf4341ceeec8f2f1799", "score": "0.6525213", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_dieu_dongk, container, false);\n unbinder = ButterKnife.bind(this, view);\n strToken = \"Bearer \" + LoginPrefer.getObject(getContext()).access_token;\n\n getQRCode();\n\n return view;\n }", "title": "" }, { "docid": "29684304eac14b244281e36fc8256a5f", "score": "0.6523869", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_call_us, container, false);\n }", "title": "" }, { "docid": "64e8831d286dd2c1c9fbd103d4b1c892", "score": "0.6521284", "text": "@Nullable\r\n @Override\r\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.book_layout,container,false);\r\n }", "title": "" }, { "docid": "49ec988df682b7d055f6cfc0b7976f13", "score": "0.65212834", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_img, container, false);\n }", "title": "" }, { "docid": "8122764934070a977c686d354f0659be", "score": "0.6518592", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\r\n }", "title": "" }, { "docid": "b42c9d75fcc2e699db7e6a7eb0ddecde", "score": "0.651753", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.image_detail_fragment, container, false);\n mImageView = (NonBrokenImageViewTouch) v.findViewById(R.id.imageView);\n mImageDescription = (TextView) v.findViewById(R.id.imageDescription);\n mLine = v.findViewById(R.id.horizontalline);\n mImageCredit = (TextView) v.findViewById(R.id.imageCredit);\n imageDetailsLayout = (RelativeLayout) v.findViewById(R.id.imageDetailsLayout);\n if (callback != null) {\n callback.registerLabelVisibilityListener(callbackListener);\n }\n return v;\n }", "title": "" }, { "docid": "b3c11a3d4ebd5470e8c627a3b6abbe11", "score": "0.6517235", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\r\n {\n rootView = LayoutInflater.from(getActivity()).inflate(R.layout.smekhabar_fragment, container, false);\r\n iSMEKhabarPresentor = new SMEKhabarPresentorImpl(baseActivity, this);\r\n initUI();\r\n setHasOptionsMenu(true);\r\n\r\n if(NetworkUtils.isNetworkAvailable(getActivity().getApplicationContext()))\r\n {\r\n if (!(getFragmentDataBundle() != null && getFragmentDataBundle().getParcelableArrayList(\"RSS_ITEM_LIST\") != null))\r\n {\r\n changeVisibility(false);\r\n onRefresh();\r\n }\r\n }\r\n else\r\n {\r\n changeVisibility(true);\r\n }\r\n\r\n// if (!(getFragmentDataBundle() != null && getFragmentDataBundle().getParcelableArrayList(\"RSS_ITEM_LIST\") != null)\r\n// && NetworkUtils.isNetworkAvailable(getActivity().getApplicationContext()))\r\n// {\r\n// changeVisibility(false);\r\n// onRefresh();\r\n// }\r\n// else\r\n// {\r\n// changeVisibility(true);\r\n// }\r\n return rootView;\r\n }", "title": "" }, { "docid": "b48d2bd2de7d2deea0c5d441bb7206bd", "score": "0.65150607", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment04, container, false);\n initView(view);\n return view;\n }", "title": "" }, { "docid": "296857d42b86642e1eb50e81d53ffc14", "score": "0.6512046", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return root = inflater.inflate(R.layout.fragment_bottom, container, false);\r\n }", "title": "" }, { "docid": "43a025391ecec87eb4ae6894ef607170", "score": "0.6510022", "text": "protected int getLayoutResId(){\n\t\treturn R.layout.activity_fragment;\n\t}", "title": "" }, { "docid": "9709e74d388e10776d9d64b18d6399a7", "score": "0.6507808", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_mangas, container, false);\n this.progressBar = rootView.findViewById(R.id.mangasFragmentLoading);\n this.swipeRefresh = rootView.findViewById(R.id.swipeRefreshMangas);\n swipeRefresh.setOnRefreshListener(this);\n this.firestore = FirebaseFirestore.getInstance();\n // Spinner\n this.spinner = rootView.findViewById(R.id.spinnerMangas);\n\n // Firestore mangas\n this.rvMangaList = rootView.findViewById(R.id.rvMangasLayout);\n this.rvMangaList.hasFixedSize();\n getMangas();\n this.rvMangaList.setLayoutManager(new GridLayoutManager(rootView.getContext(),2));\n this.rvMangaList.addItemDecoration(new DividerItemDecoration(rootView.getContext(),DividerItemDecoration.HORIZONTAL));\n\n return rootView;\n }", "title": "" }, { "docid": "9236934b27b91fccffc551f255232dcc", "score": "0.65067166", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_info_batik_jakarta1, container, false);\n\n\n\n }", "title": "" }, { "docid": "0cd210ebeacb3bbf58cc33c22a379072", "score": "0.6506393", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\r\n Activity activity = getActivity();\r\n if(activity != null){\r\n View view = inflater.inflate(R.layout.fragment_qoutes, container, false);\r\n SetSharedPrefences();\r\n InitUI(view);\r\n InitPainter(inflater);\r\n GetQuotes();\r\n clearChatLabels();\r\n // Inflate the layout for this fragment\r\n return view;\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "8f0497ada1b3b05e6b95e68fff19c9c4", "score": "0.65058625", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_raw_word, container, false);\n }", "title": "" }, { "docid": "b4cc303c412eb9f3eb53acce0a130652", "score": "0.6501656", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_add_friend, container, false);\n userverifyEdit = root.findViewById(R.id.editTextTextMultiLine);\n mTitleBar = root.findViewById(R.id.commmon_return);\n mAdd = root.findViewById(R.id.button_add);\n return root;\n }", "title": "" }, { "docid": "927850adc8993ef5f6f90e0cdeddba77", "score": "0.64981025", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_day, parent, false);\n }", "title": "" }, { "docid": "dfcacfbd414401d748b2d10b41c8960d", "score": "0.6497434", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_scanner, container, false);\n\n\n }", "title": "" }, { "docid": "0e6c4d5dfade124f0482263889bc900f", "score": "0.6496142", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_report_card, container, false);\n defineLayout();\n getPets(cust_id);\n\n return view;\n }", "title": "" }, { "docid": "f537b5210a526c50258dcbabfae9f8bc", "score": "0.64953226", "text": "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.activity_friends,container,false);\n }", "title": "" }, { "docid": "4830ca74c462dcac88f0a16dcfb4e86f", "score": "0.6494452", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_google_f_map, container, false);\n }", "title": "" }, { "docid": "fe6b4272a1fef9f2da4ee05abcc63263", "score": "0.6491994", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tweet, container, false);\n\n layout = (LinearLayout) view.findViewById(R.id.llFeed);\n refreshLayout = (SwipeRefreshLayout) view.findViewById(R.id.refreshLayout);\n refreshLayout.setColorSchemeColors(ContextCompat.getColor(getContext(), R.color.primary400), 0xFF000000);\n refreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n forceRefresh();\n }\n });\n\n progressBar = (ProgressBar) view.findViewById(R.id.pbFeed);\n\n return view;\n }", "title": "" }, { "docid": "4664dea58949f530c28dddf05819a2c0", "score": "0.64902264", "text": "@Override\n\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n\n Bundle savedInstanceState) {\n\n return inflater.inflate(R.layout.fragment_layout1, container, false);\n\n\n\n }", "title": "" }, { "docid": "63933d9f2226b2f1c01136c999a3eba5", "score": "0.6488164", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_energy_graph, container, false);\n }", "title": "" }, { "docid": "331e3f39cb8d899d0e0e4096cda93378", "score": "0.64867544", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (viewParent == null) {\n\n viewParent = LayoutInflater.from(container.getContext()).inflate(R.layout.fragment_user_all_post, container, false);\n\n mProgressbar = (ProgressBar) viewParent.findViewById(R.id.progress_loader);\n mNoPostAvailableTv = (TextView) viewParent.findViewById(R.id.no_post_textview);\n\n userPostFragPresenter = new UserPostFragPresenter(this, getActivity());\n userPostFragPresenter.requestDataFromServer(mParam1);\n\n // Set up the toolbar.\n Toolbar toolbar = getActivity().findViewById(R.id.post_activity_toolbar);\n toolbar.setTitle(getString(R.string.user_post_tite));\n\n setDataAdapter(viewParent);\n\n }\n\n return viewParent;\n }", "title": "" }, { "docid": "c100fa4a7b524650b04ac3105c450345", "score": "0.64863706", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View v = inflater.inflate(R.layout.fragment_staffs_register, container, false);\n adapter = new StaffsRegisterAdapter();\n\n\n\n initId(v);\n return v;\n }", "title": "" }, { "docid": "f7b21a7d945cbb4c25d3fbaff3bd6d4e", "score": "0.6485791", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_confirmed_ride, container, false);\n objectInitialize();\n objectSetting();\n return rootView;\n }", "title": "" }, { "docid": "409c51a8181d706fa5246de0623bacc3", "score": "0.6483983", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragments_records_game, container, false);\n }", "title": "" }, { "docid": "22b0183bfaa0db16b7be0e46acedf9a0", "score": "0.6482409", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_forecast_weather, container, false);\n }", "title": "" }, { "docid": "afe6167a2e1f3641493c95b4dcbd9c2c", "score": "0.6480746", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_auction, container, false);\n }", "title": "" }, { "docid": "0403a6fd4578584d19d8e77946e57fca", "score": "0.6479049", "text": "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.fragment_test_01_dis_05_2, container, false);\n }", "title": "" }, { "docid": "a9f5ab4286be1f660051492fc0b0d3c5", "score": "0.6476168", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_news_feed, container, false);\n }", "title": "" }, { "docid": "32093c80369d810b29d88596de3cb4a7", "score": "0.6475298", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_rules, container, false);\n declare_views(root);\n handle_views();\n return root;\n }", "title": "" }, { "docid": "97abbfeb629c8f51e819f2a502e16341", "score": "0.647375", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_booking_detail, container, false);\n initializeViews(view);\n is_check_image_product=2;\n return view;\n }", "title": "" }, { "docid": "0269441d16dfe4e9c3be414881c43d5b", "score": "0.6470039", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "title": "" }, { "docid": "9ff0a904853361981553d0e2c3be8d05", "score": "0.6469197", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_top100, container, false);\n initView(inflate);\n getData();\n return inflate;\n }", "title": "" }, { "docid": "664d75174a308c8b05d95eca78d6dcab", "score": "0.64672196", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_task_detail, container, false);\n\n init(rootView); //separate method for readability\n\n return rootView;\n }", "title": "" }, { "docid": "56d9f3e4c4cd84f5c3bc0847497c741c", "score": "0.6466347", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_add_more_places, container, false);\n InitView(v);\n Click();\n DataSet();\n return v;\n }", "title": "" }, { "docid": "f81997068927cf2a982f801a766184eb", "score": "0.646417", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_baike_list, container, false);\n initView(view);\n initData();\n return view;\n }", "title": "" }, { "docid": "41ee08177acf9e8768b38b7473d09141", "score": "0.6460156", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_instructions, container, false);\n\n }", "title": "" }, { "docid": "110a3927296a3ec88525029172100e86", "score": "0.64601475", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_messages, container, false);\n ButterKnife.bind(this, view);\n context = this.getActivity();\n\n layout = (LinearLayout) view.findViewById(R.id.layout1);\n layout_2 = (RelativeLayout)view.findViewById(R.id.layout2);\n sendButton = (ImageView)view.findViewById(R.id.sendButton);\n messageArea = (EditText)view.findViewById(R.id.messageArea);\n scrollView = (ScrollView)view.findViewById(R.id.scrollView);\n\n\n init();\n return view;\n }", "title": "" }, { "docid": "456e80b47b93b1573688610e3d89d222", "score": "0.6457756", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_ticket_reader, container, false);\n unbinder = ButterKnife.bind(this, view);\n scannerInit();\n initView();\n startScan();\n return view;\n }", "title": "" }, { "docid": "075707cfd00e24dca67f5cded782588b", "score": "0.64576954", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_attack_rolls, container, false);\n }", "title": "" }, { "docid": "04864a1c177c18bce9967ed68d2866e2", "score": "0.64560837", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_my_info, container, false);\n spnDistrict = (Spinner) view.findViewById(R.id.spnDistrict);\n imgOwnerPhoto = (ImageView) view.findViewById(R.id.ownerPhoto);\n txvEmail = (TextView) view.findViewById(R.id.txvEmail);\n tilFullname = (TextInputLayout) view.findViewById(R.id.tilFullname);\n tilSurname = (TextInputLayout) view.findViewById(R.id.tilSurname);\n tilAddress = (TextInputLayout) view.findViewById(R.id.tilAddress);\n rbgSex = (RadioGroup) view.findViewById(R.id.rbgSexo);\n fabSaveMyInfo = (FloatingActionButton) view.findViewById(R.id.fabSaveMyInfo);\n return view;\n }", "title": "" }, { "docid": "f444785216b1f924026eec08e1724f8d", "score": "0.6454984", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.locationfragment, container, false);\n }", "title": "" }, { "docid": "710ff576772fb99591f85fc4c5f2b028", "score": "0.64538455", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_friends_child, container, false);\n unbinder = ButterKnife.bind(this, view);\n init();\n return view;\n }", "title": "" }, { "docid": "864112363b2e5e0cd608a7bc38c4ec5b", "score": "0.64537126", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n return inflater.inflate(R.layout.fragment_city_f_m, container, false);\n }", "title": "" }, { "docid": "99dd5510644ef1440aff730dfcecd19f", "score": "0.64535964", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_report_vaccine, container, false);\n initInstances(rootView);\n return rootView;\n }", "title": "" }, { "docid": "96a1cdd4258982b958e9bda2ccb52512", "score": "0.6452019", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_image, container, false);\n }", "title": "" } ]
37dfc254a2bdce2fbd2da19065c6e7ff
Returns the node to the south of the current node. If this node exists, it becomes the current node. Otherwise, null is returned and the current node does not change.
[ { "docid": "70f9cfc8251b7317bff91f9dcd5a4415", "score": "0.6668517", "text": "public ArgNode goSouth () {\r\n \tArgNode node = curr;\r\n if (node != null) {\r\n node = curr.getSouth();\r\n if (node != null) {\r\n \tcurr = node;\r\n }\r\n }\r\n return node;\r\n }", "title": "" } ]
[ { "docid": "fa68994dfaf95304fcc3469a06e03575", "score": "0.6131973", "text": "public ArgNode endSouth () {\r\n if (curr != null) {\r\n while (goSouth() != null) ;\r\n }\r\n return curr;\r\n }", "title": "" }, { "docid": "f51e323bf6255f0a480ad601729e06ea", "score": "0.60492945", "text": "protected TreeNode_Sweep getLastNode() {\t\t\r\n\t\tif (this.rightNode != null)\r\n\t\t\treturn this.rightNode.getLastNode();\r\n\t\telse \r\n\t\t\treturn this;\r\n\t}", "title": "" }, { "docid": "89e85627e150b58bf35928225a1df951", "score": "0.5947701", "text": "public Location getSouth(){\n\t\treturn new Location(xPos, yPos + 1);\n\t}", "title": "" }, { "docid": "c1ca937d6c49c87e4bb55800a3f3c14f", "score": "0.5892475", "text": "public Node<E> rotateRight() {\n\t\t\tNode<E> current = this;\n\t\t\tif (this.left == null) {\n\t\t\t\treturn current;\n\t\t\t} else {\n\t\t\t\tNode<E> child = current.left;\n\t\t\t\tcurrent.left = child.right;\n\t\t\t\tchild.right = current;\n\t\t\t\treturn child;\n\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "312bf9b13853b1908f97fdf42b87f706", "score": "0.58700013", "text": "public Node getDestination() {\n\t\tif(isReversed) return edge.getOrigin();\n\t\telse return edge.getDestination();\n\t}", "title": "" }, { "docid": "969bf90f6c7089e733d9671d1356dfc0", "score": "0.5677633", "text": "public static Node reverse(Node head)\n {\n return null;\n }", "title": "" }, { "docid": "4a06611825077a2b192294436e505031", "score": "0.5656059", "text": "Side findOpposite() {\n\t\tif(this == NORTH) {\n\t\t\treturn SOUTH;\n\t\t} else if(this == WEST) {\n\t\t\treturn EAST;\n\t\t} else if(this == SOUTH) {\n\t\t\treturn NORTH;\n\t\t} else if(this == EAST) {\n\t\t\treturn WEST;\n\t\t} else {\n\t\t\to.print(\"ERROR: Side.findOpposite() Side is null, I don't know how this could even happen...\");\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "bc35291a180c0185ae3686296e6c6d97", "score": "0.5613963", "text": "public Node Middle() {return null;}", "title": "" }, { "docid": "cb6255f95b31d823d5a74c67ad681ebe", "score": "0.5580056", "text": "public Node push() {\n Set<Node> adjacentNodes = this.graph.getNeigbours(currentNode);\n\n for (Node node : adjacentNodes) {\n if (!node.isOccupied()) {\n moveTo(node);\n return node;\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "785b6c4423a2acc756f15d2fd5e39126", "score": "0.5482093", "text": "public Locator rightChild(Locator node) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "404425f606132c01dfeef514b7ba53bd", "score": "0.5444047", "text": "private BstNode<I> rotateRight(final BstNode<I> node) {\n //TODO\n return null;\n }", "title": "" }, { "docid": "5810e8c07bbec350832d0183079d4634", "score": "0.538342", "text": "private IntNode getBackNode() {\r\n IntNode currNode = sentinel;\r\n while (currNode.next != null) {\r\n currNode = currNode.next;\r\n }\r\n return currNode;\r\n }", "title": "" }, { "docid": "7340a9d299fe2392fd40638007e3f838", "score": "0.5373909", "text": "public ArgNode goEast () {\r\n ArgNode node = curr;\r\n if (node != null) {\r\n node = curr.getEast();\r\n if (node != null) {\r\n \tcurr = node;\r\n }\r\n }\r\n return node;\r\n }", "title": "" }, { "docid": "d3d86914df26107906805ff1ac6165cf", "score": "0.53384686", "text": "public Square getEdgeSouth()\n {\n return this.south;\n }", "title": "" }, { "docid": "deaa4337cfb74439fdecb108653a34c6", "score": "0.5332913", "text": "public QuestRoom enterSouthDoor() {\n\t\t\n\t\treturn southRoom;\n\t}", "title": "" }, { "docid": "a89b253adafc83b979e149bb2dff07a3", "score": "0.52805865", "text": "@Nullable\n public ColumnIdent shiftRight() {\n switch (path.size()) {\n case 0:\n return null;\n\n case 1:\n return new ColumnIdent(path.get(0));\n\n default:\n return new ColumnIdent(path.get(0), path.subList(1, path.size()));\n }\n }", "title": "" }, { "docid": "00d7f364f2e0679ca048909a4c32a457", "score": "0.52802175", "text": "public Node<T> getLast()\n {\n if (this.root == null) {return null;}\n else if (getSize() == 1) {return this.root;}\n else\n {\n ArrayList<Node<T>> temp = convertToArrayList();\n return temp.get(temp.size() - 1);\n }\n }", "title": "" }, { "docid": "4512cdf6118a07c39a8dc5a88629b82f", "score": "0.5242586", "text": "public Node<E> rotateRight() {\r\n Node<E> leftNode = this.left;\r\n this.left = leftNode.right;\r\n leftNode.right = this;\r\n // left node will be new root\r\n return leftNode;\r\n }", "title": "" }, { "docid": "0a62dfc07b26241a42ace6e70d208d81", "score": "0.52318835", "text": "private Node<E> getLast() {\n Node<E> temp = this.root;\n while (temp.hasRight()) {\n temp = temp.getRight();\n }\n return temp;\n }", "title": "" }, { "docid": "57671dc935c564b98c17a78e391f9be2", "score": "0.5227952", "text": "public TreeGraphNode highestNodeWithSameHead() {\r\n TreeGraphNode node = this;\r\n while (true) {\r\n TreeGraphNode parent = safeCast(node.parent());\r\n if (parent == null || parent.headWordNode() != node.headWordNode()) {\r\n return node;\r\n }\r\n node = parent;\r\n }\r\n }", "title": "" }, { "docid": "975f3845ea2008f8109216701d17828e", "score": "0.5220625", "text": "private QuadTree getDown(){\n QuadTree ret=null;\n if(parent!=null){\n int index = parent.getIndex(new java.awt.Point(bounds.x, bounds.y+bounds.height+1));\n if(index==-1){\n ret = parent.getUp();\n }else{\n ret = parent.nodes[index];\n }\n }\n return ret;\n }", "title": "" }, { "docid": "6f94c19591eac645c7ca51439b69c957", "score": "0.52174914", "text": "public ShrimpNode getDestNode() {\n\t\treturn destNode;\n\t}", "title": "" }, { "docid": "34d8732f3e5c66c9405d6b41bf3eb627", "score": "0.5210051", "text": "public CFlapIndexLocation minimalSouth(){\n\t return new CMinimizedLocation( this, Side.SOUTH ).append();\n\t}", "title": "" }, { "docid": "39cb3f816898e5a091861acc6f4f5944", "score": "0.5192774", "text": "public edu.usfca.cs.dfs.messages.Messages.StorageNode getToNode() {\n return toNode_ == null ? edu.usfca.cs.dfs.messages.Messages.StorageNode.getDefaultInstance() : toNode_;\n }", "title": "" }, { "docid": "afbebe788bf43bd48de9dacaecda363f", "score": "0.51754653", "text": "@Override\n\tpublic NodeReader getDestinationNode() {\n\t\treturn this.dst;\n\t}", "title": "" }, { "docid": "440880b64ba45ef62d1ee4c93134173f", "score": "0.5152342", "text": "public Tile up(Tile tile)\n\t{\n\t\tif (!validIndex(tile.getIndX(), tile.getIndY() - 1))\n\t\t\treturn null;\n\t\treturn map[tile.getIndX()][tile.getIndY() - 1];\n\t}", "title": "" }, { "docid": "936eb5b5612f299920292b241436b6f0", "score": "0.5151325", "text": "private NodeStatus getNode() {\n // The best unvisited neighbour:\n // 1. Exclude the nodes that were visited\n // 2. Sort the nodes by how close they are to the target\n Optional<NodeStatus> nextNode = state.getNeighbors().stream()\n .filter(nodeStatus -> !(visited.contains(nodeStatus)))\n .sorted(NodeStatus::compareTo)\n .findFirst();\n\n if (nextNode.isPresent()) {\n return nextNode.get();\n } else {\n currentPath.pop();\n return currentPath.pop();\n }\n }", "title": "" }, { "docid": "72a55e0004fe411b09457685fa590636", "score": "0.51460874", "text": "@Override\n\tpublic Node last() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "516040c5503f157aa951f6fcbd48ba43", "score": "0.51304394", "text": "public UNode<T> getNext() {\n if (getChildren() != null && getChildren().length == 1) {\n return (UNode<T>) getChildren()[0];\n }\n return null;\n }", "title": "" }, { "docid": "7ce655479857dffbf15a94ea3494f4ac", "score": "0.5124838", "text": "public Cell getCellRight(){\n\t\tCell temp;\n\n\t\tif(currCell.hasNeighborUp()){\n\t\t\ttemp = grid[x+1][y];\n\t\t}\n\t\telse{\n\t\t\ttemp = dummy;\n\t\t}\n\t\treturn temp;\n\t}", "title": "" }, { "docid": "cb0bbe1c2535bd670e154a3ce2a9767f", "score": "0.51198995", "text": "public void toRightChild() { cursor = cursor.getRight(); }", "title": "" }, { "docid": "d59ac5ec1ae7bcedf94a1872214278ad", "score": "0.51024896", "text": "edu.usfca.cs.dfs.messages.Messages.StorageNode getToNode();", "title": "" }, { "docid": "1539aac17015d0a6f290ae747e445747", "score": "0.50958484", "text": "public int getDestinationNode() {\n\t\treturn destinationNode;\n\t}", "title": "" }, { "docid": "29543eb80a94443664f6da7995c25440", "score": "0.5094961", "text": "private QuadTree getUp(){\n QuadTree ret=null;\n if(parent!=null){\n int index = parent.getIndex(new java.awt.Point(bounds.x, bounds.y-1));\n if(index==-1){\n ret = parent.getUp();\n }else{\n ret = parent.nodes[index];\n }\n }\n return ret;\n }", "title": "" }, { "docid": "85394c69fcb703867736932efe6901b8", "score": "0.50850016", "text": "public Node getNextNode() {\n if (this.currentNode == this.pathPrefix.get(this.currentPathIndex) &&\n this.currentPathIndex < this.pathPrefix.size() - 1) {\n return pathPrefix.get(currentPathIndex + 1);\n }\n return null;\n }", "title": "" }, { "docid": "4a1c362791b61619654b4fcc4957a1e0", "score": "0.50678945", "text": "public Node successor() {\n if (getLarger() != null) {\n return getLarger().minimum();\n }\n\n Node node = this;\n\n while (node.isLarger()) {\n node = node.getParent();\n }\n\n return node.getParent();\n }", "title": "" }, { "docid": "11f8242a5d3e77d6d58398b16c7b6e3e", "score": "0.50504243", "text": "public GraphNode getOther(GraphNode cur){\n\t\tif(to == cur){\n\t\t\treturn from;\n\t\t}\n\t\treturn to;\n\t}", "title": "" }, { "docid": "1e3a171b0c75ea40a696e64afd826f62", "score": "0.5047699", "text": "public JPanel getSouthPanel() {\n\t\treturn southPanel;\n\t}", "title": "" }, { "docid": "31d865d5aaad0070f533c14844b545ae", "score": "0.5039724", "text": "private Node getPenultimateNode() {\n if (head != null) {\n Node current = head;\n Node after = current.next;\n while (current != null) {\n if (after.next == null) {\n return current;\n }\n current = after;\n after = after.next;\n }\n }\n return null;\n }", "title": "" }, { "docid": "3ca8546a27ecde7a7c8e4ab1c19b30c1", "score": "0.5036096", "text": "public Cell getCellUp(){\n\t\tCell temp;\n\n\t\tif(currCell.hasNeighborUp()){\n\t\t\ttemp = grid[x][y-1];\n\t\t}\n\t\telse{\n\t\t\ttemp = dummy;\n\t\t}\n\t\treturn temp;\n\t}", "title": "" }, { "docid": "5ac60ca273f2cb08afa560cd9a6b79f6", "score": "0.503572", "text": "protected Node singleRotateWithRightChild(Node node) {\n Node newNode = node.right;\n node.right = node.right.left;\n newNode.left = node;\n return newNode;\n }", "title": "" }, { "docid": "8e150e43ff2ecb24828964c79dc566c0", "score": "0.50323987", "text": "@Override\r\n\tpublic Node getNextSibling() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "5c0a640a31bd026c4ec751deb012214f", "score": "0.50258017", "text": "protected TreeNode_Sweep getRightNode() {\r\n\t\treturn this.rightNode;\r\n\t}", "title": "" }, { "docid": "65d2c7a569679b15dab14d3ec4393dfa", "score": "0.5023768", "text": "public T back()\n {\n if ( tail==null ) return null;\n return tail.getValue(); // return item stored at tail node\n }", "title": "" }, { "docid": "edf3c12530efcc94001e62d78996bda5", "score": "0.5014937", "text": "private IntervalNode<T> nextNode(@NotNull IntervalNode<T> root) {\n assert root.isValid() : root;\n int delta = deltaUpToRootExclusive + root.delta;\n int myMaxEnd = maxEndOf(root, deltaUpToRootExclusive);\n if (startOffset > myMaxEnd) return null; // tree changed\n\n // try to go right down\n IntervalNode<T> right = root.getRight();\n if (right != null) {\n int rightMaxEnd = maxEndOf(right, delta);\n if (startOffset <= rightMaxEnd) {\n int rightDelta = delta + right.delta;\n IntervalNode<T> left;\n while ((left = right.getLeft()) != null && startOffset <= maxEndOf(left, rightDelta)) {\n right = left;\n rightDelta += right.delta;\n }\n deltaUpToRootExclusive = rightDelta - right.delta;\n return right;\n }\n }\n\n // go up\n while (true) {\n IntervalNode<T> parent = root.getParent();\n if (parent == null) return null;\n if (parent.intervalStart() + deltaUpToRootExclusive > endOffset) return null; // can't move right\n deltaUpToRootExclusive -= parent.delta;\n\n if (parent.getLeft() == root) {\n return parent;\n }\n\n root = parent;\n }\n }", "title": "" }, { "docid": "b5ca01f69f0fe1e1b1cfc31c8e668066", "score": "0.4992224", "text": "public ControlFlowNode getEndNode(){\n Cloner cloner=new Cloner();\n endNode=cloner.deepClone(endNode);\n Cloner cloner=new Cloner();\n endNode=cloner.deepClone(endNode);\n return endNode;\n }", "title": "" }, { "docid": "238e7c30aad1a5c5b964dcce05f35d5f", "score": "0.49860704", "text": "public edu.usfca.cs.dfs.messages.Messages.StorageNode getToNode() {\n if (toNodeBuilder_ == null) {\n return toNode_ == null ? edu.usfca.cs.dfs.messages.Messages.StorageNode.getDefaultInstance() : toNode_;\n } else {\n return toNodeBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "83eb151c96024d9bb9ff61553616ea68", "score": "0.49745625", "text": "public E last(){\n\t\tif (this.right != null) {\n\t\t\treturn this.right.first();\n\t\t}\n\t\treturn this.data;\n\t}", "title": "" }, { "docid": "6b45bb820ef36ffb6aa98d3550b14b66", "score": "0.49710894", "text": "public Node getNeighbor(int dir) {\n\t\tEdge e = getEdge(dir);\n\t\tif (e == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn e.getOpposite(this);\n\t}", "title": "" }, { "docid": "f09b167677edf99ce0e1411655a019d6", "score": "0.49640676", "text": "@Override\n\tpublic NodeReader getDestinationNode() {\n\t\treturn nffg.getNode(((LinkType)this.entity).getDestinationNode().getName());\n\t\t\n\t}", "title": "" }, { "docid": "95703f1716657174eb9479cf89cd8592", "score": "0.49626645", "text": "public T last() {\n Node current = root;\n while (right(current, reverse) != null) {\n current = right(current, reverse);\n }\n\n return current.data;\n }", "title": "" }, { "docid": "5fb436de902e4908e26341e3a1f6d532", "score": "0.49539608", "text": "@Override\r\n\tpublic INode toNode() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ade966e378bdb80d2aa522eb995c82a0", "score": "0.49536785", "text": "private int northSouth(int rowStart, int colStart, int lookingFor){\n return toNorth(rowStart,colStart,lookingFor) + toSouth(rowStart,colStart,lookingFor);\n }", "title": "" }, { "docid": "eda88c81f6f4866dbb8b74cc643a1983", "score": "0.49158895", "text": "public Node getClonedNode(Node node) {\n if (node != null) {\n // Check if the node is in the visited dictionary\n if (this.visited.containsKey(node)) {\n // If its in the visited dictionary then return the new node reference from the dictionary\n return this.visited.get(node);\n } else {\n // Otherwise create a new node, add to the dictionary and return it\n this.visited.put(node, new Node(node.val, null, null));\n return this.visited.get(node);\n }\n }\n return null;\n }", "title": "" }, { "docid": "cabec13df939ed3fd0aa5e830efb8687", "score": "0.4915532", "text": "public Node getLastNode(){\r\n\t\t\r\n\t\treturn (this.lastNode);\r\n\t}", "title": "" }, { "docid": "5e4e5562fee2c7e4ca80544c057addf6", "score": "0.4911999", "text": "private Node shiftNode() {\n checkLength();\n\n Node previousHead = head;\n Node temp = head.next;\n head.next = null;\n head = temp;\n --length;\n\n return previousHead;\n }", "title": "" }, { "docid": "c1de8d39c7e1a7bcf86405b4ffd544a6", "score": "0.48998463", "text": "public Node reverse() {\n\t\tNode prev=null;\n\t\tNode next=null;\n\t\tfor(Node current= head;current!=null; current=current.next) {\n\t\t\tnext= current.next;\n\t\t\tcurrent.next=prev;\n\t\t\tprev=current;\n\t\t\tcurrent=next;\n\t\t\t\n\t\t}\n\t\treturn prev;\n\t}", "title": "" }, { "docid": "34bbb176fa1eb5c19f52af46ee92d918", "score": "0.4891488", "text": "public Node getRightNode() {\n\t\t\treturn rightNode;\n\t\t}", "title": "" }, { "docid": "cee3152319e8deea7eaff4d5fe67dae4", "score": "0.4865144", "text": "public void backNode()\r\n\t{\r\n\t\tif(curr != root)\r\n\t\t\tcurr = curr.pn;\r\n\t}", "title": "" }, { "docid": "97724a5bc8eabb3dd938619f71cbe5f5", "score": "0.48626196", "text": "public Tile down(Tile tile)\n\t{\n\t\tif (!validIndex(tile.getIndX(), tile.getIndY() + 1))\n\t\t\treturn null;\n\t\treturn map[tile.getIndX()][tile.getIndY() + 1];\n\t}", "title": "" }, { "docid": "93f803dd11e9dd2c77690791ed5b7722", "score": "0.4859329", "text": "public Node getOrigin() {\n\t\tif(isReversed) return edge.getDestination();\n\t\telse return edge.getOrigin();\n\t}", "title": "" }, { "docid": "dd4908f6a871b327cf4cfeba7bb7433b", "score": "0.48548", "text": "protected TreeNode_Sweep getFirstNode() {\t\t\r\n\t\tif (this.leftNode != null)\r\n\t\t\treturn this.leftNode.getLastNode();\r\n\t\telse \r\n\t\t\treturn this;\r\n\t}", "title": "" }, { "docid": "a429a6536d54b3aee53499b84855e000", "score": "0.48501074", "text": "public Object getAtOrAfter(long key) {\n Object bestValue = null;\n\n RBNode node = root;\n while (node != null) {\n if (key == node.key) {\n return node.value;\n }\n if (key > node.key) {\n node = node.right;\n }\n else {\n bestValue = node.value;\n node = node.left;\n }\n\n }\n return bestValue;\n }", "title": "" }, { "docid": "8617463ce9a85f904bbb7aeb817bab12", "score": "0.4849999", "text": "protected TreeNode_Sweep getLastNode(Tree_Sweep_Type type) {\r\n\t\t\t// Ideally this if is never passed, this is just a security measure\r\n\t\tif (!this.contains(type)) {\r\n\t\t\tSystem.out.println(\"ERROR TreeNode_SweepDomain getLastNode triggered on nonpossible node\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\tif (rightNode != null && this.rightNode.contains(type)) {\r\n\t\t\treturn rightNode.getLastNode(type);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (this.isOfType(type))\r\n\t\t\t\treturn this;\r\n\t\t\telse\r\n\t\t\t\treturn this.leftNode.getLastNode(type);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "46018d2b4c7b6ac010eaaf6263c4c47d", "score": "0.484579", "text": "protected TreeNode_Sweep getNextNode(Tree_Sweep_Type type) {\r\n\t\tif (rightNode == null) {\r\n\t\t\tif (parentNode != null)\r\n\t\t\t\treturn this.parentNode.getNextNode(this, type);\r\n\t\t\telse return null;\r\n\t\t} else {\r\n\t\t\tif (this.rightNode.contains(type))\r\n\t\t\t\treturn rightNode.getFirstNode(type);\r\n\t\t\telse {\r\n\t\t\t\tif (parentNode != null)\r\n\t\t\t\t\treturn this.parentNode.getNextNode(this, type);\r\n\t\t\t\telse return null;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2b364d3e3be85c39f27daa87968e895c", "score": "0.48441094", "text": "public OWLObjectProperty getToNode() {\n\t\treturn getOWLObjectProperty(\n\t\t\t\tIRI.create(\"http://www.cs.teilar.gr/ontologies/Graph.owl#toNode\"));\n\t}", "title": "" }, { "docid": "54329d7d835bcc325b20ff3567bc3d30", "score": "0.4833267", "text": "public Node getlast(){\r\n \r\n if (size == 0) \r\n return null;\r\n \r\n Node last = trailer.getPrev();\r\n return last;\r\n }", "title": "" }, { "docid": "2729ec7612ddec7b1f4c85d4e4a7dfa2", "score": "0.48310885", "text": "Node<T> moveLH(Node<T> at) {\n Node<T> m = at.lo;\n Node<T> to = m.hi;\n to.parent = at.parent;\n\n m.hi = to.lo;\n if (m.hi != null) m.hi.parent = m;\n\n at.lo = to.hi;\n if (at.lo != null) at.lo.parent = at;\n\n to.lo = m;\n to.hi = at;\n m.parent = to;\n at.parent = to;\n\n at.touch();\n m.touch();\n put(to, to.parent);\n return to;\n }", "title": "" }, { "docid": "bf3db6a8e553d4b295f8d4548208e742", "score": "0.4829223", "text": "public Directory pop() {\n if (!this.isEmpty()) {\n Node node = top;\n top = node.getNode();\n return node.getDirectory();\n }\n return null;\n }", "title": "" }, { "docid": "b4f06a1a91a80e5d3aa7306c45545134", "score": "0.48206258", "text": "public PolyNode GetNextSiblingUp() {\n if (this.m_Parent == null) {\n return null;\n }\n if (this.m_Index == this.m_Parent.m_Childs.size() - 1) {\n return this.m_Parent.GetNextSiblingUp();\n }\n return this.m_Parent.m_Childs.get(this.m_Index + 1);\n }", "title": "" }, { "docid": "20c0bbb79d735d1896a7178da1f41c96", "score": "0.4818445", "text": "public edu.usfca.cs.dfs.messages.Messages.StorageNodeOrBuilder getToNodeOrBuilder() {\n if (toNodeBuilder_ != null) {\n return toNodeBuilder_.getMessageOrBuilder();\n } else {\n return toNode_ == null ?\n edu.usfca.cs.dfs.messages.Messages.StorageNode.getDefaultInstance() : toNode_;\n }\n }", "title": "" }, { "docid": "3f0a3a9e01cdbd7c1806529d7bf9c221", "score": "0.48078713", "text": "public T getRightChild(int pos) {\n\t if(2*pos + 1 <= this.size) return this.heap[2 * pos + 1];\n\t else return null;\n }", "title": "" }, { "docid": "0ccabdc3ab004379ca93c725e946bae4", "score": "0.480767", "text": "public MapNode getWayNode(String id) {\n\t\tMapNode result = null;\n\t\ttry {\n\t\t\tresult = osmMap.getNode(Long.parseLong(id));\n\t\t} catch (NumberFormatException e) {\n\t\t\t// node not found, indicated by return value null.\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "90a32980e7ef41f8e18430a0cb2680c5", "score": "0.47972256", "text": "public Node getCurrentNode()\n {\n return (this.mCurrentNode);\n }", "title": "" }, { "docid": "8ad46b0ffa880c4bc526d0ef9532b671", "score": "0.4791101", "text": "public T TopBack () {\n if (head == null){\n return null;\n }\n Node<T> temp0 = head;\n Node<T> temp1 = head.next;\n while (temp1 != null){\n temp0 = temp1;\n temp1 = temp1.next;\n }\n \n return temp0.key; \n }", "title": "" }, { "docid": "080607adbc506a46045379378ae1cc59", "score": "0.47910243", "text": "public Node successor(Node node)\n {\n\tNode x = node;\n\n\tif (x.right != nil)\n\t return treeMinimum(x.right);\n\n\tNode y = x.parent;\n\twhile (y != nil && x == y.right) {\n\t x = y;\n\t y = y.parent;\n\t}\n\n\treturn y;\n }", "title": "" }, { "docid": "73907cd09aed26ad909d3ac83acb4a4b", "score": "0.47854957", "text": "public Node<T> getFinalParent(){\r\n\t\tNode<T> n = this;\r\n\t\twhile(n.parent != null)\r\n\t\t\tn = n.parent;\r\n\t\treturn n;\r\n\t}", "title": "" }, { "docid": "823df5467e5c8b44fc253945ebfdca02", "score": "0.47849116", "text": "ECMNode linkNewDown(ECMNode node)\n {\n node.down = this.down;\n node.down.up = node;\n node.up = this;\n this.down = node;\n return node;\n }", "title": "" }, { "docid": "32ace470b3eb1213139f24b85bc103e6", "score": "0.47706488", "text": "public ListNode getLastNode() {\n return last;\n }", "title": "" }, { "docid": "201e450afff1dfb72674d8d46aad9ef5", "score": "0.47678852", "text": "public Node reverseLL(Node currentNode){\n // { 8, 10, 3} -> { 3, 10, 8 }\n\n Node nextNode;\n Node previousNode = null;\n\n while(currentNode != null){\n\n nextNode = currentNode.next; // 2\n currentNode.next = previousNode; // null\n previousNode = currentNode;\n currentNode = nextNode;\n\n }\n\n currentNode = previousNode;\n return currentNode;\n\n }", "title": "" }, { "docid": "6e0e3ec350325ee06dd5b3329cc11e6b", "score": "0.47667617", "text": "private GraphicalEditPart findCurrentNodeOfSelection() {\n\n GraphicalEditPart selectedElement = getFocusEditPart();\n\n if (selectedElement instanceof NodeEditPart) {\n return selectedElement;\n }\n\n int direction = PositionConstants.BOTTOM;\n if (PositionConstants.BOTTOM == getPreviousVerticalDirection()) {\n direction = PositionConstants.TOP;\n }\n\n GraphicalEditPart currentNode = findTargetOrSourceOfEdge(\n selectedElement, direction);\n\n return currentNode;\n }", "title": "" }, { "docid": "d2a20796118fe46f49cf6b4bc1c8b5e9", "score": "0.4761784", "text": "public ITreeData reversePartner(final ITreeData paramNode) {\n return mReverseMapping.get(paramNode);\n }", "title": "" }, { "docid": "67bc1084d71da0df47b0716363fb640b", "score": "0.476085", "text": "public void goRight() {\n\t\tif (currentNode.next != null) {\n\t\t\tcurrentNode = currentNode.next;\n\t\t}\n\t}", "title": "" }, { "docid": "723b4eba2997708e8a76b7b8ff8d209d", "score": "0.4759154", "text": "public E fjernNyeste() {\n\t\tNode out = null;\n\t\tE asd;\n\t\tif(first == null){\n\t\t\treturn null;\n\t\t}\n\t\telse if(first == last && first != null) {\n\t\t\tout = first;\n\t\t\tfirst = null;\n\t\t\tlast = null;\n\t\t\tasd = out.data;\n\t\t\treturn asd;\n\t\t}\n\t\telse {\n\t\t\tNode keeper = first;\n\t\t\twhile(keeper.next != last) {\n\t\t\t\tkeeper = keeper.next;\n\t\t\t}\n\t\t\tout = keeper.next;\n\t\t\tlast = keeper;\n\t\t\tlast.next = null;\n\t\t\tasd = out.data;\n\t\t\treturn asd;\n\t\t}\n\t}", "title": "" }, { "docid": "ef9f49d79bf47d89c40e6b89061dd04d", "score": "0.4753995", "text": "private void bottomNodeReplace(TrinaryNode node, TrinaryNode pNode) {\n if (node.getKey() == pNode.getRight().getKey()) {\n //remove the reference of node from the parent's right wing with the use of child node\n if (node.getMiddle().getKey() > 0) {\n pNode.setRight(node.getMiddle());\n node.getMiddle().setParent(pNode);\n } else if (node.getRight().getKey() > 0) {\n pNode.setRight(node.getRight());\n node.getRight().setParent(pNode);\n } else {\n pNode.setRight(node.getLeft());\n node.getLeft().setParent(pNode);\n }\n }\n //if node is on the left wing\n else if (node.getKey() == pNode.getLeft().getKey()) {\n //remove the reference of node from the parent's left wing with the use of child node\n if (node.getMiddle().getKey() > 0) {\n pNode.setLeft(node.getMiddle());\n node.getMiddle().setParent(pNode);\n } else if (node.getRight().getKey() > 0) {\n pNode.setLeft(node.getRight());\n node.getRight().setParent(pNode);\n } else {\n pNode.setLeft(node.getLeft());\n node.getLeft().setParent(pNode);\n }\n }\n }", "title": "" }, { "docid": "b2a0623b6387eda09e3b474234e37dcd", "score": "0.47445077", "text": "ABST getRight() {\n throw new RuntimeException(\"no pointer in empty tree\");\n }", "title": "" }, { "docid": "64ec5df04c029517f2154b5bff8198c4", "score": "0.4743464", "text": "public BinaryTreeNode<T> getRightChild() {\n\t\tif (right == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn right;\n\t\t}\n\t}", "title": "" }, { "docid": "7b70dc9750f8b9d11bc46538798e4d06", "score": "0.47357738", "text": "private Node getSibling(Node u)\n {\n if (u.parent == null) return null;\n if (u.parent.left == u) return u.parent.right;\n return u.parent.left;\n }", "title": "" }, { "docid": "badc169f5fe25c6084ac25a21f939d46", "score": "0.47325993", "text": "public Node getRight() {\n return right;\n }", "title": "" }, { "docid": "b2a26f538eb4c61129e8aae04ceda58a", "score": "0.47263137", "text": "public boolean moveNodeDown()\n\t{\n\t\tXml p, n, pp, pn, np, nn;\n\n\t\tif (m_next != null)\n\t\t{\n\t\t\tp = m_prev;\n\t\t\tn = m_next;\n\t\t //tp = m_prev;\n\t\t //tn = m_next;\n\t\t\tnp = n.getPrev();\n\t\t\tnn = n.getNext();\n\t\t\tif (m_prev != null)\n\t\t\t{\n\t\t\t\t// There is a sibling after this to switch with\n\t\t\t\tpp = p.getPrev();\n\t\t\t\tpn = p.getNext();\n\n\t\t\t\t// Logically, the link-list pointer values are laid out like this:\n\t\t\t\t//\t\t\t / pp = (prev).prev, points back to previous sibling (prev's prev)\n\t\t\t\t//\t\t(prev)\n\t\t\t\t//\t\t\t \\ pn = (prev).next, points forward to next sibling (prev's next), or (this)\n\t\t\t\t//\t\t\t / tp = (this).prev, points backward to previous sibling (this's prev) or (prev)\n\t\t\t\t//\t\t(this)\n\t\t\t\t//\t\t\t \\ tn = (this).next, points forward to next sibling (this's next) or (next)\n\t\t\t\t//\t\t\t / np = (next).prev, points backward to prev sibling (next's prev) or (this)\n\t\t\t\t//\t\t(next)\n\t\t\t\t//\t\t\t \\ nn = (next).next, points forward to next sibling (next's next)\n\t\t\t\t//\n\t\t\t\t// Arrangement before the node move:\n\t\t\t\t//\t\t(prev)\n\t\t\t\t//\t\t(this)\n\t\t\t\t//\t\t(next)\n\t\t\t\t// After the move:\n\t\t\t\t//\t\t(prev)\n\t\t\t\t//\t\t(next)\n\t\t\t\t//\t\t(this)\n\n\t\t\t\t// Each of the relative pointers have to be updated to their new\n\t\t\t\t// logical arrangement:\n\t\t\t\tp.setNext(n);\t\t\t// (prev).next = (next)\n\t\t\t\tn.setPrev(p);\t\t\t// (next).prev = (prev)\n\t\t\t\tn.setNext(this);\t\t// (next).next = (this)\n\t\t\t\tm_prev = n;\t\t\t\t// (this).prev = (next)\n\t\t\t\tm_next = nn;\t\t\t// (this).next = (next).next\n\n\t\t\t\t// Update possible new \"first child\" or \"first attribute\" conditions\n\t\t\t\tif (m_parent != null)\n\t\t\t\t{\n\t\t\t\t\t// based on if (this) is now moved into the first position\n\t\t\t\t\tif (m_parent.getFirstChild() == this)\n\t\t\t\t\t\tm_parent.setFirstChild(p);\n\t\t\t\t\telse if (m_parent.getFirstAttribute() == this)\n\t\t\t\t\t\tm_parent.setFirstAttribute(p);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\t// There is no sibling before this to switch with, which means\n\t\t\t\t// these two are just switching position\n\t\t\t\t// Logically, the link-list pointer values are laid out like this:\n\t\t\t\t//\t\t\t / null\n\t\t\t\t//\t\t(this)\n\t\t\t\t//\t\t\t \\ tn = (this).next, points forward to next sibling (this's next) or (next)\n\t\t\t\t//\t\t\t / np = (next).prev, points backward to prev sibling (next's prev) or (this)\n\t\t\t\t//\t\t(next)\n\t\t\t\t//\t\t\t \\ nn = (next).next, points forward to next sibling (next's next)\n\t\t\t\t//\n\t\t\t\t// Arrangement before the node move:\n\t\t\t\t//\t\t(this)\n\t\t\t\t//\t\t(next)\n\t\t\t\t// After the move:\n\t\t\t\t//\t\t(next)\n\t\t\t\t//\t\t(this)\n\n\t\t\t\t// Each of the relative pointers have to be updated to their new\n\t\t\t\t// logical arrangement:\n\t\t\t\tn.setPrev(null);\t\t// (next).prev = null\n\t\t\t\tn.setNext(this);\t\t// (next).next = (this)\n\t\t\t\tm_prev = n;\t\t\t\t// (this).prev = (next)\n\t\t\t\tm_next = nn;\t\t\t// (this).next = (next).next\n\n\t\t\t\t// Update possible new \"first child\" or \"first attribute\" conditions\n\t\t\t\tif (m_parent != null)\n\t\t\t\t{\n\t\t\t\t\t// based on if (this) is now moved into the first position\n\t\t\t\t\tif (m_parent.getFirstChild() == this)\n\t\t\t\t\t\tm_parent.setFirstChild(n);\n\t\t\t\t\telse if (m_parent.getFirstAttribute() == this)\n\t\t\t\t\t\tm_parent.setFirstAttribute(n);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\treturn(true);\n\t\t}\n\t\treturn(false);\n\t}", "title": "" }, { "docid": "fcc4c7431c59b6da3061ff2ae5c760ed", "score": "0.47260773", "text": "public Node getRight()\n\t {\n\t return right;\n\t }", "title": "" }, { "docid": "1b90bc2339b816bc98b66c60398a00f2", "score": "0.47242206", "text": "public CFlapIndexLocation minimalSouth( int index ){\n\t\treturn new CMinimizedLocation( this, Side.SOUTH ).insert( index );\n\t}", "title": "" }, { "docid": "51e7b726e8f3640d92e64275745c325d", "score": "0.47212675", "text": "public Tile right(Tile tile)\n\t{\n\t\tif (!validIndex(tile.getIndX() + 1, tile.getIndY()))\n\t\t\treturn null;\n\t\treturn map[tile.getIndX() + 1][tile.getIndY()];\n\t}", "title": "" }, { "docid": "5c45f2db91bbe3b23ab61a9a9801843d", "score": "0.47189018", "text": "public TreeNode upsideDownBinaryTree(TreeNode root) {\n if (root == null) {\n return null;\n }\n return dfs(root);\n }", "title": "" }, { "docid": "ec86488fc8740bc078d6e57768ac4319", "score": "0.4716533", "text": "public Cell getCellDown(){\n\t\tCell temp;\n\n\t\tif(currCell.hasNeighborUp()){\n\t\t\ttemp = grid[x][y+1];\n\t\t}\n\t\telse{\n\t\t\ttemp = dummy;\n\t\t}\n\t\treturn temp;\n\t}", "title": "" }, { "docid": "89abc81baf3c5cd22336000cdb60996a", "score": "0.47163174", "text": "public E last(){\n if (isEmpty()) return null;\n return tail.getElement();\n }", "title": "" }, { "docid": "9d66aaa2528b1fc409e1fac2f855257b", "score": "0.47154245", "text": "protected TreeNode_Sweep getNextNode(TreeNode_Sweep Origin, Tree_Sweep_Type type) {\r\n\t\tif (this.rightNode != Origin) {\r\n\t\t\tif (this.isOfType(type))\r\n\t\t\t\treturn this;\r\n\t\t\telse if (this.rightNode != null && this.rightNode.contains(type))\r\n\t\t\t\t\treturn this.rightNode.getFirstNode(type);\r\n\t\t}\r\n\t\t\r\n\t\t\t// Other options failed, so go up if possible\r\n\t\tif (this.parentNode != null)\r\n\t\t\treturn this.parentNode.getNextNode(this, type);\r\n\t\telse return null;\r\n\t}", "title": "" }, { "docid": "6cc24af1ca273a82ebb4bb4e21ff3c49", "score": "0.4712583", "text": "public Node<T> getRight() {\n return right;\n }", "title": "" }, { "docid": "ed1674318d6f6e82484ec13d5fe17581", "score": "0.4712294", "text": "Node<T> moveL(Node<T> at) {\n Node<T> to = at.lo;\n to.parent = at.parent;\n at.parent = to;\n at.lo = to.hi;\n if (to.hi != null) to.hi.parent = at;\n to.hi = at;\n at.touch();\n to.touch();\n put(to, to.parent);\n return to;\n }", "title": "" }, { "docid": "2ed209cdc4529c17ef52d87a850e48db", "score": "0.4711171", "text": "public Node findUpper(int iyear){\n\t\tint l = maxHeight -1;\n\t\tNode x = head;\n\t\twhile(l>=0){\n\t\t\tNode y = x.right;\n\t\t\tif(y.values.get(0).year == iyear){\n\t\t\t\t//return Node on lowest level\n\t\t\t\twhile(y.down != null) {\n\t\t\t\t\ty = y.down;\n\t\t\t\t}\n\t\t\t\treturn y;\n\t\t\t}else if (y.values.get(0).year < iyear){\n\t\t\t\tx = y;\n }\n\t\t\telse if(x.down == null) {\n\t\t\t\treturn y;\n\t\t\t}else{\n\t\t\t\tl--;\n\t\t\t\tx = x.down;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" } ]
7abe97f9c5faa8ffa3b970348e3eb435
Reading from config to create the JComponentVisibleMaker for this exporter facade. If it's not configured, default DefaultVisibleMaker will be used.
[ { "docid": "eb2c9b748504fcb547ae5996a2ca39fe", "score": "0.71756893", "text": "private JComponentVisibleMaker initVisibleMaker(String namespace, ObjectFactory objectFactory)\n throws ImageExporterConfigurationException {\n String visibleMakerKey = ConfigHelper.getStringProperty(namespace, JCOMPONENT_VISIBLE_MAKER_PARAMETER);\n\n //customized visibleMaker is configured\n if ((visibleMakerKey != null)) {\n\n //key should not be empty\n if (visibleMakerKey.trim().length() == 0) {\n throw new ImageExporterConfigurationException(\"property:\" + JCOMPONENT_VISIBLE_MAKER_PARAMETER\n + \" is empty\");\n }\n\n //if objectFactory is not created, then create one\n if (objectFactory == null) {\n objectFactory = ConfigHelper.createObjectFactory(namespace, OBJECT_FACTORY_NAMESPACE_PARAMETER);\n }\n\n try {\n return (JComponentVisibleMaker) objectFactory.createObject(visibleMakerKey);\n } catch (InvalidClassSpecificationException e) {\n throw new ImageExporterConfigurationException(\"can not create JComponentVisibleMaker:\"\n + visibleMakerKey, e);\n } catch (ClassCastException e) {\n throw new ImageExporterConfigurationException(\"exporter:\" + visibleMakerKey\n + \" is not sub class of JComponentImageExporter\", e);\n }\n } else {\n //uses DefaultVisibleMaker by default\n return new DefaultVisibleMaker();\n }\n }", "title": "" } ]
[ { "docid": "ad7e317ce5f2c7fa8b129519df10e06b", "score": "0.51904345", "text": "private void initComponents() {\n\n defaultConfigPanel = new javax.swing.JPanel();\n defaultConfigDescription = new javax.swing.JLabel();\n showTestCheckBox = new javax.swing.JCheckBox();\n\n defaultConfigPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(ComponentsPanel.class, \"ComponentsPanel.defaultConfigPanel.border.title\"))); // NOI18N\n\n defaultConfigDescription.setForeground(javax.swing.UIManager.getDefaults().getColor(\"textInactiveText\"));\n defaultConfigDescription.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n org.openide.awt.Mnemonics.setLocalizedText(defaultConfigDescription, org.openide.util.NbBundle.getMessage(ComponentsPanel.class, \"ComponentsPanel.defaultConfigDescription.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(showTestCheckBox, org.openide.util.NbBundle.getMessage(ComponentsPanel.class, \"ComponentsPanel.showTestCheckBox.text\")); // NOI18N\n\n javax.swing.GroupLayout defaultConfigPanelLayout = new javax.swing.GroupLayout(defaultConfigPanel);\n defaultConfigPanel.setLayout(defaultConfigPanelLayout);\n defaultConfigPanelLayout.setHorizontalGroup(\n defaultConfigPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(defaultConfigPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(defaultConfigPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(defaultConfigPanelLayout.createSequentialGroup()\n .addComponent(showTestCheckBox)\n .addContainerGap())\n .addGroup(defaultConfigPanelLayout.createSequentialGroup()\n .addComponent(defaultConfigDescription, javax.swing.GroupLayout.DEFAULT_SIZE, 555, Short.MAX_VALUE)\n .addGap(36, 36, 36))))\n );\n defaultConfigPanelLayout.setVerticalGroup(\n defaultConfigPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(defaultConfigPanelLayout.createSequentialGroup()\n .addGap(7, 7, 7)\n .addComponent(showTestCheckBox)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(defaultConfigDescription)\n .addContainerGap(321, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 639, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(defaultConfigPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 424, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(defaultConfigPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n }", "title": "" }, { "docid": "e7dfdea8042356de0fe0c883c44768e4", "score": "0.50329006", "text": "@Override\r\n\tpublic JComponent getConfigUI(int configType) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "25d890a161ea68c1ccf0528c67c41d30", "score": "0.48654798", "text": "RCWidgetConfig getWidgetConfig();", "title": "" }, { "docid": "c847ce417e8688533dfd82089250d5b0", "score": "0.48481485", "text": "public Object getComponentConfigFor(String component);", "title": "" }, { "docid": "b3a9879324b902d8d73f27601800d167", "score": "0.48192513", "text": "@Override\r\n public boolean hasConfigPanel() {\r\n return false;\r\n }", "title": "" }, { "docid": "6b52a5f9c9c5b604cfa2a7d564823766", "score": "0.47255957", "text": "private JPanel getConfigContainerPanel() {\n if (configContainerPanel == null) {\n configContainerPanel = new JPanel(new BorderLayout());\n configContainerPanel.setBorder(\n javax.swing.BorderFactory.createTitledBorder(\n null,\n Constant.messages.getString(\"sessionmanagement.panel.config.title\"),\n javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\n javax.swing.border.TitledBorder.DEFAULT_POSITION,\n FontUtils.getFont(FontUtils.Size.standard)));\n }\n return configContainerPanel;\n }", "title": "" }, { "docid": "2efd1ee72d19b2f5c4db115cb8dd55e0", "score": "0.47243434", "text": "public HashMap getComponentConfig();", "title": "" }, { "docid": "a77cbe6e40e3494fb77d280443be9cea", "score": "0.465851", "text": "public FrontEnd(Config configValue, AnimObject[][] gridContentsValue)\n {\n gridContents = gridContentsValue;\n\t\tconfig = configValue;\n gridX = config.GRID_WIDTH;\n gridY = config.GRID_HEIGHT;\n drawGrid = config.DRAW_GRID_FLAG;\n createGUI();\n }", "title": "" }, { "docid": "dc6fdffdb2aa45d1ff3d34f159144f73", "score": "0.4597238", "text": "@Override\npublic void init(String pTitle, boolean pEnableEyeDistanceInputs,\n boolean pDisplayMonitor)\n{\n \n super.init(pTitle, pEnableEyeDistanceInputs, pDisplayMonitor); \n\n rowLabel = new JLabel(title);\n stateLbl = new JLabel(\"?\");\n encoder1Lbl = new JLabel(\"?\");\n encoder2Lbl = new JLabel(\"?\");\n directionLbl = new JLabel(\"?\");\n countsPerInchLbl = new JLabel(\"?\");\n percentChangeLbl = new JLabel(\"?\");\n \n setEyeDistanceEditingEnabled(pEnableEyeDistanceInputs);\n \n mainPanel.add(rowLabel);\n mainPanel.add(new JLabel(\"\"));\n mainPanel.add(new JLabel(\"\"));\n mainPanel.add(new JLabel(\"\"));\n\n //these only visible if Display Monitor checkbox is checked\n if (pDisplayMonitor){\n \n mainPanel.add(stateLbl);\n mainPanel.add(encoder1Lbl);\n mainPanel.add(encoder2Lbl); \n mainPanel.add(directionLbl);\n mainPanel.add(countsPerInchLbl);\n mainPanel.add(percentChangeLbl); \n }\n \n}", "title": "" }, { "docid": "6d1895a74f2691126942c05e57375d3e", "score": "0.45493636", "text": "public InfoMakerGUI(File customInfo){\n infoCfg = customInfo;\n setTitle(\"Info Maker\");\n setSize(WINDOW_WIDTH, WINDOW_HEIGHT);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n buildPanel();\n add(panel);\n buildMenubar();\n isConfigLoaded = loadDefaults();\n pack();\n setLocationRelativeTo(null);\n setVisible(true);\n }", "title": "" }, { "docid": "5b694f978a4e8f29327fea49609ef664", "score": "0.45066473", "text": "public Config() {\n initComponents();\n }", "title": "" }, { "docid": "b0c633b171bab2cd852619e166c41640", "score": "0.4504007", "text": "void showConfig();", "title": "" }, { "docid": "8f72c6f80f8db2fb90929527033bc554", "score": "0.44894582", "text": "private void initComponents() {\n\n jLabelConfigFile = new javax.swing.JLabel();\n jComboBoxConfigFile = new javax.swing.JComboBox();\n jLabelName = new javax.swing.JLabel();\n jTextFieldName = new javax.swing.JTextField();\n jLabelScope = new javax.swing.JLabel();\n jComboBoxScope = new javax.swing.JComboBox();\n jLabelDesc = new javax.swing.JLabel();\n jScrollPaneDesc = new javax.swing.JScrollPane();\n jTextAreaDesc = new javax.swing.JTextArea();\n addToConfigCheckBox = new javax.swing.JCheckBox();\n\n jLabelConfigFile.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(ManagedBeanPanelVisual.class, \"MNE_ConfigFile\").charAt(0));\n jLabelConfigFile.setLabelFor(jComboBoxConfigFile);\n jLabelConfigFile.setText(org.openide.util.NbBundle.getMessage(ManagedBeanPanelVisual.class, \"LBL_ConfigFile\")); // NOI18N\n\n jComboBoxConfigFile.setEnabled(addToConfigCheckBox.isSelected());\n jComboBoxConfigFile.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBoxConfigFileActionPerformed(evt);\n }\n });\n\n jLabelName.setDisplayedMnemonic(java.util.ResourceBundle.getBundle(\"org/netbeans/modules/web/jsf/wizards/Bundle\").getString(\"MNE_Name\").charAt(0));\n jLabelName.setLabelFor(jTextFieldName);\n jLabelName.setText(org.openide.util.NbBundle.getMessage(ManagedBeanPanelVisual.class, \"LBL_Name\")); // NOI18N\n\n jLabelScope.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(ManagedBeanPanelVisual.class, \"MNE_Scope\").charAt(0));\n jLabelScope.setLabelFor(jComboBoxScope);\n jLabelScope.setText(org.openide.util.NbBundle.getMessage(ManagedBeanPanelVisual.class, \"LBL_Scope\")); // NOI18N\n\n jComboBoxScope.setModel(scopeModel);\n\n jLabelDesc.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(ManagedBeanPanelVisual.class, \"MNE_BeanDescription\").charAt(0));\n jLabelDesc.setLabelFor(jTextAreaDesc);\n jLabelDesc.setText(org.openide.util.NbBundle.getMessage(ManagedBeanPanelVisual.class, \"LBL_BeanDescription\")); // NOI18N\n\n jTextAreaDesc.setColumns(20);\n jTextAreaDesc.setRows(5);\n jScrollPaneDesc.setViewportView(jTextAreaDesc);\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"org/netbeans/modules/web/jsf/wizards/Bundle\"); // NOI18N\n jTextAreaDesc.getAccessibleContext().setAccessibleDescription(bundle.getString(\"ACSD_BeanDescription\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(addToConfigCheckBox, org.openide.util.NbBundle.getMessage(ManagedBeanPanelVisual.class, \"LBL_Add_data_to_conf_file\")); // NOI18N\n addToConfigCheckBox.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n addToConfigCheckBoxItemStateChanged(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabelName)\n .addComponent(jLabelScope)\n .addComponent(jLabelDesc)\n .addComponent(jLabelConfigFile))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldName, javax.swing.GroupLayout.DEFAULT_SIZE, 302, Short.MAX_VALUE)\n .addComponent(jComboBoxScope, 0, 302, Short.MAX_VALUE)\n .addComponent(jScrollPaneDesc, javax.swing.GroupLayout.DEFAULT_SIZE, 302, Short.MAX_VALUE)\n .addComponent(jComboBoxConfigFile, 0, 302, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(addToConfigCheckBox)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(addToConfigCheckBox)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelConfigFile)\n .addComponent(jComboBoxConfigFile, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelName))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBoxScope, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelScope))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabelDesc)\n .addComponent(jScrollPaneDesc, javax.swing.GroupLayout.DEFAULT_SIZE, 102, Short.MAX_VALUE)))\n );\n\n jComboBoxConfigFile.getAccessibleContext().setAccessibleDescription(bundle.getString(\"ACSD_ConfigurationFile\")); // NOI18N\n jComboBoxScope.getAccessibleContext().setAccessibleDescription(bundle.getString(\"ACSD_ManagedBeanScope\")); // NOI18N\n }", "title": "" }, { "docid": "f1c9e8a6299d27158944cf9fb8348466", "score": "0.44782066", "text": "public ConfigTool (SceneEditor editor, Class<T> clazz, EditableReference<T> eref)\n {\n super(editor);\n _clazz = clazz;\n _eref = eref;\n\n _recentConfigs = new RecentConfigList(getClass().getSimpleName());\n _recentConfigs.addObserver(new RecentConfigList.Observer() {\n @Override\n public void configSelected (ConfigReference<?> ref) {\n @SuppressWarnings(\"unchecked\") // we only add the right type\n ConfigReference<T> casted = (ConfigReference<T>)ref;\n setReference(casted);\n }\n });\n\n JPanel panel = new JPanel(\n new VGroupLayout(GroupLayout.STRETCH, GroupLayout.STRETCH, 5, GroupLayout.TOP));\n JSplitPane recentSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true,\n _recentConfigs, panel);\n add(recentSplit);\n\n // add the filter panel for configs\n _filterPanel = new ConfigTreeFilterPanel(editor.getMessageManager());\n panel.add(_filterPanel, GroupLayout.FIXED);\n\n // create and add the split pane\n JSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true,\n _pane = new JScrollPane(), _epanel = new EditorPanel(editor));\n split.setResizeWeight(1.0);\n panel.add(split);\n _epanel.setMinimumSize(new Dimension(120, 120));\n _epanel.setObject(eref);\n _epanel.addChangeListener(this);\n }", "title": "" }, { "docid": "4bb5f28096964742ce23a325ba5bca3e", "score": "0.44694933", "text": "public ManagedBeanPanelVisual(Project proj) {\n initComponents();\n setVisibleBeanDescription(false);\n boolean addToFacesConfig = false;\n\n WebModule wm = WebModule.getWebModule(proj.getProjectDirectory());\n Profile profile = null;\n if (wm != null){\n String[] configFiles = JSFConfigUtilities.getConfigFiles(wm);\n if (configFiles.length > 0){\n FileObject documentBase = wm.getDocumentBase();\n ArrayList<String> files = new ArrayList<String>();\n for (int i = 0; i < configFiles.length; i++){\n if (documentBase.getFileObject(configFiles[i]) != null)\n files.add(configFiles[i]);\n }\n configFiles = (String[])files.toArray(new String[files.size()]);\n }\n jComboBoxConfigFile.setModel(new javax.swing.DefaultComboBoxModel(configFiles));\n //No config files found\n if (configFiles.length==0) {\n addToConfigCheckBox.setEnabled(false);\n jComboBoxConfigFile.setEnabled(false);\n } else {\n profile = wm.getJ2eeProfile();\n if (profile != null && !profile.isAtLeast(Profile.JAVA_EE_6_WEB)) {\n addToFacesConfig = true;\n addToConfigCheckBox.setSelected(true);\n setVisibleBeanDescription(true);\n addToConfigCheckBox.setEnabled(false);\n }\n }\n }\n Object[] scopes;\n if(profile != null && (profile.isAtLeast(Profile.JAKARTA_EE_9_WEB))){\n org.netbeans.modules.jakarta.web.beans.CdiUtil cdiUtil = proj.getLookup().lookup(org.netbeans.modules.jakarta.web.beans.CdiUtil.class);\n isCDIEnabled = cdiUtil != null && cdiUtil.isCdiEnabled();\n } else {\n org.netbeans.modules.web.beans.CdiUtil cdiUtil = proj.getLookup().lookup(org.netbeans.modules.web.beans.CdiUtil.class);\n isCDIEnabled = cdiUtil != null && cdiUtil.isCdiEnabled();\n }\n if (isCDIEnabled && !addToFacesConfig) {\n scopes = ManagedBeanIterator.NamedScope.values();\n } else {\n scopes = ManagedBean.Scope.values();\n }\n\n for (Object scope : scopes) {\n scopeModel.addElement(scope);\n }\n\n jTextFieldName.setText(\"newJSFManagedBean\");\n jTextFieldName.getDocument().addDocumentListener(new PanelDocumentListener());\n jComboBoxScope.addActionListener(new PanelActionListener());\n\n// this.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(FormBeanNewPanelVisual.class, \"ACS_BeanFormProperties\")); // NOI18N\n }", "title": "" }, { "docid": "52d8efabed465e5f92ccb6a305017f9e", "score": "0.44569004", "text": "public ConfigurationPanel getDetectorConfigurationPanel( final Settings settings, final Model model );", "title": "" }, { "docid": "adb81782fc6c2b5df511929707bb4108", "score": "0.44365823", "text": "@NonNull\n public Config build() {\n if (mLoadActionListener != null && mLoadActionExecutor == null) {\n throw new IllegalArgumentException(\n \"A loadActionExecutor should always be set if setting a\"\n + \" loadActionListener.\");\n } else if (mLoadActionListener == null && mLoadActionExecutor != null) {\n throw new IllegalArgumentException(\n \"A loadActionExecutor has been provided but no loadActionListener was\"\n + \" set.\");\n }\n\n if (mLoadActionListener == null) {\n mLoadActionListener = p -> {};\n }\n if (mProtoLayoutTheme == null) {\n this.mProtoLayoutTheme = ProtoLayoutThemeImpl.defaultTheme(mUiContext);\n }\n\n return new Config(\n mUiContext,\n mLayout,\n mLayoutResourceResolvers,\n mLoadActionExecutor,\n checkNotNull(mLoadActionListener),\n mRendererResources,\n checkNotNull(mProtoLayoutTheme),\n mDataPipeline,\n mExtensionViewProvider,\n checkNotNull(mClickableIdExtra),\n mAnimationEnabled,\n mAllowLayoutChangingBindsWithoutDefault);\n }", "title": "" }, { "docid": "c539141c89b410026f7a9920f8596473", "score": "0.44303158", "text": "public abstract Component getConfigUI(GenesysDB.DesignDetails[] designs);", "title": "" }, { "docid": "89d21ac8031816b26e977335958e75a3", "score": "0.43959454", "text": "@Override\r\n\tprotected void configuraJPanel() {\n\r\n\t}", "title": "" }, { "docid": "1dc8111a30d9a41c1509fda0b8054800", "score": "0.4370125", "text": "public interface Config {\n\n /**\n * Sets the unique identifier for the configuration.\n * The identifier is used to name shell scripts to invoke\n * the plugin and should not contain any spaces.\n *\n * @param id the identifier\n */\n public void setId(String id);\n\n /**\n * Gets the unique identifier for this configuration.\n *\n * @return the unique identifier\n */\n public String getId();\n\n\n /**\n * Sets the configuration version.\n *\n * @param version the version\n */\n public void setVersion(String version);\n\n /**\n * Gets the configuration version.\n *\n * @return the version\n */\n public String getVersion();\n\n /**\n * Sets the name of the configuration, as it will appear\n * in the GobyWeb user interface.\n *\n * @param name the name\n */\n public void setName(String name);\n\n /**\n * Gets the name of the configuration\n *\n * @return the name\n */\n public String getName();\n\n /**\n * Sets the help text to display in the GobyWeb user-interface.\n *\n * @param help the help text\n */\n public void setHelp(String help);\n\n /**\n * Gets the help text\n *\n * @return the help text\n */\n public String getHelp();\n\n /**\n * When non-null, database identifier stored by previous versions of GobyWeb. This field doesn't\n * have the requirement about containing spaces as it isn't used in scripts.\n *\n * @param dbLegacyId the database identifier\n */\n public void setDbLegacyId(String dbLegacyId);\n\n /**\n * Gets database identifier stored by previous versions of GobyWeb\n *\n * @return the database identifier\n */\n public String getDbLegacyId();\n\n /**\n * Sets the location of the configuration directory on the web server/development machine.\n */\n public void setDirectory(String pluginDirectory);\n\n /**\n * Gets the configuration directory\n *\n * @return the configuration directory\n */\n public String getDirectory();\n\n /**\n * Checks if the configuration is disabled or not\n *\n * @return true if the configuration is disabled, false otherwise\n */\n public boolean isDisabled();\n\n /**\n * Disables/enables the configuration. When disabled, the configuration can still have viewable objects that are made with it\n * but no NEW objects can be created using this configuration.\n */\n public void setDisabled(boolean disabled);\n\n /**\n * Gets a human readable description of the configuration type\n *\n * @return the description\n */\n public String getHumanReadableConfigType();\n\n /**\n * Validates the configuration. Call this method after unmarshalling a config to check that the configuration\n * is semantically valid. Returns null when no errors are found in the configuration, or a list of errors encountered.\n * This method also sets userDefinedValue for required options.\n *\n * @return list of error messages, or null when no errors are detected.\n */\n public void validate(List<String> errors);\n\n /**\n * Sets the template to use to render the options in a\n * graphical user interface.\n *\n * @param template the template\n */\n public void setUiTemplate(String template);\n\n /**\n * Gets the UI template.\n *\n * @return the template\n */\n public String getUiTemplate();\n\n /**\n * Validates the configuration identifier\n * @param type\n * @param id\n * @param errors\n */\n public void validateId(final String type, final String id, final List<String> errors);\n\n\n /**\n * This method called after the reading of the config.xml file\n */\n public void configFileReadEvent();\n\n /**\n * This method called after the configuration is loaded to allow any specific post-loading activity\n */\n public void loadCompletedEvent();\n\n}", "title": "" }, { "docid": "6bfdcc8d8f0960d7b2c9942ef6db4d32", "score": "0.43628827", "text": "com.hemayun.bblwheel.Bblwheel.Config getConfig();", "title": "" }, { "docid": "81ac655ed6867ef981221a0c3fd7ba25", "score": "0.43513203", "text": "V getOrCreate(@Nonnull final C config);", "title": "" }, { "docid": "83c5d1f48446cb2364aa72a01d8d6c4c", "score": "0.4336379", "text": "protected abstract ComponentProvider<?> createDefaultComponentProvider();", "title": "" }, { "docid": "288da7f06b754bb300c8e5f9e63fa0b4", "score": "0.4328827", "text": "@Override\n\tprotected JComponent buildMainDisplayArea() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n\n\t\tclassicDisplay = new ClassicLEDDisplayPanel(this);\n\t\tenhancedDisplay = new EnhancedLEDDisplayPanel(this);\n\n\t\tdisplayPanel = classicDisplay;\n\n\t\tJPanel subPanel = new JPanel();\n\t\tgridCheckBox = new JCheckBox(\"Show Grid Lines\");\n\t\tgridCheckBox.addItemListener((e) -> {\n\t\t\tdisplayPanel.setGridLinesEnabled(e.getStateChange() == ItemEvent.SELECTED);\n\t\t\tdisplayPanel.revalidate();\n\t\t\tthis.theWindow.pack();\n\t\t\tdisplayPanel.repaint();\n\t\t\tdisplayPanel.requestFocusInWindow();\n\t\t});\n\t\tsubPanel.add(gridCheckBox);\n\n\t\tzoomCheckBox = new JCheckBox(\"Zoom\");\n\t\tzoomCheckBox.addItemListener((e) -> {\n\t\t\tdisplayPanel.setZoomed(e.getStateChange() == ItemEvent.SELECTED);\n\t\t\tdisplayPanel.revalidate();\n\t\t\tthis.theWindow.pack();\n\t\t\tdisplayPanel.repaint();\n\t\t\tdisplayPanel.requestFocusInWindow();\n\t\t});\n\t\tsubPanel.add(zoomCheckBox);\n\n\t\tpanel.add(subPanel);\n\t\tpanel.add(displayPanel);\n\n\t\tdisplayPanel.requestFocusInWindow();\n\n\t\treturn panel;\n\t}", "title": "" }, { "docid": "68904df0fe18047558c42b25a25d77f8", "score": "0.4323295", "text": "public static AcideToolBarConfiguration getInstance() {\r\n\r\n\t\tif (_instance == null)\r\n\t\t\t_instance = new AcideToolBarConfiguration();\r\n\r\n\t\treturn _instance;\r\n\t}", "title": "" }, { "docid": "8de14c81d214ec2a98ab1947f2419b52", "score": "0.43031093", "text": "ConfigureComponent configure();", "title": "" }, { "docid": "becac641a456af69e1f9dcd815feb688", "score": "0.42957953", "text": "private void showConfig() {\n if (session.getInterviewParameters().getFile() == null) {\n newConfig();\n } else {\n showConfig(InterviewEditor.FULL_MODE);\n }\n }", "title": "" }, { "docid": "c57c2c31bd681cf8dc3b7eb0c08d3c46", "score": "0.42912453", "text": "public boolean IsVisible(IConfigurable conf) {\n if (conf == null)\n return true;\n\n if (conf instanceof ViewFactory) {\n return IsVisibleView((ViewFactory) conf);\n } else {\n return conf.getOption(Factory.OPT_VISIBLE).getBoolean(true);\n }\n }", "title": "" }, { "docid": "84e960cc9d5154e794492d8c31d7b3f7", "score": "0.42854136", "text": "private static Map configHelper(Map configuration) {\n\n\tMap config;\n\n\tif (configuration == null) {\n\t config = new RenderingHints(JAI.KEY_REPLACE_INDEX_COLOR_MODEL,\n\t\t\t\t\tBoolean.FALSE);\n\t} else {\n\n\t config = configuration;\n\n\t if (!config.containsKey(JAI.KEY_REPLACE_INDEX_COLOR_MODEL)) {\n\t\tRenderingHints hints = (RenderingHints)configuration;\n\t\tconfig = (RenderingHints)hints.clone();\n\t\tconfig.put(JAI.KEY_REPLACE_INDEX_COLOR_MODEL, Boolean.FALSE);\n\t }\n\t}\n\n\treturn config;\n }", "title": "" }, { "docid": "f399a042f34e6e6f657450c816358eaf", "score": "0.42683476", "text": "public void populateConfigScreen() {\n boolean loadConfig = getIntent().getBooleanExtra(User.EXTRA_PRESENT, false);\n if (loadConfig) {\n stripConfig = (LEDConfigPattern) getIntent().getSerializableExtra(User.CONFIG_OBJ);\n\n //if loadedConfig is public make sure checkbox appears checked on config screen\n checkTheCheckboxIfPublic(stripConfig.isPublic); //passes true or false depending on if the config is public and checks or unchecks the checkbox accordingly\n\n if (!stripConfig.configName.equals(\"default\")) {\n configName.setText(stripConfig.configName);\n\n for (int i = 0; i < stripConfig.commandArray.size(); i++) {\n String effectName = stripConfig.commandArray.get(i).effect;\n //System.out.println(effectName);\n //System.out.println(\"range length \" + stripConfig.commandArray.get(i).range.length );\n\n //TODO put effect spinner in array\n for (int j = 1; j < Command.effectList.length; j++) {\n if (effectName.equals(Command.effectList[j])) {\n if (i == 0) {\n effects1.setSelection(j);\n //range1.setText(stripConfig.commandArray.get(j).range.toString());\n //deactivate box\n } else {\n effects2.setSelection(j);\n //range2.setText(stripConfig.commandArray.get(j).range.toString());\n //deactivate box\n }\n }\n }\n }\n //System.out.println(gson.toJson(stripConfig));\n }\n }\n }", "title": "" }, { "docid": "fbe8c223fa89635354cfe809385ab6da", "score": "0.4262065", "text": "public String setSettings (String cfg)\n {\n CfFileReader f = new CfFileReader();\n Vector p;\n if ( !f.parseText( cfg ) )\n {\n return \"NumberSpectrumViewer.setSettings: Failed to parse given config\";\n }\n // General settings\n p = f.getParam( \"graph_title\" );\n if ( p != null ) setHeader( OFormat.getName( p.get( 0 ).toString() ) );\n p = f.getParam( \"label_visible\" );\n if ( p != null ) setLabelVisible( OFormat.getBoolean( p.get( 0 ).toString() ) );\n p = f.getParam( \"graph_background\" );\n if ( p != null ) setBackground( OFormat.getColor( p ) );\n p = f.getParam( \"title_font\" );\n if ( p != null ) setHeaderFont( OFormat.getFont( p ) );\n // xAxis\n JLAxis a = getXAxis();\n p = f.getParam( \"xgrid\" );\n if ( p != null ) a.setGridVisible( OFormat.getBoolean( p.get( 0 ).toString() ) );\n p = f.getParam( \"xsubgrid\" );\n if ( p != null ) a.setSubGridVisible( OFormat.getBoolean( p.get( 0 ).toString() ) );\n p = f.getParam( \"xgrid_style\" );\n if ( p != null ) a.setGridStyle( OFormat.getInt( p.get( 0 ).toString() ) );\n p = f.getParam( \"xmin\" );\n if ( p != null ) a.setMinimum( OFormat.getDouble( p.get( 0 ).toString() ) );\n p = f.getParam( \"xmax\" );\n if ( p != null ) a.setMaximum( OFormat.getDouble( p.get( 0 ).toString() ) );\n p = f.getParam( \"xautoscale\" );\n if ( p != null ) a.setAutoScale( OFormat.getBoolean( p.get( 0 )\n .toString() ) );\n p = f.getParam( \"xcale\" );\n if ( p != null ) a.setScale( OFormat.getInt( p.get( 0 ).toString() ) );\n p = f.getParam( \"xformat\" );\n if ( p != null ) a.setLabelFormat( OFormat.getInt( p.get( 0 ).toString() ) );\n p = f.getParam( \"xtitle\" );\n if ( p != null ) a.setName( OFormat.getName( p.get( 0 ).toString() ) );\n p = f.getParam( \"xcolor\" );\n if ( p != null ) a.setAxisColor( OFormat.getColor( p ) );\n p = f.getParam( \"xlabel_font\" );\n if ( p != null ) a.setFont( OFormat.getFont( p ) );\n // y1Axis\n a = getY1Axis();\n p = f.getParam( \"y1grid\" );\n if ( p != null ) a.setGridVisible( OFormat.getBoolean( p.get( 0 ).toString() ) );\n p = f.getParam( \"y1subgrid\" );\n if ( p != null ) a.setSubGridVisible( OFormat.getBoolean( p.get( 0 ).toString() ) );\n p = f.getParam( \"y1grid_style\" );\n if ( p != null ) a.setGridStyle( OFormat.getInt( p.get( 0 ).toString() ) );\n p = f.getParam( \"y1min\" );\n if ( p != null ) a.setMinimum( OFormat\n .getDouble( p.get( 0 ).toString() ) );\n p = f.getParam( \"y1max\" );\n if ( p != null ) a.setMaximum( OFormat\n .getDouble( p.get( 0 ).toString() ) );\n p = f.getParam( \"y1autoscale\" );\n if ( p != null ) a.setAutoScale( OFormat.getBoolean( p.get( 0 ).toString() ) );\n p = f.getParam( \"y1cale\" );\n if ( p != null ) a.setScale( OFormat.getInt( p.get( 0 ).toString() ) );\n p = f.getParam( \"y1format\" );\n if ( p != null ) a.setLabelFormat( OFormat.getInt( p.get( 0 ).toString() ) );\n p = f.getParam( \"y1title\" );\n if ( p != null ) a.setName( OFormat.getName( p.get( 0 ).toString() ) );\n p = f.getParam( \"y1color\" );\n if ( p != null ) a.setAxisColor( OFormat.getColor( p ) );\n p = f.getParam( \"y1label_font\" );\n if ( p != null ) a.setFont( OFormat.getFont( p ) );\n // y2Axis\n a = getY2Axis();\n p = f.getParam( \"y2grid\" );\n if ( p != null ) a.setGridVisible( OFormat.getBoolean( p.get( 0 ).toString() ) );\n p = f.getParam( \"y2subgrid\" );\n if ( p != null ) a.setSubGridVisible( OFormat.getBoolean( p.get( 0 ).toString() ) );\n p = f.getParam( \"y2grid_style\" );\n if ( p != null ) a.setGridStyle( OFormat.getInt( p.get( 0 ).toString() ) );\n p = f.getParam( \"y2min\" );\n if ( p != null ) a.setMinimum( OFormat\n .getDouble( p.get( 0 ).toString() ) );\n p = f.getParam( \"y2max\" );\n if ( p != null ) a.setMaximum( OFormat\n .getDouble( p.get( 0 ).toString() ) );\n p = f.getParam( \"y2autoscale\" );\n if ( p != null ) a.setAutoScale( OFormat.getBoolean( p.get( 0 ).toString() ) );\n p = f.getParam( \"y2cale\" );\n if ( p != null ) a.setScale( OFormat.getInt( p.get( 0 ).toString() ) );\n p = f.getParam( \"y2format\" );\n if ( p != null ) a.setLabelFormat( OFormat.getInt( p.get( 0 ).toString() ) );\n p = f.getParam( \"y2title\" );\n if ( p != null ) a.setName( OFormat.getName( p.get( 0 ).toString() ) );\n p = f.getParam( \"y2color\" );\n if ( p != null ) a.setAxisColor( OFormat.getColor( p ) );\n p = f.getParam( \"y2label_font\" );\n if ( p != null ) a.setFont( OFormat.getFont( p ) );\n return \"\";\n }", "title": "" }, { "docid": "31b31105e693b3ddafe5a0baf7339f86", "score": "0.42578337", "text": "public void setWriterConfig(WriterConfig config);", "title": "" }, { "docid": "1e8a913af2073a79ec6c4c9175482551", "score": "0.4237765", "text": "Optional<String> getJMXExporterConfig(String templateName);", "title": "" }, { "docid": "e6565f187e6874d6d1d09ad4b76a835b", "score": "0.42324185", "text": "private JPanel createNamePanel() {\r\n\t\tJPanel panel = new JPanel();\r\n\t\tFormLayout layout = new FormLayout(\"pref,2dlu,pref:grow\", \"pref,2dlu,pref,4dlu\");\r\n\t\tpanel.setLayout(layout);\r\n\t\tCellConstraints cc = new CellConstraints();\r\n\r\n\t\tpanel.add(new JLabel(I18N.getLocalizedDialogLabel(\"Name\")), cc.xy(1, 1));\r\n\t\tm_name_field = new JTextField();\r\n\t\tm_name_field.setEnabled(false);\r\n\t\tpanel.add(m_name_field, cc.xy(3, 1));\r\n\r\n\t\tpanel.add(new JLabel(I18N.getLocalizedDialogLabel(\"Component\")), cc.xy(1, 3));\r\n\r\n\t\tlayout = new FormLayout(\"d:grow,24px\", \"fill:pref\");\r\n\t\tm_class_field = new JTextField();\r\n\t\tm_class_field.setEditable(false);\r\n\t\tJPanel cpanel = new JPanel(layout);\r\n\r\n\t\tm_customizer_btn = new JButton(FormDesignerUtils.loadImage(Icons.EDIT_16));\r\n\t\tm_customizer_btn.setPreferredSize(new java.awt.Dimension(24, 16));\r\n\t\tm_customizer_btn.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\r\n\t\t\t\tshowCustomizerDialog();\r\n\t\t\t}\r\n\t\t});\r\n\t\tm_customizer_btn.setToolTipText(I18N.getLocalizedMessage(\"Bean Customizer\"));\r\n\t\tm_customizer_btn.setEnabled(false);\r\n\r\n\t\tcpanel.add(m_class_field, cc.xy(1, 1));\r\n\t\tcpanel.add(m_customizer_btn, cc.xy(2, 1));\r\n\r\n\t\tpanel.add(cpanel, cc.xy(3, 3));\r\n\r\n\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\r\n\r\n\t\tm_name_field.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\r\n\t\t\t\tupdateBeanName();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn panel;\r\n\t}", "title": "" }, { "docid": "251f970936fc2028b63511c2c0dc9f6c", "score": "0.42310688", "text": "public Object getConfig();", "title": "" }, { "docid": "8d34f39397e2cf78c0af5e62c36d9880", "score": "0.4216701", "text": "static IGameConfigReader getInstance() {\n return Config.getInstance();\n }", "title": "" }, { "docid": "d1c5092ef5ef21a265dbe998a32c0895", "score": "0.42117035", "text": "private static Checker createCheckerInternal(URL config, PropertyResolver propResolver)\n throws CheckstyleException\n {\n \n // load configuration\n Configuration configuration = ConfigurationLoader.loadConfiguration(config.toString(),\n propResolver, true);\n \n // create and configure checker\n Checker checker = new Checker();\n\n //set the eclipse platform locale\n Locale platformLocale = getPlatformLocale();\n checker.setLocaleLanguage(platformLocale.getLanguage());\n checker.setLocaleCountry(platformLocale.getCountry());\n\n checker.setClassloader(sSharedClassLoader);\n checker.configure(configuration);\n \n return checker;\n }", "title": "" }, { "docid": "e889456ad57ef07e913a7ece0319ffc1", "score": "0.4207333", "text": "Config createConfig();", "title": "" }, { "docid": "de3ab2bc88eb4518a2c4c21379bff65e", "score": "0.42033836", "text": "public abstract void config();", "title": "" }, { "docid": "9267b0d0b941e7d857fa6c3d8f13d84c", "score": "0.41967422", "text": "public static SimulationConfigEditor show(Window parent, String filename, boolean allowModify, DisplaySettings displaySettings) {\r\n\t\t// Create and set up the content pane.\r\n\t\tSimulationConfigEditor configEditor = new SimulationConfigEditor(parent, filename, allowModify, displaySettings);\r\n\t\tconfigEditor.show();\r\n\t\treturn configEditor;\r\n\t}", "title": "" }, { "docid": "269f87bdf9c22cf944f9e868b903bcb4", "score": "0.41872638", "text": "@Override\n public FacesConfig getMetaInfServicesFacesConfig(ExternalContext ectx)\n {\n try\n {\n org.apache.myfaces.config.impl.element.FacesConfigImpl facesConfig\n = new org.apache.myfaces.config.impl.element.FacesConfigImpl();\n org.apache.myfaces.config.impl.element.FactoryImpl factory\n = new org.apache.myfaces.config.impl.element.FactoryImpl();\n \n facesConfig.addFactory(factory);\n \n for (String factoryName : FACTORY_NAMES)\n {\n List<String> classList = ServiceProviderFinderFactory.getServiceProviderFinder(ectx)\n .getServiceProviderList(factoryName);\n \n for (String className : classList)\n {\n if (log.isLoggable(Level.INFO))\n {\n log.info(\"Found \" + factoryName + \" factory implementation: \" + className);\n }\n\n switch (factoryName)\n {\n case FactoryFinder.APPLICATION_FACTORY:\n factory.addApplicationFactory(className);\n break;\n case FactoryFinder.EXCEPTION_HANDLER_FACTORY:\n factory.addExceptionHandlerFactory(className);\n break;\n case FactoryFinder.EXTERNAL_CONTEXT_FACTORY:\n factory.addExternalContextFactory(className);\n break;\n case FactoryFinder.FACES_CONTEXT_FACTORY:\n factory.addFacesContextFactory(className);\n break;\n case FactoryFinder.LIFECYCLE_FACTORY:\n factory.addLifecycleFactory(className);\n break;\n case FactoryFinder.RENDER_KIT_FACTORY:\n factory.addRenderkitFactory(className);\n break;\n case FactoryFinder.TAG_HANDLER_DELEGATE_FACTORY:\n factory.addTagHandlerDelegateFactory(className);\n break;\n case FactoryFinder.PARTIAL_VIEW_CONTEXT_FACTORY:\n factory.addPartialViewContextFactory(className);\n break;\n case FactoryFinder.VISIT_CONTEXT_FACTORY:\n factory.addVisitContextFactory(className);\n break;\n case FactoryFinder.VIEW_DECLARATION_LANGUAGE_FACTORY:\n factory.addViewDeclarationLanguageFactory(className);\n break;\n case FactoryFinder.FLASH_FACTORY:\n factory.addFlashFactory(className);\n break;\n case FactoryFinder.FLOW_HANDLER_FACTORY:\n factory.addFlowHandlerFactory(className);\n break;\n case FactoryFinder.CLIENT_WINDOW_FACTORY:\n factory.addClientWindowFactory(className);\n break;\n case FactoryFinder.FACELET_CACHE_FACTORY:\n factory.addFaceletCacheFactory(className);\n break;\n case FactoryFinder.SEARCH_EXPRESSION_CONTEXT_FACTORY:\n factory.addSearchExpressionContextFactory(className);\n break;\n default:\n throw new IllegalStateException(\"Unexpected factory name \" + factoryName);\n }\n }\n }\n return facesConfig;\n }\n catch (Throwable e)\n {\n throw new FacesException(e);\n }\n }", "title": "" }, { "docid": "2c66b2688172a1e90434411468049ea3", "score": "0.41809118", "text": "public void setup ( Color background_colour, Color foreground_colour )\n {\n PLATFORM = new JPanel ( );\n\t\t\t\tPLATFORM.setBackground ( background_colour );\n\t\t\t\t\n for ( int boxxes = 0; boxxes < getMaximumcheckboxes ( ); boxxes ++ )\n {\n PLATFORM.add ( CHECKBOXES.get ( boxxes ) );\n CHECKBOXES.get ( boxxes ).setBackground ( background_colour );\n CHECKBOXES.get ( boxxes ).setForeground ( foreground_colour );\n }\n PLATFORM.setLayout ( new BoxLayout ( PLATFORM, layout_type ) );\n //add the list pane to a scrollable pane\n //list_scroll_pane.add ( PLATFORM );\n //add scroll pane to destination panel\n destination_pane.add ( PLATFORM );\n }", "title": "" }, { "docid": "61b4bfea970c707d97787c3b152cbddf", "score": "0.41809013", "text": "public InfoMakerGUI(){\n this(new File(System.getProperty(\"user.home\")\n + File.separator+\".dove\"+File.separator + \"info.cfg\"));\n }", "title": "" }, { "docid": "c0c07c34bf41a29711ab0eb81e15ac8a", "score": "0.41577756", "text": "public JPanel getSettingsPanel()\r\n\t{\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\r\n\t\t\r\n\t\tJPanel objectPanel = new JPanel();\r\n\t\tobjectPanel.setLayout(new GridLayout(objects.size(), 2, 5, 5));\r\n\t\t\r\n\t\tJLabel lblName = new JLabel(name+\" settings\", JLabel.CENTER);\r\n\t\tlblName.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 20));\r\n\t\tpanel.add(lblName);\r\n\t\t\r\n\t\tif( objects.size() == 0) {\r\n\t\t\tpanel.add(new JLabel(\"No settings to set.\", JLabel.CENTER));\r\n\t\t} else {\r\n\t\t\tfor(FJSettingsObject obj : objects.values()) {\r\n\t\t\t\t\r\n\t\t\t\tobjectPanel.add(new JLabel(obj.getText()+\" \", JLabel.RIGHT));\r\n\t\t\t\t\r\n\t\t\t\tif (FJSettingsString.class.isInstance(obj))\t{\r\n\t\t\t\t\tJTextField txt = new JTextField((String)obj.getValue(), 15);\r\n\t\t\t\t\ttxt.addFocusListener(new ChangeValueOnAction(obj));\r\n\t\t\t\t\tobjectPanel.add(txt);\r\n\t\t\t\t} else if (FJSettingsInteger.class.isInstance(obj)) {\t\t\t\t\r\n\t\t\t\t\tInteger value = (Integer)obj.getValue();\r\n\t\t\t\t\tJFormattedTextField txt = new JFormattedTextField(value);\r\n\t\t\t\t\ttxt.setFocusLostBehavior(JFormattedTextField.COMMIT_OR_REVERT);\r\n\t\t\t\t\ttxt.setColumns(15);\r\n\t\t\t\t\ttxt.addFocusListener(new ChangeValueOnAction(obj));\r\n\t\t\t\t\tobjectPanel.add(txt);\r\n\t\t\t\t} else if (FJSettingsCombo.class.isInstance(obj)) {\r\n\t\t\t\t\tFJSettingsCombo combo = (FJSettingsCombo)obj;\r\n\t\t\t\t\tJComboBox box = new JComboBox(combo.getObjects().toArray());\r\n\t\t\t\t\tbox.addActionListener(new ComboboxListener(combo));\r\n\t\t\t\t\tbox.setSelectedIndex(combo.getActiveIndex());\r\n\t\t\t\t\tobjectPanel.add(box);\r\n\t\t\t\t} else if (FJSettingsBoolean.class.isInstance(obj)) {\r\n\t\t\t\t\tFJSettingsBoolean boolObj = (FJSettingsBoolean)obj;\r\n\t\t\t\t\tJCheckBox box = new JCheckBox(\"\", boolObj.getValue());\r\n\t\t\t\t\tbox.addActionListener(new ChangeValueOnAction(obj));\r\n\t\t\t\t\tobjectPanel.add(box);\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tpanel.add(objectPanel);\r\n\t\t\r\n\t\treturn panel;\r\n\t}", "title": "" }, { "docid": "477672f4d5baee2069a632c2ec890ab1", "score": "0.41521105", "text": "public WriterConfig getWriterConfig();", "title": "" }, { "docid": "202113df92b7b5a7e6a8e666afaf342a", "score": "0.4146241", "text": "public CustomGraphicsManagerImpl(final CyProperty<Properties> properties, \n\t final DialogTaskManager taskManager, \n\t final CyApplicationConfiguration config, \n\t final CyEventHelper eventHelper, \n\t final VisualMappingManager vmm, \n\t final CyApplicationManager applicationManager, \n\t final Set<URL> defaultImageURLs) {\n\n\t\tthis.taskManager = taskManager;\n\t\tthis.eventHelper = eventHelper;\n\t\tthis.vmm = vmm;\n\t\tthis.applicationManager = applicationManager;\n\t\tthis.isUsedCustomGraphics = new HashMap<CyCustomGraphics, Boolean>();\n\t\tthis.factoryMap = new HashMap<String, CyCustomGraphicsFactory>();\n\t\tthis.factoryPropsMap = new HashMap<CyCustomGraphicsFactory, Map>();\n\n\t\tif (properties == null)\n\t\t\tthrow new NullPointerException(\"Property object is null.\");\n\n\t\tfinal Properties props = properties.getProperties();\n\n\t\tif (props == null)\n\t\t\tthrow new NullPointerException(\"Property is missing.\");\n\n\t\t// Usually, this is USER_HOME/.cytoscape/images3\n\t\tthis.imageHomeDirectory = new File(config.getConfigurationDirectoryLocation(), IMAGE_DIR_NAME);\n\n\t\t// Add NULL graphics. This will be used to reset Custom Graphics.\n\t\tgraphicsMap.put(NULL.getIdentifier(), NULL);\n\t\tthis.isUsedCustomGraphics.put(NULL, false);\n\n\t\t// Restore Custom Graphics from the directory.\n\t\tfinal RestoreImageTaskFactory taskFactory = \n\t\t new RestoreImageTaskFactory(defaultImageURLs, imageHomeDirectory, this, eventHelper,\n\t\t vmm, applicationManager);\n\t\ttaskManager.execute(taskFactory.createTaskIterator());\n\t\tinstance = this;\n\t}", "title": "" }, { "docid": "96d95099df1719d1cbb62ba4235da9fa", "score": "0.4143868", "text": "private void showCustomizerDialog() {\r\n\t\ttry {\r\n\t\t\tstopEditing();\r\n\t\t\tClass ccustomizer = getCustomizer();\r\n\t\t\tif (ccustomizer != null) {\r\n\t\t\t\tComponent comp = (Component) ccustomizer.newInstance();\r\n\t\t\t\tJETAPanel panel = new JETAPanel(new BorderLayout());\r\n\t\t\t\tpanel.add(comp, BorderLayout.CENTER);\r\n\t\t\t\tJETADialog dlg = (JETADialog) JETAToolbox.createDialog(JETADialog.class, this, true);\r\n\t\t\t\tdlg.setPrimaryPanel(panel);\r\n\t\t\t\tdlg.setTitle(I18N.getLocalizedMessage(\"Bean Customizer\"));\r\n\t\t\t\tDimension sz = panel.getPreferredSize();\r\n\t\t\t\tsz.width = Math.max(sz.width, 200);\r\n\t\t\t\tsz.height = Math.max(sz.height, 75);\r\n\t\t\t\tpanel.setPreferredSize(sz);\r\n\r\n\t\t\t\tdlg.setSize(dlg.getPreferredSize());\r\n\r\n\t\t\t\tjava.beans.Customizer custom = (java.beans.Customizer) comp;\r\n\t\t\t\tcustom.setObject(getBean().getDelegate());\r\n\t\t\t\tcustom.addPropertyChangeListener(new java.beans.PropertyChangeListener() {\r\n\t\t\t\t\tpublic void propertyChange(java.beans.PropertyChangeEvent evt) {\r\n\t\t\t\t\t\tm_current_comp.fireGridCellEvent(new GridCellEvent(GridCellEvent.CELL_CHANGED, m_current_comp));\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tdlg.showCenter();\r\n\t\t\t\tif (dlg.isOk()) {\r\n\t\t\t\t\tm_current_comp.fireGridCellEvent(new GridCellEvent(GridCellEvent.CELL_CHANGED, m_current_comp));\r\n\t\t\t\t\trefreshView();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tFormsLogger.severe(e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2f8c301f5aa13d6fad086c2ff7770961", "score": "0.4143439", "text": "private void $$$setupUI$$$() {\n createUIComponents();\n myContent = new JPanel();\n myContent.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), 0, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(7, 1, new Insets(0, 0, 0, 0), -1, -1));\n myContent.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n panel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEmptyBorder(10, 10, 0, 0), null, TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null));\n myPublicMember = new JCheckBox();\n myPublicMember.setSelected(true);\n this.$$$loadButtonText$$$(myPublicMember, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.public.member\"));\n panel1.add(myPublicMember, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myProtectedMember = new JCheckBox();\n myProtectedMember.setSelected(true);\n this.$$$loadButtonText$$$(myProtectedMember, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.protected.member\"));\n panel1.add(myProtectedMember, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myLocalDefinition = new JCheckBox();\n this.$$$loadButtonText$$$(myLocalDefinition, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.local.definition\"));\n panel1.add(myLocalDefinition, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myFunctionParameter = new JCheckBox();\n this.$$$loadButtonText$$$(myFunctionParameter, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.function.literal.parameter\"));\n panel1.add(myFunctionParameter, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myUnderscoerParameter = new JCheckBox();\n this.$$$loadButtonText$$$(myUnderscoerParameter, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.underscore.parameter\"));\n panel1.add(myUnderscoerParameter, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myPrivateMember = new JCheckBox();\n this.$$$loadButtonText$$$(myPrivateMember, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.private.member\"));\n panel1.add(myPrivateMember, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final TitledSeparator titledSeparator1 = new TitledSeparator();\n titledSeparator1.setText(this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.use.for\"));\n panel1.add(titledSeparator1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(12, 2, new Insets(0, 0, 0, 0), 0, -1));\n myContent.add(panel2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n panel2.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0), null, TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null));\n myConstant = new JCheckBox();\n myConstant.setSelected(true);\n this.$$$loadButtonText$$$(myConstant, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.constant.final.val\"));\n panel2.add(myConstant, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myMemberOfAnonymousClass = new JCheckBox();\n this.$$$loadButtonText$$$(myMemberOfAnonymousClass, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.member.of.anonymous.class\"));\n panel2.add(myMemberOfAnonymousClass, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myMemberOfPrivateClass = new JCheckBox();\n this.$$$loadButtonText$$$(myMemberOfPrivateClass, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.member.of.private.class\"));\n panel2.add(myMemberOfPrivateClass, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myStableType = new JCheckBox();\n myStableType.setSelected(true);\n this.$$$loadButtonText$$$(myStableType, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.type.is.stable\"));\n myStableType.setToolTipText(this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.type.is.stable.tooltip\"));\n panel2.add(myStableType, new GridConstraints(8, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel2.add(spacer1, new GridConstraints(0, 0, 12, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, 1, new Dimension(30, -1), null, null, 0, false));\n myTestSources = new JCheckBox();\n this.$$$loadButtonText$$$(myTestSources, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.in.test.sources\"));\n panel2.add(myTestSources, new GridConstraints(10, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myDialectSources = new JCheckBox();\n this.$$$loadButtonText$$$(myDialectSources, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.in.scala.dialect.sources\"));\n myDialectSources.setToolTipText(this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.in.scala.dialect.sources.tooltip\"));\n panel2.add(myDialectSources, new GridConstraints(11, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel2.add(panel3, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n panel3.add(myMembers, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n this.$$$loadLabelText$$$(label1, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.member.of\"));\n panel3.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(85, -1), null, null, 0, false));\n final JPanel panel4 = new JPanel();\n panel4.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel2.add(panel4, new GridConstraints(9, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n this.$$$loadLabelText$$$(label2, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.type.matches\"));\n panel4.add(label2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(85, -1), null, null, 0, false));\n panel4.add(myTypes, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final TitledSeparator titledSeparator2 = new TitledSeparator();\n titledSeparator2.setText(this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.except.when\"));\n panel2.add(titledSeparator2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel5 = new JPanel();\n panel5.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n panel2.add(panel5, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n this.$$$loadLabelText$$$(label3, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.annotated.with\"));\n panel5.add(label3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(85, -1), null, null, 0, false));\n panel5.add(myAnnotations, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n myContent.add(spacer2, new GridConstraints(2, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JPanel panel6 = new JPanel();\n panel6.setLayout(new GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));\n myContent.add(panel6, new GridConstraints(1, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n panel6.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEmptyBorder(0, 10, 0, 0), null, TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null));\n final TitledSeparator titledSeparator3 = new TitledSeparator();\n titledSeparator3.setText(this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.enforce.for\"));\n panel6.add(titledSeparator3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n myImplicitModifier = new JCheckBox();\n myImplicitModifier.setSelected(true);\n this.$$$loadButtonText$$$(myImplicitModifier, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.implicit.definition\"));\n panel6.add(myImplicitModifier, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myUnitType = new JCheckBox();\n myUnitType.setSelected(true);\n this.$$$loadButtonText$$$(myUnitType, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.unit.type\"));\n panel6.add(myUnitType, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n myStructuralType = new JCheckBox();\n myStructuralType.setSelected(true);\n this.$$$loadButtonText$$$(myStructuralType, this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.accidental.structural.type\"));\n myStructuralType.setToolTipText(this.$$$getMessageFromBundle$$$(\"messages/ScalaBundle\", \"type.annotations.panel.accidental.structural.type.tooltip\"));\n panel6.add(myStructuralType, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer3 = new Spacer();\n myContent.add(spacer3, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, 1, new Dimension(30, -1), null, null, 0, false));\n }", "title": "" }, { "docid": "eb9c0047badb91bc4336de3cd0aec37c", "score": "0.41391695", "text": "@Override\n\tpublic JComponent buildComponent() {\n\t\treturn buildMainSettingsPage();\n\t}", "title": "" }, { "docid": "bf5683e29f805de05c3bd8d27dd0db49", "score": "0.41361225", "text": "private void setupShowControlPointsPanel(MorphController listener) {\n // panels to contain components; prevents GridLayout from stretching components\n JPanel controlPointsPanel = new JPanel();\n JPanel showControlPointsPanel = new JPanel();\n\n // Label for section of settings panel\n JLabel controlPointLabel = new JLabel(\"Control Points\");\n\n // set color for panels\n controlPointsPanel.setBackground(Color.BLACK);\n controlPointsPanel.setOpaque(true);\n\n showControlPointsPanel.setBackground(Color.BLACK);\n showControlPointsPanel.setOpaque(true);\n\n // setup font\n controlPointLabel.setFont(sectionLabelFont);\n controlPointLabel.setForeground(Color.WHITE);\n\n controlPointsPanel.add(controlPointLabel);\n\n // setup check box\n showControlPoints = new JCheckBox(\"Show Control Points\");\n showControlPoints.setSelected(true);\n showControlPoints.setForeground(Color.WHITE);\n showControlPoints.setBackground(Color.BLACK);\n showControlPoints.addActionListener(listener);\n showControlPoints.setName(\"showControlPoints\");\n showControlPointsPanel.add(showControlPoints, BorderLayout.SOUTH);\n\n // add panels to settings\n morphSettingsPanel.add(controlPointsPanel);\n morphSettingsPanel.add(showControlPointsPanel);\n }", "title": "" }, { "docid": "34b56d54874a6688a01493fd1bb39d23", "score": "0.41347018", "text": "private void loadConfig(){\n String strDecoder = configProperties.getProperty(\"mifareapplet.keys.decoder\", \"NullDecoder\");\n\n try{\n this.decoder = (IDecoder)getClass().getClassLoader().loadClass(strDecoder).newInstance();\n }catch(Exception e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "bd40210cc34597d3532ebae13b686158", "score": "0.41245723", "text": "public Engine autoConfig(int numInputs, int numOutputs, int batchSize) {\n\t\ttestDelay = Integer.parseInt(getParams().getProperty(TEST_DELAY));\r\n\t\tconsoleDelay = Integer.parseInt(getParams().getProperty(CONSOLE_DELAY));\r\n\t\tstabilDelta = Double.parseDouble(getParams().getProperty(STABIL_THRESH));\r\n\t\tcomplexityThresh = Double.parseDouble(getParams().getProperty(COMPLEXITY_THRESH));\r\n\t\tthis.batchSize = batchSize;\t\t\r\n\t\tstabilMatrix = Nd4j.zeros(batchSize, 1);\r\n\t\tstabilMatrix.addi(stabilDelta);\r\n\t\ttestFitnessOperator = new TestFitnessOperator(getHolder());\r\n\t\tthis.numInputs = numInputs;\r\n\t\tthis.numOutputs = numOutputs;\r\n\t\trebuildPop(numInputs, numOutputs);\r\n\t\tevolver = new SupervisedEvolver(getHolder(), stabilMatrix);\r\n\t\treturn this;\r\n\t}", "title": "" }, { "docid": "4352ac8c0b2e63d2a1f7f3f90b57b2bd", "score": "0.41152155", "text": "@Override\n public Component getComponent() {\n if (component == null) {\n component = new DLSFVisualPanel1();\n }\n return component;\n }", "title": "" }, { "docid": "861aaccb11e7958eaa75d80108725e50", "score": "0.41045883", "text": "private void apiAfterConfiguration(){\n\t\tProducerFilterConfig[] filterConfig = WebUIConfig.getInstance().getFilters();\n\t\tif (filterConfig==null || filterConfig.length==0)\n\t\t\treturn;\n\t\tList<ProducerFilter> newProducerFilters = new ArrayList<>(filterConfig.length);\n\t\tfor (ProducerFilterConfig pfc : filterConfig){\n\t\t\ttry {\n\t\t\t\tProducerFilter filter = (ProducerFilter)Class.forName(pfc.getClazzName()).newInstance();\n\t\t\t\tfilter.customize(pfc.getParameter());\n\t\t\t\tnewProducerFilters.add(filter);\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\tlog.warn(\"Can't initialize filter of class \"+pfc.getClazzName());\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\tlog.warn(\"Can't initialize filter of class \" + pfc.getClazzName());\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tlog.warn(\"Can't initialize filter of class \" + pfc.getClazzName());\n\t\t\t}\n\t\t}\n\n\t\tDecoratorConfig[] decoratorConfigs = WebUIConfig.getInstance().getDecorators();\n\t\tif (decoratorConfigs != null){\n\t\t\tlog.debug(\"Configuring decorator configs \"+ Arrays.toString(decoratorConfigs));\n\t\t\tfor (DecoratorConfig config : decoratorConfigs){\n\t\t\t\ttry{\n\t\t\t\t\tClass decoratorClass = Class.forName(config.getDecoratorClazzName());\n\t\t\t\t\tIDecorator decorator = (IDecorator) decoratorClass.newInstance();\n\t\t\t\t\tDecoratorRegistryFactory.getDecoratorRegistry().addDecorator(config.getStatClazzName(), decorator);\n\n\t\t\t\t}catch (ClassNotFoundException e){\n\t\t\t\t\tlog.warn(\"can't configure decorator \"+config+\" due \", e);\n\t\t\t\t} catch (InstantiationException e) {\n\t\t\t\t\tlog.warn(\"can't configure decorator \" + config + \" due \", e);\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\tlog.warn(\"can't configure decorator \"+config+\" due \", e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tproducerFilters = newProducerFilters;\n\n\t}", "title": "" }, { "docid": "df3ad03df258d4882bafcd95d23df74a", "score": "0.40993822", "text": "private JPanel createGeneralInput() {\n\t\tJPanel jPanel = new JPanel(new SpringLayout());\n\t\tjPanel.setBorder(new TitledBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY), \"General\"));\n\t\t\n\t\tString nrFogDevOp = Integer.toString(GuiConfig.NR_FOG_DEVICES);\n\t\tString connectionOp = Double.toString(GuiConfig.CONNECTION_PROB);\n\t\tString clientOp = Double.toString(GuiConfig.CLIENT_PROBABILITY);\n\t\tString mobileOp = Double.toString(GuiConfig.MOBILE_NODE_PROBABILITY);\n\t\t\n\t\tjTextNrFogDev = GuiUtils.createInput(jPanel, jTextNrFogDev, \"Number of fog devices: \", nrFogDevOp, GuiMsg.TipRandNrFog);\n\t\tjTextConnProb = GuiUtils.createInput(jPanel, jTextConnProb, \"Connect fog devices prob.: \", connectionOp, GuiMsg.TipRandConnect);\n\t\tjTextClientProb = GuiUtils.createInput(jPanel, jTextClientProb, \"Client prob.: \", clientOp, GuiMsg.TipRandClient);\n\t\tjTextMobileProb = GuiUtils.createInput(jPanel, jTextMobileProb, \"Mobile prob.: \", mobileOp, GuiMsg.TipRandMobile);\n\t\t\n\t\tSpringUtilities.makeCompactGrid(jPanel, 4, 2, 6, 6, 6, 6);\n\t\t\n\t\treturn jPanel;\n\t}", "title": "" }, { "docid": "7d4c2a1da3c5063a47cb900418269bf5", "score": "0.40946954", "text": "public final static Controller getController(ConfigController config) {\r\n conf = config;\r\n String type = conf.getAlgorithm().get(\"TYPE\");\r\n String northbound = \"\";\r\n int timeout = Integer.parseInt(conf.getMap().get(\"TIMEOUT\"));\r\n int rssiResolution = Integer.parseInt(conf.getMap().get(\"RSSI_RESOLUTION\"));\r\n \r\n String graph = conf.getMap().get(\"GRAPH\");\r\n NetworkGraph ng = null;\r\n\r\n switch (graph) {\r\n case \"CLI\":\r\n ng = new NetworkGraph(timeout, rssiResolution);\r\n break;\r\n case \"WEB\":\r\n ng = new SocketIoNetworkGraph(timeout, rssiResolution,\r\n conf.getMap().get(\"GRAPH_ADDR\"));\r\n break;\r\n default:\r\n throw new UnsupportedOperationException(\"Error in Configuration file\");\r\n }\r\n\r\n switch (northbound) {\r\n case \"SOCKET_IO\":\r\n break;\r\n case \"SOAP\":\r\n break;\r\n case \"REST\":\r\n break;\r\n case \"RMI\":\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n Adapter adapt = getLower();\r\n switch (type) { \r\n case \"DIJKSTRA\": \r\n return new ControllerDijkstra(newId,adapt, ng);\r\n default:\r\n throw new UnsupportedOperationException(\"Error in Configuration file\");\r\n }\r\n\r\n }", "title": "" }, { "docid": "92c0a3016d3213bcab7dec2c53004fc0", "score": "0.40944514", "text": "C getConfiguration();", "title": "" }, { "docid": "9e344467ffe2b09b005ec8af70140967", "score": "0.40938008", "text": "@Override\n public Component getComponent() {\n if (component == null) {\n component = new ConvertVisualPanel1();\n }\n return component;\n }", "title": "" }, { "docid": "2359e28a63cc7e723b3b3bdc4e227e29", "score": "0.40772337", "text": "@Override\n\tpublic Map<String, Object> getComponentConfiguration() {\n\t\tConfig conf = new Config();\n\t\tconf.setMaxTaskParallelism(1);\n\t\tconf.put(Config.TOPOLOGY_TICK_TUPLE_FREQ_SECS,\n\t\t\t\ttick_frequency_in_seconds);\n\t\treturn conf;\n\t}", "title": "" }, { "docid": "08661677199ff4f6cf78c26d33a58375", "score": "0.406446", "text": "public MappingVisualPanel1() {\n initComponents();\n setShpDstParamVisible(false);\n setAdvSwarmOptionsVisible(false);\n homeDir = System.getProperty(\"user.home\");\n }", "title": "" }, { "docid": "ae55b6dc78e90ace13914ba8405492d0", "score": "0.40613005", "text": "@SuppressWarnings({\"IOResourceOpenedButNotSafelyClosed\"})\npublic interface Config\n{\n /**\n * Returns config template for this config object.\n *\n * @return config template for this config object.\n */\n ConfigTemplate<?> template();\n\n /**\n * Returns name of config file, class name if not provided. <br>\n *\n * @return name of config file, class name if not provided.\n */\n default String name()\n {\n return this.template().getName();\n }\n\n /**\n * Clear all values and replace them with default ones.\n */\n void fillWithDefaults();\n\n /**\n * Remove all config values.\n */\n void clear();\n\n /**\n * Check if config contains given key, note that value on that key still might be null!\n *\n * @param key\n * key to check, you can use dots to access nested values like other config instances or maps.\n *\n * @return true if config contains given key.\n */\n boolean contains(String key);\n\n /**\n * Check if config contains given key, note that value on that key still might be null!\n *\n * @param key\n * key to check, each string in next nested level so it can be used to access nested values of other config instances or maps.\n *\n * @return true if config contains given key.\n */\n boolean contains(String... key);\n\n /**\n * Returns set of keys.\n *\n * @return set of keys.\n */\n Set<String> keys();\n\n /**\n * Returns collection of values.\n *\n * @return collection of values.\n */\n Collection<Object> values();\n\n /**\n * Returns set of entries.\n *\n * @return set of entries.\n */\n Set<Entry<String, Object>> entries();\n\n /**\n * Returns this config as normal map.\n *\n * @return this config as normal map.\n */\n Map<String, Object> asMap();\n\n /**\n * Returns true if this config does not contains any entries.\n *\n * @return true if this config does not contains any entries.\n */\n boolean isEmpty();\n\n /**\n * Returns size of this config.\n *\n * @return size of this config.\n */\n int size();\n\n /**\n * Returns metadata map. <br>\n * This map isn't saved, can be used by config implementations to store temporary data.\n *\n * @return metadata map.\n */\n Map<String, Object> metadata();\n\n /**\n * Get selected value from config.\n *\n * @param key\n * key to get, you can use dots to access nested values like other config instances or maps.\n *\n * @return value on that key.\n */\n @Nullable\n <T> T get(String key);\n\n /**\n * Get selected value from config.\n *\n * @param key\n * key to get, each string in next nested level so it can be used to access nested values of other config instances or maps.\n *\n * @return value on that key.\n */\n @Nullable\n <T> T get(String[] key);\n\n /**\n * Get selected value from config or default one.\n *\n * @param key\n * key to get, you can use dots to access nested values like other config instances or maps.\n * @param def\n * default value to use.\n *\n * @return value on that key.\n */\n @Nullable\n <T> T get(String key, @Nullable T def);\n\n /**\n * Get selected value from config or default one.\n *\n * @param key\n * key to get, you can use dots to access nested values like other config instances or maps.\n * @param def\n * default value to use.\n *\n * @return value on that key.\n */\n @Nullable\n <T> T get(String[] key, @Nullable T def);\n\n /**\n * Get selected value from config (or default value) as given type, library will try convert types where possible. (like from String to Integer, List of\n * strings to int array\n * etc)\n *\n * @param key\n * key to get, you can use dots to access nested values like other config instances or maps.\n * @param def\n * default value to use.\n * @param type\n * type of value.\n * @param <T>\n * type of value.\n *\n * @return value on that key.\n *\n * @exception ClassCastException\n * if type can't be converted.\n */\n @Nullable\n <T> T get(String key, @Nullable T def, Class<T> type);\n\n /**\n * Get selected value from config (or default value) as given type, library will try convert types where possible. (like from String to Integer, List of\n * strings to int array\n * etc)\n *\n * @param key\n * key to get, each string in next nested level so it can be used to access nested values of other config instances or maps.\n * @param def\n * default value to use.\n * @param type\n * type of value.\n * @param <T>\n * type of value.\n *\n * @return value on that key.\n *\n * @exception ClassCastException\n * if type can't be converted.\n */\n @Nullable\n <T> T get(String[] key, @Nullable T def, Class<T> type);\n\n /**\n * Get selected value from config as given type, library will try convert types where possible. (like from String to Integer, List of strings to int array\n * etc)\n *\n * @param key\n * key to get, you can use dots to access nested values like other config instances or maps.\n * @param type\n * type of value.\n * @param <T>\n * type of value.\n *\n * @return value on that key.\n *\n * @exception ClassCastException\n * if type can't be converted.\n */\n @Nullable\n <T> T get(String key, Class<T> type);\n\n /**\n * Get selected value from config as given type, library will try convert types where possible. (like from String to Integer, List of strings to int array\n * etc)\n *\n * @param key\n * key to get, each string in next nested level so it can be used to access nested values of other config instances or maps.\n * @param type\n * type of value.\n * @param <T>\n * type of value.\n *\n * @return value on that key.\n *\n * @exception ClassCastException\n * if type can't be converted.\n */\n @Nullable\n <T> T get(String[] key, Class<T> type);\n\n /**\n * Set value on given key to given value. <br>\n * Null values are allowed, note that key isn't removed on null value!\n *\n * @param key\n * key to set, you can use dots to access nested values like other config instances or maps.\n * @param value\n * value to set.\n */\n void set(String key, @Nullable Object value);\n\n /**\n * Set value on given key to given value. <br>\n * Null values are allowed, note that key isn't removed on null value!\n *\n * @param key\n * key to set, each string in next nested level so it can be used to access nested values of other config instances or maps.\n * @param value\n * value to set.\n */\n void set(String[] key, @Nullable Object value);\n\n /**\n * Removes given key from config file.\n *\n * @param key\n * key to remove, you can use dots to access nested values like other config instances or maps.\n *\n * @return removed value.\n */\n @Nullable\n Object remove(String key);\n\n /**\n * Removes given key from config file.\n *\n * @param key\n * key to remove, each string in next nested level so it can be used to access nested values of other config instances or maps.\n *\n * @return removed value.\n */\n @Nullable\n Object remove(String... key);\n\n /**\n * Returns encoder used by this config file.\n *\n * @return encoder used by this config file.\n */\n CharsetEncoder encoder();\n\n /**\n * Set encoder for this config file.\n *\n * @param encoder\n * new encoder.\n */\n void encoder(Supplier<CharsetEncoder> encoder);\n\n /**\n * Returns decoder used by this config file.\n *\n * @return decoder used by this config file.\n */\n CharsetDecoder decoder();\n\n /**\n * Set decoder for this config file.\n *\n * @param decoder\n * new decoder.\n */\n void decoder(Supplier<CharsetDecoder> decoder);\n\n /**\n * Select charset for loading this config file.\n *\n * @param charset\n * charset to use.\n */\n default void encoding(Charset charset)\n {\n this.encoder(() -> charset.newEncoder().onMalformedInput(CodingErrorAction.REPORT).onUnmappableCharacter(CodingErrorAction.REPORT));\n this.decoder(() -> charset.newDecoder().onMalformedInput(CodingErrorAction.REPORT).onUnmappableCharacter(CodingErrorAction.REPORT));\n }\n\n @Nullable\n ClassLoader contextClassLoader();\n\n void contextClassLoader(@Nullable ClassLoader classLoader);\n\n /**\n * Returns bound file if exists.\n *\n * @return bound file if exists.\n */\n @Nullable\n File bindFile();\n\n /**\n * Binds config to file, allowing for simple saving and reloading.\n *\n * @param file\n * file to bind.\n */\n void bindFile(@Nullable File file);\n\n /**\n * Save config to bound file/stream and custom handler if exists.\n */\n void save();\n\n /**\n * Save config to selected file.\n *\n * @param file\n * file to use.\n */\n default void save(File file)\n {\n try (OutputStreamWriter outputStreamWriter = ConfigHelperMethods.createOutputStreamWriter(this, file))\n {\n this.save(outputStreamWriter);\n }\n catch (IOException e)\n {\n throw new ConfigSaveException(this.template(), file, e.getMessage(), e);\n }\n }\n\n /**\n * Save config to selected output stream. <br>\n * Stream isn't automatically closed here!\n *\n * @param outputStream\n * output to use.\n */\n default void save(@WillNotClose OutputStream outputStream)\n {\n this.save(new OutputStreamWriter(outputStream, this.encoder()));\n }\n\n /**\n * Save config to selected writer. <br>\n * Writer isn't automatically closed here!\n *\n * @param writer\n * writer to use.\n */\n void save(@WillNotClose Writer writer);\n\n /**\n * Reloads config from bound file/stream or custom handler if exists.\n */\n void load();\n\n /**\n * Reloads config from given file.\n *\n * @param file\n * file to use.\n */\n default void load(File file)\n {\n try (InputStreamReader inputStreamReader = ConfigHelperMethods.createInputStreamReader(this, file))\n {\n this.load(inputStreamReader);\n }\n catch (IOException e)\n {\n throw new ConfigLoadException(this.template(), file, e.getMessage(), e);\n }\n }\n\n /**\n * Reloads config from selected input stream. <br>\n * Stream isn't automatically closed here!\n *\n * @param inputStream\n * input to use.\n */\n default void load(@WillNotClose InputStream inputStream)\n {\n this.load(new InputStreamReader(inputStream, this.decoder()));\n }\n\n /**\n * Reloads config from selected reader. <br>\n * Reader isn't automatically closed here!\n *\n * @param reader\n * reader to use.\n */\n void load(@WillNotClose Reader reader);\n\n /**\n * Returns clone of this config object.\n *\n * @return clone of this config object.\n */\n Config clone();\n\n /**\n * Perform operation for each config entry.\n *\n * @param action\n * action to perform.\n */\n default void forEach(BiConsumer<? super String, ? super Object> action)\n {\n for (Map.Entry<String, Object> entry : this.entries())\n {\n String k;\n Object v;\n try\n {\n k = entry.getKey();\n v = entry.getValue();\n }\n catch (IllegalStateException ise)\n {\n // this usually means the entry is no longer in the map.\n throw new ConcurrentModificationException(ise);\n }\n action.accept(k, v);\n }\n }\n}", "title": "" }, { "docid": "fdf9b93b5c9296ed01d1b7e036e02da1", "score": "0.4060751", "text": "public ConfigInterface getConfig();", "title": "" }, { "docid": "9e14d18f9457f8191ad1109cc8742ff0", "score": "0.40578932", "text": "LampConfig getConfigs(int index);", "title": "" }, { "docid": "d14708f5504a15a9713d86e4bae3c6aa", "score": "0.40573087", "text": "public DeviceConfigurationJPanel() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "title": "" }, { "docid": "e771cd7668e44d0a68bf12bc19a04240", "score": "0.40569606", "text": "@Override\n public Component getComponent(String name, boolean autoCreateComponents) {\n return null;\n }", "title": "" }, { "docid": "7b75ec4e0209ecc900265ede4085cdc5", "score": "0.40483138", "text": "private Config readConfigFile(String config) throws FileNotFoundException {\n Scanner scanner =\n new Scanner(new File(\"configs/\" + config + \".config\"));\n scanner.nextLine(); // Skip comment on first line\n double[] data = new double[15];\n Config c = new Config();\n c.name = config;\n for (int i = 0; i < data.length;\n i++) { // Read parameters from config file\n scanner.next();\n data[i] = scanner.nextDouble();\n }\n c.readNumbersFromArray(data);\n scanner.nextLine(); // Move to line after all the number values\n scanner.nextLine(); // Move over line with \"policeSectors: \"\n scanner.nextLine(); // Move over upper boundary of ASCII-based\n // representation of matrix\n for (int i = 0; i < 10; i++) {\n String line = scanner.nextLine();\n for (int j = 0; j < 10; j++) {\n if (line.charAt(j + 1) ==\n 'x') { // j+1 because of leading |, 'x' means there\n // is a policeman there\n c.policeSectors[j][i] = true;\n }\n }\n }\n System.out.println(\"Current config: \" + config);\n System.out.println(\" data = \" + Arrays.toString(data));\n System.out.println(\" policeSectors = \");\n for (int i = 0; i < c.policeSectors.length; i++) {\n System.out.println(\" \" + Arrays.toString(c.policeSectors[i]));\n }\n return c;\n }", "title": "" }, { "docid": "762adbe575680b34ae65d51ee301cf94", "score": "0.40463114", "text": "public Object newDefaultComponent(final Class type)\n {\n ExceptionUtils.checkNull(\"type\", type);\n Object component;\n try\n {\n final String implementation = this.getDefaultImplementation(type);\n if (StringUtils.isBlank(implementation))\n {\n throw new ComponentContainerException(\n \"Default configuration file '\" + this.getComponentDefaultConfigurationPath(type) +\n \"' could not be found\");\n }\n component = ClassUtils.loadClass(implementation).newInstance();\n }\n catch (final Throwable throwable)\n {\n throw new ComponentContainerException(throwable);\n }\n return component;\n }", "title": "" }, { "docid": "3c6942f68cdf9577882e96b0615331c8", "score": "0.40444785", "text": "private Element createConfigElement(MyPortalConfig config) {\n\t\tElement configElem = new Element(ROOT);\n\t\tElement allowedShowletsElem = this.createShowletsElement(config);\n\t\tconfigElem.addContent(allowedShowletsElem);\n\t\treturn configElem;\n\t}", "title": "" }, { "docid": "4ecd4c6ba1b45d599dde7061f9a2e5e9", "score": "0.4044201", "text": "public boolean _handleSingleArgumentFactory(DeserializationConfig deserializationConfig, BeanDescription beanDescription, VisibilityChecker<?> visibilityChecker, AnnotationIntrospector annotationIntrospector, CreatorCollector creatorCollector, AnnotatedMethod annotatedMethod, boolean z) throws JsonMappingException {\n Class<Boolean> rawParameterType = annotatedMethod.getRawParameterType(0);\n if (rawParameterType == String.class || rawParameterType == CharSequence.class) {\n if (z || visibilityChecker.isCreatorVisible((AnnotatedMember) annotatedMethod)) {\n creatorCollector.addStringCreator(annotatedMethod, z);\n }\n return true;\n } else if (rawParameterType == Integer.TYPE || rawParameterType == Integer.class) {\n if (z || visibilityChecker.isCreatorVisible((AnnotatedMember) annotatedMethod)) {\n creatorCollector.addIntCreator(annotatedMethod, z);\n }\n return true;\n } else if (rawParameterType == Long.TYPE || rawParameterType == Long.class) {\n if (z || visibilityChecker.isCreatorVisible((AnnotatedMember) annotatedMethod)) {\n creatorCollector.addLongCreator(annotatedMethod, z);\n }\n return true;\n } else if (rawParameterType == Double.TYPE || rawParameterType == Double.class) {\n if (z || visibilityChecker.isCreatorVisible((AnnotatedMember) annotatedMethod)) {\n creatorCollector.addDoubleCreator(annotatedMethod, z);\n }\n return true;\n } else if (rawParameterType == Boolean.TYPE || rawParameterType == Boolean.class) {\n if (z || visibilityChecker.isCreatorVisible((AnnotatedMember) annotatedMethod)) {\n creatorCollector.addBooleanCreator(annotatedMethod, z);\n }\n return true;\n } else if (!z) {\n return false;\n } else {\n creatorCollector.addDelegatingCreator(annotatedMethod, z, null);\n return true;\n }\n }", "title": "" }, { "docid": "cb5fd5da34c3ca56a0cb970ad04d3a9f", "score": "0.40419328", "text": "private Config() { }", "title": "" }, { "docid": "485e729fd6c1b2fb1f9cc27b8129841e", "score": "0.4041265", "text": "@Inject public DConfigManager (\n ConfigManager cfgmgr, PresentsDObjectMgr omgr, InvocationManager invmgr)\n {\n omgr.registerObject(_cfgobj = new DConfigObject());\n _cfgobj.dconfigService = invmgr.registerDispatcher(new DConfigDispatcher(this));\n new ConfigUpdater(cfgmgr).init(_cfgobj);\n }", "title": "" }, { "docid": "9f99d69670dd2676b44d3e209c732635", "score": "0.40371796", "text": "default boolean isVisible() {\n return true;\n }", "title": "" }, { "docid": "ee407e73d2bb09dfe86ef8a7129d5a6f", "score": "0.40320072", "text": "private WriterConfig(boolean j2meSubset, int flags, String autoNsPrefix)\n {\n mIsJ2MESubset = j2meSubset;\n mConfigFlags = flags;\n mAutoNsPrefix = autoNsPrefix;\n }", "title": "" }, { "docid": "ea7b7ddcc5e84b3d2b67cc8ca2d8c5d3", "score": "0.40306956", "text": "public interface EditorManager {\n \t\n \t\n \t/**\n \t * Editor window state\n \t */\n \tpublic static final String EDITOR_WINDOW_OPENED = \"EDITOR_WINDOW_OPENED\";\n \n \t/**\n \t * Tell vizMapper main which editor is disabled/enabled.\n \t */\n \tpublic static final String EDITOR_WINDOW_CLOSED = \"EDITOR_WINDOW_CLOSED\";\n \n \t/**\n \t * Listener for editor displayer service.\n \t *\n \t * @param va\n \t * DOCUMENT ME!\n \t * @param properties\n \t * DOCUMENT ME!\n \t */\n \t@SuppressWarnings(\"unchecked\")\n \tpublic void addValueEditor(ValueEditor<?> va, Map properties);\n \n \t/**\n \t * Listener for OSGi service.\n \t *\n \t * @param va\n \t * DOCUMENT ME!\n \t * @param properties\n \t * DOCUMENT ME!\n \t */\n \t@SuppressWarnings(\"unchecked\")\n \tpublic void removeValueEditor(ValueEditor<?> va, Map properties);\n \t\n \t/**\n \t * Display discrete value editor for this visual property.\n \t * @param <V> DOCUMENT ME!\n \t * @param parentComponent DOCUMENT ME!\n \t * @param type DOCUMENT ME!\n \t * @param initialVal DOCUMENT ME!\n \t *\n \t * @return DOCUMENT ME!\n \t *\n \t * @throws Exception\n \t * DOCUMENT ME!\n \t */\n \tpublic <V> V showVisualPropertyValueEditor(Component parentComponent, VisualProperty<V> type, V initialVal)\n \t throws Exception;\n \n \t/**\n \t * Display continuous value editor.\n \t *\n \t * <p>\n \t * Continuous editor always update mapping automatically, so there is no\n \t * return value.\n \t * </p>\n \t * @param <V> DOCUMENT ME!\n \t * @param parentComponent DOCUMENT ME!\n \t * @param type DOCUMENT ME!\n \t *\n \t * @throws Exception\n \t * DOCUMENT ME!\n \t */\n \tpublic <V> void showContinuousEditor(Component parentComponent, VisualProperty<V> type)\n \t throws Exception;\n \t\n\t/**\n\t * Returns the {@link VisualPropertyEditor} for the given {@link VisualProperty}.\n\t * @param <V> the generic type of the VisualProperty.\n\t * @param vp the {@link VisualProperty} to get the VisualPropertyEditor of.\n\t * @return the {@link VisualPropertyEditor} for the given {@link VisualProperty}.\n\t */\n \tpublic <V> VisualPropertyEditor<V> getVisualPropertyEditor(VisualProperty<V> vp);\n \n \t/**\n \t * DOCUMENT ME!\n \t * \n \t * @return DOCUMENT ME!\n \t */\n \tpublic List<PropertyEditor> getCellEditors();\n \t\n \tCollection<PropertyEditor> getAttributeSelectors();\n \t\n \tPropertyEditor getMappingFunctionSelector();\n \n \n \t/**\n \t * DOCUMENT ME!\n \t *\n \t * @param editorName DOCUMENT ME!\n \t *\n \t * @return DOCUMENT ME!\n \t */\n \tpublic PropertyEditor getDefaultComboBoxEditor(String editorName);\n \t\n \t/**\n \t * DOCUMENT ME!\n \t * @param targetObjectType DOCUMENT ME!\n \t *\n \t * @return DOCUMENT ME!\n \t */\n \tpublic PropertyEditor getDataTableComboBoxEditor(final Class<? extends CyTableEntry> targetObjectType);\n \t\n \tpublic <V> ValueEditor<V> getValueEditor(Class<V> dataType);\n }", "title": "" }, { "docid": "89c7a980eb723d5669db85ec865d5aed", "score": "0.40305537", "text": "@Override\r\n public JSONBuilder getConfigJSON(UIComponent component) {\r\n JSONBuilder cfg = super.getConfigJSON(component);\r\n Chart chart = (Chart) component;\r\n LinePattern pattern = getLinePattern();\r\n\r\n if (type != null) {\r\n if (type.equals(CartesianType.BAR))\r\n cfg.entry(\"renderer\", \"ice.ace.jq.jqplot.BarRenderer\", true) ;\r\n else if (type.equals(CartesianType.LINE))\r\n cfg.entry(\"renderer\", \"ice.ace.jq.jqplot.LineRenderer\", true) ;\r\n }\r\n\r\n if (hasPointLabelOptionSet()) encodePointLabelOptions(cfg);\r\n\r\n if (hasRenderOptionsSet()) {\r\n cfg.beginMap(\"rendererOptions\");\r\n Boolean fill = getFill();\r\n Boolean horiz = isHorizontalBar();\r\n Boolean smooth = getSmooth();\r\n\r\n if (smooth != null) cfg.entry(\"smooth\", smooth);\r\n if (fill != null) cfg.entry(\"fill\", fill);\r\n if (horiz != null) cfg.entry(\"barDirection\", horiz ? \"horizontal\" : \"vertical\");\r\n cfg.endMap();\r\n }\r\n\r\n if (pattern != null)\r\n cfg.entry(\"linePattern\", pattern.toString());\r\n\r\n Boolean dragable = getDragable();\r\n if (dragable != null && isConfiguredForDragging(chart)) {\r\n cfg.entry(\"isDragable\", dragable);\r\n if (getDragConstraintAxis() != null) {\r\n cfg.beginMap(\"dragable\");\r\n cfg.entry(\"constrainTo\", getDragConstraintAxis().toString());\r\n cfg.endMap();\r\n }\r\n }\r\n\r\n cfg.endMap();\r\n return cfg;\r\n }", "title": "" }, { "docid": "4ac40c0f924f0af05ae6411b293c3979", "score": "0.4025207", "text": "@Override\r\n\tpublic void readConfig(Config config, String configPath) {\r\n\r\n\t\tsuper.readConfig(config, configPath);\r\n\r\n\t\t// TODO: Maybe these two ones should be optional / null (study carefully)\r\n\t\tString sceneManagerRef = config.getString(configPath + \"/sceneManager/@ref\");\r\n\t\tif (sceneManagerRef != null) net.jgf.system.Jgf.getDirectory().register(this, \"sceneManager\", sceneManagerRef);\r\n\r\n\t}", "title": "" }, { "docid": "af3cac231585cc02fa130ce062fbebff", "score": "0.40232044", "text": "protected void config() {\n\t\tConfig.setProperty( AppSettings.WIDTH, 1280 );\n\t\tConfig.setProperty( AppSettings.HEIGHT, 720 );\n\t\tConfig.setProperty( AppSettings.SHOW_DEBUG, true );\n\t}", "title": "" }, { "docid": "2fa23c86e4d081fb0342077ab1a1378a", "score": "0.40208262", "text": "private void initComponents() {\n\n defaultConfigPanel = new javax.swing.JPanel();\n defaultConfigDescription = new javax.swing.JLabel();\n libraryLbl = new javax.swing.JLabel();\n libraryChooser = new javax.swing.JComboBox();\n samplerateLbl = new javax.swing.JLabel();\n samplerateChooser = new javax.swing.JComboBox();\n buffersizeLbl = new javax.swing.JLabel();\n buffersizeChooser = new javax.swing.JComboBox();\n\n defaultConfigPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(GeneralAudioPanel.class, \"GeneralAudioPanel.defaultConfigPanel.border.title\"))); // NOI18N\n\n defaultConfigDescription.setForeground(javax.swing.UIManager.getDefaults().getColor(\"textInactiveText\"));\n defaultConfigDescription.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n org.openide.awt.Mnemonics.setLocalizedText(defaultConfigDescription, org.openide.util.NbBundle.getMessage(GeneralAudioPanel.class, \"GeneralAudioPanel.defaultConfigDescription.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(libraryLbl, org.openide.util.NbBundle.getMessage(GeneralAudioPanel.class, \"GeneralAudioPanel.libraryLbl.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(samplerateLbl, org.openide.util.NbBundle.getMessage(GeneralAudioPanel.class, \"GeneralAudioPanel.samplerateLbl.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(buffersizeLbl, org.openide.util.NbBundle.getMessage(GeneralAudioPanel.class, \"GeneralAudioPanel.buffersizeLbl.text\")); // NOI18N\n\n javax.swing.GroupLayout defaultConfigPanelLayout = new javax.swing.GroupLayout(defaultConfigPanel);\n defaultConfigPanel.setLayout(defaultConfigPanelLayout);\n defaultConfigPanelLayout.setHorizontalGroup(\n defaultConfigPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(defaultConfigPanelLayout.createSequentialGroup()\n .addGroup(defaultConfigPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, defaultConfigPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(defaultConfigPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(buffersizeLbl)\n .addComponent(libraryLbl)\n .addComponent(samplerateLbl))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(defaultConfigPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(buffersizeChooser, 0, 485, Short.MAX_VALUE)\n .addComponent(samplerateChooser, 0, 485, Short.MAX_VALUE)\n .addComponent(libraryChooser, 0, 485, Short.MAX_VALUE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, defaultConfigPanelLayout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addComponent(defaultConfigDescription, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addContainerGap())\n );\n defaultConfigPanelLayout.setVerticalGroup(\n defaultConfigPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(defaultConfigPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(defaultConfigPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(libraryChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(libraryLbl))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(defaultConfigPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(samplerateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(samplerateLbl))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(defaultConfigPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(buffersizeLbl)\n .addComponent(buffersizeChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 233, Short.MAX_VALUE)\n .addComponent(defaultConfigDescription)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(defaultConfigPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(defaultConfigPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n }", "title": "" }, { "docid": "785699d466fb2367bcdb654ccdee4c55", "score": "0.40184477", "text": "public Component getComponent() {\n if (component == null) {\n component = new GenerateXSDVisualPanel();\n component.setCopybookCodePageList(CHARSET_NAMES);\n component.setCopybookCodePage(\"US-ASCII\"); //NOI18N\n component.setDisplayCodePageList(CHARSET_NAMES);\n component.setDisplayCodePage(\"US-ASCII\"); // Originally was \"IBM037\"\n component.setDisplay1CodePageList(CHARSET_NAMES);\n component.setPredecodeCodingList(CHARSET_NAMES_EXTRA);\n component.setPostencodeCodingList(CHARSET_NAMES_EXTRA);\n component.setCheckReservedWords(true);\n component.setIgnore72ColBeyond(true);\n component.setOverwriteExisting(true);\n }\n return component;\n }", "title": "" }, { "docid": "da74e9009889ff6143f35ee1103298ae", "score": "0.40156525", "text": "ConfigInfo getConfig();", "title": "" }, { "docid": "5afba893759557128cad14878b02aeed", "score": "0.4015216", "text": "@Override\n\tpublic Object getConfig() {\n\t\treturn config;\n\t}", "title": "" }, { "docid": "a96cf76c9be454f07fc3f52ea3529bfe", "score": "0.40111244", "text": "@Override\npublic void init(String pTitle, boolean pEnableEyeDistanceInputs,\n boolean pDisplayMonitor)\n{\n\n super.init(pTitle, pEnableEyeDistanceInputs, pDisplayMonitor);\n \n rowLabel = new JLabel(title);\n eyeADistTF = new JTextField(4); eyeADistTF.addKeyListener(keyAdapter);\n jackStandDistTF = new JTextField(4); \n jackStandDistTF.addKeyListener(keyAdapter);\n eyeBDistTF = new JTextField(4); eyeBDistTF.addKeyListener(keyAdapter);\n stateLbl = new JLabel(\"?\");\n encoder1Lbl = new JLabel(\"?\");\n encoder2Lbl = new JLabel(\"?\");\n directionLbl = new JLabel(\"?\");\n countsPerInchLbl = new JLabel(\"?\");\n percentChangeLbl = new JLabel(\"?\");\n \n setEyeDistanceEditingEnabled(pEnableEyeDistanceInputs);\n \n mainPanel.add(rowLabel);\n mainPanel.add(eyeADistTF);\n mainPanel.add(jackStandDistTF);\n mainPanel.add(eyeBDistTF);\n\n //these only visible if Display Monitor checkbox is checked\n if (pDisplayMonitor){\n \n mainPanel.add(stateLbl);\n mainPanel.add(encoder1Lbl);\n mainPanel.add(encoder2Lbl); \n mainPanel.add(directionLbl);\n mainPanel.add(countsPerInchLbl); \n mainPanel.add(percentChangeLbl); \n }\n \n}", "title": "" }, { "docid": "fbafb2ce48a2b0b45d9ac8439f0de6c6", "score": "0.40105683", "text": "public CertConfigPanel()\n {\n R = CertConfigActivator.R;\n model = new CertConfigTableModel();\n initComponents();\n valueChanged(null);\n }", "title": "" }, { "docid": "d055e062c99edd544075765fc0a5dcdc", "score": "0.4006841", "text": "void newConfig() {\n if (!initEditor()) {\n return;\n }\n interviewEditor.newConfig();\n }", "title": "" }, { "docid": "4d36186b13347fd1013057253e9d91f4", "score": "0.4005011", "text": "private static SimulationConfig initSimulation(){\n SimulationConfig config = view.prepareSimulationParams(new SimulationConfig());\n // implement business logic checks on what I get from the user\n // its NOT the view's job to check business rules!\n if(config.getCrewSize() < 1){\n config.setCrewSize(10);\n } \n if(config.getParcelCount() < 1){\n config.setParcelCount(1000);\n }\n if(config.getPlaneCount() < 1){\n config.setPlaneCount(5);\n }\n return config;\n }", "title": "" }, { "docid": "1d65ae953d514c33b2dbbe8160b28852", "score": "0.40025666", "text": "public SettingsModel() {\n\t\tif (lookAndFeel == null) {\n\t\t\tdefaultAddress = System.getProperty(\"user.home\") + \"\\\\Desktop\";\n\t\t\tnumPageHistory = 10;\n\t\t\tlNum = 1;\n\t\t\tlookAndFeel = UIManager.getInstalledLookAndFeels()[lNum].getClassName();\n\t\t\tlist = true;\n\t\t}\n\t}", "title": "" }, { "docid": "77aa996c6f49d5662500fbe2ee644398", "score": "0.39984143", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n colorDetectorPanel = new com.seniorproject.colordetection.controller.ColorDetectorPanel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"ColorDetection\");\n setPreferredSize(new java.awt.Dimension(480, 400));\n setResizable(false);\n\n colorDetectorPanel.setMaximumSize(new java.awt.Dimension(480, 400));\n colorDetectorPanel.setPreferredSize(new java.awt.Dimension(480, 400));\n\n javax.swing.GroupLayout colorDetectorPanelLayout = new javax.swing.GroupLayout(colorDetectorPanel);\n colorDetectorPanel.setLayout(colorDetectorPanelLayout);\n colorDetectorPanelLayout.setHorizontalGroup(\n colorDetectorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 480, Short.MAX_VALUE)\n );\n colorDetectorPanelLayout.setVerticalGroup(\n colorDetectorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(colorDetectorPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(colorDetectorPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n }", "title": "" }, { "docid": "e425ba7a95f744297dd89cd836c84b67", "score": "0.399129", "text": "private void setupDisplayGrid(JPanel pParentPanel)\n{\n \n JPanel panel = new JPanel();\n \n panel.setAlignmentX(Component.CENTER_ALIGNMENT);\n \n //use grid layout with enough rows to display all entry and exit\n //jackstands, unit entry eye, unit exit eye, and two rows for a header\n //and blank separator row, and two separator rows between groups\n \n int numGridRows = \n numEntryJackStands + numExitJackStands + NUM_UNIT_SENSORS + 4;\n \n int numGridCols;\n \n if(displayMonitorCB.isSelected()){\n numGridCols = 10;\n }else{\n numGridCols = 4;\n }\n \n panel.setLayout(new GridLayout(numGridRows, numGridCols, 10, 10));\n\n panel.setOpaque(true);\n pParentPanel.add(panel);\n \n addLabels(panel, 1,\"\");\n addLabel(panel, \" Eye A\", \"distance to jack center\");\n addLabel(panel, \"Jack Stand\", \"distance to unit\");\n addLabel(panel, \" Eye B\", \"distance to jack center\");\n\n //these only visible if Display Monitor checkbox is checked\n if (displayMonitorCB.isSelected()){\n addLabel(panel, \"State\", \"indicates which sensor last changed and \"\n + \"whether it is blocked or unblocked\");\n addLabel(panel, \"Encoder 1\", \"counts at time of state change\");\n addLabel(panel, \"Encoder 2\", \"counts at time of state change\");\n addLabel(panel, \"Direction\",\n \"conveyor direction at time of state change\");\n addLabel(panel, \"Counts/Inch\",\n \"counts per inch calculated between last two sensor state changes\");\n addLabel(panel, \"% change\",\n \"% calibration change since last calculation\"); \n }\n \n \n sensorSetGUIs.clear(); //remove all entries\n \n addLabels(panel, numGridCols, \"\");\n \n setupEntryJackStandGUIs(panel);\n\n addLabels(panel, numGridCols, \"\");\n \n setUpUnitSensorGUIs(panel);\n \n addLabels(panel, numGridCols, \"\");\n \n setupExitJackStandGUIs(panel);\n\n}", "title": "" }, { "docid": "9a906eda33f0cc76f94a3052294b2f45", "score": "0.39845446", "text": "@Override\n\tpublic boolean requiresConfigInterface() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c069c5f9699ec916a1fb6ef9429c79b7", "score": "0.39820552", "text": "boolean hasDefaultConfig();", "title": "" }, { "docid": "c069c5f9699ec916a1fb6ef9429c79b7", "score": "0.39820552", "text": "boolean hasDefaultConfig();", "title": "" }, { "docid": "37aada9dc5c9a33c88f761bbf66a53c7", "score": "0.3978446", "text": "@Override\n public void makeVisible() {\n }", "title": "" }, { "docid": "f4ff26bae13b4ffb5fcfad1f4321c7d9", "score": "0.39714193", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfigOrBuilder> \n getConfigFieldBuilder() {\n if (configBuilder_ == null) {\n configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfig.Builder, yandex.cloud.api.mdb.elasticsearch.v1.ClusterOuterClass.ClusterConfigOrBuilder>(\n getConfig(),\n getParentForChildren(),\n isClean());\n config_ = null;\n }\n return configBuilder_;\n }", "title": "" }, { "docid": "bc76b078babf39eebbfaed20a43ac97a", "score": "0.39712706", "text": "private ConnectionConfigurationPanel() {\n\n this.setLayout(new GridBagLayout());\n\n final GridBagConstraints constraints = new GridBagConstraints();\n constraints.anchor = GridBagConstraints.WEST;\n constraints.insets = new Insets(INSET, INSET, INSET, INSET);\n\n // Broker URL\n constraints.gridx = 0;\n constraints.gridy += 1;\n this.add(this.labelBrokerURI, constraints);\n constraints.gridx = 1;\n this.add(this.textBrokerURI, constraints);\n\n // User Name\n constraints.gridx = 0;\n constraints.gridy += 1;\n this.add(this.labelUserName, constraints);\n constraints.gridx = 1;\n this.add(this.textUserName, constraints);\n\n // User password\n constraints.gridx = 0;\n constraints.gridy += 1;\n this.add(this.labelUserPassword, constraints);\n constraints.gridx = 1;\n this.add(this.textUserPassword, constraints);\n\n // Destination Name\n constraints.gridx = 0;\n constraints.gridy += 1;\n this.add(this.labelDestinationName, constraints);\n constraints.gridx = 1;\n this.add(this.textDestinationName, constraints);\n\n // Is Topic\n constraints.gridx = 0;\n constraints.gridy += 1;\n this.add(this.labelIsTopic, constraints);\n constraints.gridx = 1;\n this.add(this.checkDestinationName, constraints);\n }", "title": "" }, { "docid": "256b5bf0fd5477e9b8a0630cb324d087", "score": "0.3968703", "text": "protected void createConfigurationController(AbstractVendingMachine m)\n\t{\n\t\ttry {\n\t\t\t// Creating the ConfigPanelLogic object.\n\t\t\tif(machine==null){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconfigLogic = new ConfigPanelLogic(m.getDisplay());\n\t\t\t\n\t\t} catch (NoSuchHardwareException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "bfff1fd4cd35dea05bf47fd11c846d2a", "score": "0.39681455", "text": "@Override\n public Component getComponent(String name, boolean autoCreateComponents, boolean autoStart) {\n return null;\n }", "title": "" }, { "docid": "40cd830119a2edeb4a43af4b051184a5", "score": "0.39660987", "text": "public JComponent getComponentForPlacementByName(String name);", "title": "" }, { "docid": "1936791286dc16a8a89b3b1c6e2675b4", "score": "0.3961154", "text": "public static <T extends Component> T setVisible(T comp, boolean visible)\r\n {\r\n comp.setVisible(visible);\r\n\r\n return comp;\r\n }", "title": "" }, { "docid": "651584a3c342687289b981f593f96596", "score": "0.39608777", "text": "public JPanel buildDescriptorPanel(StoryComponent component) {\r\n\t\tfinal JPanel descriptorPanel;\r\n\t\tfinal GroupLayout descriptorPanelLayout;\r\n\r\n\t\tfinal JLabel nameLabel;\r\n\t\tfinal JLabel labelLabel;\r\n\t\tfinal JLabel descriptionLabel;\r\n\r\n\t\tfinal JLabel visibleLabel;\r\n\t\tfinal JLabel readOnlyLabel;\r\n\r\n\t\tfinal JTextField nameField;\r\n\t\tfinal JTextField labelsField;\r\n\t\tfinal JTextField descriptionField;\r\n\r\n\t\tfinal JCheckBox visibleBox;\r\n\r\n\t\tfinal boolean isEditable;\r\n\r\n\t\tdescriptorPanel = new JPanel();\r\n\t\tdescriptorPanelLayout = new GroupLayout(descriptorPanel);\r\n\r\n\t\tnameLabel = new JLabel(\"Name: \");\r\n\t\tlabelLabel = new JLabel(\"Labels: \");\r\n\t\tvisibleLabel = new JLabel(\"Visible: \");\r\n\t\tdescriptionLabel = new JLabel(\"Description: \");\r\n\r\n\t\treadOnlyLabel = new JLabel(\r\n\t\t\t\t\"This element is from a read-only library and cannot be edited.\");\r\n\r\n\t\tnameField = this.buildNameEditorPanel(component);\r\n\t\tlabelsField = this.buildLabelEditorField(component);\r\n\t\tdescriptionField = this.buildDescriptionEditorField(component);\r\n\r\n\t\tvisibleBox = this.buildVisibleBox(component);\r\n\r\n\t\t// Check whether or not this StoryComponent should be editable (debug\r\n\t\t// mode, or not read-only)\r\n\t\tisEditable = ScriptEase.DEBUG_MODE\r\n\t\t\t\t|| !component.getLibrary().isReadOnly();\r\n\r\n\t\t// Set up the labels\r\n\t\tnameLabel.setFont(labelFont);\r\n\t\tlabelLabel.setFont(labelFont);\r\n\t\tvisibleLabel.setFont(labelFont);\r\n\t\tdescriptionLabel.setFont(labelFont);\r\n\t\treadOnlyLabel.setFont(labelFont);\r\n\t\treadOnlyLabel.setForeground(ScriptEaseUI.SE_BLUE);\r\n\r\n\t\tlabelLabel.setToolTipText(labelsField.getToolTipText());\r\n\t\tdescriptionLabel.setToolTipText(descriptionField.getToolTipText());\r\n\r\n\t\t// Set up the descriptorPanel\r\n\t\tdescriptorPanel.setLayout(descriptorPanelLayout);\r\n\t\tdescriptorPanel.setOpaque(false);\r\n\r\n\t\tdescriptorPanelLayout.setAutoCreateGaps(true);\r\n\t\tdescriptorPanelLayout.setAutoCreateContainerGaps(true);\r\n\t\tdescriptorPanelLayout.setHonorsVisibility(true);\r\n\r\n\t\tdescriptorPanelLayout.setHorizontalGroup(descriptorPanelLayout\r\n\t\t\t\t.createParallelGroup().addGroup(\r\n\t\t\t\t\t\tdescriptorPanelLayout\r\n\t\t\t\t\t\t\t\t.createSequentialGroup()\r\n\t\t\t\t\t\t\t\t.addGroup(\r\n\t\t\t\t\t\t\t\t\t\tdescriptorPanelLayout\r\n\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup()\r\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(nameLabel)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(descriptionLabel)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(visibleLabel)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(labelLabel))\r\n\t\t\t\t\t\t\t\t.addGroup(\r\n\t\t\t\t\t\t\t\t\t\tdescriptorPanelLayout\r\n\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup()\r\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(visibleBox)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(nameField)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(descriptionField)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(labelsField))));\r\n\r\n\t\tdescriptorPanelLayout.setVerticalGroup(descriptorPanelLayout\r\n\t\t\t\t.createSequentialGroup()\r\n\t\t\t\t.addGroup(\r\n\t\t\t\t\t\tdescriptorPanelLayout\r\n\t\t\t\t\t\t\t\t.createParallelGroup(\r\n\t\t\t\t\t\t\t\t\t\tGroupLayout.Alignment.BASELINE)\r\n\t\t\t\t\t\t\t\t.addComponent(visibleLabel)\r\n\t\t\t\t\t\t\t\t.addComponent(visibleBox))\r\n\t\t\t\t.addGroup(\r\n\t\t\t\t\t\tdescriptorPanelLayout\r\n\t\t\t\t\t\t\t\t.createParallelGroup(\r\n\t\t\t\t\t\t\t\t\t\tGroupLayout.Alignment.BASELINE)\r\n\t\t\t\t\t\t\t\t.addComponent(nameLabel)\r\n\t\t\t\t\t\t\t\t.addComponent(nameField))\r\n\t\t\t\t.addGroup(\r\n\t\t\t\t\t\tdescriptorPanelLayout\r\n\t\t\t\t\t\t\t\t.createParallelGroup(\r\n\t\t\t\t\t\t\t\t\t\tGroupLayout.Alignment.BASELINE)\r\n\t\t\t\t\t\t\t\t.addComponent(descriptionLabel)\r\n\t\t\t\t\t\t\t\t.addComponent(descriptionField))\r\n\t\t\t\t.addGroup(\r\n\t\t\t\t\t\tdescriptorPanelLayout\r\n\t\t\t\t\t\t\t\t.createParallelGroup(\r\n\t\t\t\t\t\t\t\t\t\tGroupLayout.Alignment.BASELINE)\r\n\t\t\t\t\t\t\t\t.addComponent(labelLabel)\r\n\t\t\t\t\t\t\t\t.addComponent(labelsField)));\r\n\t\tif (!isEditable) {\r\n\t\t\tfinal JPanel containerPanel = new JPanel(new BorderLayout());\r\n\r\n\t\t\tcontainerPanel.add(readOnlyLabel, BorderLayout.NORTH);\r\n\t\t\tcontainerPanel.add(descriptorPanel, BorderLayout.CENTER);\r\n\r\n\t\t\tvisibleBox.setEnabled(false);\r\n\t\t\tnameField.setEnabled(false);\r\n\t\t\tlabelsField.setEnabled(false);\r\n\t\t\tdescriptionField.setEnabled(false);\r\n\r\n\t\t\treturn containerPanel;\r\n\t\t}\r\n\r\n\t\treturn descriptorPanel;\r\n\t}", "title": "" }, { "docid": "26a61f335b2a9ac4085c55e526ae3b46", "score": "0.39585048", "text": "private int createNewConfigurationPanel() {\n int formIndex = createNewConfiguratioFormWithoutManipulator(\"\", true);\n int id = identificatorCreater.getConfigurationId(formIndex);\n saveDataModel.createNewConfiguration(id);\n return formIndex;\n }", "title": "" } ]
dd1f9fbc3d7a400f4afa3a71261ea252
Check that method arguments conform to its instantation.
[ { "docid": "89ff04f9a11798f09978e8d9560aee20", "score": "0.0", "text": "public Type checkMethod(Type site,\n Symbol sym,\n Env<AttrContext> env,\n final List<JCExpression> argtrees,\n List<Type> argtypes,\n List<Type> typeargtypes,\n boolean useVarargs) {\n\t\tDEBUG.P(this,\"checkMethod(7)\");\n\t\tDEBUG.P(\"site=\"+site);\n\t\tDEBUG.P(\"sym=\"+sym);\n\t\tDEBUG.P(\"argtrees=\"+argtrees);\n\t\tDEBUG.P(\"argtypes=\"+argtypes);\n\t\tDEBUG.P(\"typeargtypes=\"+typeargtypes);\n\t\tDEBUG.P(\"useVarargs=\"+useVarargs);\n\n // Test (5): if symbol is an instance method of a raw type, issue\n // an unchecked warning if its argument types change under erasure.\n if (allowGenerics &&\n (sym.flags() & STATIC) == 0 &&\n (site.tag == CLASS || site.tag == TYPEVAR)) {\n\t\t\t/*如:\n\t\t\t\tclass VisitNewClassTest<T> {\n\t\t\t\t\tVisitNewClassTest vct = new VisitNewClassTest(this);\n\t\t\t\t\tVisitNewClassTest(VisitNewClassTest<T> t){}\n\t\t\t\t}\n\t\t\t*/\n Type s = types.asOuterSuper(site, sym.owner);\n if (s != null && s.isRaw() &&\n !types.isSameTypes(sym.type.getParameterTypes(),\n sym.erasure(types).getParameterTypes())) {\n chk.warnUnchecked(env.tree.pos(),\n \"unchecked.call.mbr.of.raw.type\",\n sym, s);\n }\n }\n\n // Compute the identifier's instantiated type.\n // For methods, we need to compute the instance type by\n // Resolve.instantiate from the symbol's type as well as\n // any type arguments and value arguments.\n noteWarner.warned = false;\n Type owntype = rs.instantiate(env,\n site,\n sym,\n argtypes,\n typeargtypes,\n true,\n useVarargs,\n noteWarner);\n boolean warned = noteWarner.warned;\n\n // If this fails, something went wrong; we should not have\n // found the identifier in the first place.\n if (owntype == null) {\n if (!pt.isErroneous())\n log.error(env.tree.pos(),\n \"internal.error.cant.instantiate\",\n sym, site,\n Type.toString(pt.getParameterTypes()));\n owntype = syms.errType;\n } else {\n // System.out.println(\"call : \" + env.tree);\n // System.out.println(\"method : \" + owntype);\n // System.out.println(\"actuals: \" + argtypes);\n List<Type> formals = owntype.getParameterTypes();\n Type last = useVarargs ? formals.last() : null;\n if (sym.name==names.init &&\n sym.owner == syms.enumSym)\n formals = formals.tail.tail;\n List<JCExpression> args = argtrees;\n while (formals.head != last) {\n JCTree arg = args.head;\n Warner warn = chk.convertWarner(arg.pos(), arg.type, formals.head);\n assertConvertible(arg, arg.type, formals.head, warn);\n warned |= warn.warned;\n args = args.tail;\n formals = formals.tail;\n }\n if (useVarargs) {\n Type varArg = types.elemtype(last);\n while (args.tail != null) {\n JCTree arg = args.head;\n Warner warn = chk.convertWarner(arg.pos(), arg.type, varArg);\n assertConvertible(arg, arg.type, varArg, warn);\n warned |= warn.warned;\n args = args.tail;\n }\n } else if ((sym.flags() & VARARGS) != 0 && allowVarargs) {\n // non-varargs call to varargs method\n Type varParam = owntype.getParameterTypes().last();\n Type lastArg = argtypes.last();\n if (types.isSubtypeUnchecked(lastArg, types.elemtype(varParam)) &&\n !types.isSameType(types.erasure(varParam), types.erasure(lastArg)))\n log.warning(argtrees.last().pos(), \"inexact.non-varargs.call\",\n types.elemtype(varParam),\n varParam);\n }\n\n if (warned && sym.type.tag == FORALL) {\n String typeargs = \"\";\n if (typeargtypes != null && typeargtypes.nonEmpty()) {\n typeargs = \"<\" + Type.toString(typeargtypes) + \">\";\n }\n chk.warnUnchecked(env.tree.pos(),\n \"unchecked.meth.invocation.applied\",\n sym,\n sym.location(),\n typeargs,\n Type.toString(argtypes));\n owntype = new MethodType(owntype.getParameterTypes(),\n types.erasure(owntype.getReturnType()),\n owntype.getThrownTypes(),\n syms.methodClass);\n }\n if (useVarargs) {\n JCTree tree = env.tree;\n Type argtype = owntype.getParameterTypes().last();\n if (!types.isReifiable(argtype))\n chk.warnUnchecked(env.tree.pos(),\n \"unchecked.generic.array.creation\",\n argtype);\n Type elemtype = types.elemtype(argtype);\n switch (tree.tag) {\n case JCTree.APPLY:\n ((JCMethodInvocation) tree).varargsElement = elemtype;\n break;\n case JCTree.NEWCLASS:\n ((JCNewClass) tree).varargsElement = elemtype;\n break;\n default:\n throw new AssertionError(\"\"+tree);\n }\n }\n }\n\n\t\tDEBUG.P(\"owntype=\"+owntype);\n\t\tDEBUG.P(0,this,\"checkMethod(7)\");\n return owntype;\n }", "title": "" } ]
[ { "docid": "80d14796c8c9faedb08d65047152dd44", "score": "0.6598866", "text": "boolean hasArguments();", "title": "" }, { "docid": "967d873f62f5efac832c88992eb34c07", "score": "0.64791244", "text": "protected void validateArgs(java.lang.String[] param){\n \n }", "title": "" }, { "docid": "9d3413ea52b49b080f7fd47862e59711", "score": "0.64654726", "text": "private void checkConstructorArguments(int arguments) {\n if (arguments == 0 && (typeDef.getConstructors() == null || typeDef.getConstructors().isEmpty())) {\n return;\n }\n\n for (Method m : typeDef.getConstructors()) {\n int a = m.getArguments() != null ? m.getArguments().size() : 0;\n if (a == arguments) {\n return;\n }\n }\n throw new IllegalArgumentException(\n \"No constructor found for \" + typeDef.getName() + \" with \" + arguments + \" arguments. Found:\"\n + typeDef.getConstructors().stream().map(Method::toString).collect(Collectors.joining(\"\\n\\t\", \"\\t\", \"\\n\")));\n }", "title": "" }, { "docid": "bd065f3c24a0df388e884e96bd53aa9e", "score": "0.6441128", "text": "private void checkFactoryMethodArguments(int arguments) {\n for (Method m : typeDef.getMethods()) {\n int a = m.getArguments() != null ? m.getArguments().size() : 0;\n if (m.getName().equals(staticFactoryMethod) && a == arguments && m.isStatic()) {\n return;\n }\n }\n throw new IllegalArgumentException(\"No static method found on \" + typeDef.getName() + \" with name \" + staticFactoryMethod\n + \" and \" + arguments + \" arguments.\");\n }", "title": "" }, { "docid": "327054024d8a66949eaa6e1f39b86839", "score": "0.6433331", "text": "private static boolean checkArguments(String[] args) {\n try {\n validateArguments(args);\n return true;\n } catch (IllegalArgumentException e) {\n System.err.println(e.getMessage());\n return false;\n }\n\n }", "title": "" }, { "docid": "ee30612f851f1489b7e1562e8f8e50fe", "score": "0.6379924", "text": "private void scanMethod() {\n Class<?>[] parameters = method.getParameterTypes();\n\n for (int p = 0; p < parameters.length; p++) {\n boolean allowCustomArgumentResolution = true;\n\n // check if we want a web-socket session\n if (WebSocketSession.class.equals(parameters[p])) {\n allowCustomArgumentResolution = false;\n if (parameterTypes.containsKey(ParameterType.WEB_SOCKET_SESSION)) {\n throw new RuntimeException(\"Cannot have multiple parameters as web-socket sessions on method: \" + method);\n }\n\n parameterTypes.put(ParameterType.WEB_SOCKET_SESSION, p);\n } else if (WebSocketEnvelope.class.equals(parameters[p])) {\n allowCustomArgumentResolution = false;\n\n if (parameterTypes.containsKey(ParameterType.ENVELOPE)) {\n throw new RuntimeException(\"Cannot have multiple parameters as envelope on method: \" + method);\n }\n\n takesEnvelope = true;\n\n parameterTypes.put(ParameterType.ENVELOPE, p);\n } else {\n for (Annotation annotation : method.getParameterAnnotations()[p]) {\n if (annotation instanceof ActionPayload) {\n allowCustomArgumentResolution = false;\n if (parameterTypes.containsKey(ParameterType.ACTION_PAYLOAD)) {\n throw new RuntimeException(\"Cannot have multiple parameters marked as payloads on method: \" + method);\n }\n\n parameterTypes.put(ParameterType.ACTION_PAYLOAD, p);\n payloadClass = parameters[p];\n payloadParameterIndex = p;\n\n for (Annotation secondaryAnnotation : method.getParameterAnnotations()[p]) {\n if (secondaryAnnotation instanceof Valid) {\n validatePayload = true;\n break;\n }\n }\n break;\n } else if (annotation instanceof ActionTransactionId) {\n allowCustomArgumentResolution = false;\n if (parameterTypes.containsKey(ParameterType.TRANSACTION_ID)) {\n throw new RuntimeException(\"Cannot have multiple parameters marked as payloads on method: \" + method);\n }\n\n parameterTypes.put(ParameterType.TRANSACTION_ID, p);\n break;\n }\n }\n }\n\n if(allowCustomArgumentResolution){\n cacheCustomArgumentResolverForParameter(method, p);\n }\n }\n\n responseClass = method.getReturnType();\n\n if (responseClass.equals(Void.TYPE)) {\n responseClass = null;\n } else if (responseClass.equals(DeferredResult.class)) {\n responseClass = (Class<?>) ((ParameterizedType) method.getGenericReturnType()).getActualTypeArguments()[0];\n }\n }", "title": "" }, { "docid": "ed4ce7f63fbbd8c5ef805e9348f36c3a", "score": "0.6344014", "text": "public void testIsValidArgs1() {\n\t\tOpeningSequenceCoverage coverage = new OpeningSequenceCoverage();\n\n\t\tAssert.assertTrue(coverage.isValidArgs() == false);\n\n\t}", "title": "" }, { "docid": "989e7cfb305d9c4fa56e64d5749549d5", "score": "0.63268745", "text": "private static boolean allParametersAndArgumentsMatch(Parameter[] params, ClassNode[] args) {\n for (int i=0; i<params.length; i++) {\n if (!isAssignableTo(params[i].getType(), args[i])) return false;\n }\n return true;\n }", "title": "" }, { "docid": "6f4445e5395bcc5bfdd0ed12ed26b093", "score": "0.6304384", "text": "protected static boolean acceptedArgs() {\n return true;\n }", "title": "" }, { "docid": "99b4ecb580d3d65754a5cd3f818039e3", "score": "0.63034236", "text": "protected boolean verifyMethodNameAndParameter(GraphNode node, List<Expression> arguments) {\n MethodReflection methodReflection = new MethodReflection();\n List<String> methodDeclarationList = methodReflection.getAllMethodDeclaration(class_name_map.get(node.getClassName()));\n Map<String, List<String>> methodAndParameterTypeMap = methodReflection.getMethodAndParameterTypeMap();\n Map<String, List<String>> methodAndParameterCompleteTypeMap = methodReflection.getMethodAndParameterCompleteTypeMap();\n Map<String, String> simpleToCompleteNameMap = methodReflection.getSimpleToCompleteName(class_name_map.get(node.getClassName()));\n if (methodAndParameterTypeMap.get(node.toString()) == null) {\n String methodDeclaration = node.toString();\n List<String> matchedList = new ArrayList<>();\n methodDeclaration = methodDeclaration.substring(0, methodDeclaration.indexOf('('));\n for (int i = 0; i < methodDeclarationList.size(); i++) {\n int index = methodDeclarationList.get(i).indexOf('(');\n if (methodDeclaration.equals(methodDeclarationList.get(i))) {\n matchedList.removeAll(matchedList);\n matchedList.add(methodDeclarationList.get(i));\n break;\n } else if (index != -1 && methodDeclaration.equals(methodDeclarationList.get(i).substring(0, index))) {\n matchedList.add(methodDeclarationList.get(i));\n }\n }\n if (matchedList.size() == 1) {\n modifyMethodDeclarationOfNode(matchedList.get(0), node, simpleToCompleteNameMap);\n return true;\n } else if (matchedList.size() > 1) {\n String result = chooseTheCorrectMethodDeclaration(matchedList, arguments, node, methodAndParameterTypeMap, methodAndParameterCompleteTypeMap);\n if (result.equals(\"\")) {\n return false;\n } else {\n modifyMethodDeclarationOfNode(result, node, simpleToCompleteNameMap);\n return true;\n }\n } else {\n return false;\n }\n } else {\n modifyMethodDeclarationOfNode(node.toString(), node, simpleToCompleteNameMap);\n return true;\n }\n }", "title": "" }, { "docid": "46102b82f566de02c02a2844feed2483", "score": "0.6277611", "text": "public void testValidateArgs() {\n\t\tString[] args = new String[]{\"name\",\"bob\",\"jones\"};\n\t\ttry {\n\t\t\tnew HasPCDataContains(args);\n\t\t\tfail(\"An InvalidFunctionArguements exception should have been thrown by the constructor!\");\n\t\t} catch (InvalidFunctionArguments ifa) {\n\t\t\tassertTrue(ifa.getMessage().contains(\"HasPCDataContains takes exactly one argument.\"));\n\t\t}\n\t\t\n\t\t//test with 2 argument, should fail\n\t\targs = new String[]{\"name\", \"position\"};\n\t\ttry {\n\t\t\tnew HasPCDataContains(args);\n\t\t\tfail(\"An InvalidFunctionArguements exception should have been thrown by the constructor!\");\n\t\t} catch (InvalidFunctionArguments ifa) {\n\t\t\tassertTrue(ifa.getMessage().contains(\"HasPCDataContains takes exactly one argument.\"));\n\t\t}\n\t\t\n\t\t//test with 0 argument, should be a problem\n\t\targs = new String[]{};\n\t\ttry {\n\t\t\tnew HasPCDataContains(args);\n\t\t\tfail(\"An InvalidFunctionArguements exception should have been thrown by the constructor!\");\n\t\t} catch (InvalidFunctionArguments ifa) {\n\t\t\tassertTrue(ifa.getMessage().contains(\"HasPCDataContains takes exactly one argument.\"));\n\t\t}\n\t\t\n\t\t//test with null arguments, should be a problem\n\t\ttry {\n\t\t\tnew HasPCDataContains(args);\n\t\t\tfail(\"An InvalidFunctionArguements exception should have been thrown by the constructor!\");\n\t\t} catch (InvalidFunctionArguments ifa) {\n\t\t\tassertTrue(ifa.getMessage().contains(\"HasPCDataContains takes exactly one argument.\"));\n\t\t}\n\t\t\n\t\t//test with correct arguments, first one is zero, should work\n\t\targs = new String[]{\"some text to look for in PCData\"};\n\t\ttry {\n\t\t\tnew HasPCDataContains(args);\n\t\t} catch (InvalidFunctionArguments ifa) {\n\t\t\tfail(\"An InvalidFunctionArguements exception should have NOT been thrown by the constructor!\");\n\t\t}\n\t}", "title": "" }, { "docid": "c244fb6efdf24c4d6ac49c4868341134", "score": "0.62544143", "text": "boolean isCollectionArgument(String methodName, String type) throws NoSuchMethodException;", "title": "" }, { "docid": "2b8e6eac846161e530201fac46bec995", "score": "0.62383866", "text": "private void argumentCheck(Super s, double d, SubclassA a, Final f) {\n }", "title": "" }, { "docid": "81b6b8386d7ec6e73c865132ab6be8a8", "score": "0.61509866", "text": "public static void validateFuncallArguments(List<Passed> arguments) throws ArgumentException {\n int i = 0;\n int len = arguments.size();\n\n while (i < len && arguments.get(i).isPositional()) {\n i++;\n }\n\n while (i < len && arguments.get(i).isKeyword()) {\n i++;\n }\n\n if (i < len && arguments.get(i).isStar()) {\n i++;\n }\n\n if (i < len && arguments.get(i).isStarStar()) {\n i++;\n }\n\n // If there's no argument left, everything is correct.\n if (i == len) {\n return;\n }\n\n Location loc = arguments.get(i).getLocation();\n if (arguments.get(i).isPositional()) {\n throw new ArgumentException(\n loc, \"positional argument is misplaced (positional arguments come first)\");\n }\n\n if (arguments.get(i).isKeyword()) {\n throw new ArgumentException(\n loc,\n \"keyword argument is misplaced (keyword arguments must be before any *arg or **kwarg)\");\n }\n\n if (i < len && arguments.get(i).isStar()) {\n throw new ArgumentException(loc, \"*arg argument is misplaced\");\n }\n\n if (i < len && arguments.get(i).isStarStar()) {\n throw new ArgumentException(loc, \"**kwarg argument is misplaced (there can be only one)\");\n }\n }", "title": "" }, { "docid": "86e6c146643b704731fb23540e338532", "score": "0.6117468", "text": "private void checkObserverMethod()\n {\n // Make sure exactly one and only one parameter is annotated with Observes\n List<WBParameter<?>> eventObjects = this.observerMethod.getAnnotatedParameters(Observes.class);\n if (eventObjects.size() > 1)\n {\n throw new DefinitionException(this + \" is invalid because it contains more than event parameter annotated @Observes\");\n }\n // Make sure the event object above is not parameterized with a type\n // variable or wildcard\n if (eventObjects.size() > 0)\n {\n WBParameter<?> eventParam = eventObjects.iterator().next();\n if (eventParam.isParameterizedType())\n {\n for (Type type : eventParam.getActualTypeArguments())\n {\n if (type instanceof TypeVariable<?>)\n {\n throw new DefinitionException(\"Cannot use a type variable \" + type + \" in an parameterized type \" + toString());\n }\n else if (type instanceof WildcardType)\n {\n throw new DefinitionException(\"Cannot use a wildcard variable \" + type + \" in an parameterized type \" + toString());\n }\n }\n }\n }\n // Check for parameters annotated with @Disposes\n List<WBParameter<?>> disposeParams = this.observerMethod.getAnnotatedParameters(Disposes.class);\n if (disposeParams.size() > 0)\n {\n throw new DefinitionException(this + \" cannot have any parameters annotated with @Disposes\");\n }\n // Check annotations on the method to make sure this is not a producer\n // method, initializer method, or destructor method.\n if (this.observerMethod.isAnnotationPresent(Produces.class))\n {\n throw new DefinitionException(this + \" cannot be annotated with @Produces\");\n }\n if (this.observerMethod.isAnnotationPresent(Initializer.class))\n {\n throw new DefinitionException(this + \" cannot be annotated with @Initializer\");\n }\n \n }", "title": "" }, { "docid": "2ec49190bfbe8584946f6fab40211a4d", "score": "0.6105185", "text": "private static boolean excessArgumentsMatchesVargsParameter(Parameter[] params, ClassNode[] args) {\n ClassNode vargsBase = params[params.length-1].getType().getComponentType();\n for (int i=params.length; i<args.length; i++) {\n if (!isAssignableTo(vargsBase, args[i])) return false;\n }\n return true;\n }", "title": "" }, { "docid": "ae67fe72ff4b3b8369981305625565c2", "score": "0.6099398", "text": "public boolean isVarArgs();", "title": "" }, { "docid": "e1dc5e19ad8e1f55eccfa407a1deb729", "score": "0.6055267", "text": "private void validate() throws IllegalArgumentException {\n // Check for required parameters\n // Check for required params for each action\n }", "title": "" }, { "docid": "bf077870ad1fa428a4c593817685f7a7", "score": "0.6024899", "text": "public static boolean isArgumentTypeAllowed(MethodParamModel arg, TypeName expected) {\n TypeName actual = arg.getTypeName();\n return arg instanceof SimpleMethodParamModel\n && (expected.equals(ClassNames.OBJECT) || expected.equals(actual))\n && arg.getAnnotations().isEmpty();\n }", "title": "" }, { "docid": "ec529f8d5bfa9ed74844b0dbe7dc844a", "score": "0.5986577", "text": "private boolean argumentValidity(Object incValue) {\n\tif(incValue == null) return true;\n\treturn incValue instanceof Integer || incValue instanceof Double || incValue instanceof String;\n }", "title": "" }, { "docid": "bc24444a516ea39e5996153b3e464384", "score": "0.5986246", "text": "public void checkArgs(int length, RuleContext context) {\n int expected = getArgLength();\n if (expected > 0 && expected != length) {\n throw new BuiltinException(this, context, \"builtin \" + getName() + \" requires \" + expected + \" arguments but saw \" + length);\n }\n }", "title": "" }, { "docid": "b3297e247081a8898ae258d9c83d6d96", "score": "0.5984008", "text": "private static boolean validateInstruction(Method method, String packageName) {\n String error = \"\";\n boolean isValid = true;\n\n //all instructions must be static methods\n if (!Modifier.isStatic(method.getModifiers())) {\n error += \"\\t\" + packageName + \".\" + method.getName() + \" method must be static\\n\";\n isValid = false;\n }\n\n Parameter[] parameters = method.getParameters();\n\n if (parameters.length == 1 && parameters[0].getParameterizedType().getTypeName().compareTo(strArr) == 0) {\n //this is a general purpose instruction that takes any number of tokens\n isValid = true;\n }\n else\n {\n //this is an instruction that takes a set number of parameters\n for (Parameter p : parameters) {\n //all instruction parameters must have a @Param tag\n if (p.getAnnotation(Param.class) == null) {\n error += \"\\t\" + packageName + \".\" + method.getName() + \" parameter \" + p.getName() + \" must use @Param tag\\n\";\n isValid = false;\n continue;\n }\n\n //ensure that parameter is of supported type\n if (!legalParameterTypes.contains(p.getParameterizedType().getTypeName())) {\n error += \"\\t\" + packageName + \".\" + method.getName() + \" parameter \" + p.getName() + \" is of unsupported type \\'\" +\n p.getParameterizedType().getTypeName() + \"\\'\\n\";\n isValid = false;\n }\n\n //ensure that default value is of same type as parameter type\n String defaultValue = p.getAnnotation(Param.class).Default();\n try {\n convert(defaultValue, p.getParameterizedType().getTypeName());\n } catch (Exception e){\n error += \"\\t\" + packageName + \".\" + method.getName() + \" parameter \" + p.getName() + \" default value \\'\" + defaultValue +\n \"\\' cannot be converted to parameter type \\'\" +\n p.getParameterizedType().getTypeName() + \"\\'\\n\";\n isValid = false;\n }\n }\n\n //if instruction is valid, ensure parameter names are unique\n if (isValid) {\n for (int param1 = 0; param1 < parameters.length; param1++) {\n for (int param2 = param1 + 1; param2 < parameters.length; param2++) {\n if (parameters[param1].getAnnotation(Param.class).Name().compareTo(\n parameters[param2].getAnnotation(Param.class).Name()) == 0) {\n error += \"\\t\" + packageName + \".\" + method.getName() + \" parameter \" + parameters[param1].getName() + \" name \\'\" +\n parameters[param1].getAnnotation(Param.class).Name() +\n \"\\' is that same as parameter \" +\n parameters[param2].getName() + \"\\'s\\n\";\n isValid = false;\n }\n }\n }\n }\n }\n\n if (!isValid) {\n System.err.println(\"Instruction \" + packageName + \".\" + method.getName() + \" failed to load.\");\n System.err.print(error);\n }\n return isValid;\n }", "title": "" }, { "docid": "bdacd15dc89bb8f0091495681db6706d", "score": "0.5975069", "text": "@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n private void assertRequireArguments(final String functionName) {\n try {\n factory.function(functionName, new Expression[0]);\n fail(\"Creation with no argument shall fail.\");\n } catch (IllegalArgumentException ex) {\n final String message = ex.getMessage();\n assertTrue(message, message.contains(\"parameters\"));\n }\n }", "title": "" }, { "docid": "50ede152f6f4442419470785b5e0673a", "score": "0.5972055", "text": "@Test\n public void testCheckArguments() throws Exception {\n System.out.println(\"checkArguments\");\n String[] args = new String[] {\n \"Z:/_DICOM.LOG\",\n \"magistersimon@mail.ru\"\n };\n boolean result;\n try {\n result = CmdArgsChecker.checkArguments(args);\n } catch (Exception thrown) {\n assertNotEquals(thrown.getMessage(), \"\");\n }\n args = new String[] {\n \"Z:/_DICOM.LOG\",\n \"something\",\n \"something else\"\n };\n try {\n result = CmdArgsChecker.checkArguments(args);\n assertFalse(result);\n } catch (Exception thrown) {\n assertEquals(thrown.getMessage(), Strings.ERR_PARAM);\n }\n }", "title": "" }, { "docid": "214162cd97efcb80361fa7d9d9c92a2f", "score": "0.597189", "text": "private static void checkArguments(Boolean check, String message)\n\t{\n\t\tif (!check) {\n\t\t\tthrow new IllegalArgumentException(message);\n\t\t}\n\t}", "title": "" }, { "docid": "5ab9c36915c2125e9db3cb3c15f7c84f", "score": "0.5958159", "text": "private void checkObserverMethod()\n {\n // Make sure exactly one and only one parameter is annotated with Observes\n List<AnnotatedParameter<?>> eventObjects = this.observerMethod.getAnnotatedParameters(Observes.class);\n if (eventObjects.size() > 1)\n {\n throw new DefinitionException(this + \" is invalid because it contains more than event parameter annotated @Observes\");\n }\n // Make sure the event object above is not parameterized with a type\n // variable or wildcard\n if (eventObjects.size() > 0)\n {\n AnnotatedParameter<?> eventParam = eventObjects.iterator().next();\n if (eventParam.isParameterizedType())\n {\n for (Type type : eventParam.getActualTypeArguments())\n {\n if (type instanceof TypeVariable)\n {\n throw new DefinitionException(\"Cannot use a type variable \" + type + \" in an parameterized type \" + toString());\n }\n else if (type instanceof WildcardType)\n {\n throw new DefinitionException(\"Cannot use a wildcard variable \" + type + \" in an parameterized type \" + toString());\n }\n }\n }\n }\n // Check for parameters annotated with @Disposes\n List<AnnotatedParameter<?>> disposeParams = this.observerMethod.getAnnotatedParameters(Disposes.class);\n if (disposeParams.size() > 0)\n {\n throw new DefinitionException(this + \" cannot have any parameters annotated with @Disposes\");\n }\n // Check annotations on the method to make sure this is not a producer\n // method, initializer method, or destructor method.\n if (this.observerMethod.isAnnotationPresent(Produces.class))\n {\n throw new DefinitionException(this + \" cannot be annotated with @Produces\");\n }\n if (this.observerMethod.isAnnotationPresent(Initializer.class))\n {\n throw new DefinitionException(this + \" cannot be annotated with @Initializer\");\n }\n \n // We cannot allow asynchronously invoked conditional observers either\n if (this.asynchronous && this.conditional)\n {\n throw new DefinitionException(this + \" cannot be annotated with both @Asynchronously and @IfExists\");\n }\n }", "title": "" }, { "docid": "ea65df8824184914083e67af3496ae6c", "score": "0.5941764", "text": "public static boolean isArgumentTypeAllowed(MethodParamModel arg, ImmutableList<TypeName> types) {\n for (TypeName type : types) {\n if (DelegateMethodDescription.isArgumentTypeAllowed(arg, type)) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "5d232b86f6cc67b73b945c689c804f29", "score": "0.5928687", "text": "public static void legacyValidateFuncallArguments(List<Passed> arguments)\n throws ArgumentException {\n boolean hasNamed = false;\n boolean hasStar = false;\n boolean hasKwArg = false;\n for (Passed arg : arguments) {\n if (hasKwArg) {\n throw new ArgumentException(arg.getLocation(), \"argument after **kwargs\");\n }\n if (arg.isPositional()) {\n if (hasNamed) {\n throw new ArgumentException(arg.getLocation(), \"non-keyword arg after keyword arg\");\n } else if (arg.isStar()) {\n throw new ArgumentException(\n arg.getLocation(), \"only named arguments may follow *expression\");\n }\n } else if (arg.isKeyword()) {\n hasNamed = true;\n } else if (arg.isStar()) {\n if (hasStar) {\n throw new ArgumentException(arg.getLocation(), \"more than one *stararg\");\n }\n hasStar = true;\n } else {\n hasKwArg = true;\n }\n }\n }", "title": "" }, { "docid": "30d8ff24040389c2060b7bd7d65b7505", "score": "0.5927843", "text": "private void validateSingleArgConstructor(List<Throwable> errors) {\n List<String> parameters = Arrays.stream(getTestClass().getOnlyConstructor().getParameterTypes()).map(Class::getName).collect(Collectors.toList());\n List<String> expectedParameters = Lists.newArrayList(TestUtils.class.getName());\n if (!parameters.equals(expectedParameters)) {\n errors.add(new Exception(String.format(\"Test class constructor has unexpected parameters: expected %s, but found %s\",\n expectedParameters, parameters)));\n }\n\n }", "title": "" }, { "docid": "d15aa94e675851d52b1ea629dbc49d42", "score": "0.5921873", "text": "boolean hasArgument();", "title": "" }, { "docid": "5a9bf694e1b2f1d4861e62df5982a78e", "score": "0.5920207", "text": "ArgumentConstraint argumentConstraints();", "title": "" }, { "docid": "1b18ba77790c32c942461107f7172ed7", "score": "0.59030855", "text": "public boolean enoughArgs() {\n return arguments.size() == myArgs;\n }", "title": "" }, { "docid": "917413fbe04f5daa457c58ef7501aba8", "score": "0.5890714", "text": "protected abstract boolean validateArg(String s);", "title": "" }, { "docid": "72c43b0dc8474fdd6f9bda927fd4109b", "score": "0.5802456", "text": "public boolean hasArguments() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "title": "" }, { "docid": "04fb808b63ec8cd0be85af4d3ff4d515", "score": "0.57910854", "text": "public void testIsValidArgs2() {\n\t\tOpeningSequenceCoverage coverage = new OpeningSequenceCoverage();\n\t\tTestCaseGeneratorConfiguration.LENGTH = 3;\n\n\n\t\tAssert.assertTrue(coverage.isValidArgs() == true);\n\n\t}", "title": "" }, { "docid": "4e6d33d0b07fce24c6746c18601dba14", "score": "0.57869464", "text": "public boolean validateArgs(CommandLine cmd) {\r\n CommandLineOptions options = new CommandLineOptions();\r\n return validateDatasetIdArg(cmd, options) &&\r\n validateFileToPublishArg(cmd, options) &&\r\n validatePublishMethodArg(cmd, options) &&\r\n validateHeaderRowArg(cmd, options) &&\r\n validatePublishViaFtpArg(cmd, options) &&\r\n validatePublishViaDi2HttpArg(cmd, options) &&\r\n validatePathToControlFileArg(cmd, options) &&\r\n validateProxyArgs(cmd, options);\r\n }", "title": "" }, { "docid": "c1f25cad7c440084e01b1a592a6d1e2a", "score": "0.57858396", "text": "public static void checkParams(String [] args, int length, String usage, String className) throws CheckParamsException{\n\t\t\n\t\tif(args==null || !(args.length==length)){\n\t\t\tprintUsage(className, usage);\n\t\t\tthrow new CheckParamsException(\"Define paramerts correctly.\");\n\t\t}\n\t}", "title": "" }, { "docid": "546a3deba41b4b754bcecf7f223a576e", "score": "0.57711846", "text": "static boolean isVarArgs(Method m) {\n if (\"1.5\".compareTo(SysProperties.JAVA_SPECIFICATION_VERSION) > 0) {\n return false;\n }\n try {\n Method isVarArgs = m.getClass().getMethod(\"isVarArgs\");\n Boolean result = (Boolean) isVarArgs.invoke(m);\n return result.booleanValue();\n } catch (Exception e) {\n return false;\n }\n }", "title": "" }, { "docid": "d559a05f1a6541f1f521fd97b481a047", "score": "0.5741698", "text": "@java.lang.Override\n public boolean hasArguments() {\n return arguments_ != null;\n }", "title": "" }, { "docid": "7034d1593dbb5ba4cff0f5452bbb29d5", "score": "0.5731101", "text": "static int fixedArgs(Method m) {\n return IS_VARARGS.fixedArgs(m);\n }", "title": "" }, { "docid": "6b5ecf489b4d8d45f73de1f1cc3ae837", "score": "0.57041043", "text": "com.google.protobuf.AnyOrBuilder getArgumentsOrBuilder();", "title": "" }, { "docid": "e2d752db48e1aa81f47bcfc5444dec62", "score": "0.56780934", "text": "private boolean instanceMethodParametersResolveToSameTypes(Method subTypeMethod, Method superTypeMethod)\n/* */ {\n/* 139 */ if (subTypeMethod.getParameterTypes().length == 0) {\n/* 140 */ return true;\n/* */ }\n/* */ \n/* 143 */ ResolvedType resolvedSubType = this.typeResolver.resolve(subTypeMethod.getDeclaringClass(), new Type[0]);\n/* */ \n/* 145 */ MemberResolver memberResolver = new MemberResolver(this.typeResolver);\n/* 146 */ memberResolver.setMethodFilter(new SimpleMethodFilter(subTypeMethod, superTypeMethod, null));\n/* 147 */ ResolvedTypeWithMembers typeWithMembers = memberResolver.resolve(resolvedSubType, null, null);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 156 */ ResolvedMethod[] resolvedMethods = (ResolvedMethod[])run(GetResolvedMemberMethods.action(typeWithMembers));\n/* */ \n/* */ \n/* */ \n/* */ \n/* 161 */ if (resolvedMethods.length == 1) {\n/* 162 */ return true;\n/* */ }\n/* */ \n/* */ \n/* */ try\n/* */ {\n/* 168 */ for (int i = 0; i < resolvedMethods[0].getArgumentCount(); i++)\n/* */ {\n/* 170 */ if (!resolvedMethods[0].getArgumentType(i).equals(resolvedMethods[1].getArgumentType(i))) {\n/* 171 */ return false;\n/* */ }\n/* */ \n/* */ }\n/* */ }\n/* */ catch (ArrayIndexOutOfBoundsException e)\n/* */ {\n/* 178 */ log.debug(\"Error in ExecutableHelper#instanceMethodParametersResolveToSameTypes comparing \" + subTypeMethod + \" with \" + superTypeMethod);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 186 */ return true;\n/* */ }", "title": "" }, { "docid": "2edaa0d4cda4265ccfc6a31bdc26452b", "score": "0.5668322", "text": "static boolean inferPolyInvocationType(InferenceContext18 inferenceContext, InvocationSite invocationSite, TypeBinding targetType, MethodBinding method) throws InferenceFailureException {\n TypeBinding[] typeArguments = invocationSite.genericTypeArguments();\n if (typeArguments == null) {\n // invocation type inference (18.5.2):\n TypeBinding returnType = method.isConstructor() ? method.declaringClass : method.returnType;\n if (returnType == TypeBinding.VOID)\n throw new //$NON-NLS-1$\n InferenceFailureException(//$NON-NLS-1$\n \"expression has no value\");\n if (inferenceContext.usesUncheckedConversion) {\n // spec says erasure, but we don't really have compatibility rules for erasure, use raw type instead:\n TypeBinding erasure = inferenceContext.environment.convertToRawType(returnType, false);\n ConstraintTypeFormula newConstraint = ConstraintTypeFormula.create(erasure, targetType, COMPATIBLE);\n return inferenceContext.reduceAndIncorporate(newConstraint);\n }\n TypeBinding rTheta = inferenceContext.substitute(returnType);\n ParameterizedTypeBinding parameterizedType = InferenceContext18.parameterizedWithWildcard(rTheta);\n if (parameterizedType != null && parameterizedType.arguments != null) {\n TypeBinding[] arguments = parameterizedType.arguments;\n InferenceVariable[] betas = inferenceContext.addTypeVariableSubstitutions(arguments);\n ParameterizedTypeBinding gbeta = inferenceContext.environment.createParameterizedType(parameterizedType.genericType(), betas, parameterizedType.enclosingType(), parameterizedType.getTypeAnnotations());\n // established: both types have nonnull arguments\n inferenceContext.currentBounds.captures.put(gbeta, parameterizedType);\n if (InferenceContext18.SHOULD_WORKAROUND_BUG_JDK_8054721) {\n parameterizedType = parameterizedType.capture(inferenceContext.scope, invocationSite.sourceStart(), invocationSite.sourceEnd());\n arguments = parameterizedType.arguments;\n for (int i = 0, length = arguments.length; i < length; i++) {\n if (arguments[i].isCapture() && arguments[i].isProperType(true)) {\n CaptureBinding capture = (CaptureBinding) arguments[i];\n inferenceContext.currentBounds.addBound(new TypeBound(betas[i], capture, SAME), inferenceContext.environment);\n }\n }\n }\n ConstraintTypeFormula newConstraint = ConstraintTypeFormula.create(gbeta, targetType, COMPATIBLE);\n return inferenceContext.reduceAndIncorporate(newConstraint);\n }\n if (// https://bugs.openjdk.java.net/browse/JDK-8062082\n rTheta.leafComponentType() instanceof InferenceVariable) {\n InferenceVariable alpha = (InferenceVariable) rTheta.leafComponentType();\n TypeBinding targetLeafType = targetType.leafComponentType();\n boolean toResolve = false;\n if (inferenceContext.currentBounds.condition18_5_2_bullet_3_3_1(alpha, targetLeafType)) {\n toResolve = true;\n } else if (inferenceContext.currentBounds.condition18_5_2_bullet_3_3_2(alpha, targetLeafType, inferenceContext)) {\n toResolve = true;\n } else if (targetLeafType.isPrimitiveType()) {\n TypeBinding wrapper = inferenceContext.currentBounds.findWrapperTypeBound(alpha);\n if (wrapper != null)\n toResolve = true;\n }\n if (toResolve) {\n BoundSet solution = inferenceContext.solve(new InferenceVariable[] { alpha });\n if (solution == null)\n return false;\n TypeBinding u = solution.getInstantiation(alpha, null).capture(inferenceContext.scope, invocationSite.sourceStart(), invocationSite.sourceEnd());\n if (rTheta.dimensions() != 0) {\n u = inferenceContext.environment.createArrayType(u, rTheta.dimensions());\n }\n ConstraintTypeFormula newConstraint = ConstraintTypeFormula.create(u, targetType, COMPATIBLE);\n return inferenceContext.reduceAndIncorporate(newConstraint);\n }\n }\n ConstraintTypeFormula newConstraint = ConstraintTypeFormula.create(rTheta, targetType, COMPATIBLE);\n if (!inferenceContext.reduceAndIncorporate(newConstraint))\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "531aef3e0d248bdcbbf0d81d9d88b688", "score": "0.56597036", "text": "private static boolean checkArguments(String[] args) {\n\t\tif(args.length == 0) return false;\n\t\tfor (String arg : args) {\n\t\t\tif(!Tool.isSpecFile(arg)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "793e6e0c3ada0b90719e74caeb255400", "score": "0.5646423", "text": "public ArgumentCheck checkArgument(ICommandExecutor sender, String[] args, List<Object> previousArguments) {\n if(validArguments == null || validArguments.length == 0)\n return new ArgumentCheck(true, 1);\n\n return new ArgumentCheck(Arrays.stream(validArguments).anyMatch(args[0]::equalsIgnoreCase), 1);\n }", "title": "" }, { "docid": "d6146f60ff956cfbfc71a63c22822f03", "score": "0.56230307", "text": "boolean hasArg() {\r\n switch (this) {\r\n case ACT: case ARITY: case BACK: case BOTH: case CAT: case DROP:\r\n case EITHER: case GO: case HIGH: case LOW: case MARK: case SET:\r\n case SPLIT: case START: case STRING: case TAG:\r\n return true;\r\n default:\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "17a932f23eff2c58da2f80acaaf1fb9e", "score": "0.5616218", "text": "static void checkOperands(int args, int expected) {\n if (args != expected) {\n throw error(\"Incorrect operands.\");\n }\n }", "title": "" }, { "docid": "85ec6a02d59ac9bebb86694adfe72ec1", "score": "0.56093025", "text": "private void validateAnnotationMethods(Method[] paramArrayOfMethod) {\n/* 311 */ boolean bool = true;\n/* 312 */ for (Method method : paramArrayOfMethod) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 323 */ if (method.getModifiers() != 1025 || method\n/* 324 */ .isDefault() || method\n/* 325 */ .getParameterCount() != 0 || (method\n/* 326 */ .getExceptionTypes()).length != 0) {\n/* 327 */ bool = false;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 340 */ Class<?> clazz = method.getReturnType();\n/* 341 */ if (clazz.isArray()) {\n/* 342 */ clazz = clazz.getComponentType();\n/* 343 */ if (clazz.isArray()) {\n/* 344 */ bool = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 349 */ if ((!clazz.isPrimitive() || clazz == void.class) && clazz != String.class && clazz != Class.class && \n/* */ \n/* */ \n/* 352 */ !clazz.isEnum() && \n/* 353 */ !clazz.isAnnotation()) {\n/* 354 */ bool = false;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 373 */ String str = method.getName();\n/* 374 */ if ((str.equals(\"toString\") && clazz == String.class) || (str\n/* 375 */ .equals(\"hashCode\") && clazz == int.class) || (str\n/* 376 */ .equals(\"annotationType\") && clazz == Class.class)) {\n/* 377 */ bool = false;\n/* */ break;\n/* */ } \n/* */ } \n/* 381 */ if (bool) {\n/* */ return;\n/* */ }\n/* 384 */ throw new AnnotationFormatError(\"Malformed method on an annotation type\");\n/* */ }", "title": "" }, { "docid": "0d5b60a63aad4e447b8dafac08174ece", "score": "0.5581", "text": "public boolean requiresArgument() {\r\n return true; // ONLY override this\r\n // method for the classes that return false\r\n }", "title": "" }, { "docid": "a511cb2a30533ddc557a8b7066d4c1cf", "score": "0.5567987", "text": "@ASTNodeAnnotation.Attribute(kind=ASTNodeAnnotation.Kind.SYN)\n @ASTNodeAnnotation.Source(aspect=\"MethodSignature15\", declaredAt=\"C:\\\\Develop\\\\Diplom\\\\git_repo\\\\measure-extractor\\\\extendj\\\\java5\\\\frontend\\\\MethodSignature.jrag:390\")\n public boolean potentiallyApplicable(MethodDecl m) {\n {\n if (!m.name().equals(name())) {\n return false;\n }\n if (!m.accessibleFrom(hostType())) {\n return false;\n }\n if (!m.isVariableArity()) {\n if (arity() != m.arity()) {\n return false;\n }\n for (int i = 0; i < getNumArg(); i++) {\n if (!getArg(i).potentiallyCompatible(m.getParameter(i).type(), m)) {\n return false;\n }\n }\n }\n if (m.isVariableArity()) {\n if (!(arity() >= m.arity() - 1)) {\n return false;\n }\n for (int i = 0; i < m.arity() - 2; i++) {\n if (!getArg(i).potentiallyCompatible(m.getParameter(i).type(), m)) {\n return false;\n }\n }\n TypeDecl varArgType = m.getParameter(m.arity() - 1).type();\n if (arity() == m.arity()) {\n if (!getArg(arity() - 1).potentiallyCompatible(varArgType, m)\n && !getArg(arity() - 1).potentiallyCompatible(varArgType.componentType(), m)) {\n return false;\n }\n } else if (arity() > m.arity()) {\n for (int i = m.arity() - 1; i < arity(); i++) {\n if (!getArg(i).potentiallyCompatible(varArgType.componentType(), m)) {\n return false;\n }\n }\n }\n }\n \n if (m.isGeneric()) {\n GenericMethodDecl gm = m.genericDecl();\n ArrayList<TypeDecl> typeArguments = inferTypeArguments(\n gm.type(),\n gm.getParameterList(),\n getArgList(),\n gm.getTypeParameterList());\n if (!typeArguments.isEmpty()) {\n if (gm.getNumTypeParameter() != typeArguments.size()) {\n return false;\n }\n ParMethodDecl parMethod = gm.lookupParMethodDecl(typeArguments);\n for (int i = 0; i < gm.getNumTypeParameter(); i++) {\n if (!((TypeDecl) typeArguments.get(i)).withinBounds(parMethod.getTypeParameter(i))) {\n return false;\n }\n }\n }\n }\n \n return true;\n }\n }", "title": "" }, { "docid": "2ee0a45b7f9c8713af273df1232db566", "score": "0.55596036", "text": "private boolean hasArgs() {\n return this.nArgs > 0;\n }", "title": "" }, { "docid": "09107cc0366bbab36f1df8a6148e7ce9", "score": "0.5540153", "text": "MethodArg createMethodArg();", "title": "" }, { "docid": "83e94f2554d6816fb3876c3f40911eca", "score": "0.5531707", "text": "@Override\n public boolean validateCommand(Command command) {\n List<String> parameters = command.getParameters();\n return parameters.size()==1 && parameters.get(0).length()>=1;\n }", "title": "" }, { "docid": "590bec18401fbfcd197723f957ec9cae", "score": "0.55277187", "text": "@Override\n\tpublic boolean hasProperParams(String[] params) \n {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "0502e17226ba7e78672accc4f002f167", "score": "0.55256456", "text": "static void type_match(String arg_name, String arg_type, Connector.Argument arg) {\n boolean fail = false;\n if (arg_type.equals(\"Connector.StringArgument\")) {\n if (!(arg instanceof Connector.StringArgument)) {\n fail = true;\n }\n }\n if (arg_type.equals(\"Connector.IntegerArgument\")) {\n if (!(arg instanceof Connector.IntegerArgument)) {\n fail = true;\n }\n }\n if (arg_type.equals(\"Connector.BooleanArgument\")) {\n if (!(arg instanceof Connector.BooleanArgument)) {\n fail = true;\n }\n }\n if (arg_type.equals(\"Connector.SelectedArgument\")) {\n if (!(arg instanceof Connector.IntegerArgument)) {\n fail = true;\n }\n }\n if (fail) {\n fail(arg_name + \" is of type: \" + arg.getClass() + \", expected: \"\n + arg_type);\n }\n }", "title": "" }, { "docid": "f9ddce90b148db44a066144e1f9c74e7", "score": "0.55251586", "text": "@Override\n\tpublic boolean requiresArgument() {\n\treturn false;\n\t}", "title": "" }, { "docid": "b3a50f6e2f162a53c7216cb163351b7b", "score": "0.5524833", "text": "private void validateFields() throws IllegalArgumentException {\n }", "title": "" }, { "docid": "68cd58709c0604a3935f91dbb0ec41fa", "score": "0.5524789", "text": "static boolean isVarArgs(Method m) {\n return IS_VARARGS.isVarArgs(m);\n }", "title": "" }, { "docid": "ff1d4c4062d2efde635a01ad2080ebb4", "score": "0.5516652", "text": "protected void checkArguments(String processId, String mandatorId, String groupId,\r\n\t\t\tString artifactId) {\r\n\t\t\r\n\t\tif( ! patProcess.matcher(processId).matches())\r\n\t\t\tthrow new IllegalArgumentException(\"The process doesn't match (\"+processId+\").\");\r\n\t\tif( ! patMandator.matcher(mandatorId).matches())\r\n\t\t\tthrow new IllegalArgumentException(\"The mandator doesn't match (\"+mandatorId+\").\");\r\n\t\tif( ! patGroup.matcher(groupId).matches())\r\n\t\t\tthrow new IllegalArgumentException(\"The group doesn't match (\"+groupId+\").\");\r\n\t\tif( ! patArtifact.matcher(artifactId).matches())\r\n\t\t\tthrow new IllegalArgumentException(\"The artifact doesn't match (\"+artifactId+\").\");\r\n\t}", "title": "" }, { "docid": "0b94faa19f5e82762743e91f7c7ffcbc", "score": "0.5514507", "text": "@Test(expected = RuntimeException.class)\n public void argMismatch() {\n new RandScale(10, 11, new Random());\n }", "title": "" }, { "docid": "41355d39925fcae41d8b698fdc930687", "score": "0.55129284", "text": "@Test\n\t@TestForIssue(jiraKey = \"HV-890\")\n\tpublic void canValidateMethodWithSameSignatureAsPrivateMethodInSuperClass() throws Exception {\n\t\tSet<? extends ConstraintViolation<?>> violations = executableValidator.validateParameters(\n\t\t\t\tnew Mammal(),\n\t\t\t\tMammal.class.getDeclaredMethod( \"eat\", String.class ),\n\t\t\t\tnew Object[] { null }\n\t\t);\n\n\t\tassertThat( violations ).containsOnlyViolations(\n\t\t\t\tviolationOf( NotNull.class )\n\t\t);\n\n\t\t// Public method in the sub-class; same signature but *not* overriding\n\t\tviolations = executableValidator.validateParameters(\n\t\t\t\tnew GiantPanda(),\n\t\t\t\tGiantPanda.class.getMethod( \"eat\", String.class ),\n\t\t\t\tnew Object[] { \"fo\" }\n\t\t);\n\n\t\tassertThat( violations ).containsOnlyViolations(\n\t\t\t\tviolationOf( Size.class )\n\t\t);\n\t}", "title": "" }, { "docid": "ef37edf59028a4a4a0aae81bc5ae0b6b", "score": "0.5505673", "text": "private void scanMethodParameters() {\n\t\tfor (int i = 0; i < method.getNumberOfParameters() ; i++) {\n\n\t\t\tint paramIndex = method.isStatic()?i:(i+1);\n\n\t\t\tfindOrCreateInstance(method, paramIndex);\n\t\t}\n\t}", "title": "" }, { "docid": "76370d3220c267a3884c3bb76a065a90", "score": "0.5504039", "text": "protected void verifyParameters() throws MojoExecutionException {\n if (database == null) {\n throw new MojoExecutionException(\"<database> element is missing in configuration.\");\n }\n database.verifyParameters();\n if (args == null) {\n throw new MojoExecutionException(\"<args> element is missing in configuration.\");\n }\n if (args.isEmpty()) {\n throw new MojoExecutionException(\"<args> may not be empty.\");\n }\n for (String arg : args) {\n if (arg.contains(\" \")) {\n throw new MojoExecutionException(\"Argument '\" + arg\n + \"' contained whitespace, not allowed! Please put every argument in a single <param> element.\");\n }\n }\n if (useAllSqlDependencies) {\n if (sqlArtifacts != null && !sqlArtifacts.isEmpty()) {\n throw new MojoExecutionException(\"If useAllSqlDependencies=true, you may not specify elements in <sqlArtifacts>.\");\n }\n } else {\n if (sqlArtifacts == null || sqlArtifacts.isEmpty()) {\n throw new MojoExecutionException(\"If useAllSqlDependencies=false, you must specify elements in <sqlArtifacts>.\");\n }\n }\n }", "title": "" }, { "docid": "112eb9f8481d04345bb66ce31d9d1447", "score": "0.5501524", "text": "@Nullable\n\tprivate SpelNodeImpl[] maybeEatMethodArgs() {\n\t\tif (!peekToken(TokenKind.LPAREN)) {\n\t\t\treturn null;\n\t\t}\n\t\tList<SpelNodeImpl> args = new ArrayList<>();\n\t\tconsumeArguments(args);\n\t\teatToken(TokenKind.RPAREN);\n\t\treturn args.toArray(new SpelNodeImpl[0]);\n\t}", "title": "" }, { "docid": "340c69b651a429b991bff70afa7699b6", "score": "0.54981166", "text": "private static void validateArguments(String[] args) throws IllegalArgumentException {\n // Check if enough arguments were provided. input and output file is required\n if (args.length < 3)\n throw new IllegalArgumentException(CLI_USAGE);\n }", "title": "" }, { "docid": "b789b0f6b335b8d0e54d351071c119c2", "score": "0.54882085", "text": "@Test\n public void testWrongPredicateTypeLiteral() throws Exception {\n @Timeout(duration = 1000, timeUnit = TimeUnit.SECONDS)\n @SkipEncoding('/')\n class WrongValidator {\n @SuppressWarnings(\"unused\")\n @POST\n @ParamValidators( { AllLowerCaseValidator.class })\n public void method(@PathParam(\"param1\") Integer param1) {\n }\n }\n WrongValidator validator = new WrongValidator();\n Method method = validator.getClass().getMethod(\"method\", Integer.class);\n\n try {\n new InputParamValidator(injector).validateMethodParametersOrThrow(method, 55);\n throw new TestException(\"ClassCastException expected, but wasn't thrown\");\n } catch (ClassCastException e) {\n // supposed to happen - continue\n }\n }", "title": "" }, { "docid": "9ae43b7902dd766718aec51247b90e25", "score": "0.5486803", "text": "boolean isSetArgs0();", "title": "" }, { "docid": "280651c6528be7bc871679b80053e0d9", "score": "0.5450985", "text": "boolean isParametrosValidos();", "title": "" }, { "docid": "4ed65900a8da4bd220fac24608e247b4", "score": "0.5450905", "text": "@Test\n public void testWrongTypedArgumentsFunction() {\n try {\n compileProgram(getURL(files[16]), files[17]);\n } catch (CompileException e) {\n String error = e.getMessage().substring(89);\n String shouldBe = new String(\"Argument in call expression add(true, 2) should be of type int not bool\");\n assertEquals(error, shouldBe);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "4ce59c7ebb4c97ba81402d7288c71129", "score": "0.5448254", "text": "boolean getArguments();", "title": "" }, { "docid": "1949766f5cc0020b4dffef648e470ba7", "score": "0.54177946", "text": "@SuppressWarnings(\"deprecation\")\n private boolean isControllerMethodSignatureValid(Method method)\n \t{\n \t\tif (!Modifier.isPublic(method.getModifiers()))\n \t\t{\n \t\t\treturn false;\n \t\t}\n \t\t\n \t\tClass<?>[] parameters = method.getParameterTypes();\n \t\tif (parameters != null && parameters.length != 0 && parameters.length != 1)\n \t\t{\n \t\t\treturn false;\n \t\t}\n \t\tif (parameters != null && parameters.length == 1)\n \t\t{\n \t\t\tif (!GwtEvent.class.isAssignableFrom(parameters[0]) && !CruxEvent.class.isAssignableFrom(parameters[0]))\n \t\t\t{\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\t\n \t\tif (method.getDeclaringClass().equals(Object.class))\n \t\t{\n \t\t\treturn false;\n \t\t}\n \t\t\n \t\tif (method.getAnnotation(Expose.class) == null && method.getAnnotation(br.com.sysmap.crux.core.client.controller.ExposeOutOfModule.class) == null)\n \t\t{\n \t\t\treturn false;\n \t\t}\n \t\t\n \t\treturn true;\n \t}", "title": "" }, { "docid": "e6fcb9736895a026434aaee850cbc263", "score": "0.54140997", "text": "static void checkArgument(boolean condition)\n {\n if(!condition)\n throw new IllegalArgumentException();\n }", "title": "" }, { "docid": "dcee60ad0f663be00d0fd53b6fa80b80", "score": "0.54094905", "text": "private boolean validateArguments(String[] arg) {\r\n // Fecha:\r\n arg[1] = arg[1].replace(\"/\", \"-\");\r\n String[] date = arg[1].split(\"-\");\r\n if (date.length != 3) {\r\n return false;\r\n }\r\n try {\r\n int day = Integer.parseInt(date[0]);\r\n int month = Integer.parseInt(date[1]);\r\n int year = Integer.parseInt(date[2]);\r\n if (day < 1 || day > 31 || month < 1 || month > 12 || year < 2019) {\r\n return false;\r\n }\r\n } catch (Exception e) {\r\n return false;\r\n }\r\n //Hora:\r\n String[] time = arg[2].split(\":\");\r\n if (time.length != 2) {\r\n return false;\r\n }\r\n try {\r\n int hour = Integer.parseInt(time[0]);\r\n int min = Integer.parseInt(time[1]);\r\n if (hour < 0 || hour > 23 || min < 0 || min > 59) {\r\n return false;\r\n }\r\n } catch (Exception e) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "42d5c45aee03d698e420b6b704132ede", "score": "0.54075027", "text": "@Override\n public boolean isSame(DiffCapable<?, ?> other) {\n if (!(other instanceof Method)) {\n return false;\n }\n Method that = (Method)other;\n return getName().equals(that.getName()) && getType().equals(that.getType()) && Iterators.equals(argTypes, that.argTypes);\n }", "title": "" }, { "docid": "478c7974152b92a7b1630333c63a6f31", "score": "0.540594", "text": "@Override\n protected boolean hasVariableArgs() {\n return requiresValue;\n }", "title": "" }, { "docid": "c97f04521bbe206ac63cbf1f59751bf0", "score": "0.5401001", "text": "private void analyzeArgs() throws IllegalArgumentException {\n for (int argn = 0; argn < this.args.length; argn++) {\n String arg = this.args[argn];\n\n try {\n if (arg.equals(\"-port\")) {\n this.portNumber = Integer.valueOf(this.args[++argn]).intValue();\n continue;\n }\n\n if (arg.equals(\"-host\")) {\n this.host = this.args[++argn];\n continue;\n }\n\n if (arg.equals(\"-cp\")) {\n this.classpath = this.args[++argn];\n continue;\n }\n\n if (arg.equals(\"--help\") || arg.equals(\"-help\") || arg.equals(\"-h\") || arg.equals(\"-?\")) {\n usage();\n return;\n }\n\n // Add argument to the application arguments\n this.clientArgs.add(arg);\n } catch (ArrayIndexOutOfBoundsException e) {\n // The next argument is not in the array\n throw new IllegalArgumentException(\"A required parameter was missing after the argument '\" + arg + \"'.\", e);\n }\n }\n\n }", "title": "" }, { "docid": "2f6ce7a9a98c2b353d78eaaf4638e63a", "score": "0.5389762", "text": "public void testGetDescriptorsArguments(){\n try{\n PropertyUtils.getPropertyDescriptors(null);\n fail(\"Should throw IllegalArgumentException\");\n }catch (final IllegalArgumentException e){\n // Expected response\n }catch (final Throwable t){\n fail(\"Threw \" + t + \" instead of IllegalArgumentException\");\n }\n\n }", "title": "" }, { "docid": "6ee1b5c1c1c97b4a3dd04fb0a228f169", "score": "0.53862095", "text": "static void check(Object[] desc, Connector connector) {\n String name = (String)desc[0];\n String transport_name = (String)desc[1];\n\n // if the transport name is \"null\" it means its transport may\n // vary (eg: SunCommandLineLauncher will choose shared memory\n // on Windows and dt_socket on Solaris). In that case we can't\n // check the transport name.\n //\n if (transport_name != null) {\n System.out.println(\"Checking transpot name\");\n if (!(transport_name.equals(connector.transport().name()))) {\n fail(\"transport().name() returns: \" +\n connector.transport().name() + \", expected: \" + transport_name);\n }\n }\n\n // check that all the old arguments still exist\n for (int i=2; i<desc.length; i++) {\n String[] args = (String[])desc[i];\n String arg_name = args[0];\n String arg_type = args[1];\n String arg_mandatory = args[2];\n\n System.out.println(\"Checking argument: \" + arg_name);\n\n // check that the arg still exists\n Map defaultArgs = connector.defaultArguments();\n Object value = defaultArgs.get(arg_name);\n if (value == null) {\n fail(name + \" is missing Connector.Argument: \" + arg_name);\n continue;\n }\n\n // next check that the type matches\n Connector.Argument connector_arg = (Connector.Argument)value;\n\n // check that the argument type hasn't changed\n type_match(arg_name, arg_type, connector_arg);\n\n // check that an optional argument has been made mandatory\n if (arg_mandatory.equals(\"false\")) {\n if (connector_arg.mustSpecify()) {\n fail(arg_name + \" is now mandatory\");\n }\n }\n }\n\n // next we check for new arguments that are mandatory but\n // have no default value\n\n System.out.println(\"Checking for new arguments\");\n Map dfltArgs = connector.defaultArguments();\n Iterator iter = dfltArgs.keySet().iterator();\n while (iter.hasNext()) {\n String arg_name = (String)iter.next();\n\n // see if the argument is new\n boolean found = false;\n for (int j=2; j<desc.length; j++) {\n String[] args = (String[])desc[j];\n if (args[0].equals(arg_name)) {\n found = true;\n break;\n }\n }\n\n if (!found) {\n Connector.Argument connector_arg =\n (Connector.Argument)dfltArgs.get(arg_name);\n\n if (connector_arg.mustSpecify()) {\n String value = connector_arg.value();\n if (value.equals(\"\")) {\n value = null;\n }\n if (value == null) {\n fail(\"New Connector.Argument \\\"\" + connector_arg.name() +\n \"\\\" added - argument is mandatory\");\n }\n }\n }\n }\n }", "title": "" }, { "docid": "b36b77949c0142e7f420b3fa270af069", "score": "0.53780574", "text": "private void _validateArgs (Class [] classes, WizardResultProducer finish)\n {\n \n if (classes == null)\n {\n throw new RuntimeException (\"Class array may not be null\");\n }\n if ( new HashSet(Arrays.asList(classes)).size() != classes.length)\n {\n throw new RuntimeException (\"Duplicate entries in class array\");\n }\n if (finish == null)\n {\n throw new RuntimeException (\"WizardResultProducer may not be null\");\n }\n }", "title": "" }, { "docid": "e68445290836f924d6f169a5c96c9315", "score": "0.5362016", "text": "private void validateCommandLineArguments() {\n if (doVerboseOutput() && doQuietOutput()) {\n errorAndExit(\"Verbose and quiet output are mutually exclusive\");\n }\n }", "title": "" }, { "docid": "669d444c328ea89e36de85954257cc4b", "score": "0.53615934", "text": "MemberArguments createMemberArguments();", "title": "" }, { "docid": "6a50a343ecc9e010fc4959d157ceb9e5", "score": "0.53527385", "text": "protected boolean isNullArgumentConstructorSupported() {\n return true;\n }", "title": "" }, { "docid": "0eaba81a5e8e97f35798e304c7208c81", "score": "0.53480947", "text": "private static void validateArgs (String[] args) throws IllegalArgumentException {\n\n if (args.length > 3) {\n throw new IllegalArgumentException(\"Too much arguments\");\n }\n\n if (args.length < 3) {\n throw new IllegalArgumentException(\"Too little arguments\");\n }\n\n try {\n a = Double.parseDouble(args[0]);\n b = Double.parseDouble(args[1]);\n c = Double.parseDouble(args[2]);\n } catch (IllegalArgumentException ex) {\n throw new IllegalArgumentException (ILLEGAL_ARGUMENTS);\n }\n }", "title": "" }, { "docid": "3e1f0bec0d16e5b6eceb9d7c473f3d1c", "score": "0.53407896", "text": "protected abstract void checkIfSupported(Method method);", "title": "" }, { "docid": "bf18a021d520f6d6464ae6f01dcce277", "score": "0.5331837", "text": "public static void ensureCorrectArgs(\n final FunctionName functionName, final Object[] args, final Class<?>... argTypes\n ) {\n if (args == null) {\n throw new KsqlFunctionException(\"Null argument list for \" + functionName.name() + \".\");\n }\n\n if (args.length != argTypes.length) {\n throw new KsqlFunctionException(\"Incorrect arguments for \" + functionName.name() + \".\");\n }\n\n for (int i = 0; i < argTypes.length; i++) {\n if (args[i] == null) {\n continue;\n }\n\n if (!argTypes[i].isAssignableFrom(args[i].getClass())) {\n throw new KsqlFunctionException(\n String.format(\n \"Incorrect arguments type for %s. \"\n + \"Expected %s for arg number %d but found %s.\",\n functionName.name(),\n argTypes[i].getCanonicalName(),\n i,\n args[i].getClass().getCanonicalName()\n ));\n }\n }\n }", "title": "" }, { "docid": "b2b0f45c8fb5797b6709c636942549ff", "score": "0.53279024", "text": "protected boolean isCollectionArgumentConstructorSupported() {\n return true;\n }", "title": "" }, { "docid": "0ae2a2a3019d9d45d5468fc1d20e92cb", "score": "0.5327556", "text": "static void validateParameter(Class<?> clazz) {\n if (!clazz.isInterface()) {\n throwParameterValidationError(clazz, \"It must be an interface.\");\n }\n\n Map<String, Class<?>> setters = new HashMap<String, Class<?>>();\n Map<String, Class<?>> getters = new HashMap<String, Class<?>>();\n\n for (Method method : clazz.getDeclaredMethods()) {\n if (isGetter(method)) {\n String property = getPropertyName(method.getName());\n if (getters.containsKey(property)) {\n throwParameterValidationError(clazz, String.format(\"More than one getter for property %s was found.\", property));\n }\n getters.put(property, method.getReturnType());\n } else if (isSetter(method)) {\n String property = getPropertyName(method.getName());\n if (setters.containsKey(property)) {\n throwParameterValidationError(clazz, String.format(\"More than one setter for property %s was found.\", property));\n }\n setters.put(property, method.getParameterTypes()[0]);\n } else {\n throwParameterValidationError(clazz, String.format(\"Method %s is neither a setter nor a getter.\", method.getName()));\n }\n }\n\n if (setters.size() != getters.size()) {\n throwParameterValidationError(clazz, \"It contains a different number of getters and setters.\");\n }\n\n for (String property : setters.keySet()) {\n if (!getters.containsKey(property)) {\n throwParameterValidationError(clazz, String.format(\"A setter for property %s was found but no getter.\", property));\n } else if (!setters.get(property).equals(getters.get(property))) {\n throwParameterValidationError(clazz, String.format(\"Setter and getter for property %s have non corresponding types.\", property));\n }\n }\n }", "title": "" }, { "docid": "b8f3462df41bc3697c60822f1c140ae4", "score": "0.53006345", "text": "static boolean hasValueOfMethodOrConstructor(Class<?> clazz, Class<?> sourceParameterType)\r\n/* 58: */ {\r\n/* 59:81 */ return (getValueOfMethodOn(clazz, sourceParameterType) != null) || (getConstructor(clazz, sourceParameterType) != null);\r\n/* 60: */ }", "title": "" }, { "docid": "5c2f9dfe33d88add63b3b700e83ed3ed", "score": "0.5298291", "text": "public void testGetSimpleArguments(){\n\n try{\n PropertyUtils.getSimpleProperty(null, \"stringProperty\");\n fail(\"Should throw IllegalArgumentException 1\");\n }catch (final IllegalArgumentException e){\n // Expected response\n }catch (final Throwable t){\n fail(\"Threw \" + t + \" instead of IllegalArgumentException 1\");\n }\n\n try{\n PropertyUtils.getSimpleProperty(bean, null);\n fail(\"Should throw IllegalArgumentException 2\");\n }catch (final IllegalArgumentException e){\n // Expected response\n }catch (final Throwable t){\n fail(\"Threw \" + t + \" instead of IllegalArgumentException 2\");\n }\n\n }", "title": "" }, { "docid": "907bdf2e91aaed7765abe5ad53dbc789", "score": "0.52835464", "text": "boolean hasParams();", "title": "" }, { "docid": "907bdf2e91aaed7765abe5ad53dbc789", "score": "0.52835464", "text": "boolean hasParams();", "title": "" }, { "docid": "907bdf2e91aaed7765abe5ad53dbc789", "score": "0.52835464", "text": "boolean hasParams();", "title": "" }, { "docid": "962d4643ed5d105ffd3b1cbb95533dce", "score": "0.5274246", "text": "@Override\n\tpublic void validate(Object... input) throws BaseException {\n\n\t}", "title": "" }, { "docid": "c0211af4fddb67e36e26e61e8e117435", "score": "0.52602357", "text": "abstract boolean isParameter();", "title": "" }, { "docid": "e77387a0318b9dcb2981ba651a5baf3e", "score": "0.5249963", "text": "private static boolean doParametersMatch(final Types typeUtils,\n final Elements elementUtils,\n final ExecutableElement e,\n final String[] requiredParameterTypes) {\n if (e.getParameters().size() != requiredParameterTypes.length) {\n return false;\n }\n List<TypeMirror> requiredTypes = new ArrayList<TypeMirror>();\n for (String parameterType : requiredParameterTypes) {\n requiredTypes.add(elementUtils.getTypeElement(parameterType).asType());\n }\n for (int i = 0; i < requiredTypes.size(); i++) {\n final TypeMirror actualType = e.getParameters().get(i).asType();\n final TypeMirror requiredType = requiredTypes.get(i);\n if (!typeUtils.isAssignable(actualType,\n requiredType)) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "4c81da2af3b4e2c4a795732eb12dbe84", "score": "0.5248619", "text": "private boolean isValidGetter(final Method getterCandidate) {\n \t\ttry {\n \t\t\tfinal Type returnType = getterCandidate.getGenericReturnType();\n \t\t\tif (returnType == Void.class)\n \t\t\t\treturn false;\n \t\t} catch(final Exception e) {\n \t\t\treturn false;\n \t\t}\n \n \t\t// Make sure we're not taking any arguments:\n \t\treturn getterCandidate.getParameterTypes().length == 0;\n \t}", "title": "" }, { "docid": "34c4ee0cc852dbe9450e27a28cc906ef", "score": "0.52427375", "text": "public abstract boolean hasTypeParameters();", "title": "" }, { "docid": "0e4c0739a47de3f01c0c7164fdb64198", "score": "0.52417743", "text": "boolean checkEmptyArgs(String [] args);", "title": "" }, { "docid": "26c32ca489e2e3347028f72887d3aa12", "score": "0.52341974", "text": "private void checkInput(SigmaCommonInput in) {\n\t\tif (!(in instanceof SigmaANDCommonInput)){\n\t\t\tthrow new IllegalArgumentException(\"the given input must be an instance of SigmaANDCommonInput\");\n\t\t}\n\t\tSigmaANDCommonInput input = (SigmaANDCommonInput) in;\n\t\tint inputLen = input.getInputs().size();\n\t\t\n\t\t// If number of inputs is not equal to number of verifiers, throw exception.\n\t\tif (inputLen != len) {\n\t\t\tthrow new IllegalArgumentException(\"number of inputs is different from number of underlying verifiers.\");\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "5d9b131122c3d614a64a6c1ab130d9bf", "score": "0.5233627", "text": "private void checkIllegalArgument(T data) {\n if (data == null) {\n throw new IllegalArgumentException(\"Illegal Argument Exception\");\n }\n }", "title": "" }, { "docid": "bbdc50ec5718eb208a9d04cbae181a6c", "score": "0.52287215", "text": "@Test\n @DisplayName(\"Test parameterExists\")\n public void testParameterExists() {\n\n String methodClassFQN = PACKAGE_FQN + \".MethodsParams\";\n SymbolTable methodsSymbolTable = TypeChecker.createSymbolTable(\n TypeChecker.parse(methodsParams));\n\n assertTrue(methodsSymbolTable.parameterExists(methodClassFQN, \"hello\", \"name\"));\n assertFalse(methodsSymbolTable.parameterExists(methodClassFQN, \"hello\", \"names\"));\n }", "title": "" } ]
510a6137ad395f46d6f5b84c6502c964
Shuffles the given array using the FischerYates algorithm.
[ { "docid": "acbbd232e0f7bf94221681472bf46f83", "score": "0.56260765", "text": "private static void shuffle(int[] a, int p, int r) {\n Random random = new Random();\n for (int i = p; i < r; i++) {\n int j = random.nextInt(r - i) + i;\n int temp = a[j];\n a[j] = a[i];\n a[i] = temp;\n }\n }", "title": "" } ]
[ { "docid": "cceb64aa83b98ddd2292cbb5cbe005f7", "score": "0.70112056", "text": "private static void shuffleArray(int[] array)\n{\n int index;\n Random random = new Random();\n for (int i = array.length - 1; i > 0; i--)\n {\n index = random.nextInt(i + 1);\n if (index != i)\n {\n array[index] ^= array[i];\n array[i] ^= array[index];\n array[index] ^= array[i];\n }\n }\n}", "title": "" }, { "docid": "faf5fe65d8647a120f63db36a1da73b7", "score": "0.6950982", "text": "private void shuffleArray(int[] array)\n\t{\n\t int index, temp;\n\t for (int i = array.length - 1; i > 0; i--)\n\t {\n\t index = generator.nextInt(i + 1);\n\t temp = array[index];\n\t array[index] = array[i];\n\t array[i] = temp;\n\t }\n\t}", "title": "" }, { "docid": "b3b308a9e8e48933db4609d400bdbee7", "score": "0.68890727", "text": "public void shuffle(int[] array){\n Random random= new Random();\n for(int i = 0; i < array.length; i++){\n int a = random.nextInt(array.length);\n int b = random.nextInt(array.length);\n swap(array, a, b);\n }\n }", "title": "" }, { "docid": "4f38107993ed9372d8ba5b19c17a9c01", "score": "0.6798078", "text": "private void makeShuffled()\n {\n for(int i = 0; i < 16; i++)\n {\n shuffleOrder.add(i);\n }\n Collections.shuffle(shuffleOrder);\n }", "title": "" }, { "docid": "a14a80d091d22b37b8b1c60f1d8eb836", "score": "0.6751973", "text": "public void shuffle();", "title": "" }, { "docid": "a14a80d091d22b37b8b1c60f1d8eb836", "score": "0.6751973", "text": "public void shuffle();", "title": "" }, { "docid": "4310084ef740b8ae424016d456a5b834", "score": "0.6735237", "text": "public static void randomShuffling() {\r\n \r\n int[][] numbers = writingTo2DArrayExample3();\r\n\r\n for (int i = 0; i < numbers.length; i++) {\r\n for (int j = 0; j < numbers[i].length; j++) {\r\n int i1 = (int) (Math.random() * numbers.length);\r\n int j1 = (int) (Math.random() * numbers[i].length);\r\n int temp = numbers[i][j];\r\n numbers[i][j] = numbers[i1][j1];\r\n numbers[i1][j1] = temp;\r\n }\r\n }\r\n comparingShuffledArrayToOriginalArray(numbers,writingTo2DArrayExample3());\r\n }", "title": "" }, { "docid": "286310060a179dd9baf9cf612a8177a9", "score": "0.6672968", "text": "private static void shuffle(double[] a) {\n int N = a.length;\n for (int i = 0; i < N; i++) {\n int r = i + (int) (Math.random() * (N-i)); // between i and N-1\n exch(a, i, r);\n }\n\t}", "title": "" }, { "docid": "ada90cc4c809cb9cef772b4cf2ba294e", "score": "0.66703624", "text": "void shuffle();", "title": "" }, { "docid": "ada90cc4c809cb9cef772b4cf2ba294e", "score": "0.66703624", "text": "void shuffle();", "title": "" }, { "docid": "758ae19314d08e79831d45c02d3aa9fb", "score": "0.6493118", "text": "public void shuffle(){\r\n\r\n }", "title": "" }, { "docid": "9cfafbd9016b22dfec586f52c1198cef", "score": "0.6488022", "text": "private static void shuffle(Comparable[] a) {\n int N = a.length;\n for (int i = 0; i < N; i++) {\n int r = i + (int) (Math.random() * (N-i)); // between i and N-1\n exch(a, i, r);\n }\n\t}", "title": "" }, { "docid": "ae436c0616c69c8475d1033b0a513da4", "score": "0.6448471", "text": "public static void shuffle( int[] d ) {\n\tint tmp;\n\tint swapPos;\n\tfor( int i = 0; i < d.length; i++ ) {\n\t tmp = d[i];\n\t swapPos = i + (int)( (d.length - i) * Math.random() );\n\t swap( i, swapPos, d );\n\t}\n }", "title": "" }, { "docid": "d2fdd70d0ac6a247301b9d868e646eb9", "score": "0.6442243", "text": "private void shuffleArray(int[] i){\n\t\tint index = i.length;\n\t\t\n\t\twhile (--index > 0){\n\t\t\tint randomIndex = random.nextInt(index+1);\n\t\t\tswapValues(i,index,randomIndex);\n\t\t}\n\t}", "title": "" }, { "docid": "4654c563043148932752ee5cb42a8ef8", "score": "0.64024144", "text": "private void shuffle(Object array[], Random r) {\n for (int i = array.length - 1; i > 0; i--) {\n int index = r.nextInt(i + 1);\n Object temp = array[index];\n array[index] = array[i];\n array[i] = temp;\n }\n }", "title": "" }, { "docid": "a5df4f695193cf095b7cac5af8c5d344", "score": "0.6394071", "text": "public int[] shuffle() {\n int len = array.length;\n Random random = new Random();\n for(int i = 0; i<len ; i++){\n int num = random.nextInt(len);\n int temp = array[i];\n array[i] = array[num];\n array[num] = temp;\n }\n return array;\n }", "title": "" }, { "docid": "1acd89900a8cc83ed2691786b241dabc", "score": "0.6288777", "text": "public int[] shuffle() {\n for(int i = 0; i < arr.length; i++) {\n swap(i, randRange(i, arr.length));\n }\n return arr;\n }", "title": "" }, { "docid": "f803994702ec162740ff0eafb9f3faea", "score": "0.6273674", "text": "public void shuffle()\n {\n final String[] ARROWS = {\"up\",\"down\",\"up\",\"left\",\"right\",\"up\",\"left\"};\n isShuffling = true;\n for(int i = 0; i < 20; i++)\n {\n int random = (int) (Math.random()*7);\n update(ARROWS[random]);\n }\n isShuffling = false;\n }", "title": "" }, { "docid": "edf7fc88e5f5dce99f855c7bbde0bebc", "score": "0.62436616", "text": "static void shuffleArray(String[] ar) {\n\t\tRandom rnd = new Random();\n\t\tfor (int i = ar.length - 1; i > 0; i--) {\n\t\t\tint index = rnd.nextInt(i + 1);\n\t\t\tString a = ar[index];\n\t\t\tar[index] = ar[i];\n\t\t\tar[i] = a;\n\t\t}\n\t}", "title": "" }, { "docid": "28235b584fd48161da737144e4bd91f4", "score": "0.6208782", "text": "public static int[] shuffle2(int[] a){\n\t\tMap<Double, Integer> rMap = new TreeMap<Double, Integer>();\n\t\tRandom r = new Random();\n\t\tfor(int i =0; i< a.length; i++){\n\t\t\trMap.put(r.nextDouble(), i);\n\t\t}\n\t\t\n\t\tint[] b = new int[a.length];\n\t\tCollection<Integer> values = rMap.values();\n\t\t\n\t\tint i=0;\n\t\tfor(Iterator<Integer> it=values.iterator(); it.hasNext();){\n\t\t\tb[i++] = a[it.next()];\n\t\t}\n\t\treturn b;\n\t\t\n\t}", "title": "" }, { "docid": "eef4aa4575ff47a0b202159b06034929", "score": "0.62032324", "text": "public int[] shuffle() {\n int[] res = getShuffle(i);\n i = (i + 1) % count;\n return res;\n }", "title": "" }, { "docid": "07099bfbe2fedfe6f562e6e1a6473875", "score": "0.61714154", "text": "private static void shuffleArray(char[] a) {\n Random random = new Random();\n for (int i = a.length - 1; i > 0; i--) {\n int j = random.nextInt(i + 1);\n char t = a[j];\n a[j] = a[i];\n a[i] = t;\n }\n }", "title": "" }, { "docid": "a3a3e9dd23f0771e926a572d8ab4e830", "score": "0.61671317", "text": "public int[] shuffle() {\n for (int i = 0; i < newArr.length; i++) {\n swap(i, randRange(i, newArr.length));\n }\n return newArr;\n }", "title": "" }, { "docid": "4fe9e55e838b2bba606c0086847418de", "score": "0.6106841", "text": "private int[] shuffleArray(int iterations){\n int random; //an array\r\n int temporal;\r\n for (int i = 0; i < iterations; i++) {\r\n random = i + rng.nextInt(sortedArray.length - i);\r\n temporal = sortedArray[random];\r\n sortedArray[random] = sortedArray[i]; //swap\r\n sortedArray[i] = temporal;\r\n }\r\n return sortedArray;\r\n }", "title": "" }, { "docid": "5f7fbba38ea521880b130f4995d12db4", "score": "0.6089296", "text": "static int[] shuffleArray(int[] ar) {\n Random rnd = new Random();\n for (int i = ar.length - 1; i > 0; i--) {\n int index = rnd.nextInt(i + 1);\n if (i == index) {\n ++i;\n } else {\n int a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }\n return ar;\n }", "title": "" }, { "docid": "8b99324cdad92b09d672e431c402e480", "score": "0.60396093", "text": "public void shuffle()\n {\n Random ran = new Random();\n Card temp;\n\n shuffled = true;\n for (int i = 0; i < TIMES; i++)\n {\n int where = ran.nextInt(super.len); \n temp = super.theHolder[where];\n super.theHolder[where] = super.theHolder[0];\n super.theHolder[0] = temp;\n }\n this.ArrayOfShuffledCards = new Card[52];\n for (int a = 0; a < super.theHolder.length; a++)\n {\n ArrayOfShuffledCards[a] = super.theHolder[a];\n }\n\n }", "title": "" }, { "docid": "99578fe8c7bb5b433da4a298bdbe196b", "score": "0.6035745", "text": "public int[] shuffle() {\n \tList<Integer> a = new ArrayList<Integer>();\n \tfor(int i=0;i<arrays.length;i++) {\n \t\ta.add(arrays[i]);\n \t}\n \tfor(int i=0;i<arrays.length;i++){\n \t\tint number = (int)(Math.random()*(arrays.length-i));\n \t\tarrays[i]=a.get(number);\n \t\ta.remove(number);\n \t}\n \treturn arrays;\n \t\n }", "title": "" }, { "docid": "a606d8d81488b9274f304e2fbfe2b77e", "score": "0.6019724", "text": "public static void main(String[] args) {\n\t\tint[] a = {1,2,3,4};\n\t\tShuffleanArray s = new ShuffleanArray(a);\n\t\ts.shuffle();\n\t\ts.reset();\n\t\tfor(int k:s.arrays) {\n\t\t\tSystem.out.println(k);\n\t\t}\n\t}", "title": "" }, { "docid": "7369a8e6a5992d4a32ff0154bb8062fa", "score": "0.6018125", "text": "void toggleShuffle();", "title": "" }, { "docid": "07f30472d6ce29da3287da82ad15b627", "score": "0.5998425", "text": "@Test\n public void testShuffle() {\n logger.info(\"shuffle\");\n \n Integer[] result = {1,2,3,4,5};\n Integer[] expResult = {2,3,4,5,1};\n PHPMethods.shuffle(result);\n assertArrayEquals(expResult, result);\n }", "title": "" }, { "docid": "5836066bea8d2ffc810766788bb45cb9", "score": "0.5989521", "text": "public int[] shuffle() {\n int[] a = nums.clone();\n for(int i=0;i<a.length;i++){\n int j = random.nextInt(i+1);\n swap(a, i, j);\n }\n return a;\n }", "title": "" }, { "docid": "4549d5e95a77bbdab6eb00773262313e", "score": "0.59763235", "text": "public int[] shuffle() {\n\t\tRandom random = new Random();\n\t\tint[] array = origin.clone();\n\t\tfor (int i = 0; i < origin.length; i++) {\n\t\t\tint j = random.nextInt(origin.length - i) + i; // find a num between i and length - 1\n\t\t\tswap(array, i, j);\n\t\t}\n\t\treturn array;\n\t}", "title": "" }, { "docid": "de6fdc335f8195b0e21a0209f8aa6874", "score": "0.59751004", "text": "public void shuffleArray(List ar)\n {\n Random rnd = ThreadLocalRandom.current();\n for (int i = ar.size() - 1; i > 0; i--)\n {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n Object a = ar.get(index);\n ar.set(index,ar.get(i));\n ar.set(i,a);\n }\n }", "title": "" }, { "docid": "9c3acb688982882b6313db18fca43271", "score": "0.5973423", "text": "public int[] shuffle() {\n int[] result = new int[nums.length];\n int[] isUse = new int[nums.length];\n Random random = new Random(System.nanoTime());\n for (int i = 0; i < nums.length; i++) {\n int site = random.nextInt(nums.length);\n while (isUse[site] != 0) {\n site = random.nextInt(nums.length);\n }\n isUse[site] = -1;\n result[i] = nums[site];\n }\n return result;\n }", "title": "" }, { "docid": "ca536994f10b7f2ad3bcd7d02aded0f2", "score": "0.596595", "text": "public void shuffle()\n {\n Random r = new Random();\n for(int i = 0 ; i < 1000 ; ++i)\n {\n int x = r.nextInt(52);\n int y = r.nextInt(52);\n String temp = rank[x];\n rank[x] = rank[y];\n rank[y] = temp;\n temp = suit[x];\n suit[x] = suit[y];\n suit[y] = temp;\n }\n top = 0;\n }", "title": "" }, { "docid": "369d8cbede708999358cba12970eb059", "score": "0.59549415", "text": "public void shuffle() {\n for (int i = setOfCards.numCards()-1; i >= 0; i--){\n int rand = (int)(Math.random()*(i+1));\n T temp = setOfCards.getCard(i);\n setOfCards.setCard(i, setOfCards.getCard(rand));\n setOfCards.setCard(rand, temp);\n }\n }", "title": "" }, { "docid": "97c760c04119523a094bb3d3a87af7f5", "score": "0.59530383", "text": "public static int[] Shuffle(int []a) {\n\t int ranIndex=0; \n\t Random random = new Random(); \n\t for (int i = 0; i <a.length; i++) { \n\t ranIndex = random.nextInt(a.length); \n\t swap(a, ranIndex, i); \n\t } \n\t return a; \n\t }", "title": "" }, { "docid": "aed80e1b0fafc2f8b7a4106af4dc9221", "score": "0.59466594", "text": "public void shuffle()\n\t{\n\t\tRandom rand = new Random();\n\t\t\n\t\tfor (int i = 0; i < numCards; i++)\n\t\t{\n\t\t\tint val = rand.nextInt(numCards);\n\t\t\tCard tempCard = deckOfCards.get(i);\n\t\t\tdeckOfCards.set(i, deckOfCards.get(val));\n\t\t\tdeckOfCards.set(val, tempCard);\n\t\t}\n\t}", "title": "" }, { "docid": "bb3d3cc0c1f528be0f71f0905c779bde", "score": "0.5930233", "text": "public void shuffle()\n\t{\n\t\tcards.clear();\n\t\tfor (Suit s : Suit.values())\n\t\t{\n\t\t\tfor (Face f : Face.values())\n\t\t\t{\n\t\t\t\tcards.add(new Card(s,f));\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(cards);\n\t}", "title": "" }, { "docid": "893e3887ced487dd6b7262af66726bca", "score": "0.59285617", "text": "public void shuffle() {\n for ( int i = deck.length-1; i > 0; i-- ) {\n int rand = (int)(Math.random()*(i+1));\n Card temp = deck[i];\n deck[i] = deck[rand];\n deck[rand] = temp;\n }\n cardsUsed = 0;\n System.out.println(\"Shuffling...\");\n }", "title": "" }, { "docid": "eae78def79e8da904254faecc9d76e91", "score": "0.59170747", "text": "public int[] shuffle() {\n if (this.seed == null) {\n this.seed = new Random();\n }\n for (int i = this.random.length - 1; i > 1; i--) {\n int tempValue = this.random[i];\n int randomIndex = this.seed.nextInt(i + 1);\n this.random[i] = this.random[randomIndex];\n this.random[randomIndex] = tempValue;\n }\n return this.random;\n }", "title": "" }, { "docid": "d1f4e0bec712d5b80b07895e9293e49d", "score": "0.589182", "text": "public int[] shuffle() {\n int[] a = nums.clone();\n for(int i=a.length-1; i>=1 ;i--){\n int j = random.nextInt(i+1); //[0, i+1), if don't want keep original sequence, random [0,i)\n swap(a, i, j);\n }\n return a;\n }", "title": "" }, { "docid": "fc801f056b5a58b69c7dde548e46c851", "score": "0.58917195", "text": "public int[] shuffle() {\n for(int i=shuffle.length-1;i>=0;i--){\n \n int index = (int)((Math.random()*(i+1)) % (i+1));\n int temp = shuffle[index];\n shuffle[index]= shuffle[i];\n shuffle[i] = temp;\n }\n return shuffle;\n }", "title": "" }, { "docid": "847c31fab534b603f385e3b49b76a8f1", "score": "0.58913887", "text": "public void shuffle() {\n Random random = new Random();\n int i, j, temp;\n\n for (i = deck.size() - 1; i > 0; i--) {\n j = random.nextInt(i + 1);\n temp = deck.get(i);\n deck.set(i, deck.get(j));\n deck.set(j, temp);\n }\n }", "title": "" }, { "docid": "495712251f3dda3e1a27578eb5d19489", "score": "0.5872255", "text": "public static void shuffle(Object[] a) {\n }", "title": "" }, { "docid": "86be9509d96ab7dd4fe35118e1d1d7cd", "score": "0.5865469", "text": "public static <T> void shuffleArray(T[] ar)\n {\n Random rnd = new Random();\n for (int i = ar.length - 1; i > 0; i--)\n {\n int index = rnd.nextInt(i + 1);\n // Simple swap\n T a = ar[index];\n ar[index] = ar[i];\n ar[i] = a;\n }\n }", "title": "" }, { "docid": "d3263e117e5dc28ba7b20db3d69af40c", "score": "0.5865038", "text": "public int[] shuffle() {\n if (nums.length <= 1)\n return nums;\n\n int[] res = new int[nums.length];\n res[0] = nums[0];\n for (int i = 1; i < res.length; i++) {\n int j = random.nextInt(i + 1);\n if (i != j) {\n int tmp = res[j];\n res[j] = nums[i];\n res[i] = tmp;\n } else {\n res[i] = nums[i];\n }\n }\n return res;\n }", "title": "" }, { "docid": "a74d1abf470fa604f1fd56acf2e19c93", "score": "0.5859254", "text": "public void shuffle()\n {\n Random randy = new Random();\n for (int i = 0; i < cards.size(); i++)\n {\n int r = i + randy.nextInt(52 - i);\n\n Card temp = cards.get(r);\n cards.set(r, cards.get(i));\n cards.set(i, temp);\n }\n }", "title": "" }, { "docid": "c9fba758bd3507560859db60f84df7b9", "score": "0.58564", "text": "public void jumbler(String[] array) {\n\t\tfor (int i = array.length - 1; i > 0 ; i--) {\n\t\t \tint index = rnd.nextInt(i + 1);\n\t\t \tString a = array[index];\n\t\t \tarray[index] = array[i];\n\t\t \tarray[i] = a;\n\t\t}\n\t}", "title": "" }, { "docid": "d2737bc60f833463f275a82b18355465", "score": "0.58561516", "text": "public static void shuffle(Object[] a) {\n\t\t// as a demo, this generates a random number from 0 to 9\n\t\tint i = StdRandom.uniform(0,10); \n\t\t// implement this\n\t}", "title": "" }, { "docid": "512bebe550a1aed3ee2cabc39e4062f0", "score": "0.5851921", "text": "public void shuffle() {\n\t\tCard tempCard;\n\t\tint i, j;\n\t\tfor (i = 0; i < NUM_CARDS; i++) {\n\t\t\tj = i + randInt(NUM_CARDS - i);\n\t\t\ttempCard = gCards[j];\n\t\t\tgCards[j] = gCards[i];\n\t\t\tgCards[i] = tempCard;\n\t\t}\n\t\tposition = 0;\n\t}", "title": "" }, { "docid": "46a71d288c852a0dad64c4632e214534", "score": "0.58496827", "text": "public void shuffleCards (){\n\t\tint len = flashCards.length;\n\t\tFlashCard current;\n\t\tFlashCard random;\n\t\tint index;\n\t\tRandom generator = new Random();\n\t\tfor (int i=0; i<len; i++){\n\t\t\tindex = generator.nextInt(len);\n\t\t\tcurrent = flashCards[i];\n\t\t\trandom = flashCards[index];\n\t\t\tflashCards[i] = random;\n\t\t\tflashCards[index] = current;\n\t\t}\n\t}", "title": "" }, { "docid": "0db932663db7d270a7e5b3dc21982294", "score": "0.58417815", "text": "private void shuffleTiles() {\r\n\t\tArrayList<Tile> temp = new ArrayList<Tile>();\r\n\t\tfor (int i = 0; i < tileArray.length; i++) {\r\n\t\t\ttemp.add(tileArray[i]);\r\n\t\t}\r\n\t\t\r\n\t\tint index = 0;\r\n\t\twhile (temp.size() > 1) {\r\n\t\t\ttileArray[index++] = temp.remove((int)(Math.random()*temp.size()));\r\n\t\t}\r\n\t\tspareTile = temp.remove(0);\r\n\t}", "title": "" }, { "docid": "2124436b4d970743b5604fdd070fa2dd", "score": "0.5840698", "text": "public int[] shuffle() {\n int pos = tmp.length - 1;\n\n while (pos > 0) {\n int randomIdx = random.nextInt(pos + 1);\n swap(tmp, pos, randomIdx);\n pos--;\n }\n\n return tmp;\n }", "title": "" }, { "docid": "61395080eae725b82a86d2a0b08e12c6", "score": "0.58371806", "text": "public static void randomShuffle(char[] arr) {\n checkArgument(arr != null, \"null 'arr' parameter passed\");\n\n for (int i = 0, lastIndex = arr.length - 1; i < lastIndex; i++) {\n swap(arr, i, i + RAND.nextInt(arr.length - i));\n }\n }", "title": "" }, { "docid": "bf9e2d3f2e519ec31f836f8a68ef50d6", "score": "0.5837017", "text": "public void shuffle()\n {\n int randNum;\n Card temp;\n Random r = new Random();\n for (int i = 0; i < deck.size(); i++)\n {\n randNum = r.nextInt(deck.size());\n temp = deck.get(i);\n deck.set(i,deck.get(randNum));\n deck.set(randNum,temp);\n }\n }", "title": "" }, { "docid": "502c488ce5c8e07cea51783a2776e317", "score": "0.5832467", "text": "public void shuffle() {\n\n\t\tfor (int i = 0; i < cards.size(); i++) {\n\t\t\tCollections.swap(cards, i, (int) (Math.random() * cards.size() - 1));\n\t\t}\n\n\t\tusedCard = new ArrayList<Card>(); // reset \"usedCard\"\n\t\tnUsed = 0; // reset \"nUsed\"\n\t\topenCard = new ArrayList<Card>(); // reset \"openCard\"\n\n\t}", "title": "" }, { "docid": "974ded168665875a1bd9c56cc4360ac7", "score": "0.58309805", "text": "private void shuffleDeck() {\n for(int i = 0; i < 44; i++)\n shuffle.add(i);\n Collections.shuffle(shuffle);\n }", "title": "" }, { "docid": "f653392ff607c9bf671e301f14ba5d1f", "score": "0.58231217", "text": "public void shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "title": "" }, { "docid": "f653392ff607c9bf671e301f14ba5d1f", "score": "0.58231217", "text": "public void shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "title": "" }, { "docid": "1b0440536ea5b9498008f65ce2252574", "score": "0.5821428", "text": "public static String[] shuffle(String[] array, int num){\n\tnum = num % array.length;\n\tString[] newArray = new String[array.length];\n\tfor(int i = 0; i<array.length; i++){\n\t int newP = i + num;\n\t if(newP>=array.length){ newP-=array.length;}\n\t newArray[newP] = array[i];\n\t}\n\treturn newArray;\n }", "title": "" }, { "docid": "9313aaead9ca8616fe52e4e9055cffb9", "score": "0.580772", "text": "public static <T> ArrayList<T> shuffle(ArrayList<T> array) {\n\t\tRandom random = new Random();\n\t\tint n = array.size();\n\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\tint j = i + random.nextInt(n - i);\n\t\t\tT obj = array.get(i);\n\t\t\tarray.set(i, array.get(j));\n\t\t\tarray.set(j, obj);\n\t\t}\n\t\treturn array;\n\t}", "title": "" }, { "docid": "3df75e700fc0e49e9a680108f6a6f943", "score": "0.57984424", "text": "public void shuffle() {\n int i, swapWith;\n for (i=0; i < 52; i++) {\n // It's possible that some (or all) cards would be unmoved if the random number generates the index that\n // i is pointing to. To avoid this, in the general case, we can swap deck[i] with deck[0], then generate\n // the random number in the range 1, 52. This necessitates a single case (when i==0) which needs to be\n // handled, otherwise 0 would never be swapped. To avoid this, we simply swap it to deck[51], then randomly\n // generate a number in the range 0, 51 (where 51 is exclusive).\n if (i == 0) {\n swapWith = ThreadLocalRandom.current().nextInt(0, 51);\n swapCards(51, swapWith);\n }\n else swapCards(i, 0);\n swapWith = ThreadLocalRandom.current().nextInt(1, 52);\n swapCards(0, swapWith);\n }\n }", "title": "" }, { "docid": "844cbf7d5a88e08ed631d4514ad6a225", "score": "0.5795262", "text": "public static void shuffle(Object[] a) {\n if (a == null) throw new NullPointerException(\"argument array is null\");\n int N = a.length;\n for (int i = 0; i < N; i++) {\n int r = i + StdRandom.uniform(N-i); // between i and N-1\n Object swap = a[i];\n a[i] = a[r];\n a[r] = swap;\n }\n }", "title": "" }, { "docid": "754fc1c1e54ca832c9ce58a9625244b5", "score": "0.5773587", "text": "public void shufflePermanent()\n\t{\n\t\tInteger[] arr = new Integer[alterations.length];\n\t\tfor (int i = 0; i < arr.length; i++)\n\t\t{\n\t\t\tarr[i] = alterations[i];\n\t\t}\n\t\tCollections.shuffle(Arrays.asList(arr));\n\t\tfor (int i = 0; i < arr.length; i++)\n\t\t{\n\t\t\talterations[i] = arr[i];\n\t\t}\n\t\tch = null;\n\t}", "title": "" }, { "docid": "1365308e331393ecc388aee7816a4016", "score": "0.5767449", "text": "public void shuffle()\n {\n int index1;\n int index2;\n int num = cards.length;\n while( num > 0)\n {\n index1 = (int)(Math.random()* cards.length); \n index2 = (int)(Math.random()* cards.length); \n \n //swapping the elements \n Card temp = cards[index1]; \n cards[index1] = cards[index2]; \n cards[index2] = temp; \n num--;\n } \n }", "title": "" }, { "docid": "5b4eb9d08738095b4595b5fed77c2a5f", "score": "0.5763127", "text": "public static void shuffle(Comparable[] a)\n {\n int size = a.length-1;\n for(int i = size; i >= 0; i--)\n {\n int index = (int)Math.random()*size;\n Comparable temp = a[index];\n a[index] = a[i];\n a[i] = temp;\n }\n }", "title": "" }, { "docid": "631faad288df2d1ddf45e977cb6dba3f", "score": "0.5760611", "text": "private static ArrayList<Bird> shuffle(ArrayList<Bird> array) {\n\t\tArrayList<Bird> newarray = new ArrayList<Bird>();\n\t\twhile(array.size() != 0) {\n\t\t\tint index = (int)(Math.random()*array.size());\n\t\t\tBird bird = array.get(index);\n\t\t\tarray.remove(index);\n\t\t\tnewarray.add(bird);\n\t\t}\n\t\treturn newarray;\n\t}", "title": "" }, { "docid": "36c5239f4854abf25496072cfb0d3d29", "score": "0.57554644", "text": "public int[] shuffle() {\r\n if(nums == null) return null;\r\n int[] a = (int[])nums.clone();\r\n for(int i = 1; i < nums.length; i++)\r\n {\r\n int j = random.nextInt(i + 1);\r\n swap(a, i, j);\r\n }\r\n return a;\r\n }", "title": "" }, { "docid": "a8ad141f095fa5ac1a78a5b707f2cc76", "score": "0.5750984", "text": "public void shufflePlay();", "title": "" }, { "docid": "8f9d9b318b9ff020140e0f7a4ee35e51", "score": "0.5742078", "text": "public void shuffle () {\n for (int i = top; i > 0; i--) {\n int j = random(0, i + 1);\n swap(i, j);\n }\n }", "title": "" }, { "docid": "8fd32bd24229fdd357fefb0f27dada43", "score": "0.5720877", "text": "private void shuffle(Object[] os) {\n Random rand = new Random();\n for (int i = os.length - 1; i > 0; i--) {\n int j = rand.nextInt(i);\n Object o = os[i];\n os[i] = os[j];\n os[j] = o;\n }\n }", "title": "" }, { "docid": "f460624c709f0452ac498979c899f396", "score": "0.571502", "text": "public void shuffle() {\n\t\tCollections.shuffle(myDeck);\n\t}", "title": "" }, { "docid": "68f6cd3faebf101304aa86a95018872b", "score": "0.5710066", "text": "public void shuffle() {\n Collections.shuffle(cards);\n }", "title": "" }, { "docid": "aed4a2ac002fcd0195884ed84d764fdd", "score": "0.5706479", "text": "public void shuffle() {\n\n\t\tcurrentCard = 0;\n\n\t\tfor ( int first = 0; first < deck.length; first++ ) {\n\t\t\t\n\t\t\tint second = randomNumbers.nextInt( NUMBER_OF_CARDS ); // select a random number between 0 to 51\n\n\t\t\t// Swap current card with randomly selected card\n\t\t\tCard temp = deck[ first ];\n\t\t\tdeck[ first ] = deck[ second ];\n\t\t\tdeck[ second ] = temp;\n\t\t}\n\t}", "title": "" }, { "docid": "c4b5dc96dbb06b9aeacb6736bc41cab6", "score": "0.5688306", "text": "public int[] shuffle() {\n \n int[] arr = new int[nums.length];\n \n for (int i=0; i<nums.length; i++) {\n \n int temp = (int) (Math.random() * (i + 1));\n arr[i] = arr[temp];\n arr[temp] = nums[i];\n \n }\n\n return arr;\n \n }", "title": "" }, { "docid": "82c35353c0c86485fd905fcf44c687a9", "score": "0.5684387", "text": "private static void bitReversalShuffle2(double[] a,\n double[] b) {\n final int n = a.length;\n final int halfOfN = n >> 1;\n\n int j = 0;\n for (int i = 0; i < n; i++) {\n if (i < j) {\n // swap indices i & j\n double temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n\n temp = b[i];\n b[i] = b[j];\n b[j] = temp;\n }\n\n int k = halfOfN;\n while (k <= j && k > 0) {\n j -= k;\n k >>= 1;\n }\n j += k;\n }\n }", "title": "" }, { "docid": "8ee387a8cde8690cc0502438d692314e", "score": "0.5660163", "text": "public void shuffle()\r\n\t{\r\n\t\tCollections.shuffle(deck);\r\n\t}", "title": "" }, { "docid": "d80e924b5c06bf7c002464ad75ba912e", "score": "0.5648876", "text": "public void shuffle( int seed ) { Collections.shuffle(pokerDeck, new Random(seed)); }", "title": "" }, { "docid": "35753c4213dd53a429f2ea580079cfdf", "score": "0.5644592", "text": "public static void shuffleDeck(int[] deck) {\n for (int numShuffles = 0; numShuffles < 3; numShuffles++) {\n for (int i = 0; i < deck.length; i++) {\n int index = (int) (Math.random() * deck.length);\n int temp = deck[i];\n deck[i] = deck[index];\n deck[index] = temp;\n }\n }\n }", "title": "" }, { "docid": "09da1c8555ad46edb69a08d0dcd67e19", "score": "0.5608371", "text": "public void shuffle() {\r\n\t\tArrayList<Card> tempDeck = new ArrayList<Card>();\r\n\t\twhile (deck.size() > 0) { // Cards are transferred from the deck to temp randomly until it is empty\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tint randIndex = rand.nextInt(deck.size());\r\n\t\t\ttempDeck.add(deck.get(randIndex)); // A random Card's index is copied to the new sDeck\r\n\t\t\tdeck.remove(randIndex); // The copied Card is removed from the old deck to prevent duplicates\r\n\t\t}\r\n\t\tdeck.addAll(tempDeck); // Returns the shuffled cards from the temp deck to the deck\r\n\t}", "title": "" }, { "docid": "9962792ccc09a1a92c818eb2c7d5f29e", "score": "0.55880415", "text": "public void shuffle() {\n\t\tCollections.shuffle(deck); \n\t}", "title": "" }, { "docid": "680636689bd771378c46fc66693996d3", "score": "0.55880326", "text": "public static void shuffle( ArrayList al ) \n {\n\tint randomIndex;\n\t//setup for traversal fr right to left\n for( int i = al.size()-1; i > 0; i-- ) {\n\t //pick an index at random\n randomIndex = (int)( (i+1) * Math.random() );\n\t //swap the values at position i and randomIndex\n al.set( i, al.set( randomIndex, al.get(i) ) );\n }\n }", "title": "" }, { "docid": "a2b69fb8218ca0b8621dec463d2be7cc", "score": "0.55714333", "text": "void shuffle(int A[], int n) {\n int increase = 1;\n for (int i = 1; i < n; i++) {\n int local = A[i] >= A[i - 1] ? 1 : 0;\n if (increase != local) swap(A[i], A[i - 1]);\n increase ^= 1;\n }\n }", "title": "" }, { "docid": "fc0389a438914e0ff9eea056e27d854f", "score": "0.5566802", "text": "public void shuffle() {\n\t\tCollections.shuffle(tiles);\n\t\tCollections.shuffle(tiles);\n\t\tCollections.shuffle(tiles);\n\t}", "title": "" }, { "docid": "1facadc6c185c085c54564ba6be95efd", "score": "0.5556967", "text": "public static void shuffleArray(int[] array, int length) {\n int index, temp;\n Random random = new Random();\n for (int i = length - 1; i > 0; i--) {\n index = random.nextInt(i + 1);\n temp = array[index];\n array[index] = array[i];\n array[i] = temp;\n }\n }", "title": "" }, { "docid": "f1b0ac1e52fa111b99126c1575b57afe", "score": "0.55469704", "text": "public static void Task13() {\r\n int[] lottery = new int[49];\r\n int[] res = new int[6];\r\n for(int i = 1;i<=49;i++){\r\n lottery[i-1]=i;\r\n }\r\n for(int i = 1;i<=6;i++){\r\n int idx = (int)((Math.random()*1000000000)%(49-i));\r\n res[i-1] = lottery[idx];\r\n for(int j=idx;j<lottery.length-1;j++){\r\n lottery[j]=lottery[j+1];\r\n }\r\n int[] tmp = new int [lottery.length-1];\r\n \r\n System.arraycopy(lottery, 0, tmp, 0, tmp.length);\r\n lottery = new int[lottery.length-1];\r\n lottery = tmp;\r\n }\r\n\r\n bubbleSort(res);\r\n for(int i = 0;i<6;i++){\r\n System.out.print(res[i]+\" \");\r\n }\r\n }", "title": "" }, { "docid": "8401fcb258c3d285b8d393daa2847a7c", "score": "0.5546936", "text": "@Test\n public void shuffle() {\n\n }", "title": "" }, { "docid": "a09c7cb8d5014d02129d731cdf9773ff", "score": "0.5536978", "text": "public void shuffle()\n {\n\t for(int i = this.deck.size()- 1; i > 0; i--)\n\t {\n\t\t int j = r.nextInt(i + 1);\n\t\t Card temp = this.deck.get(i);\n\t\t this.deck.set(i, this.deck.get(j));\n\t\t this.deck.set(j, temp);\n\n\t }\n\t for(Card card: this.deck)\n\t {\n\t\t this.cardsInPlay.add(card);\n\t }\n\n }", "title": "" }, { "docid": "a3857429b985769d8794502711d07334", "score": "0.5533296", "text": "public static void shuffleArray(Match[] column) {\r\n\t\tint n = column.length;\r\n\t\tRandom random = new Random();\r\n\t\trandom.nextInt();\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\t// Adding check if value is fixed\r\n\t\t\tif (column[i].isFixed() == false) {\r\n\t\t\t\tint change = i + random.nextInt(n - i);\r\n\t\t\t\tif (column[change].isFixed() == false) {\r\n\t\t\t\t\tswap(column, i, change);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "98d278ff20f86b49c41d6c4ccb924396", "score": "0.55309427", "text": "public void shuffle() {\r\n \tRandom rand = new Random();\r\n \tfor (int indexNumber = 0; indexNumber < drawPile.size() ; indexNumber ++) {\r\n \t\tint randNumber = rand.nextInt(drawPile.size());\r\n \t\tT cardAtIndex = drawPile.get(indexNumber);\r\n \t\tdrawPile.set(indexNumber, drawPile.get(randNumber));\r\n \t\tdrawPile.set(randNumber, cardAtIndex);\r\n \t\t\r\n \t}\r\n }", "title": "" }, { "docid": "7c41ebe81f8414fc18240a3ea29ba34f", "score": "0.5528497", "text": "public static void main(String[] args) {\n\t\tint[] input = {1,2,3,4,5,6,7};\n\t\tSystem.out.println(Arrays.toString(shuffle(input))); //Arrays.toString(int[]) print out an array just like an array\n\t}", "title": "" }, { "docid": "7cd77d44d62793c8ae530e1938f10ea4", "score": "0.5525293", "text": "public static void prepShuffle() {\n List<Integer> list = new ArrayList<>();\n\n for (int i = 0; i < 10; i++) {\n list.add(i);\n }\n\n Printer.println(\"Original list\");\n list.stream().forEach(n -> {\n Printer.print(\" \" + n);\n });\n\n Printer.println(\"Shuffled list\");\n list = shuffle(list);\n list.stream().forEach(n -> {\n Printer.print(\" \" + n);\n });\n }", "title": "" }, { "docid": "2902d7007d26a58425842a7b0d44a325", "score": "0.5519333", "text": "public void shuffle()\n {\n Collections.shuffle(drawPile, rand);//makes use of collections object to shuffle arraylist\n }", "title": "" }, { "docid": "a457ebedecdf8e24f0436067ef7cec67", "score": "0.5488852", "text": "public void shuffle2()\n{\n\t//System.out.print(\"Shuffling numbers pairs: \");\n\tint y;\n\t//Change max of y to shuffle a different number of times\n\tfor (y=0;y<25;y++)\n\t{\n\tint randomIndex1 = generator.nextInt(52);\n\tint randomIndex2 = generator.nextInt(52);\n\t//System.out.print(\"(\" + randomIndex1+ \",\" + randomIndex2 + \") \");\n\tCard temptoswap1 = deck.get(randomIndex1);\n\tCard temptoswap2 = deck.get(randomIndex2);\n\tdeck.set(randomIndex1, temptoswap2);\n\tdeck.set(randomIndex2, temptoswap1);\n\t}\n\tSystem.out.println();\n}", "title": "" }, { "docid": "1ce5cd0c4a0ebf6709738d9057b20136", "score": "0.5487308", "text": "public static void shuffle( ArrayList al ) {\n\tint randomIndex;\n for( int i = al.size()-1; i > 0; i-- ) {\n\t //pick an index at random\n randomIndex = (int)( (i+1) * Math.random() );\n\t //swap the values at position i and randomIndex\n al.set( i, al.set( randomIndex, al.get(i) ) );\n }\n }", "title": "" }, { "docid": "92573be48fa286c68662c599a6a31d62", "score": "0.5486775", "text": "private void shuffleDeck() {\n\t\tCollections.shuffle(CARDS);\n\t\tCollections.shuffle(CARDS);\n\t\tCollections.shuffle(CARDS);\n\t\tCollections.shuffle(CARDS);\n\t\tCollections.shuffle(CARDS);\n\t}", "title": "" }, { "docid": "83b0f8ba71f7902a946a4e9bd5a35e0a", "score": "0.5479236", "text": "private static void changArr(int[] arr) {\n\t\tint[] b = new int[arr.length];\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tint temp = (int) (Math.random()*(arr.length-i));\r\n\t\t\tb[i] = arr[temp];\r\n\t\t\tint a = arr[arr.length-i-1];\r\n\t\t\tarr[arr.length-i-1] = arr[temp];\r\n\t\t\tarr[temp] = a;\r\n\t\t}\r\n\t\tfor (int i = 0; i < b.length; i++) {\r\n\t\t\tSystem.out.print(b[i]+\"\\t\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a627c4616c2a2cbbe86c99bef2567e78", "score": "0.54677737", "text": "private void shuffleButtons() {\n\tfor(int i = 0; i < size; i++) {\n\t for(int j = 0; j < size; j++) {\n\t\tbArray[i][j].setSelected(true);\n\t }\n\t}\n\tboolean[][] clicked = new boolean[size][size];\n\tint minClicks = rgen.nextInt(size*size) + 1;\n\tint clickCount = 0;\n\twhile(clickCount < minClicks) {\n\t int r = rgen.nextInt(size);\n\t int c = rgen.nextInt(size);\n\t if(!clicked[r][c]) {\n\t\tbArray[r][c].doClick();\n\t\tclickCount++;\n\t }\n\t}\n }", "title": "" }, { "docid": "eff37c25cff62dd24294c251b32369b4", "score": "0.54600585", "text": "public void setShuffle(boolean shuffle);", "title": "" } ]
2608258f0d6aeacc48ba94cba68d16d4
Returns the result of interpreting the object as an instance of 'Statement'. This implementation returns null; returning a nonnull result will terminate the switch.
[ { "docid": "fb9ca941dbb253cf79f2dab9d16bd6a5", "score": "0.7094972", "text": "public T caseStatement(Statement object) {\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "edba55ee5965cae4218ba5db55666146", "score": "0.73534507", "text": "private Statement statement() {\n\n switch (lexer.token) {\n case THIS:\n case IDENT:\n case SUPER:\n case INT:\n case BOOLEAN:\n case STRING:\n return assignExprLocalDec();\n case RETURN:\n hasreturn = true;\n return returnStatement();\n case READ:\n return readStatement();\n case WRITE:\n return writeStatement();\n case WRITELN:\n return writelnStatement();\n case IF:\n return ifStatement();\n case BREAK:\n //ERRO 26\n if (nested_whiles <= 0) {\n signalError.show(\"break statement found outside a while statement\");\n }\n return breakStatement();\n case WHILE:\n nested_whiles += 1;\n WhileStatement whileStatement = whileStatement();\n nested_whiles -= 1;\n return whileStatement;\n case SEMICOLON:\n return nullStatement();\n case LEFTCURBRACKET:\n return compositeStatement();\n case NEW:\n return newStatement();\n default:\n signalError.show(\"'operator expected' or 'variable expected at the left-hand side of a assignment'\");\n }\n return null;\n }", "title": "" }, { "docid": "5d8680dcd85e22c5c5964313576d2c05", "score": "0.7291395", "text": "public T caseExecuteStatement(ExecuteStatement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8c24313d991b23db48b133a403fc6d4b", "score": "0.7197687", "text": "public T caseStatement(Statement object)\n {\n return null;\n }", "title": "" }, { "docid": "8c24313d991b23db48b133a403fc6d4b", "score": "0.7197687", "text": "public T caseStatement(Statement object)\n {\n return null;\n }", "title": "" }, { "docid": "d42a9d35846667fc1cafc826764cd000", "score": "0.7055251", "text": "public T caseStatement(Statement object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "a47621eb4214adb774ca087913973990", "score": "0.69255334", "text": "Statement getStatement();", "title": "" }, { "docid": "d2c9611c90e1efb380ba5a73fecb0e43", "score": "0.6754943", "text": "private JCStatement parseStatement() {\n JCStatement returnVal = null;\n switch (token.kind) {\n case FOR: {\n returnVal = parseFor();\n break;\n }\n default: {\n if (isSameKind(token, SYSLANG_WIRE_ALL)) {\n int pos = token.pos;\n nextToken();\n List<JCExpression> args = parseParameterList();\n returnVal = F.Exec(F.at(pos).ManyToOne(args));\n } else if (isSameKind(token, SYSLANG_ASSOCIATE)) {\n int pos = token.pos;\n nextToken();\n List<JCExpression> args = parseParameterList();\n returnVal = F.Exec(F.at(pos).Associate(args));\n } else if (isSameKind(token, SYSLANG_STAR)) {\n int pos = token.pos;\n nextToken();\n List<JCExpression> args = parseParameterList();\n returnVal = F.Exec(F.at(pos).Star(args));\n } else if (isSameKind(token, SYSLANG_RING)) {\n int pos = token.pos;\n nextToken();\n List<JCExpression> args = parseParameterList();\n returnVal = F.Exec(F.at(pos).Ring(args));\n }\n accept(SEMI);\n }\n }\n\n // we return null if there isn't any statement to parse;\n // this is used to determine whether or not we reached the end of\n // a block during parsing;\n return returnVal;\n }", "title": "" }, { "docid": "721fd5d0fa111fcad5a39459f6632bfc", "score": "0.6620018", "text": "final public Statement Statement() throws ParseException {\n Statement statement;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case CREATE:\n case DROP:\n statement = DDLStatement();\n break;\n case DELETE:\n case INSERT:\n case UPDATE:\n statement = DMLStatement();\n break;\n case SELECT:\n statement = DQLStatement();\n break;\n default:\n jj_la1[0] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n {if (true) return statement;}\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "7d26d1d5eaab90c8cd037efc0f24def8", "score": "0.6473109", "text": "final public Statement Statement() throws ParseException {\n NodeChoice n0 = null;\n BlockStatement n1 = null;\n IfStatement n2 = null;\n WhileStatement n3 = null;\n PrintStatement n4 = null;\n AssignmentStatement n5 = null;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case BRACE_LEFT:\n n1 = BlockStatement();\n n0 = new NodeChoice(n1, 0, 5);\n break;\n case IF:\n n2 = IfStatement();\n n0 = new NodeChoice(n2, 1, 5);\n break;\n case WHILE:\n n3 = WhileStatement();\n n0 = new NodeChoice(n3, 2, 5);\n break;\n case PRINT_METHOD:\n n4 = PrintStatement();\n n0 = new NodeChoice(n4, 3, 5);\n break;\n case IDENTIFIER:\n n5 = AssignmentStatement();\n n0 = new NodeChoice(n5, 4, 5);\n break;\n default:\n jj_la1[10] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n {if (true) return new Statement(n0);}\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "1840d4ea172c0bb978c32fb289c51e66", "score": "0.6451272", "text": "@Override\n\tpublic Statement getStatement() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "aab480890319083a1ddb9c599447e08c", "score": "0.63752383", "text": "public SQLStatement judge() {\n LexerEngine lexerEngine = LexerEngineFactory.newInstance(DatabaseType.MySQL, sql);\n lexerEngine.nextToken();\n while (true) {\n TokenType tokenType = lexerEngine.getCurrentToken().getType();\n if (tokenType instanceof Keyword) {\n if (DQLStatement.isDQL(tokenType)) {\n return getDQLStatement();\n }\n if (DMLStatement.isDML(tokenType)) {\n return getDMLStatement(tokenType);\n }\n if (TCLStatement.isTCL(tokenType)) {\n return getTCLStatement();\n }\n if (DALStatement.isDAL(tokenType)) {\n return getDALStatement(tokenType, lexerEngine);\n }\n lexerEngine.nextToken();\n TokenType secondaryTokenType = lexerEngine.getCurrentToken().getType();\n if (DDLStatement.isDDL(tokenType, secondaryTokenType)) {\n return getDDLStatement();\n }\n if (DCLStatement.isDCL(tokenType, secondaryTokenType)) {\n return getDCLStatement();\n }\n } else {\n lexerEngine.nextToken();\n }\n if (tokenType instanceof Assist && Assist.END == tokenType) {\n throw new SQLParsingException(\"Unsupported SQL statement: [%s]\", sql);\n }\n }\n }", "title": "" }, { "docid": "34fed1120d4dd19b9a04240eb9f072a6", "score": "0.63436514", "text": "public Statement getStatement() {\n return statement;\n }", "title": "" }, { "docid": "d33e6cfa63c6f9c1c14b8311e9e3bfc9", "score": "0.6294316", "text": "public T caseStatementBlock(StatementBlock object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1f9c559ebfe7543e19ad5d53f7d000f4", "score": "0.62830716", "text": "public static Statement getStatement() {\n return statement;\n }", "title": "" }, { "docid": "82f649c51c31980d75be96f9e8a02525", "score": "0.6243678", "text": "public T caseTextualStatement(TextualStatement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6ca2b29eb5d8074cdee53bfe1a386660", "score": "0.61888677", "text": "final public QueryPart statement() throws ParseException {\r\n QueryPart qp;\r\n switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {\r\n case SELECT:\r\n case WITH:\r\n qp = selectStatement();\r\n break;\r\n case DRILLTHROUGH:\r\n qp = drillthroughStatement();\r\n break;\r\n case EXPLAIN:\r\n qp = explainStatement();\r\n break;\r\n default:\r\n jj_la1[30] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n {\r\n if (true)\r\n return qp;\r\n }\r\n throw new Error(\"Missing return statement in function\");\r\n }", "title": "" }, { "docid": "e99166cd93b1f355d47ff0228d0eedcd", "score": "0.60684603", "text": "public String getStatement() {\n return statement;\n }", "title": "" }, { "docid": "6fcb6a2160fb654f791680c332ad0d6e", "score": "0.6066166", "text": "public T caseTransitionStatement(TransitionStatement object)\n {\n return null;\n }", "title": "" }, { "docid": "d35893b26515cff7aaa6dff44d886599", "score": "0.5994574", "text": "public T caseExpressionStatement(ExpressionStatement object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "9e894659f85f117c65207f4f8bc87836", "score": "0.5930303", "text": "@Override\n \tpublic Object visit(StmtNode n) {\n \t\treturn null;\n \t}", "title": "" }, { "docid": "1786f36c88f80f6fd3589406521aadc0", "score": "0.59201354", "text": "public Statement parseStatement() throws ParseException {\n // look for any labels preceding statement\n Mark m = tq.mark();\n Token<JsTokenType> t = tq.peek();\n if (JsTokenType.WORD == t.type) {\n String label = parseIdentifier(false);\n FilePosition labelPos = t.pos;\n if (tq.checkToken(Punctuation.COLON)) {\n t = tq.peek();\n AbstractStatement s = null;\n if (JsTokenType.KEYWORD == t.type) {\n switch (Keyword.fromString(t.text)) {\n case FOR: case DO: case WHILE: case SWITCH:\n s = parseLoopOrSwitch(labelPos, label);\n break;\n default:\n break;\n }\n }\n if (null == s) {\n Statement labelless = parseStatementWithoutLabel();\n s = new LabeledStmtWrapper(posFrom(m), label, labelless);\n }\n finish(s, m);\n return s;\n }\n tq.rewind(m);\n }\n return parseStatementWithoutLabel();\n }", "title": "" }, { "docid": "e9b4c928a38186638a2e9a9e81fe7a4a", "score": "0.58330184", "text": "final public AST parseStatement() throws ParseException {\n Statement rootNode;\n Logger.infoln(String.format(\"%s: Parsing and constructing Abstract syntax tree startet.\", this.getClass().getSimpleName()));\n try {\n rootNode = Statement();\n jj_consume_token(0);\n AST ast = new AST();\n ast.setRoot(rootNode);\n Logger.infoln(String.format(\"%s: Parsing and constructing Abstract syntax tree finished.\", this.getClass().getSimpleName()));\n {if (true) return ast;}\n } catch (ParseException parseException) {\n handleParseException(parseException);\n }\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "19755ac2b911199142147ce1f6293950", "score": "0.58318895", "text": "public abstract Statement getStmt() throws SQLException;", "title": "" }, { "docid": "e467989aa5d64d3c0f5d934a62bbfebd", "score": "0.5809866", "text": "public SqlNode parseStmt() throws SqlParseException {\n try {\n return parser.parseSqlStmtEof();\n } catch (Throwable ex) {\n if ((ex instanceof CalciteContextException)\n && (originalInput != null)) {\n ((CalciteContextException) ex).setOriginalStatement(\n originalInput);\n }\n throw parser.normalizeException(ex);\n }\n }", "title": "" }, { "docid": "4dc62db2d068e39e987740a2e9048307", "score": "0.5798038", "text": "public T caseStatementContainer(StatementContainer object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e3114d467133923fca407243f07f8bed", "score": "0.5797934", "text": "public abstract boolean maybeStatement();", "title": "" }, { "docid": "b88ea1a17323e206ff0461f04a90b075", "score": "0.57871854", "text": "Object run(java.sql.Statement stmt) throws T;", "title": "" }, { "docid": "5fa76bd8bbd6be618fd2c3942bae4a38", "score": "0.5785627", "text": "public InstSemStatement getStatement();", "title": "" }, { "docid": "bac81495736261dc2f3f1d0cc77399ed", "score": "0.5778255", "text": "public T casePrintStatement(PrintStatement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bc7df457e3c9e8e8367f17f1d00859f1", "score": "0.577469", "text": "public T caseConditionalStatement(ConditionalStatement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2f83d5def1257b74c0165b521d06c450", "score": "0.57574433", "text": "public Statement createStatement() {\n return new Statement();\n }", "title": "" }, { "docid": "6b533d08fae3132678078852576d44a8", "score": "0.57502973", "text": "Statement getNativeStatement(Statement stmt) throws SQLException;", "title": "" }, { "docid": "436b92895f21ccd2a3e9854637a30214", "score": "0.571837", "text": "public T caseStatementWithException(StatementWithException object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "b26bd5869ec47dbac2f03626329883c9", "score": "0.5674584", "text": "message.HSLanguageData.LanguageData.Statement getStatement(int index);", "title": "" }, { "docid": "0278193b821e21fb19d74dc8f4d9c3e1", "score": "0.5669653", "text": "public T caseIfStatement(IfStatement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6bfe2e76dfabc44177884e01620f93d6", "score": "0.5650338", "text": "public String statement() {\n return statement;\n }", "title": "" }, { "docid": "f0410f800208b7a352196967d0df7db6", "score": "0.56244886", "text": "public message.HSLanguageData.LanguageData.Statement getStatement(int index) {\n return statement_.get(index);\n }", "title": "" }, { "docid": "378f99c953283c36171f8eed67ff9aea", "score": "0.55903953", "text": "public T caseWhileStatement(WhileStatement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "75ab48481cafd0514b9c355e541630a3", "score": "0.5584207", "text": "public message.HSLanguageData.LanguageData.Statement getStatement(int index) {\n return statement_.get(index);\n }", "title": "" }, { "docid": "fbf85f5f5e2cc429fd14da0a69e6bbaa", "score": "0.5580771", "text": "@Override\r\n\tpublic Statement getStatement(Date from, Date to, long sessionID) throws RemoteException, InvalidSession {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "328cae416243566a0481c50d886237dd", "score": "0.5572621", "text": "final public Statement DMLStatement() throws ParseException {\n Statement statement;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case INSERT:\n statement = InsertStatement();\n break;\n case DELETE:\n statement = DeleteStatement();\n break;\n case UPDATE:\n statement = UpdateStatement();\n break;\n default:\n jj_la1[18] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n {if (true) return statement;}\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "4ec4188afac9cefebe14502f0d21e692", "score": "0.556246", "text": "Stmt stmt() throws IOException {\n Expr x;\n Stmt s1, s2;\n Stmt savedStmt; // save enclosing loop for breaks\n // check each case for tags\n switch( look.tag ){\n case ';':\n move();\n return Stmt.Null;\n case Tag.IF:\n // pattern matching for IF block\n match(Tag.IF);\n match('(');\n x = bool();\n match(')');\n // get statement after boolen expression\n s1 = stmt();\n // check for IF or IF/ELSE\n if ( look.tag != Tag.ELSE ) return new If(x, s1);\n match(Tag.ELSE);\n s2 = stmt();\n return new Else(x, s1, s2);\n case Tag.WHILE:\n While whileNode = new While();\n savedStmt = Stmt.Enclosing; // store previous Break statement\n Stmt.Enclosing = whileNode;\n // pattern matching for WHILE block\n match(Tag.WHILE);\n match('(');\n x = bool();\n match(')');\n s1 = stmt();\n whileNode.init(x, s1);\n Stmt.Enclosing = savedStmt; // reset Stmt.Enclosing\n return whileNode;\n case Tag.DO:\n Do doNode = new Do();\n savedStmt = Stmt.Enclosing; // store previous Break statement\n Stmt.Enclosing = doNode;\n // pattern matching for DO block\n match(Tag.DO);\n s1 = stmt();\n match(Tag.WHILE);\n match('(');\n x = bool();\n match(')');\n match(';');\n doNode.init(s1, x);\n Stmt.Enclosing = savedStmt; // reset Stmt.Enclosing\n return doNode;\n case Tag.BREAK:\n match(Tag.BREAK);\n match(';');\n return new Break();\n case '{':\n return block();\n default:\n return assign();\n }\n \n }", "title": "" }, { "docid": "09937723c8c6d9bd0e3d53658602eaeb", "score": "0.5561441", "text": "public T caseClinicalStatement(ClinicalStatement object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "3e7879d501b3665b3539f1d7cc7ecd99", "score": "0.5557438", "text": "public ResultSet execute() {\n// PreparedStatement stmt = executeToResultSet(dbcon);\n// result.setStatement(stmt);\n// return result;\n return null;\n }", "title": "" }, { "docid": "cb24c9c540ee1776b0df41d780b8a514", "score": "0.5553235", "text": "private Statement getStatement(Connection connection) {\n\t\ttry {\n\t\t\treturn connection.createStatement();\n\t\t} catch (Throwable throwable) {\n\t\t\tLOGGER.error(\"Unable to obtain a statement\", throwable);\n\t\t\tthrow new RuntimeException(\"Unable to obtain a statement\", throwable);\n\n\t\t}\n\t}", "title": "" }, { "docid": "3772ab18d35fbfb9a37524e90a5e347a", "score": "0.5551488", "text": "public Hashtable getCurrentStatement() {\n if (0 <= bufPointer && bufPointer < buffer.size()) {\n return (Hashtable)buffer.elementAt(bufPointer);\n }\n else {\n String statementType = shufflerService.getDefaultStatementType();\n return shufflerService.getDefaultStatement(statementType);\n }\n }", "title": "" }, { "docid": "e6c2151c00de2e28b14a78c78c381b79", "score": "0.5546873", "text": "public T caseControlStatement(ControlStatement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ce8a39e4bb4c73321f26cbbdfa625150", "score": "0.5543135", "text": "protected static OStatement parse(String statement) throws OCommandSQLParsingException {\n try {\n ODatabaseDocumentInternal db = ODatabaseRecordThreadLocal.instance().getIfDefined();\n InputStream is;\n\n if (db == null) {\n is = new ByteArrayInputStream(statement.getBytes());\n } else {\n try {\n is =\n new ByteArrayInputStream(\n statement.getBytes(db.getStorageInfo().getConfiguration().getCharset()));\n } catch (UnsupportedEncodingException e2) {\n OLogManager.instance()\n .warn(\n null,\n \"Unsupported charset for database \"\n + db\n + \" \"\n + db.getStorageInfo().getConfiguration().getCharset());\n is = new ByteArrayInputStream(statement.getBytes());\n }\n }\n\n OrientSql osql = null;\n if (db == null) {\n osql = new OrientSql(is);\n } else {\n try {\n osql = new OrientSql(is, db.getStorageInfo().getConfiguration().getCharset());\n } catch (UnsupportedEncodingException e2) {\n OLogManager.instance()\n .warn(\n null,\n \"Unsupported charset for database \"\n + db\n + \" \"\n + db.getStorageInfo().getConfiguration().getCharset());\n osql = new OrientSql(is);\n }\n }\n OStatement result = osql.parse();\n result.originalStatement = statement;\n\n return result;\n } catch (ParseException e) {\n throwParsingException(e, statement);\n } catch (TokenMgrError e2) {\n throwParsingException(e2, statement);\n }\n return null;\n }", "title": "" }, { "docid": "af6aceeba717b6f7e8d1c2110da98c91", "score": "0.55365723", "text": "public Stmt parseStatement(Lex l) {\n if (l.ttype == TagConstants.LBRACE) // As an optimization, handle specially\n return parseBlock(l, false);\n else {\n seqStmt.push();\n int loc = l.startingLoc;\n addStmt(l);\n Stmt result = (Stmt)seqStmt.elementAt(0);\n if (seqStmt.size() != 1 || result instanceof VarDeclStmt) {\n\tfail(loc,\n\t \"Variable declarations are not legal in this context.\");\n }\n if (result instanceof StmtPragma) {\n\tfail(loc,\n\t \"Statement pragmas are not legal in this context.\");\n }\n\n seqStmt.pop();\n return result;\n }\n }", "title": "" }, { "docid": "a718082099b00c8f62d0602b95c0d869", "score": "0.551428", "text": "public T caseRightStatement(RightStatement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ab21f46fb06383f23481098044a0ac85", "score": "0.55139786", "text": "public T caseInstruction(Instruction object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "9a9c4507fcf7b39c67fbdc79eef35e82", "score": "0.5481459", "text": "private Ast.Statement visit(Ast.Statement ast) throws AnalysisException {\n return (Ast.Statement) visit((Ast) ast);\n }", "title": "" }, { "docid": "67582b2fdda13804008ffeb2bb7a4e56", "score": "0.54597163", "text": "Statement createStatement();", "title": "" }, { "docid": "67582b2fdda13804008ffeb2bb7a4e56", "score": "0.54597163", "text": "Statement createStatement();", "title": "" }, { "docid": "aeac0e9524908af89ed3015673bda2d0", "score": "0.54496247", "text": "public int getStatementType() {\n\t\treturn statementType;\n\t}", "title": "" }, { "docid": "4b4f0dee24fd1d09f5a0e129edbc8ff7", "score": "0.54491097", "text": "private List<JCStatement> designStatement() {\n if (token.kind == EOF) {\n error(token.pos, \"premature.eof\");\n }\n if (token.kind == RBRACE) {\n return null;\n }\n if (isStatementStartingToken(token)) {\n JCStatement statement = parseStatement();\n return returnNullOrNonEmptyList(statement);\n } else if (isCapsuleWiringStart()) {\n return returnNullOrNonEmptyList(parseCapsuleWiringStatement());\n } else if (isIndexedCapsuleWiringStart()) {\n return returnNullOrNonEmptyList(parseIndexedCapsuleWiringStatement());\n } else if (isVariableDeclStart()) {\n List<JCStatement> variableDeclarations = variableDeclarations(parseOptModifiers());\n accept(SEMI);\n return variableDeclarations;\n } else {\n JCExpression expression = parseExpressionWithJavac();\n accept(SEMI);\n return returnNullOrNonEmptyList(to(F.at(token.pos).Exec(\n checkExpressionStatement(expression))));\n }\n\n }", "title": "" }, { "docid": "1d6adc2fea69e5dd69ae12eb320e74f8", "score": "0.5419454", "text": "@Override\n\tpublic void defaultCase(Object obj) {\n\t\tLogger.printW(\"unsupported stmt:\" + obj);\n\t}", "title": "" }, { "docid": "0b3050a673eb64474cc0583c68a87a93", "score": "0.5417352", "text": "public T caseForwardStatement(ForwardStatement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "28291107105fddf141e2b68ee93a4244", "score": "0.54043627", "text": "@Override\n\tpublic String trasnform(String statement, Operator operator, Operator nextOperator) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a5288e9a3a3dbc3374e4f36685ec9e85", "score": "0.54034287", "text": "public Value execute(Env env)\n {\n \n if (Env_.INSTRUMENT) {\n \t return BlockStatement_.execute(env, this, _statements);\n }\n \n // END OF ADDED CODE\n \n for (int i = 0; i < _statements.length; i++) {\n Statement statement = _statements[i];\n\n\t // INST ADDED BY HUNG\n // NOTE: This code is not guarded by if (Env_.INSTRUMENT)\n \n Debugger.inst.checkBreakpoint(statement.getLocation());\n\t // END OF ADDED CODE\n \n Value value = statement.execute(env);\n\n if (value != null) {\n return value;\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "e0790fc0c35da16548f92c1342f33b24", "score": "0.5402648", "text": "public boolean isStatement(){\n \tif(!(isAssignmentStatement()||isLoopStatement()||isExitIfStatement()||isSwitchStatement()||isReturnStatement()||isDoStatement()||isColorStatement())) return false;\n \treturn true;\n }", "title": "" }, { "docid": "05fbaf831bd729856e512e0a2305a5aa", "score": "0.5402089", "text": "public Statement getStmt(String sqlQuery) {\n try {\n if (stmt.isClosed()) {\n stmt = getConn().createStatement();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return stmt;\n }", "title": "" }, { "docid": "85b5310c6493f6e425e12ff7aa969f52", "score": "0.54019576", "text": "public T caseProgram(Program object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "81163de201d23e5dc8ed70ffffa1cd33", "score": "0.5366264", "text": "public Statement getStatement() { return goal; }", "title": "" }, { "docid": "adb4e797151ad092af94c4cfdef9f578", "score": "0.5360117", "text": "@Override\n\tpublic LRS_Statement getLrsStatement() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5490cfc4b83c97be47e40935166ad4ab", "score": "0.5342562", "text": "public R visit(Statement n) {\n\t R _ret=null;\n\t n.f0.accept(this);\n\t return _ret;\n\t }", "title": "" }, { "docid": "2a3fcc3e5727a72e5ab597174132aed6", "score": "0.5339152", "text": "Object executeScalar();", "title": "" }, { "docid": "da02a2751fc2e791859bb92a4f796496", "score": "0.5331258", "text": "public ASTNode parseTree(){\n\treturn statement;\n}", "title": "" }, { "docid": "1e29c9455964ca275e53f6523cc032d9", "score": "0.5314646", "text": "public ASTStatement getThenBranch() {\n return (ASTStatement) getChild(1);\n }", "title": "" }, { "docid": "b865e28407869d53ec3d91a1f27dccf7", "score": "0.52929056", "text": "@Override\n\tpublic void visit(StatementWrapper statement) {\n\t}", "title": "" }, { "docid": "4f04ccb6cfee5d15949fff4a08ee760d", "score": "0.5292246", "text": "public java.sql.Statement criarStatement() {\n try {\n return this.conexao.createStatement();\n } catch (SQLException e) {\n return null;\n }\n }", "title": "" }, { "docid": "f91a537a495ba3913c12faa9946ad361", "score": "0.52784115", "text": "public PreparedStatement executeToResultSet() {\n// PreparedStatement stmt = dbcon.con.prepareStatement(getQueryString());\n// setSqlValues(stmt, 1, null);\n //\t\t\tresultSet = stmt.executeQuery();\n// return stmt;\n return null;//\n }", "title": "" }, { "docid": "391592dec0c5d49c709b90151c9beed9", "score": "0.52623534", "text": "public Object caseInstruction(Instruction object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5ad79eca0062ea1def42aeb7fda855c2", "score": "0.5245177", "text": "private void statement() throws Exception {\n\t\tif (token == scanner._IDENTIFIER && nextToken == scanner._ASSIGN) {\n\t\t\tassignment();\n\t\t\tif (nextToken != scanner._SEMIKOLON) {\n\t\t\t\terror(';');\n\t\t\t\t//System.out.println(\"ERROR - ';' expected\");\n\t\t\t}\n\t\t\tgetNextToken(); getNextToken();\n\t\t}\n\t\t\n\t\telse if (token == scanner._IDENTIFIER && nextToken == scanner._LPAREN) {\n\t\t\tmethodcall();\n\t\t\tif (nextToken != scanner._SEMIKOLON) {\n\t\t\t\terror(';');\n\t\t\t\t//System.out.println(\"ERROR - ';' expected\");\n\t\t\t}\n\t\t\tgetNextToken(); getNextToken();\n\t\t}\n\t\t\n\t\telse if (token == scanner._RETURN) {\n\t\t\tret();\n\t\t\tif (nextToken != scanner._SEMIKOLON) {\n\t\t\t\terror(';');\n\t\t\t\t//System.out.println(\"ERROR - ';' expected\");\n\t\t\t}\n\t\t\tgetNextToken(); getNextToken();\n\t\t}\n\t\t\n\t\telse if (token == scanner._IF) {\n\t\t\tifstatement();\n\t\t}\n\t\t\n\t\telse if (token == scanner._WHILE) {\n\t\t\twhilestatement();\n\t\t}\n\t\telse {\n\t\t\tdeclaration();\n\t\t\tif (token != scanner._SEMIKOLON) {\n\t\t\t\terror(';');\n\t\t\t\t//System.out.println(\"ERROR - ';' expected\");\n\t\t\t}\n\t\t\tgetNextToken();\n\t\t}\n\t}", "title": "" }, { "docid": "c6816a369e183d9b7d4ea235fe02b101", "score": "0.5229743", "text": "public T caseDeclaration(Declaration object)\n {\n return null;\n }", "title": "" }, { "docid": "7c6fe06d90459333ebcc17ae3fb6fa3e", "score": "0.5229614", "text": "public T caseProgram(Program object)\n {\n return null;\n }", "title": "" }, { "docid": "89b6ee64426beba374f2c921138af429", "score": "0.52194184", "text": "final public Statement DDLStatement() throws ParseException {\n Statement statement;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case CREATE:\n statement = FederationCreateTableStatement();\n break;\n case DROP:\n statement = DropTableStatement();\n break;\n default:\n jj_la1[1] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n {if (true) return statement;}\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "d84a55b515d7ce92730e31941705f7ca", "score": "0.52145106", "text": "public Result pStatement(final int yyStart) throws IOException {\n OberonParserColumn yyColumn = (OberonParserColumn)column(yyStart);\n if (null == yyColumn.chunk3) yyColumn.chunk3 = new Chunk3();\n if (null == yyColumn.chunk3.fStatement) \n yyColumn.chunk3.fStatement = pStatement$1(yyStart);\n return yyColumn.chunk3.fStatement;\n }", "title": "" }, { "docid": "01d04242c8f9d65353ff0fdd967e1010", "score": "0.52109367", "text": "public void caseReturnStmt(ReturnStmt stmt)\n\t\t\t {\n\t\t\t \tValue value = stmt.getOpBox().getValue();\n\t\t\t \tif (!(value instanceof NullConstant)){\n\t\t\t \t\tInvokeExpr vie = Jimple.v().newVirtualInvokeExpr(local, onPostExecuteMethod.makeRef(), value);\n\t\t\t \t\tInvokeStmt onPostExecuteStatement = Jimple.v().newInvokeStmt(vie);\n\t\t\t \t\n\t\t\t \t\tunits.insertBefore(onPostExecuteStatement, stmt);\n\t\t\t \t}\n\t\t\t }", "title": "" }, { "docid": "ee45f2e6ada5a4c6cfd5e4e165406016", "score": "0.5208795", "text": "final public Statement DQLStatement() throws ParseException {\n Statement statement;\n jj_consume_token(SELECT);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case COUNT:\n statement = SelectCountAllTableStatement();\n break;\n default:\n jj_la1[22] = jj_gen;\n if (jj_2_2(2147483647)) {\n statement = SelectGroupStatement();\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case STAR:\n case IDENTIFIER:\n statement = SelectNoGroupStatement();\n break;\n default:\n jj_la1[23] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n }\n {if (true) return statement;}\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "9a6e20f9efd7851da7b05e94058fecb8", "score": "0.52027035", "text": "public B statement(String statement) {\n this.statement = statement;\n return identity();\n }", "title": "" }, { "docid": "48eeeb4dc8ae3ba5b13c4e9d173a1cab", "score": "0.5190417", "text": "public Statement getStmt(String line) {\r\n\t\tint t = line.indexOf(\" \");\r\n\t\tif(t == -1) {\r\n\t\t\tSystem.err.println(\" error : \" + line);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString s1 = line.substring(0, t);\r\n\r\n\t\tint t2 = line.indexOf(\" \", t + 1);\r\n\t\tif( t2 == -1 ) {\r\n\t\t\tSystem.err.println(\" error2 : \" + line);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString s2 = line.substring(t + 1, t2);\r\n\t\tString s3 = line.substring(t2 + 1, line.length() - 2);\r\n\t\treturn new Statement(s1,s2,s3);\r\n\t}", "title": "" }, { "docid": "622316fb59c39be8a6631a2ccc39b6e5", "score": "0.51802874", "text": "public Statement getCurrentStatement() {\n\t\treturn currentStatement;\n\t}", "title": "" }, { "docid": "f9a63b15a1b0b5092ddc7d657f51f275", "score": "0.5175249", "text": "public ProgramState execute(ProgramState state) throws MyException {\n IDictionary<String, IValue> symTbl = state.getSymTable();\n\n if(symTbl.isDefined(id)){\n IValue val = expression.eval(symTbl, state.getHeap());\n IType typeId = (symTbl.lookup(id)).getType();\n if((val.getType()).equals(typeId))\n symTbl.update(id,val);\n else throw new StatementException(\"declared type of variable \" +\n id + \"and type of the assigned expression do not match.\");\n }\n else throw new StatementException(\"the used variable \"+ id+ \" was not declared before\");\n return null;\n }", "title": "" }, { "docid": "9ecc5c4ad8acad693629b7884b1112c9", "score": "0.51495945", "text": "public Statement() {\n }", "title": "" }, { "docid": "b2d43e5e0724ecae5e364dbf46f15dd3", "score": "0.51443094", "text": "public boolean isSimpleStatement() {\n return this.script.getStatementType() == Script.StatementType.SIMPLE;\n }", "title": "" }, { "docid": "a88666fb9896a73143a3bfa3e2d2a59d", "score": "0.51363415", "text": "static short getSqlStmtType(String str) {\n // Kludge to determin if the type of statement.\n //\n String tokens[] = str.split(\"[^a-zA-Z]+\", 3);\n short rt1 = TYPE_UNKNOWN;\n String str3 = \"\";\n\n //\n // If there are no separators (i.e. no spaces, {, =, etc.) in front of\n // the\n // first token, then the first token is the key word we are looking for.\n // Else, the first token is an empty string (i.e. split thinks the first\n // token is the empty string followed by a separator), and the second\n // token is the key word we are looking for.\n //\n if (tokens[0].length() > 0) {\n str3 = tokens[0].toUpperCase();\n } else {\n str3 = tokens[1].toUpperCase();\n }\n\n if ((str3.equals(\"SELECT\")) || (str3.equals(\"SHOWSHAPE\"))\n || (str3.equals(\"INVOKE\")) || (str3.equals(\"SHOWCONTROL\"))\n || (str3.equals(\"SHOWPLAN\"))) {\n rt1 = TYPE_SELECT;\n } else if (str3.equals(\"UPDATE\")) {\n rt1 = TYPE_UPDATE;\n } else if (str3.equals(\"DELETE\")) {\n rt1 = TYPE_DELETE;\n } else if (str3.equals(\"INSERT\") || (str.equals(\"UPSERT\"))) {\n if (str.indexOf('?') == -1) {\n rt1 = TYPE_INSERT;\n } else {\n rt1 = TYPE_INSERT_PARAM;\n }\n } else if (str3.equals(\"EXPLAIN\")) {\n rt1 = TYPE_EXPLAIN;\n } else if (str3.equals(\"CREATE\")) {\n rt1 = TYPE_CREATE;\n } else if (str3.equals(\"GRANT\")) {\n rt1 = TYPE_GRANT;\n } else if (str3.equals(\"DROP\")) {\n rt1 = TYPE_DROP;\n } else if (str3.equals(\"CALL\")) {\n rt1 = TYPE_CALL;\n } else if (str3.equals(\"EXPLAIN\")) {\n rt1 = TYPE_EXPLAIN;\n } else if (str3.equals(\"CONTROL\")) {\n rt1 = TYPE_CONTROL;\n } else {\n rt1 = TYPE_UNKNOWN;\n\n }\n return rt1;\n\n }", "title": "" }, { "docid": "ec112932b49de5451e42664d68f7fcf6", "score": "0.51276994", "text": "public T caseUntilStatement(UntilStatement object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f790e977b67c6bcd64bc5bc0659522b1", "score": "0.5125652", "text": "public Statement createStatement() {\n \t\n Statement statement = null;\n \n try {\n \t\n \tif (connection == null){\n \tSystem.err.println(this.getClass().getName() + \"Error: unable to create Statement object.\");\n \tSystem.exit(-1);\n }\n \t\n statement = connection.createStatement(\n \t\tResultSet.TYPE_SCROLL_INSENSITIVE,\n ResultSet.CONCUR_READ_ONLY);\n\n } catch (SQLException sqle) {\n System.err.println(\"Could not create statement\");\n sqle.printStackTrace();\n }\n \n return statement;\n }", "title": "" }, { "docid": "b0fd2253d509d419006735f304940c97", "score": "0.5118441", "text": "@Override\r\n\tpublic Object visit(ASTreturn_stmt node, Object data) {\n\t\tlogger.log(Level.INFO, \"AST Type not handled: \" + node.getClass());\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "a173a19ad6ea0dfaba4d87e13817e192", "score": "0.5109638", "text": "@Override public Statement createStatement() throws SQLException {\n\t\tthis.checkClosed();\n\t\tif (this.transaction == null && !this.autoCommit) {\n\t\t\tthis.transaction = this.session.beginTransaction();\n\t\t}\n\t\treturn InstanceFactory\n\t\t\t\t.debug(BoltStatement.class, new BoltStatement(this, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY, ResultSet.CLOSE_CURSORS_AT_COMMIT),\n\t\t\t\t\t\tthis.isLoggable());\n\t}", "title": "" }, { "docid": "8e967d16bbfd8cbeeb7783aa655c06a6", "score": "0.5107565", "text": "Optional<T> execute();", "title": "" }, { "docid": "23161000d5debdc91518555d1f7fb104", "score": "0.5081597", "text": "public T caseEvaluation(Evaluation object)\n {\n return null;\n }", "title": "" }, { "docid": "35f4615946524bd31a6c464a510ddd02", "score": "0.5075599", "text": "@Override\n\tpublic Object execute() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f2c64c69641daf7eae1453ebb3c6b353", "score": "0.50736946", "text": "public static OStatement get(String statement, ODatabaseDocumentInternal db) {\n if (db == null) {\n return parse(statement);\n }\n\n OStatementCache resource = db.getSharedContext().getStatementCache();\n return resource.get(statement);\n }", "title": "" }, { "docid": "8063ff0a5b9500d8e407112f0ea9e0d7", "score": "0.50689584", "text": "@Override\r\n\tpublic Object visit(ASTstmt node, Object data) {\n\t\tlogger.log(Level.INFO, \"AST Type not handled: \" + node.getClass());\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "69e15b8526584dcd572b8e01177f6ddf", "score": "0.5062328", "text": "FlowStatement createFlowStatement();", "title": "" }, { "docid": "9700ea554fb3a0f78bdc65133c905afd", "score": "0.50594264", "text": "public AstStatement match_statement(CTokenStream stream, CScope scope) throws Exception {\r\n\t\tAstStatement statement;\r\n\r\n\t\tCToken head = stream.get_token();\r\n\t\tif (head instanceof CKeywordToken) {\r\n\t\t\tswitch (((CKeywordToken) head).get_keyword()) {\r\n\t\t\tcase c89_case:\r\n\t\t\t\treturn this.match_case_statement(stream, scope);\r\n\t\t\tcase c89_default:\r\n\t\t\t\treturn this.match_default_statement(stream, scope);\r\n\t\t\tcase c89_if:\r\n\t\t\t\treturn this.match_if_statement(stream, scope);\r\n\t\t\tcase c89_switch:\r\n\t\t\t\treturn this.match_switch_statement(stream, scope);\r\n\t\t\tcase c89_while:\r\n\t\t\t\treturn this.match_while_statement(stream, scope);\r\n\t\t\tcase c89_do:\r\n\t\t\t\treturn this.match_do_while_statement(stream, scope);\r\n\t\t\tcase c89_for:\r\n\t\t\t\treturn this.match_for_statement(stream, scope);\r\n\t\t\tcase c89_goto:\r\n\t\t\t\treturn this.match_goto_statement(stream, scope);\r\n\t\t\tcase c89_continue:\r\n\t\t\t\treturn this.match_continue_statement(stream, scope);\r\n\t\t\tcase c89_break:\r\n\t\t\t\treturn this.match_break_statement(stream, scope);\r\n\t\t\tcase c89_return:\r\n\t\t\t\treturn this.match_return_statement(stream, scope);\r\n\t\t\tdefault:\r\n\t\t\t\tstatement = null;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} else if (head instanceof CPunctuatorToken) {\r\n\t\t\tswitch (((CPunctuatorToken) head).get_punctuator()) {\r\n\t\t\tcase left_brace:\r\n\t\t\t\tstatement = this.match_compound_statement(stream, scope);\r\n\t\t\t\tbreak;\r\n\t\t\tcase semicolon:\r\n\t\t\t\tstatement = this.match_expression_statement(stream, scope);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tstatement = null;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} else if (head instanceof CIdentifierToken) {\r\n\t\t\t/* identifier : */\r\n\t\t\tstatement = this.match_label_statement(stream, scope);\r\n\t\t\t/* expression | specifiers */\r\n\t\t} else\r\n\t\t\tstatement = null;\r\n\r\n\t\tif (statement == null) {\r\n\t\t\tif ((statement = this.match_declaration_statement(stream, scope)) == null)\r\n\t\t\t\tstatement = this.match_expression_statement(stream, scope);\r\n\t\t}\r\n\t\treturn statement;\r\n\t}", "title": "" }, { "docid": "653e8dfbbf3ca7e5a1f3836e1d72c1a8", "score": "0.5053966", "text": "@Override\n\tpublic void visit(ReturnStatementWrapper returnStatement) {\n\t}", "title": "" } ]
e152b73f3e2d77ca886a37456963d7bf
this allows other classes to access private variables
[ { "docid": "d95badb082300cc9ca5c7fdfa39103e2", "score": "0.0", "text": "public String getScore() {\n return scoreString;\r\n }", "title": "" } ]
[ { "docid": "2a2ff5b452481dad51d49c7c066db687", "score": "0.69900906", "text": "public void privateVariablesOfOuterClassAreNOTAvailable() {\n\t\t}", "title": "" }, { "docid": "f4701dd3165b9a2c8348b1b05e303cf3", "score": "0.63698184", "text": "void getVariables() {\n\t\t/*\n\t\t * has access to age, as age is public in the Employee class, so age is directly inherited\n\t\t * from the Employee\n\t\t */\n\t\tSystem.out.println(\"can access age \"+age);\n\t\t/*\n\t\t * can't access name as name has default level access in the Employee class.\n\t\t * so only classes in the same package can inherit this variables\n\t\t */\n\t\t//System.out.println(\"cannot access name \"+name);\n\t\t/*\n\t\t * can't access phoneNumber as phoneNumber has private level access, so \n\t\t * this variable can't be inherited\n\t\t */\n\t//\tSystem.out.println(\"cannot inherit phoneNumber \"+phoneNumber);\n\t\t/*\n\t\t * CAN access eamil as the variable email in the Employee class has protected\n\t\t * level access, which means it can be inherited by any class regardless of\n\t\t * it's location, even if in a different package as we are in this \n\t\t * situation\n\t\t */\n\t\tSystem.out.println(\"can access email \"+email);\n\t\t\n\t}", "title": "" }, { "docid": "88f057c5ddba99cea611c787af316ffc", "score": "0.62795687", "text": "public/*private*/ int returnPrivateValue(){\n return 10;\n }", "title": "" }, { "docid": "878017d5adaec2303156ab1dbb796029", "score": "0.6203573", "text": "public void keyPrivateVariablesToLayout()\n {\n }", "title": "" }, { "docid": "e0c094d83d14ff81389cf2b976bc6f8b", "score": "0.61791956", "text": "private MeineEingabe()\n\t{\n\t}", "title": "" }, { "docid": "56c51086a621570c02553d60b5790117", "score": "0.6109324", "text": "public static void main(String[] args) {\n\n System.out.println(c02_TestData.publicData);\n System.out.println(c02_TestData.protectedData);\n System.out.println(c02_TestData.defaultData);\n // System.out.println(TestData.privateData); PRIVATE VARIABLE CAN NEVER BE INHERITED\n\n }", "title": "" }, { "docid": "b00b1ba1e4ee3e0d67f2441db3374e0f", "score": "0.6079557", "text": "public void test() {\n this.v3 = 3; // protected. 상속 받아서 만든 변수이기 때문에 가능!\n this.v4 = 4; // public \n }", "title": "" }, { "docid": "38851c75026b8123de3303a5580d0f91", "score": "0.607658", "text": "@SuppressWarnings(\"unused\")\n\tprivate void printprivate(){\n\t\tSystem.out.println(\"Private printing\");\n\t}", "title": "" }, { "docid": "926b3cdd6181f06850d736ae311bcc07", "score": "0.60348266", "text": "private Goods() {\r\n\t\t}", "title": "" }, { "docid": "6d7069fa608e06a57fb2f51efa9f48b4", "score": "0.5988876", "text": "@Test\n public void readAndWritePrivateField() throws IllegalAccessException {\n Field secretField = FieldUtils.getField(ClassWithFields.class, \"secretField\", true);\n assertNotNull(secretField);\n\n ClassWithFields object = new ClassWithFields();\n assertEquals(1234L, FieldUtils.readField(secretField, object, true));\n\n FieldUtils.writeField(secretField, object, 1L);\n assertEquals(1L, FieldUtils.readField(secretField, object, true));\n\n }", "title": "" }, { "docid": "d4bafd358bfa0ab07bb950f1dc1698b8", "score": "0.59340495", "text": "public boolean getPrivate() {\n return private_;\n }", "title": "" }, { "docid": "a2841cf730ef44181ecd36db1171e772", "score": "0.5792655", "text": "@Override\n protected void initVariable()\n {\n }", "title": "" }, { "docid": "90d20452cf9033e6bb03f4b6c41fb205", "score": "0.5780135", "text": "private Types$ClassOwnership() {\n void var2_-1;\n void var1_-1;\n }", "title": "" }, { "docid": "cda044ba95e62912624f9c220de81ab3", "score": "0.5772918", "text": "public boolean getPrivate() {\n return private_;\n }", "title": "" }, { "docid": "f684b7a9dbaae0dbce1e934955ddee4b", "score": "0.5761286", "text": "private AgentVariableNumbers() { throw new IllegalStateException(); }", "title": "" }, { "docid": "6cfcc75b7d66c4f0afec5f424062c66c", "score": "0.57163745", "text": "MemberAccess createMemberAccess();", "title": "" }, { "docid": "6f1de78e36c6c68810b4c1292eb4025e", "score": "0.56890285", "text": "Map<String, Object> getPublicVariables();", "title": "" }, { "docid": "91c5ffb33b8897322cc4e4e840f463e7", "score": "0.5678084", "text": "public CircleWithPrivateFields() {\r\n\t\tnumberOfObjects++;\r\n\t}", "title": "" }, { "docid": "64cc4da84ec94f4cb4c74bfe22d7ac58", "score": "0.5674594", "text": "private Modifiers() {\n //instance = new Modifiers();\n landModifiers = new HashMap<>();\n raceModifiers = new HashMap<>();\n this.setLandModifiers();\n this.setRaceModifiers();\n }", "title": "" }, { "docid": "7e2b7dc2d9c9c8b8fbc9a04ccdbfdc9d", "score": "0.5648555", "text": "protected Element getPrivateElement() {\n return privateElement;\n }", "title": "" }, { "docid": "68c5b7bb1ba0a6d1507f5267b0f6f60f", "score": "0.5644692", "text": "@Override\r\n\tpublic boolean isAccessible() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "a86121f6fc08cde95dc57ed2aefbedbf", "score": "0.5640496", "text": "public void set_private(boolean _private) {\n this._private = _private;\n }", "title": "" }, { "docid": "a4983e14ec43c55445dae91d9bf12311", "score": "0.5630069", "text": "public boolean is_private() {\n return _private;\n }", "title": "" }, { "docid": "801d42f7a5143dbe991cd055d1c6e431", "score": "0.5622757", "text": "public String getSomeEncapsulatedVariable() {\n return someEncapsulatedVariable;\n }", "title": "" }, { "docid": "07c89db37cb6142eb24059af0a4efcf8", "score": "0.56205255", "text": "protected void initVariables() {\n\t\t\n\t}", "title": "" }, { "docid": "94d4c16ca52c36475337475d59c1b7d0", "score": "0.56176823", "text": "private Blueprint() {\n \t\t// This class is not intended to create objects from it.\n \t}", "title": "" }, { "docid": "f19bb1e9367b152ac126eb73df33ca41", "score": "0.5601508", "text": "boolean getIsPrivate();", "title": "" }, { "docid": "a55a117206823f1c09b2ed1fbc8a44d9", "score": "0.5600352", "text": "private Utilities() {}", "title": "" }, { "docid": "5862a1a342c325b867ea49d1ed53b115", "score": "0.55861056", "text": "private Rehearsal() {}", "title": "" }, { "docid": "84b9340c47068d8470df7f16c112c610", "score": "0.5580706", "text": "@Override\r\n\tprotected void initVariable() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9fa05525eee63ba9eac5e76b9d670c1", "score": "0.55764467", "text": "protected Object getUserVar(String key)\n {\n Object o = internalGet(key);\n if (o != null)\n {\n return o;\n }\n return getAttribute(key);\n }", "title": "" }, { "docid": "d31d5839f68ff6d0f01a718afcacf5e6", "score": "0.556587", "text": "public void innerShow(){\n //静态内部类不能访问外部类的非静态成员\n //System.out.println(Outer2.this.num3);\n }", "title": "" }, { "docid": "59bcd77b46f6363b0b0bb352757addc8", "score": "0.55520576", "text": "boolean returnAccessible(){\r\n return false;\r\n }", "title": "" }, { "docid": "7bdcd461c4027beebff2f9801ea2ff5a", "score": "0.55445987", "text": "private LoginProperties() {\n // Private constructor to hide the default public one.\n throw new IllegalAccessError(\"Instantiation prohibited\");\n }", "title": "" }, { "docid": "b401879ecfa8fa220c09fde93c4e0cb3", "score": "0.55362535", "text": "protected AbstractVariableInfo() {\n }", "title": "" }, { "docid": "c94fd18b2bdc5f7ee80a507921ae8499", "score": "0.5528889", "text": "public boolean isPrivate() {\n return isPrivate;\n }", "title": "" }, { "docid": "7a83d28a4978e5fe61d7ada98eaf2d1e", "score": "0.55263495", "text": "public boolean getIsPrivate() {\n return isPrivate_;\n }", "title": "" }, { "docid": "afd4a463e1a5b7aaccfd36aa1d8b028f", "score": "0.55245197", "text": "private bookUtilities() {\n //using private constructors ensuring that no more than one instance for this class\n }", "title": "" }, { "docid": "0a93bd9d2a812cd369ad8a4c013ec3fc", "score": "0.5520916", "text": "private AuthProperties() {\n\n\t}", "title": "" }, { "docid": "ef1c722c010f4c40ac95c2762fec6944", "score": "0.551554", "text": "@SuppressWarnings(\"unused\")\n private AccessUserAspectData() {\n\n }", "title": "" }, { "docid": "bb9e4a4f70b97fe2a828ddd0aeaf2822", "score": "0.5515505", "text": "@Override\r\n \tpublic boolean isPublic() {\n \t\treturn false;\r\n \t}", "title": "" }, { "docid": "8ab0403aaa2a37b93ed3e3822bab939e", "score": "0.5512139", "text": "public java.lang.String getAccessObjectName(){\n return localAccessObjectName;\n }", "title": "" }, { "docid": "4b08bd1d6b1affa13861a578aaf2daa0", "score": "0.5507737", "text": "private AktuelleSpieldaten() {\n }", "title": "" }, { "docid": "3af909c6e4a361b085a56339ca8faaee", "score": "0.5507326", "text": "PrivateConstructor() {}", "title": "" }, { "docid": "4b71c66c3a5004e581d0e3bdf171f981", "score": "0.5475048", "text": "public void swim() {\n\t\tfloatInWater();\t\t\t\t// package access to the super class members with protected visibility\n\t\tSystem.out.println(text); // package access to the super class members with protected visibility\n\t}", "title": "" }, { "docid": "c6df247f3a62d41a4eb3195970bed34b", "score": "0.54724133", "text": "void setPrivate(Boolean aIsPrivate);", "title": "" }, { "docid": "c3cf4e632dede30ed3e1bec4ad3cfae6", "score": "0.547222", "text": "private int privateMtd() {\n return 1;\n }", "title": "" }, { "docid": "08eeff115541467ce242702c09ca33da", "score": "0.5471814", "text": "private CodeCamp() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "64868a38b259efbfd4a2b9d0bea646a5", "score": "0.546309", "text": "public boolean isPrivate() {\n return isPrivate;\n }", "title": "" }, { "docid": "b1df61a1aeecded222cf749c006b5e74", "score": "0.5459708", "text": "private Object m1938a(Object obj) {\n try {\n Field declaredField = obj.getClass().getDeclaredField(\"this$0\");\n declaredField.setAccessible(true);\n obj = declaredField.get(obj);\n return obj;\n } catch (Exception e) {\n e.printStackTrace();\n return obj;\n }\n }", "title": "" }, { "docid": "38b173c1686d7b4ae974dbea68cde43a", "score": "0.54592854", "text": "Boolean isPrivate();", "title": "" }, { "docid": "8c675938c9e35dde26173dd03e8e8b87", "score": "0.54517317", "text": "private Straight() { }", "title": "" }, { "docid": "6ade982714b0fbb9064781b09175d4ef", "score": "0.5426299", "text": "private Poseur() {}", "title": "" }, { "docid": "6506298427a24423b96a407741c9b009", "score": "0.5409632", "text": "public static void main(String[] args) { because it is package private\n //Classroom classroom = new Classroom(101, \"\"Mrs. asnd\");\n /*System.out.println(classroom.floor); // it compiles, because floor in public in Classroom.\n System.out.println(classroom.roomNumber); // does not compile\n System.out.println(classroom.teacherName);*/ // does not compile\n }", "title": "" }, { "docid": "62bddba283240fea09ddfde51d6d92b0", "score": "0.5406196", "text": "protected ClassesEx5() {\n //We choose to print the varables in the constructor. This is'nt necessary \n }", "title": "" }, { "docid": "2d2a6de9fc6399c4aae3ce1fe28ea18d", "score": "0.54053265", "text": "private MSCGUIParameters() {\n\t\t//. private constructor as per singleton design pattern\n\t}", "title": "" }, { "docid": "d63591762c6c042e8a2184a1ff14f309", "score": "0.5400221", "text": "public boolean getIsPrivate() {\n return isPrivate_;\n }", "title": "" }, { "docid": "0d5fa211bc7e8eff8933f0ab2448e25a", "score": "0.5380137", "text": "void ensureAccessible() {\n if (!isAccessible()) {\n throw new IllegalReferenceCountException(0);\n }\n }", "title": "" }, { "docid": "2d27e68ca7cc383c5b94ac3d012f85fb", "score": "0.5374283", "text": "private Util() {\n\t\t// This class should not be instantiated.\n\t}", "title": "" }, { "docid": "661922bba066cce4ebeee574c161e397", "score": "0.53640586", "text": "public static void main(String[] args) {\n MyMobile kidObj= new MyMobile ();\r\n \r\n float amps = kidObj.amps;\r\n System.out.println(\"Amp value is\" + amps);\r\n kidObj.makeCalls();\r\n kidObj.takepics();\r\n //kidObj.payMoney (); //cannot be accessed because of private method access modifier\r\n \r\n\t}", "title": "" }, { "docid": "388723eb339bd5ed6acdc62640593805", "score": "0.53618234", "text": "public void getVariables() {\n\t\t\n\t\tSystem.out.println(\"Variable value from child class = \" + dualVar); //By default variable returns SuperChild i.e. local class variables\n\t\t//In order to get the variable from SuperParent then you need to use the keyword 'Super'\n\t\tSystem.out.println(\"Variable value from parent class = \" + super.dualVar);\n\t\t\n\t}", "title": "" }, { "docid": "01129d95bb135289de9e01d7c6bf1492", "score": "0.5356433", "text": "protected VarInstance_c() {\n }", "title": "" }, { "docid": "69ade76a69c0f6c07e66b5d0e5136eb3", "score": "0.5354325", "text": "@Override\r\n\tpublic void grabar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fa3c1ffdef322e53c7b60ca3257ca604", "score": "0.5353727", "text": "public void stampapotenze () {\n\t\tSystem.out.println(allanona);\n\t\t// System.out.println(alladecima); // NO: attributo private!\n\t\tSystem.out.println(allundicesima); // OK: attributo protected!\n\t}", "title": "" }, { "docid": "58d00f0d45562bbac88f9fdd4289b689", "score": "0.5339327", "text": "private BreachedState() {\n\t\tinstance = this;\n\t}", "title": "" }, { "docid": "9f7e686715cd5824fae5962a28f90f83", "score": "0.53390855", "text": "private LiveVariables() {\n variableClassification = null;\n liveVariablesStrings = null;\n globalVariables = null;\n evaluationStrategy = null;\n language = null;\n liveVariables = null;\n globalVariablesStrings = null;\n }", "title": "" }, { "docid": "6acf0cae4ad87be5089d2e4e4f644059", "score": "0.53384966", "text": "public void localVariablesModifiers() {\r\n\t\t// No compila, ni ningun otro modificador de acceso\r\n\t\t// private int something = 0;\r\n\r\n\t\t// Solo se puede usar este modificador, claro que este no es de acceso\r\n\t\tfinal int something1 = 0;\r\n\t}", "title": "" }, { "docid": "b29b2e1c2dea44ede662b932033c69fe", "score": "0.53368014", "text": "private Field(java.lang.reflect.Field field) {\n field.setAccessible(true);\n this.field = field;\n }", "title": "" }, { "docid": "05376175828876d05086b6c82df71fe4", "score": "0.5326359", "text": "private Utils() {\n\t}", "title": "" }, { "docid": "6a9515ad8f8d063c3746db0262336216", "score": "0.532444", "text": "private DSSUtils() {\n\t}", "title": "" }, { "docid": "3c2ef4f872b58a67d35b734fae9f1a26", "score": "0.532015", "text": "playerPosition(int posValue){ /**< Constructor assigning value to private variable.*/\n this.positionValue = posValue;\n }", "title": "" }, { "docid": "569891d67693a0097a7e2a3ddaf58d39", "score": "0.5317277", "text": "public void method_4727() {\r\n super.method_4727();\r\n class_1220 var10001 = new class_1220;\r\n var10001.method_6510();\r\n this.field_3826 = var10001;\r\n }", "title": "" }, { "docid": "0fdbc6843d6e97703e45d1746e460b4d", "score": "0.531622", "text": "private Fields() {\n super();\n }", "title": "" }, { "docid": "6129b870575b03be33a02824c80157e6", "score": "0.53150916", "text": "private static boolean isPublicVar(String accessModifier)\n\t{\n\t\tif (accessModifier.startsWith(\"public\"))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2d4afb03ee722e0e9b7ed69049bdd20d", "score": "0.5301923", "text": "private TypicalPassengers() {\n }", "title": "" }, { "docid": "28ddf50fca7f0d417843ad12c9b9a4ca", "score": "0.5296123", "text": "public GlobalVars()\n\n {\n\n LOGGER.debug(\"Creating class GlobalVars.\");\n\n ht = new Hashtable();\n\n pt = new Hashtable();\n\n }", "title": "" }, { "docid": "79ce12f272d5106e01a9b1d19142b02c", "score": "0.5295124", "text": "private ObjectUtils()\n\t{\n\t\tsuper();\n\t}", "title": "" }, { "docid": "9a8a8dce6656b248d8c5c7bbf7beda3d", "score": "0.52920693", "text": "@Override\n\tpublic IBasicObject getAccessedWithinVar() {\n\t\treturn heldObj.getAccessedWithinVar();\n\t}", "title": "" }, { "docid": "991ee3f02d58c17ed29cb3a6eb2362b3", "score": "0.52909803", "text": "@Before\n\tpublic void setup() {\n\t\t//Source for this code: https://stackoverflow.com/questions/40515021/resetting-a-private-static-int-from-a-junit-test-class\n\t\tField number = null;\n\t\ttry {\n\t\t\tnumber = Reservation.class.getDeclaredField(\"number\");\n\t\t} catch (NoSuchFieldException | SecurityException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t number.setAccessible(true); //to overcome the visibility issue\n\t try {\n\t\t\tnumber.setInt(null, 1000); //null since it's static, reset back to 1000 for each test so Reservation IDs increment in a predictable manner\n\t\t} catch (IllegalArgumentException | IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "title": "" }, { "docid": "07e2408c18a515b9a5e737975799eda9", "score": "0.5288511", "text": "private CastTrouble() {\n\n\t}", "title": "" }, { "docid": "ad0936fa557c3f329af3d1d731141efa", "score": "0.5279007", "text": "private InstanceHolder() {}", "title": "" }, { "docid": "eaf74ca8e264ae69325646e1f98f40ae", "score": "0.52582675", "text": "private staticMethods(){\n\n }", "title": "" }, { "docid": "34bcf88f42c7b2d741a02daeb6a16071", "score": "0.5257499", "text": "private Bibles() {\n }", "title": "" }, { "docid": "3c893f9b28d4a1c2fe1a405754c53267", "score": "0.5254419", "text": "private UserMission() {\n\t}", "title": "" }, { "docid": "bd85f960477fc1f0f9e121030cc75d13", "score": "0.5254391", "text": "void getvalues(int a, int b) { // method variables or external variables\r\n\t\tthis.a = a;\r\n\t\tthis.b = b;\r\n\t}", "title": "" }, { "docid": "3373ef9d98f0dc2be9318318c7718907", "score": "0.5254135", "text": "private void setPrivateField(String name, Object value) throws Exception {\r\n Field field = StudioServiceBean.class.getDeclaredField(name);\r\n try {\r\n field.setAccessible(true);\r\n field.set(bean, value);\r\n } finally {\r\n if (field != null) {\r\n field.setAccessible(false);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "35cf3d3ca940106b79ad2c28442d6c81", "score": "0.52497965", "text": "protected abstract void initVariables();", "title": "" }, { "docid": "d1f63134a2d74b58b1c402eb3f19d01e", "score": "0.52460945", "text": "public Boolean getPubliclyAccessible() {\n return publiclyAccessible;\n }", "title": "" }, { "docid": "3d5ea6d1133a37d74397fb9e64413b46", "score": "0.5242992", "text": "public boolean isPrivate() { return (this.accessMode == 4); }", "title": "" }, { "docid": "ef9d9d686ef462db479395772ef0395c", "score": "0.52389437", "text": "private BagInfoTags() {\n // Utility classes shouldn't have a public constructor\n }", "title": "" }, { "docid": "ef57662b2f1f19191edaf3ee1a0ed0f0", "score": "0.52344203", "text": "private void pri() {\n System.out.println(\"Private: Base\");\n }", "title": "" }, { "docid": "a6fcfe632fb7d11a82c755776843bc99", "score": "0.52337027", "text": "public int getAge(){\n return localAge;\n }", "title": "" }, { "docid": "2db8da7a0b4ce05927eb53a67522dbe3", "score": "0.5232885", "text": "private Instance()\n\t{\n\t}", "title": "" }, { "docid": "f2c35983ed7c093407f2f7597c52b0bb", "score": "0.5224827", "text": "private Container(){\n\t}", "title": "" }, { "docid": "3d76ce705647141a43814d0fcf5d05d0", "score": "0.52239615", "text": "public static void something(){\n System.out.println(\"Only accessible inside the class\");\n }", "title": "" }, { "docid": "7f3eb11c63a911dda4f4969358b82d6e", "score": "0.52234596", "text": "public void setLateProperties() {\r\n }", "title": "" }, { "docid": "72a3d38ade73ca5954739b3122fc38a1", "score": "0.52214366", "text": "void display()\n\t {\n\t System.out.println(\"outer_x = \" + outer_x);\n\t \n\t // can also access non-static member of outer class\n\t System.out.println(\"outer_y = \" + outer_y);\n\t \n\t // can also access private member of outer class\n\t System.out.println(\"outer_private = \" + outer_private);\n\t \n\t }", "title": "" }, { "docid": "80113d5a9eb35bf606ea5211a695392c", "score": "0.5220204", "text": "private Utilitati() {\n // throw new IllegalStateException(\"Utiles class\");\n }", "title": "" }, { "docid": "579443f4bd7383572eef9783f3e32cff", "score": "0.5218216", "text": "@Test\r\n\tpublic void thisIsHowUcanAccessVaribleFromDiffClassLocatedInDiffPackage()\r\n\t{\n\t\tobjTestNG_Demo = new TestNG_Demo();\r\n\t\tSystem.out.println(\"Accessing 'projectPath' variable which is declared as 'static', located in 'test' package > 'TestNG_Demo' class ..and it's value is: \" + TestNG_Demo.projectPath);\r\n\t}", "title": "" }, { "docid": "48d832cba72b03e2392b7b32ee51957c", "score": "0.5216995", "text": "private SCFightGuo() {\n initFields();\n }", "title": "" }, { "docid": "4c9e1950e145daf8a9b69d966a5dc2cb", "score": "0.52144", "text": "public HDTV(String brand,int size){//Here public is a access modifier which defines who can access this method\r\n\t this.brand=brand;\r\n\t this.size=size;\r\n\t \r\n}", "title": "" } ]
4231226c059854454201e6cbf5190311
This method receives two parameters. The first parameter is the page in which we have discovered this new url and the second parameter is the new url. You should implement this function to specify whether the given url should be crawled or not (based on your crawling logic). In this example, we are instructing the crawler to ignore urls that have css, js, git, ... extensions and to only accept urls that start with " In this case, we didn't need the referringPage parameter to make the decision.
[ { "docid": "9c45267131cbb015b79ad05f47fb9ba5", "score": "0.6788563", "text": "@Override\n\tpublic boolean shouldVisit(Page referringPage, WebURL url) {\n\t\t//\n\t\tSystem.out.println(\"URL: \" + url);\n\t\t//\n\t\tString href = url.getURL().toLowerCase().replaceAll(\",\", \"-\");\n\t\tSystem.out.println(\"new URL: \" + url);\n\t\tPrintWriter pw1 = null;\n\t\ttry {\n\t\t\tpw1 = new PrintWriter(new FileOutputStream(new File(\"urls_FOX_News.csv\"),true));\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tStringBuilder sb1 = new StringBuilder();\n\t\tsb1.append(url.toString().replaceAll(\",\", \"-\"));\n\n\t\tif(href.startsWith(\"https://www.foxnews.com/\")||href.startsWith(\"http://www.foxnews.com/\")) {\n\t\t\tsb1.append(\",OK\\n\");\n\t\t} else {\n\t\t\tsb1.append(\",N_OK\\n\");\n\t\t}\n\t\tpw1.write(sb1.toString());\n\t\tpw1.close();\n\t\treturn !FILTERS.matcher(href).matches() && href.startsWith(\"https://www.foxnews.com/\") ||href.startsWith(\"http://www.foxnews.com/\");\n\t}", "title": "" } ]
[ { "docid": "394ba57e7d740faa9ba260985e84ac33", "score": "0.6802177", "text": "@Override\n public boolean shouldVisit(Page referringPage, WebURL url) {\n String href = url.getURL().toLowerCase();\n\n // Filter filetypes\n if (Pattern.compile(getFiletypeFilter()).matcher(href).find()) {\n return false;\n }\n\n // Filter domain\n if (!href.startsWith(getRootURL())) {\n return false;\n }\n\n // Filter excluded URLs\n for (String exclude : getURLExcludes()) {\n if (href.startsWith(exclude) || href.equals(exclude)) {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "d0c3f36dcbc137d224b542160be63761", "score": "0.56843877", "text": "public boolean URLCrawled(String url){\n\t\treturn crawledUrl.contains(url);\n\t}", "title": "" }, { "docid": "a0b8875117c982e69c89a603c3e7d9cd", "score": "0.54907", "text": "public void crawling () {\n\t\tfor (; limitPages > 0 && !crawledList.isEmpty (); limitPages--) {\n\t\t\t//Convert string to link and check it\n\t\t\tURL link = checkURL.createURL (crawledList.poll ());\n\n\t\t\tif (link != null) {\n\t\t\t\t//Search for words and links\n\t\t\t\tcheckPage.finder (link, forbiddenLinks, terms);\n\t\t\t\t//Check for matching words\n\t\t\t\tif (checkPage.isWordMatch ()) {\n\t\t\t\t\tList<Integer> countWords = checkPage.getCountWords ();\n\t\t\t\t\tfoundLinks.put (link.toString (), new ArrayList<> (countWords));\n\t\t\t\t}\n\t\t\t\t//Adding found links\n\t\t\t\tSet<String> searchLinks = checkPage.getSearchLinks ();\n\t\t\t\tif (searchLinks != null){\n\t\t\t\t\tcrawledList.addAll (searchLinks);\n\t\t\t\t}\n\t\t\t\t//Add the current URL to the list of already used\n\t\t\t\tforbiddenLinks.add (link.toString ());\n\t\t\t} else break;\n\n\t\t}\n\t\tshowResult ();\n\t}", "title": "" }, { "docid": "41e1fffa2fdad60588e30770d558c77d", "score": "0.5482891", "text": "@Override\r\n public boolean processURL() {\n CrawlStatus status = config.getHttpDocumentFetcher().fetchDocument(\r\n httpClient, doc);\r\n \r\n \r\n //TODO Fix #17. Put in place a more permanent solution to this line\r\n TargetURLRedirectStrategy.fixRedirectURL(\r\n httpClient, doc, crawlURL, database);\r\n //--- END Fix #17 ---\r\n \r\n \r\n if (status == CrawlStatus.OK) {\r\n HttpCrawlerEventFirer.fireDocumentFetched(\r\n crawler, doc, config.getHttpDocumentFetcher());\r\n }\r\n crawlURL.setStatus(status);\r\n if (crawlURL.getStatus() != CrawlStatus.OK) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "3a9af0ddd6af5217c7b140bd66f030c4", "score": "0.53862244", "text": "@Override\r\n public boolean processURL() {\n IHttpDocumentChecksummer check = \r\n config.getHttpDocumentChecksummer();\r\n if (check == null) {\r\n return true;\r\n }\r\n String newDocChecksum = check.createChecksum(doc);\r\n crawlURL.setDocChecksum(newDocChecksum);\r\n String oldDocChecksum = null;\r\n CrawlURL cachedURL = database.getCached(crawlURL.getUrl());\r\n if (cachedURL != null) {\r\n oldDocChecksum = cachedURL.getDocChecksum();\r\n } else {\r\n LOG.debug(\"ACCEPTED document checkum (new): URL=\" \r\n + crawlURL.getUrl());\r\n return true;\r\n }\r\n if (StringUtils.isNotBlank(newDocChecksum) \r\n && ObjectUtils.equals(newDocChecksum, oldDocChecksum)) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"REJECTED document checkum (unmodified): URL=\" \r\n + crawlURL.getUrl());\r\n }\r\n crawlURL.setStatus(CrawlStatus.UNMODIFIED);\r\n return false;\r\n }\r\n LOG.debug(\"ACCEPTED document checkum (modified): URL=\" \r\n + crawlURL.getUrl());\r\n return true;\r\n }", "title": "" }, { "docid": "636da897ae426af153d48c05bce4bd23", "score": "0.5192903", "text": "public boolean addURL(String url){\n\t\treturn crawledUrl.add(url);\n\t}", "title": "" }, { "docid": "c693af938190e0932899371214c9c2f2", "score": "0.5069774", "text": "@Override\n\t\t\tpublic boolean shouldOverrideUrlLoading(WebView view, String url) {\n\t\t\t\t// This line we let me load only pages inside Firstdroid Webpage\n\t\t\t\t// if ( url.contains(\"firstdroid\") == true )\n\t\t\t\t// //Load new URL Don't override URL Link\n\t\t\t\t// return false;\n\t\t\t\tmProgress.show();\n\n\t\t\t\tview.loadUrl(url);\n\n\t\t\t\t// Return true to override url loading (In this case do\n\t\t\t\t// nothing).\n\t\t\t\treturn true;\n\n\t\t\t}", "title": "" }, { "docid": "08820f1b446e3c5c94a6f86db3b31528", "score": "0.50423265", "text": "public void rateAndStorePagesStartingAtUrl(String startingUrl) throws SQLException { \n db.runSql_bool(\"TRUNCATE \"+this.pageRatingsTable+\";\");\n db.runSql_bool(\"TRUNCATE \"+this.pagesVisitedTable+\";\");\n \n while(db.tableSize(this.pagesVisitedTable) < MAX_PAGES_TO_SEARCH) {\n String currentUrl;\n if(this.pagesToVisit.isEmpty()) {\n System.out.println(ANSI_RED+\"pagesToVisit is empty (should only occur at start!)\"+ANSI_RESET);\n if(this.toVisitIsEmptyCount > 1) return;\n \n currentUrl = startingUrl;\n db.storeUrlVisitedInTable(this.pagesVisitedTable, startingUrl);\n }\n else {\n currentUrl = this.getNextUrl(); \n db.storeUrlVisitedInTable(this.pagesVisitedTable, currentUrl);\n }\n \n \n TestLeg leg = new TestLeg();\n boolean crawlSuccessful = leg.crawl(currentUrl);\n if(crawlSuccessful) {\n System.out.println(ANSI_RED+\"crawlSuccessful\"+ANSI_RESET);\n this.pagesToVisit.addAll(leg.getLinks());\n\n //check if the given URL is already in database (may be redundant with getNextUrl())\n if(! db.tableContainsColumnValue(this.pageRatingsTable, \"url\", currentUrl)) {\n db.storeRatingPageInTable(this.pageRatingsTable, leg.getPageRating(), currentUrl);\n }\n \n } else {\n this.pagesVisitedUnsuccessfully.add(currentUrl);\n }\n }\n\n JOptionPane.showMessageDialog(null, \n \"Crawler has finished\\nVisited \"+db.tableSize(this.pagesVisitedTable)+\" web page(s)\", \n \"Crawler run has ended\", JOptionPane.INFORMATION_MESSAGE);\n System.out.println(\"\\nUnsuccessful crawls:\");\n for(String url : this.pagesVisitedUnsuccessfully) {\n System.out.println(url);\n }\n System.out.println(ANSI_RED+\"robotCheckUsed in leg: \"+TestLeg.robotCheckUsed+ANSI_RESET);\n \n }", "title": "" }, { "docid": "aa2f285c512e9f34521d4f6484c9e098", "score": "0.50036424", "text": "boolean processUrl(String url, Context ctx);", "title": "" }, { "docid": "b1bf10117d0a965acc93b97870b976c6", "score": "0.49924067", "text": "public void Crawl(String urlString)\n {\n try {\n Document doc = Jsoup.connect(urlString).get();\n System.out.println(\"Downloading \" + urlString);\n int i = 0;\n //Download the page\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"WebPages/page\" + (pagesCount) + \".html\"));\n pagesCount++;\n writer.write(doc.toString());\n writer.flush();\n writer.close();\n //Extract URLs\n Elements hrefs = doc.select(\"a\");\n for (Element href : hrefs) {\n String absLink = href.attr(\"abs:href\");\n dbManager.InsertCrawlerURL(absLink);\n i++;\n if (i > 50)\n break;\n }\n System.out.println(urlString + \" Downloaded\");\n } catch (IOException e) {\n e.printStackTrace();\n } catch (Exception e) {\n System.out.println(\"An exception occured while crawling \" + urlString + \" web page!\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "07115753a6ffff957f911f7523755cc0", "score": "0.48942482", "text": "public boolean shouldVisit(WebURL url) {\n\t\tString href = url.getURL().toLowerCase();\n\t\tif (filters.matcher(href).matches()) {\n\t\t\treturn false;\n\t\t}\n\t\tif (href.startsWith(\"http://www.kostina-golf.com\")) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (href.startsWith(\"http://search.ask.\")) {\n\t\t\treturn false;\n\t\t}\n\t\tif (href.startsWith(\"http://www.google.\")) {\n\t\t\treturn false;\n\t\t}\n\t\tif (href.startsWith(\"http://gigablast.com/\")) {\n\t\t\treturn false;\n\t\t}\n\t\tif (href.startsWith(\"http://www.bing.\")) {\n\t\t\treturn false;\n\t\t}\n\t\tif (href.startsWith(\"http://search.yippy.com/\")) {\n\t\t\treturn false;\n\t\t}\n\t\tif (href.startsWith(\"http://search.yahoo.com\")) {\n\t\t\treturn false;\n\t\t}\n\t\tif (href.startsWith(\"http://search.aol.com/\")) {\n\t\t\treturn false;\n\t\t}\n\t\tif (href.startsWith(\"http://search.lycos.\")) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "63a4ae3f2395e8742425931dbbdc29eb", "score": "0.48851642", "text": "public void visitLinks(){\n //Getting the html in page at seed url\n String seedHtml = this.getPage(this.seedUrl, 0);\n \n //If there is nothing at seed Url, then inform the user we cannot proceed\n if(seedHtml.equals(\"\")){\n System.out.println(\"Cannot crawl SEED_URL\");\n return;\n }\n \n //Adding the seed url to our dictionary\n this.urls.put(seedUrl, new URLNode(new URLObj(seedUrl, 0)));\n \n String currentHtml = seedHtml; //html content to parse\n String currentUrl = this.seedUrl; //url link to visit\n int currentDepth = 0; //the depth of the current page\n \n //Going through html pages until maximum depth is reached\n while(this.urls.get(this.lastUrlVisited).getUrl().getDepth() <= this.maxCrawlingDepth){\n //Extracting the urls in this current page\n this.extractUrls(currentHtml, currentUrl, currentDepth);\n \n //Updating url to url from next node\n currentUrl = this.urls.get(this.lastUrlVisited).getNext().getUrl().getUrl();\n \n //Depth is depth of last url visited\n currentDepth = this.urls.get(this.lastUrlVisited).getUrl().getDepth();\n \n //Getting new html from next page\n currentHtml = this.getPage(currentUrl, currentDepth);\n }\n }", "title": "" }, { "docid": "93bdd0a4e17ec2119a904b7ca05b9e63", "score": "0.4861384", "text": "@Override\r\n public boolean processURL() {\n if (hdFetcher == null && isHeadersChecksumRejected()) {\r\n crawlURL.setStatus(CrawlStatus.UNMODIFIED);\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "4e2fcc9fb7b439cb25be52c3ab3ca931", "score": "0.48417464", "text": "@Override\n public boolean contains(String url) {\n return false;\n }", "title": "" }, { "docid": "26db8aa5ef0a75b290cf365e88cea4ac", "score": "0.48336273", "text": "@Override\r\n public boolean processURL() {\n if (hdFetcher != null && isHeadersChecksumRejected()) {\r\n crawlURL.setStatus(CrawlStatus.UNMODIFIED);\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "b915ec157095a71f7e086f269a06da63", "score": "0.4821477", "text": "@Override\n\tpublic boolean isPage(String url) {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "48dafa6a2f1db9bbf4ae1b7f3e6e4982", "score": "0.4777968", "text": "public boolean understands(String url);", "title": "" }, { "docid": "1d58bfaae4d6e68208d946fa1ed76fe1", "score": "0.47740746", "text": "public void setUrl(String newVal) {\n if ((newVal != null && this.url != null && (newVal.compareTo(this.url) == 0)) || \n (newVal == null && this.url == null && url_is_initialized)) {\n return; \n } \n this.url = newVal; \n\n url_is_modified = true; \n url_is_initialized = true; \n }", "title": "" }, { "docid": "35707cae13af4203703c8b335fbe71e5", "score": "0.47436535", "text": "private void getPage(final String url, final DownloadLink link) throws Exception {\r\n if (url == null) {\r\n throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);\r\n }\r\n br.setAllowedResponseCodes(new int[] { 410 });\r\n ImgSrcRuCrawler.getPage(br, url);\r\n if (br.getRequest().getHttpConnection().getResponseCode() == 410) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n final String enterOver18 = br.getRegex(\"(/main/warn[^<>\\\"\\\\']*over18[^<>\\\"\\\\']*)\").getMatch(-1);\r\n if (enterOver18 != null) {\r\n logger.info(\"Entering over18 content: \" + enterOver18);\r\n ImgSrcRuCrawler.getPage(br, enterOver18);\r\n } else if (br.containsHTML(\">This album has not been checked by the moderators yet\\\\.|<u>Proceed at your own risk</u>\")) {\r\n // /main/passcheck.php?ad=\\d+ links can not br.getURL + \"?warned=yeah\"\r\n // lets look for the link\r\n final String yeah = br.getRegex(\"/[^/]+/a\\\\d+\\\\.html\\\\?warned=yeah\").getMatch(-1);\r\n if (yeah != null) {\r\n ImgSrcRuCrawler.getPage(br, yeah);\r\n } else {\r\n // fail over\r\n ImgSrcRuCrawler.getPage(br, br.getURL() + \"?warned=yeah\");\r\n }\r\n }\r\n // needs to be before password\r\n if (br.containsHTML(\"Continue to album(?: >>)?\")) {\r\n Form continueForm = br.getFormByRegex(\"value\\\\s*=\\\\s*'Continue\");\r\n if (continueForm != null) {\r\n String password = link.getStringProperty(\"pass\");\r\n if (isPasswordProtected(br)) {\r\n if (password == null) {\r\n password = getUserInput(\"Enter password for link:\", link);\r\n if (password == null || password.equals(\"\")) {\r\n logger.info(\"User abored/entered blank password\");\r\n throw new PluginException(LinkStatus.ERROR_FATAL);\r\n }\r\n }\r\n continueForm.put(\"pwd\", Encoding.urlEncode(password));\r\n }\r\n ImgSrcRuCrawler.submitForm(br, continueForm);\r\n if (isPasswordProtected(br)) {\r\n link.setProperty(\"pass\", Property.NULL);\r\n throw new PluginException(LinkStatus.ERROR_RETRY);\r\n }\r\n link.setProperty(\"pass\", password);\r\n }\r\n }\r\n if (br.containsHTML(\">Album foreword:.+Continue to album >></a>\")) {\r\n final String newLink = br.getRegex(\">shortcut\\\\.add\\\\(\\\"Right\\\",function\\\\(\\\\) \\\\{window\\\\.location=\\\\'(https?://imgsrc\\\\.ru/[^<>\\\"\\\\'/]+/[a-z0-9]+\\\\.html(\\\\?pwd=([a-z0-9]{32})?)?)\\\\'\").getMatch(0);\r\n if (newLink == null) {\r\n logger.warning(\"Couldn't process Album forward\");\r\n throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);\r\n }\r\n ImgSrcRuCrawler.getPage(br, newLink);\r\n }\r\n if (isPasswordProtected(br)) {\r\n Form pwForm = br.getFormbyProperty(\"name\", \"passchk\");\r\n if (pwForm == null) {\r\n logger.warning(\"Password form finder failed!\");\r\n throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);\r\n }\r\n String password = link.getStringProperty(\"pass\");\r\n if (password == null) {\r\n password = getUserInput(\"Enter password for link:\", link);\r\n if (password == null || password.equals(\"\")) {\r\n logger.info(\"User abored/entered blank password\");\r\n throw new PluginException(LinkStatus.ERROR_FATAL);\r\n }\r\n }\r\n pwForm.put(\"pwd\", Encoding.urlEncode(password));\r\n ImgSrcRuCrawler.submitForm(br, pwForm);\r\n pwForm = br.getFormbyProperty(\"name\", \"passchk\");\r\n if (pwForm != null) {\r\n link.setProperty(\"pass\", Property.NULL);\r\n password = null;\r\n throw new PluginException(LinkStatus.ERROR_RETRY);\r\n }\r\n link.setProperty(\"pass\", password);\r\n } else if (new Regex(br.getURL(), \"https?://imgsrc\\\\.ru/$\").matches()) {\r\n // link has been removed!\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n }", "title": "" }, { "docid": "4af733af657386b29a1ea3380ba79d7b", "score": "0.4721971", "text": "public void setUrl(String url2) {\n boolean[] $jacocoInit = $jacocoInit();\n this.url = url2;\n $jacocoInit[4] = true;\n }", "title": "" }, { "docid": "6307fc249c81c9b99fc1b9a414e428e2", "score": "0.46980286", "text": "synchronized void doneCrawling (String urlCrawled ){\n\n\t\tSystem.out.println(\"Done crawling url: \" + urlCrawled );\n\t\tselfZone.addURLCrawled( urlCrawled );\n\t\tString urlToCrawl = selfZone.getNextUrl();\n\n\t\tif ( null != urlToCrawl ){\n\n\t\t\tcrawler.crawl( urlToCrawl );\n\t\t}else{\n\t\t\t\n\t\t\tcrawlPaused = true;\n\t\t}\n\t}", "title": "" }, { "docid": "c015e1cab1e54117020321b3e6179b62", "score": "0.46678418", "text": "public boolean crawl(String url) {\r\n\t\ttry {\r\n\t\t\tConnection connection = Jsoup.connect(url).userAgent(USER_AGENT);\r\n\t\t\tDocument htmlDocument = connection.get();\r\n\t\t\tthis.htmlDocument = htmlDocument;\r\n\t\t\tif (connection.response().statusCode() != 200) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"**Failure** Connection problem. Error code: \" + connection.response().statusCode());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tif (!connection.response().contentType().contains(\"text/html\")) {\r\n\t\t\t\tSystem.out.println(\"**Failure** Retrieved something other than HTML\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tElements linksOnPage = htmlDocument.select(\"a[href]\");\r\n\t\t\t//System.out.println(\"Found (\" + linksOnPage.size() + \") links\");\r\n\t\t\tfor (Element link : linksOnPage) {\r\n\t\t\t\tthis.links.add(link.absUrl(\"href\"));\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t} catch (IOException ioe) {\r\n\t\t\t// We were not successful in our HTTP request\r\n\t\t\t//System.err.println(ioe.getMessage());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ee61c9f406a28f4fdac7fd03779260fe", "score": "0.4633297", "text": "public void beginCrawling() {\n int counter = 0;\n while (!_URLFrontier.isEmpty() && counter < MAX_VISITS) {\n URL nextURL = _URLFrontier.remove();\n DataInputStream dis = PageFetching.returnPage(nextURL);\n LinkedList<URL> filteredURLs = new LinkedList<URL>();\n if (dis != null) {\n LinkedList<URL> extractedURLs = PageProcessing.beginPageProcessing(dis);\n filteredURLs = URLProcessing.filterURLs(extractedURLs);\n }\n _URLFrontier.addAll(filteredURLs);\n\n counter++;\n }\n System.out.println(\"End of crawling\");\n }", "title": "" }, { "docid": "3ee5ce5e826390de4d8744011a7affea", "score": "0.46149844", "text": "@Override\n\t\tpublic boolean shouldOverrideUrlLoading(WebView view, String url) {\n\t\t\treturn (false);\n\t\t}", "title": "" }, { "docid": "af60e34d7a76a1e7a515a2009fa263d5", "score": "0.460064", "text": "@Then(\"^url contains Target Url$\")\n public void urlContainsTargetUrl() {\n if (!getProfile().getCurrentUrl().contains(ParameterMap.getParamWebAppUrl())) {\n Assert.fail(\"Url did not contain the following - \" + ParameterMap.getParamWebAppUrl());\n }\n }", "title": "" }, { "docid": "5767d80d5d7ec535a2de14f48aa1da6b", "score": "0.45737332", "text": "public void setUrl(final String theUrl) {\r\n this.url = theUrl;\r\n }", "title": "" }, { "docid": "55fb3e30ee9810b1e9de2c7ce3f2b600", "score": "0.45607373", "text": "private void forceScan(final String urlToCheck) {\n waitingDialog.show();\n RetrofitBase.getRetrofit().create(VirusTotalApiCalls.class).forceURLRescan(apikey, urlToCheck).enqueue(new Callback<VirusTotalResponse>() {\n @Override\n public void onResponse(Call<VirusTotalResponse> call, Response<VirusTotalResponse> response) {\n waitingDialog.dismiss();\n if (response.code() == 204 || !response.isSuccessful()) {\n C.errorCheck(response.code(), ScanURL.this);\n return; // we show the error message before, then we interrupt the task\n }\n // Unfortunately, the \"report\" function does not report invalid URLs,\n // so an invalid URL consumes 2 API calls (report --> not in database, scan --> invalid URL)\n if (response.body().getResponse_code() == -1) {\n AlertDialogs.invalidURLResponse(ScanURL.this);\n } else {\n AlertDialogs.urlIsQueued(ScanURL.this); // success!\n }\n }\n @Override\n public void onFailure(Call<VirusTotalResponse> call, Throwable t) {\n waitingDialog.dismiss();\n AlertDialogs.onFailureMessage(ScanURL.this, t.getLocalizedMessage());\n }\n });\n }", "title": "" }, { "docid": "a60df0bd591bcfd293abe89c65f67c77", "score": "0.45575833", "text": "void scanForWebpages();", "title": "" }, { "docid": "9f312905eed1e6f288dfcdffa5c33e60", "score": "0.45527303", "text": "public static void setURL(String inUrl) {\n currentURL = inUrl;\n //System.out.println(inUrl + \" \" + currentURL + \" post\");\n }", "title": "" }, { "docid": "c31440a7d3ba39d56af0e26ef68e58f3", "score": "0.45360455", "text": "@Override\n\t\t\tpublic boolean shouldOverrideUrlLoading(WebView view, String url) {\n\t\t\t\tSystem.out.println(\"url=\" + url);\n\t\t\t\treturn super.shouldOverrideUrlLoading(view, url);\n\t\t\t}", "title": "" }, { "docid": "9f9bf71d34ed77c0827c84f053d52895", "score": "0.45314524", "text": "public void testDoesNotCacheExistingFile() {\n String url1=\"http://www.example.com/blah.html\";\n\n crawler.setUrlsToFollow(ListUtil.list(url1));\n\n MockCachedUrlSet cus = (MockCachedUrlSet)mau.getAuCachedUrlSet();\n mau.addUrl(startUrl, true, true);\n mau.addUrl(url1, true, true);\n\n assertTrue(crawler.doCrawl());\n\n Set expected = SetUtil.set(startUrl);\n assertEquals(expected, cus.getCachedUrls());\n }", "title": "" }, { "docid": "82002c9730ec14cfde28d6bc81031a02", "score": "0.4526824", "text": "@Override\n public WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest request) {\n Log.e(\"should\", \"request.getUrl().toString() is \" + request.getUrl().toString());\n return super.shouldInterceptRequest(view, request);\n }", "title": "" }, { "docid": "8498e91184d9a56c04f42746f4e5a1bb", "score": "0.4521382", "text": "@Override\n public boolean refererBlocked(HttpServletRequest request) {\n return request.getHeader(\"Referer\") == null;\n }", "title": "" }, { "docid": "7d30674b355ac7b519442adf279b04ca", "score": "0.45071608", "text": "@Override\n public boolean shouldOverrideUrlLoading(WebView view, String url) {\n return (false);\n }", "title": "" }, { "docid": "8052960979e7c871db391681413e8402", "score": "0.44961384", "text": "@Override\n \t\tpublic boolean shouldOverrideUrlLoading(WebView view, String url) {\n \t\t\treturn true;\n \t\t}", "title": "" }, { "docid": "9825d1db8ab816ae330e15b3652c3678", "score": "0.4495475", "text": "private boolean processRemoteCrawlTrigger(plasmaCrawlEntry urlEntry) {\n if (urlEntry == null) {\r\n log.logInfo(\"REMOTECRAWLTRIGGER[\" + noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_CORE) + \", \" + noticeURL.stackSize(plasmaCrawlNURL.STACK_TYPE_REMOTE) + \"]: urlEntry=null\");\r\n return true; // superfluous request; true correct in this context because the urlEntry shall not be tracked any more\r\n }\r\n \r\n // check url\r\n if (urlEntry.url() == null) {\r\n log.logFine(\"ERROR: plasmaSwitchboard.processRemoteCrawlTrigger - url is null. name=\" + urlEntry.name());\r\n return true; // same case as above: no more consideration\r\n }\r\n \r\n // are we qualified for a remote crawl?\r\n if ((yacyCore.seedDB.mySeed == null) || (yacyCore.seedDB.mySeed.isJunior())) {\r\n log.logFine(\"plasmaSwitchboard.processRemoteCrawlTrigger: no permission\");\r\n return false; // no, we must crawl this page ourselves\r\n }\r\n \r\n // check if peer for remote crawl is available\r\n yacySeed remoteSeed = ((this.isPublicRobinson()) && (getConfig(\"cluster.mode\", \"\").equals(\"publiccluster\"))) ?\r\n \tyacyCore.dhtAgent.getPublicClusterCrawlSeed(urlEntry.urlhash(), this.clusterhashes) :\t\r\n \tyacyCore.dhtAgent.getGlobalCrawlSeed(urlEntry.urlhash());\r\n if (remoteSeed == null) {\r\n log.logFine(\"plasmaSwitchboard.processRemoteCrawlTrigger: no remote crawl seed available\");\r\n return false;\r\n }\r\n \r\n // do the request\r\n HashMap page = null;\r\n try {\r\n page = yacyClient.crawlOrder(remoteSeed, urlEntry.url(), getURL(urlEntry.referrerhash()), 6000);\r\n } catch (IOException e1) {\r\n log.logSevere(STR_REMOTECRAWLTRIGGER + remoteSeed.getName() + \" FAILED. URL CANNOT BE RETRIEVED from referrer hash: \" + urlEntry.referrerhash(), e1);\r\n return false;\r\n }\r\n \r\n // check if we got contact to peer and the peer respondet\r\n if ((page == null) || (page.get(\"delay\") == null)) {\r\n log.logInfo(\"CRAWL: REMOTE CRAWL TO PEER \" + remoteSeed.getName() + \" FAILED. CAUSE: unknown (URL=\" + urlEntry.url().toString() + \"). Removed peer.\");\r\n yacyCore.peerActions.peerDeparture(remoteSeed);\r\n return false; // no response from peer, we will crawl this ourself\r\n }\r\n \r\n String response = (String) page.get(\"response\");\r\n log.logFine(\"plasmaSwitchboard.processRemoteCrawlTrigger: remoteSeed=\"\r\n + remoteSeed.getName() + \", url=\" + urlEntry.url().toString()\r\n + \", response=\" + page.toString()); // DEBUG\r\n \r\n // we received an answer and we are told to wait a specific time until we shall ask again for another crawl\r\n int newdelay = Integer.parseInt((String) page.get(\"delay\"));\r\n yacyCore.dhtAgent.setCrawlDelay(remoteSeed.hash, newdelay);\r\n if (response.equals(\"stacked\")) {\r\n // success, the remote peer accepted the crawl\r\n log.logInfo(STR_REMOTECRAWLTRIGGER + remoteSeed.getName()\r\n + \" PLACED URL=\" + urlEntry.url().toString()\r\n + \"; NEW DELAY=\" + newdelay);\r\n // track this remote crawl\r\n this.delegatedURL.newEntry(urlEntry, remoteSeed.hash, new Date(), 0, response).store();\r\n return true;\r\n }\r\n \r\n // check other cases: the remote peer may respond that it already knows that url\r\n if (response.equals(\"double\")) {\r\n // in case the peer answers double, it transmits the complete lurl data\r\n String lurl = (String) page.get(\"lurl\");\r\n if ((lurl != null) && (lurl.length() != 0)) {\r\n String propStr = crypt.simpleDecode(lurl, (String) page.get(\"key\"));\r\n indexURLEntry entry = wordIndex.loadedURL.newEntry(propStr);\r\n try {\r\n wordIndex.loadedURL.store(entry);\r\n wordIndex.loadedURL.stack(entry, yacyCore.seedDB.mySeed.hash, remoteSeed.hash, 1); // *** ueberfluessig/doppelt?\r\n // noticeURL.remove(entry.hash());\r\n } catch (IOException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n \r\n log.logInfo(STR_REMOTECRAWLTRIGGER + remoteSeed.getName()\r\n + \" SUPERFLUOUS. CAUSE: \" + page.get(\"reason\")\r\n + \" (URL=\" + urlEntry.url().toString()\r\n + \"). URL IS CONSIDERED AS 'LOADED!'\");\r\n return true;\r\n } else {\r\n log.logInfo(STR_REMOTECRAWLTRIGGER + remoteSeed.getName()\r\n + \" REJECTED. CAUSE: bad lurl response / \" + page.get(\"reason\") + \" (URL=\"\r\n + urlEntry.url().toString() + \")\");\r\n remoteSeed.setFlagAcceptRemoteCrawl(false);\r\n yacyCore.seedDB.update(remoteSeed.hash, remoteSeed);\r\n return false;\r\n }\r\n }\r\n \r\n log.logInfo(STR_REMOTECRAWLTRIGGER + remoteSeed.getName()\r\n + \" DENIED. RESPONSE=\" + response + \", CAUSE=\"\r\n + page.get(\"reason\") + \", URL=\" + urlEntry.url().toString());\r\n remoteSeed.setFlagAcceptRemoteCrawl(false);\r\n yacyCore.seedDB.update(remoteSeed.hash, remoteSeed);\r\n return false;\r\n }", "title": "" }, { "docid": "357666499650845290eb7196572058c6", "score": "0.4484923", "text": "public void addSourceURL(String url, String referringURL) {\n this.addProperty(URL_FIELD, url);\n this.addProperty(URL_REFERRER_FIELD, referringURL);\n }", "title": "" }, { "docid": "a312ea5dc25cc32110323f76ad3f329c", "score": "0.4469156", "text": "@Override\n\tpublic void onExternalPageRequest(String url) {\n\t}", "title": "" }, { "docid": "58275120ef3960c503afb82727c951dc", "score": "0.44603366", "text": "@Override\n public boolean shouldOverrideUrlLoading(WebView view, String url) {\n return true;\n }", "title": "" }, { "docid": "bcc728584c7102bff5e893e09a4de6b4", "score": "0.4452564", "text": "public void crawl() {\n\t\tCrawlerInterface impl = new CrawlerImpl();\n\t\t\n\t\ttry {\n\t\t\t// get seed url\n\t\t\tURL seed = this.getSeed();\n\t\t\t// check if url is not null\n\t\t\tif (seed != null) {\n\t\t\t\t// check if url is restricted or not\n\t\t\t\tif (!impl.isRetrictedUrl(seed.toString())) {\n\t\t\t\t\t// get number of key phrase entries\n\t\t\t\t\tint noOfEntries = impl.getNoOfKeyPhraseEntries(this);\n\t\t\t\t\t//this.getListOfTraversedURL().put(seed.toString(), noOfEntries);\n\t\t\t\t\t// do not further crawl web page if the key phrase entry not found\n\t\t\t\t\tList<URL> urls = ((noOfEntries == 0) && !StringUtils.isEmpty(this.keyPhrase)) ? null : impl.listOfUrl(this);\n\t\t\t\t\t\n\t\t\t\t\t// check if keyphrase is provided\n\t\t\t\t\tif (!StringUtils.isEmpty(this.keyPhrase)) {\n\t\t\t\t\t\tif (noOfEntries > 0) {\n\t\t\t\t\t\t\tthis.getListOfTraversedURL().put(seed.toString(), noOfEntries);\n\t\t\t\t\t\t\t//TODO need to add logger, but because of time limit added syso\n\t\t\t\t\t\t\tSystem.out.println(seed.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.getListOfTraversedURL().put(seed.toString(), noOfEntries);\n\t\t\t\t\t\t//TODO need to add logger, but because of time limit added syso\n\t\t\t\t\t\tSystem.out.println(seed.toString());\n\t\t\t\t\t}\n\n\t\t\t\t\t// update the list of urls which need to crawl\n\t\t\t\t\tif (urls != null) {\n\t\t\t\t\t\tfor (URL url : urls) {\n\t\t\t\t\t\t\tif (url != null && !this.getListOfTraversedURL().containsKey(url.toString())) {\n\t\t\t\t\t\t\t\tthis.getListOfURLNeedToTraverse().put(url.toString(), 0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "95cfa362c0bf6672b113b7f2bdb30378", "score": "0.4451014", "text": "@Override public boolean shouldOverrideUrlLoading(WebView view, String url) {\n return false;\n }", "title": "" }, { "docid": "9696fbc8d9910f9a3d327aa640c9ed68", "score": "0.44384798", "text": "public void NewLink(String link) {\n//\t\tSystem.out.println(link);\n\t\tsynchronized (evita_repeticoes) {\n\t\t\tevita_repeticoes.put(link, link);\n\t\t}\n\t\tNetCrawler c = new NetCrawler(link, crawl_depth - 1, index,\n\t\t\t\tNetcrawlers, evita_repeticoes);\n\t\tThreadPool.crawlersPool.submit(c);\n\t\tNetcrawlers.add(c);\n\t}", "title": "" }, { "docid": "f998d25c855e6307a259c2f11c3585d4", "score": "0.44362924", "text": "private static String urlChecker(String url) {\r\n\t\tUrlValidator urlValidator = new UrlValidator();\r\n\t if (urlValidator.isValid(url)) \r\n\t {\r\n\t \tlog.debug(\"Valid url....\");\r\n\t \treturn url;\r\n\t } \r\n\t else {\r\n\t throw new UnsupportedOperationException(\"This url: \"+\"\\\"\"+url+\"\\\"\"+ \" is in invalid format\");\r\n\t }\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5925b03ba2027f72f0329f5d5d52ad37", "score": "0.44327852", "text": "public void parseURL(Document page) throws IOException {\n Elements links = page.getElementsByTag(\"a\");\n for (Element link : links) {\n String href;\n if (link.attr(\"href\").matches(\"^/.*\"))\n href = link.attr(\"abs:href\");\n else href = link.attr(\"href\");\n//todo: is it really needed?\n if (!urlMap.containsKey(href) && !urlToProcess.contains(href)) {\n urlToProcess.add(href);\n System.out.println(\"--+ ADDED: \\\"\" + href + \"\\\"\"); //todo: debugLine\n }\n }\n }", "title": "" }, { "docid": "c23af0c94946633c27ad98011acb3451", "score": "0.44144642", "text": "@Override\n\t\tpublic boolean ignoreLink(int x,int y,String href) {\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "c05074926a360fb1e0554a08bd35160c", "score": "0.44117206", "text": "@Test\n\tpublic void pickUpLinkTest3() {\n\t\tString ans = \"\\\"http://google.com\\\"\";\n\t\tPriorityQueue<WebNode> q = wc.crawl(webPage3);\n\t\tWebNode node = q.poll();\n\t\tString s = node.getWebLink();\n\t\tassertEquals(\"Test crawl() can detect a normal looking link in HTML page: \", ans, s);\n\t}", "title": "" }, { "docid": "2902e8106fc52d3336e4e273c86f9742", "score": "0.43987826", "text": "@Then(\"^url contains \\\"([^\\\"]*)\\\"$\")\n public void urlContains(String url) {\n url = placeholders(url);\n if (!getProfile().getCurrentUrl().contains(url)) {\n Assert.fail(\"Url did not contain the following - \" + url + \"\\n\"\n + \"Actual url was: \" + getProfile().getCurrentUrl());\n }\n }", "title": "" }, { "docid": "18a88cdefb3c4f726a98d664b401a971", "score": "0.43882412", "text": "public boolean shouldOverrideUrlLoading(WebView view, String url)\r\n {\n view.loadUrl(url);\r\n //return true if this method handled the link event\r\n //or false otherwise\r\n return true;\r\n }", "title": "" }, { "docid": "19f001ea8dd9967356d9e907a0e15658", "score": "0.4371557", "text": "public boolean notYetChecked(String url){\n for(String s:checkedUrls){\n if(url.equals(s)) return false;\n }\n return true;\n }", "title": "" }, { "docid": "071dad9df13d42af987367fd9e4e8b85", "score": "0.4362442", "text": "public void checkPage() {\r\n File input = new File(location);\r\n\r\n // Input.exists is a very useful file, I've noticed.\r\n if (input.exists()) {\r\n try {\r\n Document doc = Jsoup.parse(input, \"UTF-8\");\r\n //First, let's set up things until the body text.\r\n Elements hrefs = doc.getElementsByTag(\"a\");\r\n\r\n for (Element href : hrefs) {\r\n if (href.attr(\"href\").contains(\"http:\")\r\n || href.attr(\"href\").contains(\"https:\")\r\n || href.attr(\"href\").contains(\".html\")) {\r\n // Do nothing.\r\n } else {\r\n numBroken++;\r\n }\r\n }\r\n\r\n } catch (IOException ex) {\r\n System.out.println(\"Error!! Unable to open file!\");\r\n }\r\n } else {\r\n System.out.println(\"Tried to clean HTML and doesn't exist!!\");\r\n }\r\n if (numBroken > 0){\r\n // Push to FireBase \r\n }\r\n }", "title": "" }, { "docid": "8776433aa55745b9c6b20eec8b3a56db", "score": "0.43543398", "text": "public boolean shouldOverrideUrlLoading(WebView view, String url){\n view.loadUrl(url);\n return true; // then it is not handled by default action\n }", "title": "" }, { "docid": "1d55a17ac9a25d987a63905563dcf9ca", "score": "0.43503907", "text": "@Test\n\tpublic void pickUpLinkTest2() {\n\t\tint ansCount = 3;\n\t\tString ans1 = \"\\\"http://bbc.co.uk\\\"\";\n\t\tString ans2 = \"\\\"https://www.thenewboston.com\\\"\";\n\t\tString ans3 = \"\\\"http://en.wikipedia.org/wiki/Main_Page\\\"\";\n\t\tPriorityQueue<WebNode> q = wc.crawl(webPage2);\n\t\tint numLegal = q.size();\n\t\tassertEquals(\"Test crawl() can Count all Legal forms <a href = xxxx. com>: \", ansCount, numLegal);\n\t\t\n\t\tString s = q.poll().getWebLink();\n\t\tassertEquals(\"Test crawl() can detect First Legal form <a href = xxxx. com>: \", ans1,s);\n\t\t\n\t\ts = q.poll().getWebLink();\n\t\tassertEquals(\"Test crawl() can detect Second Legal form <a href = xxxx. com>: \", ans3,s);\n\t\t\n\t\ts = q.poll().getWebLink();\n\t\tassertEquals(\"Test crawl() can detect Third Legal form <a href = xxxx. com>: \", ans2,s);\n\t}", "title": "" }, { "docid": "23b32551febe65fe93615ed8209674e3", "score": "0.4348867", "text": "@Test\n\tpublic void pickUpLinkTest1() {\n\t\tString ans = \"\\\"http://google.com\\\"\";\n\t\tPriorityQueue<WebNode> q = wc.crawl(webPage1);\n\t\tWebNode node = q.poll();\n\t\tString s = node.getWebLink();\n\t\tassertEquals(\"Test crawl() can detect a link (filled with white-space gaps) in HTML page: \", ans,s);\n\t}", "title": "" }, { "docid": "08df7fd0a8905123682d956311c656b2", "score": "0.43466178", "text": "public Builder addGoodUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureGoodUrlIsMutable();\n goodUrl_.add(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "47ce4f5b82ae6c63fb2d98ebc661d857", "score": "0.43405145", "text": "public void readWords(){\n try{\n for(int i = 0; i<initialUrls.size();i++){\n Scanner file = new Scanner (new FileReader(initialUrls.get(i).com));\n while(file.hasNext()){\n String word = file.next();\n String [] sameWords = word.replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase().split(\" \");\n for(String theWord: sameWords){\n Word newWord = new Word(theWord);\n if(!commonWords.contains(theWord)){\n if(makingWords.size() == 0){\n newWord.addUrl(initialUrls.get(i));\n makingWords.add(newWord);\n }\n else if(searchWord(newWord)){\n for(int j = 0; j<makingWords.size();j++){\n if(makingWords.get(j).word.equals(newWord.word)){\n makingWords.get(j).addUrl(initialUrls.get(i));\n }\n }\n }\n else{\n newWord.addUrl(initialUrls.get(i));\n makingWords.add(newWord);\n }\n }\n }\n }\n }\n }catch(Exception e){\n System.out.println(e);\n }\n }", "title": "" }, { "docid": "6e3323de1f8b753934b215f7ea310a90", "score": "0.43316254", "text": "boolean hasFrontMerUrl();", "title": "" }, { "docid": "30fc9a83ce5ff4d9e5a64e035eee4ee4", "score": "0.43314633", "text": "@Override\r\n\tpublic boolean accept(String url) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "6e520e75b3a6a63d10b010e3b4eb0e98", "score": "0.43308026", "text": "public void setUrl(String url) { this.url = url; }", "title": "" }, { "docid": "acf7d674b6022cdba0227fe2d797b3b3", "score": "0.43267548", "text": "com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getCrawledUrls(int index);", "title": "" }, { "docid": "3649ff2c350548f39058f42b72fab425", "score": "0.4325687", "text": "public void testDoesNotCacheFileWhichShouldNotBeCached() {\n MockCachedUrlSet cus = (MockCachedUrlSet)mau.getAuCachedUrlSet();\n mau.addUrl(startUrl, false, false);\n\n crawler.doCrawl();\n assertEquals(SetUtil.set(), cus.getCachedUrls());\n }", "title": "" }, { "docid": "0ab979aa4ceab07101643033bfafb792", "score": "0.43149626", "text": "public Indexer crawl (int limit) {\r\n\t\r\n\t\t////////////////////////////////////////////////////////////////////\r\n\t // Write your Code here as part of Breadth First Spider assignment\r\n\t // \r\n\t ///////////////////////////////////////////////////////////////////\r\n\t\tint y=0;\r\n\t\tQueue queue=new LinkedList<URL>();\r\n\t\tSet<URL> visited=new HashSet<URL>();\r\n\t\tqueue.add(u);\r\n\t\tvisited.add(u);\r\n\t\twhile(y!=limit&&!queue.isEmpty())\r\n\t\t{\r\n\t\tVector word =new Vector<String>();\r\n\t\tu= (URL) queue.poll();\r\n\t\tURLTextReader ut=new URLTextReader(u);\r\n\t\ttry {\r\n\t\t\tPageLexer<PageElementInterface> p=new PageLexer<PageElementInterface>(ut,u);\r\n\t\t\twhile(p.hasNext())\r\n\t\t\t{\r\n\t\t\t\tPageElementInterface pei= (PageElementInterface) p.next();\r\n\t\t\t\t\r\n\t\t\t\tif(pei instanceof PageHref)\r\n\t\t\t\t{\r\n\t\t\t\t//\tSystem.out.println(\"href : \"+pei);\r\n\t\t\t\t\tif(!visited.contains(u))\r\n\t\t\t\t\tqueue.add(new URL(String.valueOf(pei)));\r\n\t\t\t\t}\r\n\t\t\t\tif(pei instanceof PageWord)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\t//System.out.println(\"word \"+pei);\r\n\t\t\t\t\tword.add(String.valueOf(pei));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tObjectIterator<Vector> itr = new ObjectIterator<Vector>(word);\r\n\t\t\ti.addPage(u, itr);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ty++;\r\n\t}\r\n\t\treturn i;\r\n}", "title": "" }, { "docid": "9828ce0b18143f3c2db5fa315a8f46f3", "score": "0.43144745", "text": "@Override\n public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {\n return false;\n }", "title": "" }, { "docid": "1e54f011584f6e2d57d54e3e25e6999b", "score": "0.43101647", "text": "boolean hasReferIsEffectPage();", "title": "" }, { "docid": "d13e07e518958e5f2fc82c2ecd44dfbd", "score": "0.4301146", "text": "public boolean shouldOverrideUrlLoading(WebView view, String url) {\r\n\t\t\t\tview.loadUrl(url);\r\n\t\t\t\treturn true;\r\n\t\t\t}", "title": "" }, { "docid": "dd1a0d0f8776d692b53a0beea9790eb8", "score": "0.42983872", "text": "public void findPages() throws IOException, ParserConfigurationException, SAXException, TransformerException {\n log.info(\"Find pages started\");\n \n //what links we visited before and count of reviews\n File allLinksFile = new File(allLinksPath);\n Map<String, Integer> allLinksMap = new HashMap<String, Integer>();\n if (allLinksFile.exists()) {\n allLinksMap = Serializer.instance().readMap(allLinksFile);\n }\n \n File latterLinksFile = new File(latterLinksPath);\n Map<String, Integer> latterLinksMap = Serializer.instance().readMap(latterLinksFile);\n Iterator<String> iterator = latterLinksMap.keySet().iterator();\n Map<String, Integer> newLinksMap = new HashMap<String, Integer>();\n while (iterator.hasNext()) {\n String reviewUrl = iterator.next();\n Integer reviewNumber = latterLinksMap.get(reviewUrl);\n // if new url or added review\n if (!allLinksMap.containsKey(reviewUrl) || allLinksMap.get(reviewUrl) != reviewNumber) {\n newLinksMap.put(reviewUrl, reviewNumber);\n }\n }\n Serializer.instance().write(newLinksMap, new File(newLinksPath));\n log.info(\"Find pages successful\");\n }", "title": "" }, { "docid": "afbbdbca35638369d7bef1217c6dfa56", "score": "0.42967996", "text": "protected boolean crawlFeed(String url) {\n try {\n System.out.println(\"Crawling \" + url);\n Document doc = fetchDocument(url);\n\n Elements items = doc.getElementsByTag(\"item\");\n for (Element item : items) {\n String id = idForItem(item);\n Elements contents = item.select(this.contentTag);\n\n if (contents.size() > 0) {\n String data = contents.first().text();\n\n // Is this a external link which we need to crawl?\n if (this.externalSelector != null) {\n doc = fetchDocument(data);\n contents = doc.select(this.externalSelector);\n if (contents.size() > 0) {\n data = contents.first().text();\n } else {\n printError(data + \" - no element matching external selector\");\n data = null;\n }\n }\n\n if (data != null && data.trim().length() > 0)\n saveData(id, data);\n } else {\n printError(id + \" - missing content tag\");\n }\n }\n\n return true;\n } catch(IOException e) {\n printError(\"Error during crawling: \" + e.getMessage());\n }\n return false;\n }", "title": "" }, { "docid": "da90199b5c35a770dcb8efcebb4da976", "score": "0.42922524", "text": "public boolean VerifyIsPageURLNotContainsText(String inputData) throws Exception\n\t{\n\t\tif (UtilityFunctions.IsNullOrWhiteSpace(inputData))\n\t\t{\n\t\t\tLogFunctions.LogEntry(\"Incorrect Input data :\"+ inputData,false);\n\t\t\tPropertiesAndConstants.scriptExecutionResult = \"Fail\";\n\t\t\treturn false;\n\t\t}\n\t\tif (!PropertiesAndConstants.Selenium.getCurrentUrl().toLowerCase().contains(inputData.toLowerCase()))\n\t\t{\n\t\t\tLogFunctions.LogEntry(\"Current browser URL NOT Contains: -\"+ inputData+\" - Pass \",false);\n\t\t\tif (PropertiesAndConstants.scriptExecutionResult == \"Fail\")\n\t\t\t{ PropertiesAndConstants.scriptExecutionResult = \"Fail\"; }\n\t\t\telse PropertiesAndConstants.scriptExecutionResult = \"Pass\";\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tLogFunctions.LogEntry(\"Current browser URL: Actual \"+ PropertiesAndConstants.Selenium.getCurrentUrl()+\"; Expected Not Contains: -\"+inputData+\" - Fail \",false);\n\t\t\tPropertiesAndConstants.scriptExecutionResult = \"Fail\";\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "647326bf2f3c8936c9f5ff7587333eeb", "score": "0.42863914", "text": "@Override\n\t\tpublic boolean shouldOverrideUrlLoading(WebView view, String url) {\n\t\t\tview.loadUrl(url);\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "c0fddda62da246ce5b755e90730fc693", "score": "0.42862004", "text": "@Override\n public boolean shouldOverrideUrlLoading(WebView view, String url) {\n progressBar.setVisibility(View.VISIBLE);\n view.loadUrl(url);\n return true;\n\n }", "title": "" }, { "docid": "899699e391eda8e083f4fc3d3d2f5596", "score": "0.4284144", "text": "private boolean isUrl( String url )\n {\n return !StringUtils.isEmpty( url ) && (url.startsWith( \"http://\" ) || url.startsWith( \"https://\" ));\n }", "title": "" }, { "docid": "ca1de28150ea6d68545ede9cee56ce61", "score": "0.4278446", "text": "void addPageToIndex(Page page, List<String> includeOnlyTheseWords);", "title": "" }, { "docid": "be7a0cacb544fc11260a7918ff88c368", "score": "0.4277141", "text": "@Override\n\t\tpublic boolean shouldOverrideUrlLoading(WebView view, String url) {\n\t\t\tview.loadUrl(url);\n\t\t\treturn super.shouldOverrideUrlLoading(view, url);\n\t\t}", "title": "" }, { "docid": "8b4646bf6138cb6a9dfe27d00768a6f9", "score": "0.4263453", "text": "@Override\n public boolean shouldOverrideUrlLoading(WebView view, String url) {\n if(Objects.requireNonNull(Uri.parse(url).getHost()).endsWith(\"www.rte.ie\")) {\n return false;\n }\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n view.getContext().startActivity(intent);\n return true;\n }", "title": "" }, { "docid": "79cd25ef3022b017336c5790e16d862d", "score": "0.42613265", "text": "public boolean hasUrl();", "title": "" }, { "docid": "f2fdab1c130692ce22e394a1c6b913a1", "score": "0.42595488", "text": "@Override\n public void visit(Page page) {\n if (page.getParseData() instanceof HtmlParseData) {\n System.out.println(page.getWebURL().getURL());\n HtmlParseData htmlParseData = (HtmlParseData) page.getParseData();\n\n // Check for LINCS-DCIC js/data files\n if (getCrawlID().equals(LINCS_ID)) {\n htmlParseData = (HtmlParseData) page.getParseData();\n Document doc = Jsoup.parseBodyFragment(htmlParseData.getHtml());\n Elements scriptElements = doc.getElementsByTag(\"script\");\n for (Element element : scriptElements) {\n // Write js/data to file and add to DB if not discovered\n String jsURL = element.attr(\"src\");\n if (jsURL != null && !jsURL.isEmpty() && jsURL.startsWith(\"js/data/\") && !jsSet.contains(jsURL)) {\n jsSet.add(jsURL);\n System.out.println(jsURL);\n GetRequest request = Unirest.get(getRootURL() + jsURL);\n try {\n writer.write(\"JS: \" + jsURL + \"\\n\");\n writer.newLine();\n writer.write(request.asString().getBody() + \"\\n\");\n writer.newLine();\n } catch (IOException | UnirestException e) {\n e.printStackTrace();\n }\n }\n }\n }\n\n // Write to file\n try {\n writer.write(\"PAGE: \" + htmlParseData.getTitle() + \"\\n\");\n writer.write(\"URL: \" + page.getWebURL().getURL() + \"\\n\");\n // Create horizontal line\n for (int i = 0; i < 80; i++) {\n writer.write(\"-\");\n }\n writer.newLine();\n\n // Write text\n writer.write(cleanText(htmlParseData.getText()) + \"\\n\");\n\n // Write special text\n Matcher specialMatcher = Pattern.compile(getSpecialTextPattern()).matcher(htmlParseData.getHtml());\n while (specialMatcher.find()) {\n writer.write(cleanText(specialMatcher.group(1)) + \"\\n\");\n }\n\n writer.newLine();\n writer.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "dc9fc5bc306c346a038f5191404679be", "score": "0.42574006", "text": "void setInvalidUrl(java.lang.String invalidUrl);", "title": "" }, { "docid": "96f57be2123286cd16944666a93e12f8", "score": "0.4257114", "text": "@Override\n protected boolean shouldFollowLink(){\n return true;\n }", "title": "" }, { "docid": "50e259c3e279f070a1105fcf26a06e8e", "score": "0.4256489", "text": "public BillsDotComDebtCalcPSol verifyPageUrl() {\n (new WebDriverWait(driver, timeout)).until(new ExpectedCondition<Boolean>() {\n public Boolean apply(WebDriver d) {\n return d.getCurrentUrl().contains(pageUrl);\n }\n });\n return this;\n }", "title": "" }, { "docid": "4d1551aa5544a4f5aa5f114b54b7bb42", "score": "0.42496797", "text": "@Override\n\t\tpublic boolean shouldOverrideUrlLoading(WebView view, String url) {\n\t\t\tDailymotionLogger.d(LOG_TAG, \"Overriding.. \" + url);\n\t\t\tif (url.startsWith(Constants.REDIRECT_URI)) {\n\t\t\t\t// Check if an error has occurred.\n\t\t\t\tBundle result = DailymotionUtils.decodeUrl(url);\n\t\t\t\tDailymotionLogger.d(LOG_TAG, result.toString());\n\n\t\t\t\tString error = result.getString(\"error\");\n\t\t\t\tif (error != null) {\n\t\t\t\t\tmListener.onFailure(DailyException.getException(error,\n\t\t\t\t\t\t\tresult.getString(\"error_description\")));\n\t\t\t\t} else {\n\t\t\t\t\tDailymotionLogger.d(LOG_TAG, \"Success: \" + result.getString(\"code\"));\n\t\t\t\t\tmListener.onSuccess(result);\n\t\t\t\t}\n\n\t\t\t\tdismiss();\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\treturn super.shouldOverrideUrlLoading(view, url);\n\t\t}", "title": "" }, { "docid": "6e4e287b3a2fca87b14b127e3aa73ace", "score": "0.42479208", "text": "void setUrl(java.lang.String url);", "title": "" }, { "docid": "8da698cf9e56c75740f16b167618b601", "score": "0.42444378", "text": "boolean hasUrl();", "title": "" }, { "docid": "8da698cf9e56c75740f16b167618b601", "score": "0.42444378", "text": "boolean hasUrl();", "title": "" }, { "docid": "8da698cf9e56c75740f16b167618b601", "score": "0.42444378", "text": "boolean hasUrl();", "title": "" }, { "docid": "8da698cf9e56c75740f16b167618b601", "score": "0.42444378", "text": "boolean hasUrl();", "title": "" }, { "docid": "04d07dc695f74cdbaca23bdaf67b5a47", "score": "0.4244071", "text": "@Override\n\t\t\tpublic boolean shouldOverrideUrlLoading(WebView view, String url) {\n\t\t\t\tview.loadUrl(url);\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "04d07dc695f74cdbaca23bdaf67b5a47", "score": "0.4244071", "text": "@Override\n\t\t\tpublic boolean shouldOverrideUrlLoading(WebView view, String url) {\n\t\t\t\tview.loadUrl(url);\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "13b0aeef723db8fef43bdd892468e2f8", "score": "0.4244036", "text": "private String prepareURL(String disallowedURL) {\n disallowedURL = disallowedURL.replace(\".\", \"\\\\.\");\n disallowedURL = disallowedURL.replace(\"*\",\".*\");\n return disallowedURL;\n }", "title": "" }, { "docid": "b8ad864beea6bfe8f579e0c0873b81d1", "score": "0.42341864", "text": "@Override\r\n\t\t\tpublic boolean shouldOverrideUrlLoading(WebView view, final String url) {\n\t\t\t\tview.loadUrl(url);\r\n\t\t\t\treturn true;\r\n\t\t\t}", "title": "" }, { "docid": "3b8e8a345aab6046231583b47d52a0d3", "score": "0.42340052", "text": "java.lang.String getGoodUrl(int index);", "title": "" }, { "docid": "e4edecb3355972805b60bc68a2c46735", "score": "0.42288187", "text": "private void crawl(URL seedUrl, URL baseURL, int limit) {\n\t\tString html;\n\t\ttry {\n\t\t\thtml = HTMLFetcher.fetchHTML(seedUrl);\n\t\t\tint status = HTMLFetcher.getStatusCode(HttpsFetcher.fetchURL(seedUrl));\n\t\t\tif (html != null) {\n\t\t\t\tArrayList<URL> links = LinkParser.listLinks(baseURL, html);\n\t\t\t\tsynchronized (completedUrls) {\n\t\t\t\t\tfor (URL link : links) {\n\t\t\t\t\t\tif (completedUrls.contains(link) == false && completedUrls.size() < limit) {\n\t\t\t\t\t\t\tcompletedUrls.add(link);\n\t\t\t\t\t\t\tString baseUrl = seedUrl.getProtocol() + \"://\" + seedUrl.getHost() + seedUrl.getPath();\n\t\t\t\t\t\t\tURL base;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tbase = new URL(baseUrl);\n\t\t\t\t\t\t\t\tworker.execute(new TheCrawler(link, base, limit));\n\t\t\t\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\t\t\t\tSystem.err.println(\"Invalid url \" + link.toString() + \"unable to crawl\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (status == -1) {\n\t\t\t\thtml = getHtml(seedUrl);\n\t\t\t\tif (html != null) {\n\t\t\t\t\taddLink(seedUrl, html);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (html != null) {\n\t\t\t\t\tString cleanedHtml = HTMLCleaner.stripHTML(html);\n\t\t\t\t\tif (cleanedHtml != null) {\n\t\t\t\t\t\taddLink(seedUrl, cleanedHtml);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"Unable to fetch html for url \" + seedUrl.toString());\n\t\t}\n\t}", "title": "" }, { "docid": "df3be118bc827069aae8be912ca73d7e", "score": "0.4228446", "text": "@Override\n @Transactional\n public void process(Page page) {\n\n //电影页面\n if (page.getUrl().regex(URL_FILM).match() ) {\n\n\n //从网页中提取filmObject,只是部分字段,用于判断是否需要保存此object。\n Film f = filmService.extractFilmFirstFromCrawler(page);\n String[] result = filmService.needCrawler(f,directorAllowEmpty,actorAllowEmpty);\n if (Boolean.valueOf(result[0])) {\n //完整提取film信息\n f = filmService.extractFilmSecondFromCrawler(page,f);\n //filmService.save(f);\n needSaveFilms.add(f);\n\n }else{\n //skip this page\n page.setSkip(true);\n }\n\n //判断是否是电影,电视剧跳过执行\n if(!Boolean.valueOf(result[1])){\n //从页面发现后续的url地址来抓取:不管film存不存在,都把人物url加入到任务列表中,避免:某些情况film成功抓取后,人物抓取时由于超时或其他错误造成抓取失败,抓取失败后就永远不会再进行抓取了\n //1)当前电影所有人物的url\n Selectable selectable = page.getHtml().css(\"div.subject.clearfix\").links().regex(URL_PERSON);\n List<String> personListFinally = filterUrl(selectable,\"/celebrity/(\\\\d+)/\",dbPersonsDouBanNo);\n page.addTargetRequests(personListFinally);\n\n //不管当前film是否已存在,还是把关联film是加入到任务队列,尽可能扩大范围\n if(!this.singleCrawler){\n //2)后续的电影url,有10个\n //2.1)取出后续电影doubannNo LIST,判断dbFilmsDouBanNoList是否已存在,已存在就不add了\n selectable = page.getHtml().xpath(\"//div[@class='recommendations-bd']/dl/dt\").links().regex(URL_FILM_FROM_SUBJECT_PAGE);\n List<String> filmListFinally = filterUrl(selectable,\"/subject/(\\\\d+)/\",dbFilmsDouBanNo);\n page.addTargetRequests(filmListFinally);\n\n }\n\n }\n\n\n\n\n\n\n }else if(page.getUrl().regex(URL_PERSON).match()){\n\n Person p = personService.extractFilmFirstFromCrawler(page);\n if(personService.needCrawler(p)){\n //完整提取person信息\n p = personService.extractFilmSecondFromCrawler(page);\n //personService.save(p);\n needSavePersons.add(p);\n\n }else {\n page.setSkip(true);\n }\n\n //扩大爬虫范围,不管当前person是否已经存在\n if(!this.singleCrawler){\n //最受欢迎5部\n //page.addTargetRequests(page.getHtml().xpath(\"//div[@id='best_movies']\").css(\"div.info\").links().regex(URL_FILM).all());\n Selectable selectable = page.getHtml().xpath(\"//div[@id='best_movies']\").css(\"div.info\").links().regex(URL_FILM);\n List<String> filmListFinally = filterUrl(selectable,\"/subject/(\\\\d+)/\",dbFilmsDouBanNo);\n page.addTargetRequests(filmListFinally);\n //合作2次以上的影人\n //page.addTargetRequests(page.getHtml().xpath(\"//div[@id='partners']\").css(\"div.pic\").links().regex(URL_PERSON).all());\n }\n\n\n } else if(page.getUrl().regex(URL_SEARCH).match()){\n //关键字搜索URL\n // https://movie.douban.com/subject_search?search_text=%E9%BE%99\n //搜索结果第一页\n //*[@id=\"root\"]/div/div[2]/div[1]/div[1]/div[13]/div/div[1]\n //page.addTargetRequests(page.getHtml().xpath(\"//*[@class=\\\"title\\\"]\").links().regex(URL_FILM).all());\n\n Selectable selectable = page.getHtml().links().regex(URL_FILM);\n List<String> filmListFinally = filterUrl(selectable,\"/subject/(\\\\d+)/\",dbFilmsDouBanNo);\n page.addTargetRequests(filmListFinally);\n\n }else if(page.getUrl().regex(URL_HOMEPAGE).match()){\n //入口是豆瓣主页\n //1)正在热映\n //page.addTargetRequests(page.getHtml().xpath(\"//*[@id=\\\"screening\\\"]/div[2]/ul/li/ul/li[2]\").links().regex(URL_FILM_FROM_SHOWING).all());\n\n Selectable selectable = page.getHtml().xpath(\"//*[@id=\\\"screening\\\"]/div[2]/ul/li/ul/li[2]\").links().regex(URL_FILM_FROM_SHOWING);\n List<String> filmListFinally = filterUrl(selectable,\"/subject/(\\\\d+)/\",dbFilmsDouBanNo);\n page.addTargetRequests(filmListFinally);\n\n //2)最近热门电影:貌似是动态生成,抓不到\n //page.addTargetRequests(page.getHtml().xpath(\"//div[@class='slide-page']\").links().regex(URL_FILM_FROM_HOT).all());\n } else {\n// 错误:URL不符合规则,直接退出\n }\n\n\n /**\n * 批量保存,而不是抓一个就保存一次\n */\n System.out.println(\"-->NeedSavePersons::::\"+needSavePersons.size());\n System.out.println(\"-->NeedSaveFilms::::::\"+needSaveFilms.size());\n int size = needSavePersons.size()+needSaveFilms.size();\n if(size >= batchNumber){\n try {\n for(int i = 0;i<needSavePersons.size();i++){\n Person person = needSavePersons.get(i);\n //存在隐患:万一保存失败\n dbPersonsDouBanNo.add(person.getDoubanNo());\n entityManager.persist(person);\n }\n for (int i = 0;i<needSaveFilms.size();i++){\n Film film = needSaveFilms.get(i);\n //存在隐患:万一保存失败\n dbFilmsDouBanNo.add(film.getDoubanNo());\n entityManager.persist(film);\n }\n entityManager.flush();\n entityManager.clear();\n }catch (Exception e){\n needSavePersons.clear();\n needSaveFilms.clear();\n }finally {\n //加入到savedPersons\n savedPersons.addAll(needSavePersons);\n needSavePersons.clear();\n savedFilms.addAll(needSaveFilms);\n needSaveFilms.clear();\n }\n }\n }", "title": "" }, { "docid": "bba5c8dd4251f1c4f8bbd937d9fb4630", "score": "0.4225224", "text": "public boolean crawl(String link) {\n try {\n\n if(link.isEmpty()) {\n return false;\n }\n\n Connection con = Jsoup.connect(link).userAgent(userAgent);\n Document doc = con.get();\n if(con.response().statusCode() != 200) {\n return false;\n }\n\n searchDocument(doc);\n\n Elements linksOnPage = doc.select(\"a[href]\");\n for(Element e : linksOnPage) {\n links.add(e.absUrl(\"href\"));\n }\n\n for(int i : amountFound) {\n if(i > 0) return true;\n }\n\n return false;\n } catch (IOException err) {\n ErrorReport.createErrorReport(err);\n return false;\n }\n }", "title": "" }, { "docid": "e4bde9ee698b08ebaca5574706935f81", "score": "0.4224239", "text": "public void setURL(final URL url, final String lang) {\n SwingWorker<Void, Void> sw = new SwingWorker<Void, Void>() {\n @Override\n public Void doInBackground() {\n \t File page = new File(SessionService.getConfFileByPath(Const.FILE_CACHE).getAbsolutePath()\n \t + '/' + UtilSystem.getOnlyFile(url.toString() + \".html\"));\n File expectedCacheFile = SessionService.getCachePath(url);\n try {\n setCursor(UtilGUI.WAIT_CURSOR);\n if (!expectedCacheFile.exists()) {\n DownloadManager.downloadToCache(url);\n }\n // first indicate that we are loading a new page\n setLoading(url);\n String sPage = DownloadManager.getTextFromCachedFile(url,\"UTF-8\");\n // Leave if no result\n if (sPage == null) {\n return null;\n }\n // Remove scripting\n int index = -1;\n int lastindex = -1;\n StringBuilder sb = new StringBuilder(sPage);\n // only the part between <!-- start content --> and <!-- end content\n // --> is\n // important to us\n index = sb.indexOf(\"<!-- start content -->\");\n lastindex = sb.indexOf(\"</body></html>\");\n if (index > 0) {\n sb.delete(0, index);\n sb.delete(sb.indexOf(\"<!-- end content -->\") + 20, lastindex);\n }\n sPage = sb.toString();\n // fix internal links\n sPage = sPage.replaceAll(\"href=\\\"/\", \"href=\\\"http://\" + lang + \".wikipedia.org/\");\n // Display the page\n showPage(sPage, page);\n // Set current url as a tooltip\n setToolTipText(url.toString());\n } catch (FileNotFoundException e) {\n // This happens whenever the Artist is not listed on Wikipedia, so we should report this more user-friendly\n Log.debug(\"Could not read page: {{\" + url.toString() + \" Cache: \" + page + \"}}\");\n try {\n setFailedToLoad(Messages.getString(\"WikipediaView.9\") + \": \" + url.toString());\n } catch (IOException e1) {\n Log.error(e1);\n } catch (SAXException e1) {\n Log.error(e1);\n }\n } catch (IOException e) {\n // report IOException only as warning here as we can expect this to\n // happen frequently with images on the net\n Log.warn(\"Could not read page: {{\" + url.toString() + \" Cache: \" + page + \"}}\",\n e.getMessage());\n try {\n setFailedToLoad(URL_COLON + url + COLON + e.getClass().getSimpleName() + COLON\n + e.getMessage());\n } catch (IOException e1) {\n Log.error(e1);\n } catch (SAXException e1) {\n Log.error(e1);\n }\n } catch (Exception e) {\n Log.error(e);\n try {\n setFailedToLoad(URL_COLON + url + COLON + e.getClass().getSimpleName() + COLON\n + e.getMessage());\n } catch (IOException e1) {\n Log.error(e1);\n } catch (SAXException e1) {\n Log.error(e1);\n }\n } finally {\n // Disable waiting cursor\n setCursor(UtilGUI.DEFAULT_CURSOR);\n }\n return null;\n }\n };\n sw.execute();\n }", "title": "" }, { "docid": "18c1e6dbd526081ad5cf0f28f4a47b93", "score": "0.4223977", "text": "private boolean loadUrl(String url){\n\n // Check if the \"url\" is actually a saved file\n Log.d(\"xfile\", \"webviewUrl: \" + webView.getUrl());\n Log.d(\"xfile\", \"url to be: \" + url);\n if (url.startsWith(\"cid\")) {\n Log.d(\"xfile\", \"displayingSavedPage yessir\");\n saveButton.setBackgroundTintList(ColorStateList.valueOf(Color.parseColor(\"#778BC34A\")));\n return false;\n } else {\n saveButton.setBackgroundTintList(ColorStateList.valueOf(Color.parseColor(\"#17000000\")));\n\n }\n\n\n\n\n // If \"url\" is an actual web address (and not pointing to a saved file),\n // check if it's saved.\n if (!checkIfUrlIsFile(url) && checkIfUrlSaved(url)) {\n Log.d(\"xfile\", \"opening saved\");\n\n // Colour the save button green\n saveButton.setBackgroundTintList(ColorStateList.valueOf(Color.parseColor(\"#778BC34A\")));\n //File file = new File(fileNameFromUrl(url));\n // Load saved web page into the webView\n webView.loadUrl(\"file://\"+fileNameFromUrl(url));\n displayingSavedPage = true;\n // Override url loading of the original page because we will load the saved one\n return true;\n } else {\n webView.loadUrl(url);\n saveButton.setBackgroundTintList(ColorStateList.valueOf(Color.parseColor(\"#17000000\")));\n return false;\n }\n }", "title": "" }, { "docid": "25bf29cfb7646bec9024af43f0ea5f01", "score": "0.42226467", "text": "boolean processURL();", "title": "" }, { "docid": "7297b2af78e37aefcfb812426b31855a", "score": "0.42223465", "text": "@BeforeMethod(alwaysRun = true)\r\n\t@Parameters({ CommonConstants.RUNTIME_URL_KEY })\r\n\tpublic void preConditions(@Optional String url) throws IOException {\r\n\r\n\t\t// assigning the desired capabilities to the driver\r\n\t\ttry {\r\n\t\t\tprojectConstants = new Properties();\r\n\t\t\tprojectConstants\r\n\t\t\t\t\t.load(getClass().getClassLoader().getResourceAsStream(CommonConstants.PROJECT_CONSTANTS_FILE));\r\n\t\t} catch (NullPointerException npe) {\r\n\t\t\tAssert.fail(CommonConstants.PROJECT_CONSTANTS_FILE + \" is missing\");\r\n\t\t}\r\n\t\tSystem.setProperty(CommonConstants.CHROME_DRIVER_SET_PROPERTY, CommonConstants.CHROME_DRIVER_PATH);\r\n\t\tdriver = new ChromeDriver();\r\n\t\tLOGGER.info(\"Google Chrome Browser is Launching\");\r\n\t\tdriver.get(projectConstants.getProperty(CommonConstants.SITE_HOMEPAGE_URL));\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\t\tsetTestSiteURL(url);\r\n\t}", "title": "" }, { "docid": "878a29e3299fca33805a9c1c884ca55e", "score": "0.42187157", "text": "protected abstract void crawl();", "title": "" }, { "docid": "31ef4f84e5429662a726f2813e5e9449", "score": "0.42178574", "text": "@Override\n\t\t\tpublic boolean shouldOverrideUrlLoading(WebView view, String url) {\n\t\t\t\tview.loadUrl(url);\n\t\t\t\t// 如果不需要其他对点击链接事件的处理返回true,否则返回false\n\t\t\t\treturn true;\n\t\t\t}", "title": "" }, { "docid": "06d44f01829bd73813608964d3695aa6", "score": "0.42157632", "text": "public void setPageUrl(String pageUrl) {\n this.pageUrl = pageUrl == null ? null : pageUrl.trim();\n }", "title": "" }, { "docid": "9849968cf2f19556f5a5e8b0c15f7c76", "score": "0.42105514", "text": "@Override\r\n\t\t\t\t\t\t\tpublic boolean shouldOverrideUrlLoading(WebView view, String url) {\n\t\t\t\t\t\t\t\tview.loadUrl(url);\r\n\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t}", "title": "" } ]
c37447d0820101bc13e9bfe6ed7ac093
5. get graph with jobs
[ { "docid": "24d2e0a1b2fa7d9c1175a6cf5547d225", "score": "0.7302717", "text": "public static Map<String, GNode> getGraph(Job j){\n Map<String, GNode> graph = new HashMap<>();\n for(Task t: j.tasks){\n GNode child = graph.getOrDefault(t.taskId, new GNode(0, 0, t.taskId));\n for(String tp : t.parents){\n GNode parent = graph.getOrDefault(tp, new GNode(0,0, tp));\n parent.outDegree++;\n child.inDegree++;\n graph.put(tp, parent);\n }\n graph.put(t.taskId, child);\n }\n return graph;\n }", "title": "" } ]
[ { "docid": "b677166bcb03964f1c6b9d7b855f8501", "score": "0.6508536", "text": "public List<Job> GetFullsRoadNetwork()\n {\n List<Job> jobs = new ArrayList<Job>();\n Iterable<Node> allNodes = NodeRepo.findAll();\n List<Long> doneNodes = new ArrayList<Long>();\n\n for (Node node : allNodes) {\n for (NodeLink link : node.getLinkList())\n {\n if(!doneNodes.contains(link.GetLinkedNode()))\n {\n Job job = new Job();\n job.setSingleNode(node);\n Optional<Node> temp = NodeRepo.findById(link.GetLinkedNode());\n if(temp.isPresent()){\n job.setSingleNode(temp.get());\n }\n\n jobs.add(job);\n }\n doneNodes.add(node.GetNodeId());\n\n }\n }\n return jobs;\n }", "title": "" }, { "docid": "a821fe0a7d9f44ce40bcfa03d3735dc1", "score": "0.62682647", "text": "Graph getGraphs();", "title": "" }, { "docid": "a821fe0a7d9f44ce40bcfa03d3735dc1", "score": "0.62682647", "text": "Graph getGraphs();", "title": "" }, { "docid": "a0620bf91056e49b051682237ab169b6", "score": "0.60467327", "text": "private Set<Integer> scheduleGraphs(DataFlowGraph graph) {\n if (workerInfoList.size() == graph.getWorkers()) {\n for (JobMasterAPI.WorkerInfo workerInfos : workerInfoList) {\n workerList.add(workerInfos.getWorkerID());\n }\n } else if (workerInfoList.size() > graph.getWorkers()) {\n for (JobMasterAPI.WorkerInfo workerInfos : workerInfoList) {\n IntStream.range(0, graph.getWorkers()).mapToObj(\n i -> workerInfos.getWorkerID()).forEachOrdered(workerList::add);\n if (workerList.size() == graph.getWorkers()) {\n break;\n }\n\n }\n } else {\n throw new Twister2RuntimeException(\"Insufficient resources to run the dataflow graph\");\n }\n return workerList;\n }", "title": "" }, { "docid": "d60490d8c45d5ce94aca2e824f68d813", "score": "0.5953089", "text": "Object getGraph();", "title": "" }, { "docid": "94bda0d304c58502bed08efeae9f3fdb", "score": "0.59527504", "text": "public String getAllJobs();", "title": "" }, { "docid": "0bc9b5e29a88a3c21eb94c59adfb9472", "score": "0.5932969", "text": "public List<Job> requestHistory();", "title": "" }, { "docid": "0e0aa73e392f9bfa2f21fff48ea9e567", "score": "0.58698934", "text": "public static void main(String[] args)\n {\n\n SymbolDigraph SG = new SymbolDigraph(\"jobs.txt\", \"/\");\n Digraph G = SG.G();\n Topological t = new Topological(G);\n if (!t.isDAG())\n StdOut.print(\"This Digraph can not be topological sorted\");\n else\n for (int v : t.order())\n StdOut.println(SG.name(v));\n }", "title": "" }, { "docid": "df686ef41bd0d8d5aff33183cbb92fdb", "score": "0.5684842", "text": "public void getJobs(){\n \n }", "title": "" }, { "docid": "570de80e1a9076431b3d59075aec0ba7", "score": "0.5684663", "text": "public static void main(String[] args) {\n\t\tWorkstation A = new Workstation(\"A\", new Melting());\n\t\tWorkstation B = new Workstation(\"B\", new Macerating());\n\t\tWorkstation C = new Workstation(\"C\", new Extracting());\n\t\tWorkstation D = new Workstation(\"D\", new Compressing());\n\t\tWorkstation E = new Workstation(\"E\", new Assembling());\n\t\t\n\t\tGraph graph = new Graph();\n\n\t\tgraph.addWorkstation(A);\n\t\tgraph.addWorkstation(B);\n\t\tgraph.addWorkstation(C);\n\t\tgraph.addWorkstation(D);\n\t\tgraph.addWorkstation(E);\n\t\t\n\t\tgraph.addWsLink(A, C);\n\t\tgraph.addWsLink(C, E);\n\t\tgraph.addWsLink(A, D);\n\t\tgraph.addWsLink(B, D);\n\t\tgraph.addWsLink(D, E);\n\t\t\n\t\tArticle O1 = new Article();\n\t\tArticle O2 = new Article();\n\t\tArticle O3 = new Article();\n\t\tList<Article> aL1 = new ArrayList<Article>(), aL2 = new ArrayList<Article>();\n\t\taL1.add(O1);\n\t\taL1.add(O2);\n\t\taL2.add(O3);\n\t\tWorker a1 = new Worker(aL1, graph);\n\t\tWorker a2 = new Worker(aL1, graph);\n\t\tWorker a3 = new Worker(aL2, graph);\n\t\tThread t1 = new Thread(a1);\n\t\tThread t2 = new Thread(a2);\n\t\tThread t3 = new Thread(a3);\n\t\tt2.start();\n\t\tt1.start();\n\t\tt3.start();\n\t\t\n\t\ttry {\n\t\t\tt1.join();\n\t\t\tt2.join();\n\t\t\tt3.join();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSystem.out.println(\"###########\\n\");\n\t\tSystem.out.println(a1.getLog());\n\t\tSystem.out.println(a2.getLog());\n\t\tSystem.out.println(a3.getLog());\n\t\tSystem.out.println(\"###########\\n\\n\" + O1.getLog());\n\t\tSystem.out.println(O2.getLog());\n\t\tSystem.out.println(O3.getLog());\n\t\t\n\t}", "title": "" }, { "docid": "e8247b41ab4b6ac5b45a7a864fa8be95", "score": "0.567749", "text": "Graph getGraph();", "title": "" }, { "docid": "697423cc7f60b67d160ead2fc7c910d8", "score": "0.567529", "text": "List<JobDefinition> getAllJobs();", "title": "" }, { "docid": "75dddfa1394baa24a3d4c12b60f8c743", "score": "0.5667794", "text": "Job getNextJob();", "title": "" }, { "docid": "8b611592c4034e2addfa02e11ac554eb", "score": "0.56357104", "text": "TaskActivityGraph createTaskActivityGraph();", "title": "" }, { "docid": "33163c6a52af72b2cdbb2d94018f733b", "score": "0.5598106", "text": "@Test\n\tpublic void testCreateSimpleGraphBipartite() throws Exception {\n\t\t\n\t\tfinal JobID jobId = new JobID();\n\t\tfinal String jobName = \"Test Job Sample Name\";\n\t\tfinal Configuration cfg = new Configuration();\n\t\t\n\t\tJobVertex v1 = new JobVertex(\"vertex1\");\n\t\tJobVertex v2 = new JobVertex(\"vertex2\");\n\t\tJobVertex v3 = new JobVertex(\"vertex3\");\n\t\tJobVertex v4 = new JobVertex(\"vertex4\");\n\t\tJobVertex v5 = new JobVertex(\"vertex5\");\n\t\t\n\t\tv1.setParallelism(5);\n\t\tv2.setParallelism(7);\n\t\tv3.setParallelism(2);\n\t\tv4.setParallelism(11);\n\t\tv5.setParallelism(4);\n\n\t\tv1.setInvokableClass(AbstractInvokable.class);\n\t\tv2.setInvokableClass(AbstractInvokable.class);\n\t\tv3.setInvokableClass(AbstractInvokable.class);\n\t\tv4.setInvokableClass(AbstractInvokable.class);\n\t\tv5.setInvokableClass(AbstractInvokable.class);\n\n\t\tv2.connectNewDataSetAsInput(v1, DistributionPattern.ALL_TO_ALL, ResultPartitionType.PIPELINED);\n\t\tv4.connectNewDataSetAsInput(v2, DistributionPattern.ALL_TO_ALL, ResultPartitionType.PIPELINED);\n\t\tv4.connectNewDataSetAsInput(v3, DistributionPattern.ALL_TO_ALL, ResultPartitionType.PIPELINED);\n\t\tv5.connectNewDataSetAsInput(v4, DistributionPattern.ALL_TO_ALL, ResultPartitionType.PIPELINED);\n\t\tv5.connectNewDataSetAsInput(v3, DistributionPattern.ALL_TO_ALL, ResultPartitionType.PIPELINED);\n\t\t\n\t\tList<JobVertex> ordered = new ArrayList<JobVertex>(Arrays.asList(v1, v2, v3, v4, v5));\n\n\t\tExecutionGraph eg = new ExecutionGraph(\n\t\t\tTestingUtils.defaultExecutor(),\n\t\t\tTestingUtils.defaultExecutor(),\n\t\t\tjobId, \n\t\t\tjobName, \n\t\t\tcfg,\n\t\t\tnew SerializedValue<>(new ExecutionConfig()),\n\t\t\tAkkaUtils.getDefaultTimeout(),\n\t\t\tnew NoRestartStrategy(),\n\t\t\tnew Scheduler(TestingUtils.defaultExecutionContext()));\n\t\ttry {\n\t\t\teg.attachJobGraph(ordered);\n\t\t}\n\t\tcatch (JobException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Job failed with exception: \" + e.getMessage());\n\t\t}\n\t\t\n\t\tverifyTestGraph(eg, jobId, v1, v2, v3, v4, v5);\n\t}", "title": "" }, { "docid": "54e793f86b05a7f31d50760c56266cdb", "score": "0.55801845", "text": "List<String> findDispatchJobs(DispatchHost host, ShowInterface show, int numJobs);", "title": "" }, { "docid": "569e2e2445454f6f16117037b939c8ff", "score": "0.5535007", "text": "List<String> findDispatchJobs(DispatchHost host, int numJobs);", "title": "" }, { "docid": "414dec79886a36745da8e0f688caeacd", "score": "0.552938", "text": "public static void getGraph(String input, String output) throws IOException {\n JobConf jobConf = new JobConf(GraphPropCal.class);\n FileInputFormat.setInputPaths(jobConf, new Path(input));\n FileOutputFormat.setOutputPath(jobConf, new Path(output));\n jobConf.setMapperClass(GraphMapper.class);\n jobConf.setReducerClass(GraphReducer.class);\n jobConf.setMapOutputKeyClass(Text.class);\n jobConf.setMapOutputValueClass(IntWritable.class);\n jobConf.setOutputKeyClass(Text.class);\n jobConf.setOutputValueClass(IntWritable.class);\n JobClient.runJob(jobConf);\n }", "title": "" }, { "docid": "a1d7c7c69c64b5380124b8d726301b05", "score": "0.55278087", "text": "public JobVec getJobs() { return this.jobs; }", "title": "" }, { "docid": "88b73f060ea5175561b086f0bca698f5", "score": "0.5527492", "text": "List<WorkerNetworkInfo> getWorkerList();", "title": "" }, { "docid": "182bcaaa9d8c08bcf75723d0a36abc48", "score": "0.5513527", "text": "Map<String,Map> getDependenciesGraph();", "title": "" }, { "docid": "5ce6b544fe4d8326e96620a9bfa78586", "score": "0.54712564", "text": "public LinkedList<ManagementVertex> jobToManagementList(ManagementGraphIterator mgi) {\n\t\t\n\t\tLinkedList<ManagementVertex> verticeslist = new LinkedList<ManagementVertex>();\n\t\t\n\t\twhile (mgi.hasNext()) {\n\t\t\tManagementVertex mv = mgi.next();\n\t\t\tverticeslist.add(mv);\n\t\t}\n\t\t\n\t\treturn verticeslist;\n\t}", "title": "" }, { "docid": "3e8ba5f3697a8916d7fb052b36cb4277", "score": "0.544633", "text": "CompletableFuture<Collection<JobStatusMessage>> listJobs() throws Exception;", "title": "" }, { "docid": "e5e4c59b53132b94609f808ab289aa47", "score": "0.54425204", "text": "public abstract JobInfo getJobInfo();", "title": "" }, { "docid": "326f5eb380675e200e85671b3fd0be55", "score": "0.5438407", "text": "public void createGraph(){\n\n HashMap<String, TaskNode> dependencyGraph = DependencyGraph.getDependencyGraph().nodeMap;\n\n Graph graph = new SingleGraph(\"Tutorial 1\");\n graph.setAttribute(\"ui.stylesheet\", style);\n dependencyGraph.forEach((k,v)->{\n String parentName = v.getTaskName();\n\n if(graph.getNode(parentName) == null){\n Node parentNode=graph.addNode(parentName);\n nodeList.add(parentName);\n parentNode.setAttribute(\"ui.label\",parentName);\n parentNode.setAttribute(\"layout.weight\", 10);\n }\n\n List<TaskEdge> edges = v.getInbound();\n\n for (TaskEdge edge : edges) {\n String childName = edge.getParentNode().getTaskName();\n if(graph.getNode(childName)==null){\n Node childNode=graph.addNode(childName);\n childNode.setAttribute(\"ui.label\",edge.getParentNode().getDuration());\n nodeList.add(childName);\n childNode.setAttribute(\"layout.weight\", 10);\n }\n Edge nodeEdge=graph.addEdge(parentName+childName,childName,parentName,true);\n nodeEdge.setAttribute(\"ui.stylesheet\", style);\n nodeEdge.setAttribute(\"ui.label\", edge.getDelay());\n nodeEdge.setAttribute(\"layout.weight\", edgeWidth);\n edgeMap.add(parentName+childName);\n }\n });\n this.graph = graph;\n }", "title": "" }, { "docid": "eb149b031271e3ffdebb3a88563fcd3d", "score": "0.5363069", "text": "public abstract List<Jobstatusinfo> getInfoJob(String jobId);", "title": "" }, { "docid": "9880e0946e70611035b869d152397cd9", "score": "0.53544116", "text": "@Test\n public void testAddTask1() {\n DAGTask task1 = new DAGTask(jobAId, 1, 1, t1);\n DAGTask task2 = new DAGTask(jobBId, 2, 1, t1);\n DAGTask task3 = new DAGTask(jobCId, 3, 1, t1);\n taskGraph.addTask(task1.getTaskId(), task1);\n taskGraph.addTask(task2.getTaskId(), task2);\n taskGraph.addTask(task3.getTaskId(), task3);\n taskGraph.addDependency(task1.getTaskId(), task2.getTaskId());\n taskGraph.addDependency(task1.getTaskId(), task3.getTaskId());\n\n Assert.assertEquals(2, taskGraph.getChildren(task1.getTaskId()).size());\n Assert.assertEquals(1, taskGraph.getParents(task2.getTaskId()).size());\n Assert.assertEquals(1, taskGraph.getParents(task3.getTaskId()).size());\n }", "title": "" }, { "docid": "96b7f9907cefa69db17c24d8f463cec3", "score": "0.5347833", "text": "public List<Task> makeGraphStructure(){\n Task start = new Task(-1, 0, 0, \"start\", new ArrayList<Integer>());\n for (Task t: tasks) {\n if (t.cntPredecessors == 0){\n t.inEdges.add(start);\n start.outEdges.add(t);\n }\n }\n\n //add finish point after all finishing tasks\n Task finish = new Task(-2, 0, 0, \"finish\", new ArrayList<Integer>());\n for (Task t: tasks) {\n if (t.outEdges.size() == 0){\n t.outEdges.add(finish);\n finish.inEdges.add(t);\n }\n }\n\n List<Task> sortedTasks = new ArrayList<>();\n sortedTasks.add(start);\n sortedTasks.addAll(topSortedTasks);\n sortedTasks.add(finish);\n\n return sortedTasks;\n }", "title": "" }, { "docid": "21074ecce74705df68e91d28ef721cc6", "score": "0.53461534", "text": "public List<Job> getJobList() {\n List<Job> jobsPrint = new ArrayList<>();\n for (Map.Entry<Integer, Job> entry : jobs.entrySet()) {\n jobsPrint.add(entry.getValue());\n }\n return jobsPrint;\n }", "title": "" }, { "docid": "05702c3a8fe372cdad4b33181e00710c", "score": "0.5340861", "text": "@Test\n public void testAddTask2() {\n DAGTask task1 = new DAGTask(jobAId, 1, 1, t1);\n DAGTask task2 = new DAGTask(jobBId, 2, 1, t1);\n DAGTask task3 = new DAGTask(jobCId, 3, 1, t1);\n taskGraph.addTask(task1.getTaskId(), task1);\n taskGraph.addTask(task2.getTaskId(), task2);\n taskGraph.addTask(task3.getTaskId(), task3);\n taskGraph.addDependency(task1.getTaskId(), task3.getTaskId());\n taskGraph.addDependency(task2.getTaskId(), task3.getTaskId());\n\n Assert.assertEquals(1, taskGraph.getChildren(task1.getTaskId()).size());\n Assert.assertEquals(1, taskGraph.getChildren(task2.getTaskId()).size());\n Assert.assertEquals(2, taskGraph.getParents(task3.getTaskId()).size());\n }", "title": "" }, { "docid": "e282ba21c311d7f36b08513d80d59f4b", "score": "0.5327305", "text": "List<String> findDispatchJobs(DispatchHost host, GroupInterface p);", "title": "" }, { "docid": "cc5abae89176ca45e4bd035128940685", "score": "0.5307417", "text": "pomelo.task.TaskOuterClass.Tasks getTasks();", "title": "" }, { "docid": "77f0f345c3c0effa6359a19b15c2d673", "score": "0.52936536", "text": "@Override\n public List<Job> getAllJobs() {\n List<Job> jobs = new ArrayList<>();\n try {\n ResultSet resultSet = connection.prepareStatement(\"select * from jobs\")\n .executeQuery();\n while (resultSet.next()) {\n jobs.add(new Job(resultSet.getString(1), resultSet.getString(2), \n resultSet.getFloat(3), resultSet.getFloat(4)));\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return jobs;\n }", "title": "" }, { "docid": "ac1ac8552ec7dda693b7f33072c84e77", "score": "0.52704024", "text": "com.alibaba.maxgraph.proto.WorkerInfoProtos getWorkerInfoProtos();", "title": "" }, { "docid": "0737f58680d92268c727446510b70111", "score": "0.526048", "text": "public List<DJob> getJobs() {\n\n\t\tresult = null;\n\n\t\tAbstractDataProvider adp = DAO.getInstance().getDataProvider(uiConfigBean.getSelectedDataProvider());\n\n\t\tList<DTarget> tList = adp.getTargets();\n\n\t\tif (tList == null) {\n\t\t\tresult = \"failed to retrieve jobs\";\n\t\t\treturn new ArrayList<>();\n\t\t}\n\n\t\tMap<String, DJob> jMap = new HashMap<>();\n\n\t\tfor (DTarget t : tList) {\n\t\t\tDJob job = jMap.getOrDefault(t.getJob(), new DJob());\n\t\t\tjob.setName(t.getJob());\n\t\t\tjob.getTargetList().add(t);\n\t\t\tjMap.put(job.getName(), job);\n\t\t}\n\n\t\treturn new ArrayList<>(jMap.values());\n\t}", "title": "" }, { "docid": "b8c4829d970f7e57d3a6d07545b0308a", "score": "0.5242585", "text": "public Graph convertApplicationDescriptionToGraph(ApplicationDescription appdesc)\n\t\t\t{\t\t\t\t\n\t\t\t\tGraph g = new DefaultGraph(true);\n\t\t\t\tdatafiles = new Vector();\t\t\t\t\n\t\t\t\t//DAG dag = appdesc.getDAG();\t-->comentado por vindn\n\t\t\t\tDAG_DSC dag = appdesc.getDAG();\t//-->inserido por vindn\n\t\t\t\tint n = appdesc.getNumberOfTasks();\n\t\t\t\tList taskList = appdesc.getListOfTasks();\n\t\t\t\tTaskDescription[] tasks = (TaskDescription[])taskList.toArray(new TaskDescription[0]);\n\t\t\t\t\n\t\t\t\tlog.debug(\"GraphGenerator convertApplicationDescriptionToGraph: num tasks - \" + n);\n\t\t\t\t\n\t\t\t\tVector gnodes = new Vector();// vetor auxiliar com dados do nodo do grafo\n\t\t\t\tVector gnodes_names = new Vector();// vetor auxiliar com o nome da tarefa do nodo\n\t\t\t\t\n\t\t\t\tfor ( int i=0; i < n; i++ )\n\t\t\t\t{\t\n\t\t\t\t\tString id = tasks[i].getTaskName();\n\t\t\t\t\tString subid = tasks[i].getClusterId();\n\t\t\t\t\tString task_command = tasks[i].getExcutable();\t\t\t\t\t\n\t\t\t\t\t//String task_command = \"/bin/echo \" + tasks[i].getTaskName() + \" > \"+ tasks[i].getTaskName() +\".out\";\n\t\t\t\t\t\n\t\t\t\t\tGraphNode node = new GraphNode(createDefaultTask( id, subid, task_command));\t\t\t\t\n\t\t\t\t\tnode.setAttribute(\"label\",((Task)node.getNodeData()).getTaskId());\t\t\t\t\t\n\t\t\t\t\tnode.setAttribute(\"status\",\"DEPENDENT\");\n\t\t\t\t\tg.addNode(node); // add task in the graph\n\t\t\t\t\tgnodes.addElement(node);\n\t\t\t\t\tgnodes_names.addElement(id);\n\t\t\t\t\t//Debug.debug(\"GraphGenerator convertApplicationDescriptionToGraph: add Task command line: \" + ((Task)node.getNodeData()).getCommand_Line());VDN:4/1/6\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t Enumeration e = appdesc.getListOfTasks().elements();\n\t\t\t\t\t while (e.hasMoreElements())\n\t\t\t\t\t {\n\t\t\t\t\t\t TaskDescription t = (TaskDescription)e.nextElement();\n\t\t\t\t\t\t //dag.putNodeName(t.getTaskName());\n \n\t\t\t\t\t\t // outline of the algorithm:\n\t\t\t\t\t\t // for each task \"t\"\n\t\t\t\t\t\t // check each input file \"i\"\n\t\t\t\t\t\t // search for each task \"ti\" until find first output equals to \"i\"\n\t\t\t\t\t\t //\t\t include an input datafile in the task \"t\" (\"ti\" -> \"t\")\n\t\t\t\t\t\t // include an output datafile in the task \"ti\" (\"ti\" -> \"t\"), if the output datafile was not inserted yet\t\t\t\t\t \n \n\t\t\t\t\t\t Enumeration inputList = (t.getInputFiles()).elements();\n\t\t\t\t\t\t while (inputList.hasMoreElements())\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t String outfile = (String) inputList.nextElement();\n \t\t\t\t\n\t\t\t\t\t\t\t Enumeration aux = appdesc.getListOfTasks().elements();\n\t\t\t\t\t\t\t boolean found = false;\n\t\t\t\t\t\t\t while ((!found) && (aux.hasMoreElements()))\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tTaskDescription t_aux = (TaskDescription)aux.nextElement();\n\t\t\t\t\t\t\t\tif (!(t_aux.equals(t)))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t if (t_aux.hasOutputFile(outfile))\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tString to_name = t.getTaskName();\n\t\t\t\t\t\t\t\t\t\tString from_name = t_aux.getTaskName();\n\t\t\t\t\t\t\t\t\t\tGraphNode to = (GraphNode)gnodes.elementAt(gnodes_names.indexOf(to_name));\n\t\t\t\t\t\t\t\t\t\tGraphNode from = (GraphNode)gnodes.elementAt(gnodes_names.indexOf(from_name));\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tEdge ed = new DefaultEdge(from, to, true);\n\t\t\t\t\t\t\t\t\t\tg.addEdge(ed);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tString filename = outfile;\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\tTask tfrom = (Task)from.getNodeData();\n\t\t\t\t\t\t\t\t\t\tTask tto = (Task)to.getNodeData();\n\t\t\t\t\t\t\t\t\t\t DataFile datafile = new DataFile(filename, filename, tfrom);\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t datafiles.addElement(datafile); // add this new datafile to the list\n\t\t\t\t\t\t\t\t\t\t tto.getFiles().addDataFileToInputList(datafile);\n\t\t\t\t\t\t\t\t\t\t //Debug.debug(\"GraphGenerator convertApplicationDescriptionToGraph add datafile [\"+datafile.getDataFileId()+\"] input dependency from: \" + tfrom.getTaskId() +\" -> to: \" + tto.getTaskId()); VDN:4/1/6\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t DataFile[] from_out = tfrom.getFiles().getOutputFiles();\n\t\t\t\t\t\t\t\t\t\t boolean already_inserted = false;\n\t\t\t\t\t\t\t\t\t\t for(int i=0; i < from_out.length; i++)\n\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t \tif(from_out[i].getName().equals(datafile.getName()))\n\t\t\t\t\t\t\t\t\t\t \t{\n\t\t\t\t\t\t\t\t\t\t \t\talready_inserted = true;\n\t\t\t\t\t\t\t\t\t\t \t}\t\t\t\t\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t if(! already_inserted)\n\t\t\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\ttfrom.getFiles().addDataFileToOutputList(datafile);\n\t\t\t\t\t\t\t\t\t\t\t//Debug.debug(\"GraphGenerator convertApplicationDescriptionToGraph add datafile [\"+datafile.getDataFileId()+\"] output dependency from: \" + tfrom.getTaskId() +\" -> to: \" + tto.getTaskId());VDN: 4/1/6\n\t\t\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\t \tfound = true;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t if(found == false) // se o arquivo de entrada ? input da aplica??o, ou seja nao possui uma tarefa que gera o arquivo\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\tString to_name = t.getTaskName();\n\t\t\t\t\t\t\t\tGraphNode to = (GraphNode)gnodes.elementAt(gnodes_names.indexOf(to_name));\n\t\t\t\t\t\t\t\tString filename = outfile;\n\t\t\t\t\t\t\t\tTask tto = (Task)to.getNodeData();\n\t\t\t\t\t\t\t\tDataFile datafile = new DataFile(filename, filename, null);\n\t\t\t\t\t\t\t\tdatafile.setDataFileExist(true);\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tdatafiles.addElement(datafile); // add this new datafile to the list\n\t\t\t\t\t\t\t\ttto.getFiles().addDataFileToInputList(datafile);\n\t\t\t\t\t\t\t\t//Debug.debug(\"GraphGenerator convertApplicationDescriptionToGraph add datafile [\"+datafile.getDataFileId()+\"] input dependency from Application Inputs to Task [\"+tto.getTaskId()+\"]\", true); VDN: 2006/01/13\n\t\t\t\t\t\t\t }\n\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\te = appdesc.getListOfTasks().elements();\n\t\t\t\twhile (e.hasMoreElements())\n\t\t\t\t{\n\t\t\t\t TaskDescription t = (TaskDescription)e.nextElement();\n\t\t\t\t // outline of the algorithm:\n\t\t\t\t // for each task \"t\"\n\t\t\t\t // check each output file \"i\"\n\t\t\t\t // search for each task \"ti\" until find first output equals to \"i\"\n\t\t\t\t //\t\t include an input datafile in the task \"t\" (\"ti\" -> \"t\")\n\t\t\t\t // include an output datafile in the task \"ti\" (\"ti\" -> \"t\"), if the output datafile was not inserted yet \n\t\t\t\t Enumeration outputList = (t.getOutputFiles()).elements();\n\t\t\t\t while (outputList.hasMoreElements())\n\t\t\t\t {\n\t\t\t\t\t String outfile = (String) outputList.nextElement();\n\t\t\t\t\t Enumeration aux = appdesc.getListOfTasks().elements();\n\t\t\t\t\t boolean found = false;\n\t\t\t\t\t while ((!found) && (aux.hasMoreElements()))\n\t\t\t\t\t {\n\t\t\t\t\t\t TaskDescription t_aux = (TaskDescription)aux.nextElement();\n\t\t\t\t\t\t if (!(t_aux.equals(t)))\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tif (t_aux.hasInputFile(outfile))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfound = true;\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\t if(found == false) // se o arquivo de entrada é output da aplicação, ou seja nao possui uma tarefa que gera o arquivo\n\t\t\t\t\t {\n\t\t\t\t\t \tString filename = outfile;\n\t\t\t\t\t\tString to_name = t.getTaskName();\n\t\t\t\t\t\tGraphNode to = (GraphNode)gnodes.elementAt(gnodes_names.indexOf(to_name));\n\t\t\t\t\t\tTask task = (Task)to.getNodeData();\n\t\t\t\t\t\ttask.setTaskType(TaskType.TASK_TYPE_FINAL);\n\t\t\t\t\t\t//Debug.debug(\"GraphGenerator convertApplicationDescriptionToGraph SET Task[\"+task.getTaskId()+\"] TYPE FINAL\", true); VDN 2006/01/13\n\t\t\t\t\t\tDataFile datafile = new DataFile(filename, filename, task);\n\t\t\t\t\t\tdatafile.setDataFileExist(false);\n\t\t\t\t\t\tdatafiles.addElement(datafile); // add this new datafile to the list\t\t\t\t\t\t\n\t\t\t\t\t\ttask.getFiles().addDataFileToOutputList(datafile);\t\t\t\t\t \t\n\t\t\t\t\t \t//Debug.debug(\"GraphGenerator convertApplicationDescriptionToGraph add datafile [\"+datafile.getDataFileId()+\"] output dependency from Application Outputs to Task [\"+task.getTaskId()+\"]\", true); VDN 2006/01/13\n\t\t\t\t\t }\n\n\t\t\t\t }\n\t\t\t\t}\t\t\t\t\t \n\t\t\t\n\t\t\t\treturn g;\n\t\t\t}", "title": "" }, { "docid": "9d11d940e1d478969867252a7839a216", "score": "0.5234251", "text": "@Test\n public void example1CheekGraph() {\n CommunicationsMonitor cm = new CommunicationsMonitor();\n cm.addCommunication(1, 2, 4);\n cm.addCommunication(2, 4, 8);\n cm.addCommunication(3, 4, 8);\n cm.addCommunication(1, 4, 12);\n cm.createGraph();\n\n HashMap<Integer, List<ComputerNode>> graph = cm.getComputerMapping();\n\n\n ComputerNode one = new ComputerNode(1,4);\n ComputerNode two = new ComputerNode(2,4);\n ComputerNode three = new ComputerNode(2,8);\n ComputerNode four = new ComputerNode(4,8);\n ComputerNode five = new ComputerNode(3,8);\n ComputerNode six = new ComputerNode(1,12);\n ComputerNode seven = new ComputerNode(4,12);\n one.addNeighbor(two);\n one.addNeighbor(six);\n\n\n two.addNeighbor(one);\n two.addNeighbor(three);\n\n three.addNeighbor(four);\n\n four.addNeighbor(three);\n four.addNeighbor(five);\n four.addNeighbor(seven);\n\n five.addNeighbor(four);\n\n six.addNeighbor(seven);\n seven.addNeighbor(six);\n\n\n List<ComputerNode> c1 = graph.get(1);\n List<ComputerNode> c2 = graph.get(2);\n List<ComputerNode> c3 = graph.get(3);\n List<ComputerNode> c4 = graph.get(4);\n\n assertEquals(2, c1.size());\n assertEquals(2, c2.size());\n assertEquals(1, c3.size());\n assertEquals(2, c4.size());\n\n assertEquals(c1.get(0), one);\n assertEquals(c1.get(1), six);\n assertEquals(c2.get(0), two);\n assertEquals(c2.get(1), three);\n assertEquals(c3.get(0), five);\n assertEquals(c4.get(0), four);\n assertEquals(c4.get(1), seven);\n\n\n }", "title": "" }, { "docid": "1fcf6dfa4cca5e0b5e7a2ad8d27c0ba9", "score": "0.5231394", "text": "List<SuperWorker> getActiveWorkers();", "title": "" }, { "docid": "59d77449c4a251ba571cd2e3c09cc2f7", "score": "0.5211934", "text": "public String getJobs() {\n URL restEndpoint = buildURL(username + \"/jobs\");\n return retrieveResults(restEndpoint);\n }", "title": "" }, { "docid": "69608556fd7c56fa24b05af44c641747", "score": "0.52074915", "text": "pomelo.task.TaskOuterClass.TasksOrBuilder getTasksOrBuilder();", "title": "" }, { "docid": "a2b1bba8d3e02ae62aa16b602e05beda", "score": "0.520274", "text": "static void createJobs(){\n\t\ttry{\n\t\t\tfor(String link : JavaWebCrawler.fileToSet(QUEUE_FILE)){\n\t\t\t\tqueue.put(link);\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "3dc9c95e437ea930d0f3f7126e4f64df", "score": "0.51992667", "text": "public synchronized void graph() {\n\t\tSystem.out.println(graph.toString());\n\t}", "title": "" }, { "docid": "1ec337c9bab7eccf480671e5d7c8fe9c", "score": "0.51773053", "text": "private static void graphing() {\n\t\tString fileName = memorizedTargetClass.getName();\n\t\tShutdownLogger.appendMessage(\"Graphing: \" + fileName);\n\t\t\n\t\t//Dump name map\n\t\tserializeNameMap();\n\t\t\n\t\t/*if (MIBConfiguration.getInstance().isFieldTrack()) {\n\t\t\tGlobalGraphRecorder.constructGlobalRelations(false);\n\t\t}*/\n\t\t\n\t\t//Dump all graphs in memory\n\t\tselectDominantGraphs(fileName);\n\t\t\n\t\t//Update configuration\n\t\t//logger.info(\"Update configuration\");\n\t\tupdateConfig();\n\t}", "title": "" }, { "docid": "e1d91030765a7aa181137d295672c3fd", "score": "0.51768214", "text": "abstract public Job<M> train();", "title": "" }, { "docid": "41fff097d0906551c2a978277c475bc3", "score": "0.5172979", "text": "Iterable<Node> getGraphNodes(Node gNode, List<Node> from, Environment env);", "title": "" }, { "docid": "2b4351be941a14ef90e48311acf1867a", "score": "0.51685333", "text": "CompletableFuture<Map<String, Object>> getAccumulators(JobID jobID, ClassLoader loader);", "title": "" }, { "docid": "b2b35490b331d1388db54c7e9af25384", "score": "0.5146505", "text": "public void getJobs() {\r\n pw.println(\"Data from Input File\");\r\n while (fileScan.hasNext()){\r\n Job job = new Job(); \r\n String buf = fileScan.nextLine();\r\n job.parseString(buf);\r\n inputQ.insert(job);\r\n pw.println(job.getArrivalTime() + \" \" + job.getPID() + \" \" + job.getCpuTimeRequired());\r\n ++totalNumOfJobs;\r\n }\r\n pw.println(\" \");\r\n }", "title": "" }, { "docid": "6c37e140c1277688423bc15770ad8402", "score": "0.5143745", "text": "public Collection<JobInProgress> getJobs(String queueName){\n return null;\n }", "title": "" }, { "docid": "f018e82688a06273efc6d2dc9df7cc32", "score": "0.5142256", "text": "@Override\r\n\tpublic IResult[][] proc() {\r\n\t\t\r\n\t\tboolean running = true;\r\n\t\tint n = 0;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tnumTasks = tasks.size();\r\n\t\t\tDouble lb, ub;\r\n\t\t\tBitSet probed = new BitSet(numTasks);\r\n\t\t\t// Number of ranked aggregated results so far\r\n\t\t\tint[] k = new int[weightCombinations]; // Each k is monitoring progress for each combination of weights\r\n\t\t\tArrays.fill(k, 0);\r\n\t\t\t\r\n\t\t\t// Calculate the sum of weights for each combination\r\n\t\t\tsumWeights = new double[weightCombinations];\r\n\t\t\tArrays.fill(sumWeights, 0.0);\r\n\t\t\tfor (int w = 0; w < weightCombinations; w++) {\r\n\t\t\t\tfor (String taskKey : tasks.keySet()) {\r\n\t\t\t\t\tsumWeights[w] += this.weights.get(taskKey)[w];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint i;\r\n\t\t\tboolean allScalesSet = false;\r\n\t\t\tlong startTime = System.currentTimeMillis();\r\n\t\t\t\r\n\t\t\twhile (running) {\r\n\t\t\t\t\r\n\t\t\t\t// Wait until all scale factors for similarity scores have been set in all partial results from each task\r\n\t\t\t\t// Otherwise, scale factors may have been set arbitrarily due to the random access calculations per attribute.\r\n\t\t\t\twhile (allScalesSet == false) {\r\n\t\t\t\t\tallScalesSet = true;\r\n\t\t\t\t\tTimeUnit.NANOSECONDS.sleep(100);\r\n\t\t\t\t\tfor (String task : tasks.keySet()) {\r\n\t\t\t\t\t\t// In case that the task is completed and no scale has been set, this means that all results are exact and no scale is needed\r\n\t\t\t\t\t\tallScalesSet = allScalesSet && (!runControl.get(task).get() || this.similarities.get(task).isScaleSet());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tn++;\r\n\t\t\t\trunning = false;\r\n\t\t\t\tprobed.clear(); // New result to be fetched from each queue\r\n\t\t\t\ti = -1;\r\n\t\r\n\t\t\t\t// Wait until all queues have been updated with their n-th result\r\n\t\t\t\twhile (probed.cardinality() < numTasks) {\r\n\t\t\t\t\t// Wait a while and then try again to fetch results from the remaining queues\r\n//\t\t\t\t\tTimeUnit.NANOSECONDS.sleep(1); \t\t\t\t\r\n\t\t\t\t\tfor (String task : tasks.keySet()) {\r\n\t\t\t\t\t\ti = this.similarities.get(task).getTaskId();\r\n\t\t\t\t\t\tif (probed.get(i) == false)\r\n\t\t\t\t\t\t\tfor (int w = 0; w < weightCombinations; w++)\r\n\t\t\t\t\t\t\t\tprobed.set(i, updateRankedList(task, i, w));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n//\t\t\t\tif (n % 100 == 0)\r\n//\t\t\t\t\tSystem.out.print(\"Iteration #\" + n + \"...\" + \"\\r\");\r\n\t\r\n\t\t\t\t// Since all examined queues have been updated with their next result,\r\n\t\t\t\t// ...adjust the UPPER bounds in aggregated results\r\n\t\t\t\tfor (int w = 0; w < weightCombinations; w++) {\r\n\t\t\t\t\tupdateUpperBounds(w);\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Examine current results for each combination of weights\r\n\t\t\t\tboolean stop = true;\r\n\t\t\t\tfor (int w = 0; w < weightCombinations; w++) {\r\n\t\t\t\t\t// Once at least topk candidate aggregated results have been collected,\r\n\t\t\t\t\t// check whether the next result can be returned\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (curResults[w].size() >= 1) {\r\n\t\t\t\t\t\t// Iterators are used to point to the head of priority queues\r\n\t\t\t\t\t\t// Identify the greatest lower bound and ...\r\n\t\t\t\t\t\tIterator<Double> iterLowerBound = mapLowerBounds[w].keys().iterator(); \r\n\t\t\t\t\t\tlb = iterLowerBound.next();\r\n\t\t\t\t\t\t// .. the greatest upper bound among the remaining items\r\n\t\t\t\t\t\tIterator<Double> iterUpperBound = mapUpperBounds[w].keys().iterator();\r\n\t//\t\t\t\t\titerUpperBound.next(); // FIXME: Would it be safe to use the second largest upper bound?\r\n\t\t\t\t\t\tub = iterUpperBound.next(); \r\n\t\t\r\n\t\t\t\t\t\t// FIXME: Implements the progressive issuing of results; check if this condition is always safe\r\n\t\t\t\t\t\t// Issue next result once the greatest lower bound exceeds the upper bounds of all other candidates\r\n\t\t\t\t\t\tif (lb >= ub) {\r\n\t\t\t\t\t\t\t// Get the object identifier listed at the head of this priority queue\r\n\t\t\t\t\t\t\tString item = mapLowerBounds[w].values().iterator().next();\r\n\t\t\t\t\t\t\tub = curResults[w].get(item).getUpperBound();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// One more result can be issued for this combination of weights\r\n\t\t\t\t\t\t\tissueRankedResult(k[w], w, item, lb, true); // Exact ranking\r\n\t\t\t\t\t\t\tk[w] = results[w].size();\r\n//\t\t\t\t\t\t\tlog.writeln(\"RESULT: \" + item + \" \" + lb + \" \" + ub);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Remove this result from the rank aggregation list and the priority queues\r\n\t\t\t\t\t\t\tmapLowerBounds[w].remove(lb, item);\r\n\t\t\t\t\t\t\tmapUpperBounds[w].remove(ub, item);\r\n\t\t\t\t\t\t\tcurResults[w].remove(item);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Stop if results have been acquired for each combination of weights\r\n\t\t\t\t\t// OR if no further EXACT-scored results may be determined from the ranked list\r\n\t\t\t\t\tstop = stop && (( n > topk * Constants.INFLATION_FACTOR) || (k[w] >= topk)); \r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Determine whether to continue polling results from queues\r\n\t\t\t\t// Once top-k ranked results are returned, stop all running tasks gracefully\r\n\t\t\t\t// If the process times out, then stop any further examination\r\n\t\t\t\tif (stop || (System.currentTimeMillis() - startTime > Constants.RANKING_MAX_TIME)) {\r\n\t\t\t\t\tfor (String task : tasks.keySet()) {\r\n\t\t\t\t\t\trunControl.get(task).set(false); //Stop each task\r\n\t\t\t\t\t}\r\n\t\t\t\t\trunning = false; \t\t// Quit the ranked aggregation process\r\n\t\t\t\t} else { // Otherwise, if at least one task is still running, then continue searching\r\n\t\t\t\t\tnumTasks = 0;\t\t\t\t\t\r\n\t\t\t\t\tfor (String task : tasks.keySet()) {\r\n\t\t\t\t\t\tqueues.get(task).poll(); // Remove already processed result from this queue\r\n\t\t\t\t\t\t// Once a queue is exhausted, it is no longer considered and search continues with the remaining queues\r\n\t\t\t\t\t\tif (tasks.get(task).isAlive() || !queues.get(task).isEmpty()) {\t\t\t\t\t\t\r\n\t\t\t\t\t\t\trunning = true;\t\r\n\t\t\t\t\t\t\tnumTasks++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Report any extra results by descending lower bound\r\n\t\t\treportExtraResultsLB();\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.print(n + \",\"); // Count iterations for experimental results\r\n\t\tthis.log.writeln(\"In total \" + n + \" results have been examined from each queue.\");\r\n\t\t\r\n\t\t// Array of final results\t\t\r\n\t\tIResult[][] allResults = new IResult[weightCombinations][topk];\r\n\t\tfor (int w = 0; w < weightCombinations; w++) {\r\n\t\t\tallResults[w] = results[w].toArray();\r\n//\t\t\tthis.log.writeln(\"LOWER BOUND queue -> insertions: \" + mapLowerBounds[w].getNumInserts() + \" deletions: \" + mapLowerBounds[w].getNumDeletes() + \" current size: \" + mapLowerBounds[w].size());\r\n//\t\t\tthis.log.writeln(\"UPPER BOUND queue -> insertions: \" + mapUpperBounds[w].getNumInserts() + \" deletions: \" + mapUpperBounds[w].getNumDeletes() + \" current size: \" + mapUpperBounds[w].size());\r\n\t\t}\r\n\t\t\r\n\t\treturn allResults;\r\n\t}", "title": "" }, { "docid": "0a270313cf1230f02661635c812127e7", "score": "0.5137071", "text": "PagedIterable<ClusterJob> listStreamingJobs(Context context);", "title": "" }, { "docid": "0ddbbf5b7e451840d7f1eb47047c7399", "score": "0.51316774", "text": "private JobStatus processJob(Job job) throws TException,TTransportException\n\t{\n\t\tif(0==versions.size())\n\t\t{\n\t\t\tfor(int i=0;i<activeNodes.size();i++)\n\t\t\t{\n\t\t\t\tHashMap<String,Integer> tfileVersion\t= new HashMap<String,Integer>();\n\t\t\t\tfor(int j=0;j<this.filenames.length;j++) tfileVersion.put(this.filenames[j],0);\t\t\t\n\t\t\t\tversions.put(activeNodes.get(i),tfileVersion);\n\t\t\t}\n\t\t}\n\n\t\tJobStatus result\t\t\t= null;\n\t\ttry\n\t\t{\n\t\t\tif(0==job.optype) \n\t\t\t\tlock.readLock().lock();\n\t\t\telse \n\t\t\t\tlock.writeLock().lock();\n\n\t\t\tList<Node> requiredNodes\t= getNodes(job.optype==0?ReadQuorum:WriteQuorum);\n\t\t\tString filename\t\t\t\t= job.filename;\n\t\t\tString maxVersion\t\t\t= \"-1\";\n\t\t\tString currentVersion\t\t= \"0\";\n\t\t\tint requiredIdx\t\t\t\t= -1;\n\t\t\t\n\t\t\tfor(int i=0;i<requiredNodes.size();i++)\n\t\t\t{\n\t\t\t\tString ip\t\t\t= requiredNodes.get(i).ip;\n\t\t\t\tint port\t\t\t= requiredNodes.get(i).port;\n\t\t\t\tif(ip.equals(CURRENT_NODE_IP)==true && port == CURRENT_NODE_PORT) \n\t\t\t\t\tcurrentVersion\t= Util.getInstance().getMaxVersion(filename,baseDirectory);\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tTTransport transport\t\t= new TSocket(ip,port);\n\t\t\t\t\tTProtocol protocol\t\t\t= new TBinaryProtocol(new TFramedTransport(transport));\n\t\t\t\t\tQuorumService.Client client = new QuorumService.Client(protocol);\n\t\t\t\t\ttransport.open();\n\t\t\t\t\tcurrentVersion\t\t\t\t= client.version(filename,baseDirectory);\n\t\t\t\t\ttransport.close();\n\t\t\t\t}\n\t\t\t\tif(currentVersion.compareTo(maxVersion) > 0 )\n\t\t\t\t{\n\t\t\t\t\tmaxVersion\t\t\t\t\t\t= currentVersion;\n\t\t\t\t\trequiredIdx\t\t\t\t\t\t= i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult\t\t\t\t= doJob(requiredNodes,job,maxVersion,requiredIdx);\n\t\t\tresult.path\t\t\t= requiredNodes;\n\t\t\tif(job.optype != 0) Util.getInstance().printSystem(versions);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(0==job.optype) \n\t\t\t\tlock.readLock().unlock();\n\t\t\telse \n\t\t\t\tlock.writeLock().unlock();\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "dee665673b41703b4faca0b17e0e60f4", "score": "0.5128958", "text": "@Override\n public ArrayList<IJob> getJobs( int maxAmount ) //throws FileNotFoundException, IOException, ConfigurationException\n {\n ArrayList<IJob> jobs = new ArrayList<IJob>();\n HashSet<InputPair< File, Long > > newJobs = new HashSet< InputPair< File, Long > >( 0 );\n try\n {\n newJobs = getNewJobs();\n }\n catch( FileNotFoundException fnfe )\n {\n log.error( fnfe.toString() );\n }\n catch( IOException ioe )\n {\n log.error( ioe.toString() );\n }\n catch( ConfigurationException ce )\n {\n log.error( ce.toString() );\n }\n \n for( InputPair<File, Long> job : newJobs )\n {\n URI uri = job.getFirst().toURI();\n String grandParentFile = job.getFirst().getParentFile().getParentFile().getName();\n String parentFile = job.getFirst().getParentFile().getName();\n FileIdentifier identifier = new FileIdentifier( uri );\n IJob theJob = buildTheJob( identifier, grandParentFile, parentFile );\n log.debug( String.format( \"found new job: path=%s, submitter=%s, format=%s \", theJob.getIdentifier(), grandParentFile, parentFile ) );\n jobs.add( theJob );\n }\n \n return jobs;\n }", "title": "" }, { "docid": "7c4270c2e79e78b9fdfdd3a1a3e97c3c", "score": "0.51223475", "text": "@Override\r\n public Set<Graph> getConnectedComponents() {\r\n // setup stuff\r\n Set<Person> allPeople = graph.getAllNodes();\r\n Set<Graph> connectedGraphs = new HashSet<Graph>();\r\n // loop for adding graphs to connectedGraphs\r\n while (allPeople.size() != 0) {\r\n Graph currGraph = new Graph();\r\n Queue<Person> q = new LinkedList<Person>();\r\n q.add((Person) allPeople.toArray()[0]);\r\n // loop for building connected component into a graph, basically a BFS\r\n while (!q.isEmpty()) {\r\n Person currNode = q.poll();\r\n currGraph.addNode(currNode);\r\n allPeople.remove(currNode);\r\n // for each unvisited successor...\r\n for (Person p : graph.getNeighbors(currNode)) {\r\n if (currGraph.getNode(p.getName()) == null) {\r\n currGraph.addEdge(currNode, p);\r\n q.add(p);\r\n allPeople.remove(p);\r\n }\r\n }\r\n }\r\n connectedGraphs.add(currGraph);\r\n }\r\n return connectedGraphs;\r\n }", "title": "" }, { "docid": "99c7793fff39d0e4913b57f248e46e37", "score": "0.5122208", "text": "public long getIdJob();", "title": "" }, { "docid": "2365046d16a764eda81a3c28af352366", "score": "0.5100741", "text": "Graph getEndtoendgraph();", "title": "" }, { "docid": "18860496a85bb5b0c5d934afe536aaa5", "score": "0.5099628", "text": "public static void main(String[] args){\n\t\t\n graphcoloring gn = new graphcoloring();\n gn.initialize();\n gn.runGen();\n gn.report();\n gn.displayChart(); \n \n\t\t/*\n\t\tqueueState hh;\n\t\tqueueState gg;\n\t\tqueue gc = new queue();\n\t\t*/\n\t\t/*\n\t queueState mm = gc.initialize();\n\t hh=mm;\n\t gg=hh;\n\t System.out.println(\"hh1 \" + hh.toString() );\n\t\tSystem.out.println(\"mm1 \" + mm.toString() );\n\t System.out.println(\"gg1 \" + hh.toString() );\n\t //mm=gc.initialize();\n\t // mm.value+=2;\n\t // gg.value+=6;\n\t\tSystem.out.println(\"hh2 \" + hh.toString() );\n\t\tSystem.out.println(\"mm2 \" + mm.toString() );\n\t System.out.println(\"gg1 \" + gg.toString() );\n*/ // queue gc = new queue();\n\t\t//gc.setStrategy(\"normal\");\n //\tgc.solve();\n\t\t\n\t\t/*\n\t\trubik gc = new rubik();\n\t\t//System.out.println(\tgc.initialize().toString());\n\t\t//System.out.println(gc.down(gc.initialize()).toString());\n\t\tgc.setCoolingSchedule(\"exponential\");\n gc.solve();\n */\n\t\n\t}", "title": "" }, { "docid": "63e621002ebf46bd523d03237b117cd3", "score": "0.50927854", "text": "@Override\n public void start(Graph graph) {\n _responseHandler.setGraph(graph);\n\n graph.addConnectHook(result -> {\n newTask()\n .declareIndex(\"gateway\", \"protocol\")\n .readIndex(\"gateway\", \"omi\")\n .ifThen(ctx -> ctx.resultAsNodes().size() == 0, newTask().travelInTime(Constants.BEGINNING_OF_TIME_STR).createNode().setAttribute(\"protocol\", Type.STRING, \"omi\").declareLocalIndex(\"root\", \"url\").updateIndex(\"gateway\"))\n .traverse(\"root\")\n .forEach(\n newTask()\n .log(\"OMI Root node identified {{url}}\")\n .thenDo(ctx -> {\n String url = ctx.resultAsNodes().get(0).get(\"url\").toString();\n ctx.defineVariable(\"urlRoot\", url);\n if (_liveUpdate) {\n _schedulers.put(url, new OMIScheduler(graph, url, _responseHandler));\n ctx.continueTask();\n } else {\n System.err.println(\"[OMI] Live update is deactivated\");\n ctx.endTask(ctx.result(), ctx.result().exception());\n }\n })\n .traverse(\"resources\")\n .forEach(\n thenDo(ctx -> {\n Node node = ctx.resultAsNodes().get(0);\n _schedulers.get(ctx.variable(\"urlRoot\").get(0).toString()).add(node.id());\n ctx.continueTask();\n })\n )\n ).execute(graph, cb -> {\n });\n result.on(true);\n });\n }", "title": "" }, { "docid": "d26350a7125ad57852ec85dc80fcf812", "score": "0.50814223", "text": "protected ComputationGraph getComputationGraph() {\n return _computationGraph;\n }", "title": "" }, { "docid": "b008c1b243c6d4757108e05d3d162d67", "score": "0.50791436", "text": "@Override\n\tpublic void findAllJobInfo(Message message) {\n\t\tAddress replyTo = message.getMessageProperties().getReplyToAddress();\n\t\tList<ElasticJob> jobs = jobInfoReponstityService.findAll();\n\t\tamqpTemplate.convertAndSend(replyTo.getExchangeName(), replyTo.getRoutingKey(),\n\t\t\t\tbinder.toJson(jobs));\n\t}", "title": "" }, { "docid": "1f114ce82668dec75e65a647be1d8f2d", "score": "0.5063093", "text": "public List<JobObject> getJobs() {\n \n \t\treturn this.jobs;\n \t}", "title": "" }, { "docid": "c2e06933a3cfe769d04efabdda2097bf", "score": "0.5062676", "text": "public List<Job> getAllJobs() {\n\t\tSession session=sessionFactory.openSession();\n\t\tQuery query=session.createQuery(\"From Job\");\n\t\tList<Job> jobs=query.list();\n\t\tsession.close();\n\t\treturn jobs;\n\t}", "title": "" }, { "docid": "2aa7b44b6557bfabb962958642c4c885", "score": "0.50625974", "text": "@SuppressWarnings(\"unchecked\")\r\n\tpublic static List<Jobs> list(){\r\n\t\tSession session = SessionDB.getSession();\r\n\t\tString hql = \"from com.sagi.logic.Jobs s order by s.jobId\";\r\n\t\treturn session.createQuery(hql).list();\r\n\t}", "title": "" }, { "docid": "47135dedead6373ba6897b46b5952cba", "score": "0.5060707", "text": "private void createGraphOfGraphs() {\n HashMap<EnumeratedVariable, Collection<M>> writing_state_machine =\n model.getWritingStateMachines();\n @SuppressWarnings(\"unchecked\")\n HashMap<EnumeratedVariable, Collection<M>> writing_state_machine_proof =\n (HashMap<EnumeratedVariable, Collection<M>>) proof\n .getWritingStateMachines()\n .clone();\n /*\n * The graphs of the proof model need to know the graphs that write on the\n * variables.\n */\n writing_state_machine_proof.putAll(writing_state_machine);\n\n /*\n * Store for every SynchronisationEvent (i.e. its name) the set of state\n * machine that have this event in an action field.\n */\n LinkedHashMap<String, LinkedHashSet<M>> syn_event_in_graphs =\n new LinkedHashMap<String, LinkedHashSet<M>>();\n\n /* We first discover which state machine write which SynchronizationEvents. */\n searchForEventWriting(syn_event_in_graphs, this.model);\n searchForEventWriting(syn_event_in_graphs, this.proof);\n\n // TODO: we also need to add the commands generated by the functional model\n\n /* We then build the Activation Graph */\n buildOutgoingLinksFromModel(writing_state_machine, syn_event_in_graphs,\n model);\n buildOutgoingLinksFromModel(writing_state_machine_proof,\n syn_event_in_graphs,\n proof);\n }", "title": "" }, { "docid": "c3b5c159120ca4daddeb55d110a44344", "score": "0.50596315", "text": "public List<Job> getJobs() {\n return myJobs;\n }", "title": "" }, { "docid": "07e523f601d55f9a07e8c29258b25fd0", "score": "0.5057744", "text": "public TaskReport[] getMapTaskReports(JobID jobId) throws IOException \r\n {\r\n\t return null;\r\n }", "title": "" }, { "docid": "749502abfd1091135cddd102582ba80c", "score": "0.5057026", "text": "public List<Job> getJobs() {\n\t\tString hql = \"From Job\";\n\t\tQuery query = this.session.createQuery(hql);\n\t\treturn query.list();\n\t}", "title": "" }, { "docid": "3ea9be1259b0178757ccdaa8a25ef47d", "score": "0.50463104", "text": "private LqnGraph currentDeploymentLqnModel(int numClients,\n Map<TaskInstance, String> task2ProcessorNameMap) {\n HashMultimap<TaskDescription, TaskDescription> replicatedTasks = HashMultimap.create();\n HashMultiset<TaskDescription> counter = HashMultiset.create();\n HashMap<TaskDescription, TaskDescription> realHosts = new HashMap<>();\n HashBiMap<TaskInstance, TaskDescription> instance2replication = HashBiMap.create();\n lqnTasks2DcsimTask.entrySet().stream()\n .filter(e -> !e.getKey().equals(lqnGraph.referenceEntry()))\n .forEach(e -> {\n TaskDescription td = lqnGraph.taskDescriptions().get(e.getKey().name());\n Task appTask = e.getValue();\n List<TaskInstance> appInsts = appTask.getInstances();\n\n for (TaskInstance appInst : appInsts) {\n if (appInsts.size() == 1) {\n TaskDescription realProcessorTask = td.copyWithName(td.name())\n .copyWithProcessor(task2ProcessorNameMap.get(appInst));\n realHosts.put(td, realProcessorTask);\n instance2replication.put(appInst, realProcessorTask);\n } else {\n counter.add(td);\n TaskDescription replicatedTask = td.copyWithName(td.name() + counter.count(td))\n .copyWithProcessor(task2ProcessorNameMap.get(appInst));\n replicatedTasks.put(td, replicatedTask);\n instance2replication.put(appInst, replicatedTask);\n }\n }\n });\n\n LqnGraph lqnProgram = lqnGraph.withNumUsers(numClients)\n .withTasks(realHosts)\n .withReplications(replicatedTasks);\n\n Table<EntryDescription, EntryDescription, Double>\n latencies = DcsimLqnUtilities.buildLatencies(simulation, lqnProgram, instance2replication);\n\n return lqnProgram.withLatencyTasks(latencies);\n }", "title": "" }, { "docid": "f9a44458fd8808fcc1bcf4320d50b915", "score": "0.504087", "text": "public HashMap<String,HashMap> getGraph(){\n \t\treturn graph;\n \t}", "title": "" }, { "docid": "67d756a5e6aa0583d52d831ed2605256", "score": "0.50382465", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tString[] vertexName={\"a\",\"b\",\"c\",\"d\",\"e\",\"f\"};//the name of vertex by order\r\n\t\tint[][] matrix={\r\n\t\t\t\t{0,1,0,1,0,0},\r\n\t\t\t\t{0,0,0,0,1,0},\r\n\t\t\t\t{0,0,0,0,1,1},\r\n\t\t\t\t{0,1,0,0,0,0},\r\n\t\t\t\t{0,0,0,1,0,0},\r\n\t\t\t\t{0,0,0,0,0,1}\t\t\r\n\t\t};\r\n\t\tGraphy graphy=new Graphy();\r\n\t\tGraphy g=new Graphy();\r\n\t\tgraphy=g.createGraph(vertexName, matrix);\r\n\t\t/*\r\n\t\tfor(int i=0;i<graphy.vertexNum;i++){\r\n\t\t\tSystem.out.print(graphy.vertexArr[i].no+\"-->\");\r\n\t\t\tfor(int j=0;j<graphy.vertexArr[i].Adj.size();j++){\r\n\t\t\t\tSystem.out.print(graphy.vertexArr[i].Adj.get(j).no);\r\n\t\t\t\tif(j!=graphy.vertexArr[i].Adj.size()-1){\r\n\t\t\t\t\tSystem.out.print(\"-->\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t*/\r\n\t\t\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tArrayList<String> result=new ArrayList<String>();\r\n\t\tg.dfs(graphy);\r\n\t\t//for(String i:result){\r\n\t\t\t//System.out.println(i);\r\n\t\t//}\r\n\t}", "title": "" }, { "docid": "a24299496d91561bdc567e4a487d4cca", "score": "0.50368446", "text": "public int nJobs() { return this.instance.getJobs().size(); }", "title": "" }, { "docid": "504ee248a68535a9f211275c76bbf497", "score": "0.50364786", "text": "public void addMyJob(BdaJob job) {\n //logger.info(\"add \" + job.getCurOozJob().getAppName() );\n JobLeaf node = new JobLeaf(job, AppController.power);\n if (job.getCurOozJob().getStatus().equals(\"RUNNING\")) {\n myRunningRoot.addItem(node);\n myRunningRoot.setState(true);\n } else {\n myFinishRoot.addItem(node);\n myFinishRoot.setState(true);\n }\n }", "title": "" }, { "docid": "961c27d0a389a565c6dd79be60bfcfd0", "score": "0.50277317", "text": "public interface JobDependMapper {\n JobDependVo getJobById(Long jobId);\n\n List<JobDependVo> getChildrenById(JobDependQo qo);\n\n List<JobDependVo> getParentById(JobDependQo qo);\n List<Map> getChildrenCount(JobDependQo qo);\n}", "title": "" }, { "docid": "1b36638b074f9792bb00ffc9f9110668", "score": "0.50244707", "text": "protected int fillJobList()\n {\n getData(); // collect data from the frame\n for(int i=0 ; i<9 ; i++)\n {\n int arriveTime = userData[i*3];\n int burstTime = userData[(i*3)+1];\n int priority = userData[(i*3)+2];\n if(checkJob(arriveTime,burstTime,priority ))\n {\n list.add(new Job(i+1, arriveTime, burstTime, priority));\n }\n }\n return 0;\n }", "title": "" }, { "docid": "03a6b80e7e9cb5e82f2e4cc0dea31b06", "score": "0.5022864", "text": "List<JobDefinition> getJobsOfGroup(String group);", "title": "" }, { "docid": "1419b9e4d94cc27d17a7ecce346a416c", "score": "0.50133145", "text": "public ExtendedIterator getGraphs();", "title": "" }, { "docid": "b1dec68727985516f4b3393ba3aabd9c", "score": "0.50045484", "text": "GraphFactory getGraphFactory();", "title": "" }, { "docid": "d6b056abcf08f0d0d0c1c46ad263656d", "score": "0.49991482", "text": "public interface IWorkerDiscoverer {\n\n /**\n * return the WorkerNetworkInfo object for this worker\n * @return\n */\n WorkerNetworkInfo getWorkerNetworkInfo();\n\n /**\n * return the WorkerNetworkInfo object for the given ID\n */\n WorkerNetworkInfo getWorkerNetworkInfoForID(int id);\n\n /**\n * return the number of all workers in this job,\n * including non-started ones and finished ones\n * @return\n */\n int getNumberOfWorkers();\n\n /**\n * return all known workers in a job, including the ones finished execution\n * some workers that has not joined yet, may not be included in this list.\n * users can compare the total number of workers to the size of this list and\n * understand whether there are non-joined workers\n * @return\n */\n List<WorkerNetworkInfo> getWorkerList();\n\n /**\n * wait for all workers to join the job\n * @param timeLimit\n * @return\n */\n List<WorkerNetworkInfo> waitForAllWorkersToJoin(long timeLimit);\n}", "title": "" }, { "docid": "217251468ae0ef9f3d4d69d281e594f6", "score": "0.49982876", "text": "public static Vector getTaskList(Graph g)\n\t\t\t{\n\t\t\t\t\tVector list = new Vector();\n\t\t\t\t\tGraphNode[] nodes = convertGraphNodesIteratorToNodesArray(g.getNodes());\n\t\t\t\t\tfor(int i=0;i<nodes.length;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tlist.addElement(nodes[i].getNodeData());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn list;\n\t\t\t}", "title": "" }, { "docid": "ad0596c8c4863f245533d7b3a331434a", "score": "0.49975324", "text": "HudsonJob getJob();", "title": "" }, { "docid": "ddcbefd11ad2315a7d2c24e4e4545adb", "score": "0.4995359", "text": "public int getDepth() {\n\t\treturn jobs.size();\n\t}", "title": "" }, { "docid": "9e18825403aef001b1d628e4008ce348", "score": "0.49931532", "text": "private void runSubgraph(int time) {\n\t\tArrayList<Integer> sub_list = new ArrayList<Integer>();\n\t\tfor(int q=0; q< q_cts.size(); q++) {\n\t\t\tif(q_cts.size() == subCount.size() && subCount.get(q) >= q_cts.get(q).size())\n\t\t\t{\n\t\t\t\tsubCount.set(q, 0);\n\t\t\t\tfor(CoreTable c : q_cts.get(q)) {\n\t\t\t\t\tIterator<Integer> iter = ((ArrayList<Integer>)c.quries.clone()).iterator();\n\t\t\t\t\twhile(iter.hasNext()) {\n\t\t\t\t\t\tint qid = iter.next();\n\t\t\t\t\t\tif(qid >= q && !sub_list.contains(q)) {\n\t\t\t\t\t\t\tint lastIndex = c.st.size()-1;\n\t\t\t\t\t\t\tif(c.st.size() !=0 && c.st.get(lastIndex).removeTime >= time - batch) {\n\t\t\t\t\t\t\t\tint cid = c.st.get(lastIndex).coreId;\n\t\t\t\t\t\t\t\tSet<Integer> joins = new HashSet<Integer>();\n\t\t\t\t\t\t\t\tfor(CoreTable fJoin : q_cts.get(qid)) {\n\t\t\t\t\t\t\t\t\tif(fJoin.joins.get(qid)!= null)\n\t\t\t\t\t\t\t\t\t\tjoins.addAll(fJoin.joins.get(qid));\n\t\t\t\t\t\t\t\t}\n\t//\t\t\t\t\t\t\tSystem.out.println(\"joins = \"+joins);\n\t//\t\t\t\t\t\t\tc.co\n\t//\t\t\t\t\t\t\tc.st.get(c.st.size()-1).cor\n\t//\t\t\t\t\t\t\tint rmTime = c.st.get(lastIndex).removeTime;\n\t\t\t\t\t\t\t\tSet<Edge> edges = c.st.get(lastIndex).vertices;\n\t//\t\t\t\t\t\t\tSystem.out.println(\"cid = \"+ cid +\", \"+edges.toString());\n\t\t\t\t\t\t\t\tboolean joinCheck = true;\n\t\t\t\t\t\t\t\tfor(int j : joins) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tArrayList<Integer> joinVertices = new ArrayList<Integer>();\n\t\t\t\t\t\t\t\t\tif(c.coreLab == j)\n\t\t\t\t\t\t\t\t\t\tjoinVertices.add(cid);\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tfor(Edge e : edges) {\n\t\t\t\t\t\t\t\t\t\t\tif(e.srcLab == j)\n\t\t\t\t\t\t\t\t\t\t\t\tjoinVertices.add(e.src);\n\t\t\t\t\t\t\t\t\t\t\telse if(e.dstLab == j)\n\t\t\t\t\t\t\t\t\t\t\t\tjoinVertices.add(e.dst);\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\tSystem.out.println(\"j = \"+ j +\", \"+joinVertices.toString());\n//\t\t\t\t\t\t\t\t\t\tint count = 0;\n\t\t\t\t\t\t\t\t\tfor(CoreTable innerC : q_cts.get(qid)) {\n\t//\t\t\t\t\t\t\t\t\tinnerC.\n\t\t\t\t\t\t\t\t\t\tif(innerC.joins.get(qid)!= null) {\n\t\t\t\t\t\t\t\t\t\t\tif(innerC.joins.get(qid).contains(j)) {\n\t\t\t\t\t\t\t\t\t\t\t\tint s = innerC.st.size();\n\t\t\t\t\t\t\t\t\t\t\t\tboolean containCheck = false;\n\t\t\t\t\t\t\t\t\t\t\t\tArrayList<Integer> temp = new ArrayList<Integer>();\n\t\t\t\t\t\t\t\t\t\t\t\tif(j == innerC.coreLab) {\n\t\t//\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"INNNNNN\" +innerC.toString());\n\t\t//\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(innerC.st.toString());\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor(int i = s-1; i >= 0; i--) {\n\t\t//\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"OUTINNN0\"+innerC.st.get(i).toString());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(innerC.st.get(i).removeTime >= time-batch) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(joinVertices.size() == 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttemp.add(innerC.st.get(i).coreId);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontainCheck = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}else if(joinVertices.contains(innerC.st.get(i).coreId)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontainCheck = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t//\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(containCheck);\n\t\t\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor(int i = s-1; i >= 0; i--) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(innerC.st.get(i).removeTime >= time-batch) {\n\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"innerC +\"+innerC.st.get(i).vertices);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor(Edge e : innerC.st.get(i).vertices) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(e.srcLab == j) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(joinVertices.size() == 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttemp.add(e.src);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontainCheck = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}else if(joinVertices.contains(e.src)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontainCheck = true;\n\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\t\t\t\t\t\t\t}else if(e.dstLab == j) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(joinVertices.size() == 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttemp.add(e.dst);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontainCheck = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}else if(joinVertices.contains(e.dst)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontainCheck = true;\n\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\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\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tif(temp.size() > 0 )\n\t\t\t\t\t\t\t\t\t\t\t\t\tjoinVertices.addAll(temp);\n\t\t\t\t\t\t\t\t\t\t\t\tif(!containCheck)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjoinCheck = false;\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif(!joinCheck) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(qid+\" not sub\");\n\t\t\t\t\t\t\t\t\t\tsub_list.add(qid);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(joinCheck) {\n//\t\t\t\t\t\t\t\t\tSystem.out.println(qid+\" Query OK\");\n\t\t\t\t\t\t\t\t\tsub_list.add(qid);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "15b01e484280fdda33cfca0a69fe0f6f", "score": "0.49829277", "text": "public Graph getGraph(){\n return graph;\n }", "title": "" }, { "docid": "5cebf48e595655d5869a00d382ee4065", "score": "0.49747732", "text": "public interface JobInfoAdaptor extends JobMonitorAdaptor {\n /**\n * @param nativeJobId the identifier of the job in the grid\n * @return the exit code of the job as an Integer or null if the code does not exit or in not numeric\n * @throws NotImplementedException if not supported by the adaptor\n * @throws NoSuccessException if failed to get the exit code\n */\n public Integer getExitCode(String nativeJobId) throws NotImplementedException, NoSuccessException;\n\n /**\n * @param nativeJobId the identifier of the job in the grid\n * @return the job creation time\n * @throws NotImplementedException if not supported by the adaptor\n * @throws NoSuccessException if failed to get the job creation time\n */\n public Date getCreated(String nativeJobId) throws NotImplementedException, NoSuccessException;\n\n /**\n * @param nativeJobId the identifier of the job in the grid\n * @return the job statup time\n * @throws NotImplementedException if not supported by the adaptor\n * @throws NoSuccessException if failed to get the job startup time\n */\n public Date getStarted(String nativeJobId) throws NotImplementedException, NoSuccessException;\n\n /**\n * @param nativeJobId the identifier of the job in the grid\n * @return the job end time\n * @throws NotImplementedException if not supported by the adaptor\n * @throws NoSuccessException if failed to get the job end time\n */\n public Date getFinished(String nativeJobId) throws NotImplementedException, NoSuccessException;\n\n /**\n * Get the execution host. Several hosts may be returned if the job is a parallel job.\n * @param nativeJobId the identifier of the job in the grid\n * @return the array of execution hosts\n * @throws NotImplementedException if not supported by the adaptor\n * @throws NoSuccessException if failed to get the execution hosts\n */\n public String[] getExecutionHosts(String nativeJobId) throws NotImplementedException, NoSuccessException;\n}", "title": "" }, { "docid": "928371e20749a96af457f44d36c098bb", "score": "0.49715212", "text": "public abstract Plugins getGraphBuilderPlugins();", "title": "" }, { "docid": "effdebde7cead204980af8bddbbde0ca", "score": "0.4966115", "text": "public static void main(String[] args) {\n Graph<String> graph = new Graph<>();\n graph.addVertex(\"A\");\n graph.addVertex(\"B\");\n graph.addVertex(\"C\");\n graph.addVertex(\"D\");\n graph.addVertex(\"E\");\n // graph.addVertex(\"F\");\n graph.addEdge(\"A\", \"B\", 4);\n graph.addEdge(\"C\", \"B\", 2);\n graph.addEdge(\"A\", \"C\", 1);\n graph.addEdge(\"C\", \"D\", 4);\n graph.addEdge(\"B\", \"E\", 4);\n graph.addEdge(\"D\", \"E\", 4);\n // graph.addEdge(\"A\", \"B\");\n // graph.addEdge(\"A\", \"D\");\n // graph.addEdge(\"B\", \"E\");\n // graph.addEdge(\"E\", \"D\");\n // graph.addEdge(\"D\", \"B\");\n // graph.addEdge(\"C\", \"E\");\n // graph.addEdge(\"C\", \"F\");\n // graph.addEdge(\"F\", \"F\");\n // graph.print();\n // graph.addVertex(\"undershorts\");\n // graph.addVertex(\"pants\");\n // graph.addVertex(\"belt\");\n // graph.addVertex(\"shirt\");\n // graph.addVertex(\"tie\");\n // graph.addVertex(\"jacket\");\n // graph.addVertex(\"watch\");\n // graph.addVertex(\"socks\");\n // graph.addVertex(\"shoes\");\n // graph.addEdge(\"undershorts\", \"pants\");\n // graph.addEdge(\"undershorts\", \"socks\");\n // graph.addEdge(\"pants\", \"shoes\");\n // graph.addEdge(\"pants\", \"belt\");\n // graph.addEdge(\"belt\", \"jacket\");\n // graph.addEdge(\"shirt\", \"tie\");\n // graph.addEdge(\"tie\", \"jacket\");\n // graph.addEdge(\"shirt\", \"belt\");\n // graph.addEdge(\"socks\", \"shoes\");\n\n // graph.bfs(\"A\");\n // graph.dfs(\"A\");\n // graph.classifyEdges();\n // graph.dfs();\n // graph.topologicalSort();\n graph.shortestPath(\"A\");\n }", "title": "" }, { "docid": "8dff663001e83863cc277d3dc45909db", "score": "0.49642697", "text": "public ArrayList<Job> getJobs() {\n ArrayList open_jobs = new ArrayList();\n for (int i = 0; i < jobs.size(); i++) {\n if (jobs.get(i).isOpen_job())\n open_jobs.add(jobs.get(i));\n }\n return open_jobs;\n }", "title": "" }, { "docid": "2f800a86449d029c61aa9e2096659000", "score": "0.49642354", "text": "com.google.dataflow.v1beta3.Job getJob();", "title": "" }, { "docid": "a7d13930cdf6b1c7ecd4b2c4bd0208ae", "score": "0.49639502", "text": "public SortedSet<DtoJob> runningJobs() {\n \t\treturn getMultiPartJob(false).runningJobs();\n \t}", "title": "" }, { "docid": "2cbb0fb7671874628b0b6ee03adbac09", "score": "0.49574006", "text": "PagedIterable<ClusterJob> listStreamingJobs();", "title": "" }, { "docid": "8cd536af6b79773743d9ac333cb55853", "score": "0.4953892", "text": "Iterable<Entity> getNodes(Node gNode, List<Node> from, Node qNode, Environment env);", "title": "" }, { "docid": "0310bd49acb4195c8939cbe12a737c1a", "score": "0.4951616", "text": "Collection<ComputingNode> retrieveComputingNodes();", "title": "" }, { "docid": "aaaf930c594d68f23e762f9fc3899738", "score": "0.49402368", "text": "private void listSparkJobs() throws ODPSConsoleException {\n CupidSession session = new CupidSession(cupidConf);\n\n CupidTaskParamProtos.ApplicationMetaList applicationMetaList =\n SparkJobUtils.getApplicationMetaList(session, this.stateFilter);\n String[] title = {\"StartTime\", \"InstanceId\", \"State\", \"RunningMode\", \"ApplicationName\"};\n // 设置每一列的百分比\n int[] columnPercent = {20, 20, 10, 10, 40};\n ODPSConsoleUtils.formaterTableRow(title, columnPercent, getContext().getConsoleWidth());\n String[] attr = new String[5];\n for (CupidTaskParamProtos.ApplicationMeta applicationMeta : applicationMetaList.getApplicationMetaListList()) {\n long sTime = applicationMeta.getStartedTime();\n Date date = new Date(sTime);\n attr[0] = ODPSConsoleUtils.formatDate(date);\n attr[1] = applicationMeta.getInstanceId();\n\n long intState = applicationMeta.getYarnApplicationState();\n attr[2] = YarnConstants.getAppStateStr(intState);\n attr[3] = applicationMeta.getRunningMode();\n attr[4] = applicationMeta.getApplicationName();\n ODPSConsoleUtils.formaterTableRow(attr, columnPercent, getContext().getConsoleWidth());\n }\n }", "title": "" }, { "docid": "f8e2f80ba546af77a86354dfb0ae0169", "score": "0.49317765", "text": "public List<Graph> list() {\n return graphs;\n }", "title": "" }, { "docid": "5078b97cbc6974dde56b3459a7cc304a", "score": "0.49202904", "text": "public String getGraph() {\n return graph;\n }", "title": "" }, { "docid": "6a917559ee95064b318bbda0c5ac7445", "score": "0.49169397", "text": "public String getJobs(int limit, long to, int from) {\n URL restEndpoint = buildURL(username + \"/jobs?limit=\" + limit + \"&from=\" + to + \"&to=\" + from);\n return retrieveResults(restEndpoint);\n }", "title": "" }, { "docid": "1740ce6321f84559d661dc50f792be57", "score": "0.4915196", "text": "default void onGraphComplete(Graph graph) {\n }", "title": "" }, { "docid": "2045585a2ffafbba4eccd1a87fb6a64e", "score": "0.49123392", "text": "public static void main(String[] args) throws InterruptedException {\n ParseFile.generateGraph(new File(currentDirectory + \"/\" + args[0]));\n\n // Print the graph information\n ProcessGraph.printGraph();\n\n // check for all nodes until all are executed\n while(!ProcessGraph.allExecuted()) {\n \t\n \t// get node list iterator\n ListIterator<ProcessGraphNode> nodeIterator = ProcessGraph.nodes.listIterator();\n // check if there are still nodes left\n \twhile (nodeIterator.hasNext()) {\n \t\tProcessGraphNode node = nodeIterator.next();\n \t\t// skip executed nodes\n \t\tif (node.isExecuted()) {\n \t\t\tcontinue;\n \t\t}\n \t\t\n \t\t// if node parents has finished, set this node to runnable\n \t\tif (node.allParentsExecuted()) {\n \t\tnode.setRunnable();\n \t\t}\n \t\t\n \t\tif (node.isRunnable()) {\n // run the node by splitting commands\n String[] commands = node.getCommand().split(\" \");\n ProcessBuilder pb = new ProcessBuilder(commands);\n \n // should we dedicate a directory?\n// File testDir = new File(System.getProperty(\"user.dir\") + \"/src/test\");\n// if (!testDir.exists()) {\n// \ttestDir.mkdir();\n// }\n// pb.directory(testDir);\n \n try {\n System.out.println(\"process \" + node.getNodeId() + \" started\");\n System.out.println(\"command = \"+ node.getCommand());\n System.out.println(\"in = \" + node.getInputFile() + \"\\t out = \" + node.getOutputFile());\n System.out.println();\n \n \n if (node.getInputFile().exists()) {\n pb.redirectInput(node.getInputFile());\n } else {\n \tthrow new IOException(\"Input file does not exist\");\n }\n \n // if output file is present, delete and create a new one\n if (node.getOutputFile().exists()) {\n \tnode.getOutputFile().delete();\n }\n \tFile outfile = node.getOutputFile();\n \toutfile.createNewFile();\n \toutfile.setWritable(true);\n pb.redirectOutput(outfile);\n \n // show error on system out\n \tpb.redirectErrorStream(true);\n \t\n // start process and wait for it (single threaded busy wait)\n Process process = pb.start();\n int errCode = process.waitFor();\n if (errCode == 0) {\n \tnode.setExecuted();\n } else {\n System.out.println(\"errcode \" + errCode);\n \tthrow new Exception();\n }\n } catch (IOException e) {\n e.printStackTrace();\n return;\n } catch (Exception e) {\n \tSystem.out.println(\"There is an error processing the commands\");\n \treturn;\n }\n }\n \t}\n }\n\n System.out.println(\"All process finished successfully\");\n \n }", "title": "" }, { "docid": "19140364340b7b5a18e7f60668e93ab1", "score": "0.49106085", "text": "public int getCurrentGraph() {\r\n\t\treturn currentGraph;\r\n\t}", "title": "" }, { "docid": "842dbe3c7562a99792fa4f1c25c05125", "score": "0.4902918", "text": "public void addOtherJob(BdaJob job) {\n if( job.getCurOozJob() == null ){\n //logger.info( job.getJobId() + \" \" + job.getJobName() + \": current oozie job is null\" );\n return ;\n }\n //logger.info(\"add \" + job.getCurOozJob().getAppName() );\n JobLeaf node = new JobLeaf(job,AppController.power);\n if (job.getCurOozJob().getStatus().equals(\"RUNNING\")) {\n otherRunningRoot.addItem(node);\n otherRunningRoot.setState(true);\n } else {\n otherFinishRoot.addItem(node);\n otherFinishRoot.setState(true);\n }\n }", "title": "" }, { "docid": "96ed1e09bfd717ccc4bb6b45326b0805", "score": "0.4900371", "text": "public void printJobs() {\n if(this.isJobsEmpty()) {\n System.out.println(\"No Jobs.\");\n }else {\n this.jobMap.values().forEach((job) -> {\n System.out.print(\"ID: \" + job.getID() + \", \");\n job.print();\n });\n }\n }", "title": "" } ]
56845d3fdedc9c4fdca376ea854962a7
Helper method to convert string (of teachables, for example) into an arraylist of strings:
[ { "docid": "5dfe97866808c6ce00b7f64b1641ae45", "score": "0.6779395", "text": "public ArrayList<String> parseString(String stringIn){\n\t \t\t\tArrayList<String> strings = new ArrayList<String>();\n\t \t\t\t\n\t \t\t\t// for each string listed in string, append it to strings arraylist:\n\n\t \t\t\treturn strings;\n\t \t\t}", "title": "" } ]
[ { "docid": "459b5f97a6efae52915d15b7a4ba12b8", "score": "0.7136002", "text": "public ArrayList<String> stringToArray(String s){\n\t\tArrayList<String> stringList = new ArrayList<String>();\n\t\tString[] array = s.split(\"\\n\");\n\t\tfor(String content: array){\n\t\t\tstringList.add(content);\n\t\t}\n\t\treturn stringList;\n\t}", "title": "" }, { "docid": "c36b1482cd73ffc38a5a1180a8a1d4ed", "score": "0.70707566", "text": "public ArrayList<Character> arrayConversion(String string) {\r\n\t\tArrayList<Character> arraylist = new ArrayList<>();\r\n\t\tfor (int i = 0; i < string.length(); i++) {\r\n\t\t\tarraylist.add(string.charAt(i));\r\n\t\t}\r\n\t\treturn arraylist;\r\n\t}", "title": "" }, { "docid": "7b01ab5cdc47f97a5db4d335da6d2bee", "score": "0.68736684", "text": "public static List<String> asList(\n final String string) {\n return asList(string, \", \");\n }", "title": "" }, { "docid": "ee8659bc4c2235830b2779e03d7078eb", "score": "0.6800812", "text": "private ArrayList<String> convertStringArrayList(String arrayListString)\n {\n arrayListString = arrayListString.replace(\"\\\"\", \"\"); // Remove the double quotes\n String[] elements = arrayListString.split(\"\\\\s*\" + \",\" + \"\\\\s*\"); // Remove spaces and split into Array\n List<String> listFixedLength = Arrays.asList(elements); // Convert into list\n return new ArrayList<>(listFixedLength); // Convert into ArrayList and return\n }", "title": "" }, { "docid": "29a12d8a1b3b0bbd810f71eed1cc3b62", "score": "0.6753027", "text": "private List<String> stringToList(String s) {\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tfor (int i=0; i<s.length(); i++) {\n\t\t\tlist.add(\"\"+s.charAt(i));\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "8c700fd288b623f3d267875bc24c1237", "score": "0.6648004", "text": "public static List<String> convertToList(String line) {\n return(Arrays.asList(splitString(line)));\n }", "title": "" }, { "docid": "27cee409fc4470869debfe503c563726", "score": "0.6603242", "text": "public static List<String> separateStringToList(String csv){\n String[] elements = csv.split(\",\");\n // step two : convert String array to list of String\n List<String> fixedLenghtList = Arrays.asList(elements);\n ArrayList<String> listOfString = new ArrayList<String>(fixedLenghtList);\n\n return listOfString;\n }", "title": "" }, { "docid": "ec14bff0905d0dc673776d2d6c56984a", "score": "0.65810275", "text": "@Test\n\tpublic void test_string_tokenizer_as_list(){\n\t\tString someStr = \"CS445 is really fun and I like cup of code videos\";\n\t\tImprovedStringTokenizer improvedStringTokenizer = new ImprovedStringTokenizer(someStr);\n\t\tString[] wordsArray = improvedStringTokenizer.getStringAsList();\n\t\t\n\t\tString[] actual = {\"CS445\", \"is\", \"really\", \"fun\", \"and\", \"I\", \"like\", \"cup\", \"of\", \"code\", \"videos\"};\n\t\tassertArrayEquals(wordsArray, actual);\n\t}", "title": "" }, { "docid": "999ab9511018f9642920f2ab37483e2c", "score": "0.65542847", "text": "public String[] convertToArray(List<String> strs) {\r\n\t\tString[] arr = new String[strs.size()];\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tarr[i] = strs.get(i);\r\n\t\t}\r\n\t\treturn arr;\r\n\t}", "title": "" }, { "docid": "e5cb0906bde02b72d398d2d999b98c93", "score": "0.6534578", "text": "private ComList<String> convertString(String s) {\n ComList<String> l = new ComList<>();\n\n if (s.contains(\",\")) {\n String[] nums = s.split(\",\");\n for (String num : nums) {\n l.add(num);\n }\n\n } else {\n l.add(s);\n }\n\n return l;\n }", "title": "" }, { "docid": "29ee53b020f5b4b5231e2221bc113b84", "score": "0.6500369", "text": "public static ArrayList<String> asList( String... cells )\n {\n ArrayList<String> retval = new ArrayList<String>();\n for ( String cell : cells ) { retval.add( cell ); }\n \n return retval;\n }", "title": "" }, { "docid": "0cd063e32d48bc5eaf73224f57126ec8", "score": "0.64676386", "text": "public static ArrayList<StringBuffer> convert(String s) {\n StringTokenizer st = new StringTokenizer(s);\n ArrayList<StringBuffer> sentence = new ArrayList<>();\n\n while (st.hasMoreTokens()) {\n sentence.add(new StringBuffer(st.nextToken()));\n\n }\n return sentence;\n }", "title": "" }, { "docid": "8576ffcc6193bd2ebb55597d81510ba6", "score": "0.6403986", "text": "private String[] createStringArray(String s) {\n\t\treturn s.split(\";\");\n\t}", "title": "" }, { "docid": "e0457d3d3ca9eb1ce507cb01d0340b54", "score": "0.63688326", "text": "String[] parseStringArray(String s)\r\n {\r\n Vector v = new Vector();\r\n\r\n String array_str = s.substring(1, s.length() - 1);\r\n\r\n StringTokenizer tokenizer = new StringTokenizer(array_str, \",\");\r\n\r\n while (tokenizer.hasMoreTokens())\r\n {\r\n v.addElement(tokenizer.nextToken());\r\n }\r\n\r\n String[] array = new String[v.size()];\r\n v.copyInto(array);\r\n\r\n return array;\r\n }", "title": "" }, { "docid": "cc2a9df7718697023d2a973b30f57493", "score": "0.63134253", "text": "public List<String> asStringList() {\n return tryGetListAs(new TypeReference<List<String>>() {}, String.class);\n }", "title": "" }, { "docid": "7d96ae4df43d60e7f2cf9ed5fed1edfe", "score": "0.63006634", "text": "@Test\n public void shouldConvertStringOfListWithMixedElementTypesIntoListWithDifferentElementTypes() {\n String str = \"[1, 2, \\\"three\\\"]\";\n List<?> list = Values.convertToList(Schema.STRING_SCHEMA, str);\n assertEquals(3, list.size());\n assertEquals(1, ((Number) list.get(0)).intValue());\n assertEquals(2, ((Number) list.get(1)).intValue());\n assertEquals(\"three\", list.get(2));\n }", "title": "" }, { "docid": "85976bf942f5563f7d224d5903afb8dc", "score": "0.6295065", "text": "public static ArrayList<TipoHongo> convertirStringArrListCategorias(String categorias) {\n ArrayList<TipoHongo> categoriasArrList = new ArrayList<> ();\n if(!categorias.equals (\"\")){\n String[] arrCategorias = categorias.split (\";\");\n for (String categoria: arrCategorias) {\n categoriasArrList.add (TipoHongo.valueOf (categoria.toUpperCase ()));\n }\n }\n return categoriasArrList;\n }", "title": "" }, { "docid": "3dcaf520551cb7b054cddf9c3a090139", "score": "0.6274412", "text": "public static List parseStringList(String line)\n {\n return parseStringList(line, null);\n }", "title": "" }, { "docid": "5c754b8ae2b1c43c656884108932af14", "score": "0.62329066", "text": "static public List<String> parseListString(String s) {\n\t\tif (s == null)\n\t\t\treturn null;\n\t\ts = s.trim();\n\t\tif (!(s.endsWith(\"]\") && s.startsWith(\"[\")))\n\t\t\treturn null;\n\t\ts = s.substring(1, s.length() - 1);\n\t\tList<String> l = new ArrayList<String>();\n\t\tfor (String e : s.split(\",\"))\n\t\t\tl.add(e.trim());\n\t\treturn l;\n\t}", "title": "" }, { "docid": "00d98422c273042d47ce156d5242b868", "score": "0.6179227", "text": "public ArrayList<String> parseInput(ArrayList<String> strings){\n ArrayList<String> inp = new ArrayList<String>();\n for(int x=0;x<strings.size();x++){\n String[] str = strings.get(x).split(\" \");//should be three\n inp.addAll(Arrays.asList(str));\n }\n return inp;\n }", "title": "" }, { "docid": "ed83d4eb4b59517095bd091dcf407f6b", "score": "0.6147992", "text": "public ArrayList<String> csvToArrayList(String csv){\n String[] elements = csv.split(\",\");\n List<String> fixedLengthList = Arrays.asList(elements);\n ArrayList<String> listOfString = new ArrayList<String>(fixedLengthList);\n return listOfString;\n }", "title": "" }, { "docid": "58b295833345d0da10b97509312c0dd1", "score": "0.61294067", "text": "private String[] list2Array(List<String> list) {\n\t\treturn Arrays.copyOf(list.toArray(), list.toArray().length,\n\t\t\t\tString[].class);\n\t}", "title": "" }, { "docid": "e5c77bce0e85bfbd05a3163f00fd6fd7", "score": "0.60628605", "text": "@TypeConverter\n public static List<Items> stringToItemList(String data) {\n Gson gson = new Gson();\n if(data == null) {\n return Collections.emptyList();\n }\n Type listType = new TypeToken<List<Items>>() {}.getType();\n return gson.fromJson(data, listType);\n }", "title": "" }, { "docid": "f5961ec506af8ffd08a4a8c8c3740678", "score": "0.6049711", "text": "public static ArrayList<String> threeCharacterStrings(String input) {\n\t\tthrow new UnsupportedOperationException(\"TODO: delete this statement and implement this operation.\");\n\n\t}", "title": "" }, { "docid": "2c11f5ab0e51c6d4c76ca41de3f1d8a0", "score": "0.60376567", "text": "public static String[] convertStrArray(ArrayList<ByteBuffer> from) throws CharacterCodingException\n {\n int size = from.size();\n String value[] = new String[size];\n for (int i = 0; i < size; i++) {\n value[i] = convertStr(from.get(i));\n }\n return value;\n }", "title": "" }, { "docid": "2950a1d3aa1701199e2e931bb467d707", "score": "0.60297036", "text": "public static ArrayList<String> convert(Collection<String> coll) {\n ArrayList<String> ret = new ArrayList<>(coll.size());\n for (String str : coll) {\n ret.add(abilmap.get(str));\n }\n return ret;\n }", "title": "" }, { "docid": "8a35cec67eff1b5b7b35db6d2536246e", "score": "0.60110897", "text": "public static ArrayList<String> listToArrayList(final List<String> list)\n\t{\n\t\tArrayList<String> arrayList = new ArrayList<>();\n\t\tfor(String item : list)\n\t\t{\n\t\t\tarrayList.add(item);\n\t\t\n\t\t}//FOR\n\t\t\n\t\treturn arrayList;\n\t\t\n\t}", "title": "" }, { "docid": "5029c8205825d710628e7b72d8aa142c", "score": "0.6007092", "text": "private static ArrayList<String> stringToList(String string, int separator){\n ArrayList<String> list = new ArrayList<>();\n //Splits the string using substring with int length given by the user\n for (int elements = string.length()/ separator; elements > 0; elements--){\n list.add(string.substring(0, separator).trim());\n string = string.substring(separator);\n }\n return list;\n }", "title": "" }, { "docid": "70b290d58ca46368b8af0ceec2ad9664", "score": "0.5998794", "text": "public static String[] arrayListToArray(final ArrayList<String> arraylist)\n\t{\n\t\tString[] array = new String[arraylist.size()];\n\t\t\n\t\tfor(int i = 0; i < arraylist.size(); i++)\n\t\t{\n\t\t\tarray[i] = arraylist.get(i);\n\t\t\n\t\t}//FOR\n\t\t\n\t\treturn array;\n\t\t\n\t}", "title": "" }, { "docid": "3263b14eee8d77a7a4b8c491d5a75df8", "score": "0.59754926", "text": "public ArrayList<String> parse(){\n return parse(tokensOfExp);\n }", "title": "" }, { "docid": "db264e340c45312dfb404d087b7cccad", "score": "0.59743226", "text": "public static String[] toArray(List<String> list) {\n return list.toArray(new String[list.size()]);\n }", "title": "" }, { "docid": "f1c0b44d896890200bdb1738f5429936", "score": "0.5973234", "text": "private List<Token> stringToList(final String string) throws IOException{\n\t\t// TODO your job\n\t\t// follow Main.main but put the tokens into a suitable list\n\n\t\tLinkedList<Token> al = new LinkedList<Token>();\n\t\t \n\t\t //String word = \"\";\n\t\t \n\t\t String in = string;\n\t\t StreamTokenizer s = new StreamTokenizer(new StringReader(in));\n\t\t \n\t\t int token;\n\t\t while ((token = s.nextToken()) != StreamTokenizer.TT_EOF) {\n\t\t if (token == StreamTokenizer.TT_WORD) {\n\t\t //problem here, not reading the sval from the StreamTokenizer!!!\n\t\t DefaultToken t = new DefaultToken(s.sval, s.lineno());\n\t\t al.add(t);\n\t\t }\n\t\t //return al;\n\t\t }\n\t\t return al;\n\t}", "title": "" }, { "docid": "9fdac3c7443f18e03ea98851b2b3a369", "score": "0.59534854", "text": "public static String[] split(String str){\n\t\treturn StringUtils.split(str);\n\t}", "title": "" }, { "docid": "7fb46264506d1101a545ca0fd8f95697", "score": "0.59479636", "text": "private static ArrayList<String> parse(String s)\n{\n ArrayList<String> ret = new ArrayList<String>();\n\n int tmp = 0;\n for(int i = 0; i < s.length(); i++) {\n if(s.charAt(i) == '\\n') {\n\t ret.add(s.substring(tmp, i));\n\t tmp = i + 1;\n }\n }\n ret.add(s.substring(tmp, s.length()));\n return ret;\n}", "title": "" }, { "docid": "3debe48921179ba9aa617200da399a6e", "score": "0.5930597", "text": "public static String[] getStringArray(ArrayList<String> arr)\n {\n String str[] = new String[arr.size()];\n\n // ArrayList to Array Conversion\n for (int j = 0; j < arr.size(); j++) {\n\n // Assign each value to String array\n str[j] = arr.get(j);\n }\n return str;\n }", "title": "" }, { "docid": "1f57e7aa804ed24e7ae3440c5a3ccb6f", "score": "0.5929996", "text": "@SuppressWarnings(\"unchecked\")\n public ArrayList<String> getStringArrayList(String key) {\n return (ArrayList<String>) get(key);\n }", "title": "" }, { "docid": "6948e99407da4701885c180e2d23507d", "score": "0.59155566", "text": "public static String[] readAllStrings(String convertToArray) \n\t {\n\t String[] tokens = convertToArray.split(readAll());\n\t if (tokens.length == 0 || tokens[0].length() > 0)\n\t return tokens;\n\n\t // don't include first token if it is leading whitespace\n\t String[] newArray = new String[tokens.length-1];\n\t for (int i = 0; i < tokens.length - 1; i++)\n\t \tnewArray[i] = tokens[i+1];\n\t return newArray;\n\t }", "title": "" }, { "docid": "28d77a0485da1cb5aaf0ec29d4dbdc01", "score": "0.5899598", "text": "public List<String> readStringList() {\n int size = readVarInt();\n List<String> l = new ArrayList<>(size);\n\n for(int i = 0; i < size; i++) {\n l.add(readString());\n }\n return l;\n }", "title": "" }, { "docid": "fb1ca96442de7be90fe56b46fc1dc683", "score": "0.5888052", "text": "public static Collection<Character> fromString(String input) {\n Collection<Character> result = new ArrayList<Character>();\n for (int i = 0; i < input.length(); i++) {\n result.add(input.charAt(i));\n }\n return result;\n }", "title": "" }, { "docid": "6b41cab47f994aa5f5431199c88401dc", "score": "0.58807015", "text": "@Override\n public List<String> visit(Atom atom) {\n return Arrays.asList(atom.get());\n }", "title": "" }, { "docid": "b04fe8ed4ecd01549fd5ffc3d4e8bfa2", "score": "0.5880484", "text": "List<String> getStringList(String path);", "title": "" }, { "docid": "4d5f6cd21c9178ef7fc993901334ac75", "score": "0.586653", "text": "public static List<String> getWords(String string) {\n\n List<String> wordList = new ArrayList<>();\n\n String inputString = string;\n System.out.println(inputString);\n\n System.out.println(\"All words in the string: \");\n Integer inputStringLength = inputString.split(\" \").length;\n String[] stringArray = new String[inputStringLength];\n\n // get all the words in the string\n for (String temp : inputString.split(\" \")) {\n // System.out.println( temp);\n wordList.add(temp);\n }\n\n return wordList;\n }", "title": "" }, { "docid": "4368f62e67b21507d11046b3b8c1f70b", "score": "0.5860997", "text": "private char[] toCharList(String notches) {\n char[] result = new char[notches.length()];\n for (int i = 0; i < notches.length(); i++) {\n result[i] = notches.charAt(i);\n }\n return result;\n }", "title": "" }, { "docid": "223c43dad1c13b92c8e6d198d0c8df55", "score": "0.5837705", "text": "private List<Character> lettersOfMovieIntoArrayList() {\n mMovieString = mMovieManager.randomlyPickMovie();\n char[] letter = mMovieString.toCharArray();\n for (char aLetter : letter) {\n mMovieLettersInCharacterList.add(aLetter);\n }\n return mMovieLettersInCharacterList;\n }", "title": "" }, { "docid": "21b744e9d8ca929283bd080a53196bca", "score": "0.5835835", "text": "public static ArrayList<LCChar> stringToLCCharArray(String str) {\n ArrayList<LCChar> charArray = new ArrayList<>();\n int strLength = str.length();\n for (int i = 0; i < strLength; i++) {\n char character = str.charAt(i);\n LCChar lcChar = new LCChar(character);\n charArray.add(lcChar);\n }\n return charArray;\n }", "title": "" }, { "docid": "0389ff0e09f921a65ab2e9dff1776971", "score": "0.5827613", "text": "@SuppressWarnings(\"unchecked\")\n static <T> T stringToArray(Class<T> clazz, String string) throws ArrayIndexOutOfBoundsException, IllegalArgumentException, Exception {\n String[] data = string.split(\",\");\n Class<?> arrayContentClass = clazz.getComponentType();\n T array = (T) Array.newInstance(arrayContentClass, data.length);\n\n for (int i = 0; i < data.length; i++) {\n Array.set(array, i, toObject(arrayContentClass, data[i]));\n }\n\n return array;\n }", "title": "" }, { "docid": "3a171e9b9e5db4dffb85a604865072b8", "score": "0.57887834", "text": "java.util.List<java.lang.String>\n getToList();", "title": "" }, { "docid": "1471d02b47d2b429e6aac336c992a8db", "score": "0.57819283", "text": "ArrayList<String> constructList(String s){\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\ts.replaceAll(\"AND\", \"and\");\n\t\ts.replaceAll(\";\", \" and \");\n\t\tString[] sarr = s.split(\" and \");\n\t\tfor (int i = 0; i < sarr.length; i++) {\n\t\t\tString[] name = sarr[i].split(\",\");\n\t\t\tif (name.length == 2) { \n\t\t\t\tString p = sarr[i].trim();\n\t\t\t\tal.add(p);\n\t\t\t} \n\t\t\tif (name.length == 1) {\n\t\t\t\tsarr[i] = sarr[i].trim();\n\t\t\t\tint index = sarr[i].lastIndexOf(\" \");\t\t\t\t\n\t\t\t\tif (index == -1) {\n\t\t\t\t\tString p = sarr[i].trim();\n\t\t\t\t\tal.add(p);\n\t\t\t\t} else {\n\t\t\t\t\tString[] ss = sarr[i].split(\" \");\n\t\t\t\t\tString n = ss[ss.length - 1] + \", \";\n\t\t\t\t\tfor (int j = 0; j < ss.length - 1; j++) {\n\t\t\t\t\t\tif (!ss[j].equals(\"\")) n = n + ss[j];\n\t\t\t\t\t}\n\t\t\t\t\tString p = n.trim();\n\t\t\t\t\tal.add(p);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn al;\n\t}", "title": "" }, { "docid": "501794abd6e7f9ec35da5a9598fa22b1", "score": "0.57496035", "text": "public ArrayList convertToAList(String[] given) {\n\n ArrayList<Group> output = new ArrayList<Group>();\n\n for (int i = 0; i < given.length; i++) {\n String currentString = given[i];\n Group g = new Group(currentString);\n output.add(g);\n }\n\n return output;\n }", "title": "" }, { "docid": "3dcce887a334482cb7a832867bc307c2", "score": "0.5736505", "text": "public static List<String> convertStringToList(String configurationTypes) {\n List<String> data = new ArrayList<>();\n if (configurationTypes.length() > 0) {\n data.addAll(Arrays.asList(configurationTypes.replaceAll(\" \", \"\").split(\",\")));\n if (data.contains(EXPORT_ITEM_TYPE_LANGUAGE)) {\n data.remove(data.indexOf(EXPORT_ITEM_TYPE_LANGUAGE));\n data.add(0, EXPORT_ITEM_TYPE_LANGUAGE);\n }\n }\n return data;\n }", "title": "" }, { "docid": "4d93b2065ddb8f4c03432a02a2f6b601", "score": "0.573286", "text": "@Test\n public void shouldParseStringListWithMultipleElementTypesAndReturnListWithNoSchema() {\n String str = \"[1, 2, 3, \\\"four\\\"]\";\n SchemaAndValue result = Values.parseString(str);\n assertEquals(Type.ARRAY, result.schema().type());\n assertNull(result.schema().valueSchema());\n List<?> list = (List<?>) result.value();\n assertEquals(4, list.size());\n assertEquals(1, ((Number) list.get(0)).intValue());\n assertEquals(2, ((Number) list.get(1)).intValue());\n assertEquals(3, ((Number) list.get(2)).intValue());\n assertEquals(\"four\", list.get(3));\n }", "title": "" }, { "docid": "d176fdbe75701e48766292bba50f4fdf", "score": "0.57315856", "text": "public static String[] stringToString(String s) {\n\t\ts = s.replaceAll(\" \", \"\");\n\t\tString[] data = s.split(\",\");\n\t\tString[] strArr = new String[10];\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\tif (data[i].length() != 2) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Length of each string should be 2 characters\", \"Length Error\", 0);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstrArr[i] = data[i];\n\t\t\t}\n\n\t\t}\n\n\t\tif (data.length <= 1) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Length of array should be more than 1\", \"Length Error\", 0);\n\t\t}\n\t\treturn strArr;\n\t}", "title": "" }, { "docid": "61262e06a5c91f8a4860a64499f665d7", "score": "0.5729144", "text": "private static ArrayList<String> loadStringArray(Resources r, int resNum) {\n String[] labels = r.getStringArray(resNum);\n ArrayList<String> list = new ArrayList<String>(Arrays.asList(labels));\n return list;\n }", "title": "" }, { "docid": "0fcf385a04d80df1273014893c401424", "score": "0.57124543", "text": "public static ArrayList<String> evalTest(String s) {\n return evalTest(s, new String[]{});\n }", "title": "" }, { "docid": "4bb934920d7931e2faaeb4412e9ab706", "score": "0.5710128", "text": "@Override\n\tString[] stringToArray(String str) {\n\t\tString[] result = str.split(\"\\\\r?\\\\n\");\n\t\treturn result;\n\t}", "title": "" }, { "docid": "04825494d9aac1c82438c1c8695cc1f2", "score": "0.5706926", "text": "public java.lang.Object[] getStringArray();", "title": "" }, { "docid": "bce3cefbb27b7ebef8a2378b76d1cb83", "score": "0.5706767", "text": "public static ArrayList<char[]> convertToBigrams(String input) {\r\n\t\t// TODO: make sure this function is efficient\r\n\t\tArrayList<char[]> charList = new ArrayList<char[]>();\r\n\t\tchar left;\r\n\t\tchar right;\r\n\t\tinput = \" \" + input + \" \";\r\n\t\tfor (int i = 0; i < input.length() - 1; i++) {\r\n\t\t\tleft = input.charAt(i);\r\n\t\t\tright = input.charAt(i + 1);\r\n\t\t\tchar[] temp = { left, right };\r\n\t\t\tcharList.add(temp);\r\n\t\t}\r\n\t\treturn charList;\r\n\t}", "title": "" }, { "docid": "379127d11556eca8ab21c6df682ac4d3", "score": "0.5702873", "text": "private static <T> List<T> deserializeStringToList(String s, String delimiter, Serde<T> serde){\n List<String> stringAsList = Arrays.asList(s.split(Pattern.quote(delimiter), -1));\n return stringAsList.stream()\n .map(serde::deserialize)\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "fbcea54ed1d11c5e4aaab71779e774f2", "score": "0.5687604", "text": "public String[] list();", "title": "" }, { "docid": "e47158e7159c87b0110ded15586d1685", "score": "0.5684575", "text": "public String[] split();", "title": "" }, { "docid": "1cd38d0794def047f47da8710510dda1", "score": "0.56834215", "text": "private static ArrayList<String> stringToUnit(\n BreakIterator boundary, String inpStr) {\n\n ArrayList<String> elementArr = new ArrayList();\n\n boundary.setText(inpStr);\n int start = boundary.first();\n\n for (int end = boundary.next();\n end != BreakIterator.DONE;\n start = end, end = boundary.next())\n elementArr.add(inpStr.substring(start,end));\n\n return elementArr;\n\n }", "title": "" }, { "docid": "375d0e25ee5b75ce980528bd29b189df", "score": "0.56738853", "text": "public static List<List<String>> splitString(String s) {\n List<List<String>> resultList=new LinkedList<>();\n if(s==null){\n return resultList;\n }\n if(s.length()==0){\n resultList.add(new ArrayList<String>());\n }\n\n splitStringHelper(s,0,resultList,new LinkedList<>());\n\n return resultList;\n\n }", "title": "" }, { "docid": "31d53f1375c88826e1f7d6384bbdfcd6", "score": "0.5664579", "text": "public List<String> decode(String s) {\n String d = Character.toString((char)258);\n if (s.equals(d)) {\n return new ArrayList<>();\n }\n d = Character.toString((char)257);\n return Arrays.asList(s.split(d,-1)); // limit=-1 to keep trailing \"\"\n }", "title": "" }, { "docid": "f14dce81d86fd4028643dfc5ea9b9cb6", "score": "0.5662101", "text": "public List<String> asList() {\n if (list == null) {\n list = readList();\n }\n return list;\n }", "title": "" }, { "docid": "975a244f33d58ff05fbaa93f9ee19945", "score": "0.56613606", "text": "public static String[] parseInput(String input){\n \tString[] splitStr = input.split(\" \");\n \treturn splitStr;\n }", "title": "" }, { "docid": "0e8a1f347ebc2bae6f0e86d04a03c0e8", "score": "0.56590605", "text": "public ArrayList createBinArr(String d)\n {\n char[] numbersInChar = d.toCharArray();\n ArrayList charInString = new ArrayList();\n for(int i=0;i<numbersInChar.length;i++)\n {\n charInString.add(String.valueOf(numbersInChar[i]));\n }\n\n return charInString;\n }", "title": "" }, { "docid": "6d0303baa2419f62f0e6fd38a944c459", "score": "0.56502277", "text": "private static List<Character> toList(char[] charArr) {\n assert charArr != null;\n List<Character> charList = new ArrayList<Character>();\n for (char ch : charArr) {\n charList.add(ch);\n }\n return charList;\n }", "title": "" }, { "docid": "1ae96158cd2bc6882a697225a1ddf3e3", "score": "0.56501067", "text": "public static List<String> parseString(String kalimat){\n kalimat = kalimat.toLowerCase();\n int i=0;\n String temp = \"\";\n List<String> kata = new ArrayList<>();\n \n while(i < kalimat.length()){\n if(kalimat.charAt(i) != ' '){\n temp += kalimat.charAt(i);\n }else if(kalimat.charAt(i) == ' '&& !temp.equals(\"di\")){\n kata.add(temp);\n temp = \"\";\n }else if(temp.equals(\"di\")){\n temp+=\" \";\n }\n i++;\n }\n kata.add(temp);\n \n return kata;\n }", "title": "" }, { "docid": "7fbab5cad6dba83cdf50f275c6a27309", "score": "0.5643983", "text": "public static void stringArrayList()\n {\n try {\n\n ArrayList<String> footballTeams = new ArrayList<>();\n footballTeams.add(\"New York Jets\");\n footballTeams.add(\"Tampa Bay Buccaneers\");\n footballTeams.add(\"New England Patriots\");\n\n for (String object : footballTeams) {\n System.out.println(object);\n }\n }catch (Exception e)\n {\n System.out.println(\"Error Printing Teams\");\n e.fillInStackTrace();\n }\n\n }", "title": "" }, { "docid": "45f965bac10117253aa751c3ea5e8c98", "score": "0.56259185", "text": "private String[] getWordsFromString(String str) {\n\n\t\tString[] words = str.split(\" \");\n\n\t\treturn words;\n\n\t}", "title": "" }, { "docid": "ab61cbad0054a2abe122db1e0224691b", "score": "0.56188756", "text": "protected static List<String> getResList(String resStr) {\r\n\t\tif(isDebug) {\r\n\t\t\tSystem.out.println(\"original:\\n\");\r\n\t\t\tSystem.out.println(resStr);\r\n\t\t}\r\n\t\tList<String> resList = new ArrayList<String>();\r\n\t\tList<String> str2List = null;\r\n\t\ttry {\r\n\t\t\tString arrStr = resStr.substring(resStr.indexOf(\"[\", 6) + 2, resStr.length() - 7);\r\n\t\t\tstr2List = Arrays.asList(resStr.split(\"\\\",\\\"\"));\r\n\t\t\tint size = str2List.size();\r\n\t\t\tint i = 0;\r\n\t\t\tfor(i = 0; i < size; i++) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif(getMatchedString(str2List.get(i), \"^(\\\\w|-){2,5}\\\\.\\\\d{5}$\") == null) {\r\n\t\t\t\t\t\t//ComLogUtil.error(str2List.get(i) + \" not matched\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tresList.add(str2List.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//ComLogUtil.printList(resList, \"\");\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstr2List = null;\r\n\t\treturn resList;\r\n\t}", "title": "" }, { "docid": "b2432268122da7c5aba8c7f5d56624fa", "score": "0.55950946", "text": "@TypeConverter\n public List<Genre> ListFromStringGenre(String myList) {\n if (myList == null || TextUtils.isEmpty(myList)) {\n return null;\n }\n Gson gson = new Gson();\n Type type = new TypeToken<ArrayList<Genre>>() {\n }.getType();\n\n return gson.fromJson(myList, type);\n }", "title": "" }, { "docid": "1381e960a58f1e769840119381c100ed", "score": "0.5577359", "text": "public static <T> List<T> json2list(String jsonArrayStr, Class<T> clazz)\n throws Exception {\n List<Map<String, Object>> list = objectMapper.readValue(jsonArrayStr,\n new TypeReference<List<T>>() {\n });\n List<T> result = new ArrayList<T>();\n for (Map<String, Object> map : list) {\n result.add(map2pojo(map, clazz));\n }\n return result;\n }", "title": "" }, { "docid": "1fe6324cd0c2081ec1e23849c92acb76", "score": "0.55735177", "text": "public List<List<String>> groupAnagrams2(String[] strs) {\n\t\tif (strs.length == 0) {\n\t\t\treturn new ArrayList<List<String>>();\n\t\t}\n\t\tMap<String, List<String>> map = new HashMap<>();\n\t\tfor (String string : strs) {\n\t\t\tchar[] chars = string.toCharArray();\n\t\t\t// O(KlogK)\n\t\t\tArrays.sort(chars);\n\t\t\tString key = new String(chars);\n\t\t\tif (!map.containsKey(key)) {\n\t\t\t\tmap.put(key, new ArrayList<String>());\n\t\t\t}\n\t\t\tmap.get(key).add(string);\n\t\t}\n\n\t\treturn new ArrayList<List<String>>(map.values());\n\t}", "title": "" }, { "docid": "9fe0a1de4174808016fb515ae9a1baf1", "score": "0.5559157", "text": "private static ArrayList<WorkSkills> getWorkSkills(String input){\n String trimmedString = input.replace(\"[\",\"\");\n trimmedString = trimmedString.replace(\"]\",\"\");\n trimmedString = trimmedString.replace(\"'\",\"\");\n trimmedString = trimmedString.replace(\" \",\"\");\n String[] skills = trimmedString.split(\";\");\n ArrayList<WorkSkills> skillArray = new ArrayList<WorkSkills>();\n for (int i =0;i < skills.length;i++){\n skillArray.add(WorkSkills.valueOf(skills[i]));\n }\n return skillArray;\n }", "title": "" }, { "docid": "aeee0dbf484eb6bd549de2496936a8b1", "score": "0.5558244", "text": "String[] readArrayOfString();", "title": "" }, { "docid": "4a9c45e4c66e67c6672b1f241374e71e", "score": "0.55565244", "text": "public static <T> List<T> fromJsonArray(String jsonStr, Class<T> clazz)\n throws Exception {\n JavaType javaType = objectMapper.getTypeFactory()\n .constructParametricType(ArrayList.class, clazz);\n return objectMapper.readValue(jsonStr, javaType);\n }", "title": "" }, { "docid": "919e4d4ea6601fa46479ea552e703a0a", "score": "0.55419904", "text": "public static ArrayList<String> readStringArray(JsonValue jsonValue) {\n ArrayList<String> result = new ArrayList<String>();\n \n for (int i = 0; i < jsonValue.size; i++) {\n JsonValue curValue = jsonValue.get(i);\n if (curValue.isObject()) {\n // Handle horrible libgdx serialization method\n result.add(curValue.getString(\"value\"));\n } else {\n result.add(curValue.asString());\n }\n }\n \n return result;\n }", "title": "" }, { "docid": "305014ca4a879d8babfc76ffa41a0c9d", "score": "0.55416995", "text": "public String[] populateList()\r\n {\r\n\tArrayList<Permit> allPermits = getPermitsByType(\"\");\r\n\r\n\tString[] strings = new String[allPermits.size()];\r\n\r\n\tfor (int i = 0; i < strings.length; i++)\r\n\t{\r\n\t strings[i] = \"\" + allPermits.get(i).toString();\r\n\t}\r\n\r\n\treturn strings;\r\n }", "title": "" }, { "docid": "8146a9fd003b0d04629a1b058fb00c9f", "score": "0.5537631", "text": "public StringList(ArrayList<String> strings)\n {\n data = new ArrayList<>();\n for (String d : strings)\n {\n data.add(d);\n }\n }", "title": "" }, { "docid": "844242d6d475f1b1de8ad69ef0415124", "score": "0.5523847", "text": "public static <T> List<T> json2listNew(String jsonArrayStr, Class<T> clazz)\n throws Exception {\n objectMapperNew.configure(\n DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n List<Map<String, Object>> list = objectMapperNew.readValue(\n jsonArrayStr, new TypeReference<List<T>>() {\n });\n List<T> result = new ArrayList<T>();\n for (Map<String, Object> map : list) {\n result.add(objectMapperNew.convertValue(map, clazz));\n }\n return result;\n }", "title": "" }, { "docid": "d04a16c0bd3c9e226c8f058b8188e7fa", "score": "0.5514947", "text": "private void prepareMyList(){\n myList = new ArrayList<String>();\r\n for(int i = 0; i < item.length; i++){\r\n myList.add(item[i]);\r\n }\r\n }", "title": "" }, { "docid": "dc5596cc4a53f038d0e87e26e1e22be7", "score": "0.5512787", "text": "public static ArrayList<String> stringToSentenceArr(\n String inpStr, Locale locale, boolean unitTerminatorCoded,\n String terminatorStr) {\n\n BreakIterator boundary = BreakIterator.getSentenceInstance(locale);\n\n if (unitTerminatorCoded)\n return stringToUnitWithTerminator(boundary, inpStr, terminatorStr);\n else\n return stringToUnit(boundary, inpStr);\n\n }", "title": "" }, { "docid": "52336055ac0b73d0f25d38fe0b776070", "score": "0.55109465", "text": "public BasicDBList toList(String[] arr) {\r\n\t BasicDBList res = new BasicDBList();\r\n\t for (String str : arr) {\r\n\t\t\tres.add(str);\r\n \t }\r\n\t return res;\r\n }", "title": "" }, { "docid": "897681c25087d6a66af3fea912272153", "score": "0.54969263", "text": "List<String> list();", "title": "" }, { "docid": "ced06220b6c4674d7cef317df7f39b92", "score": "0.5486495", "text": "public static List<String> convertToTagList(String tags) {\r\n\t\tList<String> tagList = null;\r\n\r\n\t\tif (tags != null && tags.length() >= 0) {\r\n\t\t\tString[] splitTags = tags.split(\",\");\r\n\r\n\t\t\tfor (String item : splitTags) {\r\n\t\t\t\tString tag = item.trim().toLowerCase();\r\n\r\n\t\t\t\tif (tag.length() > 0) {\r\n\t\t\t\t\tif (tagList == null) {\r\n\t\t\t\t\t\ttagList = new ArrayList<String>();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (!tagList.contains(tag)) {\r\n\t\t\t\t\t\ttagList.add(tag);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn tagList;\r\n\t}", "title": "" }, { "docid": "420f1d46ebd4c3432b4d1486353c45cb", "score": "0.54816854", "text": "private static ArrayList<String> sortIntegerString(String input) {\r\n\t\tif (input == null || input.trim().equals(\"\")) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tArrayList<Boolean> wholeList = new ArrayList<Boolean>();\r\n\t\tArrayList<Integer> intList = new ArrayList<Integer>();\r\n\t\tArrayList<String> strList = new ArrayList<String>();\r\n\t\tArrayList<String> result = new ArrayList<String>();\r\n\r\n\t\t// clean leading space if there is any\r\n\t\tinput = input.replaceAll(\"^\\\\s+|\\\\s+$\", \"\");\r\n\r\n\t\t// split string into string elements by space\r\n\t\tString[] inputArray = input.split(\"\\\\s+\");\r\n\r\n\t\tfor (int i = 0; i < inputArray.length; i++) {\r\n\t\t\tString szStr = inputArray[i];\r\n\r\n\t\t\tif (isInteger(szStr))// mark false for integer, true for String\r\n\t\t\t{\r\n\t\t\t\twholeList.add(false);\r\n\t\t\t\tintList.add(Integer.parseInt(szStr));\r\n\t\t\t} else {\r\n\t\t\t\twholeList.add(true);\r\n\t\t\t\tstrList.add(szStr);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// sort both Integer and String lists\r\n\t\tCollections.sort(intList);\r\n\t\tCollections.sort(strList);\r\n\r\n\t\tIterator<Boolean> itr = wholeList.iterator();\r\n\t\tIterator<String> itrStr = strList.iterator();\r\n\t\tIterator<Integer> itrInt = intList.iterator();\r\n\r\n\t\twhile (itr.hasNext()) {\r\n\t\t\t// if current element is a String at input, then fill in element\r\n\t\t\t// from string list; otherwise from integer list\r\n\t\t\tif (itr.next()) {\r\n\t\t\t\tresult.add(itrStr.next());\r\n\t\t\t} else {\r\n\t\t\t\tresult.add(itrInt.next().toString());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\r\n\t}", "title": "" }, { "docid": "d7ac9d4066f498aa4f3022a03ac59453", "score": "0.5476606", "text": "public static <T> List<T> toList(String jsonArrayStr, Class<T> clazz) {\n\t\ttry {\n\t\t\tList<Map<String, Object>> list = objectMapper.readValue(jsonArrayStr, new TypeReference<List<T>>() {\n\t\t\t});\n\t\t\tList<T> result = new ArrayList<T>();\n\t\t\tfor (Map<String, Object> map : list) {\n\t\t\t\tresult.add(mapToPojo(map, clazz));\n\t\t\t}\n\t\t\treturn result;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\n\t}", "title": "" }, { "docid": "935f638c3e0f255d9a4de107c4be90a8", "score": "0.5473739", "text": "public List<Character> toCharList(String str) {\n return str\n .chars() // Convert to an IntStream\n .mapToObj(i -> (char) i) // Convert int to char, which gets boxed to Character\n .collect(Collectors.toList()); // Collect in a List<Character>\n }", "title": "" }, { "docid": "1813f455d78eab04aeb5862172840660", "score": "0.5471264", "text": "public static String[] convertTokenizedStringToStringArray(String tokenizedString, String token) {\r\n String stringArray[] = null;\r\n if ((tokenizedString != null) && (token != null)) {\r\n StringTokenizer st = new StringTokenizer(tokenizedString, token);\r\n int i = 0;\r\n stringArray = new String[st.countTokens()];\r\n while (st.hasMoreElements()) {\r\n stringArray[i] = st.nextToken();\r\n i++;\r\n }\r\n }\r\n return stringArray;\r\n }", "title": "" }, { "docid": "ff73b24bc28219cb77f9a6b2e930c549", "score": "0.5455075", "text": "public static List<String> splitToUniqueList(String data) {\n\t\tList<String> list = Arrays.asList(data.trim().split(\"[ ,\\\\r\\\\n]+\"));\n\t\treturn uniqueList(list);\n\t}", "title": "" }, { "docid": "a0520d619908f2a29e79936d8a52d9c7", "score": "0.54516095", "text": "public List<List<String>> groupAnagramsNG(String[] strs) {\n\t\tif (strs.length == 0) {\n\t\t\treturn new ArrayList<List<String>>();\n\t\t}\n\t\tMap<String, List<String>> map = new HashMap<>();\n\t\tint[] counts = new int[26];\n\t\tfor (String s : strs) {\n\t\t\tArrays.fill(counts, 0);\n\t\t\tchar[] chars = s.toCharArray();\n\t\t\t// O(K). Make character counts.\n\t\t\tfor (char c : chars) {\n\t\t\t\tcounts[c - 'a']++;\n\t\t\t}\n\t\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\t\t// Make character counts string.\n\t\t\tfor (int num : counts) {\n\t\t\t\tsb.append(num);\n\t\t\t}\n\t\t\tString key = sb.toString();\n\t\t\tif (!map.containsKey(key)) {\n\t\t\t\tmap.put(key, new ArrayList<String>());\n\t\t\t}\n\t\t\tmap.get(key).add(s);\n\t\t}\n\n\t\treturn new ArrayList<List<String>>(map.values());\n\t}", "title": "" }, { "docid": "42dd81003fc9f66ff09b92b58ed2aa2c", "score": "0.5447396", "text": "public ArrayList<String> anagrams(String[] strs) {\n ArrayList<String> result = new ArrayList<String>();\n Map<String, List<Integer>> memo = new HashMap<String, List<Integer>>();\n for (int i = 0; i < strs.length; i++) {\n char[] arr = strs[i].toCharArray();\n Arrays.sort(arr);\n String key = new String(arr);\n if (memo.containsKey(key)) {\n memo.get(key).add(i);\n } else {\n List<Integer> ll = new ArrayList<Integer>();\n ll.add(i);\n memo.put(key, ll);\n }\n }\n for (String key: memo.keySet()) {\n if (memo.get(key).size() > 1) {\n List<Integer> ll = memo.get(key);\n for (Integer i : ll) {\n result.add(strs[i]);\n }\n }\n }\n return result;\n }", "title": "" }, { "docid": "23b7d628c07438377823e1f37beae653", "score": "0.5446057", "text": "public static List<String> extractTextToList(String input) {\r\n\t\tList<String> datas = new ArrayList<>();\r\n\t\tString line = \"\";\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(input)));) {\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tdatas.add(line);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\treturn datas;\r\n\t}", "title": "" }, { "docid": "5a441e97b3dfd9df838b10c5dfc57767", "score": "0.5445371", "text": "@Override\r\n public List<String> transform(Object input) throws Exception {\r\n final List<String> list = new ArrayList<String>();\r\n String inputString = input.toString();\r\n if (inputString.length() == 0) {\r\n return list;\r\n }\r\n String[] split = splitPattern.split(inputString);\r\n for (String string : split) {\r\n list.add(string);\r\n }\r\n return list;\r\n }", "title": "" }, { "docid": "08361ba7b415148e96b3092df7ca33ee", "score": "0.54377276", "text": "private void convertToTerms(String string) {\n\t\tString[] termsString = string.split(\"[+]\");\n\t\tfor (String s : termsString) {\n\t\t\ttermList.add((TermImp) new TermImp(s));\n\t\t}\n\n\t}", "title": "" }, { "docid": "03425026d57abc66d4c51efbcdac58b6", "score": "0.542849", "text": "public List<List<String>> groupAnagrams(String[] strs) {\n\t\t\n\t\tif (strs == null) return new ArrayList<List<String>>();\n\t\t\n\t\tMap<String, List<String>> temp = new HashMap<String, List<String>>();\n\t\tfor (String str : strs) {\n\t\t\tchar[] c = str.toCharArray();\n\t\t\tArrays.sort(c);\n\t\t\tString key = String.valueOf(c);\n\t\t\tif (!temp.containsKey(key))\n\t\t\t\ttemp.put(key, new ArrayList<String>());\n\t\t\ttemp.get(key).add(str);\n\t\t}\n\t\t\n\t\treturn new ArrayList<List<String>>(temp.values());\n }", "title": "" }, { "docid": "cfcd9dc2f9cd8945d38db939258bcba1", "score": "0.5426938", "text": "@SuppressWarnings(\"unchecked\")\n public ArrayList<CharSequence> getCharSequenceArrayList(String key) {\n return (ArrayList<CharSequence>) get(key);\n }", "title": "" }, { "docid": "7e72ad7fa9b158da0997dec93ebe45af", "score": "0.5426731", "text": "private RomanNumeral[] convertToNumeralArray(String str) throws InvalidNumeralException {\n\t\tRomanNumeral[] rnArr = new RomanNumeral[str.length()];\n\t\tfor (int i=0; i<str.length(); i++) {\n\t\t\tif (isNumeral(str.charAt(i)))\n\t\t\t\trnArr[i] = new RomanNumeral(str.charAt(i));\n\t\t\telse\n\t\t\t\tthrow new InvalidNumeralException();\n\t\t}\n\t\treturn rnArr;\n\t}", "title": "" }, { "docid": "5dbe367b6924c40e06e9e8dc86f945e9", "score": "0.5426305", "text": "public void stringToCharArray()\n\t{\n\t\tint i = 0;\n\t\twhile(stringToChar.charAt(i) != '$')\n\t\t{\n\t\t\tcharArray[i] = stringToChar.charAt(i);\n\t\t\ti++;\n\t\t}\n\t\tcharArray[i] = stringToChar.charAt(i);\n\t}", "title": "" } ]
293577a97094310c283b922a9176475c
Run the String getInheritedAttribute(String,String) method test.
[ { "docid": "05380f836d3242dcaf2074f42c5b28ca", "score": "0.684029", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture26_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture26();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" } ]
[ { "docid": "c0a3c2fbd2a56822618e2c01c5a311e6", "score": "0.71941423", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture18_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture18();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "f2d67ad245d0e89c0d421b753813feaf", "score": "0.7074071", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture17_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture17();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "1b53fa5621b910f5a0d41b49c2705330", "score": "0.6990026", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture20_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture20();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "83af35730175eced009087078d28c27b", "score": "0.69483376", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture16_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture16();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "6a48cabede52f492724834759d05c5cf", "score": "0.69442195", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture15_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture15();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "9f6d31ba1f5ed28563507484516ce240", "score": "0.69128054", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture29_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture29();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "43c5c374a98b471e439f166d03844120", "score": "0.68970436", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture10_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture10();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "05705939e9ef6e3a83874dc61b996646", "score": "0.6878661", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture22_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture22();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "1f6605fee79d2bacf80ff1bdec7842d8", "score": "0.6853831", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture6_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture6();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "51a8f64fab2290cc30941470256de43e", "score": "0.6852587", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture13_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture13();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "737fa12b63f7fc7e11edfb634277d1f1", "score": "0.6847844", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture28_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture28();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "15b65797364bc8f608301c5b5b5700ea", "score": "0.6845369", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture30_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture30();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "5b93d4c79ff2b75dc59dc2503490fa95", "score": "0.6821101", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture23_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture23();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "75cfbb6409751e6b4901aa13305ce760", "score": "0.6820852", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture5_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture5();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "3a56fcd75e292c6998f8839f68104ffe", "score": "0.6803258", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture24_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture24();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "f703ef95af100a2d497470bd61ce5009", "score": "0.6798972", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture8_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture8();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "3ca76c265adebccbe4c1c068f206ba8d", "score": "0.67880404", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture25_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture25();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "f1da28042071f2a351e616cc26673fe3", "score": "0.67807376", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture12_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture12();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "875249ecc81e719550d68072f7255106", "score": "0.67735153", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture14_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture14();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "0662ca0076726e3b3f58deeea2ac2dd2", "score": "0.67654026", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture27_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture27();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "3893420275868e6e7409b705b6985fdb", "score": "0.6759749", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture4_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture4();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "2176f102324b78ab1761c9547dc64fc6", "score": "0.67550087", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture11_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture11();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "e7579581b2ff5a10ac741602bc20ca4f", "score": "0.6752916", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture19_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture19();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "f9f78177b60745fe76abd0de200fac2d", "score": "0.673516", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture21_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture21();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "ddbbf215ea9d6e5116500025973821a9", "score": "0.66937864", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture1_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture1();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "9873807474e390f1f2e593a18a94e239", "score": "0.6677025", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture9_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture9();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "ee23fa591684399958cfcc54380eee39", "score": "0.66030926", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture7_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture7();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "f502c2d1d52fbaf53d1fb607426e68e7", "score": "0.65729856", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture1_2()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture1();\n\t\tString namespaceURI = \"\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "3fcb94f80df99844bd5949a06cc49f65", "score": "0.6352344", "text": "@Test\n\tpublic void testGetInheritedAttribute_fixture2_1()\n\t\tthrows Exception {\n\t\tNode fixture = getFixture2();\n\t\tString namespaceURI = \"0123456789\";\n\t\tString localName = \"0123456789\";\n\n\t\tString result = fixture.getInheritedAttribute(namespaceURI, localName);\n\n\t\t// add additional test code here\n\t\tassertEquals(null, result);\n\t}", "title": "" }, { "docid": "fed235ab68a1115f12e82e0ac4fa968b", "score": "0.63324845", "text": "@Test\n public void testExtractionOfMethodAccessibleFields_inherited() throws Exception {\n File file = new File(testFileRootPath + \"TestClass.java\");\n\n JavaInputReader javaModelBuilder = new JavaInputReader();\n Map<String, Object> model =\n javaModelBuilder.createModel(JavaParserUtil.getFirstJavaClass(new FileReader(file)));\n\n // test inherited field of direct superclass named \"id\"\n Map<String, Object> inheritedField = JavaModelUtil.getMethodAccessibleField(model, \"id\");\n assertThat(inheritedField).isNotNull();\n assertThat(inheritedField.get(ModelConstant.NAME)).isEqualTo(\"id\");\n\n assertThat(inheritedField.get(ModelConstant.TYPE)).isEqualTo(\"Long\");\n\n assertThat(inheritedField.get(ModelConstant.CANONICAL_TYPE)).isEqualTo(\"java.lang.Long\");\n\n // is deprecated, so its not necessary to test here\n // assertThat(inheritedField.get(\"isId\")).isEqualTo(\"false\");\n\n // currently no javadoc provided\n // assertThat(inheritedField.get(ModelConstant.JAVADOC)).isNotNull();\n // assertThat(JavaModelUtil.getJavaDocModel(inheritedField).get(\"comment\")).isEqualTo(\"Example\n // JavaDoc\");\n\n // TODO Currently qDox library does not return the superclass' annotations\n /*\n * // test annotations for attribute, getter, setter, is-method\n * assertThat(inheritedField.get(ModelConstant.ANNOTATIONS)).isNotNull(); // getter\n * assertTrue(JavaModelUtil.getAnnotations\n * (inheritedField).containsKey(\"MySuperTypeGetterAnnotation\")); // Setter\n * assertTrue(JavaModelUtil.getAnnotations\n * (inheritedField).containsKey(\"MySuperTypeSetterAnnotation\")); // is-method\n * assertThat(JavaModelUtil.getAnnotations(inheritedField).containsKey(\"MySuperTypeIsAnnotation\")).\n * isTrue(); // attribute\n * assertThat(JavaModelUtil.getAnnotations(inheritedField).containsKey(\"MySuperTypeFieldAnnotation\")).\n * isTrue();\n */\n }", "title": "" }, { "docid": "1baee171e5c6c711cbe58c60c85d888b", "score": "0.6229646", "text": "@Test\n @Ignore(value = \"This test case is not successfull due to boundaries of qDox\")\n public void testExtractionOfMethodAccessibleFields_inheritedInherited() throws Exception {\n File file = new File(testFileRootPath + \"TestClass.java\");\n\n JavaInputReader javaModelBuilder = new JavaInputReader();\n Map<String, Object> model =\n javaModelBuilder.createModel(JavaParserUtil.getFirstJavaClass(new FileReader(file)));\n\n // test inherited field of direct superclass named \"id\"\n System.out.println(model);\n Map<String, Object> inheritedField = JavaModelUtil.getMethodAccessibleField(model, \"superSuperString\");\n assertThat(inheritedField).isNotNull();\n assertThat(inheritedField.get(ModelConstant.NAME)).isEqualTo(\"superSuperString\");\n\n // TODO qDox library returns full qualified names for the superclass' fields\n // actually the expected result of ModelConstant.Type is \"String\" here, but we insert this test case\n // here with \"java.lang.String\" so that the test turns into red if there changes anything in qDox\n assertThat(inheritedField.get(ModelConstant.TYPE)).isEqualTo(\"java.lang.String\");\n\n assertThat(inheritedField.get(ModelConstant.CANONICAL_TYPE)).isEqualTo(\"java.lang.String\");\n\n // is deprecated, so its not necessary to test here\n // assertThat(inheritedField.get(\"isId\")).isEqualTo(\"false\");\n\n // currently no javadoc provided\n // assertThat(inheritedField.get(ModelConstant.JAVADOC)).isNotNull();\n // assertThat(JavaModelUtil.getJavaDocModel(inheritedField).get(\"comment\")).isEqualTo(\"Example\n // JavaDoc\");\n\n // TODO Currently qDox library does not return the superclass' annotations\n /*\n * // test annotations for attribute, getter, setter, is-method\n * assertThat(inheritedField.get(ModelConstant.ANNOTATIONS)).isNotNull(); // getter\n * assertTrue(JavaModelUtil.getAnnotations\n * (inheritedField).containsKey(\"MySuperSuperTypeGetterAnnotation\")); // Setter\n * assertTrue(JavaModelUtil.getAnnotations\n * (inheritedField).containsKey(\"MySuperSuperTypeSetterAnnotation\")); // is-method\n * assertTrue(JavaModelUtil\n * .getAnnotations(inheritedField).containsKey(\"MySuperSuperTypeIsAnnotation\")); // attribute\n * assertTrue\n * (JavaModelUtil.getAnnotations(inheritedField).containsKey(\"MySuperSuperTypeFieldAnnotation\"));\n */\n }", "title": "" }, { "docid": "c23fa1a35360910d500527cc1a66f92e", "score": "0.6049161", "text": "public abstract Attribute getAttribute();", "title": "" }, { "docid": "5eed2602e9c413cf4137244bceff8282", "score": "0.5920102", "text": "StaticPart getTestAttribute() {\r\n \treturn part;\r\n }", "title": "" }, { "docid": "742daebf3b45cbc1a1a472a8f0a81a91", "score": "0.5831126", "text": "public abstract Object getAttribute(String theAttributeName);", "title": "" }, { "docid": "47f9c0b854609db4fecbb32a2749152d", "score": "0.58296543", "text": "public void testassignAttributeDefNameInheritance() throws java.lang.Exception{\r\n\r\n edu.internet2.middleware.grouper.webservicesClient.GrouperServiceStub stub =\r\n new edu.internet2.middleware.grouper.webservicesClient.GrouperServiceStub();//the default implementation should point to the right endpoint\r\n\r\n edu.internet2.middleware.grouper.ws.soap_v2_3.xsd.AssignAttributeDefNameInheritance assignAttributeDefNameInheritance456=\r\n (edu.internet2.middleware.grouper.ws.soap_v2_3.xsd.AssignAttributeDefNameInheritance)getTestObject(edu.internet2.middleware.grouper.ws.soap_v2_3.xsd.AssignAttributeDefNameInheritance.class);\r\n // TODO : Fill in the assignAttributeDefNameInheritance456 here\r\n \r\n assertNotNull(stub.assignAttributeDefNameInheritance(\r\n assignAttributeDefNameInheritance456));\r\n \r\n\r\n\r\n\r\n }", "title": "" }, { "docid": "c7c1b8eef590af97eb3e300b9295d821", "score": "0.5765518", "text": "public A action(String match, A attribute, A inheritedAttribute);", "title": "" }, { "docid": "49d97ca1457f0d5beb3edfb31602654a", "score": "0.5673845", "text": "@Test\n\tpublic void getMetamodel_hierarchyAttribute(){\n\t}", "title": "" }, { "docid": "45c5f9c4a9d4911d67460eab2a101fa2", "score": "0.5663172", "text": "public void testAttribute() {\n MemberResolvationChild child = new MemberResolvationChild();\n System.out.printf(\"Child: parent-attributeMarker =%s \\n\", child.getParentAttributeMarker());\n System.out.printf(\"Child: attributeMarker =%s \\n\", child.attributeMarker);\n System.out.println();\n\n /* Access from object (after up conversion):\n The accessed attribute depends on referencing type, though pointing to same object.\n Inherited parent-defined attribute will be accessed, when referencing type is parent.\n Child-defined Attribute will be accessed , when referencing type is child.\n */\n MemberResolvationParent parent = child;\n System.out.printf(\"parent(up-conversioned from child): attributeMarker =%s \\n\", parent.attributeMarker);\n System.out.printf(\"Child: attributeMarker =%s \\n\", child.attributeMarker);\n System.out.println();\n }", "title": "" }, { "docid": "1bd362575eaaa8ad04efbd625806697f", "score": "0.56483614", "text": "protected abstract int selectAttribute();", "title": "" }, { "docid": "25bba6b4ab996093995b60b6d1122bfe", "score": "0.55945873", "text": "public void testassignAttributeDefNameInheritanceLite() throws java.lang.Exception{\r\n\r\n edu.internet2.middleware.grouper.webservicesClient.GrouperServiceStub stub =\r\n new edu.internet2.middleware.grouper.webservicesClient.GrouperServiceStub();//the default implementation should point to the right endpoint\r\n\r\n edu.internet2.middleware.grouper.ws.soap_v2_3.xsd.AssignAttributeDefNameInheritanceLite assignAttributeDefNameInheritanceLite378=\r\n (edu.internet2.middleware.grouper.ws.soap_v2_3.xsd.AssignAttributeDefNameInheritanceLite)getTestObject(edu.internet2.middleware.grouper.ws.soap_v2_3.xsd.AssignAttributeDefNameInheritanceLite.class);\r\n // TODO : Fill in the assignAttributeDefNameInheritanceLite378 here\r\n \r\n assertNotNull(stub.assignAttributeDefNameInheritanceLite(\r\n assignAttributeDefNameInheritanceLite378));\r\n \r\n\r\n\r\n\r\n }", "title": "" }, { "docid": "38c51d54627dd66c9b1850a3676d6d43", "score": "0.55388457", "text": "SituationAttribute getAttribute();", "title": "" }, { "docid": "9e104988407fe5088854a6d522be56de", "score": "0.54602915", "text": "boolean inheritsAttributeWildcard();", "title": "" }, { "docid": "649000ba0f0be84e41b069bbf0c014c6", "score": "0.5407438", "text": "@Override\n public Object getAttribute(String name) {\n return super.getAttribute(name); //To change body of overridden methods use File | Settings | File Templates.\n }", "title": "" }, { "docid": "b364c961bb3c450a7d9ef72b5cf8420e", "score": "0.53851414", "text": "boolean isInherited();", "title": "" }, { "docid": "2ede491b7c2af160e1de3bbc229b0105", "score": "0.538501", "text": "abstract protected IAttribute<?, ?, ?>[] doRetrieveToolBaseSubstitutionAttributes() throws CoreException;", "title": "" }, { "docid": "a5af966a338b28c0a0d7c082f6a853f5", "score": "0.5383866", "text": "Attribute getAttribute();", "title": "" }, { "docid": "51517d9f697c87d6fd868d083c1b3fc7", "score": "0.53794914", "text": "IAttribute getAttribute();", "title": "" }, { "docid": "680e4c0974771aca88d152fd76141920", "score": "0.5371587", "text": "void testChildAttributes (ChildTicket actual, BaseTicket baseTicket) {\n\t\texpectedCost = expectedChildCost;\n\t\texpectedPoints = expectedTicketPoints;\n\t\texpectedDescription = expectedBaseDescription + expectedChildDescription;\n\t\t\n\t\tactualCost = actual.getCost();\n \tactualPoints = actual.getPoints();\n\t\tactualDescription = actual.getDescription();\n\t\t\n\t\tassertEquals(expectedCost, actualCost);\n\t\tassertEquals(expectedPoints, actualPoints);\n\t\tassertEquals(expectedDescription, actualDescription);\n\t}", "title": "" }, { "docid": "9dd04c179d8cdba486dfcdec9de74a20", "score": "0.5362876", "text": "void testIt(){\n System.out.println(\"From Child class\" + protectedString);\n }", "title": "" }, { "docid": "38c5e062cdb19bc1f014ab5b34af1eff", "score": "0.5330776", "text": "abstract void attributeRange();", "title": "" }, { "docid": "513c2fdc0c8a10b93a413bdb538ea68b", "score": "0.5310287", "text": "ConcreteFunction getAttrFunction(String name);", "title": "" }, { "docid": "f4668f91ab4be44a4a7eee936eac9e01", "score": "0.52800936", "text": "public void testStartassignAttributeDefNameInheritance() throws java.lang.Exception{\r\n edu.internet2.middleware.grouper.webservicesClient.GrouperServiceStub stub = new edu.internet2.middleware.grouper.webservicesClient.GrouperServiceStub();\r\n edu.internet2.middleware.grouper.ws.soap_v2_3.xsd.AssignAttributeDefNameInheritance assignAttributeDefNameInheritance456=\r\n (edu.internet2.middleware.grouper.ws.soap_v2_3.xsd.AssignAttributeDefNameInheritance)getTestObject(edu.internet2.middleware.grouper.ws.soap_v2_3.xsd.AssignAttributeDefNameInheritance.class);\r\n // TODO : Fill in the assignAttributeDefNameInheritance456 here\r\n \r\n\r\n stub.startassignAttributeDefNameInheritance(\r\n assignAttributeDefNameInheritance456,\r\n new tempCallbackN67516()\r\n );\r\n \r\n\r\n\r\n }", "title": "" }, { "docid": "577235f565acc56cc87f1caf8ee93caa", "score": "0.52599776", "text": "@Test(expected = NoSuchAttributeException.class)\n\tpublic void getAttributeTest1() throws CommitFailedException {\n\t\tcreateTransaction(g);\n\t\tDoubleSubNode v = g.createDoubleSubNode();\n\t\tcommit(g);\n\t\tcreateReadOnlyTransaction(g);\n\t\tv.getAttribute(\"cd\");\n\t\tcommit(g);\n\t}", "title": "" }, { "docid": "0648a1feb3e93ebf0846d546732ed48f", "score": "0.51890785", "text": "public void testGetterInheritance() throws Exception {\n class A {\n public String getA() { return null; }\n }\n class B extends A {\n }\n assertProperties(B.class, new PropertyMetaData(\"a\", String.class, AccessMode.READ_ONLY));\n }", "title": "" }, { "docid": "e4baf40b253bf65f05991845fcc3809d", "score": "0.5169455", "text": "public void testStartassignAttributeDefNameInheritanceLite() throws java.lang.Exception{\r\n edu.internet2.middleware.grouper.webservicesClient.GrouperServiceStub stub = new edu.internet2.middleware.grouper.webservicesClient.GrouperServiceStub();\r\n edu.internet2.middleware.grouper.ws.soap_v2_3.xsd.AssignAttributeDefNameInheritanceLite assignAttributeDefNameInheritanceLite378=\r\n (edu.internet2.middleware.grouper.ws.soap_v2_3.xsd.AssignAttributeDefNameInheritanceLite)getTestObject(edu.internet2.middleware.grouper.ws.soap_v2_3.xsd.AssignAttributeDefNameInheritanceLite.class);\r\n // TODO : Fill in the assignAttributeDefNameInheritanceLite378 here\r\n \r\n\r\n stub.startassignAttributeDefNameInheritanceLite(\r\n assignAttributeDefNameInheritanceLite378,\r\n new tempCallbackN65917()\r\n );\r\n \r\n\r\n\r\n }", "title": "" }, { "docid": "5b44d0ffaaab49783e76356b82edf771", "score": "0.5165418", "text": "@Test\n public void testDerived() throws IOException {\n assertEqual(\"derived\");\n }", "title": "" }, { "docid": "f7a3b62dbda21e13aff6c5bd29a3cc52", "score": "0.5161557", "text": "boolean isAttribute();", "title": "" }, { "docid": "e06b350b81ac0088f1ccd113cb46fd1b", "score": "0.5116054", "text": "@Test\n public void testAttributeGetter() {\n Rule rule = Grammar.AttributeGetter;\n\n valid(rule, VALUE_MODIFIER, LIDENTIFIER, LBRACE, RBRACE);\n valid(rule, UIDENTIFIER, ARRAY, LIDENTIFIER, LBRACE, RBRACE);\n valid(rule, UIDENTIFIER, UNION_OP, UIDENTIFIER, QMARK, LIDENTIFIER, LBRACE, RBRACE);\n }", "title": "" }, { "docid": "4d41f9a8658c768103edf2cc0efaa118", "score": "0.50925785", "text": "String attr(String name);", "title": "" }, { "docid": "3779496528435869b1b294aaa1486ea7", "score": "0.5035666", "text": "public void testInheritedField() {\n QueryFactory queryFactory = Search.getQueryFactory(cache);\n Query<Person> query = queryFactory.create(\"FROM \" + Person.class.getName() + \" WHERE age <= 52\");\n\n List<Person> matches = query.execute().list();\n assertEquals(1, matches.size());\n }", "title": "" }, { "docid": "2714e511257679eb5e22ef1ae9e417a4", "score": "0.5018804", "text": "@Override\r\n public Object howToInherit( Model from, String attr ) {\r\n int kind = nodeP ? from.getNodeAttrKind( attr ) : from.getCompAttrKind( attr ); \r\n\r\n if( kind == Model.INFORMATIONAL ) {\r\n return mode;\r\n } \r\n return SKIP_ME;\r\n }", "title": "" }, { "docid": "820981cf1a7c1f026a71ff71df978406", "score": "0.50083715", "text": "private String getValoreAttr(SiacRAttrBaseFin siacRAttrBase) {\n\t\tString testoOld = \"\";\n\t\tSiacDAttrTipoFin siacDAttrTipoOld = siacRAttrBase.getSiacTAttr()\n\t\t\t\t.getSiacDAttrTipo();\n\t\tString attrTipoDescOld = siacDAttrTipoOld.getAttrTipoDesc();\n\t\tif (attrTipoDescOld.equals(Constanti.TIPO_ATTR_TESTO)) {\n\t\t\ttestoOld = siacRAttrBase.getTesto();\n\t\t} else if (attrTipoDescOld.equals(Constanti.TIPO_ATTR_NUMERICO)) {\n\t\t\ttestoOld = siacRAttrBase.getNumerico().toString();\n\t\t} else if (attrTipoDescOld.equals(Constanti.TIPO_ATTR_BOOLEAN)) {\n\t\t\ttestoOld = siacRAttrBase.getBoolean_();\n\t\t} else if (attrTipoDescOld.equals(Constanti.TIPO_ATTR_PERCENTUALE)) {\n\t\t\ttestoOld = siacRAttrBase.getPercentuale().toString();\n\t\t} else if (attrTipoDescOld.equals(Constanti.TIPO_ATTR_TABELLA)) {\n\t\t\ttestoOld = siacRAttrBase.getTabellaId().toString();\n\t\t}\n\t\t// Termino restituendo l'oggetto di ritorno:\n\t\treturn testoOld;\n\t}", "title": "" }, { "docid": "48ae9f5cf7759ce788cf301af52c55d3", "score": "0.5004734", "text": "protected String aname( String raw ) {\r\n return setup.attributeName( raw );\r\n }", "title": "" }, { "docid": "7685a0843d3dab4574cb4c914eb1c278", "score": "0.499014", "text": "public void testAttributes() {\n Object parsedPackage = lookupPackage();\n Object parsedClass = lookupClass(parsedPackage);\n Collection attributes = Model.getFacade().getAttributes(parsedClass);\n assertNotNull(\"No attributes found in class.\", attributes);\n assertEquals(\"Number of attributes is wrong\", 1, attributes.size());\n Object attribute = null;\n Object attributeFors = null;\n Iterator iter = attributes.iterator();\n while (iter.hasNext()) {\n attribute = iter.next();\n assertTrue(\"The attribute should be recognized as an attribute.\",\n Model.getFacade().isAAttribute(attribute));\n if (\"sé\".equals(Model.getFacade().getName(attribute))) {\n attributeFors = attribute;\n }\n }\n assertTrue(\"The attribute sé has the wrong name.\",\n attributeFors != null);\n\n Object initializer = Model.getFacade().getInitialValue(attributeFors);\n assertTrue(\"Attribute sé has no initializer.\",\n Model.getFacade().isInitialized(attributeFors)\n && initializer != null);\n assertEquals(\"The initializer of attribute sé is wrong.\",\n \" \\\"final String objéct\\\"\", Model.getFacade().getBody(initializer));\n }", "title": "" }, { "docid": "522317e1c533aaba1320cc63eb24e76a", "score": "0.49876276", "text": "String getAttributeName();", "title": "" }, { "docid": "c14fcced8e15d0aec9c1a26d5306f6b9", "score": "0.49789444", "text": "protected String getAttrName() \n {\n return ATTR_EnclosingMethod;\n }", "title": "" }, { "docid": "82367dc13e5cd8b7d26567a188d66ff6", "score": "0.49771604", "text": "public void testGetterOverride() throws Exception {\n class A {\n public String getA() { return null; }\n }\n class B extends A {\n public String getA() { return null; }\n }\n assertProperties(B.class, new PropertyMetaData(\"a\", String.class, AccessMode.READ_ONLY));\n }", "title": "" }, { "docid": "ced0ee4c8c2560f3d560caa3355190d0", "score": "0.49728504", "text": "java.lang.String getBaselineRole();", "title": "" }, { "docid": "ced0ee4c8c2560f3d560caa3355190d0", "score": "0.49728504", "text": "java.lang.String getBaselineRole();", "title": "" }, { "docid": "ced0ee4c8c2560f3d560caa3355190d0", "score": "0.49728504", "text": "java.lang.String getBaselineRole();", "title": "" }, { "docid": "8bac2ec500c65a9f7eec5770133f94b0", "score": "0.49690896", "text": "Sequence getAnyAttribute();", "title": "" }, { "docid": "5eef5b43386adc078d3c1dd03cee9400", "score": "0.49663493", "text": "@Test\n\tpublic void getAttributedElementClassTest() throws CommitFailedException {\n\t\tcreateTransaction(g);\n\t\tVertexClass[] vertices = getVertexClasses();\n\t\tVertex v0 = g.createDoubleSubNode();\n\t\tVertex v1 = g.createSubNode();\n\t\tVertex v2 = g.createSuperNode();\n\t\tcommit(g);\n\t\tcreateReadOnlyTransaction(g);\n\t\tassertEquals(vertices[3], v0.getAttributedElementClass());\n\t\tassertEquals(vertices[1], v1.getAttributedElementClass());\n\t\tassertEquals(vertices[2], v2.getAttributedElementClass());\n\t\tcommit(g);\n\t}", "title": "" }, { "docid": "8578e3359b6221e102657b3b15b42218", "score": "0.49526417", "text": "String getAttribute(String name);", "title": "" }, { "docid": "3134c81a6351c8d74e8a5323032daf71", "score": "0.49504277", "text": "public Attributes getAttributes();", "title": "" }, { "docid": "d0c0f95cd6f5602c84283762f0c75ff9", "score": "0.49374428", "text": "private java.util.HashSet<String> getRedefinedDerivedAttributeTypes()\n\t{\n\t\tjava.util.HashSet<String> redefinedDerivedAttributes = new java.util.HashSet<String>();\n\t\treturn redefinedDerivedAttributes;\t}", "title": "" }, { "docid": "d0c0f95cd6f5602c84283762f0c75ff9", "score": "0.49374428", "text": "private java.util.HashSet<String> getRedefinedDerivedAttributeTypes()\n\t{\n\t\tjava.util.HashSet<String> redefinedDerivedAttributes = new java.util.HashSet<String>();\n\t\treturn redefinedDerivedAttributes;\t}", "title": "" }, { "docid": "827a67d4068c1f199d7224f261c81c6d", "score": "0.49165925", "text": "public String getAttr_name() {\n return attr_name;\n}", "title": "" }, { "docid": "2fdb964184b11a914c6a29d4231831f1", "score": "0.4910933", "text": "@Test\n public void testSupportedAttr() {\n System.out.println(\"supportedAttr\");\n ForAttributeParser instance = new ForAttributeParser(null);\n String expResult = \"for\";\n String result = instance.supportedAttr();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "b06ede185e5a654abe0386dd4f83ccfd", "score": "0.4902398", "text": "@Test(expected = NoSuchAttributeException.class)\n\tpublic void getAttributeTest2() throws CommitFailedException {\n\t\tcreateTransaction(g);\n\t\tDoubleSubNode v = g.createDoubleSubNode();\n\t\tcommit(g);\n\t\tcreateReadOnlyTransaction(g);\n\t\tv.getAttribute(\"\");\n\t\tcommit(g);\n\t}", "title": "" }, { "docid": "a7073246990442a2d9bdec7cc856df34", "score": "0.48965755", "text": "public io.dstore.values.BooleanValue getIncludeInherited() {\n if (includeInheritedBuilder_ == null) {\n return includeInherited_ == null ? io.dstore.values.BooleanValue.getDefaultInstance() : includeInherited_;\n } else {\n return includeInheritedBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "54ed206ed6165b01ba00c12a4d048016", "score": "0.48936507", "text": "@Override\n protected void setInheritedAttributes(final Map<String, Object> inheritedAttributes) {\n if (inheritedAttributes != null) {\n for (final Entry<String, Object> entry : inheritedAttributes.entrySet()) {\n final String key = entry.getKey();\n Object value = entry.getValue();\n if (value != null && AttributeHolder.class.isAssignableFrom(value.getClass())) {\n value = ((AttributeHolder)value).getValue();\n }\n final AttributeHolder holder = setInheritable(key, value).lock();\n if (value != null && SERIALIZABLE.contains(value.getClass())) {\n holder.serializable();\n }\n }\n }\n }", "title": "" }, { "docid": "1b6cfb8b9ddc0d095a52ad65be950c1a", "score": "0.48924255", "text": "@Test\n public void testCorrectlyExtractedInheritedType() throws Exception {\n File classFile = new File(testFileRootPath + \"TestClass.java\");\n\n JavaInputReader javaModelBuilder = new JavaInputReader();\n Map<String, Object> model =\n javaModelBuilder.createModel(JavaParserUtil.getFirstJavaClass(new FileReader(classFile)));\n\n Assert.assertEquals(\"AbstractTestClass\", JavaModelUtil.getExtendedType(model).get(ModelConstant.NAME));\n assertThat(JavaModelUtil.getExtendedType(model).get(ModelConstant.CANONICAL_NAME))\n .isEqualTo(\"com.devonfw.cobigen.javaplugin.unittest.inputreader.testdata.AbstractTestClass\");\n assertThat(JavaModelUtil.getExtendedType(model).get(ModelConstant.PACKAGE))\n .isEqualTo(\"com.devonfw.cobigen.javaplugin.unittest.inputreader.testdata\");\n }", "title": "" }, { "docid": "3e37c77fbb56f40b62e58be89e80ead9", "score": "0.48789147", "text": "public abstract String getAttribute( String uri, String local );", "title": "" }, { "docid": "f98a8b650e9e9f9b278ac716fe4de6d7", "score": "0.48762497", "text": "public void testInheritedVariables(){\n System.out.println(\"Visibility of protected var:\" + protectedVarA);\r\n //System.out.println(\"Visibility of package var:\" + packageVarA);\r\n System.out.println(\"Visibility of public var:\" + publicVarA);\r\n }", "title": "" }, { "docid": "1d0eb12e18481fa4824ccf0c3b061d61", "score": "0.48747754", "text": "public interface Attributable {\n\n /**\n * Adds an attribute with the given name and value. Some implementations\n * may support only a single value for each distinct name. Others may\n * support multiple values for each name. If the value being provided\n * replaces some other value then that value is returned otherwise null\n * is returned.\n *\n * @param name name of the attribute.\n * @param value value for the attribute.\n * @return String containing previous value for this name if the value\n * is being replaced otherwise null.\n */\n String addAttribute(String name, String value);\n\n /**\n * Adds an attribute with the given name and value. Some implementations\n * may support only a single value for each distinct name. Others may\n * support multiple values for each name. If the value being provided\n * replaces some other value then that value is returned otherwise null\n * is returned.\n *\n * @param newAttrib new attribute.\n * @return String containing previous value for this name if the value\n * is being replaced otherwise null.\n */\n String addAttribute(Attribute newAttrib);\n\n /**\n * Returns an enumerations of the attributes associated with this object.\n * Each element is of type Attribute.\n *\n * @return Enumeration the attributes associated with this object.\n */\n Enumeration<Attribute> getAttributes();\n\n /**\n * Returns a single attribute which matches the name provided. If no such\n * named attribute exists then null is returned. For implementations of\n * this interface which support multiple values for each name only the\n * first value will be returned. To access all values for a name you must\n * use getAttributes.\n *\n * @param name the attribute name\n * @return Attribute the attributes matching the given name.\n */\n Attribute getAttribute(String name);\n}", "title": "" }, { "docid": "c1af723c53cf215392a96ee2c141c1b4", "score": "0.4866238", "text": "public abstract Elements getElementsByAttribute(String attribute);", "title": "" }, { "docid": "263b28dc2d45c88d792f9dcd4c42e1bd", "score": "0.48626578", "text": "protected abstract ArrayList<Attribute> getAttributes();", "title": "" }, { "docid": "99d8b0981d617c1be7c16bc30ce8d67c", "score": "0.48596516", "text": "@Test\n public void testNOA_avec_heritage(){\n\n Model model = new Model(\"TestModel\");\n Classe classeParent = new Classe(\"TestClasseParent\");\n Classe classeEnfant = new Classe(\"TestClasseEnfant\");\n ArrayList<String> sousClasses = new ArrayList<>();\n Generalization generalization;\n Metrique metrique;\n\n /* On ajoute des attributs a la classe parent */\n classeParent.addAttribute(new Attribute(\"attribut1\",\"Int\"));\n classeParent.addAttribute(new Attribute(\"attribut2\",\"String\"));\n classeParent.addAttribute(new Attribute(\"attribut3\",\"float\"));\n model.addClasse(classeParent);\n\n /* On ajoute des attributs a la classe enfant */\n classeEnfant.addAttribute(new Attribute(\"attribut4\",\"Int\"));\n classeEnfant.addAttribute(new Attribute(\"attribut5\",\"Int\"));\n model.addClasse(classeEnfant);\n\n sousClasses.add(\"TestClasseEnfant\");\n generalization = new Generalization(\"TestClasseParent\",sousClasses);\n model.addGeneralization(generalization);\n\n metrique = new Metrique(model, \"TestClasseEnfant\");\n\n assertEquals(5,metrique.getNOA());\n\n }", "title": "" }, { "docid": "e0a273c50500fadf144327619bed24e7", "score": "0.48585424", "text": "public boolean hasAttribute();", "title": "" }, { "docid": "daf11e20f81e887d9cba3c28c15d57b7", "score": "0.48510227", "text": "public void testGetterSetterInheritance() throws Exception {\n class A {\n public String getA() { return null; }\n public void setA(String a) {}\n }\n class B extends A {\n }\n assertProperties(B.class, new PropertyMetaData(\"a\", String.class, AccessMode.READ_WRITE));\n }", "title": "" }, { "docid": "f703b2bc1f31fa61c81db52bd3821e7d", "score": "0.48473996", "text": "public boolean hasAttribute(String extendedAttribute) {\r\n\t\tString lowercased = extendedAttribute.toLowerCase();\r\n\t\tboolean found = false;\r\n\t\tif (this.dataOrder != null && this.dataOrder.values().contains(lowercased))\r\n\t\t\t for (Entry<Integer, String> entry : dataOrder.entrySet())\r\n\t\t\t\tif (entry.getValue().equals(lowercased))\r\n\t\t \t\t\tfound = hasAttribute(entry.getKey());\r\n\t\t//Check if added on the fly\r\n\t\t if (this.getAsIs(lowercased) != null && getAsIs(lowercased) != DataDefinition.NO_DATA)\r\n\t\t\t found = true;\r\n\t\t return found;\r\n\t}", "title": "" }, { "docid": "dc7cc2f0cf44bde239a230443c48cb4a", "score": "0.48348328", "text": "private void assertInheritedFields(Person person) {\n Assert.assertNotNull(person.getName());\n Assert.assertFalse(person.getName().isEmpty());\n }", "title": "" }, { "docid": "823bb656293dc1aa908f1f61a32f3374", "score": "0.48344427", "text": "io.dstore.values.BooleanValue getIncludeInherited();", "title": "" }, { "docid": "0adcab5e54b15e9922d7dce7ad2d2250", "score": "0.48313037", "text": "@Override\n\t\tpublic void visitAttribute(Attribute arg0) {\n\n\t\t}", "title": "" }, { "docid": "fc257b2992a4bc1f20b38437dcb42f31", "score": "0.48187", "text": "abstract protected IAttribute<?, ?, ?>[] doRetrieveToolCommandSubstitutionAttributes(\n \t\t\tAttributeManager baseSubstitutionAttributeManager,\n \t\t\tString directory, Map<String, String> environment);", "title": "" }, { "docid": "93eb7e2c7a739d0eebea91ea297a69a9", "score": "0.48121363", "text": "public void testGetAttributeNames()\n {\n sinkEventAttributeSet.addAttributes( SinkEventAttributeSet.UNDERLINE );\n Enumeration<String> result = sinkEventAttributeSet.getAttributeNames();\n assertEquals( \"decoration\", result.nextElement() );\n assertFalse( result.hasMoreElements() );\n }", "title": "" }, { "docid": "258b06bf3812ccdacffe4cde97a20463", "score": "0.48058337", "text": "String getAttrString(String name);", "title": "" }, { "docid": "66c168277784cf57f4bff715b3637afd", "score": "0.47988212", "text": "Attribute getAttribute(String name);", "title": "" }, { "docid": "4d4378b11e0f9afc9c7f5a1140c313b0", "score": "0.47832787", "text": "@Override\r\n\tpublic <T> T getAttribute(String key) {\n\t\treturn this.target.getAttribute(key);\r\n\t}", "title": "" }, { "docid": "d4324358d1342060a8c057962694398e", "score": "0.47785786", "text": "public void testInheritedField4() {\n QueryFactory queryFactory = Search.getQueryFactory(cache);\n Query<Person> query = queryFactory.create(\"FROM \" + Person.class.getName() + \" WHERE surname = 'Shakespeare'\");\n\n List<Person> matches = query.execute().list();\n assertEquals(1, matches.size());\n }", "title": "" } ]
48c2b984414f2e4810729cfd58a271f1
check if a Bundle is in storage.
[ { "docid": "f64a2647beae32c5164aea5e3c9d5e72", "score": "0.6006713", "text": "boolean contains(BundleId bid);", "title": "" } ]
[ { "docid": "04d1c6a2fbe2e92e1b9c310d5862fde5", "score": "0.6274017", "text": "public static boolean hasStoragePermission(Context context) {\n return hasPermission(context, STORAGE_PERMISSION);\n }", "title": "" }, { "docid": "3db356098ae5ac747a09b32d96ef853d", "score": "0.6190751", "text": "boolean hasAsset();", "title": "" }, { "docid": "5da886d5537b4f63ffbb21a27ceb9af6", "score": "0.61846745", "text": "public boolean isSetBundle() {\n return this.bundle != null;\n }", "title": "" }, { "docid": "b050610bc32a8e9aca5e5324765103df", "score": "0.60902417", "text": "public boolean inStorage(String key);", "title": "" }, { "docid": "a97d5f82480a5b4ed844fccaa239ad24", "score": "0.60393107", "text": "@Override\r\n public final boolean hasStorageSet(){\r\n return storeData;\r\n }", "title": "" }, { "docid": "19cf0915837dc29073afdee77316eea9", "score": "0.60255235", "text": "public boolean isSetStorages() {\n return this.storages != null;\n }", "title": "" }, { "docid": "f98461ae3f54e7f56ca6f6a8c7e9fc3b", "score": "0.5909137", "text": "private boolean isStorageEnabled() {\n \n NamedCache transactionCache = CacheFactory.getCache(TransactionCache.CACHENAME);\n \n DistributedCacheService cacheService = (DistributedCacheService) transactionCache.getCacheService();\n \n return cacheService.isLocalStorageEnabled();\n \n }", "title": "" }, { "docid": "c8c2a8fcb3c4e9e10c1fc32eaefafef6", "score": "0.5899585", "text": "public boolean hasStorage() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "title": "" }, { "docid": "5be02af48a0725c135c87c66172458d1", "score": "0.58731264", "text": "public boolean hasStorage() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" }, { "docid": "cc29be95639365964ca08c89bb32a7cc", "score": "0.5854626", "text": "public static boolean isExternalStorageAvailable() {\n isSDCardPresent();\n return externalStorageAvailable;\n }", "title": "" }, { "docid": "63d87d2b1868e4fe229c151339f93225", "score": "0.58321816", "text": "public boolean contains(int key) {\n if(storage[bucket(key)]!=null)\n return storage[bucket(key)][bucketItem(key)];\n else\n return false;\n \n }", "title": "" }, { "docid": "1fe7203d782d68b551d1cae61151afb9", "score": "0.5816019", "text": "public boolean isSetStorageId() {\n return this.storageId != null;\n }", "title": "" }, { "docid": "d79d98b6568ddce9224ecbc154a14df0", "score": "0.5786471", "text": "public boolean hasPathTo(PStorage target);", "title": "" }, { "docid": "685ff97db13fc88a0c27fde47dc753ea", "score": "0.5780298", "text": "private boolean isExternalStorageAvailable() {\n /** Citation: Class contains code adapted from\n * URL: https://stackoverflow.com/questions/14545139/android-back-button-in-the-title-bar\n * Permission: MIT Licence Retrieved on:1Oth November 2017 */\n\n String state = Environment.getExternalStorageState();\n return state.equals(Environment.MEDIA_MOUNTED);\n }", "title": "" }, { "docid": "b6f39fa4b5ba79f679695f664cd25f28", "score": "0.57162714", "text": "public boolean contains(Object key) {\n return mStorage.contains(key);\n }", "title": "" }, { "docid": "f0736a84fc188e5041bf27145dc1f60c", "score": "0.5691786", "text": "public static boolean IsExternalStorageAvailable(){\n return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);\n }", "title": "" }, { "docid": "aadbe22e614e49e133316669444f7bfa", "score": "0.5691269", "text": "public boolean hasKey(final String key) {\n\t boolean containsKey = false;\n\t for (String bundle : _bundleChain) {\n\t \tcontainsKey = _retrieveBundle(bundle).containsKey(key);\n\t \tif (containsKey) break;\n\t } \n\t return containsKey;\n\t }", "title": "" }, { "docid": "5fdf949bd2f823845af3b845f40309f8", "score": "0.5665785", "text": "@org.jetbrains.annotations.NotNull java.lang.Boolean getStorage();", "title": "" }, { "docid": "1eeee7419e061a0acaa6e387e021af5b", "score": "0.5658594", "text": "boolean hasOilStolenFromStorage();", "title": "" }, { "docid": "5cb037d162e6eef07c0b215c4587e02f", "score": "0.56300366", "text": "public boolean contains(Object o) {\n\t\t//THIS METHOD IS PROVIDED, DO NOT CHANGE IT\n\t\treturn storage.get(o) != null;\n\t}", "title": "" }, { "docid": "f76aab543d9648fae0ed18f63109faa2", "score": "0.56251633", "text": "@Override\n\tpublic boolean canAddStorageUnit()\n\t{\n\t\treturn getView().getSelectedProductContainer() != null;\n\t}", "title": "" }, { "docid": "9fcaab139fff84233da4dcbbb70bf455", "score": "0.5591695", "text": "boolean hasStore();", "title": "" }, { "docid": "cbc9c4c91e0d49b6686309780c152c22", "score": "0.5591592", "text": "public boolean exists(BlobSourceOption... options) {\n return storage.get(info.blobId(), convert(info, options)) != null;\n }", "title": "" }, { "docid": "54bd998298423eac080e826c2119b777", "score": "0.5569804", "text": "public boolean isSetReadStorage() {\n return this.readStorage != null;\n }", "title": "" }, { "docid": "6b38eb1bc82fc27dded02fe728273cd2", "score": "0.55208796", "text": "private boolean checkStoragePermissions() {\n //check if storage permission enale or not\n boolean result = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) == (PackageManager.PERMISSION_GRANTED);\n return result;\n }", "title": "" }, { "docid": "3e6c03fa454e4173087cda85df4a236f", "score": "0.5499372", "text": "@Override\n public boolean isBundleMatch(File base) {\n File baseJs = getFileFromBase(base, \".js\");\n File baseHtml = getFileFromBase(base, \".html\");\n File baseLib = getFileFromBase(base, \".lib\");\n File baseCmp = getFileFromBase(base, \".cmp\");\n File baseApp = getFileFromBase(base, \".app\");\n // modules may either have .js or .html so both needs to be the indicator\n // because it may only have the html or js file\n // check both html or js and not lib base file to ensure we don't pick up lib bundles\n // also check for cmp/app bundles that has stray js with the same name\n return (baseHtml.exists() || baseJs.exists()) && !baseCmp.exists() && !baseApp.exists() && !baseLib.exists();\n }", "title": "" }, { "docid": "83d10d9ccc76ccd196f12a6d6e8dbaba", "score": "0.5492978", "text": "public boolean checkStoragePermission() {\n if (ActivityCompat.checkSelfPermission(appCompatActivity, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n == PackageManager.PERMISSION_GRANTED) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "922c68f8502e7f8bdb311edd1ae5ee2f", "score": "0.5492018", "text": "protected boolean checkStorageFileSystemExistsInDB(String nativeGuid)\n throws IOException {\n URIQueryResultList result = new URIQueryResultList();\n _dbClient.queryByConstraint(AlternateIdConstraint.Factory\n .getFileSystemNativeGUIdConstraint(nativeGuid), result);\n Iterator<URI> iter = result.iterator();\n while (iter.hasNext()) {\n URI fileSystemtURI = iter.next();\n FileShare fileShare = _dbClient.queryObject(FileShare.class, fileSystemtURI);\n if (fileShare != null && !fileShare.getInactive()) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "f2c1542fa8fc2721f767041143d42d75", "score": "0.54641575", "text": "boolean hasResultStorage();", "title": "" }, { "docid": "d7eb0b8932d151ee3d50194512b040b7", "score": "0.54578966", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Bundle)) {\n return false;\n }\n Bundle other = (Bundle) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "2ed2874faee593efc0ce93cc96850383", "score": "0.54524845", "text": "boolean hasExtras();", "title": "" }, { "docid": "888344c5edd156c056b56a19ba7b1334", "score": "0.54403144", "text": "private boolean checkStoragePermission(){\n boolean result = ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n == (PackageManager.PERMISSION_GRANTED);\n boolean result1 = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n == (PackageManager.PERMISSION_GRANTED);\n\n return result && result1;\n }", "title": "" }, { "docid": "8e3018d382e5ebb4b838950fef4deebe", "score": "0.54330707", "text": "public boolean isFromStore(DataStore store);", "title": "" }, { "docid": "514342ffc7afc0df2061db7f4001a8cc", "score": "0.5427877", "text": "private boolean checkStoragePermission(){\n\n boolean result = ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE) == (PackageManager.PERMISSION_GRANTED);\n\n return result;\n }", "title": "" }, { "docid": "1a370754c02cb8bc57b9dc4ac5392c74", "score": "0.53761977", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Storage)) {\r\n return false;\r\n }\r\n Storage other = (Storage) object;\r\n if ((this.idStorage == null && other.idStorage != null) || (this.idStorage != null && !this.idStorage.equals(other.idStorage))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "699a81d30941ce83bea7a83d600435d9", "score": "0.5370002", "text": "public boolean checkReadStoragePermission(){\n int permission = ContextCompat.checkSelfPermission(context, Manifest.permission.READ_EXTERNAL_STORAGE);\n if(permission != PackageManager.PERMISSION_GRANTED){\n return false;\n }else{\n return true;\n }\n }", "title": "" }, { "docid": "67897d47e2d658f28cd9693b92d53af3", "score": "0.5356819", "text": "Boolean validateBundles();", "title": "" }, { "docid": "9cd8766c09f8615e559a50f5e64d040f", "score": "0.53396666", "text": "public boolean isGenomeLoaded() {\n return loadedGenome != null;\n }", "title": "" }, { "docid": "04014f689760da25c2cc99e2ea40f3da", "score": "0.53320867", "text": "public boolean isStoragePermissionGranted(){\n\n\n if(Build.VERSION.SDK_INT >= 23) {\n /* If WRITE_EXTERNAL_STORAGE is granted then READ_EXTERNAL_STORAGE is also granted */\n\n //Storing our permissions in manifest.xml and read from here\n if (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) {\n Log.v(\"LOG\", \"Permission is granted\");\n return true;\n\n }\n /* Request permission since not granted */\n else {\n\n Log.v(\"LOG\", \"Permission is revoked\");\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1); //Requesting permission\n return false;\n }\n }\n\n else { //Permission is automatically granted on SDK_INT < 23\n\n Log.v(\"LOG\",\"Permission is granted\");\n return true;\n }\n\n }", "title": "" }, { "docid": "c817bbdf8aedc98d1335b0b5af267b9a", "score": "0.5324698", "text": "public boolean isAvailable(){\n\t\tResourceLocation absolutePath = getResourceLocation();\n\t\treturn absolutePath != null && absolutePath.exists();\n\t}", "title": "" }, { "docid": "a129bc6bd8a135ec59d802affcb6bc1b", "score": "0.5296152", "text": "boolean hasSnapshot();", "title": "" }, { "docid": "b77edff251cbd8a043b8019ab4c04218", "score": "0.5286032", "text": "boolean isInstallingSnapshot();", "title": "" }, { "docid": "5aedb597892b24b32fefd13f39eaea42", "score": "0.5283674", "text": "boolean hasAssetStatus();", "title": "" }, { "docid": "bac29e65291f2ed9a8257701c5f48551", "score": "0.5262245", "text": "public static boolean zza(Bundle bundle, Bundle bundle2) {\n if (bundle.size() != bundle2.size()) {\n return false;\n }\n for (String str : bundle.keySet()) {\n Object obj = bundle.get(str);\n Object obj2 = bundle2.get(str);\n if ((obj instanceof Bundle) && (obj2 instanceof Bundle) && !zza((Bundle) obj, (Bundle) obj2)) {\n return false;\n }\n if (obj == null && (obj2 != null || !bundle2.containsKey(str))) {\n return false;\n }\n if (obj instanceof boolean[]) {\n if (!(obj2 instanceof boolean[]) || !Arrays.equals((boolean[]) obj, (boolean[]) obj2)) {\n return false;\n }\n } else if (obj instanceof long[]) {\n if (!(obj2 instanceof long[]) || !Arrays.equals((long[]) obj, (long[]) obj2)) {\n return false;\n }\n } else if (obj instanceof double[]) {\n if (!(obj2 instanceof double[]) || !Arrays.equals((double[]) obj, (double[]) obj2)) {\n return false;\n }\n } else if (obj instanceof byte[]) {\n if (!(obj2 instanceof byte[]) || !Arrays.equals((byte[]) obj, (byte[]) obj2)) {\n return false;\n }\n } else if ((obj instanceof Object[]) && (!(obj2 instanceof Object[]) || !Arrays.equals((Object[]) obj, (Object[]) obj2))) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "b899a0ceba353a8f6b0d29129dd5955f", "score": "0.5261782", "text": "public boolean containsAll(final ExternalIdBundle bundle) {\n ArgumentChecker.notNull(bundle, \"bundle\");\n for (final ExternalId externalId : bundle.getExternalIds()) {\n if (!_externalIds.contains(externalId)) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "2b4e658892aceb9639483fa0b8c5284f", "score": "0.52484316", "text": "boolean hasCashStolenFromStorage();", "title": "" }, { "docid": "f81bfa44ce5105e8d7545a5b09819b41", "score": "0.524027", "text": "public boolean containsAny(final ExternalIdBundle bundle) {\n ArgumentChecker.notNull(bundle, \"bundle\");\n for (final ExternalId externalId : bundle.getExternalIds()) {\n if (_externalIds.contains(externalId)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "5ae418e47498f44c3ff355b4efb1afed", "score": "0.52384484", "text": "public void verifyStoragePermissions(Activity activity) {\n // Check if we have write permission\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n PERMISSIONS_REQUEST_READ_WRITE_STORAGE\n );\n }else\n loadFirstImage();\n }", "title": "" }, { "docid": "4b2c20529554bbf5f0afe68ef81db4b9", "score": "0.52356803", "text": "public Boolean getUidInfoAvailable() {\n DocumentModel docModel = navigationContext.getCurrentDocument();\n String typeName = docModel.getType();\n Boolean isAvailable = uidInfoAvailableCache.get(typeName);\n if (isAvailable == null) {\n // XXX AT: this is a hack\n String majorProp = versioningManager.getMajorVersionPropertyName(typeName);\n String schemaName = DocumentModelUtils.getSchemaName(majorProp);\n try {\n isAvailable = docModel.getDataModel(schemaName) != null;\n } catch (ClientException e) {\n isAvailable = false;\n }\n uidInfoAvailableCache.put(typeName, isAvailable);\n }\n return isAvailable;\n }", "title": "" }, { "docid": "dfcba54bd3d6d983898a48b0f7d419d1", "score": "0.5235161", "text": "private boolean dictionaryFileExists() {\n final File file = new File(mContext.getFilesDir(), mFilename);\n return file.exists();\n }", "title": "" }, { "docid": "86cafca5006d35874b14eb2141388b8f", "score": "0.5231318", "text": "@Override\n\tpublic boolean canEditStorageUnit()\n\t{\n\t\treturn getView().getSelectedProductContainer() != null;\n\t}", "title": "" }, { "docid": "d3083b34da870d77ac4d7d0d333675c8", "score": "0.5219123", "text": "boolean hasStoreItemHash();", "title": "" }, { "docid": "e55b486c6ad70fd2e45fc6e91b2441eb", "score": "0.5209399", "text": "public boolean isHaveSavedInstance(){\n File file = getFilesDir();\n File[] files = file.listFiles(new FilenameFilter() {\n @Override\n public boolean accept(File dir, String name) {\n return name.endsWith(\".wt\");\n\n\n }\n });\n\n if(files.length > 0){\n return true;\n }return false;\n }", "title": "" }, { "docid": "aa8649cf5f7094d55d1aa46e98e6208f", "score": "0.52059305", "text": "Boolean isOverwriteSystemBundles();", "title": "" }, { "docid": "1330d0d9ed2c0eaae67ebeed62923298", "score": "0.5203999", "text": "@Override\n\tpublic boolean contains(Integer item) {\n\t\tfor (int index = 0; index < size; index++) {\n\t\t\tif (backingStoreGet(index) == item) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dbfe3799f3120cadc32ea6d64c813ea0", "score": "0.51994187", "text": "@Override\n public boolean hasContent( ItemSelector selector )\n {\n return getItem( selector ).getAsset( ).exists( );\n }", "title": "" }, { "docid": "ce2004abc1019354c4954c6f86c78e02", "score": "0.51888925", "text": "boolean hasAssetId();", "title": "" }, { "docid": "abca298b39ea75af9c327c8032e51883", "score": "0.5183515", "text": "boolean hasSocachesToUnload();", "title": "" }, { "docid": "3e1a0861798b5b98f7c8b44a148ed304", "score": "0.5179433", "text": "@Override\n\tpublic boolean canDeleteStorageUnit()\n\t{\n\t\tboolean able = false;\n\t\tInventory invent = Inventory.getInstance();\n\t\tStorageUnit SU =\n\t\t\t\t(StorageUnit) getView().getSelectedProductContainer().getTag();\n\t\tif(invent.ableToRemoveStorageUnit(SU))\n\t\t\table = true;\n\t\treturn able;\n\t}", "title": "" }, { "docid": "933bf814f50ee8e32fe568cd338fd9a7", "score": "0.51762205", "text": "boolean isLoaded();", "title": "" }, { "docid": "2f2f22ba8fe40fa5ae7a2412e09cae72", "score": "0.5171989", "text": "public boolean exists();", "title": "" }, { "docid": "b3a3edfb6cd9be12f68f2226f2ee2641", "score": "0.51625115", "text": "public static void verifyStoragePermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.ACCESS_COARSE_LOCATION);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "title": "" }, { "docid": "683cecc3a5e360e4dbbd1aac1ea15c41", "score": "0.51620084", "text": "public boolean isSetWriteStorage() {\n return this.writeStorage != null;\n }", "title": "" }, { "docid": "fe73503bec7ac5cc41335c52dec60564", "score": "0.51572824", "text": "boolean hasProductImage();", "title": "" }, { "docid": "ac6a35cca3f0c5ff9e97876d1b5036ac", "score": "0.515076", "text": "private boolean checkIfExternalStorageReadable() {\n\t\tString state = Environment.getExternalStorageState();\n\t\tif (Environment.MEDIA_MOUNTED.equals(state)\n\t\t\t\t|| Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "272d84be4b274bc0c7ff973cec401cb7", "score": "0.5143919", "text": "public native boolean exists();", "title": "" }, { "docid": "af46b2877dc6c0d187bf0dac31fe48a0", "score": "0.51396155", "text": "boolean hasResource();", "title": "" }, { "docid": "af46b2877dc6c0d187bf0dac31fe48a0", "score": "0.51396155", "text": "boolean hasResource();", "title": "" }, { "docid": "af46b2877dc6c0d187bf0dac31fe48a0", "score": "0.51396155", "text": "boolean hasResource();", "title": "" }, { "docid": "af46b2877dc6c0d187bf0dac31fe48a0", "score": "0.51396155", "text": "boolean hasResource();", "title": "" }, { "docid": "af46b2877dc6c0d187bf0dac31fe48a0", "score": "0.51396155", "text": "boolean hasResource();", "title": "" }, { "docid": "af46b2877dc6c0d187bf0dac31fe48a0", "score": "0.51396155", "text": "boolean hasResource();", "title": "" }, { "docid": "11674a1210e5fbc84aaad8fa08033ad3", "score": "0.513452", "text": "private void checkLowStorage() {\n// \tLog.d(\"MainScreen\", \"inside checkLowStorage()\");\n // Check available space only if we are writable\n if (ImageManager.hasStorage()) {\n String storageDirectory = Environment\n .getExternalStorageDirectory().toString();\n StatFs stat = new StatFs(storageDirectory);\n long remaining = (long) stat.getAvailableBlocks()\n * (long) stat.getBlockSize();\n if (remaining < LOW_STORAGE_THRESHOLD) {\n mHandler.post(new Runnable() {\n public void run() {\n checkLowStorageFinished();\n }\n });\n }\n }\n }", "title": "" }, { "docid": "a86c797b7e98fbe601df6317b97e8c09", "score": "0.51207143", "text": "public boolean exists() throws FileSystemException\n {\n attach();\n return ( m_type != null );\n }", "title": "" }, { "docid": "cb1c3b436f6881a928ffb7232c610717", "score": "0.51179284", "text": "@Override\r\n\tpublic boolean canDeleteStorageUnit() {\r\n\t\tProductContainerData selectedUnit = getView().getSelectedProductContainer();\r\n\t\tProductContainer selectedContainer = (StorageUnit)selectedUnit.getTag();\t\t\r\n\t\treturn containersFacade.canRemoveProductContainer(selectedContainer);\r\n\t}", "title": "" }, { "docid": "dcccd1e5e7307b8dd2f7267a03fa87d0", "score": "0.5117288", "text": "public boolean isStoragePermissionGranted() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.WRITE_EXTERNAL_STORAGE)\n == PackageManager.PERMISSION_GRANTED) {\n Log.v(TAG, \"Permission is granted\");\n return true;\n } else {\n\n Log.v(TAG, \"Permission is revoked\");\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1);\n return false;\n }\n } else { //permission is automatically granted on sdk<23 upon installation\n Log.v(TAG, \"Permission is granted\");\n return true;\n }\n }", "title": "" }, { "docid": "1d026006f0dcadd55437e6e6e8fc9bc5", "score": "0.5102387", "text": "public boolean contains(Object ob) {\r\n if (!cacheActive) return false;\r\n\r\n for (SoftReference<V> ref : cache.values()) {\r\n V item = ref.get();\r\n if (item != null && ob.equals(item)) return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "ff7e3ec3ee52b8926027cd349399b0ef", "score": "0.50912386", "text": "public static boolean isInUse(Long proc) {\n if (SLBlockProperties.isCollision(proc))\n return RunBlockManager.isAnyBlockRunning();\n else\n return isInUse(proc, new ArrayList<Long>());\n }", "title": "" }, { "docid": "a6502ca28a1053019e63efe5f32e79a5", "score": "0.5084861", "text": "public static boolean isSdPresent() {\n\t\tString sdState=android.os.Environment.getExternalStorageState();\n\t\treturn sdState.equals(\n\t\t\t\tandroid.os.Environment.MEDIA_MOUNTED) ;\n\t}", "title": "" }, { "docid": "3af9fb28cfe6783db37c51c03e544795", "score": "0.50841856", "text": "@Override\n public boolean supportsSubStorage() {\n return true;\n }", "title": "" }, { "docid": "7b44df2cd8979f5d7f59b8cf1151007d", "score": "0.50838345", "text": "boolean hasExisting();", "title": "" }, { "docid": "e51984ba3e8f636be4c2b94326147adb", "score": "0.5081684", "text": "static public boolean isExternalStorageMounted() {\r\n\t\treturn (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED));\r\n\t}", "title": "" }, { "docid": "4147c76f98ba2f4ea115ded659c495b4", "score": "0.50779265", "text": "public static void verifyStoragePermissions(AppCompatActivity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity,\n Manifest.permission.ACCESS_COARSE_LOCATION);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(activity, PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE);\n }\n }", "title": "" }, { "docid": "49c06fb902e8d0af636a88acbdc9f4ec", "score": "0.5070863", "text": "public synchronized boolean storedChunk(String fileIdKey){\n if(backedUpFiles.indexOf(fileIdKey) != -1){\n return true;\n }else return false;\n }", "title": "" }, { "docid": "175147bfe8604fdf979a040c0d94c40d", "score": "0.50680584", "text": "boolean isStoringGameSets();", "title": "" }, { "docid": "d6300425e0903628a8caf5d73ca08042", "score": "0.5068015", "text": "@Override\r\n\tpublic boolean canAddStorageUnit() {\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "6f02fb3c3ec73a5a3f8ce25931597d56", "score": "0.50567627", "text": "public static boolean isExternalStorageAvailableAndWriteable() {\n isSDCardPresent();\n if (!externalStorageAvailable) {\n return false;\n } else if (!externalStorageWriteable) {\n return false;\n } else {\n return true;\n }\n }", "title": "" }, { "docid": "d500eeb364a12740d6b6adcd9625cdbf", "score": "0.50565207", "text": "public boolean isOpen() {\r\n\t return (bucketScan!=null);\r\n }", "title": "" }, { "docid": "b27330551949cb811c2c4a50cf310b37", "score": "0.5047986", "text": "boolean hasBucket(String bucketName);", "title": "" }, { "docid": "b16583f5bcf4c391e5b8f3f413541e57", "score": "0.5047345", "text": "public boolean canLoad()\n {\n Scanner sc = null;\n try\n {\n sc = new Scanner( savedGame );\n }\n catch ( FileNotFoundException e )\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n boolean hasSavedGame = sc.hasNext();\n return atHome && hasSavedGame;\n }", "title": "" }, { "docid": "62d52e83a806ca56a4a3ebbeecba0c6b", "score": "0.50468826", "text": "@Override\n public boolean contains(T o) {\n for(int loop = 0; loop < currentCapacity; loop++){\n if(storage[loop] == o){\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "cf20b8e890978654d1af049edcd8de3e", "score": "0.50466603", "text": "private boolean checkDataBase() {\n boolean checkDB = false;\n try {\n String myPath = db_path + db_name;\n File dbfile = new File(myPath);\n checkDB = dbfile.exists();\n } catch (SQLiteException e) {\n }\n return checkDB;\n }", "title": "" }, { "docid": "ccb134bece629f4dcf5a7825887caaa7", "score": "0.50441206", "text": "public boolean isExternalStorageReadable(){\n String state = Environment.getExternalStorageState();\n if(Environment.MEDIA_MOUNTED.equals(state) || Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "d1662a1e3a5501841f36dfdaa6107cba", "score": "0.50405794", "text": "public boolean exists() {\n/* 778 */ return (this.mType != 2 || (this.mFile != null && this.mFile.exists()));\n/* */ }", "title": "" }, { "docid": "1598540c5be08b459beefe66a4ca4eb1", "score": "0.5040093", "text": "public static void verifyStoragePermissions(Activity activity) {\n boolean isReadPermission = true;\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.READ_EXTERNAL_STORAGE);\n if (permission != PackageManager.PERMISSION_GRANTED) {\n isReadPermission = false;\n //We don't have permission so prompt the user\n// ActivityCompat.requestPermissions(\n// activity,\n// PERMISSIONS_STORAGE,\n// REQUEST_EXTERNAL_STORAGE\n// );\n }\n\n permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n if (permission != PackageManager.PERMISSION_GRANTED || !isReadPermission) {\n //We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_STORAGE,\n REQUEST_EXTERNAL_STORAGE\n );\n }\n }", "title": "" }, { "docid": "2064c583c4afa7ab2b8b12f59297ca01", "score": "0.5034295", "text": "public boolean isSetProductIns()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PRODUCTINS$6) != 0;\r\n }\r\n }", "title": "" }, { "docid": "54ff5ebde7dd9bce4d8f3d0116b5a937", "score": "0.5031493", "text": "@Override\n public boolean tableExists(String tableName) {\n Cursor cursor = getReadableDatabase().rawQuery(\n \"SELECT name FROM sqlite_master \" +\n \"WHERE type = ? AND name = ?\",\n new String[]{\"table\", tableName});\n int count = cursor.getCount();\n\n cursor.close();\n\n return count > 0;\n }", "title": "" }, { "docid": "2db422fe41a907b46d862fd229d4ef9a", "score": "0.50281304", "text": "public synchronized boolean isChunkToRestoreEmpty(){\n return chunksToRestore.isEmpty();\n }", "title": "" }, { "docid": "f529d0b36843e081a1c0ba46d18f8322", "score": "0.50271696", "text": "public boolean isBundled() {\n return mType == VariantType.LIBRARY || mType == VariantType.ATOM;\n }", "title": "" }, { "docid": "1a66ec6d28648c2115cf3a628c816558", "score": "0.502375", "text": "private static boolean shouldBeCarved(final FileIngestTask task) {\n return task.getIngestJob().shouldProcessUnallocatedSpace() && task.getFile().getType().equals(TskData.TSK_DB_FILES_TYPE_ENUM.UNALLOC_BLOCKS);\n }", "title": "" } ]
fa4362d58d2ac6507c972f740f32a739
Does nothing it is just for the override
[ { "docid": "a7a608f8529bc6eaae41b2ec16bccc80", "score": "0.0", "text": "@Override\n public void move() {\n\n }", "title": "" } ]
[ { "docid": "0fa90e40e6488bdb9f25599153d0b156", "score": "0.8106387", "text": "@Override\n public void unwanted() {\n }", "title": "" }, { "docid": "34b43810a805e0d48661629f62b35f2b", "score": "0.792852", "text": "@Override\r\n\tpublic void 위험물회피() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce01e16cbc1fc0a29d28a4365b63f79d", "score": "0.7881137", "text": "@Override\n\tprotected void specialFuntion() {\n\t\t\n\t}", "title": "" }, { "docid": "9b9787eedaf8ab2866634795354c59ac", "score": "0.76932055", "text": "@Override\n\tprotected void special() {\n\n\t}", "title": "" }, { "docid": "096eb77080c8c192fe461650f49ca14b", "score": "0.7638503", "text": "@Override\r\n public void catering() {\r\n\r\n }", "title": "" }, { "docid": "e8f6ecd3f06f1f0e76ca511991b76265", "score": "0.7561034", "text": "protected void defesa(){}", "title": "" }, { "docid": "cc5af39f74474ffdb7b456b8a10d5774", "score": "0.75513214", "text": "@Override\r\n\tpublic void 길안내() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3ce0bb31c85aa625333ebc853937c339", "score": "0.7433668", "text": "void method_9749() {\r\n super();\r\n }", "title": "" }, { "docid": "611986923bc0b9e1f3ce749e7209ede7", "score": "0.74254507", "text": "public void method_5470() {\r\n super();\r\n }", "title": "" }, { "docid": "18e880170954114b2959dc57f08750cf", "score": "0.7402246", "text": "@Override\r\n\tpublic void imprimir() {\n\r\n\t}", "title": "" }, { "docid": "76b3966c8e3f64884c4127d1a3df09a8", "score": "0.73840916", "text": "@Override\r\n\t\t\tpublic void maruti() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "fa29da40be3a8b33b07b21fe8e0ba298", "score": "0.7320036", "text": "@Override\n\tpublic void notity() {\n\t\t\n\t}", "title": "" }, { "docid": "bde53ee3de9072b04cd122133e6162a1", "score": "0.73033303", "text": "public void soigner() {\n\t\t\r\n\t}", "title": "" }, { "docid": "79a702a1409937a9a2dd8f8167323190", "score": "0.72936743", "text": "@Override\n\tvoid promocja() {\n\n\t}", "title": "" }, { "docid": "c18c3127184f8abd7be145ddb9d4c3e6", "score": "0.72852343", "text": "@Override\r\n\tpublic void 온도내리기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3fb97b46c147b19f8180197325c66d34", "score": "0.7270926", "text": "@Override\n public void quite() {\n }", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.7224537", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1b6ae1f9acb8e538994b7d00bae50317", "score": "0.72242737", "text": "@Override\n\tprotected void skirmish() {\n\n\t}", "title": "" }, { "docid": "b7c706d331e2b507ec0ff8404ad87dc7", "score": "0.72043574", "text": "@Override\r\n\t\t\tpublic void crispel() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "556495e35d508ac961dae051dd40b377", "score": "0.71829635", "text": "@Override\n\tpublic void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "fe795489756049c9a33688ee0bf4d284", "score": "0.7170546", "text": "@Override\r\n public void defaultImpl()\r\n {\n \r\n }", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.7168601", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.7092731", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "593053b99bc5abca6d010d9e21a31e6b", "score": "0.7073273", "text": "@Override\r\n\tpublic void 자율주행하기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "69f727ad790d8c02f9f110fb4190bf05", "score": "0.7067646", "text": "@Override\r\n\tpublic void 에어백펼치기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6827ba40809e6f9bad9a043036edaa04", "score": "0.70672417", "text": "@Override\r\n\tpublic void dormir() {\n\t}", "title": "" }, { "docid": "9ee6be05232928533401d708d518b6ed", "score": "0.70660067", "text": "@Override\r\n\t\t\tpublic void enginetype() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "fc442cc7865f95f8cc8be2ecf775f78e", "score": "0.7015357", "text": "@Override\n public void inizializza() {\n super.inizializza();\n }", "title": "" }, { "docid": "0ff069074e7cd91fb9d77cfb8d584c8f", "score": "0.701121", "text": "@Override\n\tpublic void 撞钟() {\n\n\t}", "title": "" }, { "docid": "3346a69157e4dd9c71f22952adbf7147", "score": "0.6974841", "text": "@Override\n\tpublic void 念经() {\n\n\t}", "title": "" }, { "docid": "c52abf264dc130278399a6a822295dca", "score": "0.69562495", "text": "@Override\n\t\t\tpublic void e() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "30c236da9912ee76f7962e7da2c72b59", "score": "0.6946405", "text": "@Override\n\tpublic void chante() {\n\t\t\n\t}", "title": "" }, { "docid": "c28afddea09ba99a1adc54b371dabaa1", "score": "0.6937152", "text": "@Override\r\n\tpublic void 온도높이기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2102a3691307d06f0d2ee35d192fccc6", "score": "0.68963265", "text": "protected Encontro() {\n\t}", "title": "" }, { "docid": "79d1c12f60e009f61a6d3bb9cc969163", "score": "0.68860745", "text": "public void () {\n\r\n\t}", "title": "" }, { "docid": "a21047eaafcc2c1ada6326bfbe33e0ad", "score": "0.68727887", "text": "@Override\r\n public void alquilar() {\n }", "title": "" }, { "docid": "58c0d1fc479ed15a669ebf6f871533b3", "score": "0.68689466", "text": "@Override\r\n\tpublic void foo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a672d2d2a4b7bb037f7f20d62ff1f55e", "score": "0.684718", "text": "@Override\n\tpublic void ss() {\n\t\t\n\t}", "title": "" }, { "docid": "6cfde2be0b51f55a421cdc3e28609c66", "score": "0.6822211", "text": "@Override\n\tprotected void salario() {\n\t\t\n\t}", "title": "" }, { "docid": "3b27d934ea30689efd52c6af24b481a1", "score": "0.68188727", "text": "@Override\n\tpublic void judeti() {\n\n\t}", "title": "" }, { "docid": "a4e0f91a4d31d1e082ad323e3764fbd3", "score": "0.680835", "text": "public void method_1449() {\r\n super.method_1449();\r\n }", "title": "" }, { "docid": "a4e0f91a4d31d1e082ad323e3764fbd3", "score": "0.680835", "text": "public void method_1449() {\r\n super.method_1449();\r\n }", "title": "" }, { "docid": "e5c6ac8fc669e28f3ff8b0971b5063c3", "score": "0.6796147", "text": "@Override\r\n\t\t\tpublic void other() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "892d4c8a8fce6b5e5efb8da3bbbebbc0", "score": "0.674937", "text": "@Override\n\tpublic void xyz() {\n\t\t\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.67490834", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "c387be8fe936bea8d505f3a779d6ba15", "score": "0.674312", "text": "@Override\n\tpublic void actualise() {\n\t\t\n\t}", "title": "" }, { "docid": "83a6fc34cc2d0f82adcebbe36625190e", "score": "0.67040896", "text": "@Override\n\tpublic void workOver() {\n\t\t\n\t}", "title": "" }, { "docid": "a33a164e364079a993a76c47ded9df48", "score": "0.6702587", "text": "@Override\r\n\tpublic void dekompresuj() {\n\r\n\t}", "title": "" }, { "docid": "089be79d90be02605e37d2a48b09e194", "score": "0.6702555", "text": "@Override\n\tpublic void gril() {\n\n\t}", "title": "" }, { "docid": "a40c2a5b2d94055b71000a7af6ae2afc", "score": "0.669508", "text": "@Override\n\tpublic void boil() {\n\n\t}", "title": "" }, { "docid": "4bd3cc1e89e172f1740e1f44ef18e8d8", "score": "0.6680641", "text": "@Override\n\tprotected void protegido() {\n\t\tsuper.protegido();\n\t}", "title": "" }, { "docid": "bce20cc43630948d46aea6bc948190a0", "score": "0.6668551", "text": "@Override\n public void reset() {\n super.reset();\n }", "title": "" }, { "docid": "6fe081ada85477f5b4c9d7a134a59671", "score": "0.6667473", "text": "@Override\r\npublic void 자기() {\n\t\r\n}", "title": "" }, { "docid": "a822b3c3bf2b6042db624f74ac9902f9", "score": "0.66611904", "text": "@Override\n\tpublic void abc() {\n\t\t\n\t}", "title": "" }, { "docid": "a822b3c3bf2b6042db624f74ac9902f9", "score": "0.66611904", "text": "@Override\n\tpublic void abc() {\n\t\t\n\t}", "title": "" }, { "docid": "c681ad25008b1f55b8c80d2600586bcd", "score": "0.66591436", "text": "@Override\r\n public void someMethod()\r\n {\r\n\t// TODO Auto-generated method stub\r\n\r\n }", "title": "" }, { "docid": "9da42c54ca8fb8825afce96ad2d2781c", "score": "0.6656609", "text": "@Override\r\n\tpublic void comenzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9abc8c7ba363b0fd75d9de9e682c2605", "score": "0.6656088", "text": "@Override\r\n\tpublic void someMethod() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ca97786012d6deab85a454b58c69e220", "score": "0.6651925", "text": "public void imprimir() {\n\t\t\n\t}", "title": "" }, { "docid": "45e3c105f171ec06147529faea4dac24", "score": "0.6650348", "text": "@Override\r\n\tvoid a() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a58b62ca1ce3f8b2a6b010ea43d85315", "score": "0.663837", "text": "@Override\n\tpublic void e() {\n\t\t\n\t}", "title": "" }, { "docid": "a58b62ca1ce3f8b2a6b010ea43d85315", "score": "0.663837", "text": "@Override\n\tpublic void e() {\n\t\t\n\t}", "title": "" }, { "docid": "e74841359f2b616460c1fcf1e3e0b696", "score": "0.6638053", "text": "@Override\n\tpublic void Oeffne_Schadenanlage() {\n\t\t\n\t}", "title": "" }, { "docid": "5ad3c21434a29627aa0fa57a5e617b45", "score": "0.66260046", "text": "@Override\n\tpublic void SeDesplaza() {\n\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.66084814", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "017c51ec94ffaac2fc444ddeccb31c44", "score": "0.66029316", "text": "@Override\n public boolean isNoOp() {\n return true;\n }", "title": "" }, { "docid": "86ca2b6b7e0174532c4a1f8a4dec7946", "score": "0.6601627", "text": "@Override\r\n\tpublic void 주차보조() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ea45eb3c360c012b1d6632e0b3c3eef8", "score": "0.6595421", "text": "@Override\n\tdefault void abc() {\n\t}", "title": "" }, { "docid": "dc8bc34b12a700fbf249a1aa850c7a4a", "score": "0.65850747", "text": "@Override\n public void mesaiBilgisi() {\n \n }", "title": "" }, { "docid": "7688d18727a55273ac727714f1ed55ef", "score": "0.65799844", "text": "@Override\n\tprotected void defend() {\n\n\t}", "title": "" }, { "docid": "09b27558b293ecd91a8d2d3a705d8a37", "score": "0.65788764", "text": "@Override\n\t\t\tpublic void c() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "9bfc13dc8cd7bec9e1d28fe49184ce38", "score": "0.65758765", "text": "@Override\n\tpublic void external() {\n\t\t\n\t}", "title": "" }, { "docid": "9f71f620a320eb89f537c2ac12963cda", "score": "0.65707785", "text": "@Override\n\tpublic void steam() {\n\n\t}", "title": "" }, { "docid": "fdbf96893589fef5cdd1a8fe92e98938", "score": "0.65589017", "text": "@Override\n\tpublic void enfria() {\n\n\t}", "title": "" }, { "docid": "c40e6db92000a4723a10e8a7eb2ba672", "score": "0.65556127", "text": "@Override\r\n\t\tvoid view() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "da07444f023c4f45aa766ef285cccf1c", "score": "0.6528258", "text": "@Override\n\tpublic void 吃斋() {\n\n\t}", "title": "" }, { "docid": "f18bbed16d1abeac2a79dbe0a726237b", "score": "0.6523385", "text": "@Override\n public void reset() {\n\n }", "title": "" }, { "docid": "f18bbed16d1abeac2a79dbe0a726237b", "score": "0.6523385", "text": "@Override\n public void reset() {\n\n }", "title": "" }, { "docid": "f18bbed16d1abeac2a79dbe0a726237b", "score": "0.6523385", "text": "@Override\n public void reset() {\n\n }", "title": "" }, { "docid": "f18bbed16d1abeac2a79dbe0a726237b", "score": "0.6523385", "text": "@Override\n public void reset() {\n\n }", "title": "" }, { "docid": "3d6ec5836c18afc7ac14a2d45e895292", "score": "0.65196735", "text": "@Override\n protected void reset() {\n }", "title": "" }, { "docid": "4fd121321f2d50da2f5700be65d017d8", "score": "0.65060854", "text": "@Override\n\tpublic void filngtonext() {\n\t\t\n\t}", "title": "" }, { "docid": "b06d8f57329681507e41f3f6b3eaf6a6", "score": "0.6505956", "text": "@Override\n\tpublic void frenar() {\n\n\t}", "title": "" }, { "docid": "6d7260b1142c9e1b2ae6fe6aa5fe8cbe", "score": "0.65007544", "text": "public Super() {\n overrideMe();\n }", "title": "" }, { "docid": "8b6dd059789bd033209f7b19a344bb6a", "score": "0.649036", "text": "@Override\n public void reset() {\n }", "title": "" }, { "docid": "8b6dd059789bd033209f7b19a344bb6a", "score": "0.649036", "text": "@Override\n public void reset() {\n }", "title": "" }, { "docid": "2ee7257e7b27234422675b96a3c15674", "score": "0.64844084", "text": "public void autonomousDoNothing() \n {\n }", "title": "" }, { "docid": "7bbb295f4ec40da9aa0a5e9e220a7530", "score": "0.64638424", "text": "@Override\n\tpublic void caminar() {\n\t\tSystem.out.println(\"No puede caminar\");\n\t}", "title": "" }, { "docid": "5f7b7fefcdcdc82d41872ac538a0bf52", "score": "0.6463615", "text": "@Override\n\tpublic void publico() {\n\t\tsuper.publico();\n\t}", "title": "" }, { "docid": "d1368207c90646bc2d56c8832390ad5d", "score": "0.644971", "text": "@Override\n\t\tpublic void mymethod() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "b5dec8709a9a146ca6e5962661476057", "score": "0.64457923", "text": "private Semitones() {\n \n }", "title": "" }, { "docid": "2a550f8458794d16824f204804d00e1c", "score": "0.6442268", "text": "@Override\n public void visitClassContext(ClassContext classContext) {\n }", "title": "" }, { "docid": "f284f769d4e78ca4c7948f416ce52ab5", "score": "0.6439578", "text": "@Override\n\tpublic void h() {\n\t\t\n\t}", "title": "" }, { "docid": "46671ecb913f02961e13e473796d82eb", "score": "0.6438289", "text": "@Override\n\tpublic boolean agotado() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "0bd340eab193ef008cb4c4c66d3fa4e9", "score": "0.64369774", "text": "@Override\n\tpublic void n() {\n\t\t\n\t}", "title": "" }, { "docid": "a789e5211d7ef83889ca5eccba5b6903", "score": "0.64333355", "text": "@Override\n\tpublic void Erstelle_Schaden() {\n\t\t\n\t}", "title": "" }, { "docid": "53522f552fc1631c03f354b201bc2a05", "score": "0.6428942", "text": "private void method() {\r\n\r\n\t}", "title": "" }, { "docid": "10277c19bae48d702bb9fdf7fb3f8d09", "score": "0.64254004", "text": "private void Bersih() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "540c22d9a16441a0b5aa59fd4bd7619f", "score": "0.64202684", "text": "@Override\n\tpublic void i() {\n\t\t\n\t}", "title": "" }, { "docid": "2d2356b9451776fc9d8b7e9bafbc8395", "score": "0.641441", "text": "@Override\n\tpublic void Freiner() {\n\t\t\n\t}", "title": "" }, { "docid": "33ffaa57a8ebc5455f1b4e0276d0f08f", "score": "0.6409636", "text": "@Override\n\tprotected void actions() {\n\t}", "title": "" } ]
f77b27c2769bae4afba90befe5006208
Use for delete T.
[ { "docid": "27455223fa290f520f5b0c5bf1f13f80", "score": "0.0", "text": "Collection<T> delete(CriteriaHelper<T> criteriaHelper);", "title": "" } ]
[ { "docid": "f48cbc1e192c7430af5efa58f96dc504", "score": "0.8531568", "text": "public void delete(T t) {\n\t\t\n\t}", "title": "" }, { "docid": "ba5d7920a3c16bb5dc54154ae1dd24cc", "score": "0.82646704", "text": "@Override\n\tpublic void delete(Object T) {\n\n\t}", "title": "" }, { "docid": "28f82f127745cdb569067338a21463b7", "score": "0.78412205", "text": "@Override\r\n\tpublic int delete(Object t) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "2a4c1995734bce527eaac80990cff966", "score": "0.7807639", "text": "public abstract boolean delete(T obj);", "title": "" }, { "docid": "c16878812e972e51eb0765b768eca62b", "score": "0.7801025", "text": "<T> void Delete(int id, T t);", "title": "" }, { "docid": "7242805281beb984e9400b475e4eb648", "score": "0.7780524", "text": "void delete(T item);", "title": "" }, { "docid": "7242805281beb984e9400b475e4eb648", "score": "0.7780524", "text": "void delete(T item);", "title": "" }, { "docid": "4c6077b1b7c79715b69133867b20c16a", "score": "0.77686054", "text": "@Override\n\tpublic void delete(String t) {\n\t\t\n\t}", "title": "" }, { "docid": "2294791ec14c71418d6266866495cb42", "score": "0.7754838", "text": "@Override\r\n public boolean delete(E t) {\n\treturn false;\r\n }", "title": "" }, { "docid": "5e97fcf70787c04e90d4de5fa2efb2e5", "score": "0.76382285", "text": "@Override\r\n\tpublic void delete(T entity) {\n\t\t\r\n\t}", "title": "" }, { "docid": "ef1fc0ace133be33f0c86ff0bda7e5a7", "score": "0.7633839", "text": "void delete(T object);", "title": "" }, { "docid": "ef1fc0ace133be33f0c86ff0bda7e5a7", "score": "0.7633839", "text": "void delete(T object);", "title": "" }, { "docid": "ef1fc0ace133be33f0c86ff0bda7e5a7", "score": "0.7633839", "text": "void delete(T object);", "title": "" }, { "docid": "ef1fc0ace133be33f0c86ff0bda7e5a7", "score": "0.7633839", "text": "void delete(T object);", "title": "" }, { "docid": "1f3fb18d9026afaca6f64795d19e68fb", "score": "0.762045", "text": "Delete getDelete();", "title": "" }, { "docid": "25054418d166e0e307f7d61b33a1ce0f", "score": "0.76146376", "text": "Integer delete(T t) throws DaoException;", "title": "" }, { "docid": "5ffdb57175c029825279f9a9a7c6c5a3", "score": "0.7566156", "text": "@Override\n public void delete(T t) throws DaoException {\n }", "title": "" }, { "docid": "976a26e36efd9c042ddea3c091b88185", "score": "0.74554217", "text": "public boolean del(T data);", "title": "" }, { "docid": "d248adb4cde103f13fbadac91b5f4f0f", "score": "0.7402145", "text": "void delete(T entity);", "title": "" }, { "docid": "d248adb4cde103f13fbadac91b5f4f0f", "score": "0.7402145", "text": "void delete(T entity);", "title": "" }, { "docid": "d248adb4cde103f13fbadac91b5f4f0f", "score": "0.7402145", "text": "void delete(T entity);", "title": "" }, { "docid": "d248adb4cde103f13fbadac91b5f4f0f", "score": "0.7402145", "text": "void delete(T entity);", "title": "" }, { "docid": "d248adb4cde103f13fbadac91b5f4f0f", "score": "0.7402145", "text": "void delete(T entity);", "title": "" }, { "docid": "4d5310f7c00fbfb34111fea3de448b45", "score": "0.7394465", "text": "void delete(T t) throws SQLException;", "title": "" }, { "docid": "44c206a5da051e4b57953ffb86061425", "score": "0.7377333", "text": "@Override\n\tpublic void delete(Tupyo tupyo) {\n\t}", "title": "" }, { "docid": "05022df543979d0958b68e22f9250085", "score": "0.7362209", "text": "<T> Mutation delete(T object);", "title": "" }, { "docid": "5be88340553101555d842981242e15e5", "score": "0.73140657", "text": "@Override\n\t\tpublic void delete() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "c8846dba7386f083e022bf150cb795a3", "score": "0.72840565", "text": "void deleteItem(T target);", "title": "" }, { "docid": "f4dd6f391bf04893c6c31bd69ed903d1", "score": "0.7282189", "text": "public T delete(T entity);", "title": "" }, { "docid": "b94831811806e7aca3b5f9beca3ab416", "score": "0.72612655", "text": "@Override\n\tpublic void delete() \n\t{\n\n\t}", "title": "" }, { "docid": "96a20a28cb85c50e1995d855d96e266f", "score": "0.72292244", "text": "@Override\n\tpublic void delete() {\n\n\t}", "title": "" }, { "docid": "464bb4309cdb4fa9cbaa1a22d8749aab", "score": "0.7223137", "text": "protected abstract void delete();", "title": "" }, { "docid": "e95324290aab463096be4c81c02a3c58", "score": "0.7219915", "text": "@Override\r\n\tpublic void delete() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e95324290aab463096be4c81c02a3c58", "score": "0.7219915", "text": "@Override\r\n\tpublic void delete() {\n\t\t\r\n\t}", "title": "" }, { "docid": "00e5f340e8f13a4fc80380b2e93d2b02", "score": "0.721748", "text": "public void delete() {\n\t}", "title": "" }, { "docid": "7f483bceb20e21f3a5d5c89285c34e57", "score": "0.72134185", "text": "@Override\n public void delete(long theId) {\n \n }", "title": "" }, { "docid": "49331fa828cf9d72c6596ccbb313d829", "score": "0.7206834", "text": "public void delete() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0baf8512894d964081425bc5e5140358", "score": "0.720124", "text": "public void delete(T user);", "title": "" }, { "docid": "bf37871ce91811146bc568f9555aaa36", "score": "0.7191124", "text": "public void delete(T t) {\n\t hibernateTemplate.delete(t);\n\t }", "title": "" }, { "docid": "0afa68e62128f8c8be0e36c1c9985162", "score": "0.7187987", "text": "public <T> void delete(T entity);", "title": "" }, { "docid": "bf39fcdf8b55ae7ad7aa1987329e890e", "score": "0.71694523", "text": "@Override\n\tpublic void delete(Long arg0) {\n\n\t}", "title": "" }, { "docid": "5630c371b03af261f59ef77395ccf6a4", "score": "0.71574354", "text": "@Override\n\tpublic void delete(Score t) {\n\t\t\n\t}", "title": "" }, { "docid": "62c6c0f3084c419f583a06e4fbb29942", "score": "0.7135397", "text": "@Override\n\tpublic void delete() {\n\t}", "title": "" }, { "docid": "786e44dba36a37a34cb4c41356fce089", "score": "0.7118966", "text": "@Override\r\n\tpublic boolean delete(Consigness t) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "76bafe48440180d1027e152647013be1", "score": "0.7099143", "text": "public abstract void delete();", "title": "" }, { "docid": "9c28c886e83d4c401b1f5ad4483d9656", "score": "0.706525", "text": "@Override\r\n\tpublic void delete() {\n\r\n\t}", "title": "" }, { "docid": "9c28c886e83d4c401b1f5ad4483d9656", "score": "0.706525", "text": "@Override\r\n\tpublic void delete() {\n\r\n\t}", "title": "" }, { "docid": "9c28c886e83d4c401b1f5ad4483d9656", "score": "0.706525", "text": "@Override\r\n\tpublic void delete() {\n\r\n\t}", "title": "" }, { "docid": "09969711bfa519c47a6870832a33480b", "score": "0.705042", "text": "public T caseDelete(Delete object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "09969711bfa519c47a6870832a33480b", "score": "0.705042", "text": "public T caseDelete(Delete object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f8b61ad5de33277ac49c9d9f7f99cebc", "score": "0.70484805", "text": "@Override\n\t\tpublic void delete(String arg0) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "e310723d9b582a16c7f3d67025d82d24", "score": "0.70469975", "text": "public void Delete() {\n\t}", "title": "" }, { "docid": "2ec32035e5500af55344c71565468567", "score": "0.70452935", "text": "@Override\n\tpublic void delete(Resultado entity) {\n\t\t\n\t}", "title": "" }, { "docid": "0df6e041e2b8b6f42ab626d80fa6aef8", "score": "0.7034043", "text": "void delete(T persistentObject);", "title": "" }, { "docid": "3908feb551dcb9fc8e0759e9d19e3abc", "score": "0.7019863", "text": "void delete(T transientObject);", "title": "" }, { "docid": "c147ad0f972ce19ff056f5c48e7139bc", "score": "0.7015379", "text": "public void delete();", "title": "" }, { "docid": "c147ad0f972ce19ff056f5c48e7139bc", "score": "0.7015379", "text": "public void delete();", "title": "" }, { "docid": "c147ad0f972ce19ff056f5c48e7139bc", "score": "0.7015379", "text": "public void delete();", "title": "" }, { "docid": "c147ad0f972ce19ff056f5c48e7139bc", "score": "0.7015379", "text": "public void delete();", "title": "" }, { "docid": "003e44b102ca4ca7e00d226c2fbd032d", "score": "0.70153075", "text": "@Override\r\n public void delete(long id)\r\n {\n\r\n }", "title": "" }, { "docid": "983c6f7705e8d60fcc825c73d607493c", "score": "0.70048606", "text": "@DELETE\r\n public void delete() {\r\n }", "title": "" }, { "docid": "03f04ed863975c31e7af699115d335a4", "score": "0.69824404", "text": "@Override\n\tpublic void delete(long id) {\n\t\t\n\t}", "title": "" }, { "docid": "6ecf5a0c101ba6ef7bb697a3743b89b0", "score": "0.6972109", "text": "@Override\r\n public Boolean delete(){\r\n return null;\r\n }", "title": "" }, { "docid": "2455d91347d0713e6e14730498315fd3", "score": "0.6970219", "text": "@Override\n\t\tpublic void delete(Object o) throws Exception {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "da8b8544efbfa826500505869ef27570", "score": "0.69638735", "text": "@Override\n\tpublic <T extends BasicEntity> boolean delete(T t) throws GenericException {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "a0f5602ff1fc958e1f6a37b416ec1a87", "score": "0.6956148", "text": "Delete createDelete();", "title": "" }, { "docid": "8dd830a8169c9fae8fc1cccf245cd64e", "score": "0.69478095", "text": "@Override\n\tpublic void delete(Object obj) {\n\t\t\n\t}", "title": "" }, { "docid": "8dd830a8169c9fae8fc1cccf245cd64e", "score": "0.69478095", "text": "@Override\n\tpublic void delete(Object obj) {\n\t\t\n\t}", "title": "" }, { "docid": "cf9a06570a0876a3f21379396e7a3e8e", "score": "0.6940359", "text": "@Override\n\tpublic void delete(Comment t) {\n\t\t\n\t}", "title": "" }, { "docid": "47f2b38c79fbe112cc7160cb7715d6be", "score": "0.69373304", "text": "public void delete(Object d) {\n\t\t\r\n\t}", "title": "" }, { "docid": "2814073280a5546e3d7411a05ec290df", "score": "0.6931438", "text": "@Override\n\tpublic void deleteOne(int no) {\n\t\t\n\t}", "title": "" }, { "docid": "28ce60fc84e20c4ef3ddc786a1e250c3", "score": "0.69210607", "text": "@Override\n\tpublic void delete(Usuario t) {\n\n\t}", "title": "" }, { "docid": "fb4ea895543f3ddfb9b06bbbc1614576", "score": "0.6919747", "text": "@DELETE\n public void delete() {\n }", "title": "" }, { "docid": "ea32b7278ed524a7f376ced34039a0e3", "score": "0.69184804", "text": "@Override\n\tpublic void deleteById(String t) {\n\t\tparaderoDAO.deleteById(t);\n\t}", "title": "" }, { "docid": "ec41fd172631d06786fdc433539ac415", "score": "0.6916306", "text": "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "title": "" }, { "docid": "ec41fd172631d06786fdc433539ac415", "score": "0.6916306", "text": "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "title": "" }, { "docid": "ec41fd172631d06786fdc433539ac415", "score": "0.6916306", "text": "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "title": "" }, { "docid": "3c1b1dc3a85a2ed7a48cf9b7b5b55ea7", "score": "0.6913302", "text": "@Override\n\t\tpublic <T> void deleteT(T t) {\n\t\t\thibernateTemplate.delete(t);\n\t\t}", "title": "" }, { "docid": "d12e5bff79db05eebbff7a977638ed1a", "score": "0.69075197", "text": "@Override\r\n\tpublic void delete(long id) {\n\r\n\t}", "title": "" }, { "docid": "18f2b126955d2a79792e28905eec9517", "score": "0.69072485", "text": "void delete( T... t ) throws DataAccessException;", "title": "" }, { "docid": "5e38594eb6e8c83e8054ffc994d0fc44", "score": "0.6869378", "text": "void delete(ID _id);", "title": "" }, { "docid": "7fa242379283e0eb9a8b4dacf90cd9a5", "score": "0.6866099", "text": "@Override\n public void delete(Integer id) {\n\n }", "title": "" }, { "docid": "a8e6b0357a5f005602b491f88c77251f", "score": "0.68618244", "text": "@Override\n\tpublic void delete(Progress t) {\n\t\t\n\t}", "title": "" }, { "docid": "1159593c66d37376dc1eda69a537e62c", "score": "0.68580425", "text": "@Override\n\tpublic void delete(Long id) {\n\t\t\n\t}", "title": "" }, { "docid": "1159593c66d37376dc1eda69a537e62c", "score": "0.68580425", "text": "@Override\n\tpublic void delete(Long id) {\n\t\t\n\t}", "title": "" }, { "docid": "1159593c66d37376dc1eda69a537e62c", "score": "0.68580425", "text": "@Override\n\tpublic void delete(Long id) {\n\t\t\n\t}", "title": "" }, { "docid": "ffb9e0427769fa7b1dbf485bfef87256", "score": "0.6854015", "text": "@Override\n public void delete(Long id) {\n }", "title": "" }, { "docid": "37dcf9aea5e1c596201d1c01d364c366", "score": "0.6842041", "text": "public void delete(){\n}", "title": "" }, { "docid": "98e4e6e0b9a58b536efd16616f3528df", "score": "0.6836299", "text": "@Override\r\n\tpublic void delete(Object pk) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5bd6a880f8b95c6ab866e32240258625", "score": "0.6836081", "text": "@Override\n\tpublic void delete(String _id) {\n\t\t\n\t}", "title": "" }, { "docid": "a6f0029e6418539d2a2648504623565d", "score": "0.683243", "text": "@Override\r\n\tpublic void delete(Integer itcNo) {\n\t\t\r\n\t}", "title": "" }, { "docid": "bc6ae7a914c9b737c445eca8a920d613", "score": "0.68293834", "text": "@Override\n\tpublic void delete(Avaluo avaluo) {\n\n\t}", "title": "" }, { "docid": "d7d3d49743068171fae854fba8de98c5", "score": "0.682639", "text": "@Override\r\n\t\tpublic Boolean delete(Yonetici obj) {\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "25e1a2ff505a771d1c6b9ceb312f1908", "score": "0.68201923", "text": "@Override\n\tpublic void delete(Integer id) {\n\t\t\n\t}", "title": "" }, { "docid": "25e1a2ff505a771d1c6b9ceb312f1908", "score": "0.68201923", "text": "@Override\n\tpublic void delete(Integer id) {\n\t\t\n\t}", "title": "" }, { "docid": "c3c06db4ed1556ee079e49a698bf8162", "score": "0.68175787", "text": "public abstract void delete(int id);", "title": "" }, { "docid": "3a850805c90aa30029905666cfba79f3", "score": "0.6815791", "text": "@Override\n\tpublic void delete(int id) {\n\n\t}", "title": "" }, { "docid": "3a850805c90aa30029905666cfba79f3", "score": "0.6815791", "text": "@Override\n\tpublic void delete(int id) {\n\n\t}", "title": "" }, { "docid": "3a850805c90aa30029905666cfba79f3", "score": "0.6815791", "text": "@Override\n\tpublic void delete(int id) {\n\n\t}", "title": "" }, { "docid": "de15b6d0ae003b6f4f4fdc2cf387a446", "score": "0.68106", "text": "void delete(U u);", "title": "" }, { "docid": "46294174c3b1da16f0270028d442eddc", "score": "0.68100154", "text": "int delete(Selector where);", "title": "" } ]
cebaf453518c500fbae1ea792ff442ec
Method for fetch the Semester start & end date Details.
[ { "docid": "024ab2f84ec49490dd5ebfe8e1edf6fd", "score": "0.6739444", "text": "public ModelAndView SemesterStartEndDate(HttpServletRequest request, HttpServletResponse response)throws Exception {\r\n\t\tActivityMaster activityMasterObject = new ActivityMaster();\r\n\t\tHttpSession session = request.getSession(true);\r\n\t\tString universityId =(String) session.getAttribute(\"universityId\");\r\n\t\tif(universityId == null){\r\n\t\t\treturn new ModelAndView(\"general/SessionInactive\",\"sessionInactive\",true);\r\n\t\t}\r\n\t\tactivityMasterObject.setUniversityId(universityId);\r\n\t\tactivityMasterObject.setProgramCourseKey(request.getParameter(\"programCourseKey\"));\r\n\t\tactivityMasterObject.setSessionStartDate(request.getParameter(\"sessionStartDate\"));\r\n\t\tactivityMasterObject.setSessionEndDate(request.getParameter(\"sessionEndDate\"));\r\n\t\tactivityMasterObject.setEntityId(request.getParameter(\"selectedEntityId\"));\r\n\t\tList<ActivityMaster> semesterStartEndDate = activityMasterDao.getSemesterStartEndDate(activityMasterObject);\r\n\t\treturn new ModelAndView(\"activitymaster/SemesterStartEndDate\",\"semesterStartEndDate\", semesterStartEndDate);\r\n\t}", "title": "" } ]
[ { "docid": "f379a5975de1a3762eec3d086c036056", "score": "0.60321933", "text": "public String getSemesterName(){ return this.semester.getSemesterName();}", "title": "" }, { "docid": "24be2ff5d3403515f20c3e5e6abd2557", "score": "0.59762216", "text": "String getStartDate();", "title": "" }, { "docid": "aa3c49c27b4538fd62ac7e3955c334a2", "score": "0.5950613", "text": "public org.webcat.core.Semester semester()\n {\n return (org.webcat.core.Semester)storedValueForKey( \"semester\" );\n }", "title": "" }, { "docid": "5e13ff9fb2943ce252d25b0b942af232", "score": "0.5937293", "text": "String getEndDate();", "title": "" }, { "docid": "07e9b8459800c39d5d7feb15a3e71b0c", "score": "0.5780323", "text": "long getStartDate();", "title": "" }, { "docid": "07e9b8459800c39d5d7feb15a3e71b0c", "score": "0.5780323", "text": "long getStartDate();", "title": "" }, { "docid": "07e9b8459800c39d5d7feb15a3e71b0c", "score": "0.5780323", "text": "long getStartDate();", "title": "" }, { "docid": "5d39b8890fc4cdbc86bfc03b9b46c6ce", "score": "0.57631344", "text": "public String getStartDate(){\n return this.startDate;\n }", "title": "" }, { "docid": "a0923dac6d2b513ecdbcf2e9ba90b9c3", "score": "0.5758084", "text": "public String getEndDate(){\n return this.endDate;\n }", "title": "" }, { "docid": "637034900b3278e849637d63e31aa070", "score": "0.57507545", "text": "public Date getStartDate() {\n \n return this.startDate;\n \n }", "title": "" }, { "docid": "07a667dc1be5491eadb24700c14646e3", "score": "0.57122236", "text": "public Date getStartDate()\n {\n return startDate;\n }", "title": "" }, { "docid": "07a667dc1be5491eadb24700c14646e3", "score": "0.57122236", "text": "public Date getStartDate()\n {\n return startDate;\n }", "title": "" }, { "docid": "371486e882895fba0d986992a6719576", "score": "0.57119274", "text": "public Date getRequestedEndDate();", "title": "" }, { "docid": "4b2648ea9e4abb57c14a7f6f77822fad", "score": "0.56150776", "text": "public Date getStartDate() {\n return startDate;\n }", "title": "" }, { "docid": "22757be946754a1ede7c67e7e6a21e0e", "score": "0.5599038", "text": "public Date getStartDate()\n {\n return this.startDate;\n }", "title": "" }, { "docid": "6baf09e73c0d5834a3c42a58f350cf61", "score": "0.55765915", "text": "@Override\r\n\tpublic void getRegistrationDate(int numCredits, char semester) {\n\t\tmonth = setMonth(semester);\r\n\t\t\r\n\t\t//Get Day of registration \r\n\t\tif(month == 11)\r\n\t\t{\r\n\t\t\tday = setDayNov(numCredits);\r\n\t\t}\r\n\t\telse if(month == 4 && semester != 'R')\r\n\t\t{\r\n\t\t\tday = setDayApr(numCredits);\r\n\t\t}\r\n\t\telse if(semester == 'R' && numCredits > 0)\r\n\t\t{\r\n\t\t\tday = 15;\r\n\t\t}\r\n\t\telse if(month == -1)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You Did not enter a valid Semester. Try Again\");\r\n\t\t}\r\n\t\r\n\t\tif(day == -1 || numCredits < 1)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"You Did not enter a valid number of credits. Try Again\");\r\n\t\t}\r\n\t\t\r\n\t\tif(day > 0 && month > 0)\r\n\t\t{\r\n\t\t//Inform the student their official registration date \r\n\t\tSystem.out.println(\"Your official registration start date for your chosen semester \" + semester +\" is: \" + month + \"/\" + day);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d67579369dbdf01955fda8a186cac458", "score": "0.5569242", "text": "public Date getStartDate() {\r\n return startDate;\r\n }", "title": "" }, { "docid": "d67579369dbdf01955fda8a186cac458", "score": "0.5569242", "text": "public Date getStartDate() {\r\n return startDate;\r\n }", "title": "" }, { "docid": "4975d567d782e7ea266b50b95d751eef", "score": "0.55622786", "text": "public Date getStartDate() {\n return startDate;\n }", "title": "" }, { "docid": "4975d567d782e7ea266b50b95d751eef", "score": "0.55622786", "text": "public Date getStartDate() {\n return startDate;\n }", "title": "" }, { "docid": "4975d567d782e7ea266b50b95d751eef", "score": "0.55622786", "text": "public Date getStartDate() {\n return startDate;\n }", "title": "" }, { "docid": "8c12782c85f14ea543b32c2ace7e70fc", "score": "0.55537134", "text": "long getEndDate();", "title": "" }, { "docid": "a49b224a64ce5e4730c4f07bdbeafc1b", "score": "0.5528413", "text": "public M csrInDateEnd(Object end){this.put(\"csrInDateEnd\", end);return this;}", "title": "" }, { "docid": "9246aaa0b42a0230b8331789b0f12ee2", "score": "0.55161077", "text": "public String getStartDate() {\n return startDate;\n }", "title": "" }, { "docid": "4707cbae14ad95d4f358412788ccd449", "score": "0.5515848", "text": "@Override\n\tpublic String getDate() {\n\t\treturn startDate;\n\t}", "title": "" }, { "docid": "c107fbb3fe090bb0a81a22ba67c0b9ed", "score": "0.5514727", "text": "public String getSemester() {\n return semester.toString();\n }", "title": "" }, { "docid": "b6a51edeb81b5044b46d274b343f134f", "score": "0.54974306", "text": "public Date getSsTend() {\n return ssTend;\n }", "title": "" }, { "docid": "3ef0d36bfee7a8f333cac5d44e4626d0", "score": "0.5479082", "text": "public Date getRequestedStartDate();", "title": "" }, { "docid": "ec0c0caffd36b67faf081fad4f652366", "score": "0.5476463", "text": "public String getEndDate() {\n return this.EndDate;\n }", "title": "" }, { "docid": "ce672e5ce1eb36430f22bd5090031fc8", "score": "0.5468749", "text": "public java.util.Date getStartDate(){\n return localStartDate;\n }", "title": "" }, { "docid": "eeb08c19c2bce48e2ede23bbb5ae787e", "score": "0.5461241", "text": "public String getStartDate() {\n return this.StartDate;\n }", "title": "" }, { "docid": "52de9bf1aa6210c503967552f2a10192", "score": "0.5456278", "text": "public Date getStartDate() {\r\n return this.startDate;\r\n }", "title": "" }, { "docid": "52de9bf1aa6210c503967552f2a10192", "score": "0.5456278", "text": "public Date getStartDate() {\r\n return this.startDate;\r\n }", "title": "" }, { "docid": "004671ac8970b51c4ddef054f64295ec", "score": "0.54509103", "text": "public Cursor getSavedSched(String semester){\n Log.d(LOG_TAG, \"Filling Saved Schedule\");\n SQLiteDatabase db = this.getReadableDatabase();\n\n String query = \"SELECT S.\" + COURSE_ID_COL + \", C.\" + COURSE_NAME_COL\n + \" FROM \" + SAVED_SCHED_TABLE + \" S JOIN \" + COURSE_LIST_TABLE + \" C \"\n + \"ON C.\" + COURSE_ID_COL + \" = S.\" + COURSE_ID_COL\n + \" WHERE S.\" + SEMESTER_COL + \" = '\" + semester + \"';\";\n return db.rawQuery(query, null);\n }", "title": "" }, { "docid": "e0ad944275e55c499020c1100e429ca9", "score": "0.54468006", "text": "com.google.type.Date getStartDate();", "title": "" }, { "docid": "fa603a3be9d87ba7ef21e8960125e05a", "score": "0.544473", "text": "public Date getEndDate()\n {\n return endDate;\n\n }", "title": "" }, { "docid": "f61ea7645eab5b559a88d7038dca5276", "score": "0.54387206", "text": "public Date getStartDate() { return new Date(experiment_start_time); }", "title": "" }, { "docid": "e6701294f2281a6ff6eb4e40ff5e5d68", "score": "0.5437511", "text": "public Date getStartdate() {\n\treturn startdate;\n}", "title": "" }, { "docid": "903c1dcef416b6ef87e3dd3fc3ca8990", "score": "0.5435238", "text": "public Calendar getStartDate() {\n return startDate;\n }", "title": "" }, { "docid": "92052c0445c4750064ba1936e1d234a1", "score": "0.54242283", "text": "Date getStart();", "title": "" }, { "docid": "7e447ee136fb4b8f3af01586a83fe484", "score": "0.5421004", "text": "public Date getStartDate()\n\t{\n\t\treturn startDate;\n\t}", "title": "" }, { "docid": "feddd9109716c3d55942978ead17ceaf", "score": "0.54007936", "text": "public Date getSsSalterdate() {\n return ssSalterdate;\n }", "title": "" }, { "docid": "502f1aacd5364ad532fa923349b0e6cf", "score": "0.53876024", "text": "public java.util.Date getEndDate(){\n return localEndDate;\n }", "title": "" }, { "docid": "a2ff5b921d7f3f395c8f8468e8f451cb", "score": "0.53854877", "text": "public Date getEndDate() {\n return this.endDate;\n }", "title": "" }, { "docid": "4040285639a126cd7fef589b1ef2da29", "score": "0.5361901", "text": "public Date getSpieldatum() {\r\n return spieldatum;\r\n }", "title": "" }, { "docid": "78569b511e5c7c096b9bd25420afaf04", "score": "0.5348174", "text": "public void setStarEndDatesAndTime() throws Exception {\n driver.findElement(By.id(\"startDate\")).clear();\n driver.findElement(By.id(\"startTime\")).clear();\n driver.findElement(By.id(\"endDate\")).clear();\n driver.findElement(By.id(\"endTime\")).clear();\n\n driver.findElement(By.id(\"startDate\")).sendKeys(METRIC_SEARCH_START_DATE);\n driver.findElement(By.id(\"startTime\")).sendKeys(METRIC_SEARCH_START_TIME);\n driver.findElement(By.id(\"endDate\")).sendKeys(METRIC_SEARCH_END_DATE);\n driver.findElement(By.id(\"endTime\")).sendKeys(METRIC_SEARCH_END_TIME);\n }", "title": "" }, { "docid": "1b4935085f274077ab9210f6edf4809d", "score": "0.53465366", "text": "public void toSelectStartDateandEndDate(WebElement startEndDateImage, String StartEndMonth, String StartEndYear,String StartEndDate) throws IOException\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t//Select start date \t\t\n\t\t\t\tWebElement startDateImage = startEndDateImage;\t\t\n\t\t\t\tstartDateImage.click();\t\t\n\t\t\t\tAPP_LOGS.debug(\"Clicked on Date Calendar icon...\");\n\t\t\t\t\n\t\t\t\tSelect year = new Select(getElementByClassAttr(\"ProjectCreateNew_yearDropDown_Class\"));\n\t\t\t\tyear.selectByValue(StartEndYear);\n\t\t\t\tAPP_LOGS.debug(StartEndYear +\" : Year is selected...\");\n\t\t\t\t\n\t\t\t\tSelect month = new Select(getElementByClassAttr(\"ProjectCreateNew_monthDropDown_Class\"));\n\t\t\t\tmonth.selectByVisibleText(StartEndMonth);\n\t\t\t\tAPP_LOGS.debug(StartEndMonth +\" : Month is selected...\");\n\t\t\t\t\n\t\t\t\tWebElement datepicker= getObject(\"ProjectCreateNew_dateTable\");\n\t\t\t\t//List<WebElement> rows = datepicker.findElements(By.tagName(\"tr\"));\n\t\t\t\tList<WebElement> cols = datepicker.findElements(By.tagName(\"td\"));\n\t\t\t\tfor(WebElement cell :cols)\n\t\t\t\t{\n\t\t\t\t\tif(cell.getText().equals(StartEndDate))\n\t\t\t\t\t{\n\t\t\t\t\t\tcell.findElement(By.linkText(\"\"+StartEndDate+\"\")).click();\n\t\t\t\t\t\tAPP_LOGS.debug(StartEndDate +\" : Date is selected...\");\n\t\t\t\t\t\tSystem.out.println(StartEndDate +\" : Date is selected...\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Throwable t)\n\t\t\t{\n\t\t\t\tfail=true;\n\t\t\t\tt.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "44d7267796e9d4f89c28db190f2c814f", "score": "0.5342722", "text": "private String getStartDate() {\n String sQuery;\n if (sdate.equals(\"DEFAULT\")) {\n sQuery = \"\";\n } else {\n sQuery = \"&startDate=\" + sdate;\n }\n System.out.println(sQuery);\n return sQuery;\n }", "title": "" }, { "docid": "de1d046b978a7f04dcb833aa50ae1b21", "score": "0.5330304", "text": "Date getEvaluatedDate();", "title": "" }, { "docid": "31516419506348083406198d125fc79b", "score": "0.53270525", "text": "public Date getEndDate()\n {\n return endDate;\n }", "title": "" }, { "docid": "a328ffabba2d4f38e7cc1fc4b9661900", "score": "0.53060675", "text": "public ArrayList passedStudentList(String examnameid,String standardscheduleid,String sectionscheduleid,String subjectscheduleid)\r\n\t{\r\n\t \t\tlog.info(\"invoking passedStudentList from com.iGrandee.Report.Reports\");\r\n\t\t \r\n\t\t\tArrayList periodsList = null;\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t//select_query \t= \"select concat(firstname,' ',lastname)as studentname,marktaken,d1.theoryexternalmax from examallotment a1,examschedule b1,exammark c1, subjectschedule d1,studentallocation e1,candidateregister f1,personmaster g1 where a1.examnameid='\"+examnameid+\"' and a1.standardscheduleid='\"+standardscheduleid+\"' and a1.examallotmentstatus='A' and a1.examallotmentid=b1.examallotmentid and (b1.examschedulestatus='A' or b1.examschedulestatus='R') and b1.examscheduleid=c1.examscheduleid and b1.subjectscheduleid=d1.subjectscheduleid and d1.status='A' and d1.subjectscheduleid='\"+subjectscheduleid+\"' and d1.theoryexternalmin<=c1.marktaken and c1.markstatus='A' and (b1.markpublishstatus='A' or b1.markpublishstatus='R') and e1.sectionscheduleid='\"+sectionscheduleid+\"' and c1.studentallocationid=e1.studentallocationid and e1.studentallocationstatus='A' and e1.candidateregisterid=f1.candidateregisterid and f1.personid=g1.personid and f1.candidateregisterstatus='A' and g1.status='A'\";\r\n\t\t\t\tselect_query \t= \"select concat(firstname,' ',lastname)as studentname,marktaken,d1.theoryexternalmax from examallotment a1,examschedule b1,exammark c1, subjectschedule d1,studentallocation e1,candidateregister f1,personmaster g1 where a1.examnameid='\"+examnameid+\"' and a1.standardscheduleid='\"+standardscheduleid+\"' and a1.examallotmentstatus='A' and a1.examallotmentid=b1.examallotmentid and (b1.examschedulestatus='R') and b1.examscheduleid=c1.examscheduleid and b1.subjectscheduleid=d1.subjectscheduleid and d1.status='A' and d1.subjectscheduleid='\"+subjectscheduleid+\"' and cast(d1.theoryexternalmin as unsigned integer) <= cast(c1.marktaken as unsigned integer) and c1.markstatus='A' and (b1.markpublishstatus='R') and e1.sectionscheduleid='\"+sectionscheduleid+\"' and c1.studentallocationid=e1.studentallocationid and e1.studentallocationstatus='A' and e1.candidateregisterid=f1.candidateregisterid and f1.personid=g1.personid and f1.candidateregisterstatus='A' and g1.status='A'\";\r\n\t\t\t\tperiodsList \t= common_data_object.getListMap(select_query);\r\n\t\t\t}\r\n\t\t\tcatch(Exception exception) { \r\n\t\t\t\tlog.error(exception);\r\n\t\t\t}\r\n\t\t\treturn periodsList;\r\n\t}", "title": "" }, { "docid": "102587b828f8c49d001ac4d0e5a91da8", "score": "0.5302065", "text": "public String getDisplayStartDate(){\n return \"Start date: \" + startDate;\n }", "title": "" }, { "docid": "9de1311a81c0822c50feeaac1536f231", "score": "0.53012043", "text": "@java.lang.Override\n public long getStartDate() {\n return startDate_;\n }", "title": "" }, { "docid": "9de1311a81c0822c50feeaac1536f231", "score": "0.53012043", "text": "@java.lang.Override\n public long getStartDate() {\n return startDate_;\n }", "title": "" }, { "docid": "9de1311a81c0822c50feeaac1536f231", "score": "0.5300957", "text": "@java.lang.Override\n public long getStartDate() {\n return startDate_;\n }", "title": "" }, { "docid": "3ee9ed84e30a32ca1ad7960c00eb096e", "score": "0.5296586", "text": "public Date getEndDate() {\r\n return this.endDate;\r\n }", "title": "" }, { "docid": "3ee9ed84e30a32ca1ad7960c00eb096e", "score": "0.5296586", "text": "public Date getEndDate() {\r\n return this.endDate;\r\n }", "title": "" }, { "docid": "0177082cf0cf0a34b1e6b87103a313dc", "score": "0.5294017", "text": "@java.lang.Override\n public long getStartDate() {\n return startDate_;\n }", "title": "" }, { "docid": "0177082cf0cf0a34b1e6b87103a313dc", "score": "0.5294017", "text": "@java.lang.Override\n public long getStartDate() {\n return startDate_;\n }", "title": "" }, { "docid": "0177082cf0cf0a34b1e6b87103a313dc", "score": "0.5294017", "text": "@java.lang.Override\n public long getStartDate() {\n return startDate_;\n }", "title": "" }, { "docid": "86aa31530125eb66c9652123c7ff2146", "score": "0.5287576", "text": "public void setStartDate (Date d){ \n\t\tstartDate = d;\n\t}", "title": "" }, { "docid": "0c95964a29862949fbe98b62e8fd1fc4", "score": "0.5266245", "text": "com.google.type.Date getEndDate();", "title": "" }, { "docid": "ccadfb512b095e9c70b2051b5b5abe76", "score": "0.52661145", "text": "public final java.util.Collection<Editable> getItemsBetween(final HiResDate start,\r\n\t\t\tfinal HiResDate end)\r\n\t{\r\n\t\tjava.util.Vector<Editable> res = null;\r\n\r\n\t\tif (this.getStartDTG() != null)\r\n\t\t{\r\n\t\t\t// are we inside this period\r\n\t\t\tfinal HiResDate startTime = getStartDTG();\r\n\t\t\tfinal HiResDate endTime = getEndDTG();\r\n\r\n\t\t\t// have any dates been set?\r\n\t\t\tif (startTime != null)\r\n\t\t\t{\r\n\t\t\t\t// do we have a finish time?\r\n\t\t\t\tif (endTime != null)\r\n\t\t\t\t{\r\n\t\t\t\t\t// we have start and finish times, see if we overlap the period at all\r\n\t\t\t\t\tif ((startTime.lessThanOrEqualTo(end))\r\n\t\t\t\t\t\t\t&& (endTime.greaterThanOrEqualTo(start)))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tres = new Vector<Editable>(0, 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else\r\n\t\t\t\t{\r\n\t\t\t\t\t// we don't have a finish time, see if we are inside the period\r\n\t\t\t\t\tif ((startTime.greaterThanOrEqualTo(start))\r\n\t\t\t\t\t\t\t&& (startTime.lessThanOrEqualTo(end)))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tres = new Vector<Editable>(0, 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// do we have any valid data?\r\n\t\t\t\tif (res != null)\r\n\t\t\t\t{\r\n\t\t\t\t\t// yes, do we have an end time?\r\n\t\t\t\t\tif (endTime != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// HI-RES NOT DONE - WHAT ON EARTH IS HAPPENING IN THIS NEXT\r\n\t\t\t\t\t\t// SECTION?\r\n\r\n\t\t\t\t\t\t// produce data from the last of our start time and the period\r\n\t\t\t\t\t\t// start, to the first\r\n\t\t\t\t\t\t// of our finish time and the period end\r\n\t\t\t\t\t\tfinal long st = Math.max(startTime.getMicros(), start.getMicros());\r\n\t\t\t\t\t\tfinal long en = Math.min(endTime.getMicros(), end.getMicros());\r\n\r\n\t\t\t\t\t\t// work through this dataset, in minutes\r\n\t\t\t\t\t\tfor (long i = st; i <= en; i += 60 * 1000 * 1000)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tres.addElement(new LabelWrapper(this.getLabel(), this\r\n\t\t\t\t\t\t\t\t\t.getLocation(), this.getColor(), new HiResDate(0, i),\r\n\t\t\t\t\t\t\t\t\tnew HiResDate(0, i)));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// HI-RES NOT DONE - WHAT ON EARTH IS HAPPENING IN THIS NEXT\r\n\t\t\t\t\t\t// SECTION?\r\n\r\n\t\t\t\t\t\t// produce data from the last of our start time and the data start\r\n\t\t\t\t\t\t// time, to the end time of the\r\n\t\t\t\t\t\t// data\r\n\t\t\t\t\t\tfinal long st = Math.max(startTime.getMicros(), start.getMicros());\r\n\r\n\t\t\t\t\t\t// work through this dataset, in minutes\r\n\t\t\t\t\t\tfor (long i = st; i <= end.getMicros(); i += 60 * 1000 * 1000)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tres.addElement(new LabelWrapper(this.getLabel(), this\r\n\t\t\t\t\t\t\t\t\t.getLocation(), this.getColor(), new HiResDate(0, i),\r\n\t\t\t\t\t\t\t\t\tnew HiResDate(0, i)));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\t// no dates have been set - just say yes we are visible\r\n\t\t\t\tres = new Vector<Editable>(0, 1);\r\n\t\t\t\tres.add(this);\r\n\t\t\t}\r\n\t\t} else\r\n\t\t{\r\n\t\t\t// no times are set - just return ourselves\r\n\t\t\tres = new Vector<Editable>(0, 1);\r\n\t\t\tres.add(this);\r\n\t\t}\r\n\r\n\t\treturn res;\r\n\t}", "title": "" }, { "docid": "e985d856b9d5b30ae4079d0d721d61d4", "score": "0.5255037", "text": "public Date getEndDate() {\n return endDate;\n }", "title": "" }, { "docid": "97ab6c87a26b8869c4ef8692f2f21428", "score": "0.525233", "text": "public String getSemester(List<String> semesters) {\n\t\t//go through available semesters and get user choice.j\n\t\tString year;\n\t\tString month;\n\t\tint choice = 0;\n\t\t//Ask user\n\t\tdisplay(\"What semester would you like to build schedules for?\");\n\t\t//display available schedules.\n\t\tfor (int i = 0; i < semesters.size(); i++) {\n\t\t\tyear = semesters.get(i).substring(0, 4);\n\t\t\tInteger monthInt = Integer.parseInt(semesters.get(i).substring((4)));\n if (monthInt <= 4) {\n \tmonth = \"Winter\";\n } else if (monthInt <= 8) {\n \tmonth = \"Spring/Summer\";\n } else {\n \tmonth = \"Fall\";\n }\n\t\t\tdisplay((i+1) + \". \" + month + \" \" + year);\n\t\t}\n\t\tdisplay(\"Select your choice. (Number)\");\n\t\t//Get user response.\n\t\tString response = readFromConsole();\n\t\t//We will loop until the response is valid.\n\t\tboolean valid = false;\n\t\twhile (!valid) {\n\t\t\ttry {\n\t\t\t\tchoice = Integer.parseInt(response);\n\t\t\t\tif ((choice <= semesters.size()) && (choice > 0)) {\n\t\t\t\t\tvalid = true;\n\t\t\t\t} else {\n\t\t\t\t\tdisplay(\"That number is not in the list.\");\n\t\t\t\t\tresponse = readFromConsole();\n\t\t\t\t}\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tdisplay(\"You must enter a valid number\");\n\t\t\t\tresponse = readFromConsole();\n\t\t\t}\n\t\t}\n\t\t//Once the response is valid, we display their choice and return it.\n\t\tyear = semesters.get(choice-1).substring(0, 4);\n\t\tmonth = new DateFormatSymbols().getMonths()[Integer.parseInt(semesters.get(choice-1).substring(4))-1];\n\t\tdisplay(\"You have selected semester: \" + month + \" \" + year);\n\t\treturn semesters.get(choice-1);\n\t}", "title": "" }, { "docid": "35e4d2ac86a0de511806427664770173", "score": "0.5249962", "text": "public Date getSsTdef2() {\n return ssTdef2;\n }", "title": "" }, { "docid": "889d770fceb74c7b7aca5014f0934040", "score": "0.5249483", "text": "public Date getEndDate() {\n return this.endDate;\n }", "title": "" }, { "docid": "540aff9975036132b6a1901f9fc638d3", "score": "0.524433", "text": "public java.lang.Object getStartDate() {\n return startDate;\n }", "title": "" }, { "docid": "4b3f27eb07a1295e209668163cdea4c6", "score": "0.52393025", "text": "public String getStartDate() {\n\t\treturn startDate;\n\t}", "title": "" }, { "docid": "d0ccb2add2974f940af26760c8e2c3c3", "score": "0.5237956", "text": "public String getStartdate() {\r\n return startdate;\r\n }", "title": "" }, { "docid": "7dc0d1840a007331092c951a32738420", "score": "0.52364135", "text": "public DateSpan getSelectedDateSpan() {\r\n\t\tDateSpan result = null;\r\n\t\tif (_startSelectedDate != -1) {\r\n\t\t\tresult = new DateSpan(new Date(_startSelectedDate), new Date(\r\n\t\t\t\t\t_endSelectedDate));\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "c0cf79dbb40813eef656efc786c6d70e", "score": "0.522857", "text": "Date getEnd();", "title": "" }, { "docid": "51164c309933102dd7df2ad77814a00d", "score": "0.520984", "text": "public ArrayList sectionPassDetails(String examnameid,String standardid)\r\n\t{\r\n\t \t\tlog.info(\"invoking sectionPassDetails from com.iGrandee.Report.Reports\");\r\n\t\t \r\n\t\t\tArrayList periodsList = null;\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t//select_query \t= \"select sectionname,f.sectionscheduleid,g.studentallocationid, (select count(subjectscheduleid) from subjectschedule where standardscheduleid=d.standardscheduleid and status='A' group by standardscheduleid) as totalsubject, (select count(exammarkid) from exammark a1,subjectschedule b1, examschedule c1,examallotment d1 where a1.studentallocationid=g.studentallocationid and d1.examnameid='\"+examnameid+\"' and d1.examallotmentid=c1.examallotmentid and a1.examscheduleid=c1.examscheduleid and (c1.examschedulestatus='R') and (c1.markpublishstatus='R') and a1.markstatus='A' and c1.subjectscheduleid=b1.subjectscheduleid and b1.status='A' and cast(b1.theoryexternalmin as unsigned integer) <= cast(a1.marktaken as unsigned integer) group by a1.studentallocationid) as passedsubject from examallotment a join examschedule b on a.examnameid='\"+examnameid+\"' and a.examallotmentstatus='A' and a.standardscheduleid='\"+standardid+\"' and a.examallotmentid=b.examallotmentid and (b.examschedulestatus='A' or b.examschedulestatus='R') and (b.markpublishstatus='A' or b.markpublishstatus='R') join standardschedule d on a.standardscheduleid=d.standardscheduleid and d.stdschedulestatus='A' join sectionschedule f on d.standardscheduleid=f.standardscheduleid and f.sectionschedulestatus='A' join section e on f.sectionid=e.sectionid and e.status='A' join studentallocation g on f.sectionscheduleid=g.sectionscheduleid and g.studentallocationstatus='A' group by g.studentallocationid,a.examnameid,d.standardscheduleid order by a.examnameid,f.sectionscheduleid\";\r\n\t\t\t\tselect_query \t= \"select sectionname,f.sectionscheduleid,g.studentallocationid, (select count(subjectscheduleid) from subjectschedule s1,subject s2 where s1.standardscheduleid=d.standardscheduleid and s1.subjectid=s2.subjectid and s2.subjectstatus='A' and s1.status='A' group by standardscheduleid) as totalsubject, (select count(exammarkid) from exammark a1,subjectschedule b1, examschedule c1,examallotment d1 where a1.studentallocationid=g.studentallocationid and d1.examnameid='\"+examnameid+\"' and d1.examallotmentid=c1.examallotmentid and a1.examscheduleid=c1.examscheduleid and (c1.examschedulestatus='R') and (c1.markpublishstatus='R') and a1.markstatus='A' and c1.subjectscheduleid=b1.subjectscheduleid and b1.status='A' and cast(b1.theoryexternalmin as unsigned integer) <= cast(a1.marktaken as unsigned integer) group by a1.studentallocationid) as passedsubject from examallotment a join examschedule b on a.examnameid='\"+examnameid+\"' and a.examallotmentstatus='A' and a.standardscheduleid='\"+standardid+\"' and a.examallotmentid=b.examallotmentid and (b.examschedulestatus='A' or b.examschedulestatus='R') and (b.markpublishstatus='A' or b.markpublishstatus='R') join standardschedule d on a.standardscheduleid=d.standardscheduleid and d.stdschedulestatus='A' join sectionschedule f on d.standardscheduleid=f.standardscheduleid and f.sectionschedulestatus='A' join section e on f.sectionid=e.sectionid and e.status='A' join studentallocation g on f.sectionscheduleid=g.sectionscheduleid and g.studentallocationstatus='A' group by g.studentallocationid,a.examnameid,d.standardscheduleid order by a.examnameid,f.sectionscheduleid\";\r\n\t\t\t\tperiodsList \t= common_data_object.getListMap(select_query);\r\n\t\t\t\t//System.out.print(\"select_query-->\"+select_query);\r\n\t\t\t}\r\n\t\t\tcatch(Exception exception) { \r\n\t\t\t\tlog.error(exception);\r\n\t\t\t}\r\n\t\t\treturn periodsList;\r\n\t}", "title": "" }, { "docid": "3b563d9c060f7b79472fd8affc35b126", "score": "0.51932776", "text": "@Override\n\tpublic java.util.Date getEndDate() {\n\t\treturn _assetManageReqHandle.getEndDate();\n\t}", "title": "" }, { "docid": "8436e5abbf5f3848f10c60cc403d3526", "score": "0.5184844", "text": "@GET\n\t@Path(\"{eventId}/startDate\")\n\t@Produces(MediaType.APPLICATION_XML)\n\tpublic String getEventStartDate(@PathParam(\"eventId\") int eventId){\n\t\tEvent event = eventRepository.getObjectById(eventId);\n\t\t\n\t\tSystem.out.println(\"GET with startDate: \"+event);\n\t\t\n\t\treturn event.getStartDate(); \n\t}", "title": "" }, { "docid": "060063747985ba6c800fdddf81c7975a", "score": "0.5178309", "text": "public void setEndDate(String endDate){\n this.endDate = endDate;\n }", "title": "" }, { "docid": "41229a106a9d6d97bc16e65dbea6f3ab", "score": "0.5178251", "text": "public Calendar getEndDate() {\n return endDate;\n }", "title": "" }, { "docid": "0b3486dfe06a1381fee6f68c521a195e", "score": "0.5177204", "text": "public ArrayList failedStudentList(String examnameid,String standardscheduleid,String sectionscheduleid,String subjectscheduleid)\r\n\t{\r\n\t \t\tlog.info(\"invoking failedStudentList from com.iGrandee.Report.Reports\");\r\n\t\t \r\n\t\t\tArrayList periodsList = null;\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t//select_query \t= \"select concat(firstname,' ',lastname)as studentname,case when marktaken is null then 'Not Yet Given' else marktaken end as marktaken, d1.theoryexternalmax from examallotment a1 join examschedule b1 on a1.examnameid='\"+examnameid+\"' and a1.standardscheduleid='\"+standardscheduleid+\"' and a1.examallotmentstatus='A' and a1.examallotmentid=b1.examallotmentid and (b1.examschedulestatus='A' or b1.examschedulestatus='R') and (b1.markpublishstatus='A' or b1.markpublishstatus='R') join subjectschedule d1 on b1.subjectscheduleid=d1.subjectscheduleid and d1.status='A' and d1.subjectscheduleid='\"+subjectscheduleid+\"' join studentallocation e1 on e1.sectionscheduleid='\"+sectionscheduleid+\"' and e1.studentallocationstatus='A' join candidateregister f1 on e1.candidateregisterid=f1.candidateregisterid and f1.candidateregisterstatus='A' join personmaster g1 on f1.personid=g1.personid and g1.status='A' join exammark c1 on b1.examscheduleid=c1.examscheduleid and d1.theoryexternalmin>c1.marktaken and c1.markstatus='A' and c1.studentallocationid=e1.studentallocationid\";\r\n\t\t\t\tselect_query \t= \"select concat(firstname,' ',lastname)as studentname,case when marktaken is null then 'Not Yet Given' else marktaken end as marktaken, d1.theoryexternalmax from examallotment a1 join examschedule b1 on a1.examnameid='\"+examnameid+\"' and a1.standardscheduleid='\"+standardscheduleid+\"' and a1.examallotmentstatus='A' and a1.examallotmentid=b1.examallotmentid and (b1.examschedulestatus='R') and (b1.markpublishstatus='R') join subjectschedule d1 on b1.subjectscheduleid=d1.subjectscheduleid and d1.status='A' and d1.subjectscheduleid='\"+subjectscheduleid+\"' join studentallocation e1 on e1.sectionscheduleid='\"+sectionscheduleid+\"' and e1.studentallocationstatus='A' join candidateregister f1 on e1.candidateregisterid=f1.candidateregisterid and f1.candidateregisterstatus='A' join personmaster g1 on f1.personid=g1.personid and g1.status='A' join exammark c1 on b1.examscheduleid=c1.examscheduleid and cast(d1.theoryexternalmin as unsigned integer) > cast(c1.marktaken as unsigned integer) and c1.markstatus='A' and c1.studentallocationid=e1.studentallocationid\";\r\n\t\t\t\tperiodsList \t= common_data_object.getListMap(select_query);\r\n\t\t\t}\r\n\t\t\tcatch(Exception exception) { \r\n\t\t\t\tlog.error(exception);\r\n\t\t\t}\r\n\t\t\treturn periodsList;\r\n\t}", "title": "" }, { "docid": "3b47c819700ef7e1379aadf44d044761", "score": "0.5167095", "text": "public Date getStartDate() {\n\t\treturn startDate;\n\t}", "title": "" }, { "docid": "a9a84bac00781784cd535cce79e474c2", "score": "0.5163272", "text": "public void setStartDate(String startDate){\n this.startDate = startDate;\n }", "title": "" }, { "docid": "96f4b73a1005add27788624a1f9f4df6", "score": "0.5162426", "text": "public String getEmploymentStartDate() {\n return employmentStartDate;\n }", "title": "" }, { "docid": "ea7d87694516bfd301d77ae88d1b4b09", "score": "0.5157865", "text": "public Date getEndDate() {\n return endDate;\n }", "title": "" }, { "docid": "ea7d87694516bfd301d77ae88d1b4b09", "score": "0.5157865", "text": "public Date getEndDate() {\n return endDate;\n }", "title": "" }, { "docid": "ea7d87694516bfd301d77ae88d1b4b09", "score": "0.5157865", "text": "public Date getEndDate() {\n return endDate;\n }", "title": "" }, { "docid": "d13fb579ed4a3523995c0bffafc57a47", "score": "0.5156839", "text": "public Date getEndDate() {\r\n return endDate;\r\n }", "title": "" }, { "docid": "2f5c90978da7f826aa33167883ceebfe", "score": "0.5150326", "text": "public Date getSsTdate() {\n return ssTdate;\n }", "title": "" }, { "docid": "4990b1919d78edb4a0b8295d7b67d287", "score": "0.51492196", "text": "public String getEmploymentEndDate() {\n return employmentEndDate;\n }", "title": "" }, { "docid": "53de9cd3c76b6411c71a6e1ea093a3ad", "score": "0.5145558", "text": "public Date getEnd_date() {\n\t\treturn end_date;\n\t}", "title": "" }, { "docid": "ecc46424739b4769ab2c7476151d6ae7", "score": "0.51442933", "text": "public String getThisEndDate()\n {\n return this.endDate;\n }", "title": "" }, { "docid": "a70a0fe7bca17f6a49bd3323e6515126", "score": "0.5136353", "text": "public ArrayList sectionSubjectPassDetails(String sectionid,String standardid,String examnameid)\r\n\t{\r\n\t \t\tlog.info(\"invoking sectionSubjectPassDetails from com.iGrandee.Report.Reports\");\r\n\t\t \r\n\t\t\tArrayList periodsList = null;\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t//select_query \t= \"select subjectname,e.subjectscheduleid, (select count(studentallocationid) from studentallocation where sectionscheduleid='\"+sectionid+\"' and studentallocationstatus='A')as totalstudents, concat(firstname,' ',lastname)as staffname, (select count(exammarkid) from examallotment a1,examschedule b1,exammark c1, subjectschedule d1,studentallocation e1 where a1.examnameid='\"+examnameid+\"' and a1.standardscheduleid='\"+standardid+\"' and a1.examallotmentstatus='A' and a1.examallotmentid=b1.examallotmentid and (b1.examschedulestatus='A' or b1.examschedulestatus='R') and b1.examscheduleid=c1.examscheduleid and b1.subjectscheduleid=d1.subjectscheduleid and d1.status='A' and d1.subjectscheduleid=e.subjectscheduleid and d1.theoryexternalmin<=c1.marktaken and c1.markstatus='A' and (b1.markpublishstatus='A' or b1.markpublishstatus='R') and e1.sectionscheduleid='\"+sectionid+\"' and c1.studentallocationid=e1.studentallocationid and e1.studentallocationstatus='A' group by d1.subjectscheduleid) as passedcount from studentallocation g, sectionschedule f,standardschedule c,subjectschedule e, subjectallotment h, staffmaster i,login j,personmaster k,subject b where f.sectionscheduleid=g.sectionscheduleid and g.studentallocationstatus='A' and f.sectionscheduleid='\"+sectionid+\"' and c.standardscheduleid=f.standardscheduleid and c.standardscheduleid='\"+standardid+\"' and c.standardscheduleid=e.standardscheduleid and e.status='A' and e.subjectid=b.subjectid and b.subjectstatus='A' and e.subjectscheduleid=h.subjectscheduleid and h.subjectallotmentstatus='A' and h.staffid=i.staffid and i.userid=j.userid and j.personid=k.personid group by e.subjectscheduleid\";\r\n\t\t\t\tselect_query \t= \"select subjectname,e.subjectscheduleid, (select count(studentallocationid) from studentallocation where sectionscheduleid='\"+sectionid+\"' and studentallocationstatus='A')as totalstudents, concat(firstname,' ',lastname)as staffname, (select count(exammarkid) from examallotment a1,examschedule b1,exammark c1, subjectschedule d1,studentallocation e1 where a1.examnameid='\"+examnameid+\"' and a1.standardscheduleid='\"+standardid+\"' and a1.examallotmentstatus='A' and a1.examallotmentid=b1.examallotmentid and (b1.examschedulestatus='R') and b1.examscheduleid=c1.examscheduleid and b1.subjectscheduleid=d1.subjectscheduleid and d1.status='A' and d1.subjectscheduleid=e.subjectscheduleid and cast(d1.theoryexternalmin as unsigned integer) <= cast(c1.marktaken as unsigned integer) and c1.markstatus='A' and (b1.markpublishstatus='A' or b1.markpublishstatus='R') and e1.sectionscheduleid='\"+sectionid+\"' and c1.studentallocationid=e1.studentallocationid and e1.studentallocationstatus='A' group by d1.subjectscheduleid) as passedcount from studentallocation g, sectionschedule f,standardschedule c,subjectschedule e, subjectallotment h, staffmaster i,login j,personmaster k,subject b where f.sectionscheduleid=g.sectionscheduleid and g.studentallocationstatus='A' and f.sectionscheduleid='\"+sectionid+\"' and c.standardscheduleid=f.standardscheduleid and c.standardscheduleid='\"+standardid+\"' and c.standardscheduleid=e.standardscheduleid and e.status='A' and e.subjectid=b.subjectid and b.subjectstatus='A' and e.subjectscheduleid=h.subjectscheduleid and h.subjectallotmentstatus='A' and h.staffid=i.staffid and i.userid=j.userid and j.personid=k.personid group by e.subjectscheduleid\";\r\n\t\t\t\tperiodsList \t= common_data_object.getListMap(select_query);\r\n\t\t\t\t//System.out.println(\"select_query====>\"+select_query);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcatch(Exception exception) { \r\n\t\t\t\tlog.error(exception);\r\n\t\t\t}\r\n\t\t\treturn periodsList;\r\n\t}", "title": "" }, { "docid": "a81aad0c8793a48e20a00e435dcb3a84", "score": "0.5135212", "text": "public ArrayList passedSubjectStudentList(String examnameid,String standardscheduleid,String subjectscheduleid)\r\n\t{\r\n\t \t\tlog.info(\"invoking passedSubjectStudentList from com.iGrandee.Report.Reports\");\r\n\t\t \r\n\t\t\tArrayList periodsList = null;\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t//select_query \t= \"select concat(firstname,' ',lastname)as studentname, marktaken, d1.theoryexternalmax from examallotment a1 join examschedule b1 on a1.examnameid='\"+examnameid+\"' and a1.standardscheduleid='\"+standardscheduleid+\"' and a1.examallotmentstatus='A' and a1.examallotmentid=b1.examallotmentid and (b1.examschedulestatus='A' or b1.examschedulestatus='R') and (b1.markpublishstatus='A' or b1.markpublishstatus='R') join subjectschedule d1 on b1.subjectscheduleid=d1.subjectscheduleid and d1.status='A' and d1.subjectscheduleid='\"+subjectscheduleid+\"' join sectionschedule i1 on a1.standardscheduleid=i1.standardscheduleid and i1.sectionschedulestatus='A' join studentallocation e1 on e1.studentallocationstatus='A' and i1.sectionscheduleid=e1.sectionscheduleid join candidateregister f1 on e1.candidateregisterid=f1.candidateregisterid and f1.candidateregisterstatus='A' join personmaster g1 on f1.personid=g1.personid and g1.status='A' join exammark c1 on b1.examscheduleid=c1.examscheduleid and d1.theoryexternalmin<=c1.marktaken and c1.studentallocationid=e1.studentallocationid and c1.markstatus='A'\"; \r\n\t\t\t\tselect_query \t= \"select concat(firstname,' ',lastname)as studentname, marktaken, d1.theoryexternalmax from examallotment a1 join examschedule b1 on a1.examnameid='\"+examnameid+\"' and a1.standardscheduleid='\"+standardscheduleid+\"' and a1.examallotmentstatus='A' and a1.examallotmentid=b1.examallotmentid and (b1.examschedulestatus='R') and (b1.markpublishstatus='R') join subjectschedule d1 on b1.subjectscheduleid=d1.subjectscheduleid and d1.status='A' and d1.subjectscheduleid='\"+subjectscheduleid+\"' join sectionschedule i1 on a1.standardscheduleid=i1.standardscheduleid and i1.sectionschedulestatus='A' join studentallocation e1 on e1.studentallocationstatus='A' and i1.sectionscheduleid=e1.sectionscheduleid join candidateregister f1 on e1.candidateregisterid=f1.candidateregisterid and f1.candidateregisterstatus='A' join personmaster g1 on f1.personid=g1.personid and g1.status='A' join exammark c1 on b1.examscheduleid=c1.examscheduleid and cast(d1.theoryexternalmin as unsigned integer) <= cast(c1.marktaken as unsigned integer) and c1.studentallocationid=e1.studentallocationid and c1.markstatus='A'\";\r\n\t\t\t\tperiodsList \t= common_data_object.getListMap(select_query);\r\n\t\t\t}\r\n\t\t\tcatch(Exception exception) { \r\n\t\t\t\tlog.error(exception);\r\n\t\t\t}\r\n\t\t\treturn periodsList;\r\n\t}", "title": "" }, { "docid": "b03c3cf11019d2f9255fd8579dad4065", "score": "0.5117249", "text": "public Date getSsTstart() {\n return ssTstart;\n }", "title": "" }, { "docid": "35db1c202d9272b44899b4b0f2e52158", "score": "0.511486", "text": "public String getThisStartDate()\n {\n return this.startDate;\n }", "title": "" }, { "docid": "088c2ab203b55f307cc3d49b9717e3f0", "score": "0.51135933", "text": "public void click_EndDate() {\n\t\tendDate.click();\r\n\t}", "title": "" }, { "docid": "f093849a13cac0e65c36716539fea43b", "score": "0.5109851", "text": "java.sql.Date getStartDate() throws java.rmi.RemoteException;", "title": "" }, { "docid": "60f214cf284197403067617d64560a81", "score": "0.5107801", "text": "public M csrInDateStart(Object start){this.put(\"csrInDateStart\", start);return this;}", "title": "" }, { "docid": "3a5c068e64fde910cbabafcb8409b998", "score": "0.51039225", "text": "public void seeRDVs (String SDate, String EDate) {\n String rqt = \"\";\n if (SDate != \"\" && EDate != \"\") {\n rqt = \"SELECT * FROM RDV WHERE SDate > '\" + SDate + \"' AND SDate < '\" + EDate + \"'\";\n } else if (SDate != \"\") {\n rqt = \"SELECT * FROM RDV WHERE SDate > '\" + SDate + \"'\";\n } else if (EDate != \"\") {\n rqt = \"SELECT * FROM RDV WHERE SDate < '\" + EDate + \"'\";\n }\n else rqt = \"SELECT * FROM RDV\";\n\n if (rqt != \"\") {\n executeRequest(rqt);\n System.out.println(\"\\n\\nPK\\t\\t SDate\\t\\t montant\\t\\t moyenPayment\");\n displayResultSet();\n }\n }", "title": "" }, { "docid": "2dc43e41f3a48b2111e62b4c1a70c26e", "score": "0.5097886", "text": "public Date getStart_date() {\n\t\treturn start_date;\n\t}", "title": "" }, { "docid": "1990023f4b53e4608ca1b1ec3145e59d", "score": "0.5095359", "text": "public void instantiateStudyPeriod() {\n try (Statement stsm = con.createStatement()) {\n\n ResultSet results = stsm.executeQuery(\"SELECT * FROM StudyPeriods;\");\n\n while (results.next()) {\n int regNum = results.getInt(1);\n String label = results.getString(2);\n String courseCode = results.getString(3);\n String degreeLvl = results.getString(4);\n Date startDate = results.getDate(5);\n Date endDate = results.getDate(6);\n String gradeQuery = \"SELECT moduleCode, mark, resitMark FROM Grades WHERE regNum = ? AND label = ?;\";\n try (PreparedStatement stsm2 = con.prepareStatement(gradeQuery)) {\n stsm2.clearParameters();\n stsm2.setInt(1, regNum);\n stsm2.setString(2, label);\n ResultSet gradesResult = stsm2.executeQuery();\n ArrayList<Grade> gradesList = new ArrayList<>();\n while (gradesResult.next()) {\n Double mark = gradesResult.getDouble(2);\n if (gradesResult.wasNull())\n mark = null;\n Double remark = gradesResult.getDouble(3);\n if (gradesResult.wasNull())\n remark = null;\n Grade g = new Grade(Module.getInstance(gradesResult.getString(1)), mark, remark);\n gradesList.add(g);\n }\n new StudyPeriod(regNum, label, startDate, endDate, StudyLevel.getInstance(degreeLvl + courseCode),\n gradesList);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "d6d3c1559e8162c5c1bb44914b5d3056", "score": "0.50951165", "text": "public Calendar getEndDate() {\n return endDate;\n }", "title": "" } ]
eaee8fe4bc2ae38afbdec6598a37b585
Tests checking a connector's name for usage by another.
[ { "docid": "3a8696589344930face186f4f853669f", "score": "0.7387619", "text": "@Test\n @DisplayName(\"Tests checking a connector's name for usage by another.\")\n @SneakyThrows(Exception.class)\n void testCheckConnectorName() {\n mockMvc.perform(get(\"/api/connector/check/\" + Base64.getEncoder().encodeToString(\"connector-name\".getBytes()) + \"/connector-id\"))\n .andExpect(status().isOk())\n .andExpect(content().string(\"false\"));\n\n TestConnector testConnector = new TestConnector();\n testConnector.setId(\"connector-id\");\n when(connectorManager.loadByName(\"connector name\")).thenReturn(testConnector);\n\n // Same connector:\n mockMvc.perform(get(\"/api/connector/check/\" + Base64.getEncoder().encodeToString(\"connector name\".getBytes()) + \"/connector-id\"))\n .andExpect(status().isOk())\n .andExpect(content().string(\"false\"));\n\n // Different connector with same name:\n mockMvc.perform(get(\"/api/connector/check/\" + Base64.getEncoder().encodeToString(\"connector name\".getBytes()) + \"/other-connector-id\"))\n .andExpect(status().isOk())\n .andExpect(content().string(\"true\"));\n }", "title": "" } ]
[ { "docid": "cee515f28ea4edd60bb8d511426417dc", "score": "0.58611476", "text": "@Test\n public void shouldRequireAnExternalConnection() {\n boolean result = command.requiresExternalConnection();\n \n // Then the answer should be true\n assertTrue(result);\n }", "title": "" }, { "docid": "15e81ccfad1ecba990a0562c0695549c", "score": "0.57737494", "text": "public String getConnectorName() { return connectorName; }", "title": "" }, { "docid": "58c8dc3673221416e77e9ab024858522", "score": "0.5748367", "text": "public AssemblyConnectorTest(String name) {\n\t\tsuper(name);\n\t}", "title": "" }, { "docid": "92e3f2056f9c35170be4b4c7a195927a", "score": "0.5678098", "text": "@Test\n @DisplayName(\"Tests creating a connector.\")\n @SneakyThrows(Exception.class)\n void testCreateConnector() {\n when(igorComponentRegistry.createConnectorInstance(anyString(), anyMap())).thenReturn(new TestConnector());\n\n when(igorComponentUtil.getTypeId(any(TestConnector.class))).thenReturn(\"type-id\");\n when(igorComponentUtil.getCategoryId(any(TestConnector.class))).thenReturn(\"category-id\");\n\n TestConnector testConnector = new TestConnector();\n testConnector.setId(\"connector-id\");\n testConnector.setName(\"connector-name\");\n\n when(connectorManager.save(any(Connector.class))).thenReturn(testConnector);\n\n mockMvc.perform(post(\"/api/connector\")\n .contentType(MediaType.APPLICATION_JSON_VALUE)\n .content(objectMapper.writeValueAsString(testConnector)))\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.id\").value(\"connector-id\"))\n .andExpect(jsonPath(\"$.name\").value(\"connector-name\"));\n\n verify(connectorManager, times(1)).save(testConnector);\n\n // Connector with same name already exists:\n TestConnector existingConnector = new TestConnector();\n existingConnector.setId(\"another-id\");\n when(connectorRepository.findByName(anyString())).thenReturn(existingConnector);\n\n mockMvc.perform(post(\"/api/connector\")\n .contentType(MediaType.APPLICATION_JSON_VALUE)\n .content(objectMapper.writeValueAsString(testConnector)))\n .andExpect(status().isBadRequest())\n .andExpect(jsonPath(\"$.connector-id.name\").value(\"a connector with the same name already exists\"));\n }", "title": "" }, { "docid": "177bd767598373512ac920d2a0de0fde", "score": "0.56769204", "text": "@Test\n\tpublic void testSchemaName01() {\n\t\tString schemaName = \"some schema\";\n\t\tConnectionDefinitionType result = new ConnectionDefinitionType()\n\t\t\t.withSchemeName(new SchemeName().withValue(schemaName));\n\t\tassertThat(result.getSchemeName().getValue(), is(schemaName));\n\t}", "title": "" }, { "docid": "8e28863e186f1e316c446548050e23ac", "score": "0.5636017", "text": "@Test\n @DisplayName(\"Tests testing a connector.\")\n @SneakyThrows(Exception.class)\n void testTestConnector() {\n when(igorComponentRegistry.createConnectorInstance(anyString(), anyMap())).thenReturn(new TestConnector());\n\n when(igorComponentUtil.getTypeId(any(TestConnector.class))).thenReturn(\"type-id\");\n when(igorComponentUtil.getCategoryId(any(TestConnector.class))).thenReturn(\"category-id\");\n\n mockMvc.perform(post(\"/api/connector/test\")\n .contentType(MediaType.APPLICATION_JSON_VALUE)\n .content(objectMapper.writeValueAsString(new TestConnector())))\n .andExpect(status().isOk())\n .andExpect(content().string(\"{}\"));\n\n when(igorComponentRegistry.createConnectorInstance(anyString(), anyMap())).thenReturn(new ExceptionProvocingTestConnector());\n\n mockMvc.perform(post(\"/api/connector/test\")\n .contentType(MediaType.APPLICATION_JSON_VALUE)\n .content(objectMapper.writeValueAsString(new TestConnector())))\n .andExpect(status().isFailedDependency())\n .andExpect(jsonPath(\"$.generalError\").exists());\n }", "title": "" }, { "docid": "b6870bb23321f3af1abc245ad16bd3a8", "score": "0.56031233", "text": "@Test\n @DisplayName(\"Test getting a specific connector.\")\n @SneakyThrows(Exception.class)\n void testGetConnector() {\n when(igorComponentUtil.getTypeId(any(TestConnector.class))).thenReturn(\"type-id\");\n when(igorComponentUtil.getCategoryId(any(TestConnector.class))).thenReturn(\"category-id\");\n\n mockMvc.perform(get(\"/api/connector/connector-id\")).andExpect(status().isNotFound());\n\n TestConnector testConnector = new TestConnector();\n when(connectorManager.load(\"connector-id\")).thenReturn(testConnector);\n\n MvcResult mvcResult = mockMvc.perform(get(\"/api/connector/connector-id\")).andExpect(status().isOk()).andReturn();\n\n TestConnector result = convert(mvcResult, TestConnector.class);\n\n assertEquals(testConnector, result);\n }", "title": "" }, { "docid": "88f118700cfd36552fde1a7eaa935aa1", "score": "0.55714816", "text": "public void testConnection() {\n\t\tComparisonFailure failure= new ComparisonFailure(\"warning\", \"Mary had a little lamb\", \"Mary had the little lamb\");\n\t\tassertEquals(\"warning expected:<Mary had [a] little lamb> but was:<Mary had [the] little lamb>\", failure.getMessage());\n\t}", "title": "" }, { "docid": "95fa70da7459016db86f57ca03c897d5", "score": "0.55688536", "text": "private void validateConnectors(List<ConnectorTuple> connectorTuples) throws ArchitectureExtractorException {\n\t\tfor (ConnectorTuple tuple : connectorTuples) {\n\t\t\tif (!BIPChecker.connectorExists(this.bipFileModel, tuple.getConnectorInstanceName())) {\n\t\t\t\tthrow new ConnectorNotFoundException(\"The connector instance with name \"\n\t\t\t\t\t\t+ tuple.getConnectorInstanceName() + \" does not exist in the BIP file\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a4838d94930e66e9078c23be76887310", "score": "0.5530509", "text": "@Override\n\tpublic boolean equals(Object obj) {\n\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn ((Connector) obj).getName().equals(this.name);\n\t}", "title": "" }, { "docid": "e7acf0e18f2eeb5af13dd998656a718e", "score": "0.5517875", "text": "@Test\n @DisplayName(\"Tests updating a connector.\")\n @SneakyThrows(Exception.class)\n void testUpdateConnector() {\n TestConnector testConnector = new TestConnector();\n testConnector.setId(\"connector-id\");\n testConnector.setName(\"update-test\");\n\n when(igorComponentUtil.getTypeId(any(TestConnector.class))).thenReturn(\"type-id\");\n when(igorComponentUtil.getCategoryId(any(TestConnector.class))).thenReturn(\"category-id\");\n\n when(igorComponentRegistry.createConnectorInstance(anyString(), anyMap())).thenReturn(new TestConnector());\n when(connectorManager.save(any(Connector.class))).thenReturn(testConnector);\n\n mockMvc.perform(post(\"/api/connector\")\n .contentType(MediaType.APPLICATION_JSON_VALUE)\n .content(objectMapper.writeValueAsString(testConnector)))\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.id\").value(\"connector-id\"))\n .andExpect(jsonPath(\"$.name\").value(\"update-test\"));\n\n verify(connectorManager, times(1)).save(testConnector);\n\n // Existing name, different connector:\n TestConnector existingconnector = new TestConnector();\n existingconnector.setId(\"existing-connector-id\");\n when(connectorRepository.findByName(\"update-test\")).thenReturn(existingconnector);\n\n mockMvc.perform(post(\"/api/connector\")\n .contentType(MediaType.APPLICATION_JSON_VALUE)\n .content(objectMapper.writeValueAsString(testConnector)))\n .andExpect(status().isBadRequest());\n }", "title": "" }, { "docid": "fc882ec82ad7f4acb27ed6acfa28af33", "score": "0.54196924", "text": "CheckNameAvailabilityResult checkEndpointNameAvailability(String name);", "title": "" }, { "docid": "88fdca8c40bf09ac090944f8227aedd7", "score": "0.53697854", "text": "boolean isValidChannel(@NonNull String name);", "title": "" }, { "docid": "e55cad6998cbdba943e815600888c7b0", "score": "0.53071916", "text": "@Test public void anotherNameMatches() {\n\t\tAssert.assertEquals(ANOTHER_NAME, another.getName());\n\t}", "title": "" }, { "docid": "0459513aea2b0864498f533c37443612", "score": "0.5289826", "text": "@Test\n public void sourceConnectionIdentifierTest() {\n // TODO: test sourceConnectionIdentifier\n }", "title": "" }, { "docid": "ae1ee4694df25ff632114a578a337c29", "score": "0.52502894", "text": "@Test\n\tpublic void testGetConnectionStringString()\n\t\t\tthrows Exception {\n\t\tdataSource.getXAConnection(\"u\", \"p\");\n\t\tverify(delegate).getXAConnection(\"u\", \"p\");\n\t}", "title": "" }, { "docid": "498bb5dce7f7b7debed68dc569ed58db", "score": "0.52477396", "text": "public boolean hasAlias(String name);", "title": "" }, { "docid": "cfcef7a897d76371c248f4d358029e9c", "score": "0.52327657", "text": "@Test\n\tpublic void testAddClientsWithInvalidNames() {\n\t\tClientManager manager = new ClientManager();\n\t\tClient client1 = new Client(\"client[s\", System.out);\n\t\tClient client2 = new Client(\"clien[]ts\", new OutputStream() {\n\t\t\t@Override\n\t\t\tpublic void write(int b) throws IOException {\n\t\t\t}\n\t\t});\n\t\tmanager.addClient(client1);\n\t\tmanager.addClient(client2);\n\t\tSet<Client> clients = manager.getClients();\n\t\tassertEquals(1, clients.size());\n\t}", "title": "" }, { "docid": "dd92dea2620783c60954588cec9bc6cd", "score": "0.5231963", "text": "@Test\n\tpublic void testGetName() {\n\t\tint width = 800; \n\t\tint height = 600;\n\t\tCanvas canvas = new Canvas(width, height, null, \"canvas\");\n\t\tWhiteboard whiteboard = new Whiteboard(\"testName\", canvas);\n\t\tassertEquals(\"testName\", whiteboard.getName());\n\t\tassertTrue(whiteboard.getUsers().equals(new HashSet<String>()));\n\t}", "title": "" }, { "docid": "72c74e45986ca61c8f97d8ac0107326b", "score": "0.52023333", "text": "public void testCreateDBConnectionWithValidConnNameArg() throws Exception {\n try {\n UserLogicPersistenceHelper.createDBConnection(new DBConnectionFactoryImpl(DB_CONNECTIONFACTORY_NAMESPACE),\n DB_CONNECTION_NAME);\n } catch (PersistenceException e) {\n fail(\"The DB connection was not created\");\n }\n }", "title": "" }, { "docid": "a4c7c2663e43e82a865ab65c5f831190", "score": "0.51959854", "text": "public boolean checkName(String name) throws RemoteException;", "title": "" }, { "docid": "d21ce32d0625eadcec151f5a73b13aa5", "score": "0.51943177", "text": "@Test\n\tvoid testValidName() {\n\t\tSquare square1 = new Square();\n\t\tsquare1.setName(name);\n\t\tassertEquals(name, square1.getName());\n\n\t}", "title": "" }, { "docid": "50c5507022085d362bc1fccbece447f3", "score": "0.5188075", "text": "CheckNameAvailabilityResult checkNameAvailability(String name);", "title": "" }, { "docid": "50c5507022085d362bc1fccbece447f3", "score": "0.5188075", "text": "CheckNameAvailabilityResult checkNameAvailability(String name);", "title": "" }, { "docid": "5b51967f963600bded4eac752b866863", "score": "0.51802677", "text": "public void setConnector(Connector connector) {\n this.connector = connector;\n }", "title": "" }, { "docid": "1282300ab238469a396a6e748158f8cf", "score": "0.51706874", "text": "protected boolean isConnectionValid(Fig source, Fig dest) {\n\treturn Model.getUmlFactory().isConnectionValid(\n\t\tgetMetaType(), \n\t\tsource.getOwner(), \n\t\tdest.getOwner(),\n true);\n }", "title": "" }, { "docid": "b9feb46e88f0fab1063590a747ce8e20", "score": "0.5163646", "text": "public void testGetDataSourceName() {\n System.out.println(\"getDataSourceName\");\n JDBCPool instance = new JDBCPool();\n String expResult = \"\";\n String result = instance.getDataSourceName();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n stubTestResult(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "4220e8127b87442d396098391787c7a9", "score": "0.515846", "text": "Connector createConnector();", "title": "" }, { "docid": "4220e8127b87442d396098391787c7a9", "score": "0.515846", "text": "Connector createConnector();", "title": "" }, { "docid": "a687b108919284912732d4cb395a155b", "score": "0.5145378", "text": "public abstract Connector getConnector(Connection connection) throws ConnectionCheckedException, ConnectorCheckedException;", "title": "" }, { "docid": "30751735dbc57cc19119337d68cde466", "score": "0.51401967", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n connectionFactories0.enumerateTopicConnectionFactory();\n int int0 = (-2463);\n XAQueueConnectionFactory xAQueueConnectionFactory0 = new XAQueueConnectionFactory();\n xAQueueConnectionFactory0.isValid();\n connectionFactories0.addXAQueueConnectionFactory(xAQueueConnectionFactory0);\n XAConnectionFactory xAConnectionFactory0 = new XAConnectionFactory();\n xAConnectionFactory0.isValid();\n xAConnectionFactory0.isValid();\n try { \n xAConnectionFactory0.validate();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // name is a required field.\n //\n verifyException(\"org.exolab.castor.xml.FieldValidator\", e);\n }\n }", "title": "" }, { "docid": "14434edf6fe1e6ed5c8d3ebd6d674eac", "score": "0.5131972", "text": "public static void waitForConnectorStability(String connectorName, String connectPodName) {\n // alternative to sync hassling AtomicInteger one could use an integer array instead\n // not need to be final because reference to the array does not get another array assigned\n int[] i = {0};\n\n TestUtils.waitFor(\"Waiting for stability of connector \" + connectorName, Constants.GLOBAL_POLL_INTERVAL, Constants.GLOBAL_TIMEOUT,\n () -> {\n String availableConnectors = KafkaConnectUtils.getCreatedConnectors(connectPodName);\n if (availableConnectors.contains(connectorName)) {\n LOGGER.info(\"Connector with name {} is present. Remaining seconds for stability {}\", connectorName,\n Constants.GLOBAL_RECONCILIATION_COUNT - i[0]);\n return i[0]++ == (Constants.GLOBAL_RECONCILIATION_COUNT);\n } else {\n throw new RuntimeException(\"Connector\" + connectorName + \" is not stable!\");\n }\n }\n );\n }", "title": "" }, { "docid": "d10c708d84fec32446622c9d011dc97c", "score": "0.5130436", "text": "protected abstract boolean isAliasAlreadyTaken( String alias );", "title": "" }, { "docid": "bcff481cda835251fa55846e7438d45e", "score": "0.51027375", "text": "boolean checkName(String name);", "title": "" }, { "docid": "378fadce973fd33fe7060570d4c7e69e", "score": "0.5090394", "text": "public String connectorName() {\n return this.connectorName;\n }", "title": "" }, { "docid": "56cb5cbd241376032c33796fd5aef350", "score": "0.50797933", "text": "Connector getConnector();", "title": "" }, { "docid": "cc066233ed5ae7763c34d16a8c6dab66", "score": "0.5078722", "text": "@Test\n public void connectionIdTest() {\n // TODO: test connectionId\n }", "title": "" }, { "docid": "9241001cf9862d81498f4f83c47b66a6", "score": "0.50768334", "text": "@Test\n public void testCheckAddressAlreadyExistsUnknown()\n {\n assertThat(m_SUT.checkAddressAlreadyExists(\"Base:jack-Jill\"), is(false));\n }", "title": "" }, { "docid": "67a07196630f6db7374c79bb8269ec31", "score": "0.50756824", "text": "public boolean testConnectionToSattelite(String extName, String host, String port) {\n\t\tIExtension<? extends IExtensionArtifact> extension = ExtensionRegistry.getSingleton().getExtension(extName);\n\t\tif (extension == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (extension instanceof AbstractSpotterSatelliteExtension) {\n\t\t\tAbstractSpotterSatelliteExtension satellite = (AbstractSpotterSatelliteExtension) extension;\n\t\t\treturn satellite.testConnection(host, port);\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "3315e36617304347c63558e61bb73048", "score": "0.50600415", "text": "@Test\n public void aliasTest() {\n // TODO: test alias\n }", "title": "" }, { "docid": "0c1d3c97be67d3b43ffe1a3e24d5d176", "score": "0.5041554", "text": "public void testCreateDBConnectionWithUnknownConnNameArg() throws Exception {\n try {\n UserLogicPersistenceHelper.createDBConnection(new DBConnectionFactoryImpl(DB_CONNECTIONFACTORY_NAMESPACE),\n \"unknownConnection\");\n fail(\"PersistenceException should be thrown: could not create the DB connection\");\n } catch (PersistenceException e) {\n // Success.\n }\n }", "title": "" }, { "docid": "e17f31a592764b41bb84811860640194", "score": "0.5035077", "text": "@Test\n public void testAlgorithmNameDefined()\n {\n String algorithmName = digester.getAlgorithm();\n Assert.assertNotNull( \"The algorithm name is null.\", algorithmName );\n Assert.assertTrue( \"The algorithm name is empty.\", algorithmName.length() > 0 );\n }", "title": "" }, { "docid": "9857b6736d4c0b31d0a330f96b9adbf2", "score": "0.5029685", "text": "public void testConnectivity() {\n\n\t}", "title": "" }, { "docid": "61757487d8fbc8c34bcf0e78b155292e", "score": "0.50221", "text": "@Test\n public void testCanHandle_IncorrectIntentName() {\n // Arrange\n Slot languageSlot = buildSlot(Slots.LANGUAGE_SLOT, languageSlotRawValue, languageSlotResolvedValue,\n languageSlotId);\n\n Map<String, Slot> slots = new HashMap<>();\n slots.put(Slots.LANGUAGE_SLOT, languageSlot);\n\n HandlerInput input = buildHandlerInput(slots, \"anIntentThatIsNotTalkLikeSomeoneIntent\");\n\n // Act\n boolean actualValue = unitUnderTest.canHandle(input);\n\n // Assert\n assertFalse(\"canHandle should return false when any intent other than TalkLikeSomeoneIntent is passed.\",\n actualValue);\n }", "title": "" }, { "docid": "5df88d1f70e3337dc95e965925494706", "score": "0.5017082", "text": "public static boolean checkDatabase(Connection connection, String name)\n {\n \tboolean isCorrect=false;\n \ttry\n \t{\n \t\tPreparedStatement stmt = connection.prepareStatement(QUIZ_DB_NAME);\n\t ResultSet rs = stmt.executeQuery();\n\t if(rs.next())\n\t {\n\t \tString dbName=rs.getString(1);\n\t \tif(dbName==null||dbName.length()==0)\n\t \t{\n\t \t\treturn false;\n\t \t}\n\t \tint dot=dbName.indexOf(\".\");\n\t \tif(dot>0)\n\t \t{\n\t \t\tdbName=dbName.substring(0,dot);\n\t \t}\n\t \tSystem.out.println(\"dbName=\"+dbName+\" name=\"+name);\n\t \tif(dbName.toLowerCase().compareTo(name.toLowerCase())==0)\n\t \t{\n\t \t\treturn true;\n\t \t}\n\t }\n\t \n \t}\n \tcatch(Exception e)\n \t{\n \t\te.printStackTrace();\n \t}\n \treturn isCorrect;\n }", "title": "" }, { "docid": "cdaf596c40e0db25df0f7d5d4fa83ebd", "score": "0.5016421", "text": "@Test\r\n\tpublic void testName() {\n\t\tString t = \"true\";\r\n\t\ttry {\r\n\t\t\ts.validateName(\"Apple\");\r\n\t\t} catch (AppException e) {\r\n\t\t\tt = \"false\";\r\n\t\t}\r\n\t\tassertEquals(\"true\", t);\r\n\t}", "title": "" }, { "docid": "8adec068bcbc420fd0aed81acce113ba", "score": "0.49929407", "text": "private boolean isConnect(String s1, String s2) {\n int diffCnt = 0;\n for (int i = 0; i < s1.length() && diffCnt <= 1; i++) {\n if (s1.charAt(i) != s2.charAt(i)) {\n diffCnt++;\n }\n }\n return diffCnt == 1;\n }", "title": "" }, { "docid": "144aa54f019146285cabdf08bda77266", "score": "0.49847755", "text": "private static boolean equalsURL(DiscoveryResponse discovery, URL providedName) {\r\n\r\n //\r\n // Nothing provided - no match\r\n //\r\n if (null == discovery) {\r\n return false;\r\n }\r\n\r\n URL discoveryName;\r\n try {\r\n discoveryName = new URL(discovery.getLocation());\r\n } catch (MalformedURLException e) {\r\n\r\n // Something bad happened. Log it (it is only of interest to the sysadmin, not to the user)\r\n LOG.warn(\"Found invalid discovery end point : \" + discovery.getLocation(), e);\r\n return false;\r\n }\r\n\r\n return providedName.equals(discoveryName);\r\n\r\n }", "title": "" }, { "docid": "7dbfd24158620583c5aa230e13cd2f32", "score": "0.49806085", "text": "@Test\n public void shouldReturnRightCommandName() {\n String commandName = command.getCommandName();\n \n // Then the name should be \"validate\"\n assertThat(commandName, is(\"validate\"));\n }", "title": "" }, { "docid": "3308c9b60254108a782b1cf68bc54f60", "score": "0.49525273", "text": "@Test\r\n\tpublic void readSpecificComputer(String name) {\r\n\t\tsearchTest(name);\r\n\t\treadTest();\r\n\t}", "title": "" }, { "docid": "73102cdc196f5cf0deb66cb9de907299", "score": "0.4948421", "text": "@Test\n public void isAliasUsableTest() throws Exception {\n Map<String, Object> params = new HashMap<>();\n params.put(Constants.VERSION_KEY_STR, \"1.0\");\n params.put(Constants.CHAIN_ID, chainId);\n params.put(\"alias\", \"nuls2\");\n Response cmdResp = ResponseMessageProcessor.requestAndResponse(ModuleE.AC.abbr, \"ac_isAliasUsable\", params);\n assertNotNull(cmdResp);\n HashMap result = (HashMap) ((HashMap) cmdResp.getResponseData()).get(\"ac_isAliasUsable\");\n assertNotNull(result);\n Boolean value = (Boolean) result.get(\"value\");\n System.out.println(value);\n }", "title": "" }, { "docid": "54c969777de4391b6d7d0eeab9ea9558", "score": "0.49456894", "text": "@Then(\"^I validate Test Connection$\")\n\tpublic void i_validate_Test_Connection() throws Throwable {\n\t \n\t}", "title": "" }, { "docid": "a30e49294735aa9bec5bc01d824552b4", "score": "0.49455267", "text": "public boolean checkName(String tblName, String name) {\n boolean bl = true;\n try {\n Statement statement = DatabaseLibConnection.getConnection().createStatement();\n String sql = \"select * from \" + tblName + \" where name = '\" + name + \"'\";\n ResultSet rs = statement.executeQuery(sql);\n if (rs.next()) {\n bl = true;\n }else {\n bl = false;\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n return bl;\n }", "title": "" }, { "docid": "48ee646e6229dcc8746465ae1f75478a", "score": "0.49439397", "text": "@Test\n public void testConnections() {\n System.out.println(\"searchConnection\");\n \n Connection result1 = this.node1.searchConnection(this.node2);\n Connection result2 = this.node2.searchConnection(this.node1);\n assertEquals(result1, result2);\n }", "title": "" }, { "docid": "39649437b500230265be80d1157fd665", "score": "0.49428904", "text": "public void setConnectorAddress(String connectorAddress) {\r\n this.connectorAddress = connectorAddress;\r\n }", "title": "" }, { "docid": "8c469c0fb838edb462f7ff86dcd10302", "score": "0.49414346", "text": "@Test\r\n\tpublic void testName1() {\n\t\tString t = \"true\";\r\n\t\ttry {\r\n\t\t\ts.validateName(\"apple\");\r\n\t\t} catch (AppException e) {\r\n\t\t\tt = \"false\";\r\n\t\t}\r\n\t\tassertEquals(\"false\", t);\r\n\t}", "title": "" }, { "docid": "e26072d5367c59ade55c81df0f15ccdd", "score": "0.49252737", "text": "public static boolean testLogin1() {\n AccessControl ac1 = new AccessControl();\n String user = \"probablyNotInTheSystem1234\"; // not in system\n String pw = \"changeme\"; // DEFAULT_PASSWORD\n return !AccessControl.isValidLogin(user, pw);\n // isValidLogin should return false since login is invalid\n }", "title": "" }, { "docid": "56f87ebce654364f853531df6c6d77f1", "score": "0.49168047", "text": "@Test\n public void testIncorrectHostDetails() {\n BaseConnection connection = new BaseConnection(new ConnectionInfo(DEV_HOST, DEV_PORT_I, DEV_ACCOUNT, DEV_PASSWORD, \"test\", \"23\"));\n connection.start();\n\n await().until(() -> connection.getAuthenticator().getState() != null);\n\n Log.d(\"Connection Test\", \"State: \" + connection.getAuthenticator().getState());\n\n assertThat(connection.getAuthenticator().getState()).isEqualTo(EXPECTED_RESULT_3);\n }", "title": "" }, { "docid": "4252de41a57c58790f349675c84a54d3", "score": "0.49150884", "text": "public void testCtor_emptyConnName() throws Exception {\r\n ObjectValidator validator = createObjectValidator();\r\n DBConnectionFactory factory = this.createDBConnectionFactory();\r\n\r\n try {\r\n new InformixRoleCategoryPersistence(factory, \" \", validator);\r\n fail(\"The connectionName instance is empty.\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "title": "" }, { "docid": "91d9cce899d4aba5fc356719d5bccd4f", "score": "0.49142638", "text": "private Test_input_connectionPackage() {}", "title": "" }, { "docid": "943cae853f7243eec5b9aff3e33bc6a7", "score": "0.49118572", "text": "@Test(timeout = 4000)\n public void test31() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n XAConnectionFactory xAConnectionFactory0 = new XAConnectionFactory();\n ConnectionFactories connectionFactories1 = new ConnectionFactories();\n connectionFactories1.addXAConnectionFactory(xAConnectionFactory0);\n assertEquals(1, connectionFactories1.getXAConnectionFactoryCount());\n }", "title": "" }, { "docid": "a572a0e5069cf459a779d3276d240335", "score": "0.49111542", "text": "public boolean addConnectionManagerForSource(String schemaName)\r\n {\n return false;\r\n }", "title": "" }, { "docid": "8b9dedc21e2b7f39215d1971768da9e5", "score": "0.49098042", "text": "public boolean checkConnect() {\r\n return true;\r\n }", "title": "" }, { "docid": "27514382813182e927e6b086580222ac", "score": "0.4901102", "text": "boolean connectsWith(String id) {\r\n\r\n\t\tfor (String temp : connections) {\r\n\r\n\t\t\tif (temp.equals(id.trim()))\r\n\t\t\t\treturn true;\r\n\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\r\n\t}", "title": "" }, { "docid": "b4f7c3a8589026e49741fdc9af3df24b", "score": "0.4892792", "text": "@Test\n public void testCheckAddressAlreadyExistsNoFactory()\n {\n assertThat(m_SUT.checkAddressAlreadyExists(\"Monkey:jack-Jill\"), is(false));\n }", "title": "" }, { "docid": "78ce6af5319423f22d05ba540d8d75e2", "score": "0.48899665", "text": "@Test\r\n\tpublic void testGetColumnsDuplicateName() {\n\t\tColumnModel zero = newSchema.get(0);\r\n\t\tColumnModel one = newSchema.get(1);\r\n\t\tone.setName(zero.getName());\r\n\t\t//Call under test\r\n\t\ttry{\r\n\t\t\tcolumnModelManager.getAndValidateColumnModels(expectedNewSchemaIds);\r\n\t\t\tfail();\r\n\t\t}catch( IllegalArgumentException e) {\r\n\t\t\t// expected\r\n\t\t\tassertEquals(\"Duplicate column name: 'col_444'\", e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6ef84702b182ba82a8f8b1c1c0b00bae", "score": "0.48836216", "text": "public void testSetNameWorks() {\n instance.setName(NAME);\n checkName(instance, NAME, \"The names did not match.\");\n }", "title": "" }, { "docid": "eead8ff795524c8d4640bc9d5c9c7f2c", "score": "0.4864373", "text": "@Test\n public void nameKanaTest() {\n // TODO: test nameKana\n }", "title": "" }, { "docid": "8fb5eb22af5f01a4f58a1e8f9896bcdc", "score": "0.4860984", "text": "public boolean test(HOST host);", "title": "" }, { "docid": "aa38a2a7108394a72f0465375e0f68be", "score": "0.4859929", "text": "public void testCtor2SetsName() {\n checkName(createInstance2(), NAME, \"The names did not match.\");\n }", "title": "" }, { "docid": "1d308080c26f346f228462f6f9c6d78e", "score": "0.48573294", "text": "@Test\n\tpublic void testGetConnectionUsernameSet()\n\t\t\tthrows Exception {\n\t\tdataSource.setPassword(\"password\");\n\t\tdataSource.setUsername(\"username\");\n\t\twhen(passwordDecryptor.decrypt(\"password\")).thenReturn(\"pvalue\");\n\n\t\tdataSource.getXAConnection();\n\t\tverify(delegate).getXAConnection(\"username\", \"pvalue\");\n\t}", "title": "" }, { "docid": "aa4e10f450ff552f8a69854cb548ef5f", "score": "0.48559153", "text": "@Test\r\n public void testEqualsTrivial()\r\n {\r\n synonym.setName(\"Test synonym\");\r\n RemoteMediaStoreTestHelper.checkEqualsTrivial(synonym);\r\n }", "title": "" }, { "docid": "42b77c0444e6e4eeff71b646b7714fc4", "score": "0.4855913", "text": "@Test\r\n public void singleDuplexConnection() throws Exception {\r\n commonTestSingleDuplexConnection();\r\n }", "title": "" }, { "docid": "766bf9fe7961135dcb98acd535b82c44", "score": "0.48525926", "text": "void setConnector(Connector cConnector);", "title": "" }, { "docid": "141bc7cc7cc5faa8f0925d5810dc77a5", "score": "0.48503608", "text": "@Test\r\n public void testUnicity4() {\r\n Factory f = ipojoHelper.getFactory(\"Factories-FooProviderType-2\");\r\n Factory f2 = ipojoHelper.getFactory(\"Factories-FooProviderType-1\");\r\n\r\n ComponentInstance ci1 = null, ci2;\r\n try {\r\n Properties p1 = new Properties();\r\n p1.put(\"instance.name\", \"name1\");\r\n ci1 = f.createComponentInstance(p1);\r\n Properties p2 = new Properties();\r\n p2.put(\"instance.name\", \"name1\");\r\n ci2 = f2.createComponentInstance(p2);\r\n assertThat(\"Check name ci1, ci2\", ci1.getInstanceName(), not(ci2.getInstanceName()));\r\n ci1.dispose();\r\n ci2.dispose();\r\n } catch (Exception e) {\r\n if (ci1 != null) {\r\n ci1.dispose();\r\n }\r\n return;\r\n }\r\n\r\n fail(\"An unacceptable configuration is acceptable\");\r\n }", "title": "" }, { "docid": "8edbbdffe694828774621b5c95d0c7e1", "score": "0.4850218", "text": "public void testUnitWithSameName() throws IOException, CoreException {\r\n\t\tfinal Topology top = createTopology(\"testUnitWithSameName\");\r\n\r\n\t\tfinal Unit unit = CoreFactory.eINSTANCE.createUnit();\r\n\t\tunit.setName(\"unit\");\r\n\t\ttop.getUnits().add(unit);\r\n\t\tassert unit.getStatus().getSeverity() == IStatus.OK;\r\n\r\n\t\tfinal Unit unit2 = CoreFactory.eINSTANCE.createUnit();\r\n\t\tunit2.setName(\"unit\");\r\n\t\ttop.getUnits().add(unit2);\r\n\t\tassert unit.getStatus().getSeverity() == IStatus.OK;\r\n\r\n\t\tinternalValidate(top, new TopologyMarkerTest() {\r\n\t\t\tpublic void check(IMarker[] markers, Topology topology)\r\n\t\t\t\t\tthrows CoreException {\r\n\t\t\t\tdumpStatus(top);\r\n\t\t\t\tassertMarkerExists(markers,\r\n\t\t\t\t\t\tICoreProblemType.OBJECT_ATTRIBUTE_NOT_UNIQUE, unit\r\n\t\t\t\t\t\t\t\t.getFullPath());\r\n\t\t\t\tassertMarkerExists(markers,\r\n\t\t\t\t\t\tICoreProblemType.OBJECT_ATTRIBUTE_NOT_UNIQUE, unit2\r\n\t\t\t\t\t\t\t\t.getFullPath());\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "70bfea9f2729e1c9312bc1b6dc916afe", "score": "0.4848063", "text": "@Test\n\tpublic void equalsDifferentName() {\n\t\tStore s1 = this.getBigStore();\n\t\tStore s2 = this.getBigStore();\n\t\ts2.setName(\"wrong name\");\n\t\tboolean equals = s1.equals(s2);\n\t\tAssert.assertTrue(equals);\n\t}", "title": "" }, { "docid": "418c96fde01f617186120c6c428611a6", "score": "0.4846868", "text": "@Test\n public void displayNameTest() {\n // TODO: test displayName\n }", "title": "" }, { "docid": "418c96fde01f617186120c6c428611a6", "score": "0.4846868", "text": "@Test\n public void displayNameTest() {\n // TODO: test displayName\n }", "title": "" }, { "docid": "c0747eb7ce94434c1cbe568dcdf61e95", "score": "0.4842289", "text": "@Test\n public void testDialogflowConnection() {\n // TODO: test DialogflowConnection\n }", "title": "" }, { "docid": "7a226ff6a88db203607dae08ab550fd7", "score": "0.48404273", "text": "@Test\n\tpublic void checkDBConnectionTest()\n\t{\n\t\tConnection connection = null;\n\n\t\ttry\n\t\t{\n\t\t\tconnection = Utils.getInstance().getDBConnection();\n\n\t\t\tassertEquals(connection.getMetaData().getDatabaseProductName(),\n\t\t\t\t\t\"PostgreSQL\");\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\n\t\t\tassertTrue(false);\n\t\t}\n\n\t}", "title": "" }, { "docid": "1dd4605581437084c498e3170488700b", "score": "0.48383602", "text": "boolean hasAlternateName();", "title": "" }, { "docid": "532be2d4b9ba983d8cf6d8bca3ca88ad", "score": "0.4831289", "text": "private static boolean testMuxConn() {\r\n ConnMgr cmgr = null; \r\n try {\r\n cmgr = new ConnMgr(backend, 6543, null, true);\r\n cmgr.dispose();\r\n } catch (IOException e) { return false; }\r\n return true;\r\n }", "title": "" }, { "docid": "9b826485c435e4a620e15cea2c046fb5", "score": "0.48301512", "text": "private void checkConnection() {\n\t\ttry {\n\t\t\tif (!con.isValid(2)) connect();\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\tSystem.err.println(\"PersistencyUtil/checkConnection: \" + e.toString());\n\t\t}\n\t}", "title": "" }, { "docid": "cedba2840571c9953a15aa114dc751ea", "score": "0.48294532", "text": "public void testNodeConnection() {\n\n\t}", "title": "" }, { "docid": "4391a9d102ff8a42134d29a4bd0d342e", "score": "0.48293415", "text": "@Test\n public void testCheckAddressAlreadyExistsBadFormat() throws CCommException\n {\n String addrString = \"Base:jack-Jill\";\n when(m_Translator.getAddressPropsFromString(addrString.split(\":\")[1])).\n thenThrow(new CCommException(FormatProblem.ADDRESS_MISMATCH));\n //act\n assertThat(m_SUT.checkAddressAlreadyExists(addrString), is(false));\n }", "title": "" }, { "docid": "288543ca3e2394789cb75a3485b479f5", "score": "0.48292708", "text": "public void testCtor_nullConnName() throws Exception {\r\n ObjectValidator validator = createObjectValidator();\r\n DBConnectionFactory factory = this.createDBConnectionFactory();\r\n\r\n try {\r\n new InformixRoleCategoryPersistence(factory, null, validator);\r\n fail(\"The connectionName instance is null.\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "title": "" }, { "docid": "d12a6eff8dce413907993e49a6ed4771", "score": "0.48289415", "text": "@Override\n\tvoid ConnectOK(String name) {\n\n\t}", "title": "" }, { "docid": "d470a0958af8559eb1e5468f1690dde4", "score": "0.48255637", "text": "@Test(expected = UnknownHostException.class)\n public void testConnectServerArgumentServerip()\n throws UnknownHostException {\n Client client = new Client();\n InetAddress addr = InetAddress.getByName(\"127.0.0.wrong\");\n boolean successful = client.connectServer(addr);\n assertFalse(successful);\n client.close();\n }", "title": "" }, { "docid": "ee5e892a4a57546e798d7a78318c5aa6", "score": "0.48214185", "text": "public void testCreateDBConnectionWithValidNullConnNameArg() throws Exception {\n try {\n UserLogicPersistenceHelper.createDBConnection(new DBConnectionFactoryImpl(DB_CONNECTIONFACTORY_NAMESPACE),\n DB_CONNECTION_NAME);\n } catch (PersistenceException e) {\n fail(\"The DB connection was not created\");\n }\n }", "title": "" }, { "docid": "177fde55dd8ec017f1afbda39fa491e4", "score": "0.48144773", "text": "Connector getConnected();", "title": "" }, { "docid": "08b0c64f8869e9607b1456d2af7a64e0", "score": "0.48076138", "text": "@Test public void shouldAcceptURLOK() throws NoSuchFieldException, IllegalAccessException, ClassNotFoundException, SQLException {\n\t\tBaseDriver driver = new BoltDriver();\n\t\tassertTrue(driver.acceptsURL(\"jdbc:neo4j:bolt://localhost:7474\"));\n\t\tassertTrue(driver.acceptsURL(\"jdbc:neo4j:bolt://192.168.0.1:7474\"));\n\t\tassertTrue(driver.acceptsURL(\"jdbc:neo4j:bolt://localhost:8080\"));\n\t}", "title": "" }, { "docid": "d2f3eb88da1f382ddb32e66e6001cb8f", "score": "0.4807138", "text": "@Test\n public void testName() {\n assertEquals(\"name must be invalid\", 3,\n account.registerUser(nameBad, emailGood, passwordGood, role));\n }", "title": "" }, { "docid": "18712d677000bca40d3ff5744f83d63b", "score": "0.4801841", "text": "@Test\n public void testAccessAlias() throws Exception {\n log.trace(\">test01Access()\");\n\n AvailableProtocolsConfiguration protConf = ((AvailableProtocolsConfiguration) this.globalConfigurationSession\n .getCachedConfiguration(AvailableProtocolsConfiguration.CONFIGURATION_ID));\n final boolean isProtocolEnabled = protConf.getProtocolStatus(\"EST\");\n\n try {\n if (!isProtocolEnabled) {\n // Enable if not enabled\n protConf.setProtocolStatus(\"EST\", true);\n this.globalConfigurationSession.saveConfiguration(ADMIN, protConf);\n }\n EstConfiguration config = (EstConfiguration) this.globalConfigurationSession.getCachedConfiguration(EstConfiguration.EST_CONFIGURATION_ID);\n\n //\n // Requests with an unknown alias gives a http 400, bad_request\n //\n sendEstRequest(config, \"cacerts\", \"alias123\", \"alias123\", 400); // \"alias123\" in the request causes EJBCA to use \"alias123\" as EST alias\n sendEstRequest(config, \"cacerts\", \"123\", \"123\", 400); // \"123\" in the request causes EJBCA to use \"123\" as EST alias\n sendEstRequest(config, \"cacerts\", \"\", \"est\", 400); // No alias in the request causes EJBCA to use \"est\" (the default alias) as EST alias\n sendEstRequest(config, \"cacerts\", null, \"est\", 400); // No alias in the request causes EJBCA to use \"est\" (the default alias) as EST alias\n sendEstRequest(config, \"cacerts\", \"abcdefghijklmnopqrstuvwxyz0123456789\", \"abcdefghijklmnopqrstuvwxyz0123456789\", 400); // too long alias (>32) gives bad request\n\n //\n // Requests with an unknown operation gives a http 404, not_found\n //\n sendEstRequest(config, \"cacerts\", \"alias??&!!foo\", \"alias\", 404); // Specifying alias with non-alphanumeric characters cause EJBCA to \n // strip everything after these chars, making the URL broken. As EST alias, a url of \n // https://localhost:8442/.well-known/est/alias??&!!foo/cacerts will on the server side be processed as\n // https://localhost:8442/.well-known/est/alias hence using 'alias' as operation, which is not a supported operation\n sendEstRequest(config, \"cacerts\", \"??##!!&\", \"est\", 404); // same as above, will result in HTTP request https://localhost:8442/.well-known/est/\n // i.e. with no method \n\n //\n // Requests to EST when it is disabled in protocol configuration gives a http 403, forbidden\n //\n // Disable protocol\n protConf.setProtocolStatus(\"EST\", false);\n this.globalConfigurationSession.saveConfiguration(ADMIN, protConf);\n sendEstRequest(config, \"cacerts\", \"\", \"est\", 403); // Not enabled will give forbidden\n\n } finally {\n // Restore values\n protConf.setProtocolStatus(\"EST\", isProtocolEnabled); \n this.globalConfigurationSession.saveConfiguration(ADMIN, protConf);\n }\n \n \n log.trace(\"<test01Access()\");\n }", "title": "" }, { "docid": "8419faa4fdd163a0f968e248a0375610", "score": "0.4800214", "text": "@Test\n public void componentNameTest() {\n // TODO: test componentName\n }", "title": "" }, { "docid": "cefa53534492b8efb7f877959649e0b3", "score": "0.47818488", "text": "@Test\n\tpublic void checkDatabaseConnection() \n\t{\n\t running(fakeApplication(), new Runnable() \n\t {\n\t public void run() \n\t {\n\t \t/**/\n\t try (Connection conn = DB.getConnection())\n\t { \t\n\t assertTrue(true);\n\t } \n\t catch (SQLException e1) \n\t {\n\t e1.printStackTrace();\n\t fail();\n\t }\n\t /**/\n\t }\n\t });\n\t}", "title": "" }, { "docid": "de48bb7debe87821e0f4d32826a5059a", "score": "0.47811761", "text": "@Test\n void testGetColorNames2() {\n\n\tColorNameLibrary CML = new ColorNameLibrary();\n\tString colorName2 = CML.getColorName(250, 100, 175);\n\tassertTrue(colorName2.equals(\"Hotpink\"));\n\n }", "title": "" }, { "docid": "500a340cb7ed5d2520d9fd8dae68dbf7", "score": "0.47809362", "text": "boolean redundant(String name);", "title": "" }, { "docid": "e82730a1c21d10180f2c289eb03e92c7", "score": "0.47805592", "text": "public void testConnect() {\n\t\ttrans.connect();\n\t\t/*\n\t\t * not implemented\n\t\t */\n\t}", "title": "" }, { "docid": "5dff24ce48c5a7fc578accf57dbfa040", "score": "0.47759116", "text": "public boolean test() throws FileSystemUtilException {\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":test()\");\t\r\n\t\tconnect();\r\n\t\tdisconnect();\r\n\t\tlogger.debug(\"End: \"+getClass().getName()+\":test()\");\t\r\n\t\treturn true;\r\n\t}", "title": "" } ]
94be51937ab20a43de6b4a4d8f948300
Setting the detail of a laptop
[ { "docid": "3ebc68f25c7759c311f563aabd4ca616", "score": "0.6380993", "text": "public void setLaptop(Laptop laptop) {\n\t\tthis.laptop = laptop;\n\t}", "title": "" } ]
[ { "docid": "905459e18d0f05bac252161e838ce74a", "score": "0.6344834", "text": "public void showComputerDetails();", "title": "" }, { "docid": "e96a8a2e9c5b572094f42e9c6b49fbd7", "score": "0.59488386", "text": "@Override\n\tvoid displayDetailInfo() {\n\t\tsuper.displayBasicInfo();\n\t\tSystem.out.println(\"---Detail Information---\");\n\t\tSystem.out.println(\"Audio System: \"+audioSystem);\n\t\tSystem.out.println(\"Number of Doors:\"+numberOfDoors);\n\n\t\t\n\t}", "title": "" }, { "docid": "aa72475bfc3eb5f9f429a0992afb1712", "score": "0.59277993", "text": "public void setDetail(Detail detail) {\n mDetail = detail;\n setUpStreetViewPanoramaIfNeeded(detail.getPosition());\n }", "title": "" }, { "docid": "d498c2dbf929bb666c9205ccb395f34b", "score": "0.588676", "text": "void displaySpecificInfo()\n\t{\n\t\tSystem.out.println(\"We build a \" + brand + \" and touchscreen is \" + touchscreen);\n\t//\tSystem.out.println(\"We build a \" + brand + \" with \" + memory + \"Gb with \" + color + \" color!\");\n\t}", "title": "" }, { "docid": "91b3c36f852c0c540b5b8c539aa4b88f", "score": "0.58682674", "text": "public void setHomePhone(java.lang.String param){\n localHomePhoneTracker = true;\n \n this.localHomePhone=param;\n \n\n }", "title": "" }, { "docid": "634375733c8aa1487cb0d542a38944c3", "score": "0.5763729", "text": "public void updateToInHouse() {\n inHouse = true;\n additional_part_label.setText(\"Machine ID\");\n }", "title": "" }, { "docid": "3a29141ef05fd15a017aa76dd1acc83c", "score": "0.5721626", "text": "@Override\n public void showInformation() {\n System.out.printf(SHOW_RAM_INFO, super.getBrand(), getModel(), getMemory(), getDDR());\n System.out.println();\n }", "title": "" }, { "docid": "d8239fdf4cbfc08a5ca524b6238dc486", "score": "0.5648581", "text": "private void setDetails() {\n lblChef.setText(model.getChefID());\n lblContact.setText(model.getTpNumber());\n lblName.setText(model.getCustomerName());\n lblNumber.setText(model.getTpOperatorID());\n lblQty.setText(model.getQty());\n lblTime.setText(model.getProcessingTime()+\" Minutes\");\n }", "title": "" }, { "docid": "1448b3c4a32683f99ff21197ad582fb4", "score": "0.559086", "text": "public void computerInfo() {\n\t\tSystem.out.println(\"computerInfo: \" +color+ \" \" +price+ \" \"+imei); \t\n\t}", "title": "" }, { "docid": "d0df7a78a6994e05371902d136f67836", "score": "0.5576361", "text": "public Laptop getLaptop() {\n\t\treturn laptop;\n\t}", "title": "" }, { "docid": "723fe61969a8fbc5794a3415ff0140e4", "score": "0.5570282", "text": "@Override\n\tpublic void displayInfo(){\n\t\tSystem.out.println(\"Model: \" + phone + \"\\nPrice: $\" + 500);\n\t}", "title": "" }, { "docid": "e644b2d669f7534c82e60353b0ba68fb", "score": "0.5556742", "text": "private void setEthernetMacInfo() {\n clickOn(\"#protocolDataTab\");\n waitForNode(\"Media Access Protocol\");\n clickOn(\"Media Access Protocol\");\n waitForNode(\"#macDstAddress\");\n interact(() -> {\n TextField macDstAddress = find((\"#macDstAddress\"));\n macDstAddress.setText(\"12:00:00:00:00:22\");\n\n ComboBox dstMode = find(\"#macDstMode\");\n dstMode.getSelectionModel().select(\"Fixed\");\n\n TextField macSrcAddress = find((\"#macSrcAddress\"));\n macSrcAddress.setText(\"22:00:00:00:00:00\");\n\n ComboBox srcMode = find(\"#macsrcMode\");\n srcMode.getSelectionModel().select(\"Increment\");\n });\n }", "title": "" }, { "docid": "0252ee9615503210f9f755de06a3fe86", "score": "0.5525619", "text": "Laptop(String ram,String hdd,String cpu)\n\t{\n\t\tthis.Ram=ram;\n\t\tthis.HDD=hdd;\n\t\tthis.CPU=cpu;\n\t}", "title": "" }, { "docid": "0db281f706042440693b9ae2be1324ac", "score": "0.55081606", "text": "public void setDetail(Boolean Detail) {\n this.Detail = Detail;\n }", "title": "" }, { "docid": "0db281f706042440693b9ae2be1324ac", "score": "0.55081606", "text": "public void setDetail(Boolean Detail) {\n this.Detail = Detail;\n }", "title": "" }, { "docid": "49ae335105d197acd2c2074b04c2956b", "score": "0.5448611", "text": "static public void printDeviceDetailInfo(Device dev) {\n if (!DBG || null == dev) {\n return;\n }\n\n Logger.v(tag, \"==========printDeviceDetailInfo=============Start\");\n String AbsoluteURL = new String();\n Logger.v(tag, \"AbsoluteURL:\" + dev.getAbsoluteURL(AbsoluteURL));\n Logger.v(tag, \"DescriptionFilePath:\" + dev.getDescriptionFilePath());\n Logger.v(tag, \"DeviceType:\" + dev.getDeviceType());\n Logger.v(tag, \"ElapsedTime:\" + dev.getElapsedTime());\n Logger.v(tag, \"FriendlyName:\" + dev.getFriendlyName());\n Logger.v(tag, \"HTTPPort:\" + dev.getHTTPPort());\n Logger.v(tag, \"InterfaceAddress:\" + dev.getInterfaceAddress());\n Logger.v(tag, \"LeaseTime:\" + dev.getLeaseTime());\n Logger.v(tag, \"Location:\" + dev.getLocation());\n Logger.v(tag, \"Manufacture:\" + dev.getManufacture());\n Logger.v(tag, \"ManufactureURL:\" + dev.getManufactureURL());\n Logger.v(tag, \"ModelDescription:\" + dev.getModelDescription());\n Logger.v(tag, \"ModelName:\" + dev.getModelName());\n Logger.v(tag, \"ModelNumber:\" + dev.getModelNumber());\n Logger.v(tag, \"ModelURL:\" + dev.getModelURL());\n Logger.v(tag, \"MulticastIPv4Address:\" + dev.getMulticastIPv4Address());\n Logger.v(tag, \"MulticastIPv6Address:\" + dev.getMulticastIPv6Address());\n Logger.v(tag, \"PresentationURL:\" + dev.getPresentationURL());\n Logger.v(tag, \"ParentDevice:\" + dev.getParentDevice());\n Logger.v(tag, \"SerialNumber:\" + dev.getSerialNumber());\n Logger.v(tag, \"SSDPAnnounceCount:\" + dev.getSSDPAnnounceCount());\n Logger.v(tag, \"SSDPIPv4MulticastAddress:\" + dev.getSSDPIPv4MulticastAddress());\n Logger.v(tag, \"SSDPIPv6MulticastAddress:\" + dev.getSSDPIPv6MulticastAddress());\n Logger.v(tag, \"SSDPPort:\" + dev.getSSDPPort());\n Logger.v(tag, \"TimeStamp:\" + dev.getTimeStamp());\n Logger.v(tag, \"UDN:\" + dev.getUDN());\n Logger.v(tag, \"UPC:\" + dev.getUPC());\n Logger.v(tag, \"URLBase:\" + dev.getURLBase());\n\n ServiceList serviceList = dev.getServiceList();\n int serviceCnt = serviceList.size();\n for (int n = 0; n < serviceCnt; n++) {\n Service service = serviceList.getService(n);\n Logger.i(tag, \"service Type[\" + n + \"]\" + service.getServiceType());\n ActionList actionList = service.getActionList();\n int actionCnt = actionList.size();\n for (int i = 0; i < actionCnt; i++) {\n Action action = actionList.getAction(i);\n Logger.i(tag, \"service[\" + i + \"]\" + action.getName());\n }\n ServiceStateTable stateTable = service.getServiceStateTable();\n int varCnt = stateTable.size();\n for (int i = 0; i < varCnt; i++) {\n StateVariable stateVar = stateTable.getStateVariable(i);\n Logger.i(tag, \"StateVariable[\" + i + \"]\" + stateVar.getName());\n }\n }\n\n Logger.v(tag, \"==========printDeviceDetailInfo=============end\");\n }", "title": "" }, { "docid": "a9b1932ccc284116d8c2ee83cb5085b1", "score": "0.5419717", "text": "public void setHomePhone(String homePhone);", "title": "" }, { "docid": "f798d0b77c3769770982a068fa3a4a15", "score": "0.5413656", "text": "public static void main(String[] args) {\n laptop laptops[] = getSetLaptops();\r\n display(laptops);\r\n \r\n }", "title": "" }, { "docid": "812208ac04d8edc265c8e9db011fb01f", "score": "0.5406951", "text": "public void setDetails(String newDetails) {details = newDetails;}", "title": "" }, { "docid": "946aaf1e0b8d4bc6592ce82dfb92e332", "score": "0.539965", "text": "public void SetInfo(RobotData Info){\r\n\t\tthis.Info = Info;\r\n\t}", "title": "" }, { "docid": "f01801048a509b4da57c884d3860985f", "score": "0.5387", "text": "public void showDetails(WifiP2pDevice device) {\n this.device = device;\n this.getView().setVisibility(View.VISIBLE);\n TextView view = (TextView) mContentView.findViewById(R.id.device_address); \n peerMacid = device.deviceAddress;\n StringBuilder tempAddr = new StringBuilder(peerMacid);\n \ttempAddr.setCharAt(0,'0');\n \ttempAddr.setCharAt(1,'0');\n \tpeerMacid = tempAddr.toString();\n \tpeerMacid = peerMacid.toLowerCase();\n view.setText(peerMacid);\n // view = (TextView) mContentView.findViewById(R.id.device_info);\n // view.setText(device.toString());\n\n }", "title": "" }, { "docid": "3d33ad21816b610be101292020003bb9", "score": "0.5378749", "text": "public void showDetails() {\n showCarType();\n brand.setBrand();\n }", "title": "" }, { "docid": "51b7ae43b413cb4c01d8deb02cb9c615", "score": "0.5375775", "text": "void printDetails()\r\n {\r\n System.out.println(\"Manufacturer: \" + manufacturer);\r\n System.out.println(\"Model: \" + model);\r\n System.out.println(\"Make Year: \" + makeYear);\r\n }", "title": "" }, { "docid": "4a87149bf35aa76af9de5845182d200e", "score": "0.53693926", "text": "public void showPhoneInfo() {\n\t\tSystem.out.println(\"name: \" + name);\n\t\tSystem.out.println(\"phone: \" + phoneNumber);\n\t\tSystem.out.println(\"school: \" + school);\n\t\tSystem.out.println(\"grade: \" + grade);\n\t\tSystem.out.println(\"age: \" + age);\n\t\tSystem.out.println(\"type: \" + type);\n\t}", "title": "" }, { "docid": "24982394a98bed84ad8dbb65037fef44", "score": "0.53545296", "text": "public void computerSystem() {\n\t\tSystem.out.println(\"computerSystem: \" +model+ \" \" +memory+ \" \" +quickServer); \n\t\t}", "title": "" }, { "docid": "b0e69ab72cf98230d7484cd189a61e27", "score": "0.53543484", "text": "public void setInfo(){\n\t// set rent prices, index corresponds w/ # of houses\n\t_rent1 = new int[] {6, 30, 90, 270, 400, 550}; //oriental and vermont\n\t_rent2 = new int[] {8, 40, 100, 300, 450, 600}; //connecticut\n\t\n\t// number of other properties in group\n\t_others = 3;\n\n\t// set buy prices\n\t_buyPrice1 = 100; \n\t_buyPrice2 = 120; \n\n\tsetMortgageValue();\n\n\t//set house cost\n\t_houseCost = 50;\n }", "title": "" }, { "docid": "5c13c7ccc866d144fc76a2207d2b933c", "score": "0.5351344", "text": "@Override\n\tpublic void showComputerInfo() {\n\t\tsuper.showComputerInfo();\n\t\tSystem.out.println(\"笔记本\");\n\t}", "title": "" }, { "docid": "e56df71efcff469752540fea37ad31c1", "score": "0.5331906", "text": "public void showEnvironment() {\n this.list.setVisibility(8);\n WXParams initParams = WXBridgeManager.getInstance().getInitParams();\n Map<String, String> config = WXEnvironment.getConfig();\n config.put(\"platform\", initParams.getPlatform());\n config.put(WXDebugConstants.ENV_OS_VERSION, initParams.getOsVersion());\n config.put(\"appVersion\", initParams.getAppVersion());\n config.put(\"weexVersion\", initParams.getWeexVersion());\n config.put(WXDebugConstants.ENV_DEVICE_MODEL, initParams.getDeviceModel());\n config.put(\"appName\", initParams.getAppName());\n config.put(\"deviceWidth\", initParams.getDeviceWidth());\n config.put(\"deviceHeight\", initParams.getDeviceHeight());\n config.put(\"shouldInfoCollect\", initParams.getShouldInfoCollect());\n config.putAll(WXEnvironment.getCustomOptions());\n try {\n this.info.setText(new JSONObject(config).toString(2));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "454c78a540094d2fff54a13689e9da9f", "score": "0.5330528", "text": "public static void main(String[] args) {\r\n\t//\tLaptop dell=LaptopFactory.getLaptop(DeviceType.MAC);\r\n\t\t//System.out.println(dell.getConfiguration());\r\n\t\t//System.out.println(dell.toString());\r\n\t}", "title": "" }, { "docid": "ad04892448fcb721350d1947dd97fbe6", "score": "0.5324975", "text": "private void listProperty() {\n\t\tSystem.out.println(\"Enter the property details\");\n\t\ttry {\n\t\t\trentProp = new RentalProperty(captureDetails(\"Property Address\"), captureDetails(\"Suburb\"),\n\t\t\t\t\tInteger.parseInt(captureDetails(\"Number Of Bedrooms\")),\n\t\t\t\t\tInteger.parseInt(captureDetails(\"Number Of Bathrooms\")),\n\t\t\t\t\tInteger.parseInt(captureDetails(\"Number Of Carspace\")), captureDetails(\"Property Type\"),\n\t\t\t\t\tGlobalConstants.PROPERTY_AVAILABLE, Double.parseDouble(captureDetails(\"Weekly Rental Rate\")),\n\t\t\t\t\tDouble.parseDouble(captureDetails(\"Acceptable Contract Duration\")));\n\n\t\t\t// saveproperty method\n\t\t\taddListProperties(rentProp);\n\t\t\tSystem.out.println(\"Property added sucessfully \");\n\t\t} catch (LandlordException le) {\n\t\t\tSystem.out.println(le.getMessage());\n\t\t\tdisplayMenu();\n\t\t} catch (InvalidInputException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tlistProperty();\n\t\t}\n\t}", "title": "" }, { "docid": "034c90280fa7f91d2187be24d55e3088", "score": "0.52898955", "text": "public void printInfo()\n {\n System.out.println(\"-----------------------------------------\");\n System.out.println(\"\\nThe details are: \\n\");\n System.out.println(\"ID: \" + id);\n System.out.println(\"Name: \" + name);\n System.out.println(\"Address: \" + address);\n System.out.println(\"Phone No: \" + phoneNo + \"\\n\");\n }", "title": "" }, { "docid": "c5aaa9f565eefd338d16af53fa636320", "score": "0.5282574", "text": "@Override\n\tpublic void showInfo() {\n\t\t\n\t\tSystem.out.println(\"Machine code is \" + code);\n\t\t\n\t}", "title": "" }, { "docid": "d4fd68c8d03af223a0a477d93824d95d", "score": "0.52799785", "text": "public abstract void penDetails();", "title": "" }, { "docid": "6e3f42df2c2b27e6b99842b9565bb235", "score": "0.52753925", "text": "public static void main(String[] args) {\nLaptop mat = new Laptop(\"Apple\", \"Mac os\", 2017);\nSystem.out.println(mat.laptopBrand);\nLaptop mat2 = new Laptop(\"Dell\", \"Windows\", 2018);\nSystem.out.println(mat2.laptopBrand);\nmat2.laptopBrand = \"Asos\";\nSystem.out.println(mat2.laptopBrand);\n\t}", "title": "" }, { "docid": "f9621e93d1c3345c1325fc0589f36e22", "score": "0.52622247", "text": "public String getDetail() {\n return detail;\n }", "title": "" }, { "docid": "f9621e93d1c3345c1325fc0589f36e22", "score": "0.52622247", "text": "public String getDetail() {\n return detail;\n }", "title": "" }, { "docid": "f9621e93d1c3345c1325fc0589f36e22", "score": "0.52622247", "text": "public String getDetail() {\n return detail;\n }", "title": "" }, { "docid": "f9621e93d1c3345c1325fc0589f36e22", "score": "0.52622247", "text": "public String getDetail() {\n return detail;\n }", "title": "" }, { "docid": "42d0f9f96238d863420810c3c9d59d03", "score": "0.525482", "text": "public void setPhInfo(String phInfo) {\n this.phInfo = phInfo;\n }", "title": "" }, { "docid": "9edaea30a10e0208d172a339d251f05b", "score": "0.5250456", "text": "public void setDetail(@Nonnull String detail) {\n if (detail == null) {\n throw new IllegalArgumentException(\"detail must not be null\");\n }\n this.detail = detail;\n }", "title": "" }, { "docid": "c9768983718921b5843154bb6876ccc8", "score": "0.5246283", "text": "public void SwimmersInfo (){\r\n\t\tSystem.out.print(\"ID: \" + this.getID());\r\n\t System.out.print(\" Name: \" + this.getName());\r\n\t System.out.print(\" Age: \" + this.getAge());\r\n\t System.out.print(\" State: \" + this.getState());\r\n\t System.out.println(\" Point: \" + this.getPoint());\r\n\t}", "title": "" }, { "docid": "caa6834e6ed0c936f6017ad17eb457f9", "score": "0.5242674", "text": "public void setDetail(String detail) {\n this.detail = detail == null ? null : detail.trim();\n }", "title": "" }, { "docid": "caa6834e6ed0c936f6017ad17eb457f9", "score": "0.5242674", "text": "public void setDetail(String detail) {\n this.detail = detail == null ? null : detail.trim();\n }", "title": "" }, { "docid": "caa6834e6ed0c936f6017ad17eb457f9", "score": "0.5242674", "text": "public void setDetail(String detail) {\n this.detail = detail == null ? null : detail.trim();\n }", "title": "" }, { "docid": "caa6834e6ed0c936f6017ad17eb457f9", "score": "0.5242674", "text": "public void setDetail(String detail) {\n this.detail = detail == null ? null : detail.trim();\n }", "title": "" }, { "docid": "dfbe4ce8686bc5dc6023da7124736b70", "score": "0.52395123", "text": "public void printMps() {\n SmartDashboard.putNumber(\"Left Mps\", getLeftMps());\n SmartDashboard.putNumber(\"Right Mps\", getRightMps());\n SmartDashboard.putNumber(\"Linear Mps \", getLinearMps());\n SmartDashboard.putNumber(\"Angular Mps\", getAngularMps());\n\n }", "title": "" }, { "docid": "9957b39a21083fc1c5f44c3bd2f4d2d2", "score": "0.5231928", "text": "private static void setPhysical(Resource resource) {\n resource.setFormat(new Physical(\"regular print\", \"PR6066.E167 A89 2016\", \"25cm\")); \n }", "title": "" }, { "docid": "5d47b6945d7a5df82f130daef8539c87", "score": "0.522573", "text": "java.lang.String getDetail();", "title": "" }, { "docid": "40c657de6d6792582852d87f8bcdec7f", "score": "0.52224755", "text": "public void display() {\n\t\tSystem.out.println(\"Product Details\\n--------------\");\n\t\tSystem.out.println(\"Product Id = \" + id);\n\t\tSystem.out.println(\"Product Name = \" + productName);\n\t\tSystem.out.println(\"Supplier Name = \" + supplierName);\n\t}", "title": "" }, { "docid": "2def51ae0793ee00c3c638b430941601", "score": "0.5222388", "text": "public interface ForTablet {\nvoid setSelectingBaking(String videoURL,String Description,String thumbnailURL,String StepBean,int position,int StepSize);\n}", "title": "" }, { "docid": "2289626843687436d02ae181db8b0254", "score": "0.5196756", "text": "public void systemInfo() {\n\n\t\ttry { // Security exception when running as an applet\n\t\t\tjava.util.Properties p = System.getProperties();\n\t\t\tjava.util.Enumeration<?> k = p.keys();\n\t\t\tjava.util.Enumeration<?> e = p.elements();\n\n\t\t\tint i = 0;\n\t\t\tStringBuffer s = new StringBuffer();\n\t\t\twhile (e.hasMoreElements() && k.hasMoreElements()) {\n\t\t\t\ts.append(i++ + \"\\t\" + k.nextElement().toString() + \": \\t\"\n\t\t\t\t\t\t+ e.nextElement().toString() + \"\\n\");\n\t\t\t\t// System.out.println(\"(\"+i++\n\t\t\t\t// +\")\n\t\t\t\t// \"+k.nextElement().toString()+\"\\t\"+e.nextElement().toString());\n\t\t\t\t// if(i==18)try{\n\t\t\t\t// Thread.sleep(15000);\n\t\t\t\t// } catch (InterruptedException Ie){}\n\t\t\t}\n\t\t\tnew Help(\" System info \", s.toString(), font);\n\t\t} catch (java.security.AccessControlException e) {\n\t\t\tnew Help(\"Java Security Access Exception\", \"\\tSystem Properities \\n\"\n\t\t\t\t\t+ \"\\tPermission Denied\", Color.ORANGE);\n\t\t}\n\n\t\t/*\n\t\t * SysPropTest sysInfo = new SysPropTest(); String[] str = new\n\t\t * String[sysInfo.getSysInfoStrings().length +\n\t\t * sysInfo.getJavaInfoStrings().length+5]; int j = 0;\n\t\t * \n\t\t * \n\t\t * str[j++] = new String(\"\\t\\t\"+Help.VERSION);\n\t\t * \n\t\t * str[j++] = new String(\"\"); str[j++] = new String(\"\\t-------------\n\t\t * Local System Information -------------\");\n\t\t * \n\t\t * for (int i = 0; i < sysInfo.getSysInfoStrings().length; i++) {\n\t\t * str[j++] = new String(\"\\t\\t\" + sysInfo.getSysInfoStrings()[i]); }\n\t\t * \n\t\t * str[j++] = new String(\"\"); str[j++] = new String(\n\t\t * \"\\t----------------- Java Information -----------------\");\n\t\t * \n\t\t * for (int i = 0; i < sysInfo.getJavaInfoStrings().length; i++)\n\t\t * str[j++] = new String(\"\\t\\t\" + sysInfo.getJavaInfoStrings()[i]);\n\t\t * \n\t\t * new Help(\" Local System info \", str, bgInfoColor);\n\t\t */\n\t}", "title": "" }, { "docid": "23b527a73a0a520fbeba53c91e9ca0b4", "score": "0.51732004", "text": "public void setInfo(java.lang.String param){\r\n localInfoTracker = true;\r\n \r\n this.localInfo=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "cc6ff53381b3a6c2103f07139466a2bf", "score": "0.5168587", "text": "public static void main(String[] args) {\n Mobile nokia = new Mobile(2,4500,\"Goodone\",\"3310\",true);\n \n System.out.println(\"Mobile specs: \");\n System.out.println(\"ram: \"+nokia.ram );\n System.out.println(\"model: \"+nokia.model );\n System.out.println(\"battery: \"+nokia.battery );\n System.out.println(\"Is wifi enabled: \"+nokia.isWifi );\n nokia.call();\n nokia.playGame();\n \n Mobile samsung = new Mobile(3,5000,\"best\",\"x1\",true);\n System.out.println(\"Ram: \"+ samsung.ram);\n System.out.println(\"Is wifi enabled: \"+samsung.isWifi);\n samsung.call();\n \n \n \n }", "title": "" }, { "docid": "31f62d40ff345e8520d0ed0a936b2649", "score": "0.5165716", "text": "public String showDetail();", "title": "" }, { "docid": "e403c4d4cdd001ef3ee10af27c0a256c", "score": "0.5160726", "text": "@Override\n\tpublic Board ServiceDetail(int num) {\n\t\treturn boarddao.SelectDetail(num);\n\t}", "title": "" }, { "docid": "0cb048e2ef0a54608856ea8a861e7a07", "score": "0.5159448", "text": "private void displayPortTravelMenu() {\n \r\n PortView port = new PortView();\r\n port.display();\r\n }", "title": "" }, { "docid": "188c3687e550ef4b83a2fb78d0becf2f", "score": "0.51465", "text": "public void setPumpNo(int number){\r\n pumpNo = number;\r\n }", "title": "" }, { "docid": "1d4ce131e492fea45a9cded141e4db72", "score": "0.51185006", "text": "final public void displaySystemDetails() {\n\t\tSystem.out.println(getSystemTypeName() + \" System Details:\");\n\t\tdisplaySystemDetailsLocations();\n\t\tdisplaySystemDetailsProviders();\n\t}", "title": "" }, { "docid": "beeaf2be6e010fb8941cdef9fa136a64", "score": "0.51158184", "text": "public void updateSmartDashboard(){\r\n\t try{\r\n \t\tSmartDashboard.putNumber(\"Talon 1 Current\", RobotMap.drivesRightMotorTop.getOutputCurrent());\r\n\t \tSmartDashboard.putNumber(\"Talon 2 Current\", RobotMap.drivesLeftMotorTop.getOutputCurrent());\r\n\t \tSmartDashboard.putNumber(\"Talon 3 Current\", RobotMap.drivesRightMotorBottom.getOutputCurrent());\r\n\t \tSmartDashboard.putNumber(\"Talon 4 Current\", RobotMap.drivesLeftMotorBottom.getOutputCurrent());\r\n\t \tSmartDashboard.putNumber(\"Talon 5 Current\", RobotMap.climberclimbingMotor.getOutputCurrent());\r\n\t \tSmartDashboard.putNumber(\"Talon 6 Current\", RobotMap.fuelHandlingAcquireFuel.getOutputCurrent());\r\n\t \tSmartDashboard.putBoolean(\"Solenoid 1 state\", RobotMap.fuelHandlingDumpGate.get());\r\n\t \tSmartDashboard.putString(\"Solenoid 6, 7 state\", (RobotMap.gearsGearPnuematic.get()).toString());\r\n\t \t//SmartDashboard.putNumber(\"Compressor\", RobotMap.compressor_Shared_FunctionalityRobotCompressor.getCompressorCurrent());\r\n\t }catch(Exception e){\r\n\t \tSystem.out.println(e);\r\n\t }\r\n }", "title": "" }, { "docid": "e22babd032dbf65a3473421eb4945b95", "score": "0.51093477", "text": "public void setCellPhone(java.lang.String param){\n localCellPhoneTracker = true;\n \n this.localCellPhone=param;\n \n\n }", "title": "" }, { "docid": "847f14fc233187a305cd2c40246b6855", "score": "0.5102765", "text": "public void setDetails(String details) {\n this.details = details;\n }", "title": "" }, { "docid": "3e884f66fbb4564264941ce55d47cf19", "score": "0.50894463", "text": "private void changePlaneInfo() {\r\n\t\tString flightCode = readLine(\"Flight Code? \");\r\n\t}", "title": "" }, { "docid": "45b722e25eeef1fd7483c218ab21530b", "score": "0.5079338", "text": "protected void updateChosenPlaneDetail() {\n nameLabel.setText(currentPlane.name);\n speedLabel.setText(I18n.floatToString(currentPlane.speed));\n azimuthSpeedLabel.setText(I18n.floatToString(currentPlane.azimuthSpeed));\n }", "title": "" }, { "docid": "dcd9a43d40d2f1219f4e265a316b3b62", "score": "0.5077835", "text": "private void viewDetail() {\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tSystem.out.println(\"번호별 당첨 횟수\");\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tint sp = 0;\n\t\tif(list.size() > 0) {\n\t\t\tfor(Lotto l : list) {\n\t\t\t\tsp++;\n\t\t\t\tSystem.out.printf(\"%d번:%d회\\t\", l.getNum(), l.getCount());\n\t\t\t\t\n\t\t\t\tif(sp % 5 == 0) {\n\t\t\t\t\tsp = 0;\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t} else\n\t\t\tSystem.out.printf(\"등록된 로또 번호가 없습니다.\\n\");\n\t}", "title": "" }, { "docid": "84d1d0f4085d3f4d0267b60941ff9af3", "score": "0.50771004", "text": "void setStoringPC();", "title": "" }, { "docid": "652c12813623019c128986a37fd8840e", "score": "0.5070412", "text": "private void openBasicInfoScreen(){\n CourseEditingBasicInfoView editingScene = CourseEditingBasicInfoView.getInstance();\n editingScene.attachController(this);\n RootGuiElement.getInstance().setScene(editingScene);\n }", "title": "" }, { "docid": "8151963240174b8be972cafeb1fa7322", "score": "0.50659156", "text": "public void showDetails(WifiP2pDevice device) {\n\t\tthis.device = device;\n\t\tthis.getView().setVisibility(View.VISIBLE);\n\t}", "title": "" }, { "docid": "e0d26ca13386d2b076445b0cecc8bc3c", "score": "0.50620687", "text": "public void desktopSize() {\n System.out.println(\"Desktop Size: 1920* 1080\");\r\n\t}", "title": "" }, { "docid": "5fdc6534c8c2ad9842a5415b058d5ad3", "score": "0.5061496", "text": "@Override\r\n\tprotected void configureShell(Shell newShell) {\n\t\tsuper.configureShell(newShell);\r\n\t\tnewShell.setText(\"Population size\");\r\n\t}", "title": "" }, { "docid": "8a743f1d08fcdfbeaf39199b619cfbd6", "score": "0.50544786", "text": "public void setPhone(String pNum){\n this.pNum=pNum;\n }", "title": "" }, { "docid": "39ce75ab8b66837970bb890155177599", "score": "0.5044636", "text": "public void setUpDetails(){\n Bundle intentBundle = getIntent().getExtras();\n\n if(intentBundle != null){\n String wordStr = intentBundle.getString(Globals.CHOSEN_WORD);\n wordObj = wordLearnerService.getWord(wordStr);\n\n if (wordObj != null){\n word.setText(wordObj.getWord());\n pronunciation.setText(wordObj.getPronunciation());\n rating.setText(wordObj.getRating());\n\n // If notes exist, set notesViewText\n String notesTxt = wordObj.getNotes();\n if (notesTxt != null){\n notes.setText(notesTxt);\n }\n\n // Load image with Picasso. See explanation in Adapter\n String imageUrl = wordObj.getFirstDefinition().getImageUrl();\n Picasso.with(DetailsActivity.this)\n .load(imageUrl)\n .placeholder(android.R.drawable.sym_def_app_icon)\n .error(android.R.drawable.sym_def_app_icon)\n .into(wordImage);\n\n String definition = wordObj.getFirstDefinition().getDefinition();\n if (definition != null) {\n description.setText(definition);\n }\n }\n }\n }", "title": "" }, { "docid": "5071eae74ab258bd3949fc14bd03199e", "score": "0.50401306", "text": "public void switchToPowerOfAttorneyDetailsFrame() {\n switchWindow();\n ArrayList<String> framePath = new ArrayList<>();\n framePath.add(\"botFr\");\n framePath.add(\"partyNewPowerOfAttorneyCustId\");\n this.switchToFrame(framePath);\n }", "title": "" }, { "docid": "5d17f23d73d19df759f95d4f5b0b0d79", "score": "0.5036209", "text": "public static void accessParking() {\n\t\tSystem.out.println(\"Type 1 if you want to see a specific column's information\");\n\t\tSystem.out.println(\"Type 2 if you want to see general information of the parking lot\");\n\t\tint dec = scanner.nextInt();\n\t\tscanner.nextLine();\n\t\tif (dec == 1) {\n\n\t\t\tSystem.out.println(\"Which models information do you want to access?\");\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"Type \" + (i + 1) + \" if you want to see the automobiles from the year \" + (2014 - i));\n\t\t\t}\n\t\t\tSystem.out.println(\"Type 5 if you want to see the automobiles from the year 2010 and earlier\");\n\t\t\tdec = (scanner.nextInt() - 1);\n\t\t\tscanner.nextLine();\n\t\t\tSystem.out.println(company.showColumnOP(dec));\n\t\t} else {\n\t\t\tSystem.out.println(company.showPLGeneralInfo());\n\t\t}\n\t\tSystem.out.println(\"Press enter to continue\");\n\t\tscanner.nextLine();\n\t}", "title": "" }, { "docid": "93e5d102f19723c4d0595e9b07070092", "score": "0.5031044", "text": "private void prefillWithDevice(@Nullable Device device) {\n if (device == null) {\n\n // Setup the default hardware instance with reasonable values for\n // the things which are configurable via this dialog.\n mHardware = new Hardware();\n\n Screen s = new Screen();\n s.setXdpi(316);\n s.setYdpi(316);\n s.setMultitouch(Multitouch.JAZZ_HANDS);\n s.setMechanism(TouchScreen.FINGER);\n s.setScreenType(ScreenType.CAPACITIVE);\n mHardware.setScreen(s);\n\n mHardware.addNetwork(Network.BLUETOOTH);\n mHardware.addNetwork(Network.WIFI);\n mHardware.addNetwork(Network.NFC);\n\n mHardware.addSensor(Sensor.BAROMETER);\n mHardware.addSensor(Sensor.COMPASS);\n mHardware.addSensor(Sensor.LIGHT_SENSOR);\n\n mHardware.setHasMic(true);\n mHardware.addInternalStorage(new Storage(4, Storage.Unit.GiB));\n mHardware.setCpu(\"Generic CPU\");\n mHardware.setGpu(\"Generic GPU\");\n\n mHardware.addSupportedAbi(Abi.ARMEABI);\n mHardware.addSupportedAbi(Abi.ARMEABI_V7A);\n mHardware.addSupportedAbi(Abi.MIPS);\n mHardware.addSupportedAbi(Abi.X86);\n\n mHardware.setChargeType(PowerType.BATTERY);\n return;\n }\n mHardware = device.getDefaultHardware().deepCopy();\n mDeviceName.setText(device.getName());\n mForceCreation.setSelection(true);\n Screen s = mHardware.getScreen();\n mDiagonalLength.setText(Double.toString(s.getDiagonalLength()));\n mXDimension.setText(Integer.toString(s.getXDimension()));\n mYDimension.setText(Integer.toString(s.getYDimension()));\n String size = s.getSize().getResourceValue();\n for (int i = 0; i < mSize.getItemCount(); i++) {\n if (size.equals(mSize.getItem(i))) {\n mSize.select(i);\n break;\n }\n }\n String ratio = s.getRatio().getResourceValue();\n for (int i = 0; i < mRatio.getItemCount(); i++) {\n if (ratio.equals(mRatio.getItem(i))) {\n mRatio.select(i);\n break;\n }\n }\n String density = s.getPixelDensity().getResourceValue();\n for (int i = 0; i < mDensity.getItemCount(); i++) {\n if (density.equals(mDensity.getItem(i))) {\n mDensity.select(i);\n break;\n }\n }\n mKeyboard.setSelection(!Keyboard.NOKEY.equals(mHardware.getKeyboard()));\n mDpad.setSelection(Navigation.DPAD.equals(mHardware.getNav()));\n mTrackball.setSelection(Navigation.TRACKBALL.equals(mHardware.getNav()));\n mNoNav.setSelection(Navigation.NONAV.equals(mHardware.getNav()));\n mAccelerometer.setSelection(mHardware.getSensors().contains(Sensor.ACCELEROMETER));\n mGyro.setSelection(mHardware.getSensors().contains(Sensor.GYROSCOPE));\n mGps.setSelection(mHardware.getSensors().contains(Sensor.GPS));\n mProximitySensor.setSelection(mHardware.getSensors().contains(Sensor.PROXIMITY_SENSOR));\n mCameraFront.setSelection(false);\n mCameraRear.setSelection(false);\n for (Camera c : mHardware.getCameras()) {\n if (CameraLocation.FRONT.equals(c.getLocation())) {\n mCameraFront.setSelection(true);\n } else if (CameraLocation.BACK.equals(c.getLocation())) {\n mCameraRear.setSelection(true);\n }\n }\n mRam.setText(Long.toString(mHardware.getRam().getSizeAsUnit(Storage.Unit.MiB)));\n mRamCombo.select(0);\n\n for (int i = 0; i < mButtons.getItemCount(); i++) {\n if (mButtons.getItem(i).equals(mHardware.getButtonType().getDescription())) {\n mButtons.select(i);\n break;\n }\n }\n\n for (State state : device.getAllStates()) {\n Button nav = null;\n if (state.getOrientation().equals(ScreenOrientation.PORTRAIT)) {\n if (state.getKeyState().equals(KeyboardState.EXPOSED)) {\n mPortraitKeys.setSelection(true);\n nav = mPortraitKeysNav;\n } else {\n mPortrait.setSelection(true);\n nav = mPortraitNav;\n }\n } else {\n if (state.getKeyState().equals(KeyboardState.EXPOSED)) {\n mLandscapeKeys.setSelection(true);\n nav = mLandscapeKeysNav;\n } else {\n mLandscape.setSelection(true);\n nav = mLandscapeNav;\n }\n }\n nav.setSelection(state.getNavState().equals(NavigationState.EXPOSED)\n && !mHardware.getNav().equals(Navigation.NONAV));\n }\n }", "title": "" }, { "docid": "bc8653161d71b2a5755878b3ecc9b85e", "score": "0.50243235", "text": "public void displayOfferDetails(){\n System.out.println(location+\" | \"+company+\" | \"+salary+\" | \"+isFullTime);\n }", "title": "" }, { "docid": "fc27d1554c1635ed0347de84aeedad6a", "score": "0.5019872", "text": "private void setInformation() {\n\t\tString email = \"\";\n\t\tString userType = \"\";\n\t\tString location = \"\";\n\t\tBoolean paranoia = false;\n\n\t\t// Set username\n\t\tString username = user.getUsername();\n\n\t\t// Set email address.\n\t\temail = user.getEmail();\n\n\t\t// Find admin type.\n\t\tif (user.isAdmin())\n\t\t\tuserType = \"admin\";\n\t\telse if (user.isModerator())\n\t\t\tuserType = \"moderator\";\n\t\telse\n\t\t\tuserType = \"player\";\n\n\t\t// Set location\n\t\tlocation = user.getLocation();\n\n\t\t// Set paranoia\n\t\tparanoia = user.isParanoid();\n\n\t\t// Set personal information.\n\t\tlargeUsernameLabel.setText(\"Profile - \" + username);\n\t\tusernameLabel.setText(\"Username: \" + username);\n\t\temailLabel.setText(\"E-mail: \" + email);\n\t\tuserTypeLabel.setText(\"User Type: \" + userType);\n\t\tlocationLabel.setText(\"Location: \" + location);\n\n\t\tif (paranoia) {\n\t\t\tparanoiaLabel.setText(\"Paranoia: on\");\n\t\t} else {\n\t\t\tparanoiaLabel.setText(\"Paranoia: off\");\n\t\t}\n\t}", "title": "" }, { "docid": "f1a930fa3623d55246fba4cd18bca2a1", "score": "0.5017562", "text": "void setInfo(String info);", "title": "" }, { "docid": "2b110587b5e46a358e864337e98eba94", "score": "0.501752", "text": "String getDetail() {\n return detailDrink;\n }", "title": "" }, { "docid": "a37bd16fd058746e579e111a9ae13965", "score": "0.5017089", "text": "private void setDeviceDensity() {\n final Process p = customExec(new String[] { mADBPath, \"shell\",\n \"getprop\", \"ro.sf.lcd_density\" });\n String retoutput = processOutput(p);\n retoutput = retoutput.trim();\n if (retoutput.equals(\"320\")) {\n Utils.setDeviceDensity(Utils.DeviceDensity.MDPI);\n } else if (retoutput.equals(\"480\")) {\n Utils.setDeviceDensity(Utils.DeviceDensity.HDPI);\n } else {\n Utils.setDeviceDensity(Utils.DeviceDensity.LDPI);\n }\n }", "title": "" }, { "docid": "480aa2c33890944d4365eb68c22cf1d9", "score": "0.5014063", "text": "@FXML\r\n\tprivate void detailsDuStage(OffreStage offre) {\r\n\t\tif (offre != null) {\r\n\t\t\ttexte.setText(\"\");\r\n\t\t\tnomDeL_Entreprise.setText(offre.getNomEnt());\r\n\t\t\tlibelle_details.setText(offre.getLibl());\r\n\t\t\tdomaine.setText(offre.getDmn());\r\n\t\t\tdescription.setText(offre.getDesc());\r\n\t\t\tdateDeDebut.setText(\"Le stage commence le \" + offre.getDateDebut());\r\n\t\t\tduree.setText(\"La durée est de \" + offre.getDuree().toString() + \" mois\");\r\n\t\t} else {\r\n\t\t\tnomDeL_Entreprise.setText(\"\");\r\n\t\t\tlibelle_details.setText(\"\");\r\n\t\t\tdomaine.setText(\"\");\r\n\t\t\tdescription.setText(\"\");\r\n\t\t\tdateDeDebut.setText(\"\");\r\n\t\t\tduree.setText(\"\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "868712062753d5c90d150ea0b4720148", "score": "0.5010062", "text": "public void launch(){\n \n MobilePhone myPhone = new SmartPhone(\"Samsung\");\n \n SmartPhone myPhoneNew = (SmartPhone) myPhone;\n //Phone anyPhone = new MobilePhone(\"Nokia\");\n Phone anyPhone = new SmartPhone(\"Nokia\");\n \n myPhoneNew.browseWeb(\"Hi Esha you're browsing the WWW\");\n myPhoneNew.findPosition();\n myPhone.call(\"07857 837 541\");\n \n testPhone(anyPhone);\n \n \n Phone MobPhone = new MobilePhone(\"Nok\");\n testPhone(MobPhone);\n //if you call a method that is not available (e.g., SmartPhone methods, on MobilePhone) there is an error.\n }", "title": "" }, { "docid": "db1e3acc245e28041e88b76e4b512917", "score": "0.50071794", "text": "@Override\n\tpublic void showTerminalInfo() {\n\n\t}", "title": "" }, { "docid": "4604f48f50b4de3d21aa492f14d38ebc", "score": "0.5001602", "text": "public void set_detail(String[] detail) throws Exception{\n\t\tthis.detail = detail;\n\t}", "title": "" }, { "docid": "11c1a84ae0363c1f41d3f9494d357a75", "score": "0.49980107", "text": "public void printLocationInfo()\n {\n if (currentRoom.getDescription().contains(\"sala sur\") && !getLuz()){\n System.out.println(\"บบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบ\");\n System.out.println(\"Esta sala estแ a oscuras, necesitas tener luz para ver lo que hay\"); \n }\n else{\n System.out.println(\"บบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบบ\");\n System.out.println (currentRoom.getLongDescription());\n }\n }", "title": "" }, { "docid": "04a92f6e56d17b08432fb52ea19b131e", "score": "0.49946195", "text": "public void setInfoForDevice(DeviceInfo deviceInfo) {\n if (this.state == STATE_CONNECTED && deviceInfo != null && deviceInfo.getFirmwareHighVersion() >= 88) {\n byte info1 = (byte) ((deviceInfo.getStatePhoto()) + (deviceInfo.getStateLock() << 1) + (deviceInfo\n .getStateVibrate() << 2) +\n (deviceInfo.getStateFindPhone() << 3) + (deviceInfo.getStateHigh() << 4) + (deviceInfo\n .getStateMusic() << 5) +\n (deviceInfo.getStateBleInterface() << 6) + (deviceInfo.getStateProtected() << 7));\n\n int dtype = baseDevice.getDeviceType();\n String name = baseDevice.getName();\n byte info2 = 0;\n byte info3 = 0;\n byte info4 = 0;\n if (dtype == BaseDevice.TYPE_W301H && name.contains(\"W311N_\") && deviceInfo.getFirmwareHighVersion\n () >= 90.59) {\n //来的什么设备信息则发什么设备信息,针对设置心率存储满提醒\n Log.e(\"connectVibrate\", \"W311N_ 是否开启心率存储提醒 == \" + deviceInfo.getStateConnectVibrate());\n info2 = (byte) ((deviceInfo.getStateMenu()) + (deviceInfo.getState5Vibrate() << 1) +\n (deviceInfo.getStateCallMsg() << 2) + (deviceInfo.getStateConnectVibrate() << 3) +\n (deviceInfo.getStatePinCode() << 4) + (deviceInfo.getCalIconHeart() << 5) +\n (deviceInfo.getCalCaculateMethod() << 6));\n info3 = (byte) ((deviceInfo.getStateSleepInterfaceAndFunc()));\n info4 = (byte) ((deviceInfo.getBleRealTimeBroad()) + (deviceInfo.getStateleftRight() << 2) +\n (deviceInfo.getStateAntiLost() << 3) + (deviceInfo.getStateCallRemind() << 4) +\n (deviceInfo.getStateMessageContent() << 5) + (deviceInfo.getStateMessageIcon() << 7));\n } else if (dtype == BaseDevice.TYPE_W301H || dtype == BaseDevice.TYPE_W307H || deviceInfo\n .getFirmwareHighVersion\n () >= 89) {\n info2 = (byte) ((deviceInfo.getStateMenu()) + (deviceInfo.getState5Vibrate() << 1) +\n (deviceInfo.getStateCallMsg() << 2) + (deviceInfo.getStateConnectVibrate() << 3) +\n (deviceInfo.getStatePinCode() << 4) + (deviceInfo.getCalIconHeart() << 5) +\n (deviceInfo.getCalCaculateMethod() << 6));\n info3 = (byte) ((deviceInfo.getStateSleepInterfaceAndFunc()));\n info4 = (byte) ((deviceInfo.getBleRealTimeBroad()) + (deviceInfo.getStateleftRight() << 2) +\n (deviceInfo.getStateAntiLost() << 3) + (deviceInfo.getStateCallRemind() << 4) +\n (deviceInfo.getStateMessageContent() << 5) + (deviceInfo.getStateMessageIcon() << 7));\n } else {\n info2 = (byte) ((deviceInfo.getStateMenu()) + (deviceInfo.getState5Vibrate() << 1) + (deviceInfo\n .getStateCallMsg() << 2)\n + (deviceInfo.getStateConnectVibrate() << 3));\n }\n byte[] bt_cmd = new byte[20];\n bt_cmd[0] = (byte) 0xBE;\n bt_cmd[1] = (byte) 0x03;\n bt_cmd[2] = (byte) 0x09;\n bt_cmd[3] = (byte) 0xFE;\n bt_cmd[4] = info1;\n bt_cmd[5] = info2;\n bt_cmd[6] = info3;\n bt_cmd[7] = info4;\n for (int i = 8; i <= 18; i++) {\n bt_cmd[i] = 0;\n }\n bt_cmd[19] = (byte) 0xED;\n sendCommand(SEND_DATA_CHAR, mGattService, mBluetoothGatt, bt_cmd);\n }\n }", "title": "" }, { "docid": "19ebb8c4c383fc70bebd6d62af883ff2", "score": "0.499262", "text": "public void AppNameInPageDetail() {\n PageDetail_AppNAME.isDisplayed();\n }", "title": "" }, { "docid": "1d878138edf49365917a17cd4633c76b", "score": "0.49920592", "text": "public void displayRoadInfo() {\n\t\t//\t\tString info = String.format(\"Road position (%d,%d). Lights:%s\",\n\t\t//\t\t\t\tpositionX, positionY, (isLighted) ? \"ON\" : \"OFF\");\n\t\t//\t\tSystem.out.println(info);\n\t}", "title": "" }, { "docid": "21ca9fe69afdab21bf7f1d7b4241ddc2", "score": "0.49915665", "text": "@Override\r\npublic void showAvailableMobile() {\n\t\tSystem.out.printf(\"%-20s %-20s %-20s %-20s\",\"MobileId\",\"quantity\",\"mobileName\",\"price\");\r\n\t\tSystem.out.println(\"\\n\");\r\n\t\tSystem.out.println(\"=====================================================================================\");\r\n\t\tfor(Integer mobileKey :RepositoryMobile.map.keySet())\r\n\t\t{\r\n\t\t\tString key = mobileKey.toString();\r\n\t\t\tString value =RepositoryMobile.map.get(mobileKey).toString();\r\n\t\t\tSystem.out.println(key +\" \"+value);\r\n\t\t\tSystem.out.println(\"------------------------------------------------------------------\");\r\n\t\t}\r\n\t\tSystem.out.println(\"=====================================================================================\");\r\n}", "title": "" }, { "docid": "a06725808a615e2616f236a1632b6777", "score": "0.49892762", "text": "public void setDevice(String device) \r\n {\r\n //usr.setDevice(Device.);\r\n }", "title": "" }, { "docid": "6e1bb692ba81156b0674bc74993998c8", "score": "0.49884656", "text": "public void setSystemInfo(com.vmware.converter.HostSystemInfo systemInfo) {\r\n this.systemInfo = systemInfo;\r\n }", "title": "" }, { "docid": "868bd827a88c2ffc8f87a6b0065b465c", "score": "0.49862897", "text": "protected void printInfo() {\r\n\t\tSystem.out.println (\"area =\" + this.area + \" perimeter = \" + this.perimeter);\t\t\t\r\n\t}", "title": "" }, { "docid": "1c724046a68d95b0a2e85cb0d2b77b46", "score": "0.4980498", "text": "public void setPlanInformation(String arg, String compcode) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + RetrievalPlan.PLANINFORMATION.toString(), arg, compcode);\n\t}", "title": "" }, { "docid": "191b521e39500bcf1c39244acca77f50", "score": "0.4980407", "text": "@Override\n public void printInfo(){\n System.out.println(\"ID = \"+ID);\n System.out.println(\"Deskripsi =\"+deskripsi);\n System.out.println(\"Harga Pajak = \"+hargapajak);\n System.out.println(\"Harga Beli =\"+hargabeli);\n }", "title": "" }, { "docid": "3865ff3407a9bc0784f17ac1bab4020b", "score": "0.4978479", "text": "void displayDetails();", "title": "" }, { "docid": "e81aa68e908e1b5d801a96451c3f56ef", "score": "0.4969413", "text": "public void setDetails(String details) {\n this.mDetails = details;\n }", "title": "" }, { "docid": "9edbb627a7e8f3c8f0a76f0e0d4561fe", "score": "0.49679926", "text": "public boolean showDetail() { return showDetail; }", "title": "" }, { "docid": "3bff6b8327396db24dcd8b735410d057", "score": "0.49668318", "text": "protected void display(String offset){\r\n System.out.println(offset + \"Appliance: \" + this.name + \" using \" + this.currCurrent + \" amps\");\r\n }", "title": "" }, { "docid": "2ded9a663e22461884768bb9afc278a0", "score": "0.4961283", "text": "public String details() {\n\t\t\n\t}", "title": "" }, { "docid": "d9d13d745ae95719a8878593cf883aed", "score": "0.49602228", "text": "@FXML\n public void onBotaoStepAction() throws IOException {\n OperationMode MOP = (OperationMode) memory.get(16);\n MOP.setMop(2);\n list.set(16,new MemoryList(\"MOP\",MOP.getMop().toString()));\n cpu.debugMode(memory,list,console);\n }", "title": "" }, { "docid": "ee90d85341295da58762c9c01550fdde", "score": "0.49534416", "text": "private void setInfo(AgentModel model)\r\n/* 681: */ {\r\n/* 682: 797 */ this.infobox.setVisible(true);\r\n/* 683: 798 */ this.infoBoxNameLabel.setText(model.getName());\r\n/* 684: 799 */ this.infoBoxTeamIdLabel.setText(\"Team: \" + model.getTeam());\r\n/* 685: 800 */ this.infoBoxplayerIdLabel.setText(\"Player \" + model.getPlayer());\r\n/* 686: 801 */ if (model.getCurrentWeapon() != null) {\r\n/* 687: 803 */ this.infoBoxWeaponLabel.setText(model.getCurrentWeapon().getName());\r\n/* 688: */ }\r\n/* 689: */ }", "title": "" } ]
a1254d1ce1c67e17c91a1eda1ba81d6b
adds a key/value attribute to the json response string.
[ { "docid": "f72d5c005f9d10cc72ced584f64ab20b", "score": "0.5732639", "text": "protected void addSuccess(String key, String value) {\n\t\tif(success == null) {\n\t\t\tsuccess = Json.newObject();\n\t\t\tsuccess.put(\"status\", \"OK\");\n\t\t}\n\t\tsuccess.put(key, value);\n\t}", "title": "" } ]
[ { "docid": "219764f1df14706bdbca20068cb500a5", "score": "0.66212314", "text": "public Attributes add(String key, String value) {\n\t\tif (value == null)\n\t\t\treturn this;\n\t\tout.append(' ');\n\t\tout.append(key);\n\t\tout.append(\"=\\\"\");\n\t\tout.append(value);\n\t\tout.append('\\\"');\n\t\treturn this;\n\t}", "title": "" }, { "docid": "6f909f2ec3e62dff8b6706dbefae6dd4", "score": "0.65814537", "text": "public T addAttribute(String key, String value) {\n/* 91 */ return put(key, value);\n/* */ }", "title": "" }, { "docid": "a92eefd2acae562f8ea1fbd3c9feccf2", "score": "0.63798916", "text": "private void addKey(String name) {\r\n json.append(\"\\\"\").append(name).append(\"\\\"\").append(\" : \");\r\n }", "title": "" }, { "docid": "1c85f8dc8ca9cd1d9c84f7402708c3ec", "score": "0.63356847", "text": "public void addAttribute(String key, String value) {\n this.attributes.put(key, value);\n }", "title": "" }, { "docid": "03bac169dadc7031093364acb59c78db", "score": "0.6258602", "text": "private void addValueAsString(String value) {\r\n json.append(\"\\\"\").append(jsonString(value)).append(\"\\\"\");\r\n }", "title": "" }, { "docid": "81e3baf9bc2f127f57e483d7a98063a7", "score": "0.61158276", "text": "public Builder addAttribute(String key, Object value) {\n this.attributes.put(key, value);\n return this;\n }", "title": "" }, { "docid": "35591515999d02ea39f6dd66f42f872c", "score": "0.59699565", "text": "public T addAttribute(String key, Level level) {\n/* 80 */ return put(key, level.toString());\n/* */ }", "title": "" }, { "docid": "ad12a3ebd2ea880846ddc6680e8b2926", "score": "0.5961367", "text": "private void addValueAsObject(Object value) {\r\n json.append(value);\r\n }", "title": "" }, { "docid": "9318a3ac011d9fe05263aa6e2531b350", "score": "0.5950483", "text": "private String makeJSON(String key, String value) {\n return \"{\\\"\"+ key + \"\\\":\\\"\" + value + \"\\\"}\";\n }", "title": "" }, { "docid": "cbc27bfaf223fd49054ecca58a5893ea", "score": "0.5920824", "text": "public void setAttribute(String key, String value) {\n }", "title": "" }, { "docid": "59b068d433db6ee11c34ef1b41dc49df", "score": "0.59019136", "text": "@JsonAnySetter\n public RUMApplicationAttributes putAdditionalProperty(String key, Object value) {\n if (this.additionalProperties == null) {\n this.additionalProperties = new HashMap<String, Object>();\n }\n this.additionalProperties.put(key, value);\n return this;\n }", "title": "" }, { "docid": "fb1a01733a4c42bdab150fedfd7d78a5", "score": "0.5900898", "text": "@Override\n public RibbonFilterContext add(String key, String value) {\n attributes.put(key, value);\n return this;\n }", "title": "" }, { "docid": "60bd1ee79c637592b08317288e312f73", "score": "0.586806", "text": "@Override\n\tpublic void setAttribute(String key, Object value) {\n\t\tattrs.put(key, value);\n\t}", "title": "" }, { "docid": "75ba56b18c86004fb0404e9dd0d3b22b", "score": "0.57161236", "text": "public JsonWebKey putAdditionalProperty(String key, Object value) {\n if (this.additionalProperties == null) {\n this.additionalProperties = new HashMap<String, Object>();\n }\n this.additionalProperties.put(key, value);\n return this;\n }", "title": "" }, { "docid": "2307f647d3716dcd2b86647af70884bc", "score": "0.5702201", "text": "public void addHeader(String key, String value){\n responseHeaders.add(new Pair<String,String>(key, value));\n }", "title": "" }, { "docid": "3fa2eef2e230114e4aa0f85c8f85b1e9", "score": "0.5620668", "text": "@JsonAnySetter\n public SLOBulkDeleteResponseData putAdditionalProperty(String key, Object value) {\n if (this.additionalProperties == null) {\n this.additionalProperties = new HashMap<String, Object>();\n }\n this.additionalProperties.put(key, value);\n return this;\n }", "title": "" }, { "docid": "268cb4cb5f0e273cba396f8cd18ca0dd", "score": "0.5607628", "text": "public void addCustomProperty(String key, Object value);", "title": "" }, { "docid": "d98d9b68a92032819599cd9b7bdec321", "score": "0.5603017", "text": "@JsonAnySetter\n public SyntheticsBrowserTestResultFull putAdditionalProperty(String key, Object value) {\n if (this.additionalProperties == null) {\n this.additionalProperties = new HashMap<String, Object>();\n }\n this.additionalProperties.put(key, value);\n return this;\n }", "title": "" }, { "docid": "7663a8a5750cd95c4cf2599c22a7a0fb", "score": "0.5598529", "text": "public void addExtendedAttribute(String attribute, Object value) {\n this.extendedAttributes.put(attribute, value);\n }", "title": "" }, { "docid": "24ea31992f52427770ef7b8c0df0b51e", "score": "0.559579", "text": "@JsonAnySetter\n public SensitiveDataScannerRuleAttributes putAdditionalProperty(String key, Object value) {\n if (this.additionalProperties == null) {\n this.additionalProperties = new HashMap<String, Object>();\n }\n this.additionalProperties.put(key, value);\n return this;\n }", "title": "" }, { "docid": "36673115f114e26cf89b0811ef484636", "score": "0.55844015", "text": "public void add(String key, Object value) {\n }", "title": "" }, { "docid": "e0820e084aacf926f0b212cf489fb269", "score": "0.55771494", "text": "@JsonAnySetter\n\tpublic void addOptionalProperty(String key, String value) {\n\t\toptionalProperties.put(key, value);\n\t}", "title": "" }, { "docid": "66824f9720b973fa0dc5122db6e33fa7", "score": "0.5528728", "text": "public void addResponseHeader(String key, String value) {\n response.getResponseHeaders().add(key, value);\n }", "title": "" }, { "docid": "8ae68b4b1925671b8a494c98ac390afc", "score": "0.5523822", "text": "public void add(final String key, final Object value);", "title": "" }, { "docid": "16bffa5c07b739ee5c7cf5cb0f50eb46", "score": "0.5522532", "text": "public Attributes put(String key, String value) {\n rawAttributes.put(key, value);\n return this;\n }", "title": "" }, { "docid": "6b1484f107e030ed0132ff981e72017c", "score": "0.5497035", "text": "void addProperty(String key, Object value);", "title": "" }, { "docid": "0a71f178e4fc595793b05829e21a96f8", "score": "0.5493271", "text": "public void addClientField(String key, String value){\n addClientObject(key, value);\n }", "title": "" }, { "docid": "3439e6a939ab382ae4715c1a538cd856", "score": "0.54894614", "text": "public void\n addHeader(String key, String value)\n {\n\tresponseHeaders.add(key, value);\n }", "title": "" }, { "docid": "7d9b7a29740b51d3555d38381bd92b65", "score": "0.5487405", "text": "public final void setAttribute(String key, Object value) {\n\t\tinfo.setAttribute(key, value);\n\t}", "title": "" }, { "docid": "c457eb7523329686ea44080c6115faf5", "score": "0.54817986", "text": "public void putAttribute(String key, Object value)\n\t{\n\t\tattributes.put(key.replace('.', '_'), value);\n\t}", "title": "" }, { "docid": "42a8fa6f15aeac216e092509beb92a80", "score": "0.5464591", "text": "void attributeAdded(RepositoryBackedSession session, String key, Object value);", "title": "" }, { "docid": "669a6f4871e1dc727816038d834b25b8", "score": "0.5460243", "text": "public JsonRequestBodyFactory addParam(String key, String value) {\n if (key != null && value != null) {\n mJsonObject.addProperty(key, value);\n }\n\n return this;\n }", "title": "" }, { "docid": "995bd728e4f51d5dd7f3dbaabb1ed9c8", "score": "0.54577565", "text": "public void addProperty(String key, String value) { }", "title": "" }, { "docid": "85249f985f9d22b7994285fdbfb14735", "score": "0.5427822", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic void write( String key, String value ) {\n\t\tjsonObject.put( key, value );\n\n\t\ttry( FileWriter file = new FileWriter( filePath ) ) {\n\t\t\tfile.write( jsonObject.toJSONString() );\n\t\t\tfile.flush();\n\t\t} catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "b38f95f055d408c8431ded3dbc34179e", "score": "0.54273856", "text": "public JSONDocument addString(String name, String value) {\r\n if (value != null) {\r\n addComma();\r\n addKey(name);\r\n addValueAsString(value);\r\n }\r\n return this;\r\n }", "title": "" }, { "docid": "c6a26ddf8cc5838d9f972fa3e21adc5b", "score": "0.54208285", "text": "public void addAttribute(String attributeKey, String attributeValue) {\n\t\tthis.userAttributes.put(attributeKey, attributeValue);\n\t}", "title": "" }, { "docid": "cc6a79143dc0df5c88d65ad4a543db59", "score": "0.5415936", "text": "@Override\n public void addAttribute(final String propertyName,\n final String propertyValue) {\n attributes.put(propertyName, propertyValue);\n }", "title": "" }, { "docid": "1cd370ec43f807f53076e13ca083eac4", "score": "0.5414058", "text": "public void addData(String key, String value) {\n data.put(key, value);\n }", "title": "" }, { "docid": "0542d012b85fffaee1098fcf0c0216ee", "score": "0.53904426", "text": "public void addSpecialResponse(String key, Object obj) {\n\t\tList<Object> curVals = specialResponses.get(key);\n\t\tif(curVals == null) {\n\t\t\tcurVals = new ArrayList<>();\n\t\t\tspecialResponses.put(key, curVals);\n\t\t}\n\t\tcurVals.add(obj);\n\t}", "title": "" }, { "docid": "fa4f5e35e05b2343b46ada01164c24a8", "score": "0.5381923", "text": "@POST\n\t@Produces(\"application/json\")\n\t@Consumes(\"application/json\")\n\t@Override\n\tpublic Response add(String json) {\n\t\treturn super.add(json);\n\t\t//return this.util.getResponsePrivate();\n\t}", "title": "" }, { "docid": "2939bec705ca3441d205dc80aa9e2586", "score": "0.53748596", "text": "public void addListAttribute(KeyValuePair kvp);", "title": "" }, { "docid": "b2f71f56b6618181e1c656567754fe8f", "score": "0.53355646", "text": "@JsonAnySetter\n public LogsLookupProcessor putAdditionalProperty(String key, Object value) {\n if (this.additionalProperties == null) {\n this.additionalProperties = new HashMap<String, Object>();\n }\n this.additionalProperties.put(key, value);\n return this;\n }", "title": "" }, { "docid": "3209a46cdc6c43d66fcfb796c78275ac", "score": "0.53354234", "text": "public void addValue(String tagName, String tagValue) throws Exception {\n HDataValue<String> attr = new HDataValue<String>(this, tagName, tagValue);\n }", "title": "" }, { "docid": "2e2ae387652b89806f1cebb1ac8929a3", "score": "0.53183705", "text": "@JsonAnySetter\n public DashboardSummaryDefinition putAdditionalProperty(String key, Object value) {\n if (this.additionalProperties == null) {\n this.additionalProperties = new HashMap<String, Object>();\n }\n this.additionalProperties.put(key, value);\n return this;\n }", "title": "" }, { "docid": "722b93c992dceb24642683ea98a3a8f0", "score": "0.5317049", "text": "amdocs.iam.pd.webservices.productattrrel.productdetailsoutputimpl.AttributeCustom addNewAttributeCustom();", "title": "" }, { "docid": "6120e29e8dd5edae8de095710682d88c", "score": "0.53090507", "text": "@Override\n\tpublic String put(String key, String value) {\n\t\treturn super.put(key, value);\n\t}", "title": "" }, { "docid": "4a61eba6ee0a333034cc0c31d8063575", "score": "0.5284262", "text": "public Attributes add(String key, String value, boolean doEscape) {\n\t\tif (value == null)\n\t\t\treturn this;\n\t\tout.append(' ');\n\t\tout.append(key);\n\t\tout.append(\"=\\\"\");\n\t\tif (doEscape) {\n\t\t\tout.append(StringEscapeUtils.escapeXml(value));\n\t\t} else {\n\t\t\tout.append(value);\n\t\t}\n\t\tout.append('\\\"');\n\t\treturn this;\n\t}", "title": "" }, { "docid": "e4652ab6b39318a1ee2351ceeed41440", "score": "0.5278486", "text": "public void addAttribute(String name, String value) {\n if (attributes == null) {\n attributes = new Properties();\n }\n \n attributes.addProperty(name, value);\n }", "title": "" }, { "docid": "14fadbd1d0dccaaa08a63e09c819fcb6", "score": "0.5272676", "text": "public void addKey(String key, String value);", "title": "" }, { "docid": "896d9e022cf0fcd901b9acde9d4e90e5", "score": "0.52642024", "text": "JSONElement putPrimitive(String key, Object value);", "title": "" }, { "docid": "0973243699db4288bb81656d047277a7", "score": "0.5261665", "text": "public boolean addAttribute(String name, String value);", "title": "" }, { "docid": "bb8e56e8c261bd9e97776046aadccbb6", "score": "0.5248697", "text": "public void setAttribute( String key, Object value ) {\n _context.put( key, value );\n }", "title": "" }, { "docid": "fc7e2e047b0f0dcae83e65bd6f51a36c", "score": "0.5236771", "text": "public JSONBuilder addStringField(String name, String value) {\n if (value == null) {\n return this;\n }\n\n addComma();\n indent();\n appendString(name);\n build.append(\":\");\n appendString(value);\n return this;\n }", "title": "" }, { "docid": "11f0fcae87b2aeaa278371de4b8115f8", "score": "0.52349854", "text": "@JsonAnySetter\n public void setAdditionalProperty(String name, Object value) {\n this.additionalProperties.put(name, value);\n }", "title": "" }, { "docid": "80cc741cbb9323c96a02d5dfc7e4b6e0", "score": "0.5230625", "text": "public static void wrapAndWriteJson(HttpServletResponse response, String keyName,\n JSONObject data) throws IOException {\n JSONObject jsonResponse = new JSONObject();\n jsonResponse.put(keyName, data);\n writeJson(response, jsonResponse);\n }", "title": "" }, { "docid": "7c2123cf83a033c47fc5e84eaf696e0c", "score": "0.52300817", "text": "public Attributes(String key, String value) {\n\t\tthis.add(key, value, true);\n\t}", "title": "" }, { "docid": "c418d342a96d80229fe7da4b7c06536f", "score": "0.5223037", "text": "@Override\n public String put(final String key, final String value) {\n\n this.isModified = true;\n return super.put(key, value);\n }", "title": "" }, { "docid": "a1e2edc80e0ba8052b5ccd9f10fa8c9a", "score": "0.5222051", "text": "public void addDetectVar(String key, String value) {\t\t\r\n\t\tif (this.m_detectRequest == null) {\r\n\t\t\tthis.m_detectRequest = new JsonObject();\r\n\t\t}\r\n\t\tthis.m_detectRequest.addProperty(key, value);\t\t\r\n\t}", "title": "" }, { "docid": "fa6fabe5a3c18ecdfbbb74edf71cb163", "score": "0.52105516", "text": "public void put(String key, String value) {\n Attribute attr = new Attribute(key, value);\n put(attr);\n }", "title": "" }, { "docid": "9dc4a5fcaae1840843ac29e490fcc0cc", "score": "0.52040744", "text": "JSONElement putStructure(String key, EasyJSON easyJSON);", "title": "" }, { "docid": "85ed7893695d31fc75dfbce5b7b31de9", "score": "0.52021515", "text": "public com.spotify.playlist4.proto.Playlist4Meta.StringAttribute.Builder addAttributeBuilder() {\n return getAttributeFieldBuilder().addBuilder(\n com.spotify.playlist4.proto.Playlist4Meta.StringAttribute.getDefaultInstance());\n }", "title": "" }, { "docid": "d42100e347c853d0d262d5d24b835d39", "score": "0.51953244", "text": "public void add(String key, Object val){\n\t\tdata.put(key,val);\n\t}", "title": "" }, { "docid": "d2dd1b1949f24403223be095dead27cb", "score": "0.5190359", "text": "JSONElement putStructure(String key);", "title": "" }, { "docid": "98bc10f6beb7329d3e6c486986578cc1", "score": "0.51888263", "text": "@Override\n public SOAPElement addAttribute(Name name, String value)\n throws SOAPException {\n if (name.getLocalName().equals(\"encodingStyle\")\n && name.getURI().equals(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE)) {\n setEncodingStyle(value);\n }\n return super.addAttribute(name, value);\n }", "title": "" }, { "docid": "f154d95fa0f04c1367607651133aca7f", "score": "0.5187094", "text": "public void setCustomDetail(String key, String value)\n \t{ customDetails.put(key, value); }", "title": "" }, { "docid": "917a1dd24d4cdce29f1092d8d48da77b", "score": "0.516729", "text": "JSONElement putElement(String key, JSONElement jsonElement);", "title": "" }, { "docid": "c0bdae0dd623494951d300848ad30447", "score": "0.5157835", "text": "public void addAttribute(Attribute attr) {\n\t\tattributes.put(attr.getName(), attr);\n\t}", "title": "" }, { "docid": "c45d67c0cde272cac682697b5899f819", "score": "0.5155118", "text": "private void addSingleKeyToResponse(CreateKeysResponse.Key key, GetKeysResponse response) {\n response.add(\n new GetKeysResponse.Key(\n key.getId(),\n key.getKey(),\n this.getActiveProfile().getDeviceId(),\n key.getAttributesMap(),\n key.getMutableAttributesMap(),\n key.getObligationsMap(),\n key.getOrigin(),\n key.getAttributesSigBase64FromServer(),\n key.getMutableAttributesSigBase64FromServer()));\n }", "title": "" }, { "docid": "5ac39f13972fce81c2322a32a1535d47", "score": "0.5151558", "text": "public void setExtraHeader(String key, String value) {\n \theaders.put(key, value);\n }", "title": "" }, { "docid": "07bc778e62fadf77a205dddbe90d4321", "score": "0.5139669", "text": "public void mo41156a(String key, Object value) {\n try {\n this.f39060c.put(key, value);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "7cd95b163603c3ca9b6cb8a6deb7c4af", "score": "0.5125673", "text": "public void newAttribute(String name, String value) {\r\n\t\tattributes.put(name, value);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7abe7ebd01618feccc62c02c3947a744", "score": "0.5123369", "text": "public Builder addAttribute(com.spotify.playlist4.proto.Playlist4Meta.StringAttribute value) {\n if (attributeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureAttributeIsMutable();\n attribute_.add(value);\n onChanged();\n } else {\n attributeBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "6506005263f355d193c68c7a45d62188", "score": "0.5109191", "text": "@SuppressWarnings(value = \"unchecked\")\n protected <T> T withValue(String key, String value) {\n mWriter.put(key, value);\n return (T) this;\n }", "title": "" }, { "docid": "884a4f10af94a03bd969bec388f8bfb6", "score": "0.5109184", "text": "@Override\n public void put(String key, String value) {\n \n }", "title": "" }, { "docid": "a786f1ba5937449c461d33fa80109e6d", "score": "0.51067495", "text": "public void addProperty(final String key, final String value) {\r\n\t\t\tthis.dict.put(key, value);\r\n\t\t}", "title": "" }, { "docid": "6d1deb01a61dfdc014597fc601ecab71", "score": "0.5103284", "text": "public void addAttribute(String name, Object[] values) {\n if ((values == null) || (name == null)) {\n throw new NullPointerException(\n \"Parameters must be non-null strings\");\n }\n final StringBuilder buf = new StringBuilder();\n buf.append(\"\\\"\" + name + \"\\\":[\");\n for (int i = 0; i < values.length; i++) {\n if (i > 0) {\n buf.append(\",\");\n }\n buf.append(\"\\\"\");\n buf.append(escapeJSON(values[i].toString()));\n buf.append(\"\\\"\");\n }\n buf.append(\"]\");\n tag.addAttribute(buf.toString());\n }", "title": "" }, { "docid": "3370d8854825dc8cd5777c6a349aa705", "score": "0.5100593", "text": "void addResponseHeader(String name, String value);", "title": "" }, { "docid": "c582e3a16325598bc8cab98479d94a21", "score": "0.5090607", "text": "public static String JSONify(String key, String value, boolean wrap) {\n\t\tString json = \"\\\"\" + key + \"\\\": \";\n\t\tif (value.startsWith(\"{\")) {\n\t\t\tjson += value;\n\t\t} else {\n\t\t\tjson += \"\\\"\" + value + \"\\\"\";\n\t\t}\n\t\tif (wrap) {\n\t\t\treturn wrapJSON(json);\n\t\t}\n\t\treturn json;\n\t}", "title": "" }, { "docid": "8d6b4105f04106ef534969a0037aeefa", "score": "0.50756764", "text": "@Override\n public JSONObject put(String name, boolean value) throws JSONException {\n return put(name, value);\n }", "title": "" }, { "docid": "45e538d84e61a70e297e81014cbed1d6", "score": "0.5074318", "text": "public static void wrapAndWriteJson(HttpServletResponse response, String keyName,\n JSONArray data) throws IOException {\n JSONObject jsonResponse = new JSONObject();\n jsonResponse.put(keyName, data);\n writeJson(response, jsonResponse);\n }", "title": "" }, { "docid": "8defe367d300d0bea7f9b4e27decc5d7", "score": "0.5064855", "text": "public void appendCustomQueryParameterToAllRequests(String key, String value) {\n mCustomQueryParams.add(new BasicNameValuePair(key, value));\n }", "title": "" }, { "docid": "93e3d26c8372b46abf45d861f9b5d64a", "score": "0.50220394", "text": "@JsonSetter(\"metadata\")\r\n public void setMetadata (LinkedHashMap<String, String> value) { \r\n this.metadata = value;\r\n }", "title": "" }, { "docid": "448a9bdb4856453ba6238e19db349806", "score": "0.50191134", "text": "public final void addAttribute(QualifiedName name, String value) {\n/* 216 */ if (this._attributeCount == this._names.length) {\n/* 217 */ resize();\n/* */ }\n/* 219 */ this._names[this._attributeCount] = name;\n/* 220 */ this._values[this._attributeCount++] = value;\n/* */ }", "title": "" }, { "docid": "0b5273482d5269c91a594119da2f12c0", "score": "0.5015069", "text": "public void addAtribute(String atribute) {\n this.attributes.add(atribute);\n }", "title": "" }, { "docid": "3bd50cf40ccbcdee691c3632043f7c44", "score": "0.50057244", "text": "@Override\n public void setAttribute(String name, Object value) {\n getAttributes().put(name, value);\n }", "title": "" }, { "docid": "19ad407ee213a67b87616160bd916bba", "score": "0.5002882", "text": "public JSON_DB_EXTENDED putItem(String item){\n\t\t\n\t\tString key = this.generateRandomId();\n\t\tjsonStringBuilder.append(\"\\\"\"+key+\"\\\":[\");\n\t\tjsonStringBuilder.append(\"\\\"\"+item+\"\\\",\");\n\t\t\n\t\treturn this;\n\t}", "title": "" }, { "docid": "71805441f75fd82bf5dd7d9a2a65651d", "score": "0.5001017", "text": "public void addAttribute(Attribute att) {\r\n String name = att.getLocalName();\r\n String value = att.getValue();\r\n if (name == null) {\r\n } else if (name.equals(\"id\")) {\r\n setId(value);\r\n } else if (name.equals(\"dictRef\")) {\r\n setDictRef(value);\r\n } else if (name.equals(\"value\")) {\r\n setCMLValue(value);\r\n } else if (name.equals(\"objectClass\")) {\r\n setObjectClass(value);\r\n\t } else {\r\n super.addAttribute(att);\r\n }\r\n }", "title": "" }, { "docid": "665d3aa0fb4f9b04a8843972ea749c37", "score": "0.49968466", "text": "public void addString(String name, String value){\n }", "title": "" }, { "docid": "ec17cde2802e72ba2f0bb31deb9babf6", "score": "0.499278", "text": "public JsonRequestBodyFactory addParam(String key, Object value) {\n addParam(key, value == null ? \"\" : value.toString());\n\n return this;\n }", "title": "" }, { "docid": "3d99d3de74a313f9141702ef98f3986a", "score": "0.49873698", "text": "public Sendgrid addUniqueArgument(String key, String value) {\n if (false == this.header_list.has(\"unique_args\")) {\n try {\n this.header_list.put(\"unique_args\", new JSONObject());\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n try {\n ((JSONObject) this.header_list.get(\"unique_args\")).put(key, value);\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return this;\n }", "title": "" }, { "docid": "d54acbccab54612eb0fa06c3d0f771d8", "score": "0.4984754", "text": "@Override\n\tpublic void setAttribute(String name, Object value) {\n\t\tmap.put(name, value);\n\n\t}", "title": "" }, { "docid": "a2de440c58edbe18001badfbaa892a38", "score": "0.49786523", "text": "public void addValue(String attrString)\n {\n if( attrString == null) {\n throw new IllegalArgumentException(\"Attribute value cannot be null\");\n }\n try {\n this.add( attrString.getBytes( \"UTF-8\" ) );\n } catch( UnsupportedEncodingException ue ) {\n throw new RuntimeException( ue.toString());\n }\n return;\n }", "title": "" }, { "docid": "bc979fc27dadd0105f4c26bf55ed5b7d", "score": "0.4976978", "text": "@Override\n public String get(String key) {\n return attributes.get(key);\n }", "title": "" }, { "docid": "bb710eef091f347956a27fa5d8e41159", "score": "0.49684665", "text": "public static void setAttribute(final String key, final Object value) {\r\n final Map<String, Object> map = ATTRIBUTES.get();\r\n if (map != null) {\r\n map.put(key, value);\r\n }\r\n }", "title": "" }, { "docid": "db64d26c3e1227fbcd22738934bca9bd", "score": "0.49658576", "text": "@JsonSetter(\"message\")\r\n private void setMessage (String value) { \r\n this.message = value;\r\n }", "title": "" }, { "docid": "00390967e0de6e3a6bb40a6e3623f1dc", "score": "0.49636894", "text": "public String addAttribute(String tag, String value) {\r\n return new String(\"Attributes are not accepted in \" + XMLTag +\r\n \" elements\");\r\n\r\n }", "title": "" }, { "docid": "63c75cf0a6117e38f0c12fe813670240", "score": "0.49624473", "text": "public org.apache.xmlbeans.XmlString addNewAttribute()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ATTRIBUTE$10);\n return target;\n }\n }", "title": "" }, { "docid": "852c1078f9411ad5d301150fcadd4aad", "score": "0.4943098", "text": "@JsonProperty(\"added\")\n public Map<String, String> getAdded() {\n return added;\n }", "title": "" }, { "docid": "782cf172637df7fd16445c5af4b6fd51", "score": "0.49427328", "text": "public static void addAttribute(final RecordStore result, final String element, final String attrType, final String attrName, final String value) {\n switch (attrType) {\n case \"boolean\":\n result.set(element + attrName, Boolean.parseBoolean(value));\n break;\n case \"int\":\n result.set(element + attrName, Integer.parseInt(value));\n break;\n case \"long\":\n result.set(element + attrName, Long.parseLong(value));\n break;\n case \"float\":\n result.set(element + attrName, Float.parseFloat(value));\n break;\n case \"double\":\n result.set(element + attrName, Double.parseDouble(value));\n break;\n default:\n result.set(element + attrName, value);\n break;\n }\n }", "title": "" }, { "docid": "a0d4976181b3487d1ba763fc0982426e", "score": "0.49414217", "text": "public void setAttribute(String name, Object value) {\n if (attrList == null) {\n attrList = new ArrayList<>();\n }\n for (Attribute attr : attrList) {\n if (attr.name.equals(name)) {\n attr.value = String.valueOf(value);\n return;\n }\n }\n Attribute attr = new Attribute();\n attr.name = name;\n attr.value = String.valueOf(value);\n attrList.add(attr);\n }", "title": "" } ]
82843f4c5bc73e06480ac9a1e408ad57
Test of incrementCount method, of class PeopleCounter.
[ { "docid": "f823117adf97ba90463391a3998e632b", "score": "0.8126361", "text": "@Test\n public void testIncrementCount() {\n System.out.println(\"incrementCount\");\n PeopleCounter instance = new PeopleCounter();\n instance.incrementCount();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" } ]
[ { "docid": "4e524c39ff36259cc6e9664e460bcd51", "score": "0.77976257", "text": "TestCounter()\n\t{\n\t\tcount++;\n\t}", "title": "" }, { "docid": "9c67322a3d6ddc8a421857325815df0d", "score": "0.7680485", "text": "public void incrementTestCount()\n\t{\n\t\ttestCount++;\n\t}", "title": "" }, { "docid": "080280a8c485c3eccc56589094dfcfa2", "score": "0.7651931", "text": "public static void increasePersonCount() {\n personCount++;\n }", "title": "" }, { "docid": "4f13756cbf82fa45335b847257abfbb1", "score": "0.7512204", "text": "public void incrementCount() { this.count++; }", "title": "" }, { "docid": "7fae6a2edb6e1ee6d4fc1b51854f8135", "score": "0.73788565", "text": "public void incrementCount(int count);", "title": "" }, { "docid": "34a80d27af29c95efa285c4d92893ff6", "score": "0.7285471", "text": "public void incrementCount()\n\t\t\t{\n\t\t\t\t_count++;\n\t\t\t}", "title": "" }, { "docid": "257e4dcbacfd2767041c30358d7a7897", "score": "0.7171309", "text": "@Override\n\tpublic void increaseCount() {\n\t\t\n\t\t count = count+1;\n\t}", "title": "" }, { "docid": "702f104364337cc4b995abff1f2fd356", "score": "0.7104254", "text": "public void addCount() {\r\n count++;\r\n }", "title": "" }, { "docid": "7dc1988c6dd55082a61dcc2064070f16", "score": "0.7022103", "text": "synchronized long incCountTests() {\n\t\treturn ++countTests;\n\t}", "title": "" }, { "docid": "caf5ca4361b4fdf373cf5c3ba8a2b9fd", "score": "0.69514835", "text": "@Test\n public void testGetCount() {\n System.out.println(\"getCount\");\n PeopleCounter instance = new PeopleCounter();\n int expResult = 0;\n int result = instance.getCount();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "772863fc69b4edbf8dea0270349d9cbb", "score": "0.69320875", "text": "public void increment() {\r\n\t\tcount++;\r\n\t}", "title": "" }, { "docid": "51bcd7663f8aaeaca733775a154fa160", "score": "0.69151825", "text": "void increment() {\n count++;\n }", "title": "" }, { "docid": "537d13de11238635706f969f9238a50d", "score": "0.6882944", "text": "public void increment(){\n this.count ++;\n }", "title": "" }, { "docid": "45c90061c0564ed2ed85966a9dc6dc7a", "score": "0.68387043", "text": "public void incrementGetCount() {\n this.getCount++;\n }", "title": "" }, { "docid": "ec75cfb4c9a89c848b581b3e4b2dae3d", "score": "0.68163764", "text": "public void increment() {\n //count.incrementAndGet();\n count++;\n }", "title": "" }, { "docid": "4f9e3094cc5b4bb3012c5ffd195114bd", "score": "0.67568785", "text": "@Test\n public void testResetCount() {\n System.out.println(\"resetCount\");\n PeopleCounter instance = new PeopleCounter();\n instance.resetCount();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "37887b0a5f6d6f35db8b0ca720748d77", "score": "0.6704677", "text": "@Test\n public void testCounterValue() {\n final int NUMBER_TESTS = 100;\n final int NUMBER_INC = 10;\n final Random rand = new Random();\n for (int i = 0; i < NUMBER_TESTS; i++) {\n long initValue = rand.nextInt();\n long expectedValue = initValue;\n Counter counter = new Counters().findCounter(\"test\", \"foo\");\n counter.setValue(initValue);\n Assert.assertEquals(\"Counter value is not initialized correctly\", expectedValue, counter.getValue());\n for (int j = 0; j < NUMBER_INC; j++) {\n int incValue = rand.nextInt();\n counter.increment(incValue);\n expectedValue += incValue;\n Assert.assertEquals(\"Counter value is not incremented correctly\", expectedValue, counter.getValue());\n }\n expectedValue = rand.nextInt();\n counter.setValue(expectedValue);\n Assert.assertEquals(\"Counter value is not set correctly\", expectedValue, counter.getValue());\n }\n }", "title": "" }, { "docid": "f3524d8dd0dd6ccc844456750eb0836d", "score": "0.666246", "text": "public void incrementCallerCount() {\n callerCount.incrementAndGet();\n }", "title": "" }, { "docid": "714c69de990fae50537c2ecc39f00f54", "score": "0.6659168", "text": "public synchronized void increment() {\n\t\tcount++;\n\t}", "title": "" }, { "docid": "714c69de990fae50537c2ecc39f00f54", "score": "0.6659168", "text": "public synchronized void increment() {\n\t\tcount++;\n\t}", "title": "" }, { "docid": "1fc4adaa6852657a191e79821fd724f5", "score": "0.6659164", "text": "public static void main(String [] args){\n Count myCount = new Count();\n int times = 0;\n \n for (int i = 0; i < 100; i++){\n increment(myCount, times);\n }\n \n System.out.println(\"count is \"+ myCount.count);\n System.out.println(\"times is \"+ times);\n }", "title": "" }, { "docid": "183460d11af49b531abf9171c60d823d", "score": "0.66215074", "text": "public void incrementCount()\n\t{\n\t\tturnCount++;\n\t}", "title": "" }, { "docid": "bfbe0305502176a4646d73f23c636e04", "score": "0.6565872", "text": "@Test\n public void testPrintCount() {\n System.out.println(\"printCount\");\n PeopleCounter instance = new PeopleCounter();\n instance.printCount();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "d86d6ec379dd0311ef9964d78cb242f4", "score": "0.6563313", "text": "public void increaseCounter() {\n increaseCounter(1);\n }", "title": "" }, { "docid": "523950230ff7edfe79ae3deff4a7aca7", "score": "0.6558111", "text": "public synchronized void increment(){\n count++;\r\n }", "title": "" }, { "docid": "ccaa4cf7da0cbeaa7ede036f4ce9b813", "score": "0.6548171", "text": "void updateCounter();", "title": "" }, { "docid": "1a4193553c112e6d871a33fc27271038", "score": "0.6533698", "text": "private void count(){\n\t\tMethodDescriptor methDesc = new MethodDescriptor(this.testClassName, this.testMethodSignature);\n\t\tcounter.setInstrumentationParams(this.instrumentationParameters);\n//\t\tlog.fine(\"Method descriptor: \"+methDesc);\n\t\t\n\t\tlong start = System.nanoTime();\n\t\tlog.fine(\"(NOT INITIALISED)\" + this.counter.getInstrumentationParams().toString());\n\t\tthis.counter.getInstrumentationParams().setCounterPrecisionIsLong(InstrumentationParameters.COUNTER_PRECISION_INT);\n\t\tthis.counter.instrument(methDesc);\n\t\tthis.counter.execute(this.methodToExecute, \n\t\t\t\tthis.executionParameters);\n\t\tlong stop = System.nanoTime();\n\t\tlong counting = stop-start;\n\t\t\n\t\tlog.fine(this.counter.getInstrumentationParams().toString());\n\t\tlog.info(counting+ \"ns to count (aka \\t\"+\n\t\t\t\tMath.round((double) counting/1000)+\"us aka \\t\"+\n\t\t\t\tMath.round((double) counting/1000000)+\"ms aka \\t\"+\n\t\t\t\tMath.round((double) counting/1000000000)+\"s)\");\n\t\t\n\t\tCountingResult[] finalResults = this.resultColl.retrieveAllCountingResultsAsArray(false);\n\t\tAssert.assertNotSame(\"Number of results must be != 0.\", 0, finalResults.length);\n\t\tlog.info(finalResults.length+\" counting results found, logging them: \");\n\t\tfor(CountingResult r : finalResults) {\n\t\t\tthis.resultColl.logResult(r, true, true); //from Martin\n\t\t}\n\t\t// clear all collected results\n\t\tthis.resultColl.clearResults();\n\t}", "title": "" }, { "docid": "554e33e8660a00a507637121fddaa79c", "score": "0.6477014", "text": "@Override\n public void incrementCounter(String group, String counter, long amount) {\n \n }", "title": "" }, { "docid": "fce4f1a3071a6e088c7ebc9d5a3232db", "score": "0.64728355", "text": "public void increaseUseCount();", "title": "" }, { "docid": "7cb3611b6395e5c7d9f78ab568790764", "score": "0.64513683", "text": "public int increment(){\n return counter++;\n }", "title": "" }, { "docid": "2d09ad82c730019681f9bbe441838977", "score": "0.6429519", "text": "public void increaseNumberOfOccurences() {\n numberOfOccurences++;\n }", "title": "" }, { "docid": "e7bcb5b7478787600bb61da50fdf684c", "score": "0.6411412", "text": "public void count() {\n Counter test = new Counter();\n \tCounter test2 = new Counter();\n \tCounter test3 = new Counter();\n \t\n \twhile (test2.getCurrentCount() < 100) {\n \t test2.incrementCount();\n \t}\n \t\n \tfor (int i = 0; i < 100; i++) {\n \t test.incrementCount();\n \t \n \t for (int j = 100; j != 0; j--) {\n \t test2.decrementCount(j);\n \t \n \t }\n \t}\n \t\n \tSystem.out.println(test.getCurrentCount());\n \tSystem.out.println(test2.getCurrentCount());\n \t\n \tString input = JOptionPane.showInputDialog(\"What number do you want to count to?\");\n \tint target = Integer.parseInt(input);\n \t\n \twhile (test3.getCurrentCount() < target) {\n \t test3.incrementCount();\n \t System.out.println(test3.getCurrentCount());\n \t}\n \t\n }", "title": "" }, { "docid": "9f65feef989da849da7a94ce0df1278b", "score": "0.6333653", "text": "public void incrementSampleCount() {\r\n sampleCount++;\r\n }", "title": "" }, { "docid": "ac26275bd66fee20fa58ecbd199fd1cf", "score": "0.6322089", "text": "@org.junit.jupiter.api.Test\r\n public void testCount() {\r\n assertEquals(ufs[0].count(), 4);\r\n assertEquals(ufs[1].count(), 3);\r\n }", "title": "" }, { "docid": "fe9dc3724b746630f311a5f9cf7ea831", "score": "0.629657", "text": "@Override\r\n\tpublic void count() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dd85bdc854ec2fa152d27d92f044c829", "score": "0.6281011", "text": "abstract void addToCounter();", "title": "" }, { "docid": "268b4ee7c133fb6e263d43d50b7c1376", "score": "0.6257869", "text": "@Test\n\tpublic void noticeCountTest() throws Exception{\n\t}", "title": "" }, { "docid": "3d813f7fb5ae33ca650b2397d1c5081f", "score": "0.62499666", "text": "public int increment() {\n\t\t\tsynchronized(this){\n\t\t\t\treturn ++count;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4ebef83141fabcbf4ba2b936f1c66f35", "score": "0.62203884", "text": "private void increaseTotalCount(){\r\n\t\ttotalCount++;\r\n\t\tupdateTotalCounter();\r\n\t}", "title": "" }, { "docid": "755deb7f9e195ad50da6b6afca53c3e2", "score": "0.62015957", "text": "private void runCounter(){\n if(this.circleTestTimes - 1 == this.circleTestIndex) {\n this.circleSizeIndex++;\n this.circleTestIndex = 0;\n return;\n }\n this.circleTestIndex++;\n }", "title": "" }, { "docid": "6d705c870a283f3164c33db71e726ad8", "score": "0.6176425", "text": "int getPeopleCount();", "title": "" }, { "docid": "cc371a137a3a53dacda9dfcb16b9a740", "score": "0.6161171", "text": "@Test\n public void foulCountTest() {\n // TODO: test foulCount\n }", "title": "" }, { "docid": "adc891eb291c96acf5302d02badb23a2", "score": "0.61506927", "text": "public void incrementNumCorrect() {\r\n numCorrect++;\r\n }", "title": "" }, { "docid": "1dc155ead98d1c53bb9a4dac43309e33", "score": "0.61476994", "text": "public void incrementPutCount() {\n this.putCount++;\n }", "title": "" }, { "docid": "4762063a78aa38ef4ca8188c07947471", "score": "0.61397797", "text": "public void incrementNumAdded() {\r\n numAdded++;\r\n }", "title": "" }, { "docid": "b6b71de986de14732e2d8bb5bca096aa", "score": "0.61339647", "text": "public void incrementGoalCount() {\n\t\tgoalCount++;\n\t}", "title": "" }, { "docid": "5da33b8ca3e7816249c06443a1bc37c9", "score": "0.61079323", "text": "void incScannerCount();", "title": "" }, { "docid": "9ae6e31d10fa0f907f8d4339d5c039cb", "score": "0.6084426", "text": "public synchronized void count(){\n\t\tc++;\n\t}", "title": "" }, { "docid": "602a1972e9667dca9c97fc686a929b2f", "score": "0.6079747", "text": "@Test\n public void testPetCountOnUpdate() {\n for (int i = 0; i < tripForTesting.length; i++) {\n testDao.addTrip(tripForTesting[i]);\n updatedTrips[i].setTripId(tripForTesting[i].getTripId());\n testDao.updateTrip(updatedTrips[i]);\n Assert.assertEquals(\"Expected \" + (i + 1) + \" pets after updating petses.\",\n i + 1, testDao.getAllTrips().size());\n }\n\n }", "title": "" }, { "docid": "ef99f7e65a63bbaeec098ea786948c69", "score": "0.6071953", "text": "int increment() {\r\n\t\treturn matchingServices.incrementAndGet();\r\n\t}", "title": "" }, { "docid": "56e9997f57996d3203f3747cb1598d03", "score": "0.60598606", "text": "void incrementClickCount();", "title": "" }, { "docid": "a7ef6f414c9f268c8a90b66f3936dccc", "score": "0.60565966", "text": "protected int incModCount() {\r\n if (LOG.isEnabledFor(Priority.DEBUG)) {\r\n LOG.debug(\"Modification #\" + (modCount + 1) + \" to PeerAdv@\" + Integer.toHexString(System.identityHashCode(this)));\r\n }\r\n\r\n return modCount++;\r\n }", "title": "" }, { "docid": "7ab3e8857bfd91bbacde9e3b7e96ae05", "score": "0.60533583", "text": "public void incrementVotesCount() {\n\t\tthis.votesCount++;\n\t}", "title": "" }, { "docid": "eff951db32621d049f997204ec807714", "score": "0.605082", "text": "public void increaseTransactionCount() {\r\n\t\tthis.support++;\r\n\t}", "title": "" }, { "docid": "799d6dc1bb9624ddfe236c3a656db65c", "score": "0.60300696", "text": "int fillCount();", "title": "" }, { "docid": "799d6dc1bb9624ddfe236c3a656db65c", "score": "0.60300696", "text": "int fillCount();", "title": "" }, { "docid": "e0acdce2cc99c91ad61c2825de4aec23", "score": "0.6010952", "text": "@Test\n\tpublic void testAddAndGet_1()\n\t\tthrows Exception {\n\t\tCounterHolder fixture = new CounterHolder(1L, 1L);\n\t\tlong delta = 1L;\n\n\t\tlong result = fixture.addAndGet(delta);\n\n\t\t// add additional test code here\n\t\tassertEquals(2L, result);\n\t}", "title": "" }, { "docid": "06d46800a726690a6ca0d5efd6a2a634", "score": "0.60095173", "text": "@Test (dependsOnMethods={\"check\"})\n\t public void increaseSeen() {\n\t\t\n\t\t Assert.assertEquals(PrivatePagePostEntity.increaseSeen(1),true);\n\t }", "title": "" }, { "docid": "9f7870c52d6a16b10c19cf058116b71c", "score": "0.59892726", "text": "int getPersonCount();", "title": "" }, { "docid": "159054456b1df1b1fdb83b5c78b6a702", "score": "0.59817535", "text": "@Test\n public void techFoulCountTest() {\n // TODO: test techFoulCount\n }", "title": "" }, { "docid": "935cb06ac3d0cfd50406b6f2928ccb40", "score": "0.5981007", "text": "public counter(int count){\n this.count = count;\n }", "title": "" }, { "docid": "426d9deaecfe9eb86cce83012b90939b", "score": "0.5976343", "text": "public void incCount(E data)throws NullPointerException;", "title": "" }, { "docid": "3c91f9b92406c1250bd86461f23e74ba", "score": "0.59656686", "text": "@Test\n public void count(){\n Assert.assertTrue(\"个数:\" + articleService.count(),articleService.count() > 1);\n }", "title": "" }, { "docid": "d849d28737c6ae98b5010e62e9a73730", "score": "0.59580356", "text": "public void setCount(int newCount)\n\t{\n\t\tcount = newCount;\n\t}", "title": "" }, { "docid": "4bf0554a42a5c905af5ede1b6912be4c", "score": "0.5945942", "text": "@Test\r\n\tpublic void testGetCount(){\r\n\t\t//Checking if a series of float value could be added\r\n\t\tthis.SensorDataTests.addValue(6.0f);\r\n\t\tthis.SensorDataTests.addValue(10.3f);\r\n\t\t//Checking if it returns the correct count\r\n\t\tassertEquals(2,this.SensorDataTests.getTotal());\r\n\t}", "title": "" }, { "docid": "253d2f045c347c8927fe3c2c62aa4edb", "score": "0.59436226", "text": "@Test\n @Ignore\n public void testGetRegisteredAlleleCount() {\n System.out.println(\"getRegisteredAlleleCount\");\n final int initialCount = Allele.getRegisteredAlleleCount();\n final int id = Allele.getId(\"13\");\n final int updatedCount = Allele.getRegisteredAlleleCount();\n assertTrue(initialCount < updatedCount);\n }", "title": "" }, { "docid": "7199881f51a967595564f53b10446b06", "score": "0.59270495", "text": "@Test\n public void testCountKiwi() {\n Kiwi kiwi = new Kiwi(player.getPosition(), \"kiwi\",\"kiwi\", \"Random kiwi fact\");\n island.addOccupant(player.getPosition(), kiwi);\n int score = game.getScore() + 10;\n game.cuddleKiwi();\n int scoreAfterKiwi = game.getScore();\n Assert.assertEquals(\"Wrong cuddle\", game.getKiwisCuddled(), 1);\n Assert.assertEquals(\"Wrong score\", score, scoreAfterKiwi);\n }", "title": "" }, { "docid": "1bd4b224b566e6c5dcdb6084d8ac4a08", "score": "0.5914574", "text": "public void testSucceedOneTry() throws Exception {\r\n final Counter c = new Counter();\r\n new RetriedAssert(5000, 250) {\r\n public void run() throws Exception {\r\n c.value++;\r\n assert(true);\r\n }\r\n }.start();\r\n assertEquals(\"Number of tries\", 1, c.value);\r\n }", "title": "" }, { "docid": "17be7f7effb3c6a71114a31f6230baac", "score": "0.59095347", "text": "public void incrementExceptionCount() {\n exceptionCount.incrementAndGet();\n }", "title": "" }, { "docid": "cd1b232a2ddb63b8a65d4e37d12c0edf", "score": "0.59038377", "text": "public void count() {\n synchronized (this.monitor) {\n this.count++;\n this.monitor.notifyAll();\n }\n }", "title": "" }, { "docid": "c98fc76d2a6bbe539c5188da26b4d4c3", "score": "0.5903278", "text": "public abstract long count();", "title": "" }, { "docid": "383c95a5085d27cc915e6e7c2217d1b9", "score": "0.5893273", "text": "long count();", "title": "" }, { "docid": "383c95a5085d27cc915e6e7c2217d1b9", "score": "0.5893273", "text": "long count();", "title": "" }, { "docid": "383c95a5085d27cc915e6e7c2217d1b9", "score": "0.5893273", "text": "long count();", "title": "" }, { "docid": "383c95a5085d27cc915e6e7c2217d1b9", "score": "0.5893273", "text": "long count();", "title": "" }, { "docid": "5a25f1d35e8da3737c9ad92b79490d31", "score": "0.58928424", "text": "public void increaseUsers() {\n synchronized (this) {\n number_of_users++;\n }\n }", "title": "" }, { "docid": "f3206de165e2cf56138c341c7ea6cca9", "score": "0.5892548", "text": "@Override\n\tpublic abstract long count();", "title": "" }, { "docid": "20dd62cea72986583658b852b74b4e3d", "score": "0.58917063", "text": "public void incrementNumNotifictions() {\n numNotifications++;\n }", "title": "" }, { "docid": "6c929b251ba3b441030bacaf3a8829c3", "score": "0.5886962", "text": "public function IncrementTeamHits()\n{\n self.TeamHits++;\n}", "title": "" }, { "docid": "65e79c1833b5c63e0db153a30f30510d", "score": "0.58859795", "text": "public void incrementNumOfNewUsers() {\r\n try {\r\n data.incrementNumOfNewUsers();\r\n }\r\n catch(SQLException sqle){\r\n System.err.println(\"Error in updateNumOfNewUsers(): \" + sqle.getMessage());\r\n }\r\n }", "title": "" }, { "docid": "81ace0e91f11a178b8d5e2394f540e17", "score": "0.5885892", "text": "void incrementObjectsKeptAliveCount() {\n\t\tobjectsKeptAliveCount++;\n\t}", "title": "" }, { "docid": "2f6d43eff7f30c9aad42ace66e0f3e5c", "score": "0.58804005", "text": "protected abstract void updateCount(AbsTree t, AbsTree tr);", "title": "" }, { "docid": "d0375900193adf28f12aeae3544e7179", "score": "0.58735436", "text": "@Test\n\tpublic void NumChangesTest()\n\t{\n\t\t//Do some stuff\n\t\t\n\t\t\n\t\t//Asserts\n\t\tassertEquals(\"The number of changes was incorrect.\", changeCounter.getNumchanges(filePath), 78);\n\t}", "title": "" }, { "docid": "f4b8177ebdcb6a51256d6b25625759ac", "score": "0.5865779", "text": "void updateRequestsCount();", "title": "" }, { "docid": "702ea05ff604bc0bad37ce84c000596a", "score": "0.58404845", "text": "public void increseCounterP() {\n\t\tthis.counterP++;\n\t}", "title": "" }, { "docid": "e5ba06b059fefe4c30ddc65cd2ca3e79", "score": "0.5840337", "text": "public function IncrementHits()\n{\n self.Hits++;\n}", "title": "" }, { "docid": "e5b08a29575fc688708a5ddd60a40a77", "score": "0.58359766", "text": "private void incrementCounter(String key) {\n SharedPreferencesManager prefs = SharedPreferencesManager.getInstance();\n int count = prefs.readInt(key, 0);\n // Note that this is written asynchronously, so there is a chance that\n // this will not succeed.\n prefs.writeInt(key, count + 1);\n }", "title": "" }, { "docid": "e56b5515b2447de325e3f8f1adc0c96b", "score": "0.5827742", "text": "@Override\n\t/**\n\t * @param int\n\t */\n\tpublic void update(int countIn) {\n\t\t count=countIn;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "4581c0ef14e0b9661d37d5f8d40c806d", "score": "0.5821127", "text": "public void testIncrementBtn() {\n\t int incrementBtnId = R.id.increment;\n\t assertNotNull(activity.findViewById(incrementBtnId));\n\t Button view = (Button) activity.findViewById(incrementBtnId);\n\t assertEquals(\"Incorrect label of the button\", \"+1\", view.getText());\n\t \n\t //Example robolectric code\n\t /*ImageView pivotalLogo = (ImageView) activity.findViewById(R.id.pivotal_logo);\n\t ShadowImageView shadowPivotalLogo = Robolectric.shadowOf(pivotalLogo);\n\t assertThat(shadowPivotalLogo.resourceId, equalTo(R.drawable.pivotallabs_logo));*/\n\t \n\t //Get row count before increment button click\n\t TextView countText = (TextView) activity.findViewById(R.id.counter_number);\n\t int previousCount = Integer.parseInt(countText.getText().toString());\n\t \n\t view.performClick();\n\t \n\t // Check the row count is incremented\n\t int afterCount = Integer.parseInt(countText.getText().toString());\n\t \n\t assertEquals(\"Row count not properly incremented\", previousCount+1, afterCount);\n\t}", "title": "" }, { "docid": "08d17e2c73dbcdc0b1791d2c02805994", "score": "0.5819392", "text": "ex17(){ \r\n\t\tcount++; \r\n\t\tSystem.out.println(count); \r\n\t\t}", "title": "" }, { "docid": "0b0330408af06fd1c07c1b6effbcf929", "score": "0.581664", "text": "Counter(){\n count++;\n System.out.println(count);\n }", "title": "" }, { "docid": "875bd0f4f6b64ef022d47014276a68d2", "score": "0.58135426", "text": "@Test\n\tpublic void testCounterHolder_1()\n\t\tthrows Exception {\n\t\tlong initValue = 1L;\n\t\tlong rangeMax = 1L;\n\n\t\tCounterHolder result = new CounterHolder(initValue, rangeMax);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(1L, result.getRangeMax());\n\t\tassertEquals(1L, result.getCurrentValue());\n\t}", "title": "" }, { "docid": "9f8909f5a9785fbf49321ed0cd6470bd", "score": "0.5811873", "text": "@Override\n\t\t\tpublic void countFetchedPage() {\n\t\t\t\tcount++;\n\t\t\t\tSystem.out.println(\"contou!!\");\n\t\t\t}", "title": "" }, { "docid": "a467947c6d6714623c5fe0128a5291a0", "score": "0.5810994", "text": "int count();", "title": "" }, { "docid": "a467947c6d6714623c5fe0128a5291a0", "score": "0.5810994", "text": "int count();", "title": "" }, { "docid": "9c8a44929ad0bc8409e8bb10ca76e651", "score": "0.5807487", "text": "public void waitForMemberCount(int count) throws CoordinationException;", "title": "" }, { "docid": "acb2f5c0de6d6d578030662c3b6dfd21", "score": "0.5799396", "text": "public long count();", "title": "" }, { "docid": "acb2f5c0de6d6d578030662c3b6dfd21", "score": "0.5799396", "text": "public long count();", "title": "" }, { "docid": "1729fd329dfe0a0c0d4bed6c04144c4c", "score": "0.57781464", "text": "abstract public int count();", "title": "" }, { "docid": "27f76a3d9f860565da72accd2d07d3c6", "score": "0.57740545", "text": "public void getIn(){\n numberOfPeopleInCar ++;\r\n }", "title": "" } ]
747828765982d4a8775b88771ef9d2c1
Detects PDF417 codes in an image. Only checks 0 degree rotation
[ { "docid": "d1a1886c88150dca563d3e609eb958d2", "score": "0.5167148", "text": "private static List<ResultPoint[]> detect(boolean multiple, BitMatrix bitMatrix) {\n List<ResultPoint[]> barcodeCoordinates = new ArrayList<>();\n int row = 0;\n int column = 0;\n boolean foundBarcodeInRow = false;\n while (row < bitMatrix.getHeight()) {\n ResultPoint[] vertices = findVertices(bitMatrix, row, column);\n\n if (vertices[0] == null && vertices[3] == null) {\n if (!foundBarcodeInRow) {\n // we didn't find any barcode so that's the end of searching\n break;\n }\n // we didn't find a barcode starting at the given column and row. Try again from the first column and slightly\n // below the lowest barcode we found so far.\n foundBarcodeInRow = false;\n column = 0;\n for (ResultPoint[] barcodeCoordinate : barcodeCoordinates) {\n if (barcodeCoordinate[1] != null) {\n row = (int) Math.max(row, barcodeCoordinate[1].getY());\n }\n if (barcodeCoordinate[3] != null) {\n row = Math.max(row, (int) barcodeCoordinate[3].getY());\n }\n }\n row += ROW_STEP;\n continue;\n }\n foundBarcodeInRow = true;\n barcodeCoordinates.add(vertices);\n if (!multiple) {\n break;\n }\n // if we didn't find a right row indicator column, then continue the search for the next barcode after the\n // start pattern of the barcode just found.\n if (vertices[2] != null) {\n column = (int) vertices[2].getX();\n row = (int) vertices[2].getY();\n } else {\n column = (int) vertices[4].getX();\n row = (int) vertices[4].getY();\n }\n }\n return barcodeCoordinates;\n }", "title": "" } ]
[ { "docid": "2ba06a248a8779bc8af31ed27be9e3f8", "score": "0.58271134", "text": "@Override\n public List<QRCodePoint> detectQRCode(BufferedImage img, List<Point> cornerPoints) {\n Rect2d boundingBox = Utils.getTightestBoundingRectangle(cornerPoints);\n BufferedImage focusImg = Utils.cropImage(img, boundingBox);\n //Utils.showImageInPopup(focusImg);\n // Image focusImg = img;\n //Extract QR Code info using ZXing\n LuminanceSource source = new BufferedImageLuminanceSource(focusImg);\n BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));\n Map<DecodeHintType,Object> hintsMap = new EnumMap<>(DecodeHintType.class);\n hintsMap.put(DecodeHintType.TRY_HARDER, Boolean.TRUE);\n hintsMap.put(DecodeHintType.POSSIBLE_FORMATS, EnumSet.of(BarcodeFormat.QR_CODE));\n List<QRCodePoint> pointList = new ArrayList<>();\n try {\n Result result = new MultiFormatReader().decode(bitmap, hintsMap);\n System.out.println(\"QR Code found.\");\n System.out.println(result);\n for(int i=0;i<result.getResultPoints().length;i++)\n {\n // Convert the coordinates to original frame\n Point opencvPoint = new Point(boundingBox.x + result.getResultPoints()[i].getX(),\n boundingBox.y + result.getResultPoints()[i].getY());\n if(result.getResultPoints()[i] instanceof FinderPattern)\n {\n pointList.add(new QRCodePoint(opencvPoint, QRCodePointTypes.FINDER_PATTERN));\n }\n else\n {\n pointList.add(new QRCodePoint(opencvPoint, QRCodePointTypes.ALIGNMENT_PATTERN));\n }\n }\n } catch (NotFoundException e) {\n System.out.println(\"There is no QR code in the image\");\n return null;\n }\n return pointList;\n }", "title": "" }, { "docid": "d82943cb8062c7cca76a9e21e2dcc4fc", "score": "0.5634718", "text": "private void processImage(Bitmap image) {\n\n //convert bitmap to frame\n Frame frame = new Frame.Builder().setBitmap(image).build();\n\n //detect barcodes from frame\n SparseArray<Barcode> barcodes = detector.detect(frame);\n int size = barcodes.size();\n\n //Check if barcodes exist\n if (size == 0) {\n Toast.makeText(context, \"No barcode detected.\", Toast.LENGTH_LONG).show();\n } else { // Iterate through barcodes\n for (int i = 0; i < size; i++) {\n Barcode targetCode = barcodes.valueAt(0);\n String code = targetCode.rawValue;\n if (BarcodeHelper.checkCode(code, context)) {\n goToEditActivity(code);\n }\n }\n }\n loading.setVisibility(View.INVISIBLE);\n }", "title": "" }, { "docid": "5cc24cdc0ac8e24883867b40324f1a35", "score": "0.53119993", "text": "private static int m141260b(String str) {\n int i = 0;\n if (!C7276d.m22812b(str)) {\n return 0;\n }\n try {\n int attributeInt = new ExifInterface(str).getAttributeInt(\"Orientation\", 1);\n if (attributeInt == 3) {\n i = NormalGiftView.ALPHA_180;\n } else if (attributeInt == 6) {\n i = 90;\n } else if (attributeInt == 8) {\n i = 270;\n }\n return i;\n } catch (Exception unused) {\n return 0;\n }\n }", "title": "" }, { "docid": "8a57b30372362bbc56dbfd9cfa8807db", "score": "0.522355", "text": "private void decode(byte[] data, int width, int height) {\n long start = System.currentTimeMillis();\n Result rawResult = null;\n\n byte[] rotatedData = new byte[data.length];\n int degree = CameraManager.get().getConfigManager().getDisplayOrientation();\n if (degree == 90 || degree == 270) {\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n if (degree == 90) {\n rotatedData[x * height + (height - y - 1)] = data[x + y * width];\n } else {\n rotatedData[(width - x - 1) * height + y] = data[x + y * width];\n }\n }\n }\n\n int tmp = width;\n width = height;\n height = tmp;\n } else {\n rotatedData = data;\n }\n\n try {\n PlanarYUVLuminanceSource source = new PlanarYUVLuminanceSource(rotatedData, width, height, 0, 0, width, height, false);\n BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));\n rawResult = multiFormatReader.decodeWithState(bitmap);\n } catch (Exception e) {\n // continue\n } finally {\n multiFormatReader.reset();\n }\n\n if (rawResult != null) {\n long end = System.currentTimeMillis();\n Log.d(TAG, \"Found barcode (\" + (end - start) + \" ms):\\n\" + rawResult.toString());\n Message message = Message.obtain(captureHandler, R.id.decode_succeeded, rawResult);\n message.sendToTarget();\n } else {\n Message message = Message.obtain(captureHandler, R.id.decode_failed);\n message.sendToTarget();\n }\n }", "title": "" }, { "docid": "01d9663cc527b6d74d5227b040398fa4", "score": "0.51390266", "text": "@Override\n public void QRCodeNotFoundOnCamImage() {\n\n }", "title": "" }, { "docid": "8b5e2e2b27bf57194bae430d6bf29125", "score": "0.5090783", "text": "@Override public void QRCodeNotFoundOnCamImage() {\n\n }", "title": "" }, { "docid": "a6aaeb05e96e74b5b5ad44bab60e5919", "score": "0.50214314", "text": "public Object scan(String barcode) throws ScanFailureException;", "title": "" }, { "docid": "67b2d6c1b5fadaf351bcc648fb303022", "score": "0.5017909", "text": "public static void main(String[] args) throws Exception{\n String path = \"F:/data/incc/qrcode/temp/2018/9/\";\n String[] text = {/*\n \"201707120748986490\",\n \"201707120748986491\",\n \"201707120748986492\",\n \"201707120748986493\",\n \"201707120748986494\"*/\n /* \"201707120748986490\",\n \"201707120748986491\",\n \"201707120748986492\",\n \"201707120748986493\",\n \"201707120748986494\"*/\n \"201809260397383203\",\n \"201809261191945747\",\n \"201809260219011923\"\n };\n /* String qrFile = \"F:/data/incc/qrcode/temp/2018/9\";\n String templateFileName = \"/Users/zhyj/Documents/商品认证/ICON01.png\";\n String outputFileName = \"/Users/zhyj/Documents/商品认证/init/\";\n*/\n\n String qrFile = \"F:/data/incc/qrcode/temp/2018/9/\";\n String templateFileName = \"F:\\\\data\\\\incc\\\\qrcode\\\\ICON01.png\";\n String outputFileName = \"F:/data/incc/certification/\";\n\n\n\n\n try {\n for (int i = 0; i < 3; i++) {\n\n ZxingSimpleUtils.encodeWithMargin(path + text[i], 900, 910, 0,\"png\", qrFile+text[i]);\n PngCompositionUtil.compositionFile(new File(qrFile+text[i]), new File(templateFileName), new File(outputFileName+text[i]+\".png\"));\n }\n//\t\t\tSystem.out.println(decode(outFile));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "5d7964a07d83b02c4ec2930892485911", "score": "0.50009227", "text": "public static void run()\n {\n // The path to the documents directory.\n String filePath = Constants.SAMPLE_PDF_SIGNED;\n String fileName = Paths.get(filePath).getFileName().toString();\n try {\n Signature signature = new Signature(filePath);\n BarcodeSearchOptions options = new BarcodeSearchOptions();\n options.setAllPages(true); // this value is set by default\n\n // search for signatures in document\n List<BarcodeSignature> signatures = signature.search(BarcodeSignature.class, options);\n System.out.print(\"\\nSource document ['\"+fileName+\"'] contains following signatures. \");\n for (BarcodeSignature barcodeSignature : signatures)\n {\n System.out.print(\"Barcode signature found at page \"+barcodeSignature.getPageNumber()+\" with type \"+barcodeSignature.getEncodeType()+\" and text \"+ barcodeSignature.getText());\n }\n }\n catch (Exception ex)\n {\n System.out.print(\"System Exception: \" + ex.getMessage());\n }\n }", "title": "" }, { "docid": "2a7434a49fb8aa5270a4336026c43956", "score": "0.49572828", "text": "private void findISBNWithOCR() {\n TessBaseAPI baseAPI = new TessBaseAPI();\n baseAPI.init(Environment.getExternalStorageDirectory().getPath() + \"/tesseract/\", \"eng\");\n Bitmap bitmap;\n try {\n bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), picUri);\n baseAPI.setImage(bitmap);\n baseAPI.setVariable(\"tessedit_char_whitelist\", \"0123456789-ISBN\");\n\n extractISBNFromOCRString(baseAPI.getUTF8Text());\n } catch (IOException e) {\n Log.e(TAG, \"failed getting bitmap in OCR: \" + e.getMessage());\n }\n }", "title": "" }, { "docid": "9ed1ccddd2cc7c0703ee7ba86b146491", "score": "0.49488574", "text": "public static String getValidate(InputStream im) {\n\t\t\tint iw, ih;\r\n\t\t\tint pix[];\r\n\t\t\tString valicode = \"\";\r\n\r\n\t\t\tBufferedImage img;\r\n\t\t\ttry {\r\n\t\t\t\timg = ImageIO.read(im);\r\n\t\t\t\t// ImageIO.write(img, \"BMP\", new File(\"C:\\\\b.bmp\"));\r\n\t\t\t\t// 4个6*9数字\r\n\t\t\t\tBufferedImage newim[] = new BufferedImage[4];\r\n\t\t\t\tnewim[0] = img.getSubimage(5, 2, 6, 9);\r\n\t\t\t\tnewim[1] = img.getSubimage(12, 2, 6, 9);\r\n\t\t\t\tnewim[2] = img.getSubimage(19, 2, 6, 9);\r\n\t\t\t\tnewim[3] = img.getSubimage(26, 2, 6, 9);\r\n\r\n\t\t\t\tfor (int k = 0; k < 4; k++) {\r\n\t\t\t\t\t// 二值化\r\n\t\t\t\t\tiw = newim[k].getWidth();\r\n\t\t\t\t\tih = newim[k].getHeight();\r\n\t\t\t\t\tpix = new int[iw * ih];\r\n\t\t\t\t\tfor (int i = 0; i < ih; i++) {\r\n\t\t\t\t\t\tfor (int j = 0; j < iw; j++)\r\n\t\t\t\t\t\t\tpix[i * iw + j] = (newim[k].getRGB(j, i) & 0xff) > 30 ? 1\r\n\t\t\t\t\t\t\t\t\t: 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvalicode += getMatchNum(pix);\r\n\t\t\t\t}\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\treturn valicode;\r\n\t\t}", "title": "" }, { "docid": "46b67b1a1d1caa80fece81211d7fcd5b", "score": "0.49426302", "text": "boolean hasS2CCode();", "title": "" }, { "docid": "46b67b1a1d1caa80fece81211d7fcd5b", "score": "0.49426302", "text": "boolean hasS2CCode();", "title": "" }, { "docid": "46b67b1a1d1caa80fece81211d7fcd5b", "score": "0.49426302", "text": "boolean hasS2CCode();", "title": "" }, { "docid": "46b67b1a1d1caa80fece81211d7fcd5b", "score": "0.49426302", "text": "boolean hasS2CCode();", "title": "" }, { "docid": "88361ff019ade3bcffa64736c33b6072", "score": "0.4926915", "text": "boolean hasEncodedPrePreambleWaveform();", "title": "" }, { "docid": "8064ec859b7e3802ee1f1ea7d5139ddf", "score": "0.49260378", "text": "public boolean hasChromatogram();", "title": "" }, { "docid": "fd4a94401e4c72b2049c7d1257e064ac", "score": "0.4906558", "text": "private ImageTranscoder m24726d(ImageFormat imageFormat, boolean z) {\n return new C9895f(this.f25997a).createImageTranscoder(imageFormat, z);\n }", "title": "" }, { "docid": "4c95ce4688182f7ccd6c78784c7bcc75", "score": "0.4861748", "text": "public static void main(String[] args) throws Exception {\n\t\tint version=6;\n\t\tint imageSize=127;\n\t\tQrcode x=new Qrcode();\n\t\tx.setQrcodeErrorCorrect('L');\n\t x.setQrcodeEncodeMode('B');\n\t x.setQrcodeVersion(version);\n\t String qrData=\"http://www.dijiaxueshe.com\";\n byte[] contentBytes=qrData.getBytes(\"utf-8\");\n //设置图片缓冲\t\n BufferedImage bufferedImage=new BufferedImage(imageSize,imageSize,BufferedImage.TYPE_INT_RGB);\n //图片绘制\n Graphics2D gs=bufferedImage.createGraphics();\n //设置背景颜色\n gs.setBackground(Color.WHITE);\n //清除画布\n gs.clearRect(0,0,imageSize,imageSize);\n //二维码绘制\n int startR=255,startG=0,startB=0;\n int endR=0,endG=0,endB=255;\n int pixoff=2;\n boolean[][] s=x.calQrcode(contentBytes);\n for(int i=0;i<s.length;i++){\n \tfor(int j=0;j<s.length;j++){\n \t\tif(s[i][j]){\n \t\t\tint num1=startR+(endR-startR)*(i+1)/s.length;\n \t\t\tint num2=startG+(endG-startG)*(i+1)/s.length;\n \t\t\tint num3=startB+(endB-startB)*(i+1)/s.length;\n \t\t\tColor color=new Color(num1,num2,num3);\n \t\t\tgs.setColor(color);\n \t\t\tgs.fillRect(i*3+pixoff,j*3+pixoff,3,3);\n \t\t}\n \t}\n }\n //添加图片\n BufferedImage logo=scale(\"D:logo.jpg\", 30, 30, true);\n int o=(imageSize-logo.getHeight())/2;\n gs.drawImage(logo, o, o, 30, 30, null);\n /*//添加图片\n BufferedImage logo=ImageIO.read(new File(\"D:/logo.jpg\"));\n int logoSize=imageSize/4;\n //设置logo图片在二维码中心\n int o=(imageSize-logoSize)/2;\n gs.drawImage(logo, o, o, logoSize, logoSize, null);*/\n gs.dispose();\n bufferedImage.flush();\n try{\n \t ImageIO.write(bufferedImage,\"png\",new File(\"D:/qrcode.png\"));\n }catch(IOException e){\n \t e.printStackTrace();\n \t System.out.println(\"产生问题\");\n \t \n }\n\tSystem.out.println(\"二维码生成成功!\");\n\t}", "title": "" }, { "docid": "f2d4e4b0a1909bc5b8155d706eaa3169", "score": "0.48200843", "text": "public static boolean m141259a(String str) {\n C7573i.m23587b(str, \"path\");\n int[] imageWidthHeight = ((IAVService) ServiceManager.get().getService(IAVService.class)).photoService().getImageWidthHeight(str);\n int i = imageWidthHeight[0];\n int i2 = imageWidthHeight[1];\n if (i < 360 || i2 < 480) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "5b7189f6ad37b99c4ff16498635ace67", "score": "0.48154718", "text": "private ImageTranscoder m24723a(ImageFormat imageFormat, boolean z) {\n ImageTranscoderFactory imageTranscoderFactory = this.f25999c;\n if (imageTranscoderFactory == null) {\n return null;\n }\n return imageTranscoderFactory.createImageTranscoder(imageFormat, z);\n }", "title": "" }, { "docid": "5823bb3d0f8d290aa131abc8693a83b0", "score": "0.47986045", "text": "void scanCreditCard();", "title": "" }, { "docid": "3575b250ff26980be608b4b44bde4bfa", "score": "0.47981608", "text": "static com.google.zxing.common.DecoderResult decode(byte[] r7) throws com.google.zxing.FormatException {\n /*\n com.google.zxing.common.BitSource r0 = new com.google.zxing.common.BitSource\n r0.<init>(r7)\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r2 = 100\n r1.<init>(r2)\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r3 = 0\n r2.<init>(r3)\n java.util.ArrayList r3 = new java.util.ArrayList\n r4 = 1\n r3.<init>(r4)\n com.google.zxing.datamatrix.decoder.DecodedBitStreamParser$Mode r5 = com.google.zxing.datamatrix.decoder.DecodedBitStreamParser.Mode.ASCII_ENCODE\n L_0x001a:\n com.google.zxing.datamatrix.decoder.DecodedBitStreamParser$Mode r6 = com.google.zxing.datamatrix.decoder.DecodedBitStreamParser.Mode.ASCII_ENCODE\n if (r5 != r6) goto L_0x0023\n com.google.zxing.datamatrix.decoder.DecodedBitStreamParser$Mode r5 = decodeAsciiSegment(r0, r1, r2)\n goto L_0x0053\n L_0x0023:\n int[] r6 = com.google.zxing.datamatrix.decoder.DecodedBitStreamParser.C22221.f1094xb73eb560\n int r5 = r5.ordinal()\n r5 = r6[r5]\n if (r5 == r4) goto L_0x004e\n r6 = 2\n if (r5 == r6) goto L_0x004a\n r6 = 3\n if (r5 == r6) goto L_0x0046\n r6 = 4\n if (r5 == r6) goto L_0x0042\n r6 = 5\n if (r5 != r6) goto L_0x003d\n decodeBase256Segment(r0, r1, r3)\n goto L_0x0051\n L_0x003d:\n com.google.zxing.FormatException r7 = com.google.zxing.FormatException.getFormatInstance()\n throw r7\n L_0x0042:\n decodeEdifactSegment(r0, r1)\n goto L_0x0051\n L_0x0046:\n decodeAnsiX12Segment(r0, r1)\n goto L_0x0051\n L_0x004a:\n decodeTextSegment(r0, r1)\n goto L_0x0051\n L_0x004e:\n decodeC40Segment(r0, r1)\n L_0x0051:\n com.google.zxing.datamatrix.decoder.DecodedBitStreamParser$Mode r5 = com.google.zxing.datamatrix.decoder.DecodedBitStreamParser.Mode.ASCII_ENCODE\n L_0x0053:\n com.google.zxing.datamatrix.decoder.DecodedBitStreamParser$Mode r6 = com.google.zxing.datamatrix.decoder.DecodedBitStreamParser.Mode.PAD_ENCODE\n if (r5 == r6) goto L_0x005d\n int r6 = r0.available()\n if (r6 > 0) goto L_0x001a\n L_0x005d:\n int r0 = r2.length()\n if (r0 <= 0) goto L_0x0066\n r1.append(r2)\n L_0x0066:\n com.google.zxing.common.DecoderResult r0 = new com.google.zxing.common.DecoderResult\n java.lang.String r1 = r1.toString()\n boolean r2 = r3.isEmpty()\n r4 = 0\n if (r2 == 0) goto L_0x0074\n r3 = r4\n L_0x0074:\n r0.<init>(r7, r1, r3, r4)\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.zxing.datamatrix.decoder.DecodedBitStreamParser.decode(byte[]):com.google.zxing.common.DecoderResult\");\n }", "title": "" }, { "docid": "ee04db71825fe14cfb23c6dc6389b620", "score": "0.47960156", "text": "private void decode(byte[] data, int width, int height) {\n long start = System.currentTimeMillis();\n Result rawResult = null;\n\n byte[] rotatedData = new byte[data.length];\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++)\n rotatedData[x * height + height - y - 1] = data[x + y * width];\n }\n int tmp = width; // Here we are swapping, that's the difference to #11\n width = height;\n height = tmp;\n data = rotatedData;\n\n PlanarYUVLuminanceSource source = CameraManager.get().buildLuminanceSource(data, width, height);\n BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));\n try {\n rawResult = multiFormatReader.decodeWithState(bitmap);\n } catch (ReaderException re) {\n // continue\n } finally {\n multiFormatReader.reset();\n }\n\n if (rawResult != null) {\n long end = System.currentTimeMillis();\n Log.d(TAG, \"Found barcode (\" + (end - start) + \" ms):\\n\" + rawResult.toString());\n Message message = Message.obtain(mHandleDecodeListener.getHandler(), ScannerViewHandler.DECODE_SUCCEEDED, rawResult);\n Bundle bundle = new Bundle();\n bundle.putParcelable(DecodeThread.BARCODE_BITMAP, source.renderCroppedGreyscaleBitmap());\n message.setData(bundle);\n message.sendToTarget();\n } else {\n Message message = Message.obtain(mHandleDecodeListener.getHandler(), ScannerViewHandler.DECODE_FAILED);\n message.sendToTarget();\n }\n }", "title": "" }, { "docid": "4cf2ad7da0fb9ae7361dd8662a2e7fb3", "score": "0.4775379", "text": "public static boolean IsImage(int code)\n {\n switch (code) {\n case STATUS_IMAGE_0 :\n case STATUS_IMAGE_1 :\n case STATUS_IMAGE_2 :\n case STATUS_IMAGE_3 :\n case STATUS_IMAGE_4 :\n return true;\n case STATUS_IMAGE_LOC_0 :\n case STATUS_IMAGE_LOC_1 :\n case STATUS_IMAGE_LOC_2 :\n case STATUS_IMAGE_LOC_3 :\n case STATUS_IMAGE_LOC_4 :\n return true;\n case STATUS_IMAGE_ERROR_0 :\n case STATUS_IMAGE_ERROR_1 :\n case STATUS_IMAGE_ERROR_2 :\n case STATUS_IMAGE_ERROR_3 :\n case STATUS_IMAGE_ERROR_4 :\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "888ff228d7c9e40ba992071f8fcc9867", "score": "0.47675958", "text": "public static boolean isPDF1(byte[] data) {\n if (data != null && data.length > 4 &&\n data[0] == 0x25 && // %\n data[1] == 0x50 && // P\n data[2] == 0x44 && // D\n data[3] == 0x46 && // F\n data[4] == 0x2D) { // -\n\n // version 1.3 file terminator\n if (data[5] == 0x31 && data[6] == 0x2E && data[7] == 0x33 &&\n data[data.length - 7] == 0x25 && // %\n data[data.length - 6] == 0x25 && // %\n data[data.length - 5] == 0x45 && // E\n data[data.length - 4] == 0x4F && // O\n data[data.length - 3] == 0x46 && // F\n data[data.length - 2] == 0x20 && // SPACE\n data[data.length - 1] == 0x0A) { // EOL\n return true;\n }\n\n // version 1.3 file terminator\n if (data[5] == 0x31 && data[6] == 0x2E && data[7] == 0x34 &&\n data[data.length - 6] == 0x25 && // %\n data[data.length - 5] == 0x25 && // %\n data[data.length - 4] == 0x45 && // E\n data[data.length - 3] == 0x4F && // O\n data[data.length - 2] == 0x46 && // F\n data[data.length - 1] == 0x0A) { // EOL\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "e8b0ac4f3f80012393b1072ee82dc71c", "score": "0.47635737", "text": "@Test\n public void testSampleSignedLikeAdelinVoicu() throws IOException {\n AddValidationInformation addOcspInformation = new AddValidationInformation();\n\n File inFile = new File(\"src/test/resources/mkl/testarea/pdfbox2/sign/AdelinVoicu-sample_signed.pdf\");\n File outFile = new File(RESULT_FOLDER, \"AdelinVoicu-sample_signed-VRI.pdf\");\n addOcspInformation.validateSignature(inFile, outFile);\n }", "title": "" }, { "docid": "b6a15dc6fc7991adbf7aa62d550f482a", "score": "0.4760451", "text": "public interface BarcodeDetectedInterface {\n void onBarcodeDetected();\n}", "title": "" }, { "docid": "54470753b59d1d302f6b86c4f934d95f", "score": "0.47510123", "text": "@Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"shuvo\",\"Barcode Detection Failed.\");\n }", "title": "" }, { "docid": "8f402d0c1e1706d7bbfa24683d862d27", "score": "0.4740433", "text": "public int[][] generateGrayCodes(int dimension) {\n\n int coordinateDirections = 2 * dimension;\n int positions = 1 << dimension;\n\n int mask = (1 << dimension) - 1;\n\n int[] baseCodes = new int[positions];\n\n for (int index = 0; index < baseCodes.length; index++)\n baseCodes[index] = (int) GrayCodeFunction.encode(index);\n\n int[][] codes = new int[coordinateDirections][];\n\n for (int orientation = 0; orientation < coordinateDirections; orientation++) {\n\n int signum = 1 - ((orientation & 1) << 1);\n\n int coordinate = (orientation >> 1) & mask;\n\n int rotateRightBitCount = (dimension - 1) - coordinate;\n\n if (coordinate == dimension - 1 && signum == 1) {\n codes[orientation] = baseCodes;\n continue;\n }\n\n codes[orientation] = Arrays.copyOf(baseCodes, baseCodes.length);\n\n for (int index = 0; index < positions; index++) {\n int value = (signum > 0) ? baseCodes[index] : (~baseCodes[index] & mask);\n\n codes[orientation][index] = ((value >> rotateRightBitCount) | (value << dimension - rotateRightBitCount)) & mask;\n }\n }\n\n return codes;\n// return new int[][] {\n// { 0, 1, 3, 2 }, // Right -> no reflection\n// { 0, 2, 3, 1 }, // Up -> x=y reflection\n// { 3, 1, 0, 2 }, // Down -> x=-y reflection\n// { 3, 2, 0, 1 }, // Left -> x=-y + x=y reflection (or simply y=-y & x=-x)\n//\n// // Right means base Gray code\n// // Up means map X to Y and Y to X, (single-bit rotation of base grey code)\n// // Down means map X to 1-Y and Y to 1-X, (single-bit rotation of bitwise inverse of base grey code)\n// // Left means map X to 1-X and Y to 1-Y (bitwise inverse of base grey code)\n// };\n }", "title": "" }, { "docid": "297319dfec654248e2209cce770fb5c1", "score": "0.47345886", "text": "@Override\r\n\tpublic int print(Graphics graphics, PageFormat pageFormat, int pageIndex)\r\n\t\t\tthrows PrinterException {\n\t\t\r\n\t\tdouble x = pageFormat.getImageableX();\r\n\t\tdouble y = pageFormat.getImageableY();\r\n\t\tGraphics2D graph = (Graphics2D) graphics;\r\n\t\tgraph.setColor(Color.BLACK);\r\n\t\tFont font = new Font(\"宋体\", Font.PLAIN, 9);\r\n\t\tgraph.setFont(font); \r\n\t\t\r\n\t\t/********************************/\r\n\t\tQrcode qrcode = new Qrcode();\r\n\t\tqrcode.setQrcodeErrorCorrect('M');\r\n\t\tqrcode.setQrcodeEncodeMode('B');\r\n\t\tqrcode.setQrcodeVersion(7);\r\n\t\tString QrcodeString = imageContent;\r\n\t\t\r\n\t\tbyte[] byteImage = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tbyteImage = QrcodeString.getBytes(\"utf-8\");\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\tPosLogger.log.error(e.getMessage());\r\n\t\t}\r\n\r\n\t\tBufferedImage bufferedIamge = new BufferedImage(98, 98,BufferedImage.TYPE_BYTE_BINARY);\r\n\t\t\r\n\t\tGraphics2D imageGrap = bufferedIamge.createGraphics();\r\n\t\t\r\n\t\timageGrap.setBackground(Color.WHITE);\r\n\t\timageGrap.clearRect(0, 0, 98, 98);\r\n\t\timageGrap.setColor(Color.BLACK);\r\n\r\n\t\t// 限制最大字节数为120\r\n\t\tif (byteImage.length > 0 && byteImage.length < 120) {\r\n\t\t\tboolean[][] s = qrcode.calQrcode(byteImage);\r\n\t\t\tfor (int i = 0; i < s.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < s.length; j++) {\r\n\t\t\t\t\tif (s[j][i]) {\r\n\t\t\t\t\t\timageGrap.fillRect(j * 2 + 3, i * 2 + 3, 2, 2);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\timageGrap.dispose();\r\n\t\tbufferedIamge.flush();\r\n\r\n\t\t/********************************/\r\n\t\tgraph.drawLine((int) x, (int)y + 2, 200, (int)y + 2);\r\n\t\tgraph.drawImage(bufferedIamge,null,(int)x + 20,(int)y + 20);\r\n\t\tgraph.drawString(\"兑换码:\",(int)x + 10, (int)y + 140);\r\n\t\tFont fontCode = new Font(\"宋体\", Font.BOLD, 13);\r\n\t\tgraph.setFont(fontCode); \r\n\t\tgraph.drawString(keyCode,(int)x + 10, (int)y + 160);\r\n\t\tgraph.setFont(font);\r\n\t\t\r\n\t\tint yIndex = 180;\r\n\t\t\r\n\t\tif(content.length() > 14){\r\n\t\t\t\r\n\t\t\tgraph.drawString(content.substring(0, 14), (int)x + 10, (int)y + yIndex);\r\n\t\t\tyIndex += 20;\r\n\t\t\tgraph.drawString(content.substring(14, content.length()), (int)x + 10, (int)y + yIndex);\r\n\t\t\tyIndex += 10;\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tgraph.drawString(content, (int)x + 10, (int)y + yIndex);\r\n\t\t\tyIndex += 10;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tgraph.drawLine((int) x, (int)y + yIndex, 200, (int)y + yIndex);\r\n\t\tyIndex += 15;\r\n\t\t\r\n\t\tif(name.length() > 11){\r\n\t\t\t\r\n\t\t\tgraph.drawString(\"商家:\" + name.substring(0,11), (int)x + 10, (int)y + yIndex);\r\n\t\t\tyIndex += 20;\r\n\t\t\tgraph.drawString(name.substring(11,name.length()), (int)x + 10, (int)y + yIndex);\r\n\t\t\tyIndex += 20;\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tgraph.drawString(\"商家:\" + name, (int)x + 10, (int)y + yIndex);\r\n\t\t\tyIndex += 20;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif(address.length() > 11){\r\n\t\t\t\r\n\t\t\tgraph.drawString(\"地址:\" + address.substring(0,11), (int)x + 10, (int)y + yIndex);\r\n\t\t\tyIndex += 20;\r\n\t\t\tgraph.drawString(address.substring(11,address.length()), (int)x + 10, (int)y + yIndex);\r\n\t\t\tyIndex += 20;\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tgraph.drawString(\"地址:\" + address, (int)x + 10, (int)y + yIndex);\r\n\t\t\tyIndex += 20;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tgraph.drawString(\"电话:\" + phone, (int)x + 10, (int)y + yIndex);\r\n\t\tyIndex += 20;\r\n\t\tgraph.drawString(\"--请妥善保管--\", (int)x + 40, (int)y + yIndex);\r\n\t\tyIndex += 20;\r\n\t\tgraph.drawLine((int) x, (int)y + yIndex, 200, (int)y + yIndex);\r\n\t\t\r\n//\t\tgraph.drawLine((int) x, (int)y - 32, 200, (int)y - 32);\r\n//\t\tgraph.drawImage(bufferedIamge,null,(int)x + 20,(int)y - 10);\r\n//\t\tgraph.drawString(content, (int)x + 60, (int)y + 90);\r\n//\t\tgraph.drawLine((int) x, (int)y + 100, 200, (int)y + 100);\r\n\t\t\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "d7911b6a792818e189790c500ead92fd", "score": "0.4725179", "text": "public boolean createImageStamp(Uri uri, int imageRotation, String filePath) {\n/* 236 */ boolean shouldUnlock = false;\n/* 237 */ SecondaryFileFilter filter = null; try {\n/* */ int pageNum;\n/* 239 */ this.mPdfViewCtrl.docLock(true);\n/* 240 */ shouldUnlock = true;\n/* 241 */ PDFDoc doc = this.mPdfViewCtrl.getDoc();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 258 */ filter = new SecondaryFileFilter(this.mPdfViewCtrl.getContext(), uri);\n/* */ \n/* */ \n/* 261 */ ObjSet hintSet = new ObjSet();\n/* 262 */ Obj encoderHints = hintSet.createArray();\n/* 263 */ encoderHints.pushBackName(\"JPEG\");\n/* 264 */ encoderHints.pushBackName(\"Quality\");\n/* 265 */ encoderHints.pushBackNumber(85.0D);\n/* */ \n/* */ \n/* 268 */ Image img = Image.create((Doc)doc.getSDFDoc(), (Filter)filter, encoderHints);\n/* */ \n/* */ \n/* 271 */ if (this.mTargetPoint != null) {\n/* 272 */ pageNum = this.mPdfViewCtrl.getPageNumberFromScreenPt(this.mTargetPoint.x, this.mTargetPoint.y);\n/* 273 */ if (pageNum <= 0) {\n/* 274 */ pageNum = this.mPdfViewCtrl.getCurrentPage();\n/* */ }\n/* */ } else {\n/* 277 */ pageNum = this.mPdfViewCtrl.getCurrentPage();\n/* */ } \n/* */ \n/* 280 */ if (pageNum <= 0) {\n/* 281 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 285 */ Page page = doc.getPage(pageNum);\n/* 286 */ int viewRotation = this.mPdfViewCtrl.getPageRotation();\n/* */ \n/* 288 */ Rect pageViewBox = page.getBox(this.mPdfViewCtrl.getPageBox());\n/* 289 */ Rect pageCropBox = page.getCropBox();\n/* 290 */ int pageRotation = page.getRotation();\n/* */ \n/* */ \n/* 293 */ Point size = new Point();\n/* 294 */ Utils.getDisplaySize(this.mPdfViewCtrl.getContext(), size);\n/* 295 */ int screenWidth = (size.x < size.y) ? size.x : size.y;\n/* 296 */ int screenHeight = (size.x < size.y) ? size.y : size.x;\n/* */ \n/* */ \n/* 299 */ double maxImageHeightPixels = screenHeight * 0.25D;\n/* 300 */ double maxImageWidthPixels = screenWidth * 0.25D;\n/* */ \n/* */ \n/* 303 */ double[] point1 = this.mPdfViewCtrl.convScreenPtToPagePt(0.0D, 0.0D, pageNum);\n/* 304 */ double[] point2 = this.mPdfViewCtrl.convScreenPtToPagePt(20.0D, 20.0D, pageNum);\n/* */ \n/* 306 */ double pixelsToPageRatio = Math.abs(point1[0] - point2[0]) / 20.0D;\n/* 307 */ double maxImageHeightPage = maxImageHeightPixels * pixelsToPageRatio;\n/* 308 */ double maxImageWidthPage = maxImageWidthPixels * pixelsToPageRatio;\n/* */ \n/* */ \n/* 311 */ double stampWidth = img.getImageWidth();\n/* 312 */ double stampHeight = img.getImageHeight();\n/* 313 */ if (imageRotation == 90 || imageRotation == 270) {\n/* 314 */ double temp = stampWidth;\n/* 315 */ stampWidth = stampHeight;\n/* 316 */ stampHeight = temp;\n/* */ } \n/* */ \n/* 319 */ double pageWidth = pageViewBox.getWidth();\n/* 320 */ double pageHeight = pageViewBox.getHeight();\n/* 321 */ if (pageRotation == 1 || pageRotation == 3) {\n/* 322 */ double temp = pageWidth;\n/* 323 */ pageWidth = pageHeight;\n/* 324 */ pageHeight = temp;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 329 */ if (pageWidth < maxImageWidthPage) {\n/* 330 */ maxImageWidthPage = pageWidth;\n/* */ }\n/* 332 */ if (pageHeight < maxImageHeightPage) {\n/* 333 */ maxImageHeightPage = pageHeight;\n/* */ }\n/* */ \n/* 336 */ double scaleFactor = Math.min(maxImageWidthPage / stampWidth, maxImageHeightPage / stampHeight);\n/* 337 */ stampWidth *= scaleFactor;\n/* 338 */ stampHeight *= scaleFactor;\n/* */ \n/* */ \n/* 341 */ if (viewRotation == 1 || viewRotation == 3) {\n/* 342 */ double temp = stampWidth;\n/* 343 */ stampWidth = stampHeight;\n/* 344 */ stampHeight = temp;\n/* */ } \n/* */ \n/* 347 */ com.pdftron.pdf.Stamper stamper = new com.pdftron.pdf.Stamper(2, stampWidth, stampHeight);\n/* */ \n/* */ \n/* 350 */ if (this.mTargetPoint != null) {\n/* */ \n/* 352 */ double[] pageTarget = this.mPdfViewCtrl.convScreenPtToPagePt(this.mTargetPoint.x, this.mTargetPoint.y, pageNum);\n/* 353 */ Matrix2D mtx = page.getDefaultMatrix();\n/* 354 */ Point pageTargetPoint = mtx.multPoint(pageTarget[0], pageTarget[1]);\n/* */ \n/* */ \n/* 357 */ stamper.setAlignment(-1, -1);\n/* */ \n/* */ \n/* */ \n/* 361 */ pageTargetPoint.x -= stampWidth / 2.0D;\n/* 362 */ pageTargetPoint.y -= stampHeight / 2.0D;\n/* */ \n/* */ \n/* */ \n/* 366 */ double leftEdge = pageViewBox.getX1() - pageCropBox.getX1();\n/* 367 */ double bottomEdge = pageViewBox.getY1() - pageCropBox.getY1();\n/* 368 */ if (pageTargetPoint.x > leftEdge + pageWidth - stampWidth) {\n/* 369 */ pageTargetPoint.x = leftEdge + pageWidth - stampWidth;\n/* */ }\n/* 371 */ if (pageTargetPoint.x < leftEdge) {\n/* 372 */ pageTargetPoint.x = leftEdge;\n/* */ }\n/* */ \n/* 375 */ if (pageTargetPoint.y > bottomEdge + pageHeight - stampHeight) {\n/* 376 */ pageTargetPoint.y = bottomEdge + pageHeight - stampHeight;\n/* */ }\n/* 378 */ if (pageTargetPoint.y < bottomEdge) {\n/* 379 */ pageTargetPoint.y = bottomEdge;\n/* */ }\n/* */ \n/* 382 */ stamper.setPosition(pageTargetPoint.x, pageTargetPoint.y);\n/* */ } else {\n/* */ \n/* 385 */ stamper.setPosition(0.0D, 0.0D);\n/* */ } \n/* */ \n/* */ \n/* 389 */ stamper.setAsAnnotation(true);\n/* */ \n/* */ \n/* 392 */ int stampRotation = (4 - viewRotation) % 4;\n/* 393 */ stamper.setRotation(stampRotation * 90.0D + imageRotation);\n/* */ \n/* */ \n/* 396 */ stamper.stampImage(doc, img, new PageSet(pageNum));\n/* */ \n/* */ \n/* 399 */ int numAnnots = page.getNumAnnots();\n/* 400 */ Annot annot = page.getAnnot(numAnnots - 1);\n/* 401 */ Obj obj = annot.getSDFObj();\n/* 402 */ obj.putNumber(\"pdftronImageStampRotation\", 0.0D);\n/* */ \n/* 404 */ if (annot.isMarkup()) {\n/* 405 */ Markup markup = new Markup(annot);\n/* 406 */ setAuthor(markup);\n/* */ } \n/* */ \n/* 409 */ setAnnot(annot, pageNum);\n/* 410 */ buildAnnotBBox();\n/* */ \n/* */ \n/* */ \n/* */ \n/* 415 */ this.mPdfViewCtrl.update(annot, pageNum);\n/* 416 */ raiseAnnotationAddedEvent(annot, pageNum);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 422 */ SharedPreferences settings = Tool.getToolPreferences(this.mPdfViewCtrl.getContext());\n/* 423 */ String recentlyUsedFiles = settings.getString(\"image_stamper_most_recently_used_files\", \"\");\n/* 424 */ String[] recentlyUsedFilesArray = recentlyUsedFiles.split(\" \");\n/* 425 */ Boolean recentlyUsed = Boolean.valueOf(false);\n/* */ \n/* 427 */ if (filePath != null) {\n/* 428 */ for (String recentlyUsedFile : recentlyUsedFilesArray) {\n/* 429 */ if (filePath.equals(recentlyUsedFile)) {\n/* 430 */ recentlyUsed = Boolean.valueOf(true);\n/* 431 */ AnalyticsHandlerAdapter.getInstance().sendEvent(8, \"stamper recent file\");\n/* */ } \n/* */ } \n/* */ \n/* 435 */ if (!recentlyUsed.booleanValue()) {\n/* 436 */ int length = (recentlyUsedFilesArray.length < 6) ? recentlyUsedFilesArray.length : 5;\n/* 437 */ StringBuilder str = new StringBuilder(filePath);\n/* 438 */ for (int i = 0; i < length; i++) {\n/* 439 */ str.append(\" \").append(recentlyUsedFilesArray[i]);\n/* */ }\n/* */ \n/* 442 */ SharedPreferences.Editor editor = settings.edit();\n/* 443 */ editor.putString(\"image_stamper_most_recently_used_files\", str.toString());\n/* 444 */ editor.apply();\n/* */ } \n/* */ } \n/* 447 */ return true;\n/* 448 */ } catch (Exception e) {\n/* 449 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* 450 */ return false;\n/* */ } finally {\n/* 452 */ if (shouldUnlock) {\n/* 453 */ this.mPdfViewCtrl.docUnlock();\n/* */ }\n/* 455 */ Utils.closeQuietly(filter);\n/* */ \n/* 457 */ this.mTargetPoint = null;\n/* 458 */ safeSetNextToolMode();\n/* */ } \n/* */ }", "title": "" }, { "docid": "2d40fb5109c665b42d007d1eb272d796", "score": "0.4694605", "text": "public int pdfExtractor(String pdfPath, String textPath, String imgPath, String OCRPath) {\n \t\n \tSystem.out.println(\"========inside pdfExtractor () ========== \");\n \tSystem.out.println(\"starting parsing for pdf===>\" + pdfPath);\n \t\n \tITextPDFExtractor<?> iText = new ITextPDFExtractor<Object>();\n \tMap<String, String> patInfoText = iText.getPatentInfo(pdfPath);\n\n \tif (patInfoText == null) {\n \t\tSystem.out.println(\"The source PDF has Image, extracting image ...... \");\n \t\t// Call Image extractor\n \t\tPDFImageExtractor imgExtract = new PDFImageExtractor();\n \t\ttry {\n \t\t\t//imgResult ==0; image extraction is successful\n \t\t\t//imgResult ==1; image extraction failed.\n\t\t\t\tString imgResult = imgExtract.getPDFImage(pdfPath, imgPath);\n\t\t\t\tif(imgResult == null) {\n\t\t\t\t\tSystem.err.println(\"Image to Text OCR conversion failed ....\");\n\t\t\t\t\treturn 1;\n\t\t\t\t} else{\n\t\t\t\t\t//Step 3 : call tesseractOCR\n\t\t\t\t\tTesseractOCR tess = new TesseractOCR ();\n\t\t\t\t\tString tmpImg = imgPath + \"\\\\\" + imgResult + \"_\" + \"1.tiff\";\n\t\t\t\t\t\n\t\t\t\t\tString tmpTxt = textPath + \"\\\\\" + imgResult + \"_1\";\n\t\t\t\t\tSystem.out.println(\"\\n OCR path for processing ==>\" + OCRPath);\n\t\t\t\t\tSystem.out.println(\"\\n Image path for processing ==>\" + tmpImg);\n\t\t\t\t\tSystem.out.println(\"\\n Text path for processing ==>\" + tmpTxt);\n\t\t\t\t\tint tessOutput = tess.runTessOCRFromWindows(OCRPath, tmpImg, tmpTxt);\n\t\t\t\t\tif(tessOutput == 1) {\n\t\t\t\t\t\tSystem.err.println(\"Image to Text OCR conversion failed ....\");\n\t\t\t\t\t\treturn tessOutput;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Image to Text OCR is successfull..!!..\");\n\t\t\t\t\t\t// Extracting Patent Info from Text now...\n\t\t\t\t\t\tPatentParser parser = new PatentParser();\n\t\t\t\t\t\tpatInfoText = parser.parsePatent(tmpTxt+\".txt\");\n\t\t\t\t\t\tSystem.out.println(\"PDF Image after parsing ========>\\n\" + patInfoText.toString());\n\t\t\t\t\t\t// code to store the patent info\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn 1;\n\t\t\t}\n \t}else {\n \t\tSystem.out.println(\"the Pdf text is parsed successfully=======>\\n\" + patInfoText.toString());\n \t}// end else\n \t\n \t//instantiate MySQL connection\n \tMYSQLConnector mysql = new MYSQLConnector();\n \tConnection conn = mysql.getmysqlConn();\n \tPreparedStatement preparedStmt = null;\n \ttry {\n \t\tString sql = \n \t\t \t\"INSERT INTO patentsearch.patentinfo \" + \n \t\t \t\"(PatentNumber, PatentOrg, Inventors, PatentTitle, PublishDate, PatentAbstract, BatchDateTime, PatentFileName)\" +\n \t\t \"VALUES (?, ?, ?, ?, ?,?, ?, ?)\";\n \t\t \n \t\t// create the mysql insert preparedstatement\n \t\tpreparedStmt = conn.prepareStatement(sql);\n \t\tpreparedStmt.setString (1, (String)patInfoText.get(\"pubno\"));\n \t\tpreparedStmt.setString (2, (String)patInfoText.get(\"puborg\"));\n \t\tpreparedStmt.setString (3, (String)patInfoText.get(\"inventors\"));\n \t\tpreparedStmt.setString (4, (String)patInfoText.get(\"pubtitle\"));\n \t\tpreparedStmt.setString (5, (String)patInfoText.get(\"pubdate\"));\n \t\tpreparedStmt.setString (6, (String)patInfoText.get(\"abstract\"));\n \t\tpreparedStmt.setString (7, (String)patInfoText.get(\"datetime\"));\n \t\tpreparedStmt.setString (8, (String)patInfoText.get(\"filename\"));\n \t\t\n \t\tSystem.out.println(\"Publication Number ==>\" + (String)patInfoText.get(\"pubno\"));\n \t\tSystem.out.println(\"Publication Date ==>\" + (String)patInfoText.get(\"pubdate\"));\n \t\t// execute the preparedstatement\n \t\tpreparedStmt.execute();\n \t\t\n \t}catch (SQLException ex){\n \t // handle any errors\n \t System.err.println(\"SQLException: \" + ex.getMessage());\n \t System.err.println(\"SQLState: \" + ex.getSQLState());\n \t System.err.println(\"VendorError: \" + ex.getErrorCode());\n \t}finally {\n \t\tif (preparedStmt != null) {\n \t\ttry {\n \t\t\tpreparedStmt.close();\n \t\t} catch (SQLException sqlEx) { } // ignore\n \t\t\tpreparedStmt = null;\n \t\t}\n \t\tif (conn != null) {\n \t\t\ttry {\n \t\t\t\tconn.close();\n \t\t } catch (SQLException sqlEx) { } // ignore\n \t\t conn = null;\n \t\t}\n \t}\n\n \t// process is successful !\n\t\treturn 0; \t\n }", "title": "" }, { "docid": "6a39735fe97663490cd0c683d57eb20c", "score": "0.46931374", "text": "private ImageTranscoder m24724b(ImageFormat imageFormat, boolean z) {\n Integer num = this.f26000d;\n if (num == null) {\n return null;\n }\n int intValue = num.intValue();\n if (intValue == 0) {\n return m24725c(imageFormat, z);\n }\n if (intValue == 1) {\n return m24726d(imageFormat, z);\n }\n throw new IllegalArgumentException(\"Invalid ImageTranscoderType\");\n }", "title": "" }, { "docid": "27e0492a93d7696414cdb26adf0f6b3e", "score": "0.46903276", "text": "public final C4264d mo56079Vu(String str) {\n C4264d c4264d = null;\n AppMethodBeat.m2504i(80743);\n if (str == null || str.length() <= 0) {\n C4990ab.m7412e(\"MicroMsg.scanner.DecodeFile\", \"in decodeFile, file == null\");\n AppMethodBeat.m2505o(80743);\n } else {\n Options amj = C5056d.amj(str);\n if (amj != null) {\n amj.inJustDecodeBounds = false;\n amj.inPreferredConfig = Config.RGB_565;\n if (((long) ((amj.outWidth * amj.outHeight) * 8)) * 4 > 268435456) {\n C4990ab.m7417i(\"MicroMsg.scanner.DecodeFile\", \"initial width %d, initial height %d\", Integer.valueOf(amj.outWidth), Integer.valueOf(amj.outHeight));\n amj.inSampleSize = 4;\n }\n }\n if (!this.mCancelled) {\n try {\n Bitmap decodeFile = C5056d.decodeFile(str, amj);\n if (decodeFile == null) {\n C4990ab.m7412e(\"MicroMsg.scanner.DecodeFile\", \"decode bitmap is null!\");\n AppMethodBeat.m2505o(80743);\n } else {\n boolean z;\n c4264d = mo56078P(decodeFile);\n String str2 = \"MicroMsg.scanner.DecodeFile\";\n String str3 = \"decode result==null:%b\";\n Object[] objArr = new Object[1];\n if (c4264d == null) {\n z = true;\n } else {\n z = false;\n }\n objArr[0] = Boolean.valueOf(z);\n C4990ab.m7411d(str2, str3, objArr);\n if (!(c4264d == null || C5046bo.isNullOrNil(c4264d.result))) {\n AppMethodBeat.m2505o(80743);\n }\n }\n } catch (OutOfMemoryError e) {\n C4990ab.m7413e(\"MicroMsg.scanner.DecodeFile\", \"OutOfMemoryError, e: %s\", e.getMessage());\n }\n }\n AppMethodBeat.m2505o(80743);\n }\n return c4264d;\n }", "title": "" }, { "docid": "071565afcb4bf2625520aaf3037e6a02", "score": "0.46876556", "text": "boolean hasEncodedPreambleWaveform();", "title": "" }, { "docid": "65f6ac9f61f7aab105a8aac1da801265", "score": "0.4683673", "text": "@Test\n void returnValidBarcode() {\n }", "title": "" }, { "docid": "174cdf2e238d2c1965c25bd27daf0ed0", "score": "0.4676691", "text": "private ImageTranscoder m24725c(ImageFormat imageFormat, boolean z) {\n return C9775c.m24272a(this.f25997a, this.f25998b).createImageTranscoder(imageFormat, z);\n }", "title": "" }, { "docid": "cb485a836bfd3469f6981038e79112ec", "score": "0.4672659", "text": "boolean hasPlaintextCrc32C();", "title": "" }, { "docid": "3b25c629b9b3a6e88818d76c1a4886e3", "score": "0.46649414", "text": "boolean hasPosInImage();", "title": "" }, { "docid": "97dd2e2ac59e8cf324b076dcc01a8d7d", "score": "0.46445197", "text": "public Mat recognizeImage(Mat mat_image){\n Mat rotate_mat_iamge=new Mat();\n\n Core.flip(mat_image.t(),rotate_mat_iamge,1);\n// define height and width of original bitmap\n height=rotate_mat_iamge.height();\n width=rotate_mat_iamge.width();\n\n Rect roi_cropped = new Rect((width-400)/2, (height-400)/2, 400, 400);\n Mat cropped = new Mat(rotate_mat_iamge, roi_cropped);\n\n\n // Convert Mat image to bitmap image\n Bitmap bitmap=null;\n bitmap=Bitmap.createBitmap(cropped.cols(),cropped.rows(),Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(cropped,bitmap);\n\n\n\n // resize bitmap image to input size of model\n\n Bitmap scaledBitmap=Bitmap.createScaledBitmap(bitmap,INPUT_SIZE,INPUT_SIZE,false);\n\n // convert scaledBitmap to ByteBuffer\n ByteBuffer byteBuffer=convertBitmapToByteBuffer(scaledBitmap);\n\n // create an input and output for interpreter\n\n float[][] output=new float[1][1];\n Object[] out=new Object[1];\n out[0]=output;\n\n\n Object[] input=new Object[1];\n input[0]=byteBuffer;\n\n // now pass it through interpreter\n interpreter.run(byteBuffer,output);\n // we are not using out and input as it is used for multiple input and output\n // example interpreter.runForMultipleInputsOutputs(input,out);\n\n // to see value of output\n Log.d(\"imageClassification\",\"Out \"+ Arrays.deepToString(output));\n\n // close to 0 - benign\n // close to 1 -malignant\n // set threshold to get better result\n float val=(float) Array.get(Array.get(output,0),0);\n if(val >0.4){\n Imgproc.rectangle(rotate_mat_iamge,new Point((width-400)/2,(height-400)/2),new Point((width+400)/2,(height+400)/2),red,2);\n Imgproc.putText(rotate_mat_iamge,\"Malignant is detected\" ,new Point(((width-400)/2+30),80),3,1,red,2);\n }\n\n else {\n Imgproc.rectangle(rotate_mat_iamge,new Point((width-400)/2,(height-400)/2),new Point((width+400)/2,(height+400)/2),green,2);\n Imgproc.putText(rotate_mat_iamge,\"Benign is detected\" ,new Point(((width-400)/2+30),80),3,1,green,2);\n }\n\n\n // Mat eye_image = new Mat();\n // Size sz = new Size(width,height);\n // Imgproc.resize( cropped, eye_image, sz );\n // return image should be in landscape mode\n // rotate image by -90 degree\n Core.flip(rotate_mat_iamge.t(),rotate_mat_iamge,0);\n return rotate_mat_iamge;\n }", "title": "" }, { "docid": "1ccacae7e5329ea78054e05b64100ba4", "score": "0.4640851", "text": "public void printBarcode(){\n\n MultiFormatWriter mMultiFormatWriter = new MultiFormatWriter();\n\n BitMatrix bitMatrix = null;\n try {\n bitMatrix = mMultiFormatWriter.encode(\"A123456A\",\n BarcodeFormat.CODABAR,500,200);\n BarcodeEncoder barcodeEncoder = new BarcodeEncoder();\n Bitmap bitmap = barcodeEncoder.createBitmap(bitMatrix);\n byte[] a = new byte[1];\n a[0] = (byte)0;// 0 <= m <=3\n printer.GS_V(bitmap, \"1\");//TODO - Set default to 1\n } catch (WriterException e){\n Log.e(\"Barcode Encoding Error:\",e.getMessage());\n }\n }", "title": "" }, { "docid": "58192d28812eb011355bc6997f3422a5", "score": "0.46297687", "text": "boolean hasLccCode();", "title": "" }, { "docid": "3a875114f6c2fca372d7a9816dfd3cbd", "score": "0.46235994", "text": "private void initialiseDetectorsAndSources() {\n\n barcodeDetector = new BarcodeDetector.Builder(this)\n .setBarcodeFormats(Barcode.ALL_FORMATS)\n .build();\n\n cameraSource = new CameraSource.Builder(this, barcodeDetector)\n .setRequestedPreviewSize(1920, 1080)\n .setAutoFocusEnabled(true) //you should add this feature\n .build();\n\n surfaceView.getHolder().addCallback(new SurfaceHolder.Callback() {\n @Override\n public void surfaceCreated(SurfaceHolder holder) {\n try {\n if (ActivityCompat.checkSelfPermission(BarcodeDetectorActivity.this, Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED) {\n cameraSource.start(surfaceView.getHolder());\n } else {\n ActivityCompat.requestPermissions(BarcodeDetectorActivity.this, new\n String[]{Manifest.permission.CAMERA}, REQUEST_CAMERA_PERMISSION);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }\n\n @Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n }\n\n @Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n cameraSource.stop();\n }\n });\n\n\n barcodeDetector.setProcessor(new Detector.Processor<Barcode>() {\n @Override\n public void release() {\n // Toast.makeText(getApplicationContext(), \"To prevent memory leaks barcode scanner has been stopped\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void receiveDetections(Detector.Detections<Barcode> detections) {\n final SparseArray<Barcode> barcodes = detections.getDetectedItems();\n if (barcodes.size() != 0) {\n\n\n barcodeText.post(new Runnable() {\n\n @Override\n public void run() {\n\n if(barcodes.valueAt(0).email != null) {\n barcodeText.removeCallbacks(null);\n barcodeData = barcodes.valueAt(0).email.address;\n barcodeText.setText(barcodeData);\n toneGen1.startTone(ToneGenerator.TONE_CDMA_PIP, 150);\n } else {\n\n barcodeData = barcodes.valueAt(0).displayValue;\n barcodeText.setText(barcodeData);\n toneGen1.startTone(ToneGenerator.TONE_CDMA_PIP, 150);\n\n }\n }\n });\n\n }\n }\n });\n }", "title": "" }, { "docid": "784ef157093cc6490b860134c0837dbd", "score": "0.46126285", "text": "private static String m75316Bn(String str) {\n AppMethodBeat.m2504i(131142);\n int orientationInDegree = Exif.fromFile(str).getOrientationInDegree();\n if (orientationInDegree != 0) {\n orientationInDegree %= v2helper.VOIP_ENC_HEIGHT_LV1;\n try {\n Options options = new Options();\n Bitmap decodeFile = MMBitmapFactory.decodeFile(str, options);\n if (decodeFile == null) {\n C4990ab.m7412e(\"MicroMsg.JsApiChooseImage\", \"rotate image, get null bmp\");\n AppMethodBeat.m2505o(131142);\n return str;\n }\n Bitmap b = C5056d.m7648b(decodeFile, (float) orientationInDegree);\n String str2 = C6457e.euR + \"microMsg.tmp.\" + System.currentTimeMillis() + (C38507c.m65173e(options) ? FileUtils.PIC_POSTFIX_JPEG : \".png\");\n try {\n C5056d.m7625a(b, 80, C38507c.m65173e(options) ? CompressFormat.JPEG : CompressFormat.PNG, str2, true);\n if (C38507c.m65173e(options)) {\n C2154b.m4366bY(str, str2);\n }\n AppMethodBeat.m2505o(131142);\n return str2;\n } catch (Exception e) {\n C4990ab.m7413e(\"MicroMsg.JsApiChooseImage\", \"rotate image, exception occurred when saving | %s\", e);\n C1173e.deleteFile(str2);\n AppMethodBeat.m2505o(131142);\n return str;\n }\n } catch (OutOfMemoryError e2) {\n AppMethodBeat.m2505o(131142);\n return str;\n } catch (NullPointerException e3) {\n AppMethodBeat.m2505o(131142);\n return str;\n }\n }\n AppMethodBeat.m2505o(131142);\n return str;\n }", "title": "" }, { "docid": "a07267b17bbf0dfaabeddf3ada0607c3", "score": "0.46117812", "text": "private boolean checkScanFormat(String scanResult){\n\n String cardFormat=\"rp://\\\\w{1,8}\";\n return scanResult.matches(cardFormat);\n\n }", "title": "" }, { "docid": "df3d97aaa17333a43d31d76a0bd7e60c", "score": "0.45968297", "text": "@Override\n public void onImageAvailable(ImageReader imageReader) {\n count++;\n Image i = imageReader.acquireLatestImage();\n if (i == null) return;\n if (!detecting || (count % SLOW_DOWN_FACTOR) != 0) {\n i.close();\n return;\n }\n\n // Step into native code, passing the JPEG byte buffer down to be decoded and checked\n // for April Tags\n Image.Plane p = i.getPlanes()[0];\n byte[] bytes = new byte[p.getBuffer().remaining()];\n p.getBuffer().get(bytes);\n current_detection = searchForAprilTags(bytes, bytes.length);\n if (current_detection != null) {\n // Extract symbols from the mapping database in the experiment definition\n for (final MappingDefinition d : current_experiment.mappings)\n if (current_detection.id == d.id) current_experiment.last_mapping = d;\n\n // Get a mutable copy of the bitmap\n Bitmap bm = BitmapFactory.decodeByteArray(bytes, 0,\n bytes.length).copy(Bitmap.Config.ARGB_8888, true);\n\n // Configure the highlight paint to the type of detection\n highlight_paint.setColor(GameActivity.this.getResources()\n .getColor(current_experiment.last_mapping.correspondingColour\n (current_experiment.goal)));\n\n // Draw to the canvas\n final Path box = current_detection.path();\n final Canvas c = new Canvas(bm);\n highlight_paint.setStyle(Paint.Style.STROKE);\n c.drawPath(box, highlight_paint);\n highlight_paint.setStyle(Paint.Style.FILL);\n highlight_paint.setAlpha(128);\n c.drawPath(box, highlight_paint);\n\n // Finish by rotating the bitmap 90 degress\n Matrix m = new Matrix();\n m.postRotate(90);\n final Bitmap bmRotated = Bitmap.createBitmap(bm, 0, 0,\n bm.getWidth(), bm.getHeight(), m, true);\n GameActivity.this.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n ((ImageView) findViewById(R.id.detection_view))\n .setImageBitmap(bmRotated);\n updateTagDisplay();\n }\n });\n }\n\n // Clean up things when we are done\n i.close();\n }", "title": "" }, { "docid": "970ecc28bf751605c03525f1dbecfac1", "score": "0.45932695", "text": "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n\n cameraPreview = (SurfaceView) getView().findViewById(R.id.surfaceView);\n barcodeDetector = new BarcodeDetector.Builder(getActivity())\n .setBarcodeFormats(Barcode.QR_CODE)\n .build();\n cameraSource = new CameraSource\n .Builder(getActivity(), barcodeDetector)\n .setRequestedPreviewSize(4000 , 3000)\n .setAutoFocusEnabled(true)\n .build();\n cameraPreview.getHolder().addCallback(new SurfaceHolder.Callback() {\n @Override\n public void surfaceCreated(SurfaceHolder surfaceHolder) {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{Manifest.permission.CAMERA}, RequestCameraPermissionID);\n try {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n cameraSource.start(cameraPreview.getHolder());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return;\n }\n\n @Override\n public void surfaceChanged(SurfaceHolder surfaceHolder, int i, int i1, int i2) {\n\n\n }\n\n @Override\n public void surfaceDestroyed(SurfaceHolder surfaceHolder) {\n cameraSource.stop();\n }\n });\n\n barcodeDetector.setProcessor(new Detector.Processor<Barcode>() {\n @Override\n public void release() {\n\n }\n\n @Override\n public void receiveDetections(Detector.Detections<Barcode> detections) {\n final SparseArray<Barcode> qrcodes = detections.getDetectedItems();\n if(qrcodes.size() != 0)\n {\n Vibrator vibrator = (Vibrator)getActivity().getSystemService(Context.VIBRATOR_SERVICE);\n vibrator.vibrate(1000);\n\n System.out.println(\"QR=\\t\"+qrcodes.valueAt(0).displayValue);\n String invoice=qrcodes.valueAt(0).displayValue;\n invoice=invoice.trim();\n String date_y=invoice.substring(10,13);\n System.out.println(\"date_y=\\t\"+date_y);\n int x=Integer.valueOf(date_y)+1911;\n String date=String.valueOf(x)+\"-\"+invoice.substring(13,15)+\"-\"+invoice.substring(15,17);\n\n String price=invoice.substring(29,37);\n System.out.println(Integer.valueOf( price, 16 ));\n int value=Integer.valueOf( price, 16 );\n price=String.valueOf(value);\n String finalPrice = price;\n String []info=invoice.split(\":\",6);\n String test=\"\";\n try{\n test=info[5].replace(\":\",\",\");\n }catch(Exception e){\n\n }\n\n if (info[4].equals(\"0\")){\n test=info[5];\n }else if(info.equals(\"2\")){\n test=info[5];\n }\n String finalTest = test;\n getActivity().runOnUiThread(()->{\n TextView Date=getView().findViewById(R.id.auto_date);\n TextView Price=getView().findViewById(R.id.auto_price);\n TextView Info=getView().findViewById(R.id.auto_Binfo);\n Date.setText(date);\n Price.setText(finalPrice);\n Info.setText(finalTest);\n });\n }\n }\n\n });\n\n\n\n Spinner m_type = (Spinner) getView().findViewById(R.id.auto_type);\n String[] types = {\"食物\", \"用品\", \"學業\", \"娛樂\", \"交通\", \"其他\", \"收入\"};\n String[] items=null;\n ArrayAdapter<String> typeAD = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_spinner_dropdown_item,types);\n m_type.setAdapter(typeAD);\n m_type.setOnItemSelectedListener(new Spinner.OnItemSelectedListener(){\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n\n public void onItemSelected(AdapterView adapterView, View view, int position, long id){\n String[] S_items=null;\n String[] items = new String[0];\n switch (position){\n case 0:\n {items=new String[]{\"早餐\",\"午餐\",\"晚餐\",\"飲料\",\"其它\"};}\n break;\n case 1:\n { items= new String[]{\"衣服\", \"其它\"};}\n break;\n case 2:\n { items=new String[]{\"書籍\",\"文具\",\"其它\"};}\n break;\n case 3:\n { items=new String[]{\"旅行\",\"運動\",\"藝文\",\"其它\"};}\n break;\n case 4:\n { items=new String[]{\"交通\",};}\n break;\n case 5:\n { items=new String[]{\"其它\"};}\n break;\n case 6:\n {items=new String[]{\"薪水\",\"生活費\",\"其它\"};}\n break;\n }\n S_items=items;\n Spinner m_item = (Spinner) getView().findViewById(R.id.auto_item);\n ArrayAdapter<String> itemList = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_spinner_dropdown_item,S_items);\n m_item.setAdapter(itemList);\n }\n });\n\n\n Button bt_submit=(Button)getView().findViewById(R.id.auto_submit);\n bt_submit.setOnClickListener((View )->{\n Spinner m_item = (Spinner) getView().findViewById(R.id.auto_item);\n TextView Tprice=(TextView)getView().findViewById(R.id.auto_price);\n TextView M_info=(TextView)getView().findViewById(R.id.auto_Binfo);\n TextView A_Date=(TextView)getView().findViewById(R.id.auto_date) ;\n String type=m_type.getSelectedItem().toString();\n String item= m_item.getSelectedItem().toString();\n String price_m=Tprice.getText().toString();\n String date=A_Date.getText().toString().trim();\n if(date.equals(\"\")){\n Toast toast = Toast.makeText(getActivity(), \"請掃描發票!!\\t\" + this.U_Name, Toast.LENGTH_LONG);\n toast.show();\n }else{\n try {\n post(\"http://140.119.163.195/DFapp/InsertBill.php\",this.U_Num,date,type+\":\"+item,price_m,M_info.getText().toString());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n\n });\n\n }", "title": "" }, { "docid": "520b2f86e76332efe21e6a02d5665c9c", "score": "0.45892036", "text": "private void checkSigModeImage(boolean pushed, byte[] imageData) throws STUException, java.security.NoSuchAlgorithmException\n {\n boolean sigKeyEnabled[] = { true, true, true };\n RomStartImageData romStartImageData = RomStartImageData.initializeSignature(this.encodingMode, pushed, sigScreenImageNum, sigKeyEnabled);\n\n this.tablet.setRomImageHash(OperationModeType.Signature, pushed, sigScreenImageNum);\n\n RomImageHash romImgHash = tablet.getRomImageHash();\n\n boolean writeImage = true;\n if (romImgHash.getResult() == 0)\n {\n // There is already an image stored on the tablet corresponding to this image number and pushed state:\n // compare image hashes to determine if we need to overwrite it.\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(imageData);\n if (Arrays.equals(hash, romImgHash.getHash()))\n {\n // Image hashes match: no need to write image again\n writeImage = false;\n }\n }\n // else - no image on pad, writeImage = true;\n\n if (writeImage)\n {\n tablet.writeRomImage(romStartImageData, imageData);\n }\n }", "title": "" }, { "docid": "5aa7600bdcae356c27c1cb8731912288", "score": "0.45816034", "text": "private boolean xinLiaoDecode(BufferedImage stegoImage, String key) {\n\t\tint[] resultBits = new int[stegoImage.getWidth() * stegoImage.getHeight() * getHighK() * 8];\n\t\tbyte[] result = new byte[stegoImage.getWidth() * stegoImage.getHeight() * getHighK()]; //max possible embedded message\n\t\tint resultBitIndex = 0;\n\t\t\n\t\tfor(int i=0;i<stegoImage.getHeight();i += 2){\n\t\t\tfor(int j=0;j<stegoImage.getWidth();j += 2){\n\t\t\t\tColor pixels[] = new Color[4];\n\t\t\t\t\n\t\t\t\tif(j + 1 < stegoImage.getWidth() && i + 1 < stegoImage.getHeight()){\n\t\t\t\t\t//System.out.println(\"Processing \" + j + \" \" + i);\n\t\t\t\t\tpixels[0] = new Color(stegoImage.getRGB(j, i));\n\t\t\t\t\tpixels[1] = new Color(stegoImage.getRGB(j+1, i));\n\t\t\t\t\tpixels[2] = new Color(stegoImage.getRGB(j, i+1));\n\t\t\t\t\tpixels[3] = new Color(stegoImage.getRGB(j+1, i+1));\n\n\t\t\t\t\tfor(int k=0;k<3;k++){\t\t\n\t\t\t\t\t\tfloat D = getAvgDiff(pixels, k);\n\t\t\t\t\t\tif(D <= getThreshold()){\n\t\t\t\t\t\t\tif(!isErrorBlock(pixels, k)){\n\t\t\t\t\t\t\t\tfor(int m=0;m<4;m++){\n\t\t\t\t\t\t\t\t\tint bits[] = new int[getLowK()];\n\t\t\t\t\t\t\t\t\tbits = getEmbeddedPixel(getBlockLayer(pixels, k)[m], getLowK());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Loading \" + Arrays.toString(bits) + \" in (\" + j + \", \" + i + \")\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfor(int n=0;n<getLowK();n++){\n\t\t\t\t\t\t\t\t\t\tresultBits[resultBitIndex++] = bits[n];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(!isErrorBlock(pixels, k)){\n\t\t\t\t\t\t\t\tfor(int m=0;m<4;m++){\n\t\t\t\t\t\t\t\t\tint bits[] = new int[getHighK()];\n\t\t\t\t\t\t\t\t\tbits = getEmbeddedPixel(getBlockLayer(pixels, k)[m], getHighK());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Loading \" + Arrays.toString(bits) + \" in (\" + j + \", \" + i + \")\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfor(int n=0;n<getHighK();n++){\n\t\t\t\t\t\t\t\t\t\tresultBits[resultBitIndex++] = bits[n];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\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\t\n\t\t// convert to bytes, decrypt\n\t\tfor (int i=0; i<result.length; i++) {\n\t\t\tfor (int j=0; j<8; j++) {\n\t\t\t\tif (resultBits[(i*8)+j]==1) { // bit==1\n\t\t\t\t\tresult[i] |= (1 << (7-j));\n\t\t\t\t}\n\t\t\t\telse {\t\t\t\t\t\t// bit==0\n\t\t\t\t\tresult[i] &= ~(1 << (7-j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//System.out.println(\"Bit version: \" + Arrays.toString(resultBits) + \"\\n\\n\");\n\t\t\n\t\t/*\n\t\tfor(int i=0;i<90;i++){\n\t\t\tString s1 = String.format(\"%8s\", Integer.toBinaryString(result[i] & 0xFF)).replace(' ', '0');\n\t\t\tSystem.out.println(s1);\n\t\t} \n\t\t*/\n\t\t\t\t\n\t\tresult = decryptVigenere(result, key);\n\t\t\n\t\t// extract properties\n\t\tString resultString = new String(result, StandardCharsets.UTF_8);\n\t\t//System.out.println(\"result string: \" + resultString);\n\t\tint firstFound = resultString.indexOf('#');\n\t\tString fileName = resultString.substring(0, firstFound);\n\t\t//System.out.println(\"nama : \"+ fileName);\n\t\tint bytesLength = Integer.parseInt(resultString.substring(firstFound+1, resultString.indexOf('#', firstFound+1)));\n\t\t\n\t\t// get clean stegobytes\n\t\tbyte[] fileProp = (fileName+\"#\"+Integer.toString(bytesLength)+\"#\").getBytes(StandardCharsets.UTF_8);\n\t\tbyte[] stegoBytes = new byte[bytesLength];\n\t\tSystem.arraycopy(result, fileProp.length, stegoBytes, 0, bytesLength);\n\t\t\n\t\t// write stuffs\n\t\tcoverImage = stegoImage;\n\t\tlblFileName.setText(fileName);\n\t\tstegoFile = stegoBytes;\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f332064fdabe1ad95c77a864860902f7", "score": "0.45815122", "text": "boolean hasDecoderWordPen();", "title": "" }, { "docid": "4b6e937c2bb7fd0aa489855952388b51", "score": "0.45734492", "text": "public static boolean isSigned_pRcvd() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "649dca05441929c67473ac5d4461cfea", "score": "0.45686218", "text": "boolean hasEncodedWaveform();", "title": "" }, { "docid": "afe49b001a33d8258983d388fe182d5e", "score": "0.4559023", "text": "public boolean ValidCode() {\n\t\tif (code.length() != 7)\n\t\t\treturn false;\n\t\tString[] codeSplit = code.split(\"x\");\n\t\tif (codeSplit.length != 2)\n\t\t\treturn false;\n\t\tif (codeSplit[0].length() != 3 && codeSplit[1].length() != 3)\n\t\t\treturn false;\n\t\tString[] codeSplitFrom = codeSplit[0].split(\",\");\n\t\tString[] codeSplitTo = codeSplit[1].split(\",\");\n\t\tif (codeSplitFrom.length != 2 && codeSplitTo.length != 2)\n\t\t\treturn false;\n\t\tcoordinates[0] = Integer.parseInt(codeSplitFrom[0]);\n\t\tcoordinates[1] = Integer.parseInt(codeSplitFrom[1]);\n\t\tcoordinates[2] = Integer.parseInt(codeSplitTo[0]);\n\t\tcoordinates[3] = Integer.parseInt(codeSplitTo[1]);\n\t\tif (coordinates[0] < 0 || coordinates[0] > 7)\n\t\t\treturn false;\n\t\tif (coordinates[1] < 0 || coordinates[1] > 7)\n\t\t\treturn false;\n\t\tif (coordinates[2] < 0 || coordinates[2] > 7)\n\t\t\treturn false;\n\t\tif (coordinates[3] < 0 || coordinates[3] > 7)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7f75588a85f1d85e6a25a3844080808b", "score": "0.4558507", "text": "boolean hasBrotliCompression();", "title": "" }, { "docid": "7ef8bfbdf8c413fdb196a907cbb935fb", "score": "0.45571804", "text": "public void decode() throws NoSuchAlgorithmException, NoSuchPaddingException, IOException, InvalidKeyException, InvalidKeySpecException, IllegalBlockSizeException, BadPaddingException{\n\t\tInputStream fis;\n\t\tif(issuingMunicipalityId==BiometricIdCard.ROMA)\n\t\t\tfis = presentContext.getResources().openRawResource(R.raw.opsis_pub_key_0000_00);\n\t\telse if (issuingMunicipalityId==BiometricIdCard.MILANO)\n\t\t\tfis = presentContext.getResources().openRawResource(R.raw.opsis_pub_key_0001_00);\n\t\telse\n\t\t\tfis = presentContext.getResources().openRawResource(R.raw.opsis_pub_key_0002_00);\n\t\t\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\n byte[] buffer = new byte[4096];\n int bytesRead;\n while ((bytesRead = fis.read(buffer)) != -1) {\n baos.write(buffer, 0, bytesRead);\n }\n fis.close();\n \n byte[] publicKeyBytes = baos.toByteArray();\n baos.close();\n \n //from X509 public key conversion\n X509EncodedKeySpec ks = new X509EncodedKeySpec(publicKeyBytes);\n KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n PublicKey publicKey = kf.generatePublic(ks);\n \n \n byte[] codFile;\n codFile = baos.toByteArray();\n // DECODIFICA\n Cipher c = Cipher.getInstance(\"RSA/ECB/PKCS1Padding\");\n c.init(Cipher.DECRYPT_MODE, publicKey);\n \n int pieces = (baos.size()/128);\n int remainder = baos.size()%128;\n \n byte[] encodeFile = null;\n \n \n if(pieces == 1){\n \t\n \tbyte[] lastpiece = new byte[remainder];\n \tfor(int j=0; j<128; j++)\n lastpiece[j] = codFile[j];\n \n encodeFile = c.doFinal(lastpiece);\n\n }\n \n if(pieces > 1){\n \t\n byte[] filepiece = new byte[128];\n \t\n \tfor(int k=0; k<pieces; k++){\n\n \t\t\tfor(int j=0; j<128; j++)\n \t\t\t\tfilepiece[j] = codFile[j+k*128];\n \n \t\t\tencodeFile = c.doFinal(filepiece);\n }\n\n }\n decoded = new ByteArrayOutputStream(encodeFile.length);\n decoded.write(encodeFile);\n\t}", "title": "" }, { "docid": "ccf0adb7fc2c8b164f763ffbb9b03018", "score": "0.45547986", "text": "public boolean isQRCode() {\n return \"qr_code\".equalsIgnoreCase(type) || \"28\".equals(type);\n }", "title": "" }, { "docid": "fb0b25dd6ba80ea30eefbe0a6e432809", "score": "0.45543924", "text": "public static String getSecretCode()\n\t{\n\t\tString urlPath = \"http://irs.passiontec.cn/irs-web/captcha\";\n\t\tString code=null;\n\t\ttry {\n\t\t\tURL url = new URL(urlPath); \n HttpURLConnection connection = (HttpURLConnection) url.openConnection(); \n\n connection.setConnectTimeout(5000); \n connection.setReadTimeout(10000); \n connection.setRequestMethod(\"GET\");\n connection.setRequestProperty(\"User-Agent\", \"Mozilla/4.0(compatible;MSIE 5.0;Windows NT;DigExt)\"); \n connection.connect(); \n \n String key = null;\n\t for(int i = 1; (key = connection.getHeaderFieldKey(i)) != null; i++)\n\t\t\t{ \n \tString temp=null;\n\t if(key.equalsIgnoreCase(\"Set-cookie\"))\n\t { \n\t \ttemp = connection.getHeaderField(i); \n\t \ttemp = temp.substring(0, temp.indexOf(\";\")); \n\t \ttemp+=\"; \";\n\t \tcookie_str+=temp;\t \t\n\t } \n\t\t } \n\t //System.out.println(\"cookie: \"+cookie_str);\t\t\n\n File imageFile = new File(\"C://ServerTemp/pic/codeImage.jpg\");\n if (imageFile.exists()) {\n \timageFile.delete();\n }\n InputStream is = connection.getInputStream(); \n byte[] bs = new byte[1024]; \n int len; \n OutputStream os = new FileOutputStream(imageFile); \n // 开始读取 \n while ((len = is.read(bs)) != -1) { \n os.write(bs, 0, len); \n }\n is.close();\n os.close(); \t\t\n\t\t\t\n\t\t\tcode = MyDealImage.identifyCode();\n\t\t\tSystem.out.println(\"code: \"+code);\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\t\n\t\treturn code;\n\t}", "title": "" }, { "docid": "ee08d9b6e67f2d4b196e13705795ac19", "score": "0.45498514", "text": "@Override\n public boolean signImage() {\n return false;\n }", "title": "" }, { "docid": "6fbbf42dde06abedc8f9a36e3a074680", "score": "0.454418", "text": "public static File correctOrientation(File imageFile, String outputPath) throws IOException {\n \tFile outputFile = null;\n \ttry {\n\t\t\tMetadata metadata = JpegMetadataReader.readMetadata(imageFile);\n\t\t\tif(metadata == null) \n\t\t\t\treturn imageFile;\n\t\t\t\n\t\t\tDirectory exif = metadata.getDirectory(ExifIFD0Directory.class);\n\t\t\tif(exif == null) \n\t\t\t\treturn imageFile;\n\t\t\t\n\t\t\tString orientation = exif.getDescription(ExifIFD0Directory.TAG_ORIENTATION);\n\t\t\tif(orientation == null || orientation.equals(\"\")) \n\t\t\t\treturn imageFile;\n\t\t\t\n\t\t\tSystem.out.printf(\"[ImageUtil#correctOrientation] orientation:%s for %s\\n\", orientation, imageFile);\n\t\t\t\n\t\t\tBufferedImage output = null;\n\t BufferedImage input = ImageIO.read(imageFile); \n\t \n\t String[] orientationAry = orientation.split(\",\");\n\t Rotation rotation = null;\n\t // 2:flip horizontal\n\t if(orientationAry[0].toLowerCase().contains(\"top\") && orientationAry[1].toLowerCase().contains(\"right\")) {\n\t \trotation = Rotation.FLIP_HORZ;\n\t\t\t}\n\t\t\t// 3:轉180度\n\t else if(orientationAry[0].toLowerCase().contains(\"bottom\") && orientationAry[1].toLowerCase().contains(\"right\")) {\n\t \trotation = Rotation.CW_180;\n\t\t\t}\n\t // 4:flip vertical\n\t else if(orientationAry[0].toLowerCase().contains(\"bottom\") && orientationAry[1].toLowerCase().contains(\"left\")) {\n\t \trotation = Rotation.FLIP_VERT;\n\t\t\t}\n\t\t\t// 6:轉90度\n\t\t\telse if(orientationAry[0].toLowerCase().contains(\"right\") && orientationAry[1].toLowerCase().contains(\"top\")) {\n\t\t\t\trotation = Rotation.CW_90;\n\t\t\t}\n\t\t\t// 8:轉270度\n\t\t\telse if(orientationAry[0].toLowerCase().contains(\"left\") && orientationAry[1].toLowerCase().contains(\"bottom\")) {\n\t\t\t\trotation = Rotation.CW_270;\n\t\t\t}\n\t // 1,5,7不處理\n\t\t\telse {\n\t\t\t\treturn imageFile;\n\t\t\t}\n\t\t\t\n\t output = Scalr.rotate(input, rotation);\n\t \n\t if(output != null) {\n\t\t\t\t// keep original extension\n\t\t\t\tString ext = imageFile.getName();\n\t\t\t\text = ext.substring(ext.lastIndexOf('.') + 1);\n\t\t\t\t\n\t\t\t\tif (outputPath == null) { //over write original\n\t\t\t\t\toutputFile = imageFile; \n\t\t\t\t} else {\n\t\t\t\t\toutputFile = new File(outputPath); // write back and replace\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (output != null) {\n\t\t\t\t\tImageIO.write(output, ext, outputFile);\n\t\t\t\t\t//System.out.printf(\"[ImageUtil#correctOrientation] Rotate %s into %s\\n\", imageFile.getPath(), outputFile.getPath());\n\t\t\t\t} \n\t\t\t} \n\t System.out.printf(\"[ImageUtil#correctOrientation] Rotate %s for %s\\n\", rotation.name(), imageFile.getPath());\n\t\t} catch (JpegProcessingException e) {\n\t\t\toutputFile = imageFile;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t\t//outputFile = imageFile;\n\t\t}\n \treturn outputFile;\n\t}", "title": "" }, { "docid": "fbe69e21633b084232c3767c85cd41db", "score": "0.45439535", "text": "private boolean standardDecode(BufferedImage stegoImage, String key) {\n\t\t\n\t\tint width = stegoImage.getWidth();\n\t\tint height = stegoImage.getHeight();\n\t\t\n\t\t// get pixel array\n\t\tint[] pixelArray = new int[width*height];\n\t\tstegoImage.getRGB(0, 0, width, height, pixelArray, 0, width);\n\t\t\n\t\t// get random number generator\n\t\tint seed = 0;\n\t\tfor (int i=0; i<key.length(); i++) {\n\t\t\tseed += (int)key.charAt(i);\n\t\t}\n\t\tseed = seed % (width*height);\n\t\tRandom rand = new Random(seed);\n\t\tInteger[] randomInts = new Integer[width*height];\n//\t\tSystem.out.println(\"seed : \"+seed+\" length : \"+randomInts.length);\n\t for (int i = 0; i < randomInts.length; i++) {\n\t \trandomInts[i] = Integer.valueOf(i);\n\t }\n//\t for (int i = 0; i < 10; i++) {\n//\t \tSystem.out.println(randomInts[i]);\n//\t }\n\t Collections.shuffle(Arrays.asList(randomInts), rand);\n//\t for (int i = 0; i < 10; i++) {\n//\t \tSystem.out.println(randomInts[i]);\n//\t }\n\t\t\n\t\t// extract bits\n\t\tint[] stegoBits = new int[width*height*3];\n\t\tint n, r, g, b;\n\t\tColor c;\n\t\tfor (int i=0; i<(width*height); i++) {\n\t\t\tn = randomInts[i].intValue();\n\t\t\tc = new Color(pixelArray[n]);\n\t\t\tr = c.getRed();\n\t\t\tstegoBits[i*3] = r&1;\n\t\t\tg = c.getGreen();\n\t\t\tstegoBits[(i*3)+1] = g&1;\n\t\t\tb = c.getBlue();\n\t\t\tstegoBits[(i*3)+2] = b&1;\n//\t\t\tif (i<10) {\n//\t\t\t\tSystem.out.println(\"############\"+n+\" \"+stegoBits[i*3]+\" \"+stegoBits[(i*3)+1]+\" \"+stegoBits[(i*3)+2]);\n//\t\t\t}\n\t\t}\n\t\t\n\t\t// convert to bytes, decrypt\n\t\tbyte[] dirtyStegoBytes = new byte[(int)stegoBits.length/8];\n\t\tfor (int i=0; i<dirtyStegoBytes.length; i++) {\n\t\t\tfor (int j=0; j<8; j++) {\n\t\t\t\tif (stegoBits[(i*8)+j]==1) { // bit==1\n\t\t\t\t\tdirtyStegoBytes[i] |= (1 << (7-j));\n\t\t\t\t}\n\t\t\t\telse {\t\t\t\t\t\t// bit==0\n\t\t\t\t\tdirtyStegoBytes[i] &= ~(1 << (7-j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdirtyStegoBytes = decryptVigenere(dirtyStegoBytes, key);\n\t\t\n\t\t// extract properties\n\t\tString dirtyStegoString = new String(dirtyStegoBytes, StandardCharsets.UTF_8);\n\t\t//System.out.println(\"###################\\n\"+dirtyStegoString);\n\t\tint firstFound = dirtyStegoString.indexOf('#');\n\t\tString fileName = dirtyStegoString.substring(0, firstFound);\n\t\t//System.out.println(\"nama : \"+fileName);\n\t\tint bytesLength = Integer.parseInt(dirtyStegoString.substring(firstFound+1, dirtyStegoString.indexOf('#', firstFound+1)));\n\t\t\n\t\t// get clean stegobytes\n\t\tbyte[] fileProp = (fileName+\"#\"+Integer.toString(bytesLength)+\"#\").getBytes(StandardCharsets.UTF_8);\n\t\tbyte[] stegoBytes = new byte[bytesLength];\n\t\tSystem.arraycopy(dirtyStegoBytes, fileProp.length, stegoBytes, 0, bytesLength);\n\t\t\n\t\t// write stuffs\n\t\tcoverImage = stegoImage;\n\t\tlblFileName.setText(fileName);\n\t\tstegoFile = stegoBytes;\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "af243cba1364fb4c638cdf0f6b7956ae", "score": "0.45413744", "text": "public boolean checkCodes( int code )\n {\n\t\n\tcheckHorizontalCode( code );\n\tcheckTiltCannonCode( code );\n\tcheckVelocityCode( code );\n\treturn ( checkFireCannonCode( code ) );\n }", "title": "" }, { "docid": "9afbb7ea9b895a1c93eb00dc71876fe5", "score": "0.4540082", "text": "public Bitmap decodeImage(String path) {\n Bitmap res;\n try {\n ExifInterface exif = new ExifInterface(path);\n int orientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL);\n\n BitmapFactory.Options op = new BitmapFactory.Options();\n op.inSampleSize = 1;\n op.inJustDecodeBounds = false;\n res = BitmapFactory.decodeFile(path, op);\n Matrix matrix = new Matrix();\n\n if (orientation == ExifInterface.ORIENTATION_ROTATE_90) {\n matrix.postRotate(90);\n } else if (orientation == ExifInterface.ORIENTATION_ROTATE_180) {\n matrix.postRotate(180);\n } else if (orientation == ExifInterface.ORIENTATION_ROTATE_270) {\n matrix.postRotate(270);\n }\n\n Bitmap temp = Bitmap.createBitmap(res, 0, 0, res.getWidth(), res.getHeight(), matrix, true);\n Log.i(TAG, \"check target Image:\" + temp.getWidth() + \"*\" + temp.getHeight());\n\n if (!temp.equals(res)) {\n res.recycle();\n }\n return temp;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "5f1b225e3bea4d4e1bf68cbaba2bb6f0", "score": "0.45382324", "text": "private void showSignature(String[] args) throws Exception\n {\n String infile = \"Document cu discount 100%_signed_mod2.pdf\";\n// String infile = \"SampleSignedPDFDocument.pdf\";\n\n PDDocument document = null;\n try\n {\n document = PDDocument.load(new File(infile));\n for (PDSignature sig : document.getSignatureDictionaries())\n {\n\n COSDictionary sigDict = sig.getCOSObject();\n COSString contents = (COSString) sigDict.getDictionaryObject(COSName.CONTENTS);\n\n // download the signed content\n FileInputStream fis = new FileInputStream(infile);\n byte[] buf = null;\n try\n {\n buf = sig.getSignedContent(fis);\n }\n finally\n {\n fis.close();\n }\n\n out.println(\"\\n\\nSignature found\");\n out.println(\"Name: \" + sig.getName());\n out.println(\"Modified: \" + sdf.format(sig.getSignDate().getTime()));\n String subFilter = sig.getSubFilter();\n if (subFilter != null)\n {\n if (subFilter.equals(\"adbe.pkcs7.detached\"))\n {\n verifyPKCS7(buf, contents, sig);\n\n //TODO check certificate chain, revocation lists\n\n\n }\n else if (subFilter.equals(\"adbe.pkcs7.sha1\"))\n {\n // example: PDFBOX-1452.pdf\n COSString certString = (COSString) sigDict.getDictionaryObject(\n COSName.CONTENTS);\n byte[] certData = certString.getBytes();\n CertificateFactory factory = CertificateFactory.getInstance(\"X.509\");\n ByteArrayInputStream certStream = new ByteArrayInputStream(certData);\n Collection<? extends Certificate> certs = factory.generateCertificates(certStream);\n out.println(\"certs=\" + certs);\n\n byte[] hash = MessageDigest.getInstance(\"SHA1\").digest(buf);\n verifyPKCS7(hash, contents, sig);\n\n //TODO check certificate chain, revocation lists, timestamp...\n }\n else if (subFilter.equals(\"adbe.x509.rsa_sha1\"))\n {\n // example: PDFBOX-2693.pdf\n COSString certString = (COSString) sigDict.getDictionaryObject(\n COSName.getPDFName(\"Cert\"));\n byte[] certData = certString.getBytes();\n CertificateFactory factory = CertificateFactory.getInstance(\"X.509\");\n ByteArrayInputStream certStream = new ByteArrayInputStream(certData);\n Collection<? extends Certificate> certs = factory.generateCertificates(certStream);\n out.println(\"certs=\" + certs);\n\n out.println(\"TODO X509 check\");\n\n //TODO verify signature\n }\n else\n {\n System.err.println(\"Unknown certificate type: \" + subFilter);\n }\n }\n else\n {\n throw new IOException(\"Missing subfilter for cert dictionary\");\n }\n }\n }\n catch (CMSException ex)\n {\n throw new IOException(ex);\n }\n catch (OperatorCreationException ex)\n {\n throw new IOException(ex);\n }\n finally\n {\n if (document != null)\n {\n document.close();\n }\n }\n\n }", "title": "" }, { "docid": "941ae274035e93429459af85b9f38f0f", "score": "0.45290306", "text": "private static void processImageFile() {\n File image = new File(imageFileName);\n if (FileUtil.isReadableFile(image)) {\n Converter converter = Converter.getInstance();\n System.out.println(converter.convertToHacklace(image));\n }\n }", "title": "" }, { "docid": "32108f50e8d6937c9bc2ae1e6db3c331", "score": "0.45137435", "text": "boolean hasSignature();", "title": "" }, { "docid": "32108f50e8d6937c9bc2ae1e6db3c331", "score": "0.45137435", "text": "boolean hasSignature();", "title": "" }, { "docid": "1998bbeec7a2b937f5b023ee4e92da81", "score": "0.4511119", "text": "private byte[] findPhotoOldDPI(byte[] data) {\n/* 191 */ byte[] foto = null;\n/* 192 */ int startRead = -1;\n/* 193 */ int endRead = -1;\n/* */ \n/* 195 */ String sb = \"\";\n/* 196 */ for (byte b : data) {\n/* 197 */ sb = sb + String.format(\"%02X\", new Object[] { Byte.valueOf(b) });\n/* */ } \n/* 199 */ if (sb.contains(\"FFD8\") && sb.contains(\"FFD96F6D\")) {\n/* 200 */ startRead = sb.indexOf(\"FFD8\") / 2;\n/* 201 */ endRead = sb.indexOf(\"FFD96F6D\") / 2;\n/* */ \n/* 203 */ ArrayList<Byte> fotoBytes = new ArrayList<>();\n/* 204 */ for (int i = startRead; i < endRead + 1; i++) {\n/* 205 */ fotoBytes.add(Byte.valueOf(data[i]));\n/* */ }\n/* */ \n/* */ \n/* 209 */ foto = Bytes.toArray(fotoBytes);\n/* */ } else {\n/* */ \n/* 212 */ foto = null;\n/* */ } \n/* */ \n/* 215 */ return foto;\n/* */ }", "title": "" }, { "docid": "f539945ce210b5ca440784b37ca9025a", "score": "0.44975924", "text": "public void handleDecode(Result rawResult, Bitmap barcode) {\n\t\tinactivityTimer.onActivity();\n\t\tlastResult = rawResult;\n\t\tif (barcode == null) {\n\t\t\t// This is from history -- no saved barcode\n\t\t\tthrow new Error(\"shouldn't get here\");\n\t\t} else {\n\t\t\tplayBeepSoundAndVibrate();\n\t\t\tdrawResultPoints(barcode, rawResult);\n\n\t\t\ttry {\n\t\t\t\tBundle b = new Bundle();\n\t\t\t\tcodeScanned = rawResult.getText();\n\t\t\t\tLog.e(\"scanned code\", codeScanned);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (!codeScanned.startsWith(\"0\") &&!codeScanned.startsWith(\"BEEVOU\"))\n\t\t\t\t\t\t{\n\t\t\t\t\tthrow new RuntimeException(\"Trigger reset\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//checkBeevouCode(code);\n\t\t\t\tnew Asyn_Task().execute(\"\",\"\");\n\t\t\t\t\n\t\t\t\t\n/*MENE\n\t\t\t\tString[] parts = link.split(\":\");\n\t\t\t\tparts = parts[1].split(\"\\\\?\");\n\t\t\t\tb.putString(\"address\", parts[0]);\n\t\t\t\tif (parts.length > 1) {\n\t\t\t\t\tparts = parts[1].split(\"&\");\n\t\t\t\t\tString[] pair;\n\t\t\t\t\tfor (int i = 0; i < parts.length; i++) {\n\t\t\t\t\t\tpair = parts[i].split(\"=\");\n\t\t\t\t\t\tb.putString(pair[0], pair[1]);\n\t\t\t\t\t}\n\t\t\t\t}\n*/\n\t\t\t\t/*MENE Intent intent = new Intent(CaptureActivity.this,\n\t\t\t\t\t\tSendMoney.class);\n\t\t\t\tintent.putExtras(b);\n\t\t\t\tstartActivity(intent);*/\n\t\t\t} catch (Exception e) {\n\t\t\t\t Toast.makeText(this,\n\t\t\t\t \"Not a valid Beevou code. Please try again.\",\n\t\t\t\t Toast.LENGTH_LONG).show();\n\n\t\t\t\tresetStatusView();\n\t\t\t\t// sleep 3 seconds before restarting scanning\n\t\t\t\thandler.postDelayed(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (handler != null) {\n\t\t\t\t\t\t\thandler.sendEmptyMessage(R.id.restart_preview);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}, 3000);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e67af980ab899dcfd82681ad17c59a92", "score": "0.44965583", "text": "private void iCodeSLIXCardLogic(IICodeSLIX icodeSLIX) {\n icodeSLIX.getReader().connect();\n byte[] out = null;\n information_textView.setText(EMPTY_SPACE);\n showImageSnap(R.drawable.icode_p);\n stringBuilder.append(getString(R.string.Card_Detected)).append(\n icodeSLIX.getType().getTagName());\n stringBuilder.append(\"\\n\\n\");\n try {\n stringBuilder.append(getString(R.string.UID)).append(\n Utilities.dumpBytes(icodeSLIX.getUID()));\n stringBuilder.append(\"\\n\\n\");\n stringBuilder.append(getString(R.string.SIZE)).append(icodeSLIX.getTotalMemory());\n stringBuilder.append(\"\\n\\n\");\n if (icodeSLIX.isNXP()) {\n stringBuilder.append(getString(R.string.Vendor_ID)).append(getString(R.string.NXP));\n stringBuilder.append(\"\\n\\n\");\n } else {\n stringBuilder.append(getString(R.string.Vendor_ID)).append(\n getString(R.string.NON_NXP));\n stringBuilder.append(\"\\n\\n\");\n }\n stringBuilder.append(getString(R.string.PROTOCOL)).append(getString(\n R.string.PROTOCOL_ICODESLI));\n stringBuilder.append(\"\\n\\n\");\n\n stringBuilder.append(mString.toString());\n stringBuilder.append(\"\\n\\n\");\n\n stringBuilder.append(getString(R.string.Max_Transceive_length)).append(getString(\n R.string.Max_Trans_length_value));\n stringBuilder.append(\"\\n\\n\");\n out = icodeSLIX.readSingleBlock(ICode.NFCV_FLAG_ADDRESS, DEFAULT_ICode_PAGE);\n } catch (Exception e) {\n stringBuilder.append(UNABLE_TO_READ);\n }\n showMessage(stringBuilder.toString(), PRINT);\n //To save the logs to file \\sdcard\\NxpLogDump\\logdump.xml\n NxpLogUtils.save();\n }", "title": "" }, { "docid": "be206717453ee64d62eb529dddb3e24e", "score": "0.44869787", "text": "public void updateOrientationAngles() {\n SensorManager.getRotationMatrix(orientation.getRotationMatrix(), null,\n orientation.getAccelerometerReading(), orientation.getMagnetometerReading());\n\n // \"mRotationMatrix\" now has up-to-date information.\n SensorManager.getOrientation(orientation.getRotationMatrix(), orientation.getOrientationAngles());\n System.out.println(\"filtered: \"+orientation.getOrientationAngles()[1]);\n\n if (orientation.getOrientationAngles()[1] < 0.4 && orientation.getOrientationAngles()[1] > -0.4) {\n if (orientation.getOrientationAngles()[2] < 0) {\n txtBarcode.setVisibility(View.INVISIBLE);\n txtBarcodeHorizontal.setVisibility(View.VISIBLE);\n txtBarcodeHorizontalInverted.setVisibility(View.INVISIBLE);\n } else {\n txtBarcode.setVisibility(View.INVISIBLE);\n txtBarcodeHorizontal.setVisibility(View.INVISIBLE);\n txtBarcodeHorizontalInverted.setVisibility(View.VISIBLE);\n }\n }\n else {\n txtBarcode.setVisibility(View.VISIBLE);\n txtBarcodeHorizontal.setVisibility(View.INVISIBLE);\n txtBarcodeHorizontalInverted.setVisibility(View.INVISIBLE);\n }\n }", "title": "" }, { "docid": "41344446bc116123970fedee0a68f8d7", "score": "0.44869688", "text": "private static boolean m4523a(com.caverock.androidsvg.C0714i r6, int r7, java.util.List r8, int r9) {\n /*\n r2 = 1;\n r1 = 0;\n L_0x0002:\n r3 = r6.m4774a(r7);\n r0 = r8.get(r9);\n r0 = (com.caverock.androidsvg.bk) r0;\n r4 = com.caverock.androidsvg.C0705a.m4525a(r3, r8, r9, r0);\n if (r4 != 0) goto L_0x0014;\n L_0x0012:\n r0 = r1;\n L_0x0013:\n return r0;\n L_0x0014:\n r4 = r3.f4585a;\n r5 = com.caverock.androidsvg.C0710e.DESCENDANT;\n if (r4 != r5) goto L_0x002e;\n L_0x001a:\n if (r7 != 0) goto L_0x001e;\n L_0x001c:\n r0 = r2;\n goto L_0x0013;\n L_0x001e:\n if (r9 <= 0) goto L_0x002c;\n L_0x0020:\n r0 = r7 + -1;\n r9 = r9 + -1;\n r0 = com.caverock.androidsvg.C0705a.m4523a(r6, r0, r8, r9);\n if (r0 == 0) goto L_0x001e;\n L_0x002a:\n r0 = r2;\n goto L_0x0013;\n L_0x002c:\n r0 = r1;\n goto L_0x0013;\n L_0x002e:\n r3 = r3.f4585a;\n r4 = com.caverock.androidsvg.C0710e.CHILD;\n if (r3 != r4) goto L_0x0039;\n L_0x0034:\n r7 = r7 + -1;\n r9 = r9 + -1;\n goto L_0x0002;\n L_0x0039:\n r2 = com.caverock.androidsvg.C0705a.m4521a(r8, r9, r0);\n if (r2 > 0) goto L_0x0041;\n L_0x003f:\n r0 = r1;\n goto L_0x0013;\n L_0x0041:\n r0 = r0.u;\n r0 = r0.mo1095a();\n r1 = r2 + -1;\n r0 = r0.get(r1);\n r0 = (com.caverock.androidsvg.bk) r0;\n r1 = r7 + -1;\n r0 = com.caverock.androidsvg.C0705a.m4524a(r6, r1, r8, r9, r0);\n goto L_0x0013;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.caverock.androidsvg.a.a(com.caverock.androidsvg.i, int, java.util.List, int):boolean\");\n }", "title": "" }, { "docid": "95c247c8d0f84b06dd8a2413a1ab66b6", "score": "0.44767523", "text": "public Bitmap GetMacAddrBarcodeImage(int nWidth, int nHeight);", "title": "" }, { "docid": "9778431dbe4f2a04ab0f543edb7b288e", "score": "0.44747066", "text": "private void iCodeSLICardLogic(IICodeSLI icodeSLI) {\n icodeSLI.getReader().connect();\n byte[] out = null;\n information_textView.setText(EMPTY_SPACE);\n showImageSnap(R.drawable.icode_p);\n stringBuilder.append(getString(R.string.Card_Detected)).append(\n icodeSLI.getType().getTagName());\n stringBuilder.append(\"\\n\\n\");\n try {\n stringBuilder.append(getString(R.string.UID)).append(\n Utilities.dumpBytes(icodeSLI.getUID()));\n stringBuilder.append(\"\\n\\n\");\n stringBuilder.append(getString(R.string.SIZE)).append(icodeSLI.getTotalMemory());\n stringBuilder.append(\"\\n\\n\");\n if (icodeSLI.isNXP()) {\n stringBuilder.append(getString(R.string.Vendor_ID)).append(getString(R.string.NXP));\n stringBuilder.append(\"\\n\\n\");\n } else {\n stringBuilder.append(getString(R.string.Vendor_ID)).append(\n getString(R.string.NON_NXP));\n stringBuilder.append(\"\\n\\n\");\n }\n stringBuilder.append(getString(R.string.PROTOCOL)).append(getString(\n R.string.PROTOCOL_ICODESLI));\n stringBuilder.append(\"\\n\\n\");\n\n stringBuilder.append(mString.toString());\n stringBuilder.append(\"\\n\\n\");\n\n stringBuilder.append(getString(R.string.Max_Transceive_length)).append(getString(\n R.string.Max_Trans_length_value));\n stringBuilder.append(\"\\n\\n\");\n\n out = icodeSLI.readSingleBlock(ICode.NFCV_FLAG_ADDRESS, DEFAULT_ICode_PAGE);\n } catch (Exception e) {\n stringBuilder.append(UNABLE_TO_READ);\n }\n showMessage(stringBuilder.toString(), PRINT);\n //To save the logs to file \\sdcard\\NxpLogDump\\logdump.xml\n NxpLogUtils.save();\n }", "title": "" }, { "docid": "5bb20c98e543ca7e2068b8018f1d7133", "score": "0.44722867", "text": "public void decode(TagDetection det, long rcode)\n {\n int bestid = -1;\n int besthamming = Integer.MAX_VALUE;\n int bestrotation = 0;\n long bestcode = 0;\n\n long rcodes[] = new long[4];\n\n rcodes[0] = rcode;\n rcodes[1] = rotate90(rcodes[0], d);\n rcodes[2] = rotate90(rcodes[1], d);\n rcodes[3] = rotate90(rcodes[2], d);\n\n for (int id = 0; id < codes.length; id++) {\n\n for (int rot = 0; rot < rcodes.length; rot++) {\n int thishamming = hammingDistance(rcodes[rot], codes[id]);\n if (thishamming < besthamming) {\n besthamming = thishamming;\n bestrotation = rot;\n bestid = id;\n bestcode = codes[id];\n }\n }\n }\n\n det.id = bestid;\n det.hammingDistance = besthamming;\n det.rotation = bestrotation;\n det.good = (det.hammingDistance <= errorRecoveryBits);\n det.obsCode = rcode;\n det.code = bestcode;\n }", "title": "" }, { "docid": "a643fdc261354525f302e6c845f3a2d6", "score": "0.4471355", "text": "public boolean canDecode(String path) {\n return false; //To change body of implemented methods use File | Settings | File Templates.\n }", "title": "" }, { "docid": "d9f774102f76a0ad5a052fc47953dd31", "score": "0.4467644", "text": "void handleScan(String barcodeValue);", "title": "" }, { "docid": "2bb2019a06279dfca867afcd80ee260b", "score": "0.44674218", "text": "private static int[] m116645e(String str) {\n int i;\n Uri parse = Uri.parse(str);\n if (!C7276d.m22812b(parse.getPath())) {\n return null;\n }\n Options options = new Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(parse.getPath(), options);\n int i2 = options.outWidth;\n int i3 = options.outHeight;\n if (i2 > 720 || i3 > 1280) {\n int i4 = i2 >> 1;\n int i5 = i3 >> 1;\n i = 1;\n while (i4 / i > 720 && i5 / i > 1280) {\n i <<= 1;\n }\n } else {\n i = 1;\n }\n return new int[]{i2 >> i, i3 >> i};\n }", "title": "" }, { "docid": "850ea56d3659152fecfbf3ec814d2e0e", "score": "0.44642022", "text": "private void processPreviewFrame(Mat frame) {\n rotateImageForScreen(frame);\n detectRectangleInFrame(frame);\n frame.release();\n mMainActivity.setImageProcessorBusy(false);\n }", "title": "" }, { "docid": "b91a756d3208adb5c09ff46fc48fe1a7", "score": "0.4460398", "text": "public static void convertExcelToPDFWithQRCODE(String excel,String path, String fileName,String qrCodeData,String imageQrCode) throws Exception {\n \tString time = Long.toString(new Date().getTime());\n \tSystem.out.println(time+\" Time, Path \"+path);\n \tString CURRENT_PICTURE_FILE_PATH = path+time+\"tmp.png\";\n String XLSX_FILE_PATH = excel;\n String EXPORTED_FILE_PATH = path+fileName;\n \t\n \tWorkbook workbook = new Workbook(XLSX_FILE_PATH);\n\n\n Document document = new Document(PageSize.A3, 20, 20, 20, 20);\n\n PdfWriter.getInstance(document, new FileOutputStream(EXPORTED_FILE_PATH));\n document.open();\n \n //Create formatter\n DateTimeFormatter FOMATTER = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n \n //Local date instance\n LocalDate localDate = LocalDate.now();\n \n //Get formatted String\n String dateToday = FOMATTER.format(localDate);\n \n \n\n for (int i=0; i < workbook.getWorksheets().getCount();i++) {\n\n document.newPage();\n sheetToImage(workbook.getWorksheets().get(i),CURRENT_PICTURE_FILE_PATH);\n\n File input = new File(CURRENT_PICTURE_FILE_PATH);\n BufferedImage image = ImageIO.read(input);\n\n BufferedImage resized = crop(image, 2080, 3000);\n\n File output = new File(CURRENT_PICTURE_FILE_PATH);\n ImageIO.write(resized, \"png\", output);\n\n Image img = Image.getInstance(CURRENT_PICTURE_FILE_PATH);\n\n\n\n int indentation = 0;\n\n float scaler = ((document.getPageSize().getWidth() - document.leftMargin()\n - document.rightMargin() - indentation) / img.getWidth()) * 100;\n\n img.scalePercent(scaler);\n\n document.add(img);\n\n }\n document.close();\n\n Map<EncodeHintType, ErrorCorrectionLevel> hintMap = new HashMap<EncodeHintType, ErrorCorrectionLevel>();\n hintMap.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.L);\n\n QRCode.createQRCode(qrCodeData,\n \t\timageQrCode, hintMap, 200, 200);\n addImageAndTextToPDFFile(EXPORTED_FILE_PATH,imageQrCode,\"OrbusLink le \"+dateToday );\n }", "title": "" }, { "docid": "587a341e8171a9d68d513321f0e07929", "score": "0.4456575", "text": "String getPimCode();", "title": "" }, { "docid": "6057e85090d961b5ee9b1e03c760eb9f", "score": "0.44527754", "text": "private void mapSignature(@SuppressWarnings (\"unused\") final CrossIndustryDocumentType zugferd, final SignatureType signature) {\n //TODO not supported in ZUGFeRD\n //ebInterface: /Invoice/Signature\n if (signature != null) {\n //TODO - no field in ZUGFeRD for that\n mLog.add(\n \"Signature not mapped to ZUGFeRD: no element in ZUGFeRD\",\n \"/Invoice/Signature\",\n \"???\");\n }\n }", "title": "" }, { "docid": "74573cb0100fb16b378296378af8b531", "score": "0.44495246", "text": "public SignatureCheck getValueCheckCode();", "title": "" }, { "docid": "0aa8ae1a2d016d096814fec0f751952f", "score": "0.44484398", "text": "public static void scanQRCode(ScanResult callback) {\n if (Display.getInstance().getPlatformName().equals(\"and\")) {\n QRScanner.callback = callback;\n NativeScanner nativeScanner = (NativeScanner)NativeLookup.create(NativeScanner.class);\n if (nativeScanner != null && nativeScanner.isSupported()) {\n nativeScanner.scanQRCode();\n } else {\n callback.scanError(404, \"Scanner not supported\");\n }\n \n } else {\n if (CodeScanner.getInstance() != null) {\n CodeScanner.getInstance().scanQRCode(callback);\n }\n }\n }", "title": "" }, { "docid": "a7110fce60c0f8a23d43969fc40d0338", "score": "0.4446897", "text": "@Test void processSquare() {\n\t\tvar result = new BaseDetectFiducialSquare.Result();\n\t\tvar alg = new DetectFiducialSquareHamming<>(config, blackBorderFraction, inputToBinary, squareDetector, GrayU8.class);\n\t\tint markerID = 4;\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tGrayF32 input = create(markerID);\n\n\t\t\tfor (int j = 1; j <= i; j++) {\n\t\t\t\tImageMiscOps.rotateCCW(input.clone(), input);\n\t\t\t}\n\n\t\t\tassertTrue(alg.processSquare(input, result, 0, 255));\n\n//\t\t\tShowImages.showWindow(input, \"Input\");\n//\t\t\tShowImages.showWindow(alg.grayNoBorder, \"NoBorder\");\n//\t\t\tShowImages.showWindow(alg.binaryInner, \"Binary\");\n//\t\t\tBoofMiscOps.sleep(10_000);\n\n\t\t\tassertEquals(markerID, result.which);\n\t\t\tassertEquals(i, result.rotation);\n\t\t}\n\t}", "title": "" }, { "docid": "3d531e8362870681dc5363141ba41a64", "score": "0.4437707", "text": "boolean hasDecoderGaussianSelectionCentroids();", "title": "" }, { "docid": "fc50b8b65d18d442e7fc0bb3d9d9356f", "score": "0.44351533", "text": "private BufferedImage decodeRGBImage(PRStream data) throws IOException {\n\t\t// Check the stream and see if it is DCT or CCIT encoded \n\t\ttry {\n\t\t\tSystem.out.println(\"Try to load image.\"); //$NON-NLS-1$\n\t\t\tImage pdfImg = Image.getInstance(PdfReader.getStreamBytesRaw(data));\n\t\t\tint type = pdfImg.getOriginalType();\n\t\t\tSystem.out.println(\"Type: = \"+ type); //$NON-NLS-1$\n\t\t\tImageInputStream source = new MemoryCacheImageInputStream(new ByteArrayInputStream(PdfReader.getStreamBytesRaw(data)));\n\t\t\tIterator<ImageReader> readers = ImageIO.getImageReaders(source);\n\t\t\tif (readers.hasNext()) {\n\t\t\t\tSystem.out.println(\"found reader\"); //$NON-NLS-1$\n\t\t\t\tImageReader reader = readers.next();\n\t\t\t\treader.setInput(source);\n\t\t\t\tBufferedImage result = reader.read(0);\n\t\t\t\treader.dispose();\n\t\t\t\treturn result;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// Trial and error.\t\n\t\t\tSystem.out.println(\"No reader found.\"); //$NON-NLS-1$\n\t\t}\n\n\t\t// Fall back to raw decoding.\n\t\treturn decodeRawImage(data);\n\t}", "title": "" }, { "docid": "facd895d703ff2c3837150285e7d1161", "score": "0.44348153", "text": "@Override\n public void onBitmapScanned(SparseArray<Barcode> sparseArray) {\n }", "title": "" }, { "docid": "a23c7e664dc7af49e7ea2fdabf9f5c23", "score": "0.44318828", "text": "public void detectionOfProtectionWorthyImageAreas(){\n\t\tthrow new UnsupportedOperationException(\"TODO: auto-generated method stub\");\r\n\t}", "title": "" }, { "docid": "3d5e29f10e33c3ed25f3479985f57cb5", "score": "0.44317698", "text": "CCFIRCode()\n\t{\n\t}", "title": "" }, { "docid": "d24b0bb1eca83b3ebe3d016cf9372765", "score": "0.44315612", "text": "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\t\t\n\t\tif(requestCode == REQUEST_SCAN) {\n\t\t\tBundle extras = data.getExtras();\n\n\t\t\tif (extras != null) {\n\t\t\t\tcapture = extras.getParcelable(CaptureActivity.EXTRA_SCAN_RESULT);\n\t\t\t\tint type = 1;\n\t\t\t\tif (capture != null) {\n\t\t\t\t\ttype = capture.type;\n\t\t\t\t} else {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (type == 1) {\n\t\t\t\t\t// ImageView idcardFullImage = (ImageView)\n\t\t\t\t\t// findViewById(R.id.IDCardFullImage);\n\t\t\t\t\t// idcardFullImage.setImageBitmap(CaptureActivity.IDCardNameImage);\n\t\t\t\t\tImageView faceImg = (ImageView) findViewById(R.id.faceImageView);\n\t\t\t\t\tfaceImg.setImageBitmap(CaptureActivity.IDCardFaceImage);\n\n\t\t\t\t\tnameValue.setText(capture.name);\n\t\t\t\t\trecoResult.name = capture.name;\n\n\t\t\t\t\tsexValue.setText(capture.sex);\n\t\t\t\t\trecoResult.sex = capture.sex;\n\n\t\t\t\t\tnationValue.setText(capture.nation);\n\t\t\t\t\trecoResult.nation = capture.nation;\n\n\t\t\t\t\tbirthdayValue.setText(capture.birth);\n\t\t\t\t\trecoResult.birth = capture.birth;\n\n\t\t\t\t\taddressValue.setText(capture.address);\n\t\t\t\t\trecoResult.address = capture.address;\n\n\t\t\t\t\tcodeValue.setText(capture.cardnum);\n\t\t\t\t\trecoResult.cardnum = capture.cardnum;\n\t\t\t\t\t\n\t\t\t\t\tImageView frontFullImg = (ImageView) findViewById(R.id.frontFullImageView);\t\t\t\n\t\t\t\t\tfrontFullImg.setImageBitmap(CaptureActivity.IDCardFrontFullImage);\n\n\t\t\t\t} else {\n\t\t\t\t\tofficeValue.setText(capture.office);\n\t\t\t\t\trecoResult.office = capture.office;\n\n\t\t\t\t\tvalidDateValue.setText(capture.validdate);\n\t\t\t\t\trecoResult.validdate = capture.validdate;\n\t\t\t\t\t\n\t\t\t\t\tImageView backFullImg = (ImageView) findViewById(R.id.backFullImageView);\n\t\t\t\t\tbackFullImg.setImageBitmap(CaptureActivity.IDCardBackFullImage);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "title": "" }, { "docid": "4066727b3adf34d6b5307fdac754c9aa", "score": "0.4430559", "text": "int getValidCode();", "title": "" }, { "docid": "fb11fd0bb3c6e3b0e319f4dc69491f82", "score": "0.44219032", "text": "private static boolean looksLikeZlib(short cmf_flg) {\n/* 400 */ return ((cmf_flg & 0x7800) == 30720 && cmf_flg % 31 == 0);\n/* */ }", "title": "" }, { "docid": "04eae20ac7b260298a2be15f8ade8f55", "score": "0.44209135", "text": "public static String decode(Bitmap bitmap) {\n if (null != bitmap) {\n long start = System.currentTimeMillis();\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n int[] pixels = new int[width * height];\n bitmap.getPixels(pixels, 0, width, 0, 0, width, height);\n RGBLuminanceSource source = new RGBLuminanceSource(width, height, pixels);\n BinaryBitmap binaryBitmap = new BinaryBitmap(new HybridBinarizer(source));\n MultiFormatReader multiFormatReader = new MultiFormatReader();\n Result rawResult = null;\n try {\n rawResult = multiFormatReader.decode(binaryBitmap, HINTS);\n } catch (ReaderException re) {\n re.printStackTrace();\n } finally {\n multiFormatReader.reset();\n }\n\n if (rawResult != null) {\n long end = System.currentTimeMillis();\n Log.d(TAG, \"Found barcode (\" + (end - start) + \" ms):\\n\" + rawResult.toString());\n return rawResult.toString();\n }\n }\n return null;\n }", "title": "" }, { "docid": "eb5c2a41cd342e4bb821aa461e101d83", "score": "0.44170406", "text": "public static boolean addImageAndTextToPDFFile(String pdfFileName, String imageFileName, String texte) {\n boolean isDone = false;\n PDDocument document = null;\n PDPageContentStream contents = null;\n PDImageXObject pdImage = null;\n //PDImageXObject pdImageheader = null;\n\n try{\n File file = new File(pdfFileName);\n PDDocument doc = PDDocument.load(file);\n\n int pageNumber = doc.getNumberOfPages();\n for (int i = 0; i < pageNumber; i++) {\n //Retrieving the page\n PDPage page = doc.getPage(i);\n\n //Creating PDImageXObject object\n pdImage = PDImageXObject.createFromFile(imageFileName, doc);\n //pdImageheader = PDImageXObject.createFromFile(\"qr_code.png\", doc);\n //creating the PDPageContentStream object\n contents = new PDPageContentStream(doc, page, PDPageContentStream.AppendMode.APPEND, true);\n\n //Debut ajout image\n System.out.println(\"Taille Height : \" + page.getMediaBox().getWidth());\n System.out.println(\"Taille Width : \" + page.getMediaBox().getHeight());\n contents.drawImage(pdImage, (page.getMediaBox().getWidth()-110), 10, 80, 80);\n\n //Fin ajout image\n\n //Debut ajout text\n contents.beginText();\n contents.newLineAtOffset((page.getMediaBox().getWidth()-230), 20);\n contents.setFont(PDType1Font.TIMES_BOLD, 9);\n //contents.showText(\"Numero visa : \");\n\n contents.setFont(PDType1Font.TIMES_ROMAN, 9);\n contents.showText(texte);\n contents.endText();\n //Fin ajout text\n\n //Closing the PDPageContentStream object\n contents.close();\n }\n\n //Saving the document\n doc.save(pdfFileName);\n\n //Closing the document\n doc.close();\n\n isDone = true;\n System.out.println(\"Image inserted\");\n } catch (Exception e){\n System.err.println(\"Erreur insertion image pdf. \" + e);\n } finally {\n try{\n if(document != null){\n document.close();\n }\n if(contents != null){\n contents.close();\n }\n } catch (Exception sqlEx) {\n System.err.println(\"Erreur insertion image pdf finally. \" + sqlEx);\n }\n }\n\n return isDone;\n }", "title": "" }, { "docid": "fdf880e85a99829e310addd33319a47e", "score": "0.44158858", "text": "boolean hasTpmNvram();", "title": "" }, { "docid": "d59359229a1f66f6183076b2032b12fc", "score": "0.4414066", "text": "boolean hasCode();", "title": "" }, { "docid": "d59359229a1f66f6183076b2032b12fc", "score": "0.4414066", "text": "boolean hasCode();", "title": "" }, { "docid": "d59359229a1f66f6183076b2032b12fc", "score": "0.4414066", "text": "boolean hasCode();", "title": "" }, { "docid": "d59359229a1f66f6183076b2032b12fc", "score": "0.4414066", "text": "boolean hasCode();", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "ad31de28329be9ef2f4100b43839e2c4", "score": "0.0", "text": "@Override\n public void onValueDeselected() {\n\n }", "title": "" } ]
[ { "docid": "81005989525ec80103fbaf46f9c37779", "score": "0.6694239", "text": "@Override\n\tpublic void agit() {\n\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "962e2aa1efc1eb9e8f7e2b38da8566b6", "score": "0.6441175", "text": "@Override\r\n\tprotected void method4() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.63254577", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b4764437fc96bd523380203d0a714e9f", "score": "0.63064295", "text": "@Override\r\n\tpublic void calistir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ded15aaeb71ec68606fe2fb94e86fd30", "score": "0.62976253", "text": "@Override\n\tpublic void festlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.622455", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "5cf6e7275cb8d34bdacabdb57b1297ed", "score": "0.61845726", "text": "public void mo74847b() {\n }", "title": "" }, { "docid": "1121ee7f7fb44c1a82d76b74dfca36ce", "score": "0.61822534", "text": "@Override\r\n\tprotected void vivir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "50501dd87f1998a502196290135921d9", "score": "0.61727506", "text": "@Override\r\n\tpublic void bewegeNachUnten() {\n\r\n\t}", "title": "" }, { "docid": "fb712911683b694cdce8a0591533827a", "score": "0.6169982", "text": "public void attaquer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "d782462e898859cd8f1a6e804776230b", "score": "0.6119481", "text": "@Override\n\tpublic void kahvalti() {\n\t\t\n\t}", "title": "" }, { "docid": "5188ca7aad5f258e672f0989f34a3f46", "score": "0.61062694", "text": "public void mo80636c() {\n }", "title": "" }, { "docid": "320da35135786dc4505079f4a9a73c36", "score": "0.6103035", "text": "@Override\r\n\tpublic void preen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "24da068fbc02f8b8b3aa9cab24026941", "score": "0.60865915", "text": "@Override\n\tpublic void atacar() {\n\t\t\n\t}", "title": "" }, { "docid": "06d440269c184993ff4f11d933a81aed", "score": "0.60860294", "text": "public void mo11421d() {\n }", "title": "" }, { "docid": "06d440269c184993ff4f11d933a81aed", "score": "0.60860294", "text": "public void mo11421d() {\n }", "title": "" }, { "docid": "10d92a66c246261fe6e471d744e9a556", "score": "0.6085701", "text": "@Override\n\tpublic void rysuje() {\n\t\t\n\t}", "title": "" }, { "docid": "7c007022c54a0806ff9bd5438ae3e2ec", "score": "0.60739225", "text": "public void mo74769c() {\n }", "title": "" }, { "docid": "6fd2749106ffef4cb03e557457ef432e", "score": "0.60392183", "text": "@Override\n public void alpulsarNO() {\n\n\n }", "title": "" }, { "docid": "df5a58b776d79955ce4bf7e18e9ddfc4", "score": "0.6021335", "text": "public void mo9214a() {\n }", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6017447", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "792350939017ccf304337ff492e7db06", "score": "0.601073", "text": "@Override\n\tpublic void init() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "cc0ab1c285fd2b1a0f1742f44327869d", "score": "0.59759116", "text": "@Override\r\n\tpublic void kasitteleSyote() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ced4b47c7129b2184e6a77b2a8798fd1", "score": "0.5946297", "text": "@Override\n public void annuler() {\n\n }", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59291553", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "3334d3b302fd55029e7bd247c823c639", "score": "0.5911117", "text": "@Override\n\tvoid accerlate() {\n\t\t\n\t}", "title": "" }, { "docid": "3d63ba02955ffee95b4ac1b66c98f160", "score": "0.59105057", "text": "@Override\n protected boolean Rol() {\n return true;\n }", "title": "" }, { "docid": "fee1a18ceca61748f93149cd393850fc", "score": "0.5909857", "text": "public void mo74768d() {\n }", "title": "" }, { "docid": "ba348d037fde33ef982a79632d7adf5e", "score": "0.59073913", "text": "@Override\n\tpublic void bouger()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "c16fc3362f80f1c0559c76bf68be5792", "score": "0.58831", "text": "@Override\n\tpublic void affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "1351a596cfde79c7fcbaa0c0ac90ed14", "score": "0.5865934", "text": "@Override\n public boolean Aapninger() {\n return true;\n }", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "adbbc233cf07504fdedfcdf74afa4901", "score": "0.583616", "text": "@Override\n\tpublic void prnt() {\n\n\t}", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.5831551", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.5831551", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "27e0c12332a0f3b9fe854aa8beb3bad6", "score": "0.5825081", "text": "@Override\n\tpublic void OffersOfTheDay() {\n\t\t\n\t}", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810343", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "79d198822ce7c98fbe391cfdeb33e3f6", "score": "0.58049023", "text": "@Override\r\n\tprotected void acelerar() {\n\r\n\t}", "title": "" }, { "docid": "2d17f675c4797d1489ccbc9d83c3ec33", "score": "0.5801597", "text": "@Override\n\tpublic void umm() {\n\t\t\n\t}", "title": "" }, { "docid": "c9d7a19ad712ece23e6218c1bbd97e1b", "score": "0.57992023", "text": "@Override\n\tpublic void creap() {\n\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "d5b930411834332d013e7e45ca7412e4", "score": "0.57919663", "text": "public void getAadhar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5791661", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6c990ce3c0c4e578d5c2e065a437f8c3", "score": "0.5790907", "text": "public void inverte() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2988fe45f681712faab63cb0e862874c", "score": "0.57805216", "text": "@Override\r\n protected void poDolaczeniu() {\n\r\n }", "title": "" }, { "docid": "3a0aa7f30eee7a869c7fd2960b14db07", "score": "0.5778643", "text": "@Override\n public void destoty() {\n }", "title": "" }, { "docid": "10d40e9b81b4ba39c3ab6d779f3b2692", "score": "0.577812", "text": "public void mo31237c() {\n }", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57740533", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "8843ebe8d692b94536f16d5f07fdff4f", "score": "0.57587487", "text": "@Override\n public void update() {\n // TODO Auto-generated method stub\n }", "title": "" }, { "docid": "c379949c43d334b2a73a78b63ebac3c1", "score": "0.5757493", "text": "@Override public int getAtaque(){\n return 0;\n\n }", "title": "" }, { "docid": "535ccad74dc29933b6b48fea680ba27c", "score": "0.5753717", "text": "@Override\r\n\tpublic void operacion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a65f81fad538053c05dc35d7be360588", "score": "0.5752461", "text": "@Override public int getDefensa(){\n return 0;\n\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c4fa257f1d9c8e55ec00612334f57e8b", "score": "0.5742544", "text": "@Override\n public void init() {\n\t\n }", "title": "" }, { "docid": "691b15fed469ddc176b9c9e6151dea65", "score": "0.5739092", "text": "@Override\n\tpublic void breathes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "a624b89db95eebb0d7e745f8301395c1", "score": "0.57344353", "text": "public void method() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.5732929", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "cadfa07fe44678e9617053752fa5f43d", "score": "0.57283473", "text": "@Override\r\n \tpublic String toString() {\r\n \t\treturn super.toString();\r\n \t}", "title": "" }, { "docid": "c303699d6c9f8d3a2b316125e204825c", "score": "0.57273126", "text": "@Override\n\tpublic void verTop10() {\n\t\t\n\t}", "title": "" }, { "docid": "c74f29111dd26487e1359eb6abdacbec", "score": "0.57206607", "text": "public void mo74767a() {\n }", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "1756ef4d0803e995be285c55c28e3b84", "score": "0.57156587", "text": "@Override\r\n\tpublic void bewegeNachRechts() {\n\r\n\t}", "title": "" }, { "docid": "62af35269754b8acb72204c12f622caf", "score": "0.5703817", "text": "protected void mo1291L() {\n }", "title": "" }, { "docid": "b07546ce140f2f3bb5b718f3bf303b9a", "score": "0.5702189", "text": "public void mo5721a() {\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "94016f621198b25fa3341ef2382c6876", "score": "0.5689651", "text": "@Override\n\tpublic void grandir() {\n\t\t\n\t}", "title": "" }, { "docid": "abb78a58451e05c6ba3dd938b5c036e0", "score": "0.5684533", "text": "@Override\r\n public void usunZarejestrowaneObiekty() {\n\r\n }", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677236", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "02b2c6e51ebb5faf78f05c34c734f88d", "score": "0.5676809", "text": "@Override\n\tprotected void adjust() {\n\t\t\n\t}", "title": "" }, { "docid": "9c052331388a2c5e4c1a01dac5b28c41", "score": "0.56740385", "text": "public void verAssist() {\n\t\t\n\n\t}", "title": "" }, { "docid": "3e2b070c1404c777aafba0cbacea02f1", "score": "0.5663756", "text": "@Override\n\tprotected void initializeData() {\n\t\t\n\t}", "title": "" } ]
f3b008b0e4b66e8c176b4096770a88b9
Calcul la longueur d'une ligne
[ { "docid": "1aa7aa1c907eb52b81e3bd662ecb7795", "score": "0.5722317", "text": "double getLongueur(){\n\t\treturn getDistance();\n\t}", "title": "" } ]
[ { "docid": "551c2137624cd6a90cb98d9abaeb8de5", "score": "0.70241", "text": "public long longueurDeLigne(Line trait){\n long longueur = (long)(Math.sqrt(Math.pow(trait.getEndX()-trait.getStartX(),2)+Math.pow(trait.getEndY()-trait.getStartY(),2)));\n additionneur.set(additionneur.get()+longueur);\n return longueur;\n }", "title": "" }, { "docid": "ef30c994e8d8bad088b5a7a5502fa593", "score": "0.6397025", "text": "public void verLongitud(){\n longitudCalculo(); //llamamos al metodo que calcula el largo de la rampa\n System.out.println(\"Usted tiene \"+numEscalones+\" escalones, cada uno de \"+alturaEscalon+\" cm, para tener una pendiente del \"+pendiente+\" %\");\n System.out.println(\"El valor de la longitud de la rampa es : \"+longitudRampa+\" cm \");\n }", "title": "" }, { "docid": "3a0f2817e171b0f49f626568f4bd2e0a", "score": "0.6364743", "text": "private String getLargeurTotal()\n\t{\n\t\treturn (param.nbCol + 1) * (param.largeurCol + param.espaceInterCol) + \"px\";\n\t}", "title": "" }, { "docid": "04fa997558f57232a59753a210e9f0a1", "score": "0.6309696", "text": "double getLongueurAxe();", "title": "" }, { "docid": "e1eccad0665dfef83149c18d69495ffe", "score": "0.61099124", "text": "public double CalculerPerimetre() {\n\t\treturn longueur*4;\n\t}", "title": "" }, { "docid": "8d0193c5097a135fb127fad735cdb990", "score": "0.6079996", "text": "public long getLoaiTaiLieu();", "title": "" }, { "docid": "f7b75a85e8776f7fd29bae5e5bdf8dde", "score": "0.5917569", "text": "private int getSueldo() {\n return (this.getHoras_trabajadas() * this.getCosto_por_hora()) + this.getCosto_seguro();\n }", "title": "" }, { "docid": "7579c4bcfee019df653496922d09ac32", "score": "0.59123206", "text": "public static int longuitud(int numero) {\n\t\tint n=0;\n\t\t\n\t\twhile(numero != 0) {\n\t\t\tnumero = numero/10;\n\t\t\tn++;\n\t\t}\n\t\treturn n;\n\t}", "title": "" }, { "docid": "c4310725a311a9bee1cd4406286bb0ac", "score": "0.5906199", "text": "public int darLongitud();", "title": "" }, { "docid": "c45be1e2e384bbcaaa8d6ee6a902581b", "score": "0.57917285", "text": "public void calcularSueldoLiquido(){\n int sueldoLiquido = (int)(getSueldoBruto()*0.7923);\n System.out.println(sueldoLiquido);\n }", "title": "" }, { "docid": "82785094f52b1d07dcea6de115e3a956", "score": "0.5782667", "text": "public Integer obtenerPlazoDaminificados();", "title": "" }, { "docid": "70ff6305344c2d1387f3cf8b5d5ca037", "score": "0.5751319", "text": "public double longitud() {\n return Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));\n }", "title": "" }, { "docid": "50882f596f8cf6b5c2ab19db4b125dd5", "score": "0.57291317", "text": "public int nombre_Ligne(String chemin){\n\t\t\tint nl=0;\n\t\t\ttry {\n\t\t\t\tBufferedReader in;\n\t\t\t\tin = new BufferedReader(new FileReader(new File(chemin)));\n\t\t\t\t nl=0;\t\t\t\n\t\t\t\twhile(in.readLine() != null)\n\t\t\t\t\tnl++;\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.out.println(\"Erreur calcule nombre des ligne dans un fichier\");\n\t\t\t}\n\t\t\treturn (nl);\n\t }", "title": "" }, { "docid": "096181a26055b0528b64e79399e9d2d6", "score": "0.56982225", "text": "public String getLinhaDigitavel() {\r\n return \tgetCampo1().substring(0,5) + \".\" + getCampo1().substring(5) + \" \" +\r\n getCampo2().substring(0,5) + \".\" + getCampo2().substring(5) + \" \" +\r\n getCampo3().substring(0,5) + \".\" + getCampo3().substring(5) + \" \" +\r\n getCampo4() + \" \" + getCampo5();\r\n }", "title": "" }, { "docid": "099744adb77c94f8bb725bf775fea578", "score": "0.569346", "text": "private long capturacedula(){\n char cedul = cedula.getText().charAt(2);\n char cedul1 = cedula.getText().charAt(3);\n char cedul2 = cedula.getText().charAt(5);\n char cedul3 = cedula.getText().charAt(6);\n char cedul4 = cedula.getText().charAt(7);\n char cedul5 = cedula.getText().charAt(9);\n char cedul6 = cedula.getText().charAt(10);\n char cedul7 = cedula.getText().charAt(11);\n char data[] = {cedul,cedul1,cedul2,cedul3,cedul4,cedul5,cedul6,cedul7};\n String cedul8 = String.copyValueOf(data);\n long cedulaa = Long.parseLong(cedul8);\n return cedulaa;\n }", "title": "" }, { "docid": "a771ec859ab4e1546044371f79a3f37f", "score": "0.5671707", "text": "private int calculateLength() {\r\n init();\r\n this.R = 0;\r\n this.S = this.length1 + 1;\r\n // iterate for every difference with the first sequence\r\n while (this.S > this.R) {\r\n this.S--;\r\n // fill up R2 up to the first difference using the entire sequences\r\n fillOne(0, this.length1 - 1, 0, this.length2 - 1, this.length1, this.length2, 1);\r\n // copy the content of R2 to R1 up to R\r\n copyUpTo(this.R2, this.R1, this.R);\r\n }\r\n // both R1 and R2 now contain the indexes(+1) of the first sequence that form the LCS\r\n if (DEBUG) {\r\n System.err.println(\"LCS length=\"+this.S);\r\n }\r\n return this.S;\r\n }", "title": "" }, { "docid": "7132f895317ea5d45ac6ec2e042cc113", "score": "0.56679934", "text": "public int getLigne() {\n\t\treturn ligne;\n\t}", "title": "" }, { "docid": "4400554b2d84a2baa7597449af625868", "score": "0.5657331", "text": "public int Rowlen() {\r\n\r\n String root = System.getProperty(\"user.dir\");\r\n String name = \"\\\\size.txt\";\r\n File file = new File(root + \"\\\\Size\" + name);\r\n\r\n /**\r\n * Reads the lines of the large map\r\n */\r\n BufferedReader br = null;\r\n try {\r\n br = new BufferedReader(new FileReader(file));\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"Map not found\");\r\n System.exit(0);\r\n }\r\n\r\n /**\r\n * After reading each line it adds one to 'i' which is later transmitted to 'i1'\r\n */\r\n try {\r\n i1 = 0;\r\n i = 1;\r\n while (br.readLine() != null) {\r\n i1 = i++;\r\n }\r\n } catch (IOException e1) {\r\n } catch (NumberFormatException e2) {\r\n }\r\n return i1;\r\n\r\n }", "title": "" }, { "docid": "47f09b8843587cfea40a18e781fd9d80", "score": "0.5643702", "text": "static int dizaines(long n)\n\t{\n\t\treturn unites(n / 10);\n\t}", "title": "" }, { "docid": "267496f50e97d8a2d45bf8e86c9fc1ac", "score": "0.5605654", "text": "public int longest_length(){\n\t\tint length = 0;\n\t\tArrayList<String> values = new ArrayList<String>();\n\t\tvalues.add(Integer.toString(this.getNumSamples()));\n\t\tvalues.add(Integer.toString(this.getNumRecords()));\n\t\tvalues.add(Integer.toString(this.getNumVars()));\n\t\tvalues.add(Integer.toString(this.getNumSNVs()));\n\t\tvalues.add(Integer.toString(this.getNumMNVs()));\n\t\tvalues.add(Integer.toString(this.getIndelCount()));\n\t\tvalues.add(Integer.toString(this.getInsCount()));\n\t\tvalues.add(Integer.toString(this.getDelCount()));\n\t\tvalues.add(Integer.toString(this.getSmallestIns()));\n\t\tvalues.add(Integer.toString(this.getLargestIns()));\n\t\tvalues.add(UtilityBelt.roundDoubleToString((this.getAvgIns())));\n\t\tvalues.add(Integer.toString(this.getSmallestDel()));\n\t\tvalues.add(Integer.toString(this.getLargestDel()));\n\t\tvalues.add(UtilityBelt.roundDoubleToString((this.getAvgDel())));\n\t\tvalues.add(Integer.toString(this.getNumStructVars()));\n\t\tvalues.add(Integer.toString(this.getNumStructIns()));\n\t\tvalues.add(Integer.toString(this.getNumStructDels()));\n\t\tvalues.add(Integer.toString(this.getNumMultiAlts()));\n\t\tvalues.add(UtilityBelt.roundDoubleToString((this.getGenoTiTv())));\n\t\tvalues.add(UtilityBelt.roundDoubleToString((this.getGenoTiTv())));\n\t\tfor(String s : values){\n\t\t\tif(s.length()>length)\n\t\t\t\tlength = s.length();\n\t\t}\n\t\treturn length;\n\t}", "title": "" }, { "docid": "8755bd974e9d732e7258d962070a653b", "score": "0.5602129", "text": "public int getLongitud() {\r\n return longitud;\r\n }", "title": "" }, { "docid": "f31afd4fd13ddad272398b48d89373d7", "score": "0.5579066", "text": "public int getLeverLine()\n\t{\n\t\treturn leverL;\n\t}", "title": "" }, { "docid": "18b93c22df5ef49e3b2161cf6f94e2e5", "score": "0.55750877", "text": "public static void longitud() {\n System.out.println(\"Hola Mundo\".length());\n }", "title": "" }, { "docid": "2f5a30b94acead399562e833ee89f927", "score": "0.55410737", "text": "long getLongVar3();", "title": "" }, { "docid": "57bb1ccafe1fca705d2f255045b6a98b", "score": "0.55343515", "text": "long getLongVar4();", "title": "" }, { "docid": "498bf986fdf61fed36108777b8a81f9e", "score": "0.553243", "text": "public static long readLong(){\t\r\n\t\tClavier.erreur=false;\r\n\t\tBufferedReader entree = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tlong valeur=0;\r\n\t\tString line=\"\";\r\n\t\r\n\t\ttry{line = entree.readLine();}\r\n\t\tcatch(IOException e){Clavier.erreur=true;}\r\n\t\t\r\n\t\ttry{valeur = Long.parseLong(line);}\r\n\t\tcatch(NumberFormatException e){Clavier.erreur=true;}\r\n\t\t\r\n\t\treturn valeur;\r\n\t}", "title": "" }, { "docid": "9db899773eb4a1365c0ec5c9765deacc", "score": "0.5516304", "text": "private int getSize(long d) {\r\n\t\tint count = 0;\r\n\t\twhile (d != 0) {\r\n\t\t\td /= 10;\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "title": "" }, { "docid": "bc06d16d8b7b7bbf36565e371154198d", "score": "0.5501152", "text": "public double FormulasLongitud(double cant, String tipo1, String tipo2)\r\n {\r\n double unidad = 0;\r\n if(tipo1.equals(\"in\")){\r\n switch (tipo2)\r\n {\r\n case \"cm\":\r\n unidad = cant / 0.39370;\r\n return unidad;\r\n case \"mm\":\r\n unidad = cant / 0.039370;\r\n return unidad;\r\n case \"m\":\r\n unidad = cant / 39.370;\r\n return unidad;\r\n case \"km\":\r\n unidad = cant / 39370;\r\n return unidad;\r\n case \"ft\":\r\n unidad = cant * 0.083333;\r\n return unidad;\r\n case \"milla\":\r\n unidad = cant * 0.000015783;\r\n return unidad;\r\n case \"yd\":\r\n unidad = cant * 0.027778;\r\n return unidad;\r\n }\r\n }\r\n else if(tipo1.equals(\"m\"))\r\n {\r\n switch (tipo2)\r\n {\r\n case \"cm\":\r\n unidad = cant / 0.010000;\r\n return unidad;\r\n case \"in\":\r\n unidad = cant * 39.370;\r\n return unidad;\r\n case \"mm\":\r\n unidad = cant / 0.0010000;\r\n return unidad;\r\n case \"km\":\r\n unidad = cant / 1000;\r\n return unidad;\r\n case \"ft\":\r\n unidad = cant * 3.2808;\r\n return unidad;\r\n case \"milla\":\r\n unidad = cant * 0.00062137;\r\n return unidad;\r\n case \"yd\":\r\n unidad = cant * 1.0936;\r\n return unidad;\r\n }\r\n }\r\n else if(tipo1.equals(\"cm\"))\r\n {\r\n switch (tipo2)\r\n {\r\n case \"mm\":\r\n unidad = cant / 0.10000;\r\n return unidad;\r\n case \"in\":\r\n unidad = cant * 0.39370;\r\n return unidad;\r\n case \"m\":\r\n unidad = cant / 100;\r\n return unidad;\r\n case \"km\":\r\n unidad = cant / 100000;\r\n return unidad;\r\n case \"ft\":\r\n unidad = cant * 0.0032808;\r\n return unidad;\r\n case \"milla\":\r\n unidad = cant * 0.0000062137;\r\n return unidad;\r\n case \"yd\":\r\n unidad = cant * 0.010936;\r\n return unidad;\r\n }\r\n }\r\n else if(tipo1.equals(\"mm\"))\r\n {\r\n switch (tipo2)\r\n {\r\n case \"cm\":\r\n unidad = cant / 10;\r\n return unidad;\r\n case \"in\":\r\n unidad = cant * 0.039370;\r\n return unidad;\r\n case \"m\":\r\n unidad = cant / 1000;\r\n return unidad;\r\n case \"km\":\r\n unidad = cant / 1000000;\r\n return unidad;\r\n case \"ft\":\r\n unidad = cant * 0.0032808;\r\n return unidad;\r\n case \"milla\":\r\n unidad = cant * 0.00000062137;\r\n return unidad;\r\n case \"yd\":\r\n unidad = cant * 0.0010936;\r\n return unidad;\r\n\r\n }\r\n }\r\n else if(tipo1.equals(\"km\"))\r\n {\r\n switch (tipo2)\r\n {\r\n case \"cm\":\r\n unidad = cant / 0.000010000;\r\n return unidad;\r\n case \"in\":\r\n unidad = cant * 39370.08;\r\n return unidad;\r\n case \"m\":\r\n unidad = cant / 0.0010000;\r\n return unidad;\r\n case \"mm\":\r\n unidad = cant / 0.0000010000;\r\n return unidad;\r\n case \"ft\":\r\n unidad = cant * 3280.8;\r\n return unidad;\r\n case \"milla\":\r\n unidad = cant * 0.62137;\r\n return unidad;\r\n case \"yd\":\r\n unidad = cant * 1093.6;\r\n return unidad;\r\n }\r\n }\r\n else if(tipo1.equals(\"ft\"))\r\n {\r\n switch (tipo2)\r\n {\r\n case \"cm\":\r\n unidad = cant / 0.032808;\r\n return unidad;\r\n case \"in\":\r\n unidad = cant * 12.000;\r\n return unidad;\r\n case \"m\":\r\n unidad = cant / 3.2808;\r\n return unidad;\r\n case \"km\":\r\n unidad = cant / 3280.8;\r\n return unidad;\r\n case \"mm\":\r\n unidad = cant / 0.0032808;\r\n return unidad;\r\n case \"milla\":\r\n unidad = cant * 0.00018939;\r\n return unidad;\r\n case \"yd\":\r\n unidad = cant * 0.33333;\r\n return unidad;\r\n }\r\n }\r\n else if(tipo1.equals(\"yd\"))\r\n {\r\n switch (tipo2)\r\n {\r\n case \"cm\":\r\n unidad = cant / 0.010936;\r\n return unidad;\r\n case \"in\":\r\n unidad = cant * 36.000;\r\n return unidad;\r\n case \"m\":\r\n unidad = cant / 1.0936;\r\n return unidad;\r\n case \"km\":\r\n unidad = cant / 1093.6;\r\n return unidad;\r\n case \"ft\":\r\n unidad = cant * 3.0000;\r\n return unidad;\r\n case \"milla\":\r\n unidad = cant * 0.00056818;\r\n return unidad;\r\n case \"mm\":\r\n unidad = cant / 0.0010936;\r\n return unidad;\r\n }\r\n }\r\n else if(tipo1.equals(\"milla\"))\r\n {\r\n switch (tipo2)\r\n {\r\n case \"cm\":\r\n unidad = cant / 0.0000062137;\r\n return unidad;\r\n case \"in\":\r\n unidad = cant * 63360;\r\n return unidad;\r\n case \"m\":\r\n unidad = cant / 0.00062137;\r\n return unidad;\r\n case \"km\":\r\n unidad = cant / 0.62137;\r\n return unidad;\r\n case \"ft\":\r\n unidad = cant * 5280.0;\r\n return unidad;\r\n case \"mm\":\r\n unidad = cant / 0.00000062137;\r\n return unidad;\r\n case \"yd\":\r\n unidad = cant * 1760.0;\r\n return unidad;\r\n }\r\n }\r\n return 0;\r\n }", "title": "" }, { "docid": "6befc364dd609402de48d803db26f203", "score": "0.54967964", "text": "public int lireArrivageMarche(Travian t, Village village, int typeRessourceALire, int dureeRestanteAvantArriveeLimite, int sens) {\n\t\n\t\tString ressourceString=\"Aucun arrivage\";\n\t\n\t\tString sensString = \"\";\n\t\tString EnArrivage = \"Transport vers\";\n\t\tString EnSortie = \"Transport de\";\n\t\tif(sens == 0) {\n\t\t\tsensString = EnArrivage;\n\t\t}else {\n\t\t\tsensString = EnSortie;\n\t\t}\n\t\tint arrivageInt = 0;\n\t\ttry {\n\t\t// typeRessourceALire : 0 bois 1 argile 2 Fer 3 cereale\n\t\t// lire arrivage\n\t\tList<WebElement> listeMarchandsArrivants = t.getCompte().getDriver().findElements(By.xpath(\"//*[@id=\\\"merchantsOnTheWay\\\"]/table\"));\n\t\n\t\tfor(WebElement arrivage : listeMarchandsArrivants) {\n\t\t\tint dureeRestanteAvantArrivage = Integer.parseInt(arrivage.findElement(By.xpath(\"./tbody/tr[1]/td/div[1]/span\")).getText().replaceAll(\":\", \"\"));\n\t\t\tif(!arrivage.getText().contains(sensString) && dureeRestanteAvantArrivage < dureeRestanteAvantArriveeLimite) { //TODO trouver un meilleur systeme 4500 = 45 minutes 0 seconde \n\t\t\t\tarrivageInt = arrivageInt + Integer.parseInt(arrivage.findElement(By.xpath(\"./tbody/tr[2]/td/span[1]\")).getText().split(\"\\\\n\")[typeRessourceALire].trim()); \n\t\t\t}\n\n\t\t\t//./tbody/tr[2]/td/span/text()[5]\n\n\t\t\tif(typeRessourceALire == 0) {ressourceString = \"Bois\";}\n\t\t\tif(typeRessourceALire == 1) {ressourceString = \"Argile\";}\n\t\t\tif(typeRessourceALire == 2) {ressourceString = \"Fer\";}\n\t\t\tif(typeRessourceALire == 3) {ressourceString = \"Cereales\";}\n\n\t\t}\t\n\t\tt.ecrireDansConsole(\"[Marché] lire marché : \" + ressourceString + \" : \"+ arrivageInt +\"\" , true);\n\t} catch(Exception e) {\n\t\tt.ecrireDansConsole(\"[Marché] echec lireArrivageMarche\" , true);\n\t\n\t}\n\t\treturn arrivageInt;\n\t\t\n\t\n\t}", "title": "" }, { "docid": "d71f25c208ea8f4e0e4364e0841c4c4a", "score": "0.5495038", "text": "public int precioCompraMejora(){\n return mejoras[nivel].precio;\n }", "title": "" }, { "docid": "ec4857d9c7e7e56542de529477053019", "score": "0.54830664", "text": "long getLong(int columnIndex);", "title": "" }, { "docid": "002df2359f58484296c6c779edef2887", "score": "0.54780304", "text": "private static int getSize(long d) {\n\t\tint numOfD=0;\n\t\twhile(d>0){\n\t\t\td/=10;\n\t\t\tnumOfD++;\n\t\t}\n\t\t\n\t\treturn numOfD;\n\t}", "title": "" }, { "docid": "4de965c789acdabadffc4202f8aa56d7", "score": "0.5473298", "text": "public double getLongitud() {\n return longitud;\n }", "title": "" }, { "docid": "3a913d8ede119352fcb6df0df7606880", "score": "0.5470202", "text": "public int getLargeur() {\r\n\t\treturn this.largeur;\r\n\t}", "title": "" }, { "docid": "aac330ce8e9f22497dcc0538a26de52a", "score": "0.5469844", "text": "public int getMaxLado() {\n return MAXIMO_LADO;\n }", "title": "" }, { "docid": "4efdec3138ab08f21eaa158b71f0bffc", "score": "0.5467195", "text": "public int Liters(double time) {\n return (int)(time*0.5);\n\n }", "title": "" }, { "docid": "f8489c3599750e2ca931c6eb2f6df627", "score": "0.5464489", "text": "long getLongVar5();", "title": "" }, { "docid": "fbb8b24181f89694e957503f514e38f4", "score": "0.5444859", "text": "public int obtenerLlamadasAtendidas() {\n\t\treturn llamadasAtendidas;\n\t}", "title": "" }, { "docid": "3ffdcf22e01fa2adaca0c6121da300cf", "score": "0.5444397", "text": "int getValLong();", "title": "" }, { "docid": "ee3982250b167133b3bf8c0aee2868c1", "score": "0.54393786", "text": "long getCeiling();", "title": "" }, { "docid": "ab94ebc1e4337d2128b1d98705e1b96a", "score": "0.54279226", "text": "long getEvenMoreValue();", "title": "" }, { "docid": "ab94ebc1e4337d2128b1d98705e1b96a", "score": "0.54279226", "text": "long getEvenMoreValue();", "title": "" }, { "docid": "d45180401bba3fee84f68a53d741d6b1", "score": "0.5425217", "text": "long getLongVar2();", "title": "" }, { "docid": "7d20166acd05b81b8d3564913d17a419", "score": "0.5419195", "text": "public int longitudDeCabecera() {\n\n return this.longitudCabecera;\n }", "title": "" }, { "docid": "3ab557e8f29b81c30a6df2c2f3dddbee", "score": "0.5411464", "text": "public int getLinea() {\n return linia;\n }", "title": "" }, { "docid": "6220d0b8078262b6166d5ed299d43580", "score": "0.5403926", "text": "public static double longitudDeVector(final Matriz entrada) {\n\t\tif (!entrada.esVector()) {\n\t\t\tthrow new ErrorDeMatriz(\n\t\t\t\t\t\"Puede solo tomar la longitud de un vector\");\n\t\t}\n\t\tfinal Double v[] = entrada.aArregloPlano();\n\t\tdouble rtn = 0.0;\n\t\tfor (int i = 0; i < v.length; i++) {\n\t\t\trtn += Math.pow(v[i], 2);\n\t\t}\n\t\treturn Math.sqrt(rtn);\n\t}", "title": "" }, { "docid": "05fe0a26a055d404c953ed139911304b", "score": "0.53947616", "text": "long getLongValue();", "title": "" }, { "docid": "1a518c97b88ad32168098c74c0e37c80", "score": "0.5393725", "text": "public short getLine_number_table_length() { return line_number_table_length; }", "title": "" }, { "docid": "e97474641c27d206fb8612c57666e2e1", "score": "0.5391703", "text": "@Override\n public String getResult()\n {\n long startNumber = 138902663L; //sqrt(19293949596979899)\n long square = startNumber * startNumber;\n while (! this.matchesPattern(square)) {\n startNumber -= 2;\n square = startNumber * startNumber;\n }\n\n startNumber *= 10;\n\n return Long.toString(startNumber);\n }", "title": "" }, { "docid": "29e39f32463c04a53116e01a3cb2275d", "score": "0.5389102", "text": "public int longitudDatosMensaje() {\n\n return this.bytesMensaje.length - this.longitudCabecera;\n }", "title": "" }, { "docid": "1dd1a7941ed7c8f5c2d661818ea65631", "score": "0.5379458", "text": "long getValue();", "title": "" }, { "docid": "1dd1a7941ed7c8f5c2d661818ea65631", "score": "0.5379458", "text": "long getValue();", "title": "" }, { "docid": "1dd1a7941ed7c8f5c2d661818ea65631", "score": "0.5379458", "text": "long getValue();", "title": "" }, { "docid": "3bd8ba24d96e5e0823e178d04918b491", "score": "0.5377258", "text": "public int getMaximumRow()\n {\n // 32 stations per degree of latitude limited to 50 degrees lat\n return 32 * 50 - 767;\n }", "title": "" }, { "docid": "3c0a6993193899806c19a6ebafddad9f", "score": "0.53617144", "text": "private int getLongestWordLength(Word c) {\n\t\r\n\t}", "title": "" }, { "docid": "2fc270221bfd038fb80cf43ab023c104", "score": "0.5336218", "text": "public int mo13207kR() {\n return getInteger(\"card_total_steps\");\n }", "title": "" }, { "docid": "a482ee8e5cc23812f83560b7dba06e73", "score": "0.5333323", "text": "long getTotal();", "title": "" }, { "docid": "a482ee8e5cc23812f83560b7dba06e73", "score": "0.5333323", "text": "long getTotal();", "title": "" }, { "docid": "24b461b553652bfa29708b47c0295bec", "score": "0.5333203", "text": "long getLongField();", "title": "" }, { "docid": "c2245023244f6b9766c6f3be8565cf6f", "score": "0.5325334", "text": "private int taille(NodeList liste){\n\t\ttry{ \n\t\t\treturn Math.round(liste.item(0).getChildNodes().getLength()/2);\n\t\t}\n\t\tcatch(NullPointerException e){\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "8f32a4a11e45a80b0887f9870846c042", "score": "0.5324021", "text": "public long longValue() {\r\n return moduloValue().longValue();\r\n }", "title": "" }, { "docid": "9578e5f32d9d08775bbe6ccf0d58017a", "score": "0.53213936", "text": "double calculateLength();", "title": "" }, { "docid": "457303df0d91214b55eccb6a61bc00ac", "score": "0.5315382", "text": "public double getLonDPP(double ULLON, double LRLON, double width) {\n return (LRLON - ULLON) / width;\n }", "title": "" }, { "docid": "5947eaea88c9edb2102b8b0d56758417", "score": "0.5314909", "text": "long getLong();", "title": "" }, { "docid": "5947eaea88c9edb2102b8b0d56758417", "score": "0.5314909", "text": "long getLong();", "title": "" }, { "docid": "4104dc5eabe90e56bb0daae9a54de4ef", "score": "0.5313173", "text": "static long getLong(Cursor cursor, String string, long l) {\n long l2;\n int n = cursor.getColumnIndex(string);\n if (n < 0 || (l2 = cursor.getLong(n)) == -1) {\n return -1;\n }\n return l2 * l;\n }", "title": "" }, { "docid": "57c69e93973bcc705719daf1995117a7", "score": "0.5305443", "text": "@Data(size=4, value=\"0065\")\n IString altLimLdn() ;", "title": "" }, { "docid": "4e63696851f8b6215ec2a3d01a6797d7", "score": "0.5302945", "text": "public static int tira()\r\n\t\t{\r\n\t\t\treturn tira(6); // por defecto un dado de 6 caras\r\n\t\t}", "title": "" }, { "docid": "2b80b844bf41b7858386542e7103a120", "score": "0.530214", "text": "public LatLong getLatLong(int row)\n {\n return tableModel.getLatLong(row);\n }", "title": "" }, { "docid": "97a7f8048ed1466adbc60c05b75855f1", "score": "0.5300025", "text": "private int eval(Plateau plateau) {\r\n\t\tif (plateau.estGagne(JOUEUR)) {\r\n\t\t\treturn -INFINI;\r\n\t\t} else if (plateau.estGagne(PROG)) {\r\n\t\t\treturn INFINI;\r\n\t\t} else {\r\n\t\t\t\tint points = 0, // nb de point de l'évaluation accumulés\r\n\t\tl, // ligne\r\n\t\tc, // colonne\r\n\t\tliberte, // dégré liberté, ie nb de extrémités non bloquées\r\n\t\tnb, // nb de pions d'un même joueur alignés\r\n\tqui; // valeur du dernier pion : PROG ou JOUEUR \r\n\t\t\tint[][] t = plateau.getT();\r\n\t\t\t// Vertical\r\n\t\t\tfor (l = 0; l < plateau.getNbLig(); l++) {\r\n\t\t\t\tc = 0;\r\n\t\t\t\t;\r\n\t\t\t\tliberte = 0;\r\n\t\t\t\tnb = 1;\r\n\t\t\t\tqui = t[l][c];\r\n\t\t\t\tif (qui == Puis4.VIDE)\r\n\t\t\t\t\tcontinue; // colonne vide\r\n\t\t\t\tc++;\r\n\t\t\t\twhile (c < plateau.getNbCol() && t[l][c] != Puis4.VIDE) {\r\n\t\t\t\t\tif (qui == t[l][c]) {\r\n\t\t\t\t\t\tnb++;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tqui = t[l][c];\r\n\t\t\t\t\t\tnb = 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tc++;\r\n\t\t\t\t}\r\n\t\t\t\tif (c < plateau.getNbCol()) {\r\n\t\t\t\t\tpoints = points + sequence(nb, qui, 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/*******************************/\r\n\t\t\t// Horizontale\r\n\t\t\tfor (c = 0; c < plateau.getNbCol(); c++) {\r\n\t\t\t\tl = 0;\r\n\t\t\t\t;\r\n\t\t\t\tliberte = 0;\r\n\t\t\t\tnb = 0;\r\n\t\t\t\tqui = Puis4.VIDE;\r\n\t\t\t\twhile (l < plateau.getNbLig()) {\r\n\t\t\t\t\tif (qui != Puis4.VIDE\r\n\t\t\t\t\t\t&& t[l][c] == Puis4.VIDE) { // on comptabilise la sequence\r\n\t\t\t\t\t\tpoints = points + sequence(nb, qui, liberte + 1);\r\n\t\t\t\t\t\tqui = t[l][c];\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tqui == Puis4.VIDE\r\n\t\t\t\t\t\t\t&& t[l][c] != Puis4.VIDE) { // on commence une seq\r\n\t\t\t\t\t\tnb = 1;\r\n\t\t\t\t\t\tif (l > 0)\r\n\t\t\t\t\t\t\tliberte = 1;\r\n\t\t\t\t\t\tqui = t[l][c];\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tqui != Puis4.VIDE\r\n\t\t\t\t\t\t\t&& t[l][c] != Puis4.VIDE\r\n\t\t\t\t\t\t\t&& qui == t[l][c]) {\r\n\t\t\t\t\t\tnb++; // on incremente la séquence\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tqui != Puis4.VIDE\r\n\t\t\t\t\t\t\t&& t[l][c] != Puis4.VIDE\r\n\t\t\t\t\t\t\t&& qui != t[l][c]) {\r\n\t\t\t\t\t\t// changement de séquence, on comptabilise\r\n\t\t\t\t\t\tpoints = points + sequence(nb, qui, liberte);\r\n\t\t\t\t\t\tliberte = 0;\r\n\t\t\t\t\t\tqui = t[l][c];\r\n\t\t\t\t\t\tnb = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tl++;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\t/*******************************/\r\n\t\t\t// Diagonale 1\r\n\r\n\t\t\t// on commence par la diag \"intéressante\" la plus àgauche\r\n\t\t\tint ligne = 0;\r\n\t\t\tint colonne = plateau.getNbCol() - 4;\r\n\t\t\twhile (ligne < plateau.getNbLig() - 3) {\r\n\t\t\t\tl = ligne;\r\n\t\t\t\tc = colonne;\r\n\t\t\t\tliberte = 0;\r\n\t\t\t\tnb = 0;\r\n\t\t\t\tqui = Puis4.VIDE;\r\n\t\t\t\twhile (l < plateau.getNbLig() && c < plateau.getNbCol()) {\r\n\t\t\t\t\tif (qui != Puis4.VIDE\r\n\t\t\t\t\t\t&& t[l][c] == Puis4.VIDE) { // on comptabilise la sequence\r\n\t\t\t\t\t\tpoints = points + sequence(nb, qui, liberte + 1);\r\n\t\t\t\t\t\tqui = t[l][c];\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tqui == Puis4.VIDE\r\n\t\t\t\t\t\t\t&& t[l][c] != Puis4.VIDE) { // on commence une seq\r\n\t\t\t\t\t\tnb = 1;\r\n\t\t\t\t\t\tif (l > 0)\r\n\t\t\t\t\t\t\tliberte = 1;\r\n\t\t\t\t\t\tqui = t[l][c];\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tqui != Puis4.VIDE\r\n\t\t\t\t\t\t\t&& t[l][c] != Puis4.VIDE\r\n\t\t\t\t\t\t\t&& qui == t[l][c]) {\r\n\t\t\t\t\t\tnb++; // on incremente la séquence\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tqui != Puis4.VIDE\r\n\t\t\t\t\t\t\t&& t[l][c] != Puis4.VIDE\r\n\t\t\t\t\t\t\t&& qui != t[l][c]) {\r\n\t\t\t\t\t\t// changement de séquence, on comptabilise\r\n\t\t\t\t\t\tpoints = points + sequence(nb, qui, liberte);\r\n\t\t\t\t\t\tliberte = 0;\r\n\t\t\t\t\t\tqui = t[l][c];\r\n\t\t\t\t\t\tnb = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tl++;\r\n\t\t\t\t\tc++;\r\n\t\t\t\t}\r\n\t\t\t\tcolonne--;\r\n\t\t\t\tif (colonne < 0) {\r\n\t\t\t\t\tcolonne = 0;\r\n\t\t\t\t\tligne++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/*******************************/\r\n\t\t\t// Diagonale 2\r\n\r\n\t\t\t// on commence par la diag \"intéressante\" la plus à gauche\r\n\t\t\tligne = 3;\r\n\t\t\tcolonne = 0;\r\n\t\t\twhile (colonne < plateau.getNbCol() - 3) {\r\n\t\t\t\tl = ligne;\r\n\t\t\t\tc = colonne;\r\n\t\t\t\tliberte = 0;\r\n\t\t\t\tnb = 0;\r\n\t\t\t\tqui = Puis4.VIDE;\r\n\t\t\t\twhile (l >= 0 && c < plateau.getNbCol()) {\r\n\t\t\t\t\tif (qui != Puis4.VIDE\r\n\t\t\t\t\t\t&& t[l][c] == Puis4.VIDE) { // on comptabilise la sequence\r\n\t\t\t\t\t\tpoints = points + sequence(nb, qui, liberte + 1);\r\n\t\t\t\t\t\tqui = t[l][c];\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tqui == Puis4.VIDE\r\n\t\t\t\t\t\t\t&& t[l][c] != Puis4.VIDE) { // on commence une seq\r\n\t\t\t\t\t\tnb = 1;\r\n\t\t\t\t\t\tif (l > 0)\r\n\t\t\t\t\t\t\tliberte = 1;\r\n\t\t\t\t\t\tqui = t[l][c];\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tqui != Puis4.VIDE\r\n\t\t\t\t\t\t\t&& t[l][c] != Puis4.VIDE\r\n\t\t\t\t\t\t\t&& qui == t[l][c]) {\r\n\t\t\t\t\t\tnb++; // on incremente la séquence\r\n\t\t\t\t\t} else if (\r\n\t\t\t\t\t\tqui != Puis4.VIDE\r\n\t\t\t\t\t\t\t&& t[l][c] != Puis4.VIDE\r\n\t\t\t\t\t\t\t&& qui != t[l][c]) {\r\n\t\t\t\t\t\t// changement de séquence, on comptabilise\r\n\t\t\t\t\t\tpoints = points + sequence(nb, qui, liberte);\r\n\t\t\t\t\t\tliberte = 0;\r\n\t\t\t\t\t\tqui = t[l][c];\r\n\t\t\t\t\t\tnb = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tl--;\r\n\t\t\t\t\tc++;\r\n\t\t\t\t}\r\n\t\t\t\tligne++;\r\n\t\t\t\tif (ligne >= plateau.getNbLig()) {\r\n\t\t\t\t\tcolonne++;\r\n\t\t\t\t\tligne = plateau.getNbLig() - 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn points;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8e9c169bb1c4d19f9b06f4c9c7a5af7c", "score": "0.52945983", "text": "public static int CalcularNumero(String linea) {\r\n int numero = 0;\r\n int multiplicador = 0;\r\n\r\n for (int i = linea.length() - 1; i >= 0; i--) {\r\n numero += Character.getNumericValue(linea.charAt(i)) * Math.pow(10, multiplicador);\r\n multiplicador++;\r\n }\r\n return numero;\r\n }", "title": "" }, { "docid": "f34cf108983648a701bfe8f88e7146f5", "score": "0.52932847", "text": "public static long datoLong()\r\n {\r\n try\r\n {\r\n return Long.parseLong(dato());\r\n }\r\n catch(NumberFormatException e)\r\n {\r\n return Long.MIN_VALUE; // valor m�s peque�o\r\n }\r\n }", "title": "" }, { "docid": "e27eddf6f93e475cca645bd850a0701e", "score": "0.5288806", "text": "public int tamano() {\n return this.uidStudent.length() *2+ this.serieMaterial.length() *2 + this.date.length() * 2 + this.date2.length() * 2;\n }", "title": "" }, { "docid": "c3aabca440b93191c71dd25a31500d01", "score": "0.52795666", "text": "public long getAt_cleunik() {\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n return at_cleunik;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "44c4ff7d72aa3c87a5ead47e38ff1229", "score": "0.5270135", "text": "public int trouverLigne(int [] tableauPermute,int nbColonnes, int position){\r\n\t\treturn (int)(tableauPermute[position]/(nbColonnes+1));\r\n\t}", "title": "" }, { "docid": "cd9b65d118fd01bdc21be602e80651ea", "score": "0.52671033", "text": "public double CalculerSurface() {\n\t\treturn Math.pow(longueur, 2);\n\t}", "title": "" }, { "docid": "02a7d8a307cef82d7bf29ad0226dbe76", "score": "0.5264787", "text": "@Override\r\n public int longueur() {\r\n return nbrElements;\r\n }", "title": "" }, { "docid": "f8ccc39eef4c5454c054cc5c70f0e758", "score": "0.52590543", "text": "public long extract_longlong(){\n //debug.log (\"extract_longlong\");\n checkExtractBadOperation(TCKind._tk_longlong);\n return value;\n }", "title": "" }, { "docid": "532b027d511e7f22785d0e2e2a715ec8", "score": "0.5257784", "text": "public int[] traiterPrix(String uneLigne) throws IOException {\r\n\t\tuneLigne = uneLigne.replaceAll(\"\\n\", \"\");\r\n\t\tString[] tokens = uneLigne.split(\";\");\r\n\t\tint[] tabPrix = {Integer.parseInt(tokens[1]),Integer.parseInt(tokens[2]),Integer.parseInt(tokens[3]),Integer.parseInt(tokens[4]),Integer.parseInt(tokens[5])};\r\n\t\treturn tabPrix;\r\n\r\n\t}", "title": "" }, { "docid": "78e8412d7c24fdf64f200f7acc26169d", "score": "0.5253981", "text": "private static float calculerLeRabais() {\n float rabais;\n Inscription inscription = Inscription.getInstance();\n if(inscription.getListePersonnes().size() >= 15 && inscription.getListePersonnes().size() <= 30)\n rabais = 10;\n else if(inscription.getListePersonnes().size() >= 31)\n rabais = 15;\n else\n rabais = 0;\n return rabais;\n }", "title": "" }, { "docid": "6220d9546d2be0ce03f39f1a172daf4b", "score": "0.5245457", "text": "long mo23360a(long j);", "title": "" }, { "docid": "5b5305080591d4a91b9eb8334249a857", "score": "0.5242433", "text": "public int numeroDeLados();", "title": "" }, { "docid": "d506a5eab12124c3d95c78b85d6a88f5", "score": "0.5240398", "text": "float getLargeur();", "title": "" }, { "docid": "e49c0125d9e007bd8778966627a9feda", "score": "0.5236985", "text": "public long getLong(String campo)\tthrows RelatorioException\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn this.result.getLong(campo);\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\tthrow new RelatorioException(\"Excecao SQL: \" + e);\n\t\t}\n\t}", "title": "" }, { "docid": "fa5e866293919c37f5a908e8260acc45", "score": "0.52319765", "text": "long getMaximum();", "title": "" }, { "docid": "5fb81f05dd2fd126c01b8c3489428146", "score": "0.5230334", "text": "public long getLong(String columnLabel)\r\n/* 251: */ throws InvalidResultSetAccessException\r\n/* 252: */ {\r\n/* 253:319 */ return getLong(findColumn(columnLabel));\r\n/* 254: */ }", "title": "" }, { "docid": "b72daca25e5f901b6f5759d492042ba7", "score": "0.5227827", "text": "static long longestSequence(long[] aary) {\n long result=0;\n //Generate sieves up to 10^6(N<10^12).\n int maxnum = (int)Math.pow(10,6);\n primecnt = 0;\n primes = new long[maxnum];\n boolean[] isPrime = new boolean[maxnum];\n for(int i=0;i<maxnum;i++){\n isPrime[i] = true;\n }\n isPrime[0] = false;\n isPrime[1] = false;\n for(long j=2;j<maxnum;j++){\n if(isPrime[(int)j]){\n primes[primecnt++] = j;\n for(long k=2*j;k<maxnum;k+=j){\n isPrime[(int)k] = false;\n }\n }\n }\n \n //Calcurate result. \n for(long a:aary){\n List<Long> divs = divisors(a);\n long sticks = 1;\n result+=sticks;\n for(int i=divs.size()-1;i>=0;i--){\n sticks*=divs.get(i);\n result += sticks;\n }\n }\n return result;\n }", "title": "" }, { "docid": "b067bf2da52a50447892c3c8c5fda56e", "score": "0.52275443", "text": "public long getLong() {\n return getLong(8);\n }", "title": "" }, { "docid": "cb3a48c41b6e52663015a338a4268c74", "score": "0.5223369", "text": "long getLongVar1();", "title": "" }, { "docid": "856d5ce48c347be41f503edc4c96dbf1", "score": "0.52189296", "text": "public long getNguoiTao();", "title": "" }, { "docid": "7fd3392ec5b92e06bed4026e52733b68", "score": "0.52072614", "text": "public int obtenerCantidadRam() {\n return cantidadRam;\n }", "title": "" }, { "docid": "73f60f0e7b7f5dbf13c7990175644a0c", "score": "0.520322", "text": "long getSum();", "title": "" }, { "docid": "053776a89ba09aab687315ab18615bd1", "score": "0.5201392", "text": "int tamanho(){\n return(this.topopilha+1);\n }", "title": "" }, { "docid": "8203e90fb3d8312a9650bb466f671e89", "score": "0.5200725", "text": "public int[] traiterCommande(String uneLigne) { // mettre en param�tre la ligne r�cup�rer du main\r\n\t\tuneLigne = uneLigne.replaceAll(\"\\n\", \"\");\r\n\t\tString[] tokens = uneLigne.split(\";\");\r\n\t\tint[] tabcommande = {Integer.parseInt(tokens[2]),Integer.parseInt(tokens[3]),Integer.parseInt(tokens[4]),Integer.parseInt(tokens[5]),Integer.parseInt(tokens[6])};\r\n\t\treturn tabcommande;\r\n\t}", "title": "" }, { "docid": "1ec1b5792e3405a0bda35f526ac833db", "score": "0.518456", "text": "private long vratiLongDatumKraja(String krajDatumPreuzimanja) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n Date parsed;\n try {\n parsed = dateFormat.parse(krajDatumPreuzimanja);\n java.sql.Date date = new java.sql.Date(parsed.getTime());\n return date.getTime() / 1000;\n } catch (ParseException ex) {\n System.out.println(ex.getMessage());\n }\n return 0;\n }", "title": "" }, { "docid": "eeafb64a05258cc4a2ad37746ede3636", "score": "0.51844877", "text": "float getHorizontalLaneHeight(PdfArea area);", "title": "" }, { "docid": "ba086600a69bfc8173e78f75914e9421", "score": "0.518088", "text": "public int Resta() {\r\n return this.resultado = this.num1 - this.num2;\r\n }", "title": "" }, { "docid": "9ea0b66e690a37464f843bda533fa9c9", "score": "0.5179209", "text": "long mo10275a();", "title": "" }, { "docid": "20cdefcaface148041c2abb10f4fd76e", "score": "0.517357", "text": "@Override\r\n public double calcularNomina(){\r\n double base=super.calcularNomina(); //se puede usar la primera implementacion \r\n return base + (this.horas*this.precioHora);\r\n \r\n }", "title": "" }, { "docid": "6c0490c2c96f07068bfd4b0b422d0cb0", "score": "0.5172009", "text": "long getMinimum();", "title": "" } ]
8f501edd080d31ad4a822340cce4f38e
Auto generated getter method
[ { "docid": "9dbc4fc4bcaebf3c064acaa9f1224c6e", "score": "0.0", "text": "public Auth getIdentity(){\r\n return localIdentity;\r\n }", "title": "" } ]
[ { "docid": "4b847f28313d4968410f629d805ed421", "score": "0.75256884", "text": "public abstract String get();", "title": "" }, { "docid": "4b847f28313d4968410f629d805ed421", "score": "0.75256884", "text": "public abstract String get();", "title": "" }, { "docid": "cae7dd0c3ea172c79f53946f56f87dc3", "score": "0.74160093", "text": "Object get();", "title": "" }, { "docid": "cae7dd0c3ea172c79f53946f56f87dc3", "score": "0.74160093", "text": "Object get();", "title": "" }, { "docid": "610c74e75979d29cb220760d6ee09e78", "score": "0.72630745", "text": "public void get() {\r\n\r\n }", "title": "" }, { "docid": "5208c5a1589f91c10be5dd0c0c08671d", "score": "0.7176215", "text": "public T get();", "title": "" }, { "docid": "0c22ae34ad82b7f92719e27b02bddd5a", "score": "0.7073213", "text": "public final T get() {\n }", "title": "" }, { "docid": "13b66ccb775b214c40f4ec7e6ee5d856", "score": "0.70470655", "text": "public Object get()\n { return read(); }", "title": "" }, { "docid": "7a8dc5f2a5bf173fe9d71979e2e2883a", "score": "0.6861372", "text": "public T get() {\n return value;\n }", "title": "" }, { "docid": "98fa4f5ab2d18cf3188ae3521985771b", "score": "0.68596363", "text": "public Object get() {\n return value;\n }", "title": "" }, { "docid": "3ca9fba7542cfea65b93b00be0236c9b", "score": "0.68418556", "text": "@CanIgnoreReturnValue\n T get();", "title": "" }, { "docid": "56070bcc16283d196b8651cc113773df", "score": "0.67505336", "text": "public Vehiculo getVehiculo()\r\n/* 756: */ {\r\n/* 757:909 */ return this.vehiculo;\r\n/* 758: */ }", "title": "" }, { "docid": "d87b88775c224e6a7c95cc7215218d9b", "score": "0.6746774", "text": "T get();", "title": "" }, { "docid": "d87b88775c224e6a7c95cc7215218d9b", "score": "0.6746774", "text": "T get();", "title": "" }, { "docid": "d87b88775c224e6a7c95cc7215218d9b", "score": "0.6746774", "text": "T get();", "title": "" }, { "docid": "d87b88775c224e6a7c95cc7215218d9b", "score": "0.6746774", "text": "T get();", "title": "" }, { "docid": "946ef01c49a800321004a6b766c3653e", "score": "0.6704722", "text": "A get();", "title": "" }, { "docid": "6ef997bea4ea29bfc5fc736b38d5ce2a", "score": "0.6690068", "text": "public Documento getDocumento()\r\n/* 320: */ {\r\n/* 321:412 */ return this.documento;\r\n/* 322: */ }", "title": "" }, { "docid": "de606e00554604d933b0ad6f35265a57", "score": "0.66789967", "text": "public String getCodigo()\r\n/* 291: */ {\r\n/* 292:475 */ return this.codigo;\r\n/* 293: */ }", "title": "" }, { "docid": "2a7a544e2c4ac7103139f410a20c46b1", "score": "0.6641266", "text": "public final void createGetterMethod(final JClass jClass, final boolean useJava50) {\n JMethod method = null;\n JSourceCode jsc = null;\n\n String mname = getMethodSuffix();\n\n XSType xsType = getSchemaType();\n JType jType = xsType.getJType();\n\n //-- create get method\n method = new JMethod(METHOD_PREFIX_GET + mname, jType,\n \"the value of field '\" + mname + \"'.\");\n if (useJava50) {\n Java5HacksHelper.addOverrideAnnotations(method.getSignature());\n }\n jClass.addMethod(method);\n createGetterComment(method.getJDocComment());\n jsc = method.getSourceCode();\n jsc.add(\"return this.\");\n if (xsType.isPrimitive()) {\n String init = getDefaultValue();\n if (init != null) {\n jsc.append(this._name);\n jsc.append(\" != null ? this.\");\n jsc.append(this._name);\n jsc.append(\" : \");\n jsc.append(init);\n } else {\n jsc.append(this._name);\n }\n } else {\n jsc.append(this._name);\n }\n jsc.append(\";\");\n\n if (xsType.getType() == XSType.BOOLEAN_TYPE) {\n\n // -- create is<Property>t method\n method = new JMethod(METHOD_PREFIX_IS + mname, jType,\n \"the value of field '\" + mname + \"'.\");\n if (useJava50) {\n Java5HacksHelper.addOverrideAnnotations(method.getSignature());\n }\n jClass.addMethod(method);\n createGetterComment(method.getJDocComment());\n jsc = method.getSourceCode();\n jsc.add(\"return this.\");\n if (xsType.isPrimitive()) {\n String init = getDefaultValue();\n if (init != null) {\n jsc.append(this._name);\n jsc.append(\" != null ? this.\");\n jsc.append(this._name);\n jsc.append(\" : \");\n jsc.append(init);\n } else {\n jsc.append(this._name);\n }\n } else {\n jsc.append(this._name);\n }\n jsc.append(\";\");\n }\n\n }", "title": "" }, { "docid": "968dd3c86372698f40ec403c7c713455", "score": "0.6639358", "text": "public Empresa getEmpresa()\r\n/* 310: */ {\r\n/* 311:404 */ return this.empresa;\r\n/* 312: */ }", "title": "" }, { "docid": "787ed4e020c871f00abca56c95eb3a2c", "score": "0.6568331", "text": "public V get() {\r\n return value;\r\n }", "title": "" }, { "docid": "683baef9bf895e8b57e1ba51783e8d38", "score": "0.6567841", "text": "@Override\r\n\tpublic String get() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "bfab1606504f78b6fa74d0c94cc84f0e", "score": "0.65666157", "text": "@Override\n\tpublic String get() {\n\t\treturn toString();\n\t}", "title": "" }, { "docid": "64124a968ae3f44293c064c17c13059a", "score": "0.6556894", "text": "public E get();", "title": "" }, { "docid": "64124a968ae3f44293c064c17c13059a", "score": "0.6556894", "text": "public E get();", "title": "" }, { "docid": "598d24de493c03c344f90c709263f7f7", "score": "0.6519769", "text": "public abstract String getAuto();", "title": "" }, { "docid": "217412fce4b557516c7a6c30413f5921", "score": "0.65145946", "text": "public Contacto getContacto()\r\n/* 641: */ {\r\n/* 642:812 */ return this.contacto;\r\n/* 643: */ }", "title": "" }, { "docid": "7eea2bb945848fc0b9fd4b49ddd37171", "score": "0.64983064", "text": "@Override\n\tpublic Object get() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "508fa01c70af6a2cc2a75145b7e234d4", "score": "0.6484517", "text": "public GetterSetter () { }", "title": "" }, { "docid": "0dfab70c96330404a256d4f81caea739", "score": "0.6473689", "text": "public T get() {\n return object;\n }", "title": "" }, { "docid": "dee6ca6821bbfac863b46f0a2ab95ee7", "score": "0.64658433", "text": "public abstract String getK0024();", "title": "" }, { "docid": "2185c7c722826bdfa20361e2a01fcb02", "score": "0.6438658", "text": "public String getObservacion()\r\n/* 74: */ {\r\n/* 75:113 */ return this.observacion;\r\n/* 76: */ }", "title": "" }, { "docid": "c43be6b0e7ba3bc65b2a934eec99e952", "score": "0.6438423", "text": "public V get() {\n return null;\n }", "title": "" }, { "docid": "c9186f03faad315d25a49fd67d5764db", "score": "0.6432567", "text": "public abstract T get(String name);", "title": "" }, { "docid": "aeb02cd54af9caff57a2f051ed7d68ce", "score": "0.64306426", "text": "public abstract String getK0025();", "title": "" }, { "docid": "db16a7646c7980578d2b2dbb09263dcf", "score": "0.6428274", "text": "public MovimientoBancario getMovimientoBancario()\r\n/* 54: */ {\r\n/* 55: 83 */ return this.movimientoBancario;\r\n/* 56: */ }", "title": "" }, { "docid": "f63a0b28f85ee9c6cd78c81007a858a4", "score": "0.6371354", "text": "private interface IGetter<M> {\n M get();\n }", "title": "" }, { "docid": "a13ed2cff79da209fc92cf9a2f636fca", "score": "0.6370318", "text": "public T get() {\r\n //TODO if we're using the builder's lambda, get is illegal.\r\n return value;\r\n }", "title": "" }, { "docid": "1c125554ba97356a3f80444b415557f1", "score": "0.63687843", "text": "public DireccionEmpresa getDireccionEmpresa()\r\n/* 450: */ {\r\n/* 451:543 */ return this.direccionEmpresa;\r\n/* 452: */ }", "title": "" }, { "docid": "427106c504b7d6027f51bbf4a8e7917b", "score": "0.6362843", "text": "public Producto getProducto()\r\n/* 119: */ {\r\n/* 120:149 */ return this.producto;\r\n/* 121: */ }", "title": "" }, { "docid": "1788c8bcf603b911f3489635246756df", "score": "0.63575584", "text": "public Object getValue()\r\n/* 840: */ {\r\n/* 841:717 */ return this.value;\r\n/* 842: */ }", "title": "" }, { "docid": "9acbb21fcaa74b3728e5580a6cf5f1f2", "score": "0.6314134", "text": "public interface IFieldValueGetter {\n\t/**\n\t * Method for retrieving value of a field in StudentRecord.\n\t * @param record Student record.\n\t * @return Value of a field.\n\t */\n\tpublic String get(StudentRecord record);\n}", "title": "" }, { "docid": "a541598b6ae8a0c272e054052b845584", "score": "0.63017887", "text": "public int getCodigo()\n/* */ {\n/* 43 */ return this.codigo;\n/* */ }", "title": "" }, { "docid": "49b3ee95d6cd29a1b77c49703d28e774", "score": "0.6289472", "text": "public D get() {\n return data;\n }", "title": "" }, { "docid": "fdd13959200de911a5232e5f5d80eb99", "score": "0.62786156", "text": "public String getNombre()\r\n/* 166: */ {\r\n/* 167:264 */ return this.nombre;\r\n/* 168: */ }", "title": "" }, { "docid": "75aa8feb5d46a6061d00c75b705e1523", "score": "0.6276481", "text": "public abstract double get();", "title": "" }, { "docid": "a39b0c7faeeb3e0e27ee29097b78a38b", "score": "0.6268716", "text": "public I getA() {\r\n return a;\r\n }", "title": "" }, { "docid": "39d4515bf63b846049d2aff7e8debbc3", "score": "0.62481576", "text": "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "title": "" }, { "docid": "434c779d44324bc44f33bc72b7ae6c65", "score": "0.62461406", "text": "@Override\r\n\t\tpublic V get() {\n\t\t\treturn this.name;\r\n\t\t}", "title": "" }, { "docid": "e2687e87f786afec9aeadc4af08591c5", "score": "0.62448514", "text": "public MethodPart getRead() {\n return get;\n }", "title": "" }, { "docid": "065b69a07830ffa10b8347da9c37ccb3", "score": "0.62402576", "text": "public String getSomething() {\n return this.something;\n }", "title": "" }, { "docid": "57ce9dd7fa6bb575c61ccef3975cc556", "score": "0.6236803", "text": "public boolean getUseGetAndIsMethodsOnly() { return _useGetAndIsMethodsOnly; }", "title": "" }, { "docid": "99ed61a1f7d51cf217af7a9fb1467974", "score": "0.62346566", "text": "PropertyAccessor getPropertyAccessor();", "title": "" }, { "docid": "22e14634401748219323ee0732484947", "score": "0.6216834", "text": "public java.lang.String getCodigo(){\r\n return localCodigo;\r\n }", "title": "" }, { "docid": "75d0a2824b917bfb0a46b9e12671f883", "score": "0.62167525", "text": "public Employee getEmployee();", "title": "" }, { "docid": "1372c9f2eff8aca774a7c810269922c1", "score": "0.6204095", "text": "public int get() {\n return value;\n }", "title": "" }, { "docid": "22fc30a72cf0de593b0e9555c6a8e716", "score": "0.6195586", "text": "String getA();", "title": "" }, { "docid": "724c4f55428ce60f0a7cdb7af8a71b79", "score": "0.61927146", "text": "public String getUsuarioCreacion()\r\n/* 380: */ {\r\n/* 381:460 */ return this.usuarioCreacion;\r\n/* 382: */ }", "title": "" }, { "docid": "34fc85dafa9b3938df5d5ae379ee36a1", "score": "0.6187973", "text": "@Override\n\t\tpublic void GET() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "cca739098e14ccb92f27877b011ec2ba", "score": "0.61876136", "text": "@Override\n public Long get() {\n return getPrimitive();\n }", "title": "" }, { "docid": "00542a2d1c992d33865184b26b62a098", "score": "0.6186866", "text": "public abstract Object get(Object K);", "title": "" }, { "docid": "0d610d25cf5cbf3a6ad027071b84a1f0", "score": "0.6176134", "text": "public class_94 method_9200() {\r\n return this.field_8687;\r\n }", "title": "" }, { "docid": "b6baad17e2f396e07b5c8d054dbf8ad7", "score": "0.61668146", "text": "V getValue() {\n return get().value;\n }", "title": "" }, { "docid": "b3d78afeecb712ff7ec5ce21dd6c3635", "score": "0.6165444", "text": "public abstract String get(int id);", "title": "" }, { "docid": "1275aab14f5001c582ead36f7f540e36", "score": "0.61648554", "text": "@Export(qualifiers=\"Description(\\\"Case 5 - get/IsGet only\\\")\")\r\n\tpublic Boolean isIsGetGetValue(){\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "d2b0ee0f986907d752c539398da62dd4", "score": "0.6163205", "text": "@Serialize//(getName = \"get\")\r\n public String getName()\r\n\t{\r\n \treturn _name; \r\n\t}", "title": "" }, { "docid": "181cb4221acaf4cebb880ef6aa632576", "score": "0.6161961", "text": "@Export(qualifiers=\"Description(\\\"Case 5 - get/IsGet only\\\")\")\r\n\tpublic Boolean getIsGetGetValue(){\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "e4dd129c5721475f72340ecfeeeaf76f", "score": "0.6161237", "text": "public A force_get()\n {\n return this.value;\n }", "title": "" }, { "docid": "b9cb6be345f1274460817d0543a52df4", "score": "0.6158176", "text": "V getValue() {\r\n return this.value;\r\n }", "title": "" }, { "docid": "5b308dbdedc4047b21923258a7fc4a38", "score": "0.6155237", "text": "public abstract String getK0005();", "title": "" }, { "docid": "fda7d3abeed4ec02e44693c3b15f7cde", "score": "0.61543185", "text": "public Object getValue()\n {\n return super.getValue();\n }", "title": "" }, { "docid": "d4e301ccf755d43ab418ec9b0ddab099", "score": "0.61529624", "text": "int getMethodValue();", "title": "" }, { "docid": "667c8d639fe2a15a9f381719cdc5b810", "score": "0.6152158", "text": "public String getCodigoDocumento()\r\n/* 129: */ {\r\n/* 130:257 */ return this.codigoDocumento;\r\n/* 131: */ }", "title": "" }, { "docid": "6df75ab8283b6de842cb61e300caa9a1", "score": "0.6147754", "text": "@Getteri\r\n public String tiedostonNimi(){\r\n return tiedostonNimi;\r\n }", "title": "" }, { "docid": "30fd7420aef3ae1d7c606f512fd7aa22", "score": "0.6146247", "text": "public String getValue(){return value;}", "title": "" }, { "docid": "0c6e86aed76a3966236249a021524bfe", "score": "0.613999", "text": "public Object get() \n\t{\n\t\treturn get(0);\n\t}", "title": "" }, { "docid": "7b589f90ddf22f4171823dda8a32ef06", "score": "0.6137124", "text": "public T get() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.util.Optional.get():T, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.Optional.get():T\");\n }", "title": "" }, { "docid": "7f32e92d54761b1ed9de72c26baf7dfb", "score": "0.61341536", "text": "public int getA() {\n return a;\n }", "title": "" }, { "docid": "7f32e92d54761b1ed9de72c26baf7dfb", "score": "0.61341536", "text": "public int getA() {\n return a;\n }", "title": "" }, { "docid": "4d756bda142cc9fa7c12f8338b313208", "score": "0.61304563", "text": "public void getValue() {\n\t}", "title": "" }, { "docid": "2a32adc9a470804f0dd0e90734050fc7", "score": "0.6116974", "text": "public Object getPropertyValue();", "title": "" }, { "docid": "3341c3381594e1301b306c242c6305cc", "score": "0.61135155", "text": "public abstract String getK0002();", "title": "" }, { "docid": "67c2823d12c65f746583494e27eabe61", "score": "0.6104475", "text": "public String getFirstName();", "title": "" }, { "docid": "2a63741219a1816623ed0d2359d9b315", "score": "0.61020017", "text": "private Object getValue() {\r\n return value;\r\n }", "title": "" }, { "docid": "3b88a9d4b7858773c5ff677cb16d8819", "score": "0.6094787", "text": "protected Object getObjectValue() {\n\t\treturn super.doGetValue();\n\t}", "title": "" }, { "docid": "1ab1288c7ef7e817ff2cf7e6989720e1", "score": "0.6093876", "text": "public String getName() \n{\nreturn (String)get_Value(\"Name\");\n}", "title": "" }, { "docid": "7b697dbbe14c6c28a772dab1a5175b05", "score": "0.60905045", "text": "public Object get() { return getModel().get(); }", "title": "" }, { "docid": "bbd9967da0391c2a63ceb1fa014159c7", "score": "0.60879374", "text": "public Object get(String name) {\n throw new UnsupportedOperationException();\n }", "title": "" }, { "docid": "2360bc4e5eac70b744dcf3d91a55fe9a", "score": "0.60864115", "text": "public String value();", "title": "" }, { "docid": "be8e4f595ba3ac5ab8006731de436a3a", "score": "0.60830736", "text": "public String getNombreDocumento()\r\n/* 185: */ {\r\n/* 186:309 */ return this.nombreDocumento;\r\n/* 187: */ }", "title": "" }, { "docid": "06760e1468b5ef31496e94912d4e283e", "score": "0.6082203", "text": "@Override\n public T get() {\n return getModel(owner.getChild(name), type);\n }", "title": "" }, { "docid": "d20e1245fcfa7117d87f7617f3bf53e7", "score": "0.6078776", "text": "public int GetX(){\n return this.x;\n }", "title": "" }, { "docid": "3fc35c13a5c6e3a2539ad36e5bd8cdb1", "score": "0.6075906", "text": "public int getAge(){\r\n return age;\r\n }", "title": "" }, { "docid": "fec2f38b7b68702cc5841c98a3de909e", "score": "0.6072023", "text": "public String getVac_des()\r\n/* 65: */ {\r\n/* 66: 71 */ return this.vac_des;\r\n/* 67: */ }", "title": "" }, { "docid": "98eff3b3dddd03f24af6c9502c055cab", "score": "0.60695785", "text": "public abstract Object getValue();", "title": "" }, { "docid": "a602e36f722308fad171a11b6397ab01", "score": "0.60640967", "text": "public ClassRenamed2 get() {\n return null;\n }", "title": "" }, { "docid": "5de94342f6e0badfd59a4acf88387f6c", "score": "0.606277", "text": "@VTID(19)\r\n @DefaultMethod\r\n java.lang.String get_Default();", "title": "" }, { "docid": "b2024bfd180fe9f1a9bdc698e8a8059b", "score": "0.60562354", "text": "Object getObj();", "title": "" }, { "docid": "f6b44f9427d6e082b1fa3afa2a4cfdee", "score": "0.6055507", "text": "public String getTipo()\n/* */ {\n/* 113 */ return this.tipo;\n/* */ }", "title": "" }, { "docid": "f0e76947e58349dc7ccdd906a4570d66", "score": "0.60540235", "text": "@Override public Object getProperty(String name) {return source.getProperty(name);}", "title": "" } ]
3ec2acef39bba892e9f68841ed3f44b4
MOVE TO NEXT Record
[ { "docid": "447eb16243225b687fd09b56ad4e50d4", "score": "0.6200968", "text": "public Designation moveNext()\n\t{\n\t\tdes = new Designation();\n\n\t\ttry\n\t\t{\n\t\t\tif (!rsDesignation.next()) rsDesignation.last();\n\t\t\tsetData();\n\t\t}catch(SQLException sqle)\n\t\t{\n\t\t\tSystem.out.println(\"Server [DesignationControllerImpl] : MOVE NEXT Error !!!\");\n\t\t\tSystem.out.println(\"Error: \"+sqle.getMessage());\n\t\t}\n\n\t\treturn des;\n\t}", "title": "" } ]
[ { "docid": "bb4d87066bed44c81418b87a6cba56e5", "score": "0.6972618", "text": "void moveNext() {\n\t\tif(cursor != null){\n\t\t\tif(index == (numData-1)){\n\t\t\t\tcursor = null; \n\t\t\t\tindex = -1;\n\t\t\t}\n\t\t\tif(index < numData-1 && index >= 0){\n\t\t\t\tcursor = cursor.next;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "325ceab6227273e96b21885051199d75", "score": "0.66675", "text": "public boolean moveToNext() throws DatabaseException\r\n\t{\r\n\t\treturn this.moveAs(Const.HAM_CURSOR_NEXT);\r\n\t}", "title": "" }, { "docid": "f1684c03db737b132228522c6c2c0526", "score": "0.65882564", "text": "@Override\n\tpublic void moveToNext() {\n\n\t}", "title": "" }, { "docid": "0f1932e7eac905d6b59446f040c53f26", "score": "0.63312083", "text": "public void goToNext()\n\t{\n\t\tif(current.link != null)\n\t\t{\n\t\t\tprevious = current;\n\t\t\tcurrent = current.link;\n\t\t}\n\t}", "title": "" }, { "docid": "22947ad99d043ecfb6db40825ede4cf2", "score": "0.6263806", "text": "private void moveToNextRow() {\n\t\tmove();\n\t\tif(rightIsBlocked()) {\n\t\t\tturnLeft();\n\t\t}\n\t\telse {\n\t\t\tturnRight();\n\t\t}\n\t}", "title": "" }, { "docid": "15c707d62c7cd56ae3e553157149854b", "score": "0.62625784", "text": "public void moveToCurrentRow() throws SQLException {\n/* 5646 */ if (!this.onInsertRow) {\n/* */ return;\n/* */ }\n/* 5649 */ this.cursorPos = this.currentRow;\n/* 5650 */ this.onInsertRow = false;\n/* */ }", "title": "" }, { "docid": "e9447fa4fbe467a6c9d9e1b0b84ab11f", "score": "0.6139392", "text": "public void nextMove() {\n pointer += 1;\n movement = AmountToMove(moves[pointer]);\n\n\n }", "title": "" }, { "docid": "8e2f5688c46fd858bb75947335b3110d", "score": "0.6106573", "text": "protected abstract void next(int index, Cursor cursor);", "title": "" }, { "docid": "f52b1b0109f263a3e5990ee6eaa82752", "score": "0.60855454", "text": "protected void doNext() {\n if (isDataChanged()) {\r\n int num = JOptionPane.showConfirmDialog(this, \"当前页面数据已修改,是否要保存\", \"保存确认\", 0);\r\n if (num == JOptionPane.YES_OPTION) {\r\n if (!doSave()) {\r\n return;\r\n }\r\n } else {\r\n listCursor.setCurrentObject(oldSite);\r\n }\r\n }\r\n listCursor.next();\r\n refreshData();\r\n setButtonStatus();\r\n\r\n }", "title": "" }, { "docid": "b77785af466fd54b025a332c28f6b5fc", "score": "0.6081414", "text": "public IndexRecord next() {\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "2ac21690e1302d31ba54660c62f6ea8d", "score": "0.60193336", "text": "public final void advance() {\n this.nextExternal = null;\n if (!nextInChain() && !nextInTable()) {\n while (this.nextSegmentIndex >= 0) {\n Segment[] segmentArr = MapMakerInternalMap.this.segments;\n int i = this.nextSegmentIndex;\n this.nextSegmentIndex = i - 1;\n this.currentSegment = segmentArr[i];\n if (this.currentSegment.count != 0) {\n this.currentTable = this.currentSegment.table;\n this.nextTableIndex = this.currentTable.length() - 1;\n if (nextInTable()) {\n break;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "22c2c96d05576fb18c99b64531ff8b70", "score": "0.60082", "text": "public void moveNext() throws Exception {\n\t\tif (canGoNext()) {\n\t\t\tmoveToStep(currentStepNo + 1, true);\n\t\t}\n\t}", "title": "" }, { "docid": "e8811df255062213a5f998bf8ab4c477", "score": "0.5991625", "text": "public void moveToRecordId(RecordId rid) {\r\n\t\tmoveTo(rid.block().number());\r\n\t\trp.moveToId(rid.id());\r\n\t}", "title": "" }, { "docid": "905b2bd3b99ed63669fa122596a52b7b", "score": "0.5957501", "text": "public void advance() throws ParseException {\n fetch(true);\n prev = current;\n current = current.next;\n }", "title": "" }, { "docid": "1de70deaf301960a938cb15ae4338bc2", "score": "0.5949579", "text": "void moveToFirst();", "title": "" }, { "docid": "af2a665b90b69f60ec5fa33e527bb191", "score": "0.59343886", "text": "private void toNext() {\n\t\tlast = current;\n\t\tcurrent = next;\n\t\tnext = getNext();\n\t\t//System.out.println(\"l \" + last + \" c \" + current + \" n \" + next + \"\\n\");\n\t}", "title": "" }, { "docid": "181bb70ea2a4f6fbbc6348897e034ad8", "score": "0.5860843", "text": "public boolean next() {\r\n\t\tif (!isBeforeFirsted)\r\n\t\t\tthrow new IllegalStateException(\"You must call beforeFirst() before iterating table '\"\r\n\t\t\t\t\t+ ti.tableName() + \"'\");\r\n\t\t\r\n\t\tif (currentBlkNum == 0 && !moveTo(1))\r\n\t\t\treturn false;\r\n\t\twhile (true) {\r\n\t\t\tif (rp.next())\r\n\t\t\t\treturn true;\r\n\t\t\tif (!moveTo(currentBlkNum + 1))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4635b8c7879f8cd4b3769de75b4d53d0", "score": "0.5844452", "text": "void goToNextPage();", "title": "" }, { "docid": "48007c1fe668e9177ae679b59c0c7699", "score": "0.5829162", "text": "public void next() {\n mPager.setCurrentItem(++mIndex);\n }", "title": "" }, { "docid": "b7285d638599887dcfaa56571b69f8fc", "score": "0.58278066", "text": "public void moveNext(){\r\n\t\taddSelectedAnswer();\r\n\t\tif(qindex<qchoices.size()-1){\r\n\t\t\tqindex++;\r\n\t\t\tmoveTo(qindex);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5ed21ee0ee314c25df63884d0e50a5cd", "score": "0.5827451", "text": "java.lang.String getNextRecordToken();", "title": "" }, { "docid": "f16ec1222bbc14d0fae2a37097e549cd", "score": "0.5806617", "text": "private void goToNextQuestion(){\n ++mCurrentIndex;\n if (mCurrentIndex >= mQuestionBank.length){\n mCurrentIndex = 0;\n }\n updateQuestion();\n }", "title": "" }, { "docid": "14e2ce8c6ad044242da470a7c4914964", "score": "0.5793748", "text": "public void advance( )\n {\n if (!isCurrent())\n {\n throw new IllegalStateException(\"There is no current element.\");\n }\n \n if (cursor.getLink() == tail)\n {\n cursor = null;\n }\n else\n {\n cursor = cursor.getLink();\n } \n }", "title": "" }, { "docid": "b2552aaa9afd21a25513bbcd464453cf", "score": "0.5791753", "text": "public void skipToNextSyncPoint(boolean atFirstRecord) throws IOException {\n if (!atFirstRecord) {\n getNext();\n }\n }", "title": "" }, { "docid": "ae0d2a2f6838f49701dcd4f180b58544", "score": "0.5766518", "text": "private void advanceStripe() throws IOException {\n rowInStripe = rowCountInStripe;\n while (rowInStripe >= rowCountInStripe &&\n currentStripe < stripes.size() - 1) {\n currentStripe += 1;\n readStripe();\n }\n }", "title": "" }, { "docid": "6687f0567d7ca10928df1eb7142f8fab", "score": "0.5747638", "text": "public boolean moveToNextLine() {\r\n boolean exists;\r\n String selectQuery = \"SELECT LINE, VALUE , LEVEL FROM \"\r\n + this.table.getName() + \" WHERE LINE = ?\";\r\n Cursor c = db.rawQuery(selectQuery, new String[] {\r\n Integer.toString(this.cursor.line + 1)\r\n });\r\n if (c.moveToFirst()) {\r\n this.cursor.update(c.getInt(0), c.getInt(1), c.getInt(2));\r\n exists = true;\r\n } else {\r\n exists = false;\r\n }\r\n c.close();\r\n return exists;\r\n }", "title": "" }, { "docid": "3db52612d612971b94c77d32166e1a58", "score": "0.57457656", "text": "public void next() {\n\t\tindex++;\n\t}", "title": "" }, { "docid": "f8ef5beecf8055546db82ee0b390505b", "score": "0.57205814", "text": "public AMessage moveToNext()\n {\n Position nextPosition;\n\n if (idNextStep < numMovements) {\n nextPosition = listOfSteps.get(idNextStep);\n idNextStep = idNextStep + 1;\n return moveTo(nextPosition.x, nextPosition.y);\n } else {\n System.out.println(\"NO MORE steps to perform at agent!\");\n return (new AMessage(\"NOMESSAGE\",\"\",\"\", \"\"));\n }\n }", "title": "" }, { "docid": "63bd5467d40149c4cdec8e298fdc6c5d", "score": "0.5714893", "text": "public Record getNext() throws java.io.IOException {\n\t\tRecord r = ((RecordSource) getCurSource()).getNext();\n\t\tnextValid();\n\t\treturn r;\n\t}", "title": "" }, { "docid": "af8284340fc8a11d7f7249dfe1157b57", "score": "0.5707917", "text": "private void goToNextPage(){\r\n\t\t\t//check for error first\r\n\t\t\t//if(isErr()) return;\r\n\t\r\n\t\t\t//goto next page\r\n\t\t\tcard.next(wizpanel);\r\n\t\t\t\r\n\t\t\t//set state to next page\r\n\t\t\tgetCallBack().toNext();\r\n\t}", "title": "" }, { "docid": "45794c68c4715048ae063f76986d4861", "score": "0.56950444", "text": "public void nextLine() {\n \t\tcurrent.set(current.size()-1, current.get(current.size()-1)+1);\n \t\t}", "title": "" }, { "docid": "f71f1840b9281bcf63ec3426e6323347", "score": "0.568471", "text": "protected void AddNext() {\n\t\tindividuo.addMove();\n\t}", "title": "" }, { "docid": "5e4a5df073420e80c2a0ecb43b64cd61", "score": "0.5671051", "text": "private void recordMoveFromFirstPos(int from, int to) {\n if (0 == from) itemToRefreshIndex = to;\n }", "title": "" }, { "docid": "7172fd1d9276d9b3c0c1f1843a3af87a", "score": "0.56662947", "text": "public abstract String nextRow ();", "title": "" }, { "docid": "8266202e4598dbf8621a48f967a060db", "score": "0.5657819", "text": "@Override\r\n\t\tpublic void toNext() {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tPage.nextPage(); //increase page counter\r\n\t\t\tif(Page.getCurrenPage() > 0 && Page.getCurrenPage() < pages.size() - 1){\r\n\t\t\t\tsetStateMiddlePage();\r\n\t\t\t}else{\r\n\t\t\t\tsetStateLastPage();\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "d720a0a35d62ba2a20cc56419bbb49e4", "score": "0.56518173", "text": "void next() {\n assert hasNext();\n prevKey = key;\n prevValue = value;\n\n key += in.readUVLQ();\n if (prevKey != key) {\n idx += step;\n value += in.readVLQ();\n } else {\n // we've hit the end of this chunk, make sure hasNext() return false\n in.seek(nextTier);\n }\n }", "title": "" }, { "docid": "05403b5ca36df039a9e1143a1c2ecf8c", "score": "0.56428885", "text": "public void incrementPage(){\n if(!model.isLast()){\n changePage.onNext(model.getPage()+1);\n }\n\n }", "title": "" }, { "docid": "5f558e3a3c9c06d7d674023c2cd8c16d", "score": "0.56317", "text": "public void setNext(DTContent next) {\n\t\tthis.next = next;\r\n\t}", "title": "" }, { "docid": "1e13ad37958355152d433bcf82cb8a48", "score": "0.56251484", "text": "public void nextScene() {\r\n\t\tsceneID = sceneID +1;\r\n\t}", "title": "" }, { "docid": "e1082270b2764e348c3bf29d28074a92", "score": "0.5617028", "text": "public Boolean next() {\r\n\t\tif (this.DataRows.isEmpty() || this.currentRow > this.DataRows.size() - 2)\r\n\t\t\treturn false;\r\n\t\telse {\r\n\t\t\tthis.currentRow += 1;\r\n\t\t\tthis.currentDataRow = this.DataRows.get(this.currentRow);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fc062cd95bec495d9b6d8b3a1a574ed3", "score": "0.5601069", "text": "public void next() {\n this.curr = this.next;\n this.next = read();\n }", "title": "" }, { "docid": "9538696b9d51b11179320e4981263a19", "score": "0.5598481", "text": "@Producer\n public Record next() {\n return null;\n }", "title": "" }, { "docid": "8f16339a5057f040280a86162009d931", "score": "0.5586887", "text": "public boolean moveToNextPage() {\n return moveToPage(currentPage + 1);\n }", "title": "" }, { "docid": "507e5eeca826065ba7187e605a970e64", "score": "0.5570656", "text": "protected boolean internalNext() throws SQLException {\n/* 1493 */ boolean bool = false;\n/* */ \n/* */ do {\n/* 1496 */ if (this.cursorPos < this.numRows) {\n/* 1497 */ this.cursorPos++;\n/* 1498 */ bool = true;\n/* 1499 */ } else if (this.cursorPos == this.numRows) {\n/* */ \n/* 1501 */ this.cursorPos++;\n/* 1502 */ bool = false;\n/* */ break;\n/* */ } \n/* 1505 */ } while (!getShowDeleted() && rowDeleted() == true);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1510 */ if (bool == true) {\n/* 1511 */ this.absolutePos++;\n/* */ } else {\n/* 1513 */ this.absolutePos = 0;\n/* */ } \n/* 1515 */ return bool;\n/* */ }", "title": "" }, { "docid": "37e445518705175b8a4833e4ac180989", "score": "0.5563833", "text": "public void advance() {\n currentCommand = readNextCommand();\n }", "title": "" }, { "docid": "f508be32e1ef79474744b5a9b5c36e7f", "score": "0.5561457", "text": "public void next()\n {\n if (this.current != null)\n {\n this.current = this.current.next;\n }\n }", "title": "" }, { "docid": "06159454ad6ac72034e17c3f4a1c3b57", "score": "0.55547243", "text": "private void move() {\n\t\tthis.look = this.lexer.scan();\n\t}", "title": "" }, { "docid": "fb8361120ad773d4d2a3851519163d00", "score": "0.55518776", "text": "public boolean moveToFirst() throws DatabaseException\r\n\t{\r\n\t\treturn this.moveAs(Const.HAM_CURSOR_FIRST);\r\n\t}", "title": "" }, { "docid": "05d189075e082ef547e2db55b2fb7bab", "score": "0.55397487", "text": "void seekToFirst();", "title": "" }, { "docid": "7f172dc4dbbb947514f42b613c223b48", "score": "0.55298007", "text": "public void nextPage(Object document);", "title": "" }, { "docid": "81d7992113e05b33329981493ebaf299", "score": "0.5513708", "text": "public void next()\n {\n page++;\n if (lista.size() < quantity) nButton.setDisable(true);\n pButton.setDisable(false);\n refresh();\n }", "title": "" }, { "docid": "eb0f3630839d524410285a586ef4a8fb", "score": "0.5507432", "text": "private void advanceCurrent() {\n\t\tsetHistory(getQueue().split(\" \")[0] + \" \" + getHistory());\n\t\tsetQueue(getQueue().substring(getQueue().indexOf(\" \") + 1));\n\t\t// Log.d(\"HISTORY\", getHistory());\n\t\t// Log.d(\"QUEUE\", getQueue());\n\n\t\tfetchNextUrls();\n\t}", "title": "" }, { "docid": "2608b14e505c1068af5fa798b6114a9f", "score": "0.54942626", "text": "@Override\r\n public void next() {\n PlayListComponent track = rpIterator.next();\r\n if (track instanceof Track){\r\n setCurrentTrack((Track)track);\r\n }\r\n //if(getCurrentTrack() >= getRecord().getTracks().length - 1) {\r\n // System.out.println(\"Das Ende der Schallplatte: \" + getRecord().getTitle() + \" Track: \" + getRecord().getTracks()[getCurrentTrack()].getTitle() + \" ist erreicht.\");\r\n // state = State.STOP;\r\n //} else {\r\n // setCurrentTrack(getCurrentTrack() + 1);\r\n //}\r\n }", "title": "" }, { "docid": "15762b7feb882a66de7d93c042070d5f", "score": "0.54907286", "text": "@Override\n public Card next() {\n Card next = orderAdded.get(position+1);\n position++;\n return next;\n }", "title": "" }, { "docid": "d5711ad8bc2776ed604202022501ab38", "score": "0.5487272", "text": "public void nextClicked()\n {\n restaurant.next();\n changeOccur();\n }", "title": "" }, { "docid": "e74e8c9ac7a121dcfe1fd4ee5b6d42e2", "score": "0.5484674", "text": "public void move(int next) {\n next = Math.abs(next) % 4;\n if (next == 0) {\n moveUp();\n } else if (next == 1) {\n moveDown();\n } else if (next == 2) {\n moveRight();\n } else if (next == 3) {\n moveLeft();\n }\n }", "title": "" }, { "docid": "5b6a4caad795e6f78641c4f12f74b092", "score": "0.54822576", "text": "private void btnNextCliked() {\n\t model.next();\n\t return;\n\t}", "title": "" }, { "docid": "d8c8e8f992171bf1aa1bf3fd637eb1d9", "score": "0.5481956", "text": "protected void advance () {\n current += increment;\n }", "title": "" }, { "docid": "62386352649c1af4848cb43b78293aaa", "score": "0.54629624", "text": "private void nextNewKeyButtonActionPerformed(ActionEvent evt) {\n KeysTableModel keysTableModel = (KeysTableModel) keysTable.getModel();\n int row = keysTable.getSelectedRow();\n int nrow = keysTableModel.getNextNotHereKey(row);\n if (nrow > 0) {\n keysTable.setRowSelectionInterval(nrow, nrow);\n keysTable.scrollRectToVisible(new Rectangle(keysTable.getCellRect(nrow, 0, true)));\n }\n }", "title": "" }, { "docid": "fc9117f0b499966cbf96adc86f5c84be", "score": "0.5457631", "text": "private void selectNextItem() {\n if (mReverseScan) {\n mOptionManager.moveToParent(true);\n } else {\n mOptionManager.selectOption(OptionManager.OPTION_INDEX_NEXT);\n }\n }", "title": "" }, { "docid": "17aee0f2cff81928c2d3be915c917240", "score": "0.5454342", "text": "public void nextMove(int num);", "title": "" }, { "docid": "599af4da32b285a3150a33209197cecd", "score": "0.544708", "text": "public void overallNext() {\n findNext(true);\n }", "title": "" }, { "docid": "5cc51af48af78fc13f608479530d61da", "score": "0.54466355", "text": "public int getNextRow(){\r\n\t\t\r\n\t\treturn row + dRow;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9dfcff0bbc38cfe3b355c99145b806c4", "score": "0.5439024", "text": "@Override\n public Record next() {\n if(hasNext()) {\n final ByteBuffer buf = DAOByteOnlyConverter.tuneArrayToBuf(rocksIt.key());\n final Record rec = Record.of(buf, ByteBuffer.wrap(rocksIt.value()));\n rocksIt.next();\n return rec;\n } else {\n throw new IllegalStateException(\"End of file content reached. Iterator stopped\\n\");\n }\n }", "title": "" }, { "docid": "f3a6e6ffda184360271989452f5ec357", "score": "0.543828", "text": "public void setNext(Customer next){\n\t\tthis.next=next;\n\t}", "title": "" }, { "docid": "c79aa2c318535bb9aef5455aec059e15", "score": "0.5428794", "text": "public Tuple getNext() {\r\n\t\t\r\n\t\tfinal RID rid = bscan.getNext();\r\n\t\t\r\n\t\t// get the key of last record\r\n\t\tlastKey = bscan.getLastKey();\r\n\t\t\r\n\t\treturn new Tuple(schema, file.selectRecord(rid));\r\n\t}", "title": "" }, { "docid": "1da584336c49354059f00a51484b5a23", "score": "0.5428568", "text": "private void nextKeyButtonActionPerformed(ActionEvent evt) {\n int nrow = keysTable.getRowCount();\n if (nrow > 0) {\n int row = keysTable.getSelectedRow();\n row = (row + 1) % nrow;\n keysTable.setRowSelectionInterval(row, row);\n keysTable.scrollRectToVisible(new Rectangle(keysTable.getCellRect(row, 0, true)));\n }\n }", "title": "" }, { "docid": "04fc0d0989e91c0c27101209a558bbce", "score": "0.54204553", "text": "private void beginMove(Location next)\r\n\t{\r\n\t\tif (Location.isValid(next)) {\r\n\t\t\tLocation ahead = gridLocation.getAdjacentLocation(direction);\r\n\t\t\tif (ahead.getX() != next.getX() || ahead.getY() != next.getY()) {\r\n\t\t\t\tturn(next); // change direction if the location is not directly ahead\r\n\t\t\t}\r\n\t\t}\r\n\t\tmoveTo(next);\r\n\t}", "title": "" }, { "docid": "af1563a9da43b2785e0d73f46dcc40b8", "score": "0.541873", "text": "@Override\n public ContactRecord next() {\n return currentBlockIterator == null ? null : currentBlockIterator.next();\n }", "title": "" }, { "docid": "777ca1b7df582a3e52566cc24b5cb9d4", "score": "0.5410808", "text": "private void getNext() {\r\n DocumentAct act;\r\n while ((act = service.next(connector)) != null) {\r\n Message message = decode(act);\r\n if (message != null) {\r\n currentAct = act;\r\n currentMessage = message;\r\n break;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "8fe6133d4743e1e34b3aff1ad353e26d", "score": "0.54072917", "text": "public abstract int getNextRecordID () throws RecordStoreNotOpenException, RecordStoreException;", "title": "" }, { "docid": "26d8d19b478b995286761efc0b9dc1d2", "score": "0.54038346", "text": "private void nextStep(@NonNull Way currentSegment, @NonNull Way nextSegment, @Nullable Way newCurrentSegment, @Nullable Way newNextSegment) {\n if (newNextSegment == null && newCurrentSegment == null) {\n segments.add(nextSegment);\n logic.setSelectedRelationWays(segments);\n currentSegment = nextSegment;\n logic.setClickableElements(findViaElements(currentSegment, true));\n manager.invalidate();\n } else if (newCurrentSegment != null) {\n Set<Way> fromElements = new HashSet<>();\n fromElements.add(currentSegment);\n fromElements.add(newCurrentSegment);\n Snack.barInfo(main, newNextSegment == null ? R.string.toast_split_first_segment : R.string.toast_split_first_and_next_segment);\n main.startSupportActionMode(new RestartRouteSegmentActionModeCallback(manager, fromElements, route, savedResults));\n } else {\n Snack.barInfo(main, R.string.toast_split_next_segment);\n logic.setClickableElements(findViaElements(currentSegment, false));\n }\n }", "title": "" }, { "docid": "3918675a6dab97076a73629136276e64", "score": "0.5401911", "text": "private void moveTransferInRecord(final ImportExportFileBase xlsBuilder, final int row,\n final List<String> fieldNames) {\n \n // we need project_id and mo_type also\n if (!fieldNames.contains(\"mo_type\")) {\n fieldNames.add(\"mo_type\");\n }\n if (!fieldNames.contains(\"project_id\")) {\n fieldNames.add(\"project_id\");\n }\n \n final RecordPersistenceImplDT record =\n DataTransferUtility.createDTRecordPersistence(TABLE_NAME,\n (ArrayList<String>) fieldNames);\n \n Map fieldValuesConverted = null;\n Map fieldValuesPkConverted = null;\n \n final HashMap<String, Object> fieldValues = new HashMap<String, Object>();\n final HashMap<String, Object> fieldValuesPk = new HashMap<String, Object>();\n \n Record.Immutable rec = null;\n Record.Immutable rec_pk = null;\n \n if (xlsBuilder.getCellData(row, 0) != null\n && xlsBuilder.getCellData(row, 0).toString().startsWith(\"#\")) {\n // for comment line we don't do anything, return and go to next record\n this.transferNextRecordStatus = TRANS_NEXT_RECORD_STATUS.COMMENT;\n }\n \n prepareFieldValues(xlsBuilder, record, row, (ArrayList<String>) fieldNames, fieldValues,\n fieldValuesPk);\n \n try {\n fieldValuesConverted = record.convertFieldTypes(fieldValues);\n rec = record.retrieve(false, fieldValuesConverted);\n } catch (final ExceptionBase e) {\n if (this.dtLog != null) {\n this.dtLog.getLog(LOG_TYPE.ERROR).write(fieldValuesPk, e);\n }\n }\n \n // only try to retrieve if pk is not auto-numbered\n if (fieldValuesPk != null && fieldValuesPk.size() > 0) {\n try {\n fieldValuesPkConverted = record.convertFieldTypes(fieldValuesPk);\n rec_pk = record.retrieve(false, fieldValuesPkConverted);\n } catch (final ExceptionBase e) {\n if (this.dtLog != null) {\n this.dtLog.getLog(LOG_TYPE.ERROR).write(fieldValuesPk, e);\n }\n }\n }\n // if the job is stopped, then stop transfer in.\n if (this.status != null) {\n if (this.status.isStopRequested() || this.status.getCode() == JobStatus.JOB_STOPPED\n || this.status.getCode() == JobStatus.JOB_STOP_ACKNOWLEDGED) {\n this.transferNextRecordStatus = TRANS_NEXT_RECORD_STATUS.STOP;\n this.transferNextRecordErrorMessage = this.status.getMessage();\n } else {\n this.status.incrementCurrentNumber();\n }\n }\n if (rec_pk == null) {\n // is new record , we don't insert this\n final String crtId =\n ((fieldValuesPkConverted != null && fieldValuesPkConverted.containsKey(\"mo_id\")) ? fieldValuesPkConverted\n .get(\"mo_id\").toString() : \"\");\n final ExceptionBase e = new ExceptionBase();\n e.setPattern(String.format(\"Unable to find record [%s]\", crtId));\n if (this.dtLog != null) {\n this.dtLog.getLog(LOG_TYPE.ERROR).write(fieldValues, e);\n }\n } else if (rec_pk != null && rec == null) {\n // update record\n try {\n // check if record mo_type and project_id are correct\n final String project_id = rec_pk.findFieldValue(\"mo.project_id\").toString();\n if (!project_id.equals(this.project_id)) {\n final ExceptionBase e = new ExceptionBase();\n e.setPattern(String.format(\n \"Current record does not belog to selected project [%s]\", this.project_id));\n if (this.dtLog != null) {\n this.dtLog.getLog(LOG_TYPE.ERROR).write(fieldValues, e);\n }\n }\n final MoveType mo_type =\n MoveType.fromString(rec_pk.findFieldValue(\"mo.mo_type\").toString());\n if (!mo_type.equals(this.moveType)) {\n final ExceptionBase e = new ExceptionBase();\n e.setPattern(String.format(\"Current record is not an [%s] move.\",\n this.moveType.toString()));\n if (this.dtLog != null) {\n this.dtLog.getLog(LOG_TYPE.ERROR).write(fieldValues, e);\n }\n }\n \n try {\n checkValidEnumValues(record, fieldValues);\n } catch (final ExceptionBase e) {\n if (this.dtLog != null) {\n this.dtLog.getLog(LOG_TYPE.ERROR).write(fieldValues, e);\n }\n }\n \n for (final String key : this.FIELDS_READ_ONLY) {\n if (fieldValuesConverted.containsKey(key)) {\n fieldValuesConverted.put(key,\n rec_pk.findFieldValue(this.TABLE_NAME + \".\" + key));\n }\n }\n \n record.update(fieldValuesConverted);\n this.dtLog.getLog(LOG_TYPE.UPDATE).write(fieldValues);\n \n } catch (final ExceptionBase e) {\n if (this.dtLog != null) {\n this.dtLog.getLog(LOG_TYPE.ERROR).write(fieldValues, e);\n }\n }\n }\n }", "title": "" }, { "docid": "87cc98f85a0ee78e3ecba0c198f45264", "score": "0.5374552", "text": "public void moveForward()\n {\n if (checkValid())\n --mIndex;\n }", "title": "" }, { "docid": "45337fb194e31e4ddda5cb0dcf3505b5", "score": "0.5372477", "text": "void next() {\n iterators[p].next();\n if (iterators[p].atEnd())\n atEnd = true;\n else {\n p = Math.floorMod(p + 1, iterators.length);\n leapfrogSearch();\n }\n }", "title": "" }, { "docid": "ba2c361ce99324798c5860c7f6f62427", "score": "0.5370992", "text": "private void advance() {\n try {\n // Typical case -- read a record and load it\n double[] observed = read();\n current = observed;\n } catch (EOFException ex) {\n // End of file? Fine, stop\n current = null;\n } catch (IOException ex) {\n // Some other I/O error? Throw it\n throw new RuntimeException(ex);\n }\n\n }", "title": "" }, { "docid": "ae7ec4bdddb567365b4479d4b3333730", "score": "0.53707945", "text": "public void nextPage() throws SQLException, PageSwitchException {\n if (currentPage == pageCount) { // the last page\n throw new PageSwitchException(currentPage, \"Currently in last page\");\n }\n currentPage++;\n gotoPage(currentPage);\n }", "title": "" }, { "docid": "b7dc82fb42c076f385a228a397949ba3", "score": "0.53704363", "text": "public void setNextId(String nextId) {\r\n this.nextId = nextId;\r\n }", "title": "" }, { "docid": "db4e92d842e08c6844f2e2cc6c99ecd4", "score": "0.5364583", "text": "public void nextActivity() {\n\t\tIntent myIntent = new Intent(TrophyActivity.this, AddTrophyActivity.class);\n\t\tTrophyActivity.this.startActivity(myIntent);\n\t}", "title": "" }, { "docid": "d7c94bab29c600bb1922a8e4a5d857cf", "score": "0.5356978", "text": "public int nextPosition();", "title": "" }, { "docid": "c207ddd0e300f92463d1d156498aebf9", "score": "0.53543615", "text": "public void NextPhotoTapped(ActionEvent actionEvent) {\n int index=tableview.getSelectionModel().getSelectedIndex();\n if(index<0){\n tableview.getSelectionModel().select(0);\n }else if(index<currentAlbum.photos.size()-1){\n tableview.getSelectionModel().select(index+1);\n }\n }", "title": "" }, { "docid": "22a895385ec59158b32ef748a1e649ae", "score": "0.53531176", "text": "public void resumeFrom(long pos) {\n skip.skipTo(pos);\n }", "title": "" }, { "docid": "3077017f2177f85cb36d2e39a92e40d8", "score": "0.5351622", "text": "@Override\n\tpublic boolean next() throws JRException {\r\n\t\tif (++iCurrentRow < resultVO.getRowCount()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "023196a980f0546c120fff4419594ae2", "score": "0.5350858", "text": "private void mNext() {\n if (mPosition + 1 > mStarters.size() - 1) {\n mPosition = 0;\n } else {\n mPosition += 1;\n }\n mUpdateText(mPosition);\n\n }", "title": "" }, { "docid": "fb8b7fa41796808608f806b14114d0a6", "score": "0.5350795", "text": "@Override\n void advance() {\n }", "title": "" }, { "docid": "fb8b7fa41796808608f806b14114d0a6", "score": "0.5350795", "text": "@Override\n void advance() {\n }", "title": "" }, { "docid": "ca69500bf381eafda07e9429ac3cce21", "score": "0.5328921", "text": "public void nextStep(){\n\t\tthis.dequeueEvents();\n\t\tthis.checkNewEvents(this.eds);\n\t\tthis.timeGoesToNextEventEnd();\n\t}", "title": "" }, { "docid": "05de526d676846e9dafdcaad53ab7bdd", "score": "0.53245455", "text": "public void moveToEnd() {\n while (curr.next()!=null)\n curr= curr.next(); }", "title": "" }, { "docid": "736c8c8e935fddf254dd63067662fe4e", "score": "0.53187615", "text": "public void advance()\n {\n if (endpos())\n {\n throw new NoSuchElementException(\"Already at the end of this List\");\n }\n pos = pos.next;\n modCount++;\n }", "title": "" }, { "docid": "f83c5d09a3ce3d0f5e3b2a63102c7578", "score": "0.5316281", "text": "protected abstract void advance();", "title": "" }, { "docid": "09ad89dc4b29c2b4a467594f67949db2", "score": "0.5310741", "text": "public void nextStep() {\r\n if (!this.isMoving) {\r\n this.isMoving = true;\r\n if (time != moves.size()) {\r\n time = time +1;\r\n }\r\n else {\r\n this.resetCenter();\r\n time = 0;\r\n }\r\n }\r\n\r\n }", "title": "" }, { "docid": "c6d353bf29b75277f2e54617915bc1b3", "score": "0.53070545", "text": "void findNext() {\n PageEditor editor = getPageEditor();\n if (editor != null)\n editor.findNext();\n }", "title": "" }, { "docid": "cd3a919046a4d6ba246655b9f1f932e1", "score": "0.5306051", "text": "private void moveToFirst(Node node) {\n deleteNode(node);\n addFirst(node);\n }", "title": "" }, { "docid": "7a071a619706e036e4ecaf0b615ba1f2", "score": "0.5293015", "text": "public void nextLink() {\n\t\tprevious = current;\n\t\tcurrent = current.next;\n\t}", "title": "" }, { "docid": "75d895f75c14ddefbd30e9540b2b4996", "score": "0.52915365", "text": "private void moveNextFrame() {\n if (playbackFrame == project.getNumFrames() - 1) {\r\n playbackFrame = 0;\r\n } else {\r\n playbackFrame += 1;\r\n }\r\n }", "title": "" }, { "docid": "c48d19dac13648f7c0512af90f8a5030", "score": "0.5284717", "text": "public void setNextMovementPoinnt(Movement next) {\n this.nextMovment = next;\n DirectionStruct struct = calcDirection(this.latitude, this.longitude, next.latitude, next.latitude);\n this.heading = struct.heading;\n this.distance = struct.length;\n\n }", "title": "" }, { "docid": "869709abbed6eec0bad0b7108f1201e9", "score": "0.5281251", "text": "private void moveToNext() {\n if (isIdle) {\n // get current position of view and move to next by +1\n int nextPos = layoutManager.findFirstCompletelyVisibleItemPosition() + 1;\n if (nextPos < allData.size()) {\n customTimer.cancelTimer();\n customTimer.startTimer();\n rvQa.smoothScrollToPosition(nextPos);\n } else {\n // reached end of question list\n customTimer.cancelTimer();\n Intent intent = new Intent(this , ScoreActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n intent.putParcelableArrayListExtra(\"allData\" , allData);\n startActivityForResult(intent , 5);\n }\n }\n }", "title": "" }, { "docid": "c21867c744379e3c676aace33d983220", "score": "0.5280641", "text": "@Override\n\t\tpublic void rewind() throws DbException, TransactionAbortedException {\n\t\t\tcurrentPgNumber=0;\n\t\t\tnextPage();\n\t\t}", "title": "" }, { "docid": "73438c80bb290d567db2e4f32fce2aeb", "score": "0.5273329", "text": "private String nextMove() {\n // Determine the next move somehow\n return \"MOVE a 2 TO b 3\";\n }", "title": "" }, { "docid": "438cafad813062a4454376b79d8b3f6f", "score": "0.5270509", "text": "public void next()\n\t{\n\t\tif(currentPlayer == player)\n\t\t\tcurrentPlayer = opponent;\n\t\telse\n\t\t\tcurrentPlayer = player;\n\t\t\n\t\tinform(currentPlayer);\n\t}", "title": "" } ]
cc37b9eb98a28084066c2d1d2d7fa6ed
Check whether a given tool will cause a drop.
[ { "docid": "5b65c1aaa38f3e56e85e3a190623cfaa", "score": "0.0", "text": "public LootCondition matchTool(String item, String nbt) {\n\t\tItemPredicate.Builder builder = ItemPredicate.Builder.create();\n\t\tif (item.indexOf('#') == 0) {\n\t\t\tIdentifier id = new Identifier(item.substring(1));\n\t\t\tbuilder.tag(ServerTagManagerHolder.getTagManager().getItems().getTag(id));\n\t\t} else {\n\t\t\tIdentifier id = new Identifier(item);\n\t\t\tbuilder.item(Registry.ITEM.get(id));\n\t\t}\n\t\tif (!nbt.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tCompoundTag tag = StringNbtReader.parse(nbt);\n\t\t\t\tbuilder.nbt(tag);\n\t\t\t} catch (CommandSyntaxException e) {\n\n\t\t\t}\n\n\t\t}\n\t\treturn MatchToolLootCondition.builder(builder).build();\n\t}", "title": "" } ]
[ { "docid": "e1b96b9354ae91dfeb77b1e2df041853", "score": "0.6133084", "text": "public boolean toolStatus() {\n if(!selectedTool.toolCanContinue(getPlayerById(fsm.getUserPlayingId()))){\n List<Integer> oldIndexes=selectedTool.getOldIndexes();\n for (Integer index: oldIndexes){\n switch (fsm.getPlaceFrom()){\n case SCHEMA:\n getPlayerById(fsm.getUserPlayingId()).getSchema().removeDie(index);\n break;\n case DRAFTPOOL:\n getDraftPool().removeDie(index);\n break;\n case ROUNDTRACK:\n getDraftPool().getRoundTrack().removeDie(index);\n break;\n default:\n }\n }\n exit();\n }else{\n status=fsm.nextState(selectedCommand);\n }\n return fsm.isToolActive();\n }", "title": "" }, { "docid": "305529d69671fcd8109f1607e3b5016b", "score": "0.59209555", "text": "private boolean validateDropPosition() {\n return dropTargetButtonIndex >= 0;\n }", "title": "" }, { "docid": "e14f051d30d394916db587fa4ac375c5", "score": "0.59177256", "text": "private boolean isDropTargetListenerNeeded()\n{\n return isEnabled(Type.DragEnter, Type.DragOver, Type.DragExit, Type.DragDrop);\n}", "title": "" }, { "docid": "a0a3b6d10dd8eafd838bb0998d73323b", "score": "0.59107393", "text": "public boolean performDrop(Object data) {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "46269feb6cd574bc0bb5327c4093ea50", "score": "0.5805661", "text": "public abstract boolean validateDrop(Object target, int operation, TransferData transferType);", "title": "" }, { "docid": "a572484e44a4d26b4ca74ec07f818366", "score": "0.5771209", "text": "public boolean validateDrop(Object target, int op, TransferData type) {\n\t\treturn FormTransfer.getInstance().isSupportedType(type)\n\t\t\t|| PluginTransfer.getInstance().isSupportedType(type)\n\t\t\t|| LocalSelectionTransfer.getInstance().isSupportedType(type);\n\t}", "title": "" }, { "docid": "55e26fe85ddea37795a6dccf3c7fd171", "score": "0.57653946", "text": "public abstract boolean performDrop(Object data);", "title": "" }, { "docid": "522ca3e054835a51fb11b2980f2c9d58", "score": "0.5696521", "text": "private boolean handleDrop( final Transferable t ) {\n final boolean[] res = { false };\n FileUtil.runAtomicAction(new Runnable() {\n @Override\n public void run() {\n res[0] = handleDropImpl(t);\n }\n });\n return res[0];\n }", "title": "" }, { "docid": "a2e0414e261a890d60281c936836c4dd", "score": "0.5601061", "text": "private void checkDragons() {\r\n\t\tfor (int i = 0; i < dragons.size(); i++) {\r\n\t\t\tint dif;\r\n\t\t\tif (dragons.get(i).spitsFire())\r\n\t\t\t\tdif = 3;\r\n\t\t\telse\r\n\t\t\t\tdif = 1;\r\n\t\t\tif (!dragons.get(i).isSleeping() && !hero.isProtection()) {\r\n\t\t\t\tif (checkDragonColision(dif, i))\r\n\t\t\t\t\thero.setDead();\r\n\t\t\t} else if (checkDragonColision(1, i)) {\r\n\t\t\t\t\tif (hero.isArmed())\r\n\t\t\t\t\t\tdragons.remove(i);\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\thero.setDead();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9777a163e7b5702eec35f300f66d5e11", "score": "0.5543142", "text": "public abstract boolean dropItem();", "title": "" }, { "docid": "643f2f1868ae9f14e293d402e6b2e38a", "score": "0.5453061", "text": "public boolean canDropFromExplosion(Explosion par1Explosion)\n\t {\n\t return false;\n\t }", "title": "" }, { "docid": "7b03db226ecd140ba51f7c00c6269c15", "score": "0.53562033", "text": "boolean hasMoveUnusedBudget();", "title": "" }, { "docid": "2e15ae40ffc3ffde846c0228f9cf0537", "score": "0.53442127", "text": "private boolean toolBarExist() {\n \t\treturn toolBar != null && !toolBar.isDisposed(); \n \t}", "title": "" }, { "docid": "31842f70a3741d005c56a13b2906784a", "score": "0.5323247", "text": "private boolean checkForDataViolation()\n\t{\n\t\tif (currentQuery.toUpperCase().contains(\" DROP \") || currentQuery.toUpperCase().contains(\" TRUNCATE \") || currentQuery.toUpperCase().contains(\" SET \") || currentQuery.toUpperCase().contains(\" ALTER \"))\n\t\t{\n\t\t\treturn true;\n\t\t} else\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "f4157a1e592c84f1887b6956a7aed898", "score": "0.5301883", "text": "public boolean recycleBinDrop()\r\n {\r\n \tif(recycleBinDropLimit.get() == true)\r\n \t{\r\n \t\treturn true;\r\n \t}\r\n \telse\r\n \t{\r\n \t\treturn false;\r\n \t}\r\n }", "title": "" }, { "docid": "786f2319e3855e19714d50fcd868a54b", "score": "0.52881813", "text": "public void leaveTool();", "title": "" }, { "docid": "3c5d261cf59725fd73acf374a9d8bdfe", "score": "0.528088", "text": "private void doDropValidation(DropTargetEvent event) {\n currentOperation = determineOperation(currentTarget, lastValidOperation, event.currentDataType, event.operations);\n event.detail = currentOperation;\n setFeedback(event, currentLocation);\n }", "title": "" }, { "docid": "ca7f50d22f785d192f623e3c1492715f", "score": "0.5279402", "text": "public boolean checkViability(){\r\n\t\tif(dragons.size() == 0 || !board.isViable() || hero.getX() == -1 || !exit.isAtBorder(board.getSize()) || !exit.accesible(board) ||\r\n\t\t\t\tsword.getX() == -1){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif(hero.isProtectionNeed() && shield.getX() == -1){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "65dbad30c4e1a5a0401598c8fe33386a", "score": "0.5275764", "text": "@Override\n public boolean isDropoutCompatible(final AnalysisReport otherReport) {\n if (!(otherReport instanceof AnalysisReportImpl)) {\n return false;\n }\n\n final AnalysisReportImpl other = (AnalysisReportImpl) otherReport;\n\n // Replicates\n if (!compareCollections(replicates, other.replicates)) {\n return false;\n }\n\n // Profiles\n if (!compareCollections(profiles, other.profiles)) {\n return false;\n }\n\n // Enabled Loci\n if (!compareCollections(_enabledLoci, other._enabledLoci)) {\n return false;\n }\n\n // Hd excluding dropout\n if (defenseHypothesis.getGuidForDropoutEstimation() != other.defenseHypothesis.getGuidForDropoutEstimation()) {\n return false;\n }\n\n // Hp excluding dropout\n return (prosecutionHypothesis.getGuidForDropoutEstimation() == other.prosecutionHypothesis.getGuidForDropoutEstimation());\n }", "title": "" }, { "docid": "37e6211f54ad28a38ed27c4f444838a5", "score": "0.52283585", "text": "private boolean shouldClearOldTarget(Destination target) {\r\n\t\tif (target.getType() == DestType.LOCATION) {\r\n\t\t\tif (this.isAtWar(target) && (!this.shouldRaidOrBesiege((Location) target))) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} else if (target.getType() == DestType.ARMY) {\r\n\t\t\tif (this.isAtWar(target) && !this.shouldAttack(((Army) target).party)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "162eb88bb59f382cda3bcdf9c97a3610", "score": "0.5217822", "text": "public boolean canDrop(Random rand) {\n\t\treturn (rand.nextFloat() < rate);\n\t}", "title": "" }, { "docid": "adbec3b4b2c00c5190e2ca61a2b069de", "score": "0.51408", "text": "boolean hasDelReason();", "title": "" }, { "docid": "478b447d2b6c3047f04216ab9593e79d", "score": "0.51272845", "text": "public boolean isAbleToBeHunted();", "title": "" }, { "docid": "efb922703cf0377721ba670345b61ea4", "score": "0.51170087", "text": "public void releaseTool(Tool tool)\n {\n synchronized (lock) {\n addToolToInventory(tool);\n resolveWaiting(tool);\n }\n }", "title": "" }, { "docid": "5ba82a22e9bd3bc5bbca3b2ffceab68d", "score": "0.51005375", "text": "private void checkDrained() {\n drained = started && completed && items.size() == 0;\n }", "title": "" }, { "docid": "91f8646e0a182d2d8d282cfccec5970c", "score": "0.50941396", "text": "private void dropButton() {\n\t\tif (selectedPlace == null) {\n\t\t\tJOptionPane.showMessageDialog(jf, \"Can't drop: no Room selected\",\n\t\t\t\t\t\"Drop Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t} else if (selectedActor == null) {\n\t\t\tJOptionPane.showMessageDialog(jf, \"Can't drop: no Actor selected\",\n\t\t\t\t\t\"Take Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t} \n\t\tif (selectedActor.location() != selectedPlace) {\n\t\t\t// will drop it where we are, irrespective of list state\n\t\t\troomList.setSelectedValue(selectedPlace, true);\n\t\t}\t\n\t\tselectedThing = (Thing) stuff.getSelectedValue();\n\t\tif (selectedThing != null) {\n\t\t\tselectedActor.drop(selectedThing);\n\t\t}\n\t}", "title": "" }, { "docid": "ba251bf83ea6b39fd2df03e3a6cb645f", "score": "0.5091073", "text": "public boolean checkDead (){\n\t\treturn dmg>=stats[HP];\n\t}", "title": "" }, { "docid": "bd5fb46b33e14feca06c7b59c905b3d5", "score": "0.50868", "text": "public boolean checkOnDrop(StringTokenizer tokenizer) {\r\n if (tokenizer.hasMoreTokens()) {\r\n String token = tokenizer.nextToken();\r\n if (token.equals(ON_DROP)) {\r\n if (tokenizer.hasMoreTokens()) {\r\n String dropShape = tokenizer.nextToken();\r\n //if dropShape name equals current name\r\n if(dropShape.equals(page.selectedShape.getShapeName())) {\r\n Toast.makeText(getApplicationContext(), \"Drop shape cannot equal selected shape\", Toast.LENGTH_SHORT).show();\r\n return false;\r\n }\r\n if (shapeNames.contains(dropShape)) {\r\n if (tokenizer.hasMoreTokens()) {\r\n String actionToken = tokenizer.nextToken();\r\n if (actionToken.equals(GO_TO)) {\r\n if (tokenizer.hasMoreTokens()) {\r\n String page = tokenizer.nextToken();\r\n //check if page exists\r\n if (pageNames.contains(page)) return checkOnDrop(tokenizer);\r\n }\r\n } else if (actionToken.equals(PLAY_SOUND)) {\r\n if (tokenizer.hasMoreTokens()) {\r\n String sound = tokenizer.nextToken();\r\n //check if sound exists\r\n if (sound.equals(EVIL_LAUGH) || sound.equals(CARROT) || sound.equals(FIRE) || sound.equals(HOORAY)\r\n || sound.equals(MUNCH) || sound.equals(MUNCHING) || sound.equals(WOOF)) return checkOnDrop(tokenizer);\r\n }\r\n } else if (actionToken.equals(HIDE_SHAPE)) {\r\n if (tokenizer.hasMoreTokens()) {\r\n String shape = tokenizer.nextToken();\r\n //check if shape exists\r\n if (shapeNames.contains(shape)) return checkOnDrop(tokenizer);\r\n }\r\n } else if (actionToken.equals(SHOW_SHAPE)) {\r\n if (tokenizer.hasMoreTokens()) {\r\n String shape = tokenizer.nextToken();\r\n if (shapeNames.contains(shape)) return checkOnDrop(tokenizer);\r\n }\r\n } else {\r\n return false;\r\n }\r\n }\r\n return false;\r\n }\r\n return false;\r\n }\r\n return false;\r\n }\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "cc58f7bf289a99456f81595a794ee155", "score": "0.5082359", "text": "public void dropActionChanged(DragSourceDragEvent dsde)\r\n\t{\n\t}", "title": "" }, { "docid": "f2d9b04248e5a5f0214278a75dfe7665", "score": "0.5081143", "text": "public boolean isEventOnPacketDrop() {\n return eventOnPacketDrop;\n }", "title": "" }, { "docid": "eb73397c7fc35e85c6a37b5999c02b78", "score": "0.5079345", "text": "public void stopMonitoringToolType(String toolName){\n\t\tperformanceInformationRetriever.stopMonitoringToolType(toolName);\n\t}", "title": "" }, { "docid": "72b12d23bcc1be8e6952a69e54806bbe", "score": "0.5075794", "text": "@Override\r\n public boolean dropTables() {\r\n boolean ret = false;\r\n try {\r\n layerTable.dropTable();\r\n ret = true;\r\n } catch(Exception e) {\r\n Log.e(TAG, e.getMessage());\r\n }\r\n return ret;\r\n }", "title": "" }, { "docid": "726317948470a59230d523e0691d5689", "score": "0.50751954", "text": "public boolean shouldExecute()\n {\n if (this.runDelay <= 0)\n {\n if (!net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(this.villager.world, this.villager))\n {\n return false;\n }\n\n this.currentTask = -1;\n this.hasFarmItem = this.villager.isFarmItemInInventory();\n this.wantsToReapStuff = this.villager.wantsMoreFood();\n }\n\n return super.shouldExecute();\n }", "title": "" }, { "docid": "c29af39fc86257f12bb8384432cf417f", "score": "0.50740147", "text": "boolean isDeleteSweepNeeded();", "title": "" }, { "docid": "b5fb20b90cf4b820448bfdc30729d6ef", "score": "0.50728047", "text": "public void dropActionChanged(DropTargetDragEvent anEvent) { }", "title": "" }, { "docid": "77d7b5648bdc6b9b20fb8befc9d7f426", "score": "0.5068378", "text": "boolean isDragOngoing();", "title": "" }, { "docid": "b26a07a0bbb4ce645eb6e952a9251d09", "score": "0.5063065", "text": "boolean isGenerate_ddl_drop();", "title": "" }, { "docid": "de525ff60f43901d5de6a0b77988ccde", "score": "0.5055682", "text": "@Override\r\n\tpublic boolean drop() throws SQLException {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "b18e6503ddcaa1e19c97db340c470107", "score": "0.50539565", "text": "public interface DropTarget {\n\n /**\n * Handle an object being dropped on the DropTarget\n * \n * @param source DragSource where the drag started\n * @param x X coordinate of the drop location\n * @param y Y coordinate of the drop location\n * @param xOffset Horizontal offset with the object being dragged where the original\n * touch happened\n * @param yOffset Vertical offset with the object being dragged where the original\n * touch happened\n * @param dragView The DragView that's being dragged around on screen.\n * @param dragInfo Data associated with the object being dragged\n * \n */\n void onDrop(DragSource source, int x, int y, int xOffset, int yOffset,\n DragView dragView, Object dragInfo);\n \n void onDragEnter(DragSource source, int x, int y, int xOffset, int yOffset,\n DragView dragView, Object dragInfo);\n\n void onDragOver(DragSource source, int x, int y, int xOffset, int yOffset,\n DragView dragView, Object dragInfo);\n\n void onDragExit(DragSource source, int x, int y, int xOffset, int yOffset,\n DragView dragView, Object dragInfo);\n\n /**\n * Check if a drop action can occur at, or near, the requested location.\n * This may be called repeatedly during a drag, so any calls should return\n * quickly.\n * \n * @param source DragSource where the drag started\n * @param x X coordinate of the drop location\n * @param y Y coordinate of the drop location\n * @param xOffset Horizontal offset with the object being dragged where the\n * original touch happened\n * @param yOffset Vertical offset with the object being dragged where the\n * original touch happened\n * @param dragView The DragView that's being dragged around on screen.\n * @param dragInfo Data associated with the object being dragged\n * @return True if the drop will be accepted, false otherwise.\n */\n boolean acceptDrop(DragSource source, int x, int y, int xOffset, int yOffset,\n DragView dragView, Object dragInfo);\n\n /**\n * Estimate the surface area where this object would land if dropped at the\n * given location.\n * \n * @param source DragSource where the drag started\n * @param x X coordinate of the drop location\n * @param y Y coordinate of the drop location\n * @param xOffset Horizontal offset with the object being dragged where the\n * original touch happened\n * @param yOffset Vertical offset with the object being dragged where the\n * original touch happened\n * @param dragView The DragView that's being dragged around on screen.\n * @param dragInfo Data associated with the object being dragged\n * @param recycle {@link Rect} object to be possibly recycled.\n * @return Estimated area that would be occupied if object was dropped at\n * the given location. Should return null if no estimate is found,\n * or if this target doesn't provide estimations.\n */\n Rect estimateDropLocation(DragSource source, int x, int y, int xOffset, int yOffset,\n DragView dragView, Object dragInfo, Rect recycle);\n\n // These methods are implemented in Views\n void getHitRect(Rect outRect);\n void getLocationOnScreen(int[] loc);\n int getLeft();\n int getTop();\n}", "title": "" }, { "docid": "350680a1e614a1bc056f808720539b14", "score": "0.5043155", "text": "public boolean isKeepNBTOnDrop() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "21fdd5474921676e7ac4ef7abe92ef5b", "score": "0.5041432", "text": "private void damageTools(ArtisanRecipe recipe, IItemHandlerModifiable toolStackHandler, NonNullList<ToolEntry> tools, World world, @Nullable PlayerEntity player, BlockPos position, @Nullable IItemHandler toolReplacementHandler) {\n long mask = 0;\n\n recipeTools:\n for (ToolEntry tool : tools) { // recipe tools\n\n for (int j = 0; j < toolStackHandler.getSlots(); j++) { // table tools\n int bit = 1 << j;\n ItemStack stackInSlot = toolStackHandler.getStackInSlot(j);\n\n if ((mask & bit) != bit // haven't damaged this slot\n && !stackInSlot.isEmpty()) { // slot isn't empty\n IToolHandler toolHandler = ArtisanToolHandlers.get(stackInSlot);\n\n if (tool.matches(toolHandler, stackInSlot) // tool matches recipe\n && recipe.hasSufficientToolDurability(toolHandler, stackInSlot)) { // tool has durability\n\n mask |= bit;\n\n ItemStack toolCopy = stackInSlot.copy();\n\n if (this.onCraftDamageTool(recipe, stackInSlot, world, player)) {\n\n if (!world.isRemote) {\n world.playSound(\n null,\n position.getX(),\n position.getY(),\n position.getZ(),\n SoundEvents.ENTITY_ITEM_BREAK,\n SoundCategory.PLAYERS,\n 1.0f,\n 1.0f\n );\n }\n }\n\n if (toolReplacementHandler != null) {\n // A copy of the tool is passed so the check and replace method knows\n // which type of tool it is looking for. If the tool is destroyed by\n // the damage logic above, the check and replace method will try to\n // match air and fail.\n this.onCraftCheckAndReplaceTool(recipe, j, toolCopy, toolStackHandler, toolReplacementHandler);\n }\n continue recipeTools;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "cf554e4b90ff3bea7a330455261b4449", "score": "0.504078", "text": "protected boolean canPickup() {\n return creature.item(creature.x, creature.y, creature.z) != null & !creature.inventory().isFull();\n }", "title": "" }, { "docid": "cd60878fbd05aa4c0622d68f02609159", "score": "0.50344265", "text": "boolean getDropInvalidExamples();", "title": "" }, { "docid": "c1daa3d13f3cd22c82b9e2f9a2df8cbf", "score": "0.50274825", "text": "@Test(timeout = 4000)\n public void test124() throws Throwable {\n boolean boolean0 = SQLUtil.isDDL(\"deleteexception flshifg outp\");\n assertFalse(boolean0);\n }", "title": "" }, { "docid": "aaebea871a78ab50f4b1c47af6293786", "score": "0.5002834", "text": "@Override\n public boolean isToolEffective(String type, int metadata)\n {\n return this.getHarvestTool(metadata).equals(type);\n }", "title": "" }, { "docid": "451efa9f95ebc03e0a4138db51d3e00e", "score": "0.49971056", "text": "boolean mustDumpAssumptionForAvoidance();", "title": "" }, { "docid": "958dd2b47de89031905c0c5481d9416f", "score": "0.49969706", "text": "static boolean mayTouch(Technology tech, boolean con, Layer layer1, Layer layer2)\n {\n boolean maytouch = false;\n \t\tif (tech.sameLayer(layer1, layer2))\n \t\t{\n \t\t\tLayer.Function fun = layer1.getFunction();\n \t\t\tif (con)\n \t\t\t{\n \t\t\t\tif (!fun.isContact()) maytouch = true;\n \t\t\t} else\n \t\t\t{\n \t\t\t\tif (fun.isSubstrate()) maytouch = true;\n \t\t\t\t// Special cases for thick actives\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\t// Searching for THICK bit\n \t\t\t\t\tint funExtras = layer1.getFunctionExtras();\n \t\t\t\t\tif (fun.isDiff() && (funExtras&Layer.Function.THICK) != 0)\n \t\t\t\t\t{\n \t\t\t\t\t\tif (Job.LOCALDEBUGFLAG) System.out.println(\"Thick active found in Quick.checkDist\");\n \t\t\t\t\t\tmaytouch = true;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n return maytouch;\n }", "title": "" }, { "docid": "539d87a0c8ad7ae14d2eeecddee665fd", "score": "0.49654278", "text": "public abstract boolean dropCard();", "title": "" }, { "docid": "42e4093d3958bc7a7981ca8b2e039518", "score": "0.49553782", "text": "boolean acceptDrop(DragSource source, int x, int y, int xOffset, int yOffset,\n DragView dragView, Object dragInfo);", "title": "" }, { "docid": "edfe2d6dc9897dd51d69a2e742969914", "score": "0.49398485", "text": "public static boolean useTreshHoldAbility() {\r\n\t\tfor(int i = 0; i < 12; i++) {\r\n\t\t\tif(ActionBar.getAbilityAt(i) != null \r\n\t\t\t\t\t&& ActionBar.isAbilityAvailable(i)\r\n\t\t\t\t\t&& ActionBar.getAbilityAt(i).getAbilityType() == ActionBar.AbilityType.THRESHOLD\r\n\t\t\t\t\t&& ActionBar.getAdrenalinPercent() > 50) {\r\n\t\t\t\t\treturn ActionBar.getSlot(i).activate(true);\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "2a3569acf8a987d3b1f1c83366679593", "score": "0.4933066", "text": "public void testDrugTherapyCheck() {\n OrderCheckResultsVo results = capability.performDrugChecks(checkVo);\n\n assertTrue(\"dose check returned results\", results.getDrugTherapyCheckResults().getChecks().size() > 0);\n }", "title": "" }, { "docid": "2852c2412ae1dee9a4bf6608510deb43", "score": "0.49294424", "text": "@Override\n\tpublic void dropTreasure() {\n\t\t\n\t}", "title": "" }, { "docid": "b4ab6b7143b4283a8a3decf9ee46d319", "score": "0.49284932", "text": "@Test \n\tpublic void testToolNotFoundException() throws SQLException, ItemNotFoundException, ClassNotFoundException\n\t{\n\t\tnew Tool(25);\n\t}", "title": "" }, { "docid": "0e3a51914a0a84087983a5bc94d5cc74", "score": "0.4923854", "text": "public static boolean acceptLaneDrop(final int laneIndex, final String topNewCard) {\n final boolean acceptDrop = topNewCard.endsWith(\"s13\");\n if (acceptDrop && BuildConfig.DEBUG)\n Log.d(GameState.TAG, \"Drag -> \" + laneIndex + \": Acceptable drag of \" + topNewCard + \" onto empty lane\");\n return acceptDrop;\n }", "title": "" }, { "docid": "4aab516dbe4ac297ff857d637b230a31", "score": "0.49192756", "text": "public boolean shouldExecute()\n {\n if (delayTemptCounter > 0)\n {\n delayTemptCounter--;\n return false;\n }\n\n temptingPlayer = temptedEntity.worldObj.getClosestPlayerToEntity(temptedEntity, 10D);\n\n if (temptingPlayer == null)\n {\n return false;\n }\n\n ItemStack itemstack = temptingPlayer.getCurrentEquippedItem();\n\n if (itemstack == null)\n {\n return false;\n }\n\n return itemstack.itemID == breedingFood;\n }", "title": "" }, { "docid": "0ed07a88b4a9dc84d48a29428e283808", "score": "0.49177933", "text": "private void checkIfDone() {\r\n\t\tif (hero.isDead() || (hero.equals(exit) && dragons.size() == 0)) {\r\n\t\t\tdone = true;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5951f91102c9df96d9b067b059dbb231", "score": "0.49122438", "text": "@Override\n public void dropActionChanged(DropTargetDragEvent dtde) {\n }", "title": "" }, { "docid": "6df01f71c6b970f0f81849ae34202d6c", "score": "0.4906033", "text": "public static boolean dropTable() throws SQLException{\n\t\tPreparedStatement s = prepareStatement(DROP);\n\t\treturn s.execute();\n\t}", "title": "" }, { "docid": "c4538e0463bffaede8e3f4acf72b7725", "score": "0.49038416", "text": "protected boolean checkBeforeShoot(){\n\t\tif (shotsFired >= ROF){\n\t\t\treturn false;\n\t\t}else if (currentAmmo <= 0){\n\t\t\treturn false;\n\t\t}else {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "790a09994b3a611d47592611e51e497d", "score": "0.49016374", "text": "@Override\r\n\tpublic void dropActionChanged(DragSourceDragEvent dsde) {\n\r\n\t}", "title": "" }, { "docid": "790a09994b3a611d47592611e51e497d", "score": "0.49016374", "text": "@Override\r\n\tpublic void dropActionChanged(DragSourceDragEvent dsde) {\n\r\n\t}", "title": "" }, { "docid": "701f0d76db67aca5181ec1618798ed65", "score": "0.48954052", "text": "boolean hasDiagnostic();", "title": "" }, { "docid": "701f0d76db67aca5181ec1618798ed65", "score": "0.48954052", "text": "boolean hasDiagnostic();", "title": "" }, { "docid": "701f0d76db67aca5181ec1618798ed65", "score": "0.48954052", "text": "boolean hasDiagnostic();", "title": "" }, { "docid": "a07781ccaabbedc27e2f84991f9d78f2", "score": "0.48869556", "text": "private boolean haveTheDrop(int playerInitiative, List<Character> enemies) {\n return Numbers.ZERO.getValue() == enemies.stream()\n .filter(e -> e.getInitiative() > playerInitiative)\n .count();\n }", "title": "" }, { "docid": "3351a0514ffbf64d238fe8448bc28c42", "score": "0.48861992", "text": "public boolean allowRemoveTargetAliases(String target)\n\t{\n\t\treturn unlockTargetCheck(target);\n\n\t}", "title": "" }, { "docid": "53180bc2c47d251948fea4f4ff2256e3", "score": "0.48840314", "text": "public boolean canContinueToUse() {\n/* 327 */ return (Evoker.this.getWololoTarget() != null && this.attackWarmupDelay > 0);\n/* */ }", "title": "" }, { "docid": "fa193f8a92c8f080b0c1596a9632c3d7", "score": "0.48814073", "text": "private void dropWeapon(GameMap map) {\r\n\t\tRandom random = new Random();\r\n\t\t// noOfArm will never be 2, when drop weapon is called.\r\n\t\t// if noOfArm = 0, random generator will always return 0, which is <= weapon drop rate.\r\n\t\t// if noOfArm = 1, random generator will return as normal.\r\n\t\tboolean dropWeapon = (random.nextInt(100) * noOfArm) <= WEAPON_DROP_RATE;\r\n\t\t// has 50% chance to drop weapon if the current zombie drop an arm (still has 1 arm)\r\n\t\tif (dropWeapon) {\r\n\t\t\tfor (Item item : this.getInventory()) {\r\n\t\t\t\tif (item.hasCapability(ItemCapability.MELEEWEAPON)) {\r\n\t\t\t\t\titem.getDropAction().execute(this, map);\r\n\t\t\t\t\thasWeapon = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f2a4ae92fe5c62275ca3975426fb7091", "score": "0.48736542", "text": "private boolean checkItemArg(Entity e, CCommandInput commandInput, Queue<IComponent> toAdd) {\r\n EcsManager ecs = EcsManager.getInstance();\r\n\r\n if (commandInput.args.size() < 1) {\r\n toAdd.add(new COutDialog(\"Drop what ?\"));\r\n ecs.remove(e, commandInput);\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "d6d404ad471a0b917425c36ff573d027", "score": "0.48560688", "text": "private boolean verifyDestionationOptions()\n {\n if (mOutputExternal.isChecked() || mOutputSend.isChecked())\n return true;\n \n return false; \n }", "title": "" }, { "docid": "f9a09b3786bb50d76a85cbed47f82a9c", "score": "0.48439884", "text": "boolean hasCommandRunAfterTestRunHooks();", "title": "" }, { "docid": "8a3920a2c333bd6f208caaf132aab982", "score": "0.4843043", "text": "boolean hasShouldCheckDescriptor();", "title": "" }, { "docid": "e57c226350213db663c7188bd702419b", "score": "0.48363826", "text": "public boolean shouldExecute()\n {\n return field_46106_a.isInWater() || field_46106_a.handleLavaMovement();\n }", "title": "" }, { "docid": "5e40130955301d00b6ecda740525c0b4", "score": "0.48149988", "text": "protected boolean canDrag() {\n return true;\n }", "title": "" }, { "docid": "d0f70d8e8cfc518fa48954848703fabb", "score": "0.4807246", "text": "boolean hasPickleRejected();", "title": "" }, { "docid": "bf14935d0c7516cfa0ce6a7a819c3f67", "score": "0.48051217", "text": "boolean hasDefender();", "title": "" }, { "docid": "26767980225e4a9a89405c6fb745166a", "score": "0.48008588", "text": "public void dropActionChanged(DropTargetDragEvent event) {\n\t}", "title": "" }, { "docid": "c772922d4edd5309b4904b9c8c769807", "score": "0.47964588", "text": "public void CheckExclusions(abPlaceable p) throws Exception {\n if( p instanceof RangedWeapon ) {\n if( ((RangedWeapon) p).RequiresNuclear() &! Owner.GetEngine().IsNuclear() ) {\n throw new Exception( p.CritName() + \" may not be mounted as it requires a nuclear engine.\" );\n }\n if( ((RangedWeapon) p).RequiresFusion() &! Owner.GetEngine().IsFusion() ) {\n throw new Exception( p.CritName() + \" may not be mounted as it requires a fusion engine.\" );\n }\n }\n if( p instanceof Equipment ) {\n if( ((Equipment) p).RequiresNuclear() &! Owner.GetEngine().IsNuclear() ) {\n throw new Exception( p.CritName() + \" may not be mounted as it requires a nuclear engine.\" );\n }\n if( ((Equipment) p).RequiresFusion() &! Owner.GetEngine().IsFusion() ) {\n throw new Exception( p.CritName() + \" may not be mounted as it requires a fusion engine.\" );\n }\n }\n if( p instanceof ExtendedFuelTank ) {\n if( ! Owner.GetEngine().IsICE() &! Owner.GetEngine().isFuelCell() ) {\n throw new Exception( p.CritName() + \" may not be mounted on this Vehicle because the engine is incompatible.\" );\n }\n }\n if( p.GetExclusions() == null ) { return; }\n String[] exclude = p.GetExclusions();\n\n for( int i = 0; i < exclude.length; i++ ) {\n // queue first\n abPlaceable test;\n for( int j = 0; j < GetNonCore().size(); j++ ) {\n test = (abPlaceable) GetNonCore().get( j );\n if( test.CritName().equals( exclude[i] ) ) {\n throw new Exception( \"A Vehicle may not mount an \" + p.CritName() + \" if it\\nalready mounts an \" + test.CritName() );\n }\n }\n // special addition for a targeting computer that is not in the loadout yet\n if( Use_TC ) {\n if( CurTC.CritName().equals( exclude[i] ) ) {\n throw new Exception( \"A Vehicle may not mount an \" + p.CritName() + \" if it\\nalready mounts an \" + CurTC.CritName() );\n }\n }\n }\n }", "title": "" }, { "docid": "3c7720817a19649bf76f63032ed8649f", "score": "0.47951317", "text": "private boolean avoidTouchingGhostAhead() {\n\t\tGhost enemy = dangerousGhostsInRange(2).filter(ghost -> guy.moveDir == ghost.moveDir).findAny().orElse(null);\n\t\tif (enemy != null) {\n\t\t\tflee(enemy);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "3d51f674fca0ea1b6c8a3e5cadb85f14", "score": "0.47933745", "text": "private boolean hasUseableTarget() {\n return limelight.hasValidTarget() && limelight.getLEDMode() != LimelightLEDMode.OFF && !limelight.isDriverCam()\n && limelight.getCurrentPipeline() == odometryPipeline;\n }", "title": "" }, { "docid": "e7a3679b2cb60a648e304488d1f2929a", "score": "0.47927392", "text": "public boolean isSuccessfullyDropped()\n {\n return successfullyDropped;\n }", "title": "" }, { "docid": "8cd6f54769654d318c0aa4d12ab2da0a", "score": "0.47902066", "text": "public void stopMonitoringTool(ATerm toolKey){\n\t\tperformanceInformationRetriever.startMonitoringTool(toolKey);\n\t}", "title": "" }, { "docid": "3c7c9397c55981d651db6abb1c52dca5", "score": "0.47896415", "text": "private static boolean sanityCheck(Pokemon saneSwitch, Pokemon enemy, int switchDamage)\n\t{\n\t\tMove secondTurnBestMove = Pokequations.bestMove(enemy, saneSwitch);\n\t\tMove secondTurnOurBestMove = Pokequations.bestMove(saneSwitch, enemy);\n\t\tif(\tsecondTurnBestMove.getProjectedPercent(saneSwitch).y + switchDamage - saneSwitch.getHealth() > 0 || \n\t\t\tsecondTurnOurBestMove.getProjectedPercent(enemy).x - enemy.getHealth() <= 0 && saneSwitch.isFasterThan(enemy))\n\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b87035c105ff1e9c5d21528f19612c73", "score": "0.47891966", "text": "public boolean shouldContinueExecuting()\n {\n return this.eatingGrassTimer > 0;\n }", "title": "" }, { "docid": "840649072fe86a21530c19c8abd6410b", "score": "0.4787039", "text": "public boolean isCurrentToolAdventureModeExempt(int par1, int par2, int par3)\n {\n if (this.capabilities.allowEdit)\n {\n return true;\n }\n else\n {\n Block var4 = this.worldObj.getBlock(par1, par2, par3);\n\n if (var4.getMaterial() != Material.air)\n {\n if (var4.getMaterial().isAdventureModeExempt())\n {\n return true;\n }\n\n if (this.getCurrentEquippedItem() != null)\n {\n ItemStack var5 = this.getCurrentEquippedItem();\n\n if (var5.func_150998_b(var4) || var5.func_150997_a(var4) > 1.0F)\n {\n return true;\n }\n }\n }\n\n return false;\n }\n }", "title": "" }, { "docid": "9536ba11c3a8d863a4db90335cd9793d", "score": "0.47848856", "text": "public boolean isDangerousHelper(){\n\t\tTrainCarNode nodePtr = head;\n\t\tfor(int i = 1; i <= this.size(); i++){\n\t\t\tif(nodePtr.getCar().getProductLoad().getDanger())\n\t\t\t\treturn true;\n\t\t\tnodePtr = nodePtr.getNext();\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f6899044f72caab3ea934f2a80a1dac4", "score": "0.47848433", "text": "@Override\n public void dropActionChanged(DragSourceDragEvent dsde) {\n //System.out.println( \"DockingPanel: DragActionChanged() called: \" + dsde );\n }", "title": "" }, { "docid": "3095b4053c8ae4a1b4298773a3fbc1cd", "score": "0.47815055", "text": "public void checkBulletDie(Tower tower) {\n\t\tif (getBullet!=null && tower.bulletOfTowerDie == 1){\r\n\t\t\tgetBullet = tower.getBulletSprite(); // gets bullets from\r\n\t\t\ttower.bulletOfTowerDie = 2;\r\n\t\t\t// Tower class where bullets are fired from\r\n\t\t\tscene.detachChild(getBullet); // no longer needed to be shown\r\n\r\n\t\t\tgetBullet.dispose();\r\n\t\t\tgetBullet=null;\r\n\r\n\t\t\t// you can remove shoot enemies here or create enemy class with\r\n\t\t\t// its own life here\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4488bddc95e3b526c98b1b587b9a9b4b", "score": "0.4779887", "text": "public boolean checkForLoss() {\n return (hero.getPosition().equals(minotaur.getPosition()));\n }", "title": "" }, { "docid": "7cfe3860e47104bd4bd32d037178fab8", "score": "0.47785512", "text": "private boolean canSelectTool(\n MotionEvent e) {\n\n if (mIsEditToolbarShown) {\n return false;\n }\n\n ToolMode toolMode = ToolManager.getDefaultToolMode(getToolMode());\n if (mForceSameNextToolMode &&\n toolMode != ToolMode.INK_CREATE &&\n toolMode != ToolMode.INK_ERASER &&\n toolMode != ToolMode.TEXT_ANNOT_CREATE) {\n\n setCurrentDefaultToolModeHelper(toolMode);\n\n int x = (int) (e.getX() + 0.5);\n int y = (int) (e.getY() + 0.5);\n Annot tempAnnot = mPdfViewCtrl.getAnnotationAt(x, y);\n int page = mPdfViewCtrl.getPageNumberFromScreenPt(x, y);\n try {\n if (null != tempAnnot && tempAnnot.isValid()) {\n ((ToolManager) mPdfViewCtrl.getToolManager()).selectAnnot(tempAnnot, page);\n return true;\n } else {\n mNextToolMode = getToolMode();\n }\n } catch (PDFNetException ignored) {\n }\n }\n return false;\n\n }", "title": "" }, { "docid": "4a300d3ed23fb0a17e3bca742e89c146", "score": "0.4773407", "text": "public boolean dropTemporaryTableAfterUse() {\n \t\treturn true;\n \t}", "title": "" }, { "docid": "a074af43e6b839692d8d6a6f3f590fb3", "score": "0.47635633", "text": "public boolean canDrag() {\n return isInUseRange() && parentTile.canMoveItem();\n }", "title": "" }, { "docid": "1dee69ede48707e4bc6a845064b60f14", "score": "0.47588322", "text": "void checkTxNeverWithTx();", "title": "" }, { "docid": "aeb9c4cfb3631f9d15c2f6ddcf1095d4", "score": "0.475763", "text": "boolean canBeUsed();", "title": "" }, { "docid": "a62ed1ed3e8b8d953f22d233ca0bdfa3", "score": "0.47575104", "text": "public boolean dropItem(Item item) {\r\n\t\tif (items.remove(item)) {\r\n\t\t\tweight -= item.getWeight();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "47fc4d1537e1cb207febd256ec1f7139", "score": "0.47483054", "text": "public boolean shouldExecute()\n\t{\n\t\tif (!this.golem.hasOwner())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tEntityLivingBase entitylivingbase = this.golem.getOwner();\n\n\t\t\tif (entitylivingbase == null)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.attacker = entitylivingbase.getRevengeTarget();\n\t\t\t\tint i = entitylivingbase.getRevengeTimer();\n\t\t\t\treturn i != this.timestamp && this.isSuitableTarget(this.attacker, false) && this.golem.shouldAttackEntity(this.attacker, entitylivingbase);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0d18aae3b247b472520f4409c664509e", "score": "0.47480386", "text": "public void doDropPartsInKit()\n\t{\n\n\t}", "title": "" }, { "docid": "f55e31ab8c88e72898eeb700b759163d", "score": "0.4739388", "text": "public boolean canBreakHealSeal(){\n\t\treturn getSpeciesID()==MOEHOG && (MConst.equipBreaksHealSeal(weapon) || MConst.equipBreaksHealSeal(armor));\n\t}", "title": "" }, { "docid": "d398229e6ae9bedfa8f536b3d7076e9f", "score": "0.47375444", "text": "@EventHandler\n public void onItemDrop(EntityDropItemEvent e) {\n if (!getPlayers().contains(e.getEntity()))\n return;\n\n e.setCancelled(true);\n }", "title": "" }, { "docid": "1ae7692e6163d9e42bc66239d40f8b4a", "score": "0.47375187", "text": "@Override\n public boolean checkLose(Player player) {\n Pair<List<MoveCommandMessage>, List<BuildCommandMessage>> actions = computeAvailableActions(player);\n if (player.getActions().mustMove()) {\n return actions.getFirst().isEmpty();\n }\n if (player.getActions().mustBuild()) {\n return actions.getSecond().isEmpty();\n }\n return false;\n }", "title": "" }, { "docid": "23f4afc25409a0d8b37c6f50630731db", "score": "0.4733388", "text": "private boolean isDroughtPeriod(Point2D.Double ferengiPosition, Point2D.Double betasoidePosition) {\n\n return doubleEquals(triangleArea(ferengiPosition, betasoidePosition, SUN_POSITION), 0);\n }", "title": "" } ]
3e1b2f925b3289d84f9dca434cfe2d53
Using the standard AWS lambda logger
[ { "docid": "f80e4e4a8ad7e7b6554fc85d537ffb76", "score": "0.0", "text": "public APIGatewayProxyResponseEvent handleRequest(APIGatewayProxyRequestEvent event, Context context) {\n\t\tLambdaLogger logger = context.getLogger();\n\n\t\t// Declare and instance the response\n\t\tAPIGatewayProxyResponseEvent response = new APIGatewayProxyResponseEvent();\n\n\t\t// Declare and instance the JSON parser\n\t\tJSONParser parser = new JSONParser();\n\n\t\t// Request\n\t\tString message = null;\n\t\tString bodyStr = event.getBody();\n\n\t\t// Response\n\t\tMap<String, String> responseBody = new HashMap<String, String>();\n\t\tString responseBodyString = null;\n\n\t\t// Just for diagnosis\n\t\tlogger.log(\"Received event body: \" + bodyStr);\n\n\t\t// Input must be JSON and must contain Keys.RQST_MESSAGE field\n\t\tif (bodyStr != null) {\n\t\t\tJSONObject body;\n\n\t\t\ttry {\n\t\t\t\tbody = (JSONObject) parser.parse(bodyStr);\n\t\t\t\tif (body.get(Keys.RQST_MESSAGE) != null) {\n\t\t\t\t\tmessage = (String) body.get(Keys.RQST_MESSAGE);\n\t\t\t\t\tresponse.setStatusCode(200);\n\t\t\t\t\tresponseBody.put(Keys.RESP_MESSAGE, \"Received message: '\" + message + \"'\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tresponse.setStatusCode(400);\n\t\t\t\t\tresponseBody.put(Keys.RESP_ERROR,\"Body missing field: \"+Keys.RQST_MESSAGE);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (ParseException e) {\n\t\t\t\tlogger.log(\"ERROR parsing JSON: \" + e.toString());\n\t\t\t\tresponse.setStatusCode(400);\n\t\t\t\tresponseBody.put(Keys.RESP_ERROR,\"ERROR parsing JSON: \" + e.toString());\n\t\t\t}\n\t\t}\n\n\t\tresponse.setHeaders(Collections.singletonMap(\"x-time-received\", Calendar.getInstance().toString()));\n\t\tresponseBodyString = JSONObject.toJSONString(responseBody);\n\t\tresponse.setBody(responseBodyString);\n\n\t\treturn response;\n\t}", "title": "" } ]
[ { "docid": "0da66ac22d7d9b4f1fa0cd160770fe27", "score": "0.60507786", "text": "@Override\n\tpublic LambdaLogger getLogger() {\n\t\treturn logger;\n\t}", "title": "" }, { "docid": "14009c06c72e95a5c55ac783ba018568", "score": "0.59539104", "text": "protected abstract EventSink logger();", "title": "" }, { "docid": "6b1c6ea142c0842b419506f87fa41056", "score": "0.5824646", "text": "public abstract String getLog();", "title": "" }, { "docid": "27a8c40c8ebe26c7e2457a1bd6254a82", "score": "0.57519937", "text": "public static void main (String[] args)\n {\n Context c = new Context() {\n @Override\n public String getAwsRequestId() {\n return \"\";\n }\n\n @Override\n public String getLogGroupName() {\n return \"\";\n }\n\n @Override\n public String getLogStreamName() {\n return \"\";\n }\n\n @Override\n public String getFunctionName() {\n return \"\";\n }\n\n @Override\n public String getFunctionVersion() {\n return \"\";\n }\n\n @Override\n public String getInvokedFunctionArn() {\n return \"\";\n }\n\n @Override\n public CognitoIdentity getIdentity() {\n return null;\n }\n\n @Override\n public ClientContext getClientContext() {\n return null;\n }\n\n @Override\n public int getRemainingTimeInMillis() {\n return 0;\n }\n\n @Override\n public int getMemoryLimitInMB() {\n return 0;\n }\n\n @Override\n public LambdaLogger getLogger() {\n return new LambdaLogger() {\n @Override\n public void log(String string) {\n System.out.println(\"LOG:\" + string);\n }\n };\n }\n };\n\n S3Query lt = new S3Query();\n\n Request req = new Request();\n\n Properties properties = new Properties();\n properties.setProperty(\"driver\", \"com.mysql.cj.jdbc.Driver\");\n properties.setProperty(\"url\",\"\");\n properties.setProperty(\"username\",\"\");\n properties.setProperty(\"password\",\"\");\n try \n {\n properties.store(new FileOutputStream(\"test.properties\"),\"\");\n }\n catch (IOException ioe)\n {\n System.out.println(\"error creating properties file.\") ;\n }\n System.out.println(\"The MySQL Serverless can't be called directly without running on the same VPC as the RDS cluster.\");\n Response resp = new Response();\n System.out.println(\"function result:\" + resp.toString());\n \n }", "title": "" }, { "docid": "ceade7d9da33965fd42566031d61b9b7", "score": "0.5695548", "text": "private void sampleLogging() {\n logger.info(\"entering\");\n try {\n willFail();\n } catch (NullPointerException e) {\n logger.exception(e);\n }\n logger.warn(\"An exception occured!\");\n logger.info(\"exiting\");\n }", "title": "" }, { "docid": "bc4a8a2e3855be240a517031694ad899", "score": "0.56779176", "text": "@Override\n\tpublic void log() {\n\t\t\n\t}", "title": "" }, { "docid": "d4064f33046d5d5ed9e43d0dc3e2e1f3", "score": "0.5661718", "text": "Log createLog();", "title": "" }, { "docid": "228e77fc369b1e887ee753974c016be1", "score": "0.5654303", "text": "void log(String msg);", "title": "" }, { "docid": "e5c0ba34a52dbfcaa060e35db8b15cf5", "score": "0.56438196", "text": "private static Logger getLogger() {\n return LoggerFactory.getLogger(Signer.class);\n }", "title": "" }, { "docid": "9372b389a87fd764e78b446bf4bd0e47", "score": "0.56171733", "text": "@Override\n\tpublic void log() {\n\t}", "title": "" }, { "docid": "ca3f49fe2cf80d7554a8792c7c0f7bf5", "score": "0.560416", "text": "public static void main(String[] args) {\n logger.info(\"sad\");\n logger.error(\"dsfsfd\");\n\n\n }", "title": "" }, { "docid": "a366f8fab4da1b9f26d3d7af4f80d749", "score": "0.55853385", "text": "private Log() {}", "title": "" }, { "docid": "a366f8fab4da1b9f26d3d7af4f80d749", "score": "0.55853385", "text": "private Log() {}", "title": "" }, { "docid": "36f466f5b184d447e1adeeb3722ccb5e", "score": "0.5558934", "text": "private LogUtil() {}", "title": "" }, { "docid": "6408b8dd8b00ef8fa3ca5659adc6aa6c", "score": "0.5550221", "text": "private void initializeLogging() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d6ec4371db49c2065abd09f821385f69", "score": "0.55433595", "text": "Log getLog();", "title": "" }, { "docid": "7ddab4ccc471d28c25128c5bc1a8f4cb", "score": "0.55188066", "text": "private void log(String s) {\n }", "title": "" }, { "docid": "df28e2e278e7277a4809b720fb1c9d5d", "score": "0.5489411", "text": "void log(String message);", "title": "" }, { "docid": "b017375359b3658d510bf42260101778", "score": "0.5488257", "text": "String logMessage();", "title": "" }, { "docid": "cb1dad4bc320d15561e5f3c7ecae18b5", "score": "0.5472997", "text": "java.lang.String getLog();", "title": "" }, { "docid": "cb1dad4bc320d15561e5f3c7ecae18b5", "score": "0.5472997", "text": "java.lang.String getLog();", "title": "" }, { "docid": "81daf77fcf6c24bde420e51b26bb02ec", "score": "0.54714173", "text": "private static void log(String s) { Log.log(s); }", "title": "" }, { "docid": "119010688b8ebd9a76420c8fc3f66f7a", "score": "0.5470902", "text": "@Around(\"(execution(*.new(..)) || execution(* *(..))) && (@within(LogMethods) || @annotation(LogMethods))\")\n public Object around(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {\n \n LOGGER.info(\"around(ProceedingJoinPoint: {}) [START]\", proceedingJoinPoint.getKind());\n \n //------------------------ Pre-Checks ----------------------------------\n \n //-------------------------CONSTANTS------------------------------------\n\n //-------------------------Variables------------------------------------\n ///// Tier 1 /////\n boolean isLambda = false, logArguments, logDuration, logResults, skipLogging;\n int modifiers;\n\n Class<?> classObj = proceedingJoinPoint.getSignature().getDeclaringType(), // Target is null for static methods.\n methodReturnType;\n Executable executable;\n LocalDateTime startTime, endTime;\n LogMethods classAnnotation, constructorMethodAnnotation;\n Signature signature = proceedingJoinPoint.getSignature();\n Object toRet;\n String constructorMethodName;\n StringBuilder logString;\n\n String[] parameterNames;\n\n ///// Tier 2 /////\n Logger logger = LogManager.getLogger(classObj);\n\n //-------------------------Code-----------------------------------------\n ////////// Get Annotation(s), Modifiers, Name, & Return Type //////////\n classAnnotation = classObj.getAnnotation(LogMethods.class);\n if(signature instanceof ConstructorSignature) {\n ConstructorSignature constructorSignature = ((ConstructorSignature) signature);\n Constructor constructor = constructorSignature.getConstructor();\n constructorMethodName = signature.getDeclaringType().getSimpleName();\n parameterNames = constructorSignature.getParameterNames();\n methodReturnType = null;\n\n executable = constructor;\n }\n else {\n MethodSignature methodSignature = ((MethodSignature) signature);\n Method method = methodSignature.getMethod();\n constructorMethodName = method.getName();\n parameterNames = methodSignature.getParameterNames();\n methodReturnType = method.getReturnType();\n \n executable = method;\n \n if(constructorMethodName.matches(\"lambda\\\\$[0-9]+\")) {\n isLambda = true;\n }\n }\n constructorMethodAnnotation = executable.getAnnotation(LogMethods.class);\n modifiers = executable.getModifiers();\n\n ///// Get Annotation(s) Values /////\n logArguments = constructorMethodAnnotation != null ? constructorMethodAnnotation.arguments() : classAnnotation.arguments();\n logDuration = constructorMethodAnnotation != null ? constructorMethodAnnotation.duration() : classAnnotation.duration();\n logResults = constructorMethodAnnotation != null ? constructorMethodAnnotation.returns() : classAnnotation.returns();\n skipLogging = constructorMethodAnnotation != null && constructorMethodAnnotation.skip();\n\n ////////// Early Exit Checks //////////\n\n // Early Exit Check //\n if(constructorMethodName.startsWith(\"$SWITCH_TABLE$\")) {\n toRet = proceedingJoinPoint.proceed();\n LOGGER.debug(\"around(ProceedingJoinPoint: {}) [END]: $SWITCH_TABLE$\", proceedingJoinPoint.getKind());\n return toRet;\n }\n if(skipLogging) {\n toRet = proceedingJoinPoint.proceed();\n LOGGER.debug(\"around(ProceedingJoinPoint: {}) [END]: @LogMethods(skip=true)\", proceedingJoinPoint.getKind());\n return toRet;\n }\n\n ////////// Log Method Start //////////\n ///// Construct Log String /////\n logString = new StringBuilder(constructorMethodName + \"(\");\n for(int i = 0; i < proceedingJoinPoint.getArgs().length; i++) {\n\n logString.append(parameterNames[i]);\n if(logArguments) {\n logString.append(\": \").append(toLogString(proceedingJoinPoint.getArgs()[i])); // Log Value.\n }\n else {\n logString.append(\" (\").append(executable.getParameterTypes()[i].getSimpleName()).append(\")\"); // Log Class/Type.\n }\n if(i < proceedingJoinPoint.getArgs().length - 1) {\n logString.append(\", \");\n }\n }\n logString.append(\") \");\n \n ///// Perform Logging /////\n if(isLambda) {\n logger.trace(logString + \"[START]\");\n }\n else if(Modifier.isPublic(modifiers)) {\n logger.info(logString + \"[START]\");\n }\n else {\n logger.debug(logString + \"[START]\");\n }\n \n ////////// Run Method //////////\n startTime = LocalDateTime.now();\n toRet = proceedingJoinPoint.proceed(); // TODO: Catch and log Throwables.\n endTime = LocalDateTime.now();\n\n ////////// Log Method End //////////\n logString.append(\"[END]\");\n if(logDuration) {\n Duration timeSpent = Duration.between(startTime, endTime);\n logString.append(\" {\").append(timeSpent).append(\"}\");\n }\n ///// Construct Log String /////\n if(methodReturnType != null && methodReturnType != Void.TYPE && logResults) {\n logString.append(\"\\n\\t=> \").append(toLogString(toRet));\n }\n \n ///// Perform Logging /////\n if(isLambda) {\n logger.trace(logString.toString());\n }\n else if(Modifier.isPublic(modifiers)) {\n logger.debug(logString.toString());\n }\n else {\n logger.trace(logString.toString());\n }\n \n LOGGER.debug(\"around(ProceedingJoinPoint: {}) [END]: Object\", proceedingJoinPoint.getKind());\n \n return toRet;\n }", "title": "" }, { "docid": "2933cd95c7396bb5796be619f6b6dd4f", "score": "0.5461336", "text": "public Logger logger();", "title": "" }, { "docid": "d7dd77ec7f12065af19ae0740cf60137", "score": "0.5449987", "text": "public interface Logger {\n final String TAG_TRAVELER = \"Noogle \";\n\n void logException(String tag, Exception e);\n void logException(Exception e);\n void d(String message);\n void d(String tag, String message);\n void i(String message);\n void i(String tag, String message);\n void e(String message);\n void e(String tag, String message);\n}", "title": "" }, { "docid": "00c1dfb2e0b4ef744c077abd4b8624c1", "score": "0.54344", "text": "@Override\n\tpublic void log(String log) {\n\t\t\n\t}", "title": "" }, { "docid": "c0d2d58014184a57f23b9aa18b15fe1a", "score": "0.5427432", "text": "public void smsLogger(String var, String fun_name, String timestamp, String voucherpin) throws IOException\n {\n mylogger.info(\"\\n\"+var+\"Function: \"+fun_name+\" TimeStamp is: \"+timestamp+\", VoucherPin is: \"+voucherpin);\n }", "title": "" }, { "docid": "4ce411659824ec068229f6c969e92675", "score": "0.54195464", "text": "void logTo(EELFLogger log);", "title": "" }, { "docid": "1031dcf5c1c2772244c431afeba1ba69", "score": "0.54016954", "text": "void getLogs (String contract, String address, String event, int rid);", "title": "" }, { "docid": "c54ccd49e1f2acafc90e97838bbe7498", "score": "0.54001147", "text": "public void log(String s){\n }", "title": "" }, { "docid": "b3f66441bf79730660ba5df841b751d4", "score": "0.53891134", "text": "@Test\n void demoDefineYourOwnLoggingEventListeners() {\n\n try (LoggingTestUtil loggingTestUtil = new LoggingTestUtil()) {\n\n loggingTestUtil.addLoggingEventListener(loggingEvent -> System.out.println(loggingEvent.getMessage()));\n\n LOGGER.warn(\"Message without an arg\");\n LOGGER.warn(\"Message that says {} with an arg!\", \"Hello\");\n\n // Will print:\n // Message without an arg\n // Message that says {} with an arg!\n }\n }", "title": "" }, { "docid": "747dc36dd6fa4f44dd3ad3a215f64751", "score": "0.5387209", "text": "@Override \n public void log(Request req, Response res, long time) {\n \n }", "title": "" }, { "docid": "c6e3fe61e6399989cc315d363df33a02", "score": "0.534815", "text": "private static void log(String s) {\n\t}", "title": "" }, { "docid": "bb5583e23b6678077467864a879701ce", "score": "0.5314821", "text": "public void log(String message);", "title": "" }, { "docid": "bb5583e23b6678077467864a879701ce", "score": "0.5314821", "text": "public void log(String message);", "title": "" }, { "docid": "bb5583e23b6678077467864a879701ce", "score": "0.5314821", "text": "public void log(String message);", "title": "" }, { "docid": "ae0a99e269bcbc4f991e1defeed081d6", "score": "0.53139424", "text": "public abstract Logger getLog();", "title": "" }, { "docid": "ca4daa50aa5210c4b762513f4918cb2f", "score": "0.52974105", "text": "@Test\n public void testLogSleuthField() {\n logDetails.getMdc().put(\"service\", \"log4j2\");\n logDetails.getMdc().put(\"X-B3-SpanId\", \"testSpan\");\n logDetails.getMdc().put(\"X-B3-TraceId\", \"testTrace\");\n logDetails.getMdc().put(\"X-Span-Export\", \"testExport\");\n final Object event = newEvent(logDetails);\n String payload = log(event, logDetails);\n assertPayload(payload);\n }", "title": "" }, { "docid": "9c6386272e7372a4d4e1a0e18ea0b934", "score": "0.52853703", "text": "public abstract void log(String msg);", "title": "" }, { "docid": "f6390de943e7b7cb9c6956795df79510", "score": "0.5241043", "text": "LogEvent(Logger.LogLevel level, String nameLogger, String message, Throwable ex){\n// dateEvent = new Date();\n threadName = Thread.currentThread().getName();\n priority = level;\n this.nameLogger = nameLogger;\n this.message = message;\n this.ex = ex; //it is need at modifayed\n createCausingNames();\n }", "title": "" }, { "docid": "caea5fe6ef3f41633c38dd1a0c7f31b6", "score": "0.5238172", "text": "private Logger(){\n\t\t\n\t}", "title": "" }, { "docid": "9cf6ad01a9af9dec307d23e80be92839", "score": "0.52254784", "text": "void log(DMAPLogger logger, Level level);", "title": "" }, { "docid": "4f484f518b417027c2ba95ba4260dd8d", "score": "0.51978314", "text": "void logEvent(String message);", "title": "" }, { "docid": "a862d721151a0d0020d102577e8c8193", "score": "0.5183958", "text": "public void handler(S3Event event, Context context) {\n\t\tLogger logger = LoggerFactory.getLogger(PatientCheckoutLambda.class);\n\n\t\tevent.getRecords().forEach(record -> {\n\t\t\tS3ObjectInputStream s3inputStream = s3\n\t\t\t\t\t.getObject(record.getS3().getBucket().getName(), record.getS3().getObject().getKey())\n\t\t\t\t\t.getObjectContent();\n\t\t\ttry {\n\t\t\t\tlogger.info(\"Reading data from s3\");\n\t\t\t\tList<PatientCheckoutEvent> patientCheckoutEvents = Arrays\n\t\t\t\t\t\t.asList(objectMapper.readValue(s3inputStream, PatientCheckoutEvent[].class));\n\t\t\t\tlogger.info(patientCheckoutEvents.toString());\n\t\t\t\ts3inputStream.close();\n\t\t\t\tlogger.info(\"Message being published to SNS\");\n\t\t\t\tpublishMessageToSNS(patientCheckoutEvents);\n\t\t\t} catch (JsonParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (JsonMappingException e) {\n\t\t\t\tlogger.error(\"Exception is:\", e);\n\t\t\t\tthrow new RuntimeException(\"Error while processing S3 event\",e);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t});\n\t}", "title": "" }, { "docid": "dbe0f70ed225b4400a83ae7484b3e3d3", "score": "0.51678276", "text": "public interface LogFilter extends Logger\n{\n\t/**\n\t * Return the configured instance name of the filter\n\t * @return String The instance name\n\t */\n String getInstanceName();\n\n\t/**\n\t * Return the next log filter in the chain otherwise null\n\t * @return LogFilter The next filter or null\n\t */\n LogFilter getNextFilter();\n\n\t/**\n\t * Execute a filter command using the Chain of Responsibly and Command patterns.\n * @param instanceName The target instanceName for the command\n\t * @param command The command to execute\n\t */\n void executeFilterCommand(LogFilterCommand command);\n\n}", "title": "" }, { "docid": "20c4f783301b84a26746e5696bbb6165", "score": "0.5161956", "text": "@Override\n public Logs logs()\n {\n throw new NotImplementedException(\"Not implemented\");\n }", "title": "" }, { "docid": "8f154439380bd181e798fd4db256e5ad", "score": "0.51590884", "text": "public interface LogFunction {\n\n void d(String tag, String message);\n void e(String tag, String message);\n void i(String tag, String message);\n void json(String tag, String message);\n void v(String tag, String message);\n\n}", "title": "" }, { "docid": "1d8b0db70235b4a2cf2f2bf22a33d624", "score": "0.51549065", "text": "Logger getRootLogger();", "title": "" }, { "docid": "af41b2c15c088f3634ac5d554c77164f", "score": "0.5153029", "text": "void intercept(LogLevel logLevel, Logger log, String msg);", "title": "" }, { "docid": "7f4dd3d148ebadd2caeecccd00d1cc92", "score": "0.51505107", "text": "private RMSLogger() {\r\n\t}", "title": "" }, { "docid": "fd3ade4253e0b5b55df8bf2d2e6f71e4", "score": "0.5148806", "text": "@Test\n public void testLogging(){\n given().get(\"https://jsonplaceholder.typicode.com/posts/3\").\n then().statusCode(200).log().all();\n }", "title": "" }, { "docid": "9a7135396516a3b553a4f888836d8312", "score": "0.5144911", "text": "void intercept(LogLevel logLevel, Logger log, String msg, Throwable t);", "title": "" }, { "docid": "9a8cc8abe790232e11966a651960a1ac", "score": "0.5144629", "text": "public void log(String message, Severity sev, Object source);", "title": "" }, { "docid": "058fa408ee75884e3d079a69b6419788", "score": "0.5135402", "text": "private void log(String msg) {\r\n System.out.println(msg);\r\n }", "title": "" }, { "docid": "f3b519fabaaca8f607face8b46855a44", "score": "0.512586", "text": "public void startCapturingApplicationLogs() {\n // We need to load the appropriate log handler using the runtime class loader\n // because it depends on the ApiProxy class, which is not accessible to code loaded\n // by the system class loader.\n try {\n Class<?> handlerClass =\n Class.forName(\"com.google.apphosting.runtime.NullSandboxLogHandler\", true, runtimeLoader);\n Object logHandler = handlerClass.getDeclaredConstructor().newInstance();\n Method m = handlerClass.getMethod(\"init\", Logger.class);\n m.invoke(logHandler, rootLogger);\n } catch (ReflectiveOperationException e) {\n throw new RuntimeException(\"failed to install the LogHandler for application logs\", e);\n }\n }", "title": "" }, { "docid": "e4f05ffbc9c8a7abac9a866b954e5c81", "score": "0.5102841", "text": "private static void setupLogger() throws IOException {\n logHandler = new FileHandler(summary.toString(),true);\n logHandler.setFormatter(new SimpleFormatter());\n logHandler.setLevel(Level.ALL);\n LOGGER.addHandler(logHandler);\n }", "title": "" }, { "docid": "672b314812e8b3af4bea96cb887a6302", "score": "0.51013", "text": "public abstract void Log(String logTag, String logMsg);", "title": "" }, { "docid": "8e3ba0a54c740137eb30e441279ac767", "score": "0.5085986", "text": "private LogHelper() {\n }", "title": "" }, { "docid": "2ad09f3410ce8419bf6411d66a22a217", "score": "0.5085898", "text": "public void log(int severity, String message);", "title": "" }, { "docid": "f3074a4c0e69d68c5aa47dd3550d8553", "score": "0.5082726", "text": "void intercept(LogLevel logLevel, Logger log, String format, Object arg);", "title": "" }, { "docid": "43a27bf54f21f3e8227c17134c678382", "score": "0.5065695", "text": "LogEvent(Logger.LogLevel level, String nameLogger, String message){\n// dateEvent = new Date();\n threadName = Thread.currentThread().getName();\n priority = level;\n this.nameLogger = nameLogger;\n this.message = message;\n createCausingNames();\n }", "title": "" }, { "docid": "810625e8f77d47774853d89a13fe2a2a", "score": "0.50643206", "text": "public static void logState(String state){\n\t\tLogger logger = Logger.getLogger(\"StateLog\"); \n FileHandler fh; \n try { \n // This block configure the logger with handler and formatter \n fh = new FileHandler(\"./LogForState.log\", true); \n logger.addHandler(fh); \n SimpleFormatter formatter = new SimpleFormatter(); \n fh.setFormatter(formatter);\n logger.info(state); \n fh.close();\n \n } catch (SecurityException e) { \n e.printStackTrace(); \n } catch (IOException e) { \n e.printStackTrace(); \n }\n\t}", "title": "" }, { "docid": "da3c9b4fdcc46dc01aa26226ab91773b", "score": "0.5062761", "text": "protected static void log(String msg)\n {\n System.out.println(msg);\n }", "title": "" }, { "docid": "d24854dbd092fdf60bd75c50b3aeec4b", "score": "0.5062506", "text": "public Logger getLogger();", "title": "" }, { "docid": "6e1762106894ac163e3a95ba113da96e", "score": "0.50558776", "text": "@Override\n public void log(@NonNull String message) {\n }", "title": "" }, { "docid": "72766b5229fac4ceaf25034b5bb492c3", "score": "0.50535625", "text": "public void log(String message, Severity sev);", "title": "" }, { "docid": "d9b932f8a3052b7fde64e923b386db1f", "score": "0.50504434", "text": "SparseEventLogger log(Object event, int tick);", "title": "" }, { "docid": "3b70fffa8d2abf69d798e8a1ec6d4e82", "score": "0.5038772", "text": "public interface AppLogger {\n\n /**\n * File name for logs\n */\n String LOG_FILENAME = \"app.%g.%u.log\";\n /**\n * Directory where logs are kept\n */\n String LOG_DIR = \"logs\";\n /**\n * File size limit per log file in rotation\n * {@code 1 MB}\n */\n int LOG_FILE_SIZE_LIMIT_IN_BYTES = 1024 * 1024;\n /**\n * Number of files for rotation\n */\n int NUMBER_OF_FILES_FOR_ROTATION = 5;\n\n /**\n * @param logLevel {@link LogLevel} provide log level\n * @param tag {@link String} tag to log\n * @param message {@link String} message to log\n * @throws LogNotInitializedException\n */\n void log(LogLevel logLevel, String tag, String message) throws LogNotInitializedException;\n\n /**\n * Exception class to be thrown when config is not initialize\n */\n final class LogNotInitializedException extends RuntimeException {\n public LogNotInitializedException() {\n super(\"Initialize logConfig file first before calling log method\");\n }\n }\n}", "title": "" }, { "docid": "a3edfe5f00ae5ee9702b6086c9b6838c", "score": "0.50236344", "text": "private static void log(String msg) {\n Log.d(LOG_TAG, \"[Utils] \" + msg);\n }", "title": "" }, { "docid": "ac52d5caf4c978a4854ac5998603e5a4", "score": "0.50073195", "text": "@AroundInvoke\n public Object logMethod(InvocationContext invocationContext) throws Exception {\n logger.entering(invocationContext.getTarget().toString(), invocationContext.getMethod().getName());\n logger.severe(\">>>\" + invocationContext.getTarget().toString() + \" - \" + invocationContext.getMethod().getName());\n try {\n return invocationContext.proceed();\n } finally {\n logger.severe(\"<<<\" + invocationContext.getTarget().toString() + \" - \" + invocationContext.getMethod().getName());\n logger.exiting(invocationContext.getTarget().toString(), invocationContext.getMethod().getName());\n }\n }", "title": "" }, { "docid": "e35f95b55730801bb793b77938f51d40", "score": "0.49998024", "text": "public interface Logger {\n\n /**\n * Log debug message.\n *\n * @param tag tag\n * @param message message\n */\n void d(String tag, String message);\n\n /**\n * Log warning message.\n *\n * @param tag tag\n * @param message message\n */\n void w(String tag, String message);\n\n /**\n * Log error message.\n *\n * @param tag tag\n * @param message message\n * @param throwable throwable\n */\n void e(String tag, String message, Throwable throwable);\n}", "title": "" }, { "docid": "7a6a22bb9dc63ae0e94ad3a19e085c91", "score": "0.49942634", "text": "int DAQmxConfigureLogging(Pointer taskHandle, byte filePath[], int loggingMode, byte groupName[], int operation);", "title": "" }, { "docid": "8d479bcf695e0a62454e2a3b478489ff", "score": "0.49921778", "text": "private static void log(Level level, Object log) \r\n\t{\n\t}", "title": "" }, { "docid": "16d315e51b1ce7ebc76a3496621b7507", "score": "0.49879944", "text": "private static Logger initializeDefaultLogger() {\n try {\n Logger logger = Logger.getLogger(\"wdpr.default\");\n Handler handler = new ConsoleHandler();\n Formatter formatter = new CompactLogFormatter(false);\n handler.setFormatter(formatter);\n logger.addHandler(handler);\n logger.setUseParentHandlers(false);\n logger.setLevel(Level.INFO);\n return logger;\n } catch(Exception ex) {\n ex.printStackTrace();\n throw new RuntimeException(ex);\n }\n }", "title": "" }, { "docid": "58268f3f5b95fafc449a797a0f22c6cd", "score": "0.49874303", "text": "public abstract void Log(int logingLevel, String logTag, String logMsg);", "title": "" }, { "docid": "4c91c63442c89b732d9bbebc087c28b5", "score": "0.4985873", "text": "String evalLoggingFunction(LoggingFunctionInvocation value);", "title": "" }, { "docid": "7cf9f9227282056b5f56abae2a144fa9", "score": "0.49753532", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tLogLog.debug(\"debug\");\r\n\t\tLogLog.warn(\"warn\");\r\n\t\tLogLog.error(\"error\");\r\n\t}", "title": "" }, { "docid": "85a6ad30be0976c17742cd3be4656c6d", "score": "0.49724314", "text": "protected final void internalLog() {\n this.logMessage(this.toString());\n }", "title": "" }, { "docid": "9d72450ae45b8e875abd8682562ba9f3", "score": "0.49631596", "text": "public static void printToLog(String msg){\n\t}", "title": "" }, { "docid": "93d86c881e7d95406d9442e36aa52404", "score": "0.49560788", "text": "public interface MyLog {\n\n //TODO change to log level\n static final boolean DEBUG = true;\n static final boolean INFO = true;\n\n public void i(String message);\n\n public void d(String message);\n\n public void e(String message);\n\n public void e(String message, Throwable e);\n}", "title": "" }, { "docid": "a801decb62e2bd158c1aad9e3f3ae1b2", "score": "0.4951988", "text": "public static void main(String[] args) {\n Logger logger = Logger.consoleLogger(LogLevel.all())\n .appendNext(Logger.emailLogger(LogLevel.FUNCTIONAL_MESSAGE, LogLevel.FUNCTIONAL_ERROR))\n .appendNext(Logger.fileLogger(LogLevel.WARNING, LogLevel.ERROR));\n\n // Handled by consoleLogger since the console has a log level of all\n logger.message(\"Entering function ProcessOrder().\", LogLevel.DEBUG);\n logger.message(\"Order record retrieved.\", LogLevel.INFO);\n\n // Handled by consoleLogger and fileLogger since file logger implements Warning & Error\n logger.message(\"Customer Address details missing in Branch DataBase.\", LogLevel.WARNING);\n logger.message(\"Customer Address details missing in Organization DataBase.\", LogLevel.ERROR);\n\n // Handled by consoleLogger and emailLogger as it implements functional error\n logger.message(\"Unable to Process Order ORD1 Dated D1 For Customer C1.\", LogLevel.FUNCTIONAL_ERROR);\n\n // Handled by consoleLogger and emailLogger\n logger.message(\"Order Dispatched.\", LogLevel.FUNCTIONAL_MESSAGE);\n\t}", "title": "" }, { "docid": "af18d65ad86e63a607e5b22292b2c901", "score": "0.4951686", "text": "private Logger getLogger() {\n return LoggingUtils.getLogger();\n }", "title": "" }, { "docid": "c1a80f3595f724cacdb992fdf2e9cb01", "score": "0.49480212", "text": "public interface Logger {\n\n void debug(String tag, String message);\n void info(String tag, String message);\n void error(String tag, String message, Throwable t);\n\n void debug(String message);\n void info(String message);\n void warn(String message);\n void error(String message);\n void error(String message, Throwable t);\n\n\n}", "title": "" }, { "docid": "d99f5b94a62ab0373ebe2b773ef0d872", "score": "0.49364358", "text": "public Consumer<String> getLogger()\n\t{\n\t\treturn this::write;\n\t}", "title": "" }, { "docid": "9791b9b46feb618706c0cd544a2edc7c", "score": "0.49310565", "text": "private static void configureLogging() {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\r\n SLF4JBridgeHandler.install();\r\n }", "title": "" }, { "docid": "d51bfd1691af824efa2d28c012d2bd18", "score": "0.49304852", "text": "void logIncomingMessage(Message message);", "title": "" }, { "docid": "6307edf3cc8c74cd83971ad8fed9278e", "score": "0.49283582", "text": "public interface Loggable {\n default Logger logger() {\n return LoggerFactory.getLogger(this.getClass().getName());\n }\n}", "title": "" }, { "docid": "a12a2238acb36465aa42bc1d36705532", "score": "0.49280238", "text": "public void addFirstLoggingFilter();", "title": "" }, { "docid": "31c3ef11e2f9fd22a4a8d5099a65ee2e", "score": "0.49252886", "text": "@Override\n protected String getLogCategory()\n {\n return LOG_CATEGORY;\n }", "title": "" }, { "docid": "a64b27ec45cae8d641732d0eeccd9ca8", "score": "0.49244282", "text": "private static Logger getLogger() {\n \t\t// Grabs the stacktrace element a few up the stack.\n \t\t// 0 is the call to getStackTrace\n \t\t// 1 is this method\n \t\t// 2 is the wrapper method around this log method\n \t\t// 3 is the method we want\n \t\tStackTraceElement trace = Thread.currentThread().getStackTrace()[3];\n \t\treturn Logger.getLogger(trace.getClassName());\n \t}", "title": "" }, { "docid": "474599d49e49d00a4489d4ec2aa0e3b6", "score": "0.4924031", "text": "@Override\r\n public Logger createLogger() {\r\n return new DefaultLogger(logLevel);\r\n }", "title": "" }, { "docid": "3a1804355164d9c1487ce2d9e002f7be", "score": "0.49200463", "text": "public void log( IArtifactDescriptor descriptor, IStatus status )\n {\n }", "title": "" }, { "docid": "ff6d87c7e6af29a80500f73ae52f09e7", "score": "0.49075353", "text": "static void setLogger(Logger logger) { \r\n Server.logger = logger;\r\n }", "title": "" }, { "docid": "853010646f89dff483cc91ada5e83866", "score": "0.49067998", "text": "public void testTheAddDebugLogsFunction()\r\n {\r\n MemAppender m = new MemAppender();\r\n JSONLayout jlayout = new JSONLayout();\r\n Logger logger = Logger.getLogger(JSONLayout.class);\r\n LoggingEvent logEvent = new LoggingEvent(\"\",logger,Level.DEBUG, \"message\",null);\r\n m.addLoggingEvent(logEvent);\r\n assertEquals(1,m.getCurrentLogs().size());\r\n }", "title": "" }, { "docid": "f229d9f418dd0cff518de3d4d100319f", "score": "0.4900012", "text": "@Test\n public void testLogSource() {\n logDetails.setLocationInfo(true);\n final Object event = newEvent(logDetails);\n String payload = log(event, logDetails);\n assertPayload(payload);\n }", "title": "" }, { "docid": "ac52fa207c4da0a08c3f14ab3a67a80d", "score": "0.48946062", "text": "public void testTheAddTraceLogsFunction()\r\n {\r\n MemAppender m = new MemAppender();\r\n JSONLayout jlayout = new JSONLayout();\r\n Logger logger = Logger.getLogger(JSONLayout.class);\r\n LoggingEvent logEvent = new LoggingEvent(\"\",logger,Level.TRACE, \"message\",null);\r\n m.addLoggingEvent(logEvent);\r\n assertEquals(1,m.getCurrentLogs().size());\r\n }", "title": "" }, { "docid": "466826029f5fd11f283637c43b76fa0d", "score": "0.48911944", "text": "public Object customHandleRequest(Object inputStream, Context context) throws Exception {\n\r\n\t\tLinkedHashMap<String, Object> lambdaTrigger = (LinkedHashMap<String, Object>) inputStream;\r\n\t\tList<String> toLamdaList;\r\n\t\tSet set = lambdaTrigger.entrySet();\r\n\t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>set = \" + set);\r\n\t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>taking Records in List of Map\");\r\n\t\tList<Map<String, Object>> data = (List<Map<String, Object>>) lambdaTrigger.get(\"Records\");\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>taking first element of list and casting in map\");\r\n\t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>key set = \"\r\n\t\t\t\t+ ((LinkedHashMap<String, Object>) data.get(0)));\r\n\r\n\t\tLinkedHashMap<String, Object> s3TriggerDataMap = (LinkedHashMap<String, Object>) data.get(0);\r\n\r\n\t\tSystem.out.println(s3TriggerDataMap.get(\"s3\"));\r\n\r\n\t\tS3TriggerData s3TriggerData = S3TriggerData.S3TriggerDataFacory(s3TriggerDataMap);\r\n\r\n\t\tS3 s3 = s3TriggerData.getS3();\r\n\t\tobject obj = s3.getObject();\r\n\t\tString bucketName = s3.getBucket().getName();\r\n\t\tString bucketKey = obj.getKey();\r\n\r\n\t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>Bucket Name = \" + bucketName);\r\n\t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>Bucket Key = \" + bucketKey);\r\n\r\n\t\tAmazonS3 s3client = new AmazonS3Client();\r\n\t\tObjectMetadata objectMetadata = s3client.getObjectMetadata(bucketName, bucketKey);\r\n\t\tMap userMetadataMap = objectMetadata.getUserMetadata();\r\n\r\n\t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>metadata key\" + userMetadataMap.keySet());\r\n\r\n\t\tString uploadToLambda = \"\" + userMetadataMap.get(\"function-name\");\r\n\t\tString uploadFileName = \"\" + userMetadataMap.get(\"file-name\");\r\n\t\tString deleteVersion = \"\" + userMetadataMap.get(\"delete-version-flag\");\r\n\t\tString alias = \"\" + userMetadataMap.get(\"point-me\");\r\n\t\tString description = \"\" + userMetadataMap.get(\"description\");\r\n\r\n\t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>File Name = \" + uploadFileName);\r\n\t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>Function Name = \" + uploadToLambda);\r\n\t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>Alias Name = \" + alias);\r\n\t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>Delete Version Flag = \" + deleteVersion);\r\n\t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>Alias Description = \" + description);\r\n\r\n\t\tif (bucketKey.contains(uploadFileName)) {\r\n\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Bucket Key and Upload File Name Mathced $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\");\r\n\r\n\t\t\ttoLamdaList = new ArrayList<>();\r\n\t\t\tif (uploadToLambda.contains(\"#\")) {\r\n\t\t\t\ttoLamdaList.addAll(Arrays.asList(uploadToLambda.split(\"#\")));\r\n\t\t\t} else {\r\n\t\t\t\ttoLamdaList.add(uploadToLambda);\r\n\t\t\t}\r\n\t\t\tfor (String functionName : toLamdaList) {\r\n\t\t\t\tupload(inputStream, bucketName, bucketKey, functionName, alias, deleteVersion, description);\r\n\t\t\t}\r\n\t\t} else {\r\n\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Bucket Key and Upload File Name not Mathced $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4c9db64b263434c962ea3f79d19d79e6", "score": "0.48893404", "text": "public void log(String msg) {\n\t\tlogger.info(\"[War] \" + msg);\n\t}", "title": "" }, { "docid": "83da75fa39966efdc2edd2918bc56696", "score": "0.4886711", "text": "@Before(\"allLogEventMethods()\")\n public void logBefore(JoinPoint joinPoint){\n LOG.info(\"BEFORE : \" +\n joinPoint.getTarget().getClass().getSimpleName() +\n \" \" + joinPoint.getSignature().getName());\n }", "title": "" }, { "docid": "7a11acf67cbcd1c7781c6f40777a1b83", "score": "0.48851642", "text": "static void log(String s)\r\n\t{\r\n\t\tLog.log(s);\r\n\t}", "title": "" }, { "docid": "9056b496df23902fb0579027c611384e", "score": "0.4882784", "text": "public abstract void logExecution();", "title": "" } ]
12cd71830fb84d9adf693ff60371bb87
The account Id. string accountId = 3;
[ { "docid": "b210b80effcad8e38fe480f4ff09f469", "score": "0.0", "text": "com.google.protobuf.ByteString\n getAccountIdBytes();", "title": "" } ]
[ { "docid": "27827b5a91eedba2714b456fd946e969", "score": "0.837444", "text": "public String getId() {\n return accountId;\n }", "title": "" }, { "docid": "5c84dceea8cbb0254a492152307bb9be", "score": "0.82291394", "text": "public String accountId() {\n return accountId;\n }", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8171561", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8170588", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8170588", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "fe9968d22bedfb88980709350ef7765b", "score": "0.8170588", "text": "java.lang.String getAccountId();", "title": "" }, { "docid": "5a097d398115c732b33fda984d040fdc", "score": "0.81233805", "text": "public String getAccountId() {\n return accountId;\n }", "title": "" }, { "docid": "f0b8af928806718e7860cf2a3c722c28", "score": "0.8093075", "text": "public void setAccountId(Integer accountId) {\n this.accountId = accountId;\n }", "title": "" }, { "docid": "f0b8af928806718e7860cf2a3c722c28", "score": "0.8093075", "text": "public void setAccountId(Integer accountId) {\n this.accountId = accountId;\n }", "title": "" }, { "docid": "23f04754ec3d585d84e7f6369e431233", "score": "0.8092521", "text": "public long getAccountId() {\n return account_id;\n }", "title": "" }, { "docid": "d0fa72c93222d0d2bedea692fe35ed3f", "score": "0.8077477", "text": "public String getAccountId() {\n\t\treturn accountId;\n\t}", "title": "" }, { "docid": "9009e8fb938bb1fc551e359691683b8f", "score": "0.799923", "text": "public long getAccountId() {\n return account_id;\n }", "title": "" }, { "docid": "8d6ee3862e96cd4f6d4bbd797152bcba", "score": "0.79911864", "text": "public void setAccountId(long accountId) {\n this.accountId = accountId;\n }", "title": "" }, { "docid": "9cfda68b398fb799f7bd6be91db295a7", "score": "0.7967371", "text": "public int getAccountId() {\n return accountId;\n }", "title": "" }, { "docid": "f412cfdd35467c060f96df5413688ada", "score": "0.7951765", "text": "int getAccountId();", "title": "" }, { "docid": "f412cfdd35467c060f96df5413688ada", "score": "0.7951447", "text": "int getAccountId();", "title": "" }, { "docid": "f412cfdd35467c060f96df5413688ada", "score": "0.7951447", "text": "int getAccountId();", "title": "" }, { "docid": "f412cfdd35467c060f96df5413688ada", "score": "0.7951447", "text": "int getAccountId();", "title": "" }, { "docid": "f412cfdd35467c060f96df5413688ada", "score": "0.7951447", "text": "int getAccountId();", "title": "" }, { "docid": "f412cfdd35467c060f96df5413688ada", "score": "0.7951447", "text": "int getAccountId();", "title": "" }, { "docid": "f412cfdd35467c060f96df5413688ada", "score": "0.7951447", "text": "int getAccountId();", "title": "" }, { "docid": "f412cfdd35467c060f96df5413688ada", "score": "0.7951447", "text": "int getAccountId();", "title": "" }, { "docid": "f412cfdd35467c060f96df5413688ada", "score": "0.7951447", "text": "int getAccountId();", "title": "" }, { "docid": "f412cfdd35467c060f96df5413688ada", "score": "0.7951447", "text": "int getAccountId();", "title": "" }, { "docid": "f412cfdd35467c060f96df5413688ada", "score": "0.7951447", "text": "int getAccountId();", "title": "" }, { "docid": "f412cfdd35467c060f96df5413688ada", "score": "0.7951447", "text": "int getAccountId();", "title": "" }, { "docid": "f412cfdd35467c060f96df5413688ada", "score": "0.7951447", "text": "int getAccountId();", "title": "" }, { "docid": "f412cfdd35467c060f96df5413688ada", "score": "0.7951447", "text": "int getAccountId();", "title": "" }, { "docid": "2df92b6db96894bc518d23aa48e5347d", "score": "0.7945473", "text": "public long getAccountId() {\n return accountId;\n }", "title": "" }, { "docid": "99272a0a70f3984463d7851c7da9a53b", "score": "0.79140997", "text": "public Integer getAccountId() {\n return accountId;\n }", "title": "" }, { "docid": "99272a0a70f3984463d7851c7da9a53b", "score": "0.79140997", "text": "public Integer getAccountId() {\n return accountId;\n }", "title": "" }, { "docid": "99272a0a70f3984463d7851c7da9a53b", "score": "0.79140997", "text": "public Integer getAccountId() {\n return accountId;\n }", "title": "" }, { "docid": "02334da92096be1aaa959c0bc5998fb4", "score": "0.79134595", "text": "public long getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "cbf068617d58183074174cd8fc683a33", "score": "0.79047644", "text": "long getAccountId();", "title": "" }, { "docid": "f7719147eae67bd09ffeb227725997d7", "score": "0.7895547", "text": "public Long getAccountId() {\n return accountId;\n }", "title": "" }, { "docid": "72544cb889345de31f27023fbe8a0937", "score": "0.786803", "text": "public void setAccountId(Long accountId) {\n this.accountId = accountId;\n }", "title": "" }, { "docid": "e5379fe7c28b1c09d693791df0939320", "score": "0.7831021", "text": "public void setAccountId(Account accountId) {\n this.accountId = accountId;\n }", "title": "" }, { "docid": "5d30646d75780af32244d9d74266550e", "score": "0.7813195", "text": "public long getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77955276", "text": "int getAccountid();", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77955276", "text": "int getAccountid();", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77955276", "text": "int getAccountid();", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77955276", "text": "int getAccountid();", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77955276", "text": "int getAccountid();", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77955276", "text": "int getAccountid();", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77955276", "text": "int getAccountid();", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77955276", "text": "int getAccountid();", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77955276", "text": "int getAccountid();", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77955276", "text": "int getAccountid();", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77955276", "text": "int getAccountid();", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77955276", "text": "int getAccountid();", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77955276", "text": "int getAccountid();", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77945775", "text": "int getAccountid();", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77945775", "text": "int getAccountid();", "title": "" }, { "docid": "3df2ade3759dc31368bc48c73a15353b", "score": "0.77945775", "text": "int getAccountid();", "title": "" }, { "docid": "afac1c14d11b0a27b6000312703ec4ad", "score": "0.7728747", "text": "public void setAccountId(long value) {\n this.account_id = value;\n }", "title": "" }, { "docid": "665706ef2db64ed61f4dd72f24170000", "score": "0.7722101", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "665706ef2db64ed61f4dd72f24170000", "score": "0.7722101", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "665706ef2db64ed61f4dd72f24170000", "score": "0.7722101", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "665706ef2db64ed61f4dd72f24170000", "score": "0.7722101", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "665706ef2db64ed61f4dd72f24170000", "score": "0.7722101", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "665706ef2db64ed61f4dd72f24170000", "score": "0.7722101", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "665706ef2db64ed61f4dd72f24170000", "score": "0.7722101", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "665706ef2db64ed61f4dd72f24170000", "score": "0.7722101", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "665706ef2db64ed61f4dd72f24170000", "score": "0.7722101", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "665706ef2db64ed61f4dd72f24170000", "score": "0.7722101", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "665706ef2db64ed61f4dd72f24170000", "score": "0.77217126", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "665706ef2db64ed61f4dd72f24170000", "score": "0.77216846", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "665706ef2db64ed61f4dd72f24170000", "score": "0.7721105", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "665706ef2db64ed61f4dd72f24170000", "score": "0.7720776", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "a639350d5c7ffa5f95ad6b37ee58ebe5", "score": "0.77166754", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "a639350d5c7ffa5f95ad6b37ee58ebe5", "score": "0.77166754", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "a639350d5c7ffa5f95ad6b37ee58ebe5", "score": "0.77166754", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "a639350d5c7ffa5f95ad6b37ee58ebe5", "score": "0.77166754", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "a639350d5c7ffa5f95ad6b37ee58ebe5", "score": "0.77166754", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "a639350d5c7ffa5f95ad6b37ee58ebe5", "score": "0.77166754", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "a639350d5c7ffa5f95ad6b37ee58ebe5", "score": "0.77166754", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "a639350d5c7ffa5f95ad6b37ee58ebe5", "score": "0.77166754", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "a639350d5c7ffa5f95ad6b37ee58ebe5", "score": "0.77166754", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "a639350d5c7ffa5f95ad6b37ee58ebe5", "score": "0.77166754", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "a639350d5c7ffa5f95ad6b37ee58ebe5", "score": "0.77166754", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "a639350d5c7ffa5f95ad6b37ee58ebe5", "score": "0.7715574", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "a639350d5c7ffa5f95ad6b37ee58ebe5", "score": "0.7715114", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "a639350d5c7ffa5f95ad6b37ee58ebe5", "score": "0.7714504", "text": "@java.lang.Override\n public int getAccountId() {\n return accountId_;\n }", "title": "" }, { "docid": "b33d97c1c05e6d90618f14582397b836", "score": "0.7636748", "text": "public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\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 accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "b33d97c1c05e6d90618f14582397b836", "score": "0.7636304", "text": "public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\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 accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "b33d97c1c05e6d90618f14582397b836", "score": "0.7636304", "text": "public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\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 accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" } ]
5960ee3cca30d7551df5c98fdcdcaaa8
returns the maxProperties property from a Schema instance. minimum: 0
[ { "docid": "0d0217aacdc40aef4f60331a33afd876", "score": "0.78727", "text": "public Integer getMaxProperties() {\n return maxProperties;\n }", "title": "" } ]
[ { "docid": "0723b603ea003e5b1f5f942c4d00d346", "score": "0.71698654", "text": "public int getMAX_PROPERTY() {\n return MAX_PROPERTY;\n }", "title": "" }, { "docid": "9b3ce5d79d07d365fe0bea30d3c88d80", "score": "0.7161448", "text": "public int getMAX_PROPERTY()\r\n\t\t{\r\n\t\t\treturn MAX_PROPERTY;\r\n\t\t}", "title": "" }, { "docid": "8857223b197e56478df19faf8220fff1", "score": "0.6461983", "text": "public ObjectProperty<Integer> autoDownMaxProperty() {\n\t\treturn this.autoDownMax;\n\t}", "title": "" }, { "docid": "0a3af224fde68532d7f3fc4f8821a313", "score": "0.6272732", "text": "@JSProperty(\"max\")\n double getMax();", "title": "" }, { "docid": "f458a54229429ea2cea95162e978052f", "score": "0.62251544", "text": "public Integer countMax() {\n return data.getInt(FhirPropertyNames.PROPERTY_COUNT_MAX);\n }", "title": "" }, { "docid": "fb4bc257cd060e22dc8388c16d5d0550", "score": "0.6141992", "text": "@Column(name = \"MAX_LENGTH\")\n\tpublic Long getMaxLength()\n\t{\n\t\treturn maxLength;\n\t}", "title": "" }, { "docid": "3f16b5bde4c0d153ec8efdc0721cd1f1", "score": "0.6086738", "text": "public SimpleDoubleProperty getMaxHpProperty() {\n return maxHP; \n }", "title": "" }, { "docid": "649008563b51abb728f0e87d47ba7e89", "score": "0.60627806", "text": "public Integer getMaxLength() {\n return this.maxLength;\n }", "title": "" }, { "docid": "ec5badb4147f7f3724c218c3d4bb51fe", "score": "0.60480917", "text": "public int maxRentPropertyIndex()\r\n\t\t{\r\n\t\t\tint maxindex=0;\r\n\t\t\tfor(int i=0;i<MAX_PROPERTY;i++)\r\n\t\t\t{\r\n\t\t\t\tif(properties[i]!=null)\r\n\t\t\t\t{\r\n\t\t\t\tif(properties[i].getRentAmount()>=properties[maxindex].getRentAmount())\r\n\t\t\t\t{\r\n\t\t\t\t\tmaxindex=i;\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\t\treturn maxindex;\r\n\t\t}", "title": "" }, { "docid": "f463d167aecbf835ab6aa3b3760c15e6", "score": "0.601266", "text": "public Integer getMaxLength() {\n return maxLength;\n }", "title": "" }, { "docid": "f463d167aecbf835ab6aa3b3760c15e6", "score": "0.601266", "text": "public Integer getMaxLength() {\n return maxLength;\n }", "title": "" }, { "docid": "a7c2db34ea1228768262d8c640a5a7b4", "score": "0.59932923", "text": "public Integer frequencyMax() {\n return data.getInt(FhirPropertyNames.PROPERTY_FREQUENCY_MAX);\n }", "title": "" }, { "docid": "fa6554ea663132e01fa394728a7642e9", "score": "0.5964683", "text": "String getMaxAggregateSizeAsString();", "title": "" }, { "docid": "a2e99ba6af8c3291cdfa3f94dbee8916", "score": "0.59539366", "text": "public int getMaxOccurs() {\n return _maxOccurs;\n }", "title": "" }, { "docid": "48b0f21c5d7f5102684d2446fb25719c", "score": "0.59521806", "text": "@Nullable\n @JsonProperty(\"max_doc_freq\")\n public Integer getMaxDocFrequency();", "title": "" }, { "docid": "d3e7f76cb10c3ebb8ef27032ea246679", "score": "0.5938699", "text": "@JSProperty(\"maxRange\")\n double getMaxRange();", "title": "" }, { "docid": "1d7a4c807184481e53fc1a975f65f1f2", "score": "0.59158695", "text": "@SuppressWarnings(\"deprecation\")\n public int getMaxBsonObjectSize() {\n List<ServerDescription> primaries = getClusterDescription().getPrimaries();\n return primaries.isEmpty() ? ServerDescription.getDefaultMaxDocumentSize() : primaries.get(0).getMaxDocumentSize();\n }", "title": "" }, { "docid": "38c9b749382f7cd4e748da7414bc158d", "score": "0.5895098", "text": "public double maxRentProp()\r\n\t\t{\r\n\t\t\treturn properties[maxRentPropertyIndex()].getRentAmount();\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "502a265d7060dee6e5c52a11a2407be5", "score": "0.5889846", "text": "public int getMax()\n {\n return this.max;\n }", "title": "" }, { "docid": "6fd820a54e7b9c72dfebcae52ca21a15", "score": "0.5885452", "text": "public int getMaxOccurs() {\r\n return max;\r\n }", "title": "" }, { "docid": "d7edcd48852a623a665ad9bac50072df", "score": "0.5877625", "text": "@Nullable\n @JsonProperty(\"max_word_length\")\n public Integer getMaxWordLength();", "title": "" }, { "docid": "be21d395a062215d9e357f7220578112", "score": "0.5852997", "text": "public int getMax() {\n return max;\n }", "title": "" }, { "docid": "be21d395a062215d9e357f7220578112", "score": "0.5852997", "text": "public int getMax() {\n return max;\n }", "title": "" }, { "docid": "27226f7b738163ff2188b7145efb011a", "score": "0.5834009", "text": "public int maxLength() {\n\t\tint max = this.getName().length();\n\t\tfor (int i = 0; i < this.getArray().size(); i++) {\n\t\t\tif (this.getArray().get(i).length() > max) {\n\t\t\t\tmax = this.getArray().get(i).length();\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "title": "" }, { "docid": "b3097d5f6223c09691dcf8b111db3f35", "score": "0.57883435", "text": "private int maxRentPropertyIndex() {\n\t\t\n\t\t/*\n\t\t * The max rent for each property\n\t\t */\n\t\tint maxPropsRent = 0;\n\t\t\n\t\tfor(int i = 0; i < result; i++) {\n\t\t\t\n\t\t\tif(properties[i] != null) {\n\t\t\t\t\n\t\t\t\tif(properties[maxPropsRent].getRentAmount() < properties[i].getRentAmount()) {\n\t\t\t\t\t\n\t\t\t\t\tmaxPropsRent = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn maxPropsRent;\n\t}", "title": "" }, { "docid": "3497ce16119202ef220649665f261672", "score": "0.5788067", "text": "public double getMax() {\n\t\treturn maximum;\n\t}", "title": "" }, { "docid": "a114b9674df95d3e09141b993238457a", "score": "0.5787881", "text": "public Double durationMax() {\n return data.getJsonNumber(FhirPropertyNames.PROPERTY_DURATION_MAX).doubleValue();\n }", "title": "" }, { "docid": "f8c28a650102240c397270c7d07846a4", "score": "0.57859015", "text": "public int getMax()\r\n {\r\n return max;\r\n }", "title": "" }, { "docid": "6dbdecfdf5c6cb51b73643fb88029a61", "score": "0.5782646", "text": "public double maxRentProp() {\n\t\t\n\t\t//this is to hold the max rent amount\n\t\tdouble maxRent = 0.0;\n\t\t\n\t\t//This will call a method to find the highest rent property\n\t\tmaxRent = properties[maxRentPropertyIndex()].getRentAmount();\n\t\t\n\t\treturn maxRent;\n\t}", "title": "" }, { "docid": "ceb399292001767d48f5a689380cca0f", "score": "0.57738465", "text": "public double getMax() {\r\n\t\treturn _max;\r\n\t}", "title": "" }, { "docid": "f6cc59e5b72c7645273bc6aa34922b8c", "score": "0.5772642", "text": "public Integer getMinProperties() {\n return minProperties;\n }", "title": "" }, { "docid": "bc34eb804498e5ce347820554e844321", "score": "0.57664156", "text": "public Integer getMaxValue() {\r\n String w = actual.getAttribute(MAX_VALUE);\r\n return w.isEmpty() ? null : parseInt(w);\r\n }", "title": "" }, { "docid": "c30a557b965f137a4e5b96384aabf0a4", "score": "0.5757062", "text": "double getMaxAggregateSize();", "title": "" }, { "docid": "c5a8be868337f0892e7be7beb1bbcac6", "score": "0.57541424", "text": "org.apache.xmlbeans.XmlInteger xgetMaxValueInteger();", "title": "" }, { "docid": "5799b81fedc4f015d36860672848d39f", "score": "0.57507175", "text": "public Long getMaxLength();", "title": "" }, { "docid": "fc7ef1ddb69489639e1f9b3b278c2fb7", "score": "0.57477427", "text": "public int getMaxTradingPropertiesAllowed()\n {\n return INFINITE_TRADING_PROPERTIES_ALLOWED;\n }", "title": "" }, { "docid": "3a76f12d75cc85812821cf55b72ed54b", "score": "0.5732774", "text": "public int getMax() {\n return mMax;\n }", "title": "" }, { "docid": "3a76f12d75cc85812821cf55b72ed54b", "score": "0.5732774", "text": "public int getMax() {\n return mMax;\n }", "title": "" }, { "docid": "c883067739350bbde598f12d48957cd6", "score": "0.5705343", "text": "public Integer getMax_value() {\n return max_value;\n }", "title": "" }, { "docid": "62c1e9e5b4c54f2589be5816d16b6ffc", "score": "0.56963885", "text": "@Pure\n\tDoubleProperty maxScaleValueProperty();", "title": "" }, { "docid": "01510885b5a833bd6e81ea204616ca3a", "score": "0.569517", "text": "public byte[] getMax() {\n return rowStoreMinMax.getMax();\n }", "title": "" }, { "docid": "b3bbc03fa24ae701b6d34d2002e0ca5c", "score": "0.5694766", "text": "private Integer extractLength(final AbstractEntity<?> entity, final String propertyName) {\n final Integer max = Reflector.extractValidationLimits(entity, propertyName).getValue();\n return max == null ? 0 : max;\n }", "title": "" }, { "docid": "dc77ef4ee3b293fb8bd893b4a7a584fe", "score": "0.56937873", "text": "public final double getMax()\n{\n\treturn _max;\n}", "title": "" }, { "docid": "06615573d9339f9f846ab2c07fb1550a", "score": "0.56881493", "text": "public Double getMAX() { return max.getDouble(); }", "title": "" }, { "docid": "d50c982759f9d1da93a65f52a5b51e08", "score": "0.5684739", "text": "public int getMaxLength() {\r\n return this.maxLength;\r\n }", "title": "" }, { "docid": "049a917b3226f70b0d3ff4ce9a7e399f", "score": "0.56792676", "text": "public int getMax();", "title": "" }, { "docid": "61a0137f3de43ccde00093d46c50cbfe", "score": "0.5678678", "text": "public TerminalRule getMAX_LENGTHRule() {\n\t\treturn tMAX_LENGTH;\n\t}", "title": "" }, { "docid": "d99edac66a97cc998f58d92444b609ec", "score": "0.56706613", "text": "public long getMaxValues() {\n return sc.getMaxMsgs();\n }", "title": "" }, { "docid": "50c60b2e587854484075f3d505adaf39", "score": "0.566192", "text": "public Long getMaxSize() {\n return this.MaxSize;\n }", "title": "" }, { "docid": "386b7865e12f564f4e19b9119b7c0e42", "score": "0.5657448", "text": "public int getMaxValue()\n {\n int size = maxSubject.size();\n if (size == 0)\n {\n return 0;\n }\n return Collections.max(Arrays.asList(maxSubject.getValues(new Integer[size])));\n }", "title": "" }, { "docid": "125cfe8fcb65ee5ecdc5cacfdf0349ef", "score": "0.56352574", "text": "@In Integer max();", "title": "" }, { "docid": "9551d3950fd468821c202f7d61f7082c", "score": "0.56005484", "text": "public int getNumProperties() {\n return propertyCount;\n }", "title": "" }, { "docid": "b18e47ad505590ad808be7d0c6ab86ac", "score": "0.5598276", "text": "default Integer getChildrenMax() {\n return readInteger(ConfigureNodeFields.children_max.getFieldName());\n }", "title": "" }, { "docid": "4b6831623aaf09694bbc212cc93866d1", "score": "0.55916506", "text": "int getMaxOccurs();", "title": "" }, { "docid": "4d95650e99e587a6599d425326941a35", "score": "0.559002", "text": "Optional<Integer> getMaximumLength();", "title": "" }, { "docid": "6230da154af99b738e042718bdf53c24", "score": "0.55842143", "text": "public java.lang.String getMaxOffset()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXOFFSET$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "3d6424f77568e24d815b44c36f603266", "score": "0.5583949", "text": "@Nullable\n @JsonProperty(\"max_query_terms\")\n public Integer getMaxQueryTerms();", "title": "" }, { "docid": "90adeebd4332d24d09c287c47114508f", "score": "0.55825824", "text": "public String getMaxLength() {\r\n return maxLength;\r\n }", "title": "" }, { "docid": "0aabde94db0b136165a07fb2d4901f79", "score": "0.55754864", "text": "public T getMax()\n\t\t{\n\t\t\treturn getMax(getRoot());\n\t\t}", "title": "" }, { "docid": "8be68da7e3e2a7d9aaacb6f3f5ab4695", "score": "0.55702484", "text": "public double getPreciseMaximum() {\n\t\treturn _max;\n\t}", "title": "" }, { "docid": "e6cc4c838184fab21fe46369b2254bf7", "score": "0.5569722", "text": "long getMetadataSizeMax();", "title": "" }, { "docid": "a481fd27f90642d15914eecdf67a48a0", "score": "0.55654967", "text": "public double getMaxPosition()\n\t{\n\t\tif(hasProperty(\"Max\"))\n\t\t\treturn getPropertyDouble(\"Max\");\n\t\telse\n\t\t\treturn 9000.0; // *** this is why you should implement your own stages.\n\t}", "title": "" }, { "docid": "7121a03bf2c63b48cdb464e65792af0b", "score": "0.5553703", "text": "public Boolean max() {\n if (this.empty()) {\n return null;\n }\n\n return this.max.getValue();\n }", "title": "" }, { "docid": "1192a27d56780b127081e0703fed0ad2", "score": "0.55513227", "text": "public double getMaxMVar();", "title": "" }, { "docid": "458bed9c53de2cb54e87e7839daac980", "score": "0.5545827", "text": "void setMaxPropertyDepth(int maxPropertyDepth);", "title": "" }, { "docid": "a998e6c3810f24c87f9b54737b2c8c12", "score": "0.55419827", "text": "HyperPoint getMax();", "title": "" }, { "docid": "f56e34af3a545808378f0220f2702eee", "score": "0.5535482", "text": "public java.math.BigInteger getResponseSizeMax()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(RESPONSESIZEMAX$46);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }", "title": "" }, { "docid": "4c4402c2e964bda88d6676485600b550", "score": "0.55269974", "text": "public Double periodMax() {\n return data.getJsonNumber(FhirPropertyNames.PROPERTY_PERIOD_MAX).doubleValue();\n }", "title": "" }, { "docid": "25ae7a9e718257033c2941bdb0fbaa25", "score": "0.55242836", "text": "public int getMaxSize();", "title": "" }, { "docid": "5e6c359e3adb2ad7abcd623d9f8dcf36", "score": "0.55215955", "text": "@JsonGetter(\"MaxAcceptableValue\")\r\n public Double getMaxAcceptableValue() {\r\n return maxAcceptableValue;\r\n }", "title": "" }, { "docid": "cb3053b19caa2c5ddb5c45e43d4475f0", "score": "0.55200803", "text": "public long getMaxOccurs() {\n return stateMachineNode.getMaxOccurs();\n }", "title": "" }, { "docid": "62919cdd584a5e60a9b35ffdaa74e6a8", "score": "0.5513151", "text": "public int getMaximum() {\n/* 822 */ return getModel().getMaximum();\n/* */ }", "title": "" }, { "docid": "3e08ec3f8d51bd783cc4d34235773522", "score": "0.55108166", "text": "default Integer getMaxPayloadSize() {\n return readInteger(ConfigureNodeFields.max_payload_size.getFieldName());\n }", "title": "" }, { "docid": "3e50f7852c06074553f29869fdb9e40f", "score": "0.5506653", "text": "public int getMaxColumn( )\r\n {\r\n int max = -1;\r\n for( int i = 0; i < 4; i++ )\r\n {\r\n if( currentConfig.get( i ).x > max )\r\n {\r\n max = currentConfig.get( i ).x;\r\n }\r\n }\r\n return max;\r\n }", "title": "" }, { "docid": "e10bafd474be1d4149c415f0cac8c8ed", "score": "0.5486784", "text": "@java.lang.Override\n public com.google.protobuf.Duration getMaxDuration() {\n return maxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDuration_;\n }", "title": "" }, { "docid": "89fb963021c71740b2b68454faeee248", "score": "0.5484526", "text": "int maxSize(DeployBeanProperty property);", "title": "" }, { "docid": "206b9f53bca9d4b3d004633a6996606c", "score": "0.54814076", "text": "public Object maximum() {\n return redBlackTree.maximumEntry();\n }", "title": "" }, { "docid": "a7482cae1a93a6b9dedf445fa3cb75ca", "score": "0.5480811", "text": "@JSProperty(\"softMax\")\n double getSoftMax();", "title": "" }, { "docid": "96e6c585a3b135e7d970c6f3329e931b", "score": "0.54748553", "text": "public String getMax();", "title": "" }, { "docid": "498cfe9ffc149d075817c238718d3a90", "score": "0.5469281", "text": "@Field(20) \n\tpublic long maxsize() {\n\t\treturn this.io.getLongField(this, 20);\n\t}", "title": "" }, { "docid": "08bf10611d25e91bfdbdfbf29d53a026", "score": "0.5465872", "text": "public IntColumn getLimitMax() {\n return new DelegatingIntColumn(parentBlock.getColumn(\"diffrn_reflns_limit_max\"));\n }", "title": "" }, { "docid": "9d281eb279c26417e327572c05cd8841", "score": "0.54639256", "text": "Integer getMaxValue();", "title": "" }, { "docid": "8c14d6f6025165ed9ad81a9a63bed097", "score": "0.5462691", "text": "public T getMax() {\r\n if (size == 0) {\r\n return null;\r\n } else {\r\n return this.backingArray[1];\r\n }\r\n }", "title": "" }, { "docid": "170d7c8bc93791a16d7d6164d6c79eb7", "score": "0.54586595", "text": "JdlMaxValidator createJdlMaxValidator();", "title": "" }, { "docid": "2dfd4ae1620de828b7a3fd75135d8196", "score": "0.5458092", "text": "public int getPropertyCount() {\n\t\treturn 4;\n\t}", "title": "" }, { "docid": "9d3a2b4b2bb48094a51b066b00a94e60", "score": "0.54484034", "text": "public int getMaxValue() throws Exception {\n\t\treturn RemoteServer.instance().executeAndGetId(\"getmaxvalue\",\n\t\t\t\tgetRefId());\n\t}", "title": "" }, { "docid": "168f1bf518a8e960da5ab1ae3d9d5909", "score": "0.54450905", "text": "public int getMaxValue()\n\t{\n\t\treturn this.maxValue;\n\t}", "title": "" }, { "docid": "0b755cab2e88c01a61bc7f90ffe04695", "score": "0.54319584", "text": "public BigDecimal getMaximum() {\n return maximum;\n }", "title": "" }, { "docid": "9a4e1539b712d7a8aaaff07f5730fa54", "score": "0.5425452", "text": "public E getmax() {\r\n\t\tassert Heap.size() > 0 : \"Get maximum value from empty heap\";\r\n\t\treturn Heap.get(0);\r\n\t}", "title": "" }, { "docid": "734be0cf95d7af7c6451f47fb4e31086", "score": "0.542444", "text": "public Duration getMaxDuration() {\n return maxDuration;\n }", "title": "" }, { "docid": "d5fa351cda334e07465eddb0331da548", "score": "0.54205334", "text": "public Key findMax() {\r\n return maxPQ[1];\r\n }", "title": "" }, { "docid": "f814757ad5144c498c6a677bc5e550cd", "score": "0.5418661", "text": "int getMaxColumnSize();", "title": "" }, { "docid": "f26d7d146612a9e3104bf45cacb27e89", "score": "0.54178905", "text": "public int getMaxVal() {\n/* 47 */ return this.maxVal;\n/* */ }", "title": "" }, { "docid": "e4d39c546f66879811cffc00a49117cc", "score": "0.5415653", "text": "public E extractMax() {\n\t\tE max = values.get(0);\r\n\t\t// values[0] = values[storedLength-1];\r\n\t\t// keys[0] = keys[storedLength-1];\r\n\t\tvalues.set(0, values.get(storedLength-1));\r\n\t\tkeys.set(0, keys.get(storedLength-1));\r\n\t\tstoredLength--;\r\n\t\tmakeHeap(0);\r\n\t\treturn max;\r\n\t}", "title": "" }, { "docid": "d228de506ed4b25834099ee9aadebef4", "score": "0.5412662", "text": "public Integer getMaxItems() {\n return maxItems;\n }", "title": "" }, { "docid": "a8e8e6ca52a5d8718eecb7414686396d", "score": "0.5402108", "text": "public static int max() {\n int nbMax = -1;\n try (InputStream input = new FileInputStream(\"config.properties\")) {\n Properties prop = new Properties();\n prop.load(input);\n\n nbMax = Integer.parseInt(prop.getProperty(\"maxcasesM\"));\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return nbMax;\n }", "title": "" }, { "docid": "035a90110acacb867048b00d78bcdfd1", "score": "0.54010975", "text": "public int numProperties() {\n\t\treturn getProperties().size();\n\t}", "title": "" }, { "docid": "d793541513400d93298b66594a55837d", "score": "0.5398479", "text": "@java.lang.Override\n public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() {\n return maxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDuration_;\n }", "title": "" }, { "docid": "1d021818bf760fa44bea16118f7f7394", "score": "0.53982204", "text": "@Schema(description = \"\")\n public Integer getLength() {\n return length;\n }", "title": "" }, { "docid": "678baae1336b63516016e1879edafd44", "score": "0.5394033", "text": "public Long getMaxValue() {\n return maxValue;\n }", "title": "" } ]
e56a94b24ec703b6f4426373fbdb646a
Initializing the document creator object
[ { "docid": "beb73ac61231354a95570e0684f78634", "score": "0.0", "text": "public static void main(String[] args) throws Exception {\n\t\tMSWordDocumentCreator msWordDoc = new MSWordDocumentCreator();\n\n\t\tmsWordDoc.createWordDocument();\n\t\t\n\t\tSystem.out.println(\"Document created successfully...\");\n\t}", "title": "" } ]
[ { "docid": "f0b943b28c611ab65f5877501011e947", "score": "0.7570776", "text": "public Document() {\r\n }", "title": "" }, { "docid": "f0b943b28c611ab65f5877501011e947", "score": "0.7570776", "text": "public Document() {\r\n }", "title": "" }, { "docid": "2f2459fab197760f7b5a9c78151be899", "score": "0.74277174", "text": "public Document() {\n }", "title": "" }, { "docid": "7f3785b273c9ce574cc1a2957d78af3f", "score": "0.7130337", "text": "public Document()\n\t{\n\t super();\n\t\n\t className=\"Document\";\n\t objectName=\"default document\";\n\t \n\t equipped=false;\t \t \t \n\t}", "title": "" }, { "docid": "64210b38bbbf7459b9ba5c68fc0608ce", "score": "0.7117525", "text": "private DocumentModel() {\n\t\t\n\t}", "title": "" }, { "docid": "a0ca978ad8df130956ba1b46f6cc60d8", "score": "0.7116865", "text": "public PdfMaker() {\n newDocument();\n }", "title": "" }, { "docid": "b48ae44c418117615cc70ba9d144b192", "score": "0.690658", "text": "public void createDocument()\r\n\t{\r\n\t\t//Ime dokumenta se proslijedjuje kroz string. Trebamo skontati nacin imenovanja.\r\n\t\tDocumentModel dm = new DocumentModel(\"Document\", \"\");\r\n\t\tdocuments.add(dm);\t\t\r\n\t}", "title": "" }, { "docid": "69119f2ed3aff9aebcec613a192a44f3", "score": "0.6894683", "text": "public IndexDocument() {\n }", "title": "" }, { "docid": "9b65367939665568362d28c7216c34ca", "score": "0.68307614", "text": "private void newDocument() {\n doc = new Document();\n try {\n output = new ByteArrayOutputStream();\n PdfWriter.getInstance(doc, output);\n doc.addAuthor(\"Universal Healthcare Force\");\n doc.addCreator(\"Team Triple G Force\");\n doc.open();\n } catch (DocumentException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "94ec4438604f29993d7752dccea442e2", "score": "0.66746837", "text": "public Document(){\n type = \"Passport\";\n number = \"FakeDoc__\" + String.valueOf(fakeDocNumber);\n authority = \"FakeMunicipality\";\n issueDate = LocalDate.now();\n Document.fakeDocNumber = Document.fakeDocNumber + 1;\n }", "title": "" }, { "docid": "f526d2bda3d2003c2be5aebe75b73273", "score": "0.6672117", "text": "public ClsNodeDocument() {\r\n\t}", "title": "" }, { "docid": "57a63a1a5db0f1a49f68a263c23e6434", "score": "0.66656125", "text": "public DocumentST() {\n\t\tthis(INIT_CAPACITY);\n\t}", "title": "" }, { "docid": "8c9324a7ecdf29f95f7827ef351e7c89", "score": "0.6605444", "text": "protected TestDocument() {/* intentionally empty block */}", "title": "" }, { "docid": "3aae8a652a4b6bf96173d737661b0152", "score": "0.6573061", "text": "public AdditionalDoc() {\n }", "title": "" }, { "docid": "289ac429c9f8986858f9f6e66803a96f", "score": "0.6524618", "text": "@Override\n\t\tpublic void startDocument() {\n\t\t\tgenerator().startGeneration();\n\t\t}", "title": "" }, { "docid": "ab6c8a5dca179d71824425fdb863beca", "score": "0.64806896", "text": "public void startDocument() {\n mDocument = new Document();\n }", "title": "" }, { "docid": "3cd266e70ab33f25ff4a0bad34721228", "score": "0.64597154", "text": "private void init() {\n xmlDocGenerator = new XmlDocGenerator();\n document = xmlDocGenerator.getDocument();\n parentStack = new Stack<>();\n org.w3c.dom.Element root = xmlDocGenerator.createRootElement();\n document.appendChild(root);\n parentStack.push(new XmlElementContainer(root, false));\n }", "title": "" }, { "docid": "21bb255cc0545f1a303ddfeca9d284c1", "score": "0.6459329", "text": "Document createEmptyDocument();", "title": "" }, { "docid": "060b8cb1399373ffb7e78413bb59b81d", "score": "0.64229614", "text": "void init(BaseDocument document, CsmFile csmFile) throws Exception;", "title": "" }, { "docid": "2689a396c4792962649e3ed34d6a084d", "score": "0.63726324", "text": "public DocXManager(){\n\t}", "title": "" }, { "docid": "1dcb0b58f64ae2e2d85b6466dd5722f2", "score": "0.63666534", "text": "public void buildDocument() {\n/* 192 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 194 */ syncAccessMethods();\n/* */ }", "title": "" }, { "docid": "c248a87aad34ccf4b0d3d8a9d2fa2ed2", "score": "0.6339103", "text": "public static Document createEntity() {\n Document document = new Document()\n .content(DEFAULT_CONTENT)\n .contentContentType(DEFAULT_CONTENT_CONTENT_TYPE)\n .fileName(DEFAULT_FILE_NAME)\n .title(DEFAULT_TITLE);\n return document;\n }", "title": "" }, { "docid": "7a3e4e3d0f7907209602a38b6b0664df", "score": "0.63188887", "text": "public void buildDocument() {\n/* 209 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 211 */ syncAccessMethods();\n/* */ }", "title": "" }, { "docid": "5a48b40610bd9540cad4aeba9bd02f48", "score": "0.6281278", "text": "public DocBookAMImpl() {\n }", "title": "" }, { "docid": "053e5d56c77ce3967646608d089d1f5d", "score": "0.6280292", "text": "public void startDocument()\r\n {\r\n logger.debug(\"startDoc\");\r\n }", "title": "" }, { "docid": "e5451b1c254f0b579b318afc626c6eee", "score": "0.6264487", "text": "public void buildDocument() {\n/* 198 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 200 */ syncAccessMethods();\n/* */ }", "title": "" }, { "docid": "67db085d21e77febe028f0a0b47734c6", "score": "0.6262345", "text": "private void initDocument()\r\n {\r\n // reset the pool of semantic roles and markables of the corrent doc\r\n this.semroles.clear();\r\n this.markables.clear();\r\n \r\n this.parseTrees.clear();\r\n this.parseStart.clear();\r\n this.parseEnd.clear();\r\n \r\n // and get the new ones\r\n MarkableLevel semrole_level=currentDocument\r\n .getMarkableLevelByName(DEFAULT_SEMROLE_LEVEL);\r\n MarkableQuery q=new MarkableQuery(semrole_level);\r\n q.addAttCondition(\"tag\", \"target\", MarkableQuery.OP_NE);\r\n this.semroles = q.execute(semrole_level,MiniDiscourse.DISCOURSEORDERCMP);\r\n this.markables = currentLevel.getMarkables(MiniDiscourse.DISCOURSEORDERCMP);\r\n \r\n for (Markable parseMarkable :\r\n DiscourseUtils.getMarkables(currentDocument, DEFAULT_PARSE_LEVEL))\r\n {\r\n Tree currParseTree = null;\r\n currParseTree = Tree.valueOf(parseMarkable.getAttributeValue(\r\n\t\t\t PipelineComponent.TAG_ATTRIBUTE));\r\n\t\t\t normalizeTree(currParseTree);\r\n \r\n parseTrees.add(currParseTree);\r\n parseStart.add(parseMarkable.getLeftmostDiscoursePosition());\r\n parseEnd.add(parseMarkable.getRightmostDiscoursePosition());\r\n }\r\n }", "title": "" }, { "docid": "d09497e4ca58201b415ea5d5ce39023e", "score": "0.6260291", "text": "public Document createDocument(Application app);", "title": "" }, { "docid": "d229581144528a38136ddaddc5b542b4", "score": "0.6252056", "text": "void initialize(boolean createLeaseCollection) throws DocumentClientException;", "title": "" }, { "docid": "e030bcd80fb19ac6bfbd4e670cb8cebe", "score": "0.6244329", "text": "public Document(final RapidBean rootBean) {\n\t\tthis.root = rootBean;\n\t\tthis.name = \"document\";\n\t\tinit();\n\t}", "title": "" }, { "docid": "e9b21e58974260d02f394f312cc448ea", "score": "0.62342423", "text": "public interface DocumentFactory {\n\t/**\n\t * Create a new empty document.\n\t */\n\tpublic Document createDocument(Application app);\n\n\t/**\n\t * Create a new document based on the given URL. Typically, this method will\n\t * parse the contents of the URL and create a Document object containing the\n\t * parsed form of those contents.\n\t */\n\tpublic Document createDocument(Application app, URL url);\n\n\t/**\n\t * Create a new document based on the given file path. Typically, this\n\t * method will parse the contents of the file and create a Document object\n\t * containing the parsed form of those contents.\n\t */\n\tpublic Document createDocument(Application app, File file);\n}", "title": "" }, { "docid": "5d0430b78d44a52d4ae8f0e948954e99", "score": "0.62334794", "text": "public void startDocument(){\r\n\t\tSystem.out.println(\"Start parsinga\");\r\n\t\tdoc=new Document();\r\n\t}", "title": "" }, { "docid": "e9e4f3ebb43b6dbd3b287a93f14b1228", "score": "0.62237304", "text": "public CRFPDocument() {\n\t\tsuper();\n\t\tid = idGen++;\n\t\tstatus = STATUS_LISTO;\n\t}", "title": "" }, { "docid": "023c4131d2556d81aa1da6dfe2572fcf", "score": "0.62213874", "text": "public void buildDocument() {\n/* 381 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 383 */ syncAccessMethods();\n/* */ }", "title": "" }, { "docid": "3dfa57aedd836c753e7bce390e94c917", "score": "0.6213433", "text": "public ObjectFactory() {\n \t// can be used to create new instances of schema\n }", "title": "" }, { "docid": "69abe3ad9e82e129ec9f523ae859639a", "score": "0.62092197", "text": "private Document initDoc(){\n\t\tDocumentBuilderFactory factory;\n\t\tDocumentBuilder builder = null;\n\t\tDocument doc = null;\n\t\t\n\t\ttry {\n\t\t\tfactory = DocumentBuilderFactory.newInstance();\n\t\t\tbuilder = factory.newDocumentBuilder();\n\t\t\tdoc = builder.parse(new File(this.XMLFilePath));\n\t\t} catch (FactoryConfigurationError fce) {\n\t\t\tSystem.err.println(\"Could not create DocumentBuilderFactory\");\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Could not locate a JAXP parser\");\n\t\t} catch (SAXException se) {\n\t\t\tSystem.out.println(\"XML file is not well-formed.\");\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"Due to an IOException, the parser could not read the XML file:\"+this.XMLFilePath);\n\t\t}\n\t\t\n\t\treturn doc;\n\t}", "title": "" }, { "docid": "71b2cd6039b32772bb1c3086ce5d744d", "score": "0.6185472", "text": "private ApiDoc() {\n init(new Context());\n }", "title": "" }, { "docid": "02813c5a01eb9793dcc3b9bd37c749e9", "score": "0.61754036", "text": "public void startDocument() {\n accumulator = new StringBuffer();\n nameToClass = new HashMap();\n nameToID = new HashMap();\n nameToPatterns = new HashMap();\n }", "title": "" }, { "docid": "e74692a4e29134dbe224026389070824", "score": "0.6164661", "text": "private void initialiseDocArray()\n {\n docs[0] = new Doc(1234500001, \"A New Hope\", \"pdf\");\n docs[1] = new Doc(1234500002, \"Empire Strikes Back\", \"msg\");\n docs[2] = new Doc(1234500003, \"Return of the Jedi\", \"txt\");\n docs[3] = new Doc(1234500004, \"The Hobbit\", \"pdf\");\n docs[4] = new Doc(1234500005, \"Fellowship of the Ring\", \"txt\");\n docs[5] = new Doc(1234500006, \"Two Towers\", \"msg\");\n docs[6] = new Doc(1234500007, \"Return of the King\", \"pdf\");\n docs[7] = new Doc(1234500008, \"Macbeth\", \"txt\");\n }", "title": "" }, { "docid": "600583013b5dff135611c26d3d13d834", "score": "0.6145089", "text": "public Document(Document doc){\n this.type = doc.type;\n this.number = doc.number;\n this.authority = doc.authority;\n this.issueDate = doc.issueDate;\n }", "title": "" }, { "docid": "87b9d289b0b99ff900876867ec1de2ee", "score": "0.6136953", "text": "private static Document createNewDocument() {\n synchronized (db) {\n return db.newDocument();\n }\n }", "title": "" }, { "docid": "97481eb6caa6b028e778d75c98ea7d74", "score": "0.61278176", "text": "public XMLCreator() {\r\n\t\tbodyRoot = new ArrayList<Object[]>();\r\n\t}", "title": "" }, { "docid": "c37dd95fb30af5fa9bda3dcdfe12cf13", "score": "0.6123271", "text": "public Document(String idDocument, String name, String docPath, double rate, int grade, String userID, LocalDate date, String topicID, String username, String topicName) {\n if (idDocument != null) this.idDocument = UUID.fromString(idDocument);\n this.name = name;\n this.docPath = docPath;\n this.rate = rate;\n this.grade = grade;\n this.userID = UUID.fromString(userID);\n this.date = date;\n this.topicID = UUID.fromString(topicID);\n this.username = username;\n this.topicName = topicName;\n }", "title": "" }, { "docid": "e5e49798193ab3cad0bea65bb4f1a7c0", "score": "0.6107652", "text": "public void initialize() {\n couchbase.ensureIndexes(UTIL_DOCUMENT, ALL_VIEWS);\n couchbase.initialize();\n }", "title": "" }, { "docid": "2c9c7ccb94a8ed6eb9c7d19051c5bfa9", "score": "0.6088556", "text": "public DocumentsRecord() {\n\t\tsuper(me.hubertus248.mdsearch.tables.Documents.DOCUMENTS);\n\t}", "title": "" }, { "docid": "760352ef81bdd3fd41d7453ebd4884dc", "score": "0.6079091", "text": "public ScoreDocument() {\n super();\n\t\tsystemsSelected = false;\n\t\ttypesSelected = false;\n\t\ttheSnapshot = null;\n\t\treaderWriter = new ReadWrite(this);\n\t\tconnectionChecker = new ConnectionChecker(this);\n\t\t_model = new ScoreDataModel(this);\n\t\tselectedTypeList = new ArrayList<String>();\n\t\tselectedSystemList = new ArrayList<String>();\n\t}", "title": "" }, { "docid": "c51864692d98c658a23f374a22e23bd0", "score": "0.6070726", "text": "public JwSentDocs () {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "103b00cd5ae59a7497ea649797393a86", "score": "0.60664475", "text": "private DocumentSnapshot() {\n initFields();\n }", "title": "" }, { "docid": "e036fd5db030e04b6d3cea937ceb70c7", "score": "0.6030507", "text": "public static com.myjeeva.andromda.demo.service.IndexDocument indexDocumentCreateInput()\r\n {\r\n com.myjeeva.andromda.demo.service.IndexDocument indexDocumentReturn = new com.myjeeva.andromda.demo.service.IndexDocument();\r\n\r\n // parameter1 documentsElementParam1 with 5 properties: id name inStock price features\r\n com.myjeeva.andromda.demo.vo.DocumentVO documentsElementParam1 = new com.myjeeva.andromda.demo.vo.DocumentVO();\r\n documentsElementParam1.setId(\"id\");\r\n documentsElementParam1.setName(\"name\");\r\n documentsElementParam1.setInStock(Boolean.TRUE);\r\n documentsElementParam1.setPrice(java.lang.Double.valueOf(1));\r\n documentsElementParam1.getFeatures().add(\"features\");\r\n // java.util.List<com.myjeeva.andromda.demo.vo.DocumentVO> documentsElementParam1 = new java.util.ArrayList<com.myjeeva.andromda.demo.vo.DocumentVO>();\r\n indexDocumentReturn.getDocuments().add(documentsElementParam1);\r\n\r\n return indexDocumentReturn;\r\n }", "title": "" }, { "docid": "3f067c364edafa6f23e1286ed89ab41b", "score": "0.6026295", "text": "private Document(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "5abb8366592319a86ead47a80a52c295", "score": "0.6003845", "text": "public Document document();", "title": "" }, { "docid": "7c169250cb741ed5e6ea02e9ba1ad478", "score": "0.5952951", "text": "private Document createDoc(String content){\n\t\tDocument doc = new Document();\n\t\tdoc.add(new TextField(IndexCONSTANTS.FIELD_CONTENT, content, Field.Store.YES));\n\t\treturn doc;\n\t}", "title": "" }, { "docid": "c56bace3855c4ed73a64af0dcfaefdde", "score": "0.5933004", "text": "public void startDocument() {\n operation = \"startDocument\";\n }", "title": "" }, { "docid": "ef43b898a344ea97ce47c4156c8fb642", "score": "0.59225774", "text": "public CreateNewDocument(ASPManager mgr, String page_path)\n {\n super(mgr,page_path);\n }", "title": "" }, { "docid": "1f882a565b027568226abb3098f6383f", "score": "0.5912028", "text": "public PdfData() {}", "title": "" }, { "docid": "dc159987de37b7e0b240820db3b12b70", "score": "0.589697", "text": "public Document(final String docname, final RapidBean rootBean) {\n\t\tthis.name = docname;\n\t\tthis.root = rootBean;\n\t\tinit();\n\t}", "title": "" }, { "docid": "2df410c5fc5472ee6ed7939575b11973", "score": "0.58917904", "text": "public Doc(){\n this.termsInDoc = new HashMap<>();\n }", "title": "" }, { "docid": "d1dab8a1952c7d9a684a0802a854d033", "score": "0.5887394", "text": "private void buildDocument(Document doc) throws DocumentException, IOException {\n doc.open();\n\n addHeader(doc);\n addCaseInfo(doc);\n buildStringArrays();\n\n addSection(initialString, doc, \"\\nInitial Sentence Frame\");\n\n doc.add(new Paragraph(\"\\nModified Sentence Frame\", subsubheading));\n addModIntroduction(doc);\n doc.add(modifyList);\n\n doc.add(new Paragraph(\"\\nSegment of Sentence Frame\\n\", subsubheading));\n addSegmentIntroduction(doc);\n doc.add(segmentList);\n\n doc.add(new Paragraph(\"\\nIncreases and/or Decreases to Sentence:\\n\", subsubheading));\n doc.add(incDecList);\n\n addReferences(urls, links, doc);\n\n doc.close();\n }", "title": "" }, { "docid": "13d906f701dc2665c441b7ed96024c93", "score": "0.588272", "text": "protected void init1Create() {\n\n\t}", "title": "" }, { "docid": "3a2c157144d10480faccae431bafcfbd", "score": "0.5882599", "text": "public Document(String title, String doc) {\n\t\tdocs = doc;\n\t\ttitles = title;\n\t}", "title": "" }, { "docid": "b1c8d8ace6ab4bdda0cead2994cca5ce", "score": "0.5867767", "text": "public void openDocument(){\n this.createFile();\n try {\n this.document = new Document();\n this.pdfWriter = PdfWriter.getInstance(this.document, new FileOutputStream(this.pdfFile));\n this.document.addCreationDate();\n this.document.addProducer();\n this.document.setPageSize(PageSize.A4);\n this.document.open();\n }catch (Exception e){\n Log.e(\"openDocument\", e.toString());\n }\n }", "title": "" }, { "docid": "ed5932e2686cfb11961c47d37f2c7148", "score": "0.58654475", "text": "protected Document createDefaultModel() {\r\n //Document retValue;\r\n \r\n //retValue = super.createDefaultModel();\r\n return new NumberDocument();\r\n }", "title": "" }, { "docid": "b01eb8006325e885000cb94e08bae723", "score": "0.58612204", "text": "public Documento (Frase a, Frase t) {\n autor = a;\n titulo = t;\n contenido = new ArrayList<Frase>();\n esVacio = true;\n }", "title": "" }, { "docid": "4ee0105e8bd19584babc68957a140719", "score": "0.5859993", "text": "protected Document createDefaultModel()\n {\n return new ConstrainedTextDocument(Integer.MAX_VALUE);\n }", "title": "" }, { "docid": "01f4377871e53dff31b88f50dc23a4c3", "score": "0.5845243", "text": "public Document document(Element rootElement, DocType docType, String baseURI) {\r\n Document d = new Document();\r\n if (docType != null) {\r\n addContent(d, docType);\r\n }\r\n if (rootElement != null) {\r\n addContent(d, rootElement);\r\n }\r\n if (baseURI != null) {\r\n d.baseURI = baseURI;\r\n }\r\n return d;\r\n }", "title": "" }, { "docid": "7defa9005ab231db6e624646721620d2", "score": "0.583305", "text": "public DefaultDocument(final String name, final String documentURI) {\n this.name = name;\n this.documentURI = documentURI;\n init();\n }", "title": "" }, { "docid": "257e4db4e9ef94fd730e53d85bd6c626", "score": "0.58260995", "text": "public void initiateDocument() {\n LOG.debug(\"initiateDocument() started\");\n setStatusCode(ArConstants.CustomerCreditMemoStatuses.INITIATE);\n }", "title": "" }, { "docid": "891781cc2cca57ca5370139b9fabe776", "score": "0.58222073", "text": "@Override\n public RepositoryResourceUserObject createTextDocument(String fileType)\n {\n return null;\n }", "title": "" }, { "docid": "30a391ec99da72653fb6ed19426e073b", "score": "0.5817438", "text": "DocumentRoot createDocumentRoot();", "title": "" }, { "docid": "30a391ec99da72653fb6ed19426e073b", "score": "0.5817438", "text": "DocumentRoot createDocumentRoot();", "title": "" }, { "docid": "30a391ec99da72653fb6ed19426e073b", "score": "0.5817438", "text": "DocumentRoot createDocumentRoot();", "title": "" }, { "docid": "7c0e5ed46efc9c2dda0d8260e0fb075f", "score": "0.58159477", "text": "public abstract void initServiceInstance(Document domDoc);", "title": "" }, { "docid": "533cece7677a6b696e3653f768b94aa2", "score": "0.581129", "text": "public AccountDocumentList() { }", "title": "" }, { "docid": "da6748dd2cd2c7b6f1820db1b49d9530", "score": "0.5807084", "text": "public Document newDocument() {\n\t\t\tDocumentBuilder p = null;\n\t\t\ttry {\n\t\t\t\tp = get();\n\t\t\t} catch (SAMLException e) {\n\t\t\t\t// Configuration error, no XML support. Return null??\n\t\t\t\t// Throw RuntimeException??\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tDocument doc = p.newDocument();\n\t\t\tput(p);\n\t\t\treturn doc;\n\t\t}", "title": "" }, { "docid": "c82b75484b1f51b6f837f1bb00e8c82f", "score": "0.5784271", "text": "public ValohaiMetadataCreator() {}", "title": "" }, { "docid": "4ec958f40311dffa60395c67426dcb1d", "score": "0.5779979", "text": "protected Document createDefaultModel()\n {\n return new PercentageDocument();\n }", "title": "" }, { "docid": "952e834c420a6f0fd4f8353b80d3296d", "score": "0.5779383", "text": "protected void initialise() {\t\n\t\tresultSet = new CollectionResultSet(collectionStatistics.getNumberOfDocuments());\n\t\tresultSet.initialise();\n\t}", "title": "" }, { "docid": "bb916bd879b8520de4afc83a0d7b97e1", "score": "0.57753575", "text": "private void initialize() {\r\n\t\tthis.setSize(617, 316);\r\n\t\tthis.setTitle(\"Gestione Documenti\"); // Generated\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tUtilGUI.centraDialog(this);\r\n\t}", "title": "" }, { "docid": "1163a74c927533ddf6845e557dcd8393", "score": "0.5772743", "text": "public Document createDocument(String paperId, String title, String abs, String intro)\n\t{\n\t\tDocument document = new Document();\n\t\tStringField paperIdField = new StringField(Utils.PAPER_ID_FIELD, paperId, Field.Store.YES);\n\t\tTextField titleField = new TextField(Utils.TITLE_FIELD, title, Field.Store.YES);\n\t\tTextField absField = new TextField(Utils.ABSTRACT_FIELD, abs, Field.Store.YES);\n\t\tTextField introField = new TextField(Utils.INTRO_FIELD, intro, Field.Store.YES);\n\t\t\n\t\tdocument.add(paperIdField);\n\t\tdocument.add(titleField);\n\t\tdocument.add(absField);\n\t\tdocument.add(introField);\n\t\treturn document;\n\t}", "title": "" }, { "docid": "eed3debd71ab3a26c10f8b4eb7cda9c6", "score": "0.57514054", "text": "public void newDocument() {\r\n editDocument(null);\r\n }", "title": "" }, { "docid": "ef8a536a5ec399313ca214c1a9b378dd", "score": "0.57466733", "text": "public ResearchCollection()\n {\n // create container for documents in given category\n researchCollection = new ArrayList<Document>();\n }", "title": "" }, { "docid": "2b06581b1c331dcd68c3ebe0934f6cac", "score": "0.5745294", "text": "private DocumentImpl createDocument(DocumentFormat format, URI uri, String documentAsString, int newDocumentHashCode, byte[] documentAsByteArray) {\n\t\tif (format == DocumentFormat.PDF) {\n \tDocumentImpl newDocument = new DocumentImpl(uri, documentAsString, newDocumentHashCode, documentAsByteArray);\n \tclearMemoryIfNecessary(hashTable.get(uri),newDocument);\n \tfor (String word: newDocument.hashMap.keySet()) {\n \t\ttrie.put(word, newDocument);\n \t}\n \t\tminHeap.insert(newDocument);\n \t\tthis.nDocuments++;\n \t\tthis.memoryUsage += newDocument.getMemoryUsage();\n \treturn hashTable.put(uri, newDocument);\n \t}\n \telse { // if it's a TXT\n \tDocumentImpl newDocument = new DocumentImpl(uri, documentAsString, newDocumentHashCode);\n \t\tclearMemoryIfNecessary(hashTable.get(uri),newDocument);\n \tfor (String word: newDocument.hashMap.keySet()) {\n \t\ttrie.put(word, newDocument);\n \t}\n \t\tminHeap.insert(newDocument);\n \t\tthis.nDocuments++;\n \t\tthis.memoryUsage += newDocument.getMemoryUsage();\n \treturn hashTable.put(uri, newDocument);\n \t}\n\t}", "title": "" }, { "docid": "856180cb6e239c7715b4fed272875225", "score": "0.57446796", "text": "public Document(String title, String docType,\n ArrayList<String> authors, ArrayList<String> keywords,\n int price) {\n this(++lastID, title, docType, authors, keywords, price, 0,\n new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), 1);\n }", "title": "" }, { "docid": "c5c9c21a06d0e09ac265922bf012eeb8", "score": "0.5736622", "text": "public PDFFormUIBuilder(PDDocument doc) {\n\t\t_doc = checkNotNull(doc);\n\t}", "title": "" }, { "docid": "ffa8c30328e819a61c14683d8459de2d", "score": "0.57328945", "text": "public void startDocument() {\n\t\tserverIndexBean = new Bean(\"SERVER INDEX\");\r\n\t\tbean.addFilho(serverIndexBean);\r\n\t}", "title": "" }, { "docid": "d2cd7feaabccac93f383d1f3b85d5ed3", "score": "0.5731475", "text": "public void init()\n {\n createModel() ;\n createView() ;\n updateView() ;\n }", "title": "" }, { "docid": "da516688e0e51d56859b307e322da827", "score": "0.5730845", "text": "DocumentManager create(TextDocumentItem documentItem);", "title": "" }, { "docid": "285d9bb4d00c94bc84ec0b23d4bd3115", "score": "0.569985", "text": "public void initialiser() {\n\t}", "title": "" }, { "docid": "ef5fceb4c302a9a47c0f438c4c3d28ec", "score": "0.56976867", "text": "@POST\n @Path(\"createDocument\")\n public Object createDocument(@Context\n HttpServletRequest request) throws Exception {\n CoreSession session = ctx.getCoreSession();\n FormData formData = new FormData(request);\n String type = formData.getDocumentType();\n String title = formData.getDocumentTitle();\n DocumentRef docRef = getDocumentRef(formData.getString(\"docRef\"));\n DocumentModel parent = session.getDocument(docRef);\n DocumentModel newDoc = session.createDocumentModel(\n parent.getPathAsString(), title, type);\n formData.fillDocument(newDoc);\n newDoc = session.createDocument(newDoc);\n session.save();\n if (newDoc.isFolder()) {\n return buildDocumentList(newDoc.getId(), 0, 0, null);\n } else {\n return buildDocumentList(parent.getId(), 0, 0, null);\n }\n }", "title": "" }, { "docid": "ba70573d4995d52f735b3c735b1b42c2", "score": "0.56959933", "text": "public Document(int id,\n String title, String docType,\n ArrayList<String> authors, ArrayList<String> keywords,\n int price, int numberOfRequests,\n ArrayList<Copy> availableCopies, ArrayList<Copy> takenCopies, ArrayList<Copy> bookedCopies,\n int lastCopyID) {\n this.title = title;\n this.authors = authors;\n this.keywords = keywords;\n this.price = price;\n this.numberOfRequests = numberOfRequests;\n this.id = id;\n this.docType = docType;\n this.availableCopies = availableCopies;\n this.takenCopies = takenCopies;\n this.bookedCopies = bookedCopies;\n lastID = lastID < id ? id : lastID;\n this.lastCopyID = lastCopyID;\n }", "title": "" }, { "docid": "809238061c98938302599be151a99b03", "score": "0.5671557", "text": "public XMLBuilder() {}", "title": "" }, { "docid": "d1ded4be840adb844b84f22fa8638473", "score": "0.5665171", "text": "public FacDocumentodetalle() {\n }", "title": "" }, { "docid": "d4831be2602e87053af18e95e0c10203", "score": "0.5662603", "text": "private void initDoc(PdfReader reader, Document document, PdfWriter writer) {\n int numOfPages = reader.getNumberOfPages();\n PdfContentByte cb = writer.getDirectContent();\n PdfImportedPage importedPage;\n for (int page = 1; page <= numOfPages; page++) {\n importedPage = writer.getImportedPage(reader, page);\n document.newPage();\n cb.addTemplate(importedPage, 0, 0);\n }\n }", "title": "" }, { "docid": "2c38fb9db799ee50aa2519ca48227bc0", "score": "0.565251", "text": "public Document(Element element, int publicId)\n {\n rootElement = element;\n this.publicId = publicId;\n }", "title": "" }, { "docid": "4fbb476927eea35cb4a92ca35ad6867a", "score": "0.56472033", "text": "public PDFFactory(final PDFDocument document) {\n this.document = document;\n }", "title": "" }, { "docid": "8bb63033addc5958a062dc523bc54e51", "score": "0.5641345", "text": "public static Document newDocument() throws Exception {\n\t\tfinal DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\tfinal DocumentBuilder builder = factory.newDocumentBuilder();\n\t\treturn builder.newDocument();\n\t}", "title": "" }, { "docid": "7930bf244bca83202a17c7196a95ae70", "score": "0.56280744", "text": "public Indexer() {\n docsDictionary = new LinkedHashMap<>();\n termsDictionary = new LinkedHashMap<>();\n isStem = Configurations.getStemmingProp() == false ? \"WithoutStem\" : \"Stem\";\n createPostingsDir();\n\n synchronized (postingIndex) {\n ++postingIndex;\n index = postingIndex;\n }\n }", "title": "" }, { "docid": "9d91fe65df0ff48f2c342fabafe39257", "score": "0.5626204", "text": "public Book() {\n title = null;\n author = null;\n copyrightYear = 0;\n \n }", "title": "" }, { "docid": "1217eab8a84f34aced20bcaf209c1c56", "score": "0.56249124", "text": "public SqlDocument() {\n Style redStyle = addStyle(\"Red\", null);\n StyleConstants.setForeground(redStyle, Color.red);\n \n Style greenStyle = addStyle(\"Green\", null);\n StyleConstants.setForeground(greenStyle, new Color(47, 155, 47));\n \n Style blueStyle = addStyle(\"Blue\", null);\n StyleConstants.setForeground(blueStyle, Color.blue);\n \n Style blueBoldStyle = addStyle(\"BlueBold\", blueStyle);\n StyleConstants.setBold(blueBoldStyle, true);\n \n Style blackStyle = addStyle(\"Black\", null);\n StyleConstants.setForeground(blackStyle, Color.black);\n \n Style magentaStyle = addStyle(\"Magenta\", null);\n StyleConstants.setForeground(magentaStyle, new Color(150, 35, 230)); // Color.magenta);\n\n Style currentQueryStyle = addStyle(\"Current\", null);\n StyleConstants.setBackground(currentQueryStyle, new Color(255, 255, 204));\n \n setDefaultKeywords();\n }", "title": "" }, { "docid": "56329d699f52d6d51e278a2206095dd0", "score": "0.5605399", "text": "public void init() throws BuildException {\n\t\tsuper.init();\n\t\tthis.cleanup = false;\n\t\tthis.deletes = new LinkedList();\n\t\tthis.pdf = true;\n\t}", "title": "" }, { "docid": "5acb833e247c9b69441acfbd8c34dbb7", "score": "0.5602236", "text": "public Document createDocument(Application app, File file);", "title": "" } ]
e0117958c9d71e2effc3996ef9b5baf8
greedy action selection implementation return the index of the most valuable action for a particular state
[ { "docid": "090f002c2cc0bf48232a3812b4b6378a", "score": "0.7548607", "text": "private int getMaxValuedAction(int[] state) {\n\t\tint maxIndex = -1;\n\t\tfloat maxValue = -Float.MAX_VALUE;\n\t\tfor (int action = 0; action < numActions; action++) {\n\t\t\t// if Q-Value here is greater than maxValue\n\t\t\tif (qTable[state[0]][state[1]][state[2]][state[3]][action] > maxValue) {\n\t\t\t\t// Assign maxIndex to the action\n\t\t\t\tmaxIndex = action;\n\t\t\t\t// Assign maxValue to that Q-Value\n\t\t\t\tmaxValue = qTable[state[0]][state[1]][state[2]][state[3]][action];\n\t\t\t}\n\t\t}\n\t\t// Return better action\n\t\treturn maxIndex;\n\t}", "title": "" } ]
[ { "docid": "e3aad2ea3b5d1247a0ab714b84c5879f", "score": "0.77603203", "text": "public int chooseAction(int state) {\r\n int bestAction = 0;\r\n \r\n /* Epsilon-Greedy Algorithm */\r\n if (rand.nextInt(10000) <= 10000*this.epsilon)\r\n bestAction = rand.nextInt(this.numOfActions);\r\n \r\n /* Otherwise iterate through Q matrix to find best action */\r\n else {\r\n for(int i = 0; i < this.numOfActions; i++) {\r\n if (this.Qtable[state][i] > this.Qtable[state][bestAction]) {\r\n bestAction = i;\r\n }\r\n }\r\n }\r\n return bestAction;\r\n }", "title": "" }, { "docid": "8f6514ea63a8daea3fbc131df07432f8", "score": "0.7729204", "text": "public int selectAction(int[] state) {\n\t\tint selectedAction = -1;\n\t\tdouble randomValue = Math.random();\n\n\t\t// select a random action with probability epsilon\n\t\t// else select the most valuable action\n\t\tif (randomValue < epsilon) {\n\t\t\tselectedAction = selectRandomAction();\n\t\t} else {\n\t\t\tselectedAction = getMaxValuedAction(state);\n\t\t}\n\n\t\treturn selectedAction;\n\t}", "title": "" }, { "docid": "140cacd78a091b9e88d9a6caf40449cc", "score": "0.7597519", "text": "public int selectAction( int[] state , int index ) {\n System.out.println(\"selectAction>>\");\n for (int i=0;i<state.length;i++)\n System.out.print(\" in state[\"+i+\"]: \"+state[i]+\", \");\n System.out.println();\n \n\tdouble[] qValues = policy.getQValuesAt( state );\n\tint selectedAction = -1;\n \n\tswitch (actionSelection) {\n\t \n\tcase E_GREEDY : {\n\t \n\t random = false;\n\t double maxQ = -Double.MAX_VALUE;\n\t int[] doubleValues = new int[qValues.length];\n\t int maxDV = 0;\n\t \n\t //Explore\n\t if ( Math.random() < epsilon ) {\n\t\tselectedAction = -1;\n\t\trandom = true;\n\t }\n\t else {\n\t \n\t\tfor( int action = 0 ; action < qValues.length ; action++ ) {\n\t\t \n\t\t if( qValues[action] > maxQ ) {\n\t\t\tselectedAction = action;\n\t\t\tmaxQ = qValues[action];\n\t\t\tmaxDV = 0;\n\t\t\tdoubleValues[maxDV] = selectedAction;\n\t\t }\n\t\t else if( qValues[action] == maxQ ) {\n\t\t\tmaxDV++;\n\t\t\tdoubleValues[maxDV] = action; \n\t\t }\n\t\t}\n\t\t\n\t\tif( maxDV > 0 ) { //breaking ties\n\t\t int randomIndex = (int) ( Math.random() * ( maxDV + 1 ) );\n\t\t selectedAction = doubleValues[ randomIndex ];\n\t\t}\n\t }\n\t \n\t // Select random action if all qValues == 0 or exploring.\n\t if ( selectedAction == -1 ) {\n\t\t\n\t\t// System.out.println( \"Exploring ...\" );\n\t\tselectedAction = (int) (Math.random() * qValues.length);\n\t }\n\t \n\t // Choose new action if not valid.\n if (stateType!=2){\n while( ! validAction(selectedAction,state ) ) {\n\n selectedAction = (int) (Math.random() * qValues.length);\n // System.out.println( \"Invalid action, new one:\" + selectedAction);\n }\n }\n else{\n while( ! validAction(selectedAction,state,index) ) {\n selectedAction = (int) (Math.random() * qValues.length);\n }\n }\n\t \n\t break;\n\t}\n\t\n\tcase SOFTMAX : {\n\t \n\t int action;\n\t double prob[] = new double[ qValues.length ];\n\t double sumProb = 0;\n\t \n\t for( action = 0 ; action < qValues.length ; action++ ) {\n\t\tprob[action] = Math.exp( qValues[action] / temp );\n\t\tsumProb += prob[action];\n\t }\n\t for( action = 0 ; action < qValues.length ; action++ )\n\t\tprob[action] = prob[action] / sumProb;\n\t \n\t boolean valid = false;\n\t double rndValue;\n\t double offset;\n\t \n\t while( ! valid ) {\n\t\t\n\t\trndValue = Math.random();\n\t\toffset = 0;\n\t\t\n\t\tfor( action = 0 ; action < qValues.length ; action++ ) {\n\t\t if( rndValue > offset && rndValue < offset + prob[action] )\n\t\t\tselectedAction = action;\n\t\t offset += prob[action];\n\t\t // System.out.println( \"Action \" + action + \" chosen with \" + prob[action] );\n\t\t}\n\n\t\tif( validAction( selectedAction,state ) )\n\t\t valid = true;\n\t }\n\t break;\n\t \n\t}\n\t}\n System.out.println(\"selectedAction: \"+selectedAction+\" <<selectAction\");\n\treturn selectedAction;\n }", "title": "" }, { "docid": "8d8f6b53e36c1bad657a043145f3f0c7", "score": "0.7237109", "text": "public Actions greedyAction(Estado s){\n\t\tfor(int i=0;i<s._sActions.length;i++){\r\n\t\t\tif(s._sActions[i] != null){\r\n\t\t\t\ts._sActions[i].q = qValue(s._sActions[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(\"State: \" + s._sEstado);\r\n\t\treturn argMax(s._sActions);\r\n\t}", "title": "" }, { "docid": "43ea709bf80120d7b14e6662d6a57246", "score": "0.6940367", "text": "public String selectAction(int s){\n\t\t\n\t\t//reduces the number of possible actions for the state\n\t\tString[] actions = getOptions(s);\n\t\t\n\t\t/*if(actions.length > 4){\n\t\t\tSystem.out.println(actions.length);\n\t\t}*/\n\t\t\n\t\tdouble[] helper = new double[actions.length-1]; //length 3\n\t\t\n\t\tfor(int i = 0; i < helper.length; i++){\n\t\t\t/*for(int j = 0; j <= i; j++){\n\t\t\t\thelper[i] += sPolicy[s][j];\n\t\t\t}*/\n\t\t\tif(i > 0){\n\t\t\t\thelper[i] = helper[i-1] + sPolicy[s][i]; \n\t\t\t}\n\t\t\telse{\n\t\t\t\thelper[i] = sPolicy[s][i];\n\t\t\t}\n\t\t}\n\t\t\n\t\t//\t\t{sPolicy[s][0], sPolicy[s][0] + sPolicy[s][1],\n\t\t//\tsPolicy[s][0] + sPolicy[s][1] + sPolicy[s][2]};\t\t\n\t\t\t\t\n\t\tdouble x = Math.random();\n\t\t\n\t\tfor(int i = helper.length-1; i >= 0; i--){\n\t\t\tif(x > helper[i]){\n\t\t\t\treturn actions[i+1];\n\t\t\t}\n\t\t}\n\t\treturn actions[0];\n\t\t\n\t\t/*if(x > helper[2]){\n\t\t\treturn actions[3];\n\t\t}\n\t\telse if(x > helper[1]){\n\t\t\treturn actions[2];\n\t\t}\n\t\telse if(x > helper[0]){\n\t\t\treturn actions[1];\n\t\t}\n\t\telse{\n\t\t\treturn actions[0];\n\t\t}*/\n\t}", "title": "" }, { "docid": "a9cfd37e2448a00add68b9bbe7521229", "score": "0.68528044", "text": "protected abstract int getAction(TreeSet<ActionValueTuple> stateValueSet);", "title": "" }, { "docid": "95ed85b1546ee88025cd0a41dcacf38c", "score": "0.6590796", "text": "State selectBestState() {\n\t\tState state = states.get(0);\n\t\tfor (int i = 1; i < states.size; i++) {\n\t\t\tState candidate = states.get(i);\n\t\t\tif (candidate.characterCount > state.characterCount) {\n\t\t\t\tstate = states.get(i);\n\t\t\t} else if (candidate.characterCount == state.characterCount && states.get(i).curLen < state.curLen) {\n\t\t\t\tstate = states.get(i);\n\t\t\t}\n\t\t}\n\t\treturn state;\n\t}", "title": "" }, { "docid": "f4801893c275576a7d99e8e5945d21c2", "score": "0.65445685", "text": "int getSelectedStateIndices(int index);", "title": "" }, { "docid": "167eaa2c0a1d4618559603eb52bd00d3", "score": "0.6538473", "text": "public ACTION makeDecision(STATE state) {\n expandedNodes = 0;\n ACTION result = null;\n double resultValue = Double.NEGATIVE_INFINITY;\n PLAYER player = game.getPlayer(state);\n for (ACTION action : game.getActions(state)) {\n STATE newState = game.cloneState(state);\n double value = minValue(game.getResult(newState, action), player,\n Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, this.depth);\n if (value > resultValue) {\n result = action;\n resultValue = value;\n }\n }\n return result;\n }", "title": "" }, { "docid": "da58f38bd1337f27c934665c726427b2", "score": "0.65368503", "text": "public int getNextState(int state, ActionType type){\n for(Pair<Integer, ActionType> edge : graph.get(state))\n if(edge.second().equals(type))\n return edge.first();\n return -1;\n }", "title": "" }, { "docid": "f43f469fe12a1399e40d5f7eccb60c69", "score": "0.64857405", "text": "final short findNextState(int state, short lookahead)\n {\n int index = goto_offsets[state];\n if (index != UNUSED_OFFSET)\n {\n index += lookahead;\n if (0 <= index && index < actions.length && lookaheads[index] == lookahead)\n {\n return actions[index];\n }\n }\n return compressed ? default_actions[state] : 0;\n }", "title": "" }, { "docid": "ca1520dd1900efa9183b907ceff23b7c", "score": "0.6408383", "text": "@Override\n\tpublic int indexFor(double[] X) {\n\t\tint index = 0;\n\t\tint indexToReturn = 0;\n\t\tdouble maxQ = -1e6;\n\t\t//System.out.println(\"I am looking for this state \"+X[0]+\", \"+X[1]+\", \"+X[2]);\n\t\tfor(int i0 = 0; i0 < stateActionSpace[0]; i0++) { //iterates over the location\n\t\t\tfor(int i1 = 0; i1 < stateActionSpace[1]; i1++) { //iterates over the energy\n\t\t\t\tfor(int i2 = 0; i2 < stateActionSpace[2]; i2++) { //iterates over the distance\n\t\t\t\t\t\n\t\t\t\t\tif(i0 == (int) X[0] && i1 == (int) X[1] && i2 == (int) X[2]) {//The correct state has been found. Now search for the max Q.\n\t\t\t\t\t\tfor(int i3 = 0; i3 < stateActionSpace[3]; i3++) { //iterates over the action\n\t\t\t\t\t\t\tif (maxQ == -1e6) { //If it is the first iteration then set to first q\n\t\t\t\t\t\t\t\tmaxQ = lookuptable[index][4];\n\t\t\t\t\t\t\t\tindexToReturn = index;\n\t\t\t\t\t\t\t} else if (lookuptable[index][4] > maxQ) { //if there is a bitter q. then select that action.\n\t\t\t\t\t\t\t\tmaxQ = lookuptable[index][4];\n\t\t\t\t\t\t\t\tindexToReturn = index;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tindex = index + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"Index for \" + indexToReturn +\", \"+i0+\", \"+i1+\", \"+i2+\",\"+lookuptable[indexToReturn][4]);\n\t\t\t\t\t\treturn indexToReturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tindex = index + stateActionSpace[3];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"COULDN'T FIND INDEX\");\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "3022064584d97fd824e361c1a73c59cb", "score": "0.6407613", "text": "public Action getBestAction(int x, int y) {\n\t\t\n\t\tField state = states[x][y];\n\t\t\n\t\tdouble[] values = {state.getN(), state.getE(), state.getS(), state.getW()};\n\t\tAction[] actions = {Action.NORTH, Action.EAST, Action.SOUTH, Action.WEST};\n\t\t\n\t\t\n\t\t// If all values are equal (0 or any other value) then the random stays\n\t\tint maxIndex = RandomHelper.nextIntFromTo(0, values.length - 1); \n\t\tdouble maxValue = values[maxIndex];\n\t\t\n\t\t// Get maximum q-value\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tif (maxValue < values[i]) {\n\t\t\t\tmaxIndex = i;\n\t\t\t\tmaxValue = values[i];\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn actions[maxIndex];\n\t\t\n\t}", "title": "" }, { "docid": "3157fa0e3c42afa0f646f5f0c3c175ed", "score": "0.63907075", "text": "private int candidateNumber(int mach, int state, int[] actions) {\r\n \t if (actions ==null) return 0;\r\n \t if (preserveOE && EventState.hasNonDet(machines[mach].getStates()[state])) return 0;\r\n \t int cn = 0;\r\n \t int singles =0;\r\n \t int partner =-1;\r\n \t for (int i = 0; i<actions.length; ++i) {\r\n \t \t int shared = 0; \r\n \t \t int a = actions[i];\r\n \t \t if (visible.get(a)) return 0; //eliminate if contains visible action\r\n \t \t if (high!=null && !high.get(a)) return 0; //eliminate if contains low priority action (if priority)\r\n \t \t if (a==0) \r\n \t \t \t shared = 1; //tau\r\n \t \t \telse\r\n \t \t \t shared = actionSharedBy[a].length;\r\n \t \t \tif (shared==1) ++singles;\r\n \t \t \tif (shared>cn) cn = shared;\r\n \t \t \tif (cn>2) return 0;\r\n \t \t \tif (shared==2) {\r\n \t \t \t\tif (partner <0) {\r\n \t \t \t\t\tpartner = getPartner(mach,a);\r\n \t \t \t\t} else {\r\n \t \t \t\t\tif (partner!=getPartner(mach,a)) return 0;\r\n \t \t \t\t}\r\n \t \t \t}\r\n \t }\r\n \t if (preserveOE && (singles>1 || (cn==2 && singles>0))) return 0;\r\n \t if (cn==2) partners[mach][state] = partner;\r\n \t return cn;\r\n }", "title": "" }, { "docid": "0936e74c4dd39a89ac39a312b2452592", "score": "0.62262636", "text": "final short findParserAction(int state, short lookahead)\n {\n int index = actn_offsets[state];\n if (index != UNUSED_OFFSET)\n {\n index += lookahead;\n if (0 <= index && index < actions.length && lookaheads[index] == lookahead)\n {\n return actions[index];\n }\n }\n return compressed ? default_actions[state] : 0;\n }", "title": "" }, { "docid": "d4d4cee45a254bdeac306df95407c954", "score": "0.62015116", "text": "public int[] getNextState( int action, int[]state,int index){\n int[] retState = new int[state.length];\n for(int i=0;i<state.length;i++)\n retState[i] = state[i];\n \n int relatedBoatIndex = index*2;//\n System.out.println(\"relatedBoatIndex: \"+relatedBoatIndex);\n \n if(validAction(action,state,index)){\n if (action==0){//join\n retState[relatedBoatIndex] = 4;//wait\n } \n else if (action==1){//balk\n if ((state[relatedBoatIndex]!= 0)&&(state[relatedBoatIndex]!= 4)){ //if not waiting or normal\n Random rand = new Random(); \n int ran = rand.nextInt(10)+1; //generate random num for prob of failure\n if (((state[relatedBoatIndex]==1) && (ran<=9))||((state[relatedBoatIndex]==2) && (ran<=4)) || ((state[relatedBoatIndex]==3) && (ran<=2)))\n retState[relatedBoatIndex] = 5;//fail\n else \n retState[relatedBoatIndex] = 0;//normal\n }\n }\n } \n return retState;\n }", "title": "" }, { "docid": "46e9f7c9fd329856648381f06f64ae16", "score": "0.61838883", "text": "int getSelectedStateIndicesCount();", "title": "" }, { "docid": "90ef5a545a83f52b28b4dafe15b5d2eb", "score": "0.6171248", "text": "private static int chooseAction(State s, int steps){\n int action = s.getMaxAction();\r\n //want to pick a random choice every 10% of the time\r\n if(steps % 10 == 0) {\r\n action = (int) (Math.random() * 4);\r\n }\r\n return action;\r\n }", "title": "" }, { "docid": "72598dad23c3f6ab8f140b3f5b066656", "score": "0.6162509", "text": "private static int findFirstIndexOfState(String state) {\n\t\t// only works if you look up a valid state\n\t\tfor (int i = 0; i < results.size(); i++) {\n\t\t\tif (results.get(i).getState().equals(state)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "c0e179bff06c64e3755f1a0a197c063a", "score": "0.6117335", "text": "public int selectRandomAction() {\n\t\treturn (int) (Math.random() * numActions);\n\t}", "title": "" }, { "docid": "c88eacbe2d0a87435be03776a67cd80a", "score": "0.6034785", "text": "private DiscreteAction treeWalk(final State currentState) {\n if (mRandomWalk == RandomWalkPhase.IN || mRandomWalk == RandomWalkPhase.STARTED) {\n if (mRandomWalk == RandomWalkPhase.STARTED) {\n // Tree building step 2, save the resulting state\n mSearchTree.completeTreeBuilding(currentState);\n mRandomWalk = RandomWalkPhase.IN;\n }\n\n return randomWalk();\n } else if (mSearchTree.getPerformedActionsForCurrentNode().size() == mAvailableActions.size()\n || !mSearchTree.isLeafNode() && !progressiveWidening()) {\n\n final List<DiscreteAction> availableActions = mSearchTree.getPerformedActionsForCurrentNode();\n DiscreteAction choosenAction = null;\n double bestLookingActionValue = Double.NEGATIVE_INFINITY;\n\n if (availableActions.size() > 1) {\n\n for (final DiscreteAction consideredAction : availableActions) {\n final BenchmarkReward actionReward = mSearchTree.getCurrentNode().getRewardForAction(\n consideredAction);\n\n if (mParetoFront.isDominated(new Solution(actionReward.getRewardVector()))) {\n final double actionValue = mHypervolumeIndicator\n - calculateParetoCubeProjection(actionReward).sub(actionReward).getLength();\n if (actionValue > bestLookingActionValue) {\n bestLookingActionValue = actionValue;\n choosenAction = consideredAction;\n }\n } else {\n if (mHypervolumeIndicator > bestLookingActionValue) {\n bestLookingActionValue = mHypervolumeIndicator;\n choosenAction = consideredAction;\n }\n }\n }\n\n } else {\n choosenAction = availableActions.get(0);\n }\n\n mSearchTree.performActionOnCurrentNode(choosenAction);\n\n return choosenAction;\n } else {\n final List<DiscreteAction> nonAvailableActions = mSearchTree.getPerformedActionsForCurrentNode();\n final List<DiscreteAction> availableActions = new ArrayList<DiscreteAction>(mAvailableActions);\n availableActions.removeAll(nonAvailableActions);\n\n final DiscreteAction choosenAction = availableActions.get(Util.RNG.nextInt(availableActions.size()));\n // Tree building step 1, save the action\n mSearchTree.saveTreeBuildingAction(choosenAction);\n mRandomWalk = RandomWalkPhase.STARTED;\n\n return choosenAction;\n }\n }", "title": "" }, { "docid": "e5fe8b164d0668aae6a768abede84d7b", "score": "0.6016009", "text": "private float getMaxQValue(int[] state) {\n\t\tint maxIndex = getMaxValuedAction(state);\n\t\treturn qTable[state[0]][state[1]][state[2]][state[3]][maxIndex];\n\t}", "title": "" }, { "docid": "c3eb8b09bdcc994e75b5d158303bb063", "score": "0.59662116", "text": "public boolean isGreedy(int state, int action)\n { \n // calculate value of the chosen action\n \tdouble actionValue = 0.0;\n \n for (int i = 0; i < numberOfObjectives; i++) {\n actionValue += weights[i] * valueFunction.get(i) [action][state];\n }\n // check if any other actions are valued more highly - can\n // return false immediately if they are\n for (int a = 0; a < numberOfActions; a++) \n {\n if (a!=action)\n {\n \tdouble scalarValue = 0.0;\n\t for (int i = 0; i < numberOfObjectives; i++) {\n\t scalarValue += weights[i] * valueFunction.get(i)[a][state];\n\t }\n\t \n\t if ( scalarValue > actionValue ) {\n\t \treturn false;\n\t }\n }\n \n }\n // if we get here then no better options were found so can return true\n return true; \t\n }", "title": "" }, { "docid": "75bace07b82d77bb2f4017b0abf4d141", "score": "0.5935575", "text": "int getNumOperators(SearchState state);", "title": "" }, { "docid": "a60120194d8a9ff254c569e305460350", "score": "0.5933645", "text": "@Override\n\tpublic A makeDecision(S state) {\n\t\tmetrics = new Metrics();\n\t\tStringBuffer logText = null;\n\t\tP player = game.getPlayer(state);\n\t\tList<A> results = orderActions(state, game.getActions(state), player, 0);\n\t\ttimer.start();\n\t\tcurrDepthLimit = 0;\n\t\tdo {\n\t\t\tincrementDepthLimit();\n\t\t\theuristicEvaluationUsed = false;\n\t\t\tActionStore<A> newResults = new ActionStore<>();\n\t\t\tfor (A action : results) {\n\t\t\t\tdouble value = minValue(game.getResult(state, action), player, Double.NEGATIVE_INFINITY,\n\t\t\t\t\t\tDouble.POSITIVE_INFINITY, 1);\n\t\t\t\tif (timer.timeOutOccurred())\n\t\t\t\t\tbreak; // exit from action loop\n\t\t\t\tnewResults.add(action, value);\n\t\t\t\tif (newResults.size() > 0) {\n\t\t\t\t\tresults = newResults.actions;\n\t\t\t\t\tif (!timer.timeOutOccurred()) {\n\t\t\t\t\t\tif (hasSafeWinner(newResults.utilValues.get(0)))\n\t\t\t\t\t\t\tbreak; // exit from iterative deepening loop\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (!timer.timeOutOccurred() && heuristicEvaluationUsed);\n\t\treturn results.get(0);\n\t}", "title": "" }, { "docid": "174e38537a19677ab62b5f21f116c2bd", "score": "0.5923144", "text": "public int getSelectedAction()\n\t{\n\t\treturn selectedAction;\n\t}", "title": "" }, { "docid": "b009bd8a16b8e0c33dba524a5ad14874", "score": "0.5910164", "text": "private static int getNextState(char[] pat, int M, int state, int x)\n {\n if(state < M && x == pat[state])\n return state + 1;\n int ns, i;\n for (ns = state; ns > 0; ns--)\n {\n if (pat[ns-1] == x)\n {\n for (i = 0; i < ns-1; i++)\n if (pat[i] != pat[state-ns+1+i])\n break;\n if (i == ns-1)\n return ns;\n }\n }\n return 0;\n }", "title": "" }, { "docid": "f65d73827d491babe594cc3e5e22371a", "score": "0.58977354", "text": "public int[] getNextState(int action) {\r\n\t\t// action is mouse action: 0=u 1=ur 2=r 3=dr ... 7=ul\r\n\t\tDimension d = getCoords(action);\r\n\t\tint ax=d.width, ay=d.height;\r\n\t\tif (legal(ax,ay)) {\r\n\t\t\t// move agent\r\n\t\t\tmx = ax; my = ay;\r\n\t\t} else {\r\n\t\t\t//System.err.println(\"Illegal action: \"+action);\r\n\t\t}\r\n\t\t// update world\r\n\t\tmoveCat();\r\n\t\twaitingReward = calcReward();\r\n\t\t\r\n\t\t// if mouse has cheese, relocate cheese\r\n\t\tif ((mx==chx) && (my==chy)) {\r\n\t\t\td = getRandomPos();\r\n\t\t\tchx = d.width;\r\n\t\t\tchy = d.height;\r\n\t\t}\r\n\t\t\r\n\t\t/*// if cat has mouse, relocate mouse\r\n\t\tif ((mx==cx) && (my==cy)) {\r\n\t\t\td = getRandomPos();\r\n\t\t\tmx = d.width;\r\n\t\t\tmy = d.height;\r\n\t\t}*/\r\n\r\n\t\treturn getState();\r\n\t}", "title": "" }, { "docid": "6160ebd16ec3fef4a5f17b5b70ecdd43", "score": "0.58961177", "text": "public int action(Matrix policyValueMatrix, HashSet<Integer> availableActions, boolean alwaysGreedy) {\r\n TreeSet<ActionValueTuple> stateValueSet = new TreeSet<>(Comparator.comparingDouble(o -> o.value));\r\n for (Integer action : availableActions) {\r\n stateValueSet.add(new ActionValueTuple(action, !asSoftMax ? policyValueMatrix.getValue(action, 0, 0) : Math.exp(policyValueMatrix.getValue(action, 0, 0))));\r\n }\r\n return stateValueSet.isEmpty() ? -1 : alwaysGreedy ? Objects.requireNonNull(stateValueSet.pollLast()).action : getAction(stateValueSet);\r\n }", "title": "" }, { "docid": "d0e3929965d4b4b6755116194dd16e1e", "score": "0.5820588", "text": "protected int softmaxTournament(double temperature, int state)\n {\n \tint best = chooseGreedyAction(state);\n \tdouble scalarisedValue[] = new double[numberOfActions];\n for (int a = 0; a < numberOfActions; a++) \n {\n scalarisedValue[a] = 0.0;\n for (int i = 0; i < numberOfObjectives; i++) {\n \tscalarisedValue[a] += weights[i] * valueFunction.get(i)[a][state];\n }\n }\n \treturn Softmax.getTournamentAction(scalarisedValue,temperature,best);\n }", "title": "" }, { "docid": "a5a62ec447db8ce05008cefc123be9f2", "score": "0.5813571", "text": "Integer getNumActions();", "title": "" }, { "docid": "59c1d2d9d15677519f9569743831a700", "score": "0.58004695", "text": "public String vGetNewActionQLearning(String sState, int iNActions, double dFunEval) {\n\n\t\t\tboolean bFound;\n\t\t\tint iBest = -1, iNumBest = 1;\n\t\t\tdouble dR, dQmax;\n\t\t\tStateAction oStateAction;\n\n\t\t\tbFound = false;\n\t\t\t//gets the present state action\n\t\t\tfor (int i = 0; i < oVStateActions.length; i++) { //\n\t\t\t\toStateAction = (StateAction) oVStateActions[i];\n\t\t\t\tif (!(oStateAction == null)) {\n\t\t\t\t\tif (oStateAction.sState.equals(sState)) {\n\t\t\t\t\t\toPresentStateAction = oStateAction;\n\t\t\t\t\t\tbFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdQmax = 0;\n\t\t\tfor (int i = 0; i < iNActions; i++) { // Determining the action to get Qmax{a'}\n\t\t\t\tif (oPresentStateAction.dValAction[i] > dQmax) {\n\t\t\t\t\tiBest = i;\n\t\t\t\t\tiNumBest = 1; // Reseting the number of best actions\n\t\t\t\t\tdQmax = oPresentStateAction.dValAction[i];\n\t\t\t\t} else if ((oPresentStateAction.dValAction[i] == dQmax) && (dQmax > 0)) { // If there is another one\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// equal\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// we must select one of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// them\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// randomly\n\t\t\t\t\tiNumBest++;\n\t\t\t\t\tif (Math.random() < 1.0 / (double) iNumBest) { // Choose randomly with reducing probabilities\n\t\t\t\t\t\tiBest = i;\n\t\t\t\t\t\tdQmax = oPresentStateAction.dValAction[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Adjusting Q(s,a)\n\t\t\tif (oLastStateAction != null) {\n\t\t\t\tdR = dFunEval - dLastFunEval; // Note that dR is also used as reward in the QL formulae\n\t\t\t\t if (dR > -1)\n\t\t\t\t\toLastStateAction.dValAction[iAction] += dLearnRate\n\t\t\t\t\t\t\t* (dFunEval + dGamma * dQmax - oLastStateAction.dValAction[iAction]);\n\t\t\t\t// If reward grows and the previous action was allowed --> reinforce the\n\t\t\t\t// previous action considering present values\n\t\t\t}\n\n\t\t\tif ((iBest > -1) && (Math.random() > dEpsilon)) // Using the e-greedy policy to select the best action or\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// any of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the rest\n\t\t\t\tiNewAction = iBest;\n\t\t\telse\n\t\t\t\tdo { //taking an action randomly\n\t\t\t\t\tiNewAction = (int) (Math.random() * (double) iNumActions);\n\t\t\t\t} while (iNewAction == iBest);\n\n\t\t\toLastStateAction = oPresentStateAction; // Updating values for the next time\n\t\t\tdLastFunEval = dFunEval;\n\t\t\tdLearnRate *= dDecFactorLR; // Reducing the learning rate\n\t\t\tif (dLearnRate < dMINLearnRate)\n\t\t\t\tdLearnRate = dMINLearnRate;\n\t\t\tString myMove = \"F\";\n\n\t\t\tif (iNewAction == 0) {\n\t\t\t\tmyMove = \"Action#C\";\n\t\t\t} else if (iNewAction == 1) {\n\t\t\t\tmyMove = \"Action#D\";\n\t\t\t}\n\n\t\t\tiAction = iNewAction;\n\n\t\t\treturn myMove;\n\t\t}", "title": "" }, { "docid": "a1e6252cfcccdeca27a98ca21ebc4135", "score": "0.57958907", "text": "public PiecesToMove makeDecision(MonkeyQueenState state) {\n expandedNodes = 0;\n result = null;\n double resultValue = Double.NEGATIVE_INFINITY;\n String player = game.getPlayer(state);\n \n for (PiecesToMove action : game.getActions(state)) {\n //MonkeyQueenState stateResult=game.getResult(state, action);\n MonkeyQueenState stateResult=game.getResult(state, action, heuristic);\n double value = minValue(stateResult, player,\n Double.NEGATIVE_INFINITY,Double.POSITIVE_INFINITY,deep);\n \n if (value > resultValue) {\n result = action;\n resultValue = value;\n }\n //System.out.println(\"Nodos expandidos: \"+expandedNodes);\n }\n \n return result;\n }", "title": "" }, { "docid": "a70255bf6c6b2fda209a98165b5c47cd", "score": "0.5778886", "text": "Operator getOperator(SearchState state, int index);", "title": "" }, { "docid": "e16df68e76be01328a43ab8885fa1587", "score": "0.57376575", "text": "@Override\n public List<Integer> apply(Action action, List<Integer> state) {\n return applyActionToState(action, state);\n }", "title": "" }, { "docid": "83a1e269fdd9a33aa031f4ee8a2e0ecf", "score": "0.5736558", "text": "protected int nextRequest() throws IllegalActionException {\r\n\t\tif (_debugging)\r\n\t\t\t_debug(\"Request detected, arbiter activated\");\r\n\t\tif (arbitersel == 0) {\r\n\t\t\tif (state[1] == REQUESTING && inputreq[1].hasToken(0)) {\r\n\t\t\t\treturn 1;\r\n\t\t\t} else if (state[2] == REQUESTING && inputreq[2].hasToken(0)) {\r\n\t\t\t\treturn 2;\r\n\t\t\t} else if (state[3] == REQUESTING && inputreq[3].hasToken(0)) {\r\n\t\t\t\treturn 3;\r\n\t\t\t} else if (state[4] == REQUESTING && inputreq[4].hasToken(0)) {\r\n\t\t\t\treturn 4;\r\n\t\t\t} else if (state[0] == REQUESTING && inputreq[0].hasToken(0)) {\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t} else if (arbitersel == 1) {\r\n\t\t\tif (state[2] == REQUESTING && inputreq[2].hasToken(0)) {\r\n\t\t\t\treturn 2;\r\n\t\t\t} else if (state[3] == REQUESTING && inputreq[3].hasToken(0)) {\r\n\t\t\t\treturn 3;\r\n\t\t\t} else if (state[4] == REQUESTING && inputreq[4].hasToken(0)) {\r\n\t\t\t\treturn 4;\r\n\t\t\t} else if (state[0] == REQUESTING && inputreq[0].hasToken(0)) {\r\n\t\t\t\treturn 0;\r\n\t\t\t} else if (state[1] == REQUESTING && inputreq[1].hasToken(0)) {\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t} else if (arbitersel == 2) {\r\n\t\t\tif (state[3] == REQUESTING && inputreq[3].hasToken(0)) {\r\n\t\t\t\treturn 3;\r\n\t\t\t} else if (state[4] == REQUESTING && inputreq[4].hasToken(0)) {\r\n\t\t\t\treturn 4;\r\n\t\t\t} else if (state[0] == REQUESTING && inputreq[0].hasToken(0)) {\r\n\t\t\t\treturn 0;\r\n\t\t\t} else if (state[1] == REQUESTING && inputreq[1].hasToken(0)) {\r\n\t\t\t\treturn 1;\r\n\t\t\t} else if (state[2] == REQUESTING && inputreq[2].hasToken(0)) {\r\n\t\t\t\treturn 2;\r\n\t\t\t}\r\n\t\t} else if (arbitersel == 3) {\r\n\t\t\tif (state[4] == REQUESTING && inputreq[4].hasToken(0)) {\r\n\t\t\t\treturn 4;\r\n\t\t\t} else if (state[0] == REQUESTING && inputreq[0].hasToken(0)) {\r\n\t\t\t\treturn 0;\r\n\t\t\t} else if (state[1] == REQUESTING && inputreq[1].hasToken(0)) {\r\n\t\t\t\treturn 1;\r\n\t\t\t} else if (state[2] == REQUESTING && inputreq[2].hasToken(0)) {\r\n\t\t\t\treturn 2;\r\n\t\t\t} else if (state[3] == REQUESTING && inputreq[3].hasToken(0)) {\r\n\t\t\t\treturn 3;\r\n\t\t\t}\r\n\t\t} else if (arbitersel == 4) {\r\n\t\t\tif (state[0] == REQUESTING && inputreq[0].hasToken(0)) {\r\n\t\t\t\treturn 0;\r\n\t\t\t} else if (state[1] == REQUESTING && inputreq[1].hasToken(0)) {\r\n\t\t\t\treturn 1;\r\n\t\t\t} else if (state[2] == REQUESTING && inputreq[2].hasToken(0)) {\r\n\t\t\t\treturn 2;\r\n\t\t\t} else if (state[3] == REQUESTING && inputreq[3].hasToken(0)) {\r\n\t\t\t\treturn 3;\r\n\t\t\t} else if (state[4] == REQUESTING && inputreq[4].hasToken(0)) {\r\n\t\t\t\treturn 4;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (_debugging)\r\n\t\t\t_debug(\"Fatal error: Arbitration problem\");\r\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "8739753f7d181b7b67307cd9a434702b", "score": "0.57230425", "text": "public int getChooseAction() {\n return chooseAction;\r\n }", "title": "" }, { "docid": "16f4aaf0b703dcab11e2e57f932c9ad6", "score": "0.5706908", "text": "public int getNumberOfStates() {\n String pattern = \"\\\\$transition_\\\\w+\\\\$\\\\[\\\\] = \\\\{([ ,\\\\d]+)\\\\}\";\n Matcher matcher = Pattern.compile(pattern).matcher(this.code);\n\n int maxstate = -1;\n\n while (matcher.find()) {\n String tbl = matcher.group(1);\n for (String tostr : tbl.split(\",\")) {\n int to = Integer.parseInt(tostr.trim());\n maxstate = Math.max(to, maxstate);\n }\n }\n\n // For the sake of the initial state.\n ++maxstate;\n\n return maxstate;\n }", "title": "" }, { "docid": "e787f8cc1d0d9cc27ebe1288220e0797", "score": "0.5688193", "text": "public BoardState selectBest() {\n\t\tConflictsComparator comp = new ConflictsComparator();\n\t\tPriorityQueue<BoardState> open = new PriorityQueue<BoardState>(1, comp);\n\n\t\tfor (BoardState x : population) {\n\t\t\topen.offer(x);\n\t\t}\n\n\t\tBoardState temp = open.peek();\n\n\t\treturn temp;\n\t}", "title": "" }, { "docid": "1a8a1cc85738c359b1f19f2f4c5b967c", "score": "0.56585604", "text": "@Override\n public int getHeuristic(State finalState) {\n return 0;\n }", "title": "" }, { "docid": "c91cf70bfcf3e5e0b1a35496703490c1", "score": "0.56417984", "text": "public int pickMove(State s, int[][] legalMoves, Heuristic heuristic) {\n\n double bestHeuristicValue = Integer.MAX_VALUE; // Minimize value\n int bestMove = 0; // Default to first move\n\n // Pick best move out of possible moves\n for (int i = 0; i < legalMoves.length; i++) {\n PotentialNextState nextState = new PotentialNextState(s);\n nextState.makeMove(legalMoves[i]);\n if (nextState.hasLost()) {\n \tcontinue;\n\t\t\t}\n double currentHeuristicValue = heuristic.getValue(nextState);\n if (currentHeuristicValue < bestHeuristicValue) {\n bestMove = i;\n }\n bestHeuristicValue = Math.min(bestHeuristicValue, currentHeuristicValue);\n }\n\n return bestMove;\n\t}", "title": "" }, { "docid": "53d6f7a2b9e600317dede0ca8df00f59", "score": "0.56396866", "text": "int getHumanAction() {\n System.out.println(\"Reading the action selected by the user\");\n while (myMaps.currentKey < 0) {\n try {\n Thread.sleep(50);\n }\n catch(InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n }\n int a = myMaps.currentKey;\n myMaps.currentKey = -1;\n\n System.out.println(\"Action: \" + a + \" \");\n\n return a;\n }", "title": "" }, { "docid": "8d5b8db62d8aaf0ef1478447362ea9b7", "score": "0.5636811", "text": "public int getNodeStateIndex (String state) {\r\n\t\treturn constraint.getPriorVariable(0).getStateIndex(state);\r\n\t}", "title": "" }, { "docid": "e8fe598288f8432d392f8146d2b9b547", "score": "0.5631708", "text": "static void determineAction() {\n\n Action now = actionlist.get(index);\n //System.out.println(now.lex);\n if(now.lex.equals(\"meow\")){\n index++;\n printFunction();\n }else if(now.lex.equals(\"make\")){\n index++;\n varDec();\n }else if(now.name.equals(\"VARASSIGN\")){\n varDec();\n }else if(now.lex.trim().equals(\"purr\")){\n index++;\n\n input();\n }else if(now.lex.trim().equals(\"meowif\")){\n index++;\n ifelse();\n }else if(now.lex.trim().equals(\"rollwhile\")){\n index++;\n whileloop();\n }\n\n }", "title": "" }, { "docid": "20d5cd0a86d85210f42e70dbdb37d2f1", "score": "0.56291854", "text": "public int getActionValue() {\n return action_;\n }", "title": "" }, { "docid": "03175ab1fece42b9b7d1da4f345c3f2a", "score": "0.5615081", "text": "public int getActionValue() {\n return action_;\n }", "title": "" }, { "docid": "b9c660a16f8299b5b47dc7c391ce5084", "score": "0.5606709", "text": "private int softmax(double temperature, int state)\n {\n \tint best = chooseGreedyAction(state);\n \tdouble scalarisedValue[] = new double[numberOfActions];\n for (int a = 0; a < numberOfActions; a++) \n {\n scalarisedValue[a] = 0.0;\n for (int i = 0; i < numberOfObjectives; i++) {\n \tscalarisedValue[a] += weights[i] * valueFunction.get(i)[a][state];\n }\n }\n \treturn Softmax.getAction(scalarisedValue,temperature,best);\n }", "title": "" }, { "docid": "6609bd35f9c834a945d909694f4bdeb0", "score": "0.5596096", "text": "public double percentageOptimalAction(PredatorQLearning agent) {\n\n double nrOptimalAction = 0;\n\n for (int stateNr = 0; stateNr < StateRepresentation.nrStates; stateNr++) {\n\n int bestActionNr1 = -1;\n int bestActionNr2 = -1;\n\n double bestActionValue1 = Math.min(Environment.minimumReward, agent.getInitialValue());\n double bestActionValue2 = bestActionValue1;\n\n double values1[] = bestStateRep.getStateActionPairValues(stateNr);\n double values2[] = agent.getStateActionPairValues(stateNr);\n\n // for both statereps,\n // just check one, last \"best action\"\n for (int actionNr = 0; actionNr < StateRepresentation.nrActions; actionNr++) {\n if (values1[actionNr] > bestActionValue1) {\n bestActionValue1 = values1[actionNr];\n bestActionNr1 = actionNr;\n }\n if (values2[actionNr] > bestActionValue2) {\n bestActionValue2 = values2[actionNr];\n bestActionNr2 = actionNr;\n }\n }\n if (bestActionNr1 == bestActionNr2) {\n nrOptimalAction++;\n }\n }\n return (nrOptimalAction / StateRepresentation.nrStates) * 100;\n }", "title": "" }, { "docid": "ec8e039bac34e29002d1a508e95ec232", "score": "0.55895615", "text": "public int pickIndex() {\n //return search(p, Math.random());\n return Math.abs(Arrays.binarySearch(p, Math.random())) - 1;\n }", "title": "" }, { "docid": "05591badc67df1bfeb9b78ce92445a54", "score": "0.55848294", "text": "@Override\n public int numStatesExplored() {\n return dequeueOperations;\n }", "title": "" }, { "docid": "99572aa22b6a766cf939e48ed4555774", "score": "0.558191", "text": "int getStateValue();", "title": "" }, { "docid": "99572aa22b6a766cf939e48ed4555774", "score": "0.558191", "text": "int getStateValue();", "title": "" }, { "docid": "99572aa22b6a766cf939e48ed4555774", "score": "0.558191", "text": "int getStateValue();", "title": "" }, { "docid": "99572aa22b6a766cf939e48ed4555774", "score": "0.558191", "text": "int getStateValue();", "title": "" }, { "docid": "99572aa22b6a766cf939e48ed4555774", "score": "0.558191", "text": "int getStateValue();", "title": "" }, { "docid": "99572aa22b6a766cf939e48ed4555774", "score": "0.558191", "text": "int getStateValue();", "title": "" }, { "docid": "a7b6b7d7ccf5fc6fabad0425880cf853", "score": "0.5580084", "text": "private int randomAction() {\n\t\tRandom r = new Random();\n\n\t\treturn (r.nextInt(NO_ACTIONS));\n\t}", "title": "" }, { "docid": "387de26bb754b5a6e787b731ef6bf960", "score": "0.55740726", "text": "public Types.ACTIONS act(StateObservation stateObs,\n\t\t\tElapsedCpuTimer elapsedTimer) {\n\n\t\t/** slide the complete pool one action into the future */\n\t\tevo.slidingWindow(stateObs);\n\n\t\t// start the evolution\n\t\tActionTimer timer = new ActionTimer(elapsedTimer);\n\t\ttimer.timeRemainingLimit = 7;\n\t\tevo.expand(stateObs, timer);\n\n\t\t// get the next action by using pessimistic iterations\n\t\tEvolutionaryNode selectedPath = getNextAction(timer, stateObs);\n\t\tACTIONS nextAction = selectedPath.getFirstAction();\n\n\t\t// set the path length adaptive\n\t\tif (updatePathLength)\n\t\t\tupdatePathLength(stateObs);\n\n\t\t// print the current status\n\t\tif (VERBOSE) {\n\t\t\tevo.print(evo.getPopulationSize());\n\t\t}\n\n\t\t// return the best action\n\t\treturn nextAction;\n\n\t}", "title": "" }, { "docid": "335c94d0130f330e94dd5f41b16bb25f", "score": "0.5571382", "text": "public double chooseIndex(){\n\n int i = 0;\n double r = random.nextDouble();\n\n while (r > weights[i]){\n r = r - weights[i];\n i++;\n }\n return i;\n }", "title": "" }, { "docid": "9a0c698a351eb6ebb9617de467d21e47", "score": "0.5570127", "text": "java.util.List<java.lang.Integer> getSelectedStateIndicesList();", "title": "" }, { "docid": "3d9de66f2904690eb97159f56af11d27", "score": "0.5568862", "text": "private double getActionValue(State st, int a) {\n\t\tdouble r = 0;\n\t\t// Si no tomo suficientes veces esta accion desde aca, asumo que es optima\n\t\tif (st.getTimesTaken(a) < (minKnownState/numActions)) {\n\t\t\tr = st.reward + Vmax;\n\t\t} else {\n\t\t\t// Si ya la tomo, \n\t\t\tfor (State to : st.getVisitableStates(a)) {\n\t\t\t\tTransition t = st.getTransitionTo(a, to);\n\t\t\t\t// Si no es conocida, uso los valores Vmax y p = 1\n\t\t\t\tif (!t.isKnown()) {\n\t\t\t\t\tr += st.reward + Vmax;\n\t\t\t\t} else {\n\t\t\t\t\t// Si es conocida, uso el p observado y el valor de V que corresponde\n\t\t\t\t\tr += st.getP(a, to) * (st.reward + DISCOUNT_RATE * to.V);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn r;\n\t}", "title": "" }, { "docid": "ddf54277fd4d533615141afcd282e86b", "score": "0.5563797", "text": "public static int selectState(String s) {\r\n\r\n int i = 0;\r\n while (i < americanStates.length) {\r\n if (s.equals(americanStates[i])) {\r\n break;\r\n }\r\n i++;\r\n }\r\n\r\n return i;\r\n }", "title": "" }, { "docid": "396679f59fac92a0287573ba4760055f", "score": "0.5553132", "text": "public int getSelectedStateIndices(int index) {\n return selectedStateIndices_.getInt(index);\n }", "title": "" }, { "docid": "ec3ff36da8c260b0347677f5dc1cd403", "score": "0.5531656", "text": "public abstract int getCostToGoal(State state);", "title": "" }, { "docid": "1645835636c7775759c5f95bef32fb87", "score": "0.553161", "text": "public int findVal(State state) {\r\n \tif((state.possibleresults.isEmpty() || this.depth >= maxdepth) && !this.terminal) {\r\n \t\treturn utility();\r\n \t}\r\n \tint white=0;\r\n \tint black=0;\r\n \tfor(int i=0;i<state.b.size;i++) {\r\n \t\tfor(int j=0;j<state.b.size;j++) {\r\n \t\t\tif(state.b.B[i][j]!=null) {\r\n \t\t\t\tif(state.b.B[i][j].white) {\r\n \t\t\t\t\twhite++;\r\n \t\t\t\t}\r\n \t\t\t\telse if(!state.b.B[i][j].white) {\r\n \t\t\t\t\tblack++;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \treturn white-black;\r\n }", "title": "" }, { "docid": "730c2e50cea4fa4324041b27389feee2", "score": "0.5530588", "text": "@Override\n\tprotected int determineTargetBin(int currentBin) {\n\t\tint targetBin = currentBin;\n\t\tArrayList<Double> defaultActionValues = new ArrayList<Double>(Collections.nCopies(this.state.getActionSize(), 1.0));\n\n\t\tList<Double> qValues = this.qTable.getOrDefault(this.state.hash(), defaultActionValues);\n\t\tint action = this.epsilonGreedy(qValues);\n\t\tthis.actions.add(action);\n\t\t\n\t\t// Apply action current bin (ie. move up, down or stay)\n\t\tswitch (action) {\n\t\t\tcase 0: targetBin--;\n\t\t\tbreak;\n\t\t\tcase 1: targetBin++;\n\t\t\tbreak;\n\t\t\tcase 2: break;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Reactive bid:\");\n\t\tSystem.out.println(action);\n\t\t\n\t\t// Can't go out of bounds\n\t\t// TODO: Discuss impact on learning algorithm\n\t\ttargetBin = Math.min(targetBin, this.getNBins() - 1);\n\t\ttargetBin = Math.max(targetBin, 0);\n\t\t\n\t\treturn targetBin;\n\t\t\n\n\t}", "title": "" }, { "docid": "19b6e69f72e514ffbf0eb38d5cd39c20", "score": "0.552631", "text": "public int getSelectedStateIndices(int index) {\n return selectedStateIndices_.getInt(index);\n }", "title": "" }, { "docid": "fe6504acee6735da86461f5f5ce93992", "score": "0.5513805", "text": "public int newState() {\r\n return numberOfStates++;\r\n }", "title": "" }, { "docid": "c88074119e9ccd22d418a333b16a7375", "score": "0.54971623", "text": "private EvolutionaryNode getNextAction(ActionTimer timer,\n\t\t\tStateObservation stateObs) {\n\t\tTypes.ACTIONS nextAction = ACTIONS.ACTION_NIL;\n\t\tboolean isDangerous = true;\n\t\ttimer.timeRemainingLimit = 3;\n\t\tEvolutionaryNode p = null;\n\t\tSet<Types.ACTIONS> forbiddenActions = new HashSet<Types.ACTIONS>();\n\t\tint i = 0;\n\t\twhile (i < evo.getPopulationSize()) {\n\t\t\tp = evo.getPopulation().get(i);\n\t\t\t++i;\n\t\t\tnextAction = p.getFirstAction();\n\n\t\t\t// if we tried that action before continue\n\t\t\tif (forbiddenActions.contains(nextAction))\n\t\t\t\tcontinue;\n\t\t\tisDangerous = pessimisticNextAction(stateObs, nextAction, timer);\n\t\t\tif (!isDangerous)\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\t\tforbiddenActions.add(nextAction);\n\t\t}\n\t\treturn p;\n\t}", "title": "" }, { "docid": "37d8b90893b8b971f52ade084b865982", "score": "0.5491187", "text": "private static int rankState(final ScanState state)\n {\n switch (state)\n {\n case Running: // Most important, happening right now\n return 6;\n case Paused: // Very similar to a running state\n return 5;\n case Idle: // About to run next\n return 4;\n case Failed: // Of the not running ones, failure is important to know\n return 3;\n case Aborted: // Aborted on purpose\n return 2;\n case Finished:// Water down the bridge\n return 1;\n case Logged:\n default:\n return 0;\n }\n }", "title": "" }, { "docid": "8f4aa25199cfba2ad0e0ed4d020076f4", "score": "0.54911757", "text": "private int findNext(){\n\t\tif(currentInd == pop.size){\n\t\t\treturn -1;\n\t\t}\n\t\t// search for the first one\n\t\tfor(int i=currentInd; i<pop.size; i++){\n\t\t\tif(!pop.get(i).getFitness().isValid()){\n\t\t\t\tthis.currentInd = i+1;\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\t// all evaluated\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "677786c9ae47310606293db6523acb29", "score": "0.5487787", "text": "private DiscreteAction randomWalk() {\n return mAvailableActions.get(Util.RNG.nextInt(mAvailableActions.size()));\n }", "title": "" }, { "docid": "85e6a8e7f3af83bdc1aa16a319d97b22", "score": "0.5486024", "text": "private int selectNextCity(Ant ant) {\n //check if Ant should visit a rand city\n int t = rand.nextInt(numOfCities - currentIndex);\n if (rand.nextDouble() < randFactor) {\n //may or may not contain value\n OptionalInt cityIndex = IntStream.range(0, numOfCities)\n .filter(i -> i == t && !ant.visited(i)) //i equals t and an ant didn't visit this city\n .findFirst(); //return first element from stream\n //If a city is present\n if (cityIndex.isPresent()) {\n return cityIndex.getAsInt();\n }\n }\n //If no select any rand city, need to calculate probabilities to select the next city\n calcProbabilities(ant);\n //After calculating probabilities, decide to which city to go\n double r = rand.nextDouble();\n double total = 0;\n for (int i = 0; i < numOfCities; i++) {\n total += probabilities[i];\n if (total >= r) {\n return i;\n }\n }\n\n throw new RuntimeException(\"There are no other cities\");\n }", "title": "" }, { "docid": "65e6d4efa26b9eb7b8a2c3e5a9b77243", "score": "0.54817593", "text": "static int basicChooseAction(int sticksRemaining) {\r\n\t\t\r\n\t\t\r\n\t\tint computerChoice = 0;\r\n\t\t\r\n\t\tif (sticksRemaining <Config.MAX_ACTION && sticksRemaining > 0) {\r\n\t\t\tcomputerChoice = Config.MIN_ACTION;\r\n\t\t}\r\n\t\telse if (sticksRemaining >= Config.MAX_ACTION) {\r\n\t\t\tcomputerChoice = Config.RNG.nextInt(Config.MAX_ACTION) +1;\r\n\t\t}\r\n\t\telse if (sticksRemaining <= 0) {\r\n\t\t\tcomputerChoice = 0;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn computerChoice;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9f5c10e768a117218ccc8799575ee871", "score": "0.54813594", "text": "int getState();", "title": "" }, { "docid": "9f5c10e768a117218ccc8799575ee871", "score": "0.54813594", "text": "int getState();", "title": "" }, { "docid": "c6f08c32d2d221f72e01c0f93c6f768c", "score": "0.5479718", "text": "public String nextAction(int[] lastMove) {\n \tif (lastMove != null) {\n \t\tint x1 = lastMove[0], y1 = lastMove[1], x2 = lastMove[2], y2 = lastMove[3];\n \t\tString roleOfLastPlayer;\n \t\tif (myTurn && role.equals(\"white\") || !myTurn && role.equals(\"black\")) {\n \t\t\troleOfLastPlayer = \"white\";\n \t\t} else {\n \t\t\troleOfLastPlayer = \"black\";\n \t\t}\n \t\t\tSystem.out.println(roleOfLastPlayer + \" moved from \" + x1 + \",\" + y1 + \" to \" + x2 + \",\" + y2);\n \t\t// TODO: 1. update your internal world model according to the action that was just executed\n \t\t\t\n \t\t\tMoves transformed=transform(lastMove);\n \t\t\tstate=state.changeState(transformed);\n\t\t\n\t \t\t\t\n \t}\n\t\t\n \t// update turn (above that line it myTurn is still for the previous state)\n\t\tmyTurn = !myTurn;\n\t\tif (myTurn) {\n\t\t\tlong initTime= System.currentTimeMillis();\n\t\t\tlong fplayClock=(long) (playclock*1000);\n\t\t\tSearch search = new Search();\n\t\t\tArrayList<Moves> posMoves =state.getPossibleMoves();\n\t\t\tPriorityQueue<Moves> orderedMoves;\n\t\t\t// orderedMoves is a PriorityQueue that has all the possible Moves in \n\t\t\t// order of their best possible evaluation function.\n\t\t\torderedMoves=new PriorityQueue<Moves>(Comparator.comparingInt(Moves::getEval));\n\t\t\t//\n\t\t\tMoves bestMove=new Moves(0,0,0,0); //temporary best move will get replaced. \n\t\t\ttry {\n\t\t\t\tfor (int d=1; d<100; d++) {\n\t\t\t\t\torderedMoves.clear();\n\t\t\t\t\tfor (int i=0; i<posMoves.size(); i++) {\n\t\t\t\t\t\tMoves curMove=posMoves.get(i);\n\t\t\t\t\t\torderedMoves.add(curMove);\n\t\t\t\t\t}\n\t\t\t\t\tif (orderedMoves.size()!=0) {\n\t\t\t\t\t\tbestMove=search.alphaBetaRoot(d, state, -10000, 10000, orderedMoves, initTime, fplayClock);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(d);\n\t\n\t\t\t\t}\n\t\t\n\t\t\t\n\t\t\tSystem.out.println(bestMove.myString(height));\n\t\t\tSystem.out.println(state.evaluate());\n\t\t\t}\n\t\t\tcatch (TimeoutException e) {\n\t\t\t\tSystem.out.println(\"here\");\n\t\t\t}\n\t\t\tSystem.out.println(search.numExpansions);\n\t\t\treturn bestMove.myString(height);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\treturn \"noop\";\n \n\t\t\n\t}", "title": "" }, { "docid": "fa0d6136292876d7841c3d45858f6b47", "score": "0.54739314", "text": "private void findDesiredOutcomes(ActionPatience ap) {\n // find the AssetStateDimension this Action works in\n // find the desired end state for this Action (in the future there may be more than one)\n // emit a DesiredOutcome object for this end state\n return;\n }", "title": "" }, { "docid": "deddf529b3a1362b9e1ebfbee0844cea", "score": "0.5472829", "text": "public abstract int getState();", "title": "" }, { "docid": "e1d35a4e678bbbda18e48960076d24a1", "score": "0.54653716", "text": "@Override\r\n\tpublic Action getNextAction() {\r\n\t\treturn playerSelectedAction.getNextAction();\r\n\t}", "title": "" }, { "docid": "dcc169472d404f79fa10939b675dfe55", "score": "0.5457551", "text": "public int getState();", "title": "" }, { "docid": "dcc169472d404f79fa10939b675dfe55", "score": "0.5457551", "text": "public int getState();", "title": "" }, { "docid": "3a58647117848c73e83c0c0b957d6bcc", "score": "0.5448436", "text": "public int getSelectedStateIndicesCount() {\n return selectedStateIndices_.size();\n }", "title": "" }, { "docid": "6b5b7595cb24387569dd5c45f7ba5a20", "score": "0.5443735", "text": "@Override\n public Action SelectBestChildAction(NodeMCTS node) {\n NodeMCTS best = node.GetChildren()[0];\n for (int i = 0; i < node.GetChildren().length; ++i) {\n if (GetVisits(best) < GetVisits(node.GetChildren()[i])) {\n best = node.GetChildren()[i];\n }\n }\n\n return best.GetLastAction();\n }", "title": "" }, { "docid": "7b3ec30c67751d4d05b7cf33bd2b1dbc", "score": "0.5443348", "text": "int getRegularActions();", "title": "" }, { "docid": "ae06c8ccb330cc0307634040949c4b8e", "score": "0.5440857", "text": "public static void createSolutionActions() {\r\n\t\t\r\n\t\tint totalNumber=0;\r\n\t\t\r\n\t\tNode fatherNode = finalNode.getFather();\r\n\t\tNode currentNode = finalNode;\r\n\t\tfinalCost = finalNode.getCost();\r\n\t\tfinalDepth = finalNode.getDepth();\r\n\t\t\r\n\t\tStack<String> actionStack = new Stack<String>();\r\n\t\tStack<State> stateStack = new Stack<State>();\r\n\t\t\r\n\t\tif (finalDepth==0) {\r\n\t\t\tSystem.out.println(\"Initial state already accomplishes objective.\");\r\n\t\t}else {\r\n\t\t\t\r\n\t\t\twhile(currentNode.getFather()!=null) {\r\n\t\t\t\tactionStack.push(currentNode.getAppliedAction().toString(fatherNode.getState()));\r\n\t\t\t\tstateStack.push(currentNode.getState());\r\n\t\t\t\tfatherNode=fatherNode.getFather();\r\n\t\t\t\tcurrentNode=currentNode.getFather();\r\n\t\t\t}\r\n\t\t\tactionsToGoal = new String[actionStack.size()];\r\n\t\t\tstatesToGoal = new State[stateStack.size()];\r\n\t\t\ttotalNumber= actionStack.size();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"List of actions and states in order to reach the goal state: \");\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tif (!actionStack.isEmpty()) {\r\n\t\t\t\tfor (int i=0; i<totalNumber; i++) {\r\n\t\t\t\t\tSystem.out.println(actionStack.peek());\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (byte j=0; j<initialState.getField().length; j++) {\r\n\t\t\t\t\t\tfor (byte h=0; h<initialState.getField()[j].length; h++) {\r\n\t\t\t\t\t\t\tSystem.out.print(stateStack.peek().getPosition(j, h)+ \" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tactionsToGoal[i]=actionStack.pop();\r\n\t\t\t\t\tstatesToGoal[i] = stateStack.pop();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"*******Execution Statistics*******\");\r\n\t\t\tSystem.out.println(\"Total cost to reach solution: \"+finalCost+\", Depth of the solution: \"+finalDepth+\".\");\r\n\t\t\tSystem.out.println(\"Number of visited nodes: \"+n_nodes+\", Execution Time: \"+executionTime+\" ns (\"+executionTime/1000000000.0+\" s).\");\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a0e4ffffcc0acf892dc0a3bc1894d93b", "score": "0.5425957", "text": "@Override\r\n public int nValues(int i) {\n return numActions;\r\n }", "title": "" }, { "docid": "4554e2cdcfc54e28323bb430eb51499e", "score": "0.54171556", "text": "public int[] actions(int state[][])\n {\n int[] position = getZeroPosition(state); //function to get the Zero Position from the 2D Array\n\n if (position == null)\n {\n return null;\n }\n\n if (position[0] == 0 && position[1] == 0) //First\n {\n int actions[] =\n {\n 2,3\n }; //South and East\n return actions;\n }\n if (position[0] == 0 && position[1] == 1)\n {\n int actions[] =\n {\n 2,4,3\n }; //South , West and West\n return actions;\n }\n if (position[0] == 0 && position[1] == 2)\n {\n int actions[] =\n {\n 2, 4\n }; //South and West\n return actions;\n }\n\n if (position[0] == 1 && position[1] == 0)\n {\n int actions[] =\n {\n 1, 2, 3\n }; //North,South and East\n return actions;\n }\n if (position[0] == 1 && position[1] == 1)\n {\n int actions[] =\n {\n 1, 2, 3,4\n }; //North,South,East and West \n return actions;\n }\n if (position[0] == 1 && position[1] == 2)\n {\n int actions[] =\n {\n 1, 2, 4\n }; //Norht, south and West\n return actions;\n }\n\n if (position[0] == 2 && position[1] == 0)\n {\n int actions[] =\n {\n 1, 3\n }; //North and East\n return actions;\n }\n if (position[0] == 2 && position[1] == 1)\n {\n int actions[] =\n {\n 1, 3,4\n }; //North and East and West\n return actions;\n }\n if (position[0] == 2 && position[1] == 2)\n {\n int actions[] =\n {\n 1, 4\n }; //North adn West\n return actions;\n }\n\n return null;\n }", "title": "" }, { "docid": "75f1dda9bb852b04cb11bacda6c0327b", "score": "0.5414131", "text": "public int getActionCombo();", "title": "" }, { "docid": "420fb4e8840fa5be6678b6981b67f839", "score": "0.5408649", "text": "public M search(G gameState, int depth, boolean findMax) throws InterruptedException;", "title": "" }, { "docid": "db456bf8acc9a3f09e8d784743f3c6b0", "score": "0.5401682", "text": "private int getAnswer() {\n return find(0,n-1,v,x);\n }", "title": "" }, { "docid": "e77702ecc87cf9a9708f638840544633", "score": "0.53979856", "text": "public int getNumberOfActions();", "title": "" }, { "docid": "a9170b337d86a87fb83306cc4ec3d8e6", "score": "0.53972584", "text": "public synchronized int getMove(String state, String diff) {\n\n\t\t\tfnmThread t = new fnmThread(state);\n\t\t\tt.start();\n\t\t\t\n\t\t\twhile(t.isAlive());//wait until the thread finishes running\n\t\t\t\n\t\t\tif(result.size() == 0) {//no move can result a win or tie\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\t//get the list of available spots from the state string\n\t\t\t\tArrayList<Integer> avai = new ArrayList<Integer>();\n\t\t\t\tString delim = \"[ ]+\";\n\t\t\t\tString[] parsedString = state.split(delim);\n\t\t\t\tfor(int i = 0; i < parsedString.length;i++) {\n\t\t\t\t\tif(parsedString[i].equals(\"b\")) {\n\t\t\t\t\t\tavai.add(i+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(diff.equals(\"expert\")) {//expert mode: always follow the algorithm\n\t\t\t\t\t//create a random int that is within index bound of the ArrayList\n\t\t\t\t\tint ranInt =( (int) (Math.random()*10) ) % result.size();\n\t\t\t\t\t\n\t\t\t\t\treturn result.get(ranInt);\n\t\t\t\t}\n\t\t\t\telse if(diff.equals(\"medium\")){//medium mode: follow the algorithm at 50$ chance\n\t\t\t\t\t\n\t\t\t\t\t//create a random number to only follow the algorithm at 50% chance\n\t\t\t\t\tDouble randDouble = Math.random();\n\t\t\t\t\t\n\t\t\t\t\tif(randDouble < 0.5) {//follow the algorithm only if the random number is < 0.5 (imply 50% here)\n\t\t\t\t\t\t//create a random int that is within index bound of the ArrayList\n\t\t\t\t\t\tint ranInt =( (int) (Math.random()*10) ) % result.size();\n\t\t\t\t\t\treturn result.get(ranInt);\n\t\t\t\t\t}\n\t\t\t\t\telse {//pick the move randomly\n\t\t\t\t\t\t\n\t\t\t\t\t\t//create a random int that is within index bound of the ArrayList\n\t\t\t\t\t\tint ranInt =( (int) (Math.random()*10) ) % avai.size();\n\t\t\t\t\t\treturn avai.get(ranInt);\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}//end else-if : medium\n\t\t\t\t\n\t\t\t\telse {//easy mode: always pick moves randomly\n\t\t\t\t\t\n\t\t\t\t\t//create a random number to only follow the algorithm at 20% chance\n\t\t\t\t\tDouble randDouble = Math.random();\n\t\t\t\t\t\n\t\t\t\t\tif(randDouble < 0.2) {//follow the algorithm only if the random number is < 0.2 (imply 20% here)\n\t\t\t\t\t\t//create a random int that is within index bound of the ArrayList\n\t\t\t\t\t\tint ranInt =( (int) (Math.random()*10) ) % result.size();\n\t\t\t\t\t\treturn result.get(ranInt);\n\t\t\t\t\t}\n\t\t\t\t\telse {//pick the move randomly\n\t\t\t\t\t\t\n\t\t\t\t\t\t//create a random int that is within index bound of the ArrayList\n\t\t\t\t\t\tint ranInt =( (int) (Math.random()*10) ) % avai.size();\n\t\t\t\t\t\treturn avai.get(ranInt);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}//end easy mode\n\t\t\t\t\n\t\t\t}//end else: if(result.isEmpty())\n\t\t\t\n\t\t}", "title": "" }, { "docid": "ef9c4740e6d26dfa330afa13cdaf64ba", "score": "0.5378103", "text": "@Override\n\tpublic Solution<T> search(Searchable<T> s) {\n\t\t\n\t\taddToOpenList(s.getStartState());\n\t\tHashSet<State<T>> closedSet = new HashSet<State<T>>();\n\t\t\n\t\twhile(this.openList.size() > 0)\n\t\t{\n\t\t\tState<T> n = popOpenList();\n\t\t\tclosedSet.add(n);\n\t\t\t\n\t\t\t// we are finished. get all the effective way.\n\t\t\tif(n.equals(s.getGoalState())) \n\t\t\t{\n\t\t\t\treturn backTrace(n , s.getStartState());\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<State<T>> successors = s.getAllPossibleStates(n);\t\t\n\t\t\t\n\t\t\t\n\t\t\tfor(State<T> state : successors) // find all possibles moves\n\t\t\t{\n\t\t\t\tif(!closedSetContain(closedSet,state) && !openListContain(state)) \n\t\t\t\t{\n\t\t\t\t\tstate.setCameFrom(n);\n\t\t\t\t\tsetDeterminedCost(state);\n\t\t\t\t\taddToOpenList(state);\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t\t// change to way that cost us less\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(state.getCost() < (n.getCost() + s.getMoveCost())){\t\t\n\t\t\t\t\t\t\tif(!openListContain(state)){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsetDeterminedCost(state);\n\t\t\t\t\t\t\t\tstate.setCameFrom(n);\n\t\t\t\t\t\t\t\taddToOpenList(state);\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\tadjustPriority(state);//searches if the given state is in the priorityQueue.\n\t\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\treturn null;// in case the world explodes\n\t\t\n\t}", "title": "" }, { "docid": "59cf7e0831a0b2a44e93fc635ab92e82", "score": "0.5363234", "text": "public int getBestClusterIndex(State s){\n\t\tdouble minDistance = Double.POSITIVE_INFINITY;\n\t\tdouble distance = 0;\n\t\tint index = 0;\n\t\t//TODO: check that this is done right\n\t\tfor(int k = 0 ; k < centroids.length; k++){\n\t\t\tdistance = 0;\n\t\t\tfor(int i = 0; i < width ; i++){\n\t\t\t\tfor(int j = 0; j < height ; j++){\n\t\t\t\t\tdistance += Math.pow(s.grid[i][j].NScars - centroids[k].grid[i][j].NScars, 2);\n\t\t\t\t\tdistance += Math.pow(s.grid[i][j].EWcars - centroids[k].grid[i][j].EWcars, 2);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(distance < minDistance){\n\t\t\t\tminDistance = distance;\n\t\t\t\tindex = k;\n\t\t\t}\n\t\t}\n\t\treturn index;\n\t}", "title": "" }, { "docid": "6c5ecd9087517519b6705235be69fbcb", "score": "0.536234", "text": "@Override\n public Iterable<Action> actionsFor(List<Integer> state) {\n return validMovementsFor(state);\n }", "title": "" }, { "docid": "2b33d7caf558852833d784d1145b1e38", "score": "0.5362153", "text": "public Solution<T> search(Searchable<T> s){\r\n\t\taddToOpenList(s.getInitialState());\r\n\t\tHashSet<State<T>> closedSet = new HashSet<State<T>>();\r\n\t\t\r\n\t\twhile(openList.size() > 0)\r\n\t\t{\r\n\t\t\tState<T> n = popOpenList();\r\n\t\t\tclosedSet.add(n);\r\n\t\t\t\r\n\t\t\tif(n.equals(s.getGoalState()))\r\n\t\t\t\t\treturn backTrace(n, s.getInitialState());\r\n\t\t\tArrayList <State<T>> successors = s.getAllPossibleStates(n);\r\n\t\t\t\r\n\t\t\tfor(State<T> state : successors)\r\n\t\t\t{\r\n\t\t\t\tif(!closedSet.contains(state) && !openList.contains(state))\r\n\t\t\t\t{\r\n\t\t\t\t\tstate.setCameFrom(n);\r\n\t\t\t\t\taddToOpenList(state);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif(state.getCost() > this.calculate(state))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(!openList.contains(state))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tstate.setCameFrom(n);\r\n\t\t\t\t\t\t\taddToOpenList(state);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\topenList.remove(state);\r\n\t\t\t\t\t\t\tstate.setCameFrom(n);\r\n\t\t\t\t\t\t\taddToOpenList(state);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "b1e4fccc139e2f5657fd068d3dda3ef0", "score": "0.536034", "text": "public int getSelectedStateIndicesCount() {\n return selectedStateIndices_.size();\n }", "title": "" }, { "docid": "f83165d62fea5f5b81ea4769abb7b931", "score": "0.5346903", "text": "public Action getSelectedAction(){\n\t\treturn selectedAction == -1 ? null : actions.get(selectedAction);\n\t}", "title": "" }, { "docid": "274031dbf079b3b5ed7a365394ca7c32", "score": "0.5341145", "text": "public Action process(Cow cow) {\n\t\tAction bestAction = null;\n\t\tdouble bestScore = -Double.MAX_VALUE;\n\t\t\n\t\tfor (Action action : actions) {\n\t\t\tdouble score = action.getScore();\n\t\t\t\n\t\t\tif (score > bestScore) {\n\t\t\t\tbestScore = score;\n\t\t\t\tbestAction = action;\n\t\t\t} else if (score == bestScore && Math.random() > 0.5) {\n\t\t\t\tbestScore = score;\n\t\t\t\tbestAction = action;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn bestAction;\n\t}", "title": "" } ]
2038bc2c7e1ba886b6658dd30e4f9bdf
Tests if the combo box entries have changed.
[ { "docid": "642513e3da84290d3656c5d6429708f2", "score": "0.5669671", "text": "private boolean completionsChanged(final StringList list) {\n final int ls = list.size();\n if(ls != completions.getItemCount()) return true;\n for(int l = 0; l < ls; ++l) {\n if(!list.get(l).equals(completions.getItemAt(l))) return true;\n }\n return false;\n }", "title": "" } ]
[ { "docid": "dd2e347539bf5788e9c818a39fe388ac", "score": "0.6794383", "text": "public boolean isModified() {\n return(!this.getSelectedItem().equals(editBeginValue));\n }", "title": "" }, { "docid": "ccdaac5d774a86196908faaddc7eb6ac", "score": "0.675062", "text": "public boolean hasChangedValues();", "title": "" }, { "docid": "79ec69c52367469ae5c64bbadfa1c29f", "score": "0.6538201", "text": "public boolean hasChanged();", "title": "" }, { "docid": "b2cc0c3c10175246889888a7e193caf0", "score": "0.6453", "text": "private boolean hasChanged(FontItemPanel c) {\n\t\treturn !oldValues.get(c).equals(c.getFontItem());\n\t}", "title": "" }, { "docid": "0c66c233cdae16b4008187874017dc82", "score": "0.6363733", "text": "@Override\r\n\tpublic boolean isChanged()\r\n\t{\r\n\t\treturn this.changed || this.bean.isChanged() || super.isChanged();\r\n\t}", "title": "" }, { "docid": "e9d70d218ac15810298b62ccce18a3b5", "score": "0.63605493", "text": "boolean setChangedConflicts();", "title": "" }, { "docid": "cae7a198513ef59df6b38e18d4fa3538", "score": "0.6333061", "text": "public boolean hasChanged() {\n\t\treturn get().hasChanged();\n\t}", "title": "" }, { "docid": "d0656313d164438ba848950b0ea3ba5e", "score": "0.62890536", "text": "public boolean hasChanges();", "title": "" }, { "docid": "2070a12cbd33c7740b5098980012c87e", "score": "0.6281904", "text": "public boolean isChanged();", "title": "" }, { "docid": "85202e361cdb856de30db7ef7cf1ab2e", "score": "0.62745744", "text": "private boolean WasChanged() {\n return !givenNameEditText.getText().toString().equals(\"\")\n || !familyNameEditText.getText().toString().equals(\"\")\n || !SIEditTextNumber.getText().toString().equals(\"\")\n || !startNumberEditTextNumber.getText().toString().equals(\"\")\n ||!regEditText.getText().toString().equals(\"\");\n }", "title": "" }, { "docid": "4896d9e604364307f844f2cc62589b66", "score": "0.62279826", "text": "boolean isChangedConflitcts();", "title": "" }, { "docid": "ed3b5188cc701d941802109430784618", "score": "0.62041885", "text": "@Override\n\tpublic boolean hasChanged() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b346b013a6144bc25783f43b55c61d94", "score": "0.61932266", "text": "public boolean hasChanged() {\n\treturn hasChanged;\n }", "title": "" }, { "docid": "4f6a961ddc2456fc4b1f1f1cdaf94117", "score": "0.6190609", "text": "public boolean isChanged() { return changed; }", "title": "" }, { "docid": "a813d1cd663fe4a88bc45a7411fa1b88", "score": "0.6122315", "text": "public boolean hasChanged() {\n\t\treturn hasChanged;\n\t}", "title": "" }, { "docid": "9d999921af3a9871f41390eed8f4a901", "score": "0.6077883", "text": "public boolean isModified() {\n\t\tif (configs == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (borderConfig.isModified()) {\n\t\t\treturn true;\n\t\t}\n\t\tif (configs.size() != editorsListModel.getSize()) {\n\t\t\treturn true;\n\t\t}\n\t\tfor (int i = 0; i < editorsListModel.getSize(); i++) {\n\t\t\tif (configs.get(i) != editorsListModel.getElementAt(i)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "77225d7cae67bda723959c6d609c9568", "score": "0.6068064", "text": "public boolean isChanged() {\n\t\treturn changed;\n\t}", "title": "" }, { "docid": "10c112a495391cf7a382cca6124731ff", "score": "0.6042447", "text": "public boolean hasChanged() {\r\n //Check if the stats was changed\r\n return changed;\r\n }", "title": "" }, { "docid": "ebab8bb11a397d5b024bc6bdcc4a503a", "score": "0.60098016", "text": "private void dialogChanged() {\n\t\tString text = textField.getText();\n\t\tif (text.equals(\"\"))\n\t\t\tupdateStatus(\"Name must not be empty\");\n\t\tupdateStatus(null);\n\t}", "title": "" }, { "docid": "8334224878ea1fe9f43dc61ad78dc9c4", "score": "0.60058", "text": "public void checkStatus()\n\t{\n\t\tif(hasChanged()) \n\t\t{\n notifyObservers();\n\t\t\tclearChanged();\n\t\t}\n\t}", "title": "" }, { "docid": "7c148dd7f932bea4f94d2ccb5959cb3b", "score": "0.59888804", "text": "Boolean sameCombo(Combo c);", "title": "" }, { "docid": "2d18dcbe5d9e7ebc56516af9d440095f", "score": "0.5981109", "text": "@Override\r\n public boolean hasKeysChanged(){ \r\n if (dbCopy == null) return true;\r\n if (this.getApplKey() != null) { \r\n if (!this.getApplKey().equals( dbCopy.getApplKey())) return true;\r\n }\r\n else {\r\n if (dbCopy.getApplKey() != null) return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "ab8ab1a19dbf7464ec6f9563debd57d8", "score": "0.5969476", "text": "@Override\r\n\tpublic boolean checkChange() {\n\t\treturn change;\r\n\t}", "title": "" }, { "docid": "55802ec4ec1f186b2492affecec2819d", "score": "0.5963711", "text": "private boolean checkForChanges()\n {\n boolean anyChanges = false;\n // if changes where made, allow user to save there changes\n if (change)\n {\n saveChanges();// save changes\n anyChanges = true;\n } // end if\n // if no changes made, set text fields as unenabled and display\n // current Employee\n else\n {\n setEnabled(false);\n displayRecords(getCurrentEmployee());\n } // end else\n\n return anyChanges;\n }", "title": "" }, { "docid": "ec274d67432bcbef670740e8801ebe64", "score": "0.5951536", "text": "public boolean containsChanges() {\n return genClient.containsChanges();\n }", "title": "" }, { "docid": "2b396156d2246c7cd26f936d2adb50b7", "score": "0.58967716", "text": "public void hasChanged(){\n }", "title": "" }, { "docid": "9d51466bd54d10270377f90f434bd8ee", "score": "0.5893015", "text": "public boolean containsChanges() {\n return changeLog != null;\n }", "title": "" }, { "docid": "a222bc66601413b1a3d41649f770d419", "score": "0.58722043", "text": "protected boolean isFieldInformationChanged()\n {\n return !fieldInformation.equals(storedFieldInformation);\n }", "title": "" }, { "docid": "016675e7ca8d05d689afb7d954dee37d", "score": "0.5859826", "text": "private void CheckIfItemHasChanged() {\n nameEditText.setOnTouchListener(mTouchListener);\n supplierEditText.setOnTouchListener(mTouchListener);\n supplierPhoneEditText.setOnTouchListener(mTouchListener);\n quantityEditText.setOnTouchListener(mTouchListener);\n priceEditText.setOnTouchListener(mTouchListener);\n imageNameEditText.setOnTouchListener(mTouchListener);\n imageToUpload.setOnTouchListener(mTouchListener);\n btnIncrease.setOnTouchListener(mTouchListener);\n btnDecrease.setOnTouchListener(mTouchListener);\n }", "title": "" }, { "docid": "dea28442c95d054307827b8fcf0a45dd", "score": "0.5857103", "text": "@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\tif(e.getSource().equals(cmbUpdate)) {\n\t\t\tif (e.getStateChange() == ItemEvent.SELECTED) {\n\t\t Object item = e.getItem();\n\t\t System.out.println(item.toString());\n\t\t service.Values(item.toString());\n\t\t }\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "50e445ff1f72c8c5b17909e92ab80c6e", "score": "0.58400434", "text": "public boolean hasChangedValue(int fieldIndex);", "title": "" }, { "docid": "f56ba1df8f26da6dc93d9c2d6bb0bc37", "score": "0.5832082", "text": "private boolean configChanged() {\n // after a removal, fc may be null. Report that as it hasn't changed.\n if (currentConfig == null) { \n return false;\n } \n\n FilterConfiguration fc = filterConfigurations.get(currentConfig);\n\n // check the suffix\n if (!fc.getSuffix().equals(outSuffixTextfield.getText())) { \n return true;\n } \n\n // check that the number of filters is the same \n int rowcount = filterTableModel.getRowCount();\n if (fc.getNumFilters() != rowcount) { \n return true;\n } \n\n // then check the individual filters\n for (int i = 0; i < rowcount; i++) {\n OneFilter guifilter = (OneFilter) filterTableModel.getValueAt(i, 0);\n OneFilter savedfilter = fc.getFilterAt(i); \n if (!equalFilters(guifilter, savedfilter)) { \n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "ecd371b2c5e81682d4e569b81b6b24be", "score": "0.5827679", "text": "private void onChange() {\r\n changed = true;\r\n }", "title": "" }, { "docid": "366af39c08033d5377f437a67a11e87e", "score": "0.5814757", "text": "@Override\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\tcheckTextField();\n\t\t\t}", "title": "" }, { "docid": "89fc002b683d24742e2468de66f10a7e", "score": "0.5803067", "text": "public void actionPerformed(ActionEvent evt) {\n JComboBox cb = (JComboBox)evt.getSource();\n\n // Get the new item\n Object newItem = cb.getSelectedItem();\n\n\n if (\"comboBoxEdited\".equals(evt.getActionCommand())) {\n // User has typed in a string; only possible with an editable combobox\n \tif (!contains(cb, newItem))\n \t\tcb.addItem(newItem);\n \t\n } else if (\"comboBoxChanged\".equals(evt.getActionCommand())) {\n // User has selected an item; it may be the same item\n }\n }", "title": "" }, { "docid": "297db64126d92b44e098c47e255553e8", "score": "0.5777035", "text": "void obj_ItemChanged(ActionEvent e) {\n setModified(true);\n // Inhalt weiterreichen an OptionGroup\n if (component.isSelected() == true && optionGroup != null) {\n optionGroup.updateValue(this, component.getActionCommand());\n }\n }", "title": "" }, { "docid": "dc34484d09a219d7ab1cc283c5afd06d", "score": "0.5768439", "text": "@Override\r\n public boolean hasChanged(){ \r\n if (dbCopy == null) return true;\r\n if (this.getApplKey() != null) { \r\n if (!this.getApplKey().equals(dbCopy.getApplKey())) return true;\r\n }\r\n else {\r\n if (dbCopy.getApplKey() != null) return true;\r\n }\r\n if (this.getApplId() != null) { \r\n if (!this.getApplId().equals(dbCopy.getApplId())) return true;\r\n }\r\n else {\r\n if (dbCopy.getApplId() != null) return true;\r\n }\r\n if (this.getApplDesc() != null) { \r\n if (!this.getApplDesc().equals(dbCopy.getApplDesc())) return true;\r\n }\r\n else {\r\n if (dbCopy.getApplDesc() != null) return true;\r\n }\r\n if (this.getLstChangedBy() != null) { \r\n if (!this.getLstChangedBy().equals(dbCopy.getLstChangedBy())) return true;\r\n }\r\n else {\r\n if (dbCopy.getLstChangedBy() != null) return true;\r\n }\r\n if (this.getLstChangeDate() != null) { \r\n if (!this.getLstChangeDate().equals(dbCopy.getLstChangeDate())) return true;\r\n }\r\n else {\r\n if (dbCopy.getLstChangeDate() != null) return true;\r\n }\r\n if (this.getTimeStamp() != null) { \r\n if (!this.getTimeStamp().equals(dbCopy.getTimeStamp())) return true;\r\n }\r\n else {\r\n if (dbCopy.getTimeStamp() != null) return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "f487b2bfeb0ce7507b0d0200e0b3bddc", "score": "0.5725824", "text": "private boolean checkItemChanged(MouseEvent e)\r\n {\r\n boolean earlyReturn = false;\r\n \t\r\n //check if we've gone over any item\r\n VisualItem vi = findItem(e.getPoint());\r\n if ( activeItem != null && activeItem != vi ) {\r\n if ( validityCheck() )\r\n fireItemExited(activeItem, e);\r\n earlyReturn = true;\r\n }\r\n if ( vi != null && vi != activeItem ) {\r\n fireItemEntered(vi, e);\r\n earlyReturn = true;\r\n }\r\n activeItem = vi;\r\n \r\n return earlyReturn;\r\n }", "title": "" }, { "docid": "fbe08e1cb9b605becd7cf035df2101ee", "score": "0.5714054", "text": "private void checkAccountSelected() {\n boolean oldIsAccountSelected = isAccountSelected;\n isAccountSelected = isAccountSelected();\n if (oldIsAccountSelected != isAccountSelected) {\n fireEnablementChanged(DELETE);\n fireEnablementChanged(SELECT_ALL);\n fireEnablementChanged(COPY);\n fireEnablementChanged(CUT);\n }\n }", "title": "" }, { "docid": "028a38928d5e9e7df3c60dbe7e7e89b5", "score": "0.5711405", "text": "private boolean checkCombo(ArrayList<Gem> combo) {\r\n\t\tint size = combo.size();\r\n\t\treturn (size >= 3);\r\n\t}", "title": "" }, { "docid": "ae85e837af17bc86bdff7ef91b1eefa7", "score": "0.57087153", "text": "private void updateComboBoxes() {\n preventCombo = true;\n Story story = Workspace.getStory(currentItem);\n\n ObservableList<ScaleType> scaleItems =\n FXCollections.observableArrayList(ScaleType.values());\n scaleCombo.setItems(scaleItems);\n scaleCombo.setValue(story.getScaleType());\n\n ObservableList<String> estimateItems =\n FXCollections.observableArrayList(story.getEstimationScale().getRepresentations());\n estimateCombo.setItems(estimateItems);\n estimateCombo.setValue(story.getEstimateRep());\n if (story.getAllAcceptanceCriteria().isEmpty() || !isEditing()) {\n estimateCombo.setDisable(true);\n }\n else {\n estimateCombo.setDisable(false);\n }\n preventCombo = false;\n }", "title": "" }, { "docid": "2f3f808f09b52a8caad2d271119aeeb5", "score": "0.5705643", "text": "public void setHasChanged() {\n total_toreUp2Date = false;\r\n }", "title": "" }, { "docid": "307e4966f6cf3f168639724fa700160a", "score": "0.56847984", "text": "public boolean isHasChanged() {\n return this.mHasChanged;\n }", "title": "" }, { "docid": "efa7622f4e61268e4f651b64dc34e8dc", "score": "0.5677866", "text": "public boolean hasChanged(T oldItem, T newItem);", "title": "" }, { "docid": "4d2c8cdbbb289f03354fdff88e2b1615", "score": "0.5671615", "text": "public native void checkChange() /*-{\r\n\t\tvar field = this.@com.ait.toolkit.sencha.ext.client.core.Component::getOrCreateJsObj()();\r\n\t\tfield.checkChange();\r\n\t}-*/;", "title": "" }, { "docid": "fb5cebc4c8dfead746ac0e0e1368075b", "score": "0.5658409", "text": "private void updateGasCombo()\r\n {\r\n gasComboBox.removeAllItems();\r\n Iterator it=knownGases.iterator();\r\n while(it.hasNext()) {\r\n gasComboBox.addItem((Gas)it.next());\r\n }\r\n }", "title": "" }, { "docid": "6e2efb2f6a2155e72579e6127862a134", "score": "0.56509054", "text": "private static void comboFilter(String enteredText, JComboBox<Species> jcb,\n\t\t\tList<Species> entries) {\n\t\tList<Species> entriesFiltered = new ArrayList<Species>();\n\t\tboolean changed = true;\n\t\tDefaultComboBoxModel<Species> jcbModel = (DefaultComboBoxModel<Species>) jcb.getModel();\n\n\t\tif (enteredText == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (Species entry : entries) {\n\t\t\tif (entry.getName().toLowerCase().contains(enteredText.toLowerCase())) {\n\t\t\t\tentriesFiltered.add(entry);\n\t\t\t\t// System.out.println(jcbModel.getIndexOf(entry));\n\t\t\t}\n\t\t}\n\n\t\tif (previousEntries.size() == entriesFiltered.size()\n\t\t\t\t&& previousEntries.containsAll(entriesFiltered)) {\n\t\t\tchanged = false;\n\t\t}\n\n\t\tif (changed && entriesFiltered.size() > 1) {\n\t\t\tpreviousEntries = entriesFiltered;\n\t\t\tjcb.setModel(new DefaultComboBoxModel(entriesFiltered.toArray()));\n\t\t\tjcb.setSelectedItem(enteredText);\n\t\t\tjcb.showPopup();\n\t\t} else if (entriesFiltered.size() == 1) {\n\t\t\tif (entriesFiltered.get(0).toString().equalsIgnoreCase(enteredText)) {\n\t\t\t\tpreviousEntries = new ArrayList<Species>();\n\t\t\t\tjcb.setSelectedItem(entriesFiltered.get(0));\n\t\t\t\tjcb.hidePopup();\n\t\t\t} else {\n\t\t\t\tpreviousEntries = entriesFiltered;\n\t\t\t\tjcb.setModel(new DefaultComboBoxModel(entriesFiltered.toArray()));\n\t\t\t\tjcb.setSelectedItem(enteredText);\n\t\t\t\tjcb.showPopup();\n\t\t\t}\n\t\t} else if (entriesFiltered.size() == 0) {\n\t\t\tpreviousEntries = new ArrayList<Species>();\n\t\t\tjcb.hidePopup();\n\t\t}\n\t}", "title": "" }, { "docid": "a0811327047713a3c849e285b6871e4d", "score": "0.5645932", "text": "protected void checkEdited ( ) {\r\n\t\tif (index == null)\r\n\t\t\treturn;\r\n\r\n\t\tint check_column = getCheckColumn();\r\n\t\tfor (int i = 0 ; i < catalog_list.size() ; i++) {\r\n\t\t\tString catalog_name = (String)catalog_list.elementAt(index.get(i));\r\n\t\t\thash.put(catalog_name, (Boolean)getValueAt(i, check_column));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6afefd2e90d3951399e892f61fc3f75a", "score": "0.564349", "text": "public boolean isBomItemsChanged() {\n\t\treturn bomItemsChanged;\n\t}", "title": "" }, { "docid": "68ef584a7bb56a2aa092eb376e7d4762", "score": "0.562927", "text": "protected synchronized void clearChanged() {\n\t changed = false;\n\t }", "title": "" }, { "docid": "a28e2901b65e61d7f8cead977989cb1b", "score": "0.55855167", "text": "@Override\r\n\tpublic void valuesChanged() {\r\n\t}", "title": "" }, { "docid": "97b63279cd00eda887d16468d8f0514d", "score": "0.55709827", "text": "protected synchronized void setChanged() {\n\t changed = true;\n\t }", "title": "" }, { "docid": "1be98b66c7a99465a83373ff783f2fdd", "score": "0.5539712", "text": "public void itemsChanged(){\r\n\t\tcontrolPanel.itemsChanged();\r\n\t}", "title": "" }, { "docid": "65578cd53a318f710d5f59b3d3bfad87", "score": "0.5528867", "text": "public void changed();", "title": "" }, { "docid": "65578cd53a318f710d5f59b3d3bfad87", "score": "0.5528867", "text": "public void changed();", "title": "" }, { "docid": "d0c08eeb3334c9602af76a887e6508d1", "score": "0.5527414", "text": "private void comboKelasItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_comboKelasItemStateChanged\n // TODO add your handling code here:\n \n //mengambil nilai kelas yang dipilih pada combo box 3\n kelas = comboKelas.getSelectedItem().toString();\n \n if(kelas == \"Bisnis\"){\n total = 1000000;\n kelasStatus.setText(kelas);\n jumlahTiket = Integer.parseInt(jumlah.getText());\n hasil = total*jumlahTiket;\n harga.setText(String.valueOf(hasil));\n }\n else if(kelas == \"First\"){\n total = 8000000;\n kelasStatus.setText(kelas);\n jumlahTiket = Integer.parseInt(jumlah.getText());\n hasil = total*jumlahTiket;\n harga.setText(String.valueOf(hasil));\n }\n else{\n harga.setText(\"\");\n kelasStatus.setText(\"\");\n }\n }", "title": "" }, { "docid": "5fe935272a5823338f278a97c9735c72", "score": "0.55247897", "text": "protected void checkOkayForEdit() {\n if (!isOkToEdit()) {\n throw new IllegalStateException(\n \"Attempt to set() when not okay to edit\");\n }\n if (!this.changedPoints.isValid()) {\n throw new IllegalStateException(\n \"Attempt to set() without startGridEdit()\");\n }\n return;\n }", "title": "" }, { "docid": "0b4b88538121cecfc95c5511b121663a", "score": "0.5522811", "text": "private void comboValidation() {\r\n\t\tArrayList<ArrayList<Gem>> combos = getCombos();\r\n\t\tif (combos.size() > 0) {\r\n\t\t\tcreateScore(combos);\r\n\t\t\tchains += combos.size();\r\n\t\t\tstate = STATE.COMBO_ANIMATION;\r\n\t\t} else {\r\n\t\t\tstate = STATE.USER_INPUT;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "dece48304744a6d5e5de69476439c9ea", "score": "0.551853", "text": "protected void setChanged(){\n\t\t//markes hasChanged true (mutator)\n\t\tthis.hasChanged = true;\n\t}", "title": "" }, { "docid": "37030d3abe0234d377e6d69678b0ec8b", "score": "0.55073243", "text": "public void check_update() {\n\t\t\n\t}", "title": "" }, { "docid": "2b12ff1fcaf7a35b833e9f6852dd19c6", "score": "0.55020386", "text": "boolean isDirty();", "title": "" }, { "docid": "2b12ff1fcaf7a35b833e9f6852dd19c6", "score": "0.55020386", "text": "boolean isDirty();", "title": "" }, { "docid": "47afeb98f22cae1be3f6ee469c86cbdd", "score": "0.55010414", "text": "public void optionsChanged();", "title": "" }, { "docid": "2d84e3281321386f5a58ee3b225a4bf7", "score": "0.5491947", "text": "private void jcbEmpNameItemStateChanged(java.awt.event.ItemEvent evt) {\n if(jcbEmpName.getItemCount()==0)\n return;\n \n \n }", "title": "" }, { "docid": "327fbc4a6cde92227f3662d6d06c8911", "score": "0.5490864", "text": "protected final void changed() {\n \t\tif (!this.changed && (this.managedInstance != null)) {\n \t\t\tthis.changed = true;\n \n \t\t\tthis.managedInstance.setChanged(this.mapping);\n \t\t}\n \t}", "title": "" }, { "docid": "30804a7e41b607b8a425ab5fb4e6ea14", "score": "0.54871583", "text": "private void jComboBox1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox1ItemStateChanged\n \n //mengambil nilai penerbangan yang dipilih pada combo box 1\n penerbangan = jComboBox1.getSelectedItem().toString();\n \n //melakukan pilihan\n if(penerbangan == \"Domestik\"){\n jComboBox2.setModel(new DefaultComboBoxModel<>(new String[]{\n \"--Pilih Tujuan--\",\"Bandung\",\"Jakarta\", \"Surabaya\", \"Makasar\"\n }));\n penerbanganStatus.setText(penerbangan);\n }\n else if (penerbangan == \"Internasional\"){\n jComboBox2.setModel(new DefaultComboBoxModel<>(new String[]{\n \"--Pilih Tujuan--\",\"India\",\"Amerika\", \"Singapore\", \"Malaysia\",\"Myanmar\"\n }));\n penerbanganStatus.setText(penerbangan);\n }\n else {\n jComboBox2.setModel(new DefaultComboBoxModel<>(new String[]{\n \"--Pilih Tujuan--\"\n }));\n penerbanganStatus.setText(null);\n }\n \n }", "title": "" }, { "docid": "2bc9c36ebcfc3699934439ffe7678c05", "score": "0.5462348", "text": "@Override\r\n\tpublic boolean isChange() {\n\t\treturn change;\r\n\t}", "title": "" }, { "docid": "31b03bc2ff1f95f959524414cb2b13f3", "score": "0.5444107", "text": "@Override\n\tpublic void itemStateChanged(ItemEvent i) {\n\t\tif(i.getStateChange()==1) {\n\t\t\trefreshTableData();\n\t\t\tif(i.getItem()==comboBoxData[0]) {\n\t\t\t\tSystem.out.println(\"AllSelect is clicked!\");\n\t\t\t} else if(i.getItem()==comboBoxData[1]) {\n\t\t\t\tSystem.out.println(\"C2C is clicked!\");\n\t\t\t} else if(i.getItem()==comboBoxData[2]) {\n\t\t\t\tSystem.out.println(\"Group is clicked!\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7b30a8e13c28e02312458b1fd9bb7639", "score": "0.54420096", "text": "private void catalogChanged()\n\t{\n\t\tbutton_saveCatalogChanges.setDisable(false);\n\t\tbutton_resetCatalogChanges.setDisable(false);\n\t}", "title": "" }, { "docid": "4c768ccdacf869afd697018890798e55", "score": "0.5441731", "text": "public boolean isDirty();", "title": "" }, { "docid": "96ba41491509de38b3a6b7f50fae0d10", "score": "0.5439432", "text": "public void setComboboxOznake() {\n\n //Nova poizvedba v podatkovno bazo\n ls_valuta_date = entityManager.createQuery(\"SELECT e FROM Valuta e ORDER BY e.oznaka, e.datum\")\n .getResultList();\n\n //Index vstavljanja v combobox-e\n int itemInx = 0;\n\n //Zanka skozi celotni seznam pridobljen iz baze\n for (int i = 0; i < ls_valuta_date.size(); i++) {\n //Preverimo ali seznam oznak že vsebuje trenutno oznako. Ker duplikatov v seznamu nočemo, jih s pomočjo tega izločimo\n if (ls_oznake.contains(ls_valuta_date.get(i).getOznaka())) {\n\n } else //Če seznam oznak še ne vsebuje trenutne oznake, najprej preverimo ali podano oznako uporabnik sploh želi prikazati. Ob tem vemo, da če je seznam \n //prikazanih valut prazen, prikažemo vse valute. Oznako dodamo v seznam oznak in combobox-e ter povečamo index za 1\n if (valute.isEmpty()) {\n ls_oznake.add(ls_valuta_date.get(i).getOznaka());\n jComboBox1.insertItemAt(ls_valuta_date.get(i).getOznaka(), itemInx);\n jComboBox2.insertItemAt(ls_valuta_date.get(i).getOznaka(), itemInx);\n jComboBox3.insertItemAt(ls_valuta_date.get(i).getOznaka(), itemInx);\n itemInx++;\n } else if (valute.contains(ls_valuta_date.get(i).getOznaka())) {\n ls_oznake.add(ls_valuta_date.get(i).getOznaka());\n jComboBox1.insertItemAt(ls_valuta_date.get(i).getOznaka(), itemInx);\n jComboBox2.insertItemAt(ls_valuta_date.get(i).getOznaka(), itemInx);\n jComboBox3.insertItemAt(ls_valuta_date.get(i).getOznaka(), itemInx);\n itemInx++;\n }\n }\n }", "title": "" }, { "docid": "b3395af6fafdc045a19d28c7a4bfd1ed", "score": "0.5438658", "text": "public void valueChanged(ListSelectionEvent evt) {\n\tif (evt.getValueIsAdjusting()) {\n\t return;\n\t}\n }", "title": "" }, { "docid": "86df3667e1d729b03569e583f2c84a2c", "score": "0.5437889", "text": "@Override\r\n\tpublic boolean isChange() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "ad179032d1d52e6105a577c5a7db0e2a", "score": "0.5426785", "text": "public static void updateComboBoxProcesses(JComboBox c){\r\n // change the way this works...\r\n ArrayList<String> processNames = getActiveWindow.getKeysHashTable();\r\n for(int j=0;j< processNames.size(); j++){\r\n // HAVE TO CHECK IF THE PROCESS IS ALREADY THERE.. SO MIGHT JUST CLEAR IT EVERYTIME..\r\n\r\n // COULD CHECK THE DIFFERENCE BETWEEN THE COUNT ON THE COMBO BOX AND THE COUNT ON THE PROCESSNAMES..\r\n // THEN JUST ADD ELEMENTS FROM THE TOP-DIFFERENCE INDEX??\r\n String current = processNames.get(j);\r\n boolean found = false;\r\n for(int i=0; i<c.getItemCount() && found == false;i++){\r\n if(current.equals(c.getItemAt(i)))\r\n found =true;\r\n }\r\n if(found == true){\r\n\r\n }\r\n else{\r\n String titleToAdd = processNames.get(j);\r\n if(titleToAdd.equals(getActiveWindow.CONST_EMPTY) || titleToAdd.equals(\" \")){\r\n titleToAdd= getActiveWindow.EMPTY_REPLACE;\r\n }\r\n if(titleToAdd.equals(getActiveWindow.CONST_NONE)){\r\n \r\n titleToAdd= getActiveWindow.NONE_REPLACE;\r\n }\r\n c.addItem(titleToAdd);\r\n }\r\n \r\n }\r\n }", "title": "" }, { "docid": "0f6b9874d2ae056fb717972463a5935b", "score": "0.5418733", "text": "@Override\n public void valueChanged(ListSelectionEvent e) {\n if (e.getValueIsAdjusting()) {\n int i = tblData.getSelectedRow();\n int total = tblData.getRowCount();\n //if selected index is valid\n if (i >= 0 && i < total) {\n String id = ds.getValueAt(i, 0).toString();\n String name = ds.getValueAt(i, 1).toString();\n String activated = ds.getValueAt(i, 2).toString();\n txtID2.setText(id);\n txtName2.setText(name);\n boolean isChecked = activated.equalsIgnoreCase(\"true\");\n ckb2.setSelected(isChecked);\n }\n }\n\n }", "title": "" }, { "docid": "8ba1f85bebe10dfa52a0779f26217190", "score": "0.5406876", "text": "@Override\n\tpublic boolean equals(Object object) {\n\t\tif (null == object)\n\t\t\treturn false;\n\t\tif (!(object instanceof DropDownEntry))\n\t\t\treturn false;\n\t\treturn ((DropDownEntry) object).getEntryKey().equals(getEntryKey());\n\t}", "title": "" }, { "docid": "5b321a43d6000bb787d09432c2462333", "score": "0.5395155", "text": "static private final boolean isChanged(Object orig, Object newValue) {\n if (orig == null)\n return newValue != null;\n return !orig.equals(newValue);\n }", "title": "" }, { "docid": "650691ef445cc85bc246112df8418b9c", "score": "0.53926104", "text": "public boolean checkValidation(JComboBox combo,String selectValue) {\r\n\t if(combo.getSelectedItem().toString().equalsIgnoreCase(selectValue)) \r\n\t\t return true;\r\n\t else \r\n\t\t return false;\r\n }", "title": "" }, { "docid": "3082b1c7f7281e15f32dbe381172f69f", "score": "0.539189", "text": "public void valueChanged(ListSelectionEvent e) {\r\n if (e.getValueIsAdjusting()) {\r\n String students = \"\";\r\n // get which item is selected\r\n int selectedIndex = instrumentList.getSelectedIndex(); // Get the selected instrument\r\n Instrument temp = instrumentDisplayList.get(selectedIndex); \r\n \r\n \r\n // Make the list of students into a string\r\n\r\n for (int m = 0; m < temp.getAssignedStudents().size(); m++) {\r\n if (m == temp.getAssignedStudents().size() - 1) {\r\n students = (students + temp.getAssignedStudents().get(m)); // Last student doesn't have a comma in the end\r\n } else {\r\n students = (students + temp.getAssignedStudents().get(m) + \", \"); // Add commas inbetween\r\n }\r\n }\r\n\r\n //// Set the combo boxes to their appropriate options\r\n for (int k = 0; k < 4; k++) {\r\n if (temp.getAvailability().equals(availabilityComboBox.getItemAt(k))) {\r\n availabilityComboBox.setSelectedIndex(k);\r\n }\r\n if (temp.getCondition().equals(conditionComboBox.getItemAt(k))) {\r\n\r\n conditionComboBox.setSelectedIndex(k);\r\n }\r\n }\r\n readInstrumentLog(temp);\r\n // set textfields to instrument information\r\n instrumentIDTextField.setText(temp.getID());\r\n barcodeTextField.setText(temp.getBarcode());\r\n instrumentDescriptionTextField.setText(temp.getDescription());\r\n assignedOutTextField.setText(students);\r\n\r\n if (instrumentLog.size() > 0) {\r\n latestActivityTextField.setText(instrumentLog.get(instrumentLog.size() - 1));\r\n } else {\r\n latestActivityTextField.setText(\"\");\r\n\r\n }\r\n\r\n // lock textfields\r\n availabilityComboBox.setEnabled(false);\r\n conditionComboBox.setEnabled(false);\r\n instrumentDescriptionTextField.setEditable(false);\r\n barcodeTextField.setEditable(false);\r\n assignedOutTextField.setEditable(false);\r\n instrumentIDTextField.setEditable(false);\r\n\r\n }\r\n }", "title": "" }, { "docid": "1a73f0eb4b57d0d0dc1cdc501cbd5848", "score": "0.53712595", "text": "void UpdateCbo(JComboBox<String> cboSelect, JComboBox<String> cboUpdate, Spaceship ship) {\n\t\tString choice = \"\";\n\t\tString choice2 = \"\";\n\t\tif (cboSelect.getItemCount() > 0 && check) {\n\t\t\tcheck = false;\n\t\t\tchoice = cboSelect.getSelectedItem().toString();\n\t\t\tchoice2 = cboUpdate.getSelectedItem().toString();\n\t\t} else if (cboSelect.getItemCount() > 0) {\n\t\t\tcheck = true;\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tcboUpdate.removeAllItems();\n\t\tfor (String str:ActionSet) {\n\t\t\tif (!choice.equals(str))\n\t\t\t\tcboUpdate.addItem(str);\n\t\t}\n\t\tcboUpdate.setSelectedItem(choice2);\n\t\t\n\t\t//call cboSupply when action[4] (Use Supplement (x1)) has been chosen\n\t\tif ((choice.equals(ActionSet[4]) && cboSelect.isEnabled())||(choice2.equals(ActionSet[4]) && cboUpdate.isEnabled())) {\n\t\t\tif (!cboSupply.isVisible()) {\n\t\t\t\tcboSupply.setVisible(true);\n\t\t\t\tcboSupply.removeAllItems();\n\t\t\t\tfor (Stock st: ship.getInventory()) {\n\t\t\t\t\tcboSupply.addItem(st);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t} else {\n\t\t\tif (cboSupply.isVisible())\n\t\t\t\tcboSupply.setVisible(false);\n\t\t}\n\t}", "title": "" }, { "docid": "6397be9cbdeee6d5df3efa0f0a67022a", "score": "0.53521556", "text": "@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\t\tif (listquestion.getSelectedValue() != null) {\n\t\t\t\t\tString buff_str = listquestion.getSelectedValue();\n\t\t\t\t\tif (qm.listCategory(selectedCategory).size() > 0) {\n\t\t\t\t\t\tfor (Question q : qm.listCategory(selectedCategory)) {\n\t\t\t\t\t\t\tif (buff_str.equals(q.getQuestion())) {\n\t\t\t\t\t\t\t\tselectedQuestion = q;\n\t\t\t\t\t\t\t\tinfoQuestion.setText(q.getQuestion());\n\t\t\t\t\t\t\t\tinfoAns.setText(q.getCorrectAnswer());\n\t\t\t\t\t\t\t\tString diff = Integer.toString(q.getDifficulty());\n\t\t\t\t\t\t\t\tinfoDiff.setText(diff);\n\t\t\t\t\t\t\t\tinfoIncAns.setText(\"\");\n\t\t\t\t\t\t\t\tfor (String incAnswer : q.getIncorrects()) {\n\t\t\t\t\t\t\t\t\tinfoIncAns.append(incAnswer + \"\\n\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "ef35aa158c4428ea53b41e38341933da", "score": "0.5341489", "text": "public boolean unsavedChanges() {\n\t\treturn changes;\n\t}", "title": "" }, { "docid": "163703958f38b29858775f60420b12e5", "score": "0.5338039", "text": "public boolean wasColumnChanged() {\n return colChanged;\n }", "title": "" }, { "docid": "11868c2b1e5d178dc834d76f8519eac6", "score": "0.5336669", "text": "@Override\r\n\tpublic boolean handleDirtyConflict() {\r\n\t\treturn MessageDialog.openQuestion(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), Messages.DiscardChangesDialog_0_xmsg,\r\n\t\t\t\tMessages.DiscardChangesDialog_1_xmsg);\r\n\t}", "title": "" }, { "docid": "14a785a4af8efdeb0164ab2dde52d0de", "score": "0.5334964", "text": "public Boolean hasIdChanged() {\n boolean result = false;\n if (!originalValues.isEmpty()) {\n for (ColumnInfo columnInfo : getIdColumns()) {\n Object newValue = getEntityFieldValue(columnInfo);\n Object originalValue = originalValues.get(columnInfo.getFieldName());\n if ((newValue != null && !newValue.equals(originalValue))\n || (originalValue != null && !originalValue.equals(newValue))) {\n // One of the columns has been updated. Indicate the entity is modified. \n result = true;\n break;\n }\n }\n }\n return result;\n }", "title": "" }, { "docid": "986bc0cd8972b4d48c4d23abd475546f", "score": "0.53348875", "text": "public boolean roleAssignmentsChanged() {\n \t\tremovedAssignments = new ArrayList<RoleAssignmentData>();\n \t\taddedAssignments = new ArrayList<RoleAssignmentData>();\n \n \t\tfor (ACOrgUnit orgUnit : getSelectedUsers()) {\n \t\t\tfor (RoleAssignment role : orgUnit.getRoles()) {\n \t\t\t\tif (role.getProjectId() == null || !role.getProjectId().equals(projectInfo.getProjectId())) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\tif (!selectRolesPage.isSelected(orgUnit, role.getRole())) {\n \t\t\t\t\tremovedAssignments.add(new RoleAssignmentData(role.getRole(), orgUnit));\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tfor (Role role : getPermissionSet().getRoles()) {\n \t\t\t\tboolean selected = selectRolesPage.isSelected(orgUnit, role);\n \t\t\t\tboolean hasProjectRole = orgUnit.hasProjectRole(role, projectInfo.getProjectId());\n \n \t\t\t\tif (selected && !hasProjectRole) {\n \t\t\t\t\taddedAssignments.add(new RoleAssignmentData(role, orgUnit));\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn removedAssignments.size() > 0 || addedAssignments.size() > 0;\n \t}", "title": "" }, { "docid": "57c9844d23dc1a919f146895a96772e3", "score": "0.5330501", "text": "protected void valueChanged()\n {\n setPresentsDefaultValue(false);\n boolean oldState = isValid;\n refreshValidState();\n\n if (isValid != oldState) {\n\t\t\tfireStateChanged(IS_VALID, oldState, isValid);\n\t\t}\n\n String newValue = textField.getText();\n if (!newValue.equals(oldValue))\n {\n fireValueChanged(VALUE, oldValue, newValue);\n oldValue = newValue;\n }\n }", "title": "" }, { "docid": "5287fe7a189fbca04b8f512fb53c7046", "score": "0.5328766", "text": "public boolean hasChanged(Setting setting) {\n Setting currentSetting = getCurrentSetting();\n return (!setting.equals(currentSetting));\n }", "title": "" }, { "docid": "5127bdf8d4452fc1aa030893c4ddb715", "score": "0.5315238", "text": "private void jComboBox2ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox2ItemStateChanged\n //mengambil nilai tujuan yang dipilih pada combo box 2\n tujuan = jComboBox2.getSelectedItem().toString();\n if(tujuan == \"--Pilih Tujuan--\" )\n tujuanStatus.setText(null);\n else\n tujuanStatus.setText(tujuan);\n }", "title": "" }, { "docid": "765f601815226fe95974c370bd0fbebb", "score": "0.5305681", "text": "public void updateSectorComboBox() {\n \n \n }", "title": "" }, { "docid": "0fb0dd2ae4cd143e1d920a6fa286123e", "score": "0.5305186", "text": "boolean isUpdateNeeded();", "title": "" }, { "docid": "e2a1c5a2b2093a82e04eb7582b5234bd", "score": "0.53006446", "text": "protected void dialogChanged() {\n\t\tif (server.length() == 0) {\n\t\t\tupdateStatus(\"Server url must be specified\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (user.length() == 0) {\n\t\t\tupdateStatus(\"User name must be specified\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (password.length() == 0) {\n\t\t\tupdateStatus(\"Password must be specified\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tupdateStatus(null);\n\t}", "title": "" }, { "docid": "f287cc4580a50f212cd687f37bdcd5e8", "score": "0.52857316", "text": "public void valueChanged(ListSelectionEvent event) {\n\t\t\t\t\tif(tblCulturas.getSelectedRow()<0) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttelaControler.setCulturaIndex(tblCulturas.getSelectedRow());\r\n\t\t\t\t\t\tif(selectEnabled) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tdataPlantio.setDate(Date.from(telaControler.getCultivoSelecionado().getDataInicio()));\r\n\t\t\t\t\t\t\tdataColheita.setDate(Date.from(telaControler.getCultivoSelecionado().getDataFim()));\r\n\t\t\t\t\t\t\tCultura cultura =culturaController.pesquisarPorId( telaControler.getCultivoSelecionado().getIdCultura());\r\n\t\t\t\t\t\t\tcomboBox.setSelectedItem(cultura);\r\n\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t//setSelected(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "title": "" }, { "docid": "34ca37a8b924d3d869a14779ca39b316", "score": "0.52783024", "text": "@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\t\ttabMerchandise.setRowCount(0);\n\t\t\t\tMerchandise_table.repaint();\n\t\t\t\tBeanMerchandise.curmerchandise=null;\n\t\t\t\tmerchant_id=merchant_list.getSelectedIndex();\n\t\t\t\tBeanMerchant.curmerchant=allMerchant.get(merchant_id);\n\t\t\t\tFrmMerchantMain.this.reloadClassify(allMerchant.get(merchant_id));\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "cc811e3aa7fca617dc39883ea56196d8", "score": "0.5259122", "text": "public boolean isDateChanged() {\n\n\t\tif (null == lastDateSet) {\n\t\t\tif (null == currentDate) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\tif (null == currentDate) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(lastDateSet);\n\t\tint dy = cal.get(Calendar.DAY_OF_YEAR);\n\t\tint yr = cal.get(Calendar.YEAR);\n\t\tcal.setTime(currentDate);\n\t\tif ((cal.get(Calendar.DAY_OF_YEAR) != dy) || (cal.get(Calendar.YEAR) != yr)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "3f23c890fc9b3faabf423b090701167d", "score": "0.52498376", "text": "public boolean isChanged() {\n return changeOrientation != UNCHANGED;\n }", "title": "" }, { "docid": "c3153620369775d99c930995811e9527", "score": "0.5243402", "text": "public void \t\n valueChanged\n (\n ListSelectionEvent e\n )\n {\n if(e.getValueIsAdjusting()) \n return;\n }", "title": "" }, { "docid": "1e8b407a168e2020a7bd1b583934d9a9", "score": "0.524251", "text": "@Override\n\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tupdateResults(false);\n\t\t}", "title": "" }, { "docid": "44ef0012bccd6cb39fbb72a74ed3b613", "score": "0.5240507", "text": "public void itemStateChanged(ItemEvent evt) {\n operationNameComboBoxItemStateChanged(evt);\n }", "title": "" }, { "docid": "d8db60988d1c3ec6409aeac014c8e316", "score": "0.5236576", "text": "public boolean wasRowChanged() {\n return rowChanged;\n }", "title": "" } ]
c1f55b10c7bd48fa43bd812e9a2da6f7
Sets the X coordinate of the point.
[ { "docid": "36e992b79a1795403639a413372fa978", "score": "0.77967167", "text": "public void setX(double x) {\r\n\t\tthis.x = x;\r\n\t}", "title": "" } ]
[ { "docid": "b6e932a314918d11cf2f47ec5975cd2d", "score": "0.82454586", "text": "public void setX(int x) {\n this.xCoordinate = x;\n }", "title": "" }, { "docid": "986e2e7169fd86da041a8cd89762d62e", "score": "0.8041644", "text": "public void setX(int x){\n\t\txCoord=x;\n\t}", "title": "" }, { "docid": "16c01a63a4dd5065ff87ce22e750ba7d", "score": "0.78987193", "text": "public void setX( int x ) {\n movementComposer.setXPosition( (float)x );\n }", "title": "" }, { "docid": "0d2a030592af39be8415f5b39390a414", "score": "0.78587925", "text": "public void SetXCoordinate(int x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "daab66a05e51cd3d5669980ef4b4de3b", "score": "0.7838307", "text": "public void setX(int newX)\n {\n xCoord = newX;\n }", "title": "" }, { "docid": "6d1bc68ab3c929fedff5687c39646865", "score": "0.7828395", "text": "public void setX(double x) {\n m_Location.x = x;\n }", "title": "" }, { "docid": "146413833d6a638773e5e7a382bced6c", "score": "0.7731958", "text": "public void setX(double x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "146413833d6a638773e5e7a382bced6c", "score": "0.7731958", "text": "public void setX(double x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "146413833d6a638773e5e7a382bced6c", "score": "0.7731958", "text": "public void setX(double x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "146413833d6a638773e5e7a382bced6c", "score": "0.7731958", "text": "public void setX(double x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "49e9c76d009f98864f047f7aaa6283cd", "score": "0.772081", "text": "public void setX(double x) {\r\n this.x = x;\r\n }", "title": "" }, { "docid": "49e9c76d009f98864f047f7aaa6283cd", "score": "0.772081", "text": "public void setX(double x) {\r\n this.x = x;\r\n }", "title": "" }, { "docid": "66a5c536dc97f4058c739b34bc78ef9e", "score": "0.77140707", "text": "public void setX(double x) {\n this.x = x;\n }", "title": "" }, { "docid": "66a5c536dc97f4058c739b34bc78ef9e", "score": "0.77140707", "text": "public void setX(double x) {\n this.x = x;\n }", "title": "" }, { "docid": "8a28ce57a03a059298bf01b6de4a7e3e", "score": "0.7713017", "text": "public void setX(float x) { shape.setX(x); }", "title": "" }, { "docid": "ff6b3e40509e146895c5b66bc72722a1", "score": "0.7695941", "text": "public void setX( double x ) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "ca9c8ff09c409d0e124b1830a81c4fe0", "score": "0.7693062", "text": "@Override\n public void setXPosition(float _x) {\n x = _x;\n }", "title": "" }, { "docid": "1547ad97e98f028c57adc5aa5ac015e0", "score": "0.76882064", "text": "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "title": "" }, { "docid": "1547ad97e98f028c57adc5aa5ac015e0", "score": "0.76882064", "text": "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "title": "" }, { "docid": "0f561c0bdabc182c8b5cc68965f39690", "score": "0.76765114", "text": "public void setX(double x) {\n this.x = x;\n }", "title": "" }, { "docid": "a0f9e2c340af6708817da476a98147b0", "score": "0.7671318", "text": "public void setX(double value) {\n this.x = value;\n }", "title": "" }, { "docid": "be505d543c7cb02fe00ea735d84282b1", "score": "0.76570946", "text": "public void setX(float value) {\r\n this.x = value;\r\n }", "title": "" }, { "docid": "fcaa053ff130a79f47463f775b3ae5c0", "score": "0.7651039", "text": "public void setX(float x) {\r\n\t\tthis.x = x;\r\n\t}", "title": "" }, { "docid": "e234892ae7e3ae8a1b5051c296148bce", "score": "0.7650095", "text": "public void setX(double value) {\r\n this.x = value;\r\n }", "title": "" }, { "docid": "ae14297c98b9a5cb11cb223dd63491fd", "score": "0.7649734", "text": "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "ae14297c98b9a5cb11cb223dd63491fd", "score": "0.7649734", "text": "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "ae14297c98b9a5cb11cb223dd63491fd", "score": "0.7649734", "text": "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "ae14297c98b9a5cb11cb223dd63491fd", "score": "0.7649734", "text": "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "ae14297c98b9a5cb11cb223dd63491fd", "score": "0.7649734", "text": "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "86895e0a95f5ec15887aa2a008e97caf", "score": "0.76355326", "text": "public void setX(int x) {\n\t\tif(!this.b.isValidPosition(x,this.y)) {\n\t\t\treturn;\n\t\t}\n\t\tthis.x=x;\n\t}", "title": "" }, { "docid": "09953cfba6f52cbeb606ecdb473ca043", "score": "0.76333344", "text": "public void setX(double x) \n\t{\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "43b4a43052c9c3ef47e25ebc6656f7ed", "score": "0.7605715", "text": "void setXPosition(int x);", "title": "" }, { "docid": "6c377790cc02604ab5251271dcd80405", "score": "0.76056695", "text": "private void setX(double p_x){\n this.x = p_x;\n }", "title": "" }, { "docid": "3a454531144012cf439a7a0ce53edc02", "score": "0.760428", "text": "public void setX(int x)\r\n\t// ino.end\r\n\t// ino.method.setX.1798.body \r\n\t{\r\n\t\tint offsetX = _shape.getX()-x;\r\n\t\t_shape.setX(x);\r\n\t\tif (_x1 < _x2) \r\n\t\t{\r\n\t\t\t_x1 = x;\r\n\t\t\t_x2 = _x2 - offsetX;\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t_x2 = x;\r\n\t\t\t_x1 = _x1 - offsetX;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "695852f81d091eaacc0cf9f3f9cbc242", "score": "0.7602779", "text": "public void setX(int value) {\n this.x = value;\n }", "title": "" }, { "docid": "25427a2f4e9ed43c55b758ae589dcebd", "score": "0.7602216", "text": "public void setX(int x) {\n\t\t_x = x;\n\t}", "title": "" }, { "docid": "39674d428cb16e8298239bc54908d57e", "score": "0.7597456", "text": "public void setX(float x) {\n this.x = x;\n }", "title": "" }, { "docid": "39674d428cb16e8298239bc54908d57e", "score": "0.7597456", "text": "public void setX(float x) {\n this.x = x;\n }", "title": "" }, { "docid": "63f9a91bcb8c6e1ec70ca31e1f386afc", "score": "0.759742", "text": "public void setX(int x){\n posX = x;\n }", "title": "" }, { "docid": "9314d7afa3ef5dcadab49eeb38f6644d", "score": "0.7583521", "text": "public void setX(float x) {\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "4b24d653a3827d0fd3286ee10651c71d", "score": "0.7577599", "text": "@Override\n\t\tpublic final void setX(double x)\n\t\t\t{\n\t\t\t\tdouble diffX = x - this.x;\n\t\t\t\tthis.moveX(diffX);\n\t\t\t}", "title": "" }, { "docid": "e418f34e3b26861cf7318e515e9c4542", "score": "0.75718755", "text": "public void setX(int x) {\n\t\tsuper.setLocation(x, getLocation().y);\n\t}", "title": "" }, { "docid": "46d95b7464895eee186f1c56eb423fdc", "score": "0.7565309", "text": "public void setX(int value) {\n this.x = value;\n }", "title": "" }, { "docid": "ab6f7cb36f81f56192d735faecd20075", "score": "0.75081426", "text": "public void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "ab6f7cb36f81f56192d735faecd20075", "score": "0.75081426", "text": "public void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "ab6f7cb36f81f56192d735faecd20075", "score": "0.75081426", "text": "public void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "ab6f7cb36f81f56192d735faecd20075", "score": "0.75081426", "text": "public void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "ab6f7cb36f81f56192d735faecd20075", "score": "0.75081426", "text": "public void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "9e88c82aa1828939a898d6f9a94e4ff8", "score": "0.75072324", "text": "public void setX(float x)\n {\n this._x = x;\n this._has_x = true;\n }", "title": "" }, { "docid": "0430f5399c6ac93e9ac53c3db302e7f6", "score": "0.7506988", "text": "public void setX(int x)\n\t{\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "dd03c493fe6905d724dcad6a73f1f11c", "score": "0.74847764", "text": "public void setX(int xvalue)\n\t\t{\n\t\t\tx = xvalue;\n\t\t}", "title": "" }, { "docid": "8f73932d25006ea17982d3a7ca7abf43", "score": "0.74833304", "text": "public void setX(double x)\n {\n myX = x;\n }", "title": "" }, { "docid": "bde97334cef581ca48531b6fa81f4b39", "score": "0.7481163", "text": "private void setX(float value) {\n \n x_ = value;\n }", "title": "" }, { "docid": "ee6f282102a0398714e978da01be7ed7", "score": "0.74798805", "text": "public void setX(final int xValue) {\n this.x = xValue;\n }", "title": "" }, { "docid": "089d953ef4a449c12e526a6ede1c31c2", "score": "0.74788094", "text": "public void setX(int x)\r\n\t{\r\n\t\tthis.x = x;\r\n\t}", "title": "" }, { "docid": "089d953ef4a449c12e526a6ede1c31c2", "score": "0.74788094", "text": "public void setX(int x)\r\n\t{\r\n\t\tthis.x = x;\r\n\t}", "title": "" }, { "docid": "79d2905e3a184494c269544e7ffc3844", "score": "0.747337", "text": "public void setX(int x) {\r\n this.x = x;\r\n }", "title": "" }, { "docid": "245dcdbee9a98477a23f37b052c0a772", "score": "0.74323165", "text": "public void setX(float _x) {\n\t\tthis.x = _x;\n\t}", "title": "" }, { "docid": "e6aa570babce9825dc62cb84501b3d23", "score": "0.7431361", "text": "public void setX(double newX) {\r\n this.x = newX;\r\n }", "title": "" }, { "docid": "b68554cbe049eaef20968b6d44a56b77", "score": "0.7430936", "text": "public void setX(int x)\n {\n xCoord = x;\n player.setTranslateX(50*x);\n player.toFront();\n }", "title": "" }, { "docid": "5d126720f9ab40837185c70c5b62f224", "score": "0.7423126", "text": "public void setXPos(int xPos) {\n this.xPos = xPos;\n }", "title": "" }, { "docid": "cdadeba60476625066535f3bc61d1e2f", "score": "0.7406047", "text": "public void setXCoordinate(int xCoordinate) \n\t{ this.xCoordinate = xCoordinate; }", "title": "" }, { "docid": "36e9790c5a1c8cf4875821819e8d1ebf", "score": "0.7380725", "text": "public void setxPos(int xPos);", "title": "" }, { "docid": "a0afba372ce12c610b75ae59181c8e75", "score": "0.73797166", "text": "public void setX (int x){\n\t\tthis.x = x;\n\t}", "title": "" }, { "docid": "1a9d3221b3bc481aa6bcf39b615c9f0d", "score": "0.7364331", "text": "public void setXPos(double xPos){\n\t\tmyXPos = xPos;\n\t\tmyHudElement.setXPos(xPos);\n\t}", "title": "" }, { "docid": "0f0c17514a40439fbfd8c521f200f0aa", "score": "0.7348233", "text": "public void setPositionX(float x)\n\t{\n\t\tthis.setPosition(new Vector2f(x, getPositionY()));\n\t}", "title": "" }, { "docid": "29624fb6fdfb767e587fa1962b22dc6e", "score": "0.7326555", "text": "public void setXpos(int xpos) {\n\t\tthis.xpos = xpos;\n\t}", "title": "" }, { "docid": "c57216f970d9bfd6f489e429a77b81cb", "score": "0.7318786", "text": "public void setX (float newX) {\t\t// shouldn't be in objects\r\n\t\tthis.x = newX;\r\n\t}", "title": "" }, { "docid": "7a2bb31ee04737ab5aaf7a9eae40ea6e", "score": "0.7315866", "text": "public final void setX(final int x)\r\n {\r\n this.x = x;\r\n }", "title": "" }, { "docid": "7a2bb31ee04737ab5aaf7a9eae40ea6e", "score": "0.7315866", "text": "public final void setX(final int x)\r\n {\r\n this.x = x;\r\n }", "title": "" }, { "docid": "6cb667a88ece791353d0c14e1a59ce08", "score": "0.73155457", "text": "public void setXPosition (int XPosition);", "title": "" }, { "docid": "e2049c33dffce99b651d5c40fd63358e", "score": "0.73022205", "text": "@Override\r\n\tpublic void setX(int x) {\n\t\t\r\n\t}", "title": "" }, { "docid": "00cd3c814fe300388f8c47e45131fcf7", "score": "0.7279942", "text": "@Basic @Model\r\n\t public void setPosX(double x) throws IllegalArgumentException {\r\n\t\t\tif (!isValidPosition(x,this.getPosY()))\r\n\t\t\t\tthrow new IllegalArgumentException(\"Position is not valid\");\r\n\t this.posX = x;\r\n\t\t }", "title": "" }, { "docid": "2956bc70a4db046629567543a532dba5", "score": "0.7278771", "text": "public void setX(int xn){\n cuerpo.setxPosition(xn);\n marco.setxPosition(xn+1);\n }", "title": "" }, { "docid": "d9fc83be1aaf1f67b7f5582f4e059d5d", "score": "0.72723556", "text": "public void setPositionX(int np)\r\n {\r\n positionX = np;\r\n }", "title": "" }, { "docid": "bbc677e94d628945a9ebd8cb3b2b717e", "score": "0.72645473", "text": "public void setX(double x) { this.x = x; }", "title": "" }, { "docid": "8b903b871ad6b4c3438dbf02f256f9a0", "score": "0.726133", "text": "protected final void setPosX(double posX) {\n\t\tthis.posX = posX;\n\t}", "title": "" }, { "docid": "07273f14eb7efee77b3b77209f49fb4e", "score": "0.72465885", "text": "public void setX(int x)\n {\n this.x = x;\n }", "title": "" }, { "docid": "07273f14eb7efee77b3b77209f49fb4e", "score": "0.72465885", "text": "public void setX(int x)\n {\n this.x = x;\n }", "title": "" }, { "docid": "35da67362ee458bfc86fbd99de688ed1", "score": "0.72453594", "text": "public void setX(double newX) {\r\n\t\tx = newX;\r\n\t}", "title": "" }, { "docid": "470b727e27af5d8699bf2cc0fad423ca", "score": "0.72263694", "text": "public void setX(double x);", "title": "" }, { "docid": "650abeaa6f8fb80f2ae2e9a43a035069", "score": "0.7220951", "text": "public void setX(int newX) {\n this.x = newX;\n }", "title": "" }, { "docid": "54c04edf3858ea307d474c20fc17e369", "score": "0.72116876", "text": "protected void setX(int x)\n {\n this.x = x;\n }", "title": "" }, { "docid": "de16ed1fcf166db72eb08ab09ff4c0dd", "score": "0.72064924", "text": "public void setPositionX(int x){\n\t\tpositionBound = false;\n\t\tposition.x = x;\n\t}", "title": "" }, { "docid": "bbf4d299057684b0c5c6561297ebd5f3", "score": "0.7204958", "text": "public void setX(int ax) {\n\t\tx = ax;\n\t}", "title": "" }, { "docid": "0d6dacef74a88ddbf0fd9509ba2dbbea", "score": "0.71981984", "text": "public void setX( int x ) {\n\t\tif ( x >= 0 && x<= GridConstants.MAX_PANEL_WIDTH ){\n\t\t\tthis.x = x;\n\t\t}\n\t\telse { \n\t\t\tthis.x = 0;\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "0b17206cd62b11fc46b6fd8280b8b1d5", "score": "0.7176114", "text": "public void setXPos(int xPos) {\n\t\tthis.xPos=xPos;\n\t}", "title": "" }, { "docid": "4faedd27bd2258990730151ac2536d56", "score": "0.71671075", "text": "public void setX(double xpos) {\n\t\t_square.setX(xpos*Constants.SQUARE_SIZE);\n\t}", "title": "" }, { "docid": "98248380b159bb8a7ab67511c405869e", "score": "0.71560544", "text": "public void setX(float x);", "title": "" }, { "docid": "340211b5ad9f7b59bb09688c9ce63d20", "score": "0.71558905", "text": "public void setX(double newX)\n {\n x = newX;\n }", "title": "" }, { "docid": "cd8b8632c6c03a7dc009d2ce2eeecccd", "score": "0.71479076", "text": "public void setX(int x) {\r\n setBounds(x,y,w,h);}", "title": "" }, { "docid": "c8115bb3ba70885d6cb41010ececc340", "score": "0.7147881", "text": "public void setX(double x) {\r\n if (this.active == true) {\r\n this.x = x;\r\n }\r\n }", "title": "" }, { "docid": "da4a54921ae40cd881e779049cbf75fb", "score": "0.71314144", "text": "public void setX ( double new_x ) {\r\n\t\tx = new_x;\r\n\t}", "title": "" }, { "docid": "b42b0283766ceef7f5d5566e002dda25", "score": "0.7128356", "text": "public void setStartX(int x){\n this.startX = x;\n }", "title": "" }, { "docid": "2f6fb30af62df4d64856a5591169e1ac", "score": "0.7117379", "text": "public void setXPosition(int xPosition) {\n\t\tthis.xPosition = xPosition - width/2;\n\t}", "title": "" }, { "docid": "724af7ec60f2692c1f050e5b3afcfa31", "score": "0.7115131", "text": "@Override\n\tpublic void setX(int x) {\n\n\t}", "title": "" }, { "docid": "51f808f1ed99175f3acc4ae0ea887951", "score": "0.70985067", "text": "public void setX(double newX){\n\t\tx = newX;\n\t}", "title": "" }, { "docid": "d9e6f7d38c6195111638483f24f32f9d", "score": "0.70765924", "text": "public void setXPos(final double xPos) {\n\t\ttc.setXPos(xPos);\n\t}", "title": "" }, { "docid": "2a69ce5c208214943336dca6bb64605b", "score": "0.7066175", "text": "public void setX(float v) {\n\t\t\tx = v;\n\t\t}", "title": "" } ]
0bfae6e465362d02671766c0ad87a15a
Gets the Localized value for the specified key. The default String text is return if the specified key does not exist
[ { "docid": "c65a9714cbef5559283a49113c7e3a77", "score": "0.0", "text": "public String getString(String key, String dft, Object arg0, Object arg1, Object arg2, Object arg3)\n {\n return this.getString(key, dft, new Object[] { NonNull(arg0), NonNull(arg1), NonNull(arg2), NonNull(arg3) });\n }", "title": "" } ]
[ { "docid": "0dc0247805e4319deaed97302ad3c258", "score": "0.7755978", "text": "@Nonnull\n public String get(@Nonnull Translatable key) {\n String message = messages.getProperty(key.name());\n if (message == null || message.length() < 2) {\n if (parentStorage != null) {\n message = parentStorage.get(key);\n }\n }\n\n if (message == null || message.length() < 2) {\n log.log(Level.WARNING, \"Could not find value for lang key \" + key.name());\n return key.getDefaultValue();\n }\n\n return message;\n }", "title": "" }, { "docid": "e6095c6137255e8abb71c6447a6f2604", "score": "0.74892867", "text": "public String getValue(String key) {\r\n String result = \"\";\r\n try {\r\n result = resourceBundle.getString(key);\r\n } catch (java.util.MissingResourceException mre) {\r\n log.warn(mre);\r\n } catch (NullPointerException npe) {\r\n log.warn(npe);\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "0cc8921b2f8b85f1e3aec24c60cceb1f", "score": "0.7094603", "text": "String getString(String key, Locale locale);", "title": "" }, { "docid": "2cddeb4ed512d28eab1bb0f2ca8954a2", "score": "0.7072714", "text": "public static String getLocalizedMessage(final String key) {\r\n try {\r\n return defaultResourceBundle.getString(key);\r\n } catch (MissingResourceException mre) {\r\n LOGGER.warn(MISSING_RESOURCE_ENCOUNTERED_STRING);\r\n } catch (NullPointerException e) {\r\n LOGGER.warn(MISSING_RESOURCE_ENCOUNTERED_STRING);\r\n }\r\n return EMPTY_STRING;\r\n }", "title": "" }, { "docid": "ef233dc9d90baf67ade7877abcb420ad", "score": "0.70065963", "text": "public static String getString(final String key) {\n //Get context (ResourceBundle) with the key:\n //myplugin.key = my translation -> get context : myplugin\n int contextIndex = key.indexOf('.');\n if (contextIndex == -1) {\n return key;\n } //context not found. No translation\n String contextKey = key.substring(0, contextIndex);\n if (I18NS.get(contextKey) == null) {\n LOG.warn(\"Context not found for \" + contextKey);\n //context not found. No translation : return key\n return key;\n }\n try {\n //return translation\n return I18NS.get(contextKey).getString(key);\n } catch (MissingResourceException m) {\n LOG.warn(\"missing resource\", m);\n //key not found in context. No translation : return key\n return key;\n }\n }", "title": "" }, { "docid": "28e548a7203578dff35d64ee3472ec2a", "score": "0.6976079", "text": "public String getTranslation(String key) {\n if (!this.translations.containsKey(key)) {\n return key;\n }\n\n return this.translations.get(key);\n }", "title": "" }, { "docid": "bdf61daf1de1829aec89815ff08678e7", "score": "0.69231945", "text": "static public String getString(String key) {\n try {\n return res.getString(key);\n } catch(MissingResourceException ex) {\n return \"!\"+key+\"!\"; //$NON-NLS-1$ //$NON-NLS-2$\n }\n }", "title": "" }, { "docid": "d6a45431077add9198f7968e91c10abf", "score": "0.678767", "text": "public String getString(String key, String defaultValue) {\n \t\ttry {\n \t\t\tResourceBundle bundle = Beans.isDesignTime() ? loadBundle() : this.resourceBundle;\n \t\t\treturn bundle.getString(key);\n \t\t} catch (MissingResourceException e) {\n \t\t\treturn defaultValue;\n \t\t}\n \t}", "title": "" }, { "docid": "9961a99333989bee7b5141a2700596af", "score": "0.6740683", "text": "private String getString(String key) {\n try {\n \treturn resourceBundle.getString(key);\n } catch (MissingResourceException e) {\n return '!' + key + '!';\n }\n }", "title": "" }, { "docid": "b36fda12eb813e1bdf0cc0b4e3536043", "score": "0.67106324", "text": "public String getMessage( String key )\n {\n return resourceBundle.getString( key );\n }", "title": "" }, { "docid": "75ba6704e0b29e4e26c64bccb8e1188a", "score": "0.67046404", "text": "public String getString(String key);", "title": "" }, { "docid": "75ba6704e0b29e4e26c64bccb8e1188a", "score": "0.67046404", "text": "public String getString(String key);", "title": "" }, { "docid": "fdb16d5a8161ee7c18eb618e499d37ea", "score": "0.6670633", "text": "public String _(String key) {\n return Translate.getString(key, _context, BUNDLE_NAME);", "title": "" }, { "docid": "c15104e3570f2b11c9ffec3396dc4897", "score": "0.66620463", "text": "public String get( String key ) {\n try {\n return m_resources.getString( key );\n }\n catch ( MissingResourceException e ) {\n return m_resources.getString( key + Platform.getType() );\n }\n }", "title": "" }, { "docid": "95f6d48972364b75782a0779cec5fddc", "score": "0.662296", "text": "String getString(String key) {\r\n\t\treturn MSG.getString(key);\r\n\t}", "title": "" }, { "docid": "d4ec9cf02ece844db0200a08180a25dd", "score": "0.66152227", "text": "public String localizedString() {\n\n\t\tString aKeyString = (String)valueForBinding( \"value\" );\n\t\tif ( aKeyString == null) {\n\t\t\tthrow new NullPointerException( \"<\" + getClass().getName() +\n\t\t\t\"> missing value for binding named \\\"value\\\"\");\n\t\t}\n\n\t\tString aLocalizedString = localizeString( aKeyString );\n\t\treturn aLocalizedString;\n\t}", "title": "" }, { "docid": "9714f4c59130fd18672b9a3708266eed", "score": "0.65957284", "text": "public static String get(String key) {\n Key parts = new Key(key);\n return ResourceBundle.getBundle(parts.getBundle())\n .getString(parts.getResource())\n .replace(\"\\n\", lineSeparator());\n }", "title": "" }, { "docid": "1fbc95ac0a98e564365f37f3e4b845dc", "score": "0.6565374", "text": "public String translate(String key) {\n String translation;\n try {\n translation = bundle.getString(key);\n } catch (java.util.MissingResourceException ex) {\n Logger.getLogger(LocaleTranslator.class.getName()).log(Level.SEVERE, null, ex);\n translation = '*'+key+'*';\n }\n \n return translation;\n }", "title": "" }, { "docid": "daae90e3f7c10fe9e8d78d0d457c3dfb", "score": "0.65533483", "text": "public String getString(String key) {\n return pref.getString(key, \"\");\n }", "title": "" }, { "docid": "be27e67c3ea6951b39cbd6b536b86b7f", "score": "0.654902", "text": "public String getString(String key, String def);", "title": "" }, { "docid": "de94234138c1e9d7c2f7611d82ede933", "score": "0.6535625", "text": "protected static final String getString(final String key) {\n\t\treturn MessagesBase.getString(RESOURCE_BUNDLE, key);\n\t}", "title": "" }, { "docid": "fdcf6cc7dd35db20766facad4bde2aca", "score": "0.6530464", "text": "public static Optional<String> tryGet(String key) {\n Key parts = new Key(key);\n ResourceBundle bundle = ResourceBundle.getBundle(parts.getBundle());\n if (!bundle.containsKey(parts.getResource())) {\n return Optional.empty();\n }\n String value = bundle.getString(parts.getResource()).replace(\"\\n\", lineSeparator());\n return Optional.of(value);\n }", "title": "" }, { "docid": "b5bedc7559d908eab5d6afcaada55380", "score": "0.6516938", "text": "public String getString(Object key){\n try{\n return obj.get(key).toString();\n }catch (Exception e){}\n return null;\n }", "title": "" }, { "docid": "27dd96027a92d8e8a070d105097e9fff", "score": "0.6508034", "text": "public static String getString(String key) {\n\t\ttry {\n\t\t\treturn resourceBundle.getString(key);\n\t\t} catch (MissingResourceException e) {\n\t\t\treturn '!' + key + '!';\n\t\t}\n\t}", "title": "" }, { "docid": "3fd7c4a0573cc1a4e73d9f5780b61e7c", "score": "0.64939314", "text": "public String getString( String key, String defaultValue)\r\n {\r\n return super.getString(key, defaultValue);\r\n }", "title": "" }, { "docid": "6e32f283f6cd0c461a641e40e95a867c", "score": "0.6478524", "text": "public String getString(String key){\r\n\t\ttry {\r\n\t\t\treturn resource.getString(key);\r\n\t\t} catch (MissingResourceException e) {\r\n\t\t\treturn key;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ee4a38824e911354617ed651815322f1", "score": "0.6466029", "text": "String getString(String key);", "title": "" }, { "docid": "00cc94169b90da975f088a27d1643bdc", "score": "0.64148223", "text": "public static String getResourceString(String key) {\n \t\tResourceBundle bundle = PTPCorePlugin.getDefault().getResourceBundle();\n \t\ttry {\n \t\t\treturn (bundle != null) ? bundle.getString(key) : key;\n \t\t} catch (MissingResourceException e) {\n \t\t\treturn key;\n \t\t}\n \t}", "title": "" }, { "docid": "2dacb0abfd0bbb4da62f1b08fecfe0d3", "score": "0.64041567", "text": "private String getString(String key) {\r\n\t\ttry {\r\n\t\t\treturn RESOURCE_BUNDLE.getString(key);\r\n\t\t} catch (MissingResourceException e) {\r\n\t\t\treturn '!' + key + '!';\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eb19e3b5e739986050056e1aa4a7f6c5", "score": "0.63706934", "text": "public static String getString(String key) {\n try {\n return RESOURCE_BUNDLE.getString(key);\n } catch (MissingResourceException e) {\n return '!' + key + '!';\n }\n }", "title": "" }, { "docid": "72ab8ce5c2acdd412b9c290a45e71633", "score": "0.6347722", "text": "public String get(String key) {\n if (preferences.containsKey(key)) {\n return (String) preferences.get(key);\n }\n\n // Defaults\n if (key.equals(GREEK_DISPLAY_KEY)) {\n return \"UnicodeC\";\n }\n if (key.equals(GREEK_INPUT_KEY)) {\n return \"BetaCode\";\n }\n if (key.equals(ARABIC_DISPLAY_KEY)) {\n return \"UnicodeC\";\n }\n if (key.equals(LANGUAGE_KEY)) {\n return \"trans\";\n }\n if (key.equals(AUTOLOAD_KEY)) {\n return \"orig\";\n }\n if (key.equals(NAVBAR_KEY)) {\n return \"show\";\n }\n\n return null;\n }", "title": "" }, { "docid": "969650f1ab1b18046a37fee8c9bff0c4", "score": "0.6338314", "text": "public String getValue(String key) {\n return map.get(key);\n }", "title": "" }, { "docid": "fc351ab3131b77648c249c913323c5ab", "score": "0.6334223", "text": "public String getString(String key) {\r\n return (String)get(key);\r\n }", "title": "" }, { "docid": "b3d8212fd265804558746b8c405e32af", "score": "0.63323265", "text": "public static String getString(String key) {\n\t\ttry {\n\t\t\treturn bundle.getString(key);\n\t\t} catch (MissingResourceException e) {\n\t\t\treturn key;\n\t\t}\n\t}", "title": "" }, { "docid": "c33730a5a7fcf4f814a55139469b8526", "score": "0.63289315", "text": "public static String getResourceString(String key) {\n\t\tResourceBundle bundle = XuluxPlugin.getDefault().getResourceBundle();\n\t\ttry {\n\t\t\treturn (bundle != null) ? bundle.getString(key) : key;\n\t\t} catch (MissingResourceException e) {\n\t\t\treturn key;\n\t\t}\n\t}", "title": "" }, { "docid": "9a7efcc98bfadf52cb0f76e69201df13", "score": "0.62853426", "text": "String get(Object key);", "title": "" }, { "docid": "869712025889e2e31383b8276cfbddce", "score": "0.628457", "text": "public String get(String key) {\n\t\tString value = \"\";\n\n\t\ttry {\n\t\t\tvalue = map.get(key);\n\t\t} catch (Exception e) {\n\t\t\tthrow new JPSRuntimeException(NO_NULL_KEY_VALUE);\n\t\t}\n\n\t\tif (value == null) {\n\t\t\tvalue = KEY_DOES_NOT_EXIST;\n\t\t}\n\n\t\treturn value;\n\t}", "title": "" }, { "docid": "c40e210fbe6c4ac5fc4b3f9a0279d361", "score": "0.62812537", "text": "@Override\n public String GetStringValue(String key) {\n return preferences.getString(key, null);\n }", "title": "" }, { "docid": "1d219ee32858853fa333e8265683150c", "score": "0.6272421", "text": "private String translate(String key, String defaultValue)\n {\n String translation = messageTool.get(key);\n return key.equals(translation) ? defaultValue : translation;\n }", "title": "" }, { "docid": "d338c686dd5543c6598b733011f156e0", "score": "0.6255657", "text": "public static String getString(String key, String defaultValue) {\n\t\tString result = getString(key);\n\t\treturn (result == null) ? defaultValue : result;\n\t}", "title": "" }, { "docid": "8e247e22561c87de0623338702fc28a4", "score": "0.624803", "text": "java.lang.String getTranslation();", "title": "" }, { "docid": "1b2f6ea0ebcb0652093377841f784bbd", "score": "0.6243635", "text": "String getMessage(String key);", "title": "" }, { "docid": "bdb46a210f39fee0a16297af60074300", "score": "0.6234246", "text": "public static String getString(String key) {\n\treturn getString(key, \"\");\n }", "title": "" }, { "docid": "f6f4955ffae298e40bada41768e9977f", "score": "0.6226831", "text": "public static I18N.Text _getString(Class<?> clazz, String key, String dft)\n {\n // i18n 'key' is separately specified\n String pkg = (clazz != null)? clazz.getPackage().getName() : null;\n return I18N.parseText(pkg, key, dft);\n }", "title": "" }, { "docid": "0b1f72b5725528906fe7eda9c554bb18", "score": "0.6219039", "text": "protected final String r(String key,Locale l){\r\n\t\treturn ResourceBundle.getBundle(getBundleFilename(),l).getString(key);\r\n\t\t//else return ResourceBundle.getBundle(getBundleFilename()).getString(key);\r\n\t}", "title": "" }, { "docid": "6c84061220a71ace728919cd0d11334c", "score": "0.6218831", "text": "String getValue(String key);", "title": "" }, { "docid": "6c84061220a71ace728919cd0d11334c", "score": "0.6218831", "text": "String getValue(String key);", "title": "" }, { "docid": "6c84061220a71ace728919cd0d11334c", "score": "0.6218831", "text": "String getValue(String key);", "title": "" }, { "docid": "aee0d7d66799960403e977b78eed6355", "score": "0.62114096", "text": "public static String getResourceString(String key) {\r\n\t\tResourceBundle bundle = ReloStorePlugin.getDefault().getResourceBundle();\r\n\t\ttry {\r\n\t\t\treturn (bundle != null) ? bundle.getString(key) : key;\r\n\t\t} catch (MissingResourceException e) {\r\n\t\t\treturn key;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "856d9b25d929d02f3a66da50b80d0446", "score": "0.61924446", "text": "public String getString(String key, String dft)\n {\n if (!StringTools.isBlank(key) && (this.resBundle != null)) {\n RTProperties cfgProps = RTConfig.getConfigFileProperties();\n if (!cfgProps.hasProperty(key) || cfgProps.getBoolean(key,true)) {\n try {\n String s = this.resBundle.getString(key);\n if (s != null) {\n return I18N.decodeNewLine(s);\n }\n } catch (Throwable th) {\n //Print.logException(\"\",th);\n // MissingResourceException - if no object for the given key can be found \n // ClassCastException - if the object found for the given key is not a string\n }\n }\n }\n return I18N.decodeNewLine(dft);\n }", "title": "" }, { "docid": "baf8397b297e094f9c103ffb533c98c9", "score": "0.6186575", "text": "public String getVal(String key) {\n if (null == key) {\n return null;\n }\n return this.kvMap.get(key);\n }", "title": "" }, { "docid": "4d2858d812683a99c90b9ebcd7361173", "score": "0.61729836", "text": "public String getMessageValue(String key) {\n\t\tif (messageProperties.getProperty(key) != null)\n\t\t\treturn messageProperties.getProperty(key);\n\t\telse\n\t\t\tthrow new RuntimeException(key + \" not specified in the Messages.properties file.\");\n\t}", "title": "" }, { "docid": "2e14a98020d1682cdd3c5af34d91e8d5", "score": "0.61583626", "text": "public String get(String key);", "title": "" }, { "docid": "d9f0c0033b1890574c44c145013703dc", "score": "0.6157713", "text": "public String getValue(String key) {\n return (String) map.get(key);\n }", "title": "" }, { "docid": "ab03d5d007a082c06c22272307964372", "score": "0.6142704", "text": "@Override\n public String getString(String key) {\n Object value = get(key);\n if (value == null) {\n return null;\n }\n if (value instanceof CharSequence) {\n return value.toString();\n }\n return String.valueOf(value);\n }", "title": "" }, { "docid": "b267e6007e86ad9e1170c3760f78904d", "score": "0.6131245", "text": "public static String getResource(final String key) {\r\n return getResource(key, locale);\r\n }", "title": "" }, { "docid": "8ee9dc1c56b35b8c74bc9e90cd75c194", "score": "0.6113501", "text": "public String getString(String key) throws MissingResourceException {\n\t\treturn bundle.getString(key);\n\t}", "title": "" }, { "docid": "57a5263c64f3cd8fa7cf438ba4378530", "score": "0.6101946", "text": "public String getProperty(String key) \n\t throws NullPointerException, \n\t MissingResourceException, ClassCastException {\n return resourceBundle.getString(key);\n }", "title": "" }, { "docid": "fbb5d26f40ef18ec96407218cf053cf7", "score": "0.6099752", "text": "public final String getString(ConfigurationKey key, String defaultValue) {\n loadIfNecessary();\n return getValue(key.getKey(), defaultValue);\n }", "title": "" }, { "docid": "afa44da327d50df0a752edf518b84ae7", "score": "0.60922647", "text": "public static String getStringMessage(Context context, String key, String defaultValue)\n {\n SharedPreferences sharedPreferences = context.getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE);\n return sharedPreferences.getString(key, defaultValue);\n }", "title": "" }, { "docid": "f11f705e55205daf7a80c692227fd70e", "score": "0.6090364", "text": "public String getString(String key){\n String resource = getResource(key);\n if(resource != null)\n return resource.trim();\n else\n return null;\n }", "title": "" }, { "docid": "f7b2f1ed75d2481b1842c0c15aef4653", "score": "0.60889", "text": "public String lookup(String key) { \n Node N = findKey(key);\n if( N == null) {\n return null;\n }\n return N.value;\n }", "title": "" }, { "docid": "8eedc4cd83446ad93c190d4b7554b187", "score": "0.6080703", "text": "@Nullable\n String get(String key, @Nullable String defaultValue);", "title": "" }, { "docid": "4b5f8871ac654e3c3af0dad55e1fe804", "score": "0.6059822", "text": "String get(String key);", "title": "" }, { "docid": "4b5f8871ac654e3c3af0dad55e1fe804", "score": "0.6059822", "text": "String get(String key);", "title": "" }, { "docid": "7d8dc09980c1b67e9c090c9205d7e879", "score": "0.6043353", "text": "public abstract String getValue(String key, String defaultValue);", "title": "" }, { "docid": "e12babcb91d0b9be90d08ed9a8d79f08", "score": "0.60389745", "text": "private String getString(ResourceBundle resources, String key)\n {\n try\n {\n return resources.getString(key);\n }\n catch (MissingResourceException e)\n {\n assert false;\n }\n return null;\n }", "title": "" }, { "docid": "7b663d47910c7295b9481e1579f416de", "score": "0.60355526", "text": "public String getValue(final String key) {\n\t\treturn p.getProperty(key);\n\t}", "title": "" }, { "docid": "3c658622c102f6d896082a59559f3b14", "score": "0.60094583", "text": "@Override\n\tpublic String getString(String key) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1dd344b4d54bc048976a6f2a50ce406c", "score": "0.600314", "text": "public String getString(String key, String defaultValue) {\n Object o = mMap.get(key);\n if (o == null) {\n return defaultValue;\n }\n try {\n return (String) o;\n } catch (ClassCastException e) {\n return defaultValue;\n }\n }", "title": "" }, { "docid": "3108f958620b2a6ced04e80bd1dd8c3d", "score": "0.6002762", "text": "public String getString(String key) {\n if (context != null) {\n return context.getSharedPreferences(prefName, Context.MODE_PRIVATE)\n .getString(key, null);\n }\n return null;\n }", "title": "" }, { "docid": "13b35b633c3c31166eb1ae30221e0aa5", "score": "0.60012287", "text": "@Override\n public String getString(String key) {\n return null;\n }", "title": "" }, { "docid": "e98efdcaac793f952217d541c6ed7fa9", "score": "0.60000974", "text": "static String getMessage(String key, Object... arguments) {\r\n \treturn MessageFormat.format(resources.getString(key), arguments);\r\n }", "title": "" }, { "docid": "a2433d8dff43553d987e6cfd891a6ec8", "score": "0.5988024", "text": "public String getText(String msgKey, Locale locale) {\n return getMessageSourceAccessor().getMessage(msgKey, locale);\n }", "title": "" }, { "docid": "02eacd797e25d1d0439f0d2265b9ccb4", "score": "0.597824", "text": "public static String getString(String key) {\n\t\treturn props.getProperty(key);\n\t}", "title": "" }, { "docid": "ee89f89eef33111f36bbdb300dab8286", "score": "0.59675837", "text": "public static I18N.Text getString(Class<?> clazz, String key, String dft)\n {\n // i18n 'key' is separately specified\n String pkg = (clazz != null)? clazz.getPackage().getName() : null;\n return I18N.parseText(pkg, key, dft);\n }", "title": "" }, { "docid": "16a0520c30ca4302ff1185850f1f5d1f", "score": "0.5963014", "text": "public String get(String key) {\n if (!data.containsKey(key)) {\n return null;\n }\n Preconditions.checkState(\n data.get(key).size() == 1, \"Key %s should has only one value.\", key);\n return (String) data.get(key).toArray()[0];\n }", "title": "" }, { "docid": "5d749c451dd249a48eb02c2ba2d6ca51", "score": "0.596261", "text": "public String getString(String key) {\n\t\treturn this.data.getString(key);\n\t}", "title": "" }, { "docid": "2fa7db875bab2e3664f911303587c992", "score": "0.5957711", "text": "@Override\n\tpublic String retrieve(Integer key) {\n\t\tbyte[] cachedData = null;\n\t\tString theString = null;\n\t\ttry (Transaction tx = environment.createReadTransaction()) {\n\t\t\tcachedData = db.get(tx, KBEnvironment.serialize(key));\n\t\t\tif (cachedData != null) {\n\t\t\t\ttheString = (String)KBEnvironment.deserialize(cachedData);\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\tLOGGER.error(\"cannot retrieve \" + key, e);\n\t\t}\n\t\treturn theString;\n\t}", "title": "" }, { "docid": "92230d8a36e10a7f9897229d085fa9b8", "score": "0.5955222", "text": "public String get(String key) {\n\t\t\tString result = values.get(key);\n\t\t\tif (result != null && result.equals(NULL_ELEMENT))\n\t\t\t\tresult = null;\n\t\t\treturn result;\n\t\t}", "title": "" }, { "docid": "f86648f4dc2603ff95538c0f8eaf0cc1", "score": "0.59533656", "text": "public String get(String key) {\n\t\tString hashKeyVal;\n\t\thashKeyVal = getKeyVal().get(key);\n\t\treturn hashKeyVal;\n\t}", "title": "" }, { "docid": "b52ade8cf33cc1f0e82ab5f5a666cd3f", "score": "0.595085", "text": "public String getString(String key) {\r\n return this.sp.getString(key, \"\");\r\n }", "title": "" }, { "docid": "864c57b4bb16c099c044256953651cd9", "score": "0.5948398", "text": "@Override\n public Optional<String> get(final Locale locale, final String bundle, final String key, final Object... args) {\n final Map yamlContent = getYamlContent(bundle, locale);\n final String[] pathSegments = StringUtils.split(key, '.');\n return get(yamlContent, pathSegments, 0);\n }", "title": "" }, { "docid": "f560b9b51a6098820c64da86c25aa181", "score": "0.59397465", "text": "public String getStringValue(String key) {\n SharedPreferences pref = context.getSharedPreferences(\n REAL_ESTATE_PREFERENCES, 0);\n return pref.getString(key, \"\");\n }", "title": "" }, { "docid": "485e17de45be5dc621f408ab3f447e27", "score": "0.59363055", "text": "public String getText(String msgKey, String arg, Locale locale) {\n return getText(msgKey, new Object[] { arg }, locale);\n }", "title": "" }, { "docid": "3430b7c4b6db2d4f084368beadcf1675", "score": "0.59338623", "text": "public final String get(String key, String defaultVal) {\n String str = get_(key);\n if (str == null)\n return defaultVal;\n return str;\n }", "title": "" }, { "docid": "68b94045af907493c7d74cd60bddec5d", "score": "0.59058297", "text": "public static String getI18NMessage(String bundleName, String key, String... params) {\n return getI18NMessage(bundleName, Locale.getDefault(), key, params);\n }", "title": "" }, { "docid": "614d612d36d9c521764c8203a98121fd", "score": "0.5881052", "text": "public String getStringValue(String key, String defaultValue) {\n SharedPreferences pref = context.getSharedPreferences(\n REAL_ESTATE_PREFERENCES, 0);\n return pref.getString(key, defaultValue);\n }", "title": "" }, { "docid": "e2592571e8f843626633dad62530b479", "score": "0.58790994", "text": "public String getString(String key, String dft, Object args[])\n {\n String val = this.getString(key, dft);\n if ((args != null) && (args.length > 0) && (val != null)) {\n try {\n MessageFormat mf = new MessageFormat(val);\n mf.setLocale(this.locale);\n StringBuffer sb = mf.format(args, new StringBuffer(), null);\n return I18N.decodeNewLine(sb).toString();\n } catch (Throwable th) {\n Print.logInfo(\"Exception: \" + key + \" ==> \" + val);\n }\n }\n return I18N.decodeNewLine(val);\n }", "title": "" }, { "docid": "fd7bef9443a4d78a875e37d1e832c4fb", "score": "0.58579755", "text": "public String getString( String key, String defaultFormat, Object[] args)\r\n {\r\n return super.getString(key, defaultFormat, args);\r\n }", "title": "" }, { "docid": "2bebd3c9e6905dfdc9537f31bf8dbe9e", "score": "0.5855673", "text": "@Override\n public String getStringForKey(String key) {\n return sharedPreferences.getString(key, null);\n }", "title": "" }, { "docid": "84da4cb9636b89da48b1637fff1a028c", "score": "0.5852465", "text": "public String getString(String key, String defaultValue) {\n mSharedPreferences = mContext.getSharedPreferences(APP_PREFS, Context.MODE_PRIVATE);\n return mSharedPreferences.getString(key, defaultValue);\n }", "title": "" }, { "docid": "0f7b75d3d4ed5fc12e2c82b169dadfde", "score": "0.5849286", "text": "public String get(String key) {\n if (!this.keys.containsKey(key)) {\n return \"Key does not exist\";\n } else {\n LRUNode node = this.keys.get(key);\n this.movetoend(node);\n return node.data;\n }\n }", "title": "" }, { "docid": "862ed3b6cad85ad097d4e6f2fcb2c6fe", "score": "0.58413315", "text": "public String get(String key, String defaultValue) {\n String value = get(key);\n if (value == null) {\n return defaultValue;\n } else {\n return value;\n }\n }", "title": "" }, { "docid": "3850927dddbead820f5d4c587031fb23", "score": "0.58383566", "text": "public static String format(final int key) throws MissingResourceException {\n return getResources(null).getString(key);\n }", "title": "" }, { "docid": "ed3dd4640368822a3475af6b01d90f74", "score": "0.583791", "text": "public abstract String get(String key);", "title": "" }, { "docid": "9b625ebd2e326787c06e563c4eb9c6cf", "score": "0.5826554", "text": "public String GetText(String idKey){\n\t\tString text1 = null;\n\t\ttry{\n\t\t\ttext1 =driver.findElement(By.id(OR.getProperty(idKey))).getText();\n\t\t}catch(Exception e){\n\t\t\t//report error\n\t\t}\n\t\treturn text1;\n\t}", "title": "" }, { "docid": "21533bf627493beff6022201fa71237a", "score": "0.58220935", "text": "public static String getLocalizedMessage(final String key,\r\n final String locale, final String resourceName) {\r\n ResourceBundle resourceBundle = ResourceBundle.getBundle(resourceName,\r\n new Locale(locale));\r\n\r\n try {\r\n return resourceBundle.getString(key);\r\n } catch (MissingResourceException mre) {\r\n LOGGER.warn(MISSING_RESOURCE_ENCOUNTERED_STRING);\r\n } catch (NullPointerException e) {\r\n LOGGER.warn(MISSING_RESOURCE_ENCOUNTERED_STRING);\r\n }\r\n return EMPTY_STRING;\r\n\r\n }", "title": "" }, { "docid": "7ffe8ec6d9f2fc402d4ff5d76f121cc4", "score": "0.58130133", "text": "public String getString(String key) {\r\n\t\treturn LeapJNI.Config_getString(this.swigCPtr, this, key);\r\n\t}", "title": "" }, { "docid": "c0a314619f6b1c0203b24b14c7493182", "score": "0.5811025", "text": "@Override\r\n\tpublic String getMessage(String key) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "d479f2cc19c9fdee2fbbd66ce4bef3cc", "score": "0.5806797", "text": "public String get(String key, String defaultValue){\n SharedPreferences sharedPreferences = mContext.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);\n return sharedPreferences.getString(key, defaultValue);\n }", "title": "" } ]
429790fe3f79ebcf8fb424df6bfedb72
Free all the resources
[ { "docid": "8a404b04d6b95a19a873e654e988076e", "score": "0.0", "text": "public synchronized void close() {\n\t\ttrackingPnl.close();\n\t\ttheToolbar.close();\n\t\tsuper.close();\n\t}", "title": "" } ]
[ { "docid": "ba6d27df1b8db0188d72cdee09bd472a", "score": "0.79437137", "text": "public void freeResources() throws DataSourceFinalizationException {\n \n sourceManager.shutdown();\n \n File[] tempFiles = tempDir.listFiles(new GdmsFileFilter());\n \n boolean success = true;\n for (int i = 0; i < tempFiles.length; i++) {\n success &= tempFiles[i].delete();\n }\n if (!success) {\n LOG.warn(\"Error deleting files: not all resources were freed.\");\n }\n }", "title": "" }, { "docid": "3558e823fa49cbb61200af6aa7224047", "score": "0.7782248", "text": "public void cleanupResources() {\n deleteFramebufferTexture();\n deleteFrameBuffer();\n deletePrograms();\n\n GLES30.glFlush();\n }", "title": "" }, { "docid": "102bf1cbc24b23cf3fa11b6136158645", "score": "0.7770749", "text": "public void free() {\r\n stop();\r\n alDeleteSources(pointer);\r\n }", "title": "" }, { "docid": "cf9070f37a968fe8585bf02d99e0ada0", "score": "0.7658644", "text": "@Override\n public void freeUnusedResources() {\n }", "title": "" }, { "docid": "69e646307c7f1a2d2ddfa183c89a93a0", "score": "0.76042205", "text": "public void free() {\n\t\tclose();\n\t}", "title": "" }, { "docid": "66d5b7b03dce0bb0e695111e55881911", "score": "0.7595771", "text": "protected void deallocateResourcesOfAllVms() {\n ramProvisioner.deallocateResourceForAllVms();\n bwProvisioner.deallocateResourceForAllVms();\n vmScheduler.deallocatePesForAllVms();\n }", "title": "" }, { "docid": "2e95142c73f481960cd61a29ce30f445", "score": "0.75713986", "text": "void clearResources();", "title": "" }, { "docid": "4b7ea2f1bf666429ae81735f8fd4b066", "score": "0.75402796", "text": "@Override\n protected void freeCustomResources() {\n cleanUp();\n }", "title": "" }, { "docid": "f2bba1969f9e0424105ce49cf64a9984", "score": "0.7532308", "text": "@Override\n protected void freeResource()\n {\n }", "title": "" }, { "docid": "bd99b00bc67479a31077dbed8d84400a", "score": "0.7521347", "text": "private void cleanUp() {\r\n\t\tMasterRenderer.cleanUp();\r\n\t\tTextureManager.cleanUp();\r\n\t\tModelManager.cleanUp();\r\n\t\tGuiRenderer.cleanUp();\r\n\t\tFontManager.cleanUp();\r\n\t\tDisplay.destroy();\r\n\t}", "title": "" }, { "docid": "2ca58e4d6d19e4cf13d1c36f01943010", "score": "0.75078", "text": "public void releaseResources();", "title": "" }, { "docid": "8b90b72554629985e6e0d31913aeecfa", "score": "0.7503361", "text": "public void releaseResources() {\n\n }", "title": "" }, { "docid": "74f17a864f8b377565fb49f934d13f12", "score": "0.74559575", "text": "void releaseResources();", "title": "" }, { "docid": "8af1ad2ffc8a07488c456658a7f0adca", "score": "0.73245335", "text": "void cleanupResource();", "title": "" }, { "docid": "476397c9cd506ad5050d45adecafea04", "score": "0.72979707", "text": "public void cleanup();", "title": "" }, { "docid": "476397c9cd506ad5050d45adecafea04", "score": "0.72979707", "text": "public void cleanup();", "title": "" }, { "docid": "476397c9cd506ad5050d45adecafea04", "score": "0.72979707", "text": "public void cleanup();", "title": "" }, { "docid": "8c45da111cabdae3a3d3c640788da03b", "score": "0.7296668", "text": "public void cleanAll() {\n\t\tcleanAllMovies();\n\t\tcleanAllReservations();\n\t\tcleanAllSessions();\n\t\tclose();\n\t}", "title": "" }, { "docid": "008ad2c781dd6dad6b9be8a4d09d3489", "score": "0.72877884", "text": "private void releaseResources() {\n this.rheemContext.getCardinalityRepository().sleep();\n if (this.crossPlatformExecutor != null) this.crossPlatformExecutor.shutdown();\n }", "title": "" }, { "docid": "4d43213dfd6fe9b0f24943a071405ee0", "score": "0.72271156", "text": "public void cleanup() {\r\n }", "title": "" }, { "docid": "4d43213dfd6fe9b0f24943a071405ee0", "score": "0.72271156", "text": "public void cleanup() {\r\n }", "title": "" }, { "docid": "9fba7530145766e6d96240e2f44f17ec", "score": "0.7226194", "text": "private void cleanup() {\n bcwtCore = null;\n imageCoeff = null;\n orgOrder = null;\n }", "title": "" }, { "docid": "b9cc02d5b2ed8a1a1f09db49f5652c31", "score": "0.7224421", "text": "protected void cleanup()\n {\n closeStatements();\n\n m_allItems = null;\n }", "title": "" }, { "docid": "61669ef9e6793ebf896ed0a78072bee1", "score": "0.7216886", "text": "public void free()\n\t\t{\n\t\t\tm_spi.free();\n\t\t}", "title": "" }, { "docid": "9c76e16e551e7e1c06014e9faaaaa921", "score": "0.72065467", "text": "public abstract void cleanupAll();", "title": "" }, { "docid": "519b705c9b4e5cc2dda76ada0a1e12d2", "score": "0.7189032", "text": "public void cleanup() {\n\n\t}", "title": "" }, { "docid": "c02b20bba6926e07188f5a0348480720", "score": "0.7162881", "text": "public void free() {\n try {\n if (statement != null)\n statement.close();\n\n if (connection != null)\n connection.close();\n\n } catch (SQLException e) {\n //\n }\n }", "title": "" }, { "docid": "63d46f4d1fcb52cc3970e9aa1df5b97e", "score": "0.7138056", "text": "private void cleanup() \n {\n \tterrain.getMapShader().deleteShader();\n \tfor(int i = 0; i < models.size(); i++)\n \t{\n \t\tmodels.get(i).getModelShader().deleteShader();\n \t}\n Display.destroy();\n System.exit(1);\n }", "title": "" }, { "docid": "8721d61591f83f6a3de58594612ddf08", "score": "0.7122419", "text": "public void free();", "title": "" }, { "docid": "f4838a38ede02e71cce3504b66dd6abc", "score": "0.71142936", "text": "protected void finalize() {\n\t\tfree();\n\t}", "title": "" }, { "docid": "2a2c2f1e55b9b05aac55482ad4f5b6be", "score": "0.70906055", "text": "public void cleanup() {\n }", "title": "" }, { "docid": "2a2c2f1e55b9b05aac55482ad4f5b6be", "score": "0.70906055", "text": "public void cleanup() {\n }", "title": "" }, { "docid": "68fd1a50523334fc3ea6a35f33f013d7", "score": "0.70713097", "text": "public void cleanup () {\n\t\tH = null;\r\n\t\tV = null;\r\n\t\tD = null;\t\t\t\t\r\n\t}", "title": "" }, { "docid": "59551067e1848b3f24c533d2ac925cdf", "score": "0.7062556", "text": "public void destroyResources () {\n if (jerseyClient != null) {\n jerseyClient.destroyResources();\n }\n }", "title": "" }, { "docid": "ce7e7309e81f16e3996e8b270f0c3b72", "score": "0.70527774", "text": "public void cleanup() {\n r.this.cio.remove(this.id);\n this.cix.release();\n }", "title": "" }, { "docid": "ab27f7aad59505e5cf1bc7a818c5f6dc", "score": "0.70391494", "text": "public void disposeResources() {\n add((GL3 gl) -> {\n resourceManager.disposeAll(this);\n return false;\n });\n }", "title": "" }, { "docid": "25febd3eae4bcb11cc52183a8011aab5", "score": "0.70379966", "text": "@PreDestroy\n void freeResources() {\n\n LOG.info(\"Starting unprovision raspberry GPIO pins...\");\n GpioController gpioController = gpioControllerFactory.getInstance();\n for (Pin pin : provisionedPins.keySet()) {\n LOG.info(\"Unprovisioning GPIO pin {}\", pin);\n gpioController.unprovisionPin(provisionedPins.get(pin));\n LOG.info(\"GPIO pin {} unprovisioned\", pin);\n }\n LOG.info(\"Shutting down controller...\");\n gpioController.shutdown();\n LOG.info(\"GPIO Controller is down, fee resources completed successfully.\");\n }", "title": "" }, { "docid": "c094caee262a6deeec19823161edc3b4", "score": "0.7036952", "text": "public final void cleanUp() {\n\t\t\n\t\theap.finalize();\n\t\theap = null;\n\t\tSystem.gc();\n\t}", "title": "" }, { "docid": "448211c1bbffa1b7f1b863d55a7b5af8", "score": "0.7035382", "text": "public void freeMemory() {\n\t\tgetInputPorts().freeMemory();\n\t\tgetOutputPorts().freeMemory();\n\t}", "title": "" }, { "docid": "e5f5ddb8caa5064505a7d6e63fdd91fc", "score": "0.7023898", "text": "private static void destroy() {\n try {\n if (counter != null) {\n counter.clear();\n counter = null;\n }\n if (gauge != null) {\n gauge.clear();\n gauge = null;\n }\n if (registry != null) {\n registry.clear();\n }\n } catch (Exception e) {\n LOGGER.error(\"Error occurred while destroying the data \", e);\n }\n }", "title": "" }, { "docid": "40ee76fcec680306d76d9a60dd89757c", "score": "0.7023606", "text": "private void cleanup() {\n\t\tTextureManager.deleteAllTextures();\n\t\tDisplay.destroy();\n\t\tSystem.gc();\n\t\ttry {\n\t\t\tThread.sleep(100);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.exit(0);\n\t}", "title": "" }, { "docid": "e47c52e725dfb724c515f9857392eaef", "score": "0.7021558", "text": "@Override\r\n\tpublic void Free() {\n\t\tsuper.Free();\r\n\t\tmParticles.clear();\r\n\t\tmSystem.Free();\r\n\t}", "title": "" }, { "docid": "24cb244b736de5a0a6c018114f7c858a", "score": "0.7012083", "text": "public void free()\n\n\t{\n\n\twidth = 0;\n\n\theight = 0;\n\n\t_awtImage.flush();\n\n\t}", "title": "" }, { "docid": "f78408137e7bc8d25d4bbdbd0ba73a85", "score": "0.7011008", "text": "public static void dispose() {\n\t\ttexture.dispose();\n\t\tdead.dispose();\n\t\tflap.dispose();\n\t\tfont.dispose();\n\t\tshadow.dispose();\n\t\tcoin.dispose();\n\t}", "title": "" }, { "docid": "78fd7c138fa13082643f9939bf6ec810", "score": "0.69964826", "text": "public void cleanup() {\n \n }", "title": "" }, { "docid": "a7a61bf5ceb3b6e7d45ed9a644f7d0a4", "score": "0.6943713", "text": "public void free() {\n model.free();\n }", "title": "" }, { "docid": "82e4200d22878c66e3280e503b322ef3", "score": "0.69226825", "text": "public void free() {\n\t}", "title": "" }, { "docid": "0c0281b9ae9f3cc19df2e5e0e1dea27b", "score": "0.69219947", "text": "public final void cleanUpIfEnd() {\n sm = null;\n soundPool.release();\n soundPool = null;\n }", "title": "" }, { "docid": "bcf6dc2c4bbc7331848e6f392e99e2e8", "score": "0.6911876", "text": "public void cleanup() {\n mLegacyAdvertisers.clear();\n mCallbackWrappers.clear();\n mAdvertisingSets.clear();\n }", "title": "" }, { "docid": "be6e4cb91ef89d89c6f53ed2452e01fa", "score": "0.6909518", "text": "public static void dispose() {\n\t\twallBounce.dispose();\n\t\tpaddleBounce.dispose();\n\t\tscorePoint.dispose();\n\t}", "title": "" }, { "docid": "3e8ded84809017dbe535b093f05ab8c0", "score": "0.69021225", "text": "public void dispose() {\n tileTur.dispose();\n\n for (int i = 0;i < basicTiles.size;i++) {\n basicTiles.get(i).dispose();\n }\n\n for (int i = 0;i < trapTiles.size;i++) {\n trapTiles.get(i).dispose();\n }\n\n if (pickUpDolls.size > 0) {\n pickUpDolls.get(0).dispose();\n }\n\n disposeThemes();\n }", "title": "" }, { "docid": "5db637b9c888f4c63b7e20b015d0a598", "score": "0.6885489", "text": "public void cleanUp() {\n mEarthImage.cleanup();\n mMoonImage.cleanup();\n mStarsImage.cleanup();\n\n mDirectionButton.cleanup();\n mPlayButton.cleanup();\n mSpeedButton.cleanup();\n\n mGLText.cleanUp();\n }", "title": "" }, { "docid": "e60ce066f70c1b9232fff75d0f4f2643", "score": "0.6878861", "text": "@Override\n public void destroy() {\n input.dispose();\n\n // Check if we've set up rendering - if so, clean that up.\n if (chains != null) {\n // Destroy our set of huge buffer images.\n for (long chain : chains) {\n ovr_DestroyTextureSwapChain(session, chain);\n }\n\n // Free up the layer\n layer0.free();\n\n // The layers array apparently takes care of itself (and crashes if we try to free it)\n }\n\n for (OVREyeRenderDesc eye : eyeRenderDesc) {\n eye.free();\n }\n for (OVRMatrix4f projection : projections) {\n projection.free();\n }\n\n hmdDesc.free();\n trackingState.free();\n sessionStatus.free();\n\n // Wrap everything up\n ovr_Destroy(session);\n ovr_Shutdown();\n }", "title": "" }, { "docid": "7774fd4afc4a1c676f4ad1daeaa0f8a6", "score": "0.68309116", "text": "public void dispose() {\n mapRenderer.dispose();\n pet.dispose();\n petBase.dispose();\n font.dispose();\n map.dispose();\n batch.dispose();\n controls.dispose();\n }", "title": "" }, { "docid": "65326fc7b32691c64523fc685370bc06", "score": "0.6830263", "text": "public void free()\n {\n }", "title": "" }, { "docid": "21985d0414e9daa39370733205606da9", "score": "0.68159145", "text": "public void cleanUp() {\r\n\t\tGL30.glDeleteFramebuffers(frameBuffer);\r\n\t\tGL11.glDeleteTextures(colourTexture);\r\n\t\tGL11.glDeleteTextures(depthTexture);\r\n\t\tGL30.glDeleteRenderbuffers(depthBuffer);\r\n\t\tGL30.glDeleteRenderbuffers(colourBuffer);\r\n\t}", "title": "" }, { "docid": "b3496a36e90758e30c0391a39983e235", "score": "0.6813572", "text": "public void finalize() {\r\n delete();\r\n }", "title": "" }, { "docid": "1c2f5c22ade024230cb9aa4e4b69fe05", "score": "0.6813203", "text": "public void unloadResources() {\n\t\tmTexture = null;\n\t}", "title": "" }, { "docid": "8c927a1e822869b0deade0ece9ce217b", "score": "0.68127334", "text": "@Override\r\n\tpublic void cleanup() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a9e39e4dd6b140ece461ca3f8c84f8fb", "score": "0.68108875", "text": "public void free() {\n\n }", "title": "" }, { "docid": "f7f2373715041b9388be9884ea10aa65", "score": "0.6808243", "text": "@Override\n\tpublic void clean()\n\t{\n\t\ttextures.clean() ;\n\t\tfontManager.clean() ;\n\t}", "title": "" }, { "docid": "da9d3f5badd6660ac44938a9087eeb10", "score": "0.6803289", "text": "public void dispose() {\r\n m_aiColorMap = null;\r\n m_afLutIn = null;\r\n m_afLutOut = null;\r\n m_afLutSlope = null;\r\n }", "title": "" }, { "docid": "29357ce5fd532c8d04bfa3883d8b2aca", "score": "0.6769019", "text": "private void cleanUp() throws SQLException {\n if (rawDbStmt != null) rawDbStmt.close();\n if (bboxStmt != null) bboxStmt.close();\n DbConnector.closeConnection(ssv.getDb());\n DbConnector.closeConnection(Config.databaseName);\n\n // release memory\n rtree0 = null;\n rtree1 = null;\n rawRows = null;\n ssv = null;\n }", "title": "" }, { "docid": "ee5fa37dcc0c8580712bc885d84779a4", "score": "0.6760356", "text": "@Override\n\tpublic void dispose() {\n\t\tthis.projectileTexture.dispose();\n\t\tthis.firestation.dispose();\n\t\tfor (Firetruck firetruck : this.firetrucks) {\n\t\t\tfiretruck.dispose();\n\t\t}\n\t\tfor (ETFortress ETFortress : this.ETFortresses) {\n\t\t\tETFortress.dispose();\n\t\t}\n\t}", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.6758727", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.6758727", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.6758727", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.6758727", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "ee81afa3f594ebe797f1f39ef284b7e8", "score": "0.6758727", "text": "public void finalize() {\n delete();\n }", "title": "" }, { "docid": "0dcae2437d37ffc00d2a58085a52d98c", "score": "0.6745713", "text": "public void release() {\n this.host = null;\n this.flutterEngine = null;\n this.flutterView = null;\n this.platformPlugin = null;\n }", "title": "" }, { "docid": "8718ff97d1d1103fb005b91fa84aee74", "score": "0.6740683", "text": "public final void cleanup() {\n AppMethodBeat.i(113881);\n super.cleanup();\n this.ciA.release();\n AppMethodBeat.o(113881);\n }", "title": "" }, { "docid": "17d8df3d104d443f8a082085af62244b", "score": "0.6736377", "text": "public static void cleanUp() {\r\n\t\tfor (ModelTexture m : textures.values()) {\r\n\t\t\tGL11.glDeleteTextures(m.getID());\r\n\t\t}\r\n\t\tfor (Integer i : cubeMaps.values()) {\r\n\t\t\tGL11.glDeleteTextures(i);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6b775a6c0f6e1b165c62615ec50951f9", "score": "0.67229795", "text": "public void release() {\n introEffortProof = null;\n pollAckEffortProof = null;\n receiptEffortProof = null;\n remainingEffortProof = null;\n receiptEffortProof = null;\n \n hashAlgorithm = null;\n messageDir = null;\n nominees = null;\n voteBlocks = null;\n symmetricVoteBlocks = null;\n\n psmInterp = null;\n psmState = null;\n\n voteCounts.release();\n }", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.6719745", "text": "void cleanup();", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.6719745", "text": "void cleanup();", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.6719745", "text": "void cleanup();", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.6719745", "text": "void cleanup();", "title": "" }, { "docid": "3723dd1576b827ed0b5351b45ca8f301", "score": "0.67129904", "text": "public void dispose()\n {\n super.dispose();\n\n data = null;\n user = null;\n issue = null;\n attribute = null;\n }", "title": "" }, { "docid": "7e913a4bb7782d1cdf3bebf60194d919", "score": "0.6711555", "text": "public void clean()\n\t{\n\t\tfor (ArrayList<LttlFont> list : fontMap.values())\n\t\t{\n\t\t\tfor (Iterator<LttlFont> it = list.iterator(); it.hasNext();)\n\t\t\t{\n\t\t\t\tLttlFont font = it.next();\n\t\t\t\tif (font.getObjectUsingCount() == 0)\n\t\t\t\t{\n\t\t\t\t\t// prevents memory leak\n\t\t\t\t\tfont.getBitmapFont().dispose();\n\t\t\t\t\tit.remove();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "668a388abf8508066280dbf26c76d56e", "score": "0.67014456", "text": "@Override\n public void close() {\n try {\n // release current stripe data\n if (currentStream != null) {\n currentStream.close();\n currentStripe.close();\n currentStream = null;\n currentStripe = null;\n }\n info = null;\n stripes = null;\n // release raw stream\n if (in != null) {\n in.close();\n }\n // release codec resources\n if (codec != null) {\n codec.close();\n }\n } catch (IOException ioe) {\n LOG.warn(\"Exception occuried during release of resources: {}\", ioe.getMessage());\n } finally {\n in = null;\n }\n }", "title": "" }, { "docid": "b50c8304b802de52fb60a30b74c7883b", "score": "0.66976064", "text": "private void releaseResources() {\n LOG.debug(\n \"Release task {} network resources (state: {}).\",\n taskNameWithSubtask,\n getExecutionState());\n\n for (ResultPartitionWriter partitionWriter : partitionWriters) {\n taskEventDispatcher.unregisterPartition(partitionWriter.getPartitionId());\n }\n\n // close network resources\n if (isCanceledOrFailed()) {\n failAllResultPartitions();\n }\n closeAllResultPartitions();\n closeAllInputGates();\n\n try {\n taskStateManager.close();\n } catch (Exception e) {\n LOG.error(\"Failed to close task state manager for task {}.\", taskNameWithSubtask, e);\n }\n }", "title": "" }, { "docid": "9385dff3317aad86aead4fcb2e370ec4", "score": "0.66971916", "text": "public synchronized void release() {\r\n\t\tjava.util.Enumeration allConnections = freeConnections.elements();\r\n\t\twhile (allConnections.hasMoreElements()) {\r\n\t\t\tjava.sql.Connection con = (java.sql.Connection) allConnections\r\n\t\t\t\t\t.nextElement();\r\n\t\t\ttry {\r\n\t\t\t\tcon.close();\r\n\t\t\t\tString txt = \"close the connection\" + name + \" \";\r\n\t\t\t} catch (java.sql.SQLException e) {\r\n\t\t\t\tlogger.error(\"can not close the connection\" + name + \" \", e\r\n\t\t\t\t\t\t.fillInStackTrace());\r\n\t\t\t}\r\n\t\t}\r\n\t\tfreeConnections.removeAllElements();\r\n\t}", "title": "" }, { "docid": "5240d6074fcd950d0a594377bd2726f7", "score": "0.66924715", "text": "public void free() {\r\n EventListener[] listeners = this.getListeners(Action.class);\r\n for (int i = 0; i < listeners.length; i++) {\r\n this.removeActionListener((ActionListener) listeners[i]);\r\n }\r\n MenuElement[] children = this.getSubElements();\r\n // All children are freed\r\n for (int i = 0; i < children.length; i++) {\r\n if (children[i] instanceof Freeable) {\r\n try {\r\n ((Freeable) children[i]).free();\r\n } catch (Exception e) {\r\n if (ApplicationManager.DEBUG) {\r\n MenuItem.logger.debug(\"Exception in free() method \" + children[i].getClass().toString(), e);\r\n } else {\r\n MenuItem.logger.trace(\"Exception in free() method \" + children[i].getClass().toString(), e);\r\n }\r\n }\r\n }\r\n }\r\n // Removes the children\r\n this.removeAll();\r\n if (ApplicationManager.DEBUG) {\r\n MenuItem.logger.debug(this.getClass().toString() + \" Free\");\r\n }\r\n\r\n }", "title": "" }, { "docid": "eec8cf6b2da2288aa6ffca6baeac2e09", "score": "0.6682623", "text": "public abstract void free();", "title": "" }, { "docid": "1f42f031fcd65620df52c73856562213", "score": "0.6679808", "text": "@Override\n public void dispose() {\n this.pdfDoc = null;\n this.fontInfo = null;\n this.currentStream = null;\n this.currentFontName = null;\n }", "title": "" }, { "docid": "4aa3a70e6f71a2acd5871b49d5ba6a09", "score": "0.6673496", "text": "public void destroy()\n\t{\n\t\tm_assignmentStorage.close();\n\t\tm_assignmentStorage = null;\n\t\tm_contentStorage.close();\n\t\tm_contentStorage = null;\n\t\tm_submissionStorage.close();\n\t\tm_submissionStorage = null;\n\n\t\tM_log.info(this + \" destroy()\");\n\t}", "title": "" }, { "docid": "8f64856ba9e452d360980f41d6a1487d", "score": "0.6664495", "text": "public void dispose() {\r\n\t\tif (resourceItemProvider != null) resourceItemProvider.dispose();\r\n\t\tif (storageResourceItemProvider != null) storageResourceItemProvider.dispose();\r\n\t\tif (communicationEndPointItemProvider != null) communicationEndPointItemProvider.dispose();\r\n\t\tif (synchronizationResourceItemProvider != null) synchronizationResourceItemProvider.dispose();\r\n\t\tif (concurrencyResourceItemProvider != null) concurrencyResourceItemProvider.dispose();\r\n\t\tif (schedulerItemProvider != null) schedulerItemProvider.dispose();\r\n\t\tif (processingResourceItemProvider != null) processingResourceItemProvider.dispose();\r\n\t\tif (computingResourceItemProvider != null) computingResourceItemProvider.dispose();\r\n\t\tif (mutualExclusionResourceItemProvider != null) mutualExclusionResourceItemProvider.dispose();\r\n\t\tif (schedulableResourceItemProvider != null) schedulableResourceItemProvider.dispose();\r\n\t\tif (secondarySchedulerItemProvider != null) secondarySchedulerItemProvider.dispose();\r\n\t\tif (communicationMediaItemProvider != null) communicationMediaItemProvider.dispose();\r\n\t\tif (deviceResourceItemProvider != null) deviceResourceItemProvider.dispose();\r\n\t\tif (timingResourceItemProvider != null) timingResourceItemProvider.dispose();\r\n\t\tif (clockResourceItemProvider != null) clockResourceItemProvider.dispose();\r\n\t\tif (timerResourceItemProvider != null) timerResourceItemProvider.dispose();\r\n\t\tif (grServiceItemProvider != null) grServiceItemProvider.dispose();\r\n\t\tif (releaseItemProvider != null) releaseItemProvider.dispose();\r\n\t\tif (acquireItemProvider != null) acquireItemProvider.dispose();\r\n\t\tif (resourceUsageItemProvider != null) resourceUsageItemProvider.dispose();\r\n\t}", "title": "" }, { "docid": "cf41420b037cf85c3305d42b31a55223", "score": "0.66620594", "text": "@Override\n\tpublic void finalize() {\n\t\tdb.close();\n\t\tc.close();\n\t\tr = null;\n\t\tmCurrentFaculty = null;\n\t\tmCurrentFaculties = null;\n\t\tmCurrentCareer = null;\n\t\tmCurrentCareers = null;\n\t\tmCurrentYear = null;\n\t\tmCurrentYears = null;\n\t\tmCurrentSubject = null;\n\t\tmCurrentSubjects = null;\n\t\tmCurrentSubjectCorrelatives = null;\n\t\tmCurrentDescription = null;\n\t\ttry {\n\t\t\tsuper.finalize();\n\t\t} catch (Throwable e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/** acelero la liberacion de memoria **/\n\t\tjava.lang.System.gc();\n\t}", "title": "" }, { "docid": "6203ec79ce2b69a6244c209e8e057885", "score": "0.66572374", "text": "public static void dispose() {\n\t\tBUTTON_DOWN.getTexture().dispose();\n\t\tBUTTON_UP.getTexture().dispose();\n\n\t\tEMERALD.getTexture().dispose();\n\t\tRUBY.getTexture().dispose();\n\t\tSHAPPIRE.getTexture().dispose();\n\t\tDIAMOND.getTexture().dispose();\n\n\t\tROCK_1.getTexture().dispose();\n\t\tROCK_2.getTexture().dispose();\n\t\tROCK_3.getTexture().dispose();\n\t\tROCK_4.getTexture().dispose();\n\t\tROCK_5.getTexture().dispose();\n\n\t\tFIRST_AID_KIT.getTexture().dispose();\n\t\tMEDI_KIT.getTexture().dispose();\n\n\t\tINDICATOR_FONT.dispose();\n\n\t\tCLICK.dispose();\n\t\tHURT1.dispose();\n\t\tHURT2.dispose();\n\t\tPICKUP.dispose();\n\t\tROCK_PASS.dispose();\n\t\t\n//\t\tTHEME.dispose();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "28913daa8341e0419a7355f1aed83054", "score": "0.6649495", "text": "public void release() {\r\n super.release();\r\n href = null;\r\n postfieldContent = null;\r\n requestModel = null;\r\n cmd = null;\r\n results = null;\r\n text = null;\r\n }", "title": "" }, { "docid": "1ebcacf2103436ea682c9915c709e26d", "score": "0.6649027", "text": "public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n super.finalize();\r\n }", "title": "" }, { "docid": "1ebcacf2103436ea682c9915c709e26d", "score": "0.6649027", "text": "public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n super.finalize();\r\n }", "title": "" }, { "docid": "1ff077e102b349fd5aae68298b0e9e1e", "score": "0.66423583", "text": "protected void finalize()\n {\n try\n {\n closeAll();\n }\n catch(IOException e) {}\n }", "title": "" }, { "docid": "68242783cbc9485733ef187d49800443", "score": "0.663153", "text": "public void dispose() {\n urlLocation = null;\n url = null;\n errorMessage = null;\n closeConnection();\n }", "title": "" }, { "docid": "ef440fb12a38269c42a806f0002619b3", "score": "0.6628707", "text": "@Override\n\tpublic void freeReferences() {\n\t\t\n\t}", "title": "" }, { "docid": "7c6a45f89d0a6305d28ce5b80316001a", "score": "0.66286904", "text": "public void dispose() {\n\t\tif (hardwareResourceItemProvider != null) hardwareResourceItemProvider.dispose();\n\t\tif (taskItemProvider != null) taskItemProvider.dispose();\n\t\tif (moduleItemProvider != null) moduleItemProvider.dispose();\n\t\tif (partitionItemProvider != null) partitionItemProvider.dispose();\n\t\tif (intervalItemProvider != null) intervalItemProvider.dispose();\n\t\tif (networkItemProvider != null) networkItemProvider.dispose();\n\t\tif (systemItemProvider != null) systemItemProvider.dispose();\n\t\tif (softwareResourceItemProvider != null) softwareResourceItemProvider.dispose();\n\t\tif (processorItemProvider != null) processorItemProvider.dispose();\n\t\tif (switchItemProvider != null) switchItemProvider.dispose();\n\t\tif (virtualLinkItemProvider != null) virtualLinkItemProvider.dispose();\n\t\tif (connectionItemProvider != null) connectionItemProvider.dispose();\n\t\tif (routeItemProvider != null) routeItemProvider.dispose();\n\t\tif (switchPortItemProvider != null) switchPortItemProvider.dispose();\n\t\tif (endSystemPortItemProvider != null) endSystemPortItemProvider.dispose();\n\t}", "title": "" }, { "docid": "3f9c9498eb2ddb4ca19ee4aaa45c4576", "score": "0.6626147", "text": "@Override\r\n\tpublic void cleanup() {\n\r\n\t}", "title": "" }, { "docid": "4b09032a91a0cb5507921eca461dee5a", "score": "0.66171825", "text": "@Override\n\tpublic void cleanup() {\n\n\t}", "title": "" }, { "docid": "4b09032a91a0cb5507921eca461dee5a", "score": "0.66171825", "text": "@Override\n\tpublic void cleanup() {\n\n\t}", "title": "" }, { "docid": "4b09032a91a0cb5507921eca461dee5a", "score": "0.66171825", "text": "@Override\n\tpublic void cleanup() {\n\n\t}", "title": "" }, { "docid": "7794f6661b56a8a6e982db41a6b5300d", "score": "0.6595141", "text": "public void release() {\n\t\tthis.roleId = 0L;\r\n\r\n\t\tthis.tollgateId = 0;\r\n\r\n\t\tthis.isOpen = 0;\r\n\t\tthis.otherInfo = null;\r\n\t\tif (this.array != null) {\r\n\t\t\tthis.array.clear();\r\n\t\t\tthis.array = null;\r\n\t\t}\r\n\t}", "title": "" } ]
ec4c1e6338d3348355e08db78638e221
ASSIGNMENT: Fix the code found below this block
[ { "docid": "7314638d71d8a3b66e6001717d750713", "score": "0.0", "text": "public static void main(String [] args) {\n\t\tif (true) {\n\t\t\tint x = 5;\n\t\t}\n\t\tint syntaxIsFun = 5;\n\t\t// The following line prints stuff out, I promise\n\t\tSystem.out.println(\"If you can see this message, you've won!\");\n\t\t}", "title": "" } ]
[ { "docid": "2f8bc325cbd58e19eae4acec86ffe12c", "score": "0.6897177", "text": "public final void mo51373a() {\n }", "title": "" }, { "docid": "680ac9d1bc1773741a758290a71e990c", "score": "0.6639732", "text": "@Override\n public void func_104112_b() {\n \n }", "title": "" }, { "docid": "02d95f56730f67e72ffd96bed5ecd97c", "score": "0.6375884", "text": "public final void mo91715d() {\n }", "title": "" }, { "docid": "8c4be9114abb8cb7b57dc3c5d34882a8", "score": "0.63747215", "text": "public void mo38117a() {\n }", "title": "" }, { "docid": "b431e27fdd59dd124c721c35f0c1b3d7", "score": "0.63677824", "text": "private void level7() {\n }", "title": "" }, { "docid": "78f900d7088ff06de4595889e75ca646", "score": "0.63303363", "text": "public void method_4270() {}", "title": "" }, { "docid": "03e5485d223a8d7b1d76f7ad1e6992d8", "score": "0.630614", "text": "public void smell() {\n\t\t\n\t}", "title": "" }, { "docid": "02a88abb18d1012583ded4c0528d64f1", "score": "0.6268267", "text": "private void m50366E() {\n }", "title": "" }, { "docid": "188d6377aa200bdf28a0b41fdf4297f2", "score": "0.62394196", "text": "private void kk12() {\n\n\t}", "title": "" }, { "docid": "3ab3f0e5f017903eb515ffe6fdc54a29", "score": "0.62328136", "text": "public void m9741j() throws cf {\r\n }", "title": "" }, { "docid": "a3def2258601d63c48bf6eff66c59697", "score": "0.6199496", "text": "public void mo12628c() {\n }", "title": "" }, { "docid": "ea8460c7314de45803a19bf7c984d4bf", "score": "0.6153239", "text": "@Override\n public void perish() {\n \n }", "title": "" }, { "docid": "e4c2e1b534b0e070361d7f80a2e241ee", "score": "0.61515266", "text": "public void mo21792Q() {\n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.61360806", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "3b4a1b8680f2061e6403550e9be09158", "score": "0.6102364", "text": "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "title": "" }, { "docid": "20988e5d1f7636803e6b5e971d7acc4e", "score": "0.60911125", "text": "public final void mo11687c() {\n }", "title": "" }, { "docid": "4c3b3d975dd112cd0977aeae3ca50081", "score": "0.60805523", "text": "public void mo12930a() {\n }", "title": "" }, { "docid": "9850c0c0f147a886f74cb9f6ebd2f04e", "score": "0.6041424", "text": "protected boolean func_70041_e_() { return false; }", "title": "" }, { "docid": "451ec5fdb7d329f75101599901702d69", "score": "0.6030135", "text": "private void level6() {\n }", "title": "" }, { "docid": "958753bd00645c7fa258e87d947df847", "score": "0.6016641", "text": "public void mo23813b() {\n }", "title": "" }, { "docid": "21c51e69de57eabe6e7a3d6f2831126f", "score": "0.6009151", "text": "private void assignment() {\n\n\t\t\t}", "title": "" }, { "docid": "16fb14018235831b3ed8005672b00259", "score": "0.60059", "text": "public final void mo8775b() {\n }", "title": "" }, { "docid": "e658aceeca4406d78dfc51e27e065067", "score": "0.6004249", "text": "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d093dbc3916029e26f4af8af36b8b244", "score": "0.5999132", "text": "public void m23075a() {\n }", "title": "" }, { "docid": "556befd345cb7860c72f7ee67c536e00", "score": "0.59868515", "text": "public void mo21785J() {\n }", "title": "" }, { "docid": "fb9a873c01eb354c85aac7a220fbaac2", "score": "0.59730554", "text": "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "title": "" }, { "docid": "86232e6a9aaa22e4403270ce10de01d3", "score": "0.59592074", "text": "public void mo4359a() {\n }", "title": "" }, { "docid": "712a71c17db1c756dc28432e0a149340", "score": "0.5956978", "text": "protected void mo6255a() {\n }", "title": "" }, { "docid": "8e9347a77be4d83f1f380bc5ca012521", "score": "0.5956823", "text": "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f9ddc5bbc47862dd11e7e586bdbc2fcd", "score": "0.5916598", "text": "protected void\ttryToFix() { Command.insertList(crAndBrace); }", "title": "" }, { "docid": "3d5b4ffe8cb5191899860b75fc508d58", "score": "0.5903287", "text": "public final void mo1285b() {\n }", "title": "" }, { "docid": "de9d820aa7022de3f155611decfc4bef", "score": "0.5901407", "text": "public void mo9848a() {\n }", "title": "" }, { "docid": "e65dfe0b1e8a38a44f5aa0c87de9b246", "score": "0.58817524", "text": "public static void listing5_14() {\n }", "title": "" }, { "docid": "f4e635999447d79a222a376e0b67425e", "score": "0.5865728", "text": "public void mo21787L() {\n }", "title": "" }, { "docid": "ba4c78e625543cf957f0509ce0b4439d", "score": "0.5864085", "text": "public void mo1531a() {\n }", "title": "" }, { "docid": "c5be183f53afdd269d7f25c1b33e0512", "score": "0.5857142", "text": "public void mo21779D() {\n }", "title": "" }, { "docid": "23f621b3bac97e711466f58e1fc23eab", "score": "0.5843175", "text": "public void mo1976s() throws cf {\r\n }", "title": "" }, { "docid": "d3e5d74662d3a2ffc3bc8f27853e5ab8", "score": "0.58331114", "text": "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2294d0f36ffa5b7272e706b4b7564db", "score": "0.5818396", "text": "private void poetries() {\n\n\t}", "title": "" }, { "docid": "c7ddbd1275ec5af53cb732f8fa5f345a", "score": "0.58176607", "text": "private void level4() {\n }", "title": "" }, { "docid": "b887c21ef6090cf6876d353fbd710752", "score": "0.5814114", "text": "public boolean method_210() {\r\n return false;\r\n }", "title": "" }, { "docid": "34f3e113f0bf6518b88ac4f346b2dadd", "score": "0.580517", "text": "public boolean method_216() {\r\n return false;\r\n }", "title": "" }, { "docid": "68abbc4a91a826dbc68f986dc9168393", "score": "0.5791253", "text": "private static void cajas() {\n\t\t\n\t}", "title": "" }, { "docid": "382de0d408d24998ae1db14690b2e5dd", "score": "0.5788781", "text": "public void mo115190b() {\n }", "title": "" }, { "docid": "29251cbd61f58d1440af2e558c6a19bc", "score": "0.5781019", "text": "@Override\n\tprotected void logic() {\n\n\t}", "title": "" }, { "docid": "ac82b0e7773b86524193ebb0ec5d6df7", "score": "0.57689786", "text": "public void mo21794S() {\n }", "title": "" }, { "docid": "0da81e690311e218640442311e0d1a32", "score": "0.5766554", "text": "public void skystonePos6() {\n }", "title": "" }, { "docid": "43d3c27b17642646e5b252a16a00c4f8", "score": "0.5763975", "text": "public void mo21793R() {\n }", "title": "" }, { "docid": "86ed6713ba8e5a54203c31fb8f461898", "score": "0.575987", "text": "protected boolean func_70814_o() { return true; }", "title": "" }, { "docid": "c51600ca3cd89fbf02423ce56f27911d", "score": "0.5741059", "text": "public boolean method_194() {\r\n return false;\r\n }", "title": "" }, { "docid": "d82d29885933bbbd8b3b864c2ccb2fb0", "score": "0.57364136", "text": "public boolean method_108() {\r\n return false;\r\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5732283", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5732283", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5732283", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5732283", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5732283", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5732283", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5732283", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "82b2329ba94e70008d237cba257ebaeb", "score": "0.5731024", "text": "private void m50367F() {\n }", "title": "" }, { "docid": "6c2ed8de59c0a2542c23cef3e54e63f9", "score": "0.5727304", "text": "public void mo21795T() {\n }", "title": "" }, { "docid": "bcf3f15fa353c6e95244664c48e9986d", "score": "0.5726715", "text": "public void mo21782G() {\n }", "title": "" }, { "docid": "bcff88ad4e7099ba4d0f8400b82aa2be", "score": "0.57238305", "text": "protected void extraExplosions_EM() {\n }", "title": "" }, { "docid": "186f854ce6cae0f7a3d0e3923628409f", "score": "0.5723113", "text": "public void mo1964g() throws cf {\r\n }", "title": "" }, { "docid": "1f8131dff52e6ad6bdd37db59268124a", "score": "0.5721203", "text": "void m1864a() {\r\n }", "title": "" }, { "docid": "815715911b5aecd12073b9b8096c75eb", "score": "0.5713888", "text": "public void mo56167c() {\n }", "title": "" }, { "docid": "2d9ef51adae1b85a2d5c80c839eb8305", "score": "0.57108283", "text": "public void mo21791P() {\n }", "title": "" }, { "docid": "f8ad94b8f8433a0cd9abae6e753b77a9", "score": "0.570752", "text": "public boolean method_208() {\r\n return false;\r\n }", "title": "" }, { "docid": "e94e17d241dd0b449c3024b01f4f9bda", "score": "0.5704315", "text": "public boolean method_218() {\r\n return false;\r\n }", "title": "" }, { "docid": "0d81c067c8001661f6cbaddca50d165a", "score": "0.56951934", "text": "public void mo6081a() {\n }", "title": "" }, { "docid": "17b9efec7afa2251da59465ac63bbb36", "score": "0.5691002", "text": "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "title": "" }, { "docid": "0c1da414aaa3e9244cb86e56762fd382", "score": "0.567963", "text": "public void mo3749d() {\n }", "title": "" }, { "docid": "ddf9158d46b42384c5f893a1ddc4ee30", "score": "0.56775755", "text": "public void mo44053a() {\n }", "title": "" }, { "docid": "4dcfc91546dd14ec93d60e01b1bad13c", "score": "0.5668105", "text": "public void mo1944a() throws cf {\r\n }", "title": "" }, { "docid": "058f985f73d15d7a99a6d902e0a68e62", "score": "0.56557107", "text": "public void mo21789N() {\n }", "title": "" }, { "docid": "94fc801f9508d427c43fcd17ff87bed8", "score": "0.5654199", "text": "public void mo97908d() {\n }", "title": "" }, { "docid": "62ffdc2d5a15f08a7c37429678120610", "score": "0.56470835", "text": "public void mo3376r() {\n }", "title": "" }, { "docid": "1263c5c8b2f1fd602fb2fc113446d0e5", "score": "0.5645855", "text": "static void feladat9() {\n\t}", "title": "" }, { "docid": "e2d342bbaeabeb80e6d9fc851b97cb80", "score": "0.56450444", "text": "public void skystonePos4() {\n }", "title": "" }, { "docid": "cb77700a914077609e7c2b2f11116582", "score": "0.56434596", "text": "public void method_6349() {\r\n super.method_6349();\r\n }", "title": "" }, { "docid": "4f41e9fcdce98d5b16554c05fa399754", "score": "0.5638527", "text": "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "b53eb9faba3749f40f362cd1ec80b22b", "score": "0.56335694", "text": "public void mo21825b() {\n }", "title": "" }, { "docid": "9552c4e688bb7b03ecfc3b38b8e463f7", "score": "0.5633164", "text": "@Override\n public void retrack() {\n }", "title": "" }, { "docid": "c8f242f0dbffd44f815da3de45bb0a48", "score": "0.5632614", "text": "protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }", "title": "" }, { "docid": "38a1151461a93d8bed996edebe711126", "score": "0.56309813", "text": "public boolean method_214() {\r\n return false;\r\n }", "title": "" }, { "docid": "1ddbcd583d65d5ce3d9d6869391f739b", "score": "0.5630415", "text": "protected void thoroughInspection() {}", "title": "" }, { "docid": "3176c2c87aeab799faa4697772764d92", "score": "0.56266093", "text": "@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}", "title": "" }, { "docid": "6da79bba81f2cdb1ef63849a5c88ab17", "score": "0.5626105", "text": "@Override\n\tpublic void challenge9() {\n\n\t}", "title": "" }, { "docid": "93b66a48039a96f9cc3a2e1834b30ba0", "score": "0.5621387", "text": "public void mo21781F() {\n }", "title": "" }, { "docid": "cceb242d0670eb1df248c7c9a40c066f", "score": "0.561411", "text": "public boolean method_2434() {\r\n return false;\r\n }", "title": "" }, { "docid": "087cad784edc1b4e8e86bc41536ca39a", "score": "0.561352", "text": "@Override\n\tpublic void challenge7() {\n\n\t}", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.5612372", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.5612372", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.5611815", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "3fb33cfd7b89a33077abe6e69ca4f0a8", "score": "0.56082493", "text": "static void feladat7() {\n\t}", "title": "" }, { "docid": "02bede01e16db644aa23873da84a9330", "score": "0.5597569", "text": "public void method_191() {}", "title": "" }, { "docid": "0edc205dd12d4da1fc0dc7f9b60bda11", "score": "0.5589897", "text": "public void mo33392b() {\n mo33395e();\n }", "title": "" }, { "docid": "1f6688078412adc5aafd8dc72b83216b", "score": "0.5584088", "text": "private void m205c() {\r\n if (this.f161b != null && this.f161b.m543a()) {\r\n this.f161b.m545c();\r\n }\r\n this.f161b = null;\r\n }", "title": "" }, { "docid": "c4292831cc63f0653cb7f9ddf9489da7", "score": "0.55831444", "text": "public void mo2740a() {\n }", "title": "" }, { "docid": "47bd1280cfd12828b6e3e724883aca7f", "score": "0.5577459", "text": "void m5770d() throws C0841b;", "title": "" }, { "docid": "2299b4a5dec5b83b5577bf7bf8ea414e", "score": "0.55730784", "text": "static void feladat6() {\n\t}", "title": "" }, { "docid": "25801e4066d4a377fbe126c693801da4", "score": "0.55728096", "text": "public void breaker() \r\n\t{\n\t\t\r\n\t}", "title": "" } ]
5eeb5c9c578398a9108882d75dbb2695
This method was generated by MyBatis Generator. This method corresponds to the database table activity_task
[ { "docid": "093a7fb011ffd9e3051d720118e537be", "score": "0.0", "text": "int deleteByExample(ActivityTaskExample example);", "title": "" } ]
[ { "docid": "d137c4ed5ee512b0ab0943323c3e8b38", "score": "0.6042991", "text": "public interface TaskMapper {\n\n @Select(\"SELECT * FROM task WHERE task_no=#{taskNo};\")\n Task getByTaskNo(@Param(\"taskNo\") String taskNo);\n\n @Select(\"SELECT * FROM task\")\n List<Task> getAllTasks();\n\n @Select(\"SELECT * FROM task WHERE car_no=#{carNo};\")\n List<Task> getByCarNo(@Param(\"carNo\") String carNo);\n\n @Select(\"SELECT * FROM task WHERE prisoner_name=#{prisonerName};\")\n Task getByPrisonerName(@Param(\"prisonerName\") String prisonerName);\n\n @Select(\"SELECT * FROM task WHERE user_name=#{userName};\")\n Task getByUserName(@Param(\"userName\") String userName);\n\n @Select(\"SELECT car_no FROM task WHERE prisoner_name=#{prisonerName};\")\n String getCarNoByPrisonerName(@Param(\"prisonerName\") String prisonerName);\n\n @Select(\"SELECT count(SCHEMA_NAME) as SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME=#{SCHEMA_NAME}\")\n Integer getSchemaStatus(@Param(\"SCHEMA_NAME\")String SCHEMA_NAME);\n\n @Select(\"select count(table_name) from information_schema.TABLES where TABLE_NAME = #{tableName} and TABLE_SCHEMA = #{SCHEMA_NAME}\")\n Integer getTableStatus(@Param(\"tableName\")String tableName,@Param(\"SCHEMA_NAME\")String SCHEMA_NAME);\n\n @Select(\"SELECT count(task_no) FROM task\")\n Integer getTaskNumber();\n}", "title": "" }, { "docid": "d9765bf721ddf5aeebd2f43e23992070", "score": "0.59654707", "text": "TbTaskEntity selectByPrimaryKey(String taskId);", "title": "" }, { "docid": "6a2ac46f9476063943f4b0f6e0e3a5ef", "score": "0.5952117", "text": "@Select(\"select id, TASK_ID as taskId, value from Result where task_id = #{taskId}\")\n Result getResultByTaskId(@Param(\"taskId\") long taskId);", "title": "" }, { "docid": "1da70fd3c56e8889ce68bfa2d703748b", "score": "0.57644075", "text": "private DataSet execute( TaskKey aTask ) {\n\n DataSetArgument lArgs = new DataSetArgument();\n lArgs.add( aTask, \"aSchedDbId\", \"aSchedId\" );\n\n return QueryExecutor.executeQuery( iDatabaseConnectionRule.getConnection(),\n QueryExecutor.getQueryName( getClass() ), lArgs );\n }", "title": "" }, { "docid": "93cbbe5c0c9d782f7887198a66f294d5", "score": "0.56237745", "text": "@Component\npublic interface MyTaskMapper {\n\n // Todo 待做任务 RECV_TASK_EXEC_FLAG=‘0’ ,RECV_TASK_PART_PKID=登陆者或者SEND_TASK_PART_PKID=登陆者,但是RECV_TASK_PART_PKID为空\n @Select(\" select \" +\n \" aa.pkid as workorderInfopkid, \" + //工单信息主键\n \" aa.id as workorderInfoid,\" +\n \" aa.name as workorderInfoname,\" +\n \" bb.created_time as createdTime,\" +\n \" bb.pkid as workorderAppointPkid \" + //流程控制表主键\n \" from workorder_info aa\" +\n \" INNER JOIN\" +\n \" WORKORDER_APPOINT bb\" +\n \" ON bb.info_pkid = aa.pkid\" +\n \" and\" +\n \" (bb.RECV_TASK_PART_PKID = #{strOperPkid} or (bb.SEND_TASK_PART_PKID = #{strOperPkid} and bb.RECV_TASK_PART_PKID =''))\" +\n \" and bb.RECV_TASK_EXEC_FLAG ='0 '\" + // 待执行\n \" group by aa.pkid,aa.id ,aa.name,bb.created_time,bb.pkid\" +\n \" order by workorderInfopkid \")\n List<TaskShow> getTodoTaskShowList(@Param(\"strOperPkid\") String strOperPkid);\n// DoneTask 已完成任务 RECV_TASK_EXEC_FLAG=‘1’ ,RECV_TASK_PART_PKID=登陆者\n @Select(\" select \" +\n \" aa.pkid as workorderInfopkid, \" +\n \" aa.id as workorderInfoid,\" +\n \" aa.name as workorderInfoname,\" +\n \" bb.created_time as createdTime,\" +\n \" bb.pkid as workorderAppointPkid \" +\n \" from workorder_info aa\" +\n \" INNER JOIN\" +\n \" WORKORDER_APPOINT bb\" +\n \" ON bb.info_pkid = aa.pkid\" +\n \" and\" +\n \" bb.RECV_TASK_PART_PKID = #{strOperPkid}\" +\n \" and bb.RECV_TASK_EXEC_FLAG ='2 '\" +// 已执行\n \" group by aa.pkid,aa.id ,aa.name,bb.created_time,bb.pkid\" +\n \" order by workorderInfopkid \")\n List<TaskShow> getDoneTaskShowList(@Param(\"strOperPkid\") String strOperPkid);\n // DoneTask 已完成任务 RECV_TASK_EXEC_FLAG=‘1’ ,RECV_TASK_PART_PKID=登陆者\n @Select(\" select \" +\n \" aa.pkid as workorderInfopkid, \" +\n \" aa.id as workorderInfoid,\" +\n \" aa.name as workorderInfoname,\" +\n \" bb.created_time as createdTime,\" +\n \" bb.pkid as workorderAppointPkid \" +\n \" from workorder_info aa\" +\n \" INNER JOIN\" +\n \" WORKORDER_APPOINT bb\" +\n \" ON bb.info_pkid = aa.pkid\" +\n \" and\" +\n \" bb.RECV_TASK_PART_PKID = #{strOperPkid}\" +\n \" and bb.RECV_TASK_EXEC_FLAG ='1 '\" +// 执行中\n \" group by aa.pkid,aa.id ,aa.name,bb.created_time,bb.pkid\" +\n \" order by workorderInfopkid \")\n List<TaskShow> getDoingTaskShowList(@Param(\"strOperPkid\") String strOperPkid);\n\n\n}", "title": "" }, { "docid": "56e8d908a38da33e8f34d622addd5631", "score": "0.555022", "text": "@Override\r\n\tpublic String getTaskDetailsByTaskId() {\n\t\treturn \"select * from task where tsk_id=?\";\r\n\t}", "title": "" }, { "docid": "a6781af63920e97f98306923ad1ae7a4", "score": "0.54683775", "text": "Task selectByPrimaryKey(Integer taskId);", "title": "" }, { "docid": "1f21aa374320730e6476f111a37e83cc", "score": "0.5419525", "text": "ActivityTask selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "741c204072e0756493abf2eea334774f", "score": "0.535793", "text": "public abstract TaskDao taskDao();", "title": "" }, { "docid": "741c204072e0756493abf2eea334774f", "score": "0.535793", "text": "public abstract TaskDao taskDao();", "title": "" }, { "docid": "d5b63f3ad89c5fb53d4720f7f88ec691", "score": "0.53412735", "text": "public interface TaskDao {\n\n\tpublic List<Map<String, Object>> getTaskInfo(int centerId, int isFinished);\n\t\n\tpublic List<Map<String, Object>> historyTaskByUser(int centerId, int isFinished, String username);\n}", "title": "" }, { "docid": "6723c51657f86211537b89f3a5d07f70", "score": "0.5334934", "text": "DtcCompletedTask selectByPrimaryKey(String taskId);", "title": "" }, { "docid": "316bed473fe2dd2f62771bcee46e5950", "score": "0.5283537", "text": "@Test\n public void task1() throws SQLException {\n Statement statement = connection.createStatement();\n ResultSet resultSet = statement.executeQuery(\"select task_id , title, priority from ts_tasks;\");\n while (resultSet.next()) {\n System.out.print(resultSet.getString(1)+\" , \");\n System.out.print(resultSet.getString(2)+\" , \");\n System.out.print(resultSet.getString(3)+\" , \");\n System.out.println();\n }\n }", "title": "" }, { "docid": "a90f5a9c9ec35e4bbd1105b62c0233dd", "score": "0.5267966", "text": "public ArrayList<Task> getTasks(){\n ArrayList<Task> tasks = new ArrayList<Task>();\n SQLiteDatabase db = getReadableDatabase();\n\n String sql = String.format(\"SELECT %s ,%s, %s FROM %s ORDER BY %s\",COLUMN_ID, COLUMN_TASK_NAME, COLUMN_STATUS, TABLE_NAME, COLUMN_ID);\n Cursor cursor = db.rawQuery(sql,null);\n\n while(cursor.moveToNext()){\n int id = cursor.getInt(0);\n String taskname = cursor.getString(1);\n String status = cursor.getString(2);\n\n tasks.add(new Task(taskname, status));\n }\n db.close();\n\n return tasks;\n }", "title": "" }, { "docid": "3de6f6ecfb96446c15a038482020b9b6", "score": "0.52640706", "text": "public GetTable(SetTable tableInfo) {\n this.activity = tableInfo;\n }", "title": "" }, { "docid": "b1d4c9950408bb09fb40a6a16f1b10a2", "score": "0.52463156", "text": "public interface ResultMapper {\n\n /**\n * Returns 'result' entity with specified 'taskId' field.\n * @param taskId id of the related task.\n * @return result of the task with specified id.\n */\n @Select(\"select id, TASK_ID as taskId, value from Result where task_id = #{taskId}\")\n Result getResultByTaskId(@Param(\"taskId\") long taskId);\n}", "title": "" }, { "docid": "b45077844bc2a48e19ee4503cc38708a", "score": "0.52288485", "text": "List<TbTaskEntity> selectByExample(TbTaskEntityExample example);", "title": "" }, { "docid": "b3d577472c2c62e54ea294171aa9c303", "score": "0.5198906", "text": "public void createTask(String taskName, String startDate, String endDate, int taskResponsible, int taskDurationInHours, int projectID) throws SQLException {\n PreparedStatement ps = connection.establishConnection().prepareStatement(\"INSERT INTO tasks (task_name,start_date,end_date,task_responsible, task_duration_in_hours, projectID) VALUES (?,?,?,?,?,?)\");\n ps.setString(1,taskName);\n ps.setString(2, startDate);\n ps.setString(3, endDate);\n ps.setInt(4,taskResponsible);\n ps.setInt(5,taskDurationInHours);\n ps.setInt(6, projectID);\n\n ps.executeUpdate();\n }", "title": "" }, { "docid": "4c4be4e0aebb3dcdcdc97740c44e1614", "score": "0.5184885", "text": "@MyBatisRepository\npublic interface ActivityTemplateServiceRelDao extends BaseDao<ActivityTemplateServiceRel> {\n\n /**\n * 活动模板Ids\n * @param actTplIds\n * @return\n */\n public List<ActivityTemplateServiceRel> selectByActTplIds(List<Long> actTplIds);\n}", "title": "" }, { "docid": "9db74ff923c1434afe4b26c562cbe3d4", "score": "0.5164325", "text": "@Test\n public void task3() throws SQLException {\n Statement statement = connection.createStatement();\n ResultSet resultSet = statement.executeQuery(\"select count(task_id) , status from ts_tasks group by status;\");\n System.out.println(\"Count of Task , Status\");\n while (resultSet.next()) {\n System.out.print(resultSet.getString(1)+\" , \");\n System.out.print(resultSet.getString(2));\n System.out.println();\n }\n }", "title": "" }, { "docid": "195d0b5b5f5a7192df0e030d682ad647", "score": "0.5158544", "text": "public interface ITaskAccess {\n\n /**\n * Inserts a new (no-id)\n * task into the database.\n * @param t the task to add.\n * @return the id automatically assigned to the object\n */\n @Insert\n long insertTask(Task t);\n\n /**\n * Gets a list of all tasks, sorted by priority\n * then date created\n * @return an {@link List} of all tasks\n */\n @Query(\"SELECT * FROM tasks ORDER BY priority, created DESC;\")\n List<Task> getAllTasks();\n\n /**\n * Gets a list of all complete/incomplete tasks,\n * sorted by priority then date created\n * @param complete indicates whether to look for in/complete tasks.\n * @return the list of tasks.\n */\n @Query(\"SELECT * FROM tasks WHERE \" +\n \"(:complete = 1 AND completedDay is not null) \" +\n \"OR (:complete = 0 AND completedDay is null) \" +\n \"ORDER BY priority, created DESC;\")\n List<Task> getAllTasks(boolean complete);\n\n /**\n * Updates the database information of a task\n * which has already been assigned an id\n * @param t the task to update\n */\n @Update\n void updateTask(Task t);\n}", "title": "" }, { "docid": "f33df13bf3fff3839217289d52bfae3e", "score": "0.5145638", "text": "GtCouponCardTask selectByPrimaryKey(Integer taskId);", "title": "" }, { "docid": "38f25d2a68bcf15800c72c2e50a85766", "score": "0.51341826", "text": "@ManyToOne\n\t@JoinColumn(name=\"TaskData_Attachments_Id\")\n\tpublic Task getTask() {\n\t\treturn this.task;\n\t}", "title": "" }, { "docid": "edd532d1b6336e96c66dcb5bd0eac2e9", "score": "0.51095885", "text": "public List<TaskDetailsEntity> getTask(int task_id) {\n setQuery(\"select b.id, a.id, proj_id, contact_id, title, startdate, enddate, completed, targetcount, currentcount, unit, a.resource_type, a.description as org_description, firstname, lastname, mi, organizationname, address, b.description as supply_description, ispublic, mobile, email, phone \\n\"\n + \" from \\n\"\n + \" \t(SELECT pt.id, proj_id, contact_id, title, startdate, enddate, completed, targetcount, currentcount, unit, pt.resource_type, description \\n\"\n + \" \tFROM project_tasks pt \\n\"\n + \" \tleft join contact_pledge cp on pt.id = cp.task_id \\n\"\n + \" \twhere pt.id = ? ) a \\n\"\n + \" right join resource_directory b \\n\"\n + \" on a.contact_id = b.id\\n\"\n + \"where a.id is not null\");\n\n KeyValuePair onePair;\n\n onePair = new KeyValuePair();\n onePair.setKey(KeyValuePair.INT);\n onePair.setValue(\"\" + task_id);\n getParameters().add(onePair);\n\n List<TaskDetailsEntity> results = executeQuery();\n\n if (results != null) {\n return results;\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "6758497bc23362851df9b5dc385f6508", "score": "0.5082026", "text": "List<ActivityTask> selectByExample(ActivityTaskExample example);", "title": "" }, { "docid": "560ac3a620c2358db536164d40a508d8", "score": "0.5080996", "text": "public TaskJDBC() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "a799e14df8e2359ae1593b193c642a8b", "score": "0.5075245", "text": "public static void CreateTIJInsertList(int JobID, int taskID, int accountNumber, String jobUrgency) throws SQLException {\n\n\t\t/*possible bug is the taskID not changing when the user switches in the dropdown menu.\n\t\t* solution will be to have each different dropdown call TaskDescription.setTaskID()\n\t\t* and change it to the updated\n\t\t*\n\t\t* Clicking on a task from the dropdown should create a TaskDescription object. This would avoid the bug.\n\t\t* */\n\n\n//\t\tString insert =\n//\t\t\"INSERT INTO TaskInAJob (JobID, TaskID, AccountNumber, JobUrgency, StartTimeMillis) VALUES (\"\n//\t\t+ Job.getJobID() + \", \" + TaskDescription.getTaskIDStatic() + \", \" + Job.getAccountNumber()\n//\t\t+ \", \\\"\" + Job.getUrgency() + \"\\\"\" + \", \\\"\" + Calendar.getInstance().getTimeInMillis() + \"\\\");\";\n\n\n\t\t// set start time millis later on, when startTask is pressed, not insert\n\t\tString insert =\n\t\t\"INSERT INTO TaskInAJob (JobID, TaskID, AccountNumber, JobUrgency) VALUES (\"\n\t\t+ Job.getJobID() + \", \" + taskID + \", \" + Job.getAccountNumber()\n\t\t+ \", \\\"\" + Job.getUrgency() + \"\\\"\" + \");\";\n\n\n\n\t\tString updateTasks =\n\t\t\"UPDATE Jobs SET NumberOfTasks = \" + ( 1 + (sqlStatements.size()/2)) + \" WHERE JobID = \" + Job.getJobID() + \";\";\n\n\t\t//\"UPDATE Jobs SET NumberOfTasks = 1 WHERE JobID = 1;\";\n\t\t//\"UPDATE TABLE Job SET (NumberOfTasks = Job.#tasks+1, Price = AUTOPRICEFIELDFROMJAVAFX) WHERE JobID = Job.getJobID();;\";\n\n//\t\tString updatePrice =\n//\t\t\"UPDATE Jobs SET Price = \" + (/*ryo has this somewhere*/) + \" WHERE JobID = \" + Job.getJobID() + \";\";\n\n\n\t\tSystem.out.println(\"adding insert\");\n\t\tSystem.out.println(\"> \");\n\t\tTaskInAJob.addToSqlStatements(insert);\n\t\tSystem.out.println(\"adding update\");\n\t\tTaskInAJob.addToSqlStatements(updateTasks);\n//\t\tTaskInAJob.addToSqlStatements(updatePrice);\n\t}", "title": "" }, { "docid": "63f075a525142428e7210e35d9732184", "score": "0.5073568", "text": "@Override\r\n public void onCreate(SQLiteDatabase db) {\r\n db.execSQL(\"create table \"+ TaskTable.NAME + \"(\"+\r\n \"_id integer primary key autoincrement,\"+\r\n TaskTable.Cols.UUID + \",\" +\r\n TaskTable.Cols.TITLE + \",\" +\r\n TaskTable.Cols.DETAILS + \",\" +\r\n TaskTable.Cols.DATE + \",\" +\r\n TaskTable.Cols.STATUS +\r\n \")\"\r\n );\r\n }", "title": "" }, { "docid": "8d17c243790c0024b58861cabf2e9284", "score": "0.50729436", "text": "@Override\r\n\tpublic String getTaskListFromProcessInstance() {\n\t\treturn \"select tsk_id, pri_id from process_instance where tsk_id in (:taskIds) and usr_id IS NULL\";\r\n\t}", "title": "" }, { "docid": "9e00188e5ba8b15ca19d3c5988f34e69", "score": "0.50662744", "text": "public void saveTaskExecuteLog(String taskID, String taskName, String taskDescription, \n\t\t\tDate startDate, Date endDate, \n\t\t\tboolean isDone, String message, String description) throws SQLException, ClassNotFoundException {\n\n\t\tString insertSql = \"insert into TaskLog \" \n \t\t + \" (TaskID, TaskName,TaskDescription, \" \n \t\t + \" StartTime, EndTime, IsDone, \"\n \t\t + \" Message, Description, \"\n \t\t + \" createtime,updatetime) \" \n \t\t + \" values (\" \n \t\t + \" ? \"\n \t\t + \",? \"\n \t\t + \",? \"\n \t\t \n \t\t + \",? \"\n \t\t + \",? \"\n \t\t \n \t\t \n \t\t + \",? \"\n \t\t + \",? \"\n \t\t + \",? \"\n \t\t +\", now(), now())\" ;\n\t\t\n\t\n \t \tConnection connection = null;\n\n PreparedStatement sSta = null;\n \t\n ResultSet resultSet =null;\n \n connection = DBFactory.CreateConnection();\n \n \n try\n\t {\n \t\n \t\n \tsSta = connection.prepareStatement(insertSql);\n \t\n \tsSta.setString(1, taskID);\n \tsSta.setString(2, taskName);\n \tsSta.setString(3, taskDescription);\n \tsSta.setString(4, DateFactory.ConvertToDatetimeString(startDate));\n \tsSta.setString(5, DateFactory.ConvertToDatetimeString(endDate));\n \tsSta.setBoolean(6, isDone);\n \tsSta.setString(7, message);\n \tsSta.setString(8, description);\n \t\n \t int insertResultCount = sSta.executeUpdate(); \n \t \n\t \n\t }finally\n\t {\n\t \ttry\n\t {\n\t if (connection != null)\n\t {\n\t \tconnection.close();\n\t }\n\t if (sSta != null)\n\t {\n\t \tsSta.close();\n\t }\n\t \n\t if (resultSet != null)\n\t {\n\t \tresultSet.close();\n\t }\n\t }\n\t catch (SQLException e)\n\t {\n\t e.printStackTrace();\n\t }\n\t }\n\t}", "title": "" }, { "docid": "58f4e0e89d5ae0abd91ce92f62080fb2", "score": "0.5055992", "text": "@Override\n\tpublic void insert(Task task) {\n\t\tlog.setLevel(Level.ERROR);\n\t\tds = DataSource.getInstance();\n\t\tif (ds == null) {\n\t\t\tlog.error(\"Instance of DataSource in MySQLTaskDAO class insert() method was not created!\");\n\t\t\treturn;\n\t\t}\n\t\tConnection con = null;\n\t\tPreparedStatement stmt = null;\n\t\tint userId = task.getUserId();\n\t\tString tytle = task.getTytle();\n\t\tString description = task.getDescription();\n\t\ttry {\n\t\t\tcon = ds.getConnection();\n\t\t\tlog.info(\"Connection established in MySQLTaskDAO class insert() method.\");\n\t\t\tstmt = con.prepareStatement(\"INSERT INTO mytasks (user_id, tytle, description) values(?,?,?)\");\n\t\t\tstmt.setInt(1, userId);\n\t\t\tstmt.setString(2, tytle);\n\t\t\tstmt.setString(3, description);\n\t\t\tstmt.executeUpdate();\n\t\t\tlog.info(\"Task was inserted successfully!\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tlog.warn(\"Task was not inserted! \" + e.getMessage());\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (stmt != null)\n\t\t\t\t\tstmt.close();\n\t\t\t\tif (con != null)\n\t\t\t\t\tcon.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "153a30ca1a509b28c9d6c81c2ebbdec1", "score": "0.5033849", "text": "void insert(Task task) {\n TaskRoomDatabase.databaseWriteExecutor.execute(() -> {\n mTaskDao.insert(task);\n });\n }", "title": "" }, { "docid": "7f1ff1c97d2266e96067680b73789041", "score": "0.50329614", "text": "@Test\n public void task2() throws SQLException {\n PreparedStatement statement = connection.prepareStatement(\"select task_id , title, status from ts_tasks WHERE status = ?;\");\n statement.setInt(1, 1);\n ResultSet resultSet = statement.executeQuery();\n System.out.println(\"task_id , title , status \");\n while (resultSet.next()) {\n System.out.print(resultSet.getString(1)+\" , \");\n System.out.print(resultSet.getString(2)+\" , \");\n System.out.print(resultSet.getString(3));\n System.out.println();\n }\n }", "title": "" }, { "docid": "ef3f34ce6684505186584b9bba2b5557", "score": "0.5032592", "text": "@Select({\n \"select\",\n \"orderJourneyId, orderId, content, value, type, status, isRead, updated_at, created_at\",\n \"from `orderjourney`\",\n \"where orderJourneyId = #{orderjourneyid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"orderJourneyId\", property=\"orderjourneyid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"orderId\", property=\"orderid\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"content\", property=\"content\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"value\", property=\"value\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"status\", property=\"status\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"isRead\", property=\"isread\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"updated_at\", property=\"updatedAt\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"created_at\", property=\"createdAt\", jdbcType=JdbcType.TIMESTAMP)\n })\n FinalOrderJourney selectByPrimaryKey(Integer orderjourneyid);", "title": "" }, { "docid": "176906c0771af00e54a194a1e5a392f1", "score": "0.50110847", "text": "@Override\n\tpublic ArrayList<String> addTask(Date date, String task, int id) {\n\t\t\n\t\tArrayList<String> results = new ArrayList<String>();\n\t\tTask _task = new Task();\n\t\tjava.util.Calendar today = java.util.Calendar.getInstance();\n\t\t_task.setCreationDate(today);\n\t\t_task.setTask(task);\n\t\tif(date == null) {\n\t\t\tdate = today.getTime();\n\t\t}\n\t\tjava.util.Calendar dueDate = java.util.Calendar.getInstance();\n\t\tdueDate.setTime(date);\n\t\t_task.setDueDate(dueDate);\n\t\t_task.setCompleted(false);\n\t\t_task.setId(id);\n\t\tString result = \"\";\n\t\tdatabase.addTask(_task);\n\t\tString stringDate = \"\";\n\t\tfor(int i = database.getTaskList().size() - 1; i >=0; i--){\n\t\t\tif(!database.getTaskList().get(i).isCompleted()){\n\t\t\t\tif(!database.getTaskList().get(i).getDueDate().getTime().equals(database.getTaskList().get(i).getCreationDate().getTime())) {\n\t\t\t\t\tstringDate = database.getTaskList().get(i).getDueDate().getTime().toString();\n\t\t\t\t}\n\t\t\t\tresult += \"<tr><td>\" + database.getTaskList().get(i).getTask() + \"</td>\"\n\t\t\t\t\t\t+ \"<td>\" + database.getTaskList().get(i).getCreationDate().getTime().toString() + \"</td>\"\n\t\t\t\t\t\t+ \"<td>\" + stringDate + \"</td>\"\n\t\t\t\t\t\t\t\t+ \"<td><div id=\\\"\"+database.getTaskList().get(i).getId()+\"\\\"></div></td></tr>\";\n\t\t\t}\n\t\t}\n\t\tString stringID = new Integer(id).toString();\n\t\tresults.add(stringID);\n\t\tresults.add(result);\n\t\treturn results;\n\t}", "title": "" }, { "docid": "0205014a6b0c0866390b0e13766c811a", "score": "0.5007602", "text": "@Query(\"update task set completed= :isCompleted where mId=:taskId \")\n void updateCompleted(String taskId, boolean isCompleted);", "title": "" }, { "docid": "61315b23a4d07aeeb2a643eab868a61f", "score": "0.49968413", "text": "List<Task> listActives();", "title": "" }, { "docid": "c15bd771fc060028fa17487ad5b2d2b4", "score": "0.49926168", "text": "@OneToMany(fetch = FetchType.LAZY, targetEntity = Task.class ,mappedBy = \"employee\")\r\n public Set<Task> getTasksSet() {\r\n return tasksSet;\r\n }", "title": "" }, { "docid": "bcf6490a441fe77d987b25e74518d821", "score": "0.49843648", "text": "public void setActivityId(Integer activityId) {\n this.activityId = activityId;\n }", "title": "" }, { "docid": "bcf6490a441fe77d987b25e74518d821", "score": "0.49843648", "text": "public void setActivityId(Integer activityId) {\n this.activityId = activityId;\n }", "title": "" }, { "docid": "2f3265cc2d0c4fa2fd4a8b8b7495a85d", "score": "0.49836054", "text": "@Override\n public String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException {\n Class.forName(\"com.mysql.jdbc.Driver\");\n //<editor-fold defaultstate=\"collapsed\" desc=\"Atributs\">\n Connection conn = connect();\n String tipo = null;\n TipoActividad tipoAct = null;\n //</editor-fold>\n //<editor-fold defaultstate=\"collapsed\" desc=\"Try/Catch\">\n try{\n sql = conn.prepareCall(\"CALL getTipoByAct(?)\");\n sql.setInt(1, activity.getIdTipo());\n reader = sql.executeQuery();\n \n while(reader.next()){\n tipoAct = JDBCUtils.getTipoActividad(reader);\n tipo = tipoAct.getNombre();\n }\n } catch(SQLException ex){\n throw new PersistenceException(ex.getErrorCode());\n }finally{\n try{\n if(reader != null){\n reader.close();\n }\n if(sql !=null){\n sql.close();\n }\n \n connectionClose();\n }catch(SQLException e){\n throw new PersistenceException(e.getErrorCode());\n }\n \n }\n //</editor-fold>\n return tipo; \n }", "title": "" }, { "docid": "d3e8cb4d5591d8e66dceb6a774fac333", "score": "0.49792078", "text": "int insert(ActivityTask record);", "title": "" }, { "docid": "0681e3d6921f43c2f3a7b5e8319c3b8d", "score": "0.4967346", "text": "public String EntityKey() {\n\t\t\treturn \"taskId\";\n\t\t}", "title": "" }, { "docid": "17cc895dd826264d8582eaf107dc97d4", "score": "0.49655014", "text": "@SuppressWarnings(\"unused\")\n @Override\n public TaskInstance getTaskbyid(int taskId) throws SQLException, \n Dbexception, ConfigurationException, IOException {\n\n List<TaskInstance> tasks = null;\n TaskInstance task = null;\n Dbmanagerfactory databaseoperation = null;\n Dbmanager db = null;\n ResultSet rs = null;\n Connection conn = null;\n Statement stmt = null;\n\n tasks = new ArrayList<TaskInstance>();\n databaseoperation = DbmanagerfactoryImpl.getInstance();\n db = databaseoperation.getDbmanager();\n String sql = \"SELECT * FROM TaskInstance where task_id='\" + taskId + \"'\";\n conn = db.getConnection();\n stmt = conn.createStatement();\n rs = db.executeSqlquery(sql,stmt);\n \n while (rs.next()) {\n task = new TaskInstance();\n task.setId(rs.getInt(\"id\"));\n task.setTaskName(rs.getString(\"taskName\"));\n tasks.add(task);\n }\n logger.logInfo(this.getClass().getName(),Thread.currentThread().getStackTrace()[1].getMethodName(), \n\t\t\t\"Adding task by id\");\n if (tasks == null) {\n throw new TaskNotFoundException();\n }\n if (conn != null) {\n stmt.close();\n rs.close();\n db.closeConnection(conn);\n }\n return task;\n }", "title": "" }, { "docid": "7aa75a55ac9a7b10c6ae4924d96c70cb", "score": "0.49568388", "text": "@Override\n public Boolean initializeTaskTable() {\n if (!taskMapper.existTaskTable()) {\n taskMapper.createTaskTable();\n System.out.println(\"Initialization: Successfully initiated table task\");\n return true;\n }\n System.out.println(\"Initialization: table task already exists\");\n return false;\n }", "title": "" }, { "docid": "abbf44e0a5191dead4af90b61610f6b7", "score": "0.49518266", "text": "@Override\n public ActivitiTask getUserTaskByTaskId(String taskId)\n throws JsonParseException, JsonMappingException, IOException, ActivitiGetException, JsonRequestException {\n ObjectMapper mapper = new ObjectMapper();\n String URL = hostSettings.getActivitiRestEndpointTasks() + taskId;\n ResponseEntity<String> response = requestActiviti.get(URL, String.class);\n JSONObject jsnobject = new JSONObject(response.getBody());\n ActivitiTask activitiTask = mapper.readValue(jsnobject.toString(),\n ActivitiTask.class);\n return activitiTask;\n }", "title": "" }, { "docid": "24dc5420e9ff63064b36c51b5c80b147", "score": "0.49508584", "text": "@Insert\n long insertTask(Task t);", "title": "" }, { "docid": "a0a7607a24d131dc3d2a16baff0914aa", "score": "0.49477834", "text": "private static Task gwt2hibTask(GwtTask gwtTask) {\r\n\t\tif (gwtTask == null)\r\n\t\t\treturn null;\r\n\r\n\t\tTask task = new Task();\r\n\r\n\t\ttask.setTaskID(gwtTask.getTaskID());\r\n\t\ttask.setRequiredSkill(gwt2hibSkillSet(gwtTask.getRequiredSkill()));\r\n\t\ttask.setStatus(gwt2hibTaskStatus(gwtTask.getStatus()));\r\n\t\ttask.setUsers(gwt2hibUserSet(gwtTask.getUsers()));\r\n\t\ttask.setPriority(gwt2hibTaskPriority(gwtTask.getPriority()));\r\n\t\ttask.setCompany(gwt2hibCompany(gwtTask.getCompany()));\r\n\t\ttask.setCreatedDate(gwtTask.getCreatedDate());\r\n\t\tLog.trace(\"util Created date\" + gwtTask.getCreatedDate());\r\n\t\ttask.setCustomerFirstName(gwtTask.getCustomerFirstName());\r\n\t\ttask.setCustomerLastName(gwtTask.getCustomerLastName());\r\n\t\ttask.setDescription(gwtTask.getDescription());\r\n\t\ttask.setHomeNum(StringUtil.long2str(gwtTask.getHomeNum()));\r\n\t\ttask.setMobileNum(StringUtil.long2str(gwtTask.getMobileNum()));\r\n\t\ttask.setTitle(gwtTask.getTitle());\r\n\t\ttask.setLocation(gwt2hibAddress(gwtTask.getLocation()));\r\n\t\ttask.setEstimatedTime(gwtTask.getEstimatedTime());\r\n\t\ttask.setTimespent(gwtTask.getTimespent());\r\n\t\ttask.setSuggestedStartTime(gwtTask.getSuggestedStartTime());\r\n\t\ttask.setSuggestedEndTime(gwtTask.getSuggestedEndTime());\r\n\t\ttask.setNotes(gwtTask.getNotes());\r\n\t\ttask.setScheduledStartTime(gwtTask.getScheduledStartTime());\r\n\t\ttask.setScheduledEndTime(gwtTask.getScheduledEndTime());\r\n\t\t\r\n\t\treturn task;\r\n\t}", "title": "" }, { "docid": "584acdc8de26aa855679b849a26d2821", "score": "0.49270114", "text": "int insert(TbTaskEntity record);", "title": "" }, { "docid": "4236e660b88f0bfcee1a28995646b4f6", "score": "0.4925594", "text": "@Command(description=\"view upcoming appointments\")\npublic Object checkFutureAppointments() throws SQLException {\n\t\t\t\n\t//Timestamp representing actual current time\n\tjava.util.Calendar calendar = Calendar.getInstance();\n\tjava.sql.Timestamp now = new java.sql.Timestamp(calendar.getTime().getTime());\n\t\t \n\tString sql = \"select appointmentid, appointmenttime, doctorname, type, reasonforvisit from \"\n\t\t\t+ \"(appointment natural join makesappointment natural join doctor)\"\n\t\t + \"where appointmenttime > ? and studentid = ?\";\n\t\t \n\ttry (PreparedStatement stm = connection.prepareStatement(sql,\n\t\t new String[] { \"AppointmentTime\" })) {\n\n\t\t stm.setTimestamp(1, now);\n\t\t stm.setInt(2, id);\n\t\t ResultSet rs = stm.executeQuery();\n\t\t \t\t \n\t\t Table upcomingAppointments = new Table(\"AppointmentID\",\"Time/Date\", \n\t\t\t\t \"Doctor\", \"Type\", \"Reason\");\n\t\t \t\t \n\t\t while (rs.next()) \n\t\t {\n\t\t\t upcomingAppointments.add(rs.getInt(1), rs.getTimestamp(2), rs.getString(3), \n\t\t\t\t\t rs.getString(4), rs.getString(5));\n\t\t }\n\t\t \t\t \n\t\t return upcomingAppointments;\n\t} \n}", "title": "" }, { "docid": "f27d15e348d94d54062614f5c5875def", "score": "0.49207994", "text": "@Override\n public String getTypeOfTask() {\n return \"T\";\n }", "title": "" }, { "docid": "8a7961820b40193b2db8590e88417b7e", "score": "0.491763", "text": "public String activityId() {\n return this.activityId;\n }", "title": "" }, { "docid": "36388c0aad503a9533777d94cc8dcd5e", "score": "0.4915536", "text": "public VitalActivityRecord() {\n\t\tsuper(com.petpace.db.jooq.tables.VitalActivity.VITAL_ACTIVITY);\n\t}", "title": "" }, { "docid": "91a08dcc2e2ed084376e6af5abcc71af", "score": "0.49139076", "text": "Result<String> queryTaskLog(HttpContext context, String taskID) throws ServiceException;", "title": "" }, { "docid": "1da052e50e1f25988c3279de48613215", "score": "0.491271", "text": "int getIdTask();", "title": "" }, { "docid": "2808c5995532415073061761f5494517", "score": "0.49077713", "text": "public void update_sub_task_sql(final AsrAutoSubTask asr_auto_sub_task) {\n template.update(new PreparedStatementCreator() {\n @Override\n public PreparedStatement createPreparedStatement(Connection connection) throws SQLException {\n PreparedStatement statement = connection.prepareStatement\n (\n \" UPDATE \" +\n \" STATBOY.ASR_AUTO_SUB_TASKS \" +\n \" SET \" +\n \" ASR_AUTO_SUB_TASK_SQL = ? \" +\n \" WHERE \" +\n \" ASR_AUTO_TASK_ID = ? \" +\n \" AND \" +\n \" ASR_AUTO_SUB_TASK_ID = ? \"\n );\n Clob clob = connection.createClob();\n clob.setString(1,asr_auto_sub_task.getSqlText());\n statement.setClob(1,clob);\n statement.setBigDecimal(2,asr_auto_sub_task.getParentTaskId());\n statement.setBigDecimal(3,asr_auto_sub_task.getId());\n return statement;\n }\n });\n\n /*String sql =\n \" UPDATE \"+\n \" STATBOY.ASR_AUTO_SUB_TASKS \"+\n \" SET \" +\n \" ASR_AUTO_SUB_TASK_SQL = to_clob(q'<\"+asr_auto_sub_task.getSqlText()+\">') \"+\n \" WHERE \" +\n \" ASR_AUTO_TASK_ID = \"+ asr_auto_sub_task.getParentTaskId() +\" \"+\n \" AND \" +\n \" ASR_AUTO_SUB_TASK_ID = \"+ asr_auto_sub_task.getId() +\" \";\n template.execute(sql);*/\n }", "title": "" }, { "docid": "d12274daf447f8015a20044a3fc61b06", "score": "0.49066085", "text": "@Override\r\n\tpublic String getTaskIdsForRoleId() {\n\t\treturn \"select tsk_id from role_task where rol_id = ?\";\r\n\t}", "title": "" }, { "docid": "35b4281918d03476b40a0020c7913c3a", "score": "0.4899007", "text": "public List<Task> getAllUninishedTasks() {\n List<Task> taskList = new ArrayList<>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_TASKS + \" WHERE \" + KEY_ISFINISHED + \" = 0\";\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Task task = new Task();\n task.setID(Integer.parseInt(cursor.getString(0)));\n task.setName(cursor.getString(1));\n task.setPrediction(Double.parseDouble(cursor.getString(2)));\n task.setIsFinished(Boolean.parseBoolean(cursor.getString(3)));\n task.setCategory(cursor.getString(4));\n\n // Adding task to list\n taskList.add(task);\n } while (cursor.moveToNext());\n }\n\n db.close(); // Closing database connection\n cursor.close();\n\n // return task list\n return taskList;\n }", "title": "" }, { "docid": "91aee9fd27a72e5b9a3c1f053d5cff0a", "score": "0.4897542", "text": "@RequestMapping(\"/activityList\")\n\tpublic List<Activity> activityList () {\n\t\treturn this.activityRepository.findAll();\n\t}", "title": "" }, { "docid": "1b73402ebfac2ac6c9cc3f93738c6f9f", "score": "0.48975036", "text": "@Override\n\tpublic Map<String, Object> getActivityByMap(Long id) {\n\t\tString sql=\" select * , DATE_FORMAT(startTime,\\\"%Y-%m-%d\\\") as startTimeFormat , DATE_FORMAT(endTime,\\\"%Y-%m-%d\\\") as endTimeFormat from \"+Activity.tableName+\" where id = ? \";\n\t\treturn sqlDao.queryForMap(sql,id);\n\t}", "title": "" }, { "docid": "4665fe4ec165f3af97c89c3e3a39d0a8", "score": "0.48918882", "text": "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(\"create table \" + TaskDbSchema.TaskTable.NAME + \"(\" +\n \" _id integer primary key autoincrement, \" +\n TaskDbSchema.TaskTable.Cols.UUID + \", \" +\n TaskDbSchema.TaskTable.Cols.TITLE + \", \" +\n TaskDbSchema.TaskTable.Cols.DATE + \", \" +\n TaskDbSchema.TaskTable.Cols.TASK_TYPE + \", \" +\n TaskDbSchema.TaskTable.Cols.PLACE_LAT + \", \" +\n TaskDbSchema.TaskTable.Cols.PLACE_LON + \", \" +\n TaskDbSchema.TaskTable.Cols.PLACE_FRIENDLY + \", \" +\n TaskDbSchema.TaskTable.Cols.DURATION + \", \" +\n TaskDbSchema.TaskTable.Cols.COMMENT+ ')'\n );\n\n db.execSQL(\"create table \" + TaskDbSchema.UsersTable.NAME + \"(\" +\n \" _id integer primary key, \" +\n TaskDbSchema.UsersTable.Cols.ID + \", \" +\n TaskDbSchema.UsersTable.Cols.NAME + \", \" +\n TaskDbSchema.UsersTable.Cols.EMAIL + \", \" +\n TaskDbSchema.UsersTable.Cols.USER_ID + \", \" +\n TaskDbSchema.UsersTable.Cols.GENDER + \", \" +\n TaskDbSchema.UsersTable.Cols.COMMENT + \")\"\n );\n }", "title": "" }, { "docid": "618c4713bf3cb11ffe02094206d6ddbf", "score": "0.4885472", "text": "private static void createTasks(String taskName, String startDate,\n\t\t\tString endDate, int createdBy, int createdTo) {\n\t\tTaskBean taskBean = new TaskBean();\n\t\ttaskBean.setTaskName(taskName);\n\t\ttry {\n\t\t\ttaskBean.setStartDate(DateUtils.getDate(startDate));\n\t\t\ttaskBean.setEndDate(DateUtils.getDate(endDate));\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttaskBean.setCreatedBy(createdBy);\n\t\tif(TaskDao.insertTask(taskBean))\n\t\t\tSystem.out.println(\"task created successfully\");\n\t}", "title": "" }, { "docid": "25d31e64f365489d09c353271a344642", "score": "0.48781225", "text": "private void updateTaskInSchedule(TaskEntity editedTaskToChange) {\n String activeKey = \"2305\" + taskKey;\n Query q = schRef.orderByChild(\"activeKey\").equalTo(activeKey);\n q.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot ds : dataSnapshot.getChildren()){\n ds.getRef().child(\"description\").setValue(editedTaskToChange.getDescription());\n ds.getRef().child(\"location\").setValue(editedTaskToChange.getLocation());\n if(reminder_switch.isChecked()) {\n if(chosenReminderEdited!=null) {\n ds.getRef().child(\"reminderType\").setValue(chosenReminderEdited);\n }\n }\n else\n {\n ds.getRef().child(\"reminderType\").setValue(null);\n }\n\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }", "title": "" }, { "docid": "3c07c7d9daf4368ae95c2180b14e5085", "score": "0.48734742", "text": "private CompletionStage<Done> prepareWriteTask() {\n return session.prepare(\"INSERT INTO Tasks (id, name, details, color, boardId, state) VALUES (?, ?, ?, ?, ?, ?)\")\n .thenApply(ps -> {\n setWriteTasks(ps);\n return Done.getInstance();\n });\n }", "title": "" }, { "docid": "946f9214209d62acf901ef1281a551f7", "score": "0.4873155", "text": "public static List<Task> listTask() {\n\t\tSystem.out.println(\"Passing TaskService class ...\");\n\t\treturn taskdao.listTask();\n\t\t\n\t}", "title": "" }, { "docid": "288bdbde25a2c4507750511b9251771c", "score": "0.48618242", "text": "public List<SubTask> getAllSubTasks(int taskid) {\n List<SubTask> taskList = new ArrayList<SubTask>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_SUBTASKS + \" WHERE \" + KEY_TASKID + \" = \" + taskid;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n SubTask subtask = new SubTask();\n subtask.setName(cursor.getString(1));\n subtask.setTime(Double.parseDouble(cursor.getString(2)));\n subtask.setTaskId(Integer.parseInt(cursor.getString(3)));\n\n // Adding task to list\n taskList.add(subtask);\n } while (cursor.moveToNext());\n }\n\n db.close(); // Closing database connection\n cursor.close();\n\n // return task list\n return taskList;\n }", "title": "" }, { "docid": "dc22f69f478aebcaeab2e7d152e253b7", "score": "0.4855822", "text": "List<Task> getAll() ;", "title": "" }, { "docid": "01726197a23eaa00410edc3620f20785", "score": "0.48475245", "text": "java.lang.String getTaskId();", "title": "" }, { "docid": "01726197a23eaa00410edc3620f20785", "score": "0.48475245", "text": "java.lang.String getTaskId();", "title": "" }, { "docid": "1f00cb13b9cfb7d6e40f30819fe5bcfd", "score": "0.4842824", "text": "@Override\n\tpublic List<Activity> list() {\n\t\treturn this.baseDaoSupport.queryForList(\"select * from activity\", Activity.class);\n\t}", "title": "" }, { "docid": "87ab667a0361e31838de47cb7e8d7013", "score": "0.48407257", "text": "@RequestMapping(\"/active\")\r\n @ResponseBody\r\n public Tasks getAllTasks() {\r\n Tasks tasks = new Tasks();\r\n try{ \r\n tasks.getTasks().addAll(taskService.findAllTasks()); \r\n //return tasks;\r\n }catch(Exception e){\r\n log.error(e);\r\n }\r\n return tasks;\r\n }", "title": "" }, { "docid": "f7ccb83a26b19d1ea8481f86d56f39cf", "score": "0.48315474", "text": "public void setActivityId(Integer activityId) {\n\t\tthis.activityId = activityId;\n\t}", "title": "" }, { "docid": "0667537e4c2db68d0e1d53be60d805b5", "score": "0.48251265", "text": "public static void addCurrentTaskToDatabase(){\n Runnable runnable = new Runnable() {\n public void run() {\n mapper.save(StopwatchActivity.currentTask);\n }\n };\n Thread mythread = new Thread(runnable);\n mythread.start();\n\n }", "title": "" }, { "docid": "7ef2c20b3e17de307a05ec9855a225e4", "score": "0.48215055", "text": "public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"TASK\");\n TableMap tMap = dbMap.getTable(\"TASK\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"TASK.TASK_ID\", new Integer(0));\n tMap.addColumn(\"TASK.TASK_CODE\", \"\");\n tMap.addColumn(\"TASK.STATUS\", new Integer(0));\n tMap.addColumn(\"TASK.PRIORITY\", new Integer(0));\n tMap.addColumn(\"TASK.START_DATE\", new Date());\n tMap.addColumn(\"TASK.DUE_DATE\", new Date());\n tMap.addColumn(\"TASK.PROGRESS\", new Integer(0));\n tMap.addForeignKey(\n \"TASK.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"TASK.CONTACT_ID\", new Integer(0) , \"CONTACT\" ,\n \"CONTACT_ID\");\n tMap.addForeignKey(\n \"TASK.PRODUCT_ID\", new Integer(0) , \"PRODUCT\" ,\n \"PRODUCT_ID\");\n tMap.addForeignKey(\n \"TASK.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addColumn(\"TASK.ACCESS\", new Integer(0));\n tMap.addColumn(\"TASK.ASSIGNED_TO\", \"\");\n tMap.addColumn(\"TASK.SUBJECT\", \"\");\n tMap.addColumn(\"TASK.DESCRIPTION\", \"\");\n tMap.addColumn(\"TASK.CREATED\", new Date());\n tMap.addColumn(\"TASK.MODIFIED\", new Date());\n tMap.addColumn(\"TASK.CREATED_BY\", \"\");\n tMap.addColumn(\"TASK.MODIFIED_BY\", \"\");\n }", "title": "" }, { "docid": "0776cde957f9042e74bcfe7b8169e0d2", "score": "0.4820704", "text": "public void setPrimaryKey( int taskId, Date startDate)\n \n {\n setTaskId(taskId);\n setStartDate(startDate);\n }", "title": "" }, { "docid": "5912b709c7d846daa50f9d83df8d6c8e", "score": "0.482028", "text": "public TaskType getTaskType();", "title": "" }, { "docid": "c6218097d5dc496d0dcdffc404b0a929", "score": "0.48198587", "text": "public interface TempletMapper {\n static final String SELECT_ALL = \"select * from templet \";\n\n @Insert(\"insert into templet(name,content,userId,type,userName,cTime,uTime,status) values(#{name},#{content},#{userId},#{type},#{userName},#{cTime},#{uTime},#{status})\")\n @SelectKey(before = false, keyProperty = \"id\", resultType = Long.class, statementType = StatementType.STATEMENT, statement = \"SELECT LAST_INSERT_ID() AS id\")\n Long insert(Templet templet);\n\n @Select(SELECT_ALL+\"where userId = ${userId} and status = 1 or type = 1 and status = 1 or type = 2 and status = 1\")\n List<Templet> selectByUserId(@Param(\"userId\")Long userId);\n\n @Select(SELECT_ALL+\"where status = 1 and type = #{type}\")\n List<Templet> selectByType(@Param(\"type\")Integer type);\n\n @Update(\"update templet set name = #{name},content=#{content},userId=#{userId},type=#{type},uTime=#{uTime} where id = #{id}\")\n void update(Templet templet);\n @Delete(\"delete from templet where id = #{id} \")\n void deleteById(@Param(\"id\")Long id);\n\n}", "title": "" }, { "docid": "79c24922cc7003c10c2488636e7bb50f", "score": "0.48162103", "text": "@Transactional\n public List<Task> selectAll() {\n Session session = sessionFactory.getCurrentSession();\n CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder();\n CriteriaQuery<Task> criteriaQuery = criteriaBuilder.createQuery(Task.class);\n Root<Task> root = criteriaQuery.from(Task.class);\n criteriaQuery.select(root);\n Query query = session.createQuery(criteriaQuery);\n return query.getResultList();\n }", "title": "" }, { "docid": "779c251ce2649d5998b6794b889cfb29", "score": "0.48114163", "text": "public interface Queries {\n String STAT_TASK_TYPE = \"select TASK_TYPE, count(1) from zoo.\"+Task.class.getAnnotation(Table.class).name()+\" where ASSIGNEE_ID=%d group by TASK_TYPE\";\n String STAT_TASK_STATUS = \"select STATUS, count(1) from zoo.\"+Task.class.getAnnotation(Table.class).name()+\" where ASSIGNEE_ID=%d group by STATUS\";\n String STAT_FED_ANIMALS = \"select count(1) from zoo.\"+Task.class.getAnnotation(Table.class).name()+\" where TASK_TYPE = 0 AND STATUS IN (1,3)\";\n String COUNT = \"select count(1) from zoo.%s\";\n}", "title": "" }, { "docid": "b904a0bee38f14f6bd97aa93118144ff", "score": "0.48060524", "text": "int insertSelective(ActivityTask record);", "title": "" }, { "docid": "c822f5c6391c06dcce2f38a4ef0eaccf", "score": "0.48047203", "text": "@Override\n protected Integer doInBackground(TaskDetails... activities) {\n try {\n TaskDetailsSQL database = new TaskDetailsSQL(this.context);\n database.update(activities[0]);\n return 0;\n } catch(SQLiteException e) {\n Log.e(DBERROR, \"Database Error:\" + e.getMessage());\n return -1;\n }\n }", "title": "" }, { "docid": "45aa51e047545d97f75a36bea2188258", "score": "0.48044008", "text": "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(SQL_CREATE_TABLE_TASKS);\n }", "title": "" }, { "docid": "37dfd88201e88eff16ebb500acbf9f04", "score": "0.48008728", "text": "@Transactional\n public void add(Task task) {\n Session session = sessionFactory.getCurrentSession();\n session.save(task);\n }", "title": "" }, { "docid": "86ae3e3f76c1104c9add37df2d70293d", "score": "0.47966918", "text": "public void addTask(String date, String task);", "title": "" }, { "docid": "18f1cc496f171c33c6eb8caa6cfe065b", "score": "0.47962162", "text": "public List<Task> getAllFinishedTasks() {\n List<Task> taskList = new ArrayList<>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_TASKS + \" WHERE \" + KEY_ISFINISHED + \" = 1\";\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Task task = new Task();\n task.setID(Integer.parseInt(cursor.getString(0)));\n task.setName(cursor.getString(1));\n task.setPrediction(Double.parseDouble(cursor.getString(2)));\n task.setIsFinished(Boolean.parseBoolean(cursor.getString(3)));\n task.setCategory(cursor.getString(4));\n\n // Adding task to list\n taskList.add(task);\n } while (cursor.moveToNext());\n }\n\n db.close(); // Closing database connection\n cursor.close();\n\n // return task list\n return taskList;\n }", "title": "" }, { "docid": "74a2ed5ed98800bd9811d0c1b7ec3ce1", "score": "0.47924653", "text": "@Test\n public void findGroupTask() {\n List<Task> taskList = taskService\n .createTaskQuery()\n .taskCandidateUser(\"帅哥1\")\n .list();\n for (Task task : taskList) {\n System.out.println(\"#############\");\n System.out.println(task.getId());\n System.out.println(task.getCreateTime());\n System.out.println(task.getPriority());\n System.out.println(task.getExecutionId());\n System.out.println(\"#############\");\n }\n }", "title": "" }, { "docid": "d396b0bb26eb14a1aa02e06edcf56261", "score": "0.47906524", "text": "private void getTaskPackage(String taskId) throws SQLException {\n\t\t// TaskPackage taskPkg = new TaskPackage(taskId, taskName, taskType);\n\t\ttaskItem = new TaskDataItem(taskId);\n\t\tString sql = String.format(\"SELECT * FROM mdb_poi_edit WHERE mdb_poi_edit.guid \"\n\t\t\t\t+ \"in (SELECT feature_id FROM tdb_data_flow WHERE task_id = '%s')\", taskId);\n\t\t\n\t\tString sqlQueryDataFlow = String.format(\"SELECT * FROM tdb_data_flow WHERE feature_id \"\n\t\t\t\t+ \"in (SELECT feature_id FROM tdb_data_flow WHERE task_id = '%s')\", taskId);\n\n\t\tinnertTask = new InnerTaskDataItem();\n\t\tinnertTask.getInnerTaskDataItem(taskId);\n\n\t\ttry (DBDriver dbDriver = new DBDriver()) {\n\t\t\tList<PDAPOIDataItem> pdapoiDataItemList = new ArrayList<>();\n\t\t\tList<DataFlowItem> dataFlowItemList = new ArrayList<>();\n\t\t\tList<Map<String, Object>> poiDatas = dbDriver.getDataSetList(sql);\n\t\t\tList<Map<String, Object>> dataFlows = dbDriver.getDataSetList(sqlQueryDataFlow);\n\t\t\tfor (Map<String, Object> poiData : poiDatas) {\n\t\t\t\tPDAPOIDataItem pdapoiDataItem = new PDAPOIDataItem(poiData);\n\t\t\t\tpdapoiDataItemList.add(pdapoiDataItem);\n\t\t\t}\n\t\t\tfor(Map<String, Object> dataFlow : dataFlows) {\n\t\t\t\tDataFlowItem dataFlowItem = new DataFlowItem(dataFlow);\n\t\t\t\tdataFlowItemList.add(dataFlowItem);\n\t\t\t}\n\t\t\tthis.setPDAPOIDataItemList(pdapoiDataItemList);\n\t\t\tthis.setDataFlowItemList(dataFlowItemList);\n\t\t}\n\t}", "title": "" }, { "docid": "97d1931fae8166f72424eeb02f83db0e", "score": "0.47851917", "text": "public ArrayList<Task> getTasks() {\n ArrayList<Task> toDos = new ArrayList<Task>();\n String selectQuery = \"SELECT \" + COLUMN_ID\n +\", \"\n + COLUMN_NAME + \", \"\n + COLUMN_DESCRIPTION\n + \" FROM \" + TABLE_TASKS;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()) {\n do {\n int id = cursor.getInt(0);\n String date = cursor.getString(1);\n String data = cursor.getString(2);\n Task obj = new Task(id, date, data);\n toDos.add(obj);\n } while (cursor.moveToNext());\n }\n // Close connection\n cursor.close();\n db.close();\n return toDos;\n }", "title": "" }, { "docid": "cfef0065a9c14f54fb8c3e3c5b14b61e", "score": "0.47834212", "text": "int updateByPrimaryKey(TbTaskEntity record);", "title": "" }, { "docid": "c218c5141df39d1f80bb46dc7e86ae59", "score": "0.47787648", "text": "String getTaskId();", "title": "" }, { "docid": "ad52d8c540d1f0182d6f1806238c0cb9", "score": "0.47749764", "text": "public void setActivityId(String activityId) {\n this.activityId = activityId;\n }", "title": "" }, { "docid": "ad52d8c540d1f0182d6f1806238c0cb9", "score": "0.47749764", "text": "public void setActivityId(String activityId) {\n this.activityId = activityId;\n }", "title": "" }, { "docid": "92281ab6ba4e3ae88045e9577c37189a", "score": "0.47732347", "text": "public void setTaskId(long taskId);", "title": "" }, { "docid": "92281ab6ba4e3ae88045e9577c37189a", "score": "0.47732347", "text": "public void setTaskId(long taskId);", "title": "" }, { "docid": "443d34c23b4f239a883214fcb590685d", "score": "0.47665045", "text": "public void addTask(Task task) {\r\n // Open database connection\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n // Define values for each field\r\n ContentValues values = new ContentValues();\r\n values.put(KEY_TITLE, task.getTitle());\r\n values.put(KEY_DUE_DATE, task.getDueDate());\r\n // Insert Row\r\n db.insertOrThrow(TABLE_TODO, null, values);\r\n db.close(); // Closing database connection\r\n }", "title": "" }, { "docid": "41a0bad2564199d8e7f47dcf678f4267", "score": "0.476539", "text": "public TableModel convertToTableModel(List taskLst) {\n\r\n BeanTableModel tm = createModel(taskLst);\r\n String[] colums = new String[] { LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_ITEM_ID),\r\n LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_START_TIME), LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_END_TIME),\r\n LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_SELLING_DAYS), LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_SOLD_QUALITY),\r\n LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_SELLING_PER_DAY), LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_PRICE),\r\n LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_BID_COUNT), LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_URL),\r\n LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_SITE_ID), LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_NAME),\r\n LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_SELLER_ID), LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_CURRENCY_ID),\r\n LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_SHIPPING_TYPE),\r\n LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_SHIPPING_FEE), LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_IMAGE_URL),\r\n LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_COUNTRY), LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_CATEGORY_ID),\r\n LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_CATEGORY_NAME), LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_LOCATION),\r\n LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_TIME_LEFT), LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_SKU),\r\n LangTransMeta.translate(ZcElementConstants.FIELD_EB_ITEM_LISTING_TYPE) };\r\n String[] names = new String[] { \"ebItem.itemId\", \"ebItem.startTime\", \"ebItem.endTime\", \"ebItem.sellingDays\", \"ebItem.soldQuality\",\r\n \"ebItem.sellingPerDay\", \"ebItem.price\", \"ebItem.bidCount\", \"ebItem.url\", \"ebItem.siteId\", \"ebItem.name\", \"ebItem.sellerId\",\r\n \"ebItem.currencyId\", \"ebItem.shippingType\", \"ebItem.shippingFee\", \"ebItem.imageUrl\", \"ebItem.country\", \"ebItem.categoryId\",\r\n \"ebItem.categoryName\", \"ebItem.location\", \"ebItem.timeLeft\", \"ebItem.sku\", \"ebItem.listingType\" };\r\n tm.setDataBean(taskLst, createColumnBeanPropertyPairs(colums, names));\r\n return tm;\r\n }", "title": "" }, { "docid": "ce53daf813789d101e9af01b93e56cb4", "score": "0.47621083", "text": "public long getTaskId();", "title": "" }, { "docid": "ce53daf813789d101e9af01b93e56cb4", "score": "0.47621083", "text": "public long getTaskId();", "title": "" }, { "docid": "6188f2db08f1714eebd9895ae6526685", "score": "0.476168", "text": "private Task cursorToTask(Cursor cursor, ArrayList<TimeSlots> timeSlots) {\n long taskID = cursor.getLong(0);\n long userID = cursor.getLong(1);\n String title= cursor.getString(2);\n String estHours= cursor.getString(3);\n String dueDate= cursor.getString(4);\n String startDate = cursor.getString(5);\n String assignedTimeSlots = cursor.getString(6);\n Log.d(TAG,title);\n Log.d(TAG,estHours);\n Log.d(TAG,dueDate);\n Log.d(TAG,startDate);\n Log.d(TAG,assignedTimeSlots);\n\n Task task = new Task(userID, taskID, title, estHours,startDate, dueDate);\n\n //checking if there are already assigned time slots\n Calendar c = Calendar.getInstance(TimeZone.getTimeZone(\"Asia/Singapore\"));\n if(!assignedTimeSlots.isEmpty()){\n String[] timeslotsDetails = assignedTimeSlots.split(\";\");\n for(int j = 0; j<timeslotsDetails.length;j++){\n if(timeslotsDetails[j].equals(\"null\")) continue;\n String[] details = timeslotsDetails[j].split(\",\");\n int hour = (int) Double.parseDouble(details[3]);\n int min = Double.parseDouble(details[3])-hour ==0? 0:30;\n int tsYear= Integer.parseInt(details[0]);\n int tsMonth = Integer.parseInt(details[1]);\n int tsDay = Integer.parseInt(details[2]);\n c.set(tsYear,tsMonth,tsDay,0,min,0);\n c.set(Calendar.HOUR_OF_DAY,hour);\n TimeSlots foundts = null;\n for(TimeSlots ts:timeSlots){\n\n if(ts.getCal().get(Calendar.YEAR) == tsYear &&\n ts.getCal().get(Calendar.MONTH) == tsMonth &&\n ts.getCal().get(Calendar.DAY_OF_MONTH) == tsDay &&\n ts.getCal().get(Calendar.HOUR_OF_DAY) == hour &&\n ts.getCal().get(Calendar.MINUTE) == min\n )\n foundts = ts;\n }\n if(foundts!=null) task.assignLatestTimeSlot(foundts);\n else task.removeOneTimeSlotsDB();\n }\n }\n /*\n Might also need to find user's name by the user ID\n */\n Log.d(TAG,task.getTitle());\n\n return task;\n }", "title": "" }, { "docid": "b8414371f9b50e2569f402eca2f80aab", "score": "0.47611475", "text": "private static String getInsertQuery(TaskDetail taskDetail) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"INSERT INTO TASK_DETAILS VALUES (\");\n\t\tbuilder.append(\"null\");\n\t\tbuilder.append(\",\");\n\t\tbuilder.append(\"'\" + taskDetail.getTaskDescription() + \"'\");\n\t\tbuilder.append(\",\");\n\t\tbuilder.append(\"now()\");\n\t\tbuilder.append(\",\");\n\t\tbuilder.append(\"'PENDING')\");\n\t\treturn builder.toString();\n\t}", "title": "" }, { "docid": "d86f5a712c756253e14943f0d810ee3d", "score": "0.47503322", "text": "public Integer getActivityId() {\n return activityId;\n }", "title": "" } ]
f2aa069fa2b6f04e1b82c0fd3a3db118
This method was generated by MyBatis Generator. This method corresponds to the database table t_origin_material_info
[ { "docid": "4e93de2186d4f66ce578cf6582cdbc06", "score": "0.47171122", "text": "int updateByExample(TOriginMaterialInfo record, TOriginMaterialInfoExample example);", "title": "" } ]
[ { "docid": "48af8978fa791f2e83dd8e2a102e9339", "score": "0.65433156", "text": "TOriginMaterialInfo selectByPrimaryKey(Integer materialId);", "title": "" }, { "docid": "ee3e19af3e7d1924e55c02d4925d66d0", "score": "0.53827727", "text": "List<TOriginMaterialInfo> selectByExample(TOriginMaterialInfoExample example);", "title": "" }, { "docid": "d7f486ed50c3a9bf455399337b4356fc", "score": "0.5131667", "text": "public List<OrdenFabricacionOrdenSalidaMaterial> getOrdenFabricacionOrdenSalidaMaterialPorOrdenSalidaMaterial(OrdenSalidaMaterial ordenSalidaMaterial)\r\n/* 463: */ {\r\n/* 464:514 */ StringBuilder sql = new StringBuilder();\r\n/* 465:515 */ sql.append(\" SELECT ofosm FROM OrdenFabricacionOrdenSalidaMaterial ofosm \");\r\n/* 466:516 */ sql.append(\" JOIN FETCH ofosm.ordenFabricacion ofa \");\r\n/* 467:517 */ sql.append(\" JOIN FETCH ofa.producto p \");\r\n/* 468:518 */ sql.append(\" JOIN FETCH ofa.rutaFabricacion rf \");\r\n/* 469:519 */ sql.append(\" INNER JOIN ofosm.ordenSalidaMaterial osm \");\r\n/* 470:520 */ sql.append(\" WHERE osm.idOrdenSalidaMaterial = :idOrdenSalidaMaterial\");\r\n/* 471: */ \r\n/* 472:522 */ Query query = this.em.createQuery(sql.toString());\r\n/* 473:523 */ query.setParameter(\"idOrdenSalidaMaterial\", Integer.valueOf(ordenSalidaMaterial.getId()));\r\n/* 474: */ \r\n/* 475:525 */ return query.getResultList();\r\n/* 476: */ }", "title": "" }, { "docid": "8c046e69ce01d03db71145b749a456d7", "score": "0.50583833", "text": "@Override\n\tpublic List<Material> returnMrls() {\n\t\tString hql = \"select new Material(m.mrlId,m.mrlName,m.mrlPrice,m.mrlAmount)\"\n\t\t\t\t+ \" from Material m\"; \n\t\tQuery query = getSession().createQuery(hql);\n\t\tList<Material> mrls = query.list();\n\t\tfor(Material mrl:mrls){\n\t\t\tSystem.out.println(mrl.getMrlId()+\", \" +mrl.getMrlName()+\", \"+mrl.getMrlPrice());\n\t\t}\n\t\tSystem.out.println();\n\t\treturn mrls;\n\t}", "title": "" }, { "docid": "f055fc6727ad0581c2d5e974b554265b", "score": "0.5055927", "text": "public List<OrdenSalidaMaterial> getOrdenSalidaMaterialPorOrdenFabricacion(OrdenFabricacion ordenFabricacion)\r\n/* 449: */ {\r\n/* 450:499 */ StringBuilder sql = new StringBuilder();\r\n/* 451:500 */ sql.append(\" SELECT osm FROM OrdenSalidaMaterial osm \");\r\n/* 452:501 */ sql.append(\" INNER JOIN osm.listaOrdenFabricacionOrdenSalidaMaterial ofosm \");\r\n/* 453:502 */ sql.append(\" INNER JOIN ofosm.ordenFabricacion ofa \");\r\n/* 454:503 */ sql.append(\" WHERE ofa.idOrdenFabricacion = :idOrdenFabricacion\");\r\n/* 455: */ \r\n/* 456:505 */ Query query = this.em.createQuery(sql.toString());\r\n/* 457:506 */ query.setParameter(\"idOrdenFabricacion\", Integer.valueOf(ordenFabricacion.getId()));\r\n/* 458: */ \r\n/* 459:508 */ return query.getResultList();\r\n/* 460: */ }", "title": "" }, { "docid": "4198ba17d7b0e25c43a2c5d3ee5ac53a", "score": "0.5050542", "text": "int updateByPrimaryKey(TOriginMaterialInfo record);", "title": "" }, { "docid": "ad2fcf3c28c2d800649867bf01bf8970", "score": "0.5020153", "text": "private void updateRawMaterialWindowTable()\n {\n try {\n ResultSet results=RawMaterialTypeInfoTableProxy.getRawMaterialTypeInfoTableProxy().getTableContents();\n results.next();\n if(results.isLast())\n return;\n for(int i=0;;i++)\n {\n jTable1.setValueAt(results.getString(1), i, 0);\n jTable1.setValueAt(results.getString(3), i, 1);\n jTable1.setValueAt(results.getString(2), i, 2);\n \n if(results.isLast())\n return;\n else\n results.next();\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManagerWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "68e6e4d4ef70f372e7480b5b3b8a8b5f", "score": "0.5019408", "text": "public String getMaterialName() {\n/* 732 */ return this.materialName;\n/* */ }", "title": "" }, { "docid": "c48a9f0e647ababa4777ddf7556bca51", "score": "0.4952235", "text": "public Material mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\r\n\t\t\t\treturn (Material)RowMapperUtil.getRowMapper(Material.class, rs, \"\");\r\n\t\t\t}", "title": "" }, { "docid": "cdaf65499b302a7981b381ef511364c9", "score": "0.4916925", "text": "@Transient\n @Override\n public String getDetailForSql() {\n return \"dependent\" +\n \"$#~cTxFormNo~\" + getTxFormNo() +\"~S\" +\n \"$#~nLineNo~\" + getLineNo() +\"~N\" + \n \"$cDepAddress~\" + getDepAddress() + \"~S\" +\n \"$cDepContactNo~\" + getDepContactNo() + \"~S\" + \n \"$cDepName~\" + getDepName() + \"~S\" +\n \"$cDepRelation~\" + getDepRelation() + \"~S\"; \n }", "title": "" }, { "docid": "b3ba334b457743d39ab257b18a6f3186", "score": "0.49056035", "text": "@Override\n public String[] getCodigoMateria() {\n listaGrado=getDatosMateria();\n String[] tabla=new String[listaGrado.size()];\n int i=0;\n for (MateriasEntity u: listaGrado) {\n tabla[i]=\"\"+u.getIdMateria();\n i++;\n }\n \n return tabla;\n }", "title": "" }, { "docid": "3092ab007aa333bb23a4ad33733981d2", "score": "0.48922497", "text": "@Select({\n \"select\",\n \"QGBILLNUMBERS, QGLINE, QGMATERIALID, QGMATERIALNAME, QGMATERIALTYPE, QGUNIT, \",\n \"QGNUMBER, QGSTANDARDJJ, QGSTANDARDJJJE, QGCURRENCY, QGPRICE, QGJJMONEY, QGNEEDDATE, \",\n \"QGSUGGESTDATE, QGTYPEREMARK, QGSOURCEBILL, QGSOURCENUMBERS\",\n \"from PURCHASEREQUESTS\"\n })\n @ConstructorArgs({\n @Arg(column=\"QGBILLNUMBERS\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"QGLINE\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"QGMATERIALID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"QGMATERIALNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"QGMATERIALTYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"QGUNIT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"QGNUMBER\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"QGSTANDARDJJ\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"QGSTANDARDJJJE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"QGCURRENCY\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"QGPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"QGJJMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"QGNEEDDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"QGSUGGESTDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"QGTYPEREMARK\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"QGSOURCEBILL\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"QGSOURCENUMBERS\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Purchaserequests> selectAll();", "title": "" }, { "docid": "5f9ee26c451acc76911be97214636229", "score": "0.48828954", "text": "public String getMaterialRef() {\n/* 471 */ return this.materialRef;\n/* */ }", "title": "" }, { "docid": "2d5191fc6d371894d9d2a830412938f8", "score": "0.4866079", "text": "@Override\n\tpublic Material returnMrl(Integer mrlId) {\n\t\tString hql = \"select new Material(m.mrlId,m.mrlName,m.mrlPrice,m.mrlAmount) from Material m where m.mrlId = ?\"; \n\t\tQuery query = getSession().createQuery(hql).setInteger(0, mrlId);\n\t\tMaterial mrl = null;\n\t\ttry{\n\t\t\tmrl = (Material)query.uniqueResult();\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"nullpointException\");\n\t\t\treturn null;\n\t\t}\n\t\treturn mrl;\n\t}", "title": "" }, { "docid": "0d3d63ce997e9a3f19570cb0162b5cd3", "score": "0.4837458", "text": "public String insertSelective(MaterialReceived record) {\r\n SQL sql = new SQL();\r\n sql.INSERT_INTO(Utils.getDatabase()+\".material_received\");\r\n \r\n if (record.getId() != null) {\r\n sql.VALUES(\"id\", \"#{id,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getProject() != null) {\r\n sql.VALUES(\"project\", \"#{project,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getNode() != null) {\r\n sql.VALUES(\"node\", \"#{node,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getProgram() != null) {\r\n sql.VALUES(\"program\", \"#{program,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getIprocedure() != null) {\r\n sql.VALUES(\"iprocedure\", \"#{iprocedure,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getMechainc() != null) {\r\n sql.VALUES(\"mechainc\", \"#{mechainc,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getSupplier() != null) {\r\n sql.VALUES(\"supplier\", \"#{supplier,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getSupplierName() != null) {\r\n sql.VALUES(\"supplier_name\", \"#{supplierName,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getMaterial() != null) {\r\n sql.VALUES(\"material\", \"#{material,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getPlateNumber() != null) {\r\n sql.VALUES(\"plate_number\", \"#{plateNumber,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getIcount() != null) {\r\n sql.VALUES(\"icount\", \"#{icount,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getBaseType() != null) {\r\n sql.VALUES(\"base_type\", \"#{baseType,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getMaterialSpec() != null) {\r\n sql.VALUES(\"material_spec\", \"#{materialSpec,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getDistance() != null) {\r\n sql.VALUES(\"distance\", \"#{distance,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getMaterialPrice() != null) {\r\n sql.VALUES(\"material_price\", \"#{materialPrice,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getCreateDate() != null) {\r\n sql.VALUES(\"create_date\", \"#{createDate,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getDate() != null) {\r\n sql.VALUES(\"date\", \"#{date,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getUnitPrice() != null) {\r\n sql.VALUES(\"unit_price\", \"#{unitPrice,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getMaterialName() != null) {\r\n sql.VALUES(\"material_name\", \"#{materialName,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getUnitFreightPrice() != null) {\r\n sql.VALUES(\"unit_freight_price\", \"#{unitFreightPrice,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getFreightPrice() != null) {\r\n sql.VALUES(\"freight_price\", \"#{freightPrice,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getStaffName() != null) {\r\n sql.VALUES(\"staff_name\", \"#{staffName,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getStaff() != null) {\r\n sql.VALUES(\"staff\", \"#{staff,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getRemark() != null) {\r\n sql.VALUES(\"remark\", \"#{remark,jdbcType=VARCHAR}\");\r\n }\r\n \r\n return sql.toString();\r\n }", "title": "" }, { "docid": "45d039fbcadcf12dac8bc7150c374241", "score": "0.48050404", "text": "public String updateByPrimaryKeySelective(MaterialReceived record) {\r\n SQL sql = new SQL();\r\n sql.UPDATE(\"material_received\");\r\n \r\n if (record.getProject() != null) {\r\n sql.SET(\"project = #{project,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getNode() != null) {\r\n sql.SET(\"node = #{node,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getProgram() != null) {\r\n sql.SET(\"program = #{program,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getIprocedure() != null) {\r\n sql.SET(\"iprocedure = #{iprocedure,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getMechainc() != null) {\r\n sql.SET(\"mechainc = #{mechainc,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getSupplier() != null) {\r\n sql.SET(\"supplier = #{supplier,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getSupplierName() != null) {\r\n sql.SET(\"supplier_name = #{supplierName,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getMaterial() != null) {\r\n sql.SET(\"material = #{material,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getPlateNumber() != null) {\r\n sql.SET(\"plate_number = #{plateNumber,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getIcount() != null) {\r\n sql.SET(\"icount = #{icount,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getBaseType() != null) {\r\n sql.SET(\"base_type = #{baseType,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getMaterialSpec() != null) {\r\n sql.SET(\"material_spec = #{materialSpec,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getDistance() != null) {\r\n sql.SET(\"distance = #{distance,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getMaterialPrice() != null) {\r\n sql.SET(\"material_price = #{materialPrice,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getCreateDate() != null) {\r\n sql.SET(\"create_date = #{createDate,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getDate() != null) {\r\n sql.SET(\"date = #{date,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getUnitPrice() != null) {\r\n sql.SET(\"unit_price = #{unitPrice,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getMaterialName() != null) {\r\n sql.SET(\"material_name = #{materialName,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getUnitFreightPrice() != null) {\r\n sql.SET(\"unit_freight_price = #{unitFreightPrice,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getFreightPrice() != null) {\r\n sql.SET(\"freight_price = #{freightPrice,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getStaffName() != null) {\r\n sql.SET(\"staff_name = #{staffName,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getStaff() != null) {\r\n sql.SET(\"staff = #{staff,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getRemark() != null) {\r\n sql.SET(\"remark = #{remark,jdbcType=VARCHAR}\");\r\n }\r\n \r\n sql.WHERE(\"id = #{id,jdbcType=INTEGER}\");\r\n \r\n return sql.toString();\r\n }", "title": "" }, { "docid": "32ad3e2863d967f065f8a71f2e41eb1f", "score": "0.48036292", "text": "@Select({\n \"select\",\n \"QGBILLNUMBERS, QGLINE, QGMATERIALID, QGMATERIALNAME, QGMATERIALTYPE, QGUNIT, \",\n \"QGNUMBER, QGSTANDARDJJ, QGSTANDARDJJJE, QGCURRENCY, QGPRICE, QGJJMONEY, QGNEEDDATE, \",\n \"QGSUGGESTDATE, QGTYPEREMARK, QGSOURCEBILL, QGSOURCENUMBERS\",\n \"from PURCHASEREQUESTS\",\n \"where QGBILLNUMBERS = #{qgbillnumbers,jdbcType=VARCHAR}\",\n \"and QGLINE = #{qgline,jdbcType=VARCHAR}\"\n })\n @ConstructorArgs({\n @Arg(column=\"QGBILLNUMBERS\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"QGLINE\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"QGMATERIALID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"QGMATERIALNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"QGMATERIALTYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"QGUNIT\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"QGNUMBER\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"QGSTANDARDJJ\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"QGSTANDARDJJJE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"QGCURRENCY\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"QGPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"QGJJMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"QGNEEDDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"QGSUGGESTDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"QGTYPEREMARK\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"QGSOURCEBILL\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"QGSOURCENUMBERS\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Purchaserequests selectByPrimaryKey(@Param(\"qgbillnumbers\") String qgbillnumbers, @Param(\"qgline\") String qgline);", "title": "" }, { "docid": "1e68279d7fdfb59331da12fa8a4efccb", "score": "0.4772661", "text": "public ScGridColumn<AcAaAirWaybillFlight> newOriginAirportCodeColumn()\n {\n return newOriginAirportCodeColumn(\"Origin Airport Code\");\n }", "title": "" }, { "docid": "cfdf75539d02be0d0ce7bbb542f51fd8", "score": "0.47651017", "text": "@Override\r\n\t\tpublic ResultSetMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "a7a222a5228d063865d27f3b9fd67681", "score": "0.47386414", "text": "@Override\n public String getQuerySql() {\n //\"NAME,ALIAS,STATUS,CREATE_TIME,UPDATE_TIME,UPDATE_USER\"\n return \"SELECT A.NAME,A.MENU_ID,A.CODE,A.ACTION,A.REMARK,A.CREATE_TIME,A.UPDATE_TIME,A.UPDATE_USER,B.NAME AS MENU_NAME FROM T_RESOURCE A LEFT JOIN T_MENU B ON A.MENU_ID=B.ID\";\n }", "title": "" }, { "docid": "c08b06020711077c15225d6e3d7f4b6e", "score": "0.472243", "text": "public void metaColumn() throws SQLException{\n String query = \"SELECT LASTNAME, FIRSTNAME, DIAGNOSIS, ADMISSIONDATE, RELEASEDATE, PATIENTID FROM PATIENT\";\n try(Connection connection = DriverManager.getConnection(url, user, password);\n PreparedStatement ps = connection.prepareStatement(query);\n ResultSet resultSet = ps.executeQuery()){\n if(resultSet.next()){\n PatientData patientData = new PatientData();\n patientData.setLastName(resultSet.getString(\"LASTNAME\"));\n patientData.setLastName(resultSet.getString(\"FIRSTNAME\"));\n patientData.setDiagnosis(resultSet.getString(\"DIAGNOSIS\"));\n patientData.setReleaseDate(resultSet.getTimestamp(\"RELEASEDATE\"));\n patientData.setPatientID(resultSet.getInt(\"PATIENTID\")); \n \n System.out.println(patientData.toString());\n }\n\n ResultSetMetaData metaData = resultSet.getMetaData();\n int columnCount = metaData.getColumnCount(); \n System.out.println(\"There are \" + columnCount + \" columns\");\n //so far so good\n \n ArrayList<String> col = new ArrayList<>();\n if(col.size() == 0){\n System.out.println(\"So far, nothing inside the col array\");\n }\n \n \n for(int i = 1; i <= columnCount; i++){\n // make sure the column start from 1 in SQL file\n String columnName = metaData.getColumnName(i);\n System.out.println(columnName);\n col.add(metaData.getColumnName(i));\n }\n int count = 1;\n for (String e : col){ \n System.out.println(\"Column \" + count + \" : \" + e);\n count++;\n }\n }\n }", "title": "" }, { "docid": "b5ae87f535a5b7b6f2ae12f552a5b913", "score": "0.4721777", "text": "public ScGridColumn<AcInternationalPostalCustomerInvoiceMarket> newOriginAirportCodeColumn()\n {\n return newOriginAirportCodeColumn(\"Origin Airport Code\");\n }", "title": "" }, { "docid": "f19c716d8c89eea5b2060268e12f5c8c", "score": "0.47143707", "text": "@Override\n public GrillResultSetMetadata getMetadata() throws GrillException {\n return new GrillResultSetMetadata() {\n\n @Override\n public List<ColumnDescriptor> getColumns() {\n // TODO Auto-generated method stub\n return null;\n }\n };\n }", "title": "" }, { "docid": "1e5a874df3669cc718da79cd196be3f0", "score": "0.4690496", "text": "public ScGridColumn<AcGb0901MarketRate> newOriginAirportColumn()\n {\n return newOriginAirportColumn(\"Origin Airport\");\n }", "title": "" }, { "docid": "56505182b8e9c9fa15230f5619683c32", "score": "0.4655106", "text": "@Select({\n \"select\",\n \"id, address, begin_date, car_num, contact, create_from, create_time, end_date, \",\n \"is_owner, mcard_deposit, mcard_rule_id, mcard_status, member_detail_id, member_id, \",\n \"park_id, park_port_ids, realname, show_card, stop_days, stop_time, sync_status, \",\n \"sync_to_local, update_time\",\n \"from pwp_mcard_member\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"address\", property=\"address\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"begin_date\", property=\"beginDate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"car_num\", property=\"carNum\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"contact\", property=\"contact\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"create_from\", property=\"createFrom\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"end_date\", property=\"endDate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_owner\", property=\"isOwner\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"mcard_deposit\", property=\"mcardDeposit\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mcard_rule_id\", property=\"mcardRuleId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"mcard_status\", property=\"mcardStatus\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"member_detail_id\", property=\"memberDetailId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"member_id\", property=\"memberId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"park_id\", property=\"parkId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"park_port_ids\", property=\"parkPortIds\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"realname\", property=\"realname\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"show_card\", property=\"showCard\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"stop_days\", property=\"stopDays\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stop_time\", property=\"stopTime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sync_status\", property=\"syncStatus\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"sync_to_local\", property=\"syncToLocal\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.VARCHAR)\n })\n PwpMcardMember selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "8ec37808de6954f75ad09ec65c1f3853", "score": "0.46494308", "text": "Integer insert(TOriginMaterialInfo record);", "title": "" }, { "docid": "e4a08a2d5cab71b7eb809d32151b9b34", "score": "0.4647333", "text": "@Select({\n \"select\",\n \"ID, CITY_CD, ZIPCD, PREF, CITY, ADDR, PREF_KANA, CITY_KANA, ADDR_KANA, UPDATED_AT, \",\n \"CREATED_AT, LOCK_VERSION, DELETED_FLG\",\n \"from ZIPCD_MASTER\",\n \"where ID = #{id,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"ID\", property=\"id\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"CITY_CD\", property=\"cityCd\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"ZIPCD\", property=\"zipcd\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"PREF\", property=\"pref\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CITY\", property=\"city\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ADDR\", property=\"addr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"PREF_KANA\", property=\"prefKana\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CITY_KANA\", property=\"cityKana\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ADDR_KANA\", property=\"addrKana\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"UPDATED_AT\", property=\"updatedAt\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"CREATED_AT\", property=\"createdAt\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"LOCK_VERSION\", property=\"lockVersion\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"DELETED_FLG\", property=\"deletedFlg\", jdbcType=JdbcType.INTEGER)\n })\n ZipcdMaster selectByPrimaryKey(Long id);", "title": "" }, { "docid": "2fd01c294be70d40c427246350babe1d", "score": "0.46458453", "text": "public abstract String getSql();", "title": "" }, { "docid": "85caebf842f4d3f6cc9319130abfe362", "score": "0.46382567", "text": "public interface OrderMapper {\n\n @Select(\"select o.id, sku_id, o.uuid, s.name as sku, agent_id, remark, status, create_time, \" +\n \"update_time, price, gathering_info, primary_contact, primary_contact_email, \" +\n \"primary_contact_phone, primary_contact_wechat, secondary_contact, \" +\n \"secondary_contact_email, secondary_contact_phone, secondary_contact_wechat,\" +\n \"reference_number, vendor_phone, agent_order_id, modified_price, refund\" +\n \" from `order` o left join `sku` s on o.sku_id = s.id where o.id = #{id}\")\n @Results({\n @Result(column = \"id\", property = \"id\"),\n @Result(column = \"sku_id\", property = \"skuId\"),\n @Result(column = \"uuid\", property = \"uuid\"),\n @Result(column = \"agent_id\", property = \"agentId\"),\n @Result(column = \"remark\", property = \"remark\"),\n @Result(column = \"status\", property = \"status\"),\n @Result(column = \"create_time\", property = \"createTime\"),\n @Result(column = \"update_time\", property = \"updateTime\"),\n @Result(column = \"price\", property = \"price\"),\n @Result(column = \"gathering_info\", property = \"gatheringInfo\"),\n @Result(column = \"primary_contact\", property = \"primaryContact\"),\n @Result(column = \"primary_contact_email\", property = \"primaryContactEmail\"),\n @Result(column = \"primary_contact_phone\", property = \"primaryContactPhone\"),\n @Result(column = \"primary_contact_wechat\", property = \"primaryContactWechat\"),\n @Result(column = \"secondary_contact\", property = \"secondaryContact\"),\n @Result(column = \"secondary_contact_email\", property = \"secondaryContactEmail\"),\n @Result(column = \"secondary_contact_phone\", property = \"secondaryContactPhone\"),\n @Result(column = \"secondary_contact_wechat\", property = \"secondaryContactWechat\"),\n @Result(column = \"reference_number\", property = \"referenceNumber\"),\n @Result(column = \"vendor_phone\", property = \"vendorPhone\"),\n @Result(column = \"agent_order_id\", property = \"agentOrderId\"),\n @Result(column = \"modified_price\", property = \"modifiedPrice\"),\n @Result(column = \"refund\", property = \"refund\")\n })\n Order findById(int id);\n\n @Select(\"select o.id, o.sku_id, o.uuid, o.agent_id, o.remark, o.status, o.create_time, o.update_time,\" +\n \"o.price, o.gathering_info, o.primary_contact, o.primary_contact_email, o.primary_contact_phone,\" +\n \"o.primary_contact_wechat, o.secondary_contact, o.secondary_contact_email, o.secondary_contact_phone,\" +\n \"o.secondary_contact_wechat, o.reference_number, s.name, o.vendor_phone, o.agent_order_id, o.modified_price, o.refund \" +\n \"from `order` o left join `sku` s on o.sku_id = s.id \" +\n \"where agent_id = #{agentId} order by o.id desc\")\n @Results({\n @Result(column = \"id\", property = \"id\"),\n @Result(column = \"sku_id\", property = \"skuId\"),\n @Result(column = \"uuid\", property = \"uuid\"),\n @Result(column = \"agent_id\", property = \"agentId\"),\n @Result(column = \"remark\", property = \"remark\"),\n @Result(column = \"status\", property = \"status\"),\n @Result(column = \"create_time\", property = \"createTime\"),\n @Result(column = \"update_time\", property = \"updateTime\"),\n @Result(column = \"price\", property = \"price\"),\n @Result(column = \"gathering_info\", property = \"gatheringInfo\"),\n @Result(column = \"primary_contact\", property = \"primaryContact\"),\n @Result(column = \"primary_contact_email\", property = \"primaryContactEmail\"),\n @Result(column = \"primary_contact_phone\", property = \"primaryContactPhone\"),\n @Result(column = \"primary_contact_wechat\", property = \"primaryContactWechat\"),\n @Result(column = \"secondary_contact\", property = \"secondaryContact\"),\n @Result(column = \"secondary_contact_email\", property = \"secondaryContactEmail\"),\n @Result(column = \"secondary_contact_phone\", property = \"secondaryContactPhone\"),\n @Result(column = \"secondary_contact_wechat\", property = \"secondaryContactWechat\"),\n @Result(column = \"reference_number\", property = \"referenceNumber\"),\n @Result(column = \"name\", property = \"sku\"),\n @Result(column = \"vendor_phone\", property = \"vendorPhone\"),\n @Result(column = \"agent_order_id\", property = \"agentOrderId\"),\n @Result(column = \"modified_price\", property = \"modifiedPrice\"),\n @Result(column = \"refund\", property = \"refund\")\n })\n List<Order> findByAgentId(@Param(\"agentId\") int agentId, RowBounds rowBounds);\n\n @Select(\"<script>\" +\n \"select o.id, o.sku_id, o.uuid, o.agent_id, o.remark, o.status, o.create_time, o.update_time,\" +\n \"o.price, o.gathering_info, o.primary_contact, o.primary_contact_email, o.primary_contact_phone,\" +\n \"o.primary_contact_wechat, o.secondary_contact, o.secondary_contact_email, o.secondary_contact_phone,\" +\n \"o.secondary_contact_wechat, o.reference_number, s.name, o.vendor_phone, o.agent_order_id, o.modified_price, o.refund \" +\n \"from `order` o left join `sku` s on o.sku_id = s.id \" +\n \"where false \" +\n \"<if test ='ids != null and ids.size() > 0'>\" +\n \"or o.id in \" +\n \"<foreach collection='ids' open='(' close=')' item='id' separator=','>#{id}\" +\n \"</foreach>\" +\n \"</if>\" +\n \"</script>\"\n )\n @Results({\n @Result(column = \"id\", property = \"id\"),\n @Result(column = \"sku_id\", property = \"skuId\"),\n @Result(column = \"uuid\", property = \"uuid\"),\n @Result(column = \"agent_id\", property = \"agentId\"),\n @Result(column = \"remark\", property = \"remark\"),\n @Result(column = \"status\", property = \"status\"),\n @Result(column = \"create_time\", property = \"createTime\"),\n @Result(column = \"update_time\", property = \"updateTime\"),\n @Result(column = \"price\", property = \"price\"),\n @Result(column = \"gathering_info\", property = \"gatheringInfo\"),\n @Result(column = \"primary_contact\", property = \"primaryContact\"),\n @Result(column = \"primary_contact_email\", property = \"primaryContactEmail\"),\n @Result(column = \"primary_contact_phone\", property = \"primaryContactPhone\"),\n @Result(column = \"primary_contact_wechat\", property = \"primaryContactWechat\"),\n @Result(column = \"secondary_contact\", property = \"secondaryContact\"),\n @Result(column = \"secondary_contact_email\", property = \"secondaryContactEmail\"),\n @Result(column = \"secondary_contact_phone\", property = \"secondaryContactPhone\"),\n @Result(column = \"secondary_contact_wechat\", property = \"secondaryContactWechat\"),\n @Result(column = \"reference_number\", property = \"referenceNumber\"),\n @Result(column = \"name\", property = \"sku\"),\n @Result(column = \"vendor_phone\", property = \"vendorPhone\"),\n @Result(column = \"agent_order_id\", property = \"agentOrderId\"),\n @Result(column = \"modified_price\", property = \"modifiedPrice\"),\n @Result(column = \"refund\", property = \"refund\")\n })\n List<Order> findByIds(@Param(\"ids\") List<Integer> ids);\n\n\n @Select(\"<script>\" +\n \"select o.id, o.sku_id, o.uuid, o.agent_id, o.remark, o.status, o.create_time, o.update_time,\" +\n \"o.price, o.gathering_info, o.primary_contact, o.primary_contact_email, o.primary_contact_phone,\" +\n \"o.primary_contact_wechat, o.secondary_contact, o.secondary_contact_email, o.secondary_contact_phone,\" +\n \"o.secondary_contact_wechat, o.reference_number, s.name, o.vendor_phone, o.agent_order_id, o.modified_price, o.refund \" +\n \"from `order` o left join `sku` s on o.sku_id = s.id \" +\n \"where agent_id = #{agentId} \" +\n \"<if test =\\\"keyword != null and keyword != ''\\\"> and (s.name like CONCAT('%',#{keyword},'%') or o.primary_contact like CONCAT(#{keyword}, '%') ) </if> \" +\n \"<if test =\\\"uuid != null and uuid != ''\\\">and (o.uuid like CONCAT('%',#{uuid},'%') or o.agent_order_id like CONCAT('%',#{uuid},'%')) </if> \" +\n \"<if test =\\\"referenceNumber != null and referenceNumber != ''\\\">and o.reference_number like CONCAT('%',#{referenceNumber},'%') </if> \" +\n \"<if test =\\\"status != null and status > 0\\\">and o.status = #{status} </if> \" +\n \" order by o.id desc\" +\n \"</script>\")\n @Results({\n @Result(column = \"id\", property = \"id\"),\n @Result(column = \"sku_id\", property = \"skuId\"),\n @Result(column = \"uuid\", property = \"uuid\"),\n @Result(column = \"agent_id\", property = \"agentId\"),\n @Result(column = \"remark\", property = \"remark\"),\n @Result(column = \"status\", property = \"status\"),\n @Result(column = \"create_time\", property = \"createTime\"),\n @Result(column = \"update_time\", property = \"updateTime\"),\n @Result(column = \"price\", property = \"price\"),\n @Result(column = \"gathering_info\", property = \"gatheringInfo\"),\n @Result(column = \"primary_contact\", property = \"primaryContact\"),\n @Result(column = \"primary_contact_email\", property = \"primaryContactEmail\"),\n @Result(column = \"primary_contact_phone\", property = \"primaryContactPhone\"),\n @Result(column = \"primary_contact_wechat\", property = \"primaryContactWechat\"),\n @Result(column = \"secondary_contact\", property = \"secondaryContact\"),\n @Result(column = \"secondary_contact_email\", property = \"secondaryContactEmail\"),\n @Result(column = \"secondary_contact_phone\", property = \"secondaryContactPhone\"),\n @Result(column = \"secondary_contact_wechat\", property = \"secondaryContactWechat\"),\n @Result(column = \"reference_number\", property = \"referenceNumber\"),\n @Result(column = \"name\", property = \"sku\"),\n @Result(column = \"vendor_phone\", property = \"vendorPhone\"),\n @Result(column = \"agent_order_id\", property = \"agentOrderId\"),\n @Result(column = \"modified_price\", property = \"modifiedPrice\"),\n @Result(column = \"refund\", property = \"refund\")\n })\n List<Order> findByAgentIdAndMultiFields(@Param(\"agentId\") int agentId,\n @Param(\"uuid\") String uuid,\n @Param(\"keyword\") String keyword,\n @Param(\"referenceNumber\") String referenceNumber,\n @Param(\"status\") int status,\n RowBounds rowBounds);\n\n @Select(\"<script>\" +\n \"select o.id, o.sku_id, o.uuid, o.agent_id, o.remark, o.status, o.create_time, o.update_time,\" +\n \"o.price, o.gathering_info, o.primary_contact, o.primary_contact_email, o.primary_contact_phone,\" +\n \"o.primary_contact_wechat, o.secondary_contact, o.secondary_contact_email, o.secondary_contact_phone,\" +\n \"o.secondary_contact_wechat, o.reference_number, s.name, o.vendor_phone, o.agent_order_id, o.modified_price, o.refund \" +\n \"from `order` o left join `sku` s on o.sku_id = s.id \" +\n \"where agent_id = #{agentId} and o.id in (SELECT order_id FROM `order_ticket` GROUP BY order_id,ticket_date HAVING datediff(ticket_date,#{ticketDate}) = 0) \" +\n \" order by o.id desc\" +\n \"</script>\")\n @Results({\n @Result(column = \"id\", property = \"id\"),\n @Result(column = \"sku_id\", property = \"skuId\"),\n @Result(column = \"uuid\", property = \"uuid\"),\n @Result(column = \"agent_id\", property = \"agentId\"),\n @Result(column = \"remark\", property = \"remark\"),\n @Result(column = \"status\", property = \"status\"),\n @Result(column = \"create_time\", property = \"createTime\"),\n @Result(column = \"update_time\", property = \"updateTime\"),\n @Result(column = \"price\", property = \"price\"),\n @Result(column = \"gathering_info\", property = \"gatheringInfo\"),\n @Result(column = \"primary_contact\", property = \"primaryContact\"),\n @Result(column = \"primary_contact_email\", property = \"primaryContactEmail\"),\n @Result(column = \"primary_contact_phone\", property = \"primaryContactPhone\"),\n @Result(column = \"primary_contact_wechat\", property = \"primaryContactWechat\"),\n @Result(column = \"secondary_contact\", property = \"secondaryContact\"),\n @Result(column = \"secondary_contact_email\", property = \"secondaryContactEmail\"),\n @Result(column = \"secondary_contact_phone\", property = \"secondaryContactPhone\"),\n @Result(column = \"secondary_contact_wechat\", property = \"secondaryContactWechat\"),\n @Result(column = \"reference_number\", property = \"referenceNumber\"),\n @Result(column = \"name\", property = \"sku\"),\n @Result(column = \"vendor_phone\", property = \"vendorPhone\"),\n @Result(column = \"agent_order_id\", property = \"agentOrderId\"),\n @Result(column = \"modified_price\", property = \"modifiedPrice\"),\n @Result(column = \"refund\", property = \"refund\")\n })\n List<Order> findByAgentIdAndTicketDate(@Param(\"agentId\") int agentId,\n @Param(\"ticketDate\") Date ticketDate,\n RowBounds rowBounds);\n @Select(\"<script>\" +\n \"select o.id, o.sku_id, o.uuid, o.agent_id, o.remark, o.status, o.create_time, o.update_time,\" +\n \"o.price, o.gathering_info, o.primary_contact, o.primary_contact_email, o.primary_contact_phone,\" +\n \"o.primary_contact_wechat, o.secondary_contact, o.secondary_contact_email, o.secondary_contact_phone,\" +\n \"o.secondary_contact_wechat, o.reference_number, s.name, o.vendor_phone, o.agent_order_id, o.modified_price, o.refund \" +\n \"from `order` o left join `sku` s on o.sku_id = s.id \" +\n \"where agent_id = #{agentId} and datediff(o.create_time,#{createTime}) = 0 \" +\n \" order by o.id desc\" +\n \"</script>\")\n @Results({\n @Result(column = \"id\", property = \"id\"),\n @Result(column = \"sku_id\", property = \"skuId\"),\n @Result(column = \"uuid\", property = \"uuid\"),\n @Result(column = \"agent_id\", property = \"agentId\"),\n @Result(column = \"remark\", property = \"remark\"),\n @Result(column = \"status\", property = \"status\"),\n @Result(column = \"create_time\", property = \"createTime\"),\n @Result(column = \"update_time\", property = \"updateTime\"),\n @Result(column = \"price\", property = \"price\"),\n @Result(column = \"gathering_info\", property = \"gatheringInfo\"),\n @Result(column = \"primary_contact\", property = \"primaryContact\"),\n @Result(column = \"primary_contact_email\", property = \"primaryContactEmail\"),\n @Result(column = \"primary_contact_phone\", property = \"primaryContactPhone\"),\n @Result(column = \"primary_contact_wechat\", property = \"primaryContactWechat\"),\n @Result(column = \"secondary_contact\", property = \"secondaryContact\"),\n @Result(column = \"secondary_contact_email\", property = \"secondaryContactEmail\"),\n @Result(column = \"secondary_contact_phone\", property = \"secondaryContactPhone\"),\n @Result(column = \"secondary_contact_wechat\", property = \"secondaryContactWechat\"),\n @Result(column = \"reference_number\", property = \"referenceNumber\"),\n @Result(column = \"name\", property = \"sku\"),\n @Result(column = \"vendor_phone\", property = \"vendorPhone\"),\n @Result(column = \"agent_order_id\", property = \"agentOrderId\"),\n @Result(column = \"modified_price\", property = \"modifiedPrice\"),\n @Result(column = \"refund\", property = \"refund\")\n })\n List<Order> findByAgentIdAndCreateTime(@Param(\"agentId\") int agentId,\n @Param(\"createTime\") Date createTime,\n RowBounds rowBounds);\n\n @Select(\"<script>\" +\n \"select o.id, o.sku_id, o.uuid, o.agent_id, o.remark, o.status, o.create_time, o.update_time,\" +\n \"o.price, o.gathering_info, o.primary_contact, o.primary_contact_email, o.primary_contact_phone,\" +\n \"o.primary_contact_wechat, o.secondary_contact, o.secondary_contact_email, o.secondary_contact_phone,\" +\n \"o.secondary_contact_wechat, o.reference_number, s.name, o.vendor_phone, o.agent_order_id, o.modified_price, o.refund \" +\n \"from `order` o left join `sku` s on o.sku_id = s.id \" +\n \"where s.vendor_id = #{vendorId} \" +\n \" order by o.id desc\" +\n \"</script>\")\n @Results({\n @Result(column = \"id\", property = \"id\"),\n @Result(column = \"sku_id\", property = \"skuId\"),\n @Result(column = \"uuid\", property = \"uuid\"),\n @Result(column = \"agent_id\", property = \"agentId\"),\n @Result(column = \"remark\", property = \"remark\"),\n @Result(column = \"status\", property = \"status\"),\n @Result(column = \"create_time\", property = \"createTime\"),\n @Result(column = \"update_time\", property = \"updateTime\"),\n @Result(column = \"price\", property = \"price\"),\n @Result(column = \"gathering_info\", property = \"gatheringInfo\"),\n @Result(column = \"primary_contact\", property = \"primaryContact\"),\n @Result(column = \"primary_contact_email\", property = \"primaryContactEmail\"),\n @Result(column = \"primary_contact_phone\", property = \"primaryContactPhone\"),\n @Result(column = \"primary_contact_wechat\", property = \"primaryContactWechat\"),\n @Result(column = \"secondary_contact\", property = \"secondaryContact\"),\n @Result(column = \"secondary_contact_email\", property = \"secondaryContactEmail\"),\n @Result(column = \"secondary_contact_phone\", property = \"secondaryContactPhone\"),\n @Result(column = \"secondary_contact_wechat\", property = \"secondaryContactWechat\"),\n @Result(column = \"reference_number\", property = \"referenceNumber\"),\n @Result(column = \"name\", property = \"sku\"),\n @Result(column = \"vendor_phone\", property = \"vendorPhone\"),\n @Result(column = \"agent_order_id\", property = \"agentOrderId\"),\n @Result(column = \"modified_price\", property = \"modifiedPrice\"),\n @Result(column = \"refund\", property = \"refund\")\n })\n List<Order> findBySkuIds(@Param(\"vendorId\") int vendorId,\n RowBounds rowBounds);\n\n\n @Select(\"select o.id, o.sku_id, o.uuid, o.agent_id, o.remark, o.status, o.create_time, o.update_time,\" +\n \"o.price, o.gathering_info, o.primary_contact, o.primary_contact_email, o.primary_contact_phone,\" +\n \"o.primary_contact_wechat, o.secondary_contact, o.secondary_contact_email, o.secondary_contact_phone,\" +\n \"o.secondary_contact_wechat, o.reference_number, s.name, o.vendor_phone, o.agent_order_id, o.modified_price, o.refund \" +\n \"from `order` o left join `sku` s on o.sku_id = s.id order by o.id desc\")\n @Results({\n @Result(column = \"id\", property = \"id\"),\n @Result(column = \"sku_id\", property = \"skuId\"),\n @Result(column = \"uuid\", property = \"uuid\"),\n @Result(column = \"agent_id\", property = \"agentId\"),\n @Result(column = \"remark\", property = \"remark\"),\n @Result(column = \"status\", property = \"status\"),\n @Result(column = \"create_time\", property = \"createTime\"),\n @Result(column = \"update_time\", property = \"updateTime\"),\n @Result(column = \"price\", property = \"price\"),\n @Result(column = \"gathering_info\", property = \"gatheringInfo\"),\n @Result(column = \"primary_contact\", property = \"primaryContact\"),\n @Result(column = \"primary_contact_email\", property = \"primaryContactEmail\"),\n @Result(column = \"primary_contact_phone\", property = \"primaryContactPhone\"),\n @Result(column = \"primary_contact_wechat\", property = \"primaryContactWechat\"),\n @Result(column = \"secondary_contact\", property = \"secondaryContact\"),\n @Result(column = \"secondary_contact_email\", property = \"secondaryContactEmail\"),\n @Result(column = \"secondary_contact_phone\", property = \"secondaryContactPhone\"),\n @Result(column = \"secondary_contact_wechat\", property = \"secondaryContactWechat\"),\n @Result(column = \"reference_number\", property = \"referenceNumber\"),\n @Result(column = \"name\", property = \"sku\"),\n @Result(column = \"vendor_phone\", property = \"vendorPhone\"),\n @Result(column = \"agent_order_id\", property = \"agentOrderId\"),\n @Result(column = \"modified_price\", property = \"modifiedPrice\"),\n @Result(column = \"refund\", property = \"refund\")\n })\n List<Order> findAll(RowBounds rowBounds);\n\n\n @Select(\"<script>\" +\n \"select o.id, o.sku_id, o.uuid, o.agent_id, o.remark, o.status, o.create_time, o.update_time,\" +\n \"o.price, o.gathering_info, o.primary_contact, o.primary_contact_email, o.primary_contact_phone,\" +\n \"o.primary_contact_wechat, o.secondary_contact, o.secondary_contact_email, o.secondary_contact_phone,\" +\n \"o.secondary_contact_wechat, o.reference_number, s.name, o.vendor_phone, agent.name as agent_name, o.agent_order_id, o.modified_price, o.refund \" +\n \"from `order` o left join `sku` s on o.sku_id = s.id left join agent on o.agent_id = agent.id \" +\n \"where 1 = 1 \" +\n \"<if test =\\\"keyword != null and keyword != ''\\\"> and (s.name like CONCAT('%',#{keyword},'%') or o.primary_contact like CONCAT(#{keyword}, '%') or agent.name like CONCAT(#{keyword}, '%')) </if> \" +\n \"<if test =\\\"uuid != null and uuid != ''\\\">and (o.uuid like CONCAT('%',#{uuid},'%') or o.agent_order_id like CONCAT('%',#{uuid},'%')) </if> \" +\n \"<if test =\\\"referenceNumber != null and referenceNumber != ''\\\">and o.reference_number like CONCAT('%',#{referenceNumber},'%') </if> \" +\n \"<if test =\\\"status != null and status > 0\\\">and o.status = #{status} </if> \" +\n \" order by o.id desc\" +\n \"</script>\")\n @Results({\n @Result(column = \"id\", property = \"id\"),\n @Result(column = \"sku_id\", property = \"skuId\"),\n @Result(column = \"uuid\", property = \"uuid\"),\n @Result(column = \"agent_id\", property = \"agentId\"),\n @Result(column = \"remark\", property = \"remark\"),\n @Result(column = \"status\", property = \"status\"),\n @Result(column = \"create_time\", property = \"createTime\"),\n @Result(column = \"update_time\", property = \"updateTime\"),\n @Result(column = \"price\", property = \"price\"),\n @Result(column = \"gathering_info\", property = \"gatheringInfo\"),\n @Result(column = \"primary_contact\", property = \"primaryContact\"),\n @Result(column = \"primary_contact_email\", property = \"primaryContactEmail\"),\n @Result(column = \"primary_contact_phone\", property = \"primaryContactPhone\"),\n @Result(column = \"primary_contact_wechat\", property = \"primaryContactWechat\"),\n @Result(column = \"secondary_contact\", property = \"secondaryContact\"),\n @Result(column = \"secondary_contact_email\", property = \"secondaryContactEmail\"),\n @Result(column = \"secondary_contact_phone\", property = \"secondaryContactPhone\"),\n @Result(column = \"secondary_contact_wechat\", property = \"secondaryContactWechat\"),\n @Result(column = \"reference_number\", property = \"referenceNumber\"),\n @Result(column = \"name\", property = \"sku\"),\n @Result(column = \"vendor_phone\", property = \"vendorPhone\"),\n @Result(column = \"agent_name\", property = \"agentName\"),\n @Result(column = \"agent_order_id\", property = \"agentOrderId\"),\n @Result(column = \"modified_price\", property = \"modifiedPrice\"),\n @Result(column = \"refund\", property = \"refund\")\n })\n List<Order> findAllByMultiFields(@Param(\"uuid\") String uuid,\n @Param(\"keyword\") String keyword,\n @Param(\"referenceNumber\") String referenceNumber,\n @Param(\"status\") int status,\n RowBounds rowBounds);\n\n @Select(\"<script>\" +\n \"select o.id, o.sku_id, o.uuid, o.agent_id, o.remark, o.status, o.create_time, o.update_time,\" +\n \"o.price, o.gathering_info, o.primary_contact, o.primary_contact_email, o.primary_contact_phone,\" +\n \"o.primary_contact_wechat, o.secondary_contact, o.secondary_contact_email, o.secondary_contact_phone,\" +\n \"o.secondary_contact_wechat, o.reference_number, s.name, o.vendor_phone, agent.name as agent_name, o.agent_order_id, o.modified_price, o.refund \" +\n \"from `order` o left join `sku` s on o.sku_id = s.id left join agent on o.agent_id = agent.id \" +\n \"where o.id in (SELECT order_id FROM `order_ticket` GROUP BY order_id,ticket_date HAVING datediff(ticket_date,#{ticketDate}) = 0) \" +\n \" order by o.id desc\" +\n \"</script>\")\n @Results({\n @Result(column = \"id\", property = \"id\"),\n @Result(column = \"sku_id\", property = \"skuId\"),\n @Result(column = \"uuid\", property = \"uuid\"),\n @Result(column = \"agent_id\", property = \"agentId\"),\n @Result(column = \"remark\", property = \"remark\"),\n @Result(column = \"status\", property = \"status\"),\n @Result(column = \"create_time\", property = \"createTime\"),\n @Result(column = \"update_time\", property = \"updateTime\"),\n @Result(column = \"price\", property = \"price\"),\n @Result(column = \"gathering_info\", property = \"gatheringInfo\"),\n @Result(column = \"primary_contact\", property = \"primaryContact\"),\n @Result(column = \"primary_contact_email\", property = \"primaryContactEmail\"),\n @Result(column = \"primary_contact_phone\", property = \"primaryContactPhone\"),\n @Result(column = \"primary_contact_wechat\", property = \"primaryContactWechat\"),\n @Result(column = \"secondary_contact\", property = \"secondaryContact\"),\n @Result(column = \"secondary_contact_email\", property = \"secondaryContactEmail\"),\n @Result(column = \"secondary_contact_phone\", property = \"secondaryContactPhone\"),\n @Result(column = \"secondary_contact_wechat\", property = \"secondaryContactWechat\"),\n @Result(column = \"reference_number\", property = \"referenceNumber\"),\n @Result(column = \"name\", property = \"sku\"),\n @Result(column = \"vendor_phone\", property = \"vendorPhone\"),\n @Result(column = \"agent_name\", property = \"agentName\"),\n @Result(column = \"agent_order_id\", property = \"agentOrderId\"),\n @Result(column = \"modified_price\", property = \"modifiedPrice\"),\n @Result(column = \"refund\", property = \"refund\")\n })\n List<Order> findAllByTicketDate(@Param(\"ticketDate\") Date ticketDate,\n RowBounds rowBounds);\n\n @Select(\"<script>\" +\n \"select o.id, o.sku_id, o.uuid, o.agent_id, o.remark, o.status, o.create_time, o.update_time,\" +\n \"o.price, o.gathering_info, o.primary_contact, o.primary_contact_email, o.primary_contact_phone,\" +\n \"o.primary_contact_wechat, o.secondary_contact, o.secondary_contact_email, o.secondary_contact_phone,\" +\n \"o.secondary_contact_wechat, o.reference_number, s.name, o.vendor_phone, agent.name as agent_name, o.agent_order_id, o.modified_price, o.refund \" +\n \"from `order` o left join `sku` s on o.sku_id = s.id left join agent on o.agent_id = agent.id \" +\n \"where datediff(o.create_time,#{createTime}) = 0 \" +\n \" order by o.id desc\" +\n \"</script>\")\n @Results({\n @Result(column = \"id\", property = \"id\"),\n @Result(column = \"sku_id\", property = \"skuId\"),\n @Result(column = \"uuid\", property = \"uuid\"),\n @Result(column = \"agent_id\", property = \"agentId\"),\n @Result(column = \"remark\", property = \"remark\"),\n @Result(column = \"status\", property = \"status\"),\n @Result(column = \"create_time\", property = \"createTime\"),\n @Result(column = \"update_time\", property = \"updateTime\"),\n @Result(column = \"price\", property = \"price\"),\n @Result(column = \"gathering_info\", property = \"gatheringInfo\"),\n @Result(column = \"primary_contact\", property = \"primaryContact\"),\n @Result(column = \"primary_contact_email\", property = \"primaryContactEmail\"),\n @Result(column = \"primary_contact_phone\", property = \"primaryContactPhone\"),\n @Result(column = \"primary_contact_wechat\", property = \"primaryContactWechat\"),\n @Result(column = \"secondary_contact\", property = \"secondaryContact\"),\n @Result(column = \"secondary_contact_email\", property = \"secondaryContactEmail\"),\n @Result(column = \"secondary_contact_phone\", property = \"secondaryContactPhone\"),\n @Result(column = \"secondary_contact_wechat\", property = \"secondaryContactWechat\"),\n @Result(column = \"reference_number\", property = \"referenceNumber\"),\n @Result(column = \"name\", property = \"sku\"),\n @Result(column = \"vendor_phone\", property = \"vendorPhone\"),\n @Result(column = \"agent_name\", property = \"agentName\"),\n @Result(column = \"agent_order_id\", property = \"agentOrderId\"),\n @Result(column = \"modified_price\", property = \"modifiedPrice\"),\n @Result(column = \"refund\", property = \"refund\")\n })\n List<Order> findAllByCreateTime(@Param(\"createTime\") Date createTime,\n RowBounds rowBounds);\n\n @Select(\"select * from `order` where agent_id = #{agentId} and status = #{status} order by o.id desc\")\n @Results({\n @Result(column = \"id\", property = \"id\"),\n @Result(column = \"sku_id\", property = \"skuId\"),\n @Result(column = \"uuid\", property = \"uuid\"),\n @Result(column = \"agent_id\", property = \"agentId\"),\n @Result(column = \"remark\", property = \"remark\"),\n @Result(column = \"status\", property = \"status\"),\n @Result(column = \"create_time\", property = \"createTime\"),\n @Result(column = \"update_time\", property = \"updateTime\"),\n @Result(column = \"price\", property = \"price\"),\n @Result(column = \"gathering_info\", property = \"gatheringInfo\"),\n @Result(column = \"primary_contact\", property = \"primaryContact\"),\n @Result(column = \"primary_contact_email\", property = \"primaryContactEmail\"),\n @Result(column = \"primary_contact_phone\", property = \"primaryContactPhone\"),\n @Result(column = \"primary_contact_wechat\", property = \"primaryContactWechat\"),\n @Result(column = \"secondary_contact\", property = \"secondaryContact\"),\n @Result(column = \"secondary_contact_email\", property = \"secondaryContactEmail\"),\n @Result(column = \"secondary_contact_phone\", property = \"secondaryContactPhone\"),\n @Result(column = \"secondary_contact_wechat\", property = \"secondaryContactWechat\"),\n @Result(column = \"reference_number\", property = \"referenceNumber\"),\n @Result(column = \"vendor_phone\", property = \"vendorPhone\"),\n @Result(column = \"agent_order_id\", property = \"agentOrderId\"),\n @Result(column = \"modified_price\", property = \"modifiedPrice\"),\n @Result(column = \"refund\", property = \"refund\")\n\n })\n List<Order> findByAgentIdAndStatus(@Param(\"agentId\") int agentId, @Param(\"status\") int status, RowBounds rowBounds);\n\n @Insert(\"insert into `order` (sku_id, uuid, agent_id, remark, status, price, gathering_info, \" +\n \"primary_contact, primary_contact_email, primary_contact_phone, primary_contact_wechat, \" +\n \"secondary_contact, secondary_contact_email, secondary_contact_phone, \" +\n \"secondary_contact_wechat, reference_number, vendor_phone, agent_order_id, modified_price, refund) \" +\n \"values(#{skuId}, #{uuid}, #{agentId}, #{remark}, #{status}, #{price}, #{gatheringInfo}, \" +\n \"#{primaryContact}, #{primaryContactEmail}, #{primaryContactPhone}, #{primaryContactWechat}, \" +\n \"#{secondaryContact}, #{secondaryContactEmail}, #{secondaryContactPhone}, \" +\n \"#{secondaryContactWechat}, #{referenceNumber}, #{vendorPhone}, #{agentOrderId}, #{price},0)\")\n @Options(useGeneratedKeys = true, keyColumn = \"id\", keyProperty = \"id\", flushCache = Options.FlushCachePolicy.DEFAULT)\n int create(Order order);\n\n @Update(\"update `order` set \" +\n \"remark = #{remark} ,\" +\n \"price = #{price}, \" +\n \"gathering_info = #{gatheringInfo}, \" +\n \"reference_number = #{referenceNumber}, \" +\n \"primary_contact = #{primaryContact}, \" +\n \"primary_contact_email = #{primaryContactEmail}, \" +\n \"primary_contact_phone = #{primaryContactPhone}, \" +\n \"primary_contact_wechat = #{primaryContactWechat}, \" +\n \"secondary_contact = #{secondaryContact}, \" +\n \"secondary_contact_email = #{secondaryContactEmail}, \" +\n \"secondary_contact_phone = #{secondaryContactPhone}, \" +\n \"secondary_contact_wechat = #{secondaryContactWechat}, \" +\n \"vendor_phone = #{vendorPhone}, \" +\n \"remark = #{remark},\" +\n \"agent_order_id = #{agentOrderId}, \" +\n \"modified_price = #{modifiedPrice}, \" +\n \"refund = #{refund} \" +\n \"where id = #{id}\")\n int updateOrderInfo(Order order);\n\n @Update(\"update `order` set status = #{newStatus} where id = #{id} and status = #{oldStatus}\")\n int updateOrderStatus(@Param(\"id\") int id, @Param(\"oldStatus\") int oldStatus, @Param(\"newStatus\") int newStatus);\n\n @Update(\"update `order` set reference_number = #{referenceNumber} where id = #{id}\")\n int updateReferenceNumber(@Param(\"id\") int id, @Param(\"referenceNumber\") String referenceNumber);\n\n\n @Select(\"select count(*) from `order` where status = #{status}\")\n int countByStatus(@Param(\"status\") int status);\n\n @Select(\"select count(*) from `order` where status = #{status} and agent_id = #{agentId}\")\n int countByStatusAndAgentId(@Param(\"status\") int status, @Param(\"agentId\") int agentId);\n\n @Select(\"select * from `order` where agent_order_id = #{agentOrderId}\")\n @Results({\n @Result(column = \"id\", property = \"id\"),\n @Result(column = \"sku_id\", property = \"skuId\"),\n @Result(column = \"uuid\", property = \"uuid\"),\n @Result(column = \"agent_id\", property = \"agentId\"),\n @Result(column = \"remark\", property = \"remark\"),\n @Result(column = \"status\", property = \"status\"),\n @Result(column = \"create_time\", property = \"createTime\"),\n @Result(column = \"update_time\", property = \"updateTime\"),\n @Result(column = \"price\", property = \"price\"),\n @Result(column = \"gathering_info\", property = \"gatheringInfo\"),\n @Result(column = \"primary_contact\", property = \"primaryContact\"),\n @Result(column = \"primary_contact_email\", property = \"primaryContactEmail\"),\n @Result(column = \"primary_contact_phone\", property = \"primaryContactPhone\"),\n @Result(column = \"primary_contact_wechat\", property = \"primaryContactWechat\"),\n @Result(column = \"secondary_contact\", property = \"secondaryContact\"),\n @Result(column = \"secondary_contact_email\", property = \"secondaryContactEmail\"),\n @Result(column = \"secondary_contact_phone\", property = \"secondaryContactPhone\"),\n @Result(column = \"secondary_contact_wechat\", property = \"secondaryContactWechat\"),\n @Result(column = \"reference_number\", property = \"referenceNumber\"),\n @Result(column = \"vendor_phone\", property = \"vendorPhone\"),\n @Result(column = \"agent_order_id\", property = \"agentOrderId\"),\n @Result(column = \"modified_price\", property = \"modifiedPrice\"),\n @Result(column = \"refund\", property = \"refund\")\n })\n List<Order> findByAgentOrderId(@Param(\"agentOrderId\") String agentOrderId);\n\n @Select({\"select o.id, o.sku_id, o.uuid, o.agent_id, o.remark, o.status, o.create_time, o.update_time,\",\n \"o.price, o.gathering_info, o.primary_contact, o.primary_contact_email, o.primary_contact_phone,\",\n \"o.primary_contact_wechat, o.secondary_contact, o.secondary_contact_email, o.secondary_contact_phone,\",\n \"o.secondary_contact_wechat, o.reference_number, s.name, o.vendor_phone, o.agent_order_id, o.modified_price, o.refund \",\n \"from `order` o left join `sku` s on o.sku_id = s.id \",\n \"WHERE( o.id in (SELECT `order_id` FROM `order_record` GROUP BY `order_id`\",\n \"HAVING TIMESTAMPDIFF(HOUR,MAX(operate_time),NOW())>=48) \",\n \"or o.id in(SELECT order_id FROM `order_ticket` \",\n \"GROUP BY order_id,ticket_date \",\n \"HAVING datediff(ticket_date,NOW())BETWEEN 0 AND 2) )\",\n \"AND o.status in (10,20,30,50)\"})\n @Results({\n @Result(column = \"id\", property = \"id\"),\n @Result(column = \"sku_id\", property = \"skuId\"),\n @Result(column = \"uuid\", property = \"uuid\"),\n @Result(column = \"agent_id\", property = \"agentId\"),\n @Result(column = \"remark\", property = \"remark\"),\n @Result(column = \"status\", property = \"status\"),\n @Result(column = \"create_time\", property = \"createTime\"),\n @Result(column = \"update_time\", property = \"updateTime\"),\n @Result(column = \"price\", property = \"price\"),\n @Result(column = \"gathering_info\", property = \"gatheringInfo\"),\n @Result(column = \"primary_contact\", property = \"primaryContact\"),\n @Result(column = \"primary_contact_email\", property = \"primaryContactEmail\"),\n @Result(column = \"primary_contact_phone\", property = \"primaryContactPhone\"),\n @Result(column = \"primary_contact_wechat\", property = \"primaryContactWechat\"),\n @Result(column = \"secondary_contact\", property = \"secondaryContact\"),\n @Result(column = \"secondary_contact_email\", property = \"secondaryContactEmail\"),\n @Result(column = \"secondary_contact_phone\", property = \"secondaryContactPhone\"),\n @Result(column = \"secondary_contact_wechat\", property = \"secondaryContactWechat\"),\n @Result(column = \"reference_number\", property = \"referenceNumber\"),\n @Result(column = \"name\", property = \"sku\"),\n @Result(column = \"vendor_phone\", property = \"vendorPhone\"),\n @Result(column = \"agent_name\", property = \"agentName\"),\n @Result(column = \"agent_order_id\", property = \"agentOrderId\"),\n @Result(column = \"modified_price\", property = \"modifiedPrice\"),\n @Result(column = \"refund\", property = \"refund\")\n })\n List<Order> findAllUrgentOrders();\n}", "title": "" }, { "docid": "a245aa41f58bfc5a471cd31acd805035", "score": "0.46242934", "text": "@Override\n\tpublic List<Object[]> findAllMrl() {\n\t\tString hql = \"select m.mrlId,m.mrlName,m.mrlPrice,m.mrlAmount from Material m\";\n\t\tQuery query = getSession().createQuery(hql);\n\t\tList<Object[]> objs = query.list();\n\t\tfor(Object[] obj:objs){\n\t\t\tSystem.out.println(Arrays.asList(obj));\n\t\t}\n\t\treturn objs;\n\t}", "title": "" }, { "docid": "d3f6d97b731c5541805b7b225bca6d35", "score": "0.46163192", "text": "@Override\n\tpublic String findMaterialNameById(int mrlId) {\n\t\tString hql = \"select m.mrlName from Material m where m.mrlId = ?\";\n\t\tQuery query = getSession().createQuery(hql).setInteger(0, mrlId);\n\t\treturn (String)query.uniqueResult();\n\t}", "title": "" }, { "docid": "fe4d3410b31abd002b059626575c4dc4", "score": "0.46101508", "text": "@Mapper(tableName = ScsTableName.MAJORS,resultType = Major.class)\npublic interface MajorMapper extends BaseMapper {\n\n @Override\n @SQL( \"SELECT * FROM #{TABLE_NAME};\")\n List<BaseObject> findAll();\n}", "title": "" }, { "docid": "5ef17474d0089679d17c3dabc7c6884e", "score": "0.46011707", "text": "@Select({ \"select\",\r\n\t\t\t\"SM.GENRE_SM_CD as SM_GENRE_SM_CD, SM.GENRE_SM_NM as SM_GENRE_SM_NM, SM.DISPLAY_ORDER as SM_DISPLAY_ORDER, \",\r\n\t\t\t\"SM.GENRE_LG_CD as SM_GENRE_LG_CD, SM.GENRE_MD_CD as SM_GENRE_MD_CD, SM.BIKO as SM_BIKO, \",\r\n\t\t\t\"SM.DELETE_FLG as SM_DELETE_FLG, SM.INSERT_CD as SM_INSERT_CD, SM.INSERT_DT as SM_INSERT_DT, \",\r\n\t\t\t\"SM.UPDATE_CD as SM_UPDATE_CD, SM.UPDATE_DT as SM_UPDATE_DT\", \"from GENRE_SM SM\",\r\n\t\t\t\"where SM.GENRE_SM_CD = #{genreSmCd,jdbcType=CHAR}\" })\r\n\t@ResultMap(\"com.example.sample.domain.mapper.maintenance.GenreSmMapper.BaseResultMap\")\r\n\tGenreSmEntity selectByPrimaryKey(String genreSmCd);", "title": "" }, { "docid": "205a7bacd9ab1099ad3bfc1f334d6d74", "score": "0.46011037", "text": "int updateByPrimaryKeySelective(TOriginMaterialInfo record);", "title": "" }, { "docid": "25b112650c2136f793c4a138f67aef64", "score": "0.4595177", "text": "@Select({\n \"select\",\n \"ID, LINE, FID, WID, FROMID, FROMTYPE, PRICE, NUM, TIME, NOTNUM, MONEY, TARIFF, \",\n \"TARIFFMONEY, MONEYTARIFF, GIFT, REMARK, COLUMNSTATE, COLUMN1, COLUMN2, COLUMN3\",\n \"from BUYERSON\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINE\", javaType=Integer.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"FID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"WID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"FROMID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"FROMTYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"PRICE\", javaType=Integer.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"NUM\", javaType=Integer.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TIME\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"NOTNUM\", javaType=Integer.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"MONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TARIFF\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TARIFFMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"MONEYTARIFF\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"GIFT\", javaType=Integer.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"REMARK\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"COLUMNSTATE\", javaType=Integer.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"COLUMN1\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"COLUMN2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"COLUMN3\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n List<Buyerson> selectAll();", "title": "" }, { "docid": "a6d5d3d5fff576592a27043cb7783c26", "score": "0.4595151", "text": "private final void addColumnInformation() {\r\n\t}", "title": "" }, { "docid": "e400a46dc7f3bb23c462f8d3009df946", "score": "0.45949072", "text": "@Override\r\n\t\tpublic ResultSet getOriginal() throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "9b7b6b707c6d15c9776df0e1d1d08485", "score": "0.45902634", "text": "public String updateByExample(Map<String, Object> parameter) {\r\n SQL sql = new SQL();\r\n sql.UPDATE(\"material_received\");\r\n \r\n sql.SET(\"id = #{record.id,jdbcType=INTEGER}\");\r\n sql.SET(\"project = #{record.project,jdbcType=INTEGER}\");\r\n sql.SET(\"node = #{record.node,jdbcType=VARCHAR}\");\r\n sql.SET(\"program = #{record.program,jdbcType=VARCHAR}\");\r\n sql.SET(\"iprocedure = #{record.iprocedure,jdbcType=VARCHAR}\");\r\n sql.SET(\"mechainc = #{record.mechainc,jdbcType=INTEGER}\");\r\n sql.SET(\"supplier = #{record.supplier,jdbcType=INTEGER}\");\r\n sql.SET(\"supplier_name = #{record.supplierName,jdbcType=VARCHAR}\");\r\n sql.SET(\"material = #{record.material,jdbcType=INTEGER}\");\r\n sql.SET(\"plate_number = #{record.plateNumber,jdbcType=VARCHAR}\");\r\n sql.SET(\"icount = #{record.icount,jdbcType=INTEGER}\");\r\n sql.SET(\"base_type = #{record.baseType,jdbcType=VARCHAR}\");\r\n sql.SET(\"material_spec = #{record.materialSpec,jdbcType=VARCHAR}\");\r\n sql.SET(\"distance = #{record.distance,jdbcType=INTEGER}\");\r\n sql.SET(\"material_price = #{record.materialPrice,jdbcType=INTEGER}\");\r\n sql.SET(\"create_date = #{record.createDate,jdbcType=VARCHAR}\");\r\n sql.SET(\"date = #{record.date,jdbcType=VARCHAR}\");\r\n sql.SET(\"unit_price = #{record.unitPrice,jdbcType=INTEGER}\");\r\n sql.SET(\"material_name = #{record.materialName,jdbcType=VARCHAR}\");\r\n sql.SET(\"unit_freight_price = #{record.unitFreightPrice,jdbcType=INTEGER}\");\r\n sql.SET(\"freight_price = #{record.freightPrice,jdbcType=INTEGER}\");\r\n sql.SET(\"staff_name = #{record.staffName,jdbcType=VARCHAR}\");\r\n sql.SET(\"staff = #{record.staff,jdbcType=INTEGER}\");\r\n sql.SET(\"remark = #{record.remark,jdbcType=VARCHAR}\");\r\n \r\n MaterialReceivedExample example = (MaterialReceivedExample) parameter.get(\"example\");\r\n applyWhere(sql, example, true);\r\n return sql.toString();\r\n }", "title": "" }, { "docid": "6880a6a659c17e928328e84f0c2a1783", "score": "0.4585405", "text": "@Override\n public String[] getListadoDeMaterias() {\n listaGrado=getDatosMateria();\n String[] tabla=new String[listaGrado.size()];\n int i=0;\n for (MateriasEntity u: listaGrado) {\n tabla[i]=\"\"+u.getNombreMateria();\n i++;\n }\n \n return tabla;\n }", "title": "" }, { "docid": "099632768a124a388e3933087e9f0ea3", "score": "0.45787242", "text": "private static CopexReturn getMaterialProdFromDB(DataBaseCommunication dbC, Locale locale, long dbKey, ArrayList<PhysicalQuantity> listPhysicalQuantity,ArrayList v){\n ArrayList<Material> listMaterial = new ArrayList();\n String query = \"SELECT L.ID_MATERIAL, M.MATERIAL_NAME, M.DESCRIPTION, M.URL_DESCRIPTION \" +\n \"FROM LINK_ACTION_MATERIAL_PROD L, MATERIAL M \" +\n \"WHERE L.ID_ACTION = \"+dbKey+\" AND L.ID_MATERIAL = M.ID_MATERIAL ; \";\n ArrayList v2 = new ArrayList();\n ArrayList<String> listFields = new ArrayList();\n listFields.add(\"L.ID_MATERIAL\");\n listFields.add(\"M.MATERIAL_NAME\");\n listFields.add(\"M.DESCRIPTION\");\n listFields.add(\"M.URL_DESCRIPTION\");\n CopexReturn cr = dbC.sendQuery(query, listFields, v2);\n if (cr.isError())\n return cr;\n int nbR = v2.size();\n for (int i=0; i<nbR; i++){\n ResultSetXML rs = (ResultSetXML)v2.get(i);\n String s = rs.getColumnData(\"L.ID_MATERIAL\");\n if (s == null)\n continue;\n long dbKeyMat = Long.parseLong(s);\n String matName = rs.getColumnData(\"M.MATERIAL_NAME\");\n String desc = rs.getColumnData(\"M.DESCRIPTION\");\n String urlDescription = rs.getColumnData(\"M.URL_DESCRIPTION\");\n Material material = new Material(dbKeyMat,CopexUtilities.getLocalText(matName, locale), CopexUtilities.getLocalText(desc, locale), urlDescription, new MaterialSourceAction(dbKey));\n // type\n ArrayList<TypeMaterial> listT = new ArrayList();\n String query2 = \"SELECT T.ID_TYPE, T.TYPE_NAME FROM MATERIAL_TYPE T, LINK_TYPE_MATERIAL L \" +\n \"WHERE L.ID_MATERIAL = \"+dbKeyMat+\" AND L.ID_TYPE = T.ID_TYPE ;\";\n\n ArrayList v4 = new ArrayList();\n ArrayList<String> listFields2 = new ArrayList();\n listFields2.add(\"T.ID_TYPE\");\n listFields2.add(\"T.TYPE_NAME\");\n\n cr = dbC.sendQuery(query2, listFields2, v4);\n if (cr.isError())\n return cr;\n int nbR2 = v4.size();\n for (int j=0; j<nbR2; j++){\n ResultSetXML rs2 = (ResultSetXML)v4.get(j);\n s = rs2.getColumnData(\"T.ID_TYPE\");\n if (s == null)\n continue;\n long dbKeyType = Long.parseLong(s);\n String typeName = rs2.getColumnData(\"T.TYPE_NAME\");\n TypeMaterial type = new TypeMaterial(dbKeyType, CopexUtilities.getLocalText( typeName, locale));\n listT.add(type);\n }\n material.setListType(listT) ;\n // parameters\n v4 = new ArrayList();\n cr = ExperimentalProcedureFromDB.getMaterialParametersFromDB(dbC,locale, dbKeyMat, listPhysicalQuantity, v4);\n if (cr.isError())\n return cr;\n\n ArrayList<Parameter> listP = (ArrayList<Parameter>)v4.get(0);\n if (listP != null)\n material.setListParameters(listP);\n\n listMaterial.add(material);\n\n }\n v.add(listMaterial);\n return new CopexReturn();\n }", "title": "" }, { "docid": "26c1ff3e0a3c183856bbbc3d020d9a9f", "score": "0.4573037", "text": "public abstract String getSQL();", "title": "" }, { "docid": "c3d895b31e6432a29b3809d9d0a64731", "score": "0.45654958", "text": "@Select({\n \"select\",\n \"ID, LINE, FID, WID, FROMID, FROMTYPE, PRICE, NUM, TIME, NOTNUM, MONEY, TARIFF, \",\n \"TARIFFMONEY, MONEYTARIFF, GIFT, REMARK, COLUMNSTATE, COLUMN1, COLUMN2, COLUMN3\",\n \"from BUYERSON\",\n \"where ID = #{id,jdbcType=VARCHAR}\",\n \"and LINE = #{line,jdbcType=DECIMAL}\",\n \"and FID = #{fid,jdbcType=VARCHAR}\",\n \"and WID = #{wid,jdbcType=VARCHAR}\"\n })\n @ConstructorArgs({\n @Arg(column=\"ID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINE\", javaType=Integer.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"FID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"WID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"FROMID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"FROMTYPE\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"PRICE\", javaType=Integer.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"NUM\", javaType=Integer.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TIME\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"NOTNUM\", javaType=Integer.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"MONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TARIFF\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TARIFFMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"MONEYTARIFF\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"GIFT\", javaType=Integer.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"REMARK\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"COLUMNSTATE\", javaType=Integer.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"COLUMN1\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"COLUMN2\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"COLUMN3\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Buyerson selectByPrimaryKey(@Param(\"id\") String id, @Param(\"line\") Integer line, @Param(\"fid\") String fid, @Param(\"wid\") String wid);", "title": "" }, { "docid": "039341e6abab86d21b75f40835a8f771", "score": "0.45492023", "text": "protected abstract String getRelationColumn();", "title": "" }, { "docid": "8d9d3f1cdef8fc50b62726b33df53c06", "score": "0.4542018", "text": "public String updateByExampleSelective(Map<String, Object> parameter) {\r\n MaterialReceived record = (MaterialReceived) parameter.get(\"record\");\r\n MaterialReceivedExample example = (MaterialReceivedExample) parameter.get(\"example\");\r\n \r\n SQL sql = new SQL();\r\n sql.UPDATE(\"material_received\");\r\n \r\n if (record.getId() != null) {\r\n sql.SET(\"id = #{record.id,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getProject() != null) {\r\n sql.SET(\"project = #{record.project,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getNode() != null) {\r\n sql.SET(\"node = #{record.node,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getProgram() != null) {\r\n sql.SET(\"program = #{record.program,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getIprocedure() != null) {\r\n sql.SET(\"iprocedure = #{record.iprocedure,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getMechainc() != null) {\r\n sql.SET(\"mechainc = #{record.mechainc,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getSupplier() != null) {\r\n sql.SET(\"supplier = #{record.supplier,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getSupplierName() != null) {\r\n sql.SET(\"supplier_name = #{record.supplierName,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getMaterial() != null) {\r\n sql.SET(\"material = #{record.material,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getPlateNumber() != null) {\r\n sql.SET(\"plate_number = #{record.plateNumber,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getIcount() != null) {\r\n sql.SET(\"icount = #{record.icount,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getBaseType() != null) {\r\n sql.SET(\"base_type = #{record.baseType,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getMaterialSpec() != null) {\r\n sql.SET(\"material_spec = #{record.materialSpec,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getDistance() != null) {\r\n sql.SET(\"distance = #{record.distance,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getMaterialPrice() != null) {\r\n sql.SET(\"material_price = #{record.materialPrice,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getCreateDate() != null) {\r\n sql.SET(\"create_date = #{record.createDate,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getDate() != null) {\r\n sql.SET(\"date = #{record.date,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getUnitPrice() != null) {\r\n sql.SET(\"unit_price = #{record.unitPrice,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getMaterialName() != null) {\r\n sql.SET(\"material_name = #{record.materialName,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getUnitFreightPrice() != null) {\r\n sql.SET(\"unit_freight_price = #{record.unitFreightPrice,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getFreightPrice() != null) {\r\n sql.SET(\"freight_price = #{record.freightPrice,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getStaffName() != null) {\r\n sql.SET(\"staff_name = #{record.staffName,jdbcType=VARCHAR}\");\r\n }\r\n \r\n if (record.getStaff() != null) {\r\n sql.SET(\"staff = #{record.staff,jdbcType=INTEGER}\");\r\n }\r\n \r\n if (record.getRemark() != null) {\r\n sql.SET(\"remark = #{record.remark,jdbcType=VARCHAR}\");\r\n }\r\n \r\n applyWhere(sql, example, true);\r\n return sql.toString();\r\n }", "title": "" }, { "docid": "c4cc1874807202b6ddf9fe9eb5ed6924", "score": "0.454196", "text": "@Override\n\t\tpublic Object mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\tString empInfo=rs.getInt(\"empno\")+\"----\"+rs.getString(\"name\")\n\t\t\t+\"----\"+rs.getString(\"desig\")+\"----\"+rs.getString(\"basic\");\n\t\t\treturn empInfo;\n\t\t}", "title": "" }, { "docid": "03fb15a3b0d9da5d3a625cf041aa85f9", "score": "0.45365337", "text": "@Override\r\n\tpublic String updateSQL() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "fbf172616a8d18905039f2836f1d9270", "score": "0.45353284", "text": "public void setMaterialRef(String materialRef) {\n/* 462 */ this.materialRef = materialRef;\n/* */ }", "title": "" }, { "docid": "9faa93c70caf9a30ceff712a16e97fdb", "score": "0.4525491", "text": "public ScGridColumn<AcOriginActualRouteEmailNotificationEventVo> newOriginActualRouteEmailNotificationEventEventOriginAirportCodeColumn()\n {\n return newOriginActualRouteEmailNotificationEventEventOriginAirportCodeColumn(\"Origin Actual Route Email Notification Event Event Origin Airport Code\");\n }", "title": "" }, { "docid": "68b219a981917f4cd8c5883d872d2a02", "score": "0.45043656", "text": "private String getMetaTableQuery(MetaTable metaTableObj)throws EazyBpmException {\n\t\t User user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\t Date createdOn = new Date();\n\t\t String createdOnDate = \"\";\n\t\t createdOnDate = DateUtil.convertDateToStringFormat(createdOn,\"yyyy-MM-dd HH:mm:ss\");\n\t\t if(dataBaseSchema.equals(\"mysql\")){\n\t\t\t createdOnDate = \"'\"+createdOnDate+\"'\";\n\t\t }else{\n\t\t\t createdOnDate = CommonUtil.convertDateTypeForDB(dataBaseSchema,createdOnDate);\n\t\t }\n\t\t \n\t\tString metaTableQuery=\"insert into `ETEC_RE_TABLE`(`id`,`chinese_name`,`created_by`,`created_time`,`description`,`table_name`,`IS_AUTOFORMCREATE`) values ('\" +\n\t\tmetaTableObj.getId()+\"','\"+metaTableObj.getChineseName()+\"','\"+user.getUsername()+\"',\"+createdOnDate+\",'\"+metaTableObj.getDescription()+\"','\" +\n\t\tmetaTableObj.getTableName()+\"',\";\n\t\t\n\t\tif(!dataBaseSchema.equals(\"mysql\")){\n\t\t\tif(metaTableObj.getIsAutoFormCreate()){\n\t\t\t\tmetaTableQuery += 1+\");\";\n\t\t\t}else{\n\t\t\t\tmetaTableQuery += 0+\");\";\n\t\t\t}\n\t\t}else{\n\t\t\tmetaTableQuery += metaTableObj.getIsAutoFormCreate()+\");\";\n\t\t}\n\t\t\n\t\treturn metaTableQuery;\n\t}", "title": "" }, { "docid": "b7a1b022c93a24d72db435457fb8e675", "score": "0.4503109", "text": "public void getFields( RowMetaInterface row, String origin, RowMetaInterface[] info, StepMeta nextStep,\n VariableSpace space, Repository repository, IMetaStore metaStore ) throws KettleStepException {\n if ( returningGeneratedKeys && generatedKeyField != null && generatedKeyField.length() > 0 ) {\n ValueMetaInterface key =\n new ValueMetaInteger( space.environmentSubstitute( generatedKeyField ) );\n key.setOrigin( origin );\n row.addValueMeta( key );\n }\n }", "title": "" }, { "docid": "4bf8367aa3308f9d78c48d9e75c32384", "score": "0.45015207", "text": "@Override\r\n\tpublic String toUpdate(String dm_3rd_interface_code) {\r\n\t\treturn super.dumai_sourceBaseDao.executeSelectSql(gen_toUpdate(dm_3rd_interface_code));\r\n\t}", "title": "" }, { "docid": "976219f5279c4d367d04d97cc0b88c02", "score": "0.44969752", "text": "public String getUpdateReadAclsSql() {\n return null;\n }", "title": "" }, { "docid": "a4b4aa92f18b814529de4fd6c31bc1cd", "score": "0.4494721", "text": "public MovimientoInventario obtenerSalidaMaterialPorOrdenSalida(OrdenSalidaMaterial ordenSalidaMaterial)\r\n/* 389: */ {\r\n/* 390:433 */ StringBuilder sql = new StringBuilder();\r\n/* 391:434 */ sql.append(\" SELECT DISTINCT sm FROM DetalleMovimientoInventario dsm \");\r\n/* 392:435 */ sql.append(\" INNER JOIN dsm.movimientoInventario sm \");\r\n/* 393:436 */ sql.append(\" INNER JOIN dsm.detalleOrdenSalidaMaterial dosm \");\r\n/* 394:437 */ sql.append(\" INNER JOIN dosm.ordenSalidaMaterial osm \");\r\n/* 395:438 */ sql.append(\" WHERE osm.idOrdenSalidaMaterial = :idOrdenSalidaMaterial \");\r\n/* 396: */ \r\n/* 397:440 */ Query query = this.em.createQuery(sql.toString());\r\n/* 398:441 */ query.setParameter(\"idOrdenSalidaMaterial\", Integer.valueOf(ordenSalidaMaterial.getId()));\r\n/* 399:442 */ query.setMaxResults(1);\r\n/* 400: */ try\r\n/* 401: */ {\r\n/* 402:444 */ return (MovimientoInventario)query.getSingleResult();\r\n/* 403: */ }\r\n/* 404: */ catch (NoResultException e) {}\r\n/* 405:447 */ return null;\r\n/* 406: */ }", "title": "" }, { "docid": "95a8efe2e74dc7a845b54430612470bd", "score": "0.44913283", "text": "Integer insertSelective(TOriginMaterialInfo record);", "title": "" }, { "docid": "d4493c102405fced439b00c73f69df60", "score": "0.44855627", "text": "public byte getMaterial() {\n/* 724 */ return this.material;\n/* */ }", "title": "" }, { "docid": "db6b318191337d7b8733c457e6744369", "score": "0.4479263", "text": "private String getTableBuilderSql(Map<AType, String> colAttrs) {\n\t\tStringBuilder sql = new StringBuilder(2500);\n\t\tString custom = (String)getAttribute(Constants.CUSTOM_DB_SCHEMA);\n\t\tsql.append(\"select distinct g.short_nm_txt, g.company_nm, g.company_id, s.status_txt, r.region_id \");\n\t\tsql.append(DBUtil.FROM_CLAUSE).append(custom).append(\"biomedgps_product f \");\n\t\tsql.append(\"left outer join \").append(custom).append(\"biomedgps_product_alliance_xr axr \");\n\t\tsql.append(\"on axr.product_id = f.product_id and (axr.alliance_type_id != 'PROD_4' or axr.ga_display_flg > 0) \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(custom).append(\"biomedgps_product_regulatory r \");\n\t\tsql.append(\"on f.product_id = r.product_id \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(custom).append(\"biomedgps_regulatory_status s \");\n\t\tsql.append(\"on r.status_id = s.status_id \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(custom).append(\"biomedgps_company g \");\n\t\tsql.append(\"on f.company_id = g.company_id and g.status_no = 'P' \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(custom).append(\"biomedgps_company_attribute_xr h \");\n\t\tsql.append(\"on g.company_id = h.company_id \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(custom).append(\"biomedgps_company_attribute i \");\n\t\tsql.append(\"on h.attribute_id = i.attribute_id \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(custom).append(\"biomedgps_section j \");\n\t\tsql.append(\"on i.section_id = j.section_id \");\n\t\tsql.append(\"where 1 = 1 \");\n\t\tsql.append(\"and f.product_id in ( \");\n\t\tbuildProdAttributeFilterQuery(sql, colAttrs);\n\t\tsql.append(\") order by g.company_nm\");\n\n\t\treturn sql.toString();\n\t}", "title": "" }, { "docid": "9f8e329454271b2d88a8b954d6aebc5c", "score": "0.4476845", "text": "public interface I_Z_SHW_LIBRO_de_Compras \n{\n\n /** TableName=Z_SHW_LIBRO_de_Compras */\n public static final String Table_Name = \"Z_SHW_LIBRO_de_Compras\";\n\n /** AD_Table_ID=1200000 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name Col_0 */\n public static final String COLUMNNAME_Col_0 = \"Col_0\";\n\n\t/** Set Col_0\t */\n\tpublic void setCol_0 (BigDecimal Col_0);\n\n\t/** Get Col_0\t */\n\tpublic BigDecimal getCol_0();\n\n /** Column name Col_1 */\n public static final String COLUMNNAME_Col_1 = \"Col_1\";\n\n\t/** Set Col_1\t */\n\tpublic void setCol_1 (BigDecimal Col_1);\n\n\t/** Get Col_1\t */\n\tpublic BigDecimal getCol_1();\n\n /** Column name Col_2 */\n public static final String COLUMNNAME_Col_2 = \"Col_2\";\n\n\t/** Set Col_2\t */\n\tpublic void setCol_2 (BigDecimal Col_2);\n\n\t/** Get Col_2\t */\n\tpublic BigDecimal getCol_2();\n\n /** Column name Col_3 */\n public static final String COLUMNNAME_Col_3 = \"Col_3\";\n\n\t/** Set Col_3\t */\n\tpublic void setCol_3 (BigDecimal Col_3);\n\n\t/** Get Col_3\t */\n\tpublic BigDecimal getCol_3();\n\n /** Column name Col_4 */\n public static final String COLUMNNAME_Col_4 = \"Col_4\";\n\n\t/** Set Col_4\t */\n\tpublic void setCol_4 (BigDecimal Col_4);\n\n\t/** Get Col_4\t */\n\tpublic BigDecimal getCol_4();\n\n /** Column name Col_5 */\n public static final String COLUMNNAME_Col_5 = \"Col_5\";\n\n\t/** Set Col_5\t */\n\tpublic void setCol_5 (BigDecimal Col_5);\n\n\t/** Get Col_5\t */\n\tpublic BigDecimal getCol_5();\n\n /** Column name Col_6 */\n public static final String COLUMNNAME_Col_6 = \"Col_6\";\n\n\t/** Set Col_6\t */\n\tpublic void setCol_6 (BigDecimal Col_6);\n\n\t/** Get Col_6\t */\n\tpublic BigDecimal getCol_6();\n\n /** Column name C_Period_ID */\n public static final String COLUMNNAME_C_Period_ID = \"C_Period_ID\";\n\n\t/** Set Period.\n\t * Period of the Calendar\n\t */\n\tpublic void setC_Period_ID (int C_Period_ID);\n\n\t/** Get Period.\n\t * Period of the Calendar\n\t */\n\tpublic int getC_Period_ID();\n\n\tpublic I_C_Period getC_Period() throws RuntimeException;\n\n /** Column name DateInvoiced */\n public static final String COLUMNNAME_DateInvoiced = \"DateInvoiced\";\n\n\t/** Set Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic void setDateInvoiced (Timestamp DateInvoiced);\n\n\t/** Get Date Invoiced.\n\t * Date printed on Invoice\n\t */\n\tpublic Timestamp getDateInvoiced();\n\n /** Column name DocumentNo */\n public static final String COLUMNNAME_DocumentNo = \"DocumentNo\";\n\n\t/** Set Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic void setDocumentNo (String DocumentNo);\n\n\t/** Get Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic String getDocumentNo();\n\n /** Column name DUNS */\n public static final String COLUMNNAME_DUNS = \"DUNS\";\n\n\t/** Set D-U-N-S.\n\t * Dun & Bradstreet Number\n\t */\n\tpublic void setDUNS (String DUNS);\n\n\t/** Get D-U-N-S.\n\t * Dun & Bradstreet Number\n\t */\n\tpublic String getDUNS();\n\n /** Column name EXTCOMPRAS */\n public static final String COLUMNNAME_EXTCOMPRAS = \"EXTCOMPRAS\";\n\n\t/** Set EXTCOMPRAS\t */\n\tpublic void setEXTCOMPRAS (BigDecimal EXTCOMPRAS);\n\n\t/** Get EXTCOMPRAS\t */\n\tpublic BigDecimal getEXTCOMPRAS();\n\n /** Column name GrandTotal */\n public static final String COLUMNNAME_GrandTotal = \"GrandTotal\";\n\n\t/** Set Grand Total.\n\t * Total amount of document\n\t */\n\tpublic void setGrandTotal (BigDecimal GrandTotal);\n\n\t/** Get Grand Total.\n\t * Total amount of document\n\t */\n\tpublic BigDecimal getGrandTotal();\n\n /** Column name IMPCA */\n public static final String COLUMNNAME_IMPCA = \"IMPCA\";\n\n\t/** Set IMPCA\t */\n\tpublic void setIMPCA (BigDecimal IMPCA);\n\n\t/** Get IMPCA\t */\n\tpublic BigDecimal getIMPCA();\n\n /** Column name IMPEXT */\n public static final String COLUMNNAME_IMPEXT = \"IMPEXT\";\n\n\t/** Set IMPEXT\t */\n\tpublic void setIMPEXT (BigDecimal IMPEXT);\n\n\t/** Get IMPEXT\t */\n\tpublic BigDecimal getIMPEXT();\n\n /** Column name IMPFUERA */\n public static final String COLUMNNAME_IMPFUERA = \"IMPFUERA\";\n\n\t/** Set IMPFUERA\t */\n\tpublic void setIMPFUERA (BigDecimal IMPFUERA);\n\n\t/** Get IMPFUERA\t */\n\tpublic BigDecimal getIMPFUERA();\n\n /** Column name IVACOMPRAS */\n public static final String COLUMNNAME_IVACOMPRAS = \"IVACOMPRAS\";\n\n\t/** Set IVACOMPRAS\t */\n\tpublic void setIVACOMPRAS (BigDecimal IVACOMPRAS);\n\n\t/** Get IVACOMPRAS\t */\n\tpublic BigDecimal getIVACOMPRAS();\n\n /** Column name IVAIMP */\n public static final String COLUMNNAME_IVAIMP = \"IVAIMP\";\n\n\t/** Set IVAIMP\t */\n\tpublic void setIVAIMP (BigDecimal IVAIMP);\n\n\t/** Get IVAIMP\t */\n\tpublic BigDecimal getIVAIMP();\n\n /** Column name Name */\n public static final String COLUMNNAME_Name = \"Name\";\n\n\t/** Set Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic void setName (String Name);\n\n\t/** Get Name.\n\t * Alphanumeric identifier of the entity\n\t */\n\tpublic String getName();\n\n /** Column name NIT */\n public static final String COLUMNNAME_NIT = \"NIT\";\n\n\t/** Set NIT\t */\n\tpublic void setNIT (String NIT);\n\n\t/** Get NIT\t */\n\tpublic String getNIT();\n\n /** Column name TAXIVA */\n public static final String COLUMNNAME_TAXIVA = \"TAXIVA\";\n\n\t/** Set TAXIVA\t */\n\tpublic void setTAXIVA (BigDecimal TAXIVA);\n\n\t/** Get TAXIVA\t */\n\tpublic BigDecimal getTAXIVA();\n\n /** Column name TAXRET */\n public static final String COLUMNNAME_TAXRET = \"TAXRET\";\n\n\t/** Set TAXRET\t */\n\tpublic void setTAXRET (BigDecimal TAXRET);\n\n\t/** Get TAXRET\t */\n\tpublic BigDecimal getTAXRET();\n\n /** Column name Z_SHW_NoCorr */\n public static final String COLUMNNAME_Z_SHW_NoCorr = \"Z_SHW_NoCorr\";\n\n\t/** Set Z_SHW_NoCorr\t */\n\tpublic void setZ_SHW_NoCorr (int Z_SHW_NoCorr);\n\n\t/** Get Z_SHW_NoCorr\t */\n\tpublic int getZ_SHW_NoCorr();\n}", "title": "" }, { "docid": "dac2238c924028133b330a9deff2efae", "score": "0.4475643", "text": "@Override\n public List<String> originalColumnName() {\n return this.getSchema();\n }", "title": "" }, { "docid": "ad84c1cbbe747caeeb8823c4f4ec19cf", "score": "0.44627014", "text": "public ScGridColumn<AcGb0901InvoiceItemClaimRvxData> newConsignmentOriginAirportCodeColumn()\n {\n return newConsignmentOriginAirportCodeColumn(\"Consignment Origin Airport Code\");\n }", "title": "" }, { "docid": "8ed64868d84505f2c9ef796b44b5bde5", "score": "0.44608253", "text": "@Override\n protected Class getReferenceClass() {\n return TblVegeMappingInfo.class;\n }", "title": "" }, { "docid": "4d68c2334a1bdc6e9c6137bfaaaee9cd", "score": "0.44565225", "text": "private String getColumnListSql() {\n\t\tStringBuilder sql = new StringBuilder(100);\n\t\tsql.append(DBUtil.SELECT_FROM_STAR).append(getAttribute(Constants.CUSTOM_DB_SCHEMA));\n\t\tsql.append(\"biomedgps_ga_column order by order_no\");\n\t\treturn sql.toString();\n\t}", "title": "" }, { "docid": "5a6b3748a2e5bc5168d81ec742d53c4a", "score": "0.4454337", "text": "private String createMobileGenTable() {\n StringBuilder createMobileGenTable = new StringBuilder();\n createMobileGenTable.append(\"CREATE TABLE \");\n createMobileGenTable.append(TABLE_MOBILE_GENERATION);\n createMobileGenTable.append(\"(\");\n\n for (int i = 0; i < COLUMN_TABLE_MOBILE_GENERATION.length; i++) {\n switch (COLUMN_TABLE_MOBILE_GENERATION[i]) {\n case KEY_MOBILE_GENERATION_ID:\n createMobileGenTable.append(COLUMN_TABLE_MOBILE_GENERATION[i]);\n createMobileGenTable.append(VALUE_TABLE_MOBILE_GENERATION[i]);\n break;\n case KEY_MOBILE_GENERATION_GEN:\n createMobileGenTable.append(COLUMN_TABLE_MOBILE_GENERATION[i]);\n createMobileGenTable.append(VALUE_TABLE_MOBILE_GENERATION[i]);\n break;\n default:\n break;\n }\n }\n return createMobileGenTable.toString();\n }", "title": "" }, { "docid": "24c76b77b34094953fa3e42070cc2fc4", "score": "0.44475076", "text": "@Override\n public String getSchemaName() {\n return mapping.getTableName();\n }", "title": "" }, { "docid": "f6c9d00d9f8804cb0f2a12c974632616", "score": "0.44409212", "text": "@Override\n public String toString(){\n if(SanityManager.DEBUG){\n return \"correlation Name: \"+correlationName+\"\\n\"+\n (corrTableName!=null? corrTableName.toString():\"null\")+\"\\n\"+\n \"tableNumber \"+tableNumber+\"\\n\"+\n \"level \"+level+\"\\n\"+\n super.toString();\n }else{\n return \"\";\n }\n }", "title": "" }, { "docid": "6aa4c0dd9374ca76800fccf5130aaaa3", "score": "0.44403246", "text": "String getMaterial();", "title": "" }, { "docid": "816ef0144fd4642e4d7ca56c7506c4d2", "score": "0.44273874", "text": "private static CopexReturn loadMaterialFromDB(DataBaseCommunication dbC, Locale locale, long dbKeyMaterial, ArrayList<PhysicalQuantity> listPhysicalQuantity, ArrayList v){\n Material m = null;\n String query = \"SELECT MATERIAL_NAME, DESCRIPTION, URL_DESCRIPTION FROM MATERIAL WHERE ID_MATERIAL = \"+dbKeyMaterial+\" ;\";\n ArrayList v2 = new ArrayList();\n ArrayList<String> listFields = new ArrayList();\n listFields.add(\"MATERIAL_NAME\");\n listFields.add(\"DESCRIPTION\");\n listFields.add(\"URL_DESCRIPTION\");\n CopexReturn cr = dbC.sendQuery(query, listFields, v2);\n if (cr.isError())\n return cr;\n int nbR = v2.size();\n for (int i=0; i<nbR; i++){\n ResultSetXML rs = (ResultSetXML)v2.get(i);\n String name = rs.getColumnData(\"MATERIAL_NAME\");\n String description = rs.getColumnData(\"DESCRIPTION\");\n String urlDescription = rs.getColumnData(\"URL_DESCRIPTION\");\n ArrayList v4 = new ArrayList();\n cr = ExperimentalProcedureFromDB.getMaterialSource(dbC, dbKeyMaterial, v4);\n if(cr.isError())\n return cr;\n MaterialSource materialSource = (MaterialSource)v4.get(0);\n m = new Material(dbKeyMaterial, CopexUtilities.getLocalText(name, locale), CopexUtilities.getLocalText(description, locale), urlDescription, materialSource) ;\n // gets parameters\n v4 = new ArrayList();\n cr = ExperimentalProcedureFromDB.getMaterialParametersFromDB(dbC,locale, dbKeyMaterial, listPhysicalQuantity, v4);\n if (cr.isError())\n return cr;\n\n ArrayList<Parameter> listP = (ArrayList<Parameter>)v4.get(0);\n if (listP != null)\n m.setListParameters(listP);\n // associate type of material to material\n ArrayList<TypeMaterial> listT = new ArrayList();\n String query2 = \"SELECT T.ID_TYPE, T.TYPE_NAME FROM MATERIAL_TYPE T, LINK_TYPE_MATERIAL L WHERE \" +\n \"L.ID_MATERIAL = \"+dbKeyMaterial+\" AND L.ID_TYPE = T.ID_TYPE ;\";\n\n v4 = new ArrayList();\n ArrayList<String> listFields2 = new ArrayList();\n listFields2.add(\"T.ID_TYPE\");\n listFields2.add(\"T.TYPE_NAME\");\n\n cr = dbC.sendQuery(query2, listFields2, v4);\n if (cr.isError())\n return cr;\n int nbR2 = v4.size();\n for (int j=0; j<nbR2; j++){\n ResultSetXML rs2 = (ResultSetXML)v4.get(j);\n String s = rs2.getColumnData(\"T.ID_TYPE\");\n if (s == null)\n continue;\n long idT = Long.parseLong(s);\n TypeMaterial t = new TypeMaterial(idT, CopexUtilities.getLocalText(name, locale));\n listT.add(t);\n }\n\n m.setListType(listT);\n }\n v.add(m);\n return new CopexReturn();\n }", "title": "" }, { "docid": "80f5ec3f1f7c58ec8d3d8f144153f8c2", "score": "0.4423505", "text": "public JoinColumn(JdbcAdaptor jdbcAdaptor, PrimaryKeyJoinColumnMetadata metadata, SecondaryTable table, BasicMapping<?, ?> idMapping) {\n \t\tsuper(metadata.getLocator());\n \n \t\tthis.jdbcAdaptor = jdbcAdaptor;\n \t\tthis.tableName = table.getName();\n \t\tthis.primaryKey = false;\n \n \t\tthis.referencedColumnName = metadata.getReferencedColumnName();\n \t\tthis.columnDefinition = metadata.getColumnDefinition();\n \t\tthis.mappingName = metadata.getName();\n \n \t\tthis.insertable = true;\n \t\tthis.nullable = false;\n \t\tthis.unique = false;\n \t\tthis.updatable = false;\n \n \t\tthis.setColumnProperties(idMapping);\n \t\tthis.setTable(table);\n \t}", "title": "" }, { "docid": "87d621aa639366df35d5b8bbdf2bf77d", "score": "0.44212046", "text": "private void createMaterialTable(Connection connection) throws SQLException {\n\n PreparedStatement stmt = connection.prepareStatement(\"\" +\n \"CREATE TABLE if not exists Material (id INT PRIMARY KEY AUTO_INCREMENT, \" +\n \"name VARCHAR(32),\" +\n \"details VARCHAR(1024));\");\n\n stmt.executeUpdate();\n stmt.close();\n\n }", "title": "" }, { "docid": "1a5d8342318e5d16beb1153abc5605ea", "score": "0.44182852", "text": "public List<String> ordenSalidaMaterialEnConsumoBodega(OrdenSalidaMaterial ordenSalidaMaterial)\r\n/* 573: */ {\r\n/* 574:629 */ StringBuilder sql = new StringBuilder();\r\n/* 575:630 */ sql.append(\" SELECT mi.numero \");\r\n/* 576:631 */ sql.append(\" FROM DetalleMovimientoInventario dmi \");\r\n/* 577:632 */ sql.append(\" INNER JOIN dmi.movimientoInventario mi \");\r\n/* 578:633 */ sql.append(\" INNER JOIN mi.documento d \");\r\n/* 579:634 */ sql.append(\" INNER JOIN dmi.detalleOrdenSalidaMaterial dosm \");\r\n/* 580:635 */ sql.append(\" WHERE dosm.ordenSalidaMaterial= :ordenSalidaMaterial \");\r\n/* 581:636 */ sql.append(\" AND d.documentoBase = :documentoBase \");\r\n/* 582:637 */ sql.append(\" GROUP BY mi.numero \");\r\n/* 583:638 */ Query query = this.em.createQuery(sql.toString());\r\n/* 584:639 */ query.setParameter(\"ordenSalidaMaterial\", ordenSalidaMaterial);\r\n/* 585:640 */ query.setParameter(\"documentoBase\", DocumentoBase.CONSUMO_BODEGA);\r\n/* 586:641 */ return query.getResultList();\r\n/* 587: */ }", "title": "" }, { "docid": "03bae6784453ecc167832ee451a92d6b", "score": "0.441499", "text": "private void setSourceTargetProperties() {\n\t\tDSQTransformation dsq = (DSQTransformation)this.mapping.getTransformation(\"SQ_\"+org.tools.GetProperties.getKeyValue(\"TableNm\"));\r\n\t\t\r\n\t\t// set the Source Qualifier properties\r\n\t\t\r\n\t\t// set Source properties\r\n\t\tthis.employeeSrc.setSessionTransformInstanceProperty(\"Owner Name\", org.tools.GetProperties.getKeyValue(\"Owner\"));\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "aacc225019793818c0c077a6ad11096a", "score": "0.44097975", "text": "@Override\n\t\t\tpublic String getCreateSQL() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "a82d9995edca95961a9f686f5564e40f", "score": "0.4409054", "text": "@Override\n\tpublic int findMaterialAmountById(int mrlId) {\n\t\tString hql = \"select m.mrlAmount from Material m where m.mrlId = ?\";\n\t\tQuery query = getSession().createQuery(hql).setInteger(0, mrlId);\n\t\treturn (int)query.uniqueResult();\n\t}", "title": "" }, { "docid": "5b473d643895ca089efe430b4777cf46", "score": "0.44014648", "text": "public String getSQL() throws OculusException;", "title": "" }, { "docid": "3070f29f337535dcd7302865e09a11a4", "score": "0.43970636", "text": "public QueryLocusSetter() {\n super(\"org.tair.db.locusdetail\", 2147483647);\n }", "title": "" }, { "docid": "47f0dd4a6fabe9c650730239fd5c470d", "score": "0.43951726", "text": "public void abrirCerrarOrdenSalidaMaterial(OrdenSalidaMaterial ordenSalidaMaterial)\r\n/* 264: */ {\r\n/* 265:304 */ StringBuilder sqll1 = new StringBuilder();\r\n/* 266:305 */ sqll1.append(\" SELECT COUNT(*) FROM DetalleOrdenSalidaMaterial dosm\");\r\n/* 267:306 */ sqll1.append(\" JOIN dosm.ordenSalidaMaterial osm\");\r\n/* 268:307 */ sqll1.append(\" WHERE osm = :ordenSalidaMaterial\");\r\n/* 269:308 */ sqll1.append(\" AND (dosm.cantidad - dosm.cantidadUtilizada) > 0\");\r\n/* 270: */ \r\n/* 271:310 */ Query query1 = this.em.createQuery(sqll1.toString());\r\n/* 272:311 */ query1.setParameter(\"ordenSalidaMaterial\", ordenSalidaMaterial);\r\n/* 273: */ \r\n/* 274:313 */ StringBuilder sqll2 = new StringBuilder();\r\n/* 275:314 */ sqll2.append(\" UPDATE OrdenSalidaMaterial osm SET osm.estado = :estado WHERE osm = :ordenSalidaMaterial\");\r\n/* 276: */ \r\n/* 277:316 */ Query query2 = this.em.createQuery(sqll2.toString());\r\n/* 278:317 */ query2.setParameter(\"ordenSalidaMaterial\", ordenSalidaMaterial);\r\n/* 279:318 */ sqll2.append(\" SET osm.estado = :estado\");\r\n/* 280:320 */ if (((Long)query1.getSingleResult()).longValue() == 0L) {\r\n/* 281:321 */ query2.setParameter(\"estado\", Estado.PROCESADO);\r\n/* 282: */ } else {\r\n/* 283:323 */ query2.setParameter(\"estado\", Estado.ELABORADO);\r\n/* 284: */ }\r\n/* 285:326 */ query2.executeUpdate();\r\n/* 286: */ }", "title": "" }, { "docid": "e0ae38b570a35e1a1fc80a00a7abf640", "score": "0.43828037", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn material.toString(); //재료 클래스의 toString() 호출\r\n\t}", "title": "" }, { "docid": "c8a3fbcc8620113470fb8a5f894d431f", "score": "0.43766436", "text": "public DvrInfo getDvrInfo() {\n\t\tString sql=\"select dvrId,dvrName,dvrPwd,dvrIp,dvrPort,dvrLocation,dvrLat,dvrLon,constructionId from dvrInfo\";\n\t\tConnection conn = DBConnectionManager.getConnection();\n\t\tPreparedStatement ps = DBConnectionManager.prepare(conn,sql);\n\t\tResultSet rs = null;\n\t\tList<DvrInfoEntity> lists =null;\n\t\tDvrInfo mDvrInfo= null;\n\t\ttry {\n\t\t\trs=ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tif(lists==null){\n\t\t\t\t\tlists = new ArrayList<DvrInfoEntity>();\n\t\t\t\t}\n\t\t\t\tDvrInfoEntity mDvrInfoEntity = new DvrInfoEntity();\n\t\t\t\tmDvrInfoEntity.setConstructionId(rs.getInt(9));\n\t\t\t\tmDvrInfoEntity.setDvrId(rs.getString(1));\n\t\t\t\tmDvrInfoEntity.setDvrIP(rs.getString(4));\n\t\t\t\tmDvrInfoEntity.setDvrLat(rs.getString(7));\n\t\t\t\tmDvrInfoEntity.setDvrLocation(rs.getString(6));\n\t\t\t\tmDvrInfoEntity.setDvrLon(rs.getString(8));\n\t\t\t\tmDvrInfoEntity.setDvrName(rs.getString(2));\n\t\t\t\tmDvrInfoEntity.setDvrPort(rs.getString(5));\n\t\t\t\tmDvrInfoEntity.setDvrPwd(rs.getString(3));\n\t\t\t\tlists.add(mDvrInfoEntity);\n\t\t\t}\n\t\t\t\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tDBConnectionManager.close(rs);\n\t\t\tDBConnectionManager.close(ps);\n\t\t\tDBConnectionManager.close(conn);\n\t\t}\n\t\tif(lists!=null&&lists.size()>0){\n\t\t\tmDvrInfo= new DvrInfo();\n\t\t\tmDvrInfo.setDvrInfo(lists);\n\t\t\tmDvrInfo.setError(\"获取成功\");\n\t\t\tmDvrInfo.setErrorCode(0);\n\t\t}\n\t\treturn mDvrInfo;\n\t}", "title": "" }, { "docid": "fd553692460beafa578aaa8d19dd02bb", "score": "0.43733907", "text": "public void getQualifyRecord(QualificationDetail qualDetail) {\r\n\t\tObject addObj[] = new Object[1];\r\n\t\taddObj[0] = qualDetail.getEmpID();\r\n\t\tObject[][] data = getSqlModel().getSingleResult(getQuery(4), addObj);\r\n\t\tArrayList<Object> qualList = new ArrayList<Object>();\r\n\t\tif (data!=null && data.length > 0) {\r\n\t\t\tfor (int i = 0; i < data.length; i++) {\r\n\t\t\t\tQualificationDetail bean1 = new QualificationDetail();\r\n\t\t\t\tbean1.setQualifyCode(String.valueOf(data[i][6]));\r\n\t\t\t\tbean1.setQualifyName(String.valueOf(data[i][8]));\r\n\t\t\t\tif(bean1.getQualifyName().length() > 15){\r\n\t\t\t\t\tbean1.setAbbrQualifyName(bean1.getQualifyName().substring(0, 14)+\"...\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tbean1.setAbbrQualifyName(bean1.getQualifyName());\r\n\t\t\t\t}\r\n\t\t\t\tbean1.setInstitute(String.valueOf(data[i][9]));\r\n\t\t\t\tif(bean1.getInstitute().length() > 15){\r\n\t\t\t\t\tbean1.setAbbrInstitute(bean1.getInstitute().substring(0, 14)+\"...\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tbean1.setAbbrInstitute(bean1.getInstitute());\r\n\t\t\t\t}\r\n\t\t\t\tbean1.setUniversity(String.valueOf(data[i][10]));\r\n\t\t\t\tif(bean1.getUniversity().length() > 15){\r\n\t\t\t\t\tbean1.setAbbrUniversity(bean1.getUniversity().substring(0, 14)+\"...\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tbean1.setAbbrUniversity(bean1.getUniversity());\r\n\t\t\t\t}\r\n\t\t\t\tif (String.valueOf(data[i][11]).equals(\"null\")\r\n\t\t\t\t\t\t|| (data[i][11] == null) || (data[i][11].equals(\"\"))) {\r\n\t\t\t\t\tbean1.setYear(\"\");\r\n\t\t\t\t}// end of nested if\r\n\t\t\t\telse {\r\n\t\t\t\t\tbean1.setYear(String.valueOf(data[i][11]));\r\n\t\t\t\t}// end of nested else\r\n\r\n\t\t\t\tbean1.setGrade(String.valueOf(data[i][12]));\r\n\t\t\t\tif(bean1.getGrade().length() > 15){\r\n\t\t\t\t\tbean1.setAbbrGrade(bean1.getGrade().substring(0, 14)+\"...\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tbean1.setAbbrGrade(bean1.getGrade());\r\n\t\t\t\t}\r\n\t\t\t\tbean1.setPercentage(String.valueOf(data[i][13]));\r\n\t\t\t\tif (String.valueOf(data[i][14]).equals(\"null\")) {\r\n\t\t\t\t\tbean1.setTech(\"\");\r\n\t\t\t\t}// end of nested if\r\n\t\t\t\telse {\r\n\t\t\t\t\tbean1.setTech(String.valueOf(data[i][14]));\r\n\t\t\t\t}// end of nested else\r\n\t\t\t\tqualList.add(bean1);\r\n\t\t\t}// end of for loop\r\n\t\t\tqualDetail.setNoData(\"false\");\r\n\t\t\tqualDetail.setQualList(qualList);\r\n\t\t}else{\r\n\t\t\tqualDetail.setNoData(\"true\");\r\n\t\t\tqualDetail.setQualList(null);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f8fcac2399fe20536c2c7db4ecfec6aa", "score": "0.43705192", "text": "@Override\r\n\tpublic String createSQL() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "076aa656823a8a463d11689831133877", "score": "0.4368364", "text": "@Override\n\tpublic String buildSql() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0cccd257623629fb71d0dbc9de8a37c9", "score": "0.43682063", "text": "public JoinColumn(JdbcAdaptor jdbcAdaptor, SecondaryTable table, BasicMapping<?, ?> idMapping) {\n \t\tsuper(null);\n \n \t\tthis.jdbcAdaptor = jdbcAdaptor;\n \t\tthis.referencedMapping = idMapping;\n \t\tthis.primaryKey = true;\n \n \t\tfinal PkColumn referencedColumn = (PkColumn) idMapping.getColumn();\n \n \t\tthis.referencedColumnName = referencedColumn.getName();\n \t\tthis.columnDefinition = referencedColumn.getColumnDefinition();\n \t\tthis.tableName = table.getName();\n \t\tthis.mappingName = referencedColumn.getMappingName();\n \t\tthis.name = referencedColumn.getName();\n \t\tthis.insertable = referencedColumn.isInsertable();\n \t\tthis.nullable = referencedColumn.isNullable();\n \t\tthis.unique = referencedColumn.isUnique();\n \t\tthis.updatable = referencedColumn.isUnique();\n \n \t\tthis.setColumnProperties(idMapping);\n \t\tthis.setTable(table);\n \n \t}", "title": "" }, { "docid": "17b5d3c2c9985a0de2a41a5e9733de3e", "score": "0.43658212", "text": "public Map<String, Object> queryAccFundaByCode(Map<String,Object> entityMap) throws DataAccessException;", "title": "" }, { "docid": "4d53c5618ba76f7a1228a28eab0006a4", "score": "0.436078", "text": "@SqlMapper\npublic interface RelationCityCompanyCommunityMapper extends DaoMapper<RelationCityCompanyCommunity, Long> {\n\n /**\n * 根据条件查询关系id\n *\n * @param cityId 城市id\n *\n * @param companyId 公司id\n *\n * @param communityId 小区Id\n *\n * @return relationId\n *\n * @author chengyong\n */\n List<RelationCityCompanyCommunity> queryByCondition(@Param(\"cityId\") Long cityId,\n @Param(\"companyId\") Long companyId,\n @Param(\"communityId\") Long communityId);\n}", "title": "" }, { "docid": "4b1b7106c7d6c82bf7f42e7ffb07a502", "score": "0.435673", "text": "interface TYPE_INFO {\n\n /** name of column that contains local type name used by the data source. */\n static final String TYPE_NAME = \"TYPE_NAME\"; //$NON-NLS-1$\n\n /** name of column that contains SQL type from java.sql.Types for column's data type. */\n static final String DATA_TYPE = \"DATA_TYPE\"; //$NON-NLS-1$\n\n // name of the column containing number of digits to right of decimal\n static final String PRECISION = \"PRECISION\"; //$NON-NLS-1$\n\n // name of the column containing prefix used to quote a literal\n static final String LITERAL_PREFIX = \"LITERAL_PREFIX\"; //$NON-NLS-1$\n\n // name of the column containing suffix used to quote a literal\n static final String LITERAL_SUFFIX = \"LITERAL_SUFFIX\"; //$NON-NLS-1$\n\n // name of the column containing params used in creating the type\n static final String CREATE_PARAMS = \"CREATE_PARAMS\"; //$NON-NLS-1$\n\n /** name of column that has an String value indicating nullablity */\n static final String NULLABLE = \"NULLABLE\"; //$NON-NLS-1$\n\n /** name of column that has an String value indicating case sensitivity */\n static final String CASE_SENSITIVE = \"CASE_SENSITIVE\"; //$NON-NLS-1$\n\n /** name of column that has an String value indicating searchability */\n static final String SEARCHABLE = \"SEARCHABLE\"; //$NON-NLS-1$\n\n /** name of column that has an String value indicating searchability */\n static final String UNSIGNED_ATTRIBUTE = \"UNSIGNED_ATTRIBUTE\"; //$NON-NLS-1$\n\n /** name of column that contains info if the column is a currency value */\n static final String FIXED_PREC_SCALE = \"FIXED_PREC_SCALE\"; //$NON-NLS-1$\n\n /** name of column that contains info whether the column is autoincrementable */\n static final String AUTOINCREMENT = \"AUTO_INCREMENT\"; //$NON-NLS-1$\n\n /** name of column that localised version of type name */\n static final String LOCAL_TYPE_NAME = \"LOCAL_TYPE_NAME\"; //$NON-NLS-1$\n\n /** name of column that gives the min scale supported */\n static final String MINIMUM_SCALE = \"MINIMUM_SCALE\"; //$NON-NLS-1$\n\n /** name of column that gives the max scale supported */\n static final String MAXIMUM_SCALE = \"MAXIMUM_SCALE\"; //$NON-NLS-1$\n\n /** name of column that not used will contain nulls */\n static final String SQL_DATA_TYPE = \"SQL_DATA_TYPE\"; //$NON-NLS-1$\n\n /** name of column that not used will contain nulls */\n static final String SQL_DATETIME_SUB = \"SQL_DATETIME_SUB\"; //$NON-NLS-1$\n\n // constant indiacting column's Radix.\n static final String NUM_PREC_RADIX = \"NUM_PREC_RADIX\"; //$NON-NLS-1$\n }", "title": "" }, { "docid": "ce5515b4a91e68faa0a9d6bf42f36c4d", "score": "0.43535542", "text": "public abstract int getMaterial();", "title": "" }, { "docid": "ca68552513b44874f1b4fcd78bd5602b", "score": "0.43525335", "text": "private void generateMappings() {\r\n\r\n\t\t\t// Determine the source and target fields...\r\n\t\t\t//\r\n\t\t\tRowMetaInterface sourceFields;\r\n\t\t\tRowMetaInterface targetFields;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsourceFields = transMeta.getPrevStepFields(stepMeta);\r\n\t\t\t} catch(KettleException e) {\r\n\t\t\t\tnew ErrorDialog(shell, BaseMessages.getString(PKG, \"VerticaBulkLoaderDialog.DoMapping.UnableToFindSourceFields.Title\"), BaseMessages.getString(PKG, \"VerticaBulkLoaderDialog.DoMapping.UnableToFindSourceFields.Message\"), e);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// refresh data\r\n\t\t\tinput.setDatabaseMeta(transMeta.findDatabase(wConnection.getText()) );\r\n\t\t\tinput.setTablename(transMeta.environmentSubstitute(wTable.getText()));\r\n\t\t\tStepMetaInterface stepMetaInterface = stepMeta.getStepMetaInterface();\r\n\t\t\ttry {\r\n\t\t\t\ttargetFields = stepMetaInterface.getRequiredFields(transMeta);\r\n\t\t\t} catch (KettleException e) {\r\n\t\t\t\tnew ErrorDialog(shell, BaseMessages.getString(PKG, \"VerticaBulkLoaderDialog.DoMapping.UnableToFindTargetFields.Title\"), BaseMessages.getString(PKG, \"VerticaBulkLoaderDialog.DoMapping.UnableToFindTargetFields.Message\"), e);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tString[] inputNames = new String[sourceFields.size()];\r\n\t\t\tfor (int i = 0; i < sourceFields.size(); i++) {\r\n\t\t\t\tValueMetaInterface value = sourceFields.getValueMeta(i);\r\n\t\t\t\tinputNames[i] = value.getName()+\r\n\t\t\t\t EnterMappingDialog.STRING_ORIGIN_SEPARATOR+value.getOrigin()+\")\";\r\n\t\t\t}\r\n\r\n\t\t\t// Create the existing mapping list...\r\n\t\t\t//\r\n\t\t\tList<SourceToTargetMapping> mappings = new ArrayList<SourceToTargetMapping>();\r\n\t\t\tStringBuffer missingSourceFields = new StringBuffer();\r\n\t\t\tStringBuffer missingTargetFields = new StringBuffer();\r\n\r\n\t\t\tint nrFields = wFields.nrNonEmpty();\r\n\t\t\tfor (int i = 0; i < nrFields ; i++) {\r\n\t\t\t\tTableItem item = wFields.getNonEmpty(i);\r\n\t\t\t\tString source = item.getText(2);\r\n\t\t\t\tString target = item.getText(1);\r\n\t\t\t\t\r\n\t\t\t\tint sourceIndex = sourceFields.indexOfValue(source); \r\n\t\t\t\tif (sourceIndex<0) {\r\n\t\t\t\t\tmissingSourceFields.append(Const.CR + \" \" + source+\" --> \" + target);\r\n\t\t\t\t}\r\n\t\t\t\tint targetIndex = targetFields.indexOfValue(target);\r\n\t\t\t\tif (targetIndex<0) {\r\n\t\t\t\t\tmissingTargetFields.append(Const.CR + \" \" + source+\" --> \" + target);\r\n\t\t\t\t}\r\n\t\t\t\tif (sourceIndex<0 || targetIndex<0) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSourceToTargetMapping mapping = new SourceToTargetMapping(sourceIndex, targetIndex);\r\n\t\t\t\tmappings.add(mapping);\r\n\t\t\t}\r\n\r\n\t\t\t// show a confirm dialog if some missing field was found\r\n\t\t\t//\r\n\t\t\tif (missingSourceFields.length()>0 || missingTargetFields.length()>0){\r\n\t\t\t\t\r\n\t\t\t\tString message=\"\";\r\n\t\t\t\tif (missingSourceFields.length()>0) {\r\n\t\t\t\t\tmessage+=BaseMessages.getString(PKG, \"VerticaBulkLoaderDialog.DoMapping.SomeSourceFieldsNotFound\", missingSourceFields.toString())+Const.CR;\r\n\t\t\t\t}\r\n\t\t\t\tif (missingTargetFields.length()>0) {\r\n\t\t\t\t\tmessage+=BaseMessages.getString(PKG, \"VerticaBulkLoaderDialog.DoMapping.SomeTargetFieldsNotFound\", missingSourceFields.toString())+Const.CR;\r\n\t\t\t\t}\r\n\t\t\t\tmessage+=Const.CR;\r\n\t\t\t\tmessage+=BaseMessages.getString(PKG, \"VerticaBulkLoaderDialog.DoMapping.SomeFieldsNotFoundContinue\")+Const.CR;\r\n\t\t\t\tboolean goOn = MessageDialog.openConfirm(shell, BaseMessages.getString(PKG, \"VerticaBulkLoaderDialog.DoMapping.SomeFieldsNotFoundTitle\"), message);\r\n\t\t\t\tif (!goOn) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tEnterMappingDialog d = new EnterMappingDialog(VerticaBulkLoaderDialog.this.shell, sourceFields.getFieldNames(), targetFields.getFieldNames(), mappings);\r\n\t\t\tmappings = d.open();\r\n\r\n\t\t\t// mappings == null if the user pressed cancel\r\n\t\t\t//\r\n\t\t\tif (mappings!=null) {\r\n\t\t\t\t// Clear and re-populate!\r\n\t\t\t\t//\r\n\t\t\t\twFields.table.removeAll();\r\n\t\t\t\twFields.table.setItemCount(mappings.size());\r\n\t\t\t\tfor (int i = 0; i < mappings.size(); i++) {\r\n\t\t\t\t\tSourceToTargetMapping mapping = (SourceToTargetMapping) mappings.get(i);\r\n\t\t\t\t\tTableItem item = wFields.table.getItem(i);\r\n\t\t\t\t\titem.setText(2, sourceFields.getValueMeta(mapping.getSourcePosition()).getName());\r\n\t\t\t\t\titem.setText(1, targetFields.getValueMeta(mapping.getTargetPosition()).getName());\r\n\t\t\t\t}\r\n\t\t\t\twFields.setRowNums();\r\n\t\t\t\twFields.optWidth(true);\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "07fbe8023b21d233276fe2ce3d709dff", "score": "0.43507236", "text": "public List<MetadataProxy> build(ResultSetMetaData rsmd) throws Exception {\n\n\t\tList<MetadataProxy> ret = new ArrayList<MetadataProxy>();\n\n\t\tfor (int i = 0; i < rsmd.getColumnCount(); i++) {\n\n\t\t\tMetadataProxy field = new MetadataProxy();\n\n\t\t\tfield.setName(rsmd.getColumnName(i + 1));\n\t\t\tfield.setLabel(rsmd.getColumnName(i + 1));\n\t\t\tfield.setIndex(i);\n\n\t\t\tswitch (rsmd.getColumnType(i + 1)) {\n\t\t\tcase Types.BIGINT:\n\t\t\t\tfield.setType(FieldType.Number);\n\t\t\t\tfield.setPrecision(rsmd.getPrecision(i + 1));\n\n\t\t\t\tif (field.getPrecision() > 18)\n\t\t\t\t\tfield.setPrecision(18);\n\n\t\t\t\tfield.setScale(rsmd.getScale(i + 1));\n\n\t\t\t\tif (field.getPrecision() < field.getScale())\n\t\t\t\t\tfield.setScale(field.getPrecision() - 1);\n\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.BINARY:\n\t\t\t\tfield.setType(FieldType.Checkbox);\n\t\t\t\tfield.setDefaultValue(\"false\");\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.BOOLEAN:\n\t\t\t\tfield.setType(FieldType.Checkbox);\n\t\t\t\tfield.setDefaultValue(\"false\");\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.CHAR:\n\t\t\t\tfield.setType(FieldType.Text);\n\t\t\t\tfield.setLength(rsmd.getPrecision(i + 1));\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.DATE:\n\t\t\t\tfield.setType(FieldType.Date);\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.DOUBLE:\n\t\t\t\tfield.setType(FieldType.Number);\n\t\t\t\tfield.setPrecision(rsmd.getPrecision(i + 1));\n\n\t\t\t\tif (field.getPrecision() > 18)\n\t\t\t\t\tfield.setPrecision(18);\n\n\t\t\t\tfield.setScale(rsmd.getScale(i + 1));\n\n\t\t\t\tif (field.getPrecision() < field.getScale())\n\t\t\t\t\tfield.setScale(field.getPrecision() - 1);\n\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.DECIMAL:\n\t\t\t\tfield.setType(FieldType.Number);\n\t\t\t\tfield.setPrecision(rsmd.getPrecision(i + 1));\n\n\t\t\t\tif (field.getPrecision() > 18)\n\t\t\t\t\tfield.setPrecision(18);\n\n\t\t\t\tfield.setScale(rsmd.getScale(i + 1));\n\n\t\t\t\tif (field.getPrecision() < field.getScale())\n\t\t\t\t\tfield.setScale(field.getPrecision() - 1);\n\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.FLOAT:\n\t\t\t\tfield.setType(FieldType.Number);\n\t\t\t\tfield.setPrecision(rsmd.getPrecision(i + 1));\n\n\t\t\t\tif (field.getPrecision() > 18)\n\t\t\t\t\tfield.setPrecision(18);\n\n\t\t\t\tfield.setScale(rsmd.getScale(i + 1));\n\n\t\t\t\tif (field.getPrecision() < field.getScale())\n\t\t\t\t\tfield.setScale(field.getPrecision() - 1);\n\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.INTEGER:\n\t\t\t\tfield.setType(FieldType.Number);\n\t\t\t\tfield.setPrecision(rsmd.getPrecision(i + 1));\n\n\t\t\t\tif (field.getPrecision() > 18)\n\t\t\t\t\tfield.setPrecision(18);\n\n\t\t\t\tfield.setScale(rsmd.getScale(i + 1));\n\n\t\t\t\tif (field.getPrecision() < field.getScale())\n\t\t\t\t\tfield.setScale(field.getPrecision() - 1);\n\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.LONGVARBINARY:\n\t\t\t\tfield.setType(FieldType.Checkbox);\n\t\t\t\tfield.setDefaultValue(\"false\");\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.LONGVARCHAR:\n\t\t\t\tfield.setType(FieldType.LongTextArea);\n\t\t\t\t// rsc don't need precision for textarea, do for a\n\t\t\t\t// longtextarea\n\t\t\t\tfield.setLength(32000);\n\t\t\t\t// field.setVisibleLines(5); // rsc hard coding for now since\n\t\t\t\t// this isn't metadata driven\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.REAL:\n\t\t\t\tfield.setType(FieldType.Number);\n\t\t\t\tfield.setPrecision(rsmd.getPrecision(i + 1));\n\n\t\t\t\tif (field.getPrecision() > 18)\n\t\t\t\t\tfield.setPrecision(18);\n\n\t\t\t\tfield.setScale(rsmd.getScale(i + 1));\n\n\t\t\t\tif (field.getPrecision() < field.getScale())\n\t\t\t\t\tfield.setScale(field.getPrecision() - 1);\n\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.NUMERIC:\n\t\t\t\tfield.setType(FieldType.Number);\n\t\t\t\tfield.setPrecision(rsmd.getPrecision(i + 1));\n\n\t\t\t\tif (field.getPrecision() > 18)\n\t\t\t\t\tfield.setPrecision(18);\n\n\t\t\t\tfield.setScale(rsmd.getScale(i + 1));\n\n\t\t\t\tif (field.getPrecision() < field.getScale())\n\t\t\t\t\tfield.setScale(field.getPrecision() - 1);\n\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.SMALLINT:\n\t\t\t\tfield.setType(FieldType.Number);\n\t\t\t\tfield.setPrecision(rsmd.getPrecision(i + 1));\n\n\t\t\t\tif (field.getPrecision() > 18)\n\t\t\t\t\tfield.setPrecision(18);\n\n\t\t\t\tfield.setScale(rsmd.getScale(i + 1));\n\n\t\t\t\tif (field.getPrecision() < field.getScale())\n\t\t\t\t\tfield.setScale(field.getPrecision() - 1);\n\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.TIME:\n\t\t\t\tfield.setType(FieldType.DateTime);\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.TIMESTAMP:\n\t\t\t\tfield.setType(FieldType.DateTime);\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.TINYINT:\n\t\t\t\tfield.setType(FieldType.Number);\n\t\t\t\tfield.setPrecision(rsmd.getPrecision(i + 1));\n\n\t\t\t\tif (field.getPrecision() > 18)\n\t\t\t\t\tfield.setPrecision(18);\n\n\t\t\t\tfield.setScale(rsmd.getScale(i + 1));\n\n\t\t\t\tif (field.getPrecision() < field.getScale())\n\t\t\t\t\tfield.setScale(field.getPrecision() - 1);\n\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\tcase Types.VARCHAR:\n\t\t\t\tfield.setType(FieldType.Text);\n\t\t\t\tfield.setLength(rsmd.getPrecision(i + 1));\n\n\t\t\t\t// 2008-12-28 RSC double check the value\n\t\t\t\tif (field.getLength() > 255) {\n\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\"value of the field length is too large. Max is 255 but the DB metadata shows \"\n\t\t\t\t\t\t\t\t\t+ rsmd.getPrecision(i + 1));\n\t\t\t\t}\n\n\t\t\t\t// customFieldsCollection.add(field);\n\t\t\t\t// fieldMap.put(rsmd.getColumnName(i + 1), sfdcColumnName);\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tret.add(field);\n\n\t\t}\n\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "9ed84128a2d66fa39b1af9464fa40df0", "score": "0.43504766", "text": "public ScGridColumn<AcOriginActualRouteEmailNotificationEventVo> newOriginActualRouteEmailNotificationEventSuspectedFinalDestinationAirportCodeColumn()\n {\n return newOriginActualRouteEmailNotificationEventSuspectedFinalDestinationAirportCodeColumn(\"Origin Actual Route Email Notification Event Suspected Final Destination Airport Code\");\n }", "title": "" }, { "docid": "9c7f05cf882686f40da27c137777aef7", "score": "0.43487656", "text": "public List<OrdenSalidaMaterial> getOrdenSalidaMaterialPorAprobar(int idOrganizacion, Usuario usuarioEnSesion, Integer idOrdenSalidaMaterial, List<EntidadUsuario> listaSuperiores, List<EntidadUsuario> listaSubordinados, String numero, TipoCicloProduccionEnum tipoCicloProduccionEnum, String sucursal, Estado estado, String descripcion)\r\n/* 479: */ throws AS2Exception\r\n/* 480: */ {\r\n/* 481:532 */ StringBuilder sql = new StringBuilder();\r\n/* 482:533 */ sql.append(\"SELECT osm FROM OrdenSalidaMaterial osm\");\r\n/* 483:534 */ sql.append(\" JOIN FETCH osm.sucursal s\");\r\n/* 484:535 */ sql.append(\" WHERE osm.idOrganizacion= :idOrganizacion\");\r\n/* 485:536 */ sql.append(\" AND osm.indicadorTransferencia = false\");\r\n/* 486:538 */ if ((numero == null) && (tipoCicloProduccionEnum == null) && (sucursal == null) && (estado == null) && (descripcion == null))\r\n/* 487: */ {\r\n/* 488:539 */ sql.append(\" AND osm.estado != :estadoAnulado\");\r\n/* 489:540 */ sql.append(\" AND osm.estado != :estadoProcesado\");\r\n/* 490:541 */ sql.append(\" AND osm.estado != :estadoCerrado\");\r\n/* 491:542 */ sql.append(\" AND osm.aprobado = false\");\r\n/* 492: */ }\r\n/* 493:544 */ if ((numero != null) && (!numero.trim().isEmpty())) {\r\n/* 494:545 */ sql.append(\" AND osm.numero LIKE :numero\");\r\n/* 495: */ }\r\n/* 496:547 */ if (tipoCicloProduccionEnum != null) {\r\n/* 497:548 */ sql.append(\" AND osm.tipoCicloProduccionEnum = :tipoCicloProduccionEnum\");\r\n/* 498: */ }\r\n/* 499:550 */ if ((sucursal != null) && (!sucursal.trim().isEmpty())) {\r\n/* 500:551 */ sql.append(\" AND s.nombre LIKE :sucursal\");\r\n/* 501: */ }\r\n/* 502:553 */ if (estado != null) {\r\n/* 503:554 */ sql.append(\" AND osm.estado = :estado\");\r\n/* 504: */ }\r\n/* 505:556 */ if ((descripcion != null) && (!descripcion.trim().isEmpty())) {\r\n/* 506:557 */ sql.append(\" AND osm.descripcion LIKE :descripcion\");\r\n/* 507: */ }\r\n/* 508:560 */ if (idOrdenSalidaMaterial != null) {\r\n/* 509:561 */ sql.append(\" AND osm.idOrdenSalidaMaterial = :idOrdenSalidaMaterial\");\r\n/* 510: */ }\r\n/* 511:564 */ if (!TipoVisualizacionEnum.TODA_LA_ORGANIZACION.equals(usuarioEnSesion.getTipoVisualizacion())) {\r\n/* 512:565 */ sql.append(\" AND s.idSucursal IN (:listaIdSucursal)\");\r\n/* 513: */ }\r\n/* 514:567 */ if (usuarioEnSesion.isIndicadorAprobador())\r\n/* 515: */ {\r\n/* 516:568 */ if ((listaSuperiores.isEmpty()) && (listaSubordinados.isEmpty())) {\r\n/* 517:569 */ throw new AS2Exception(\"ERROR_NO_DEFINIDA_JERARQUIA_USUARIO_APROBADOR\", new String[] { usuarioEnSesion.getNombreUsuario() });\r\n/* 518: */ }\r\n/* 519:571 */ if (!listaSubordinados.isEmpty()) {\r\n/* 520:573 */ sql.append(\" AND osm.usuarioCreacion IN (:listaUsuarioSubordinados)\");\r\n/* 521: */ } else {\r\n/* 522:576 */ sql.append(\" AND 1=2\");\r\n/* 523: */ }\r\n/* 524: */ }\r\n/* 525:580 */ Query query = this.em.createQuery(sql.toString());\r\n/* 526:581 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 527:582 */ if ((numero == null) && (tipoCicloProduccionEnum == null) && (sucursal == null) && (estado == null) && (descripcion == null))\r\n/* 528: */ {\r\n/* 529:583 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 530:584 */ query.setParameter(\"estadoProcesado\", Estado.CERRADO);\r\n/* 531:585 */ query.setParameter(\"estadoCerrado\", Estado.PROCESADO);\r\n/* 532: */ }\r\n/* 533:587 */ if (idOrdenSalidaMaterial != null) {\r\n/* 534:588 */ query.setParameter(\"idOrdenSalidaMaterial\", idOrdenSalidaMaterial);\r\n/* 535: */ }\r\n/* 536:590 */ if ((numero != null) && (!numero.trim().isEmpty())) {\r\n/* 537:591 */ query.setParameter(\"numero\", \"%\" + numero.trim() + \"%\");\r\n/* 538: */ }\r\n/* 539:593 */ if (tipoCicloProduccionEnum != null) {\r\n/* 540:594 */ query.setParameter(\"tipoCicloProduccionEnum\", tipoCicloProduccionEnum);\r\n/* 541: */ }\r\n/* 542:596 */ if ((sucursal != null) && (!sucursal.trim().isEmpty())) {\r\n/* 543:597 */ query.setParameter(\"sucursal\", \"%\" + sucursal.trim() + \"%\");\r\n/* 544: */ }\r\n/* 545:599 */ if (estado != null) {\r\n/* 546:600 */ query.setParameter(\"estado\", estado);\r\n/* 547: */ }\r\n/* 548:602 */ if ((descripcion != null) && (!descripcion.trim().isEmpty())) {\r\n/* 549:603 */ query.setParameter(\"descripcion\", \"%\" + descripcion.trim() + \"%\");\r\n/* 550: */ }\r\n/* 551:606 */ if (!TipoVisualizacionEnum.TODA_LA_ORGANIZACION.equals(usuarioEnSesion.getTipoVisualizacion()))\r\n/* 552: */ {\r\n/* 553:607 */ List<Integer> listaIdSucursal = new ArrayList();\r\n/* 554:608 */ for (UsuarioSucursal usuarioSucursal : usuarioEnSesion.getListaUsuarioSucursal()) {\r\n/* 555:609 */ listaIdSucursal.add(Integer.valueOf(usuarioSucursal.getSucursal().getId()));\r\n/* 556: */ }\r\n/* 557:611 */ query.setParameter(\"listaIdSucursal\", listaIdSucursal);\r\n/* 558: */ }\r\n/* 559:613 */ if (usuarioEnSesion.isIndicadorAprobador()) {\r\n/* 560:615 */ if (!listaSubordinados.isEmpty())\r\n/* 561: */ {\r\n/* 562:616 */ List<String> listaUsuarioSubordinados = new ArrayList();\r\n/* 563:617 */ for (EntidadUsuario entidadUsuario : listaSubordinados) {\r\n/* 564:618 */ listaUsuarioSubordinados.add(entidadUsuario.getNombreUsuario());\r\n/* 565: */ }\r\n/* 566:620 */ query.setParameter(\"listaUsuarioSubordinados\", listaUsuarioSubordinados);\r\n/* 567: */ }\r\n/* 568: */ }\r\n/* 569:624 */ return query.getResultList();\r\n/* 570: */ }", "title": "" }, { "docid": "e24918fb5e2d9775982eba6f5caea0b7", "score": "0.43473747", "text": "public ResultSet obtenerRegRelTraMan(Connection con, int intCodEmp, int intCodLoc, int intCodTipDoc, int intCodDoc){\r\n ResultSet rsReg=null;\r\n Statement stm=null;\r\n String strQry=\"\"; \r\n \r\n strQry= \"select u.co_emp, u.co_loc, u.co_tipdoc, u.co_doc, m.co_bod from(\"+\r\n \" select co_emprel, co_locrel, co_tipdocrel, co_docrel, co_regrel\" +\r\n \" from tbr_detmovinv \"+\r\n \" where co_emp=\"+intCodEmp+\r\n \" and co_loc= \"+intCodLoc+\r\n \" and co_tipdoc=\"+intCodTipDoc+\r\n \" and co_doc=\"+intCodDoc+\r\n \" )i, tbr_detmovinv u , tbm_detmovinv m \"+\r\n \" where u.co_emprel=i.co_emprel\"+\r\n \" and u.co_locrel=i.co_locrel\"+\r\n \" and u.co_tipdocrel=i.co_tipdocrel\"+\r\n \" and u.co_docrel=i.co_docrel\"+\r\n \" and u.co_regrel=i.co_regrel\"+\r\n \" and u.co_tipdocrel in (46,234)\"+\r\n \" and u.co_emp=m.co_emp\"+\r\n \" and u.co_loc=m.co_loc\"+\r\n \" and u.co_tipdoc=m.co_tipdoc\"+\r\n \" and u.co_doc=m.co_doc\"+\r\n \" and u.co_reg=m.co_reg\"; \r\n try{\r\n stm=con.createStatement();\r\n rsReg=stm.executeQuery(strQry);\r\n }catch(Exception ex){\r\n ex.printStackTrace();\r\n } \r\n return rsReg;\r\n }", "title": "" }, { "docid": "73d53c9ee5d336319de7d1f7b372cfd8", "score": "0.43460053", "text": "public Fragmention(ResultSet aRS) throws SQLException {\n this.iFragmentionid = aRS.getLong(1);\n this.iL_identificationid = aRS.getLong(2);\n this.iIontype = aRS.getLong(3);\n iIonname = aRS.getString(4);\n iL_ionscoringid = aRS.getLong(5);\n iMz = aRS.getDouble(6);\n iIntensity = aRS.getLong(7);\n iFragmentionnumber = aRS.getLong(8);\n iMassdelta = aRS.getDouble(9);\n iMasserrormargin = aRS.getDouble(10);\n iUsername = aRS.getString(11);\n iCreationdate = (java.sql.Timestamp) aRS.getObject(12);\n iModificationdate = (java.sql.Timestamp) aRS.getObject(13);\n }", "title": "" }, { "docid": "cbf604993eeae366ed97901495d28a60", "score": "0.43405935", "text": "@Override\n\tpublic String getUpdateSql() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f15b47dc9b63ddd058f04c5c3783bfad", "score": "0.4338368", "text": "org.apache.xmlbeans.XmlAnySimpleType getMaterial();", "title": "" }, { "docid": "48eeb6f157d7754454fb0314b3421120", "score": "0.4333511", "text": "@Override\n\tpublic List<Material> getAllMaterial() {\n\t\treturn materialDao.getAllMaterial();\n\t}", "title": "" }, { "docid": "009638d72f61d2fdc70626ba5273e028", "score": "0.4330678", "text": "public ManagedFormulaMaestraDetalleFPActividadMaterial() {\n }", "title": "" }, { "docid": "ddf6871e45e4be776b3a89ecce0468e5", "score": "0.4328877", "text": "public long getIdMateriale();", "title": "" }, { "docid": "b26b50a8cea1bd75ecd43827b1c149b7", "score": "0.43268892", "text": "public void populateBasicImportedInfo(ResultSet rs) {\n try {\n setDonorAlias(rs.getString(DbAliases.DONOR_CUSTOMER_ID));\n setConsentAlias(rs.getString(DbAliases.CONSENT_CUSTOMER_ID));\n setPreparedBy(rs.getString(DbAliases.ASM_FORM_PREPARED_BY));\n setProcedure(rs.getString(DbAliases.ASM_FORM_PROCEDURE));\n setProcedureOther(rs.getString(DbAliases.ASM_FORM_PROCEDURE_OTHER));\n setGrossAppearance(rs.getString(DbAliases.ASM_APPEARANCE));\n setTissue(rs.getString(DbAliases.ASM_TISSUE));\n setTissueOther(rs.getString(DbAliases.ASM_TISSUE_OTHER));\n }\n catch (SQLException e) {\n ApiFunctions.throwAsRuntimeException(e);\n }\n}", "title": "" }, { "docid": "03d9919c4bd6050222f95670926c53df", "score": "0.43254507", "text": "@Override\n public String toString() {\n return nombreMateria;\n }", "title": "" }, { "docid": "0835abb52bb22fff3f927fd3511ea0aa", "score": "0.43243405", "text": "private String getProductListSql(boolean isUSRegion, Map<AType, String> colAttrs) {\n\t\tStringBuilder sql = new StringBuilder(2500);\n\t\tString custom = (String)getAttribute(Constants.CUSTOM_DB_SCHEMA);\n\t\tsql.append(\"select distinct f.short_nm, f.product_id, c.column_nm, g.company_nm \");\n\t\tsql.append(DBUtil.FROM_CLAUSE).append(custom).append(\"biomedgps_ga_column c \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(custom).append(\"biomedgps_ga_column_attribute_xr d \");\n\t\tsql.append(\"on d.ga_column_id = c.ga_column_id \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(custom).append(\"biomedgps_product_attribute pa \");\n\t\tsql.append(\"on d.attribute_id = pa.attribute_id \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(custom).append(\"biomedgps_product_attribute_xr e \");\n\t\tsql.append(\"on d.attribute_id = e.attribute_id \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(custom).append(\"biomedgps_product f \");\n\t\tsql.append(\"on e.product_id = f.product_id \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(custom).append(\"biomedgps_product_regulatory r \");\n\t\tsql.append(\"on f.product_id = r.product_id \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(custom).append(\"biomedgps_company g \");\n\t\tsql.append(\"on f.company_id = g.company_id \");\n\t\tsql.append(\"where g.company_id = ? and f.status_no = ? \");\n\t\tif(isUSRegion) {\n\t\t\tsql.append(\"and r.region_id = ? \");\n\t\t} else {\n\t\t\tsql.append(\"and r.region_id != ? \");\n\t\t}\n\t\tsql.append(\"and c.ga_column_id = ? \");\n\t\tsql.append(\"and f.product_id in ( \");\n\t\tbuildProdAttributeFilterQuery(sql, colAttrs);\n\t\tsql.append(\") order by f.short_nm\");\n\t\tlog.debug(sql.toString());\n\t\treturn sql.toString();\n\t}", "title": "" }, { "docid": "3f7d038f9dbe7130dc761b41758dd333", "score": "0.43234766", "text": "public int reabrirOrden(OrdenSalidaMaterial ordenSalidaMaterial)\r\n/* 372: */ {\r\n/* 373:417 */ StringBuilder sql = new StringBuilder();\r\n/* 374:418 */ sql.append(\" UPDATE OrdenSalidaMaterial osm \");\r\n/* 375:419 */ sql.append(\" SET osm.estado = :estadoElaborado \");\r\n/* 376:420 */ sql.append(\" WHERE osm.idOrdenSalidaMaterial = :idOrdenSalidaMaterial \");\r\n/* 377:421 */ sql.append(\" AND (osm.estado = :estadoCerrado OR osm.estado = :estadoProcesado ) \");\r\n/* 378: */ \r\n/* 379:423 */ Query query = this.em.createQuery(sql.toString());\r\n/* 380:424 */ query.setParameter(\"idOrdenSalidaMaterial\", Integer.valueOf(ordenSalidaMaterial.getId()));\r\n/* 381:425 */ query.setParameter(\"estadoElaborado\", Estado.ELABORADO);\r\n/* 382:426 */ query.setParameter(\"estadoCerrado\", Estado.CERRADO);\r\n/* 383:427 */ query.setParameter(\"estadoProcesado\", Estado.PROCESADO);\r\n/* 384: */ \r\n/* 385:429 */ return query.executeUpdate();\r\n/* 386: */ }", "title": "" } ]
bd1d73a88dba1cfcb8ea227c6bae4f0f
determines which button was pressed
[ { "docid": "57892a105112193ee66e18d208494a77", "score": "0.0", "text": "public void jButtonLevelAction(java.awt.event.ActionEvent evt){\n JButton source = (JButton)evt.getSource();\n //changes level based on button selected\n if(source==levels[0]){\n level = (\"1\");\n }\n else if(source==levels[1]){\n level = (\"2\");\n }\n else if(source == levels[2]){\n level = (\"3\");\n }\n //places new puzzle numbers on grid\n putNumbers();\n //clears grid\n clearGrid();\n }", "title": "" } ]
[ { "docid": "8a8aefab6d7bf8f5888cb8b868b87912", "score": "0.74226874", "text": "void onButtonPressed(int button);", "title": "" }, { "docid": "197cab4d45bde24906eff8cb4c02db4b", "score": "0.72647387", "text": "protected final int getButton() {\r\n return button;\r\n }", "title": "" }, { "docid": "964d0a6721a2ae52d1730914d251c732", "score": "0.72555923", "text": "int getMouseButton();", "title": "" }, { "docid": "964d0a6721a2ae52d1730914d251c732", "score": "0.72555923", "text": "int getMouseButton();", "title": "" }, { "docid": "964d0a6721a2ae52d1730914d251c732", "score": "0.72555923", "text": "int getMouseButton();", "title": "" }, { "docid": "c6343d18559a59aa36063f2639579a56", "score": "0.72125995", "text": "public int getButton()\n\t{\n\t\treturn button;\n\t}", "title": "" }, { "docid": "9647c1a88fa1b76b5a2c2ea90ddac54d", "score": "0.6858166", "text": "public void onPressed(Button button);", "title": "" }, { "docid": "c84f35c29702cf4a96ea278558920ab1", "score": "0.68350214", "text": "java.lang.String getAction();", "title": "" }, { "docid": "c84f35c29702cf4a96ea278558920ab1", "score": "0.68350214", "text": "java.lang.String getAction();", "title": "" }, { "docid": "ee86e9546648214afe58e8bc3373351f", "score": "0.6778015", "text": "public void actionPerformed (ActionEvent evt){\n //gets the source of the button pressed\n Object src = evt.getSource(); \n if(src == doneButton){ \n doneButtonScreen(); \n }\n else if (src == nextStudentButton){\n nextButtonScreen();\n }\n }", "title": "" }, { "docid": "8d129329dd7fb891c93f7a7e06f5dbab", "score": "0.676917", "text": "Button getPrimaryButton();", "title": "" }, { "docid": "5931500510cd0822d8d89b019d7ecc5f", "score": "0.6716429", "text": "public void buttonPressed(ActionEvent event) {\n String buttonID = ((Button) event.getSource()).getId();\n\n switch(buttonID)\n {\n case \"setupMtgButton\" : new ApiDialog(Global.dashboardStage,false, Constant.MTGOX).show(); break;\n case \"setupBtceBtn\" : new ApiDialog(Global.dashboardStage,false, Constant.BTCE).show(); break;\n case \"setupBitstampBtn\" : new ApiDialog(Global.dashboardStage,false, Constant.BITSTAMP).show(); break;\n default : Utils.log(\"Calling buttonPressed with wrong id : \"+buttonID, Utils.LOG_ERR); break;\n }\n }", "title": "" }, { "docid": "5e59070118e637af50e69cfc0a0933af", "score": "0.66522336", "text": "public void onClick(DialogInterface dialog, int whichButton) {\r\n\t \t whichChoose=whichButton;\r\n\t }", "title": "" }, { "docid": "cc273509a9fb0e0306a14ad6ab8146a0", "score": "0.66420853", "text": "boolean getAction();", "title": "" }, { "docid": "ad7ea87b379922bdc31ccfa26f513685", "score": "0.66121995", "text": "public void buttonPressed() {\n\t\tPoint p = /*surface.actualCoordinatesToAssumed(*/new Point(surface.mouseX,surface.mouseY);\n\t\tif (button.contains(p)) {\n\t\t\tsurface.switchScreen(ScreenSwitcher.MENU_SCREEN);\n\t\t}\n\t}", "title": "" }, { "docid": "94f52f0244c209388644628a13081d3d", "score": "0.6581614", "text": "@Override\r\n\tpublic void buttonClick(String button) {\n\r\n\t}", "title": "" }, { "docid": "5884c4805472bdfdcb985ce119b421b1", "score": "0.6581362", "text": "private Button whichButton()\n {\n for(int i = 0; i < BCOUNT; i++)\n {\n if(within(buttonArray[i].area())) {\n return buttonArray[i];\n }\n }\n for(Integer i : buttonMap.keySet())\n {\n if(within(buttonMap.get(i).area())) {\n return buttonMap.get(i);\n }\n }\n return null;\n }", "title": "" }, { "docid": "e46b5036f5f1dd346bd23a757169b1a9", "score": "0.6553448", "text": "public int getButton() {\n/* 915 */ return this.button;\n/* */ }", "title": "" }, { "docid": "ac8178441207eab15f85d224f4aff6f2", "score": "0.6508531", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource().equals(btnthem)) {\n btnThemClick();\n } else if (e.getSource().equals(btnsua)) {\n btnSuaClick();\n } else if (e.getSource().equals(btnxoa)) {\n btnXoaClick();\n } else if (e.getSource().equals(btntimkiem)) {\n btnTimkiemClick();\n } else {\n btnResetClick();\n }\n }", "title": "" }, { "docid": "0e2ed13392299d3a82be8cf8bf23f47e", "score": "0.6488236", "text": "void onButtonReleased(int button);", "title": "" }, { "docid": "610bae466a6558552639d00ef1ce9be2", "score": "0.6483231", "text": "void buttonClicked(EDAButtonEvent e);", "title": "" }, { "docid": "f8b13a7e908f6f0ebc914c307fbf2c03", "score": "0.647163", "text": "String getOndblclick();", "title": "" }, { "docid": "2cf666ea78d6ac45cf40aae5d64ad780", "score": "0.6458617", "text": "public JButton getButton(){\n\t\treturn btnStartGame;\n\t}", "title": "" }, { "docid": "e0226e7b403c5b70fced51de0df91c7b", "score": "0.6455213", "text": "public boolean getButton(int glfw_mouse_button) {\n\t\treturn buttons[glfw_mouse_button];\n\t}", "title": "" }, { "docid": "db1dcd4018bf1107ebbe5829fd6bd46f", "score": "0.6453958", "text": "@Override\r\n public void execute(int btnPressed) {\n \r\n }", "title": "" }, { "docid": "20e1db44270f87fa544324abbfc15b39", "score": "0.64252996", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(f, \"Mode Selected: \" + button.getSelectedItem().toString());\n\t\t\t\t// gr = button.getSelectedItem().toString();\n\t\t\t}", "title": "" }, { "docid": "5152f54b7952b749663799159f685452", "score": "0.64177704", "text": "java.lang.String getButtonType();", "title": "" }, { "docid": "40821aba57dd1cb50ca296e1b10a3dd7", "score": "0.64087784", "text": "public boolean getAButtonPressed() {\n return getRawButtonPressed(Button.kA.value);\n }", "title": "" }, { "docid": "080d87b240cb4deda54946c791a62331", "score": "0.64003116", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n System.out.println(String.format(\"%s button pressed\", e.getActionCommand()));\n }", "title": "" }, { "docid": "f7667fbb888896785e0f20921ca7f23f", "score": "0.6398222", "text": "@Override \n\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\tButton btn = (Button)v;\n\t\t\t\t\tint question = Integer.parseInt(btn.getText().toString());\n\t\t\t\t\tnoOfquestion=question;\n\t\t\t\t\tsetTextOfNoQuestion=question;\n\t\t\t\t\t//Toast.makeText(DispalyQuestion.this,\"\"+noOfquestion, Toast.LENGTH_SHORT).show();\n\t\t\t\t\tbuttonselected(noOfquestion);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "2c2fefd1b60aa18cba1f9eb5b547c46b", "score": "0.63721323", "text": "public void action(){\n button.setOnAction(event);\n // when button is pressed\n button4.setOnAction(event4);\n }", "title": "" }, { "docid": "1de07e803f669ea9afb43f0180237a3d", "score": "0.6366848", "text": "public void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource() == Btn1)\r\n\t\t{\r\n\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5469f426474896c0895d9faec3226041", "score": "0.6360407", "text": "@Override\r\n\tpublic void controllerButtonPressed(int arg0, int arg1) {\n\r\n\t}", "title": "" }, { "docid": "5c030c0deb0a81e5c0d8df6b4d9f941a", "score": "0.6320841", "text": "private void buttonClicked(String location) {\n /* Gets the value of the clicked button */\n int value = getValueAtLocation(location);\n\n /* If button invalid */\n if (value == -1) {\n Gdx.app.log(\"buttonClicked:\", \"invalid\");\n return;\n }\n /* If at start of choosing a pair, nothing currently selected */\n if (currentValue == -1) {\n Gdx.app.log(\"buttonClicked:\", \"start of pair\");\n currentValue = value;\n textButtons[Integer.parseInt(location)].setName(\"-1\"); // first button becomes invalid\n textButtons[Integer.parseInt(location)].setText(Integer.toString(getValueAtLocation(location)));\n }\n\n /* If correct */\n else if (value == currentValue) {\n Gdx.app.log(\"buttonClicked:\", \"correct match\");\n score += 1;\n currentValue = -1;\n textButtons[Integer.parseInt(location)].setName(\"-1\");\n textButtons[Integer.parseInt(location)].setText(Integer.toString(getValueAtLocation(location)));\n pairFound();\n }\n\n /* If incorrect */\n else {\n Gdx.app.log(\"buttonClicked:\", \"incorrect match\");\n score = 0;\n endMiniGame();\n }\n }", "title": "" }, { "docid": "8f73970eeabdf363b8939effc2a70384", "score": "0.63043547", "text": "public void onButtonDown(LogitechF310.Button button) {\n }", "title": "" }, { "docid": "db29234fd8775f5ad5b09d37dd3adff4", "score": "0.63007724", "text": "boolean isPressed(int button) {\n Boolean value = mButtons.get(button);\n if (value == null) {\n return false;\n }\n return value.booleanValue();\n }", "title": "" }, { "docid": "29bc02faa33994662256d1a42eae6b88", "score": "0.6284769", "text": "public int getSelectedButton()\r\n\t{ \r\n\t\tfor (Enumeration<AbstractButton> buttons = LibraryGUI.group.getElements(); buttons.hasMoreElements();) {\r\n\t\t\tAbstractButton button = buttons.nextElement();\r\n\t\t\tif (button.isSelected()) {\r\n\t\t\t\treturn Integer.valueOf(button.getText());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "081083af1d8e032acad5820d4537d6b7", "score": "0.62787056", "text": "private void buttonListener() {\n\t\t// listens to buttons and make decision based on what is pressed or if\n\t\t// game is prompting\n\t\tswitch (bS) {\n\t\tcase uninitiated:\n\t\t\tif (startButton.getModel().isPressed()) {\n\t\t\t\tbS = buttonState.startP;\n\t\t\t\tprompt();\n\t\t\t} else if (hTP.getModel().isPressed()) {\n\t\t\t\thideMenus();\n\t\t\t\thTPMENU.setVisible(true);\n\t\t\t} else if (settings.getModel().isPressed()) {\n\t\t\t\thideMenus();\n\t\t\t\tsettingsMenu.setVisible(true);\n\t\t\t\tupButton.setVisible(true);\n\t\t\t\tdownButton.setVisible(true);\n\t\t\t\trightButton.setVisible(true);\n\t\t\t\tleftButton.setVisible(true);\n\t\t\t} else if (credits.getModel().isPressed()) {\n\t\t\t\thideMenus();\n\t\t\t\tcreditsMenu.setVisible(true);\n\t\t\t} else if (exit.getModel().isPressed()) {\n\t\t\t\tbS = buttonState.quitP;\n\t\t\t\tprompt();\n\t\t\t}\n\t\t\tbreak;\n\t\tcase standard:\n\t\t\tif (startButton.getModel().isPressed()) {\n\t\t\t\tbS = buttonState.notVis;\n\t\t\t\tgS = gameState.unpaused;\n\t\t\t} else if (hTP.getModel().isPressed()) {\n\t\t\t\thideMenus();\n\t\t\t\thTPMENU.setVisible(true);\n\t\t\t} else if (settings.getModel().isPressed()) {\n\t\t\t\thideMenus();\n\t\t\t\tsettingsMenu.setVisible(true);\n\t\t\t\tupButton.setVisible(true);\n\t\t\t\tdownButton.setVisible(true);\n\t\t\t\trightButton.setVisible(true);\n\t\t\t\tleftButton.setVisible(true);\n\t\t\t} else if (credits.getModel().isPressed()) {\n\t\t\t\thideMenus();\n\t\t\t\tcreditsMenu.setVisible(true);\n\t\t\t} else if (exit.getModel().isPressed()) {\n\t\t\t\tbS = buttonState.quitP;\n\t\t\t\tprompt();\n\t\t\t}\n\t\t\t// } else if (upButton.getModel().isPressed()) {\n\t\t\t// bS = buttonState.changingButtons;\n\t\t\t// bCS = buttonChangingState.up;\n\t\t\t// } else if (downButton.getModel().isPressed()) {\n\t\t\t// bS = buttonState.changingButtons;\n\t\t\t// bCS = buttonChangingState.down;\n\t\t\t// } else if (rightButton.getModel().isPressed()) {\n\t\t\t// bS = buttonState.changingButtons;\n\t\t\t// bCS = buttonChangingState.right;\n\t\t\t// } else if (leftButton.getModel().isPressed()) {\n\t\t\t// bS = buttonState.changingButtons;\n\t\t\t// bCS = buttonChangingState.left;\n\n\t\t\tbreak;\n\t\tcase quitP:\n\t\t\t// if yes is pressed return variable true\n\t\t\tif (playPromptYes.getModel().isPressed()) {\n\t\t\t\tyesNoMenu.setVisible(false);\n\t\t\t\tplayPromptYes.setVisible(false);\n\t\t\t\tplayPromptNo.setVisible(false);\n\t\t\t\tSystem.exit(1);\n\t\t\t} else if (playPromptNo.getModel().isPressed()) {\n\t\t\t\tyesNoMenu.setVisible(false);\n\t\t\t\tplayPromptYes.setVisible(false);\n\t\t\t\tplayPromptNo.setVisible(false);\n\t\t\t\tbS = buttonState.standard;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase startP:\n\t\t\tif (playPromptYes.getModel().isPressed()) {\n\t\t\t\tyesNoMenu.setVisible(false);\n\t\t\t\tplayPromptYes.setVisible(false);\n\t\t\t\tplayPromptNo.setVisible(false);\n\t\t\t\tstartButton.setText(\"CONTINUE\");\n\t\t\t\tbS = buttonState.notVis;\n\t\t\t\tgS = gameState.unpaused;\n\t\t\t} else if (playPromptNo.getModel().isPressed()) {\n\t\t\t\tyesNoMenu.setVisible(false);\n\t\t\t\tplayPromptYes.setVisible(false);\n\t\t\t\tplayPromptNo.setVisible(false);\n\t\t\t\tbS = buttonState.standard;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase notVis:\n\t\t\t;\n\t\t\tbreak;\n\t\tcase changingButtons:\n\t\t\t// switch (bCS) {\n\t\t\t// case up:\n\t\t\t// upKey = nextPressed;\n\t\t\t// bS = buttonState.standard;\n\t\t\t// break;\n\t\t\t// case down:\n\t\t\t// downKey = nextPressed;\n\t\t\t// bS = buttonState.standard;\n\t\t\t// break;\n\t\t\t// case left:\n\t\t\t// leftKey = nextPressed;\n\t\t\t// bS = buttonState.standard;\n\t\t\t// break;\n\t\t\t// case right:\n\t\t\t// rightKey = nextPressed;\n\t\t\t// bS = buttonState.standard;\n\t\t\t// break;\n\t\t\t// case buy:\n\t\t\t// break;\n\t\t\t// case notChanging:\n\t\t\t// bS = buttonState.standard;\n\t\t\t// break;\n\t\t\t// default:\n\t\t\t// break;\n\t\t\t// }\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "14bbc96cdf5fc7220a6b0177f1e718f1", "score": "0.62755626", "text": "public void onClick( DialogInterface dialog, int whichButton )\n {\n }", "title": "" }, { "docid": "1f70d3fcb948cf8ebc3733f4ed44e9bc", "score": "0.62713295", "text": "public void buttonPressed(boolean powerbutton)\n\t{\n\t}", "title": "" }, { "docid": "13d80ad950a0d3c1daf69d385f8c7b78", "score": "0.6244291", "text": "private void handleButtonsEvents() {\n }", "title": "" }, { "docid": "2d5b8a1471271d2972b71e3bc131a2a2", "score": "0.6240734", "text": "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tJButton jb = (JButton)(e.getSource());\r\n\t\tif (jb==first){\r\n\t\t\tcardLayout.first(pg1);\r\n\t\t} else if (jb==prev){\r\n\t\t\tcardLayout.previous(pg1);\r\n\t\t} else if (jb==next){\r\n\t\t\tcardLayout.next(pg1);\r\n\t\t} else if (jb==last){\r\n\t\t\tcardLayout.last(pg1);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e6bce5ba9b9cd912f3c43362ccb4a483", "score": "0.62398064", "text": "String getOnclick();", "title": "" }, { "docid": "053c35d8b588e92d5e8049b36618c1f5", "score": "0.62287617", "text": "public void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource() == Btn1)\n\t\t{\n\n\t\t}\n\t}", "title": "" }, { "docid": "b1c2ccf52c268fc2fbef8c0ade8f1142", "score": "0.62246764", "text": "public void updateButton() {\n\t\t\t\t\n\t\t\tif(type == 2) { //the small rectangle at the top right during selection phase\n\t\t\t\tif(game.selecting == true) {\n\t\t\t\t\tvisible = true;\n\t\t\t\t\t/*game.selectionbuttons.get(2).visible = true;\n\t\t\t\t\tgame.selectionbuttons.get(3).visible = true;\n\t\t\t\t\tgame.selectionbuttons.get(4).visible = true;\n\t\t\t\t\tgame.selectionbuttons.get(5).visible = true;\n\t\t\t\t\tgame.selectionbuttons.get(6).visible = true;\n\t\t\t\t\tgame.selectionbuttons.get(7).visible = true;*/\n\t\t\t\t} if(game.selecting == false) {\n\t\t\t\t\tvisible = false;\n\t\t\t\t\t/*game.selectionbuttons.get(2).visible = false;\n\t\t\t\t\tgame.selectionbuttons.get(3).visible = false;\n\t\t\t\t\tgame.selectionbuttons.get(4).visible = false;\n\t\t\t\t\tgame.selectionbuttons.get(5).visible = false;\n\t\t\t\t\tgame.selectionbuttons.get(6).visible = false;\n\t\t\t\t\tgame.selectionbuttons.get(7).visible = false;*/\n\t\t\t\t}\n\t\t\t} else if(type == 4 || type == 5) { //if the button value is in the 1000's, it is a menu type of button\n\t\t\t\tif(game.menu == true) {\n\t\t\t\t\tvisible = true;\n\t\t\t\t} else if(game.menu == false) {\n\t\t\t\t\tvisible = false;\n\t\t\t\t}\n\t\t\t} \n\t\t\t\n\t\t\t//the line input.lastkey = 0; is used to prevent sButtonPressed and the other booleans from repeatedly activating since lastKey only takes into account the last key you pressed\n\t\t\t\n\t\t\t/*if(wButtonPressed == true) {\n\t\t\t\tgame.buttons.get(0).clicked = false; //to make the other buttons's clicked variable false\n\t\t\t\tgame.buttons.get(1).clicked = true;\n\t\t\t\tgame.buttons.get(2).clicked = false;\n\t\t\t\tinput.lastKey = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(qButtonPressed == true) {\n\t\t\t\tgame.buttons.get(0).clicked = true; //to make the other buttons's clicked variable false\n\t\t\t\tgame.buttons.get(1).clicked = false;\n\t\t\t\tgame.buttons.get(2).clicked = false;\n\t\t\t\tinput.lastKey = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(eButtonPressed == true) {\n\t\t\t\tgame.buttons.get(0).clicked = false; //to make the other buttons's clicked variable false\n\t\t\t\tgame.buttons.get(1).clicked = false;\n\t\t\t\tgame.buttons.get(2).clicked = true;\n\t\t\t\tinput.lastKey = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif(rButtonPressed == true) { //cancel button deselects all the other buttons\n\t\t\t\tgame.buttons.get(0).clicked = false;\n\t\t\t\tgame.buttons.get(1).clicked = false;\n\t\t\t\tgame.buttons.get(2).clicked = false;\n\t\t\t\tinput.lastKey = 0;\n\t\t\t\t\n\t\t\t\tif(game.getLevel().getTurn() == 1) {\n\t\t\t\t\tfor(int i = 0; i < game.getLevel().getRedTeam().size(); i++) {\n\t\t\t\t\t\tgame.getLevel().getRedTeam().get(i).selected = false;\n\t\t\t\t\t\tgame.getLevel().getRedTeam().get(i).action = 0;\n\t\t\t\t\t}\n\t\t\t\t} else if(game.getLevel().getTurn() == 2) {\n\t\t\t\t\tfor(int i = 0; i < game.getLevel().getGreenTeam().size(); i++) {\n\t\t\t\t\t\tgame.getLevel().getGreenTeam().get(i).selected = false;\n\t\t\t\t\t\tgame.getLevel().getGreenTeam().get(i).action = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}*/\n\t}", "title": "" }, { "docid": "0aa5ee13520a540105c69d18a547b019", "score": "0.62161714", "text": "public int getMouseButton() {\n return mouseButton;\n }", "title": "" }, { "docid": "902b98b7fb9af085081d834c4b1ce372", "score": "0.6214589", "text": "Button getSecondaryButton();", "title": "" }, { "docid": "b57c06b3a4697024a22c325ca0b0bb4c", "score": "0.6189814", "text": "public void calsButton(ActionEvent event) {\n int index = 1;\n openGraphView(event,index);\n }", "title": "" }, { "docid": "3ef539e18c96f0a5f8a99089dbb9ede0", "score": "0.61649823", "text": "public void actionPerformed(ActionEvent e) { \r\n\t\t// Find the row and column of the pressed button \r\n\t\tfor(int row=0; row<4; row++) { \r\n\t\t\tfor (int col=0; col<3; col++) { \r\n\t\t\t\tif (e.getSource() == buttons[row][col]) { \r\n\t\t\t\t\tSystem.out.println(\"You pressed the button at row: \" + row + \", column: \" + col + \".\"); \r\n\t\t\t\t\t// Now toggle the button's color \r\n\t\t\t\t\tif (buttons[0][0].getIcon() == new ImageIcon(\"./ButtonImages/OrangeButton.png\")) \r\n\t\t\t\t\t\tbuttons[0][0].setIcon(new ImageIcon(\"./ButtonImages/RedButton.png\")); \r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tbuttons[0][0].setIcon(new ImageIcon(\"./ButtonImages/BlueButton.png\")); \r\n\t\t\t\t} \r\n\t\t\t} \r\n\t\t} \r\n\t}", "title": "" }, { "docid": "da05de7e86137983c21a361be837dfad", "score": "0.6161419", "text": "public java.lang.String getActionCode();", "title": "" }, { "docid": "ba9280c54fc3e33d74a4ee44b21879ac", "score": "0.61490905", "text": "public boolean getBButtonPressed() {\n return getRawButtonPressed(Button.kB.value);\n }", "title": "" }, { "docid": "4cd28b4259922dcc5adfb7b4e97c7d10", "score": "0.61377865", "text": "@Override\r\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\r\n\t\tcase R.id.button1:\r\n\t\t\tshowSingleChoiceWindow();\r\n\t\t\tbreak;\r\n\t\tcase R.id.button2:\r\n\t\t\tshowMultiChoiceWindow();\r\n\t\t\tbreak;\r\n\t\tcase R.id.button3:\r\n\t\t\tshowSingleChoiceDialog();\r\n\t\t\tbreak;\r\n\t\tcase R.id.button4:\r\n\t\t\tshowMultiChoiceDialog();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5f09d2de0e4ee67a13f9dd150cb30ac1", "score": "0.61345845", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n if(e.getActionCommand().equals(OPCION_1)){\n System.out.println(\"hola\");\n }else if (e.getActionCommand().equals(BTN_ADD_CURSO)){\n System.out.println(\"Agregar un curso\");\n }\n\n\n \n }", "title": "" }, { "docid": "498f64fe8b5b9f20d6f5b19506d460d1", "score": "0.6134189", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t{\n\t\tif (e.getSource() == butt1)\n\t\t{\n\t\t\tspeak(\"Yellow\");\n\t\t}\n\t\tif (e.getSource() == butt2)\n\t\t{\n\t\t\tspeak(\"Red\");\n\t\t}\n\t\tif (e.getSource() == butt3)\n\t\t{\n\t\t\tspeak(\"Blue\");\n\t\t}\n\t\tif (e.getSource() == butt4)\n\t\t{\n\t\t\tspeak(\"Green\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "047d8dec097d865e0ba8c0630b730cdb", "score": "0.61323154", "text": "public java.lang.String getActionCommand();", "title": "" }, { "docid": "5aef739e2e093c89fce1f269b829d53d", "score": "0.6124603", "text": "@Override\n public void onClick(ClickEvent event) {\n if (event.getSource().equals(btnOper1)) {\n showUIOper1();\n } else if (event.getSource().equals(btnOper2)) {\n showUIOper2();\n } else if (event.getSource().equals(btnOper3)) {\n showUIOper3();\n } else if (event.getSource().equals(btnOper4)) {\n showUIOper4();\n } else if (event.getSource().equals(btnOper5)) {\n showUIOper5();\n } else if (event.getSource().equals(btnOper0)) {\n showUIOper0();\n }\n }", "title": "" }, { "docid": "4eff836b41c7ce34522e468295a01e90", "score": "0.6122317", "text": "protected abstract void onPressed();", "title": "" }, { "docid": "2dc155f8d4654328adc47eef263ebffd", "score": "0.61218405", "text": "public void pressUp();", "title": "" }, { "docid": "c50c67645ecc4adca1c33fd3825a2245", "score": "0.61122817", "text": "public boolean click() {\r\n\t\treturn this.bsInput.isMousePressed(BaseInput.MOUSE_BUTTON1);\r\n\t}", "title": "" }, { "docid": "6bf479a24eba22bf78e63da30700017e", "score": "0.6099383", "text": "private void button6MouseClicked(MouseEvent e) {\n }", "title": "" }, { "docid": "c8da8f3a6225f774e9f74390d18b3c69", "score": "0.6079446", "text": "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tString g = arg0.getComponent().getName();\n\t\tString[] d = g.split(\"i\");\n\t\tX = Integer.parseInt(d[0]);\n\t\tY = Integer.parseInt(d[1]);\n\t\tif(f == 1){}else{\n\t\tint btn = arg0.getButton();\n\t\tif(btn == MouseEvent.BUTTON1){\n\t\t\tbtn1work();\n\t\t}\n\t\tif(btn == MouseEvent.BUTTON3){\n\t\t\tbtn3work();\n\t\t}\n\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "8404a54b4ba16e914d0641cc075a6d8f", "score": "0.60620624", "text": "public void checkSelected(View view)\n {\n \tButton b = (Button) view;\n \t\n \tString buttonText = b.getText().toString();\n }", "title": "" }, { "docid": "eb3208e7302dbd4603e77f15cd667a81", "score": "0.60616547", "text": "public void action1press();", "title": "" }, { "docid": "50b76f5d1e8377ad48d1710be0fb3725", "score": "0.60604316", "text": "public void onClick(DialogInterface dialog, \r\n int whichButton) { \r\n }", "title": "" }, { "docid": "edf83e6976ae9a3758f8b41c0a1ece13", "score": "0.6059237", "text": "private void button7MouseClicked(MouseEvent e) {\n }", "title": "" }, { "docid": "f65074a9df9f1e7ee1881d8039ff8c0e", "score": "0.6042413", "text": "public boolean getAButton() {\n return getRawButton(Button.kA.value);\n }", "title": "" }, { "docid": "29d38cb340aa29d835095e99517af30d", "score": "0.60383016", "text": "private void buttonselected(int question) {\n\t\t\n\t\tint tempOfnpquestion =question-1;\n\t\t\n\t\t//noOfquestion=tempOfnpquestion;\n\t\ttry\n\t\t{\n\t Drawable d = getResources().getDrawable(mImageViews[randomNumber[tempOfnpquestion]-1]);\n\t imageViewQuestionAnswer.setBackgroundDrawable(d);\n\t\t}\n\t\tcatch(ArrayIndexOutOfBoundsException e)\n\t\t{\n\t\t\t\n\t\t}\n\t\t\n\t\ttextViewQuestionNumberDisplay.setText(\"Que- \"+question);\n\t\ttry\n\t\t{\n\t\tisCheckedMaptrue(noOfquestion);\n\t\t}catch(NullPointerException e)\n\t\t{\n\t\t\tradioGroupOption.clearCheck();\n\t\t}\n\t\t}", "title": "" }, { "docid": "e0078d43a3971ac4abc8ce601c3d3f22", "score": "0.6036149", "text": "public void buttonEditClicked();", "title": "" }, { "docid": "88337dca3102afb2fa95013f5f551c90", "score": "0.6034559", "text": "public void ChoosePop(){\n\n event_pop = new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n\n if(event.getSource() == buttone){\n choose_shape = 1;\n } else if(event.getSource() == buttonr){\n choose_shape = 2;\n } else if(event.getSource() == buttonl){\n choose_shape = 3;\n }\n }\n };\n}", "title": "" }, { "docid": "7180d952b05d613e0396c5cccbcfed99", "score": "0.60341877", "text": "public void randomButton(){\n }", "title": "" }, { "docid": "ffe137de8946dd88c3c751699d4f1dc1", "score": "0.602605", "text": "boolean hasMouseButton();", "title": "" }, { "docid": "ffe137de8946dd88c3c751699d4f1dc1", "score": "0.602605", "text": "boolean hasMouseButton();", "title": "" }, { "docid": "ffe137de8946dd88c3c751699d4f1dc1", "score": "0.602605", "text": "boolean hasMouseButton();", "title": "" }, { "docid": "692a8c72c91bfb5d5465cd25861cb37d", "score": "0.6025595", "text": "public boolean isOKClicked();", "title": "" }, { "docid": "f0eb0f28b8d69eb8b032224015fcc0de", "score": "0.6021744", "text": "private void jRbFirstActionPerformed(java.awt.event.ActionEvent evt) {\n\n }", "title": "" }, { "docid": "09264019b7456b4d1caf7b73078434e1", "score": "0.6019871", "text": "String getActiontype();", "title": "" }, { "docid": "15cb39f7f73aa8b16e719d83c4b96e27", "score": "0.601776", "text": "public void chooseB(View v){\n chooseButton(v, \"B\");\n }", "title": "" }, { "docid": "5ff43451d3e31ee6ccbbe38f9a09fe89", "score": "0.60176915", "text": "@Override\npublic void actionPerformed(ActionEvent e) {\n\tJButton buttonPressed = (JButton) e.getSource();\n\tif(buttonPressed==button) {\n\t\tshowDucks();\n\t}\n\tif(buttonPressed==button1) {\n\t\tshowFrog();\n\t}\n\tif(buttonPressed==button2) {\n\t\tshowFluffyUnicorns();\n\t}\n\tframe.pack();\n}", "title": "" }, { "docid": "f6d8cf83a4ec0264315d6045d78a111e", "score": "0.60167176", "text": "public void pressFirst() {\n TimeButton first = null;\n boolean allDeselected = true;\n for (Component c : getComponents()) {\n if (c instanceof TimeButton) {\n TimeButton b = (TimeButton) c;\n if (b.isPressed()) {\n allDeselected = false;\n break;\n }\n\n if (b.toString().equals(\"1D\")) {\n first = b;\n }\n }\n }\n if (allDeselected) {\n assert first != null;\n first.setPressed();\n }\n }", "title": "" }, { "docid": "de2110a77e3eba11966f296911753419", "score": "0.60060114", "text": "public void keyPadNumberClick( View view ) {\n String buttonText = ( (Button) view ).getText().toString();\n switch (buttonText) {\n default:\n Toast.makeText(getContext(), \"Got a button click with text: \" + buttonText, Toast.LENGTH_SHORT).show();\n }\n Log.d(TAG, \"keyPadNumberClick() called with: \" + \"view = [\" + view + \"]\");\n }", "title": "" }, { "docid": "23aada2dcac456ac2235a99c51b57f4d", "score": "0.60053146", "text": "private void button1MouseClicked(MouseEvent e) {\n\n }", "title": "" }, { "docid": "03dc45b9464c7a2831d1d7e6d14085f1", "score": "0.60015756", "text": "public void actionPerformed(ActionEvent e)\n {\n String screenToPaint; //variable to store what's written on the button\n \n screenToPaint = e.getActionCommand(); //gets what is written on the button and store in screenToPaint variable\n \n if(screenToPaint.equals(\"Kinematics Pt1\"))\n {\n this.theGUI.displayK1Eqns(); //display k1 equations page\n } //end else if\n \n else if(screenToPaint.equals(\"Kinematics Pt2\"))\n {\n this.theGUI.displayK2Eqns(); //display k2 equations page\n } //end else if\n \n else if(screenToPaint.equals(\"Forces & Dynamics\"))\n {\n this.theGUI.displayFDEqns(); //display forces and dynamics equations page\n } //end else if\n \n else if(screenToPaint.equals(\"Conversions\"))\n {\n this.theGUI.displayCCUnits(); //display conversions unit page\n } //end else if \n \n }", "title": "" }, { "docid": "fb945e0ddc218e77fb24487a2ec6ee67", "score": "0.5997642", "text": "@Override\n public void onClick(View v)\n {\n Button button = (Button) v;\n\n\n // clear state\n// mButton1.setSelected(false);\n// mButton1.setPressed(false);\n// mButton2.setSelected(false);\n// mButton2.setPressed(false);\n for (Button i : buttons){\n i.setSelected(false);\n i.setPressed(false);\n }\n\n\n // change state\n button.setSelected(true);\n button.setPressed(false);\n autoComplete.setText(button.getText().toString());\n dependent=0;\n// if (v.getId() == mButton1.getId())\n// {\n// dependent=1;\n// ans4 = button.getText().toString();\n// questionFourAsnwered=true;\n// nextButton.performClick();\n//\n// } else if (v.getId() == mButton2.getId()) {\n// dependent=0;\n//\n// }\n ans1 = button.getText().toString();\n questionOneAsnwered = true;\n// nextButton.performClick();\n\n }", "title": "" }, { "docid": "bad19ac8244cb4938a2ed1a16249616e", "score": "0.598892", "text": "public void actionPerformed(ActionEvent e)\n {\n Object source = e.getSource();\n if (source == m_cancel)\n onCancel();\n else if (source == m_help)\n onHelp();\n else if (source == m_prev)\n onPrev();\n else if (source == m_next)\n onNext();\n else if (source == m_finish)\n onFinish();\n }", "title": "" }, { "docid": "586e43df6456ee05e8e4d6910c6d2019", "score": "0.5988149", "text": "public abstract boolean isClicked();", "title": "" }, { "docid": "a55f511e53a7b675f11d5f60c7708c08", "score": "0.59854174", "text": "public void actionPerformed(ActionEvent event) {\r\n String command = event.getActionCommand();\r\n }", "title": "" }, { "docid": "ab15f3aae9a6e449b329d7f502b32f83", "score": "0.5982598", "text": "public int onTouchEvent(MotionEvent event) {\n int action = event.getActionMasked();\n switch (action) {\n case MotionEvent.ACTION_DOWN: // First finger\n case MotionEvent.ACTION_POINTER_DOWN: // Second finger and so on\n //Check all the buttons for click effect\n for (ButtonComponent btn : buttonArray) {\n if (isClick(btn, event)) { //Finger down on this button\n btn.setHeldDown(true);\n }\n }\n break;\n case MotionEvent.ACTION_UP: // Last finger up\n case MotionEvent.ACTION_POINTER_UP: // Any other finger up\n //Check all the buttons for click effect\n for (ButtonComponent btn : buttonArray) {\n if (isClick(btn, event)) {\n btn.setHeldDown(false);\n return btn.getSceneId(); //When the finger is up, if any button for a scene change was clicked, change the scene\n }\n }\n break;\n case MotionEvent.ACTION_MOVE: // Any finger moves\n //Check all the buttons for click effect, when entering and exiting buttons\n for (ButtonComponent btn : buttonArray) {\n if (!isClickByAny(btn, event) && btn.isHeldDown()) {\n btn.setHeldDown(false);\n }\n if (isClickByAny(btn, event) && !btn.isHeldDown()) {\n btn.setHeldDown(true);\n }\n }\n break;\n }\n return this.id;\n }", "title": "" }, { "docid": "61b6fe5b10fec93c8684b23ab43bbb9d", "score": "0.5981995", "text": "public boolean getXButtonPressed() {\n return getRawButtonPressed(Button.kX.value);\n }", "title": "" }, { "docid": "dada10ee60dd00e40f4301b87185d1d6", "score": "0.59800804", "text": "public CardBtn getSelectedCardBtn() {\n\t\treturn selectedCardBtn;\n\t}", "title": "" }, { "docid": "d7b44c9162be2ebfc2e70557d57fb81a", "score": "0.59767425", "text": "@Override\n public void onClick(View v){\n // determine which button was clicked\n switch (v.getId()) {\n case R.id.btnSave:\n onSave(v);\n break;\n case R.id.btnCancel:\n onCancel(v);\n break;\n }\n }", "title": "" }, { "docid": "ed634049a4d0d54d80ba9525f39d71d5", "score": "0.5973465", "text": "public void clicked(View v) {\n if (v.getId() == R.id.top10ID) {\n buttonTop10.setBackgroundResource(R.drawable.button_clicked);\n setButtonBackground(buttonTop10);\n Intent intent = new Intent(this, TopTracks.class);\n intent.putExtra(\"top10\", top10Songs);\n startActivity(intent);\n } else if (v.getId() == R.id.playID) {\n buttonPlay.setBackgroundResource(R.drawable.button_clicked);\n setButtonBackground(buttonPlay);\n Intent intent = new Intent(this, GameActivity.class);\n intent.putExtra(\"top10\", top10Songs);\n intent.putExtra(\"top10urls\", top10PreviewUrls);\n startActivity(intent);\n } else if (v.getId() == R.id.settingsID) {\n buttonSettings.setBackgroundResource(R.drawable.button_clicked);\n setButtonBackground(buttonSettings);\n Intent intent = new Intent(this, Settings.class);\n startActivity(intent);\n } else if (v.getId() == R.id.scoresID) {\n buttonScores.setBackgroundResource(R.drawable.button_clicked);\n setButtonBackground(buttonScores);\n Intent intent = new Intent(this, Highscore.class);\n startActivity(intent);\n }\n }", "title": "" }, { "docid": "87192892a1b72f57898a7566368ddffd", "score": "0.5967028", "text": "public JButton getButton()\n\t{\n\t\treturn m_button;\n\t}", "title": "" }, { "docid": "b5b9c857e02f65cb0d7edd192e7b889e", "score": "0.596549", "text": "public void onCourierButtonClick(int whichButton) {\n mInteractor.checkIfSureToChangeOrderStatus(mView.getFragmentContext(),\n mView.getOrderTimeStamp(), whichButton);\n }", "title": "" }, { "docid": "3a63fd344452c630105061cc2bdddcdf", "score": "0.59613574", "text": "public void onClick(DialogInterface dialog, int whichButton) {\n }", "title": "" }, { "docid": "3a63fd344452c630105061cc2bdddcdf", "score": "0.59613574", "text": "public void onClick(DialogInterface dialog, int whichButton) {\n }", "title": "" }, { "docid": "3a63fd344452c630105061cc2bdddcdf", "score": "0.59613574", "text": "public void onClick(DialogInterface dialog, int whichButton) {\n }", "title": "" }, { "docid": "d442257d35a5d7af2f8a80d8a9abf967", "score": "0.5956153", "text": "private void btnCancionActionPerformed(ActionEvent e) {\n\t}", "title": "" }, { "docid": "616bb79e8a342df96be904129db8984f", "score": "0.5955834", "text": "@Override\n public void onClick(View view) {\n if (mPosition != 0) {\n return;\n }\n\n switch (view.getId()) {\n case R.id.btn1:\n showDialog(DIALOG_PEOPLE);\n break;\n case R.id.btn2:\n showDialog(DIALOG_PLACE);\n break;\n case R.id.btn3:\n showDialog(DIALOG_WEAPON);\n break;\n }\n }", "title": "" }, { "docid": "73f94db1d56786a6f754483254c0dd71", "score": "0.5955398", "text": "String getOnmousedown();", "title": "" }, { "docid": "0f95327a49063074cb408a822211e9ad", "score": "0.5955298", "text": "public void onClick(DialogInterface dialog,\r\n int whichButton) {\r\n }", "title": "" }, { "docid": "f2ae8ca840bf2d67878d690ecda47a77", "score": "0.5954372", "text": "@Override\r\n\tfinal protected void handleButton(int index) {\r\n\t\tif (index == 0) {\r\n exitedWithOk = true;\r\n\t\t\thandleOk();\r\n\t\t} else {\r\n\t\t\thandleCancel();\r\n\t\t}\r\n\t}", "title": "" } ]
91948dbaf835f69727ba0f7e6b9dddb5
Generate a name from given chromosome array data.
[ { "docid": "9b72a0ba9cc71f5673957ac3322934bc", "score": "0.79485124", "text": "String getName(ChromosomeArrayData cad);", "title": "" } ]
[ { "docid": "364499d45797aecef88493772271532d", "score": "0.60582507", "text": "char[] getName();", "title": "" }, { "docid": "3a75c938257e61a0ca5beb7c38c1a5f8", "score": "0.5899676", "text": "public static Name of(char[] data) {\n return factory.of(data);\n }", "title": "" }, { "docid": "4054edf64dfeb0793e89c90845599102", "score": "0.5757315", "text": "static String makeRandmName() {\n int x = (int) (Math.random() * 5);\n String name = new String[] {\"Fluffy\", \"Fido\", \"Rover\", \"Spike\", \"Gigi\"}[x];\n return name;\n }", "title": "" }, { "docid": "87fc733320c5010099c0855ea2391597", "score": "0.56984526", "text": "private String skelNameGen()\r\n\t{\n\t\tString[] names = new String[10];\r\n\t\tRandom numGen = new Random();\r\n\t\tint diceRoll = numGen.nextInt(9);\t\t\r\n\t\tnames[0] = \"Sans\";\r\n\t\tnames[1] = \"Papyrus\";\r\n\t\tnames[2] = \"Gaster\";\r\n\t\tnames[3] = \"McRibs\";\r\n\t\tnames[4] = \"Cal C. Iam\";\r\n\t\tnames[5] = \"Skeletor\";\r\n\t\tnames[6] = \"Jack Marrow\";\r\n\t\tnames[7] = \"Jack Skellington\";\r\n\t\tnames[8] = \"Brook\";\r\n\t\tnames[9] = \"Grim\";\r\n\t\t\t\t\r\n\t\treturn names[diceRoll];\r\n\t}", "title": "" }, { "docid": "803dd61d2f90a449c1e41482fd5ea874", "score": "0.56705374", "text": "public String getCustom_Name() {\n StringBuffer buf = new StringBuffer();\n for (int i = 0; i < 32; i++) {\n if (custom_name[i] != 0)\n buf.append((char) custom_name[i]);\n else\n break;\n }\n return buf.toString();\n\n }", "title": "" }, { "docid": "ea44377125adf1e70f74eb56442363bc", "score": "0.56684107", "text": "private String generateName(int nameSize) {\n StringBuilder name = new StringBuilder(nameSize);\n\n for (int i = 0; i < nameSize; i++) {\n int index = (int)(AlphaNumericString.length() * Math.random());\n name.append(AlphaNumericString.charAt(index));\n }\n return name.toString();\n }", "title": "" }, { "docid": "e2483894aa49e95d3012273f2a337fbd", "score": "0.55967957", "text": "public static Name of(char[] data, int offset, int length) {\n return factory.of(data, offset, length);\n }", "title": "" }, { "docid": "3f33a4585e64a3769af60399b2586704", "score": "0.54851764", "text": "private String dragonNameGen()\r\n\t{\n\t\tString[] names = new String[10];\r\n\t\tRandom r = new Random();\r\n\t\tint diceRoll = r.nextInt(9);\t\t\r\n\t\tnames[0] = \"Vulthuryol\";\r\n\t\tnames[1] = \"Spike\";\r\n\t\tnames[2] = \"Alduin\";\r\n\t\tnames[3] = \"Paarthurnax\";\r\n\t\tnames[4] = \"Sahrotaar\";\r\n\t\tnames[5] = \"Nahagliiv\";\r\n\t\tnames[6] = \"Durnehviir\";\r\n\t\tnames[7] = \"Zarvait\";\r\n\t\tnames[8] = \"Mylreoth\";\r\n\t\tnames[9] = \"Giandal\";\r\n\r\n\t\treturn names[diceRoll];\r\n\t}", "title": "" }, { "docid": "c6b6554b848f320db21179fc25e5b2c8", "score": "0.54646194", "text": "public String getRandomName(){\n\t\tString ad = adjectiveArray.get(rand.nextInt(adjectiveArray.size())),\n\t\t\t\tnoun = nounArray.get(rand.nextInt(nounArray.size()));\n\t\t\n\t\t\n\t\t\n\t\tname = ad + \" \" + noun;\n\t\t//System.out.println(name);\n\t\treturn name;\n\t}", "title": "" }, { "docid": "1702f4e372575f88fff8e000fdb46697", "score": "0.5429614", "text": "String getUniqueName();", "title": "" }, { "docid": "8f1b6edfe51e9a2fca076b49e5f7bec6", "score": "0.5348324", "text": "public static void main(String[] args) {\n\n String[] nameFamily=new String [7];\n\n nameFamily[0]=\"Abdurrahman\";\n nameFamily[1]=\"Ayse\";\n nameFamily[2]=\"Ahmet\";\n nameFamily[3]=\"Furkan\";\n nameFamily[4]=\"Ali\";\n nameFamily[5]=\"Ceylin\";\n nameFamily[6]=\"Seyma\";\n System.out.println(nameFamily[0]+\" \"+nameFamily[1]+\" \"+nameFamily[2]+\" \"+nameFamily[3]+\" \"+nameFamily[4]+\" \"+nameFamily[5]+\" \"+nameFamily[6]);\n\n }", "title": "" }, { "docid": "881bca72fda1cc8fb6bfdbbb6908a037", "score": "0.52772933", "text": "public String getBiomeNameREG_COORDS(int[] mouseCoord){\n\t\tint[] coords = getMouseCoordInWorld(mouseCoord);\n\t\tinvertCoords(coords);\n\t\tBiome b = map.getBiomeAtCoord(coords, step);\n\t\treturn b.getName();\n\t}", "title": "" }, { "docid": "3b1002ab921590836bd3a99d48d1148d", "score": "0.5239752", "text": "@Override\n\tpublic void BuildName(String code) {\n\t\tnewAtribut.getNaziv().setCode(code);\t\n\t\t\n\t}", "title": "" }, { "docid": "ae1dd7bb053c4a033a4a9dede9ac09c3", "score": "0.52357143", "text": "public static void naming(){\n\t\tName[0]= \"Oxford Dictionary: RM54.90\";\n\t\tName[1]= \"Children - Books: RM12.90\";\n\t\tName[2]= \"Cookbook: RM10.00\";\n\t\tName[3]= \"Comics: RM5.00\";\n\t\tName[4]= \"Novel: RM19.90\";\n\t\tName[5]= \"Calculator: RM55.00\";\n\t\tName[6]= \"Set of Stationery: RM5.00\";\n\t\tName[7]= \"Type of paper (A2/A3/A4/A5): RM9.00\";\n\t\tName[8]= \"Religion (180 Prayers): RM 15.00\";\n\t\tName[9]= \"100 Essays: RM6.90\";\n \n }", "title": "" }, { "docid": "a065fa699f363c4c1804483c27ddc0ec", "score": "0.52323145", "text": "private String generateHeroName(int n)\r\n {\r\n\r\n // chose Character random from this String\r\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\r\n + \"0123456789\"\r\n + \"abcdefghijklmnopqrstuvxyz\";\r\n\r\n // create StringBuffer size of AlphaNumericString\r\n StringBuilder sb = new StringBuilder(n);\r\n\r\n for (int i = 0; i < n; i++) {\r\n\r\n // generate random number between\r\n // 0 to AlphaNumericString variable length\r\n int index\r\n = (int)(AlphaNumericString.length()\r\n * Math.random());\r\n\r\n // add Character one by one in end of sb\r\n sb.append(AlphaNumericString\r\n .charAt(index));\r\n }\r\n\r\n return sb.toString();\r\n }", "title": "" }, { "docid": "0bc14e334a17bc777e3ebedf1c2c3ca6", "score": "0.5164371", "text": "public static void main(String[] args) {\n String[] name = {\"Sabbir\",\"komol\",\"Safa\",\"Salkin\"};\n \n System.out.println(name.length);\n \n //name[0] = \"Sabbir\";\n //name[1] = \"komol\";\n //name[2] = \"Safa\";\n // name[3] = \"Salkin\";\n \n /*for (int i = 0; i < name.length; i++) { \n System.out.println(name[i]);\n }\n */\n for(String x: name){\n System.out.println(x);\n }\n }", "title": "" }, { "docid": "76d2bf652455ec387043f53350f5ec5b", "score": "0.51467514", "text": "String formatName();", "title": "" }, { "docid": "a6904a93c86dba326c43bb623cf31414", "score": "0.51448154", "text": "private void generatePlayersName(int nbPlayer) {\n playersName = new String[nbPlayer];\n for (int i = 0; i < nbPlayer; i++) {\n playersName[i] = KeyboardUtils.readString(\"Please enter name for player \" + (i + 1));\n }\n }", "title": "" }, { "docid": "e4f0ffd892abdbb10bcdbf0c4cc69499", "score": "0.51407254", "text": "public static String name(Integer id, Integer data) {\n ItemID longKey = new ItemID(id, data);\n if(names.containsKey(longKey)) {\n return names.get(longKey);\n }\n\n for(Material item : Material.values()) {\n if(item.getId() == id) {\n return Toolbox.camelToPhrase(item.toString());\n }\n }\n\n if(data == null) return Toolbox.string(id) + \":\" + Toolbox.string(data);\n\n return Toolbox.string(id);\n }", "title": "" }, { "docid": "df5d6ac9042f6819f4c086cf7f67424a", "score": "0.5131337", "text": "public Individual(int[] chromosome) {\r\n // Create individual chromosome\r\n this.chromosome = chromosome;\r\n }", "title": "" }, { "docid": "d56301890bee4e72ecb7aa4bf4a04eae", "score": "0.5126928", "text": "private String getSummonerName(ArrayList args){\r\n //Join the name\r\n String mySummonerName = StringUtils.join(args, ' ');\r\n return mySummonerName;\r\n }", "title": "" }, { "docid": "77b43e9f721b601ee7cdb71708b02da0", "score": "0.5090131", "text": "public void createHash() {\n\t\tfor (int i = 0; i < rawNameGpa.length; i += 2) {\n\t\t\tprojectData.put(rawNameGpa[i], rawNameGpa[i + 1]);\n\t\t}\n\t}", "title": "" }, { "docid": "559cfea24728d5fc9e7faeaebae73272", "score": "0.50846976", "text": "public static void main(String[] args) {\n\t\tif (args.length > 6){\n\t\t\tSystem.out.println(\"Too many names!\");\n\t\t\tSystem.exit(0);\n\t\t} else if (args.length < 3){\n\t\t\tSystem.out.println(\"Too few names!\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\t//print out each family name\n\t\tSystem.out.println(\"Original family names:\");\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tSystem.out.println(args[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Newly generated name:\");\n\t\tSystem.out.println(generateNewName(args));\n\t}", "title": "" }, { "docid": "5bda0702bbbb43777e49ddb1ee54632c", "score": "0.5055237", "text": "public String getFastaEntry (String geneName){\n\t\tStringBuilder sb = new StringBuilder(\">\");\n\t\tsb.append(geneName);\n\t\tsb.append(\":\");\n\t\tsb.append(chromosome);\n\t\tsb.append(\":\");\n\t\t\n\t\tsb.append(subSequence[0].getName());\n\t\tfor (int i=1; i<subSequence.length; i++) {\n\t\t\tsb.append(\"_\");\n\t\t\tsb.append(subSequence[i].getName());\n\t\t}\n\t\tsb.append(\"\\n\");\n\t\tsb.append(getSequence());\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "487e800568d87ae7fc4b0757012e128f", "score": "0.5047236", "text": "public String RandomString(){\n \tString[] chrs = {\"q\", \"w\", \"e\", \"r\", \"t\", \"y\", \"u\", \"i\", \"o\", \"p\", \"a\", \"d\", \"f\", \"g\", \"h\", \"j\", \"k\", \"l\", \"s\", \"z\", \"x\", \"c\", \"v\", \"b\", \"n\", \"m\", \"Q\", \"A\", \"Z\", \"X\", \"S\", \"W\", \"E\", \"D\", \"C\", \"V\", \"F\", \"R\", \"T\", \"G\", \"B\", \"N\", \"H\", \"Y\", \"U\", \"J\", \"M\", \"I\", \"K\", \"O\", \"P\", \"L\"};\n\t\tint minimum = 0;\n\t\tint maximum = chrs.length;\n\t\tString Name = \"\";\n\t\tfor(int x=0; x<14; x++){\n\t\t\tName += chrs[minimum + (int)(Math.random()*maximum)];\n\t\t}\n\t\treturn Name;\n }", "title": "" }, { "docid": "9d87129d01c22d501ade41f35665e36c", "score": "0.5038194", "text": "public static void main(String[] args) {\n\n\t\tString[] nameArr = new String[3];\n\t\t\n\t\tnameArr[0] = \"park\";\n\t\tnameArr[1] = \"seung\";\n\t\tnameArr[2] = \"wk\";\n\t\t\n\t\tfor (int i = 0; i < nameArr.length; i++) {\n\t\t\t\n\t\t\tSystem.out.println(nameArr[i]);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "748a7128ce8ac909ca32dc553c846d5d", "score": "0.50381297", "text": "private static GeneticCode getGeneticCodeByChromosome(String chr)\n\t\t\t{\n\t\t\tif(chr.equalsIgnoreCase(\"chrM\") || chr.equalsIgnoreCase(\"MT\")) return GeneticCode.getMitochondrial();\n\t\t\treturn GeneticCode.getStandard();\n\t\t\t}", "title": "" }, { "docid": "6c903d47758d38f987251a46113388f6", "score": "0.5033625", "text": "@Override\n public String getUniqueName() {\n return cubeLevel.getHierarchy().convertMemberName(member.getUniqueName());\n }", "title": "" }, { "docid": "f28f6a61224ac124b32546aa8efa1930", "score": "0.50207424", "text": "public String getInputName(int index) {\r\n\t\tswitch(index) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn \"IGANsgaPopulation\";\r\n case 1:\r\n\t\t\t\treturn \"Genes file table\";\r\n\t\t\tdefault: return \"NO SUCH INPUT!\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a95036f7f93b2f01ce426314a0fbfc7b", "score": "0.50123185", "text": "private static String generateUniqueName(String uniqueNameParts[], String memberToSearchSimpleName){\r\n\t\tString[] uniqueNamesPartsCopy = new String[uniqueNameParts.length];\r\n\t\tSystem.arraycopy( uniqueNameParts, 0, uniqueNamesPartsCopy, 0, uniqueNameParts.length );\r\n\t\tString[] memberParts = memberToSearchSimpleName.split(\"\\\\.\");\r\n\t\tint memberPartsLength = memberParts.length;\r\n\t\t\r\n\t\tint i = uniqueNamesPartsCopy.length - memberPartsLength;\r\n\t\tfor(int c = 0; c < memberPartsLength; c++ ){\r\n\t\t\tuniqueNamesPartsCopy[i] = memberParts[c];\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tString toReturn = StringUtils.join(uniqueNamesPartsCopy, \".\");\r\n\t\ttoReturn = formatNameWithSquareBracket(toReturn);\r\n\t\treturn toReturn;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "978c6bbe7135fcb775dcabd1bc728944", "score": "0.5011503", "text": "String getName(IborIndex index);", "title": "" }, { "docid": "d6bd297c6349005bcd2347c6df7e6ff5", "score": "0.50079685", "text": "public String generateName() {\n return getName(names.getProperty(\"root\", \"standard\"), null);\n }", "title": "" }, { "docid": "444f9ae9d6efad208128efee1bac88d6", "score": "0.49995214", "text": "public String getOutputName(int index) {\r\n\t\tswitch(index) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn \"MsgaPopulation\";\r\n\t\t\tdefault: return \"NO SUCH OUTPUT!\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "111de012b3649de03ce0ad739e91ebfa", "score": "0.4996727", "text": "public String getOutputName(int index) {\n\t\tswitch(index) {\n\t\t\tcase 0:\n\t\t\t\treturn \"Population\";\n\t\t\tdefault: return \"NO SUCH OUTPUT!\";\n\t\t}\n\t}", "title": "" }, { "docid": "b988ce22f8c9720c8ffaec7044ba3942", "score": "0.49830645", "text": "private String genArgName(final int index, final String base)\n {\n final StringBuilder buffer = new StringBuilder();\n\n if (serverNamePrefixes != null)\n {\n buffer.append(serverNamePrefixes[index]);\n\n if (base.equals(\"saslOption\"))\n {\n buffer.append(\"SASLOption\");\n }\n else\n {\n buffer.append(StaticUtils.capitalize(base));\n }\n }\n else\n {\n buffer.append(base);\n }\n\n if (serverNameSuffixes != null)\n {\n buffer.append(serverNameSuffixes[index]);\n }\n\n return buffer.toString();\n }", "title": "" }, { "docid": "b82e82b9499cc92d49d4d62ea7f34bbe", "score": "0.49777716", "text": "CharSequence name();", "title": "" }, { "docid": "ebe2a590231f3f6b746805f521ff11b1", "score": "0.49693993", "text": "public String getOutputName(int index) {\r\n\t\tswitch(index) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn \"String with Generation appended to Filename\";\r\n \tdefault: return \"NO SUCH OUTPUT!\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "82c45f4363aa030561d1bf87e23d673a", "score": "0.4968788", "text": "String generateUniqueName(String name) {\n long counter = nameMap.computeIfAbsent(name,k -> 0L);\n String newName = name + \"_\" + counter;\n nameMap.put(name,counter + 1);\n return newName;\n }", "title": "" }, { "docid": "9eefbf75b4ce68f87f09d5d17829095d", "score": "0.49608424", "text": "private String gerarNome() {\n\t\tString nomes[] = {\r\n\t\t\t\t\"João\", \"Maria\", \"José\",\r\n\t\t\t\t\"Matheus\", \"Jesus\", \"Abraão\",\r\n\t\t\t\t\"Madalena\", \"Cain\", \"Abel\", \"Noé\",\r\n\t\t\t\t\"Baby\", \"Eva\", \"Dino\", \"Leonardo\"\r\n\t\t};\r\n\r\n\t\tString sobrenomes[] = {\r\n\t\t\t\t\"da Silva\", \"de Deus\", \"dos Anjos\",\r\n\t\t\t\t\"dos Santos\", \"dos Reis\", \"Silva Sauro\", \"Leal\"\r\n\t\t};\r\n\r\n\t\tCollections.shuffle(Arrays.asList(nomes));\r\n\t\tCollections.shuffle(Arrays.asList(sobrenomes));\r\n\r\n\t\treturn nomes[0] + \" \" + sobrenomes[0];\r\n\t}", "title": "" }, { "docid": "3250e53850f20057847c3f6d62d55491", "score": "0.4960337", "text": "com.google.protobuf.ByteString\n getPatientNameBytes();", "title": "" }, { "docid": "626f52fa15e246b68e0bd89a78b98f95", "score": "0.49525443", "text": "public String getName(int index) throws ArrayIndexOutOfBoundsException;", "title": "" }, { "docid": "fb550f8463fa58f8395fdbc053b6dd7f", "score": "0.49396122", "text": "public static String getUniqueName(String prefix, String... suffix) {\n char[] name = new char[6];\n for (int i = 0; i < name.length; i++) {\n name[i] = (char) (random.nextInt(25) + (int) 'a');\n }\n String cmName = prefix + new String(name);\n for (String s : suffix) {\n cmName += s;\n }\n getLogger().info(\"Creating unique name {0}\", cmName);\n return cmName;\n }", "title": "" }, { "docid": "6070cadf70701e822ed1f3edabe412fd", "score": "0.4936438", "text": "java.lang.String getCodeName();", "title": "" }, { "docid": "6070cadf70701e822ed1f3edabe412fd", "score": "0.4936438", "text": "java.lang.String getCodeName();", "title": "" }, { "docid": "f64d3310084cd8f28274e5b764682835", "score": "0.49328458", "text": "java.lang.String getName(int index);", "title": "" }, { "docid": "b617d12bd86ee505421a83f41472b6c5", "score": "0.49250424", "text": "private String speciesName(String name) {\n return name;\n }", "title": "" }, { "docid": "bdb8c13b66f6ae2431b9c6639c82ee25", "score": "0.49213454", "text": "@Override\n\tpublic String getName()\n\t{\n\t\tString result = \"Test ROI\";\n\t\treturn result;\n\t}", "title": "" }, { "docid": "d6d6c3749734ece0dc3e29137c617b95", "score": "0.49199888", "text": "public static String ChromosomeString(String k) {\r\n\t\tString[] arr = k.split(\" \");\r\n\t\tString str = \"\";\r\n\t\tfor(int i =0; i <arr.length-1; i++){\r\n\t\t\tstr = str + arr[i] + \" \";\r\n\t\t}\r\n\t\treturn str.trim();\r\n\t}", "title": "" }, { "docid": "688c06dd34b0c203841a5a64667046bb", "score": "0.48901546", "text": "public String getBiomeNameWORLD_COORDS(int[] coords){\n\t\tinvertCoords(coords);\n\t\tBiome b = map.getBiomeAtCoord(coords, step);\n\t\tif(b == null){\n\t\t\tSystem.out.println(Arrays.toString(coords));\n\t\t\treturn \"BIOME ERROR\";\n\t\t}\n\t\telse{\n\t\t\treturn b.getName();\n\t\t}\n\t}", "title": "" }, { "docid": "03882a329692f2b9a6a7a3c3810efa8e", "score": "0.4878823", "text": "private String generateRandomName() {\n String randName = UUID.randomUUID().toString();\n randName = randName.replace(\"-\", \"\").substring(0, 10);\n\n return randName;\n }", "title": "" }, { "docid": "3b9f404dda05cbafdd116df95a45cd0a", "score": "0.48767045", "text": "org.hl7.fhir.String getName();", "title": "" }, { "docid": "3b9f404dda05cbafdd116df95a45cd0a", "score": "0.48767045", "text": "org.hl7.fhir.String getName();", "title": "" }, { "docid": "5e2c4904880ba5d5e44a67fa5705a4a0", "score": "0.48739818", "text": "public String getInputName(int index) {\n\t\tswitch(index) {\n\t\t\tcase 0:\n\t\t\t\treturn \"Population\";\n case 1:\n\t\t\t\treturn \"Genes Input Table\";\n\t\t\tdefault: return \"NO SUCH OUTPUT!\";\n\t\t}\n\t}", "title": "" }, { "docid": "7a4009d47584cd8a34cdd2cf9a75ac85", "score": "0.48678073", "text": "public static String createLetterVievName( Username username, int letterNo){\n\t\treturn WindowNames.LETTER_VIEV_PANEL_NAME + username.getName()+letterNo;\n\t}", "title": "" }, { "docid": "f9239b1db48a3ef997d489dc5f4a7be4", "score": "0.48635283", "text": "private void makeRandomName(){\r\n String name1 = names1[random.nextInt(names1.length)];\r\n String name2 = names2[random.nextInt(names2.length)];\r\n name = name1+\" \"+name2;\r\n initials = name1.substring(0,1)+name2.substring(0,1);\r\n }", "title": "" }, { "docid": "74a3df55f8cb489d7b6ad8141cd4d3c3", "score": "0.48509002", "text": "public void generateStarWarsName(String nombre,String apellido1,String apellido2,String ciudad)\n {\n this.nombre = nombre;\n primerApellido = apellido1;\n segundoApellido = apellido2;\n this.ciudad = ciudad;\n \n String nombrePeli = nombre.substring(0,3)+primerApellido.substring(0,3).toLowerCase();\n String apellidoPeli = segundoApellido.substring(0,2)+ciudad.substring(0,3).toLowerCase();\n \n System.out.println(nombrePeli + \" \" + apellidoPeli);\n }", "title": "" }, { "docid": "ab47fdfc9ba726b07563e957ecec761a", "score": "0.48364174", "text": "com.google.protobuf.ByteString getRoomName();", "title": "" }, { "docid": "762565c59cff7f1b4fe8cea2f786e3b6", "score": "0.4832258", "text": "private String createProblemName(){\n\t\tString name=\"\";\n\t\tfor (int i = 0; i < getStartStateElements().size(); i++) {\n\t\t\tSAI sai = getStartStateElements().get(i); \n\t\t\tif (!sai.getFirstSelection().equals(SIMST_COMM_TEXT_AREA) && !sai.getFirstSelection().equals(SKILL_TEXT_AREA))\n\t\t\t\tname+=sai.getFirstInput();\n\t\t}\n\t\t\n\t\ttrace.out(\"webAuth\",\"--> startStateElements are \" + getStartStateElements());\n\t\ttrace.out(\"webAuth\",\"--> name created is \" + name);\n\t\treturn name;\n\t}", "title": "" }, { "docid": "78bc988b06872ac6a2d8cd7b16c767ac", "score": "0.4827274", "text": "private static String getUniversityName() {\n\t\treturn GenerateVariables.getRandString(5);\n\t}", "title": "" }, { "docid": "885cbdf1694b4de147f015ea64bf630b", "score": "0.48261824", "text": "java.lang.String getCname(int index);", "title": "" }, { "docid": "d29ca0382ca00071f463e49a414c3a90", "score": "0.48246944", "text": "public String generateName(String root) {\n return getName(root, null);\n }", "title": "" }, { "docid": "bb64a5211c419a96035ca1f3fe69de53", "score": "0.48241472", "text": "public abstract String [] getCounterNames();", "title": "" }, { "docid": "81541f39e2f809f8c784db2928317187", "score": "0.48167086", "text": "static char mutated_genes(int index)\n\t{\n\t\tString GENES;\n\t\t\n\t\tVector<Integer> patternstatus = Initialization.patternstatus;\n\t\tif(patternstatus.get(index) == 1)\n\t\t\tGENES = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\";\n\t\telse\n\t\t\tGENES = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890, .-;:<>_!'\\\"#%&/()=?@${[]}\";\n\t\t\n\t\tint len = GENES.length();\n\t\tRandom rm = new Random();\n\t\t\n\t\tint r = rm.nextInt(len);\n\t\treturn GENES.charAt(r);\n\t}", "title": "" }, { "docid": "5cac6a75f104ece8d2ae7ecf5b2d2ba6", "score": "0.48154974", "text": "private static String getString(Object[] data) {\n\t\tString result = new String(\"[ \");\n\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\tresult = result + data[i].toString() + \" \";\n\t\t}\n\n\t\tresult = result + \"]\";\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "a05f659c064f885fd5689fecd0a2b7c8", "score": "0.48125592", "text": "public String getNameRun() {\n\t\tif(tempShip.getClass().equals(Cruiser.class) || tempShip.getClass().equals(Destroyer.class) || tempShip.getClass().equals(Frigate.class))\n\t\t\treturn tempShip.getNameRun() + \"(cannon[\"+point+\"]\";\n\t\telse\n\t\t\treturn tempShip.getNameRun() + \",cannon[\"+point+\"]\";\n\t}", "title": "" }, { "docid": "4cbe13cdffbf1d7fe32ea4d85e590db4", "score": "0.48105037", "text": "HAPDataTypeId getName();", "title": "" }, { "docid": "44d57a75589553ac71bb372db66aecd9", "score": "0.48083743", "text": "public static String generateFirstName() {\r\n\r\n\t\tint rand = (int) (Math.random() * 25);\r\n\t\tswitch (rand) {\r\n\t\tcase 0:\r\n\t\t\treturn \"elad\";\r\n\t\tcase 1:\r\n\t\t\treturn \"kobi\";\r\n\t\tcase 2:\r\n\t\t\treturn \"dan\";\r\n\t\tcase 3:\r\n\t\t\treturn \"haki\";\r\n\t\tcase 4:\r\n\t\t\treturn \"heli\";\r\n\t\tcase 5:\r\n\t\t\treturn \"natali\";\r\n\t\tcase 6:\r\n\t\t\treturn \"omer\";\r\n\t\tcase 7:\r\n\t\t\treturn \"karin\";\r\n\t\tcase 8:\r\n\t\t\treturn \"danit\";\r\n\t\tcase 9:\r\n\t\t\treturn \"yossi\";\r\n\t\tcase 10:\r\n\t\t\treturn \"hen\";\r\n\t\tcase 11:\r\n\t\t\treturn \"ben\";\r\n\t\tcase 12:\r\n\t\t\treturn \"yoni\";\r\n\t\tcase 13:\r\n\t\t\treturn \"kfir\";\r\n\t\tcase 14:\r\n\t\t\treturn \"sharon\";\r\n\t\tcase 15:\r\n\t\t\treturn \"yaeli\";\r\n\t\tcase 16:\r\n\t\t\treturn \"dana\";\r\n\t\tcase 17:\r\n\t\t\treturn \"sapir\";\r\n\t\tcase 18:\r\n\t\t\treturn \"moshe\";\r\n\t\tcase 19:\r\n\t\t\treturn \"rotem\";\r\n\t\tcase 20:\r\n\t\t\treturn \"eden\";\r\n\t\tcase 21:\r\n\t\t\treturn \"israel\";\r\n\t\tcase 22:\r\n\t\t\treturn \"noha\";\r\n\t\tcase 23:\r\n\t\t\treturn \"malachi\";\r\n\t\tcase 24:\r\n\t\t\treturn \"tchahi\";\r\n\r\n\t\tdefault:\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "fbfed25b16fd88a200aaa921c1a241b6", "score": "0.47928077", "text": "private static void printTenNames() {\n String[] mNames = new String[4];\n\n\n for (int index = 0; index < mNames.length; index++) {\n System.out.println(\"Please enter a name\");\n mNames[index] = TextIO.getlnString();\n\n }\n\n\n System.out.println(Arrays.toString(mNames));\n // Picks a random name and displays it\n System.out.println(mNames[new Random().nextInt(mNames.length)]);\n\n }", "title": "" }, { "docid": "55c95da8384844bfea849293b8fea093", "score": "0.47850338", "text": "public String string() {\n int j = random(0, 23);\n String s = names[j];\n return s;\n }", "title": "" }, { "docid": "4e8e115728db1ea5c57461b5d949e275", "score": "0.47839883", "text": "java.lang.String getBleName();", "title": "" }, { "docid": "4e8e115728db1ea5c57461b5d949e275", "score": "0.47839883", "text": "java.lang.String getBleName();", "title": "" }, { "docid": "e85ce3668b265c05b9d36f73d50de46a", "score": "0.4781515", "text": "com.google.protobuf.ByteString\n getNameBytes(int index);", "title": "" }, { "docid": "719c3b1d0218111e548bfb63a14d5ff4", "score": "0.47779438", "text": "@Override\n public String toString() {\n return name().charAt(0) + name().substring(1).toLowerCase();\n }", "title": "" }, { "docid": "81c50e1d82440c02223243646e08305d", "score": "0.47754976", "text": "public static String getRandomName(int length) {\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\ts.append(getRandomChar(i == 0));\n\t\t}\n\t\treturn s.toString();\n\t}", "title": "" }, { "docid": "93903efbd039686d9ee3b5ca9b13b16f", "score": "0.4775372", "text": "java.lang.String getPatientName();", "title": "" }, { "docid": "68bc8652b0377dc4852bf3a0478635f9", "score": "0.47734693", "text": "com.google.protobuf.ByteString getNameBytes();", "title": "" }, { "docid": "68bc8652b0377dc4852bf3a0478635f9", "score": "0.47734693", "text": "com.google.protobuf.ByteString getNameBytes();", "title": "" }, { "docid": "68bc8652b0377dc4852bf3a0478635f9", "score": "0.47734693", "text": "com.google.protobuf.ByteString getNameBytes();", "title": "" }, { "docid": "68bc8652b0377dc4852bf3a0478635f9", "score": "0.47734693", "text": "com.google.protobuf.ByteString getNameBytes();", "title": "" }, { "docid": "68bc8652b0377dc4852bf3a0478635f9", "score": "0.47734693", "text": "com.google.protobuf.ByteString getNameBytes();", "title": "" }, { "docid": "3bd42f0325c026ce1c7d29ccc66088d6", "score": "0.47651452", "text": "private String GetGenoma(int i){\r\n\tString G=genoma[i];\r\n\treturn G;\r\n }", "title": "" }, { "docid": "59b1e322dfb8840bf6e25f1cf5edb753", "score": "0.4764983", "text": "public String newCountyName(){\r\n \r\n holder++;//Increments the number to ensure none of the states are constantly repeated.\r\n fileName = abbreviations[holder-1];//sets the name of the file to the current .txt\r\n return fileName;\r\n \r\n }", "title": "" }, { "docid": "be7eb487440a432341094f04f9d156d9", "score": "0.47645292", "text": "private String getLabelData()\n\t{\n\t\tif(mth == null)\n\t\t{\n\t\t\treturn \"\\n[Label Data not Available]\\n\";\n\t\t}\n\t\t\n\t\tStringBuffer sb = new StringBuffer(8192);\n\t\t\n\t\tsb.append(\"\\n\\n*** PROVINCE BRIEF NAME LAYER ***\\n\");\n\t\tfor(int i=0; i<allProvs.length; i++)\n\t\t{\n\t\t\tsb.append(\" \");\n\t\t\tsb.append( mtl.getBriefTextInfo(allProvs[i]).toString() );\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\n\t\t\n\t\tsb.append(\"\\n\\n*** PROVINCE FULL NAME LAYER ***\\n\");\n\t\tfor(int i=0; i<allProvs.length; i++)\n\t\t{\n\t\t\tsb.append(\" \");\n\t\t\tsb.append( mtl.getFullTextInfo(allProvs[i]).toString() );\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\n\t\t\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "655d7345359a925b4ec472c093a8e1e3", "score": "0.47563395", "text": "void printName(int howMutch) {\n String[] tab = new String[howMutch];\n for (String imie : tab) {\n imie = name;\n System.out.println(imie);\n }\n }", "title": "" }, { "docid": "cf34a2cc782c8d1372ae7a9eb90d051a", "score": "0.4751318", "text": "private String getGlyphName(int code) throws IOException {\n/* 317 */ String unicodes = this.parent.toUnicode(code);\n/* 318 */ if (unicodes == null)\n/* */ {\n/* 320 */ return \".notdef\";\n/* */ }\n/* 322 */ return UniUtil.getUniNameOfCodePoint(unicodes.codePointAt(0));\n/* */ }", "title": "" }, { "docid": "9614c537db391fc5876ef61efd7dce9c", "score": "0.47496837", "text": "protected static String NAME(String name) {\n return \"MrCrayfishVehicleMod\" + name + \"Mapper\";\n }", "title": "" }, { "docid": "7a00312b34e3959dfba46835bd5d4e83", "score": "0.47423124", "text": "com.google.protobuf.ByteString\n getSubulDanuiNameBytes();", "title": "" }, { "docid": "b5d03631d494101d8194c2d775e87bf1", "score": "0.47407976", "text": "String[] getNames();", "title": "" }, { "docid": "105ef4111093ff9666c6f289848776d8", "score": "0.4732251", "text": "public Cr( String str ) { _genes = str; }", "title": "" }, { "docid": "7b15c83960721649beb1a4c522c16c4d", "score": "0.47301647", "text": "com.google.protobuf.ByteString\r\n getNameBytes();", "title": "" }, { "docid": "7b15c83960721649beb1a4c522c16c4d", "score": "0.47301647", "text": "com.google.protobuf.ByteString\r\n getNameBytes();", "title": "" }, { "docid": "7b15c83960721649beb1a4c522c16c4d", "score": "0.47301647", "text": "com.google.protobuf.ByteString\r\n getNameBytes();", "title": "" }, { "docid": "7b15c83960721649beb1a4c522c16c4d", "score": "0.47301647", "text": "com.google.protobuf.ByteString\r\n getNameBytes();", "title": "" }, { "docid": "7b15c83960721649beb1a4c522c16c4d", "score": "0.47301647", "text": "com.google.protobuf.ByteString\r\n getNameBytes();", "title": "" }, { "docid": "7b15c83960721649beb1a4c522c16c4d", "score": "0.47301647", "text": "com.google.protobuf.ByteString\r\n getNameBytes();", "title": "" }, { "docid": "7b15c83960721649beb1a4c522c16c4d", "score": "0.47301647", "text": "com.google.protobuf.ByteString\r\n getNameBytes();", "title": "" }, { "docid": "7b15c83960721649beb1a4c522c16c4d", "score": "0.47294024", "text": "com.google.protobuf.ByteString\r\n getNameBytes();", "title": "" }, { "docid": "1a2df8a4c3648e21b35b3ae83fc2224d", "score": "0.47261047", "text": "private String createClassName(int generation, int thread) {\n\t\t// The new individual is created for the next generation\n\t\treturn initClass.getName() + \"_G\" + (generation + 1) + \"_T\" + thread + \"_\" + (++counters[thread]);\n\t}", "title": "" }, { "docid": "ad951aba138f363469c635c5d86465a3", "score": "0.47224486", "text": "@Override\n public String codeString()\n {\n return _name;\n }", "title": "" }, { "docid": "bc2f75e1e033b55e2f55666fa2fa1b91", "score": "0.4718121", "text": "public String generateFileName (JsonObject data, String path) {\n\t\tString fileName = \".txt\";\n\t\tString domain = getDomain(data.getString(ProductFields.URL));\n\t\tString currentDate = getDate();\n\t\tfileName = domain + \"_\" + data.getString(ProductFields.CATEGORY) + \"_\" + currentDate + fileName;\n\t\treturn path + File.separator + fileName;\n\t}", "title": "" } ]
b472b7e7c6092e9ed8a7fa78ee2110b4
Returns the actual classpath of a classloader instance.
[ { "docid": "d224a279042c47a26e76cff1888816d0", "score": "0.62394947", "text": "String[] getClasspath(ClassloaderContext task,\n ClassLoader classloader, boolean defaultToFile);", "title": "" } ]
[ { "docid": "3c5934370eab9701786cfae2fd2faafb", "score": "0.70351374", "text": "public String getClassPath(){\r\n\t return classpath;\r\n }", "title": "" }, { "docid": "c4f9168503a2dd4dcc1383a200ee48ea", "score": "0.6973002", "text": "public Path getClasspath() {\n return classpath;\n }", "title": "" }, { "docid": "017371291b938f0749f510b1ebe0ee39", "score": "0.69067204", "text": "public String classpath() {\n \tresolve();\n \t// obtains classpath\n final StringBuilder sb = new StringBuilder();\n try {\n for (final ResolutionNode artifact : artifacts) {\n sb.append(artifact.getArtifact().getFile().getCanonicalPath()).append(File.pathSeparatorChar);\n }\n } catch (final Exception e) {\n throw new RuntimeException(\"Cannot obtain CLASSPATH\", e);\n }\n if (debug) System.out.println(sb.toString());\n return sb.toString();\n }", "title": "" }, { "docid": "92ab07d614008af5d250ed517fa266e0", "score": "0.6353045", "text": "protected Path getCombinedClasspath() {\n Path combinedPath = classpath;\n if (config.classpath != null) {\n if (combinedPath == null) {\n combinedPath = config.classpath;\n } else {\n combinedPath.append(config.classpath);\n }\n }\n \n return combinedPath;\n }", "title": "" }, { "docid": "4225723e0d6d8ef6079e15460f4b9e36", "score": "0.6327563", "text": "public Path getClasspath() {\n return getCompileClasspath();\n }", "title": "" }, { "docid": "4a4067d17284a8df1ac73dc23e78f94e", "score": "0.6232225", "text": "public String getClassPath() {\r\n StringBuilder builder = new StringBuilder();\r\n String classpath = System.getProperty(IConstants.JAVA_CLASS_PATH);\r\n builder.append(classpath);\r\n\r\n String surefireClasspath = System.getProperty(IConstants.SUREFIRE_TEST_CLASS_PATH);\r\n if (surefireClasspath != null) {\r\n builder.append(File.pathSeparator);\r\n builder.append(surefireClasspath);\r\n }\r\n\r\n String includedJars = System.getProperty(IConstants.INCLUDED_JARS_PROPERTY);\r\n if (includedJars != null) {\r\n StringTokenizer tokenizer = new StringTokenizer(includedJars, SEPARATOR, false);\r\n while (tokenizer.hasMoreTokens()) {\r\n String jarFile = tokenizer.nextToken();\r\n builder.append(File.pathSeparator);\r\n builder.append(jarFile);\r\n }\r\n }\r\n return builder.toString();\r\n }", "title": "" }, { "docid": "c5426d83d3558aed974233f4c0d97eb7", "score": "0.6224509", "text": "public Path getBootclasspath() {\n return bootclasspath;\n }", "title": "" }, { "docid": "afbb913c865744350acc1df3bd82cf9d", "score": "0.6209278", "text": "public ClassLoader getClassLoader()\n {\n return _classLoader;\n }", "title": "" }, { "docid": "f8d4379bee763b95d38a2d25c83d8d5c", "score": "0.62045294", "text": "public ClassLoader getClassLoader() {\n if (myClassLoader == null) {\n // the usual classloader\n // additional use the provided classpath\n // Memory leak in line below\n myClassLoader = (classpath == null) ? getClass().getClassLoader() : getProject().createClassLoader(classpath);\n }\n return myClassLoader;\n }", "title": "" }, { "docid": "58d6efe79a2e8025729c1dea8c40c721", "score": "0.61913365", "text": "public static ClassLoader classLoader() {\n\t\tfinal ClassLoader contextCL = Thread.currentThread().getContextClassLoader();\n\t\treturn contextCL != null ? contextCL : ClassLoader.getSystemClassLoader();\n\t}", "title": "" }, { "docid": "f348fe05e96469d6436562c95a4e0193", "score": "0.6161977", "text": "public static URL[] getClashpath()\r\n\t{\r\n\r\n URL[] urls = ((URLClassLoader)classLoader).getURLs();\r\n \r\n for(URL url: urls){\r\n s_log.debug(url.getFile());\r\n }\r\n return urls;\r\n\t}", "title": "" }, { "docid": "fe611590e4dcca35d01797a2090d872b", "score": "0.6128156", "text": "public String[] getClassPath()\r\n\t{\r\n\t\treturn iClassPath;\r\n\t}", "title": "" }, { "docid": "b8886ae67cb61102b6630d894e87bcd2", "score": "0.60739446", "text": "public SiteClassLoader getClassLoader() {\n \t\treturn config_.classLoader;\n \t}", "title": "" }, { "docid": "e2cd413a92cbe681d469c0bcf7ebce95", "score": "0.6070475", "text": "ClassLoader getClassLoader();", "title": "" }, { "docid": "c62fe5df81ad856050ec3eeadbd60681", "score": "0.6044222", "text": "URL[] getClassPath();", "title": "" }, { "docid": "fd1150c03dd3704df5d3a50b8f88b698", "score": "0.6042061", "text": "@NotNull\n @Override\n public List<String> getClassPath() {\n final List<String> classpath = ContainerUtil.newArrayList();\n classpath.add(ClasspathBootstrap.getResourcePath(ExternalSystemException.class));\n\n if (ApplicationManager.getApplication().isUnitTestMode()) {\n classpath.add(ClasspathBootstrap.getResourcePath(PantsUtil.class));\n classpath.add(ClasspathBootstrap.getResourcePath(PantsJpsModelSerializerExtension.class));\n classpath.addAll(StringUtil.split(StringUtil.notNullize(System.getProperty(\"pants.jps.plugin.classpath\")), \":\"));\n }\n\n return classpath;\n }", "title": "" }, { "docid": "025039991cda43c65904cdd230591196", "score": "0.6038007", "text": "protected ClassLoader getClassLoaderForBuild() {\n if (classpathLoader != null) {\n return classpathLoader;\n }\n \n Path combinedClasspath = getCombinedClasspath();\n \n // only generate a new ClassLoader if we have a classpath\n if (combinedClasspath == null) {\n classpathLoader = getClass().getClassLoader();\n } else {\n classpathLoader\n = getTask().getProject().createClassLoader(combinedClasspath);\n }\n \n return classpathLoader;\n }", "title": "" }, { "docid": "6afedd07931ccd70825199dc6b37e6d0", "score": "0.60309005", "text": "public static URL[] getFullClassPath(ClassLoader classLoader) {\n\t\tList<URL> list = new ArrayList<URL>();\n\t\twhile (classLoader != null) {\n\t\t\tif (classLoader instanceof URLClassLoader) {\n\t\t\t\tURL[] urls = ((URLClassLoader) classLoader).getURLs();\n\t\t\t\tlist.addAll(Arrays.asList(urls));\n\t\t\t}\n\t\t\tclassLoader = classLoader.getParent();\n\t\t}\n\n\t\tURL[] result = new URL[list.size()];\n\t\treturn list.toArray(result);\n\t}", "title": "" }, { "docid": "d0fa50cc050b4954b4a0c81d6a2ba502", "score": "0.60003257", "text": "public Path createClasspath() {\n return classpath.createPath();\n }", "title": "" }, { "docid": "52d840f8443474fc55760de07ae4f796", "score": "0.59928423", "text": "private ClassLoader getUrlClassLoader()\n {\n ClassLoader jspClassLoader = new URLClassLoader(new URL[0], this.getClass().getClassLoader());\n return jspClassLoader;\n }", "title": "" }, { "docid": "e7e2cf6872af0f94e14f77f4260dfdae", "score": "0.5966707", "text": "public final ClassLoader getClassLoader()\r\n/* 55: */ {\r\n/* 56:123 */ return this.classLoader != null ? this.classLoader : this.clazz.getClassLoader();\r\n/* 57: */ }", "title": "" }, { "docid": "dc4d5cad7ec0e3c25ffa62296b2da68c", "score": "0.59416527", "text": "public static String getRuntimeClassPath() {\n\t\tString path = \"D:/devtools/eclipse-rcp-helios-SR2-win32/runtime-New_configuration/\";\r\n\t\treturn path;\r\n\t}", "title": "" }, { "docid": "2b1308ef4ac8b752a89d86fdbf4ee14f", "score": "0.59331006", "text": "public ClassLoader getLoader() {\n return (loader!=null ? loader : getClass().getClassLoader());\n }", "title": "" }, { "docid": "72a92b69667017da43632b47d8c8de02", "score": "0.5927863", "text": "private URLClassLoader getClassLoader() throws MalformedURLException, DependencyResolutionRequiredException {\n String[] classpath = getClasspath();\n\n URL[] urls = new URL[classpath.length];\n\n for (int i = urls.length - 1; i >= 0; i--) {\n urls[i] = new URL(\"file:\" + classpath[i]);\n\n this.getLog().debug(\"cp [\" + urls[i] + \"]\");\n }\n\n return new URLClassLoader(urls);\n }", "title": "" }, { "docid": "35e1231fffbf64a280c9c7bc1c38b72f", "score": "0.591607", "text": "private static final File findLoaderDir() throws Exception\n\t{\n\t\tfinal String classpath = System.getProperty(\"java.class.path\");\n\t\tfinal String pathSeparator = System.getProperty(\"path.separator\");\n\t\tfinal StringTokenizer tokenizer = new StringTokenizer(classpath, pathSeparator);\n\n\t\twhile (tokenizer.hasMoreTokens())\n\t\t{\n\t\t\tfinal String element = tokenizer.nextToken();\n\n\t\t\tif (element.endsWith(LOADER_JAR))\n\t\t\t{\n\t\t\t\tFile file = (new File(element)).getCanonicalFile();\n\t\t\t\tfile = file.getParentFile();\n\t\t\t\treturn file;\n\t\t\t}\n\t\t}\n\n\t\tthrow new Exception(\"Unable to locate \" + LOADER_JAR + \" in classpath\");\n\t}", "title": "" }, { "docid": "7376f337dfe254b37b454d59692a8e39", "score": "0.5900165", "text": "public ClassLoader getClassLoader(XValue classpath) throws CoreException \n\t{\n\t\tif( classpath == null ){\n\t\t\tif( mClassLoader != null )\n\t\t\t\treturn mClassLoader ;\n\t\t\telse\n\t\t\t\treturn this.getClass().getClassLoader();\n\t\t}\n\t\t\t\t\n\t\tfinal List<URL> urls = new ArrayList<URL>();\n\t\tfor( XdmItem item : classpath.asXdmValue() ){\n\t\t\tString cp = item.getStringValue();\n\t\t\tURL url = getURL(cp);\t\t\t\t\t\n\t\t\turls.add(url);\n\t\t}\n\n\t\tfinal ClassLoader parent = getClass().getClassLoader();\n\n\t\tURLClassLoader loader = AccessController.doPrivileged(new PrivilegedAction<URLClassLoader>() {\n\t\t\tpublic URLClassLoader run() {\n\t\t\t\treturn new URLClassLoader( (URL[]) urls.toArray(new URL[urls.size()]), parent );\n\t\t\t}\n\t\t});\n\t\treturn loader;\n\t}", "title": "" }, { "docid": "4371dab62f625bc5dcbbca5723aceb14", "score": "0.5893078", "text": "ClassLoader getParent(ClassLoader classLoader);", "title": "" }, { "docid": "71a5953b9894c8e8cda424a5e557bcbe", "score": "0.5891055", "text": "public static URL[] getFullClassPath(Class clazz) {\n\t\treturn getFullClassPath(clazz.getClassLoader());\n\t}", "title": "" }, { "docid": "2a3c52cd7512cfd8ff112b2985a3735d", "score": "0.5890314", "text": "public static LaunchClassLoader getClassLoader()\r\n\t{\r\n\t\treturn LiteLoader.classLoader;\r\n\t}", "title": "" }, { "docid": "2a3c52cd7512cfd8ff112b2985a3735d", "score": "0.5890314", "text": "public static LaunchClassLoader getClassLoader()\r\n\t{\r\n\t\treturn LiteLoader.classLoader;\r\n\t}", "title": "" }, { "docid": "dd1dfc2e480b0de3fd475506e82a5c76", "score": "0.58892286", "text": "ObjectVariable getClassLoader();", "title": "" }, { "docid": "668b8977631835dbdc3c96e2f4d46e26", "score": "0.5820311", "text": "public InputStream resolveclasspath(String classname){\n if(classpath.indexOf(File.pathSeparator) != -1){\n StringTokenizer st = new StringTokenizer(classpath, File.pathSeparator);\n //separates path.\n while(st.hasMoreTokens()){\n String path = (st.nextToken()).trim();\n InputStream in = resolveclasspathhelper(path, classname);\n if(in != null) return in;\n\n }\n return null;\n }\n else return (resolveclasspathhelper(classpath, classname));\n }", "title": "" }, { "docid": "c81c9610c65cff48641719f43006e29f", "score": "0.5810704", "text": "public Path createClasspath()\n {\n if( classpath == null )\n {\n classpath = new Path();\n }\n Path path1 = classpath;\n final Path path = new Path();\n path1.addPath( path );\n return path;\n }", "title": "" }, { "docid": "fc3983bfaf54ed3993f937d92ac98e7e", "score": "0.58069056", "text": "ClassFileLocator getClassFileLocator();", "title": "" }, { "docid": "dd5c283c1a1bd486d1e28891900e4adf", "score": "0.57979417", "text": "protected Path getCompileClasspath() {\n Path classpath = new Path(attributes.getProject());\n // add dest dir to classpath so that previously compiled and\n // untouched classes are on classpath\n classpath.setLocation(attributes.getBase());\n \n // Combine the build classpath with the system classpath, in an\n // order determined by the value of build.sysclasspath\n \n Path cp = attributes.getClasspath();\n if (cp == null) {\n cp = new Path(attributes.getProject());\n }\n if (attributes.getIncludeantruntime()) {\n classpath.addExisting(cp.concatSystemClasspath(\"last\"));\n } else {\n classpath.addExisting(cp.concatSystemClasspath(\"ignore\"));\n }\n \n if (attributes.getIncludejavaruntime()) {\n classpath.addJavaRuntime();\n }\n return classpath;\n }", "title": "" }, { "docid": "c1ed573eefe43f4dd007687517154f9d", "score": "0.57573646", "text": "public ClassLoader getClassLoader() {\n return classLoader;\n }", "title": "" }, { "docid": "c1ed573eefe43f4dd007687517154f9d", "score": "0.57573646", "text": "public ClassLoader getClassLoader() {\n return classLoader;\n }", "title": "" }, { "docid": "c1ed573eefe43f4dd007687517154f9d", "score": "0.57573646", "text": "public ClassLoader getClassLoader() {\n return classLoader;\n }", "title": "" }, { "docid": "b970d21092cf03fd8eb8498bab405daa", "score": "0.5743096", "text": "public String getBundleClassPath() {\n return this.bundleClassPath;\n }", "title": "" }, { "docid": "f691d948eaa0cafa275d16ec367e1ece", "score": "0.5713228", "text": "@Override\n public ClassLoader getClassLoader(Location location) {\n return this.classLoader;\n }", "title": "" }, { "docid": "fcb41398d9f6bc0992abcd5188c12800", "score": "0.569514", "text": "boolean appendClasspath(ClassloaderContext.CreateModify task,\n ClassLoader classloader);", "title": "" }, { "docid": "1626c07554032a00895358819116f2c6", "score": "0.56470186", "text": "public String[] getClasspath(ILaunchConfiguration configuration)\n throws CoreException {\n \n return launcher.getClasspath();\n /**\n try {\n IJavaProject javaProject = getJavaProject(configuration);\n Project model = Activator.getDefault().getCentral().getModel(javaProject);\n\n List<String> classpath = new ArrayList<String>();\n\n classpath.add(getRuntime().getAbsolutePath());\n\n for (Container c : model.getRunpath()) {\n if (c.getType() != Container.TYPE.ERROR) {\n classpath.add(c.getFile().getAbsolutePath());\n } else {\n abort(\"Invalid entry on the \" + Constants.RUNPATH + \": \"\n + c, null, IStatus.ERROR);\n }\n }\n return classpath.toArray(new String[classpath.size()]);\n } catch (Exception e) {\n abort(\"Calculating class path\", e, IStatus.ERROR);\n }\n return null;\n */\n }", "title": "" }, { "docid": "708cbc1dc683806dd418b65714c4182c", "score": "0.562338", "text": "public static ClassLoader getClassLoader() {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n if (classLoader == null) {\n classLoader = JavaUtils.class.getClassLoader();\n }\n return classLoader;\n }", "title": "" }, { "docid": "b9b02b401cb7d5d994813695c6677fdd", "score": "0.56205755", "text": "public interface ClassLoaderAdapter {\n /**\n * add classloader to the report queue. the adapter should call\n * task.addLoaderToReport to add a loader.\n *\n * @param task\n * the calling ClassloaderBase-task.\n * @param classloader\n * the classloader to analyze.\n * @param role\n * the name of the classloader instance.\n * @param loaderStack\n * loaderStack to pass to ClassloaderBase.addLoaderToReport.\n * @param loaderNames\n * loaderNames to pass to ClassloaderBase.addLoaderToReport.\n */\n void addReportable(ClassloaderContext.Report task,\n ClassLoader classloader, ClassloaderReportHandle role,\n Map loaderStack, Map loaderNames);\n /**\n * Appends a classpath to an existing classloader instance.\n *\n * @param task\n * the calling ClassloaderBase-task.\n * @param classloader\n * the classloader instance to append the path to.\n * @return The ClassLoader instance or null if an error occured.\n */\n boolean appendClasspath(ClassloaderContext.CreateModify task,\n ClassLoader classloader);\n /**\n * Creates a classloader instance.\n *\n * @param task\n * the calling ClassloaderBase-task.\n * @return the newly created ClassLoader instance or null if an error\n * occured.\n */\n ClassLoader createClassLoader(ClassloaderContext.CreateModify task);\n /**\n * Returns the actual classpath of a classloader instance.\n *\n * @param task\n * the calling ClassloaderBase-task.\n * @param classloader\n * the classloader instance to get the path from.\n * @param defaultToFile\n * if true, returned url-elements with file protocol should trim\n * the leading 'file:/' prefix.\n * @return the path or null if an error occured\n */\n String[] getClasspath(ClassloaderContext task,\n ClassLoader classloader, boolean defaultToFile);\n /**\n * Gets the default parent classloader in the case, this classloader's\n * <code>getParent()</code> method returns <code>null</code>.\n *\n * @return The classloader implicitely used as parent loader or null if the\n * bootstrap loader is the implicitely parent loader.\n */\n ClassLoader getDefaultParent();\n /**\n * Gets the packages, defined by this classloader or its parents.\n *\n * @param context\n * The context of this method call.\n * @param classLoader\n * The classloader to get the packages from.\n * @param name\n * The symbolic name of this classloader.\n * @return The packages defined by this classloader or null if an error\n * occurs.\n */\n Package[] getPackages(ClassloaderContext.Report context,\n ClassLoader classLoader, ClassloaderReportHandle name);\n /**\n * Gets the parent classloader. Necessary, because AntClassLoader's\n * <code>getParent()</code> method returns an invalid result.\n *\n * @param classLoader\n * The classloader to get the parent from.\n * @return The classloader explicitely used as parent loader or\n * <code>null</code>.\n */\n ClassLoader getParent(ClassLoader classLoader);\n /**\n * Checks whether the adapter supports an action.\n *\n * @param action\n * the action to check.\n * @return true, if action is supported.\n */\n boolean isSupported(ClassLoaderAdapterAction action);\n /**\n * performs additional reporting.\n *\n * @param to\n * the Reporter Object to report to.\n * @param task\n * the calling ClassloaderBase-task.\n * @param classloader\n * the classloader instance to report about.\n * @param name\n * the name of the classloader instance.\n */\n void report(ClassloaderReporter to, ClassloaderContext.Report task,\n ClassLoader classloader, ClassloaderReportHandle name);\n}", "title": "" }, { "docid": "dad3f29ecc8f80025774f2aa1238cb60", "score": "0.56112254", "text": "public Path createClasspath() {\n if (classpath == null) {\n classpath = new Path(task.getProject());\n }\n return classpath.createPath();\n }", "title": "" }, { "docid": "6bc26a7558b9c34438e7cf6a9d6db38f", "score": "0.5594745", "text": "public Path createClasspath() {\n if (classpath == null) {\n classpath = new Path(getProject());\n }\n return classpath.createPath();\n }", "title": "" }, { "docid": "7202cd4cb2a29a385516e4bce8d04530", "score": "0.5588389", "text": "protected Path getCompileClasspath() {\n Path classpath = new Path(project);\n \n // add dest dir to classpath so that previously compiled and\n // untouched classes are on classpath\n \n if (destDir != null) {\n classpath.setLocation(destDir);\n }\n \n // Combine the build classpath with the system classpath, in an\n // order determined by the value of build.sysclasspath\n \n Path cp = compileClasspath;\n if (cp == null) {\n cp = new Path(project);\n }\n if (includeAntRuntime) {\n classpath.addExisting(cp.concatSystemClasspath(\"last\"));\n } else {\n classpath.addExisting(cp.concatSystemClasspath(\"ignore\"));\n }\n \n if (includeJavaRuntime) {\n classpath.addJavaRuntime();\n }\n \n return classpath;\n }", "title": "" }, { "docid": "07e3a8dbc4d5710b9dc35815ec5922bf", "score": "0.556274", "text": "protected Path getBootClassPath() {\n Path bp = new Path(project);\n if (bootclasspath != null) {\n bp.append(bootclasspath);\n }\n return bp.concatSystemBootClasspath(\"ignore\");\n }", "title": "" }, { "docid": "bf066b81f4ea99d21887ba8e0d4c4da8", "score": "0.55618834", "text": "protected URLClassLoader obtainClassLoader() throws MojoExecutionException {\n List<String> compileClasspath = obtainClasspath();\n Set<URL> classpathUrlSet = new HashSet<URL>();\n for (String classpathEntry : compileClasspath) {\n File f = new File(classpathEntry);\n if (f.exists()) {\n try {\n classpathUrlSet.add(f.toURI().toURL());\n } catch (MalformedURLException ex) {\n throw new RuntimeException(\"Error interpreting classpath entry as URL: \" + classpathEntry, ex);\n }\n }\n }\n URL[] classpathUrls = classpathUrlSet.toArray(new URL[classpathUrlSet.size()]);\n return new URLClassLoader(classpathUrls, AbstractJodaBeansMojo.class.getClassLoader());\n }", "title": "" }, { "docid": "75f7eef0e62c7a656a410602f149269d", "score": "0.5543597", "text": "public List<ClassLoader> getClassLoaders() {\r\n return classLoaders;\r\n }", "title": "" }, { "docid": "bc068fa620ac67147f83a224ca321015", "score": "0.5503798", "text": "public static ClassLoader getLoader() {\r\n ClassLoader loader = ExceptionMessageGenerator.class.getClassLoader();\r\n \r\n if (loader == null) {\r\n loader = ConversionManager.getDefaultManager().getLoader();\r\n }\r\n \r\n return loader;\r\n }", "title": "" }, { "docid": "a068085bc64ac6caaa61d521fba4a0c1", "score": "0.54893535", "text": "public ClassLoader getClassLoader() {\n\treturn null;\n}", "title": "" }, { "docid": "b818364495e5c64a0614a7802a018094", "score": "0.5477174", "text": "ClassLoader getClassLoader() {\n return classLoader;\n }", "title": "" }, { "docid": "7c75e389f50f36754d8f7d6f3f04cd6b", "score": "0.5460533", "text": "private static ClassLoader getCurrentClassLoader() {\n return Thread.currentThread().getContextClassLoader();\n }", "title": "" }, { "docid": "b809f083b977e247f5be4548e129be2a", "score": "0.54277563", "text": "public URL getDynamicClassRoot()\n {\n return null;\n }", "title": "" }, { "docid": "a6ea668fcfaa3a6e31534d33417d1e35", "score": "0.54180396", "text": "public static String getClassPath(Class<?> _class) {\n\t\tString classPath = _class.getName().replaceAll(\"\\\\.\", \"/\") + \".class\";\n\t\treturn _class.getClassLoader().getResource(classPath).toString().split(\"!\")[0];\n\t}", "title": "" }, { "docid": "8a6b933883b91a21da2baeeba1eca053", "score": "0.5386747", "text": "public Path createClasspath() {\n return getCommandline().createClasspath(getProject()).createPath();\n }", "title": "" }, { "docid": "39d17549ca94cd542ae5ddb58a66aa85", "score": "0.5376184", "text": "static GDAClassLoaderService getClassLoaderService() {\n\t\tif (Platform.isRunning()) {\n\t\t\tBundle currentBundle = FrameworkUtil.getBundle(GDAClassLoaderService.class);\n\t\t\tBundleContext bundleContext = currentBundle.getBundleContext();\n\t\t\tServiceReference<GDAClassLoaderService> serviceReference = bundleContext\n\t\t\t\t\t.getServiceReference(GDAClassLoaderService.class);\n\t\t\treturn bundleContext.getService(serviceReference);\n\t\t}\n\t\treturn new SystemClassLoadingService();\n\t}", "title": "" }, { "docid": "65b8349bb64096245a436d24f3f7f757", "score": "0.5329111", "text": "public String getExecJarPathLocal () throws URISyntaxException {\n // returns the location on disc of the jar of this class.\n return DAGUtils.class.getProtectionDomain().getCodeSource().getLocation().toURI().toString();\n }", "title": "" }, { "docid": "3613401d90d96a5ab3690a09b5d999bc", "score": "0.5310694", "text": "abstract public Object getClass (String className, ClassLoader classLoader);", "title": "" }, { "docid": "c481cf08e12b42550767452d1d19a5be", "score": "0.5302805", "text": "private static URL findWebInfClassesPath(ServletContext servletContext) {\n String path = servletContext.getRealPath(\"/WEB-INF/classes\");\n if (path == null) {\n return null;\n }\n File fp = new File(path);\n if (!fp.exists()) {\n return null;\n }\n try {\n return fp.toURI().toURL();\n } catch (MalformedURLException e) {\n throw new ClasspathAccessException(e);\n }\n }", "title": "" }, { "docid": "0a3ba22a084329980bb039c949ab9f8f", "score": "0.5284282", "text": "public static String getFullPath(@SuppressWarnings(\"rawtypes\") Class cls) {\n\t\tString[] fullyQualifiedName = cls.getName().split(\"\\\\.\");\n\t\tString className = fullyQualifiedName[fullyQualifiedName.length -1];\n\t\tString prefix = cls.getProtectionDomain().getCodeSource().getLocation().toExternalForm().substring(6);\n\t\treturn prefix + className;\n\t}", "title": "" }, { "docid": "fb429142daef1fc71d8730a0198dc7b2", "score": "0.5276786", "text": "protected static List<String> getClassLoaderFiles() throws Exception {\n ClassLoader cl = AbstractTest.class.getClassLoader();\n URL[] urls = null;\n if (cl instanceof URLClassLoader) {\n urls = ((URLClassLoader) cl).getURLs();\n } else if (cl.getClass().getName().equals(\n \"org.apache.tools.ant.AntClassLoader\")) {\n Method method = cl.getClass().getMethod(\"getClasspath\");\n String cp = (String) method.invoke(cl);\n String[] paths = cp.split(File.pathSeparator);\n urls = new URL[paths.length];\n for (int i = 0; i < paths.length; i++) {\n urls[i] = new URL(\"file:\" + paths[i]);\n }\n } else {\n System.err.println(\"Unknow classloader type: \"\n + cl.getClass().getName());\n return null;\n }\n // special case for maven surefire with useManifestOnlyJar\n if (urls.length == 1) {\n try {\n URI uri = urls[0].toURI();\n if (uri.getScheme().equals(\"file\")\n && uri.getPath().contains(\"surefirebooter\")) {\n JarFile jar = new JarFile(new File(uri));\n try {\n String cp = jar.getManifest().getMainAttributes().getValue(\n Attributes.Name.CLASS_PATH);\n if (cp != null) {\n String[] cpe = cp.split(\" \");\n URL[] newUrls = new URL[cpe.length];\n for (int i = 0; i < cpe.length; i++) {\n // Don't need to add 'file:' with maven\n // surefire >= 2.4.2\n String newUrl = cpe[i].startsWith(\"file:\") ? cpe[i]\n : \"file:\" + cpe[i];\n newUrls[i] = new URL(newUrl);\n }\n urls = newUrls;\n }\n } finally {\n jar.close();\n }\n }\n } catch (Exception e) {\n // skip\n }\n }\n // turn into files\n List<String> files = new ArrayList<String>(urls.length);\n for (URL url : urls) {\n files.add(url.toURI().getPath());\n }\n return files;\n }", "title": "" }, { "docid": "77e62b62499015ca5a037526dfa99c3f", "score": "0.5276069", "text": "ClassLoader getChildClassLoader();", "title": "" }, { "docid": "19b6cb45db2348018d5025a14259f9d2", "score": "0.5206094", "text": "ClassLoader addLocal(ClassPath classpath);", "title": "" }, { "docid": "21970cbc476ee580116cee95eb731a00", "score": "0.52043015", "text": "public Path createBootclasspath() {\n return bootclasspath.createPath();\n }", "title": "" }, { "docid": "dc3499499c9897b067fb38627b2e09e8", "score": "0.52041173", "text": "ClassLoader export(ClassPath classpath);", "title": "" }, { "docid": "45e2b36c6816b28660d9b301305d2ec1", "score": "0.51794523", "text": "protected ClassLoader getClassLoader()\n {\n return null;\n }", "title": "" }, { "docid": "65987f00eda21e706a9ef012dea5022f", "score": "0.517748", "text": "ClassPool findClassPool(ClassLoader cl);", "title": "" }, { "docid": "70e19fa3e3a029615b701308d9a634bd", "score": "0.51679504", "text": "public static String getLocationOnDisk(Class<?> aClass) {\n try {\n ProtectionDomain protectionDomain = aClass.getProtectionDomain();\n if (protectionDomain == null) {\n //Android\n return null;\n }\n String url = protectionDomain.getCodeSource().getLocation().getPath();\n return URLDecoder.decode(url, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n //Can never happen.\n return null;\n }\n }", "title": "" }, { "docid": "383b27a5ad5c22151760befc25bb18bb", "score": "0.5167562", "text": "public static ClassLoader getContextClassLoader() {\n return LoaderUtils.isContextLoaderAvailable() ? LoaderUtils.getContextClassLoader() : null;\n }", "title": "" }, { "docid": "87a587e5af40803ef995a2732f03bead", "score": "0.51492614", "text": "private String getConfigDirFromClasspath(String resourceDir) {\n\t\tString configDirFromClasspath = System.getProperty(AppConstants.CONFIG_DIR_KEY, resourceDir);\n\t\tlogger.warn(\"configDirFromClasspath: \"+configDirFromClasspath);\n\t\tif(null != configDirFromClasspath) {\n\t\t\tconfigDirFromClasspath = ClasspathUtils.getPathFromClasspathFolder(configDirFromClasspath);\n\t\t}\n\t\treturn configDirFromClasspath;\n\t}", "title": "" }, { "docid": "9458b74dbff5e7c8887a3559842264f1", "score": "0.51474243", "text": "public CustomClassLoaderUtil getCustomClassLoaderUtil();", "title": "" }, { "docid": "96db853c420987f08ff7fa9a6bc57bbe", "score": "0.5147064", "text": "ClassLoader getDefaultParent();", "title": "" }, { "docid": "d3b24f509804c558b32192d26d61e008", "score": "0.513268", "text": "ClassLoader getClassLoaderForLibrary(Class<?> libraryClass);", "title": "" }, { "docid": "8874462d5a07a41fcb5a017ab582ee8b", "score": "0.50849193", "text": "public interface ResourceLoader {\n String CLASSPATH_URL_PREFIX = \"classpath:\";\n\n Resource getResource();\n\n void setResource(Resource resource);\n\n}", "title": "" }, { "docid": "e0c8f5cb6fc7be994d6187fb3da55245", "score": "0.5079984", "text": "public void setClassPath(String classpath);", "title": "" }, { "docid": "0fdba16a2a06dc7189aea8464cb4cf43", "score": "0.5078189", "text": "public PackageClassLoader getPackageClassLoader() {\n if (classLoader == null) {\n File p = new File(pathToXml);\n if (!p.isDirectory()) {\n p = p.getParentFile();\n }\n classLoader = new PackageClassLoader(p);\n }\n \n return classLoader;\n }", "title": "" }, { "docid": "ecf95af7c075b51e2c8a91d94ec629fb", "score": "0.5073493", "text": "public Path createWLClasspath()\n {\n if( weblogicClasspath == null )\n {\n weblogicClasspath = new Path();\n }\n Path path1 = weblogicClasspath;\n final Path path = new Path();\n path1.addPath( path );\n return path;\n }", "title": "" }, { "docid": "da9d4451c9ae9370b6a35de91a660691", "score": "0.5067514", "text": "public static Class get_CLASS()\n {\n Class clz;\n try\n {\n clz = Class.forName(\"com.tangosol.coherence/component/util/logOutput/Log4j2\".replace('/', '.'));\n }\n catch (ClassNotFoundException e)\n {\n throw new NoClassDefFoundError(e.getMessage());\n }\n return clz;\n }", "title": "" }, { "docid": "4c699d5d5bbd6928dde2549f0dfe27d0", "score": "0.5044693", "text": "public com.gensym.util.Sequence getClassInheritancePathForClass() throws G2AccessException {\n java.lang.Object retnValue = getStaticAttributeValue (SystemAttributeSymbols.CLASS_INHERITANCE_PATH_);\n return (com.gensym.util.Sequence)retnValue;\n }", "title": "" }, { "docid": "d6020ba8e264c333a89ebb21cc73dbd2", "score": "0.5037475", "text": "protected static List<String> getIbmClasspath() {\n List<String> retval = new ArrayList<>();\n if(System.getProperty(\"java.vendor\").equals(\"IBM Corporation\")) {\n String fileSeparator = System.getProperty(\"file.separator\");\n String classpathSeparator = System.getProperty(\"path.separator\");\n String[] bootClasspath = System.getProperty(\"sun.boot.class.path\").split(classpathSeparator);\n for(String entry : bootClasspath) {\n if(entry.endsWith(fileSeparator + \"vm.jar\")) {\n retval.add(entry);\n break;\n }\n }\n }\n return retval;\n }", "title": "" }, { "docid": "f5ec391dfb873ca61939cac4e428d3a0", "score": "0.50229156", "text": "public String getJarName() {\n URL clsUrl = getClass().getResource(getClass().getSimpleName() + \".class\");\n if (clsUrl != null) {\n try {\n java.net.URLConnection conn = clsUrl.openConnection();\n if (conn instanceof java.net.JarURLConnection) {\n java.net.JarURLConnection connection = (java.net.JarURLConnection) conn;\n String path = connection.getJarFileURL().getPath();\n //System.out.println (\"Path = \"+path);\n int index = path.lastIndexOf('/');\n if (index>=0) path = path.substring(index+1);\n return path;\n }\n }\n catch (IOException e) { e.printStackTrace(); }\n }\n return null;\n }", "title": "" }, { "docid": "91e58c31d380e340935a7ed5eafade84", "score": "0.5013891", "text": "private URL _resolveClassLoaderURL(String name)\n {\n if (name == null)\n return null;\n return ClassLoaderUtils.getResource(name);\n \n }", "title": "" }, { "docid": "84e5b94d0d0ecdc6222d976ed3f656df", "score": "0.50122356", "text": "public void setClassPath(String classpath){\r\n\t this.classpath = classpath;\r\n }", "title": "" }, { "docid": "fe0c9cda0b550489dbf6586280367aac", "score": "0.5011307", "text": "public Path createBootclasspath() {\n if (bootclasspath == null) {\n bootclasspath = new Path(getProject());\n }\n return bootclasspath.createPath();\n }", "title": "" }, { "docid": "36d406d2a2b9d6cdb6342e257e7d1e32", "score": "0.50064826", "text": "protected LinkedHashSet<URL> findJavaClassPathJarReferences() {\n LinkedHashSet<URL> result = new LinkedHashSet<>();\n try {\n\n String javaClassPathProperty = System.getProperty(\"java.class.path\");\n log.trace(\"searching java.class.path for .jar references: \"+javaClassPathProperty);\n for (String path : javaClassPathProperty.split(System.getProperty(\"path.separator\"))) {\n// try {\n File file = new File(path).getAbsoluteFile();\n String filePath = file.getAbsolutePath();\n if (file.exists() && filePath.toLowerCase().endsWith(\".jar\")) {\n URL url = new URL(\"jar:file:\" + filePath + \"!/\");\n result.add(url);\n }\n }\n } catch (Exception ex) {\n if (log.isDebugEnabled()) {\n log.debug(\"Failed to evaluate 'java.class.path' manifest entries: \" + ex);\n }\n }\n return result;\n }", "title": "" }, { "docid": "2d9dc67c612fb38a710389b5b3d0ad0f", "score": "0.50042534", "text": "public static String getJarPath(Class<?> _class) {\n\t\treturn getClassPath(_class).substring(9);\n\t}", "title": "" }, { "docid": "a3e61aab05dc4c29e5704940e4dcb81f", "score": "0.50005686", "text": "public static ClassLoaderHelper getInstance() {\n return ClassLoaderHelper.instance;\n }", "title": "" }, { "docid": "a8ee95d9377c66b7348fdbfc6535ce4c", "score": "0.49908692", "text": "ClassLoader getJCasClassLoader();", "title": "" }, { "docid": "53fecd17097e45c83aeeeed9a9ded9e3", "score": "0.49888176", "text": "private static URL[] getEngineClassPath() throws Exception\n\t{\n\t\tfinal ArrayList urls = new ArrayList();\n\n\t\tfinal File dir = findEngineLibDir();\n\t\tfinal File[] files = dir.listFiles();\n\t\tfor (int i = 0; i < files.length; i++)\n\t\t{\n\t\t\tfinal File file = files[i];\n\t\t\tif (file.getName().endsWith(\".jar\"))\n\t\t\t{\n\t\t\t\turls.add(file.toURL());\n\t\t\t}\n\t\t}\n\n\t\t// TODO: (done) add also the phoenix libs\n\t\tfinal File dir_p = findPhoenixLibDir();\n\t\tfinal File[] files_p = dir_p.listFiles();\n\t\tfor (int i = 0; i < files_p.length; i++)\n\t\t{\n\t\t\tfinal File file = files_p[i];\n\t\t\tif (file.getName().endsWith(\".jar\"))\n\t\t\t{\n\t\t\t\turls.add(file.toURL());\n\t\t\t}\n\t\t}\n\n\t\treturn (URL[]) urls.toArray(new URL[urls.size()]);\n\t}", "title": "" }, { "docid": "fe763c1fbd5224eff407cb5e2283ae88", "score": "0.49822748", "text": "public List<String> getClassPaths() {\n\t\treturn classPaths;\n\t}", "title": "" }, { "docid": "3c43a282a26d958d0ff2f43ff7786ddd", "score": "0.49818152", "text": "public static String getDirectoryPath ()\n\t\t{\n\t\t\tif (StringUtils.countMatches(Base.class.getResource(\"Base.class\").toString(), \":\")==1)\n\t\t\t{\n\t\t\t\treturn Base.class.getResource(\"Base.class\").toString().split(\"com\")[0].split(\":\")[1];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//System.out.println (Base.class.getResource(\"Base.class\").toString().split(\"com\")[0].split(\":\")[1]);\n\t\t\t\tString sDrive = Base.class.getResource(\"Base.class\").toString().split(\"com\")[0].split(\":\")[1];\n\t\t\t\tsDrive = sDrive.replace(\"/\",\"\");\n\t\t\t\t//System.out.println(sDrive+\":\\\\\"+Base.class.getResource(\"Base.class\").toString().split(\"com\")[0].split(\":\")[2]);\n\t\t\t\treturn sDrive+\":/\"+Base.class.getResource(\"Base.class\").toString().split(\"com\")[0].split(\":\")[2];\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1bfb53ab3c4677fbca68d02d1c112770", "score": "0.49497217", "text": "public static String getNameFromClassPath(String s) {\r\n\t\tint ich = s.lastIndexOf('.');\r\n\t\tif (ich != -1) {\r\n\t\t\treturn s.substring(ich + 1);\r\n\t\t} else {\r\n\t\t\treturn s;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2cc47ca15e5c257cd44fa77cf4e64f97", "score": "0.49492145", "text": "public synchronized ClassLoader getDriverClassLoader() {\r\n return this.driverClassLoader;\r\n }", "title": "" }, { "docid": "33377b5021d73e3ba8f9a697c621bfdc", "score": "0.49262995", "text": "public String getJclPath()\r\n\t{\r\n\t\treturn jclPath;\r\n\t}", "title": "" }, { "docid": "1fb9ac769d86e4e83d36a0575ef50147", "score": "0.4925776", "text": "private Path addSlaveClasspath() {\n Path path = new Path(getProject());\n \n String [] REQUIRED_SLAVE_CLASSES = {\n SlaveMain.class.getName(),\n Strings.class.getName(),\n MethodGlobFilter.class.getName(),\n Gson.class.getName(),\n TeeOutputStream.class.getName()\n };\n \n for (String clazz : Arrays.asList(REQUIRED_SLAVE_CLASSES)) {\n String resource = clazz.replace(\".\", \"/\") + \".class\";\n File f = LoaderUtils.getResourceSource(getClass().getClassLoader(), resource);\n if (f != null) {\n path.createPath().setLocation(f);\n } else {\n throw new BuildException(\"Could not locate classpath for resource: \"\n + resource);\n }\n }\n return path;\n }", "title": "" }, { "docid": "7917fdae03e6b4529e97467b07467c00", "score": "0.49185598", "text": "public Class<?> getClazz(ClassLoader loader);", "title": "" }, { "docid": "d16888e7210cea441256436deeab7bf3", "score": "0.4912484", "text": "List getFailedClassPathEntries();", "title": "" }, { "docid": "700c716469aa03ff174ceb503fcf8fb8", "score": "0.4904812", "text": "private String[] getClasspath() throws DependencyResolutionRequiredException {\n \tList paths = project.getRuntimeClasspathElements();\n paths.add(new File(project.getBuild().getOutputDirectory()).getAbsolutePath() + \"/\");\n\n // Now remove hivemind itself and hivemind lib as they appear to have\n // invalid hivemodules that break the xslt\n for (int i = 0; i < paths.size(); i++) {\n String file = (String) paths.get(i);\n\n if (this.ignoredJars != null) {\n for (Iterator iter = ignoredJars.iterator(); iter.hasNext();) {\n String name = (String) iter.next();\n if (file.endsWith(name)) {\n paths.remove(file);\n i--;\n }\n }\n\n } \n }\n\n return (String[]) paths.toArray(new String[0]);\n }", "title": "" } ]
810a74d8ecde39afb761f85d78b5f679
return "tools" + FILE_SEPARATOR + "chromedriver" + FILE_SEPARATOR + "chromedriver.exe"; // need to check why not working (30/06/2020)
[ { "docid": "ad8abe2350f47e57e5433a41082804e9", "score": "0.8208658", "text": "private static String returnChromeDriverPath() {\n return \"Tools/chromedriver/chromedriver.exe\";\r\n }", "title": "" } ]
[ { "docid": "e8731beeda7e408ced509f95055487a5", "score": "0.6411961", "text": "public static void main (String[] args) {\nSystem.out.println(\"svhasgahgs\");\n//C:\\Software RAHUL\\DRIVER\nSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Software RAHUL\\\\DRIVER\\\\chromedriver.exe\");\nWebDriver driver =new ChromeDriver();\ndriver.get(\"https://www.google.com/\");\n\n\n\n\n\n\n\t}", "title": "" }, { "docid": "ef841f361c24e7e223fec06e2e0e7c41", "score": "0.63367885", "text": "public static void main(String[] args) {\nString chrome_exepath=\"E:\\\\browser_exes\\\\chromedriver.exe\";\r\nSystem.setProperty(\"webdriver.chrome.driver\",chrome_exepath );\r\nWebDriver driver=new ChromeDriver();\r\ndriver.get(\"http://toolsqa.com/\");\r\ndriver.manage().window().maximize();\r\n\t}", "title": "" }, { "docid": "7ff5b31eda7fcb6ffc50795d5cda76a6", "score": "0.6329891", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\\\\\Selenium\\\\\\\\chromedriver_win32\\\\\\\\chromedriver.exe\");\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "fd6623de37ea46f97495cac5969ca08a", "score": "0.6271044", "text": "@Disabled(\"Test will only pass when it is the last test for this class. Awaiting a fix\")\n @Test\n void Adds_exe_to_driver_path_in_webdriver_system_property_when_os_is_windows() throws Exception {\n restoreSystemProperties(() -> {\n System.setProperty(\"os.name\", \"Windows 8.1\");\n System.setProperty(\"os.version\", \"6.3\");\n AcceptanceTestDriver subject = new AcceptanceTestDriver(\"chrome\", true);\n assertTrue(\n System.getProperty(\"webdriver.chrome.driver\").endsWith(\".exe\")\n );\n });\n }", "title": "" }, { "docid": "16c6a27aca209cef3f239e6ed704f520", "score": "0.61577857", "text": "public static void main(String[] args) throws IOException {\r\n\t\t\r\n\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"path of exe\");\r\n\t\t \r\n\t\t WebDriver driver = new ChromeDriver();\r\n\t\t \r\n\t\t driver.get(\"URL\");\r\n\r\n\t\t \r\n\t\t File src = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\t\t \r\n\t\t FileUtils.copyFile(src, new File (\"C:\\\\work\\\\Screenshots\\\\scrt.png\"));\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t\r\n\t\t\r\n\t/*\tFile src = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\t\t\r\n\t\tFileUtils.copyFile(src, new File (\"C:\\\\work\\\\Screenshots\\\\scrt.png\"));*/\r\n\t\t\r\n\t\t\r\n\t\tFile src = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\t\t\r\n\t\tFileUtils.copyFile(src, new File (\"C:\\\\work\\\\Screenshots\\\\scrt.png\"));\r\n\t\t\r\n\t\t\r\n\t\tFile src= ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\r\n\t\t\r\n\t\tFileUtils.copyFile(src, new File (\"C:\\\\work\\\\Screenshots\\\\scrt.png\") );\r\n\t\t\r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\\\\\work\\\\\\\\chromedriver_win32\\\\\\\\chromedriver.exe\");\r\n\t\tdriver.get(\"\");\r\n\t\t\r\n\t\tFile src = ((TakesScreenshot)driver).getScreenshotAS(OutputType.FILE);\r\n\t\t\r\n\t\tFileUtils.copyFile(src, new (\"C:\\\\work\\\\Screenshots\\\\file\"));\r\n\t\t\r\n\t\tFile src= ((TakeScreenshot)driver.getScreenshotAs(OutputType.File);\r\n\t\t\r\n\r\n\t\t\t\r\n\t\tFile src= ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE));\r\n\t\t\r\n\t\tFileUtils.copyFile(src, new (\"location of file\"));\r\n\t\t\r\n\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tFile src= ((TakesScreenshot)driver).getScreenshotAs(Output.FILE)\t\t\r\n\t\t\t\t\r\n\t\t\t\tFileUtils.copyFile(src, new (\"location of file\"));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tFile src= ((TakesScreenshot)driver).getScreenshotAs(Output.FILE);\r\n\t\t\r\n\t\tFileUtils.copyFile(src, new (\"location of file\"))\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "fd6ba42286fc229ef3610acd471e7b43", "score": "0.60478616", "text": "public static void main(String[] args) \n\t{\n\t\tWebDriverManager.chromedriver().setup();\n\t\t\n\t\t//to get the path of driver.exe file which is downloaded in maven local repository\n\t\tString path = WebDriverManager.chromedriver().getBinaryPath();\n\t\tSystem.out.println(\"Path of driver.exe file -> \"+path);\n\t\t\n\t\t//to get the downloaded version of driver.exe\n\t\tString version = WebDriverManager.chromedriver().getDownloadedVersion();\n\t\tSystem.out.println(\"Downloaded Version -> \"+version);\n\t\t\n\t\t//Below method allows to remove all binaries previously downloaded by WebDriverManager\n\t\tWebDriverManager.chromedriver().clearCache();\n\t\t\n\t\t//Below line will give you the list of all available versions of driver.exe \n\t\t//List<String> versions = WebDriverManager.chromedriver().getDriverVersions();\n\t\t//for (String v : versions) \n\t\t//{\n\t\t//\t\t\tSystem.out.println(v);\n\t\t//}\n\t\n\t\t//Launch the browser\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"http://localhost:8888\");\n\t}", "title": "" }, { "docid": "af2d2993a2985d907e442ffc74358533", "score": "0.6012086", "text": "public static void main(String[] args) throws IOException, InterruptedException, ParseException {\n String currentDirectory = Paths.get(\".\").toAbsolutePath().normalize().toString();\n String driverFile = null;\n String profileFile = null;\n String mapFile = null;\n int exit = 0;\n\n String javaHome = System.getProperty(\"java.home\");\n if (javaHome != null) {\n double version = Double.parseDouble(System.getProperty(\"java.specification.version\"));\n if (version >= 1.8) {\n\n //argument parser\n new Cli(args).parse();\n\n try {\n\n File mataInstancia = new File(currentDirectory + \"/files/\" + \"mataCR.bat\");\n if (mataInstancia.exists()) {\n //System.out.println(mataInstancia.getAbsolutePath());\n Runtime.getRuntime().exec(\"cmd /c \" + \"\\\"\" + mataInstancia.getAbsolutePath() + \"\\\"\");\n Thread.sleep(1000);\n }\n else\n {\n System.out.println(\"File \" + currentDirectory + \"/files/\" + \"mataCR.bat\" + \" is missing, but not required.\");\n }\n\n File driverFileExists = new File(currentDirectory + \"/files/\" + \"chromedriver.exe\");\n if (driverFileExists.exists()) {\n driverFile = currentDirectory + \"/files/\" + \"chromedriver.exe\";\n \n }\n else\n {\n System.out.println(\"File \" + currentDirectory + \"/files/\" + \"chromedriver.exe\" + \" is missing.\");\n exit = 1;\n }\n\n File profileFileExists = new File(currentDirectory + \"/files/\" + \"chromeprofile.zip\");\n if (profileFileExists.exists()) {\n profileFile = currentDirectory + \"/files/\" + \"chromeprofile.zip\";\n }\n else\n {\n System.out.println(\"File \" + currentDirectory + \"/files/\" + \"chromeprofile.zip\" + \" is missing.\");\n exit = 1;\n }\n \n File mapFileExists = new File(currentDirectory + \"/mapvalidator/\" + \"mapvalidator.xls\");\n if (mapFileExists.exists()) {\n mapFile = currentDirectory + \"/mapvalidator/\" + \"mapvalidator.xls\";\n }\n else\n {\n System.out.println(\"File \" + currentDirectory + \"/mapvalidator/\" + \"mapvalidator.xls\" + \" is missing.\");\n exit = 1;\n \n }\n \n if (exit>0)\n {\n System.exit(0);\n }\n\n Config mapa = new Config();\n mapa.configInstance(driverFile, profileFile, mapFile);\n\n // } else {\n // System.out.println(\"Entry arguments: email; password; time to wait (ms)\");\n //}\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }\n else\n {\n System.out.println(\"Installed java version: \" + version + \" - version required: 1.8\");\n }\n }\n else\n {\n System.out.println(\"Please install java 1.8\");\n }\n }", "title": "" }, { "docid": "9d510300a6a2cfbacd25d0329671cf42", "score": "0.59197295", "text": "private static String getExe() {\r\n return new File(SDKRuntimeProperties.EPOC_HOME + File.separator+\r\n \"..\" + File.separator + \"epoc32\" + File.separator +\r\n \"release\" + File.separator +\r\n SDKRuntimeProperties.PLATFORM + File.separator +\r\n SDKRuntimeProperties.VARIANT + File.separator +\r\n \"DebugAgent.exe\").getAbsolutePath();\r\n }", "title": "" }, { "docid": "83259ef3b925237007c8001396705a8f", "score": "0.5906642", "text": "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:/Users/vishwab/eclipse-workspace-Seleniumlearning/SeleniumProject/drivers/chromedriver.exe\");\n\t WebDriver driver = new ChromeDriver(); \n\t \n\t\n\t\t\n\t}", "title": "" }, { "docid": "50bb33ba81d86b5bfda271d86c7ee69a", "score": "0.5895947", "text": "public static void main(String[] args) throws IOException {\nSystem.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Software\\\\eclipse-java-photon-R-win32-x86_64\\\\eclipse\\\\deva\\\\selenium Proj\\\\driver\\\\chromedriver.exe\");\nWebDriver driver=new ChromeDriver();\ndriver.get(\"http://www.greenstechnologys.com/\");\ndriver.manage().window().maximize();//Typecasting\nTakesScreenshot ts=(TakesScreenshot)driver;\nFile src=ts.getScreenshotAs(OutputType.FILE);\n\nFile des=new File(\"E:\\\\Software\\\\eclipse-java-photon-R-win32-x86_64\\\\eclipse\\\\deva\\\\selenium Proj\\\\Screens\\\\1.jpeg\");\nFileUtils.copyFile(src, des);\n}", "title": "" }, { "docid": "94d6b7676b01f4613e590e58693a7dae", "score": "0.58630353", "text": "@Given(\"^I am a Google chrome user$\")\r\n public void i_am_a_Google_chrome_user() {\n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\admin\\\\IdeaProjects\\\\MavenHomework\\\\src\\\\chromedriver.exe\");\r\n myDriver = new ChromeDriver();\r\n\r\n }", "title": "" }, { "docid": "78444b0395757252760beb05022e3b38", "score": "0.58216", "text": "public static WebDriver createChrome(){\n System.setProperty(\"webdriver.chrome.driver\",\"chromedriver.exe\");\n //Abre o navegador e configura o timeout\n WebDriver navegador = new ChromeDriver();\n navegador.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n //Expande a janela do navegador\n navegador.manage().window().maximize();\n //Acessa a pagina\n navegador.get(\"http://automationpractice.com/index.php\");\n //Retorna o navegador\n return navegador;\n }", "title": "" }, { "docid": "2dafd9862dafaa652e47af57a70fecb6", "score": "0.5753386", "text": "void start_chrome() {\n\t\tString chromePath = (new File(\"drivers/chromedriver.exe\")).getAbsolutePath();\n\t\tif (!System.getProperty(\"os.name\").contains(\"Windows\")) {\n\t\t\tchromePath = (new File(\"drivers/chromedriver_mac\")).getAbsolutePath();\n\t\t}\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromePath);\n\t\tdriver.set(new ChromeDriver());\n\t}", "title": "" }, { "docid": "9dfe35d9cc59352efb9341d7fac85c47", "score": "0.5727358", "text": "@Test\r\n\r\n public void TakeScreenShot() throws Exception{\n\r\n \tString path = System.getProperty(\"user.dir\")+\"\\\\drivers\\\\chromedriver.exe\";\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", path);\r\n\t\t\r\n\t\tWebDriver driver= new ChromeDriver();\r\n driver.get(\"https://www.chewy.com\");\r\n\r\n //Call take screenshot function\r\n\r\n this.takeSnapShot(driver, System.getProperty(\"user.dir\")+\"//screenshots/test.png\") ; \r\n\r\n }", "title": "" }, { "docid": "392afba0c830238e21837ffa16976f43", "score": "0.5723739", "text": "private WebDriver getSeleniumChromeDriver() throws MalformedURLException {\r\n\t\t\r\n\t\t//Attempt to create the actual web driver used to connect to selenium\r\n\t\tconsoleLog(\"Creating Chrome driver...\");\r\n \r\n\t\t//proxy\r\n\t\tProxyDetails chosenProxy = getProxyServer();\r\n\t\tString proxyHost = chosenProxy.host;\r\n\t\tint proxyPort = chosenProxy.port;\r\n\t\tconsoleLog(\" Proxy: \" + proxyHost + \":\" + proxyPort);\r\n\t\t\r\n\t\t//added to test chrome driver\r\n //File chromefile = new File(\"c:/selenium/chromedriver.exe\");\r\n //consoleLog(\"chromepath: \" + chromefile.getAbsolutePath());\r\n //System.setProperty(\"webdriver.chrome.driver\",chromefile.getAbsolutePath());\r\n\t\t\r\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n\t\t// Add the WebDriver proxy capability.\r\n//\t\tProxy chromeProxy = new Proxy();\r\n//\t\tchromeProxy.setProxyType(ProxyType.MANUAL);\r\n//\t\tchromeProxy.setSslProxy(proxyHost + \":\" + proxyPort);\r\n//\t\tchromeProxy.setHttpProxy(proxyHost + \":\" + proxyPort);\r\n//\t\tcapabilities.setCapability(CapabilityType.PROXY, chromeProxy);\r\n\r\n\t\t// Add ChromeDriver-specific capabilities through ChromeOptions.\r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\t//options.addExtensions(new File(\"/path/to/extension.crx\"));\r\n\t\t\r\n String AdMarkerPath = \"chromeExtensions/adMarker.crx\"; \r\n try {\r\n \t//options.addExtensions(new File(AdMarkerPath));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\toptions.addArguments(\"--hide-scrollbars\");\r\n\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, options);\r\n \r\n\t\tWebDriver chromeDriver = null;\r\n chromeDriver = new RemoteWebDriver(\r\n\t\t \t\t\tnew URL(SELENIUMHUBADDRESS), \r\n\t\t \t\t\tcapabilities);\r\n \r\n\r\n //Set the viewport size and the time to load before sending an error\r\n chromeDriver.manage().window().setPosition(new Point(0,0));\r\n //consoleLog(\"passed width: \" + _browserViewWidth);\r\n //consoleLog(\"passed height: \" + _browserViewHeight);\r\n chromeDriver.manage().window().setSize(new Dimension(_browserViewWidth, _browserViewHeight));\r\n // when the option below is enabled screenshots timeout.\r\n //chromeDriver.manage().timeouts().pageLoadTimeout(PAGELOADTIME, TimeUnit.MILLISECONDS);\r\n \r\n \r\n //Return the initialized remote chrome web driver\r\n consoleLog(\"Done creating chrome driver.\");\r\n return chromeDriver;\r\n\t}", "title": "" }, { "docid": "46930f34be14720b8a5fc48c95cc644d", "score": "0.57078314", "text": "public WebDriver createDriver() {\r\n\t\t\t\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\hgill\\\\Desktop\\\\ChromeDriver\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\t\tWebDriver driver = new ChromeDriver();\r\n\t\t\treturn driver;\r\n\t\t}", "title": "" }, { "docid": "3f7834028a9b9c3923f3bda0d811215e", "score": "0.57002074", "text": "@BeforeClass\n\tpublic void Startup(){\n\t\tString chromeDriverLocation = \"C:\\\\Users\\\\kiran\\\\eclipse-workspace\\\\contrail-qa-automation\\\\utils\\\\webAutomation\\\\src\\\\test\\\\resources\\\\binaries\\\\chromedriver.exe\";\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\tdriver = new ChromeDriver();\n\t}", "title": "" }, { "docid": "1d60bf49dfd42c48daef2c62bd61f240", "score": "0.5680698", "text": "private static File GetExecutable(String executable)\n {\n String path = System.getenv(\"PATH\");\n String[] paths = path.split(\";\");\n\n for(String s : paths)\n {\n File f = new File(s, executable);\n if(f.exists()) { return f; }\n }\n\n return null;\n }", "title": "" }, { "docid": "be82f13f40c0f2018335a9508e1aa3d7", "score": "0.56344604", "text": "public void myTestChrome() throws Exception {\n System.setProperty(\"webdriver.chrome.driver\",\r\n \"C:\\\\Users\\\\PROFESSOR\\\\Downloads\\\\projNetBeans-TestesSelenium\\\\TestesSelenium\\\\driver\\\\chromedriver.exe\");\r\n\r\n WebDriver driver = new ChromeDriver();\r\n\r\n driver.get(\"https://www.google.com.br\");\r\n\r\n //As duas formas mais usadas para obter um screenshot sao:\r\n //obter um objeto File OU um array de bytes\r\n File screenshotFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\r\n byte[] screenshotByteArray = ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES);\r\n\r\n //Salva um screenshot do tipo File, usando a classe\r\n //FileUtils (org.apache.commons.io.FileUtils)\r\n FileUtils.copyFile(screenshotFile, new File(\"c:/temp/screenshot_com_file.png\"));\r\n\r\n //Salva um screenshot de byte[], usando a classe\r\n //FileOutputStream (java.io.FileOutputStream)\r\n FileOutputStream outputStream = new FileOutputStream(\"c:/temp/screenshot_com_byte_array.png\");\r\n outputStream.write(screenshotByteArray);\r\n\r\n }", "title": "" }, { "docid": "0244766c842898a28ccfe37d6c477cca", "score": "0.5627747", "text": "@Test\r\n\tpublic void invoke() {\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Program Files (x86)\\\\Google\\\\ChromeDriver\\\\chromedriver.exe\");\t\r\n\t\tChromeDriver driver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"https://www.google.co.in\");\r\n\t\tdriver.quit();\r\n\r\n\r\n\r\n\t}", "title": "" }, { "docid": "0daffe95f1e07ea5e4f5cf1f0dc14d53", "score": "0.55963886", "text": "@BeforeTest\n\tpublic void beforeTest() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\"C:\\\\Program Files (x86)\\\\Google\\\\Chrome\\\\Application\\\\chromedriver.exe\");\n\t}", "title": "" }, { "docid": "5f75c2cab877b59b47b5b39438e555f1", "score": "0.5594812", "text": "public static ChromeDriver getChromeDriver() {\n System.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/chromedriver/chromedriver.exe\");\n return new ChromeDriver();\n }", "title": "" }, { "docid": "4269f5c8f0ceb38469d2488e7bd8ede7", "score": "0.55570793", "text": "@Given(\"^I launch Chrome web browser$\")\n public void i_launch_Chrome_web_browser() throws Throwable {\n\t\t System.setProperty(\"webdriver.chrome.driver\",\"chromedriver.exe\");\n //create chrome instance\n driver = new ChromeDriver(); \n driver.manage().window().maximize();\n\t\tSystem.out.println(\"Given Implemented\");\n //throw new PendingException();\n }", "title": "" }, { "docid": "2511e5b1277fc0e01fcafafae3dcfa32", "score": "0.55557024", "text": "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"D:\\\\Raaam\\\\chromedriver.exe\");\ndriver = new ChromeDriver();\ndriver.manage().window().maximize();\ndriver.get(\"https://devrabbitdev.com/hr/web/timetracker/login\");\ndriver.getTitle();\nSystem.out.println(driver.getTitle());\n\t}", "title": "" }, { "docid": "90f25add15efafa6fcce22b9c50695b3", "score": "0.5532475", "text": "@Given(\"^I launch Chrome browser$\")\n\tpublic void i_launch_Chrome_browser() throws Throwable {\n\t\tSystem.out.println(\" I am Opening Chrome...\");\n\t\t//WebDriver webdriver = null;\n\t\t//System.setProperty(\"webdriver.chrome.driver\", \"D:\\\\chrome driver\\\\chromedriver.exe\");\n\t\t//webdriver=new ChromeDriver();\n\t\t//webdriver.manage().window().maximize();\n\t //throw new PendingException();\n\t}", "title": "" }, { "docid": "f0b2be99761ffcd961d87759dbb27f59", "score": "0.5529023", "text": "private static WebDriver getChromeDriver() {\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"--headless\");\n options.addArguments(\"window-size=1400,1000\");\n System.setProperty(\"webdriver.chrome.driver\", \"chromedriver\");\n return new ChromeDriver(options);\n }", "title": "" }, { "docid": "c0dd498c3c3303dbad3f00f7c3a1815a", "score": "0.55091023", "text": "public static void main(String[] args) {\n Setupdriver(\"mac\",\"https://google.com\",\"chrome\");\n\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n driver.quit();\n //driver.close();\n\n }", "title": "" }, { "docid": "c4aa188e35c3ac297cd0ae697c2df435", "score": "0.5500773", "text": "String getExecutableName();", "title": "" }, { "docid": "4c5911bce987eb7c792fd4f017ce7dbb", "score": "0.54971474", "text": "public static void main(String[] args) {\n \n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"G:\\\\Installations\\\\Drivers\\\\chromedriver.exe\");\n\t\t\t\n\t\t\tSystem.out.println(\"Hello WORLD1\");\n\t\t\tSystem.out.println(\"Hello WORLD2\");\n\t\t\tSystem.out.println(\"Hello WORLD3\");\n\t\t\tSystem.out.println(\"Hello WORLD4\");\n\t\t\tSystem.out.println(\"Hello WORLD5\");\n\t\t\t\n WebDriver driver = new ChromeDriver();\n driver.get(\"https://www.google.co.in/\");\n driver.manage().window().maximize();\n String s1= driver.getTitle();\n System.out.println(s1);\n //Sleep(5000);\n \n \t}", "title": "" }, { "docid": "4bb60d85512e6ab109cdcb979f6bc14e", "score": "0.5494407", "text": "public static void main(String[] args) throws Throwable {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\Dell\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\tWebDriver driver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tChromeOptions option=new ChromeOptions();\n\t\tDesiredCapabilities capability=new DesiredCapabilities();\n\t\tcapability.setCapability(, value);\n\t\toption.merge(capability);\n\t\tdriver.get(\"https://www.google.com/\");\n\t\tFile abc=((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(abc, new File(\"C:\\\\sheetal\\\\screenshot.jpg\"));\n\t\t\n\n\t}", "title": "" }, { "docid": "a6c9ca53002e2344e8ccb6487697eaf0", "score": "0.5484542", "text": "public static void main(String[] args) {\n\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\n\t\tcapabilities.setBrowserName(\"Chrome\");\n \t\n }", "title": "" }, { "docid": "bd2e27dba0cfb1d9815b3395173f6695", "score": "0.54734373", "text": "public static String ensureInstalled(String installationRoot) throws IOException {\n Path installRootPath = Paths.get(installationRoot);\n String fileName;\n String dirName = \"chromedriver_\";\n String os = System.getProperty(\"os.name\").toLowerCase();\n String binName = \"chromedriver\";\n if (os.contains(\"nux\")) {\n dirName += \"_linux\" + (\"32\".equals(System.getProperty(\"sun.arch.data.model\")) ? \"32\" : \"64\");\n } else{\n if (os.startsWith(\"windows\")) {\n dirName += \"win32\";\n binName += \".exe\";\n } else if (os.contains(\"mac\") || os.contains(\"darwin\")) {\n dirName += \"mac64\";\n } else {\n throw new IllegalStateException(\"Unexpected os:\" + os);\n }\n }\n fileName = dirName + \".zip\";\n\n Path filePath = installRootPath.resolve(fileName);\n Path bin = installRootPath.resolve(binName);\n // download ChromeDriver\n if (!Files.exists(bin)) {\n Files.createDirectories(installRootPath);\n String downloadURL = \"https://chromedriver.storage.googleapis.com/\" + VERSION + \"/\" + fileName;\n //noinspection ResultOfMethodCallIgnored\n filePath.toFile().delete();\n URL url = new URL(downloadURL);\n HttpURLConnection conn = null;\n try {\n conn = (HttpURLConnection) url.openConnection();\n int code = conn.getResponseCode();\n if (code == 200) {\n Files.copy(conn.getInputStream(), filePath);\n } else {\n throw new IOException(\"URL[\" + url + \"] returns code [\" + code + \"].\");\n }\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n if (filePath.getFileName().toString().endsWith(\"tar.bz2\")) {\n unTar(filePath.toFile().getAbsolutePath(), installRootPath);\n } else {\n unZip(installRootPath, filePath);\n }\n //noinspection ResultOfMethodCallIgnored\n bin.toFile().setExecutable(true);\n }\n String chromedriver = bin.toAbsolutePath().toFile().getAbsolutePath();\n System.setProperty(\"webdriver.chrome.driver\", chromedriver);\n return chromedriver;\n }", "title": "" }, { "docid": "7802838340d25ef53f28fb05806f3a82", "score": "0.53979355", "text": "private static WebDriver setChromeDriver(String driverpath) {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverpath + \"chromedriver.exe\");\r\n\t\tcapabilities.setJavascriptEnabled(true);\r\n\t\treturn new ChromeDriver();\r\n\t}", "title": "" }, { "docid": "98bb0fe1b73cbb4ecde182cd616b80b9", "score": "0.5388987", "text": "public static void App_Launch() throws IOException {\n\n\t\tObject getConfigUrl = config.getProperty(\"applicationURL\");\n\t\tsystemUsername = System.getProperty(\"user.name\");\n\t\tString envBrowser = System.getProperty(\"envBrowser\");\n\t\t/*String[] parts = envBrowser.split(\"-\");\n\t\tString env = parts[0]; // 004\n\t\tString browser = parts[1];*/\n\t\t\n\t\t//Local Execution\n\t\tString env = \"ode1\";\n\t\tString browser = \"chrome\"; \n\t\t\n\n\n\t\tif (browser.contains(\"chrome\")) {\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.addArguments(\"--no-sandbox\");\n\t\t\toptions.addArguments(\"--disable-dev-shm-usage\");\n\t\t\toptions.setExperimentalOption(\"useAutomationExtension\", false);\n\t\t\tif (browser.contains(\"headless\")) {\n\t\t\t\toptions.addArguments(\"headless\");\n\t\t\t\toptions.addArguments(\"window-size=1200x800\");\n\t\t\t}\n\t\t\tdriver = new ChromeDriver(options);\n\t\t\tdriver.manage().deleteAllCookies();\n\t\t} else if (browser.contains(\"firefox\")) {\n\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", System.getProperty(\"user.dir\") + \"/DriverJenkins/geckodriver\");\n\t\t\tFirefoxOptions options = new FirefoxOptions();\n\t\t\tif (browser.contains(\"headless\")) {\n\t\t\t\toptions.addArguments(\"-headless\");\n\t\t\t\toptions.addArguments(\"window-size=1200x800\");\n\t\t\t}\n\t\t\tdriver = new FirefoxDriver(options);\n\t\t\tdriver.manage().deleteAllCookies();\n\t\t}\n\n\t\telse if (browser.contains(\"safari\")) {\n\n\t\t\tSafariOptions options = new SafariOptions();\n\t\t\tif (browser.contains(\"headless\")) {\n\t\t\t\t //options.addArguments(\"-headless\");\n\t\t\t\t //options.addArguments(\"window-size=1200x800\");\n\t\t\t}\n\t\t\tdriver = new SafariDriver(options);\n\t\t\tdriver.manage().deleteAllCookies();\n\t\t}\n\n\t\t// driver = new HtmlUnitDriver();\n\t\tURL = \"https://uat:watchoutforsharks@uat.purple.com/\";\n\t\t//URL = \"https://staging:watchoutforsharks@staging.purple.com/\";//\"https://purple\" + env + getConfigUrl.toString();\n\t\tSystem.out.println(URL);\n\t\tdriver.get(URL);\n\n\n\t}", "title": "" }, { "docid": "d930ae9cf32e23b2291595472ef34048", "score": "0.53850585", "text": "public static void main(String[] args) throws InterruptedException {\n WebDriver driver = new ChromeDriver();\n String appUrl = \"http://accounts.google.com\";\n\n //Set the driver to maximize the window it will open\n driver.manage().window().maximize();\n\n //Navigate to URL\n driver.get(appUrl);\n\n //Take screenshot\n try {\n File screenShot = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n //Save screenshot\n FileHandler.copy(screenShot, new File(\"D:/selenium/screenshot.png\"));\n }catch (IOException e){\n e.printStackTrace();\n }\n\n\n }", "title": "" }, { "docid": "0e8cf78349da05d6a6b0dfffe332f744", "score": "0.5354398", "text": "public static void main(String[] args) throws IOException{\n\tSystem.setProperty(\"driver.chrome.driver\",\"./drivers./chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"https://www.google.com/\");\n\t\tRemoteWebDriver rwd = (RemoteWebDriver)driver;\n\t\tFile src= rwd.getScreenshotAs(OutputType.FILE);\n\t\tFile desc = new File(\"C:\\\\Users\\\\MY-PC.DESKTOP-CB3S4U6\\\\Documents\\\\OneNote Notebooks\\\\Personal Notebook\\\\screenshot\\\\\\\\googlephoto.jpg\");\n\t\tFiles.copy(src,desc);\n\t/*\tSystem.setProperty(\"webdriver.chrome.driver\",\"./drivers./chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"https://www.google.com/\");\n\t\tTakesScreenshot ts = (TakesScreenshot)driver;\n\t\tFile src = ts.getScreenshotAs(OutputType.FILE);\n\t\tFile dest = new File(\"C:\\\\Users\\\\MY-PC.DESKTOP-CB3S4U6\\\\Documents\\\\OneNote Notebooks\\\\Personal Notebook\\\\screenshot\\\\googlyphoto.png\");\n\t\tFiles.copy(src, dest);\n\t\t\t}*/\n\t/*\tSystem.setProperty(\"webdriver.chrome.driver\",\"./drivers./chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"https://www.google.com/\");\n\t\tEventFiringWebDriver ef = new EventFiringWebDriver(driver);\n\t\tFile src= ef.getScreenshotAs(OutputType.FILE);\n\t\tFile desc=new File(\"C:\\\\Users\\\\MY-PC.DESKTOP-CB3S4U6\\\\Documents\\\\OneNote Notebooks\\\\Personal Notebook\\\\screenshot\\\\goli.jpg\");\n\t\tFiles.copy(src, desc);\n\t}*/\n\t\t/*WebElement addr=driver.findElement(By.xpath(\"//img[@alt='Google']\"));\n\t\tFile src=addr.getScreenshotAs(OutputType.FILE);\n\t\tFile desc=new File(\"C:\\\\Users\\\\MY-PC.DESKTOP-CB3S4U6\\\\Documents\\\\OneNote Notebooks\\\\Personal Notebook\\\\screenshot\\\\googlylogoo.jpg\");\n\t\tFiles.copy(src, desc);\t\t*/\n\t}", "title": "" }, { "docid": "dbba3857157e00a2f21ffe579d7e4356", "score": "0.5348154", "text": "@Given(\"^launch chrome and open site$\")\r\n\tpublic void launch_chrome_and_open_site() throws Exception {\n\t\tSystem.out.println(\"Executing Given glue code...\");\r\n\t\t//System.out.println(scro.getName());\r\n\t\t//scro.write(\"Emmbedding the log...\");\r\n\t\t//Assert.assertTrue(false);\r\n\t}", "title": "" }, { "docid": "324a628767e13210a068fe91f9b11a97", "score": "0.5340586", "text": "public static void setChromeDriverPath() {\n System.setProperty(DRIVER, PATH);\n }", "title": "" }, { "docid": "7487130be5e25c4d536d498515d64484", "score": "0.53346133", "text": "public static void main(String[] args) {\n\r\n\t\t\r\n\t\t\r\n\t\t\r\nSystem.setProperty(\"webdriver.chrome.driver\", \"F:/chromedriver.exe\");\r\nWebDriver driver=new ChromeDriver();\r\nLoginpage login=PageFactory.initElements(driver, Loginpage.class);\r\ndriver.get(\"http://www.gcrit.com/build3/admin/login.php\");\r\nlogin.testcase(\"admin\", \"admin@123\");\r\n\t}", "title": "" }, { "docid": "6f7113d4ce4ba110d63819539134986a", "score": "0.53312284", "text": "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"/Drivers/chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"https://google.com\");\r\n\t\tSystem.out.println(driver.getTitle());\r\n\t\tdriver.quit();\r\n\t}", "title": "" }, { "docid": "bfe86be5e8c1c71801b7bf126cee0213", "score": "0.5315775", "text": "public String getDriverFileName();", "title": "" }, { "docid": "0ba53cd002fdbf4a7027279a8a5e40d9", "score": "0.53128564", "text": "public static void main(String[] args) {\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\selinium jars\\\\chromedriver.exe\");\n\t\t\n\t\tWebDriver driver = new ChromeDriver(); // webdriver is an interface\n\t\t\n\t\tSystem.out.println(\"hi \");\n\t\t\n\t\tdriver.get(\"https://www.google.com\"); // open a link\n\t\tSystem.out.println(driver.getTitle());\n\n\n\t\t//driver.quit(); // will close the tabs which is opened with the same object\n\t\t\n\t\t//System.out.println(driver.getPageSource()); // page source will return the source code\n\t\t\n\t\tSystem.out.println(driver.getCurrentUrl()); // returns current url \n\t\t\n\t\t/* Chennai split into 3 \n\t\t\n\t\tche\n\t\then\n\t\tenn\n\t\tnna\n\t\tnai \n\t\t// It is splitted using the permutation concept.\n\t\t*/\n\t\t\n\t\t// 16/10/2019\n\t\t\n\t\tdriver.manage().window().fullscreen(); // works for mac00\n\t\tdriver.manage().window().maximize(); // works for windows\n\t\t\n\t\t// Resize browser\n\t\tDimension d = new Dimension(600, 400);\n\t\tdriver.manage().window().setSize(d);\n\t}", "title": "" }, { "docid": "1754ace6337defc3c3fd8a440d3ee122", "score": "0.5312245", "text": "public void getDriver() {\n\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:\\\\Automation\\\\Selenium\\\\Selenium\\\\Drivers\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t}", "title": "" }, { "docid": "5e26e87e92bfcbdb13d8d744a039846c", "score": "0.5299093", "text": "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\nunna\\\\OneDrive\\\\Desktop\\\\selenium\\\\chromedriver.exe\");\n\t\tChromeDriver c1=new ChromeDriver();\n\t\tc1.get(\"https://adminbootstaging.bhaasha.ch/#/\");\n\t\tc1.findElement(By.xpath(\"/html/body/div[3]/div/div[2]/div/div/div/div/div/div[1]/button[1]\")).click();\n\t\tc1.findElement(By.id(\"username\")).sendKeys(\"admin\");\n\t\tc1.findElement(By.id(\"password\")).sendKeys(\"admin123\");\n\t\tc1.findElement(By.xpath(\"/html/body/div[3]/div/div[2]/div/div[1]/div/div/div/form/div[3]/div/button\")).click();\n\t\tc1.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tc1.findElement(By.xpath(\"/html/body/nav/div[2]/ul/li[6]/a\")).click();\n\t\t\n\t\tc1.findElementByCssSelector(\"#folders > a:nth-child(3)\").click();\n\t\t\n\t\n\t\tc1.findElement(By.xpath(\"/html/body/div[3]/div/div[2]/div/div/div/div[2]/div/div[2]/div/div[1]/div/div[1]/div[1]/div[4]/div/div[2]/div/div[1]/div/div/a/i[3]\")).click();\n\t\t\n\t\tc1.findElementByCssSelector(\"body > div.bootbox.modal.fade.bootbox-confirm.in > div > div > div.modal-footer > button.btn.btn-default\").click();\n\t\t\n\t}", "title": "" }, { "docid": "07443bf0612c89397eff696c06d07cd3", "score": "0.5298655", "text": "public static void main(String[] args) throws IOException {\t\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Work\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"http://.ksrtc.in/oprs-web/\");\n\t\t\n\t\tWindowsUtils.killByName(\"excel.exe\");\n\t\t\n\n\t\tFile src= ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\tFileUtils.copyFile(src, new File(\"C:\\\\Users\\\\spice\\\\Pictures\\\\Saved Pictures\\\\screenshot.png\"));\n\n//Download FileUtils if not working form apache.org common io\n\t}", "title": "" }, { "docid": "b1e4ff23662ed1c0d952f786cf7e5566", "score": "0.52984107", "text": "public static WebDriver getDriver() {\n boolean var0 = false;\n try {\n if (driver == null) {\n// datamap = new HashMap();\n String browserName = \" \";\n\n if (System.getProperty(\"Browser\") != null) {\n browserName = System.getProperty(\"Browser\");\n } else {\n browserName = getData(\"Browser\");\n// browserName = \"CH\";\n }\n\n String var2 = String.valueOf(browserName);\n byte var3 = -1;\n\n switch (var2.hashCode()) {\n case 2149:\n if (var2.equals(\"CH\")) {\n var3 = 2;\n }\n break;\n case 2240:\n if (var2.equals(\"FF\")) {\n var3 = 0;\n }\n break;\n case 2316:\n if (var2.equals(\"IE\")) {\n var3 = 1;\n }\n break;\n }\n\n int fireFoxBrowserVersion;\n switch (var3) {\n\n case 0:\n fireFoxBrowserVersion = getFireFoxBrowserVersion();\n startFireFoxBrowser(fireFoxBrowserVersion);\n\n break;\n case 1:\n System.setProperty(\"webdriver.ie.driver\", Initializer.IE_DRIVER_EXE);\n DesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n caps.setCapability(\"ignoreProtectedModeSetting\", true);\n caps.setCapability(\"ignoreZoomSettings\", true);\n driver = new InternetExplorerDriver(caps);\n driver.findElement(By.tagName(\"html\")).sendKeys(new CharSequence[]{Keys.chord((new CharSequence[]{Keys.CONTROL, \"0\"}))});\n break;\n case 2:\n System.setProperty(\"webdriver.chrome.driver\", Initializer.CHROME_DRIVER_EXE);//CHROME_DRIVER_EXE\n ChromeOptions options = new ChromeOptions();\n options.addArguments(new String[]{\"start-maximized\"});\n DesiredCapabilities capabilities = DesiredCapabilities.chrome();\n capabilities.setCapability(\"chromeoptions\", options);\n driver = new ChromeDriver(capabilities);\n break;\n case 3:\n DesiredCapabilities htcaps = new DesiredCapabilities();\n htcaps.setJavascriptEnabled(true);\n htcaps.setCapability(\"phantom.binary.path\", Initializer.PHANTOMJS_DRIVER_EXE);//phantomJS\n htcaps.setCapability(\"takesScreenShot\", true);\n //driver = new PhantomJSDriver(htcaps);\n break;\n default:\n fireFoxBrowserVersion = getFireFoxBrowserVersion();\n startFireFoxBrowser(fireFoxBrowserVersion);\n\n }\n if (browserName.equalsIgnoreCase(\"CH\")) {\n driver.manage().window().maximize();\n\n }\n\n driver.manage().deleteAllCookies();\n if (browserName != null && !browserName.equalsIgnoreCase(\"IE\")) {\n driver.manage().timeouts().pageLoadTimeout((long) Integer.parseInt(getData(\"PageLoadTimeOut\")), TimeUnit.SECONDS);\n\n }\n\n driver.manage().timeouts().pageLoadTimeout((long) Integer.parseInt(getData(\"PageLoadTimeOut\")), TimeUnit.SECONDS);\n\n //cast to WebDriverWait(WebDriver driver, long timeOutInSeconds)\n wait = new WebDriverWait(driver, (long) Integer.parseInt(getData(\"WebDriverWaitTimeOut\")));\n js = (JavascriptExecutor) driver;\n }\n\n } catch (Exception var8) {\n var8.printStackTrace();\n Log.console(\"Error while instantiating driver object\");\n }\n return driver;\n }", "title": "" }, { "docid": "872d6beec7501253d771d924b34b0b0f", "score": "0.5294309", "text": "public static void main(String[] args) {\n\t\tExtentReports report=new ExtentReports(\"Report_testcase8.html\");\r\n\t\tExtentTest test=report.startTest(\"testcase7\");\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\admin\\\\Desktop\\\\Java\\\\Selenium\\\\chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"file:///C:/Users/admin/Downloads/testcase7.html\");\r\n\t}", "title": "" }, { "docid": "7db8e0ec478c2a7c87735bb44e646f9c", "score": "0.52933645", "text": "void setExecutable(String exe);", "title": "" }, { "docid": "cd033110601531c637650d1e3e4ddd8a", "score": "0.5286651", "text": "public static void main(String[] args) throws IOException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Drivers\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"https://rahulshettyacademy.com/dropdownsPractise/\");\n//TakesScreenshot class is used for capturing screenshot\n\t\tTakesScreenshot ts = (TakesScreenshot) driver;\n\t\t\n//get the screenshot in file format and save in a file\n\t\tFile srcFile = ts.getScreenshotAs((OutputType.FILE));\n\n//Move file to new destination\n\n\t\tFile DestFile = new File(\"C:\\\\test\\\\isha.png\");\n\n//Copy file at destination\n\n//to read more about FileHandler-https://www.seleniumeasy.com/selenium-tutorials/take-screenshot-using-FileHandler-class\n\t\tFileHandler.copy(srcFile, DestFile);\n\n\t}", "title": "" }, { "docid": "d94ddf6236ad2a76d5a326ee52c627fc", "score": "0.5285634", "text": "public static void Lauch_FirefoxBrowser()\n\t{\n\t\t\n\t\tString cur_dir = System.getProperty(\"user.dir\");\n\t\tString driverPath = cur_dir + \"/src/test/java/utility/chromedriverwin.exe\";\n\t\t\n\t\t//String driverPath=\"C:/Users/HP/Downloads/chromedriver.exe\";\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverPath);\n\t\t\n\t\tdriver=new ChromeDriver();\n\n\t\t\n\t\tSystem.out.println(\"Chrome browser is launched..\");\n\t}", "title": "" }, { "docid": "82a894fc3daa4c55968e5795def274ea", "score": "0.52847487", "text": "@Test(priority=0,description=\"Creation of a CR Ticket\",enabled=true)\n\t private void testChromeSearch() throws IOException {\n\t\t logger = extent.createTest(\"Sample\");\t\n\t\t\n\t\t \n\t\t \n\t\t \n\t\t String ChromeDrivers = Capabilities.getPropertyValue(\"ChromeDrivers\");\n\n\nfinal ChromeOptions options = new ChromeOptions();\n\t\t \noptions.addArguments(\"--test-type\",\"ignore-certifcate-errors\");\n\noptions.addArguments(\"start-maximized\"); // https://stackoverflow.com/a/26283818/1689770\n options.addArguments(\"enable-automation\"); // https://stackoverflow.com/a/43840128/1689770\n // options.addArguments(\"--headless\"); // only if you are ACTUALLY running headless\n // options.addArguments(\"--no-sandbox\"); //https://stackoverflow.com/a/50725918/1689770\n // options.addArguments(\"--disable-infobars\"); //https://stackoverflow.com/a/43840128/1689770\n // options.addArguments(\"--disable-dev-shm-usage\"); //https://stackoverflow.com/a/50725918/1689770\n options.addArguments(\"--disable-browser-side-navigation\"); //https://stackoverflow.com/a/49123152/1689770\n // options.addArguments(\"--disable-gpu\"); //https://stackoverflow.com/questions/51959986/how-to-solve-selenium-chromedriver-timed-out-receiving-message-from-renderer-exc\n//disabled for temporaily bindu for debugging\n//options.addArguments(\"chrome.switches\",\"--disable-extensions\");\n\nChromeDriverService driverService = new ChromeDriverService.Builder().usingDriverExecutable(new File(\"./Properties/chromedriver.exe\")).usingAnyFreePort().build();\n\tdriverService.start();\n//log.info(\"Chrome driver instance is intiated successfully\n\tWebDriver driver=new ChromeDriver((ChromeDriverService) driverService, options);\n\t\t\t//System.setProperty(\"webdriver.chrome.driver\",ChromeDrivers);\n\t\t\t//WebDriver driver=new ChromeDriver();\n\t\t\tdriver.get(\"http://thomsonreutersqa.service-now.com\");\n\t\t\tWebElement e =driver.findElement(By.id(\"USER\"));\n\t\t\te.sendKeys(\"X011746\");\n\t\t\tWebElement e1= driver.findElement(By.id(\"PASSWORD\"));\n\t\t\te1.sendKeys(\"Numan#220193\");\n\t\t\t driver.findElement(By.id(\"safeLoginbtn\")).click();\n\t\t\t driver.quit();\n\t\t\t Assert.assertTrue(true);\n\t\t\t\tlogger.log(Status.PASS, MarkupHelper.createLabel(\"Test Case Passed is Creation of a CR Ticket\", ExtentColor.GREEN));\n\t\t}", "title": "" }, { "docid": "e343ad9868cf55bfaa62443bca26c5d5", "score": "0.5269357", "text": "@Before\r\n public void setUp() throws MalformedURLException\r\n {\r\n System.setProperty(\"webdriver.chrome.driver\", \"C:/Users/sraav/Downloads/chromedriver_win32/chromedriver.exe\");\r\n driver = new ChromeDriver();\r\n }", "title": "" }, { "docid": "bc51869fc370849d84b7c393ae6c23bf", "score": "0.52522796", "text": "@Test\n\tpublic void chromeTest1() throws MalformedURLException {\n\t\t\n\t\tDesiredCapabilities cap = DesiredCapabilities.chrome();\n\t\tURL container_url = new URL(\"http://localhost:4444/wd/hub\");\n\t\tRemoteWebDriver driver = new RemoteWebDriver(container_url,cap);\n\t\tdriver.get(\"http://google.com\");\n\t\tSystem.out.println(driver.getTitle());\n\t\t\n\t/*\tDesiredCapabilities capf = DesiredCapabilities.firefox();\n\t\tURL firefox_container_url = new URL(\"http://localhost:4444/5555/wd/hub\");\n\t\tRemoteWebDriver firefox_driver = new RemoteWebDriver(firefox_container_url,cap);\n\t\tfirefox_driver.get(\"http://yahoo.com\");\n\t\tSystem.out.println(firefox_driver.getTitle());*/\n\n\n\t}", "title": "" }, { "docid": "15670098a2b0327203319987e491ee66", "score": "0.524642", "text": "public static void main(String[] args) throws MalformedURLException {\n\t\t\n \n\t\t WebDriverManager.chromedriver().setup();\n\n\t\t //Create Chrome Options\n\t\t ChromeOptions option = new ChromeOptions();\n\t\t option.addArguments(\"--no-sandbox\");\n\t\t option.addArguments(\"--headless\");\n\t\t option.addArguments(\"--disable-dev-shm-usage\");\n\t\t DesiredCapabilities chrome = DesiredCapabilities.chrome();\n\t\t chrome.setJavascriptEnabled(true);\n\t\t option.setCapability(ChromeOptions.CAPABILITY, option);\n\n\t\t //Create driver object for Chrome\n\t\t WebDriver driver = new ChromeDriver(option);\n\n \n\t\tdriver.get(\"https://google.com\");\n\t\tSystem.out.println(\"the title is: \" +driver.getTitle());\n\t\t\n\t\tdriver.quit();\n\t}", "title": "" }, { "docid": "690207713cb74e43cdf9c1555bca1b3a", "score": "0.5244286", "text": "@Test\n public void bundle_launch_windows() {\n BasicProject project = project(\"simple\")\n .withContents(it -> it.copy(Paths.get(\"src/test/data/base-package\")));\n project.withContents(it -> {\n try {\n it.withLaunch(\"bin/make_output\");\n } catch (Exception e) {\n Assume.assumeNoException(\"this test is designed for windows env\", e);\n }\n });\n assertThat(lines(project.getContents().get(\"output.txt\")), contains(\"Hello, world!\"));\n }", "title": "" }, { "docid": "36517c4a6ba210b6bee5a2dc207bcfe9", "score": "0.5239997", "text": "public static WebDriver chromedriverConnection(){\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n return driver;\n }", "title": "" }, { "docid": "eccb76d08e08b12cc38e3699cd733395", "score": "0.5231898", "text": "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\dac\\\\Documents\\\\chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tString url=\"https://www.google.com\";\r\n\t\tString exptitile=\"Google\";\r\n\t\tString actualtile=\"\";\r\n\t\tdriver.get(url);\r\n\r\n\t\tdriver.findElement(ByName.name(\"q\")).sendKeys(\"Cdac acts\");\r\n\t\tdriver.findElement(ByName.name(\"btnK\")).submit();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "47085710d36ae4a400df84c32ef086ea", "score": "0.5214147", "text": "private void startChromeFindVersion(String name){\n int minVersion = 74;\n int maxVersion = 79;\n int i = minVersion;\n while (i < maxVersion) {\n String path = String.format(\"%s/chromedriver_win32_%d/chromedriver.exe\", Common.relPath, i);\n System.setProperty(\"webdriver.chrome.driver\", path);\n try {\n getInitialCollection(name);\n _driver = new ChromeDriver();\n Common.chromeVersion = i;\n String pathVersion = FileHelper.getAbsolute(path.split(\"src/\")[0] + \"chromeVersion.txt\");\n FileHelper.write(((Integer)i).toString(),pathVersion, false);\n String msg = String.format(\"FOUND browser version: %d\\nA file was created at: %s\",i,pathVersion);\n System.out.println(msg);\n break;\n } catch (Exception ex) { i++; }\n }\n }", "title": "" }, { "docid": "b8b6fd7929054b609049b1015373faa1", "score": "0.52064306", "text": "public static void main(String[] args) {\n\tWebDriver driver = new ChromeDriver(); \n\ttest(driver);\n\t\n\t}", "title": "" }, { "docid": "8393d79dd61f06c4c55023966be1e0e6", "score": "0.52058625", "text": "@Given(\"^launching the chrome appy$\")\n\tpublic void launching_the_chrome_application() throws IOException {\n\t\tmylogin.browser();\n\t}", "title": "" }, { "docid": "247383aaa7e44a4f9afb460ff9645747", "score": "0.52057964", "text": "public void Launch() \n{\n\tpath=System.getProperty(\"user.dir\")+\"//Browser//chromedriver.exe\";\n\t//System.out.println(path);\n\t\n\t// Step 2 Set Dynamic Path\n\tSystem.setProperty(\"webdriver.chrome.driver\", path);\n\t\n\t//Step 3 Initialize ChromeDriver\n\tdriver=new ChromeDriver();\n\t\n\t//Step -4 Open Browser in maximize mode\n\tdriver.manage().window().maximize();\n\t\n\t//Step 5: Open Url of the application\n\tdriver.get(\"file://C:/Courseware/HTML/form.html\");\n\t\n\t//Step 6: Selecting Chandigarh from Drop down List\n\tSelect slt=new Select(driver.findElement(By.id(\"sltcities\")));\n\tslt.selectByIndex(1);\n\t//slt.selectByValue(\"Chandigarh\");\n\t//slt.selectByVisibleText(\"Chandigarh\");\n}", "title": "" }, { "docid": "c1ff82c2bb7ead469ee2ffdea068c20d", "score": "0.51938", "text": "public static void main(String[] args) \r\n\t\r\n\t{\n\r\n\t\t\r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \r\n\t\t\t\t\"C:\\\\MyCompetency_TestAutomation\\\\MyCompetency_Regression_Automation\\\\Servers\\\\chromedriver.exe\");\r\n\t\t\r\n\t\tWebDriver driver = new ChromeDriver();\t\t\r\n\t\t\r\n\t\tdriver.get(\"https://www.google.co.in\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "15257643d5dd5096c6985800aaee778b", "score": "0.5191096", "text": "public static void main(String[] args) throws IOException {\n String relativePath = System.getProperty(\"user.dir\")+\"//TestData//demo.txt\";\n System.out.println(relativePath);\n \n File file = new File(relativePath);\n \n if(!file.exists()) {\n \tfile.createNewFile();\n }else {\n \tSystem.out.println(\"File is already created!\");\n }\n \t\n Writer w = new FileWriter(file);\n BufferedWriter bf = new BufferedWriter(w);\n bf.write(\"Hello all good morning..\");\n bf.newLine();\n bf.write(\"Happy learning java selenium..\");\n bf.flush();\n bf.close();\n \n \n\t}", "title": "" }, { "docid": "cddd6a9cc8798e9ff5fdcf59cdec92fa", "score": "0.5183157", "text": "@Before\r\n\t public void setup() {\n\t \t File chromedriver = new File(\"//Users//rameshtejavath//documents//selenium//drivers//chromedriver\");\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromedriver.getAbsolutePath());\r\n\t\t\tDesiredCapabilities Capabilities = new DesiredCapabilities();\r\n\t\t\tCapabilities = DesiredCapabilities.chrome();\r\n\t\t\tCapabilities.setCapability(\"chrome.switches\", Arrays.asList(\"--start-maximized\"));\r\n\t\t\tdriver = new ChromeDriver(Capabilities);\r\n\t\t\tSystem.out.println(\"Chrome Browser is opened\");\r\n\t}", "title": "" }, { "docid": "3adf36449521372b0233718854fac982", "score": "0.51799154", "text": "public WebDriver openURL(){\n\t\ttry {\r\n\t\t\tdefaultMap = new Read().readApplication();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tDesiredCapabilities capability = DesiredCapabilities.chrome();\r\n\t\tcapability.setCapability(\"chrome.switches\", Arrays.asList(\"–disable-extensions\"));\r\n\t\t//System.setProperty(\"webdriver.chrome.driver\", \"C:/chromedriver/chromedriver.exe\");\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", Browser.class.getResource(Constants.WINDOW_CHROME_DRIVER).getFile());\r\n\t\tcapability.setCapability(\"chrome.binary\", Constants.WINDOW_CHROME_EXE); \r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\t//profile path--options.addArguments(\"user-data-dir=C:/Users/user_name/AppData/Local/Google/Chrome/User Data/Default\"); \r\n\t\tWebDriver driver = new ChromeDriver(capability);\r\n\t\t\r\n\t // String URL = \"https://\"+ \"singhkuld\" + \":\" + \"Kedar@0706\" + \"@\" + \"us.sso.covisint.com/jsp/preLogin.jsp?host=https://fim.covisint.com&CT_ORIG_URL=%2Fap%2Fford%3Fip%3DWslIP%3D103.6.88.27%26TARGET%3Dhttps%3A%2F%2Fproj.extsp.ford.com%2F_layouts%2FFord%2Fcustomlogin.aspx%3FReturnUrl%3D%252fsites%252fsurveys%252f_layouts%252fAuthenticate.aspx%253fSource%253d%25252Fsites%25252Fsurveys%25252Fdefault%25252Easpx%25252F&ct_orig_uri=%2Fap%2Fford%3Fip%3DWslIP%3D103.6.88.27%26TARGET%3Dhttps%3A%2F%2Fproj.extsp.ford.com%2F_layouts%2FFord%2Fcustomlogin.aspx%3FReturnUrl%3D%252fsites%252fsurveys%252f_layouts%252fAuthenticate.aspx%253fSource%253d%25252Fsites%25252Fsurveys%25252Fdefault%25252Easpx%25252F\";\r\n\t\t//String URL = \"\";\r\n\t driver.get(Constants.URL);\r\n\n\t driver.findElement(By.id(\"user\")).sendKeys(defaultMap.get(\"loginId\").trim());\r\n\t\tdriver.findElement(By.id(\"password\")).sendKeys(defaultMap.get(\"password\").trim());\r\n\r\n\t driver.findElement(By.name(\"login\")).submit();\r\n\t // driver.manage().window().maximize();\r\n\t// driver.manage().window().\r\n\t return driver;\r\n\t}", "title": "" }, { "docid": "22aa981aeaa0a8489028c308b334cd0b", "score": "0.51792765", "text": "public static void main(String[] args) throws InterruptedException {\n\t\tSystem.out.println(\"Launch the Chrome\");\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"F:\\\\EclipseWorkSpace2018\\\\Selenium\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t Thread.sleep(3000);\r\n\t\t//open URL\r\n\t\tdriver.get(\"https://google.com/\");\r\n\t\tString baseURl=driver.getCurrentUrl();\r\n\t\tSystem.out.println(baseURl);\r\n\t\tThread.sleep(5000);\r\n\t\t//navigate().to(\"URL)\r\n\t\t/*Alternative for get method to move step forward */\r\n\t\r\n\t\tdriver.navigate().to(\"https://www.seleniumhq.org/\");\r\n\t\tString secondURL = driver.getCurrentUrl();\r\n\t\tSystem.out.println(secondURL);\r\n\t\tThread.sleep(5000);\r\n\t\t//Navigate to baseURL\r\n\t\tdriver.navigate().back();\r\n\t\tThread.sleep(5000);\r\n\t\tString thirdURL = driver.getCurrentUrl();\r\n\t\tSystem.out.println(thirdURL);\r\n\t\tThread.sleep(5000);\r\n\t\t//Navigate to forward\r\n\t\tdriver.navigate().forward();\r\n\t\tString fourthURL = driver.getCurrentUrl();\r\n\t\tSystem.out.println(fourthURL);\r\n\t\tThread.sleep(5000);\r\n\t\t//Navigate referesh\r\n\t\tdriver.navigate().refresh();\r\n\t\tString fivthURL = driver.getCurrentUrl();\r\n\t\tSystem.out.println(fivthURL);\r\n\t\tThread.sleep(5000);\r\n\t\t\r\n\t\t//Systax\r\n\t\t/*object.manage().window().maximize()*/\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\tThread.sleep(5000);\r\n\t\t//close the browser\r\n\t\tdriver.close();\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "1afdc446beaac8709a4e380175d67383", "score": "0.51737946", "text": "@Before\r\n public void startDriver() throws MalformedURLException {\r\n app.init();\r\n\r\n/* ChromeOptions options = new ChromeOptions();\r\n options.addArguments(\"disable-infobars\");\r\n options.addArguments(\"--start-maximized\");\r\n options.addArguments(\"--disable-extensions\");\r\n //options.addPreference(\"security.sandbox.content.level\",5);\r\n browser = new ChromeDriver(options);\r\n browser.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);\r\n browser.get(\"https://admin-staging.wardapp.xyz/\");*/\r\n }", "title": "" }, { "docid": "7638fe0381363794c03dda83819a1629", "score": "0.5158524", "text": "public String getScreenshot() {\n\tFile src=\t((TakesScreenshot) getDriver()).getScreenshotAs(OutputType.FILE);\r\n\t//Below will create path\r\n\tString path=System.getProperty(\"user.dir\") + \"/screenshots\" + System.currentTimeMillis() +\".png\";\r\n\tFile destination= new File(path);\r\n\ttry {\r\n\t\tFileUtils.copyFile(src, destination);\r\n\t} catch (IOException e) {\r\n\t\te.printStackTrace();\r\n\t}\r\n\treturn path;\r\n\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "856a0ba942ec25de9bdf865c2a0fa2a0", "score": "0.51577896", "text": "@Before\n\tpublic void LaunchBrowser() {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\aarav\\\\eclipse-workspace\\\\june20Selinium\\\\FirstSeleniumProject\\\\driver\\\\chromedriver.exe\" );\n\t\t\t\t// create object of web driver //\n\t\t\t\tdriver = new ChromeDriver();\n\t\t\t\t// going to the website\n\t\t\t\tdriver.get(\"http://www.techfios.com/billing/?ng=admin/\");\n\t\t\t\t//maximize browser//\n\t\t\t\tdriver.manage().window().maximize();\n\t}", "title": "" }, { "docid": "d06488a8b965feb1e0f63a19efadfd26", "score": "0.5147507", "text": "public static void main(String[] args) throws InterruptedException {\n WebDriverManager.chromedriver().setup();\n //2-create the instance of the chromedriver\n WebDriver driver=new ChromeDriver();\n driver.manage().window().maximize();\n //3-test if driver is working\n driver.get(\"https://google.com\");\n System.out.println(driver.getTitle());\n System.out.println(driver.getCurrentUrl());\n\n //BROWSER NAVIGATION\n Thread.sleep(2000); //this line adds 2000 milliseconds of wait=2seconds\n driver.navigate().back(); //this line will take the user to the previous page\n Thread.sleep(2000); //Thread.sleep is being added just to be able to see selenium movements\n driver.navigate().forward(); //this line will go to next step\n Thread.sleep(2000);\n\n driver.get(\"https://www.youtube.com\");\n System.out.println(driver.getTitle());\n System.out.println(driver.getCurrentUrl());\n Thread.sleep(2000);\n driver.navigate().refresh();\n\n Thread.sleep(2000);\n driver.navigate().to(\"https://www.facebook.com\");\n\n System.out.println(driver.getTitle());\n\n System.out.println(driver.getCurrentUrl());\n\n System.out.println(driver.getPageSource());\n\n Thread.sleep(10000);\n\n driver.close();\n\n\n }", "title": "" }, { "docid": "7b9906132cd90a6aa11df7b88a589996", "score": "0.51367706", "text": "@Given(\"^chromedriver from \\\"([^\\\"]*)\\\" in system folder \\\"([^\\\"]*)\\\" - for Linux$\")\n public void chromedriverFromInSystemFolder(String url, String path) throws Throwable {\n System.out.println(\"Preconditions: chromedriver from \" + url + \" is in \" + path + \" folder\");\n }", "title": "" }, { "docid": "1194c469074b81bc33c6fa28e3acfc20", "score": "0.5131096", "text": "public static void main(String[] args) throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://jpetstore.cfapps.io/\");\r\n\t\tString str = \"https://jpetstore.cfapps.io/\";\r\n\t\tString s = driver.getTitle();\r\n\t\tSystem.out.println(s);\r\n\t\tSystem.out.println(\"Title Lenght: \"+s.length());\r\n\t\tString url = driver.getCurrentUrl();\r\n\t\tSystem.out.println(url);\r\n\t\tSystem.out.println(\"Lenght: \"+url.length());\r\n\t\tif(str.equals(url));\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Same url\");\r\n\t\t}\r\n\t\tString ps= driver.getPageSource();\r\n\t\t\r\n\t\tSystem.out.println(ps);\r\n\t\tSystem.out.println(\"Page Source Lenght: \"+ps.length());\r\n\t\tObject pc = driver.getClass();\r\n\t\tSystem.out.println(\"Class: \"+pc);\r\n\t\tThread.sleep(3000);\r\n\t\tdriver.quit();\r\n\t}", "title": "" }, { "docid": "cf363b30c0920b8729ead681ed452489", "score": "0.5124754", "text": "@Given(\"^launch the chrome application$\")\r\n\tpublic void launch_the_chrome_application() {\n\t\tprofile.url();\r\n\t}", "title": "" }, { "docid": "fab9a1028f91c968aa5b975434216cdb", "score": "0.5123705", "text": "@Before\r\n public void beforeScenario() {\r\n \t// Use Chrome as testing browser\r\n \tSystem.setProperty(\"webdriver.chrome.driver\", Paths.get(\"src\",\"test\",\"resources\").toString() + \"/chromedriver.exe\");\r\n \tseleniumWebDriver = new ChromeDriver();\r\n \t\r\n \t// Maximize browser after launching it\r\n seleniumWebDriver.manage().window().fullscreen(); \r\n \r\n // Assign object to selenium web driver container for dependency injection\r\n seleniumWebDriverContainer.seleniumWebDriver = seleniumWebDriver;\r\n }", "title": "" }, { "docid": "19befdabcee64c8097455341326d00a4", "score": "0.51174575", "text": "public WebDriver initDriver() throws InterruptedException, IOException {\n\t\tString browserName = \"chrome\";\n\t\tSystem.out.println(\"---------------------\"+browserName);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tif(browserName.equalsIgnoreCase(\"Firefox\")){\n\t\t\tSystem.out.println(\"before\");\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"browserdrivers\\\\geckodriver.exe\");\n\t\t\tdriver=new FirefoxDriver();\n\t\t\tdriver.manage().window().maximize();\n\t\t}\n\t\t\n\t\telse if(browserName.equalsIgnoreCase(\"chrome\") || browserName.isEmpty()){\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"browserdrivers\\\\chromedriver.exe\");\n\t\t\t\tdriver=new ChromeDriver();\n\t\t\t\tdriver.manage().window().maximize();\n\t\t\t}\n\t\t\n\t\treturn driver;\n\t}", "title": "" }, { "docid": "f3ce6be2a44f5e88e33faa55d9f56ded", "score": "0.51161176", "text": "public static void main(String[] args) {\n\t\t// we can't create objectof interface or abstract class we use child class to create an object\n\t\tWebDriver driver=new ChromeDrive();\n\t\tdriver.openBrowser();\n\t\tdriver.closeBrowser();\n\t\tdriver.maximazeWindow();\n\t\tdriver.findElement();\n\t driver.takesScreen();\n\n\t WebDriver driver1=new FirefoxDriver();\n\t driver1.openBrowser();\n\t driver1.closeBrowser();\n\t driver1.maximazeWindow();\n\t driver1.findElement();\n\t driver1.takesScreen();\n\t}", "title": "" }, { "docid": "f8802a26a1df33b881497bdc222b69d2", "score": "0.51023936", "text": "public static void ExecuteRun(String chromeDrivePath,LinkedHashMap<String, String> arr1) throws InterruptedException {\n \tSystem.setProperty(\"webdriver.chrome.driver\",chromeDrivePath);\n\t\tWebDriver driver = new ChromeDriver();\n \tString baseUrl = \"\";\n \tWebElement ElementClicker=null;\n \ttry{\n \tSet set = arr1.entrySet();\n Iterator iterator = set.iterator();\n while(iterator.hasNext()) \n {\n \t\n Map.Entry mentry = (Map.Entry)iterator.next();\n // System.out.println(\"PathKey:\"+mentry.getKey() +\" \"+\"PathValue:\"+mentry.getValue());\n if(mentry.getKey().equals(\"Parent URL\"))\n {\n \t baseUrl=(String) mentry.getValue();\n \t // System.out.println(baseUrl);\n \t driver.get(baseUrl);\n \t driver.manage().window().maximize();\n \t Thread.sleep(2000);\n }\n else if (mentry.getKey().equals(\"Compensation Review - Externals\")){\n \t \n\t \t ElementClicker=driver.findElement(By.xpath((String) mentry.getValue()));\n\t \t ElementClicker.click();\n\t \t Thread.sleep(5000);\n\t \t // System.out.println(XpathValue);\n\t \t }\n else {\n \t ElementClicker=driver.findElement(By.xpath((String) mentry.getValue()));\n\t \t ElementClicker.click();\n\t \t Thread.sleep(3000);\n }\n }\n \t}\n //close Fire fox\n finally {\n driver.close();\n }\n \n }", "title": "" }, { "docid": "a5bb11d2d9d99c50f77eac9618ad6a14", "score": "0.5098957", "text": "public static void main(String[] args) throws IOException {\n\n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\chromedriver.exe\");\n WebDriver driver=new ChromeDriver();\n\n driver.get(\"https://opensource-demo.orangehrmlive.com/\");\n\n WebElement logoImageElemet=driver.findElement(By.xpath(\"/html/body/div[1]/div/div[3]/div[1]/img\"));\n\n Screenshot logoImageScreenshot= new AShot().takeScreenshot(driver,logoImageElemet);\n ImageIO.write(logoImageScreenshot.getImage(),\"png\",new File(\"C://Users//Sadik//Desktop//SeleniumPractice/OrangeHRMlogo.png\"));\n\n File f=new File(\"C://Users//Sadik//Desktop//SeleniumPractice/OrangeHRMlogo.png\");\n\n if (f.exists())\n {\n System.out.println(\"Image File Captured\");\n }\n else\n {\n System.out.println(\"Image File Not Captured\");\n }\n }", "title": "" }, { "docid": "40343ba8a3fb76efcab2ae25cb877a26", "score": "0.509881", "text": "public static void main(String[] args) {\n WebDriverManager.chromedriver().setup();\r\n ChromeDriver driver= new ChromeDriver();\r\n driver.get(\"http://leaftaps.com/opentaps/control/main\");\r\n String title=driver.getTitle();\r\n System.out.println(\"Title:\"+ title);\r\n driver.manage().window().maximize();\r\n // driver.close();\r\n\t}", "title": "" }, { "docid": "5f19af9b5de591b972b72b448b1d0bec", "score": "0.50951385", "text": "public static void main(String[] args) {\n\t\tWebDriverManager.chromedriver().version(\"70.0\").setup();\n\t\t\n\t\tWebDriver driver = new ChromeDriver();\n\t\t\n\t\tdriver.get(\"https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager/3.8.1\");\n\t\t\n\t\tSystem.out.println(\"Title of the page is : \"+driver.getTitle());\n\t\t\n\t\tdriver.quit();\n\t}", "title": "" }, { "docid": "eab2fe5f282668432a0511526351359d", "score": "0.5090933", "text": "public static void main(String[] args) throws IOException {\n\t\tWebDriver driver=new ChromeDriver();\n\t\tdriver.get(\"https://www.w3schools.com/\");\n\t\tFile screenshotfile=((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t FileHandler.copy(screenshotfile,new File(\"/Users/pujakumari/Documents/workspace/Handling_WebDriver_Scenarios/TakesScreenhoot.png\"));\n\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "8a7a5a3f06493b3b1002b9042851e01f", "score": "0.50908387", "text": "public static WebDriver get() {\n\t\tWebDriver driver;\n\t\tSystem.out.println(\"Opening chrome browser\");\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverPath + \"chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\treturn driver;\n\t}", "title": "" }, { "docid": "4fda74175611fd533b43844bd8647a67", "score": "0.50879896", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\\\\\SeleniumInstallations\\\\\\\\drivers\\\\\\\\chromedriver1.exe\");\r\n\t\t\r\n\t\tExtentReports extent=new ExtentReports();\r\n\t\t\r\n\t\tExtentHtmlReporter htmlReport=new ExtentHtmlReporter(\"Reports1.html\");\r\n\t\t\r\n\t\tExtentTest testCase;\r\n\t\t\r\n\t\textent.attachReporter(htmlReport);\r\n\t\t\r\n\t\t\r\n\t\tChromeDriver driver=new ChromeDriver();\r\n\t\t\r\n\t\ttestCase=extent.createTest(\"testCase\");\r\n\t\t\r\n\t\ttestCase.log(Status.INFO, \"lanch the browser\");\r\n\t\t\r\n\t\tdriver.get(\"http://www.google.co.in\");\r\n\t\t\r\n\t\ttestCase.log(Status.INFO, \"get the title\");\r\n\t\t\r\n\t\tString title=driver.getTitle();\r\n\t\t\r\n\t\ttestCase.log(Status.INFO, \"verify the title\");\r\n\t\t\r\n\t\tif(title.equals(\"google\")) {\r\n\t\t\t\r\n\t\t\ttestCase.log(Status.PASS, \"testCase is passed\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\t\r\n\t\t\ttestCase.log(Status.FAIL, \"testCase is failed\");\r\n\t\t}\r\n\t\t\r\n\t\tdriver.quit();\r\n\t\t\r\n\t\textent.flush();\r\n\r\n\t}", "title": "" }, { "docid": "9192280befad8f0287e8c896bd4cc7b0", "score": "0.5083255", "text": "public static void main(String[] args) {\nSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Projects\\\\chromedriver_win32 (1)\\\\chromedriver.exe\");\r\n\r\n//Opening the chrome driver and \t\t\r\nWebDriver driver =new ChromeDriver();\r\n\t\tdriver.get(\"http://store.demoqa.com/\");\r\n\t\t\r\n\t\t//Getting page title and title lenght\r\n\t\tString Pagetitle=driver.getTitle();\r\n\t\tSystem.out.println(Pagetitle);\r\n\t\t\r\n\t\tBy username;\r\n\t\t\r\n\t\tint Pagetitlesize=Pagetitle.length();\r\n\t\tSystem.out.println(Pagetitlesize);\r\n\t\t\r\n\t\t\r\n\t\t//Get current url and check if it is expected or not\r\n\t\tString curenturl=driver.getCurrentUrl();\r\n\t\tString expurl=\"http://store.demoqa.com/products-page/product-category/\";\r\n//\t\tString expurl=\"http://store.demoqa.com/\";\r\n\t\tif(curenturl.equals(expurl))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"currenturl is expected url\" + curenturl);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"currenturl is not matching expected url\" );\r\n\t\t}\r\n\t\t\r\n\t\t//Get page source and printlength\r\n\t\tString Pagesource =driver.getPageSource();\r\n\t\tSystem.out.println(Pagesource);\r\n\t\tint Pagsourcelen=Pagesource.length();\r\n\t\tSystem.out.println(Pagsourcelen);\r\n\t\t\r\n\t\tdriver.close();\r\n\r\n\t}", "title": "" }, { "docid": "175864e0fc6d25fa8eaa57da82c77477", "score": "0.5079288", "text": "@BeforeTest\n @Parameters(\"browser\")\n public void setup(String browser) throws Exception{\n if(browser.equalsIgnoreCase(\"firefox\")){\n //create firefox instance\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n }\n //Check if parameter passed as 'chrome'\n else if(browser.equalsIgnoreCase(\"chrome\")){\n //set path to chromedriver.exe\n WebDriverManager.chromedriver().setup();\n //create chrome instance\n driver = new ChromeDriver();\n }\n else{\n //If no browser passed throw exception\n throw new Exception(\"Browser is not correct\");\n }\n }", "title": "" }, { "docid": "f4334a437bb439808e53c3266d3ea80a", "score": "0.5078125", "text": "public static void main(String[] args) throws InterruptedException {\n\t\tThread.sleep(5000);\n\t\tWebDriverManager.chromedriver().setup();\n\t\tWebDriver wd = new ChromeDriver();\n\t\twd.get(\"http://139.59.91.96:5001/selenium-workbook/open-a-new-window.html#\");\n\t\tBy newButtonLocator = By.linkText(\"Open A New Window\");\n\t\tWebElement newButton = wd.findElement(newButtonLocator);\n\t\tnewButton.click();\n\t//Step1: Get the current Handle----> String\n\t\tString currenthandle=wd.getWindowHandle(); //handle for the current page which selenium is automating\n\t\tSystem.out.println(currenthandle);\n\t//Step 2: Get All the window handles------------Set<String>\n\t\tSet<String> allHandles=wd.getWindowHandles();\n\t\tSystem.out.println(allHandles);\n\t\t//Iterate \n\t\tfor(String handle:allHandles)\n\t\t{\n\t\t\tif(!currenthandle.equalsIgnoreCase(handle)) \n\t\t\t{\n\t\t\t\twd.switchTo().window(handle);\n\t\t\t\tif(wd.getTitle().equalsIgnoreCase(\"Open a new window\")) { //Step 3: for 3 handles\n\t\t\t\t\tBy h1Tag = By.tagName(\"h1\");\n\t\t\t\t\tWebElement h1Element = wd.findElement(h1Tag);\n\t\t\t\t\tSystem.out.println(h1Element.getText());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(wd.getTitle());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "c379151e65a0c3d1b495d118176999a4", "score": "0.50730073", "text": "@Before\n public void setUp(){\n\n driver = new ChromeDriver();\n/*\n if (os.contains(\"mac\")){\n System.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+\"/chromedriver\");\n }\n else{\n System.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\"+\"\\\\chromedriver.exe\"));\n\n }\n */\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);\n driver.manage().timeouts().setScriptTimeout(10, TimeUnit.SECONDS);\n\n driver.get(\"http://automationpractice.com/index.php\");\n driver.manage().window().maximize();\n }", "title": "" }, { "docid": "97f435f2943765c30cb226838d1a560a", "score": "0.50616693", "text": "@Override\n public Browser createBrowser(BrowserSettings settings)\n {\n \t System.setProperty(\"webdriver.chrome.driver\",\"c:\\\\chromedriver\\\\chromedriver.exe\"); \t \n return new Chrome(settings);\n }", "title": "" }, { "docid": "d53134a2c9d628705fb507b4f2d79095", "score": "0.50522685", "text": "public void setUpBrowser()\n {\n String browser = loadProps.getProperty(\"browser\");\n //source of drivers\n System.setProperty(\"webdriver.chrome.driver\", \"src\\\\test\\\\Resources\\\\BrowserDriver\\\\chromedriver.exe\");\n //driver object\n driver = new ChromeDriver();\n }", "title": "" }, { "docid": "ee01845848ee2d7c40a17bacfcb20f8b", "score": "0.5046825", "text": "private WebDriver create(String driverPath) {\r\n WebDriver driver = null;\r\n WebDriverManager.chromedriver().setup();\r\n ChromeOptions options = new ChromeOptions();\r\n options.addArguments(\"--headless\");\r\n driver = new ChromeDriver(options);\r\n return driver;\r\n }", "title": "" }, { "docid": "44bcc0ad039a655f0e60c16027d7ee68", "score": "0.50425184", "text": "@BeforeClass\n public static void openPage(){\n String libWithDriversLocation = System.getProperty(\"user.dir\") + \"\\\\lib\\\\\";\n System.setProperty(\"webdriver.chrome.driver\", libWithDriversLocation + \"chromedriver.exe\");\n driver = new ChromeDriver();\n driver.get(\"https://kristinek.github.io/test-sample/tasks/task3\");\n }", "title": "" }, { "docid": "64fa3af5994575b16138afd28684692d", "score": "0.5041788", "text": "public static WebDriver setProperty() {\n System.setProperty(\"webdriver.chrome.driver\", \"/Users/kalra/Desktop/SIMRANJEET QA/src/SumonQA/resource/chromedriver\");\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"incognito\");\n WebDriver driver = new ChromeDriver(options);\n driver.manage().window().maximize();\n\n return driver;\n }", "title": "" }, { "docid": "7c0e02c571e3c0b5e90d0a6b700321dc", "score": "0.50305814", "text": "public static void main(String[] args) throws InterruptedException {\n WebDriverManager.chromedriver().setup();\n\n //this is the line that is opening the browser we select\n WebDriver driver= new ChromeDriver();\n\n //Go to https://login2.nextbasecrm.com/\n driver.get(\"https://login2.nextbasecrm.com/\");\n driver.manage().window().maximize();\n\n //log in, enter username and password\n driver.findElement(By.name(\"USER_LOGIN\")).sendKeys(\"hr39@cybertekschool.com\");\n driver.findElement(By.name(\"USER_PASSWORD\")).sendKeys(\"UserUser\");\n\n driver.findElement(By.className(\"login-btn\")).click();\n\n Thread.sleep(5000);\n\n driver.findElement(By.id(\"timeman-container\")).click();\n\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "6850fff5d6178d1f283f6a7cceffc70e", "score": "0.50259143", "text": "public static void main(String[] args) {\n\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\tString property = System.getProperty(\"webdriver.chrome.driver\");\r\n\t\t\tSystem.out.println(property);\r\n\t\t\t// Step 2: Launch the chromebrowser\r\n\t\t\tChromeDriver driver = new ChromeDriver();\r\n\t\t\t// Step 3: Load the URL\r\n\t\t\tdriver.get(\"http://leaftaps.com/opentaps/control/main\");\r\n\t\t\t// Step 4: Maximise the window\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\t// Step 5: Locate the username and type \"demosalesmanager\"\r\n\t\t\tdriver.findElement(By.id(\"username\")).sendKeys(\"demosalesmanager\");\r\n\t\t\t// Step 6: Locate the password and type \"crmsfa\"\r\n\t\t\tdriver.findElement(By.id(\"password\")).sendKeys(\"crmsfa\");\r\n\t\t\t// Step 7: Locate the Login button and click it\r\n\t\t\tdriver.findElement(By.className(\"decorativeSubmit\")).click();\r\n\t\t\t// Step 8: Verify if the login process is successful\r\n\t\t\tString welcomeText = driver.findElement(By.tagName(\"h2\")).getText();\r\n\r\n\t\t\tif (welcomeText.contains(\"Welcome\"))\r\n\t\t\t\tSystem.out.println(\" Login succesful\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Login failed\");\r\n\r\n\t\t\t// Step 9: Click CRM/SFA link\r\n\t\t\tdriver.findElement(By.linkText(\"CRM/SFA\")).click();\r\n\r\n\t\t\t// Step10: Click Leads tab\r\n\t\t\tdriver.findElement(By.linkText(\"Leads\")).click();\r\n\t\t\t// Step11: Click CreateLead\r\n\r\n\t\t\tdriver.findElement(By.linkText(\"Create Lead\")).click();\r\n\t\t\t// Step12: Enter Company name\r\n\t\t\tdriver.findElement(By.id(\"createLeadForm_companyName\")).sendKeys(\"TestLeaf\");\r\n\t\t\t// Step13: Enter FirstName\r\n\t\t\tdriver.findElement(By.id(\"createLeadForm_firstName\")).sendKeys(\"Dhivya\");\r\n\t\t\t// Step14: Enter LastName\r\n\t\t\tdriver.findElement(By.id(\"createLeadForm_lastName\")).sendKeys(\"Prabha\");\r\n\r\n\t\t\t// DROP DOWN\r\n\t\t\tWebElement webEleSource = driver.findElement(By.id(\"createLeadForm_dataSourceId\"));\r\n\t\t\tSelect drpDown = new Select(webEleSource);\r\n\t\t\tdrpDown.selectByIndex(3);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tWebElement webElement2 = driver.findElement(By.id(\"createLeadForm_marketingCampaignId\"));\r\n\t\t\tSelect drpDown2 = new Select(webElement2);\r\n\t\t\tdrpDown2.selectByVisibleText(\"Catalog Generating Marketing Campaigns\");\r\n\t\t\t\t\t\t\r\n\r\n\t\t\tdriver.findElement(By.id(\"createLeadForm_firstNameLocal\")).sendKeys(\"Diya\");\r\n\t\t\tdriver.findElement(By.id(\"createLeadForm_lastNameLocal\")).sendKeys(\"Prabha\");\r\n\t\t\tdriver.findElement(By.id(\"createLeadForm_personalTitle\")).sendKeys(\"Miss\");\r\n\t\t\tdriver.findElement(By.id(\"createLeadForm_generalProfTitle\")).sendKeys(\"Test Engineer\");\r\n\t\t\tdriver.findElement(By.id(\"createLeadForm_birthDate\")).sendKeys(\"03/03/92\");\r\n\t\t\tdriver.findElement(By.id(\"createLeadForm_annualRevenue\")).sendKeys(\"10000\");\r\n\t\t\tdriver.findElement(By.id(\"createLeadForm_departmentName\")).sendKeys(\"Automation\");\r\n\t\t\tdriver.findElement(By.id(\"createLeadForm_numberEmployees\")).sendKeys(\"10\");\r\n\t\t\tdriver.findElement(By.id(\"createLeadForm_sicCode\")).sendKeys(\"101520\");\r\n\t\t\tdriver.findElement(By.id(\"createLeadForm_tickerSymbol\")).sendKeys(\"TT\");\r\n\t\t\t\r\n\t\t\tWebElement indDrpDown = driver.findElement(By.id(\"createLeadForm_industryEnumId\"));\r\n\t\t\tSelect drpDown3= new Select(indDrpDown);\r\n\t\t\tdrpDown3.selectByValue(\"IND_SOFTWARE\");\r\n\t\t\t\r\n\t\t\tWebElement ownerDrpDown = driver.findElement(By.id(\"createLeadForm_ownershipEnumId\"));\r\n\t\t\tSelect drpDown4= new Select(ownerDrpDown);\r\n\t\t\tdrpDown4.selectByValue(\"OWN_PROPRIETOR\");\r\n\t\t\t\r\n\t\t\tdriver.findElementById(\"createLeadForm_description\").sendKeys(\"Week2 assignment\");\r\n\t\t\tdriver.findElementById(\"createLeadForm_importantNote\").sendKeys(\"Importent Note\");\r\n\t\t\tdriver.findElementById(\"createLeadForm_primaryPhoneAreaCode\").sendKeys(\"155\");\r\n\t\t\tdriver.findElementById(\"createLeadForm_primaryPhoneExtension\").sendKeys(\"7\");\r\n\t\t\tdriver.findElementById(\"createLeadForm_primaryPhoneNumber\").sendKeys(\"55329\");\r\n\t\t\tdriver.findElementById(\"createLeadForm_primaryEmail\").sendKeys(\"abc@test.com\");\r\n\t\t\tdriver.findElementById(\"createLeadForm_primaryPhoneAskForName\").sendKeys(\"Diya\");\r\n\t\t\tdriver.findElementById(\"createLeadForm_primaryWebUrl\").sendKeys(\"test/main.com\");\r\n\t\t\t\r\n\t\t\tdriver.findElementById(\"createLeadForm_generalToName\").sendKeys(\"Alvin\");\r\n\t\t\tdriver.findElementById(\"createLeadForm_generalAttnName\").sendKeys(\"Thomas\");\r\n\t\t\tdriver.findElementById(\"createLeadForm_generalAddress1\").sendKeys(\"Address1\");\r\n\t\t\tdriver.findElementById(\"createLeadForm_generalAddress2\").sendKeys(\"Address2\");\r\n\t\t\tdriver.findElementById(\"createLeadForm_generalCity\").sendKeys(\"Alabama\");\r\n\t\t\t\r\n\t\t\tWebElement countryDropDown = driver.findElementById(\"createLeadForm_generalCountryGeoId\");\r\n\t\t\tSelect drpDown5 = new Select(countryDropDown);\r\n\t\t\tdrpDown5.selectByValue(\"USA\");\r\n\t\t\t\r\n\t\t\tWebElement cityDropDown = driver.findElementById(\"createLeadForm_generalStateProvinceGeoId\");\r\n\t\t\tSelect drpDown6 = new Select(cityDropDown);\r\n\t\t\tdrpDown6.selectByValue(\"AL\");\r\n\t\t\t\r\n\t\t\tdriver.findElementById(\"createLeadForm_generalPostalCode\").sendKeys(\"60001\");\r\n\t\t\tdriver.findElementById(\"createLeadForm_generalPostalCodeExt\").sendKeys(\"6\");\r\n\t\t\t\r\n\t\t\t// Click CreateLead button\r\n\t\t\tdriver.findElement(By.className(\"smallSubmit\")).click();\r\n\t\t\t// Step 16: Verify if we are in view Leads page\r\n\r\n\t\t\tString titleView = driver.getTitle();\r\n\r\n\t\t\tif (titleView.equals(\"View Lead | opentaps CRM\"))\r\n\t\t\t\tSystem.out.println(\" In the view Page\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\" Not in View Page\");\r\n\r\n\t\t\t// Step 17: Get the Company Name\r\n\t\t\tString cmpnyName = driver.findElement(By.id(\"viewLead_companyName_sp\")).getText();\r\n\t\t\tSystem.out.println(\" cmpnyName:\" + cmpnyName);\r\n\t\t\t// //D --> all non Integer values\r\n\r\n\t\t\tSystem.out.println(cmpnyName.replaceAll(\"\\\\d\", \"\"));\r\n\t\t\t\r\n\t\t\tdriver.findElementByLinkText(\"Duplicate Lead\").click();\r\n\t\t\tdriver.findElement(By.id(\"createLeadForm_companyName\")).clear();\r\n\t\t\tdriver.findElementById(\"createLeadForm_companyName\").sendKeys(\"ITSolutions\");\r\n\t\t\tdriver.findElementByClassName(\"smallSubmit\").click();\r\n\t\t\tString newCompany = driver.findElementById(\"viewLead_companyName_sp\").getText();\r\n\t\t\tString newCom = newCompany.replaceAll(\"\\\\d\", \"\").replaceAll(\"[()]\",\"\").replaceAll(\"\\\\s\", \"\");\r\n\t\t\tSystem.out.println(newCom);\r\n\t\t\tif(newCom.equals(\"ITSolutions\"))\r\n\t\t\t\tSystem.out.println(\"Company name updated\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Not updated\");\r\n\t\t\tSystem.out.println(\" New cmpnyName:\" + newCompany);\r\n\t\t\tdriver.close();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\t//driver.findElementByClassName(\"decorativeSubmit\").click();\r\n\t\t\t//driver.findElement(By.className(\"decorativeSubmit\")).click();\r\n\r\n\r\n\t}", "title": "" }, { "docid": "a06d472c5f07360170131b53d86ccf6f", "score": "0.50169796", "text": "public static void main(String[] args) {\n\t\tMap<String, String> os=System.getenv();\n\t\t/*{USERPROFILE=C:\\Users\\zhangwenbao, ProgramData=C:\\ProgramData,\n\t\t\t\tUSERDNSDOMAIN=PURANG.COM, PATHEXT=.COM;\n\t\t.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC,\n\t\twindows_tracing_logfile=C:\\BVTBin\\Tests\\installpackage\\csilogfile.log, \n\t\t\t\tJAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_79,\n\t\t\t\tMAVEN_HOME=E:\\apache-maven-3.3.9,\n\t\t\t\tProgramFiles(x86)=C:\\Program Files (x86), \n\t\t\t\twindows_tracing_flags=3, \n\t\t\t\tTEMP=C:\\Users\\ZHANGW~1\\AppData\\Local\\Temp, \n\t\t\t\tSystemDrive=C:, ProgramFiles=C:\\Program Files,\n\t\t\t\tPath=C:/Program Files/Java/jdk1.7.0_79/bin/../jre/bin/server;C:/Program Files/Java/jdk1.7.0_79/bin/../jre/bin;C:/Program Files/Java/jdk1.7.0_79/bin/../jre/lib/amd64;C:\\Program Files\\Java\\jdk1.7.0_79\\bin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files\\Java\\jdk1.8.0_151\\bin;C:\\Program Files\\Java\\jdk1.8.0_101\\bin;C:\\Program Files\\Java\\jdk1.5.0_22\\bin;E:\\apache-maven-3.3.9\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;D:\\Program Files\\TortoiseSVN\\bin;D:\\Program Files\\SlikSvn\\bin;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\ManagementStudio\\;E:\\eclipse;, HOMEDRIVE=C:, PROCESSOR_REVISION=5e03, USERDOMAIN=PURANG, ALLUSERSPROFILE=C:\\ProgramData, ProgramW6432=C:\\Program Files, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel, SESSIONNAME=Console, TMP=C:\\Users\\ZHANGW~1\\AppData\\Local\\Temp, MAVEN_OPTS=-Xms512m -Xmx1024m, CommonProgramFiles=C:\\Program Files\\Common Files, CLASSPATH=.;C:\\Program Files\\Java\\jdk1.7.0_79\\jre\\lib;C:\\Program Files\\Java\\jdk1.8.0_151\\jre\\lib;C:\\Program Files\\Java\\jdk1.8.0_101\\jre\\lib;C:\\Program Files\\Java\\jdk1.5.0_22\\jre\\lib;,\n\t\t\t\t=::=::\\, LOGONSERVER=\\\\PWPDHCAP1, PROCESSOR_ARCHITECTURE=AMD64, FP_NO_HOST_CHECK=NO,\n\t\t\t\t\n\t\t\t\tOS=Windows_NT, HOMEPATH=\\Users\\zhangwenbao,\n\t\t\t\tPROCESSOR_LEVEL=6, CommonProgramW6432=C:\\Program Files\\Common Files,\n\t\t\t\tCATALINA_HOME=E:\\apache-tomcat-7.0.70, LOCALAPPDATA=C:\\Users\\zhangwenbao\\AppData\\Local,\n\t\t\t\tCOMPUTERNAME=PULAN0491, windir=C:\\Windows, \n\t\t\t\tSystemRoot=C:\\Windows, NUMBER_OF_PROCESSORS=4, USERNAME=zhangwenbao, \n\t\t\t\tPUBLIC=C:\\Users\\Public, PSModulePath=C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\,\n\t\t\t\tCommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files,\n\t\t\t\tComSpec=C:\\Windows\\system32\\cmd.exe, \n\t\t\t\tAPPDATA=C:\\Users\\zhangwenbao\\AppData\\Roaming}*/\n\t\t\n\t\t\n\t\tSystem.out.println(os);\n\t\t\n\t\tString osName = System.getProperty(\"os.name\");\n\t\tSystem.out.println(osName);\n\t\t\n\t\t}", "title": "" }, { "docid": "5eea6e38f5d7d2fba7256a16f1cc44c5", "score": "0.50153565", "text": "private static WebDriver setSeleniumBaseDriver(String browser) throws Throwable {\n\t\ttry {\n\t\t\t// return proper WebDriver object\n\t\t\tlog.info(\"Browser is \" + browser + \"!\");\n\t\t\tif (browser.toUpperCase().contains(\"CHROME\")) \n\t\t\t{\n\t\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\t\tcapabilities = new DesiredCapabilities();\n\t\t\t\tcapabilities.setCapability(CapabilityType.BROWSER_NAME, \"chrome\");\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true);\n\t\t\t\tcapabilities.setCapability(CapabilityType.SUPPORTS_JAVASCRIPT, true);\t\t\t\t\n\t\t\t\tif(browser.toUpperCase().contains(\"HEADLESS\"))\n\t\t\t\t{\n\t\t\t\t\toptions.addArguments(\"--headless\");\n\t\t\t\t\toptions.addArguments(\"--disable-gpu\");\n\t\t\t\t\toptions.addArguments(\"--window-size=1920,1080\");\n\t\t\t\t}\n\t\t\t\toptions.merge(capabilities);\n\t\t\t\tdriver = new ChromeDriver(options);\n\t\t\t\tdriver = Waits.implicitWait(driver);\n\t\t\t} \n\t\t\telse if (browser.toUpperCase().contains(\"FIREFOX\")) \n\t\t\t{\n\t\t\t\tFirefoxOptions options = new FirefoxOptions();\n\t\t\t\tcapabilities = new DesiredCapabilities();\n\t\t\t\tcapabilities.setCapability(CapabilityType.BROWSER_NAME, \"firefox\");\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true);\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\t\tcapabilities.setCapability(CapabilityType.SUPPORTS_JAVASCRIPT, true);\t\t\t\t\n\t\t\t\tif(browser.toUpperCase().contains(\"HEADLESS\"))\n\t\t\t\t{\n\t\t\t\t\toptions.addArguments(\"--headless\");\n\t\t\t\t\toptions.addArguments(\"--disable-gpu\");\n\t\t\t\t\toptions.addArguments(\"--window-size=1920,1080\");\n\t\t\t\t}\n\t\t\t\toptions.merge(capabilities);\n\t\t\t\tdriver = new FirefoxDriver(options);\n\t\t\t\tdriver = Waits.implicitWait(driver);\n\t\t\t} \n\t\t\telse if (browser.toUpperCase().contains(\"INTERNET\")) \n\t\t\t{\n\t\t\t\tcapabilities = new DesiredCapabilities();\n\t\t\t\tcapabilities.setCapability(CapabilityType.BROWSER_NAME, \"internetExplorer\");\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true);\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\t\tcapabilities.setCapability(CapabilityType.SUPPORTS_JAVASCRIPT, true);\n\t\t\t\tdriver = new InternetExplorerDriver();\n\t\t\t\tdriver = Waits.implicitWait(driver);\n\t\t\t} \n\t\t\telse if (browser.toUpperCase().contains(\"EDGE\")) \n\t\t\t{\n\t\t\t\tEdgeOptions options = new EdgeOptions();\n\t\t\t\tcapabilities = new DesiredCapabilities();\n\t\t\t\tcapabilities.setCapability(CapabilityType.BROWSER_NAME, \"edge\");\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true);\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\t\tcapabilities.setCapability(CapabilityType.SUPPORTS_JAVASCRIPT, true);\n\t\t\t\tcapabilities.setCapability(EdgeOptions.CAPABILITY, options);\n\t\t\t\tdriver = new EdgeDriver(capabilities);\n\t\t\t\tdriver = Waits.implicitWait(driver);\n\t\t\t} \n\t\t\telse if (browser.toUpperCase().contains(\"GRID\")) \n\t\t\t{\n\t\t\t\tString gridBrowser = PageObjects.getConfigKeyValue(\"gridBrowser\");\n\t\t\t\tString hubAddress = PageObjects.getConfigKeyValue(\"hubAddress\");\n\t\t\t\t\n\t\t\t\tlog.info(\"Grid Browser is \" + gridBrowser + \"!\");\n\t\t\t\t\n\t\t\t\tcapabilities = new DesiredCapabilities();\t\t\t\t\n\t\t\t\tcapabilities.setCapability(CapabilityType.BROWSER_NAME, gridBrowser);\n\t\t\t\tcapabilities.setCapability(CapabilityType.PLATFORM_NAME, Platform.WINDOWS);\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true);\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\t\tcapabilities.setCapability(CapabilityType.SUPPORTS_JAVASCRIPT, true);\n\t\t\t\t\n\t\t\t\tdriver = new RemoteWebDriver(new URL(hubAddress + \"/wd/hub\"), capabilities);\n\t\t\t\t\n\t\t\t\tdriver = Waits.implicitWait(driver);\n\t\t\t} \n\t\t\t\n\t\t\t// TODO safari\n\t\t\t// TODO for android for appium\n\t\t\tlog.info(\"Browser launched successfully!\");\n\t\t\treturn driver;\n\t\t}\n\t\tcatch(MalformedURLException e) {\n\t\t\tlog.fatal(\"Failure! URL not proper!\");\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(WebDriverException e) {\n\t\t\tlog.fatal(\"Failure! WebDriver object not set!\");\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t}\n\t\tcatch (Throwable e) \n\t\t{\n\t\t\tlog.fatal(\"Failure! WebDriver object not set!\");\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t}\n\t}", "title": "" }, { "docid": "a97ad3850acb275220034a13d1ed70b8", "score": "0.50097185", "text": "static void launch_Browser(String str) throws Exception {\n\n\t\tif (str.startsWith(\"ch\")) {\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\tdriver = new ChromeDriver();\n\t\t\t\n\t\t} else if (str.startsWith(\"ff\")) {\n\t\t\tWebDriverManager.firefoxdriver().setup();\n\t\t\tdriver = new FirefoxDriver();\n\n\t\t} else {\n\t\t\tSystem.out.println(\"You have not given correct type of browser. \");\n\t\t\n\t\t}\n\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"https://login.salesforce.com/\");\n\t}", "title": "" }, { "docid": "ac202568137f9474e563ddf99bacd72b", "score": "0.5007461", "text": "@Override\n\tpublic RemoteWebDriver launchBrowser() throws IOException {\n\t\tString browser_driver_path = System.getProperty(\"user.dir\") + pathAppender;\n\t\tbrowser = BaseTest.browserName == null\n\t\t\t\t? new Config().fetchConfig(new File(\"./suiterun.properties\"), \"browserName\") : BaseTest.browserName;\n\t\tif (browser != null && browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.setPageLoadStrategy(PageLoadStrategy.NONE);\n\t\t\toptions.addArguments(\"--test-type\");\n\t\t\toptions.addArguments(\"--disable-popup-blocking\");\n\t\t\toptions.addArguments(\"disable-infobars\");\n\t\t\toptions.addArguments(\"--disable-gpu\");\n\t\t\toptions.addArguments(\"--disable-features=VizDisplayCompositor\");\n\t\t\toptions.addArguments(\"--dns-prefetch-disable\");\n\t\t\tString browserDriver = !(Platform.getCurrent().toString().equalsIgnoreCase(\"MAC\")) ? \"chromedriver.exe\"\n\t\t\t\t\t: \"chromedriver_mac\";\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", browser_driver_path + browserDriver);\n\t\t\tdriver = new ChromeDriver(options);\n\t\t} else if (browser != null && browser.equalsIgnoreCase(\"ie\")) {\n\t\t\tSystem.setProperty(\"cap_webdriver.ie.driver\", browser_driver_path + \"IEDriverServer.exe\");\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t} else {\n\t\t\tString browserDriver = !(Platform.getCurrent().toString().equalsIgnoreCase(\"MAC\")) ? \"geckodriver.exe\"\n\t\t\t\t\t: \"geckodriver_mac\";\n\t\t\tFirefoxOptions firefoxoptions = new FirefoxOptions();\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", browser_driver_path + browserDriver);\n\t\t\tfirefoxoptions.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tfirefoxoptions.setCapability(\"webdriver.log.driver\", \"OFF\");\n\t\t\tdriver = new FirefoxDriver(firefoxoptions);\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\tif (Config.fetchConfigProperty(\"PageLoadTime\") != null)\n\t\t\tdriver.manage().timeouts().pageLoadTimeout(Long.parseLong(Config.fetchConfigProperty(\"PageLoadTime\")),\n\t\t\t\t\tTimeUnit.SECONDS);\n\t\tif (Config.fetchConfigProperty(\"ElementWaitTime\") != null)\n\t\t\tdriver.manage().timeouts().implicitlyWait(Long.parseLong(Config.fetchConfigProperty(\"ElementWaitTime\")),\n\t\t\t\t\tTimeUnit.SECONDS);\n\t\treturn driver;\n\n\t}", "title": "" }, { "docid": "f467712c4be46118580288f96149fdcb", "score": "0.50023884", "text": "public static Path getProgramLaunchDirectory() {\n return Paths.get(\"\").toAbsolutePath();\n }", "title": "" }, { "docid": "444d6524f44d02cbc226c749cd8a1426", "score": "0.4999645", "text": "@Before\n\tpublic void setup(){\n\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:/Edureka/chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t}", "title": "" } ]
0336322222073d007cbbadbd161b11d0
Function to get mother
[ { "docid": "1e9e1b5461f442b9f172677b983c8314", "score": "0.7647869", "text": "public FamilyMember getMother() {\r\n\t\treturn mother;\r\n\t}", "title": "" } ]
[ { "docid": "4434bd4c4955e0b3339adcb1449c53f5", "score": "0.7787804", "text": "public Person getMother() {\n return mother;\n }", "title": "" }, { "docid": "ece063737e3dbed36109f5fe86f78519", "score": "0.6597566", "text": "public GeographicArea getMotherArea() {\n return motherArea;\n }", "title": "" }, { "docid": "c74c2ed168ac40e6e7d61dd1b0450c59", "score": "0.65711117", "text": "public java.lang.String getMotherWt () {\n\t\treturn motherWt;\n\t}", "title": "" }, { "docid": "e108503a8b1376b202fb8258e5202810", "score": "0.65318644", "text": "private static Creature getCatOffspring(String father, String mother) {\n Creature creature = new Cat();\n creature.setName(father);\n Creature secondCreature = new Cat();\n secondCreature.setName(mother);\n return creature.reproduce(secondCreature);\n }", "title": "" }, { "docid": "8a671ea4b00173f35149121ceac8ab97", "score": "0.63591546", "text": "private static Creature getBirdOffspring(String father, String mother) {\n Creature creature = new Bird();\n creature.setName(father);\n Creature secondCreature = new Bird();\n secondCreature.setName(mother);\n return creature.reproduce(secondCreature);\n }", "title": "" }, { "docid": "857064aac2b8d965c46bdd1d3ec62c85", "score": "0.6324015", "text": "public String getMotherBoardName() {\r\n\t\treturn motherBoardName;\r\n\t}", "title": "" }, { "docid": "8dfe37642eaae51afc6aeefe3b9d690d", "score": "0.62860715", "text": "public void setMother(Person mother) {\n this.mother = mother;\n }", "title": "" }, { "docid": "83b532ea6e1ffa133e83f27b2c878ab6", "score": "0.627146", "text": "public java.lang.String getMotherAge () {\n\t\treturn motherAge;\n\t}", "title": "" }, { "docid": "463217f696a91062ec62fabd4ceb394c", "score": "0.6037074", "text": "public void setMother(FamilyMember mother) \r\n {\r\n\t\tthis.mother = mother;\r\n\t}", "title": "" }, { "docid": "6cae9ca44bc40d3bb81ae6bf0cbd883f", "score": "0.6005182", "text": "public gov.nih.nlm.ncbi.www.AnnotIdDocument.AnnotId.Other getOther()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.AnnotIdDocument.AnnotId.Other target = null;\r\n target = (gov.nih.nlm.ncbi.www.AnnotIdDocument.AnnotId.Other)get_store().find_element_user(OTHER$6, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "6db09d27bb010e8d893f8daf6343a555", "score": "0.59697896", "text": "public Person getFather() {\n return father;\n }", "title": "" }, { "docid": "b5a0fe80abafe4be9f462adfff65c5ee", "score": "0.59588367", "text": "@Basic\n\t@Raw\n\tpublic Ship getMotherShip() {\n\t\treturn this.motherShip;\n\t}", "title": "" }, { "docid": "ab52779d3870760f97d8ebec13fa9b45", "score": "0.5945397", "text": "public void setMotherWt (java.lang.String motherWt) {\n\t\tthis.motherWt = motherWt;\n\t}", "title": "" }, { "docid": "eb4f622f73e12d9c59b8cd9a275899fd", "score": "0.5945116", "text": "public Reaction getReaction(Piece other) {\r\n\t\tReaction r = null;\r\n\t\tif (other.x - 1 == x) {\r\n\t\t\tr = eastSide.getReaction(other.westSide);\r\n\t\t} else if (other.x + 1 == x) {\r\n\t\t\tr = westSide.getReaction(other.eastSide);\r\n\t\t} else if (other.y - 1 == y) {\r\n\t\t\tr = southSide.getReaction(other.northSide);\r\n\t\t} else if (other.y + 1 == y) {\r\n\t\t\tr = northSide.getReaction(other.southSide);\r\n\t\t} else\r\n\t\t\tthrow new Error(\"Pieces arent next to each other\");\r\n\t\treturn r;\r\n\t}", "title": "" }, { "docid": "8e91398d7e4a530f85c07e362fdac523", "score": "0.59419453", "text": "public Person getPartner();", "title": "" }, { "docid": "2331afcb5858353eb3e547575354ff6e", "score": "0.5934589", "text": "public java.lang.String getHolderMotherName() {\n return holderMotherName;\n }", "title": "" }, { "docid": "1f448357f39f092b4d86aa4c8343b4f8", "score": "0.5920383", "text": "public FamilyMember getFather() {\r\n\t\treturn father;\r\n\t}", "title": "" }, { "docid": "2b952f481a210edf7ac4796f7d0bfbd7", "score": "0.58871275", "text": "@Override\n\tpublic String getOther()\n\t{\n\t\treturn subject;\n\t}", "title": "" }, { "docid": "cdf2d180d9af27eca7fb033794dd03fb", "score": "0.588222", "text": "public PersonRecord oldestMatriarch ( ) {\n\t// this.info ... this.father ... this.mother\n\t// this.father.oldestMatriarch()\n\t// this.mother.oldestMatriarch()\n\n\tif ( this.mother.countPeople() == 0 ) {\n\t// jo.oldestMatriarch()\n\t// return: joPR\n\t// this.info = joPR\n\treturn this.info ;\n\t} else {\n\t// jay.oldestMatriarch()\n\t// this.info = jayPR\n\treturn this.mother.oldestMatriarch();\n\t}\n }", "title": "" }, { "docid": "ff2a3e01e1b3d3ee0b24457944250379", "score": "0.58547854", "text": "public ClientPlayer getOtherPlayer(ClientPlayer player) {\n if (me.is(player)){\n return enemy;\n }else{\n return me;\n }\n }", "title": "" }, { "docid": "4a2a79fa206292a2cd4f7ce55c52887e", "score": "0.58097076", "text": "public String getOther() {\r\n\t\treturn other;\r\n\t}", "title": "" }, { "docid": "e4d04e30a713b91adb61ba9fa5aeb913", "score": "0.5777418", "text": "public Person getGrandchild2() {\n return grandchild2;\n }", "title": "" }, { "docid": "ffd8cd4617024d4e6c981199a2dc405e", "score": "0.5754655", "text": "public ArrayList<String> getMothers() {\r\n \r\n ArrayList<String> mothers = new ArrayList<String>();\r\n for (int i=1 ; i<person.size() ; i=i+3) {\r\n \r\n mothers.add(person.get(i)); \r\n \r\n }\r\n return mothers;\r\n }", "title": "" }, { "docid": "fe006d4f544fc4b67826fe6435bcc4b8", "score": "0.57279915", "text": "public Node getC(Node other)\n {\n if (getN1().getName().equals(other.getName()))\n {\n return getN2();\n }\n if (getN2().getName().equals(other.getName()))\n {\n return getN1();\n }\n return null;\n }", "title": "" }, { "docid": "6c1287290f40415dd942adef9a140164", "score": "0.5720087", "text": "public String getOthers(){\n return others.get();\n }", "title": "" }, { "docid": "ea6b706a664f6858559d3ef66a5f953a", "score": "0.5702621", "text": "public void selection() {\n father = pop.getFatherMother()[0];\n mother = pop.getFatherMother()[1];\n }", "title": "" }, { "docid": "630dfa27fa990b0ea4e847c9eb786cdd", "score": "0.5692836", "text": "public void findMotherVertex() {\r\n\t\t// mark all vertices as not visited. complexity - O(n)\r\n\t\tboolean[] isVisited = new boolean[numVer];\r\n\t\tArrays.fill(isVisited, false);\r\n\r\n\t\t// the vertex that finishes last should be mother node. DFS complexity - O(V + E)\r\n\t\tint v = -1;\r\n\t\tfor (int i = 0; i < numVer; i++) {\r\n\t\t\tif (!isVisited[i]) {\r\n\t\t\t\tdfs_adjacencyList(i, isVisited);\r\n\t\t\t\tv = i;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// reset the visited array.complexity - O(n)\r\n\t\tArrays.fill(isVisited, false);\r\n\r\n\t\t// If there exist mother vertex (or vetices) in given\r\n\t\t// graph, then v must be one (or one of them)\r\n\r\n\t\t// Now check if v is actually a mother vertex (or graph\r\n\t\t// has a mother vertex). We basically check if every vertex\r\n\t\t// is reachable from v or not.\r\n\r\n\t\t// Reset all values in visited[] as false and do\r\n\t\t// DFS beginning from v to check if all vertices are\r\n\t\t// reachable from it or not.. DFS complexity - O(V + E)\r\n\t\tdfs_adjacencyList(v, isVisited);\r\n\t\tfor (int i = 0; i < numVer; i++) {\r\n\t\t\tif (!isVisited[i]) {\r\n\t\t\t\tSystem.out.println(\"not a mother vertex\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"mother vertex is \" + v);\r\n\t}", "title": "" }, { "docid": "df2a38ab1b99454903b906f63debb31b", "score": "0.5683959", "text": "public MyNode getOther(MyNode node){\r\n\t\t\r\n\t\tif (source.equals(node)){\r\n\t\t\treturn target;\r\n\t\t} \r\n\t\telse if (target.equals(node)){\r\n\t\t\treturn source;\r\n\t\t}\r\n\t\t\r\n\t\t// Return null if the given node is not either the source or target node\r\n\t\treturn null;\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "40a8dd1635112f030ea34259e8537f7f", "score": "0.56487775", "text": "public TeamId other() {\n switch (this) {\n case TEAM_1:\n return TEAM_2;\n case TEAM_2:\n return TEAM_1;\n default: // unreachable statement\n throw new Error();\n }\n }", "title": "" }, { "docid": "d70311d8475332ce5427a15111ff48a7", "score": "0.5548099", "text": "public InstanceProvenanceType getOtherOrigin()\n {\n return otherOrigin;\n }", "title": "" }, { "docid": "5e2985577b6e60b586389cadd26f9f63", "score": "0.5504207", "text": "public Person getGrandchild1() {\n return grandchild1;\n }", "title": "" }, { "docid": "6b131bcb91d954697dfcf00fa17d7d67", "score": "0.55039805", "text": "@Override\r\n\tpublic IPlayer getOtherPlayer() {\r\n\t\treturn Game.getInstance().getOpponent();\r\n\t}", "title": "" }, { "docid": "9e6e90157f4263cb2d5c9cea85f1630d", "score": "0.54960597", "text": "protected abstract Object crossover(Object mother);", "title": "" }, { "docid": "ab4141d5a3df5c476260f3efd3bffefb", "score": "0.5490518", "text": "public String getOther2() {\n return other2;\n }", "title": "" }, { "docid": "6058249d3f3ed87758866ce57b4d1276", "score": "0.5486927", "text": "public Person getChild2() {\n return child2;\n }", "title": "" }, { "docid": "08a27863f9591c6698820634d0a10e3a", "score": "0.545997", "text": "Person getFather() {\n int score = Integer.MIN_VALUE;\n for (int i = 0; i < personArray.length; i++) {\n if (score < personArray[i].fitScore) {\n score = personArray[i].fitScore;\n fatherIndex = i;\n }\n }\n father = personArray[fatherIndex];\n return father;\n }", "title": "" }, { "docid": "d0360a4c88f88bea0325706ea633787c", "score": "0.5458821", "text": "private Nodo mayor(Nodo inicio){\r\n\r\n\t\tNodo actual = inicio;\r\n\r\n\t\twhile(actual.getDer() != null)\r\n\t\t\tactual = actual.getDer();\r\n\r\n\t\treturn actual;\r\n\t}", "title": "" }, { "docid": "607daad6b03a0706d070199507562945", "score": "0.543694", "text": "String getSelfMember();", "title": "" }, { "docid": "88f030e99aced5c3a594d0bda5b76c03", "score": "0.5435447", "text": "public void setMotherArea(GeographicArea motherArea) {\n this.motherArea = motherArea;\n }", "title": "" }, { "docid": "5da709f2fe8cd8e67945d2a3deea55cc", "score": "0.5432677", "text": "public Monster getM() {\r\n\t\treturn m;\r\n\t}", "title": "" }, { "docid": "217ade784512e097b46b65ab59cacf07", "score": "0.5421733", "text": "public static User getOtherCommunicant(User user, models.Message message) {\n return user.id.equals(message.from.id) ? message.to : message.from;\n }", "title": "" }, { "docid": "8b3cb620500e26a39c45569abe8a86a3", "score": "0.5402014", "text": "public <M extends Mirror> M getOwner();", "title": "" }, { "docid": "081c2561172236e5db0e2100762a39f4", "score": "0.5398934", "text": "private Object other() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "93ec128d784fba40fc569e2540af7bb1", "score": "0.5393069", "text": "String getRelationship();", "title": "" }, { "docid": "62adab5057c36640579ce18927b70c6a", "score": "0.5368751", "text": "public Room destination() { return sameroom; }", "title": "" }, { "docid": "ef52b306ddea830d7a893e16fd374d66", "score": "0.5355747", "text": "public int getOther(int a, int b);", "title": "" }, { "docid": "0af538ba7871bb31f458d0d112530fe5", "score": "0.53420043", "text": "public Place secondPlace() {\n return this.to;\n }", "title": "" }, { "docid": "c8f001c99de6bfd05d4dbd8a799653f3", "score": "0.5336812", "text": "public Individual tournament() {\n\t\tIndividual parentOne = this.getRandParent();\n\t\tIndividual parentTwo = this.getRandParent();\n\t\t\n\t\tif (parentOne.getFitness() > parentTwo.getFitness())\t\n\t\t\treturn parentOne;\n\t\telse if (parentOne.getFitness() < parentTwo.getFitness())\n\t\t\treturn parentTwo;\n\t\telse { /* unbiased tie breaker */\n\t\t\tint random = (int)Math.random() * 2;\n\t\t\tif (random == 1)\n\t\t\t\treturn parentOne;\n\t\t\telse\n\t\t\t\treturn parentTwo; } // end else\n\t}", "title": "" }, { "docid": "b71535ed1d45b56484ad6b1060bc28a3", "score": "0.5332649", "text": "@Override\n public java.lang.String getMiddle_name() {\n return _candidate.getMiddle_name();\n }", "title": "" }, { "docid": "f7cbe1425693d863ea09a84ae138d94b", "score": "0.53175014", "text": "public T getBoss() { \r\n return tree[0]; \r\n }", "title": "" }, { "docid": "ce3ccf2c2a8e0583807cfc254fbcfeca", "score": "0.5317362", "text": "public AssociationEndFacade getOtherEnd()\n {\n return this.getSuperManageableEntityAssociationEnd().getOtherEnd();\n }", "title": "" }, { "docid": "c04c218101cfde00ae9ad8c7a8ceeed9", "score": "0.53149605", "text": "private Entity getMiterChild(Entity entity, boolean exact) {\r\n \r\n ArrayList<Entity> children;\r\n \r\n if (exact) {\r\n children = SceneHierarchyUtility.getExactChildren(entity);\r\n } else {\r\n children = entity.getChildren();\r\n }\r\n \r\n for (int i = 0; i < children.size(); i++) {\r\n Entity child = children.get(i);\r\n \r\n if (child == entity)\r\n \tcontinue;\r\n \r\n // first check the entity is a miter entity\r\n Boolean canMiterCut = \r\n (Boolean)RulePropertyAccessor.getRulePropertyValue(\r\n child,\r\n ChefX3DRuleProperties.MITRE_CAN_CUT);\r\n\r\n if (canMiterCut) {\r\n return child;\r\n }\r\n }\r\n \r\n return null;\r\n\r\n }", "title": "" }, { "docid": "39d94ed230ff2773f6e7959568be8751", "score": "0.531028", "text": "public PhysicsBody findOtherBody(PhysicsBody body) {\n Validate.nonNull(body, \"body\");\n assert bodyA != bodyB;\n\n if (body == bodyA) {\n return bodyB;\n } else if (body == bodyB) {\n return bodyA;\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "db6ee691d15ef5e9ac6d18dfbba6ecf8", "score": "0.5305971", "text": "public Person getWoman()\n {\n return _woman;\n }", "title": "" }, { "docid": "58d4bd2ed334cd282e44dd7d9797345a", "score": "0.5304303", "text": "public static String getMotherPersonalName(){\n \n sName =\"\";\n sName = sName.replaceAll(\"\", \"\");\n sName = sName.toLowerCase();\n \n if(sName.equals(\"\")){\n char[] chMpers = sName.toCharArray();\n for(char tempMpers : chMpers){\n if(tempMpers == 'b'||tempMpers == 'c'||tempMpers == 'd'||tempMpers == 'f'||tempMpers == 'g'||tempMpers == 'h'||tempMpers == 'j'||tempMpers == 'k'||tempMpers == 'l'||tempMpers == 'm'\n ||tempMpers == 'n'||tempMpers == 'p'||tempMpers == 'q'||tempMpers == 'r'||tempMpers == 's'||tempMpers == 't'||tempMpers == 'v'||tempMpers == 'w'||tempMpers == 'x'||tempMpers == 'z'){\n if(tempMpers <=97 && tempMpers >=122){ \n resultmname+=tempMpers-96; \n }while(resultmname >9 || resultmname ==11 || resultmname == 22 || resultmname ==33){\n resultmname-=9;\n }\n }\n }\n }\n return (String.valueOf(resultmname));\t\t\n \n}", "title": "" }, { "docid": "91229f80a5ca1c90129981a53d630000", "score": "0.5278718", "text": "public List<String> getOther() {\n\t\treturn other;\n\t}", "title": "" }, { "docid": "133a93188d267e7b0f94b2acdbb56f33", "score": "0.52715737", "text": "private String otherPeopleString() {\r\n if (getAllPeople().size() == 1)\r\n return \"No one is here.\";\r\n\r\n String returnString = \"People here:\";\r\n\r\n for (int i = 0; i < getAllPeople().size(); i++) {\r\n Person person = (Person) getAllPeople().get(i);\r\n if (person.getType() != Person.HERO)\r\n returnString = returnString + \" \" + person.getName() + \",\";\r\n }\r\n\r\n return returnString;\r\n }", "title": "" }, { "docid": "89144a2858f62dcd0e5dae1b33cfdc7c", "score": "0.5269473", "text": "public IndividualTSP getBestChild(IndividualTSP child1, IndividualTSP child2) {\n\n if(child1.getterFitness() > child2.getterFitness() )\n return child2;\n return child1;\n\n }", "title": "" }, { "docid": "817030dc1fab862c7de0f50bda7a2ec0", "score": "0.5257092", "text": "public void setMotherAge (java.lang.String motherAge) {\n\t\tthis.motherAge = motherAge;\n\t}", "title": "" }, { "docid": "be895995c0d646ee784d7a9f4a5afd3c", "score": "0.5256933", "text": "public String getOtherInfo() {\r\n return otherInfo;\r\n }", "title": "" }, { "docid": "73d2284fbfad5c3ed470ad9f97c6a72c", "score": "0.52385443", "text": "public FriendPath getPath( Person other )\n {\n if ( !( other instanceof PersonImpl ) ) return null;\n\n Path path = shortestPath.findSinglePath( underlyingNode,\n ( (PersonImpl) other ).underlyingNode );\n return path == null ? null : new FriendPathImpl( socnet, path );\n }", "title": "" }, { "docid": "dd0905f88c01529bd3e272c1ccc7a988", "score": "0.52158093", "text": "public Player other() {\n if (this.equals(RED)) {\n return BLUE;\n } else {\n return RED;\n }\n }", "title": "" }, { "docid": "f2ee95aea447ae25761a4a81947f6332", "score": "0.51988024", "text": "public Pawn getPawn(Pawn otherUserPawn){\n return getPrimaryPawn()==otherUserPawn ? getSecondaryPawn() : getPrimaryPawn();\n }", "title": "" }, { "docid": "5572edea5e759f9861265d4bdb43a653", "score": "0.5193261", "text": "@Override\n\tpublic NodeSet<OWLNamedIndividual> getDifferentIndividuals(OWLNamedIndividual arg0) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "47d6a813cd444c5c12ee89657addd7a6", "score": "0.5175574", "text": "public Node getFather() {\n return father;\n }", "title": "" }, { "docid": "004aed42778cba26a94323fd4288d01a", "score": "0.5175126", "text": "String getPhotographer();", "title": "" }, { "docid": "44d4bc957bf611982606cdddf573fd3d", "score": "0.51612", "text": "public Person hentBestevenn() {\n if (kjenner[0] != null) {\n return kjenner[0];\n }\n return null;\n }", "title": "" }, { "docid": "093ec5e81d60f3c09a1777ee9ea6fc61", "score": "0.5137445", "text": "public Person getChild1() {\n return child1;\n }", "title": "" }, { "docid": "feab71770e35c8c706948863c3b8279a", "score": "0.51338196", "text": "public String getOther1() {\n return other1;\n }", "title": "" }, { "docid": "45165898472cca0f3f6f7add21fa0f1c", "score": "0.51337254", "text": "public String getOtherAccount()\r\n/* 68: */ {\r\n/* 69: 80 */ return this.otherAccount;\r\n/* 70: */ }", "title": "" }, { "docid": "ceacaf6177eaaf2ffd4e4c7ea5f40dcf", "score": "0.51326126", "text": "public Individu getMoreCompetent() {\n\n Individu moreCompetent = this.getIndividu(0);\n // Loop through individuals to find more competent\n for (int i = 0; i < this.nbIndividu; i++) {\n if (moreCompetent.getScore() <= this.getIndividu(i).getScore()) {\n moreCompetent = this.getIndividu(i);\n }\n }\n return moreCompetent;\n\t}", "title": "" }, { "docid": "ad56f369f7b0709ab799ddbc7277b90e", "score": "0.5116313", "text": "public static String m1(String userName, String wifeName, String childName) {\n\t\tclass User {\n\t\t\tpublic String name;\n\t\t\tpublic String relationship;\n\t\t\tpublic User(String name, String relationaship) {\n\t\t\t\tthis.name = name;\n\t\t\t\tthis.relationship = relationaship;\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn relationship+\" - \"+name+\"; \";\n\t\t\t}\n\t\t}\n\t\tUser user = new User(userName, \"Self\");\n\t\tUser wife = new User(wifeName, \"Wife\");\n\t\tUser child = new User(childName, \"Child\");\n\t\treturn \"Family info : \"+user.toString()+wife.toString()+child.toString();\n\t}", "title": "" }, { "docid": "6eee55c01964fcfbf5f7fe0a472ea995", "score": "0.50996757", "text": "Relationship getOpposite();", "title": "" }, { "docid": "161ce243328a79a7a7ae1be6fdb81dfa", "score": "0.50888985", "text": "public Player getWinner();", "title": "" }, { "docid": "7236e753f28ea92084e38b5508649ec0", "score": "0.50874937", "text": "public PlayerNode getOpponent() {\n return opponent;\n }", "title": "" }, { "docid": "4960e86b172a8e9596e5fad201e57d66", "score": "0.5083128", "text": "public AbstractMemberMetaData getNonOwnerMMD()\n {\n if (mmd.getMappedBy() != null)\n {\n // mapped-by is always non-owner\n return mmd;\n }\n\n if (mmd.getElementMetaData() != null && !hasColumn)\n {\n // element is always non-owner\n return mmd;\n }\n\n return otherMmd;\n }", "title": "" }, { "docid": "b05bb5c786b3e6a2ba96fc61d79cb3b4", "score": "0.5075989", "text": "public StoryTreeNode getMiddleChild(){\r\n\t\treturn middleChild;\r\n\t}", "title": "" }, { "docid": "923b9675f5904a8d6c34a5af15c6ea78", "score": "0.50626254", "text": "private Worm getClosestOpponent(){\n Worm resultWorm = null;\n int minimum = 999999;\n for(Worm enemyWorm : opponent.worms){\n // Cek apakah worm lawan tersebut masih hidup\n if(enemyWorm.health >0 ){\n //Cek jarak\n int distance = euclideanDistance(currentWorm.position.x, currentWorm.position.y, enemyWorm.position.x, enemyWorm.position.y);\n if(distance < minimum) {\n minimum = distance;\n resultWorm = enemyWorm;\n }\n }\n }\n return resultWorm;\n }", "title": "" }, { "docid": "c116674105b29a2e40934065d5d0124a", "score": "0.5062099", "text": "public AbstractMemberMetaData getOwnerMMD()\n {\n if (mmd.getMappedBy() != null)\n {\n // mapped-by is always non-owner\n return otherMmd;\n }\n\n if (mmd.getElementMetaData() != null && !hasColumn)\n {\n // element is always non-owner\n return null;\n }\n\n return mmd;\n }", "title": "" }, { "docid": "333adb8c383d5e87b5e2a8a91ea973d5", "score": "0.5060145", "text": "public double getOtherAmount() {\n return otherAmount;\n }", "title": "" }, { "docid": "14beec1dde1dcb39d2ae4d96f603a8e0", "score": "0.5058368", "text": "public String getFriend2() {\n return friend2;\n }", "title": "" }, { "docid": "a72f4763777f4fe3f287a8440a58d793", "score": "0.5057492", "text": "public interface getMegSelf {\n\n public void getmegSelf();\n public void destory();\n}", "title": "" }, { "docid": "5aaf8e433db39723a5de43d822e22c72", "score": "0.50503147", "text": "String getOldestPersonName();", "title": "" }, { "docid": "3162d6fe5db31ffb326afb037db875cf", "score": "0.50394684", "text": "@Override\n\tpublic Player getOpponent() {\n\t\treturn this.board.getBlackPlayer();\n\t}", "title": "" }, { "docid": "201a8ad80d7c5188039a5fe896a7f1b1", "score": "0.5037339", "text": "@Override\n\tpublic Node<OWLNamedIndividual> getSameIndividuals(OWLNamedIndividual arg0) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8027eaab41358ac54e8fede00213de35", "score": "0.5029315", "text": "public String getOtherCharge() {\r\n\t\treturn otherCharge;\r\n\t}", "title": "" }, { "docid": "1c6e06163fe846d11908cedf256873fb", "score": "0.50289714", "text": "public Player getPartner() {\r\n\t\treturn partner;\r\n\t}", "title": "" }, { "docid": "9119d832468232f914cc1ad1f596ab17", "score": "0.5028689", "text": "public Matrix getMiddle();", "title": "" }, { "docid": "fdcb95492785d36ec98f397096c47d5b", "score": "0.5028493", "text": "public String grabParent2() {\n return parent2;\n }", "title": "" }, { "docid": "1134c0ac39703f2437bb8d0199da15c3", "score": "0.50283986", "text": "Person getCreator();", "title": "" }, { "docid": "eaaba7da55aa4c6d21037206cd16d638", "score": "0.5028155", "text": "Man getMens();", "title": "" }, { "docid": "b903cbfe6b6218f65366250959cc7b5c", "score": "0.50274825", "text": "public Joueur getGagnant() {\n\tif (this.j1.getScore() == this.j2.getScore()) {return null;}\n\tif (this.j1.getScore() > this.j2.getScore()) {return this.j1;} else {return this.j2;}\n }", "title": "" }, { "docid": "991e9fd2f409419d9e72faaabbef115d", "score": "0.5002646", "text": "public EntityID getNeighbour() {\n return neighbour;\n }", "title": "" }, { "docid": "df53adda4609a9209cae709927c8e4ff", "score": "0.49955174", "text": "public java.lang.String getReceiverLastName2() {\r\n return receiverLastName2;\r\n }", "title": "" }, { "docid": "3f9e9a588eb0c8d520917d4b7ccd7ef0", "score": "0.49942777", "text": "public java.lang.String getMie(){\r\n return localMie;\r\n }", "title": "" }, { "docid": "f9d5ac8e83efd6c31bbd1a89f4b5a57b", "score": "0.49901134", "text": "private Player getTheWinner() {\n for (Player player : pLayers) {\n if (player.getNumberOfCards() > 0) {\n return player;\n }\n }\n return null;\n }", "title": "" }, { "docid": "441696128ceb4368a262af60a60e33e7", "score": "0.49869403", "text": "String getIndividualName();", "title": "" }, { "docid": "7b60d62aa0f0bc7ce5f809680b411421", "score": "0.49854177", "text": "public Patient GetZimmer2()\n {\n return Zimmer2;\n }", "title": "" }, { "docid": "eeb41045e5fcf2db252e342a6efeaf09", "score": "0.49834803", "text": "public Monster getMonster()\n\t{\n\t\tfor(Monster oMonster: alMonsters)\n\t\t{\n\t\t\treturn oMonster;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2ea3edaf85af4c487921c838d8016e4a", "score": "0.49811321", "text": "int getSubmarineNum();", "title": "" } ]
f6088f9d078d4a24cd2958d86cd13185
Act do whatever the JefeFinal wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.
[ { "docid": "4e9ee87cf7341f89b2d90f8b7af92293", "score": "0.5877454", "text": "public void act() \n {\n TanqueWorld mundo = (TanqueWorld) getWorld();\n if(Mov)\n {\n if(getX()<500)\n setLocation(getX()+5,getY());\n else\n Mov=false;\n }\n if(!Mov)\n {\n if(getX()>250)\n {\n setLocation(getX()-5,getY());\n }\n else\n Mov=true;\n }\n if(tiempo.millisElapsed()> 2000)\n {\n BalaEnemiga BE = new BalaEnemiga(3);\n mundo.addObject(BE,getX(),getY());\n tiempo.mark();\n }\n \n }", "title": "" } ]
[ { "docid": "ab4143141d1d6a0c6896e4a48c9d0b13", "score": "0.6827307", "text": "public void act() {\n }", "title": "" }, { "docid": "7c1cdc264ca8be3f858f374189fdbc83", "score": "0.66919667", "text": "public void act()\n {\n }", "title": "" }, { "docid": "7c1cdc264ca8be3f858f374189fdbc83", "score": "0.66919667", "text": "public void act()\n {\n }", "title": "" }, { "docid": "c30624c983ef745972d86ae60a640fc5", "score": "0.6683751", "text": "public void act() \n {\n \n }", "title": "" }, { "docid": "c30624c983ef745972d86ae60a640fc5", "score": "0.6683751", "text": "public void act() \n {\n \n }", "title": "" }, { "docid": "736cbd8fb5dd0698c61652c19080b539", "score": "0.66753745", "text": "public void actClick(){\n\texecutor.execute(() -> {\n\t\tif(GameKeeper.isCommandLegal(board, board.getCurrentPlayerID(), \"act\") == true){\n\t\t GameKeeper.actInput(\"\", board.getCurrentPlayerID(), board);\n\t\t}\t\t\n\t });\n }", "title": "" }, { "docid": "69868e404dbc80bc9a95683d1c212c60", "score": "0.6640404", "text": "public void act();", "title": "" }, { "docid": "1f61cfd4e0f970fbb091b079d9e31695", "score": "0.654463", "text": "public void act() \r\n {\n }", "title": "" }, { "docid": "58620c90ad7dc6ceeaccb20703234021", "score": "0.65298915", "text": "public void act() \r\n {\r\n // Add your action code here.\r\n }", "title": "" }, { "docid": "0f4a8af42737895c257eb624e90c551d", "score": "0.6507876", "text": "public void act()\n {\n mueveYvuelta();\n eat();// Clase de movimientos de delfin.\n }", "title": "" }, { "docid": "2fe48faed4d97288ed60e369dc0fc7c5", "score": "0.64700353", "text": "public void act() \n {\n \n }", "title": "" }, { "docid": "224e33d4ba3edaab885c813e830d46a5", "score": "0.6417015", "text": "public void act(){\r\n\t\tdifaction=c.act();//assign the success value of c.act to difcation\r\n\t\tif(difaction==1){//if difaction is 1 then the c.act was successful\r\n\t\t\tend();//the action was performed successfully so end the turn\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.6399597", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.6399597", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.6399597", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.6399597", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.6399597", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.6399597", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.6399597", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.6399597", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.6399597", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.6399597", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.6399597", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.6399597", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "c487eebd53c11cf9fc92941504175938", "score": "0.6390797", "text": "public void act() \n {\n\n }", "title": "" }, { "docid": "7f0dfff436da294e849a19044e62f499", "score": "0.6388003", "text": "@Override\n\tpublic void act(int delta) {\n\n\t}", "title": "" }, { "docid": "416caee6320d0380ed260b265fe9243c", "score": "0.63591313", "text": "public void act() \n {\n }", "title": "" }, { "docid": "416caee6320d0380ed260b265fe9243c", "score": "0.63591313", "text": "public void act() \n {\n }", "title": "" }, { "docid": "416caee6320d0380ed260b265fe9243c", "score": "0.63591313", "text": "public void act() \n {\n }", "title": "" }, { "docid": "416caee6320d0380ed260b265fe9243c", "score": "0.63591313", "text": "public void act() \n {\n }", "title": "" }, { "docid": "416caee6320d0380ed260b265fe9243c", "score": "0.63591313", "text": "public void act() \n {\n }", "title": "" }, { "docid": "416caee6320d0380ed260b265fe9243c", "score": "0.63591313", "text": "public void act() \n {\n }", "title": "" }, { "docid": "416caee6320d0380ed260b265fe9243c", "score": "0.63591313", "text": "public void act() \n {\n }", "title": "" }, { "docid": "416caee6320d0380ed260b265fe9243c", "score": "0.63591313", "text": "public void act() \n {\n }", "title": "" }, { "docid": "416caee6320d0380ed260b265fe9243c", "score": "0.63591313", "text": "public void act() \n {\n }", "title": "" }, { "docid": "416caee6320d0380ed260b265fe9243c", "score": "0.63591313", "text": "public void act() \n {\n }", "title": "" }, { "docid": "416caee6320d0380ed260b265fe9243c", "score": "0.63591313", "text": "public void act() \n {\n }", "title": "" }, { "docid": "7459c0fb399f4811265e8c91fbcdef5e", "score": "0.6358204", "text": "public void act() \n {\n //\n }", "title": "" }, { "docid": "318884588468449895a31ec146a896bc", "score": "0.63368", "text": "public void act() \n {\n movimientoBasico();\n limitesDelMapa();\n IA();\n obtenerVidaTotal();\n matar();\n pasarLocalizacion();\n }", "title": "" }, { "docid": "4c6fdae94479b1894ff76f8fac85f3a8", "score": "0.6322885", "text": "public void act() \n {\n if(Greenfoot.mouseClicked(this))\n {\n //checks for if the mouse clicks a button and which\n switch(type)\n {\n case \"teacup\": type = \"teancodetext\"; setPicture(); break;\n case \"teancodetext\": type = \"teacup\"; setPicture(); break;\n case \"world\": world(); break;\n case \"back\": Greenfoot.setWorld(world); break;\n case \"help\": Greenfoot.setWorld(new HelpWorld(world)); break;\n case \"newgame\": Greenfoot.setWorld(new HubWorld(false)); break;\n case \"continuegame\": Greenfoot.setWorld(new HubWorld(true)); break;\n case \"save\": Save.saveWarn(Save.prepareString(),\"Save.sav\"); break;\n case \"credits\": Greenfoot.setWorld(new CreditsWorld(world)); break;\n case \"helpNext\": changeHelp(+1); break;\n case \"helpPrevious\": changeHelp(-1); break;\n }\n }\n }", "title": "" }, { "docid": "a887b518453d64f2bc156ff0ef2b8eb8", "score": "0.6259834", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\tif (machineState == MARIE_RUNNING) { // If the machine is\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// running,\n\t\t\t\t\trunStop.setText(\"Run\"); // stop it; otherwise,\n\t\t\t\t\tstep.setEnabled(true); // start it.\n\t\t\t\t\tmachineState = MARIE_HALTED_BY_USER;\n\t\t\t\t\tsetStatusMessage(\" Halted at user request.\");\n\t\t\t\t} else {\n\t\t\t\t\trestartItem.setEnabled(true);\n\t\t\t\t\tstep.setEnabled(false);\n\t\t\t\t\trunStop.setText(\"Stop\");\n\t\t\t\t\trunStop.setMnemonic('T');\n\t\t\t\t\trunStop.setEnabled(true);\n\t\t\t\t\tif ((machineState == MARIE_HALTED_NORMAL) || (machineState == MARIE_HALTED_ABNORMAL))\n\t\t\t\t\t\trestart();\n\t\t\t\t\tmachineState = MARIE_RUNNING;\n\t\t\t\t\trunProgram();\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "4000aa4a869c07dcf8571cb8b79dc668", "score": "0.6259552", "text": "public void act() \n { \n\n //Apply Forces to change acceleration to move the person \n applyGravity(); \n applyJumpForce(); \n\n life();\n ifHit();\n moveRightAndLeft();\n\n teleport();\n hitTop();\n hitSide();\n\n move();\n }", "title": "" }, { "docid": "c43b98f996a6265206acf16bdcab9e20", "score": "0.6253106", "text": "public void act()\n {\n animate();\n }", "title": "" }, { "docid": "a431b5bf8b65b1481d51091fc3a6f4de", "score": "0.62499285", "text": "public void act() \n {\n // Add your action code here.\n checkWin();\n \n if( Greenfoot.isKeyDown(\"left\") )\n {\n setRotation(180);\n }\n else if( Greenfoot.isKeyDown(\"right\") )\n {\n setRotation(0);\n }\n else if( Greenfoot.isKeyDown(\"up\") )\n {\n setRotation(270);\n }\n else if( Greenfoot.isKeyDown(\"down\") )\n {\n setRotation(90);\n }\n \n \n canMove();\n movement();\n \n }", "title": "" }, { "docid": "312c6cc66a58cc93a7b15477fd54a511", "score": "0.6236735", "text": "public void run() {\n\n screen.getLogin().actionPerformedLogin(new LoginActionListener());\n screen.getMainmenu().addACList(new MainMenuActionListener());\n screen.getJoingame().actionPerformedJoinGame(new JoinGameActionListener());\n screen.getCreategame().actionPerformedCreateGame(new CreateGameActionListener());\n screen.getDeletegame().actionPerformedDeleteGame(new DeleteGameActionListener());\n\n /**\n * \"Back\" actionListeners.\n */\n\n screen.getJoingame().actionPerformedBack(new JoinGameActionListenerBack());\n screen.getCreategame().actionPerformedBack(new CreateGameActionListenerBack());\n screen.getDeletegame().actionPerformedBack(new DeleteGameActionListenerBack());\n\n }", "title": "" }, { "docid": "45aeabed1bfa0e0ee5670f37e2d5ed2a", "score": "0.6222361", "text": "public void act() {\n if (Greenfoot.isKeyDown(\"B\"))\n Greenfoot.setWorld(new StartScreen());\n }", "title": "" }, { "docid": "9172f0fd646f8ac0f226cfac3f057494", "score": "0.6180209", "text": "public void act()\n {\n if (canMove())\n {\n \tdance(stage);\n move();\n }\n }", "title": "" }, { "docid": "aa4a5b044f5b05cb951e80fd0a9b1347", "score": "0.61472195", "text": "@Override\n\tprotected void onAct(float delta) {\n\t}", "title": "" }, { "docid": "d4ad74885327ac9098fca338cc132407", "score": "0.6144504", "text": "public void action() {\n int executedPasses = -1;\n // run jess\n try {\n // run a maximum number of steps\n executedPasses = jess.run(MAX_JESS_PASSES);\n } catch (JessException je) {\n je.printStackTrace();\n }\n // if the engine stopped, block this behaviour\n if (executedPasses < MAX_JESS_PASSES)\n block();\n // the behaviour shall be unblocked by a call to restart()\n }", "title": "" }, { "docid": "17b3da26a1e4b79ca0dcf5fcf84b1bc9", "score": "0.61428195", "text": "public void act() \n {\n if(GameWorld.gamePaused == false)\n {\n //Checks if the jump timer is running or not. Makes sure professor is in the correct state\n if(jumpTimer == 0)\n {\n //Checks if professor is on ground or not and chnages his state accordingly\n if((Greenfoot.isKeyDown(\"up\") || Greenfoot.isKeyDown(\"space\")) && (checkIfOnGround()))\n {\n jump();\n }\n if((!checkIfOnGround()) && (isJumping == false))\n {\n fall();\n }\n }\n else\n {\n jump();\n }\n animation();\n move();\n getCurrency();\n }\n }", "title": "" }, { "docid": "d5f6d740008a77a62c5e3fcbacf213e9", "score": "0.6116291", "text": "public void act() \n {\n action(); \n checkFire();\n jump();\n delay++;\n bump();\n }", "title": "" }, { "docid": "93cbeda5a00b64dd58a577a72ac73023", "score": "0.6086223", "text": "public void act() \n {\n // No action code required\n }", "title": "" }, { "docid": "8c3042ac6e97cfcd1883e6877e43ab99", "score": "0.6078512", "text": "public void takeAction() {\n\t\tSystem.out.println(\"Check what?\");\n\t}", "title": "" }, { "docid": "e5de7e30c926aa1cdc5c33f4944473c8", "score": "0.6073629", "text": "void doAction();", "title": "" }, { "docid": "67e7ce9109e60e876ec63bb86be49a11", "score": "0.6073035", "text": "public void act() {\n MecanumDrive.drive(.5, 0, 0);\n }", "title": "" }, { "docid": "81cfee31e184e71212d8fe790501aa81", "score": "0.6067229", "text": "public void act() \n {\n if( ((GumballMachine)getWorld()).getAllowCoin() ) {\n //display message of Insert coin in Gumball Machine on Screen\n ((GumballMachine)getWorld()).addObject(new InsertCoin(), 367, 57) ;\n //Call Function insertCoin to check if coin can be inserted or not.\n //returns value true if coin can be inserted, false otherwise\n if(insertCoin()) {\n //to remove the displayed ball on screen\n ((GumballMachine)getWorld()).setIsBallDisplayedFalse() ;\n ((GumballMachine)getWorld()).setIsInValidCoinFalse() ;\n //Function to remove the coin dragged and inserted in Gumball Machine from Screen\n removeCoin() ;\n //Set values so no other coin can be inserted until specified otherwise.\n ((GumballMachine)getWorld()).setAllowCoinFalse() ;\n \n }\n } \n \n // if after inserting coin, crank is turned(Mouse Clicked), set value of CrankTurned to True.\n if ( Greenfoot.mousePressed(this) && !((GumballMachine)getWorld()).getAllowCoin() ) { \n //((GumballWorld)getWorld()).setCrankTurnedTrue() ;\n inspectorList = getWorld().getObjects(Inspector.class) ;\n if (inspectorList != null && inspectorList.size() > 0) {\n inspectorList.get(Greenfoot.getRandomNumber(inspectorList.size())).inspectCoin(getCoin());\n }\n }\n }", "title": "" }, { "docid": "355dea4a333594f11b0fd3bbfbe7dd15", "score": "0.6026418", "text": "public void act() \n {\n if(!theWorld.isPaused())\n animate();\n }", "title": "" }, { "docid": "5a96f0fb1651d358b0a6a6054257c0bb", "score": "0.60144323", "text": "public void act(){\n //set game speed every tick so it cant be changed by the slider\n //Greenfoot.setSpeed(GAME_SPEED);\n String key = Greenfoot.getKey();\n if (key!=null&& key.equals(\"escape\")) paused = !paused;\n if (paused) return;\n //do gravity\n List<IFalling> actors = getObjects(IFalling.class);\n for(IFalling actor:actors){\n actor.fall(GRAVITY);\n }\n if(useCamera && focus!=null){\n centreCameraOn(focus);\n }\n redrawBackground();\n \n \n if(!oDown && Greenfoot.isKeyDown(\"o\") && MuteControl.getIsMuted() == false ){\n oDown = true;\n MuteControl.decreaseVolume();\n }\n if (oDown && !Greenfoot.isKeyDown(\"o\") && MuteControl.getIsMuted() == false ){\n oDown = false;\n }\n if(!pDown && Greenfoot.isKeyDown(\"p\") && MuteControl.getIsMuted() == false){\n pDown = true;\n MuteControl.increaseVolume();\n }\n if(pDown && !Greenfoot.isKeyDown(\"p\") && MuteControl.getIsMuted() == false){\n pDown = false;\n }\n \n }", "title": "" }, { "docid": "990cb59812033fb08f3ad91eb1f158d8", "score": "0.59915096", "text": "public void act() \n {\n super.act();\n }", "title": "" }, { "docid": "990cb59812033fb08f3ad91eb1f158d8", "score": "0.59915096", "text": "public void act() \n {\n super.act();\n }", "title": "" }, { "docid": "394bc0e80879024ea2fd8ef7a6c9e7d3", "score": "0.5984817", "text": "public void act()\n {\n eatHamb(); //Es para que el actor accione con las instrucciones de abajo\n }", "title": "" }, { "docid": "74db4e5670a887d44eb0aa8bfb32cf1d", "score": "0.59831613", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tRun.run(production1,vn,vt);\n\t\t\t\t} catch (IOException 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\ttry {\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\tWin2 win2 = new Win2();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "fbbb28c8f2c32eb78683b304b9d598fd", "score": "0.5975836", "text": "public void actua() {}", "title": "" }, { "docid": "0def77b54f141708fca945b49034d729", "score": "0.5974822", "text": "public void act() \n {\n robotMovement();\n detectWallCollision();\n detectblockCollision();\n detecthouseCollision();\n eatPizza();\n }", "title": "" }, { "docid": "83f3388712393c6d048f1c5cbc93b448", "score": "0.59689283", "text": "@Override\n\tpublic void doAction() {\n\n\t}", "title": "" }, { "docid": "5f47ba1705e64a43a864f5fa909c5343", "score": "0.59609956", "text": "public void act() \n {\n animate();\n }", "title": "" }, { "docid": "34100b3766a091aed2aa56b6721fffe7", "score": "0.594501", "text": "@Override\n\tprotected void doit() {\n\t\tSystem.out.println(\"ing game\");\n\t}", "title": "" }, { "docid": "eb6efcc63a4fd1b2ea746d4d0326845a", "score": "0.5938748", "text": "public void act() \n {\n MouseInfo mi = Greenfoot.getMouseInfo();\n if(mi != null && mi.getClickCount()==1 && mi.getActor()==this) {\n getFinch().playNote(60, 1);\n }\n }", "title": "" }, { "docid": "55a190bdfe8a4b7cfb23fed76ce2c632", "score": "0.5910497", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\texecute();\n\t\t\t}", "title": "" }, { "docid": "c59234f0bcd858e9bb1ee26afc513607", "score": "0.59011763", "text": "public void act(){\n super.act();\n }", "title": "" }, { "docid": "9591917d25771922e5e71166d35b47b0", "score": "0.5885981", "text": "public void act() \n {\n // Add your action code here.\n move(10);\n if(isAtEdge())\n {\n turn(180);\n maju =!maju;\n }\n senggolBunga();\n bacaKB();\n }", "title": "" }, { "docid": "70d29d9f6653614cacd99eb044c04bfb", "score": "0.5879959", "text": "public boolean act(){\n return true;\n }", "title": "" }, { "docid": "d3b314ecd44268d82645911c99bde34a", "score": "0.5873793", "text": "public void act()\n {\n if(coolDownTimer == 0)\n {\n if(Greenfoot.mouseClicked(this) || Greenfoot.isKeyDown(\"space\"))\n {\n GameWorld g = new GameWorld();\n Greenfoot.setWorld(g);\n CurrencyCounter.currencyCollected = 0;\n PowerUps1.powerUp1 = 0;\n PowerUps2.powerUp2 = 0;\n PowerUps3.powerUp3 = 0;\n }\n }\n if((coolDownTimer < coolDownLimit) && (coolDownTimer >0))\n {\n coolDownTimer++;\n }\n if(coolDownTimer >= coolDownLimit)\n {\n coolDownTimer = 0;\n }\n /** Resets end game request and game paused flags ~ Michael Tornatta **/\n GameWorld.gameAskedToEnd = false;\n GameWorld.gamePaused = false;\n }", "title": "" }, { "docid": "6a237e0472253074edfae9b22fe9177b", "score": "0.58731294", "text": "public void act() \r\n {\r\n if (Greenfoot.mouseClicked(this)) {\r\n Greenfoot.setWorld(new pacmanWorld());\r\n }\r\n }", "title": "" }, { "docid": "0ad619f497d09e5970f8c6f684502488", "score": "0.5865342", "text": "public void act()\n {\n // Add\n move(2); // es para el movimiento y su rapidez \n if(Greenfoot.isKeyDown(\"left\")) // para controlar al acto con las flechas del teclado\n turn(-5);\n if(Greenfoot.isKeyDown(\"right\"))\n turn(5); \n \n eatPizza(); //la acción de comer pizza\n }", "title": "" }, { "docid": "5f577887cfcb09ee316d249ae6b78528", "score": "0.58621407", "text": "public void act()\n {\n this.explode();\n this.getStung();\n this.dieAway();\n }", "title": "" }, { "docid": "d096d3b730fd615d7ad8b9a4c43ec701", "score": "0.586123", "text": "public void actionPerformed(ActionEvent evt) { //TODO Change this to continue gym program\n\n }", "title": "" }, { "docid": "129ae2876f63aef9fe28324b6a9f548c", "score": "0.58508617", "text": "public static void run() {\n\t\t\n\t\tej2();\n\n\t}", "title": "" }, { "docid": "d8debe841ec3d85fd168390177c205a5", "score": "0.58428395", "text": "public void act() \r\n {\r\n if(Greenfoot.isKeyDown(\"left\"))\r\n {\r\n turn(-5);\r\n }\r\n \r\n if(Greenfoot.isKeyDown(\"right\"))\r\n {\r\n turn(5);\r\n }\r\n \r\n if(Greenfoot.isKeyDown(\"up\"))\r\n {\r\n velocity += ACCERLERATION;\r\n }\r\n \r\n if(Greenfoot.isKeyDown(\"down\"))\r\n {\r\n velocity += -ACCERLERATION;\r\n }\r\n \r\n move( ( int )( velocity + .5) );\r\n velocity *= FRICTION;\r\n \r\n if(this.isTouching(Ayy2.class))\r\n {\r\n getWorld().removeObject(this);\r\n System.out.println(\"Blue died\");\r\n }\r\n }", "title": "" }, { "docid": "c316fa425edaf25f773532753eb38ecd", "score": "0.5840211", "text": "protected void execute() {\n\t\tif (intake == false) {\n\t\t\tRobot.intakeSubsystem.manualReject(speed);\n\t\t} else {\n\t\t\tRobot.intakeSubsystem.manualIntake(speed);\n\t\t}\n\t}", "title": "" }, { "docid": "953747030119f946fd4af7707bbe9a1a", "score": "0.58289075", "text": "public void run() {\n\n\t\ttry {\n\t\t\trc.setIndicatorString(0, \"init()\");\n\t\t\tinit();\n\t\t} catch (GameActionException ex) {\n\t\t\trc.setIndicatorString(0, \"onException()\");\n\t\t\tonException(ex);\n\t\t}\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\trc.setIndicatorString(0, \"chooseActions()\");\n\t\t\t\tList<Action> actions = chooseActions();\n\t\t\t\trc.setIndicatorString(0, \"performActions()\");\n\t\t\t\tperformActions(actions);\n\t\t\t\trc.setIndicatorString(0, \"distributeSupply()\");\n\t\t\t\tdistributeSupply();\n\t\t\t\trc.setIndicatorString(0, \"onExcessBytecodes()\");\n\t\t\t\twhile (Clock.getBytecodeNum() < maxBytecodesToUse()) {\n\t\t\t\t\tonExcessBytecodes();\n\t\t\t\t}\n\t\t\t\trc.yield();\n\t\t\t} catch (GameActionException ex) {\n\t\t\t\trc.setIndicatorString(0, \"onException()\");\n\t\t\t\tonException(ex);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e3f6a7b6b2cfc1d4f2d2f2515a5eb3e6", "score": "0.5826928", "text": "private void runMe(){\n System.out.println(\"I am running..\");\n }", "title": "" }, { "docid": "5491d0d484a61ca457b952fbd5b57316", "score": "0.58267695", "text": "public void act() {\r\n\t\tsetX(getX());\r\n\t\tsetY(getY());\r\n\t}", "title": "" }, { "docid": "fff2eb4783a70aa04e75360a396ab06c", "score": "0.5826728", "text": "public void interact() { }", "title": "" }, { "docid": "864aba719dc50a22ea9128f8dc2f5201", "score": "0.5806692", "text": "public void act() \n {\n discoParty();\n if(Greenfoot.isKeyDown(\"e\")) {\n Classroom.isSnap = true;\n }\n if(Classroom.isSnap == true && Greenfoot.isKeyDown(\"e\")) {\n elChasquido();\n Classroom.isSnap = false;\n }\n if(Greenfoot.mouseClicked(this)){\n System.out.println(\"\"); \n getName();\n sayName(soundFile);\n \n \n myHobby(\"My hobbies include drawing, reading, and coding!\");\n mySiblings(\"I have \" + numberOfSisters() + \" older sister.\");\n //my action code\n rotateImage(); \n Dinosaur();\n \n \n } \n }", "title": "" }, { "docid": "f9392442c988f541661cad99f043825f", "score": "0.577264", "text": "public void act() \n {\n moveAndTurn();\n eat();\n switchImage();\n movesMade = movesMade + 1;\n }", "title": "" }, { "docid": "f11397fcdf5c596c5b2bb33547afa0f1", "score": "0.57563716", "text": "public void act() \r\n {\r\n elapsedTime = System.currentTimeMillis()- startTime;\r\n move(4);\r\n bounce();\r\n fade();\r\n }", "title": "" }, { "docid": "d9cc167fb20c3d5970924b981e8c9cec", "score": "0.5750172", "text": "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t\t{\n\t\t\t\t\tprogram = getProgram();\n\t\t\t\t\t\n\t\t\t\t\tif (program == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Choose a program first\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tprogram.simulateStepAtPC(a);\n\t\t\t\t\t\tsim = Simulator.getInstance();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sim.hasChanged())\n\t\t\t\t\t\t\trepaint();\n\t\t\t\t\t} catch (ProcessingException e1) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Choose a program first\");\n\t\t\t\t\t}\n\t\t\t\t}", "title": "" }, { "docid": "eb8932c11968adcdef9ca8fdc0737e62", "score": "0.5747045", "text": "public void run() {\n ActionState.getInstance().setState(getName(), _state);\n ThreadMgr.registerThread(this);\n try { \n Sequence sequence = null;\n do { \n\t try {\n\t sequence = _dist.waitForWork();\n\t if ( sequence != null ) { \n\t sequence.execute();\n\t _action.execute();\n\t }\n\t } catch (InterruptionException e) {\n\t _exception = e;\n\t // terminate the distribution right now\n\t _dist.allDone();\n\t break;\n\t\t } catch (DTFException e) {\n\t _exception = (DTFException) e;\n\t\t }\n } while (sequence != null);\n } catch (Throwable t) { \n _exception = new DTFException(\"Unable to execution action.\",t);\n // terminate the distribution right now\n _dist.allDone();\n } finally { \n \tActionState.getInstance().delState(getName());\n \tStateComponentHook.threadDead(getName());\n \tThreadMgr.unregisterThread(this);\n } \n }", "title": "" }, { "docid": "c4eba87e99f92d0f1beedafd7051c454", "score": "0.5745406", "text": "@Override\n\tdefault void run() {\n\t\ttry {\n\t\t\tdoAction();\n\t\t} catch (Throwable exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "61e07dd116ea27b070256cd16e17a674", "score": "0.5742672", "text": "public void act()\n {\n if(Greenfoot.mousePressed(this)){\n\t\t Adapter a = new ConcreteAdapter();\n\t\t a.getConcreteCommand(new HostButtonReceiver(username));\n command = new ConcreteCommand();\n command.setReceiver(new HostButtonReceiver(username));\n \n InvokerImpl in = new InvokerImpl();\n in.setCommand(command);\n \n in.invoke(); \n \n }\n }", "title": "" }, { "docid": "9c5ee4dffad5e2f5b9eeb7773823af45", "score": "0.5740147", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\trunning = true;\n\t\t\t}", "title": "" }, { "docid": "a421ee1232e908588ffbd667336c6130", "score": "0.57375425", "text": "public void act()\n {\n if(Greenfoot.mouseClicked(boton))\n {\n MenuPrincipal menu = new MenuPrincipal();\n Greenfoot.setWorld(menu);\n }\n if(Greenfoot.mouseClicked(botonA))\n {\n Ayuda ayuda = new Ayuda(); \n Greenfoot.setWorld(ayuda);\n }\n if(Greenfoot.mouseClicked(botonJ))\n {\n Juego jugar = new Juego(); \n Greenfoot.setWorld(jugar);\n }\n if(Greenfoot.mouseClicked(botonR))\n {\n Records record = new Records(); \n Greenfoot.setWorld(record);\n }\n }", "title": "" }, { "docid": "e4f683449bdb5484e71605d210c9ca81", "score": "0.5731126", "text": "public void invoke() {\r\n\t\tthis.State = FIPAAgentState.ACTIVE;\r\n\t}", "title": "" }, { "docid": "7a0ebfad687b1a02c0e13930f13c45c3", "score": "0.5726092", "text": "public void act() \n {\n if(Greenfoot.isKeyDown(\"left\")) {\n tintImage();\n }\n else {\n normalImage();\n }\n }", "title": "" }, { "docid": "32861510c41fb4b6d6c37fc0efa34bce", "score": "0.5724017", "text": "public static void execution()\n {\n List<Personnage> listPersonnage = new ArrayList<>();\n List<Personnage> listFighter = new ArrayList();\n System.out.println(\"Application has started\");\n String ch;\n do {\n ch = Command.getUserChoice();\n Dispatch.dispatchCMD(ch,listPersonnage,listFighter);\n }while(!ch.equals(\"Exit\"));\n }", "title": "" }, { "docid": "df85f94dfd551c26d33088bb2cb3d1d0", "score": "0.57230633", "text": "public void act()\n\t {\n\t \tprobOfDieing += 0.1;\n\t \t\n\t // Make sure fish is alive and well in the environment -- fish\n\t // that have been removed from the environment shouldn't act.\n\t if ( ! isInEnv() )\n\t return;\n\n\t // Try to breed.\n\t if ( ! breed() )\n\t // Did not breed, so try to move.\n\t move();\n\n\t // Determine whether this fish will die in this timestep.\n\t Random randNumGen = RandNumGenerator.getInstance();\n\t if ( randNumGen.nextDouble() < probOfDieing )\n\t die();\n\t }", "title": "" }, { "docid": "b6ebbc423c8c243e95cd4d6378697aeb", "score": "0.5722767", "text": "public void run(IAction action) {\n\t\tMessageDialog.openInformation(\n\t\t\twindow.getShell(),\n\t\t\t\"4 Plug-in\",\n\t\t\t\"Hello, Eclipse world\");\n\t}", "title": "" }, { "docid": "51a8a488dab75099a6f7e1719e233b17", "score": "0.5716713", "text": "void run()\r\n\t{\r\n\t\tSystem.out.println(\"Hai i am running\");\r\n\t}", "title": "" }, { "docid": "6e2cdceb7ed7e84bc08ed7ad285cce53", "score": "0.57149327", "text": "public final void run() {\n\t\tstateMachine.fire(\"Start\");\n\t}", "title": "" } ]
d4d19cf5cc33a351d439b7e178b16799
Created by Administrator on 2017/11/22.
[ { "docid": "40533245d24f5ac6c2aa7298680f5604", "score": "0.0", "text": "public interface UiElementInizializer {\n void updateUiElements();\n}", "title": "" } ]
[ { "docid": "27bc40cf2c5e26e0bf8b70807e0bcaed", "score": "0.6272859", "text": "@Override\r\n\tpublic void caminar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f4bccec648e6eb25ae6f4d7165ffc5a1", "score": "0.61512476", "text": "@Override\n\t\t\tpublic void Goruntule() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6114543", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "df970d9257b3282612e3b7ad881bca60", "score": "0.6076525", "text": "protected void bhjp5027AcedeMhjj027a() {\n }", "title": "" }, { "docid": "063ae6a38469d06ddf88fd9af6522171", "score": "0.5957681", "text": "@Override\r\n\tpublic void guru() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7ba2946d983bb1e7f8bf10a547e6dc3f", "score": "0.5951206", "text": "public void mo14489d() {\n }", "title": "" }, { "docid": "5fa8025455ce490980ad8cccfd13eea3", "score": "0.5929557", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "4d9e164e4e911df1380f4618e0fe7a08", "score": "0.59287965", "text": "OI (){\n\t\t\n\t}", "title": "" }, { "docid": "582acaef2e3110454651d58f22c1b299", "score": "0.5834498", "text": "public void mo14492g() {\n }", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.58154094", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "12104bcdcc776dd1fc9415fbc08ab9a4", "score": "0.5789489", "text": "private ExtentTS() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "f09b06bb707ed4096c0ea09f32a74824", "score": "0.5776827", "text": "private Estructura_BBDD() {}", "title": "" }, { "docid": "cf106c4357acca188056c470b50f748c", "score": "0.5773957", "text": "private Singletone() {}", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.5767671", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.5767671", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.5764657", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "817efc043b4e1d7ba918f254f9fa5ae6", "score": "0.5753414", "text": "@Override\n public void taunt() {\n\n }", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.5730799", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.57267165", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5679294", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.5676957", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "fa32f830910aeae71dc86bf338a8b0fc", "score": "0.5673856", "text": "@Override\n\tpublic void genrator() {\n\n\t}", "title": "" }, { "docid": "b7026792f4497bfcada6c43399e85e01", "score": "0.56684256", "text": "@Override\r\n\tpublic void kellton() {\n\t\t\r\n\t}", "title": "" }, { "docid": "408c943a1e709ecc31c924c09b2315eb", "score": "0.5667879", "text": "protected void bhyp0200RotinaDatas() {\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.566541", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.566541", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "655a271d981b875feb8fbc679e1a4f87", "score": "0.56576705", "text": "public void mo9609a() {\n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.5650215", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.56367046", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.5621301", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "d3082ef05aec8dc343ca108ab345f43a", "score": "0.56139076", "text": "@Override\r\n\tpublic void morir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d4e15b200c2022658af267c700b34269", "score": "0.56138873", "text": "@Override\n\tpublic void anlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "e58b18580efb996e86a2a2e3852d4b8d", "score": "0.55973595", "text": "private TypicalHomework() {}", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.5582805", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.5582805", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "d04355b7ad17e966b9f1c072e9560857", "score": "0.5572371", "text": "@Override\n\tpublic void create() {\n\t\t\n\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.55612993", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "cf22f889d7fbcd272d230fe8e0354d0c", "score": "0.5546575", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "0186c04ca535c3dac0fbdb7dbe4d3adc", "score": "0.5539287", "text": "private Autobus() {\r\n }", "title": "" }, { "docid": "40be4915804d3229e08fed067ec03fd6", "score": "0.5532759", "text": "Bug_616419() {\r\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5504443", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5504443", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5504443", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5504443", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5504443", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5504443", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5504443", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5504443", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5504443", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5504443", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5504443", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5504443", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "fcaf77b6f021a702cb2ac62e6c374cbd", "score": "0.5494234", "text": "@Override\r\n\tpublic void afficher() {\n\r\n\t}", "title": "" }, { "docid": "2f83b4f2097de28d0ab572de89d16ddd", "score": "0.54933876", "text": "public String getName() {\n return null; // replace this line with your code\n }", "title": "" }, { "docid": "f567ce9e210647e0edb52ccd99bd2199", "score": "0.54808223", "text": "@Override\n\tpublic void create() {\n\n\t}", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.5472485", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "a6691139984030f01dbe58e2ac54116d", "score": "0.5471063", "text": "@Override\n public void initialize() {\n \n \n }", "title": "" }, { "docid": "6e6512370dbb6f9cb6dcc13bd5aa3b2d", "score": "0.5467012", "text": "@Override\n\tvoid absone() {\n\t\t\n\t}", "title": "" }, { "docid": "2b60191c95bfebe3c1552e6c0a013032", "score": "0.54589564", "text": "@Override\r\npublic void generate() {\n\t\r\n}", "title": "" }, { "docid": "b28a6bba203633cc1b71e802b691f592", "score": "0.5453551", "text": "@Override\n\tpublic void shuthdown() {\n\n\t}", "title": "" }, { "docid": "f720716362bda7cd9a07a11b5f77ac9c", "score": "0.5441027", "text": "public void ObjeyiOlustur() {\n \r\n }", "title": "" }, { "docid": "8b3d721b1eea281aeed549a0c2e07286", "score": "0.54400605", "text": "private void StartotraL() {\n\t\t\r\n\t}", "title": "" }, { "docid": "316276ba4dfc453ccdb2c848359c272c", "score": "0.5432752", "text": "private void saniyedeBir() {\n\t\t\n\t\t\t\n\n\t }", "title": "" }, { "docid": "bd9b859f3a9c1a1565a6602ccdbe7e59", "score": "0.54270107", "text": "@Override\n\tpublic void fiyatt() {\n\n\t}", "title": "" }, { "docid": "84e689da281c4e439372ad200feeb98b", "score": "0.54249585", "text": "private void quoifaire() {\n\t\n\t\t\n\t}", "title": "" }, { "docid": "f1ba927115f9f59e1603c54d69c0ea6e", "score": "0.5423965", "text": "private BookmakerStep2Data() {\r\n\r\n\t}", "title": "" }, { "docid": "3a7e2f85779045bb06ab6b8f5498933d", "score": "0.54178894", "text": "public void mo5615a() {\n }", "title": "" }, { "docid": "a7998f80ff10142923d6914a455d5129", "score": "0.5416605", "text": "public void colisionBala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f476e77c136225b317ecc949b6b0851b", "score": "0.541281", "text": "public void mo5614b() {\n }", "title": "" }, { "docid": "b6fafdfe59a7c1ef15255636f5c8c47c", "score": "0.5408239", "text": "private Banca() {\n\t}", "title": "" }, { "docid": "cf5a17c7cafe1774bf1b271f6320e11b", "score": "0.5406606", "text": "public void create() {\r\n\t\r\n\t}", "title": "" }, { "docid": "ad4d9339a0e3b347b6df9466d063badd", "score": "0.5405991", "text": "public void piocher(){\n\t\t\n\t}", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.5405671", "text": "protected void method_3848() {}", "title": "" }, { "docid": "f04e880c42730389932a2272739ae0fc", "score": "0.5404203", "text": "public Autore() {\n\t\t\n\t}", "title": "" }, { "docid": "a4f5275a394442b77ca743e85e2d2f20", "score": "0.54013956", "text": "public void mo3892a() {\n }", "title": "" }, { "docid": "0b602319bd7a149f1b03847c52bc02d5", "score": "0.5400684", "text": "private Beehive() {\n \n }", "title": "" }, { "docid": "5262660a9edcdf4c362ff4b7231a8c41", "score": "0.5392784", "text": "@Override\r\n\tpublic void dibujar() {\n\r\n\t}", "title": "" }, { "docid": "5c40bd2e5c1d492aac9d5983bf52d2e3", "score": "0.5384022", "text": "@Override\n\tpublic void vericar() {\n\t\t\n\t}", "title": "" }, { "docid": "cde927777ccca33f6086b096a7c3c967", "score": "0.53817695", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "cde927777ccca33f6086b096a7c3c967", "score": "0.53817695", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "8e744700cf25ab88e9cc012a1dc78649", "score": "0.5379985", "text": "public void Create() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5379734", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5379734", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.5369914", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53622526", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53622526", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53622526", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53622526", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.53622526", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5359195", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5359195", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "42693116fba02f3f07be1ab752c6d9bc", "score": "0.5355782", "text": "@Override\r\n\tpublic void concentrarse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8bb51b817eb666c4867465105352c93f", "score": "0.53544754", "text": "@Override\r\n\tvoid oracle() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e454f6f6c3638cb7f5b62a8498d8f55c", "score": "0.5352664", "text": "protected Metadata() {/* intentionally empty block */}", "title": "" }, { "docid": "44e9fc91a5c3fffcd675f74c407300af", "score": "0.53491676", "text": "private AbiUtils() {}", "title": "" }, { "docid": "28c210625818a8a913a584e47f3436ea", "score": "0.5345552", "text": "private void Ubicaccion() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "ac49bc20e4284501686c055a20a8be42", "score": "0.534448", "text": "public OthelloAI56(){\n\n\t}", "title": "" }, { "docid": "5ec00384d83fde391dcc1109e082d025", "score": "0.534357", "text": "@Override\n public void initialize() {\n \n\n }", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.53420645", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "117baa3480aa53730bafce5966d25b7f", "score": "0.5337909", "text": "public static void main(String[] args) throws Exception{\n \n \n }", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.53351253", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" } ]
d1562820be072607801257af7e062090
double dirDouble = (Math.atan2(xSpeed, ySpeed) / (Math.PI / 2) + 2); int direction = (int) Math.round(dirDouble) % BMP_ROWS;
[ { "docid": "9f726ebbe0b7018f567b2ea150c28ba1", "score": "0.0", "text": "private int getAnimationRow() {\n return DIRECTION_TO_ANIMATION_MAP[direccio];\n }", "title": "" } ]
[ { "docid": "718425d273946038d4aad59d4091e90c", "score": "0.651135", "text": "private static int GetDirection(PachinkoBall ball)\r\n\t{\n\t\tint move = (int)((Math.random() * 100) % 2);\r\n\t\tint temp = (int)((Math.random() * 100) % 2);\r\n\t\t\r\n\t\t//get direction\r\n\t\tif (ball.pos.x > MAX_POSITION_X / 2 && move == 1 && temp == 1)\r\n\t\t{\r\n\t\t\tmove = (int)((Math.random() * 100) % 2);\r\n\t\t}\r\n\t\telse if (ball.pos.x <= MAX_POSITION_X / 2 && move == 0 && temp == 1)\r\n\t\t{\r\n\t\t\tmove = (int)((Math.random() * 100) % 2);\r\n\t\t}\r\n\t\t\r\n\t\treturn move;\r\n\t}", "title": "" }, { "docid": "513ebba11e05013223c44722486466d5", "score": "0.64517075", "text": "private int getAnimationRow() {\n\t\tdouble dirDouble = (Math.atan2(xSpeed, ySpeed) / (Math.PI / 2) + 2);\n\t\tint direction = (int) Math.round(dirDouble) % BMP_ROWS;\n\t\treturn DIRECTION_TO_ANIMATION_MAP[direction];\n\t}", "title": "" }, { "docid": "3f304e6d42cdf295c617942d4e0ee80f", "score": "0.63780993", "text": "private int getAnimationRow() {\n\t\tdouble dblArcCordinate = (Math.atan2(xSpeed, ySpeed) / (Math.PI / 2) + 2);\n\t\tint intArcCordinate = (int) Math.round(dblArcCordinate) % BMP_ROWS;\n\t\treturn intDirection[intArcCordinate];\n\t}", "title": "" }, { "docid": "d32023878fd507ea9dcc97a36d32e496", "score": "0.6209355", "text": "public static int atan( int Y, int X )\n{\nboolean swap = false;\n\nint top = Math.abs(Y);\nint bottom = Math.abs(X);\nif (top > bottom)\n{\nint btemp = bottom;\nbottom = top;\ntop = btemp;\nswap = true;\n}\nelse if (bottom == 0)\nreturn -300;\n\n// this should keep index inbounds [0, 45]\nint index = (top * 45) / bottom;\nint angle = AtanTable[index];\n\nif (swap)\nangle = 90 - angle;\n\n// X & Y += 180\n// X & !Y = ...90\n// !X & Y = ... 270\nif ( (X < 0) && (Y < 0) )\nangle += 180;\nelse if (Y < 0)\n{\nangle = 90 - angle;\nangle += 270;\n}\nelse if ( X < 0)\n{\nangle = 90 - angle;\nangle += 90;\n}\n\nif (angle == 360)\nangle = 0;\n\nreturn angle;\n}", "title": "" }, { "docid": "259d35a7d978f915022bef21af54dd93", "score": "0.5998371", "text": "public double getDirection() {\n double value = Math.atan(magY/magX);\n // Convert to clockwise.\n value *= -1;\n // And move zero to north (instead of east).\n value += Math.PI/2;\n\n if (magX < 0) {\n value += Math.PI;\n }\n\n // Normalise to the expected range.\n value = value > Math.PI*2 ?\n value - Math.PI*2 :\n value;\n\n return value;\n }", "title": "" }, { "docid": "0f84e6a380e653c21b168aae4d0c74aa", "score": "0.5950151", "text": "public int getRotatedDirection(int direction){\n\t\treturn (direction+1)%4;\n\t}", "title": "" }, { "docid": "326194337a30f6b4274cc51c96091d73", "score": "0.5797228", "text": "void caculateDirection() {\n\r\n if (mapType == \"dif\") {\r\n if (wayPointIndex >= DifWay.DifWayPoints.length) {\r\n // Den dich\r\n return;\r\n }\r\n\r\n Point curWayPoint = DifWay.DifWayPoints[wayPointIndex];\r\n if (distance(x, y, curWayPoint.x, curWayPoint.y) <= speed) {\r\n x = curWayPoint.x;\r\n y = curWayPoint.y;\r\n WpX = x;\r\n\r\n Point nextWayPoint = getNextDifWayPoint();\r\n if (nextWayPoint == null) return;\r\n double deltaX = nextWayPoint.x - x;\r\n double deltaY = nextWayPoint.y - y;\r\n if (deltaX > speed) direction = Direction.RIGHT;\r\n else if (deltaX < -speed) direction = Direction.LEFT;\r\n else if (deltaY > speed) direction = Direction.DOWN;\r\n else if (deltaY <= -speed) direction = Direction.UP;\r\n }\r\n }\r\n\r\n if (mapType == \"ez\") {\r\n if (wayPointIndex >= EzWay.EzWayPoints.length) {\r\n // Den dich\r\n return;\r\n }\r\n\r\n Point curWayPoint = EzWay.EzWayPoints[wayPointIndex];\r\n if (distance(x, y, curWayPoint.x, curWayPoint.y) <= speed) {\r\n x = curWayPoint.x;\r\n y = curWayPoint.y;\r\n WpX = x;\r\n\r\n Point nextWayPoint = getNextEzWayPoint();\r\n if (nextWayPoint == null) return;\r\n double deltaX = nextWayPoint.x - x;\r\n double deltaY = nextWayPoint.y - y;\r\n if (deltaX > speed) direction = Direction.RIGHT;\r\n else if (deltaX < -speed) direction = Direction.LEFT;\r\n else if (deltaY > speed) direction = Direction.DOWN;\r\n else if (deltaY <= -speed) direction = Direction.UP;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "61064da7212492615d728e8a46ba1b16", "score": "0.57801306", "text": "public void move()\n\t{\n\t\tint deltaX = magnitudeX*directionX;\n\t\tint deltaY = magnitudeY*directionY;\n\t\tint tempX = x+deltaX;\n\t\tint tempY = y+deltaY;\n\t\t//System.out.println(directionX+ \" \"+directionY);\n\t\tif(tempX<0||tempX>360)\n\t\t{\n\t\t\tdirectionX*=-1;\n\t\t\tint random = (int)(Math.random()*3);\n\t\t\tif(random==0)directionY=-1;\n\t\t\telse if(random==1)directionY=0;\n\t\t\telse directionY = 1;\n\t\t}\n\t\tif(tempY<0||tempY>330)\n\t\t{\n\t\t\tdirectionY*=-1;\n\t\t\tint random = (int)(Math.random()*3);\n\t\t\tif(random==0)directionX=-1;\n\t\t\telse if(random==1)directionX=0;\n\t\t\telse directionX = 1;\n\t\t}\n\t\tif(directionX==0&&directionY==0)directionX=1;\n\t\t deltaX = magnitudeX*directionX;\n\t\t deltaY = magnitudeY*directionY;\n\t\tx+=deltaX;\n\t\ty+=deltaY;\n\t\t\n\t}", "title": "" }, { "docid": "13ed59cd22c69eaca4515b264c6107ba", "score": "0.5758191", "text": "private void testerBordures() {\n if(y + hauteurImg == hauteurFenetre) {\n directionEnY = 1;\n }\n // if (Tape la bordure basse)\n if(y == 0) {\n directionEnY = 0;\n }\n }", "title": "" }, { "docid": "9151b4621349109f230f5bcfad434dc1", "score": "0.5704779", "text": "public final float pa(Pixel a) {\r\n return (float) Math.atan2(x-a.x, y-a.y);}", "title": "" }, { "docid": "051aa0963eabc547163c08cac2dac190", "score": "0.566913", "text": "public int scanpit(int x,int y,int dir)\n\t{\n\t\t\n\t\tswitch (dir)\n\t\t{\n\t\tcase 0:\n\t\t\tif (grid[x][y+1]!=3) grid[x][y+1]=5;\n\t\t\tif (grid[x+1][y]!=3) grid[x+1][y]=5;\n\t\t\tif (grid[x-1][y]!=3) grid[x-1][y]=5;\n\t\t\t\n\t\t\tif (grid[x][y+1]!=8) grid[x][y+1]=3;\n\t\t\tif (grid[x+1][y]!=8) grid[x+1][y]=3;\n\t\t\tif (grid[x-1][y]!=8) grid[x-1][y]=3;\n\t\t\t\n\t\t\tif (grid[x][y+1]!=5) dir=1;\n\t\t\tif (grid[x+1][y]!=5) dir=2;\n\t\t\tif (grid[x-1][y]!=5) dir=3;\n\t\t\t\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\t\n\t\t\tif (grid[x+1][y]!=3) grid[x+1][y]=5;\n\t\t\tif (grid[x][y-1]!=3) grid[x][y-1]=5;\n\t\t\tif (grid[x][y+1]!=3) grid[x][y+1]=5;\n\t\t\t\n\t\t\tif (grid[x+1][y]!=8) grid[x+1][y]=3;\n\t\t\tif (grid[x][y-1]!=8) grid[x][y-1]=3;\n\t\t\tif (grid[x][y+1]!=8) grid[x][y+1]=3;\n\t\t\t\n\t\t\tif (grid[x+1][y]!=5) dir=0;\n\t\t\tif (grid[x][y-1]!=5) dir=2;\n\t\t\tif (grid[x][y+1]!=5) dir=3;\n\t\t\t\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\t\n\t\t\tif (grid[x+1][y]!=3) grid[x+1][y]=5;\n\t\t\tif (grid[x][y-1]!=3) grid[x][y-1]=5;\n\t\t\tif (grid[x-1][y]!=3) grid[x-1][y]=5;\n\t\t\t\n\t\t\tif (grid[x+1][y]!=8) grid[x+1][y]=3;\n\t\t\tif (grid[x][y-1]!=8) grid[x][y-1]=3;\n\t\t\tif (grid[x-1][y]!=8) grid[x-1][y]=3;\n\t\t\t\n\t\t\tif (grid[x+1][y]!=5) dir = 0;\n\t\t\tif (grid[x][y-1]!=5) dir = 1;\n\t\t\tif (grid[x-1][y]!=5) dir = 3;\n\t\t\t\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\t\n\t\t\tif (grid[x][y+1]!=3) grid[x][y+1]=5;\n\t\t\tif (grid[x][y-1]!=3) grid[x][y-1]=5;\n\t\t\tif (grid[x-1][y]!=3) grid[x-1][y]=5;\n\t\t\t\n\t\t\tif (grid[x][y+1]!=8) grid[x][y+1]=3;\n\t\t\tif (grid[x][y-1]!=8) grid[x][y-1]=3;\n\t\t\tif (grid[x-1][y]!=8) grid[x-1][y]=3;\n\t\t\t\n\t\t\tif (grid[x][y+1]!=5) dir = 0;\n\t\t\tif (grid[x][y-1]!=5) dir = 1;\n\t\t\tif (grid[x-1][y]!=5) dir = 2;\n\t\t\t\n\t\t\tbreak;\n\t\tdefault:\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\treturn dir;\n\t\t\n\t}", "title": "" }, { "docid": "774c69c4ae119cdf361fcc856024e895", "score": "0.5668035", "text": "float getDirectionPitch();", "title": "" }, { "docid": "5fd2de604c33b0c0b0d7b6beacf817bc", "score": "0.5619346", "text": "private int rightturn() {\n return (direction + 1) % 6;\n }", "title": "" }, { "docid": "f524ae54174713568068ec0753c2635d", "score": "0.55970365", "text": "public int scanwumpus(int x,int y,int dir)\n\t{\n\t\t\n\t\tswitch (dir)\n\t\t{\n\t\tcase 0:\n\t\t\tif ( (grid[x][y+1]!=4) && (grid[x][y+1]!=5)) \n\t\t\t{\n\t\t\t\tgrid[x][y+1]=6;\n\t\t\t wumpus_detected = true;\n\t\t\t}\n\t\t\telse if ( (grid[x+1][y]!=4) && (grid[x+1][y]!=5))\n\t\t\t{\n\t\t\t\tgrid[x+1][y]=6;\n\t\t\t\twumpus_detected = true;\n\t\t\t}\n\t\t\telse if ((grid[x-1][y]!=4) && (grid[x-1][y]!=5)) \n\t\t\t\t{grid[x-1][y]=6;\n\t\t\t\twumpus_detected = true;\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\telse if (grid[x][y+1]!=8) grid[x][y+1]=4;\n\t\t\telse if (grid[x+1][y]!=8) grid[x+1][y]=4;\n\t\t\telse if (grid[x-1][y]!=8) grid[x-1][y]=4;\n\t\t\t\n\t\t\t if (grid[x][y+1]!=6) dir=1;\n\t\t\t if (grid[x+1][y]!=6) dir=2;\n\t\t\t if (grid[x-1][y]!=6) dir=3;\n\t\t\t\n\t\t\t \n\t\t\t \n\t\t\tbreak;\n\t\tcase 1:\n\t\t\t\n\t\t\tif ((grid[x+1][y]!=4) && (grid[x+1][y]!=5)) \n\t\t\t\t{grid[x+1][y]=6;\n\t\t\t\twumpus_detected = true;\n\t\t\t\t}\n\t\t\telse if ((grid[x][y-1]!=4) && (grid[x][y-1]!=5)) \n\t\t\t\t{grid[x][y-1]=6;\n\t\t\t\twumpus_detected = true;\n\t\t\t\t}\n\t\t\telse if ((grid[x][y+1]!=4) && (grid[x][y+1]!=5)) \n\t\t\t\t{grid[x][y+1]=6;\n\t\t\t\twumpus_detected = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\telse if ((grid[x+1][y]!=8) && (grid[x][y+1]!=5)) grid[x+1][y]=4;\n\t\t\telse if ((grid[x][y-1]!=8) && (grid[x][y-1]!=5))grid[x][y-1]=4;\n\t\t\telse if ((grid[x][y+1]!=8) && (grid[x][y+1]!=5)) grid[x][y+1]=4;\n\t\t\t\n\t\t\t if (grid[x+1][y]!=6) dir=0;\n\t\t\t if (grid[x][y-1]!=6) dir=2;\n\t\t\t if (grid[x][y+1]!=6) dir=3;\n\t\t\t\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\t\n\t\t\tif ((grid[x+1][y]!=4) && (grid[x+1][y]!=5))\n\t\t\t\t{grid[x+1][y]=6;\n\t\t\t\twumpus_detected = true;\n\t\t\t\t}\n\t\t\telse if ((grid[x][y-1]!=4) && (grid[x][y-11]!=5)) \n\t\t\t\t{grid[x][y-1]=6;\n\t\t\t\twumpus_detected = true;\n\t\t\t\t}\n\t\t\telse if ((grid[x-1][y]!=4) && (grid[x-1][y]!=5)) \n\t\t\t\t{grid[x-1][y]=6;\n\t\t\t\twumpus_detected = true;\n\t\t\t\t}\n\t\t\t\n\t\t\telse if ((grid[x+1][y]!=8) && (grid[x+1][y]!=5))grid[x+1][y]=4;\n\t\t\telse if ((grid[x][y-1]!=8) && (grid[x][y-11]!=5))grid[x][y-1]=4;\n\t\t\telse if ((grid[x-1][y]!=8) && (grid[x-1][y]!=5))grid[x-1][y]=4;\n\t\t\t\n\t\t\t if (grid[x+1][y]!=6) dir = 0;\n\t\t\t if (grid[x][y-1]!=6) dir = 1;\n\t\t\t if (grid[x-1][y]!=6) dir = 3;\n\t\t\t\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\t\n\t\t\tif ( (grid[x][y+1]!=4) && (grid[x][y+1]!=5)) \n\t\t\t\t{grid[x][y+1]=6;\n\t\t\t\twumpus_detected = true;\n\t\t\t\t}\n\t\t\telse if ( (grid[x][y-1]!=4) && (grid[x][y-1]!=5)) \n\t\t\t\t{grid[x][y-1]=6;\n\t\t\t\twumpus_detected = true;\n\t\t\t\t}\n\t\t\telse if ( (grid[x-1][y]!=4) && (grid[x-1][y]!=5)) \n\t\t\t\t{grid[x-1][y]=6;\n\t\t\t\twumpus_detected = true;\n\t\t\t\t}\n\t\t\t\n\t\t\telse if ( (grid[x][y+1]!=8) && (grid[x][y+1]!=5)) grid[x][y+1]=4;\n\t\t\telse if ( (grid[x][y-1]!=8) && (grid[x][y-1]!=5)) grid[x][y-1]=4;\n\t\t\telse if ( (grid[x-1][y]!=8) && (grid[x-1][y]!=5)) grid[x-1][y]=4;\n\t\t\t\n\t\t\tif (grid[x][y+1]!=6) dir = 0;\n\t\t\tif (grid[x][y-1]!=6) dir = 1;\n\t\t\tif (grid[x-1][y]!=6) dir = 2;\n\t\t\t\n\t\t\tbreak;\n\t\tdefault:\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\treturn dir;\n\t\t\n\t}", "title": "" }, { "docid": "650e1a809128a25e9b5f4c76e3db6ca7", "score": "0.5593123", "text": "public int getForwardDirection() {\n/* 613 */ return this.dataWatcher.getWatchableObjectInt(18);\n/* */ }", "title": "" }, { "docid": "5b6b298dfe5cd3f5b148b7b658447931", "score": "0.5592859", "text": "public final int GetBallDirection()\n {\n return Parent.GetBallDirection(this);\n }", "title": "" }, { "docid": "96cce03a6532490d4189d9096c763eb4", "score": "0.5590243", "text": "public double getDirection()\n {\n double theta = Math.atan2(y, x);\n if (theta >= 0)\n return theta;\n else\n return 2 * Math.PI + theta;\n }", "title": "" }, { "docid": "37cfb464d3b7451a14aa5f7d77b3bf41", "score": "0.5588147", "text": "public int horizontalBounce(int oldDir) {\n return 0 - oldDir;\n }", "title": "" }, { "docid": "b2e7be3b1bbe01ef4240148327f9bb95", "score": "0.55738264", "text": "public static void updateLocationAndDirection() {\n\t\tif (xloc + imgWidth > frameWidth) { //hitting right boundary\r\n\t\t\txIncr = -xIncr;\r\n\t\t\tswitch (d){\t\t\r\n\t\t\tcase EAST:\r\n\t\t\t\td = Direction.WEST;\r\n\t\t\t\tbreak;\r\n\t\t\tcase NORTHEAST:\r\n\t\t\t\td = Direction.NORTHWEST;\r\n\t\t\t\tbreak;\r\n\t\t\tcase SOUTHEAST:\r\n\t\t\t\td = Direction.SOUTHWEST;\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}\r\n\t\tif (xloc < 0) {\t//hitting left boundary\r\n\t\t\txIncr = -xIncr;\r\n\t\t\tswitch (d) {\r\n\t\t\tcase WEST:\r\n\t\t\t\td = Direction.EAST;\r\n\t\t\t\tbreak;\r\n\t\t\tcase NORTHWEST:\r\n\t\t\t\td = Direction.NORTHEAST;\r\n\t\t\t\tbreak;\r\n\t\t\tcase SOUTHWEST:\r\n\t\t\t\td = Direction.SOUTHEAST;\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}\r\n\t\tif (yloc < 0 ) {\t//hitting top boundary\r\n\t\t\tyIncr = -yIncr;\r\n\t\t\tswitch (d) {\r\n\t\t\tcase NORTH:\r\n\t\t\t\td = Direction.SOUTH;\r\n\t\t\t\tbreak;\r\n\t\t\tcase NORTHEAST:\r\n\t\t\t\td = Direction.SOUTHEAST;\r\n\t\t\t\tbreak;\r\n\t\t\tcase NORTHWEST:\r\n\t\t\t\td = Direction.SOUTHWEST;\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}\r\n\t\tif (yloc + imgHeight > frameHeight) {\t\t//hitting bottom boundary\r\n\t\t\tyIncr = -yIncr;\r\n\t\t\tswitch (d) {\r\n\t\t\tcase SOUTH:\r\n\t\t\t\td = Direction.NORTH;\r\n\t\t\t\tbreak;\r\n\t\t\tcase SOUTHEAST:\r\n\t\t\t\td = Direction.NORTHEAST;\r\n\t\t\t\tbreak;\r\n\t\t\tcase SOUTHWEST:\r\n\t\t\t\td = Direction.NORTHWEST;\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}\r\n\t\t\r\n\t\t//update locations\r\n\t\txloc = xloc + xIncr;\r\n\t\tyloc = yloc + yIncr;\r\n\t}", "title": "" }, { "docid": "089a1455009796057967377d7cc89fda", "score": "0.55711645", "text": "public void rimbalza(float a){\n float c = (float) Math.cos(a);\n float s = (float) Math.sin(a);\n dir.x *= -1*c;\n //dir.y *= -1*s;\n }", "title": "" }, { "docid": "76a6fd9160e284c35c1c070ed399319e", "score": "0.55633456", "text": "private int m39328b() {\n return (int) ((20.0f / ((float) this.f35515c)) * 360.0f);\n }", "title": "" }, { "docid": "4e0c7b4715ed0b0c1cee48eb70a0345d", "score": "0.5555428", "text": "public double getBearingTo(POI w){\n\t\tdouble diff_long = w.getLocation().getLongitude() - loc.getLongitude();\n\t\t\n\t\tdouble y = Math.sin(diff_long) * Math.cos(w.getLocation().getLatitude());\n\t\tdouble x = (Math.cos(loc.getLatitude()) * Math.sin(w.getLocation().getLatitude())) -\n\t\t (Math.sin(loc.getLatitude()) * Math.cos(w.getLocation().getLatitude())*Math.cos(diff_long));\n\t\t\n\t\tdouble brng = Math.atan2(y, x); \n\t\t\n\t\tbrng = Math.toDegrees(brng); \n\t\t\n\t\tbrng = 360 - ((brng + 360) % 360); \n\t\t\n\t\treturn brng; \n\t}", "title": "" }, { "docid": "2583f6b6e2c9eaba73e2de6748a92765", "score": "0.55470866", "text": "public int verticalBounce(int oldDir) {\n return 180 - oldDir;\n }", "title": "" }, { "docid": "b78cb4aa3ecf85073654f83a5e8dbe5a", "score": "0.5485159", "text": "private int checkObstacleForward() {\n\t\tint distance = 0;\n\t\tif (curDirection == Heading.NORTH){\n\t\t\tdistance = findObstacleIncreaseY();\n\t\t}\n\t\telse if (curDirection == Heading.SOUTH){\n\t\t\tdistance = findObstacleDecreaseY();\n\t\t}\n\t\telse if (curDirection == Heading.EAST){\n\t\t\tdistance = findObstacleIncreaseX();\n\t\t}\n\t\telse if (curDirection == Heading.WEST){\n\t\t\tdistance = findObstacleDecreaseX();\n\t\t}\n\t\treturn distance;\n\t}", "title": "" }, { "docid": "4f914f9f0df8d610416613f0206b421c", "score": "0.54817724", "text": "public double getMountedYOffset() {\n/* 104 */ return this.height * 0.0D - 0.30000001192092896D;\n/* */ }", "title": "" }, { "docid": "a62dbe3b655463ed07eba03d30c7a141", "score": "0.54720086", "text": "public void travelToBackwards(double x, double y) {\r\n\twhile((odometer.getX() > x + 2)||(odometer.getX() < x - 2)||(odometer.getY() > y + 2)||(odometer.getY() < y - 2)){\r\n\t\tthis.setSpeeds(-150, -150);\r\n\t}\r\n\tthis.setSpeeds(0, 0);\r\n\t\r\n}", "title": "" }, { "docid": "15b0e3397cdb6d4d35f5f32c2b4af319", "score": "0.54566777", "text": "public int determineSpeed() {return 4;}", "title": "" }, { "docid": "725aee4da9e40f970ec866f2a482b5da", "score": "0.54560757", "text": "float getBallMoveSpd();", "title": "" }, { "docid": "5288f9ad70c2f747631517da5024d231", "score": "0.5447053", "text": "public void move(int dir, int speed) {\r\n\t\t\r\n\t\tif(dir==1)/* right direction*/ {\r\n\t\t\tif(this.status==0){\r\n\t\t\t\tif(this.xPositions[1]>=692-speed&&this.xPositions[2]>=692-speed) {\r\n\t\t\t\t\tthis.xPositions[0]=692-this.length;\r\n\t\t\t\t\tthis.xPositions[1]=692;\r\n\t\t\t\t\tthis.xPositions[2]=692;\r\n\t\t\t\t\tthis.xPositions[3]=692- this.length;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tfor(int i=0;i<this.xPositions.length;i++) {\r\n\t\t\t\t\t\tthis.xPositions[i]=this.xPositions[i]+speed;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else if(this.status==1) {\r\n\t\t\t\tint xDif=this.xPositions[1]-xPositions[0];\r\n\t\t\t\tint yDif=this.yPositions[2]-yPositions[1];\r\n\t\t\t\tif(this.xPositions[1]>=692-speed) {\r\n\t\t\t\t\tthis.xPositions[0]=692-xDif;\r\n\t\t\t\t\tthis.xPositions[1]=692;\r\n\t\t\t\t\tthis.xPositions[2]= 692-yDif;\r\n\t\t\t\t\tthis.xPositions[3]=692-xDif-yDif;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tfor(int i=0;i<this.xPositions.length;i++) {\r\n\t\t\t\t\t\tthis.xPositions[i]=this.xPositions[i]+speed;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tint xDif=this.xPositions[1]-xPositions[0];\r\n\t\t\t\tint yDif=this.yPositions[2]-yPositions[1];\r\n\t\t\t\tif(this.xPositions[2]>=692-speed) {\r\n\t\t\t\t\tthis.xPositions[0]=692-xDif-yDif;\r\n\t\t\t\t\tthis.xPositions[1]=692-yDif;\r\n\t\t\t\t\tthis.xPositions[2]= 692;\r\n\t\t\t\t\tthis.xPositions[3]=692-xDif;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tfor(int i=0;i<this.xPositions.length;i++) {\r\n\t\t\t\t\t\tthis.xPositions[i]=this.xPositions[i]+speed;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint[] temp={xPositions[0],xPositions[0]+length,xPositions[0]+length,xPositions[0]};\r\n\t\t\tthis.setCopyx(temp);\r\n\t\t}\r\n\t\t\t\r\n\t\tif(dir==-1)/*left direction*/{\r\n\t\t\tif(this.status==0){\r\n\t\t\t\tif(this.xPositions[0]<=0+speed&&this.xPositions[3]<=0+speed) {\r\n\t\t\t\t\tthis.xPositions[0]=0;\r\n\t\t\t\t\tthis.xPositions[1]=0+this.length;\r\n\t\t\t\t\tthis.xPositions[2]=0+this.length;\r\n\t\t\t\t\tthis.xPositions[3]=0;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tfor(int i=0;i<this.xPositions.length;i++) {\r\n\t\t\t\t\t\tthis.xPositions[i]=this.xPositions[i]-speed;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else if(this.status==1) {\r\n\t\t\t\tint xDif=this.xPositions[1]-xPositions[0];\r\n\t\t\t\tint yDif=this.yPositions[2]-yPositions[1];\r\n\t\t\t\tif(this.xPositions[3]<=0+speed) {\r\n\t\t\t\t\tthis.xPositions[0]=0+yDif;\r\n\t\t\t\t\tthis.xPositions[1]=0+xDif+yDif;\r\n\t\t\t\t\tthis.xPositions[2]= 0+xDif;\r\n\t\t\t\t\tthis.xPositions[3]=0;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tfor(int i=0;i<this.xPositions.length;i++) {\r\n\t\t\t\t\t\tthis.xPositions[i]=this.xPositions[i]-speed;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tint xDif=this.xPositions[1]-xPositions[0];\r\n\t\t\t\tint yDif=this.yPositions[2]-yPositions[1];\r\n\t\t\t\tif(this.xPositions[0]<=0+speed) {\r\n\t\t\t\t\tthis.xPositions[0]=0;\r\n\t\t\t\t\tthis.xPositions[1]=0+xDif;\r\n\t\t\t\t\tthis.xPositions[2]= 0+xDif+yDif;\r\n\t\t\t\t\tthis.xPositions[3]=0+yDif;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tfor(int i=0;i<this.xPositions.length;i++) {\r\n\t\t\t\t\t\tthis.xPositions[i]=this.xPositions[i]-speed;\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\tint[] temp={xPositions[0],xPositions[0]+length,xPositions[0]+length,xPositions[0]};\r\n\t\tthis.setCopyx(temp);\r\n\r\n\t}", "title": "" }, { "docid": "5b489cdebf1d8be8a258b9d4f164a320", "score": "0.54376394", "text": "private byte getAngle()\n {\n return (byte) (DAT & ANGLE);\n }", "title": "" }, { "docid": "58ba2afc5694e2f84e1daa47e6751de9", "score": "0.54203844", "text": "@Test\r\n\tpublic void testMove_enoughAP_y_dirPI(){\n\t\tmyWorm_worm_1_x2y2_PI.step(0.0001);\r\n\t\tassertEquals(2,myWorm_worm_1_x2y2_PI.getY(),Math.pow(1,-10));\r\n\t}", "title": "" }, { "docid": "4d083506ce4cc07db13fd95e76f8862a", "score": "0.54197645", "text": "void move() {\n x += dx;\n y += dy;\n if (y>height) {\n bottom();\n count++;\n }\n else if (y<surface) { \n dy= -3 * dy; // Descend fast if hit surface\n }\n }", "title": "" }, { "docid": "3803f9103156000a5c9d9040407070b3", "score": "0.54195124", "text": "private int getDirection(float playerCord, float globCord,\r\n final int CHECKRANGE) {\r\n int direction;\r\n // getting direction of movement and checking if within check range pixel area\r\n // 1 - left or up, 2 - right or down 0 - within check range\r\n if (playerCord < globCord - CHECKRANGE) {\r\n direction = 1;\r\n } else if (playerCord > globCord + CHECKRANGE) {\r\n direction = 2;\r\n } else {\r\n direction = 0;\r\n }\r\n return direction;\r\n }", "title": "" }, { "docid": "b6c82f6d492827d9b89969d2688c77ec", "score": "0.54191804", "text": "private double getForward() {\n\t\treturn (Math.abs(this.robot.driver.getY(Hand.kLeft)) > .075) ? this.robot.driver.getY(Hand.kLeft) * .8 : 0;\n\t}", "title": "" }, { "docid": "0c6c42d826e8c050651d8b36ed7fce8f", "score": "0.53948796", "text": "public void alignr() { //There are 1120 encoder counts in a revolution.\n rightSideDif = rightSideDif % 1120; ///Loop it all. Without a bar, this would likely never happen.\n if (rightSideDif > 1120 / 2) {\n rightSideDif = 1120 - rightSideDif;\n }\n float power = Math.abs(rightSideDif / 250.00f);\n power = Range.clip(power, -1, 1);\n\n if (MaxSideDifference < rightSideDif) { //&& rightSideDif < 1120/2) { //Go inwards\n rightFront.setPower(-power);\n rightRear.setPower(power);\n } else if (-MaxSideDifference > rightSideDif) {//) && rightSideDif > -1120/2){ //Go outwards\n rightFront.setPower(power);\n rightRear.setPower(-power);\n } else {\n //leftPower(20);\n }\n }", "title": "" }, { "docid": "4d418410ab420012d25cbbed6702735e", "score": "0.53692305", "text": "public Vector2f getBounceDirection(Ball ball) {\r\n\t\t\r\n\t\t\t\r\n\t\t//vector for ball direction\r\n\t\tVector2f direction = ball.getDirection();\r\n\t\t\t//changes y direction\r\n\t\tif (horizontal) {\t\t\t\r\n\t\t\tdirection.y = -direction.y;\r\n\t\t} else {\r\n\t\t\t//changes x direction\r\n\t\t\tdirection.x = -direction.x;\r\n\t\t}\r\n\t\t\t\r\n\t\treturn direction;\r\n\t\t}", "title": "" }, { "docid": "bb3f706f23fde5965b4780a65bd5b43c", "score": "0.53579587", "text": "public MOVE_SPEED getMoveSpeed();", "title": "" }, { "docid": "f58d56a52b6537d424f937c220f564f2", "score": "0.5354542", "text": "public void Update() {\n y += speed * dirY;\n x += speed * dirX;\n }", "title": "" }, { "docid": "a072282c13ee0a4c0f850572bb00c513", "score": "0.53543174", "text": "private double checkDirection() {\n double correction, angle, gain = .025;\n\n angle = getAngle();\n\n if (angle == 0)\n correction = 0; // no adjustment.\n else\n correction = -angle; // reverse sign of angle for correction.\n\n correction = correction * gain;\n\n return correction;\n }", "title": "" }, { "docid": "40240bb0eb0f5bb6e7f3d5b9e26519f6", "score": "0.5348065", "text": "int getSpeed();", "title": "" }, { "docid": "b09d46b78fac3b3584792207b6b52c0a", "score": "0.5347878", "text": "public double getSpeedY() {return speedY;}", "title": "" }, { "docid": "df2e324c8d30bcc9659596a9fb7424ac", "score": "0.5329491", "text": "public double getArmUpSpeed() {\n double armStick = operatorGamePad.rs().getVertical(ARM_DEAD_ZONE);\n if (armStick > 0){\n return armStick;\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "72b57a0944ee1b1d3e8bbdbc54da7772", "score": "0.53291416", "text": "public boolean directionChanged (Encoder leftEncoder,\n Encoder rightEncoder)\n{\n // if /Encoder/ - distance from previous call is less than 0\n //\n if (Math.abs(leftEncoder.getDistance())\n - this.brakePreviousDistanceL < 0\n && Math.abs(rightEncoder.getDistance())\n - this.brakePreviousDistanceR < 0)\n {\n // set brakePreviousDistance to 0 and return true\n this.brakePreviousDistanceL = 0;\n this.brakePreviousDistanceR = 0;\n return true;\n }\n // set brakePreviousDistance to the encoder value\n brakePreviousDistanceL = Math.abs(leftEncoder.getDistance());\n brakePreviousDistanceR = Math.abs(rightEncoder.getDistance());\n return false;\n}", "title": "" }, { "docid": "9ac735018dbb42b4ec1ca812147cb270", "score": "0.53283477", "text": "Integer getWindDirection();", "title": "" }, { "docid": "bb256fc785bcfca83383a5c736132dac", "score": "0.53275543", "text": "public void movimientoWumpus()\n\t{\n\t\tint dir=(int)(Math.random()*(4-1+1)+1);\n\t\t//TODO\n\t}", "title": "" }, { "docid": "34f0595edf4c4a20d52509a6cff44333", "score": "0.5320194", "text": "public void movePiece(Direction direction) {\n if(direction == Direction.DOWN)\n rowOffset++;\n else if(direction == Direction.LEFT)\n colOffset--;\n else if(direction == Direction.RIGHT)\n colOffset++; \n }", "title": "" }, { "docid": "27219848f28f39b40750268a89c2e274", "score": "0.5314998", "text": "public double bearing() {\n\t\treturn Math.atan2(velocity.y(), velocity.x());\n\t}", "title": "" }, { "docid": "ae84633084b358d42ccecf572df8fc20", "score": "0.5313779", "text": "public int rightWingDown() {\n\t\tint right = ran.nextInt((255-1)+1)+1;//create variable to store random value\r\n\t\tmyfinch.setWheelVelocities(0, right, 500);//moving right speed is randomly generated for 500 milliseconds and left is set to 0\r\n\t\treturn right;//random value gets returned to variable\r\n\t}", "title": "" }, { "docid": "8bd93aea5b89ed31a85b623e0a32307e", "score": "0.5310764", "text": "public int normalizeBearing(int angle){\n int result = angle;\n while (result > 180) {\n result -= 360;\n }\n while (result < -180) {\n result += 360;\n }\n\n return result;\n }", "title": "" }, { "docid": "8565f496eb9794c222dc72338714947a", "score": "0.5295865", "text": "public void individualUpdate() {\n x += xSpeed;\r\n y += ySpeed;\r\n if (y < 0){\r\n\r\n if (x > 375){\r\n d = x - 375;\r\n x = 375 - d;\r\n }\r\n else{\r\n d = 375 - x;\r\n x = 375 + d;\r\n }\r\n y = 750; \r\n }\r\n if (y > 750){\r\n\r\n if (x > 375){\r\n d = x - 375;\r\n x = 375 - d;\r\n }\r\n else{\r\n d = 375 - x;\r\n x = 375 + d;\r\n }\r\n y = 0;\r\n }\r\n if (x < 0){\r\n\r\n if (y > 375){\r\n d = y - 375;\r\n y = 375 - d;\r\n }\r\n else{\r\n d = 375 - y;\r\n y = 375 + d;\r\n }\r\n x = 750;\r\n }\r\n if (x > 750){\r\n\r\n if (y > 375){\r\n d = y - 375;\r\n y = 375 - d;\r\n }\r\n else{\r\n d = 375 - y;\r\n y = 375 + d;\r\n }\r\n x = 0;\r\n }\r\n\r\n \r\n }", "title": "" }, { "docid": "3c4d7de891cb84542a569f3c700d5360", "score": "0.52912474", "text": "public double getRotateSpeed ()\n{\n return this.rotateSpeed;\n}", "title": "" }, { "docid": "d91a0e5286bd0aea6baa02905917472d", "score": "0.52911425", "text": "public void move() {\n\nx = x - GamePanel.speed/5 ;\n\n switch (type)\n {\n case 1:\n // just moves straight right to left\n break ;\n \n case 2:\n y++ ; // moves diagonally up-right to bottom-left\n break ;\n \n case 3:\n y-- ; // moves diagonally up-left to bottom-right\n break ;\n }\n\n}", "title": "" }, { "docid": "1774bf4c6825a18b336c66fb24f4e2ae", "score": "0.5279371", "text": "protected float periRectangle(float W, float H){\r\n\tw = W;\r\n\th = H;\r\n\tperi = HALF * (w + h);\r\n\treturn peri;\r\n}", "title": "" }, { "docid": "fdf93ad8f35498733fe0075390adeabe", "score": "0.52647936", "text": "@Override\n public double getDirectionRadians() {\n return 0;\n }", "title": "" }, { "docid": "3feff165cdf24abf40274b86d5ef7f67", "score": "0.5263333", "text": "private static double rad2deg(double rad) {\n return (rad * 180.0 / Math.PI);\n}", "title": "" }, { "docid": "0d869e1b474c1587da1b55187736285b", "score": "0.52611846", "text": "public double getArmDownSpeed() {\n double armStick = operatorGamePad.rs().getVertical(ARM_DEAD_ZONE);\n if (armStick < 0){\n return Math.abs(armStick);\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "b35acdd8f3be4eb0f1cca8e61cecaee1", "score": "0.5256924", "text": "private synchronized int nextP(Pixel target) \n\t{\n\t++col; ++_counter;\n\tif (col < _maxCols)\n\t{\n\ttarget.row = this.row; target.col = this.col;\n\tif (_print && _counter == _nextCounter) \n\t{\n\t++_percents;_nextCounter = _pixels * (_percents + 1) / 100; return _percents;\n\t}\n\treturn 0;\n\t}\n\t++row;\n\tif (row < _maxRows) \n\t{\n\tcol = 0;\n\tif (_print && _counter == _nextCounter) \n\t{\n\t++_percents; _nextCounter = _pixels * (_percents + 1) / 100; return _percents;\n\t}\n\treturn 0;\n\t}\n\treturn -1;\n\t}", "title": "" }, { "docid": "f4c07839beb4164cc82812f299a66730", "score": "0.5247941", "text": "public void speedCordPulled() {\n\t\tspeed = (speed + 1) % 4;\n\t}", "title": "" }, { "docid": "7d021f178c517290dc5b8a432535e37d", "score": "0.5245196", "text": "private int getY(A2Direction direction) {\r\n\t\tif (direction == A2Direction.DOWN) {\r\n\t\t\tcurrent.y--;\r\n\t\t\treturn current.y;\r\n\t\t} else if (direction == A2Direction.UP) {\r\n\t\t\tcurrent.y++;\r\n\t\t\treturn current.y;\r\n\t\t} else {\r\n\t\t\treturn current.y;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8f89cf487eb7b1a15a6d8e485d6ad7e3", "score": "0.523693", "text": "public float getMoveSpeed();", "title": "" }, { "docid": "bb846dffdff5d8e55bd95cf37866fa35", "score": "0.5233742", "text": "public double phase() { return Math.atan2(im, re); }", "title": "" }, { "docid": "927aa79ffceadefd9a51de86262c6fb4", "score": "0.52335244", "text": "public int beakUp() {\n\t\tint forward = ran.nextInt((255-1)+1)+1;//create variable to store random value\r\n\t\tmyfinch.setWheelVelocities(forward, forward, 500);//moving forward speed is randomly generated for 500 milliseconds\r\n\t\treturn forward;//random value gets returned to variable\r\n\t}", "title": "" }, { "docid": "0366f11e07f40466079509bb1a1e1e79", "score": "0.52333486", "text": "public DirSprite getDirection()\n {\n return m_direction;\n }", "title": "" }, { "docid": "e11ae693eb1849e2bb085024d1453ab7", "score": "0.5231043", "text": "private int toggleDirection() {\n if (direction == 1) {\n direction = -1;\n }\n else if (direction == -1) {\n direction = 1;\n }\n else {\n direction = 0;\n }\n\n return direction;\n }", "title": "" }, { "docid": "d036bcc62dd77941027b9ece6fecc280", "score": "0.5228529", "text": "private double twoStickToTurning(double leftIn, double rightIn) {\n double answer = leftIn - rightIn;\n answer /= 2;\n return answer;\n }", "title": "" }, { "docid": "511183fefd97424579fa6306d874c7b0", "score": "0.52203226", "text": "public abstract double getGripFlipY();", "title": "" }, { "docid": "2719e04ae6626d51ace0b441b3fc6c07", "score": "0.5216778", "text": "protected Direction getDirection(long moveUp, long moveDown, long moveRight, long moveLeft) {\n if (moveUp >= moveDown && moveUp >= moveLeft && moveUp >= moveRight) {\n return UP;\n } else if (moveRight >= moveDown && moveRight >= moveLeft) {\n return RIGHT;\n } else if (moveLeft >= moveDown) {\n return LEFT;\n } else {\n return DOWN;\n }\n }", "title": "" }, { "docid": "481bdb4a91e296132cb31d3a383b6599", "score": "0.5216581", "text": "public void setDir(int a) {\n \tif (x > 0 && x < 580) {\n \t\t// Update the direction if the board allows it\n \t\tif (a == 0 && !b.intersects(new Rectangle(x + v, y, width, height))) {\n \t\t\tdir = 0;\n \t\t} else if (a == 1 && !b.intersects(new Rectangle(x, y - v, width, height))) {\n \t\t\tdir = 1;\n \t\t} else if (a == 2 && !b.intersects(new Rectangle(x - v, y, width, height))) {\n \t\t\tdir = 2;\n \t\t} else if (a == 3 && !b.intersects(new Rectangle(x, y + v, width, height))) {\n \t\t\tdir = 3;\n \t\t}\n \t}\n }", "title": "" }, { "docid": "75e573d36babf2f40da05ea2e0c0e0f7", "score": "0.52149373", "text": "public int getDirection() {\n\t\treturn 360-(int)Math.toDegrees(robot.getAngle());\n\t}", "title": "" }, { "docid": "b6f1f19934133ca269b398da9bac00ed", "score": "0.52126557", "text": "public static void GoFullBoarBlowThruFarWall() {\n Moves.rollforward(100,100); //move at max speed forward, \n }", "title": "" }, { "docid": "5ca4bd573cd4c13180838e909944404f", "score": "0.52070296", "text": "private Direction getFlingDirection(float x1, float y1, float x2, float y2) {\n Double angle = Math.toDegrees(Math.atan2(y1 - y2, x2 - x1));\n\n if (angle > 45 && angle <= 135)\n return Direction.UP;\n if (angle >= 135 && angle < 180 || angle < -135 && angle > -180)\n return Direction.LEFT;\n if (angle < -45 && angle>= -135)\n return Direction.DOWN;\n if (angle > -45 && angle <= 45)\n return Direction.RIGHT;\n\n return null;\n }", "title": "" }, { "docid": "1dae2feee23c2e9def923b8934c58bc2", "score": "0.5199348", "text": "@Test\r\n\tpublic void testMove_enoughAP_x_dirPI(){\n\t\tmyWorm_worm_1_x2y2_PI.step(0.0001);\r\n\t\tassertEquals(1,myWorm_worm_1_x2y2_PI.getX(),Math.pow(1,-10));\r\n\t\t\r\n\t}", "title": "" }, { "docid": "29059f0f946d3e202e627316c1d5dd82", "score": "0.5198066", "text": "int getWheel();", "title": "" }, { "docid": "64a8a8b9e2b6b97566689c4e5aa06e6d", "score": "0.5181597", "text": "public void moveforward() {\n\t\tvx += cos(angle) * power;\r\n\t\tvy += sin(angle) * power;\r\n\t\tvelact=Math.sqrt(vx * vx + vy * vy);\r\n\r\n\t\tif (velact < pcap){\r\n\t\t\tcurvx = vx;\r\n\t\t\tcurvy = vy;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "de2553128b6229a1bdf6fb166d89c07e", "score": "0.51801705", "text": "public void driveForDistance(double inches, double speed) {\n\t\tdouble ticks =inches* 46; //JT: 46 ticks per inch\n\t\tdouble slowApproach = 1;\n\t\thalt(); // JT: Just a little safety thing. It's easier to do this from a stopped position.\n\t\tleftEncoder.reset();\n\t\trightEncoder.reset(); // JT: Need to reset encoders to know where we're starting from\n\t\twhile(leftEncoder.getRaw() < ticks) // JT: It's also possible to use have the encoder library calculate a distance for us. Or we can do the math. For now the tick argument is going to seem like a crazy number.\n\t\t{\n\t\t\tif(leftEncoder.getRaw() > (0.7 * ticks)) //JT: This is stepping down the speed on approach to target, but it would be much better as a calculated value. Take a ratio of current position versus target?\n\t\t\t{\n\t\t\t\tslowApproach = 0.6;\n\t\t\t}\n\t\t\telse if(leftEncoder.getRaw() > (0.8 * ticks))\n\t\t\t{\n\t\t\t\tslowApproach = 0.5;\n\t\t\t}\n\t\t\telse if(leftEncoder.getRaw() > (0.9 * ticks))\n\t\t\t{\n\t\t\t\tslowApproach = 0.4;\n\t\t\t}\n\t\t\tif(leftEncoder.getRaw() > rightEncoder.getRaw()) {\n\t\t\t\tleftDrive(speed * slowApproach * 0.6);\n\t\t\t\trightDrive(speed * slowApproach);\n\t\t\t}\n\t\t\telse if(rightEncoder.getRaw() > leftEncoder.getRaw()) {\n\t\t\t\tleftDrive(speed * slowApproach);\n\t\t\t\trightDrive(speed* slowApproach * 0.6);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tleftDrive(speed * slowApproach);\n\t\t\t\trightDrive(speed * slowApproach);\n\t\t\t}\n\t\t\tSystem.out.println(\"leftEncoder: \" + Double.toString(leftEncoder.getRaw())); // JT: These lines can be commented out later. They're here for now to at least debug this.\n\t\t\tSystem.out.println(\"rightEncoder: \" + Double.toString(rightEncoder.getRaw()));\t\t\t\n\t\t}\n\t\thalt(); // JT: This is going to skid. Again, ideally this would have smooth accelerations, but it's a start.\n\t}", "title": "" }, { "docid": "645b851dc4cde83705f57098a1fa9768", "score": "0.51768434", "text": "public boolean turnDegrees (double degrees, double speed)\n{\n // first time setup\n if (firstAlign == true)\n {\n this.resetEncoders();\n this.firstAlign = false;\n }\n // We do not know why, but the robot by default turns opposite what we want.\n double adjustedDegrees = -degrees;\n // If we don't have any encoders\n if (isUsingEncoders == false)\n {\n this.firstAlign = true;\n // Quit the method, lying and saying we've turned the correct distance\n return true;\n }\n // Convert the degree parameter to radians for calculations\n double angleInRadians = Math.toRadians(Math.abs(degrees));\n // Get the average distances on both sides of the robot\n double leftSideAverage = Math\n .abs(this.getLeftFrontEncoderDistance()\n + this.getLeftRearEncoderDistance())\n / 2.0;\n\n double rightSideAverage = Math\n .abs(this.getRightFrontEncoderDistance()\n + this.getRightRearEncoderDistance())\n / 2.0;\n\n // If the arc length is equal to the amount driven, we finish\n if (rightSideAverage >= angleInRadians * turningCircleRadius\n || leftSideAverage >= angleInRadians * turningCircleRadius)\n {\n this.firstAlign = true;\n // Tell the caller we're done\n return true;\n }\n\n // Rotate if not\n if (adjustedDegrees < 0)\n {\n if (transmissionType == TransmissionType.TANK)\n transmissionFourWheel.drive(speed, -speed);\n else\n transmissionMecanum.driveNoDeadband(0.0, 0.0, -speed);\n }\n else if (adjustedDegrees > 0)\n {\n if (transmissionType == TransmissionType.TANK)\n transmissionFourWheel.drive(-speed, speed);\n else\n transmissionMecanum.driveNoDeadband(0.0, 0.0, speed);\n }\n // we're not done\n return false;\n}", "title": "" }, { "docid": "1dea3f351231fc5368c78faec869b2e6", "score": "0.5176473", "text": "public void bestDir (Pacman p){\r\n int px = p.xCoord();\r\n int py = p.yCoord();\r\n if(!eaten){\r\n px = p.xCoord();\r\n py = p.yCoord();\r\n }\r\n else if (eaten){\r\n px = this.startX;\r\n py = this.startY;\r\n }\r\n int xdif = px-x;\r\n int ydif = py-y;\r\n int prio1 = 0;\r\n int prio2 = 0;\r\n int prio3 = 0;\r\n if(Math.abs(xdif)>Math.abs(ydif)){\r\n if(xdif>0){prio1 = 4;}\r\n else {prio1 = 2;}\r\n }\r\n else {\r\n if(ydif>0){prio1 = 3;}\r\n else {prio1 = 1;}\r\n }\r\n if(Math.abs(xdif)>Math.abs(ydif)){\r\n if(ydif>0){prio2 = 3;}\r\n else {prio2 = 1;}\r\n }\r\n else {\r\n if(xdif>0){prio2 = 4;}\r\n else {prio2 = 2;}\r\n }\r\n if(Math.abs(xdif)>Math.abs(ydif)){\r\n if(ydif>0){prio3 = 1;}\r\n else {prio3 = 3;}\r\n }\r\n else {\r\n if(xdif>0){prio3 = 2;}\r\n else {prio3 = 4;}\r\n }\r\n\r\n if(prio1==1 && PacmanGame.board[y-1][x]!=2 && !dir.equals(\"down\")){\r\n turn = 1;\r\n return;\r\n }\r\n else if(prio1==2 && PacmanGame.board[y][x-1]!=2 && !dir.equals(\"right\")){\r\n turn = 2;\r\n return;\r\n }\r\n else if(prio1==3 && PacmanGame.board[y+1][x]!=2 && PacmanGame.board[y+1][x]!=5 && !dir.equals(\"up\")){\r\n turn = 3;\r\n return;\r\n }\r\n else if(prio1==4 && PacmanGame.board[y][x+1]!=2 && !dir.equals(\"left\")){\r\n turn = 4;\r\n return;\r\n }\r\n else if(prio2==1 && PacmanGame.board[y-1][x]!=2 && !dir.equals(\"down\")){\r\n turn = 1;\r\n return;\r\n }\r\n else if(prio2==2 && PacmanGame.board[y][x-1]!=2 && !dir.equals(\"right\")){\r\n turn = 2;\r\n return;\r\n }\r\n else if(prio2==3 && PacmanGame.board[y+1][x]!=2 && PacmanGame.board[y+1][x]!=5 && !dir.equals(\"up\")){\r\n turn = 3;\r\n return;\r\n }\r\n else if(prio2==4 && PacmanGame.board[y][x+1]!=2 && !dir.equals(\"left\")){\r\n turn = 4;\r\n return;\r\n }\r\n else if(prio3==1 && PacmanGame.board[y-1][x]!=2 && !dir.equals(\"down\")){\r\n turn = 1;\r\n return;\r\n }\r\n else if(prio3==2 && PacmanGame.board[y][x-1]!=2 && !dir.equals(\"right\")){\r\n turn = 2;\r\n return;\r\n }\r\n else if(prio3==3 && PacmanGame.board[y+1][x]!=2 && PacmanGame.board[y+1][x]!=5 && !dir.equals(\"up\")){\r\n turn = 3;\r\n return;\r\n }\r\n else if(prio3==4 && PacmanGame.board[y][x+1]!=2 && !dir.equals(\"left\")){\r\n turn = 4;\r\n return;\r\n }\r\n else if(dir.equals(\"down\")){\r\n turn = 1;\r\n return;\r\n }\r\n else if(dir.equals(\"up\")){\r\n turn = 3;\r\n return;\r\n }\r\n else if(dir.equals(\"left\")){\r\n turn = 4;\r\n return;\r\n }\r\n else if(dir.equals(\"right\")){\r\n turn = 2;\r\n return;\r\n }\r\n }", "title": "" }, { "docid": "0ea3a65c37ddc7b220d1b1a7f698112c", "score": "0.5174374", "text": "private void wind() {\n\t\t//-2cm -> 2cm\n\t\tint xExtra = random.nextInt(400);\n\t\txExtra -= 200;\n\t\tint yExtra = random.nextInt(400);\n\t\tyExtra -= 200;\n\t\txPos = xPos + xExtra/100.0;\n\t\tyPos = yPos + yExtra/100.0;\n\t\tint alphaExtra = random.nextInt(20);\n\t\talphaExtra -= 10;\n\t\talpha = alpha + alphaExtra;\n\t}", "title": "" }, { "docid": "be5592b39e11c978760a4d695f1007ce", "score": "0.51713806", "text": "private int getSnappedRotation() {\n\t\tdouble x = Robot.getOI().getPrimaryController().getRightXValue();\n\t\tdouble y = Robot.getOI().getPrimaryController().getRightYValue();\n\n\t\t// find the angle of the joystick (x and y are flipped to make forwards be 0 degrees)\n\t\tdouble rotation = Math.atan2(x, y);\n\t\t// convert rotation to degrees\n\t\trotation = rotation / Math.PI * 180;\n\t\t// snap to closest 45 degree interval\n\t\trotation = (int)(rotation + 22.5 * Math.signum(rotation)) / 45 * 45;\n\t\t//convert to correct angle for rockets\n if(Math.abs(rotation) == 45) {\n rotation = 30 * Math.signum(rotation);\n } else if(Math.abs(rotation) == 135) {\n rotation = 150 * Math.signum(rotation);\n }\n\t\treturn (int)rotation;\n\t}", "title": "" }, { "docid": "55f84cf9d1e2cb4bc40ccfc882f1f478", "score": "0.5165734", "text": "private int getAngle (double x, double y) {\n // http://en.cppreference.com/w/cpp/numeric/math/atan2\n double a = Math.atan2(y, x);\n if ((a > 0.375*PI && a < 0.625*PI) || ((a < -0.375*PI && a > -0.625*PI)))\n return 0;\n if ((a < -0.625*PI && a > -0.875*PI) || (a > 0.125*PI && a < 0.375*PI))\n return 1;\n if ((a < 0.125*PI && a > -0.125*PI) || a > 0.875*PI || a < -0.875 * PI)\n return 2;\n return 3;\n }", "title": "" }, { "docid": "0e3831577242be5439782b5b38647af1", "score": "0.51648265", "text": "public int ySpeed(int dc){\n if(dc == UP){\r\n return -5;\r\n }\r\n else if (dc == DOWN){\r\n return 5;\r\n }\r\n return 0;\r\n }", "title": "" }, { "docid": "543997a1434db97e2927d7441318ec40", "score": "0.5153158", "text": "public float getAlignmentOffset() {\n\t\t/*\t1-?-0-?-1 --> 0\" (i.e. center robot on lift peg)\n\t\t\t0-0-1-1-1 --> 1.75\" left (offset robot to left of lift peg)\n\t\t\t0-1-1-1-0 --> 1.25\" left or right (offset robot to left or right of lift peg)\n\t\t\t1-1-1-0-0 --> 1.75\" right (offset robot to right of lift peg)\n\t\t */\n\t\t// note that these sensors start at index 1, not 0 (0 is the beam...)\n\t\tboolean[] on = new boolean[numLinePins];\n\t\tfor (int i = 0; i < numLinePins; i++) {\n\t\t\ton[i] = (irDetails[i + 1] == 1);\n\t\t}\n\n\t\tif (on[0] && on[1] && on[2] && !on[3] && !on[4])\n\t\t\treturn 1.75f; // robot need to move to the right\n\n\t\tif (!on[0] && on[1] && on[2] && on[3] && !on[4])\n\t\t\treturn 1.25f; // pick one\n\n\t\tif (!on[0] && !on[1] && on[2] && on[3] && on[4])\n\t\t\treturn -1.75f; // robot needs to move to the left\n\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "0031e64df0d583ab7955b32650b04c8d", "score": "0.5153139", "text": "int applyBrakes(int decrement) {\n if ( (speed - decrement) < 0 ) {\n return speed = 0;\n } else {\n return speed -= decrement;\n }\n\n\n\n\n\n \n }", "title": "" }, { "docid": "ddba8be7854672eb1e7397fa2e686685", "score": "0.5152967", "text": "public int borderTurn(){\n if((x <= leftBorderEdge+10 && y<= topBorderEdge+10)){//EDGE CASES FOR CORNERS\r\n if(dir == UP){\r\n return RIGHT;\r\n }\r\n else{\r\n return DOWN;\r\n }\r\n }\r\n if((x >= width - rightBorderEdge-10 && y >= height - botBorderEdge)){\r\n if(dir == DOWN){\r\n return LEFT;\r\n }\r\n else{\r\n return UP;\r\n }\r\n }\r\n if((x <= leftBorderEdge+10 && y >= height - botBorderEdge)){\r\n if(dir == DOWN){\r\n return RIGHT;\r\n }\r\n else{\r\n return UP;\r\n }\r\n }\r\n if((x >= width - rightBorderEdge-10 && y<= topBorderEdge+10)){\r\n if(dir == RIGHT){\r\n return DOWN;\r\n }\r\n else{\r\n return LEFT;\r\n }\r\n }\r\n if((x >= width - rightBorderEdge-10 || x <= leftBorderEdge+10)){//checks if on border of screen, if so turns the bike\r\n if(y < height / 2){ \r\n return DOWN;\r\n }\r\n else{\r\n return UP;\r\n }\r\n }\r\n else if(y >= height - botBorderEdge || y <= topBorderEdge && !yBorder){\r\n if(x<width/2){\r\n return RIGHT;\r\n }\r\n else{\r\n return LEFT;\r\n }\r\n }\r\n return 0;\r\n }", "title": "" }, { "docid": "5999e1a7b7c67ff8d24beaf679ec1e0d", "score": "0.5140038", "text": "@Override\n public void loop() {\n double target = 0;\n double direction;\n double forward;\n double strafe;\n double rotate;\n double power =0.3;\n\n //------------------------------------------//------------------------------------------//\n // M E C H I N U M D R I V E T R A I N\n //------------------------------------------//------------------------------------------//\n\n forward = -gamepad1.right_stick_y;\n strafe = -gamepad1.right_stick_x;\n rotate = gamepad1.left_stick_x;\n\n\n gromit.left_front.setPower ( forward/1.0 - strafe/1.0 + rotate/1.0 );\n gromit.left_back.setPower ( forward/1.0 + strafe/1.0 + rotate/1.0 );\n gromit.right_front.setPower( forward/1.0 + strafe/1.0 - rotate/1.0 );\n gromit.right_back.setPower ( forward/1.0 - strafe/1.0 - rotate/1.0 );\n\n //------------------------------------------//------------------------------------------//\n // B U T T O N C L I C K D E T E C T I O N\n //------------------------------------------//------------------------------------------//\n\n //gamepad.left_stick_x\n //gamepad.left_stick_y\n //gamepad.left_stick_button\n //gamepad.right_stick_x\n //gamepad.right_stick_y\n //gamepad.right_stick_button\n //gamepad.dpad_left\n //gamepad.dpad_right\n //gamepad.dpad_up\n //gamepad.dpad_down\n //gamepad.x\n //gamepad.y\n //gamepad.b\n //gamepad.a\n //gamepad.left_bumper\n //gamepad.right_bumper\n //gamepad.left_trigger\n //gamepad.right_trigger\n\n if (gamepad1.dpad_left) {\n gromit.leftlower.setPosition(0.6);\n gromit.rightlower.setPosition(0.4);\n }\n\n // glyph clamp\n if (gamepad1.dpad_left) {\n gromit.leftlower.setPosition(0.6);\n gromit.rightlower.setPosition(0.4); //glyph open\n } else if (gamepad1.dpad_right ){\n gromit.leftlower.setPosition(0.85);\n gromit.rightlower.setPosition(0.15); //glyph closed\n }\n\n // servo\n if (gamepad1.dpad_up) {\n gromit.jewelsservo.setPosition(0.0);\n }\n if (gamepad1.dpad_down) {\n gromit.jewelsservo.setPosition(0.45);\n }\n\n //Parallel Or Perp. Orientation\n if ((gamepad1.x) || (gamepad1.left_bumper)) {\n// gromit.left_front.setPower(-power);\n// gromit.left_back.setPower(-power);\n// gromit.right_front.setPower(power);\n// gromit.right_back.setPower(power);\n// telemetry.addLine()\n// .addData(\"heading\", new Func<String>() {\n// @Override\n// public String value() {\n// return formatAngle(angles.angleUnit, angles.firstAngle);\n// }\n// });\n// telemetry.update();\n\n if ((angles.firstAngle > -45.0) && (angles.firstAngle < 45.0)) {\n target = 0.0;\n } else if ((angles.firstAngle < -45.0) && (angles.firstAngle > -135.0)) {\n target = -90.0;\n } else if ((angles.firstAngle > 45.0) && (angles.firstAngle < 135.0)) {\n target = 90.0;\n } else {\n target = 180.0;\n }\n direction = -(target - angles.firstAngle) / Math.abs(target - angles.firstAngle);\n while (Math.abs(angles.firstAngle - target) > 5.0) {\n angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n telemetry.addData(\"heading\", angles.firstAngle);\n telemetry.addData(\"target\", target);\n telemetry.update();\n //idle();\n// telemetry.addLine()\n// .addData(\"heading\", new Func<String>() {\n// @Override\n// public String value() {\n// return formatAngle(angles.angleUnit, angles.firstAngle);\n// }\n// });\n// telemetry.update();\n\n// power = (angles.firstAngle - 90) / -180 + 0.1;\n power = 0.2;\n\n gromit.left_front.setPower(-power*direction);\n gromit.left_back.setPower(-power*direction);\n gromit.right_front.setPower(power*direction);\n gromit.right_back.setPower(power*direction);\n\n\n }\n gromit.left_front.setPower(0);\n gromit.left_back.setPower(0);\n gromit.right_front.setPower(0);\n gromit.right_back.setPower(0);\n }\n\n\n //gyroturn\n if (gamepad1.y) {\n gromit.left_front.setPower(-power);\n gromit.left_back.setPower(-power);\n gromit.right_front.setPower(power);\n gromit.right_back.setPower(power);\n telemetry.addLine()\n .addData(\"heading\", new Func<String>() {\n @Override\n public String value() {\n return formatAngle(angles.angleUnit, angles.firstAngle);\n }\n });\n telemetry.update();\n while (angles.firstAngle < 88) {\n angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n //idle();\n// telemetry.addLine()\n// .addData(\"heading\", new Func<String>() {\n// @Override\n// public String value() {\n// return formatAngle(angles.angleUnit, angles.firstAngle);\n// }\n// });\n// telemetry.update();\n power = (angles.firstAngle - 90) / -180 + 0.1;\n gromit.left_front.setPower(-power);\n gromit.left_back.setPower(-power);\n gromit.right_front.setPower(power);\n gromit.right_back.setPower(power);\n\n\n }\n gromit.left_front.setPower(0);\n gromit.left_back.setPower(0);\n gromit.right_front.setPower(0);\n gromit.right_back.setPower(0);\n }\n }", "title": "" }, { "docid": "ba24aac60444648f6ec44b7890d626dd", "score": "0.5139583", "text": "public static void localizeDistance() {\n /**\n * Float Array to store RGB Raw values\n */\n leftMotor.setSpeed(100);\n rightMotor.setSpeed(100);\n leftMotor.forward();\n rightMotor.forward();\n // if light sensing returns to 0 to prevent multiple line readings.\n boolean steadyState = true;\n sleepFor(100);\n /*\n * in the sweep. stops when either of the motors stop.\n */\n while (true) {\n \n int diff = lightPoller.getIntensity();\n if (diff > 0) // negative value, so has returned to steady state (fluctuations around 0,0)\n steadyState = true;\n /*\n * spike of less than -75 implies a line has been detected. steadyState makes it\n * so that it only looks for lines again after it goes back to 0, i.e doesn't detect same lines multiple times.\n */\n if (diff < -75 && steadyState == true) {\n \n Sound.beepSequence();\n steadyState = false;\n break;\n\n }\n sleepFor(100);\n }\n odometer.setY(-Resources.SENSOR_TO_WHEEL_DISTANCE);\n leftMotor.stop();\n rightMotor.stop();\n //back up\n// leftMotor.rotate(-Navigation.convertDistance(Resources.BACKUP_DISTANCE), true);\n // rightMotor.rotate(-Navigation.convertDistance(Resources.BACKUP_DISTANCE), false);\n // Sound.beepSequenceUp();\n Navigation.turnTo(85);\n \n leftMotor.forward();\n rightMotor.forward();\n steadyState = true;\n while (true) {\n int diff = lightPoller.getIntensity();\n if (diff > 0) // negative value, so has returned to steady state (fluctuations around 0,0)\n steadyState = true;\n /*\n * spike of less than -75 implies a line has been detected. steadyState makes it\n * so that it only looks for lines again after it goes back to 0, i.e doesn't detect same lines multiple times.\n */\n LCD.drawString(\"Diff: \" + diff, 0, 5);\n if (diff < -Resources.DIFF_THRESHOLD && steadyState == true) {\n \n Sound.beepSequence();\n steadyState = false;\n break;\n\n }\n sleepFor(40);\n }\n odometer.setX(-Resources.SENSOR_TO_WHEEL_DISTANCE + 3);\n leftMotor.stop();\n rightMotor.stop();\n \n Navigation.travelTo(0, 0);\n sleepFor(800);\n Navigation.turnTo(0);\n }", "title": "" }, { "docid": "d2d352690f049054841465fe2b74b672", "score": "0.51379776", "text": "public void move_player(int x,int y){\n if(!fAttack)\n {\n this.prevx = this.x;\n this.x = x;\n\n this.prevy = this.y;\n this.y = y;\n if(prevy == y )\n if(prevx < x)\n aniStart = 12;\n else\n aniStart = 0;\n\n else if(prevy < y)\n if(prevx < x )\n aniStart = 20;\n else if(prevx == x && y%2 !=0)\n aniStart = 20;\n else\n aniStart = 8;\n else\n if(prevx < x )\n aniStart = 16;\n else if(prevx == x && y%2 !=0)\n aniStart = 16;\n else\n aniStart = 4;\n aniCurr = aniStart;\n }\n }", "title": "" }, { "docid": "4115de38595c21f2dbad10dad9f2b115", "score": "0.5135742", "text": "private int nextPixel() {\n if (countDown == 0)\n return EOF;\n\n --countDown;\n\n byte pix = pixAry[yCur * imgW + xCur];\n\n bumpPosition();\n\n return pix & 0xff;\n }", "title": "" }, { "docid": "4ac2f4748c918d0d267263dc9a603970", "score": "0.51335096", "text": "private static double deg2rad(double deg) {\n return (deg * Math.PI / 180.0);\n}", "title": "" }, { "docid": "9353160fb5ec6fed5e2039b6284c41ff", "score": "0.51311207", "text": "public void move(int speed){\r\n if (speed>0 && x<(800-width-2)) x+=speed;\r\n else {\r\n if (speed<0 && x>5) x+= speed;\r\n }\r\n }", "title": "" }, { "docid": "71a4e1b0ee28f8ee9c52655e565da3d5", "score": "0.51299435", "text": "public void ballancing1(Vector3d direction) {\n Transform3D bodyTrans = new Transform3D();\n\n direction = new Vector3d(direction);\n\n Vector3d up = new Vector3d(0, 1, 0);\n up.normalize();\n// direction.normalize();\n\n\n// bodyTrans.rotZ(0.005 * Math.sin(System.currentTimeMillis() / 1000.0));\n bodyTrans.rotY(0.005 * Math.sin(System.currentTimeMillis() / 1000.0));\n// bodyTrans.rotX(0.001*Math.sin(System.currentTimeMillis() / 2000.0));\n// bodyTrans.setTranslation(\n// new Vector3d(0.001 * Math.sin(System.currentTimeMillis() / 1000.0), 0, 0));\n\n bodyTrans.invert();\n\n double parity = 1;\n for (Leg leg : arachnoid.getLegs()) {\n Point3d legRoot = new Point3d();\n arachnoid.getTransform(leg).transform(legRoot);\n\n Point3d toe = new Point3d();\n leg.getGlobalToeTransform().transform(toe);\n System.out.println(\"toe: \" + toe);\n\n bodyTrans.transform(toe);\n\n Vector3d vec = new Vector3d();\n vec.sub(toe, legRoot);\n\n Transform3D legInv = new Transform3D();\n legInv.invert(arachnoid.getTransform(leg));\n\n legInv.transform(vec);\n\n leg.setVectorLocal(vec);\n\n parity *= -1;\n }\n }", "title": "" }, { "docid": "0e073e5b3d67e4680af5542925028ead", "score": "0.5127216", "text": "public void update(long fps){\n if(direction == DOWN){\n y = y - speed / fps;\n }else{\n y = y + speed / fps;\n }\n\n// changes coorindates\n rect.left = x;\n rect.right = x+length;\n rect.top = y;\n rect.bottom = y + height;\n\n // this part increases speed slowly as it gets lower and lower\n speed = speed * 1.005f;\n }", "title": "" }, { "docid": "d173786f183f1929d23ac541e85de503", "score": "0.51259404", "text": "public synchronized void determineDirection() {\n\n if (this.currentFloor == 13 && this.currentDirection.equals(\"UP\")) {\n this.currentDirection = \"DOWN\";\n } else if (this.currentFloor == 1 && this.currentDirection.equals(\"DOWN\")) {\n this.currentDirection = \"UP\";\n }\n }", "title": "" }, { "docid": "2e21986a8d5dc9b81251800b317219a5", "score": "0.51178116", "text": "int find_scan_degree(int x, int y) {\n int deg;\n x = loc_x();\n y = loc_y();\n int scale = 100000;\n\n if (y < 500) {\n if (x < 500) \n deg = 270 + atan((scale * y) / (1000-x));\n else \n \tdeg = 0 + atan((scale * y) / (1000-x));\n\n } \n else {\n if (x > 500) \n deg = 90 + atan((scale * (1000-y)) / x);\n else \n deg = 180 + atan((scale * (1000-y)) / x); \n }\n \n return (deg);\n\n\t}", "title": "" }, { "docid": "087f8d39ebef7e8b64023d5a19187808", "score": "0.51140237", "text": "private void setSpeed() {\n\t\tdouble radiansAngle;\n\t\tdouble tanValue;\n\t\tdouble xDir;\n\t\tdouble yDir;\n\t\tdouble xSpeedInward;\n\t\tdouble ySpeedInward;\n\t\t\n\t\t// first mode (0) is 0 degrees, second mode (1) is 15 and so on\n\t\tradiansAngle = Math.toRadians(mode * 15);\n\t\t\n\t\ttanValue = Math.tan(radiansAngle);\n\t\t\n\t\tif(Double.isNaN(tanValue)) {\n\t\t\txDir = 0.0;\n\t\t\tyDir = 1.0;\n\t\t}\n\t\telse {\n\t\t\txDir = 1.0;\n\t\t\tyDir = tanValue;\n\t\t}\n\t\t\n\t\tArrayList<Double> direction = getDirectionProportions(xDir, yDir);\n\t\txSpeedInward = direction.get(0);\n\t\tySpeedInward = direction.get(1);\n\t\t\n\t\t// attack 3 doesn't always go in a set pattern inwards, but has random spawns instead\n\t\tif(ed.attackNumber != 3) {\n\n\t\t}\n\t\t// points speed directions inwards relative to the circle the gems form\n\t\tif(mode < NINETY || mode > TWOHUNDRED_AND_SEVENTY) xSpeedInward = Math.abs(xSpeedInward) * (-1);\n\t\telse xSpeedInward = Math.abs(xSpeedInward);\n\t\tif((mode > ZERO && mode < ONEHUNDRED_AND_EIGHTY)) ySpeedInward = Math.abs(ySpeedInward) * (-1);\n\t\telse ySpeedInward = Math.abs(ySpeedInward);\n\t\t\n\t\tif(ed.reverse == 2) ed.reverse = Support.randInt(0, 1);\n\t\t\n\t\tif(ed.reverse == 0) {\n\t\t\tknockback(xSpeedInward * (-1), ySpeedInward * (-1), totalSpeed, true, true);\n\t\t}\n\t\telse if(ed.reverse == 1) {\n\t\t\tknockback(xSpeedInward, ySpeedInward, totalSpeed, true, true);\n\t\t}\n\t\telse System.out.println(\"Wrong reverse (\" + ed.reverse + \") value in setSpeed of BossBall5GemRed.\");\n\t}", "title": "" }, { "docid": "0dada89fb248e9fedcdc81b84d3008d7", "score": "0.511301", "text": "private Point searchMoveDir(int row, int col, Compass dir) {\n\n int couldFlip = 0;\n\n while ((row += dir.getX()) < 8 && row >= 0 && (col += dir.getY()) < 8 && col >= 0) {\n\n ReversiPiece dPiece = board[row][col];\n\n if (dPiece == null) {\n if (couldFlip != 0) {\n return new Point(row, col);\n } else {\n return null;\n }\n }\n\n if (dPiece.getColor() == currentPlayer) {\n return null;\n }\n\n couldFlip++;\n\n }\n\n return null;\n }", "title": "" }, { "docid": "07827336dee195d4569ac46b789cc00f", "score": "0.51110107", "text": "private int checkObstacleBackward() {\n\t\tint distance = 0;\n\t\tswitch(curDirection) {\n\t\tcase SOUTH: // facing down\n\t\t\tdistance = findObstacleIncreaseY();\n\t\t\tbreak;\n\t\tcase NORTH: // facing up\n\t\t\tdistance = findObstacleDecreaseY();\n\t\t\tbreak;\n\t\tcase EAST: // facing right\n\t\t\tdistance = findObstacleDecreaseX();\n\t\t\tbreak;\n\t\tcase WEST: // facing left\n\t\t\tdistance = findObstacleIncreaseX();\n\t\t\tbreak;\n\t\t}\n\t\treturn distance;\n\t}", "title": "" }, { "docid": "a8c9fdf46d2eb027cb51c45f0d4970d9", "score": "0.5109302", "text": "private float changeYCord(int direction, int speed) {\r\n switch (direction) {\r\n case 1:\r\n return DATA.getTargetYCord() - speed;\r\n case 2:\r\n return DATA.getTargetYCord() + speed;\r\n default:\r\n return DATA.getTargetYCord();\r\n }\r\n }", "title": "" }, { "docid": "83e6d1056d30239d752ffc66ede7ceaa", "score": "0.5096506", "text": "public int whereIsBall(){\n\t\tint width = x_max-x_min;\n\t\tint height = y_max-y_min;\n\t\tdouble avg = (width+height)/2;\n\t\tSystem.out.println(\"w = \"+width+\" height = \"+height+\" avg = \"+avg);\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "3a9814069e35d241c3c081e8f03213d9", "score": "0.50963074", "text": "void move() {\n x += dx; \n y += dy;\n counter += 1;\n for (int i=0; i<many; i++ ) { // Squid to bottom if lobster hit\n if (school[i].hit( x, y )) {\n caught += school[i].legs;\n school[i].bottom();\n }\n } \n if ( (x<0) || (x>width) ) { // Reverse horizontal direction if hit boundaries\n dx *= -1;\n }\n if ( (y<surface+30) || (y>height) ) { // Reverse vertical direction if hit boundaries\n dy *= -1;\n } \n }", "title": "" }, { "docid": "4b2fa83c8a08089a3121e58175d43a37", "score": "0.50960124", "text": "public int getCurrentSpeed(){return currentSpeed; }", "title": "" } ]
c5694be954bd73b44f08cc68a6d5b113
/ Method to edit transaction...
[ { "docid": "d80abffa43960e076d1415ec78ab9abb", "score": "0.6735966", "text": "public void edit() {\n\n System.out.println(\"Enter the date(yyyy-MM-DD)\");\n date = sc.next();\n\n System.out.println(\"Type of transaction : '\\n Choose 1 for 'Income' or '\\n Choose 2 for 'Expenses'\");\n type = sc.nextInt();\n\n System.out.println(\"Enter the amount\");\n amount = sc.nextInt();\n\n System.out.println(\"Enter the reason for the transaction\");\n reason = sc.next();\n\n\n Transaction transaction3 = new Transaction(date, type, amount, reason);\n\n\n LocalDate localDate = LocalDate.parse(transaction3.date, DateTimeFormatter.ISO_DATE);\n String key = localDate.getMonth().toString() + \" \" + localDate.getYear();\n if (transactions.containsKey(key)) {\n// if (transactions.get(key).contains(transaction3)){\n// System.out.println(\"Enter the new income after edit\");\n// float income = sc.nextFloat();\n// System.out.println(\"Enter the new expenses after edit\");\n// float expenses = sc.nextFloat();\n// System.out.println(\"Enter the new date\");\n// String newdate = sc.next();\n\n // Transaction newtransaction = new Transaction(newdate ,income,expenses);\n /// find index which we want to edit...\n int index = transactions.get(key).indexOf(transaction3);\n\n /// replace the old transaction with new one...\n transactions.get(key).set(index, transaction3);\n System.out.println(\"Enter the date(yyyy-MM-DD)\");\n date = sc.next();\n\n System.out.println(\"Type of transaction : '\\n Choose 1 for 'Income' or '\\n Choose 2 for 'Expenses'\");\n type = sc.nextInt();\n\n System.out.println(\"Enter the amount\");\n amount = sc.nextInt();\n\n System.out.println(\"Enter the reason for the transaction\");\n reason = sc.next();\n\n Transaction transaction4 = new Transaction(date, type, amount, reason);\n\n } else {\n System.out.println(\"Transation not found\");\n }\n\n\n //else {\n //System.out.println(\"Transaction not found\");\n }", "title": "" } ]
[ { "docid": "e26e902c6109216986e5fc9b68a87934", "score": "0.76955754", "text": "public Transaction edit(){\r\n Transaction transaction = new Transaction();\r\n transaction.setLedgerID(revised.getLedgerID());\r\n transaction.setDate(dtDate.getValue());\r\n transaction.setTransactionID(txtTransactionID.getText());\r\n transaction.setDescription(txtDescription.getText());\r\n transaction.setReconcile(chkReconcile.isSelected());\r\n if(account.isNormalDebit()){\r\n if(Double.parseDouble(txtAmount.getText()) < 0){\r\n transaction.setCredit(-Double.parseDouble(txtAmount.getText()));\r\n }\r\n else{\r\n transaction.setDebit(Double.parseDouble(txtAmount.getText()));\r\n }\r\n }\r\n else{\r\n if(Double.parseDouble(txtAmount.getText()) < 0){\r\n transaction.setDebit(-Double.parseDouble(txtAmount.getText()));\r\n }\r\n else{\r\n transaction.setCredit(Double.parseDouble(txtAmount.getText()));\r\n }\r\n }\r\n transaction.setTransfer(((ComboBoxItem)cmbTransfer.getValue()).toAccount());\r\n editTransfer(transaction.getTransfer(), account.isNormalDebit(), transaction.getLedgerID());\r\n return transaction;\r\n }", "title": "" }, { "docid": "c10fee348461aebe38e80b250658ca79", "score": "0.6971567", "text": "public void editTransfer(Account transfer, boolean notNormal, int ledgerID){\r\n try{\r\n Transaction transaction = new Transaction();\r\n transaction.setLedgerID(revised.getLedgerID());\r\n transaction.setDate(dtDate.getValue());\r\n transaction.setTransactionID(txtTransactionID.getText());\r\n transaction.setDescription(txtDescription.getText());\r\n transaction.setTransfer(account);\r\n transaction.setReconcile(chkReconcile.isSelected());\r\n if(!notNormal){\r\n if(Double.parseDouble(txtAmount.getText()) < 0){\r\n transaction.setCredit(-Double.parseDouble(txtAmount.getText()));\r\n }\r\n else{\r\n transaction.setDebit(Double.parseDouble(txtAmount.getText()));\r\n }\r\n }\r\n else{\r\n if(Double.parseDouble(txtAmount.getText()) < 0){\r\n transaction.setDebit(-Double.parseDouble(txtAmount.getText()));\r\n }\r\n else{\r\n transaction.setCredit(Double.parseDouble(txtAmount.getText()));\r\n }\r\n }\r\n boolean sameAccount = false;\r\n for(int i = 0; i < ((ComboBoxItem)cmbTransfer.getValue()).toAccount().getTransactions().size(); i++){\r\n if(((ComboBoxItem)cmbTransfer.getValue()).toAccount().getTransactions().get(i).getLedgerID() == ledgerID){\r\n sameAccount = true;\r\n }\r\n }\r\n if(sameAccount){\r\n for(int i = 0; i < transfer.getTransactions().size(); i++){\r\n if(transfer.getTransactions().get(i).getLedgerID() == ledgerID){\r\n transfer.getTransactions().set(i, transaction);\r\n }\r\n }\r\n }\r\n else{\r\n ((ComboBoxItem)cmbTransfer.getValue()).toAccount().getTransactions().add(transaction);\r\n for(int i = 0; i < revised.getTransfer().getTransactions().size(); i++){\r\n if(revised.getTransfer().getTransactions().get(i).getLedgerID() == ledgerID){\r\n revised.getTransfer().getTransactions().remove(i);\r\n }\r\n }\r\n }\r\n }\r\n catch(Exception e){\r\n //probbaly nothing to add: blank amount, rest are fine\r\n }\r\n }", "title": "" }, { "docid": "144e76ff752de572310c9d9f5fa80fe6", "score": "0.68512785", "text": "private void populateUpdateTransaction() {\n headTxt.setText(\"Edit Transaction\");\n addButton.setText(\"Edit\");\n isEdit = true;\n\n dbRef.child(\"transactions\").child(transactionId).\n addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n CostTransaction cTransaction = dataSnapshot.getValue(CostTransaction.class);\n displayTransactionForUpdate(cTransaction);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.d(TAG, \"Error trying to get CostTransaction for update \" +\n \"\" + databaseError);\n Toast.makeText(getActivity(),\n \"Please try to edit the transaction again\",\n Toast.LENGTH_SHORT).show();\n }\n });\n }", "title": "" }, { "docid": "c0a2eb38e053879dd2733325880886cb", "score": "0.6849992", "text": "public void update() {\r\n\t\twebResource = client.resource(URL + \"/\" + transaction.getId());\r\n\t\ttransaction.setPointEchange(3);\r\n\t\ttransaction = webResource.type(MediaType.APPLICATION_JSON_TYPE)\r\n\t\t\t\t.accept(MediaType.APPLICATION_JSON_TYPE)\r\n\t\t\t\t.post(Transaction.class, transaction);\r\n\t\t\r\n\t\tSystem.out.println(\"Transaction modifiée : \" + transaction);\r\n\t}", "title": "" }, { "docid": "76d34213bb79fdc51ba05e6a57d1bdbb", "score": "0.64900345", "text": "private void editTransaction(final String key){\n final DatabaseReference transaction;\n if (familyID.equals(userID) && !InGroup.equals(\"true\")){\n transaction = FirebaseDatabase.getInstance().getReference(\"Transactions\").child(userID).child(key);\n }\n else {\n transaction = FirebaseDatabase.getInstance().getReference(\"Transactions\").child(\"Groups\").child(familyID).child(key);\n }\n transaction.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n TransactionDetails td = dataSnapshot.getValue(TransactionDetails.class);\n Intent intent = new Intent(\"ccpe001.familywallet.AddTransaction\");\n intent.putExtra(\"Update\",\"True\");\n intent.putExtra(\"key\",key);\n intent.putExtra(\"title\",td.getTitle());\n intent.putExtra(\"amount\",td.getAmount());\n intent.putExtra(\"date\",trns.dateView(td.getDate(),getContext()));\n intent.putExtra(\"time\",trns.timeView(td.getTime(),getContext()));\n intent.putExtra(\"categoryName\",trns.categoryView(td.getCategoryName(),getContext()));\n intent.putExtra(\"categoryID\",td.getCategoryID());\n intent.putExtra(\"location\",td.getLocation());\n intent.putExtra(\"currency\",trns.currencyView(td.getCurrency(),getContext()));\n intent.putExtra(\"account\",td.getAccount());\n intent.putExtra(\"transactionType\",td.getType());\n intent.putExtra(\"userID\",td.getUserID());\n intent.putExtra(\"familyID\",td.getFamilyID());\n intent.putExtra(\"previousAmount\",td.getAmount());\n startActivity(intent);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "title": "" }, { "docid": "e9d73ec6f5f8f6f995b9a7a2dba2a4a2", "score": "0.6489388", "text": "public void editCustomer(Customer customer) throws Exception;", "title": "" }, { "docid": "945afd752204af9948aa71b4dcc93e5d", "score": "0.6424748", "text": "Transaction viewTransactionById(Long transactionId);", "title": "" }, { "docid": "099c4bb5f260c0d0749036284a5b062b", "score": "0.640066", "text": "@Test\r\n public void testUpdateTransaction() {\r\n Transaction transaction = new Transaction(5, Transaction.TransactionType.EXPENSE, \"Transport\");\r\n this.account.addTransaction(transaction);\r\n this.account.updateTransaction(0, 20, \"Transport\");\r\n assertEquals(4980,this.account.getSurplus());\r\n }", "title": "" }, { "docid": "919fb56a592239232dfac1943f4a9993", "score": "0.6396218", "text": "public String editar()\r\n/* 98: */ {\r\n/* 99:153 */ if (getPagoCash().getIdPagoCash() != 0)\r\n/* 100: */ {\r\n/* 101:154 */ setPagoCash(this.servicioPagoCash.cargarDetalle(getPagoCash().getIdPagoCash()));\r\n/* 102:155 */ for (DetallePagoCash detallePagoCash : this.pagoCash.getListaDetallePagoCash()) {\r\n/* 103:156 */ if (detallePagoCash.getCuentaPorPagar() != null) {\r\n/* 104:157 */ detallePagoCash.setDiasVencidos((int)FuncionesUtiles.DiasEntreFechas(detallePagoCash.getCuentaPorPagar().getFechaVencimiento(), detallePagoCash\r\n/* 105:158 */ .getPagoCash().getFechaPago()));\r\n/* 106: */ }\r\n/* 107: */ }\r\n/* 108:163 */ calcularValorPagoCash();\r\n/* 109:164 */ setEditado(true);\r\n/* 110: */ }\r\n/* 111: */ else\r\n/* 112: */ {\r\n/* 113:168 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_seleccionar\"));\r\n/* 114: */ }\r\n/* 115:170 */ return \"\";\r\n/* 116: */ }", "title": "" }, { "docid": "a2c9a8901baac54a51cb2a078f3a0e6a", "score": "0.63927644", "text": "public void saveTransaction( Transaction t );", "title": "" }, { "docid": "436fd14690c8027721e088b5b92f78c5", "score": "0.63419443", "text": "Transaction updateTransaction(Long transactionId, Transaction transaction);", "title": "" }, { "docid": "afcd6ffcea0cfe7d329bb435d3344222", "score": "0.63210404", "text": "public void editDeliver(Deliver deliver);", "title": "" }, { "docid": "93f56ab8ce6256ea944d554b1c97a172", "score": "0.63199186", "text": "public String edit()\r\n\t{\r\n\t\tHttpServletRequest request = (HttpServletRequest) ActionContext.getContext().get(ServletActionContext.HTTP_REQUEST);\r\n\t\testabelecimento = estabelecimentoDAO.listEstabelecimentoById(Long.parseLong(request.getParameter(\"id\")));\r\n\t\treturn SUCCESS;\r\n\t}", "title": "" }, { "docid": "bc861913302a6cc0fa6fbcb71a5a9ec1", "score": "0.6263039", "text": "void editar(Usuario usuario);", "title": "" }, { "docid": "c8b99257abf8e3a8a9eeb63254225266", "score": "0.6256885", "text": "public void saveTransaction(Transaction txn);", "title": "" }, { "docid": "8ab9e2ddf057c365bab2fcec3b80c82e", "score": "0.6199392", "text": "public void transaction(Transaction transaction) {\r\n }", "title": "" }, { "docid": "7e8862c1f830e110a686ec671e5476c8", "score": "0.6190595", "text": "protected abstract void editDataAction();", "title": "" }, { "docid": "3bf73337d4759329de11bb8aebebfe8f", "score": "0.6164204", "text": "public void setTransaction(entity.Transaction value);", "title": "" }, { "docid": "805b1fbc86a0097be8ba4a5ac02c2e55", "score": "0.614897", "text": "private void editAction() {\n if(newKeyField.getText().trim().isEmpty() && newBpKeyField.getText().trim().isEmpty()) {\n\n bikeManagement.editBike(numberField.getText().trim(), null, checkInfo());\n\n } else if(tireDField.getText().trim().isEmpty() && frameHField.getText().trim().isEmpty() &&\n manufacturerField.getText().trim().isEmpty() && colorField.getText().trim().isEmpty()) {\n\n bikeManagement.editBike(numberField.getText().trim(), new BikeKey(newKeyField.getText().trim(), newBpKeyField.getText().trim()), null);\n\n } else {\n bikeManagement.editBike(numberField.getText().trim(), new BikeKey(newKeyField.getText().trim(), newBpKeyField.getText().trim()), checkInfo());\n }\n\n eventBus.post(new ConfirmEditEvent());\n }", "title": "" }, { "docid": "09dd707a5720f23c3f70dd00f2d03020", "score": "0.612782", "text": "@Override\n public void updateTransaction(SalesTransaction transaction, OnDatabaseOperationCompleteListener listener) {\n if (database != null) {\n //prepare the transaction information that will be saved to the database\n ContentValues values = new ContentValues();\n values.put(Constants.COLUMN_CUSTOMER_ID, transaction.getCustomerId());\n values.put(Constants.COLUMN_PAYMENT_STATUS, convertBooleanToInt(transaction.isPaid()));\n values.put(Constants.COLUMN_PAYMENT_TYPE, transaction.getPaymentType());\n values.put(Constants.COLUMN_TAX_AMOUNT, transaction.getTaxAmount());\n values.put(Constants.COLUMN_SUB_TOTAL_AMOUNT, transaction.getSubTotalAmount());\n values.put(Constants.COLUMN_TOTAL_AMOUNT, transaction.getTotalAmount());\n values.put(Constants.COLUMN_DATE_CREATED, System.currentTimeMillis());\n values.put(Constants.COLUMN_LAST_UPDATED, System.currentTimeMillis());\n\n //Now update the this row with the information supplied\n int result = database.update(Constants.TRANSACTION_TABLE, values,\n Constants.COLUMN_ID + \" = \" + transaction.getId(), null);\n if (result == 1){\n listener.onSQLOperationSucceded(\"Transaction Updated\");\n }else{\n listener.onSQLOperationFailed(\"Transaction Update Failed\");\n }\n }\n }", "title": "" }, { "docid": "05debc1e47a1658b29159436cb11391e", "score": "0.61172616", "text": "public void edit(){\r\n\t\ttry {\r\n\t\t\tthis.open();\r\n\t\t\tPreparedStatement query = this.query(\"UPDATE subscription \"\r\n\t\t\t\t\t+ \"SET title = ?, description = ?, \\\"minimumAge\\\" = ?, \\\"maximumAge\\\" = ?, \"\r\n\t\t\t\t\t+ \"price = ?, monthly = ?, \\\"branchId\\\" = ?, gender = ?, \"\r\n\t\t\t\t\t+ \"\\\"startdate\\\" = ?, \\\"enddate\\\" = ?, \\\"startTime\\\" = ?, \\\"endTime\\\" = ?, \\\"type\\\" = ?, \\\"days\\\" = ?\"\r\n\t\t\t\t\t+ \"WHERE id = ?\"\r\n\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tquery.setString(1, this.getTitle() );\r\n\t\t\t\t\tquery.setString(2, this.getDescription() );\t\t\t\t\t\r\n\t\t\t\t\tquery.setInt(3, this.getMinimumAge() );\r\n\t\t\t\t\tquery.setInt(4, this.getMaximumAge() );\r\n\t\t\t\t\tquery.setDouble(5, this.getPrice() );\r\n\t\t\t\t\tquery.setBoolean(6, this.getMonthly() );\r\n\t\t\t\t\tquery.setInt(7, this.getBranchId() );\r\n\t\t\t\t\tquery.setString(8, String.valueOf( this.getGender() ) );\r\n\t\t\t\t\tquery.setDate(9, this.getStartDate() );\r\n\t\t\t\t\tquery.setDate(10, this.getEndDate() );\r\n\t\t\t\t\tquery.setTime(11, this.getStartTime() );\r\n\t\t\t\t\tquery.setTime(12, this.getEndTime() );\r\n\t\t\t\t\tquery.setString(13, String.valueOf( this.getType() ) );\r\n\t\t\t\t\tquery.setArray(14, Manager.getConnection().createArrayOf(\"varchar\", this.getDays() ) );\r\n\t\t\t\t\tquery.setInt(15, this.getId() );\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\tApplication.getInstance().showPopup(new NotificationPopup(\"De cursus is gewijzigd.\"));\r\n\t\t} catch (SQLException ex) {\r\n\t\t\t\r\n\t\t\tApplication.getInstance().showPopup(new NotificationPopup(\"Er is iets mis gegaan. \\n\"\r\n\t\t\t\t\t+ \"Probeer het nogmaals.\"));\r\n\t\t}finally {\r\n\t\t\tthis.execute();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "acfe3c46dd4b926a742916fe1b301e0d", "score": "0.61010647", "text": "private void displayTransactionForUpdate(CostTransaction costTransaction){\n\n ((EditText) getActivity()\n .findViewById(R.id.title_editText)).setText(costTransaction.getTitle());\n categorySpinner.setSelection(getIndex(categorySpinner, costTransaction.getCategory()));\n ((EditText) getActivity()\n .findViewById(R.id.desc_editText)).setText(costTransaction.getDescription());\n ((EditText) getActivity()\n .findViewById(R.id.cost_editText)).setText(costTransaction.getCost());\n\n // Need to consider how to update DatepickerDialog\n }", "title": "" }, { "docid": "86bcdf52e27a23245e21d806f5b39114", "score": "0.6096259", "text": "@Override\npublic Transaction updateTransaction(Transaction u) {\n\treturn TransactionRepo.save(u);\n}", "title": "" }, { "docid": "61e03de4ac3e891dfb186f40f0a73e6c", "score": "0.608982", "text": "private void startEditAccountTransactionActivity(Integer transId) {\n // create intent, set Account ID\n Intent intent = new Intent(getActivity(), CheckingTransactionEditActivity.class);\n // check transId not null\n if (transId != null) {\n intent.putExtra(EditTransactionActivityConstants.KEY_TRANS_ID, transId);\n intent.setAction(Intent.ACTION_EDIT);\n } else {\n intent.putExtra(EditTransactionActivityConstants.KEY_ACCOUNT_ID, this.AccountId);\n intent.setAction(Intent.ACTION_INSERT);\n }\n // launch activity\n startActivity(intent);\n }", "title": "" }, { "docid": "45b74069b942ec1c053ba7b3bfba73f2", "score": "0.6055838", "text": "@SuppressWarnings(\"unchecked\")\r\n\tprivate void editAction(){\r\n\t\tescribirFormEdicion( (T) ((BeanModel)(this.grid.getSelectionModel().getSelectedItem())).getBean());\r\n\t\ttabPanel.setSelection(editarTab);\r\n\t\teditarTab.enable();\r\n\t}", "title": "" }, { "docid": "c4e9d49ea757149ca7d3e56971aa19b6", "score": "0.6026317", "text": "@Override\r\n\tpublic int edit(Sell sell) {\n\t\treturn sellDao.edit(sell);\r\n\t}", "title": "" }, { "docid": "d1fea5dcf55ca401324d68f8a439af3d", "score": "0.60184115", "text": "public String editar()\r\n/* 81: */ {\r\n/* 82: 91 */ if ((this.transportista != null) && (this.transportista.getId() != 0))\r\n/* 83: */ {\r\n/* 84: 92 */ this.transportista = this.servicioTransportista.cargarDetalle(this.transportista.getId());\r\n/* 85: 93 */ setEditado(true);\r\n/* 86: */ }\r\n/* 87: */ else\r\n/* 88: */ {\r\n/* 89: 95 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_seleccionar\"));\r\n/* 90: */ }\r\n/* 91: 97 */ return \"\";\r\n/* 92: */ }", "title": "" }, { "docid": "76913b94253b1b1fdc95c7d889aeed88", "score": "0.6009693", "text": "public void edit(E entity, boolean b) {\n Session session = getSession();\n //Transaction tx = null;\n try {\n //tx = session.beginTransaction();\n\n session.update(entity);\n session.flush();\n //tx.commit();\n if (b) {\n message.setPositiveMes(\"Změněno\");\n }\n } catch (HibernateException e) {\n e.printStackTrace();\n// if (tx != null) {\n// tx.rollback();\n message.setNegativeMes(\"Editace se nepovedla :(\");\n// }\n } \n\n \n }", "title": "" }, { "docid": "79b06848b3c6b3c97d0181b6ac56c47f", "score": "0.60006654", "text": "private void addTransaction() {\n Intent intent = new Intent(this, TransactionActivity.class);\n intent.putExtra(accID, getIntent().getIntExtra(\"accountID\", 0));\n intent.putExtra(accName, _accountNameField.getText().toString());\n intent.putExtra(edit, true);\n startActivityForResult(intent, 1);\n }", "title": "" }, { "docid": "a8dd51823ec97acf4343e400a0a21982", "score": "0.599093", "text": "@Override\r\n\tpublic boolean editbyid(Long eresid, Long resid, Integer amount,Double money) throws Exception {\n\t\tif (amount < 0) {\r\n\t\t return false;\t\r\n\t\t}\r\n\t\treturn this.resourcedetailsDAO.doEditById(eresid, resid, amount,money);\r\n\t}", "title": "" }, { "docid": "6ff2086307fab40667f3bccbd139c258", "score": "0.5989739", "text": "@Override\n\tpublic void edit(User entity) {\n\n\t}", "title": "" }, { "docid": "eb290e0f5094550c07a2bef7461306c2", "score": "0.59832436", "text": "public Response<Entry> editEntry(String account, String xaction, String amount);", "title": "" }, { "docid": "bbb982a61afd7d3f9dc31f7d87dc8c53", "score": "0.59673315", "text": "protected void editRow() {\n Intent intent = new Intent(this, GasRecordActivity.class);\n GasRecord record = records.get(selectedRow);\n intent.putExtra(GasRecordActivity.RECORD, record);\n intent.putExtra(GasRecordActivity.TANK_SIZE, vehicle.getTankSize());\n startActivityForResult(intent, EDIT_ROW_REQUEST);\n }", "title": "" }, { "docid": "eecea93328b1dfdad7aac4baa704f6ba", "score": "0.59643674", "text": "private void addCostTransaction(CostTransaction costTransaction, String transId) {\n costTransaction.setTransactionId(transId);\n dbRef.child(\"transactions\").child(transId)\n .setValue(costTransaction)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n if(isEdit){\n // Sends Intent\n addTransactions();\n }else{\n // Clears editText fields\n restUi();\n }\n Log.d(TAG, \"Transaction has been added to database.\");\n Toast.makeText(getActivity(),\n \"Transaction has been successfully added\",\n Toast.LENGTH_SHORT).show();\n // Change view to History page\n FragmentTransaction ft = fm.beginTransaction();\n ft.replace(R.id.adds_frame, new ViewTransactionFragment());\n ft.commit();\n } else {\n Log.d(TAG, \"Transaction couldn't be added to database.\");\n Toast.makeText(getActivity(),\n \"Transaction could not be added\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "title": "" }, { "docid": "2ed5c472922c103d6593c7f9a5fb60d2", "score": "0.5947305", "text": "void editItems();", "title": "" }, { "docid": "b2e85740acf68c3981e2a87b122885b0", "score": "0.59445584", "text": "@Override\n\tpublic CashbackTransactionModel edit(IKeyBuilder<String> keyBuilder,\n\t\t\tCashbackTransactionModel model) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9d5c563bba31094c94438191ffb1541a", "score": "0.5923653", "text": "@Override\n\tpublic void editar(Paciente paciente) {\n\t\tthis.dao.editar(paciente);\n\t\t\n\t}", "title": "" }, { "docid": "be188414fb9269bbc1d80147f71f7816", "score": "0.5919114", "text": "public void editarDatos() {\n\n }", "title": "" }, { "docid": "c45eb47996603a582d5191342f1c694b", "score": "0.59146404", "text": "@Override\n\tpublic String editar() throws Exception {\n\t\tsetAccionPantalla(accion_solicitada.EDITAR);\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5edd8ee3aae23ef99f15bae0f74102ba", "score": "0.59107", "text": "@Override\n\tpublic void editar(Carro carro) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "e5abc7498d35a84ba2807e4a589b394e", "score": "0.59076786", "text": "public void updateTp000003(Tp000003 entity) throws Exception;", "title": "" }, { "docid": "49026c12be62be9fc15a2f40239883d5", "score": "0.5902022", "text": "private void updateTransactionToDB(CostTransaction cTransaction) {\n // Toast for testing\n Toast.makeText(getActivity(),\n \"updateTransactionToDB method invoked\",\n Toast.LENGTH_LONG).show();\n addCostTransaction(cTransaction, transactionId);\n }", "title": "" }, { "docid": "b5a87c5dfa7cae5c1545b96a0aa8717c", "score": "0.5895652", "text": "@Override\r\n\tpublic Cour Edit(Cour c) {\n\t\treturn cour.saveAndFlush(c);\r\n\t}", "title": "" }, { "docid": "f7adb7c0622deed5ae3b9505a815ce8a", "score": "0.5894675", "text": "@Override\n\tpublic void transaction() {\n\n\t}", "title": "" }, { "docid": "b206a9b809e6ea4cb67c4a959cac3820", "score": "0.58913225", "text": "void editUser(User user);", "title": "" }, { "docid": "1d8915cd4cca6cc9e00f6f0352d921c2", "score": "0.58634967", "text": "@Override\n\tpublic boolean edit(T entity) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7ffcfd43c3aa8d6aed34af9662e1e30f", "score": "0.58385885", "text": "public void editarEnListado(String id) {\n\n }", "title": "" }, { "docid": "1de466938e6cdcc6418510103427a655", "score": "0.58244437", "text": "public void editar(Cliente cliente) {\n\t\tentity.getTransaction().begin();\n\t\tentity.merge(cliente);\n\t\tentity.getTransaction().commit();\n\t}", "title": "" }, { "docid": "97139c9a056ee8571179d9acc8c7e892", "score": "0.5813962", "text": "@Transactional\r\n\tpublic void edit(Supplier supplier) {\n\t\tsessionFactory.getCurrentSession().update(supplier);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "dd26845da56e8e6aa1ced7d4ec191373", "score": "0.5812526", "text": "abstract protected void edit (int index);", "title": "" }, { "docid": "a3520a5b019507a5fb421fb74a3a7873", "score": "0.5804644", "text": "public void editRecord(final int ChargeId) {\n\n /*5.9 Inside the editRecord() method, we will use the following code to read single record.\n Data will be used to fill up the student form for updating it.*/\n final TableControllerCharge tableControllerCharge = new TableControllerCharge(context);\n ObjectChargeFinanciere objectChargeFinanciere = tableControllerCharge.readSingleRecord(ChargeId);\n\n //5.11 Going back to OnLongClickListenerStudentRecord.java > editRecrod() method, inflate student_input_form.xml, this time we will use it for updating a record.\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n final View formElementsView = inflater.inflate(R.layout.charge_input_form, null, false);\n\n //5.12 List down form elements. Put the following code under the code in section 5.11\n final EditText editTextTitreProduit = (EditText) formElementsView.findViewById(R.id.editTexttitreProduit);\n final EditText editTextQuantite = (EditText) formElementsView.findViewById(R.id.editTextQuantite);\n final EditText editTextPrix = (EditText) formElementsView.findViewById(R.id.editTextPrixProduit);\n //5.13 Set single record values to the EditText form elements. Put the following code under the code in section 5.12\n editTextTitreProduit.setText(objectChargeFinanciere.titreproduit);\n editTextQuantite.setText(objectChargeFinanciere.quantite);\n editTextPrix.setText(objectChargeFinanciere.prixproduit);\n // 5.14 Show an AlertDialog with the form and single record filling it up. Put the following code under the code in section 5.13\n new AlertDialog.Builder(context)\n .setView(formElementsView)\n .setTitle(\"Modifier dépense\")\n .setPositiveButton(\"Enregister\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n//5.15 Inside the AlertDialog > onClick() method, create the object with the updated value. We are still in the editRecord() method.\n ObjectChargeFinanciere objectChargeFinanciere = new ObjectChargeFinanciere();\n objectChargeFinanciere.id = ChargeId;\n objectChargeFinanciere.titreproduit = editTextTitreProduit.getText().toString();\n objectChargeFinanciere.quantite = editTextQuantite.getText().toString();\n objectChargeFinanciere.prixproduit = editTextPrix.getText().toString();\n\n//5.16 Update the record and tell the user whether it was updated or not. Put the following code under the code in section 5.15\n\n boolean updateSuccessful = tableControllerCharge.update(objectChargeFinanciere);\n\n if(updateSuccessful){\n Toast.makeText(context, \"Modification avec succée.\", Toast.LENGTH_SHORT).show();\n }else{\n Toast.makeText(context, \"Impossible de modifier le dépense.\", Toast.LENGTH_SHORT).show();\n }\n\n //5.18 Refresh the count and record list. Put the following code under the code in section 5.16\n ((Main_charge_financiere) context).countRecords();\n ((Main_charge_financiere) context).readRecords();\n\n\n dialog.cancel();\n }\n\n }).show();\n\n\n }", "title": "" }, { "docid": "e1532cc0e3e4a746accb70b0b6ed8184", "score": "0.5803088", "text": "public void editItemDetil(){\n\t\tview.showWindowForm();\n\t\t//2. INIT LISTENER\n\t\tview.getItemDetilView().getBtnAddAndSave().addClickListener(this);\n\t\tview.getItemDetilView().getBtnClose().addClickListener(this);\n\t\t//3. INIT STATE FORM\n\t\tview.getItemDetilModel().setOperationStatus(EnumOperationStatus.EDITING.getStrCode());\n\t\t//4. INIT VALUE::ITEM DETIL\n\t\tview.getItemDetilModel().setItemHeader(model.getItemHeader());\n\t\tview.getItemDetilModel().setItemDetil(model.getItemDetil());\n\t\t\n\t\tview.getItemDetilPresenter().editItemdetil();\t\n\t\tview.getItemDetilView().focustIdOrDesc();\n\t\t\n\t}", "title": "" }, { "docid": "1607cba3501dff396a05836c849c48cc", "score": "0.5780002", "text": "private void editar() throws SQLException {\n actualizarLoteVacuna();\n this.poblarTablaLoteVacuna();\n habilitarBotones(true, false, false, false);\n limpiarTextField();\n }", "title": "" }, { "docid": "e40a891e0640847c8481c5f3e36e7cd5", "score": "0.5777697", "text": "private void newTransaction(){\n this.textJmlItem.setText(\"\");\n this.textCode.setText(\"\");\n this.buttonNew.setEnabled(true);\n this.buttonSave.setEnabled(false);\n this.buttonAdd.setEnabled(false);\n this.buttonCancel.setEnabled(false);\n this.buttonRemove.setEnabled(false);\n this.textJmlItem.setEnabled(false);\n this.comboItem.setEnabled(false);\n this.tabelModel.setRowCount(0);\n this.keranjang.clear();\n }", "title": "" }, { "docid": "4fe07e545dacd4b8009c2629752bcba0", "score": "0.5773518", "text": "@Override\r\n\tpublic String editar() {\n\t\ttry {\r\n\t\t\tthis.carga = (Carga) rastrearCargaFacade.getCargaById(selectCarga.getId());\r\n\r\n\t\t\t// address = \"Viena\";\r\n\t\t\t// carrega FOLLOWUP\r\n\t\t\tthis.followUp = rastrearCargaFacade.getFollowUpByCarga(this.carga);\r\n\t\t\tLong idAgente = carga.getAgenteCarga().getId();\r\n\t\t\t//Rota rota = carga.getRota();\r\n\t\t\tcarga.setRota(cadastroFacade.getRotaById(carga.getRota().getId()));\r\n\t\t\tPessoaJuridica ag = cadastroFacade.getPessoaById(idAgente);\r\n\t\t\tthis.carga.setAgenteCarga(ag);\r\n\t\t\tfiltroOcorrencia.setCarga(this.carga);\r\n\r\n\t\t\tlistOcorrencias2 = rastrearCargaFacade\r\n\t\t\t\t\t.listarOcorrencia(filtroOcorrencia);\r\n\t\t\tList<FollowUpImportTrecho> trechos = followUp.getTrechosFollowUp();\r\n\r\n\t\t\tfor (int i = trechos.size() - 1; i >= 0; i--) {\r\n\t\t\t\tFollowUpImportTrecho trecho = trechos.get(i);\r\n\t\t\t\tif (trecho.getDtRealizado() != null) {\r\n\t\t\t\t\tCidade city = cadastroFacade.getCidadeById(trecho\r\n\t\t\t\t\t\t\t.getCidade().getId());\r\n\t\t\t\t\tthis.address = city.getNome() + \", \"\r\n\t\t\t\t\t\t\t+ city.getPais().getNome();\r\n\t\t\t\t\tthis.address2 = city.getNome() + \", \"\r\n\t\t\t\t\t\t\t+ city.getPais().getNome();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// carregando a lista de invoices\r\n\t\t\tlistaInvoices = rastrearCargaFacade\r\n\t\t\t\t\t.listarInvoicesByCarga(this.carga);\r\n\r\n\t\t\tthis.ocorrencia = rastrearCargaFacade.getOcorrenciaById(this.carga\r\n\t\t\t\t\t.getId());\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn \"rastrearcarga.jsf?faces-redirect=true\";\r\n\t}", "title": "" }, { "docid": "8763fe57e8eb52cb779f4fc1ebac1eb3", "score": "0.57639545", "text": "public EditTransactionDialog(Book book, Account account, Transaction original){\r\n this.book = book;\r\n this.account = account;\r\n this.revised = original;\r\n this.setTitle(\"Funds: \" + original.getDescription());\r\n Image icon = new Image(getClass().getResourceAsStream(\"../Images/FundsIcon.png\"));\r\n Stage stage = (Stage)this.getDialogPane().getScene().getWindow();\r\n stage.getIcons().add(icon);\r\n try{\r\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"EditTransactionDialogGUI.fxml\"));\r\n loader.setController(this);\r\n this.setDialogPane(loader.load());\r\n }\r\n catch(Exception e){\r\n //just move on then\r\n }\r\n //cmbTransfer.setDisable(true);\r\n setAccountChoices();\r\n dtDate.setValue(original.getDate());\r\n txtTransactionID.setText(original.getTransactionID());\r\n txtDescription.setText(original.getDescription());\r\n cmbTransfer.setValue(original.getTransfer() != null ? new ComboBoxItem(original.getTransfer(), false) : null);\r\n chkReconcile.setSelected(original.isReconcile());\r\n if(original.getDebit() == 0.0){\r\n txtAmount.setText(account.isNormalDebit() ? Double.toString(-original.getCredit()) : Double.toString(original.getCredit()));\r\n revised.setNormalDebit(false);\r\n }\r\n else{\r\n txtAmount.setText(account.isNormalDebit() ? Double.toString(original.getDebit()) : Double.toString(-original.getDebit()));\r\n revised.setNormalDebit(true);\r\n }\r\n this.getDialogPane().getButtonTypes().addAll(ButtonType.OK, ButtonType.CANCEL);\r\n Optional<ButtonType> clicked = this.showAndWait();\r\n if(clicked.get() == ButtonType.OK){\r\n //should be finished here\r\n }\r\n else{\r\n //just cancel it then\r\n }\r\n }", "title": "" }, { "docid": "669adeac0911d26f3c2b67a639a10541", "score": "0.5754767", "text": "void edit(CheckItem checkItem);", "title": "" }, { "docid": "f96d486ce38f22d70a72049a4fca180b", "score": "0.5746475", "text": "public boolean editTable(Table t) {\r\n\t\tsetNaziv(t.getNaziv());\r\n\t\tsetpKey(t.getpKey());\r\n\r\n\t\tTableEvent event = new TableEvent(this, parentModel, EventType.UPDATE);\r\n\t\tsetChanged();\r\n\t\tnotifyObservers(event);\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "4361098da63c7c95d2f00bf58bcf8b30", "score": "0.5738514", "text": "public void editProfile(int P_ID){\n\n }", "title": "" }, { "docid": "0baaf3ab03a88bca1d55b057dea88962", "score": "0.5737208", "text": "public final void edit(final E objectToEdit) {\n sessionFactory.getCurrentSession().update(objectToEdit);\n }", "title": "" }, { "docid": "a80d900854f35949df8745c39a7fa0f7", "score": "0.5735074", "text": "public String editar() {\n\t\tInteger id = Integer.parseInt(\n\t\t\t\t(String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"id\"));\n\t\tpessoa = pessoaDao.selecionarPorId(id);\n\t\treturn \"sucesso\";\n\t}", "title": "" }, { "docid": "f1c7cb2938146d6697ab15c745c39129", "score": "0.5730635", "text": "public void updateEvent() {\n // HERE\n CostTransaction costTransaction = createCostTransactionObj();\n updateTransactionToDB(costTransaction);\n }", "title": "" }, { "docid": "355937c37e21230a3aac141ba727b22d", "score": "0.5729283", "text": "public Post editPost(int postID, Post post);", "title": "" }, { "docid": "3bf767aaa47d1e8e23bd98f6370d22bd", "score": "0.572772", "text": "@Override\n\tpublic void editTask(Task task) {\n\t\t\n\t}", "title": "" }, { "docid": "d554814da3c100d8ab29ddb5aad95f2d", "score": "0.5727553", "text": "public void save(Transaction txn) {\n\n\t}", "title": "" }, { "docid": "ed2945b7bef3b2f550190bfe4b587b48", "score": "0.57110715", "text": "void modificarProducto() {\n LineaJpaController unid = new LineaJpaController(entityManager2.getEntityManagerFactory());\n Linea li = new Linea();\n \n try {\n \n if(tf_descrip.getText().length() == 0 ){\n JOptionPane.showMessageDialog(null, \"Campos vacios\");\n \n }else{\n li= unid.findLinea(Integer.parseInt(jl_id.getText()));\n li.setLineNombre(this.tf_descrip.getText().toString());\n \n int SioNo = JOptionPane.showConfirmDialog(this, \"Desea modificar?\", \"Confirmacion\", JOptionPane.YES_NO_OPTION);\n if (SioNo == 0) {\n\n unid.edit(li);\n JOptionPane.showMessageDialog(this, \"Datos modificados correctamente\");\n } else {\n limpiar();\n }\n \n \n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"No se a selecionado elemento a modifcar\");\n e.printStackTrace();\n }\n limpiar();\n mostrarTabla();\n \n }", "title": "" }, { "docid": "f4cd64d5944ec23358a0b83d2ea476bc", "score": "0.57083666", "text": "public void edit() {\r\n\t\t// Call view() to find, display, & return the customer to edit\r\n\t\tCustomer tempCustomer = view();\r\n\t\t// If the customer != null, i.e. it was found then...\r\n\t\tif (tempCustomer != null) {\r\n\t\t\t// get it's index\r\n\t\t\tint index = customers.indexOf(tempCustomer);\r\n\t\t\t// read in a new customer and...\r\n\t\t\ttempCustomer.read();\r\n\r\n\t\t\t// reset the object in customers\r\n\t\t\tcustomers.set(index, tempCustomer);\r\n\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7a2d2e2ffcd5455b3072ff7ce7eb044b", "score": "0.57000464", "text": "com.excentus.en.webservice.issuance.request.enWebRewardIssuanceService.rewardIssuanceRequest.RewardIssuanceRequestDocument.RewardIssuanceRequest.Transaction addNewTransaction();", "title": "" }, { "docid": "b1e211ab356acf00847e8900ffaed559", "score": "0.5694789", "text": "public void editStep(){\n\t\tif(!hasIdt()) setIdc(null);\n\t}", "title": "" }, { "docid": "ba32cb1afbb1ed28f0e466d71f940211", "score": "0.56946975", "text": "public String editar() {\n //logger.setLevel(Level.ALL);\n logger.entering(this.getClass().getName(), \"editar\");\n httpServletRequest.getSession().setAttribute(\"nueF\", this.nue);\n httpServletRequest1.getSession().setAttribute(\"cuentaUsuario\", this.usuarioSis);\n logger.exiting(this.getClass().getName(), \"editar\", \"editarPeritoET\");\n return \"editarPeritoET.xhtml?faces-redirect=true\";\n }", "title": "" }, { "docid": "d4084ba2a78e18edf277aa79478202f6", "score": "0.5692745", "text": "@Override\n public BookingInfoEntity updateBookingAsTransaction(int id, BookingTransactionDTO bookingTransactionDTO) {\n BookingInfoEntity booking = validateTransaction(id, bookingTransactionDTO);\n\n Map<String,String> paymentUriMap = new HashMap<>();\n\n paymentUriMap.put(\"paymentMode\", bookingTransactionDTO.getPaymentMode());\n paymentUriMap.put(\"bookingId\", String.valueOf(bookingTransactionDTO.getBookingId()));\n paymentUriMap.put(\"upiId\", bookingTransactionDTO.getUpiId());\n paymentUriMap.put(\"cardNumber\", bookingTransactionDTO.getCardNumber());\n\n\n\n // calling payment service API using rest template\n BookingTransactionDTO updateBookingTransactionDTO = restTemplate.postForObject(\"http://PAYMENT-SERVICE/transaction\", paymentUriMap,BookingTransactionDTO.class);\n\n System.out.println(\"BreakPoint: \" + updateBookingTransactionDTO);\n // return booking data with updated information\n if(updateBookingTransactionDTO != null){\n booking.setTransactionID(updateBookingTransactionDTO.getTransactionId());\n bookingDao.save(booking);\n return booking;\n }\n return null;\n }", "title": "" }, { "docid": "476582e00a798238c70b99b4997bba1a", "score": "0.56861824", "text": "void commit(String transactionId);", "title": "" }, { "docid": "c880e91c06b4d4638e71e3ae709f7f00", "score": "0.5681186", "text": "public Member editMemberDetails (Member prm_objMember);", "title": "" }, { "docid": "e1eb278e96608e13c8208d5e158cbbcb", "score": "0.5677011", "text": "public int updateLedger(int bill_id, int item_id);", "title": "" }, { "docid": "a3f85df47f7c1a3310870fd321cf47bb", "score": "0.5673277", "text": "public void onClick(DialogInterface dialog, int id) {\n ObjectChargeFinanciere objectChargeFinanciere = new ObjectChargeFinanciere();\n objectChargeFinanciere.id = ChargeId;\n objectChargeFinanciere.titreproduit = editTextTitreProduit.getText().toString();\n objectChargeFinanciere.quantite = editTextQuantite.getText().toString();\n objectChargeFinanciere.prixproduit = editTextPrix.getText().toString();\n\n//5.16 Update the record and tell the user whether it was updated or not. Put the following code under the code in section 5.15\n\n boolean updateSuccessful = tableControllerCharge.update(objectChargeFinanciere);\n\n if(updateSuccessful){\n Toast.makeText(context, \"Modification avec succée.\", Toast.LENGTH_SHORT).show();\n }else{\n Toast.makeText(context, \"Impossible de modifier le dépense.\", Toast.LENGTH_SHORT).show();\n }\n\n //5.18 Refresh the count and record list. Put the following code under the code in section 5.16\n ((Main_charge_financiere) context).countRecords();\n ((Main_charge_financiere) context).readRecords();\n\n\n dialog.cancel();\n }", "title": "" }, { "docid": "3e206b19ceae2c98cc0d3c3205b71525", "score": "0.5672753", "text": "public Tax updateTax(Tax t) throws IOException, SQLException, JTillException;", "title": "" }, { "docid": "3e0af02dbb7df8e778d2455262079bd8", "score": "0.5667216", "text": "@Override\n\tpublic void editOrder(Order order) throws BusinessException{\n\t\tlog.info(\"editOrder(Order order) - OrderServiceImpl - OrderViewService\");\n\t}", "title": "" }, { "docid": "780bade8e9f95aa9b721483bf560fdce", "score": "0.5659118", "text": "public void updatePayment(PKITransaction transaction) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\tsession.update(transaction);\n\t}", "title": "" }, { "docid": "841efd16aeeb5eb8a8dc829f7500dd34", "score": "0.56479", "text": "public void editar(int index){\n\t\tPolizaDet source=partidasSource.get(index);\r\n\t\tPolizaDet proxy=beforeUpdate(source);\r\n\t\tfinal DefaultFormModel model=new DefaultFormModel(proxy);\t\t\r\n\t\tfinal PolizaDetForm form=new PolizaDetForm(model);\r\n\t\tform.setCuentas(ServiceLocator2.getUniversalDao().getAll(CuentaContable.class));\r\n\t\tform.open();\r\n\t\tif(!form.hasBeenCanceled()){\r\n\t\t\tafterUpdate(source, proxy);\r\n\t\t\tpartidasSource.set(index, source);\r\n\t\t\tgetPoliza().actualizar();\r\n\t\t\tvalidate();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3528af3ba4a61980cf445c185e55a7cd", "score": "0.56443185", "text": "public boolean editReservation() {\n return true;\n }", "title": "" }, { "docid": "6ce42d874deaa81e48d3a87de8656b83", "score": "0.5643821", "text": "@Test\n public void testChangeAmountAndChange() throws Exception {\n TransactionMapperImpl transactionMapper = new TransactionMapperImpl();\n Transaction transaction = new Transaction();\n transaction.setTransactionId(10000);\n transaction.setUserId(100);\n transaction.setPayment(true);\n transaction.setStatus(0);\n Date date = new Date();\n date.getTime();\n transaction.setTime(date);\n transaction.setPrice(10.5);\n transactionMapper.insertSelective(transaction);\n Assert.assertNotNull(transactionMapper.changeAmount(10000, 4.5));\n Assert.assertNotNull(transactionMapper.changeChange(10000, 4.5));\n transactionMapper.deleteByPrimaryKey(10000);\n }", "title": "" }, { "docid": "f53fbce96f0bf54336e5d1e496aebf44", "score": "0.56372094", "text": "public void onRowEdit(RowEditEvent event) {\r\n String cliente= ((Cliente) event.getObject()).getNombre();\r\n System.out.println(cliente);\r\n //this.service.modificarCliente(cliente);\r\n }", "title": "" }, { "docid": "1f2dc18e2dd13bf2161afad1cc738100", "score": "0.5634628", "text": "public void setTaskAsReaded(TaskBean _taskToUpdate, long _transactionId)\r\n\tthrows DBBeanException {\r\n\r\n\t\tString METHOD = \"setTaskAsReaded\";\r\n\t\tString METHOD_FULL = \": M=public void \" + METHOD + \"(TaskBean _taskToUpdate, long _transactionId)\";\r\n\r\n\t\t// database access\r\n\t\tConnection connection = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\r\n\t\ttry {\r\n\t\t\t// getting a connection with a transaction\r\n\t\t\t// transactionID == 0 => no transaction\r\n\t\t\tconnection = getConnection(_transactionId);\r\n\r\n\t\t\t// used request\r\n\t\t\tint updated = 0;\r\n\t\t\tif (_taskToUpdate.getUpdatedTask()) {\r\n\t\t\t\tupdated = 1;\r\n\t\t\t} // if\r\n\t\t\tString SQL_UPDATE = \"UPDATE \" + TASKS + \" SET \"\r\n\t\t\t+ TASK_UPDATED + \" ='\" + updated + \"' \" \r\n\t\t\t+ \" WHERE \" + TASK_ID + \" ='\" + _taskToUpdate.getId() + \"'\";\r\n\t\t\t\r\n\t\t\t// init preparedStatement with the request and the connection\r\n\t\t\tpstmt = connection.prepareStatement(SQL_UPDATE);\r\n\r\n\t\t\t// Execute request\r\n\t\t\tpstmt.execute();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new DBBeanException(\r\n\t\t\t\t\te.getMessage(),\r\n\t\t\t\t\tDBBeanException.ERR_UPDATE_SQL,\r\n\t\t\t\t\tORIGINE + METHOD_FULL);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new DBBeanException(\r\n\t\t\t\t\te.getMessage(),\r\n\t\t\t\t\tDBBeanException.ERR_UPDATE_SQL,\r\n\t\t\t\t\tORIGINE + METHOD_FULL);\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\t// dans tous les cas, on libere la connexion et le preparedStatement\r\n\t\t\t\t// this.getDataBase().commitTransaction();\r\n\t\t\t\t// le commit est gere dans la transaction ainsi que la fermeture de la connexion\r\n\t\t\t\t// this.closeConnexion(this.getDataBase(), transactionId);\r\n\t\t\t\t// this.closeConnexion(connection, transactionId);\r\n\r\n\t\t\t\tif (pstmt != null) {\r\n\t\t\t\t\tthis.closePreparedStatement(pstmt, INFOS_CLASSE, log, METHOD);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t//La liberation de la connexion s'est mal passee\r\n\t\t\t\tthrow new DBBeanException(\r\n\t\t\t\t\t\te.getMessage(),\r\n\t\t\t\t\t\tDBBeanException.ERR_FERMER_CONN,\r\n\t\t\t\t\t\tORIGINE + METHOD_FULL);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "519b8ecced21bf2f87befeec076bffe3", "score": "0.56342024", "text": "private void handleEditOperation() {\r\n //create a new book object using our book constructor that will create a book with the input text values\r\n DisplayBooksController.Book book = new DisplayBooksController.Book(title.getText(), id.getText(), author.getText(), publisher.getText(),true);\r\n //if databasehandler.updateBook returns true, the book was successfully updated/ passes our book object into the method\r\n if(databaseHandler.updateBook(book)){\r\n Alert alert1 = new Alert(Alert.AlertType.INFORMATION);\r\n alert1.setTitle(\"Success\");\r\n alert1.setHeaderText(null);\r\n alert1.setContentText(\"Book was updated\");\r\n alert1.showAndWait(); \r\n }else{\r\n Alert alert1 = new Alert(Alert.AlertType.ERROR);\r\n alert1.setTitle(\"Error\");\r\n alert1.setHeaderText(null);\r\n alert1.setContentText(\"Book was not updated\");\r\n alert1.showAndWait(); \r\n }\r\n }", "title": "" }, { "docid": "984d9512bbb09e84d19c2089a85e44f3", "score": "0.5634054", "text": "public TaskPOJO editTaskById(int taskId, TaskPOJO taskPOJO) {\n\t\tString editResponse = \"\";\n\t\tTaskEntity taskFromDB = null ;\n\t\tTaskPOJO returnPOJO = null;\n\t\ttry {\n\t\t\ttaskFromDB = getTaskById(taskId);\n\t\t\tSystem.out.println(\"Updating taskFromDB = \" + taskFromDB.toString());\n\t\t\t\n\t\t\ttaskFromDB.setTask(taskPOJO.getTask());\n\t\t\ttaskFromDB.setStartDate(new java.sql.Date(taskPOJO.getStartDate().getTime()));\n\t\t\ttaskFromDB.setEndDate(new java.sql.Date(taskPOJO.getEndDate().getTime()));\n\t\t\ttaskFromDB.setPriority(taskPOJO.getPriority());\n\t\t\t\n//\t\t\tParentTaskEntity parentTaskEntityFromDB = parentTaskService.getParentTaskById(taskPOJO.getParentId());\n//\t\t\ttaskFromDB.setParentTaskEntity(parentTaskEntityFromDB);\n\t\t\t\n\t\t\ttaskFromDB = taskRepository.save(taskFromDB);\n\t\t\t\n\t\t\teditResponse = \"Task ID(\"+taskId+\") updated, \" + taskFromDB.toString();\n\t\t\t\n\t\t\treturnPOJO = mapper.mapTaskEntityToPojo(taskFromDB);\n\t\t\t\n\t\t} catch(ResourceNotFoundException e ) {\n\t\t\tSystem.out.println(\"ResourceNotFoundException encountered...\" + e);\n\t\t\t\n\t\t\tif(e.getResourceName().equals(\"ParentTaskEntity\")) {\n\t\t\t\teditResponse = \"Things are not updated as ParentTaskEntity record does not exist... \";\n\t\t\t} else {\n\t\t\t\teditResponse = \"Things are not updated as record does not exist... \";\n\t\t\t}\n\t\t\t\n\t\t\ttaskFromDB = null;\n\t\t\treturnPOJO = null;\n\t\t} catch(Exception e ) {\n\t\t\tSystem.out.println(\"Exception encountered...\" + e);\n\t\t\teditResponse = \"Things are not updated due to Exception... \" + e.getMessage();\n\t\t\ttaskFromDB = null;\n\t\t\treturnPOJO = null;\n\t\t}\n\t\tSystem.out.println(\"After Task Update :: \" + editResponse);\n\t\treturn returnPOJO;\n\t}", "title": "" }, { "docid": "73b6743c8afceba15ef368074e9fab27", "score": "0.5633923", "text": "public void edit() {\n btEdit().pushNoBlock();\n }", "title": "" }, { "docid": "acd86c75c2f9efeb03abf2701ad32c4d", "score": "0.5631045", "text": "public String saveTransaction()\r\n\t{\r\n\t\ttry{\r\n\t\t\t/*create a new instance of transaction to and set the values*/\r\n\t\t\tTransactionTO transaction = new TransactionTO();\r\n\t\t\ttransaction.setAmount(this.getAmount());\r\n\t\t\ttransaction.setDescription(this.getDescription());\r\n\t\t\ttransaction.setDateOfTransaction(new Date());\r\n\t\t\t/*Get the card Number from the session atribute*/\r\n\t\t\tHttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(true);\r\n\t\t\ttransaction.setCardNo(Long.parseLong(session.getAttribute(\"cardNo\").toString()));\r\n\t\t\ttransaction = new InfyCreditCardWrapper().saveTransaction(transaction);\r\n\t\t\tthis.setBalanceAmount(transaction.getBalanceAmount());\r\n\t\t\tthis.setTransactionId(transaction.getTransactionId());\r\n\t\t\tthis.setTransactionDate(transaction.getDateOfTransaction());\r\n\t\t\treturn \"success\";\r\n\t\t}catch (Exception e) {\r\n\t\t\tthis.setErrorMessage(e.getMessage());\r\n\t\t\treturn \"failure\";\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f494469a76480ed34dd81ab1edb62b1c", "score": "0.56302863", "text": "Transaction getTransaction();", "title": "" }, { "docid": "fed852fcb086194b3d3dd4ec0ac198e3", "score": "0.5624939", "text": "public void updateInvoice(InvoiceDTO updatedInvoice);", "title": "" }, { "docid": "c464b83647b69c12fb1d8fa58704ca4b", "score": "0.56247914", "text": "@Override\npublic String edit(Object dat) {\nHorarioCitasDia horarioCitasDia = (HorarioCitasDia) dat;\n String mensaje = \"\";\n String sql =\n \"UPDATE APPCONSULTAS.HORARIOCITASDIA SET \"\n +\" HOCI_HORAINICIO = ? , \"\n +\" HOCI_MINUTOINICIO = ? , \"\n +\" HOCI_HORAFIN = ? , \"\n +\" HOCI_MINUTOFIN = ? , \"\n +\" HOCI_ACTIVO = ? , \"\n +\" HOCI_REGISTRADOPOR = ? , \"\n +\" HOCI_FECHACAMBIO = ? \"\n +\" WHERE hoci_id = ? \";\n try{\n con = cnx.getConnection();\n ps = con.prepareStatement(sql);\n ps.setString(1, horarioCitasDia.getHoraInicio());\n ps.setString(2, horarioCitasDia.getMinutoInicio());\n ps.setString(3, horarioCitasDia.getHoraFin());\n ps.setString(4, horarioCitasDia.getMinutoFin());\n ps.setString(5, horarioCitasDia.getActivo());\n ps.setString(6, horarioCitasDia.getRegistradoPor());\n ps.setDate(7, java.sql.Date.valueOf(java.time.LocalDate.now()));\n ps.setInt(8, horarioCitasDia.getIdHorarioCitasDia());\n ps.executeUpdate();\n\n }catch(SQLException e){\n System.out.println(\"Error ::> Modelo.ModeloDAO ::> clase HorarioCitasDiaDAO ::> function public String actualizar(Object dat) ::> SQLException ::> \" + e.getMessage());\n horarioCitasDia.setError(e.getMessage());\n e.printStackTrace();\n mensaje = e.getMessage();\n }catch(Exception e){\n System.out.println(\"Error ::> Modelo.ModeloDAO ::> clase HorarioCitasDiaDAO ::> function public String actualizar(Object dat) ::> Exception ::> \" + e.getMessage());\n e.printStackTrace();\n mensaje = e.getMessage();\n }finally{\n try {\n con.close();\n ps.close();\n } catch (SQLException ex) {\n Logger.getLogger(MedicoDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n //Cerrar.Ps(ps);\n }\n return mensaje;\n}", "title": "" }, { "docid": "ea8114dd07429792a2cfe60aa41ff186", "score": "0.5622423", "text": "@Override\n\tpublic int edit(Pedido pedido) {\n\t\treturn pedidoDao.edit(pedido);\n\t}", "title": "" }, { "docid": "530754c723bfb32daa6b8a8d02af729f", "score": "0.56090003", "text": "public TransactionEntity actualizarTransaction(Long id, TransactionEntity TransactionAcualizar) {\r\n TransactionAcualizar.setDateUpdated(Date.from(Instant.now()));\r\n TransactionEntity transactionUpdate = persistence.update(TransactionAcualizar);\r\n return transactionUpdate;\r\n }", "title": "" }, { "docid": "db221ce01ca7d0b41175d869913dca2f", "score": "0.56032693", "text": "@Override\n\tpublic void update()\n\t{\n\t\tString prix = (String) JsfTools.getParametre(JsfTools.REQUEST, \"prix_o\");\n\t\teditedObject.setPrix(Integer.parseInt(prix));\n\t\t\n\t\tsuper.update();\n\t}", "title": "" }, { "docid": "b75acf75cb979dae326dba235fa72f91", "score": "0.56000566", "text": "int updateByPrimaryKey(FiCashoutRemark record);", "title": "" }, { "docid": "ce760ab32c4232d2ebc4a9cc74522186", "score": "0.55980957", "text": "public void trans() {\r\n\t\tSystem.out.println(\"SB SF, Transaction: \" + tsr.getTransactionKey());\r\n\t\tSystem.out.println(\"Transaction Status: \" + TransactionalCDIBean.getTransactionStatus(tsr.getTransactionStatus()));\r\n\t\t\r\n\t\ttsr.setRollbackOnly();\r\n\t\tSystem.out.println(\"Transaction Status after setRollbackOnly(): \" + TransactionalCDIBean.getTransactionStatus(tsr.getTransactionStatus()));\r\n\t}", "title": "" }, { "docid": "fd19245556aa75ba901074d50e40955d", "score": "0.559342", "text": "public void UpdateBank(Transaction T) throws FileNotFoundException {\r\n if(T.getInc()==true){\r\n BankBalance += T.getAmnt();\r\n }\r\n else{\r\n BankBalance -= T.getAmnt();\r\n }\r\n transactions.add(T);\r\n saveAccountDetails();\r\n //c.UpdateUI();\r\n }", "title": "" }, { "docid": "10d9ca3b5146e858c900c12af0153479", "score": "0.55918795", "text": "@Override\r\n\tpublic void trocaradm(EntidadeDominio entidade) throws SQLException \r\n {\r\n\t\t\r\n PreparedStatement pst = null;\r\n Transacao transacao = (Transacao) entidade;\r\n StringBuilder sql = new StringBuilder();\r\n IDAO dao = new PedidoDAO(conn, null, null);\r\n\r\n try\r\n {\r\n \t// Abrindo conexao com o banco!\r\n openConnection(); \r\n conn.setAutoCommit(false);\r\n \r\n sql.append(\"UPDATE TRANSACOES \");\r\n sql.append(\"SET STATUS = ? \");\r\n sql.append(\"WHERE ID_PEDIDO = ?\");\r\n\r\n pst = conn.prepareStatement(sql.toString());\r\n\r\n pst.setString(1, \"Troca Autorizada\");\r\n \r\n // Passando id do pedido como parametro\r\n pst.setInt(2, transacao.getPedido().getId());\r\n\r\n // Executando a atualizacao\r\n pst.executeUpdate(); \r\n\r\n dao = new PedidoDAO(conn, null, null);\r\n \r\n // Atualizando com o pedido de troca\r\n dao.trocaradm(transacao.getPedido()); \r\n \r\n // Comitando as alteracoes\r\n conn.commit(); \r\n \r\n } catch (SQLException ex)\r\n {\r\n ex.printStackTrace();\r\n try\r\n {\r\n conn.rollback();\r\n } catch (SQLException ex1)\r\n {\r\n ex1.printStackTrace();\r\n }\r\n throw new SQLException(ex);\r\n } finally\r\n {\r\n try\r\n {\r\n pst.close();\r\n conn.close();\r\n } catch (SQLException ex)\r\n {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "08a49365a6895d1b5eeed6e4394953e5", "score": "0.5591415", "text": "int updateByPrimaryKey(OrderAlterDetail record) throws SQLException;", "title": "" }, { "docid": "a8efc35bbd6ab7261a828acd1a26c7ab", "score": "0.55904", "text": "private void Editar() {\n int Indice = this.tableMarca.getSelectedRow();\n ExistenciasMarca modSql = new ExistenciasMarca();\n if (modSql.Existe(txtMarca.getText()) == 0) {\n if (txtMarca.getText().isEmpty()) {\n JOptionPane.showMessageDialog(this, \"Por Favor: Seleccione una marca para editarla\");\n } else {\n if (Indice > -1) {\n int opcion = JOptionPane.showConfirmDialog(null, \"Esta seguro que desea actualizar la informacion\", \"Confirmar salida\",\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (opcion == JOptionPane.OK_OPTION) {\n try {\n String query = \"UPDATE marca SET nombre_marca=?\"\n + \" WHERE id_marca=\" + ((DefaultTableModel) this.tableMarca.getModel()).getValueAt(Indice, 0).toString();\n PreparedStatement pst = cn.prepareStatement(query);\n pst.setString(1, this.txtMarca.getText().trim());\n pst.execute();\n this.limpiar();\n this.consultar();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"HA OCURRIDO UN ERROR: \" + e.toString(),\n \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n } else if (opcion == JOptionPane.NO_OPTION) {\n this.limpiar();\n this.consultar();\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Seleccione un registro.\",\n \"Acción\", JOptionPane.WARNING_MESSAGE);\n }\n }\n } else {\n JOptionPane.showMessageDialog(this, \"La marca ya existe\");\n }\n }", "title": "" }, { "docid": "e368dad4017f9690bab91bb406ad442d", "score": "0.5584481", "text": "void setTransaction(com.excentus.en.webservice.issuance.request.enWebRewardIssuanceService.rewardIssuanceRequest.RewardIssuanceRequestDocument.RewardIssuanceRequest.Transaction transaction);", "title": "" } ]
c3320d0b1dee97fba66577f551d71208
Start the application by making a Main Game Controller
[ { "docid": "0f5cfbe9c1d6f90ce13d5c90df565389", "score": "0.0", "text": "public static void main(String[] args) throws Exception {\r\n new MainMenuController();\r\n }", "title": "" } ]
[ { "docid": "a494ad802122d0e231a03e527ed74e7b", "score": "0.752591", "text": "public static void main(String[] args) {\r\n\t\tController controller = new Controller();\r\n\t\tcontroller.startGame();\r\n\t}", "title": "" }, { "docid": "f4b8f9f920bde050fd4109807c7b47b7", "score": "0.74697757", "text": "public static void main(String[] args) {\n\t GameController controller = new GameController();\n controller.playGame();\n }", "title": "" }, { "docid": "5e38f32ebc27699529361b5f54d36ca1", "score": "0.7032599", "text": "public void run(){\n\t\t\tController c = new Controller();\n\t\t\tc.main();\n\t\t}", "title": "" }, { "docid": "a90ae0eaead2d1fd9a62b2f012fc1e04", "score": "0.701398", "text": "public void start() {\r\n try {\r\n createWindow();\r\n initGL();\r\n fp = new FPCameraController(0f,0f,0f);\r\n fp.gameLoop();//render();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "5dd63877cbd07b3130c1232c1fe37121", "score": "0.70137763", "text": "public GameGuiController(String[] args) {\n launch(args);\n }", "title": "" }, { "docid": "508b8f800eb056d260dbdac65e30c600", "score": "0.699087", "text": "public void startController() {\r\n\t\tsuper.startController();\r\n\t\tstartEngine();\r\n\t}", "title": "" }, { "docid": "3abb165760e790d5f045d9fa89ff574d", "score": "0.6977236", "text": "public static void main(String[] args) {\n Controller controller = new Controller();\n\n /*Method to start the whole programe*/\n controller.start();\n }", "title": "" }, { "docid": "2b345c2560cba16fc60f293b1f953e49", "score": "0.697281", "text": "public static void main(String args[]) {\n \tGameController g = new GameController(GameController.GameType.OTHELLO);\n }", "title": "" }, { "docid": "39b6b2153c8efde50f63d2349190f99a", "score": "0.6970964", "text": "public void startApp(){\r\n \r\n m_mainCanvas.addCommand(m_exitCommand);\r\n m_mainCanvas.addCommand(m_cmdAddGas);\r\n m_mainCanvas.addCommand(m_cmdEditGas);\r\n m_mainCanvas.addCommand(m_cmdDelGas);\r\n m_mainCanvas.addCommand(m_cmdReport);\r\n m_mainCanvas.addCommand(m_cmdSettings);\r\n m_mainCanvas.addCommand(m_cmdEraseAll);\r\n m_mainCanvas.addCommand(m_cmdAbout);\r\n m_mainCanvas.addCommand(m_cmdExport);\r\n m_mainCanvas.setCommandListener(this);\r\n display.setCurrent( m_splashCanvas );\r\n }", "title": "" }, { "docid": "d034927f5418f2b209b39d7ee5cd38b8", "score": "0.6940595", "text": "@Override \n\t\t\tpublic void run() {\n\t\t\t\tGameController controller = new GameController();\n\t\t\t\t \n\t\t\t}", "title": "" }, { "docid": "5ac4e54408f1826e4931810562129764", "score": "0.6929047", "text": "public void startGame() {\n callingHandle.soundsManager.setPlaying(callingHandle.soundsManager.BUTTON_PRESS_INDEX, true);\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n Logger.getLogger(MainMenuController.class.getName()).log(Level.SEVERE, null, ex);\n }\n callingHandle.mainMenuStartGame(); //Causey: call this function from main\n }", "title": "" }, { "docid": "2eed04ada1fd9afd195e7da514a17b54", "score": "0.69249845", "text": "public void startApp() {\n// if (midletPaused) {\n// resumeMIDlet();\n// } else {\n// initialize();\n// startMIDlet();\n// }\n// midletPaused = false;\n Canvas cn = new myCanvas();\n display = Display.getDisplay(this);\n \n display.setCurrent(cn);\n }", "title": "" }, { "docid": "f2dc5a3af8c8b550ebce3ba668fac495", "score": "0.6910322", "text": "public void startGame(){\n mainPane = new MainPane(this);\n mainPane.addKeyListener(new KeyController(this));\n add(mainPane);\n revalidate();\n startLevel();\n }", "title": "" }, { "docid": "a4a0d05761b91c9241b555b0ff79f352", "score": "0.68907046", "text": "public void startGame()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "f726bb8bf19b90709f6e127e62a19da9", "score": "0.6889141", "text": "public static void main(String[] args){\n GuiView view = new GuiView();\n GuiController controller = new GuiController();\n Player player = new Player();\n Game game = new Game();\n controller.setGame(game);\n view.setController(controller);\n game.setPlayer(player);\n game.setView(view);\n \n view.init();\n }", "title": "" }, { "docid": "93503286f7176e05f91872ae52926e49", "score": "0.68885905", "text": "private void startGame() {\n int numOfPlayers = promptNumOfPlayers();\n\n robotTurtleGame = new Game(numOfPlayers);\n gameManipulate = new GameManipulate(robotTurtleGame);\n\n gameDisplay.setControllerModel(new ManipulateModel(new GameBoardInfo(robotTurtleGame)));\n\n addPlayerToGame(promptPlayerNames(numOfPlayers));\n playGame();\n }", "title": "" }, { "docid": "4fb661e4d6d763873dd2d6a01c1b7fd2", "score": "0.6882676", "text": "public static void main(String[] argv) {\n try {\n AppGameContainer container = new AppGameContainer(new MainGame());\n container.setTargetFrameRate(58);\n container.setDisplayMode(800, 600, false);\n container.start();\n } catch (SlickException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "8abce3b8fa952c82df9a02bda2529d07", "score": "0.68733174", "text": "void launchMain(Gamepad gp) {\n isMoving = (gp.y || isMoving) && !gp.x && transferState == 0;\n // if we're moving and we're transitioning from open to closed, stop moving\n if (isMoving && !lastState && robot.catapultLoaded()) {\n isMoving = false;\n transferState = 1;\n }\n\n if (isMoving)\n robot.runChoo(1);\n else\n robot.runChoo(0);\n lastState = robot.catapultLoaded();\n }", "title": "" }, { "docid": "43978a23db1962e586563069a9d43ad4", "score": "0.6847786", "text": "public void startGame() {\n if(isGameRunning)\n return;\n isGameRunning = true;\n tryInvoke(OnStart.class);\n }", "title": "" }, { "docid": "eb75e05b8c2698a95edc1eca76e8877a", "score": "0.68404377", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n mainWindow.showAndStartGame();\n }", "title": "" }, { "docid": "dbfecb2faa3d75e4519eafc936b33675", "score": "0.6798691", "text": "public void run() {\n\t\tsetUpGame();\n\t\tstartGame();\n\t}", "title": "" }, { "docid": "9abfe144ee43d55c15b0e6e623ec21c8", "score": "0.6764163", "text": "public void launchHomeController() {\n if (!humanPlayer.areYouPlaying() && !computerPlayer.areYouPlaying()) {\n humanPlayer.areYouPlaying(true);\n humanPlayer.updateModel(this, \"launchHomeView\");\n }\n //humanPlayer.updatePlayers(this, computerPlayer, humanPlayer);\n // gameModel.updateView(this, \"launchHomeView\", \"false\"); // (view we launch, shouldWeStartGame?)\n }", "title": "" }, { "docid": "be38aa3d338a6ab4a5e5c3006d0698f9", "score": "0.6747542", "text": "public GameController(){\t\t\n\t\t\n\t\tinitGameManager();\n\t\tinitUserInterface();\t\t\t\t\t\t\n\t}", "title": "" }, { "docid": "9b61e43e9194d66759b33b3de8ccd68b", "score": "0.67470205", "text": "public void startGame() {\n System.out.println(\"Beginning game...\");\r\n AppStateManager asm = main.getStateManager();\r\n BreakState breakState = new BreakState();\r\n asm.detach(this);\r\n asm.attach(breakState);\r\n }", "title": "" }, { "docid": "df1f70a83776e8fa079345e7237cca7a", "score": "0.6743913", "text": "public void startGame() {\n setVisible(true);\n manager.startGame();\n }", "title": "" }, { "docid": "ffa66223ced01c0c44e9d6bef2ca114b", "score": "0.67127186", "text": "public void startApp() {\n if (firstTime) {\n if ( ! DEBUG ) {\n display.setCurrent(splashScreenAlert, mainForm);\n } else {\n display.setCurrent(mainForm);\n }\n \n table.generatePuzzle();\n firstTime = false;\n }\n }", "title": "" }, { "docid": "f7d9947de743a16ce9dae201caeeee8d", "score": "0.67115784", "text": "public static void main(String[] args) {\n GameController.getInstance().setup(args[0]);\n }", "title": "" }, { "docid": "7305e1c2830a943a1ff4a02dd4605b29", "score": "0.6697765", "text": "public static void startGame() {\n Engine\n .get()\n .setCurrentUI(\n voide.resources.Resources\n .get()\n .getResource(UIType.CLASS_SELECTION.key(), UI.class)\n );\n }", "title": "" }, { "docid": "a4d8d18d8217f376bd991af2db677d17", "score": "0.6686493", "text": "public void run() {\n\t\t\t\tconsoleController = new DebugController();\n\t\t\t\tif (!Configuration.checkLeagueDirectory()) { \n\t\t\t\t\tJFrame dummy = new JFrame();\n\t\t\t\t\tJOptionPane.showMessageDialog(dummy, \"Your League of Legends directory could not be found.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\tJFileChooser leagueFileChooser = new JFileChooser();\n\t\t\t\t\tleagueFileChooser.setDialogTitle(\"Select your League of Legends Directory.\");\n\t\t\t\t\tleagueFileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\t\t\t\t\tleagueFileChooser.showOpenDialog(dummy);\n\t\t\t\t\t\n\t\t\t\t\tFile selectedLeagueDirectory = leagueFileChooser.getSelectedFile();\n\t\t\t\t\tboolean found = false;\n\t\t\t\t\tfor (File checkFile : selectedLeagueDirectory.listFiles()) {\n\t\t\t\t\t\tif (checkFile.getName().equals(\"lol.launcher.exe\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Found lol.launcher.exe.\");\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n if (checkFile.getName().equals(\"Play League Of Legends.app\")) {\n System.out.println(\"Found Play League Of Legends.app.\");\n found = true;\n break;\n }\n\t\t\t\t\t}\n\t\t\t\t\tif (found) {\n\t\t\t\t\t\tSystem.out.println(\"This seems to be a valid league directory.\");\n\t\t\t\t\t\tConfiguration.setLeagueDirectory(selectedLeagueDirectory);\n\t\t\t\t\t\tloginController = new LoginController();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(dummy, \"This directory doesn't seem to be a valid League of Legends Directory. Does it have lol.launcher.exe in it?.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tFile itemsFolder = FileSystem.getFile(\"app://img/items/\");\n\t\t\t\tif (itemsFolder.list().length < 10) {\n\t\t\t\t\tnew SWFExtractor();\n\t\t\t\t}\n\t\t\t\tloginController = new LoginController();\n\t\t\t}", "title": "" }, { "docid": "06d6e04a7e3aba41f5322669c68c5319", "score": "0.6680244", "text": "public void startGame() {\r\n\t\tcanRun = true;\r\n\t}", "title": "" }, { "docid": "ef4bdf6dbc2ef1496149867275e65cf0", "score": "0.66561824", "text": "public static void main(String[] argv) {\r\n\t\tAppGameContainer container = new AppGameContainer(new SoundTest(), 800, 600, DisplayMode.Opt.WINDOWED);\r\n\t\tcontainer.setDisplayMode(800,600, DisplayMode.Opt.WINDOWED);\r\n\t\tcontainer.start();\r\n\t}", "title": "" }, { "docid": "b32d992a00821f63c7f996b982d7615c", "score": "0.6634632", "text": "public void gameStart() {\n\t}", "title": "" }, { "docid": "dd217fddcee2f315aca67553e0df700c", "score": "0.6633881", "text": "public void run() {\n\t\tgameSetup();\n\t\tplayGame();\n\t\t}", "title": "" }, { "docid": "431a7b4b74a79e83e018922959192ebd", "score": "0.66191113", "text": "@FXML\n public void start() {\n\n service = new GameService(AP, (this));\n service.addGameArea();\n AP.requestFocus();\n }", "title": "" }, { "docid": "fd31b6247d2dc8abfc0bbbb4a5100368", "score": "0.66153216", "text": "private void startNewGame() {\n GameMenuView gameMenu = new GameMenuView();\r\n gameMenu.display();\r\n }", "title": "" }, { "docid": "521cd17531b576e4b14abe5fba135d16", "score": "0.66105187", "text": "public static void main(String[] args) \r\n\t{\r\n\t\r\n\t\tController AdventureGame = new Controller();\t// a reference to the Controller class called \"AdventureGame\" points at a new object of Controller.\r\n\t\tAdventureGame.game();\t\t\t\t\t\t\t// AdventureGame calls upon the game() method to run the game.\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2fd68b1928f4730aa7debadc12c3ab5b", "score": "0.66021293", "text": "public static void main(String[] args) {\n\tRowGameController game = new RowGameController();\n\tgame.startUp();\n }", "title": "" }, { "docid": "663f8d834accd5ccb522b2aca212baf1", "score": "0.6601235", "text": "public GameController() {\n\t\t// id is used to track game sessions on server\n\t\tid = Integer.toHexString((int)(Math.random() * Integer.MAX_VALUE));\n\t\t\n\t\tboard = new Board(12, 18);\n\t\tview = new GameView(this, board);\n\t\ttimeBar = new TimeBar(board);\n\t\tsquare = new ActiveSquare(board, DEFAULT_ACTIVESQUARE_LOC);\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tupcoming.add(new ActiveSquare(board, DEFAULT_ACTIVESQUARE_LOC));\n\t\t}\n\t\tlevel = Level.loadLevel(1);\n\t\t\n\t\tScoreReporter.logInBackground(\"game_started \"+id);\n\t\tPerfTracker.getInstance().reset();\n\t\tPerfTracker.getInstance().start();\n\t}", "title": "" }, { "docid": "739106ba8c7343227ed28bfa0fafebe2", "score": "0.6598667", "text": "private void startGame(){\n\t\tboard = new model.Board();\n\t\tUI.setState(view.UserInterface.Status.PLAY_GAME);\n\t\tGM.update();\t\t\n\t}", "title": "" }, { "docid": "71f408aed39a0e4cd641a1f622ccee19", "score": "0.65929055", "text": "@Override\n\tpublic void run() {\n\t\tstartGame();\n\n\t}", "title": "" }, { "docid": "da2aa0b17794c1e252502538dc1655cd", "score": "0.6592294", "text": "public static void main(String[] args) {\n\t\t\tMainController mController=MainController.getInstance();\n\t\t\t\t\n\t}", "title": "" }, { "docid": "ff10be834a8f8a861ee1281e5c36aca6", "score": "0.65907335", "text": "abstract public void startApp();", "title": "" }, { "docid": "d74c5b0918661bc721de781c2afe3878", "score": "0.65903145", "text": "public static void main(String[] args){\n\t\tnew GameApp().runProgram();\r\n\t}", "title": "" }, { "docid": "316f2dca13fc7ba5eb271b21580b7b35", "score": "0.6588126", "text": "public void startNewGame() {\n mv.displayStart();\n String cmd = mv.getInput().toLowerCase();\n if (cmd.equals(\"n\")) {\n startbrandnewgame();\n }\n else if (cmd.equals(\"l\")) {\n playLoadedGame();\n }\n else if (cmd.equals(\"v\")) {\n viewFinishedGame();\n }\n else {\n mv.displayMessages(\"notAvalidInput\");\n startNewGame();\n }\n }", "title": "" }, { "docid": "9ef2a780eebd8a1d8358350e26e05904", "score": "0.6581407", "text": "public void toMain() {\n try {\n Parent view = FXMLLoader.load(Objects.requireNonNull(getClass().getResource(\"/gui/mainScreen.fxml\")));\n Scene scene = new Scene(view);\n ((Stage) menuFrame.getScene().getWindow()).setScene(scene);\n // windowStage.show();\n } catch (IOException | NullPointerException e) {\n MainScreen.createErrorWin(new CustomException(\"Error caused when loading the Start screen's FXML file.\", \n e.getClass().toString()));\n }\n }", "title": "" }, { "docid": "785a611ef1167263b7b8feac5e8b35f8", "score": "0.6573042", "text": "public static void main(String[] args) {\n\tGameModel model = new GameModel();\t\n\tGameView view = new GameView(model);\n\tGameController controller = new GameController(view, model);\n\t\n\t//stating that view is the observer of model \n\tmodel.addObserver(view);\n\n\tview.setVisible(true);\n\t\n\t}", "title": "" }, { "docid": "e9d7f34d8d4751051ac14ef7a8b6c508", "score": "0.65642524", "text": "public void startGame(){\r\n\t\tgame.start();\r\n\t\t//String msgToClients = \"StartGame\";\r\n\t\t//serverReceiver.sendToAll(msgToClients);\r\n\t}", "title": "" }, { "docid": "5b8693f910731c5a50b449d0e72ecf1f", "score": "0.65631324", "text": "public MainApp() {\n loadedPacks = new HashMap<>();\n saveStatus = new HashMap<>();\n root = new StackPane(new Pane());\n\n startUI = new StartUI(this);\n gameUI = new GameUI(this);\n }", "title": "" }, { "docid": "e796ac3b30f781a4fa31532b4d622b47", "score": "0.6543825", "text": "public SuperCometsMain()\n\t{\n\t\t// Get everything set up\n\t\tconfigureGUI();\n\t\tconfigureGameData();\n\t\t\n\t\t// Display the window so play can begin\n\t\tframe.setVisible(true);\n\t\t\n\t\t// Start the gameplay\n\t\tdo\n\t\t{\n\t\t\tplayGame();\n\t\t\t\n\t\t\t\n\t\t}while(gameOver == false);\n\t\t\n\t\t\treturn;\n\t}", "title": "" }, { "docid": "63a4512ddeab40493142f8dcf3f92a82", "score": "0.65416694", "text": "void startGame() throws InterruptedException {\r\n\t\t\r\n\t\t// Setup the main game and thread\r\n\t\tGameScreenGrid mainScreen = GameScreenGrid.createWithSize(screenW, screenH);\r\n\t\tGameController gameController = GameController.makeNewGame(mainScreen);\r\n\t\tThread controllerThread = new Thread(gameController);\r\n\t\tcontrollerThread.start();\r\n\t\t\r\n\t\t// add a robot player. Input is automatic, output is to stdout.\r\n\t\tTextPlayerAutomatic robotPlayer = new TextPlayerAutomatic();\r\n\t\trobotPlayer.setScreenOutputter( new VtAnsiScreenOutputter( System.out ) );\r\n\t\trobotPlayer.joinGame(gameController);\r\n\t\t\r\n\t\t// the game starts.\r\n\t}", "title": "" }, { "docid": "b90deb786883b473f16d44015a473484", "score": "0.6536306", "text": "private void launchApplication() {\n\t\tStageStore.close(stage);\n\t\tStageStore.newStage().root(\"/fxml/view/main/Main.fxml\")\n\t\t\t\t.size(PrefStore.getInt(PrefConstant.ui.view.main.width),\n\t\t\t\t\t\tPrefStore.getInt(PrefConstant.ui.view.main.height))\n\t\t\t\t.title(FxUtil.translate(\"stage.main.title\")).show();\n\t}", "title": "" }, { "docid": "0446398ae8aa9765b39d52c875270d56", "score": "0.65347236", "text": "public static void main(String[] args){\n\t\tnew ControllerFrame();\n\t}", "title": "" }, { "docid": "854d94b372b22271404e31e1e81e9cf5", "score": "0.65304184", "text": "public Main() {\n // check if there is a default file to load from\n if (file.exists()) {\n // if the file exists load from this file and then delete it\n loadFile(true);\n if (!file.delete()) {\n if (file.renameTo(new File(\"levels/oldGameState.json\"))) {\n file.deleteOnExit();\n }\n }\n } else {\n // otherwise create the maze for the game\n maze = new Maze(level);\n }\n // create the gui for the game\n gui = new Gui(this, maze);\n gui.setUpGui();\n new Music();\n // start the timer\n startTimer(maxTime != timeLeft);\n gui.updateGui(false);\n }", "title": "" }, { "docid": "81a9cf7291585287d33379529c262f38", "score": "0.65268105", "text": "private void playGame() {\n\t\tint aiPlayers = 4;\n\t\tgameController = new GameplayControllerCLI(deckModel, view, 1, aiPlayers, logData);\n\t\tgameController.topTrumpsGame();\n\n\t}", "title": "" }, { "docid": "dbcbf2c58c823c81910562fa9054b00c", "score": "0.6524177", "text": "public void startGame();", "title": "" }, { "docid": "93e34f9ceffdd9d4d83c8658eff10824", "score": "0.6499069", "text": "public static void main(String[] args) {\n // write your code here\n initialize();\n\n while(true)\n playGame();\n\n }", "title": "" }, { "docid": "2c5d8611aaf380b889b6702d4b893a9b", "score": "0.6492944", "text": "public void start(Stage primaryStage) {\n primaryS = primaryStage;\n content = new StartScreen();\n content.getStartButton().setOnAction(e -> {\n primaryS.setScene(startGame());\n\n });\n Scene scene = new Scene(content);\n // add1902,1080\n primaryS.setScene(scene);\n primaryS.show();\n }", "title": "" }, { "docid": "775bf8781fa245c62accf4d0ad5b67fa", "score": "0.648653", "text": "public void startApp() {\n \tlog.trace(\"TalkingClockMIDlet.startApp()\");\n display.setCurrent(currentDisplayable); \t\n }", "title": "" }, { "docid": "62eb96deca94981b5ddcad72f79f8b46", "score": "0.64747196", "text": "public GameMain(){}", "title": "" }, { "docid": "9c15c035b3d3a8d20274b4df32b09a2e", "score": "0.6471818", "text": "public void startApp()\n {\n if (midletPaused)\n {\n resumeMIDlet();\n }\n else\n {\n initialize();\n startMIDlet();\n }\n midletPaused = false;\n }", "title": "" }, { "docid": "55a978c49da90afec69d738f74ebfdff", "score": "0.64707416", "text": "public Scene startGame() {\n //TODO\n }", "title": "" }, { "docid": "97d823046a13cf59397d8884ef510b3a", "score": "0.6455157", "text": "public static void main(String[] args) {\n new HungerGamesController().startBattle();\n }", "title": "" }, { "docid": "a65b41334830ed59dbe7af2431f4df22", "score": "0.6452861", "text": "public static void main(String[] args) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tCarcassonne carcassonne = null;\n\t\t\t\tGameControllerFrame controlFrame = null;\n\t\t\t\ttry {\n\t\t\t\t\tcontrolFrame = new GameControllerFrame();\n\t\t\t\t\tcontrolFrame.setVisible(true);\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});\n\t}", "title": "" }, { "docid": "b86cb335bae3d7cef04b5e49d12670e4", "score": "0.64497256", "text": "private void initGame()\n\t{\n\t\tgetLogger().log(getLogger().DEBUG, display.getWindowHandler());//\"Creating Input Manager Instance\");\n\t\tinputThread = new Thread(inputManager = new InputManager(display.getWindowHandler()));\n\t\tinputThread.start();\n\t\tgetLogger().log(getLogger().DEBUG, \"Initializing Game\");\n\t\tnew Splash();\n\t\tgetSceneManager().switchScene(\"SPLASH\");\n\t}", "title": "" }, { "docid": "28dc83e03230eabbdb23b8c5137f0387", "score": "0.64483273", "text": "public void initalStart() \n\t{\n\t\tApp.logit(\"App::initalStart\");\n\n\t\t// don't bother with executing this when someone tried to stopped the app right when \n\t\t// starting (if you believe this is insane, wait until you submit your app and get \n\t\t// Q/A results).\n\t\tif (App.isStopped()) {\n\t\t\tApp.logit(\"App::initalStart early exit (stopped)\");\n\t\t\treturn; \n\t\t}\n\t\t\n\t\t\n\t\t//\n\t\t// Finally we are ready to put our stuff together. Here follows your init code.\n\t\t//\n\t\t\n\t\t/* TODO: below goes all our fancy app start code */\n\t\t\n\t\t\n\t\t// Make a root-layout which will stretch our content to full size. \n\t\t//\n\t\t// Note: In most real apps, using a CardLayout will be the best choice in order to \n\t\t// switch between multiple 'screens', e.g. for being able to switch between a game board, \n\t\t// intro menu and help panel. For this simple demo a BorderLayout will do.\n\t\tthis.rootContainer.setLayout(new BorderLayout());\n\n\t\tthis.gameBoard= new GameBoard();\n\n\t\t// Add game board. The game board will cover as much of the main area as possible \n\t\t// and will have its doLayout() called (the root's BorderLayout does all this) .\n\t\tthis.rootContainer.add(this.gameBoard, BorderLayout.CENTER); \n\n\n\t\t// Request focus to route keyboard events to the board (it has a keyboard listener installed).\n\t\t// \n\t\t// Note: Only do this on first start. On subsequent calls to start() (after screen-saver, USB, etc.)\n\t\t// the Kindle will remember and refocus the component that had the focus when it went to sleep)\n\t\t// - see http://forums.kindlecentral.com/forums/thread.jspa?threadID=535&tstart=0 (item posted Jul 13, 2011 8:36 AM) \n\t\t// see http://forums.kindlecentral.com/forums/thread.jspa?threadID=889&tstart=0\n\t\t\n\t\tthis.gameBoard.requestFocus(); // this will actually happen asynchronously \n\t\t\n\t\t\n\t\t// After this point, this function will not be called again. \n\t\tthis.initialStartDone= true;\n\t\n\t\tApp.logit(\"App::initalStart done\");\n\t}", "title": "" }, { "docid": "20558c3149ddb62f8e75142779545946", "score": "0.64427996", "text": "public static void main(String[] args) {\n PathfinderGame PathfinderGame = new PathfinderGame();\n PathfinderGame.startGame();\n }", "title": "" }, { "docid": "38355e22b2a9ce1e626c4fbdc23b4663", "score": "0.64353645", "text": "public void start() {\n selectionMenu.printInfo();\n selectPlayer(receiveInput());\n while (chosenPlayer == null) {\n System.out.println(\"Invalid Selection. Please select again\");\n selectPlayer(receiveInput());\n }\n controller = new GameController(chosenPlayer);\n controller.loadLevel(getNextLevelPath());\n \n }", "title": "" }, { "docid": "6aebcdd004d0385a58302628bc1b4c8e", "score": "0.64326715", "text": "public static void main(String[] args) {\n ScreenSwitcher screenSwitcher = ScreenSwitcher.getInstance();\n ViewEngine viewEngine = screenSwitcher.getViewEngine();\n ModelEngine modelEngine = screenSwitcher.getModelEngine();\n MainController controller = screenSwitcher.getController();\n\n\n\n screenSwitcher.goToMenu();\n// MenuView mainMenuView = new MainMenuView();\n//\n// //make controller\n// //MainController controller = new MainController( viewEngine);\n//\n// MenuContainer menuContainer = new MenuContainer(viewEngine, modelEngine, controller);\n// controller.getMenuState().setTarget(menuContainer);\n//\n// modelEngine.setController(controller);\n// controller.setMenuState();\n// //set up engines\n// viewEngine.setVisible(true);\n// viewEngine.registerView(menuContainer);\n\n\n\n\n\n\n\n\n //beginning test\n\n //Loader l = new Loader();\n //Object o = l.avatar;\n ////System.out.Println(o.toString());\n\n\n\n\n //start both threads\n viewEngine.start();\n modelEngine.start();\n }", "title": "" }, { "docid": "c3341b58cb0499547465c0693d47f6f8", "score": "0.6430132", "text": "@Override\n public void start(Stage primaryStage) {\n\n initMazeView();\n\n primaryStage.setTitle(\"CS 76 Mazeworld\");\n\n // add everything to a root stackpane, and then to the main window\n StackPane root = new StackPane();\n root.getChildren().add(mazeView);\n primaryStage.setScene(new Scene(root));\n\n primaryStage.show();\n\n // do the real work of the driver; run search tests\n runSearches();\n\n // sets mazeworld's game loop (a javafx Timeline)\n Timeline timeline = new Timeline(1.0);\n timeline.setCycleCount(Timeline.INDEFINITE);\n timeline.getKeyFrames().add(\n new KeyFrame(Duration.seconds(.05), new GameHandler()));\n timeline.playFromStart();\n\n }", "title": "" }, { "docid": "da787d785c9594f65d99b3b26bd030b2", "score": "0.64286625", "text": "private void mainWindow(Stage primaryStage) {\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"StartWindow.fxml\"));\n Pane startPane = loader.load();\n\n Scene playScene = new Scene(startPane);\n primaryStage.setScene(playScene);\n primaryStage.sizeToScene();\n primaryStage.setTitle(\"Strategy Tank\");\n File file = new File(\"ch/zhaw/pm2/fats/items\", \"tank.png\");\n primaryStage.getIcons().add(new Image(file.toString()));\n\n StartWindowController playWindowController = loader.getController();\n playWindowController.setService(services);\n\n primaryStage.show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "bd4f65e5997bfffded54a1cbecdbf158", "score": "0.6427088", "text": "public static final void startNewAndroidGame (AndroidGame app) {\n\t\t/*-------- init Top --------*/\n\t\tTop.init();\n\n\t\tString data = null;\n\t\ttry {\n\t\t\tdata = IOUtils.toString(app.getAssets().open(Const.ManifestFilePath));\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tfinal GameConfiguration gameConfig = Top.json.fromJson(GameConfiguration.class, data);\n\t\tAndroidApplicationConfiguration appConfig = gameConfig.getAndroidConfiguration();\n\n\t\t/*-------- game core --------*/\n\t\tGameCore gameCore = null;\n\t\ttry {\n\t\t\tgameCore = (GameCore)gameConfig.gameCore.newInstance();\n\t\t\t// set GameApplication to be manipulate at CustomerServices\n\t\t\tgameCore.setGameApplication(app);\n\t\t} catch (InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tgameCore.mGameConfigurationRunnable = new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run () {\n\t\t\t\tTop.tgame\n\t\t\t\t\t.init(gameConfig.useLua, gameConfig.baseScreenList, gameConfig.popupScreenList, gameConfig.loadingScreenList)\n\t\t\t\t\t.initResources()\n\t\t\t\t\t.initAssets(gameConfig.resourceType, gameConfig.resourceParams, gameConfig.listOfResourceFile)\n\t\t\t\t\t.initGraphics(gameConfig.gameWidth, gameConfig.gameHeight, gameConfig.spriteBatchSize, gameConfig.isUseFrame,\n\t\t\t\t\t\tgameConfig.frameWidth, gameConfig.frameHeight, gameConfig.isKeepAspectRatio, gameConfig.spriteCacheSize,\n\t\t\t\t\t\tgameConfig.shapeRendererSize, gameConfig.shader, gameConfig.spriteCacheShader)\n\t\t\t\t\t.initAudio(gameConfig.isEnableAudio, gameConfig.musicVolume, gameConfig.soundVolume).initInput()\n\t\t\t\t\t.initCustomerServices();\n\t\t\t}\n\t\t};\n\t\tif (gameConfig.firstScreen != null) {\n\t\t\tgameCore.mSetFirstScreenRunnable = new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run () {\n\t\t\t\t\tTop.tgame.setScreen(gameConfig.firstScreen, ScreenChangeMode.Destroy);\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\n\t\t/*-------- init gameview --------*/\n\t\tView gameView = app.initializeForView(gameCore, appConfig);\n\t\t/*-------- Create Relative Layout --------*/\n\t\tRelativeLayout layout = new RelativeLayout(app);\n\t\tlayout.addView(gameView);\n\t\t/*-------- Create Admob --------*/\n\t\tif (gameConfig.admobID != null) {\n\t\t\tAdView adview = new AdView(app, resolveAdSize(gameConfig.admobSize), gameConfig.admobID);\n\t\t\tapp.adview = adview;\n\t\t\tadview.setAlpha(0.3f);\n\t\t\tadview.loadAd(new AdRequest());\n\n\t\t\tRelativeLayout.LayoutParams adParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT,\n\t\t\t\tRelativeLayout.LayoutParams.WRAP_CONTENT);\n\t\t\tif (gameConfig.admobPos == null) {\n\t\t\t\tadParams.addRule(RelativeLayout.ALIGN_PARENT_TOP);\n\t\t\t\tadParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT);\n\t\t\t} else {\n\t\t\t\tapplyRelativeParamsRules(adParams, gameConfig.admobPos);\n\t\t\t}\n\t\t\tlayout.addView(adview, adParams);\n\t\t}\n\t\t/*-------- set content view of Activity --------*/\n\t\tapp.setContentView(layout);\n\n\t\t/*-------- create analytic --------*/\n\t\tif (gameConfig.analytic != null) {\n\t\t\tLogLevel log = LogLevel.INFO;\n\t\t\tif (gameConfig.analyticLoglevel.contains(\"error\"))\n\t\t\t\tlog = LogLevel.ERROR;\n\t\t\telse if (gameConfig.analyticLoglevel.contains(\"verbose\"))\n\t\t\t\tlog = LogLevel.VERBOSE;\n\t\t\telse if (gameConfig.analyticLoglevel.contains(\"warning\")) log = LogLevel.WARNING;\n\n\t\t\tapp.createGoogleAnalytics(gameConfig.analytic, gameConfig.analyticRate, gameConfig.analyticDryrun, log);\n\t\t}\n\t}", "title": "" }, { "docid": "05c1b75b733af1521aceed2a4986f3c7", "score": "0.6426353", "text": "public GameController() {\n\t\tsuper(\"Fruitninja V1.0\");\n\t\t// Set default values\n\t\tmaxTime = 180000;\n\t\ttime = 0;\n\t\t// Load objects\n\t\trg = new Random();\n\t\tplayer = new Player();\n\t\tfield = new Field();\n\t\tloadAudio();\n\t\t// Load possible views\n\t\tappView = new ApplicationView(field, player);\n\t\tendGameView = new EndGameView(player);\n\t\t// Setup view\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetResizable(false);\n\t\tadd(appView);\n\t\tpack();\n\t}", "title": "" }, { "docid": "ad1e4c555122d1e39cb63aa38f412535", "score": "0.6414155", "text": "private void startGame(){\n if (mainThread == null || !running) {\n mainThread = new Thread(this);\n mainThread.start();\n }\n }", "title": "" }, { "docid": "1d193b38af68069e49e6924c8b417e15", "score": "0.64131457", "text": "public void start(Game game);", "title": "" }, { "docid": "90faf39befb8fd7e71afa7ecc7524781", "score": "0.6403006", "text": "public static void main(String[] args){\n Game game = new Game();\n game.play();\n }", "title": "" }, { "docid": "b6966b48f80149e98958794bf6ad25f5", "score": "0.63954127", "text": "void launch();", "title": "" }, { "docid": "52bdfbf4666b0fb8b63157ff7989644c", "score": "0.6394633", "text": "public static void main(String[] argv) {\r\n\t\tAppGameContainer container = new AppGameContainer(new GeomUtilTest(), 800, 600, DisplayMode.Opt.WINDOWED);\r\n\t\tcontainer.setDisplayMode(800,600, DisplayMode.Opt.WINDOWED);\r\n\t\tcontainer.start();\r\n\t}", "title": "" }, { "docid": "9c0043bc64a2a44834abdcd2d2bb256c", "score": "0.6393121", "text": "public void startApp() {\n if (midletPaused) {\n resumeMIDlet();\n } else {\n initialize();\n startMIDlet();\n\n }\n\n\n\n\n midletPaused = false;\n }", "title": "" }, { "docid": "cbdf30da0077cf7e0fcf14651936c053", "score": "0.6392011", "text": "public static void main (String[] args)\n {\n // To start a LibGDX program, this method:\n // (1) creates an instance of the game\n // (2) creates a new application with game instance and window settings as argument\n Game game = new SubSurvivalGame();\n LwjglApplication launcher = new LwjglApplication(game, \"Sub-Survival\", 800, 600);\n }", "title": "" }, { "docid": "fad48490be4fdf0d881375442411eef9", "score": "0.63770056", "text": "public GameController() {\n initialise();\n }", "title": "" }, { "docid": "95d74652e6ad6fc53e2c4eb4a543ea90", "score": "0.63687694", "text": "public RealGame() {\n this.gui = Gui.getInstance();\n this.controller = gui.getController();\n }", "title": "" }, { "docid": "25431d61481c6f0e8031d7c5b8b59b51", "score": "0.63686347", "text": "public static void main(String[] args) {\n \n Game game = new Game();\n game.play();\n \n }", "title": "" }, { "docid": "7a7c5fc3fb51204bb5d20f20c3e38cc4", "score": "0.6365966", "text": "private void handleStart(ActionEvent actionEvent)\n {\n setApplicationState(States.SIMULATING);\n simulator.start();\n }", "title": "" }, { "docid": "2dd257813ca665415f17464d7a869915", "score": "0.63547105", "text": "public static void main(String[] argv) {\n try {\n AppGameContainer container = new AppGameContainer(new ParticleDemo());\n container.setDisplayMode(800, 600, false);\n container.start();\n } catch (SlickException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "29b13fb72dbb96422c3534e3fa14a70b", "score": "0.634921", "text": "public void startApp() {\n if (midletPaused) {\n resumeMIDlet();\n } else {\n initialize();\n startMIDlet();\n }\n midletPaused = false;\n }", "title": "" }, { "docid": "61bb8eb1e729b6d013c94eaa40c02cb9", "score": "0.6343206", "text": "public static void main(String[] args) {\n Game game = new Game();\r\n game.playGame();\r\n }", "title": "" }, { "docid": "d82eecca58b5b47a50efd4b8ba75c6d6", "score": "0.6340131", "text": "public static void main(String[] args) {\n new Game().play();\n }", "title": "" }, { "docid": "23f912a64860c3b921c465514e5eed03", "score": "0.6337545", "text": "public void startGame() {\n\n\t\tgameController.updateLevelNum(level.getLevelNumber());\n\t\ttimer.start();\n\n\t}", "title": "" }, { "docid": "a0d8854d098c36d83b0e9a4af86e4971", "score": "0.63151866", "text": "public static void main(String[] args) throws LineUnavailableException, UnsupportedAudioFileException, IOException {\n//\t\tMain game = new Main(\"peter\", \"trooper\", \"mario_stage\");\n//\t\tgame.start();\n\t\t\n\t\tString player1, player2, stage;\n\t\tString gameId = \"Adult Swim Smash\";\n\t\t\n\t\tJFrame mainFrame = new JFrame();\n\t\tmainFrame.setTitle(gameId);\n\t\tmainFrame.setResizable(false);\n\t\tmainFrame.setVisible(true);\n\t\tmainFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tmainFrame.setBounds(0, 0, Main.GAME_WIDTH, Main.GAME_HEIGHT);\n\t\tmainFrame.setLayout(new CardLayout());\n\t\tmainFrame.addWindowListener(new WindowAdapter() {\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tJPanel cards = new JPanel();\n\t\tcards.setLayout(new CardLayout());\n\t\tmainFrame.getContentPane().add(cards);\n\t\tMain game = new Main(mainFrame,\"pikachu\", \"peter\", \"mario_stage\");\n\t\tcards.add(new GameOverPanel(Main.GAME_WIDTH,Main.GAME_HEIGHT));\n\t\tcards.add(new CharacterSelect(game, Main.GAME_WIDTH,Main.GAME_HEIGHT),\"CharacterSelect\");\n\t\tmainFrame.setVisible(true);\n\t\tCardLayout cardLayout = (CardLayout) cards.getLayout();\n\t\tcardLayout.show(cards, \"CharacterSelect\");\n\t\t//game.start();\n\t\t\n\t\t//code to generate code for new character constructor\n//\t\tfor(int index=1; index<=4;index++)\n//\t\t{\n//\t\t\tSystem.out.println(\"BufferedImage d\"+(index+14)+\" = DisplayObject.readImage(\\\"pikachu_jumping_\"+index+\"\" +\n//\t\t\t\t\t\".png\\\");\\nimages.add(d\"+(index+14)+\");\");\n//\t\t}\n\t}", "title": "" }, { "docid": "69ad8f7e2adf711f3febe4d56e8be340", "score": "0.62972486", "text": "private void initController(){\n\t\tArrayList<Controller> playerControllers = new ArrayList<Controller>();\n\t\tControllerManager cm = new ControllerManager(playerControllers);\n\t\twhile (cm.isShowing()) {\n\t\t\t// has to be done, java will kill the program otherwise\n\t\t\ttry {\n\t\t\t\tThread.sleep(1);\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\n\t\tp1Controller = playerControllers.get(0);\n\t}", "title": "" }, { "docid": "57d27ca914f865a65b6d499a4335db61", "score": "0.6294897", "text": "public static void main(String[] args) {\n startGame();\n endGame();\n }", "title": "" }, { "docid": "083138a33d269ca0f6e4101b43197bf1", "score": "0.6293342", "text": "public static void main(String[] args) {\n GameMain am=new GameMain();\r\n\t}", "title": "" }, { "docid": "9de92eef4603dd6c919e423b8a8705de", "score": "0.62809145", "text": "public static void main(String[] argv) {\r\n\t\tGame game = new Game(\"GDJ104\");\r\n\t\tnew Window(game);\r\n\t\tgame.run();\r\n\t}", "title": "" }, { "docid": "d3f583065e0dd6a8be7e4566a7ef6ecc", "score": "0.6278009", "text": "private void startGame() {\n\t\tThread animator = new Thread(this);\n\t\tgameRunning = true;\n\t\tanimator.start();\n\t}", "title": "" }, { "docid": "8bc4506d42e0cdde38ee1955c66cf2e2", "score": "0.62692845", "text": "public void StartGame()\n\t{\n\t\tif(connection.isServer())\n\t\t{\n\t\t\t// We want to send StartGame to the other client letting it know we've started\n\t\t\tSystem.out.println(\"sending start message to clients\");\n\t\t\tconnection.GetServer().sendToAllTCP(\"StartGame\");\n\t\t\tconnection.GetServer().removeListener(serverConnectionListener);\n\t\t}\n\t\t\n\t\t\n\t\tchessui = new ChessUIController(game, connection);\n\n\t\twaitingForHost = false;\n\t}", "title": "" }, { "docid": "0434e321915368a34b1f13d209618c6d", "score": "0.6263475", "text": "public void Start()\n\t{\n\t\tkeepPlaying = true;\n\t\tScanner user_input = new Scanner(System.in);\n\t\tSystem.out.printf(messenger.getMessage(MessageCode.MESSAGE_GAME_INIT)+\"\\n\");\n\t\twhile(keepPlaying)\n\t\t{\n\t\t\trunning = (!maze.playerTurnPassed()&&running);\n\t\t\tcheckWinConditions();\n\t\t\tif (keepPlaying) {\n\t\t\t\tPlayerTurn(user_input);\n\t\t\t\tif (keepPlaying) {\n\t\t\t\t\tmaze.EnemyTurn(lastCommand);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\tuser_input.close();\n\t\tSystem.out.printf(messenger.getMessage(MessageCode.MESSAGE_GAME_EXIT)+\"\\n\", messenger.getMessage(exitMessage));\n\t\t\n\t}", "title": "" }, { "docid": "175c52cb70fde3682a3210759d2d20d2", "score": "0.6259056", "text": "public static void main(String[] args) {\n RobotTurtleController robotTurtleController = new RobotTurtleController();\n robotTurtleController.startGame();\n }", "title": "" }, { "docid": "f451bb603e29e1b5b07dd2726d8ef2e2", "score": "0.6256075", "text": "private void startGame() {\n this.starter = null; // is not in use any more from this pint\n this.fillGame(); // filling game with AiPlayers\n System.out.println(\"GAME INFO : PLayer list shoud be size 4 is \" + this.players.size());\n this.setPlayerSequence(); // setting the sequence for the game\n this.setGameIDs(); // setting id's for machine independent recognition of player classes\n this.initCheckMap(); // initialize the loading time check data structure\n System.out.println(\"GAME INFO : Invoke Game\");\n this.gameHandler = new GameHandler(this, this.players);\n this.gameHandler.startGame();\n this.sendGameMessage(this.getPlayersInformation());// consequence --> enter LoadingScreen\n // LoadingScreen needs 9, should be enough\n this.bag = LetterBag.getInstance();\n }", "title": "" }, { "docid": "86fd8efb8f612697ba8d6de05521c5d0", "score": "0.6255935", "text": "@Override\n\tpublic void start() {\n\t\tSystem.out.println(\"ludo game started\");\n\t\t\n\t}", "title": "" }, { "docid": "bb3c0d975ccc021c26ce1ee27636de1d", "score": "0.62520015", "text": "private void startGame(){\n\t\tif (!AssetLoader.songGame.isPlaying()) {\n\t\t\tAssetLoader.songGame.setLooping(true);\n\t\t\tAssetLoader.songGame.play();\n\t\t}\n\t\t\n\t\tcreateMenu();\n\t\t\n\t\t//Aņadimos el cursor\n\t\tthis.getStage().addActor(this.getCursor());\n\n\t\t//Empezamos a escuchar los eventos\n\t\tInputMultiplexer inputMultiplexer = new InputMultiplexer();\n\t\tinputMultiplexer.addProcessor(this.getStage());\n\t\tinputMultiplexer.addProcessor(inputHandler);\n\t\tGdx.input.setInputProcessor(inputMultiplexer);\t\t\n\t\t\t\t\n\t}", "title": "" }, { "docid": "5f6dc9b9b42cb32aec07ac75683deaa0", "score": "0.62512976", "text": "public Main() {\n initComponents();\n\n turnoPrincipal.start();\n turnoSecundario.start();\n\n\n this.setExtendedState(this.getExtendedState() | this.MAXIMIZED_BOTH);\n jCheckBoxMenuItemBeep.setSelected(turnoPrincipal.isBeep());\n Turno.startSevlet();\n\n loadNumTurnos();\n\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "9d099efca717dc630952159e4c9604ed", "score": "0.0", "text": "@Override\r\n\tpublic List<Push_notice> list(Map map) {\n\t\treturn IN_push_notice_dao.list(map);\r\n\t}", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68399656", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0c69424878be03e50f19e2ca61ef640b", "score": "0.68002176", "text": "@Override\r\n\tpublic void leggi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b6c961814c14fa02879570fd7e65ac5", "score": "0.6769489", "text": "@Override\r\n\tpublic void scarica() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "1e34493fdecb11f6bbc24ef12eea2281", "score": "0.6386922", "text": "public void mo27791d() {\n }", "title": "" }, { "docid": "051f88f1f94e36fab8ec66de1946f037", "score": "0.6287329", "text": "public void mo27794g() {\n }", "title": "" }, { "docid": "db4b95a4460fb609bcd3716b1a4b3e23", "score": "0.6283629", "text": "@Override\r\n\tpublic void compra() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5eb303064635f4909e997c3effe2511d", "score": "0.6265152", "text": "public void mo27792e() {\n }", "title": "" }, { "docid": "fdf6bcd763ea5f5b221fd5a7669d1afb", "score": "0.6262988", "text": "public void mo28805a() {\n }", "title": "" }, { "docid": "381ca210fc42b87f9b8af474719578a0", "score": "0.62538177", "text": "public void mo41489c() {\n }", "title": "" }, { "docid": "203e120e0c17c7a390717d0ca9ff147a", "score": "0.6252656", "text": "public void mo11316JX() {\n }", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0b319072f0ae7225e83791b70ea23079", "score": "0.6200546", "text": "@Override\r\n\tpublic void ghhvhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9cfdb7a953eedd93829d98c1649d8fa2", "score": "0.6147232", "text": "@Override\r\n\tprotected void rodape() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a1d358ef8dde60480477b5c8b2359c6d", "score": "0.611178", "text": "@Override\n\tpublic void compra() {\n\t\t\n\t}", "title": "" }, { "docid": "81e2e665536902ef3310e7a034f112ea", "score": "0.6104965", "text": "@Override\r\n\tpublic void apagar()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "e6068b0200c883e42ca4379e8b4390f4", "score": "0.61018884", "text": "@Override\n\tpublic void ihtiyacGidermek() {\n\t\t\n\t}", "title": "" }, { "docid": "222e7b9d44422cda9de5df0085949df1", "score": "0.60770625", "text": "public void mo27793f() {\n }", "title": "" }, { "docid": "6fc1bc8405449cd5caa1d0d4cc253eff", "score": "0.6024395", "text": "public void mo27783b() {\n }", "title": "" }, { "docid": "7de2b9a1638739d8a552ea81162374f7", "score": "0.6023624", "text": "@Override\r\n\tpublic void trasation() {\n\t\t \r\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6017447", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "39970aed3dc3a7bed24f03fb23731e78", "score": "0.6010486", "text": "@Override\r\n\tpublic void laufen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a46f6ccc5a2230632919d59213754a52", "score": "0.59971493", "text": "@Override\n\tpublic void grafikCizme() {\n\t\t\n\t}", "title": "" }, { "docid": "5a91ef0aa6990fc22e6e46d34355029e", "score": "0.59874135", "text": "@Override public void accionar() {\n\n }", "title": "" }, { "docid": "d673691f42a5a36d5d7e5d4f81aec55e", "score": "0.59567183", "text": "@Override\n\tpublic void reveiller() {\n\t\t\n\t}", "title": "" }, { "docid": "b048ca4f20a40ca0411a5330c06ce3d5", "score": "0.5952113", "text": "@Override\n\tpublic void infinteBatery() {\n\t\t\n\t}", "title": "" }, { "docid": "2bd910d11f3b18a5106b970f6e7e4c64", "score": "0.59445894", "text": "@Override\n\tpublic void Consulter() {\n\t\t\n\t}", "title": "" }, { "docid": "fa5eb14703b2a28ee4847f692d01e39d", "score": "0.59407693", "text": "@Override\r\n\tpublic void init() {\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a94b5981fe7c5ead7e5156e8e7cb9cb5", "score": "0.59315324", "text": "@Override\r\n\tpublic void attribute() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9fe10a8f8c056afc50123cc1485a6fdc", "score": "0.5927387", "text": "@Override\n\tvoid comision() {\n\t\t\n\t}", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.59262717", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "ddafdd56d6d4b904d170e3608181850c", "score": "0.5918087", "text": "private void getArtefactId() {\n\t\t\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.59013426", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.58881694", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "53a77fe02ff8601b7f3a53009ccfd05c", "score": "0.58849895", "text": "public void designBasement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0449d2500abd0eb1624d7773d0cf88dd", "score": "0.5881909", "text": "@Override\n\tpublic void ponisti() {\n\n\t}", "title": "" }, { "docid": "a21e7f5bc4a152c3cd6818af1be8ca7f", "score": "0.5877803", "text": "@Override\n\tpublic void accionar() {\n\t\t\n\t}", "title": "" }, { "docid": "b623306824ebd023ab9bf4fc0a66aaf3", "score": "0.5876838", "text": "public void mo5928c() {\n }", "title": "" }, { "docid": "8dbedd9965a878a9a7db1c5deb6a28cd", "score": "0.5871888", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854053", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "5f122c528716d4e28cd3a6695d27b80f", "score": "0.5838742", "text": "@Override\n\tpublic void morir() {\n\n\t}", "title": "" }, { "docid": "4cc23ec21a978357a8a06db5bbae181c", "score": "0.5834908", "text": "@Override\n\t\tpublic void beSporty() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "f02c338eb46eb5cdf9d19504df309595", "score": "0.58264196", "text": "public void mo28814l() {\n }", "title": "" }, { "docid": "2be71c02c2e214eecbe2c8bd5dfe8cb0", "score": "0.58237594", "text": "@Override\n\tpublic void fortify() {\n\t\t\n\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.58140445", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "e8b6a10ed01f50fbe15d66c44e6b001f", "score": "0.58043116", "text": "public void mo28809c() {\n }", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.58032876", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "1a69d70e6e0ab03826da865edbaa2710", "score": "0.5802549", "text": "@Override\r\n public void init() {\n \r\n }", "title": "" }, { "docid": "89685a97be106c5e65406e42741d0ec3", "score": "0.5795489", "text": "public void mo1383a() {\n }", "title": "" }, { "docid": "de5480604ae54822ca3e3427911bb2b8", "score": "0.57932764", "text": "@Override\r\n public void muestra() {\r\n \r\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "812af2363c26b56566247f6bee5688a9", "score": "0.57931143", "text": "@Override\r\n\tprotected void cabecalho() {\n\t\t\r\n\t}", "title": "" }, { "docid": "630b43215e2b87f8b2bd389cae71f8a6", "score": "0.5789139", "text": "@Override\n\tprotected void dataAcquisition() {\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57740533", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "68ced9354b4e22b6351af0853a611a6c", "score": "0.57685226", "text": "@Override\n\tprotected void initDataReturn() {\n\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.576386", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "4dad4a53c5b94a389679f4aa74f10e8b", "score": "0.576086", "text": "@Override\r\n\tprotected void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.57533413", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "393237de9c40b0b47e9d2c845ed92ee5", "score": "0.57512337", "text": "public void mo45857a() {\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "791f5ad29d019a14317f5d7e2a069c65", "score": "0.57465565", "text": "@Override\n\tpublic void aprovar() {\n\n\t}", "title": "" }, { "docid": "60492bcc1b7f57299660c3da0f16ab25", "score": "0.57418126", "text": "@Override\n\tpublic void icmek() {\n\t\t\n\t}", "title": "" }, { "docid": "da5e9df869731b2ae1dfbbfdf12b8cd8", "score": "0.5735176", "text": "public void mo3351d() {\n }", "title": "" }, { "docid": "a2125c0cb9324db88e7561e4a64c5e39", "score": "0.5734662", "text": "@Override\n\tpublic void etiquetas() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "24127c1aaba5ab942240f052757a1aae", "score": "0.5722859", "text": "@Override\n \tpublic void getStatus() {\n \t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "2097402406ed48de16ed7ccfe28a85b4", "score": "0.57133764", "text": "public void mo5927b() {\n }", "title": "" }, { "docid": "03143ee9b26aa8a7d43576d479e4400a", "score": "0.5709887", "text": "public final void mo55685Zy() {\n }", "title": "" }, { "docid": "2fbf66fc78447a45c3f7ecb3924ab4b4", "score": "0.57051754", "text": "@Override\n public void initValue() {\n \n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "e1834e089677c260b4af3324391b3b67", "score": "0.5698954", "text": "public final void mo62463l() {\n }", "title": "" }, { "docid": "b42b054dfaac7d94036bce6ecf272a0e", "score": "0.56988037", "text": "private void pepe() {\n\t\t\n\t}", "title": "" }, { "docid": "09b27558b293ecd91a8d2d3a705d8a37", "score": "0.5676146", "text": "@Override\n\t\t\tpublic void c() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "86084419dce04a98c3acda092fe2ae36", "score": "0.5674851", "text": "@Override\r\n\t\t\tpublic void refresh() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.566569", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "aabd8322198752312581d89a3059f204", "score": "0.56625766", "text": "@Override\n \tpublic void create() {\n\n \t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "29f3cdbb287e40f98a8d2f36bba2f27b", "score": "0.56487125", "text": "@Override\n\tpublic int eixos() {\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "ce71f38a65a1456052420d8bdcb81b78", "score": "0.5647971", "text": "@Override\r\n\tprotected void reset()\r\n\t{\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "title": "" }, { "docid": "70d974abd496677a87c8807bf56e0a5b", "score": "0.56434053", "text": "@Override\n public void desenhar() {\n \n }", "title": "" }, { "docid": "dbdc1deb5da4aee65d17f30f15f26778", "score": "0.56416714", "text": "private void getParentArtefactId() {\n\t\t\n\t}", "title": "" }, { "docid": "1f81bdf0bcfef346d61145fbc2986fa6", "score": "0.56412745", "text": "@Override\r\n public String getName() {\n return null;\r\n }", "title": "" }, { "docid": "acbb02f47467f45f5ab2c3b2e5f7545d", "score": "0.5640882", "text": "public final void mo62452a() {\n }", "title": "" } ]
947c28d44c2710fd4b381b18f8511d06
This is indirect call to the undertow reverse proxy with a 4k json as body on 8080 which the reverse proxy is listening
[ { "docid": "de0d80fc8355aad66a549e881e3d0364", "score": "0.5804764", "text": "public void testProxy4k() throws Exception {\n ClientConnection connection = null;\n try {\n connection = client.connect(new URI(\"http://localhost:8000\"), Http2Client.WORKER, Http2Client.BUFFER_POOL, OptionMap.EMPTY).get();\n final String json = getResourceFileAsString(\"4k.json\");\n if(logger.isDebugEnabled()) logger.debug(json);\n for(int i = 0; i < 100; i++) {\n final CountDownLatch latch = new CountDownLatch(1);\n final AtomicReference<ClientResponse> reference = new AtomicReference<>();\n final ClientRequest request = new ClientRequest().setMethod(Methods.POST).setPath(\"/v1/postData\");\n request.getRequestHeaders().put(Headers.HOST, \"localhost\");\n request.getRequestHeaders().put(Headers.TRANSFER_ENCODING, \"chunked\");\n request.getRequestHeaders().put(Headers.CONTENT_TYPE, \"application/json\");\n connection.sendRequest(request, client.createClientCallback(reference, latch, json));\n latch.await(100, TimeUnit.MILLISECONDS);\n int statusCode = reference.get().getResponseCode();\n String body = reference.get().getAttachment(Http2Client.RESPONSE_BODY);\n if(statusCode != 200) System.out.println(\"testDirect4k failed with statusCode = \" + statusCode + \" body = \" + body);\n System.out.println(body);\n }\n } finally {\n if(connection != null) IoUtils.safeClose(connection);\n }\n\n }", "title": "" } ]
[ { "docid": "0ac1c482518725891fcc59cb7923401d", "score": "0.62815064", "text": "HttpResponse proxyToServerRequest(HttpObject httpObject);", "title": "" }, { "docid": "04cd60a6e8fe98e3ee72e2717a326f08", "score": "0.6079298", "text": "Proxy proxy();", "title": "" }, { "docid": "969864048825729ca2880c0e0ce2eedc", "score": "0.58039725", "text": "public int invoke(Request request, Response response) throws IOException, ServletException {\n\n if (debug >= 1)\n log(\"ReverseProxyValve Acting.\");\n\n ProxyContextConfig[] contexts =\n _rpc.getProxyContexts();\n\n\n // Create an instance of HttpClient.\n HttpClient client = new HttpClient();\n\n HttpServletRequest hsr = (HttpServletRequest)request.getRequest();\n String uri = hsr.getRequestURI();\n\n String uriContext = null;\n\n StringTokenizer st = new StringTokenizer (uri.substring(1), \"/\");\n while (st.hasMoreTokens()) {\n String token = st.nextToken();\n uriContext = \"/\" + token;\n break;\n }\n\n if (uriContext == null)\n uriContext = uri;\n\n // Obtain the target host from the\n String proxyForwardHost = null;\n String proxyForwardUri = null;\n\n for (int i=0; i < contexts.length; i++) {\n if (contexts[i].getContext().equals(uriContext)) {\n log(\"Proxy context mapped to host/uri: \" + contexts[i].getForwardHost() +\n contexts[i].getForwardUri() );\n proxyForwardHost = contexts[i].getForwardHost();\n proxyForwardUri = contexts[i].getForwardUri();\n break;\n }\n }\n\n\n if (proxyForwardHost == null)\n {\n log(\"URI '\" + uri + \"' can't be mapped to host\");\n //valveContext.invokeNext(request, response);\n return Valve.INVOKE_NEXT;\n }\n\n if (proxyForwardUri == null) {\n // trim the uri context before submitting the http request\n int uriTrailStartPos = uri.substring(1).indexOf(\"/\") + 1;\n proxyForwardUri = uri.substring(uriTrailStartPos);\n } else {\n int uriTrailStartPos = uri.substring(1).indexOf(\"/\") + 1;\n proxyForwardUri = proxyForwardUri + uri.substring(uriTrailStartPos);\n }\n\n // log (\"Proxy request mapped to \" + \"http://\" + proxyForwardHost + proxyForwardUri);\n\n HttpMethod method;\n\n // to be moved to a builder which instantiates and build concrete methods.\n if ( hsr.getMethod().equals(METHOD_GET)) {\n // Create a method instance.\n HttpMethod getMethod = new GetMethod(proxyForwardHost +\n proxyForwardUri + (hsr.getQueryString() != null ? (\"?\" + hsr.getQueryString()) : \"\")\n );\n method = getMethod;\n } else\n if ( hsr.getMethod().equals(METHOD_POST)) {\n // Create a method instance.\n PostMethod postMethod = new PostMethod(proxyForwardHost +\n proxyForwardUri + (hsr.getQueryString() != null ? (\"?\" + hsr.getQueryString()) : \"\")\n );\n postMethod.setRequestBody(hsr.getInputStream());\n method = postMethod;\n } else\n if ( hsr.getMethod().equals(METHOD_HEAD)) {\n // Create a method instance.\n HeadMethod headMethod = new HeadMethod(proxyForwardHost +\n proxyForwardUri + (hsr.getQueryString() != null ? (\"?\" + hsr.getQueryString()) : \"\")\n );\n method = headMethod;\n } else\n if ( hsr.getMethod().equals(METHOD_PUT)) {\n method = new PutMethod(proxyForwardHost +\n proxyForwardUri + (hsr.getQueryString() != null ? (\"?\" + hsr.getQueryString()) : \"\")\n );\n } else\n throw new java.lang.UnsupportedOperationException(\"Unknown method : \" + hsr.getMethod());\n\n // copy incoming http headers to reverse proxy request\n Enumeration hne = hsr.getHeaderNames();\n while (hne.hasMoreElements()) {\n String hn = (String)hne.nextElement();\n\n // Map the received host header to the target host name\n // so that the configured virtual domain can\n // do the proper handling.\n if (hn.equalsIgnoreCase(\"host\")) {\n method.addRequestHeader(\"Host\", proxyForwardHost);\n continue;\n }\n\n Enumeration hvals = hsr.getHeaders(hn);\n while (hvals.hasMoreElements()) {\n String hv = (String)hvals.nextElement();\n method.addRequestHeader(hn, hv);\n }\n }\n\n // Add Reverse-Proxy-Host header\n String reverseProxyHost = getReverseProxyHost(request);\n method.addRequestHeader(Constants.JOSSO_REVERSE_PROXY_HEADER, reverseProxyHost);\n\n if (debug >= 1)\n log(\"Sending \" + Constants.JOSSO_REVERSE_PROXY_HEADER + \" \" + reverseProxyHost);\n\n // DO NOT follow redirects !\n method.setFollowRedirects(false);\n\n // By default the httpclient uses HTTP v1.1. We are downgrading it\n // to v1.0 so that the target server doesn't set a reply using chunked\n // transfer encoding which doesn't seem to be handled properly.\n // Check how to make chunked transfer encoding work.\n client.getParams().setVersion(new HttpVersion(1, 0));\n\n // Execute the method.\n int statusCode = -1;\n try {\n // execute the method.\n statusCode = client.executeMethod(method);\n } catch (HttpRecoverableException e) {\n log(\n \"A recoverable exception occurred \" +\n e.getMessage());\n } catch (IOException e) {\n log(\"Failed to connect.\");\n e.printStackTrace();\n }\n\n // Check that we didn't run out of retries.\n if (statusCode == -1) {\n log(\"Failed to recover from exception.\");\n }\n\n // Read the response body.\n byte[] responseBody = method.getResponseBody();\n\n // Release the connection.\n method.releaseConnection();\n\n HttpServletResponse sres = (HttpServletResponse)response.getResponse();\n\n // First thing to do is to copy status code to response, otherwise\n // catalina will do it as soon as we set a header or some other part of the response.\n sres.setStatus(method.getStatusCode());\n\n // copy proxy response headers to client response\n Header[] responseHeaders = method.getResponseHeaders();\n for (int i=0; i < responseHeaders.length; i++) {\n Header responseHeader = responseHeaders[i];\n String name = responseHeader.getName();\n String value = responseHeader.getValue();\n\n // Adjust the URL in the Location, Content-Location and URI headers on HTTP redirect responses\n // This is essential to avoid by-passing the reverse proxy because of HTTP redirects on the\n // backend servers which stay behind the reverse proxy\n switch (method.getStatusCode()) {\n case HttpStatus.SC_MOVED_TEMPORARILY:\n case HttpStatus.SC_MOVED_PERMANENTLY:\n case HttpStatus.SC_SEE_OTHER:\n case HttpStatus.SC_TEMPORARY_REDIRECT:\n\n if (\"Location\".equalsIgnoreCase(name) ||\n \"Content-Location\".equalsIgnoreCase(name) || \"URI\".equalsIgnoreCase(name)) {\n\n // Check that this redirect must be adjusted.\n if (value.indexOf(proxyForwardHost) >= 0) {\n String trail = value.substring(proxyForwardHost.length());\n value = getReverseProxyHost(request) + trail;\n if (debug >= 1)\n log(\"Adjusting redirect header to \" + value);\n }\n }\n break;\n\n } //end of switch\n sres.addHeader(name, value);\n\n }\n\n // Sometimes this is null, when no body is returned ...\n if (responseBody != null && responseBody.length > 0)\n sres.getOutputStream().write(responseBody);\n\n sres.getOutputStream().flush();\n\n if (debug >= 1)\n log(\"ReverseProxyValve finished.\");\n\n return Valve.END_PIPELINE;\n }", "title": "" }, { "docid": "e11de1c16b8139b47794f3a68d4d8335", "score": "0.57614565", "text": "public void testProxy48k() throws Exception {\n ClientConnection connection = null;\n try {\n connection = client.connect(new URI(\"http://localhost:8000\"), Http2Client.WORKER, Http2Client.BUFFER_POOL, OptionMap.EMPTY).get();\n final String json = getResourceFileAsString(\"48k.json\");\n if(logger.isDebugEnabled()) logger.debug(json);\n for(int i = 0; i < 100; i++) {\n final CountDownLatch latch = new CountDownLatch(1);\n final AtomicReference<ClientResponse> reference = new AtomicReference<>();\n final ClientRequest request = new ClientRequest().setMethod(Methods.POST).setPath(\"/v1/postData\");\n request.getRequestHeaders().put(Headers.HOST, \"localhost\");\n request.getRequestHeaders().put(Headers.TRANSFER_ENCODING, \"chunked\");\n request.getRequestHeaders().put(Headers.CONTENT_TYPE, \"application/json\");\n connection.sendRequest(request, client.createClientCallback(reference, latch, json));\n latch.await(100, TimeUnit.MILLISECONDS);\n int statusCode = reference.get().getResponseCode();\n String body = reference.get().getAttachment(Http2Client.RESPONSE_BODY);\n if(statusCode != 200) System.out.println(\"testDirect4k failed with statusCode = \" + statusCode + \" body = \" + body);\n System.out.println(body);\n System.out.println(i);\n }\n } finally {\n if(connection != null) IoUtils.safeClose(connection);\n }\n }", "title": "" }, { "docid": "2af8bba072898d42e81517e221cb1c71", "score": "0.57272506", "text": "@Test\n public void should_handle_call_with_default_port_mapping() {\n make(getRequest(\"http://www.nginx-test.com\").to(nginxReverseProxy))\n .andExpectResponseCode(200);\n }", "title": "" }, { "docid": "74020514b98412183345314eec1a023e", "score": "0.56581956", "text": "@Path(\"/\")\npublic interface ProxyV2API {\n\n /**\n * Register the proxy and transmit proxy metrics to Wavefront servers.\n *\n * @param proxyId ID of the proxy.\n * @param authorization Authorization token.\n * @param hostname Host name of the proxy.\n * @param version Build version of the proxy.\n * @param currentMillis Current time at the proxy (used to calculate clock drift).\n * @param agentMetrics Proxy metrics.\n * @param ephemeral If true, proxy is removed from the UI after 24 hours of inactivity.\n * @return Proxy configuration.\n */\n @POST\n @Path(\"v2/wfproxy/checkin\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n AgentConfiguration proxyCheckin(@HeaderParam(\"X-WF-PROXY-ID\") final UUID proxyId,\n @HeaderParam(\"Authorization\") String authorization,\n @QueryParam(\"hostname\") String hostname,\n @QueryParam(\"version\") String version,\n @QueryParam(\"currentMillis\") final Long currentMillis,\n JsonNode agentMetrics,\n @QueryParam(\"ephemeral\") Boolean ephemeral);\n\n /**\n * Report batched data (metrics, histograms, spans, etc) to Wavefront servers.\n *\n * @param proxyId Proxy Id reporting the result.\n * @param format The format of the data (wavefront, histogram, trace, spanLogs)\n * @param pushData Push data batch (newline-delimited)\n */\n @POST\n @Consumes(MediaType.TEXT_PLAIN)\n @Path(\"v2/wfproxy/report\")\n Response proxyReport(@HeaderParam(\"X-WF-PROXY-ID\") final UUID proxyId,\n @QueryParam(\"format\") final String format,\n final String pushData);\n\n /**\n * Reports confirmation that the proxy has processed and accepted the configuration sent from the back-end.\n *\n * @param proxyId ID of the proxy.\n */\n @POST\n @Path(\"v2/wfproxy/config/processed\")\n void proxyConfigProcessed(@HeaderParam(\"X-WF-PROXY-ID\") final UUID proxyId);\n\n /**\n * Reports an error that occurred in the proxy.\n *\n * @param proxyId ID of the proxy reporting the error.\n * @param details Details of the error.\n */\n @POST\n @Path(\"v2/wfproxy/error\")\n void proxyError(@HeaderParam(\"X-WF-PROXY-ID\") final UUID proxyId,\n @FormParam(\"details\") String details);\n}", "title": "" }, { "docid": "db31b43b494700336d922ea5f8100d4b", "score": "0.54705876", "text": "SocksProxy copy();", "title": "" }, { "docid": "9d0d609a70a02f8c25f2da75677f589d", "score": "0.54311866", "text": "@Test\n\tpublic void proxyServer(){\n\n\t\t given()\n\t\t\t\t.proxy(5555) // Need Some Server To Capture. Example : Postman Proxy Server.\n\t\t\t\t.get(\"https://file-examples.com/wp-content/uploads/2017/02/file_example_XLS_10.xls\");\n\t}", "title": "" }, { "docid": "8789d679a6bb365ff9355d75d4008c18", "score": "0.53663254", "text": "@Override\n protected void request(ProtocolHandlerContext<HttpContext> ctx) {\n Request req = ctx.data.result;\n String url = req.uri;\n\n boolean isConnect;\n // check method\n {\n String method = req.method;\n isConnect = method.equalsIgnoreCase(\"connect\");\n if (!isConnect && !url.startsWith(\"http://\")) {\n Logger.warn(LogType.INVALID_EXTERNAL_DATA, \"method is wrong! expecting CONNECT or proxying for http, \" +\n \"but got \" + method + \" \" + url + \", \" +\n \"connection: \" + ctx.connectionId);\n outCtx.data.right.failed(new IOException(\"invalid method \" + method));\n return;\n }\n }\n if (isConnect) {\n String host;\n int port;\n // check url for connect\n {\n url = ctx.data.result.uri;\n if (!url.contains(\":\")) {\n Logger.warn(LogType.INVALID_EXTERNAL_DATA, \"url is wrong! no `:` in \" + url + \", \" +\n \"connection: \" + ctx.connectionId);\n outCtx.data.right.failed(new IOException(\"invalid url: \" + url));\n return;\n }\n host = url.substring(0, url.lastIndexOf(\":\")).trim();\n String strPort = url.substring(url.lastIndexOf(\":\") + 1).trim();\n if (host.isEmpty()) {\n Logger.warn(LogType.INVALID_EXTERNAL_DATA, \"url is wrong! invalid host \" + url + \", \" +\n \"connection: \" + ctx.connectionId);\n outCtx.data.right.failed(new IOException(\"invalid url: host: \" + url));\n return;\n }\n try {\n port = Integer.parseInt(strPort);\n } catch (NumberFormatException e) {\n Logger.warn(LogType.INVALID_EXTERNAL_DATA, \"url is wrong! invalid port \" + url + \", \" +\n \"connection: \" + ctx.connectionId);\n outCtx.data.right.failed(new IOException(\"invalid url: port: \" + url));\n return;\n }\n if (port <= 0 || port > 65535) {\n Logger.warn(LogType.INVALID_EXTERNAL_DATA, \"url is wrong! invalid port: out of range \" + url + \", \" +\n \"connection: \" + ctx.connectionId);\n outCtx.data.right.failed(new IOException(\"invalid url: port: out of range: \" + url));\n return;\n }\n }\n\n assert Logger.lowLevelDebug(\"connect to \" + host + \":\" + port);\n // mark handshake done\n hcctx.handshakeDone = true;\n outCtx.data.left.host = host;\n outCtx.data.left.port = port;\n outCtx.write(\"HTTP/1.0 200 Connection established\\r\\n\\r\\n\".getBytes());\n } else {\n assert Logger.lowLevelDebug(\"client is sending raw http request\");\n String msg = \"only \\\"connect\\\" proxy requests are supported\";\n String rebuiltUrl = \"https://\" + url.substring(\"http://\".length());\n String respBody = ErrorPages.build(\"VPROXY ERROR PAGE\", msg, \"you may try to request via https\", rebuiltUrl, rebuiltUrl);\n String resp = \"\" +\n \"HTTP/1.0 400 Bad Request\\r\\n\" +\n \"Connection: Close\\r\\n\" +\n \"Content-Length: \" + respBody.getBytes().length + \"\\r\\n\" +\n \"\\r\\n\" +\n respBody;\n outCtx.write(resp.getBytes());\n outCtx.data.right.failed(new IOException(msg));\n }\n }", "title": "" }, { "docid": "a8342bf4564d91d93ddc96af9e0ca41e", "score": "0.53458637", "text": "public void testRouterHttps4k() throws Exception {\n ClientConnection connection = null;\n try {\n connection = client.connect(new URI(\"https://localhost:8000\"), Http2Client.WORKER, Http2Client.SSL, Http2Client.BUFFER_POOL, OptionMap.create(UndertowOptions.ENABLE_HTTP2, true)).get();\n final String json = getResourceFileAsString(\"4k.json\");\n for(int i = 0; i < 100; i++) {\n final CountDownLatch latch = new CountDownLatch(1);\n final AtomicReference<ClientResponse> reference = new AtomicReference<>();\n final ClientRequest request = new ClientRequest().setMethod(Methods.POST).setPath(\"/v1/postData\");\n request.getRequestHeaders().put(Headers.HOST, \"localhost\");\n request.getRequestHeaders().put(Headers.TRANSFER_ENCODING, \"chunked\");\n request.getRequestHeaders().put(Headers.CONTENT_TYPE, \"application/json\");\n connection.sendRequest(request, client.createClientCallback(reference, latch, json));\n latch.await();\n int statusCode = reference.get().getResponseCode();\n String body = reference.get().getAttachment(Http2Client.RESPONSE_BODY);\n if(statusCode != 200) System.out.println(\"testRoter4k failed with statusCode = \" + statusCode + \" body = \" + body);\n System.out.println(body);\n }\n } finally {\n if(connection != null) IoUtils.safeClose(connection);\n }\n\n }", "title": "" }, { "docid": "10d3b6c9b7724e589f4462b5ce0ac4c9", "score": "0.5337954", "text": "public interface ProxyHandler {\r\n\r\n /**\r\n * Represents a response from the proxy.\r\n */\r\n class ProxyResponseResult {\r\n private final Boolean isSuccess;\r\n private final String error;\r\n\r\n /**\r\n * Creates a new response.\r\n *\r\n * @param isSuccess {@code true} if it was successful; {@code false} otherwise.\r\n * @param error The error from the proxy. Or {@code null} if there was none.\r\n */\r\n public ProxyResponseResult(final Boolean isSuccess, final String error) {\r\n this.isSuccess = isSuccess;\r\n this.error = error;\r\n }\r\n\r\n public Boolean getIsSuccess() {\r\n return isSuccess;\r\n }\r\n\r\n public String getError() {\r\n return error;\r\n }\r\n }\r\n\r\n /**\r\n * Creates a CONNECT request to the provided {@code hostName} and adds {@code additionalHeaders} to the request.\r\n *\r\n * @param hostName Name of the host to connect to.\r\n * @param additionalHeaders Optional. Additional headers to add to the request.\r\n * @return A string representing the HTTP CONNECT request.\r\n */\r\n String createProxyRequest(String hostName, Map<String, String> additionalHeaders);\r\n\r\n /**\r\n * Verifies that {@code buffer} contains a successful CONNECT response.\r\n *\r\n * @param buffer Buffer containing the HTTP response.\r\n * @return Indicates if CONNECT response contained a success. If not, contains an error indicating why the call was\r\n * not successful.\r\n */\r\n ProxyResponseResult validateProxyResponse(ByteBuffer buffer);\r\n}", "title": "" }, { "docid": "6af28a24a48fe2a3ab61af161bfb7460", "score": "0.5324065", "text": "@GetMapping(\"hello\")\n public String hello(){\n String url = \"http://\" + SERVER_ID + \"/hello\";\n logger.info(\"remote server url:{}\",url);\n return restTemplate.getForObject(url, String.class);\n\n }", "title": "" }, { "docid": "616eb4d707c8ca5258fe8cbcf010cb0b", "score": "0.5280805", "text": "public void testRouterHttps48k() throws Exception {\n ClientConnection connection = null;\n try {\n connection = client.connect(new URI(\"https://localhost:8000\"), Http2Client.WORKER, Http2Client.SSL, Http2Client.BUFFER_POOL, OptionMap.create(UndertowOptions.ENABLE_HTTP2, true)).get();\n final String json = getResourceFileAsString(\"48k.json\");\n for(int i = 0; i < 100; i++) {\n final CountDownLatch latch = new CountDownLatch(1);\n final AtomicReference<ClientResponse> reference = new AtomicReference<>();\n final ClientRequest request = new ClientRequest().setMethod(Methods.POST).setPath(\"/v1/postData\");\n request.getRequestHeaders().put(Headers.HOST, \"localhost\");\n request.getRequestHeaders().put(Headers.TRANSFER_ENCODING, \"chunked\");\n request.getRequestHeaders().put(Headers.CONTENT_TYPE, \"application/json\");\n connection.sendRequest(request, client.createClientCallback(reference, latch, json));\n latch.await(1000, TimeUnit.MILLISECONDS);\n int statusCode = reference.get().getResponseCode();\n String body = reference.get().getAttachment(Http2Client.RESPONSE_BODY);\n if(statusCode != 200) System.out.println(\"testRouter4k failed with statusCode = \" + statusCode + \" body = \" + body);\n System.out.println(i);\n if(!body.startsWith(\"[\")) System.out.println(body);\n }\n } finally {\n if(connection != null) IoUtils.safeClose(connection);\n }\n }", "title": "" }, { "docid": "2ac37d6b18fd1540d9bdc55dc755471e", "score": "0.5226405", "text": "public void testRouterHttps1000k() throws Exception {\n ClientConnection connection = null;\n try {\n connection = client.connect(new URI(\"https://localhost:8000\"), Http2Client.WORKER, Http2Client.SSL, Http2Client.BUFFER_POOL, OptionMap.create(UndertowOptions.ENABLE_HTTP2, true)).get();\n final String json = getResourceFileAsString(\"1000k.json\");\n for(int i = 0; i < 100; i++) {\n final CountDownLatch latch = new CountDownLatch(1);\n final AtomicReference<ClientResponse> reference = new AtomicReference<>();\n final ClientRequest request = new ClientRequest().setMethod(Methods.POST).setPath(\"/v1/postData\");\n request.getRequestHeaders().put(Headers.HOST, \"localhost\");\n request.getRequestHeaders().put(Headers.TRANSFER_ENCODING, \"chunked\");\n request.getRequestHeaders().put(Headers.CONTENT_TYPE, \"application/json\");\n connection.sendRequest(request, client.createClientCallback(reference, latch, json));\n latch.await();\n int statusCode = reference.get().getResponseCode();\n String body = reference.get().getAttachment(Http2Client.RESPONSE_BODY);\n if(statusCode != 200) System.out.println(\"testRouter4k failed with statusCode = \" + statusCode + \" body = \" + body);\n System.out.println(i);\n if(!body.startsWith(\"[\")) System.out.println(body);\n }\n } finally {\n if(connection != null) IoUtils.safeClose(connection);\n }\n }", "title": "" }, { "docid": "f76fae13cca0f57334e3762d5d9a39e4", "score": "0.520156", "text": "public void testRouterHttp48k() throws Exception {\n ClientConnection connection = null;\n try {\n connection = client.connect(new URI(\"http://localhost:8000\"), Http2Client.WORKER, Http2Client.BUFFER_POOL, OptionMap.EMPTY).get();\n final String json = getResourceFileAsString(\"48k.json\");\n if(logger.isDebugEnabled()) logger.debug(json);\n for(int i = 0; i < 100; i++) {\n final CountDownLatch latch = new CountDownLatch(1);\n final AtomicReference<ClientResponse> reference = new AtomicReference<>();\n final ClientRequest request = new ClientRequest().setMethod(Methods.POST).setPath(\"/v1/postData\");\n request.getRequestHeaders().put(Headers.HOST, \"localhost\");\n request.getRequestHeaders().put(Headers.TRANSFER_ENCODING, \"chunked\");\n request.getRequestHeaders().put(Headers.CONTENT_TYPE, \"application/json\");\n connection.sendRequest(request, client.createClientCallback(reference, latch, json));\n latch.await(100, TimeUnit.MILLISECONDS);\n int statusCode = reference.get().getResponseCode();\n String body = reference.get().getAttachment(Http2Client.RESPONSE_BODY);\n if(statusCode != 200) System.out.println(\"testRouter4k failed with statusCode = \" + statusCode + \" body = \" + body);\n System.out.println(body);\n }\n } finally {\n if(connection != null) IoUtils.safeClose(connection);\n }\n }", "title": "" }, { "docid": "91c4aa6237058b2a316683a7d922bba7", "score": "0.51658475", "text": "@Mixins(ProxyService.Mixin.class)\npublic interface ProxyService\n extends ServiceComposite, Activatable, Configuration<ProxyConfiguration>, Uniform, Availability\n{\n \n\n class Mixin\n implements Activatable, Uniform, Availability\n {\n @Service\n @IdentifiedBy(\"client\")\n ServiceReference<Uniform> client;\n\n @This\n Configuration<ProxyConfiguration> config;\n public Reference proxyRef;\n public ChallengeResponse challengeResponse;\n\n public void activate() throws Exception\n {\n if (config.configuration().enabled().get())\n {\n proxyRef = new Reference(config.configuration().url().get());\n challengeResponse = new ChallengeResponse( ChallengeScheme.HTTP_BASIC, config.configuration().username().get(), config.configuration().password().get() );\n }\n }\n\n public void passivate() throws Exception\n {\n }\n\n public boolean isAvailable()\n {\n return config.configuration().enabled().get() && client.isAvailable();\n }\n\n public void handle( Request request, Response response )\n {\n if (proxyRef == null || !client.isAvailable())\n {\n // Not enabled\n response.setStatus( Status.SERVER_ERROR_SERVICE_UNAVAILABLE, \"Streamflow proxy is not enabled\" );\n return;\n }\n\n Reference proxyReference;\n Reference ref = request.getResourceRef();\n if (ref.getBaseRef() == null)\n {\n proxyReference = new Reference( proxyRef.toString()+ref.getPath().substring( 1 ));\n } else\n {\n String remaining = ref.getRemainingPart();\n proxyReference = new Reference( proxyRef.toString()+remaining.substring(1));\n }\n\n ClientResource client = new ClientResource( proxyReference );\n client.setClientInfo( request.getClientInfo() );\n client.setNext( this.client.get() );\n client.setChallengeResponse( challengeResponse );\n client.setMethod( request.getMethod() );\n client.getRequest().setEntity( request.getEntity() );\n\n try\n {\n Representation representation = client.handle();\n\n response.setStatus( client.getStatus() );\n // just a test but should be changed\n //response.setEntity( representation );\n ByteArrayOutputStream bout = new ByteArrayOutputStream( );\n BioUtils.copy( representation.getStream(), bout);\n representation.exhaust();\n representation.release();\n InputRepresentation inputRepresentation = new InputRepresentation( new ByteArrayInputStream( bout.toByteArray() ), representation.getMediaType(), bout.size() );\n inputRepresentation.setDisposition( representation.getDisposition() );\n inputRepresentation.setCharacterSet( representation.getCharacterSet() );\n inputRepresentation.setDigest( representation.getDigest() );\n inputRepresentation.setLanguages( representation.getLanguages() );\n inputRepresentation.setEncodings( representation.getEncodings() );\n inputRepresentation.setExpirationDate( representation.getExpirationDate() );\n inputRepresentation.setModificationDate( representation.getModificationDate() );\n response.setEntity( inputRepresentation );\n } catch ( ResourceException re )\n {\n response.setStatus( re.getStatus(), re.getCause(), re.getMessage() );\n } catch ( Exception ex )\n {\n response.setStatus( Status.SERVER_ERROR_INTERNAL, ex, ex.getMessage() );\n } finally\n {\n request.release();\n }\n\n }\n }\n}", "title": "" }, { "docid": "edbad30bcdc9374aec6c686ee4102e36", "score": "0.5147664", "text": "@RequestMapping(\"/tcp/test\")\n public String test(String name) {\n String result = simpleGateway.send(name);\n System.out.println(\"result : \" + result);\n return result;\n }", "title": "" }, { "docid": "820323a33498a913f71e8969d0cd5f1b", "score": "0.5102254", "text": "public void testSimpleGetHttpRequestWithPort80() throws Exception {\n String path = createTestResourcePath(\"ga_asimov_it_proxy18\");\n String uri = createTestResourceUri(\"ga_asimov_it_proxy18\");\n PrepareResourceUtil.prepareResource(uri, false);\n\n String expected = \"HTTP/1.0 200 OK\" + CRLF + \"Connection: close\" + CRLF + \"Content-Length: 7\" + CRLF + CRLF\n + \"get1b..\";\n String encoded = URLEncoder.encode(Base64.encodeToString(expected.getBytes(), Base64.DEFAULT));\n\n String request = \"GET http://\" + TEST_RESOURCE_HOST + \":80/\" + path + \" HTTP/1.0\" + CRLF + \"X-OC-Raw: \"\n + encoded + CRLF + \"Connection: close\" + CRLF + CRLF;\n HttpResponse response = sendRequest(request.getBytes(), TEST_RESOURCE_HOST);\n\n assertEquals(HttpStatus.SC_OK, response.getStatusCode());\n assertEquals(\"get1b..\", response.getBody());\n }", "title": "" }, { "docid": "4664342d09b604b65fd19d294a05ef81", "score": "0.5099774", "text": "public abstract byte[] respondBody ();", "title": "" }, { "docid": "acaaef11b5b758f6e8bca216573169f5", "score": "0.5069449", "text": "@Override\n\tpublic void update() {\n\t\tSystem.out.println(\"proxy start update data\");\n\t\tadminServe.update();\n\t\tSystem.out.println(\"proxy end update data\");\n\t}", "title": "" }, { "docid": "5f3d01f15694d85bf54930996aead384", "score": "0.50670564", "text": "Socket getProxySocket();", "title": "" }, { "docid": "da1135ae7724083f64219ea0359efd32", "score": "0.5060376", "text": "@Test\n public void testUseSocks5AsProxy() throws IOException {\n\n String url = \"https://httpbin.org/ip\";\n RequestConfig config = RequestConfig.custom().build();\n HttpGet httpGet = new HttpGet(url);\n httpGet.setConfig(config);\n\n Socks5HttpClient httpClient = new Socks5HttpClient();\n CloseableHttpResponse response = httpClient.execute(httpGet, null, \"127.0.0.1\", 1086);\n\n\n try {\n System.out.println(\"----------------------------------------\");\n System.out.println(response.getStatusLine());\n System.out.println( EntityUtils.toString(response.getEntity()) );\n } finally {\n response.close();\n }\n\n }", "title": "" }, { "docid": "2359c322b9ebceab4e9d1f9b2271d95a", "score": "0.5047874", "text": "public abstract Response GET(HttpExchange request);", "title": "" }, { "docid": "464230c75614532e67300e7e3748746e", "score": "0.5027268", "text": "ProxyService createProxyService();", "title": "" }, { "docid": "28cb91e8fd41e12044eb7bc710abe5f6", "score": "0.5024097", "text": "@Override\n\t\t\tpublic void handleRequest(HttpServerExchange exchange) {\n\t\t\t\tif (exchange.isInIoThread()) {\n\t\t\t\t\texchange.dispatch(this);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\texchange.getResponseHeaders().put(Headers.CONTENT_TYPE, CONTENT_TYPE_JSON);\n\t\t\t\ttry {\n\t\t\t\t\texchange.getResponseSender().send(jsonRpcServer.handleChecked(exchange));\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\texchange.setStatusCode(400);\n\t\t\t\t\texchange.getResponseSender().send(\"Invalid request: \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "639e8b4199e41e6ecf6d055c20a562ed", "score": "0.50100636", "text": "@Override\n public void configure() throws Exception {\n restConfiguration()\n .component(\"restlet\")\n .host(\"localhost\")\n .port(\"9090\")\n .bindingMode(RestBindingMode.json)\n .dataFormatProperty(\"prettyPrint\", \"true\");\n\n\n rest(\"/reverse\").description(\"Reversing provided text\")\n .consumes(\"application/json\").description(\"Consumes json\")\n .produces(\"application/json\").description(\"Produce json\")\n .get(\"/{in}\").description(\"Takes text as an argument\")\n .outType(String.class).description(\"Produce string type response\")\n .route()\n .routeId(\"rest-reverse\")\n .process((exchange) -> {\n String reversedInput = (String) exchange.getIn().getHeader(\"in\");\n exchange.getOut().setBody(new StringBuilder(reversedInput).reverse().toString());\n })\n .endRest();\n\n rest(\"/topic\")\n .consumes(\"application/json\")\n .produces(\"application/json\")\n .post(\"/{url}\")\n .outType(String.class)\n .route()\n .routeId(\"rest-topic\")\n .log(\"Sending to topic: ${header.url}\")\n .setProperty(\"urlIn\", simple(\"${header.url}\"))\n .process((exchange) -> {\n boolean results = template.executeInTransaction(t -> {\n ProducerRecord<String, String> record =\n new ProducerRecord<String, String>(\"test1\", (String) exchange.getIn().getHeader(\"url\"));\n\n ListenableFuture<SendResult<String, String>> future = template.send(record);\n\n future.addCallback(new ListenableFutureCallback<SendResult<String, String>>() {\n @Override\n public void onSuccess(SendResult<String, String> result) {\n logger.info(\"Message: {} was successfully sent.\", result.toString());\n }\n\n @Override\n public void onFailure(Throwable ex) {\n logger.error(\"Message failed to send due to: {}\", ex);\n }\n });\n\n return true;\n });\n })\n .setBody(simple(\"${property.urlIn} message was send!\"))\n .endRest();\n }", "title": "" }, { "docid": "36758dbd2c561a89ee478b8ab961bb0f", "score": "0.5006655", "text": "private void handleHttpRequest(ChannelHandlerContext ctx, FullHttpRequest req) {\n if (!req.decoderResult().isSuccess()) {\n sendHttpResponse(ctx, req, new DefaultFullHttpResponse(HTTP_1_1, BAD_REQUEST));\n return;\n }\n\n // Allow only GET methods.\n if (req.method() != GET) {\n sendHttpResponse(ctx, req, new DefaultFullHttpResponse(HTTP_1_1, FORBIDDEN));\n return;\n }\n\n if (!StringUtils.isEmpty(pojoEndpointServer.getHost()) && !pojoEndpointServer.getHost().equals(\"0.0.0.0\") && !pojoEndpointServer.getHost().equals(req.headers().get(HttpHeaderNames.HOST))) {\n sendHttpResponse(ctx, req, new DefaultFullHttpResponse(HTTP_1_1, FORBIDDEN));\n return;\n }\n\n Set<String> pathSet = pojoEndpointServer.getPathSet();\n if (pathSet !=null&&pathSet.size()>0&&!pathSet.contains(req.uri())) {\n sendHttpResponse(ctx, req, new DefaultFullHttpResponse(HTTP_1_1, NOT_FOUND));\n return;\n }\n\n if (!req.headers().contains(UPGRADE)||!req.headers().contains(SEC_WEBSOCKET_KEY)||!req.headers().contains(SEC_WEBSOCKET_VERSION)){\n sendHttpResponse(ctx, req, new DefaultFullHttpResponse(HTTP_1_1, FORBIDDEN));\n return;\n }\n\n // Handshake\n WebSocketServerHandshakerFactory wsFactory = new WebSocketServerHandshakerFactory(\"ws://\" + req.headers().get(HOST) + req.uri(), null, true);\n handshaker = wsFactory.newHandshaker(req);\n if (handshaker == null) {\n WebSocketServerHandshakerFactory.sendUnsupportedVersionResponse(ctx.channel());\n } else {\n ChannelFuture channelFuture = handshaker.handshake(ctx.channel(), req);\n if (channelFuture.isSuccess()) {\n pojoEndpointServer.doOnOpen(ctx, req);\n }\n }\n }", "title": "" }, { "docid": "50fbe66e43dc71f61da7c43fbddfe71f", "score": "0.49945337", "text": "public static void main(String args[]) throws IOException {\n ServerSocket listener = new ServerSocket(3232);\n while(true) {\n Proxy t = new Proxy(listener.accept());\n t.start(); \n }\n\n }", "title": "" }, { "docid": "de4b344f2c6eba1e9d39ff3de784e838", "score": "0.4992575", "text": "public void testDirect4k() throws Exception {\n ClientConnection connection = null;\n try {\n connection = client.connect(new URI(\"https://localhost:8443\"), Http2Client.WORKER, Http2Client.SSL, Http2Client.BUFFER_POOL, OptionMap.create(UndertowOptions.ENABLE_HTTP2, true)).get();\n final String json = getResourceFileAsString(\"4k.json\");\n if(logger.isDebugEnabled()) logger.debug(json);\n for(int i = 0; i < 100; i++) {\n final CountDownLatch latch = new CountDownLatch(1);\n final AtomicReference<ClientResponse> reference = new AtomicReference<>();\n final ClientRequest request = new ClientRequest().setMethod(Methods.POST).setPath(\"/v1/postData\");\n request.getRequestHeaders().put(Headers.HOST, \"localhost\");\n request.getRequestHeaders().put(Headers.TRANSFER_ENCODING, \"chunked\");\n request.getRequestHeaders().put(Headers.CONTENT_TYPE, \"application/json\");\n connection.sendRequest(request, client.createClientCallback(reference, latch, json));\n latch.await(100, TimeUnit.MILLISECONDS);\n int statusCode = reference.get().getResponseCode();\n String body = reference.get().getAttachment(Http2Client.RESPONSE_BODY);\n if(statusCode != 200) System.out.println(\"testDirect4k failed with statusCode = \" + statusCode + \" body = \" + body);\n System.out.println(body);\n }\n } finally {\n if(connection != null) IoUtils.safeClose(connection);\n }\n\n }", "title": "" }, { "docid": "2a977ca139a709078c065530b7c4fa94", "score": "0.49869132", "text": "public void someWork(HttpServerExchange httpServerExchange) {\n String body = \"some JSON response to client\";\n httpServerExchange.setStatusCode(200);\n httpServerExchange.getResponseHeaders().put(Headers.CONTENT_TYPE, \"application/json\");\n httpServerExchange.getResponseSender().send(body);\n }", "title": "" }, { "docid": "998076bb73ed551a51b089374f827f31", "score": "0.49646702", "text": "public interface ProxyCallback<T> {\n\n void completed(final HttpServerExchange exchange, T result);\n\n void failed(HttpServerExchange exchange);\n\n}", "title": "" }, { "docid": "0e7f7eddda3e1573434aa5511a1cb695", "score": "0.49558797", "text": "@RequestMapping(\"/call\")\n public String callHome(){\n return restTemplate.getForObject(\"http://localhost:8988/hi\", String.class);\n }", "title": "" }, { "docid": "9cf69b558e5f5bc917a935ace4630298", "score": "0.495392", "text": "public void testDirect48k() throws Exception {\n ClientConnection connection = null;\n try {\n connection = client.connect(new URI(\"https://localhost:8443\"), Http2Client.WORKER, Http2Client.SSL, Http2Client.BUFFER_POOL, OptionMap.create(UndertowOptions.ENABLE_HTTP2, true)).get();\n final String json = getResourceFileAsString(\"48k.json\");\n if(logger.isDebugEnabled()) logger.debug(json);\n for(int i = 0; i < 100; i++) {\n final CountDownLatch latch = new CountDownLatch(1);\n final AtomicReference<ClientResponse> reference = new AtomicReference<>();\n final ClientRequest request = new ClientRequest().setMethod(Methods.POST).setPath(\"/v1/postData\");\n request.getRequestHeaders().put(Headers.HOST, \"localhost\");\n request.getRequestHeaders().put(Headers.TRANSFER_ENCODING, \"chunked\");\n request.getRequestHeaders().put(Headers.CONTENT_TYPE, \"application/json\");\n connection.sendRequest(request, client.createClientCallback(reference, latch, json));\n latch.await(100, TimeUnit.MILLISECONDS);\n int statusCode = reference.get().getResponseCode();\n String body = reference.get().getAttachment(Http2Client.RESPONSE_BODY);\n if(statusCode != 200) System.out.println(\"testDirect4k failed with statusCode = \" + statusCode + \" body = \" + body);\n if(!body.startsWith(\"[\")) System.out.println(body);\n }\n } finally {\n if(connection != null) IoUtils.safeClose(connection);\n }\n }", "title": "" }, { "docid": "e2280a15d34bb1101dfd3ccc6af3ddb2", "score": "0.49526238", "text": "public static void byteBuddyHttpClient() {\n\t\tSystem.out.println(\"============ byteBuddy + httpClient + json ==============start\");\n\t\tRpcfxClient client = new RpcfxClientByteBuddy();\n\t\t\n\t\tUserService userService = client.create(UserService.class, \"http://localhost:8080/\");\n\t\tUser user = userService.findById(1);\n\t\tSystem.out.println(\"find user id=1 from server: \" + user.getName());\n\t\t\n\t\tOrderService orderService = client.create(OrderService.class, \"http://localhost:8080/\");\n\t\tOrder order = orderService.findOrderById(1992129);\n\t\tSystem.out.println(String.format(\"find order name=%s, amount=%f\", order.getName(), order.getAmount()));\n\t\tSystem.out.println(\"============ byteBuddy + httpClient + json ==============end\");\n\t}", "title": "" }, { "docid": "08e662c9aee02b30ca374c5775b77a07", "score": "0.49522784", "text": "ProxyServer select(Uri uri);", "title": "" }, { "docid": "9ebb53f81d92964fdb088b4af8452280", "score": "0.4938756", "text": "@Override\n\tpublic void handle(HttpExchange exchange) throws IOException {\n\t\t\n\t\tInputStreamReader inputStreamReader = new InputStreamReader(exchange.getRequestBody());\n\t\tLoginRequest request = (LoginRequest) gson.fromJson(inputStreamReader, LoginRequest.class);\n\t\tinputStreamReader.close();\n//\t\tSystem.out.println(\"The request = '\" + request.toString() + \"'\");\n\t\t\n\t\tLoginResponse response = LoginService.serve(request);\n\t\t\n\t\texchange.sendResponseHeaders(HttpURLConnection.HTTP_OK, 0);\n\t\t// 0 means the response body has an unknown amount of stuff in it\n\t\t\n\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(exchange.getResponseBody());\n\t\tgson.toJson(response, outputStreamWriter);\n\t\toutputStreamWriter.close();\n\t}", "title": "" }, { "docid": "5f3c142fb6e0144800005d6b33a9f048", "score": "0.49378744", "text": "public void initiateProxy() throws SkipUseException {\n serverResponseData = new ServerResponse();\n if (hasServerConnection) {\n SkipUseToken sendingToken = tokenHelper.getInitiateToken();\n try {\n String responseJson = getRestTemplate()\n .getForObject(api_url + \"/skipusetoken/\" + sendingToken.toString() + \"/initiate\", String.class);\n\n processStringResponse(responseJson);\n\n } catch (HttpClientErrorException e) {\n handleHttpClientError(e, \"GET /initiate\");\n } catch (Exception e) {\n throw new SkipUseException(\"Failed to initiate a proxy with the SkipUse server. \" + e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "a07b5d74b49822bd3926afc5a1231533", "score": "0.4930781", "text": "@FeignClient(name = \"userApi\", url = \"localhost:9090\",configuration = WebappOpenFeignConfiguration.class)\npublic interface UserProxy {\n\n\t@GetMapping(\"/user/{id}\")\n\tOptional<UserDto> getUserConnected(@PathVariable (\"id\") int id);\n\t\n\t@PostMapping(value=\"/api/auth/login\", consumes=MediaType.APPLICATION_JSON_VALUE, produces=MediaType.APPLICATION_JSON_VALUE)\n\tString login(@RequestBody AuthBodyDto data);\n\t\n}", "title": "" }, { "docid": "27210f01d45bab8305faf214ae54cc43", "score": "0.4926766", "text": "public void handleInbound(WebContext ctx) {\n\r\n }", "title": "" }, { "docid": "405c2237eed7e128b87a92dbb5802009", "score": "0.49244502", "text": "public void configure() {\n\t\t\t\t\t\t\tfrom(\"jetty://http://localhost:40001/proxy?matchOnUriPrefix=true\").to(\"http4://localhost:40000?bridgeEndpoint=true&throwExceptionOnFailure=false&urlRewrite=#myRewrite\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// if url rewrite is successful this route will be executed and the product_id variable placed in the message for easy retrieval (this route represents our destination server)\n\t\t\t\t\t\t\tfrom(\"jetty:http://localhost:40000/end/products/index.jsp\").transform(header(\"product_id\")).to(\"mock:result\");\n\t\t\t\t\t\t}", "title": "" }, { "docid": "64884f24f129fb57a5011fcac89cd185", "score": "0.49212468", "text": "public static void main(final String... args)throws Exception {\n Request.get(\"http://somehost/\")\n .connectTimeout(Timeout.ofSeconds(1))\n .responseTimeout(Timeout.ofSeconds(5))\n .execute().returnContent().asString();\n\n // Execute a POST with the 'expect-continue' handshake, using HTTP/1.1,\n // containing a request body as String and return response content as byte array.\n Request.post(\"http://somehost/do-stuff\")\n .useExpectContinue()\n .version(HttpVersion.HTTP_1_1)\n .bodyString(\"Important stuff\", ContentType.DEFAULT_TEXT)\n .execute().returnContent().asBytes();\n\n // Execute a POST with a custom header through the proxy containing a request body\n // as an HTML form and save the result to the file\n Request.post(\"http://somehost/some-form\")\n .addHeader(\"X-Custom-header\", \"stuff\")\n .viaProxy(new HttpHost(\"myproxy\", 8080))\n .bodyForm(Form.form().add(\"username\", \"vip\").add(\"password\", \"secret\").build())\n .execute().saveContent(new File(\"result.dump\"));\n }", "title": "" }, { "docid": "6a59f6792730c4a39639ce01220aa3a9", "score": "0.492094", "text": "public interface AMHttpService {\n void handleHttpRequest(ChannelHandlerContext ctx, FullHttpRequest request);\n}", "title": "" }, { "docid": "4945957ad8f13615f01c5dd5e8799efe", "score": "0.4907301", "text": "SocksProxy getChainProxy();", "title": "" }, { "docid": "1d90769d0a854d60b4d41735bf302f7e", "score": "0.48908934", "text": "@Override\n public void handleGET(CoapExchange exchange) {\n exchange.respond(\"Hello World!!\");\n\n }", "title": "" }, { "docid": "119b234a567fe58eb005c7f1ce882fb3", "score": "0.48795336", "text": "FullHttpResponse process(FullHttpRequest request);", "title": "" }, { "docid": "ef394cb806450fc6d0c6ae902eb1f39c", "score": "0.48769477", "text": "public void invoke(ProxyContext context) {\r\n\t\tif (next != null) {\r\n\t\t\tnext.invoke(context);\r\n\t\t}\r\n\t\tif (!context.getRecordHeaders()) {\r\n\t\t\tAcknowledgeMessage ack = new AcknowledgeMessage();\r\n ack.setBody(context.getResponse());\r\n ack.setHeader(STATUS_CODE_HEADER_NAME, new Integer(context.getHttpMethod().getStatusCode()));\r\n context.setResponse(ack);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "249a1a8697ea3ef516045050dc2ab9c8", "score": "0.4873042", "text": "@Test\n @Ignore\n public void verify_connection_with_proxy() throws IOException {\n InetAddress proxyAddress = InetAddress.getLocalHost();\n Integer port = 8889;\n String proxyUsername = \"user\";\n String proxyPassword = \"password\";\n \n InetSocketAddress proxy = new InetSocketAddress(proxyAddress, port);\n\n OkHttpClient client = new OkHttpClient.Builder()\n .proxy(new Proxy(Proxy.Type.HTTP, proxy))\n .proxyAuthenticator((route, response) -> {\n String credential = Credentials.basic(proxyUsername, proxyPassword);\n return response.request().newBuilder()\n .header(\"Proxy-Authorization\", credential)\n .build();\n })\n .build();\n\n Request request = new Request.Builder()\n .url(testUrl)\n .header(\"Accept\", \"application/json\")\n .get()\n .build();\n\n Response response = client.newCall(request).execute();\n\n assertThat(response.code(), is(equalTo(200)));\n }", "title": "" }, { "docid": "cc1c67980b0e83662acbf8a851e3c485", "score": "0.48601496", "text": "public static void main(String[] args) throws Exception {\n // global context which holds application level value like global cache, db connections etc\n AppContext appContext = AppContext.getInstance();\n int cpu = Runtime.getRuntime().availableProcessors();\n int ioThreads = cpu;\n int workerThreads = cpu * 4;\n\n // commented only in sample code\n// SSLContext sslContext = createSSLContext();\n\n // start server instance to listen on port 80 and 443\n Undertow server = Undertow.builder()\n .addHttpListener(80, \"0.0.0.0\")\n// .addHttpsListener(443, \"0.0.0.0\", sslContext) // commented only in sample code\n .setWorkerThreads(workerThreads)\n .setServerOption(UndertowOptions.ENABLE_HTTP2, true)\n .setServerOption(UndertowOptions.IDLE_TIMEOUT, 150000) // 150000ms = 2.5m\n .setServerOption(UndertowOptions.NO_REQUEST_TIMEOUT, 150000) // 150000ms = 2.5m\n .setServerOption(org.xnio.Options.SSL_SERVER_SESSION_CACHE_SIZE, 1024 * 1000) // 1000000 sessions\n .setServerOption(org.xnio.Options.SSL_SERVER_SESSION_TIMEOUT, 150) // 2.5m\n .setIoThreads(ioThreads)\n .setWorkerOption(org.xnio.Options.TCP_NODELAY, true)\n .setSocketOption(org.xnio.Options.TCP_NODELAY, true)\n .setSocketOption(org.xnio.Options.KEEP_ALIVE, true)\n .setSocketOption(org.xnio.Options.REUSE_ADDRESSES, true)\n .setSocketOption(org.xnio.Options.CONNECTION_HIGH_WATER, 1_00_000) // to safeguard during periodic connection recycle by client serves\n .setSocketOption(org.xnio.Options.CONNECTION_LOW_WATER, 1_00_000)\n .setHandler(\n Handlers.routing()\n .post(\"/\", new UndertowTest(appContext))\n )\n .build();\n server.start();\n }", "title": "" }, { "docid": "df94d61c58e30a8b38e006a546cf7314", "score": "0.48511094", "text": "void send(HttpServerExchange exchange);", "title": "" }, { "docid": "f79c22504f253e66a94ecb788780d29e", "score": "0.48429805", "text": "@Test\n public void useSimpleHttpProxyViaSocksHttpClient() throws IOException {\n\n HttpHost proxy = new HttpHost(\"157.185.128.251\", 61000, \"http\");\n\n String url = \"http://httpbin.org/ip\";\n RequestConfig config = RequestConfig.custom().setProxy(proxy).build();\n HttpGet httpGet = new HttpGet(url);\n httpGet.setConfig(config);\n\n Socks5HttpClient socks5HttpClient = new Socks5HttpClient();\n// CloseableHttpResponse response = httpClient.execute(httpGet, null, \"127.0.0.1\", 1086);\n CloseableHttpResponse response = socks5HttpClient.execute(httpGet);\n\n try {\n System.out.println(\"----------------------------------------\");\n System.out.println(response.getStatusLine());\n System.out.println( EntityUtils.toString(response.getEntity()) );\n } finally {\n response.close();\n }\n\n }", "title": "" }, { "docid": "b15d31ec22ff2c513e4953fe5ab43f5b", "score": "0.4840289", "text": "Builder proxyConfiguration(ProxyConfiguration proxyConfiguration);", "title": "" }, { "docid": "139f971897c1e72e242ec733762c49c8", "score": "0.4834102", "text": "ResponseImpl(InputStream proxy) {\n\t\t\t this.proxy = proxy;\n\t\t\t }", "title": "" }, { "docid": "f0a0ca7f6fa101b39428305a0e7d1d9f", "score": "0.4813699", "text": "@Override\n public Response serve(IHTTPSession session) {\n Map<String, String> headers = session.getHeaders();\n String fromIP = headers.get(\"remote-addr\");\n String userAgent = headers.get(\"user-agent\");\n\n // Note what method (OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE) got us here.\n // (See https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html for details.)\n // We'll use this to short-circuit the rather lengthy evaluation coming up.\n boolean methodIsOPTIONS = false;\n boolean methodIsGET = false;\n boolean methodIsHEAD = false;\n boolean methodIsPOST = false;\n boolean methodIsPUT = false;\n boolean methodIsDELETE = false;\n boolean methodIsTRACE = false;\n\n // Store the body of POSTs and PUTs as both string and JSON data for possible future use.\n String reqBodyStr = \"\";\n JsonObject reqBodyJSON = new JsonObject();\n\n Method method = session.getMethod();\n if (Method.OPTIONS.equals(method)) {\n methodIsOPTIONS = true;\n } else if (Method.GET.equals(method)) {\n methodIsGET = true;\n } else if (Method.HEAD.equals(method)) {\n methodIsHEAD = true;\n } else if (Method.POST.equals(method)) {\n methodIsPOST = true;\n // Read JSON string from POST body and parse it\n Integer contentLength = Integer.parseInt(headers.get(\"content-length\"));\n byte[] buf = new byte[contentLength];\n try {\n session.getInputStream().read(buf, 0, contentLength);\n reqBodyStr = new String(buf);\n reqBodyJSON = new JsonParser().parse(reqBodyStr).getAsJsonObject();\n } catch (Exception e) {\n // TODO: Do something if this fails.\n }\n } else if (Method.PUT.equals(method)) {\n methodIsPUT = true;\n // Read JSON string from PUT body and parse it\n Integer contentLength = Integer.parseInt(headers.get(\"content-length\"));\n byte[] buf = new byte[contentLength];\n try {\n session.getInputStream().read(buf, 0, contentLength);\n reqBodyStr = new String(buf);\n reqBodyJSON = new JsonParser().parse(reqBodyStr).getAsJsonObject();\n } catch (Exception e) {\n // TODO: Do something if this fails.\n }\n } else if (Method.DELETE.equals(method)) {\n methodIsDELETE = true;\n } else if (Method.TRACE.equals(method)) {\n methodIsTRACE = true;\n }\n\n // Note what was requested.\n String requestText = String.valueOf(session.getUri());\n\n // Echo it to the API console.\n System.out.println(\"API received command: \" + requestText + \" from \" + fromIP);\n\n // Make a log entry.\n String msg = HPID + \"~\" + method.toString() + \"~\" + requestText + \"~\" + fromIP + \"~\" + userAgent;\n writeLog(msg);\n\n // Return the response.\n String responseTxt = \"<h1>404 Not Found</h1>\";\n Response response = newFixedLengthResponse(responseTxt);\n return response;\n }", "title": "" }, { "docid": "1ebd003d70a53afcb25df43b1287905c", "score": "0.4811892", "text": "@Test\n\tpublic void weatherRouter()throws Exception {\n\t\t Vertx vertx = Vertx.vertx();\n\t\t WebClient client = WebClient.create(vertx);\n\t\t client.getAbs(\"http://samples.openweathermap.org/data/2.5/weather?q=London&mode=xml&appid=b6907d289e10d714a6e88b30761fae22\")\n\t\t .send(r->{\n\t\t\t if (r.succeeded()) {\n\t\t\t\t HttpResponse<Buffer> response = r.result();\n\t\t\t System.out.println(\"Received response with status code\" + response.statusCode());\n\t\t\t System.out.println(response.bodyAsString());\n\t\t\t }\n\t\t\t else {\n\t\t\t System.out.println(\"Something went wrong \" + r.cause().getMessage());\n\t\t\t }\n\t\t });\n\t\t \n\t\t TimeUnit.SECONDS.sleep(5);\n\t}", "title": "" }, { "docid": "d2b85bdd39bcbb5de0fd96eb410804cd", "score": "0.4800078", "text": "Optional<String> httpProxy();", "title": "" }, { "docid": "57c55b21d6a0c3782c98bdfb24b7c65b", "score": "0.47986206", "text": "public ProxyConfig readProxyConfig(JsonObject json) {\n\t\tif (json.hasKey(PROXY_BASE_PATH)) {\n\t\t\tProxyConfigFile config = new ProxyConfigFile();\n\t\t\tconfig.setPath(StringVariable.builder().originalValue(json.getString(PROXY_PATH)).build());\n\t\t\tconfig.setBasePath(StringVariable.builder().originalValue(json.getString(PROXY_BASE_PATH)).build());\n\t\t\tconfig.setFilterPath(json.getString(PROXY_FILTER_PATH));\n\t\t\treturn config;\n\t\t} else {\n\t\t\tProxyConfigRequest config = new ProxyConfigRequest();\n\n\t\t\tif (json.hasKey(PROXY_PROTOCOL))\n\t\t\t\tconfig.setProtocol(json.getString(PROXY_PROTOCOL));\n\n\t\t\tif (json.hasKey(PROXY_HOST))\n\t\t\t\tconfig.setHost(StringVariable.builder().originalValue(json.getString(PROXY_HOST)).build());\n\n\t\t\tif (json.isInt(PROXY_PORT))\n\t\t\t\tconfig.setPort(json.getInt(PROXY_PORT));\n\t\t\telse {\n\t\t\t\ttry {\n\t\t\t\t\tString value = json.getString(PROXY_PORT);\n\t\t\t\t\tconfig.setPort(Integer.parseInt(value));\n\t\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\t\tconfig.setPort(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tconfig.setPath(StringVariable.builder().originalValue(json.getString(PROXY_PATH)).build());\n\t\t\tconfig.setEnableCache(json.getBoolean(PROXY_CACHE));\n\t\t\tconfig.setCacheDuration(json.getInt(PROXY_CACHE_DUR));\n\t\t\tconfig.setHostHeader(json.getString(PROXY_HOST_HEADER));\n\n\t\t\tif (json.isJsonArray(PROXY_HEADERS)) {\n\t\t\t\tJsonValue headersValue = json.get(PROXY_HEADERS);\n\t\t\t\tJsonArray headers = headersValue.getJsonArray();\n\t\t\t\tfor (JsonValue v : headers) {\n\t\t\t\t\tJsonObject headerObj = v.getJsonObject();\n\t\t\t\t\tString name = headerObj.getString(PROXY_HEADERS_NAME);\n\t\t\t\t\tString value = headerObj.getString(PROXY_HEADERS_VALUE);\n\t\t\t\t\tHttpHeader hdr = HttpHeader.builder().name(name).value(value).build();\n\t\t\t\t\tconfig.getHeaders().add(hdr);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn config;\n\t\t}\n\t}", "title": "" }, { "docid": "81edb70279d1c110cbe66fad5bbd598a", "score": "0.4798402", "text": "public void testDirect1000k() throws Exception {\n ClientConnection connection = null;\n try {\n connection = client.connect(new URI(\"https://localhost:8443\"), Http2Client.WORKER, Http2Client.SSL, Http2Client.BUFFER_POOL, OptionMap.create(UndertowOptions.ENABLE_HTTP2, true)).get();\n final String json = getResourceFileAsString(\"1000k.json\");\n if(logger.isDebugEnabled()) logger.debug(json);\n for(int i = 0; i < 100; i++) {\n final CountDownLatch latch = new CountDownLatch(1);\n final AtomicReference<ClientResponse> reference = new AtomicReference<>();\n final ClientRequest request = new ClientRequest().setMethod(Methods.POST).setPath(\"/v1/postData\");\n request.getRequestHeaders().put(Headers.HOST, \"localhost\");\n request.getRequestHeaders().put(Headers.TRANSFER_ENCODING, \"chunked\");\n request.getRequestHeaders().put(Headers.CONTENT_TYPE, \"application/json\");\n connection.sendRequest(request, client.createClientCallback(reference, latch, json));\n latch.await();\n int statusCode = reference.get().getResponseCode();\n String body = reference.get().getAttachment(Http2Client.RESPONSE_BODY);\n if(statusCode != 200) System.out.println(\"testDirect4k failed with statusCode = \" + statusCode + \" body = \" + body);\n if(!body.startsWith(\"[\")) System.out.println(body);\n }\n } finally {\n if(connection != null) IoUtils.safeClose(connection);\n }\n }", "title": "" }, { "docid": "3d2dd9be32a86d749e7faf7f864a7118", "score": "0.47960624", "text": "public void configure() {\n\t\t\t\tRouteDefinition from = from(\"direct:ooo\");\r\n\t\t\t\t\r\n\t\t\t\tfrom.setExchangePattern(ExchangePattern.InOnly);\r\n\t\t\t\tfrom.process(new Processor() {\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void process(Exchange exchange) throws Exception {\r\n\t\t\t\t\t\tSystem.err.println(\"Processor : \"+exchange.getIn().getBody());\r\n\t\t\t\t\t\twaitSeconds(1);\r\n\t\t\t\t\t\texchange.getOut().setBody(exchange.getIn().getBody().toString().toUpperCase());\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tfrom.beanRef(\"nettyBean\", \"message\");\r\n\t\t\t}", "title": "" }, { "docid": "a7a647ff75598bcb4d1f64c770cd5fc5", "score": "0.47914913", "text": "void atResponseBodyBegin();", "title": "" }, { "docid": "da45bfe84d6bcc9bd103d9d5716132c3", "score": "0.47829017", "text": "@RequestMapping(\"/echo\")\n public DatabaseEntryListWrapper echo(@RequestBody String input) {\n ObjectMapper mapper = new ObjectMapper();\n\n try {\n //Convert JSON string to object\n ServerRequest serverRequest = mapper.readValue(input, ServerRequest.class);\n\n System.out.println(\"BuggyCode received: \" + serverRequest.getBuggyCode() + \"\\n\");\n System.out.println(\"Error message received: \" + serverRequest.getErrorMessage() + \"\\n\");\n System.out.println(\"Echoing back the received data...\\n\\n\\n\");\n\n return DatabaseServer.sanitizeForJsonTransmission(new DatabaseEntryListWrapper(new DatabaseEntry(-1, \"crap\", \"sdf\", \"squid\", \"Sdf\"))); //TODO fix this outdated method\n\n\n } catch (JsonGenerationException e) {\n e.printStackTrace();\n } catch (JsonMappingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return new DatabaseEntryListWrapper(new DatabaseEntry(-1, \"crap\", \"sdf\", \"squid\", \"Sdf\"))\n ; //\n // TODO fix this outdated method\n }", "title": "" }, { "docid": "cc096901142d4a6c2e809a53082812a0", "score": "0.4766538", "text": "@Override\n public String executeRequest() throws Exception {\n\n HttpRawRequestImpl requestMaker= new HttpRawRequestImpl();\n Socket socket = new Socket(HOST, REST_PORT);\n //create a socket with string host and int rest_port\n OutputStream outputStream= socket.getOutputStream();\n InputStream inputStream= socket.getInputStream();\n PrintWriter output= new PrintWriter(outputStream);\n //will buffer the PrintWriter's output to the file\n //closing the socket also closes input and outputstream\n\n output.println(requestMaker.generateRequest(HOST, REST_PORT, SENSOR_PATH));\n output.flush();\n //Flushes this buffered output stream.\n //this forces any buffered output bytes to be written out to the underlying outputstream\n\n BufferedReader bufferedReader= new BufferedReader(new InputStreamReader(inputStream));\n //Reads text from a character-input stream\n\n String response = \"\";\n String temp;\n while((temp = bufferedReader.readLine())!=null){\n response += \"\\n\" + temp;\n //that is because headers require to have carriage return and nwline at end of each line\n\n }\n bufferedReader.close();\n //Closes the stream and releases any system resources associated with it.\n return response;\n\n }", "title": "" }, { "docid": "19b8adf4f5e2cfbf71fcb685d35a47b4", "score": "0.47625697", "text": "@Override\n\tpublic void run(String... args) throws Exception {\n\n\n\t\trestTemplate.postForObject(String.format(\"http://localhost:8080/shopping/checkout/%d\",2)\n\t\t\t\t, null, Object.class);\n\t}", "title": "" }, { "docid": "df28e7c2b205c3ecde46fb151961e77f", "score": "0.47614884", "text": "@GetMapping(\"/h/{name}\")\n public Mono<String> hi(@PathVariable String name) {\n Mono<String> res = Mono.just(rpcDemo.sayHello(name) + useLocalCache);\n// Mono.just(es.$echo(\"OK\")).log().subscribe();\n return res.log();\n }", "title": "" }, { "docid": "7bf5acb8f6a25257fe873b2a44c1566a", "score": "0.4754543", "text": "@Override\n protected String run() throws Exception {\n return restTemplate.getForObject(\"http://provider/hello\", String.class);\n }", "title": "" }, { "docid": "cacf556b0d29478bdb6da0fc2309ca11", "score": "0.47523168", "text": "@Override\n public void configure() {\n\n \trestConfiguration().bindingMode(RestBindingMode.json);\n\n rest(\"/rest\")\n .produces(\"text/plain\")\n .get(\"/test\")\n .route()\n .log(\"GET Rest endpoint using CDI\")\n .setBody().constant(\"Ok --returned by Rest CDI endpoint\")\n .endRest();\n }", "title": "" }, { "docid": "5fc574b98523ff2776e28da24c549111", "score": "0.47467878", "text": "@Override\n\tpublic void handle(HttpExchange r) throws IOException {\n\t\ttry {\n if (r.getRequestMethod().equals(\"GET\")) {\n handleGet(r);\n }\n else if (r.getRequestMethod().equals(\"PUT\")) {\n handlePut(r);\n \n }\n else if (r.getRequestMethod().equals(\"DELETE\")) {\n handleDelete(r);\n \n \n }\n else {\n \t//Send 405 error, method not found\n\t\t\t\tr.sendResponseHeaders(405, 0);\n\t\t\t\tOutputStream os = r.getResponseBody();\n\t\t os.close();\n }\n } catch (Exception e) {\n \t//send 500 error\n \tr.sendResponseHeaders(500, 0);\n \tOutputStream os = r.getResponseBody();\n\t os.close();\n e.printStackTrace();\n }\n\t\t\n\t}", "title": "" }, { "docid": "8bdfe663b56c8424d1b0c3ea9981a3d2", "score": "0.47350466", "text": "String proxy();", "title": "" }, { "docid": "b53533332cfe26fb95dd01403fa31bd1", "score": "0.47295573", "text": "@Override\n public void run() {\n request.printRequest();\n String method = request.getMethod();\n String bodyType = request.getBodyType();\n try {\n connection = (HttpURLConnection) request.getUrl().openConnection();\n if (request.isFollowRedirect())\n HttpURLConnection.setFollowRedirects(true);\n putHeaders();\n if (method.equals(\"GET\"))\n sendGet(method);\n else if (method.equals(\"DELETE\"))\n sendGet(method);\n else {\n switch (bodyType) {\n case \"json\":\n json(method);\n break;\n case \"formData\":\n formData(method);\n break;\n case \"upload\":\n upload(method);\n break;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "4165a69efbf40b461faad6292a4a75e3", "score": "0.47194356", "text": "Socket createProxySocket() throws IOException;", "title": "" }, { "docid": "5aaaca6d8814e5191384d74bf85d368c", "score": "0.47151414", "text": "@Override\n public void configure() throws Exception {\n restConfiguration()\n .component(\"jetty\")\n .port(1337)\n .contextPath(\"api\")\n .bindingMode(RestBindingMode.json);\n \n // \"say\" is optional here.\n rest(\"/say\").get(\"/hello\")\n .to(\"bean:helloService?method=sayHello\"); \n\n }", "title": "" }, { "docid": "bbbb6aaa8c1e59f6525fd03901a3f483", "score": "0.47149476", "text": "public static void main(String[] args) {\n Vertx.vertx().createHttpServer().requestHandler(r -> r.response().end(\"test\")).listen(8080);\n }", "title": "" }, { "docid": "d8b536eca693462741dbcd5b41014b24", "score": "0.47145197", "text": "ProxyOutputConnector createProxyOutputConnector();", "title": "" }, { "docid": "72f03cb207f41f34e34afe81c9bd82aa", "score": "0.47136915", "text": "public String onAPIRouter(String fromip, String json) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "82555580db00bec82dd546c52afc2b16", "score": "0.4712461", "text": "@Override\r\n\tpublic void start(Future<Void> fut) { \r\n\r\n\t\t// Create a router object.\r\n\t\tRouter router = Router.router(vertx);\r\n\r\n\t\trouter.route().handler(BodyHandler.create());\r\n\t\t\r\n\t\trouter.post(\"/limitorder/\").handler(this::createLimitOrder);\r\n\t\trouter.get(\"/orderdetails/:order_id\").handler(this::fetchOrderDetails); \t\r\n\t\t\r\n\t\t// start server\r\n\t\tstartServer(fut, router, 8083);\r\n\t\t\r\n System.out.println( \"OrderService - started\" );\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ef2bed8e340b7db92d702ebfff6298f3", "score": "0.47052574", "text": "@Override\n public void handle(HttpExchange request) throws IOException {\n try {\n\n InputStreamReader isr = new InputStreamReader(request.getRequestBody(), StandardCharsets.UTF_8);\n\n BufferedReader br = new BufferedReader(isr);\n\n String query;\n\n try {\n query = br.readLine();\n\n } finally {\n isr.close();\n br.close();\n }\n\n String json_file = String.format(JSON_FORMAT, getDate(query));\n\n createCurrentJsonFile(json_file);\n\n getJsonFile(json_file);\n\n Utils.sendResponse(request, json_file);\n\n } catch (HttpRequestException e) {\n Utils.sendResponse(request, e.getMessage());\n }\n }", "title": "" }, { "docid": "4c6bb318db9309242fbec87ea90dd322", "score": "0.47017372", "text": "public interface Proxy {\n Object doProxy(ProxyChain proxyChain);\n}", "title": "" }, { "docid": "6d656341ccdb8e7b0fa81f2d337de4f9", "score": "0.46971792", "text": "public static void main(String[] args) throws IOException {\n\t\t\r\n\t\tURL url = new URL(\"https://jsonplaceholder.typicode.com/posts/1\");\r\n\t\tHttpURLConnection connection = (HttpURLConnection) url.openConnection();\r\n\t\t\r\n\t\tconnection.setRequestMethod(\"GET\");\r\n\t\tconnection.connect();\r\n\t\t\r\n\t\tint statuscode = connection.getResponseCode();\r\n\t\tSystem.out.println(\"Response code is \" + statuscode);\r\n\t\t\r\n\t\tString responseMsg = connection.getResponseMessage();\r\n\t\t\r\n\t\tSystem.out.println(\"Response message is \" + responseMsg);\r\n\t\t\r\n\t\tInputStream inputStream = connection.getInputStream();\r\n\t\tInputStreamReader ipStreamReader = new InputStreamReader(inputStream);\r\n\t\tBufferedReader bufferReader = new BufferedReader(ipStreamReader);\r\n\t\t\r\n\t\tString line;\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\r\n\t\twhile((line= bufferReader.readLine()) != null)\r\n\t\t{\r\n\t\t\tbuffer.append(line);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(buffer); \r\n\t\t}", "title": "" }, { "docid": "5f8d7b9b17623704677e60119b9cc67c", "score": "0.46930602", "text": "public void run() {\n InputStream inputStream = null;\n DataOutputStream outputStream = null;\n String response = \"\";\n \n try {\n \t// create input stream\n inputStream = this.socket.getInputStream();\n DataInputStream dataInputStream = new DataInputStream(inputStream);\n // read request string\n String request = dataInputStream.readUTF();\n \n try {\n\t // convert request string to POJO (Java Object)\n\t\t\t\tRequestBody requestBody = new ObjectMapper().readValue(request, RequestBody.class);\n\t\t\t\t\n\t\t\t\t// access request information\n\t\t\t\tdouble originLat = requestBody.getOrigin().getLat();\n\t\t\t\tdouble originLon = requestBody.getOrigin().getLon();\n\t\t\t\tSystem.out.println(\"origin: \" + originLat + \", \" + originLon);\n\t\t\t\tdouble destinationLat = requestBody.getDestination().getLat();\n\t\t\t\tdouble destinationLon = requestBody.getDestination().getLon();\n\t\t\t\tSystem.out.println(\"destination: \" + destinationLat + \", \" + destinationLon);\n\t \n\t\t\t\t// build road network graph\n\t\t this.roadNetwork.buildRoadNetworkFromGeoJsonFile();\n\t\t // build quad tree needed to determine closest node in road network\n\t\t this.quadTree.buildQuadTreeFromRoadNetwork(this.roadNetwork);\n\t\t \n\t\t\t\t// find corresponding nodes in road network graph\n\t\t\t\tNode origin = findCoordinatesInRoadNetworkGraph(originLat, originLon);\n\t\t\t\tNode destination = findCoordinatesInRoadNetworkGraph(destinationLat, destinationLon);\n\t\t\t\t\n\t\t\t\t// try to find shortest path\n\t\t\t\tShortestPathAlgorithm algorithm = new ShortestPathAlgorithm(this.roadNetwork, origin, destination);\n\t\t\t algorithm.findShortestPath();\n\t\t\t\tList<Node> path = algorithm.path();\n\t\t\t\t\n\t\t\t\t// needed for GeoJson response\n\t\t\t\tdouble distance = algorithm.distanceToTarget(); // shortest distance\n\t\t\t\tdouble travelTime = algorithm.travelTimeToTarget(); // corresponding travel time\n\t\t\t\t// convert shortest path found to GeoJson string\n\t\t\t\tresponse = convertPathToJson(path, distance, travelTime);\n\t\t\t\t\n } catch (JsonParseException e) {\n \t\t\te.printStackTrace();\n \t\t} catch (JsonMappingException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \n // create output stream\n outputStream = new DataOutputStream(socket.getOutputStream());\n // output GeoJson string\n outputStream.writeUTF(response);\n outputStream.flush();\n outputStream.close();\n \n } catch (IOException e) {\n System.err.println(\"IOException occurred while processing request.\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "e4cc8c12d9d7c84513dbf85393698dcd", "score": "0.468864", "text": "ImageProxyServer(final String targetHost, final int targetPort) {\r\n \r\n \t\tthis.targetHost = targetHost;\r\n \t\tthis.targetPort = targetPort;\r\n \t}", "title": "" }, { "docid": "5b3e72d20c4e68776b9c5ca474695e09", "score": "0.46707013", "text": "public ByteArrayOutputStream handleData(ByteArrayOutputStream data) {\n\t\tRMIMethodCallProxy proxy;\n\t\tByteArrayOutputStream outData = new ByteArrayOutputStream();\n\t\tStringBuilder sb;\n\t\tString refType;\n\t\tString hostName;\n\t\tString newHost;\n\t\tbyte[] dataBytes;\n\t\tint portNumber;\n\t\tint newPort;\n\t\tint blockLen;\n\t\tint hostLen;\n\t\tint i;\n\t\tint j;\n\t\t\n\t\t//Copy data to the output data, replacing remote object references if found\n\t\tdataBytes = data.toByteArray();\n\t\tfor(i = 0; i < dataBytes.length; ++i) {\n\t\t\t//Copy the current byte to the output stream\n\t\t\toutData.write(dataBytes[i]);\n\t\t\t\n\t\t\t//Look for remote object references\n\t\t\ttry {\n\t\t\t\t//Check for TC_BLOCKDATA\n\t\t\t\tif(dataBytes[i] != 0x77) { continue; }\n\t\t\t\t\n\t\t\t\t//Get the block length\n\t\t\t\tblockLen = dataBytes[i + 1];\n\t\t\t\t\n\t\t\t\t//Offset 2 should be 0x00\n\t\t\t\tif(dataBytes[i + 2] != 0x00) { continue; }\n\t\t\t\t\n\t\t\t\t//Get the reference type name\n\t\t\t\tsb = new StringBuilder(dataBytes[i + 3]);\n\t\t\t\tfor(j = 0; j < dataBytes[i + 3]; ++j) {\n\t\t\t\t\tsb.append((char)dataBytes[i + j + 4]);\n\t\t\t\t}\n\t\t\t\trefType = sb.toString();\n\t\t\t\t\n\t\t\t\t//Check the reference type and get the host data\n\t\t\t\tif(refType.equals(\"UnicastRef\")) {\n\t\t\t\t\t//Get the hostname\n\t\t\t\t\thostLen = (dataBytes[i + 14] << 8) + dataBytes[i + 15];\n\t\t\t\t\tsb = new StringBuilder(hostLen);\n\t\t\t\t\tfor(j = 0; j < hostLen; ++j) {\n\t\t\t\t\t\tsb.append((char)dataBytes[i + j + 16]);\n\t\t\t\t\t}\n\t\t\t\t\thostName = sb.toString();\n\t\t\t\t\t\n\t\t\t\t\t//Get the port number\n\t\t\t\t\tportNumber = (int)((dataBytes[i + hostLen + 16] << 24) & 0xff000000) +\n\t\t\t\t\t\t\t\t\t ((dataBytes[i + hostLen + 17] << 16) & 0xff0000) +\n\t\t\t\t\t\t\t\t\t ((dataBytes[i + hostLen + 18] << 8) & 0xff00) +\n\t\t\t\t\t\t\t\t\t (dataBytes[i + hostLen + 19] & 0xff);\n\t\t\t\t} else if(refType.equals(\"UnicastRef2\")) {\n\t\t\t\t\t//Get the hostname\n\t\t\t\t\thostLen = (dataBytes[i + 16] << 8) + dataBytes[i + 17];\n\t\t\t\t\tsb = new StringBuilder(hostLen);\n\t\t\t\t\tfor(j = 0; j < hostLen; ++j) {\n\t\t\t\t\t\tsb.append((char)dataBytes[i + j + 18]);\n\t\t\t\t\t}\n\t\t\t\t\thostName = sb.toString();\n\t\t\t\t\t\n\t\t\t\t\t//Get the port number\n\t\t\t\t\tportNumber = (int)((dataBytes[i + hostLen + 18] << 24) & 0xff000000) +\n\t\t\t\t\t\t\t\t\t ((dataBytes[i + hostLen + 19] << 16) & 0xff0000) +\n\t\t\t\t\t\t\t\t\t ((dataBytes[i + hostLen + 20] << 8) & 0xff00) +\n\t\t\t\t\t\t\t\t\t (dataBytes[i + hostLen + 21] & 0xff);\n\t\t\t\t} else {\n\t\t\t\t\t//Unknown remote object reference type\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Attempt to create an RMI method proxy and redirect the remote object through it\n\t\t\t\ttry {\n\t\t\t\t\t//Create and start an RMI method call proxy\n\t\t\t\t\tproxy = new RMIMethodCallProxy(InetAddress.getByName(hostName), portNumber, this._options, this._payload, this._marker);\n\t\t\t\t\tproxy.startProxy();\n\t\t\t\t\t\n\t\t\t\t\t//Add proxy to list of method call proxies\n\t\t\t\t\tthis._methodProxies.add(proxy);\n\t\t\t\t\t\n\t\t\t\t\t//Get the new host and port for the remote object\n\t\t\t\t\tnewHost = proxy.getServerListenAddress().getHostAddress();\n\t\t\t\t\tnewPort = proxy.getServerListenPort();\n\t\t\t\t\t\n\t\t\t\t\t//Work out the new block length\n\t\t\t\t\tblockLen = blockLen + (newHost.length() - hostName.length());\n\t\t\t\t\t\n\t\t\t\t\t//Write the updated remote object reference data out\n\t\t\t\t\toutData.write((byte)blockLen);\t\t\t\t\t\t\t\t//Updated TC_BLOCKDATA length\n\t\t\t\t\toutData.write((byte)((refType.length() & 0xff00) >> 8));\t//Length of reference type string\n\t\t\t\t\toutData.write((byte)(refType.length() & 0xff));\t\t\t\t//Length of reference type string\n\t\t\t\t\toutData.write(refType.getBytes());\t\t\t\t\t\t\t//The reference type string\n\t\t\t\t\tif(refType.equals(\"UnicastRef2\")) {\n\t\t\t\t\t\toutData.write(dataBytes[i + 15]);\t\t\t\t\t\t//The byte between \"UnicastRef2\" and the length of the host name\n\t\t\t\t\t}\n\t\t\t\t\toutData.write((byte)((newHost.length() & 0xff00) >> 8));\t//Length of new host name string\n\t\t\t\t\toutData.write((byte)(newHost.length() & 0xff));\t\t\t\t//Length of new host name string\n\t\t\t\t\toutData.write(newHost.getBytes());\t\t\t\t\t\t\t//New host name string\n\t\t\t\t\toutData.write((byte)((newPort & 0xff000000) >> 24));\t\t//New port\n\t\t\t\t\toutData.write((byte)((newPort & 0xff0000) >> 16));\t\t//New port\n\t\t\t\t\toutData.write((byte)((newPort & 0xff00) >> 8));\t\t//New port\n\t\t\t\t\toutData.write((byte) (newPort & 0xff));\t\t\t\t//New port\n\t\t\t\t\t\n\t\t\t\t\t//Update i to skip over the data that has just been replaced\n\t\t\t\t\ti = i + hostName.length() + 19;\n\t\t\t\t\tif(refType.equals(\"UnicastRef2\")) {\n\t\t\t\t\t\ti = i + 2;\n\t\t\t\t\t}\n\t\t\t\t} catch(Exception ex) {\n\t\t\t\t\t//Print exception details\n\t\t\t\t\tSystem.out.println(\"[-] An exception occurred whilst starting an RMI method call proxy.\\n\\t\" + ex.toString());\n\t\t\t\t}\n\t\t\t} catch(IndexOutOfBoundsException ex) {\n\t\t\t\t//Out of bound access, probably not a remote object reference, continue\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Return the new data stream\n\t\treturn outData;\n\t}", "title": "" }, { "docid": "03f6350ca5bc1c1efb89dda2b01a54d1", "score": "0.4667516", "text": "protected void sendResponseTail() {\n\n\t\tsend(\" </value>\" + \"\\n </data>\" + \"\\n </response>\" + \"\\n</p2ml>\");\n\t}", "title": "" }, { "docid": "54b7fbff9f05e67db04bd805d39a92e0", "score": "0.46645", "text": "public interface UndertowHttpBinding {\n\n Message toCamelMessage(HttpServerExchange httpExchange, Exchange exchange) throws Exception;\n\n Message toCamelMessage(ClientExchange clientExchange, Exchange exchange) throws Exception;\n\n void populateCamelHeaders(HttpServerExchange httpExchange, Map<String, Object> headerMap, Exchange exchange)\n throws Exception;\n\n void populateCamelHeaders(ClientResponse response, Map<String, Object> headerMap, Exchange exchange) throws Exception;\n\n Object toHttpResponse(HttpServerExchange httpExchange, Message message) throws IOException;\n\n Object toHttpRequest(ClientRequest clientRequest, Message message);\n\n void setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy);\n\n void setTransferException(Boolean transferException);\n\n void setMuteException(Boolean muteException);\n\n}", "title": "" }, { "docid": "5cea7fa6750840f47ee3af739b3395d7", "score": "0.4662508", "text": "void interceptRestResponse(ArtifactoryResponse response, String path) throws IOException;", "title": "" }, { "docid": "fe1b9ee3cbbf8436ba97fcf874e90168", "score": "0.46597025", "text": "Object sendProxy(Proxy proxy) throws ClassNotFoundException;", "title": "" }, { "docid": "c4dddba10a639aca4b64a4657ba62f3e", "score": "0.46580744", "text": "public static void byteBuddyNetty() {\n\t\tSystem.out.println(\"============ byteBuddy + Netty + json 方式 ==============start\");\n\t\tRpcfxClient client = new RpcfxClientByteBuddy(new NettyClientConnector());\n\t\t\n\t\tUserService userService = client.create(UserService.class, \"http://localhost:8889/\");\n\t\tUser user = userService.findById(1);\n\t\tSystem.out.println(\"find user id=1 from server: \" + user.getName());\n\t\tSystem.out.println(\"============ byteBuddy + Netty + json 方式 ==============end\");\n\t}", "title": "" }, { "docid": "e759302d9d866567730c8cf460bcab52", "score": "0.46450898", "text": "@Test\n \tpublic void testProxy() throws Exception {\n \t\tAgentHost factory = AgentHost.getInstance();\n \t\tFileStateFactory stateFactory = new FileStateFactory(\".eveagents\");\n \t\tfactory.setStateFactory(stateFactory);\n \t\t\n \t\t@SuppressWarnings(\"unused\")\n \t\tTestAgent agent = factory.createAgent(TestAgent.class, \"TestAgent\");\n \t\t\n \t\t//generate sync proxy from TestInterface\n \t\tTestInterface proxy = factory.createAgentProxy(null, URI.create(\"local:TestAgent\"), TestInterface.class);\n \t\tassertEquals(\"Hello world, you said: nice weather, isn't it?\",proxy.helloWorld(\"nice weather, isn't it?\"));\n \t\tassertEquals(15,proxy.testPrimitive(5,10));\n \t\tproxy.testVoid();\n \n \t\t\n \t\tMap<String, List<Person>> result = proxy.complexResult();\n \t\tassertEquals(\"Ludo\", result.get(\"result\").get(0).getName());\n \t\t\n \t\t//Generate asyncproxy from TestInterface\n \t\tAsyncProxy<TestInterface> aProxy = factory.createAsyncAgentProxy(null,URI.create(\"local://TestAgent\"), TestInterface.class);\n \t\tFuture<?> res = aProxy.call(\"helloWorld\",\"hi\");\n \t\tassertEquals(\"Hello world, you said: hi\",res.get());\n \t\tFuture<?> voidRes = aProxy.call(\"testVoid\");\n \t\tvoidRes.get();\n \t\t\n \t\tFuture<?> intRes = aProxy.call(\"testPrimitive\",5,10);\n \t\tassertEquals(new Integer(15),intRes.get());\n \t\t\n /*\t\tlong delay=10000;\n \t\t\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\tThread.sleep(delay);\n \t\t\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\tThread.sleep(delay);\n \t\t\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\tThread.sleep(delay);\n \t\t\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\tThread.sleep(delay);\n \t\t\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\taProxy = factory.createAsyncAgentProxy(null,\"local:TestAgent\", TestInterface.class);\n \t\tThread.sleep(delay);\n */\t\t\n \t}", "title": "" }, { "docid": "c2b38fa1c6bb7cfeee0ae8ab844c436c", "score": "0.46446344", "text": "@Override\n public void channelRead0(ChannelHandlerContext ctx, HttpObject in) {\n responseParts.offer(ReferenceCountUtil.retain(in));\n if (in instanceof HttpResponse && in.decoderResult().isSuccess()) {\n isKeepAlive = HttpUtil.isKeepAlive((HttpResponse) in);\n } else if (in.decoderResult().isFailure()) {\n Throwable cause = in.decoderResult().cause();\n if (cause instanceof Exception) {\n exception = (Exception) cause;\n } else {\n exception =\n new Exception(\"Encountered Throwable when trying to decode response. Message: \" + cause.getMessage());\n }\n invokeFutureAndCallback(\"CommunicationHandler::channelRead0 - decoder failure\");\n }\n if (in instanceof LastHttpContent) {\n if (isKeepAlive) {\n invokeFutureAndCallback(\"CommunicationHandler::channelRead0 - last content\");\n } else {\n // if not, the future will be invoked when the channel is closed.\n ctx.close();\n }\n }\n }", "title": "" }, { "docid": "eff9fd340fe3f174c35861b91e7c7c50", "score": "0.46433794", "text": "public Proxy getProxy();", "title": "" }, { "docid": "dbbbfb27b11c4a15a752643309852ad0", "score": "0.46426827", "text": "@Override\n\t\t\tpublic void configure() throws Exception { \n\t\t\t\tfrom(\"direct:start\").routeId(\"postcaller\") \n\t\t .process(\n\t\t exchange -> exchange.getIn().setBody(\n\t\t new Record(\"34\")))\n\t\t .marshal(format) //convert it to JSON\n\t\t .setHeader(Exchange.HTTP_METHOD, constant(\"POST\"))\n\t\t .setHeader(Exchange.CONTENT_TYPE, constant(\"application/json\"))\n\t\t .to(\"http://localhost:8080/postRecords\")\n\t\t .unmarshal(listFormat)\n\t\t .process(postProcessor)\n\t\t .log(\"${body} from invoke POST\");\n\t\t\t//\t .to(\"seda:end\");\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a8191f97b77a779108a44f7a716578c7", "score": "0.46386388", "text": "SocksProxy setProxySocket(Socket socket);", "title": "" }, { "docid": "16be239854458b5834da0fd2b799c330", "score": "0.46344495", "text": "public interface Proxy {\n /**\n * 传入一个proxyChain, 用于执行链式代理操作\n * 将多个代理通过一条链子串起来,一个个的去执行,执行顺序取决于添加到链上的先后顺序\n * @param proxyChain\n * @return\n * @throws Throwable\n */\n Object doProxy(ProxyChain proxyChain) throws Throwable;\n}", "title": "" }, { "docid": "107f3fd13ec799c067206fa822c5a55b", "score": "0.4632314", "text": "public static void main(String[] args) throws UnknownHostException, IOException {\n\t\tString ip = \"114.70.235.43\";\n\t\tint port = 40523;\n\t\t\n\t\t// JSON Message\n\t\tJSONObject message = new JSONObject();\n\t\t//message.put(\"message\", \"new-src\");\n\t\tmessage.put(\"user-id\", \"sbpark@kangwon.ac.kr\");\n\t\tmessage.put(\"plan-name\", \"plan_sb\");\n\t\t\n\t\tSocket socket = null;\n\t\tOutputStream os = null;\n\t\tOutputStreamWriter osw = null;\n\t\tBufferedWriter bw = null;\n\t\t\n\t\tsocket = new Socket(ip, port);\n\t\tos = socket.getOutputStream();\n\t\tosw = new OutputStreamWriter(os);\n\t\tbw = new BufferedWriter(osw);\n\t\tbw.write(message.toJSONString());\n\t\t\n\t\tbw.close();\n\t\tosw.close();\n\t\tos.close();\n\t\tsocket.close();\t\t\n\t}", "title": "" }, { "docid": "f2d37d7406cddf97330833b9a12e85ba", "score": "0.46303153", "text": "@MediumTest\n public void testHttpChunkedRequest() throws Exception {\n String uri = createTestResourceUri(\"ga_asimov_it_proxy4\");\n PrepareResourceUtil.prepareResource(uri, false);\n\n checkMiss(createRequest().setUri(uri).setMethod(\"POST\").setBody(\"simple_chunked_request\").setChunkSize(4).getRequest(), 1);\n }", "title": "" }, { "docid": "1b8b167422e7302a5496a997915ef144", "score": "0.46296695", "text": "public interface PortForwardingService extends RestService {\n /**\n * Returns list of floating IP port forwarding.\n *\n * @param floatingIpId the floating ip identifier\n * @return List of port forwarding\n */\n List<? extends PortForwarding> list(String floatingIpId);\n\n /**\n * Returns list of floating IP port forwarding filtered by parameters.\n *\n * @param floatingIpId the floating ip identifier\n * @param filteringParams map (name, value) of filtering parameters\n * @return list of floating IP port forwarding\n */\n List<? extends PortForwarding> list(String floatingIpId, Map<String, String> filteringParams);\n\n /**\n * Gets a floating IP port forwarding by id.\n *\n * @param floatingIpId the floating ip identifier\n * @param id the port_forwarding identifier\n * @return a floating IP port forwarding\n */\n PortForwarding get(String floatingIpId, String id);\n\n /**\n * Deletes floating IP port forwarding by id.\n *\n * @param floatingIpId the floating ip identifier\n * @param id id the port forwarding identifier\n * @return the action response\n */\n ActionResponse delete(String floatingIpId, String id);\n\n\n /**\n * Creates a floating IP port forwarding\n *\n * @param floatingIpId the floating ip identifier\n * @param portForwarding the floating IP port forwarding\n * @return the floating IP port forwarding\n */\n PortForwarding create(String floatingIpId, PortForwarding portForwarding);\n}", "title": "" }, { "docid": "4f266f1a2bf24ebde0ab05990df181af", "score": "0.46244586", "text": "@Override\n\tprotected String getRequestUri() {\n\t\tinvokeSinkInit();\n\n\t\t// The downstream task returns the next sequence number.\n\t\tlong requestSequenceNumber = replicationState.getSequenceNumber();\n\n\t\treturn pathPrefix + \"/replicationData/\" + requestSequenceNumber + \"/tail\";\n\t}", "title": "" }, { "docid": "b8f9cbc0c4c3c01da36dc3e069b06153", "score": "0.4620897", "text": "public void customize(ConfigurableServletWebServerFactory factory) {\n \tInetAddress address = null;\n \tif (reverseProxyConfig != null && reverseProxyConfig.getListen() != null && reverseProxyConfig.getListen().getAddress() != null) {\n \t\ttry {\n \t\taddress = InetAddress.getByName(reverseProxyConfig.getListen().getAddress());\n \t\t} catch (UnknownHostException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\taddress = null; \n\t\t\t\tSystem.err.println(\"could not parse interface address!\");\n\t\t\t}\n \t}\n \tif (address != null) {\n \tfactory.setAddress(address);\n \t}\n\n \t\n \tint port = 8080;\n \tif (reverseProxyConfig != null && reverseProxyConfig.getListen() != null && reverseProxyConfig.getListen().getPort() != null) {\n \t\tport = reverseProxyConfig.getListen().getPort().intValue();\n \t} else {\n\t\t\tSystem.err.println(\"could not parse interface port, using default port 8080\");\n \t}\n \tfactory.setPort(port);\n \t\n \tfactory.setContextPath(\"\");\n\t}", "title": "" }, { "docid": "6624ca458e718250dcf2ddba7d97fa5b", "score": "0.46163198", "text": "public static void main(String[] args) throws ServletException {\n\n RoutingHandler webRouter = Handlers.routing();\n webRouter.get(\"/\", exchange -> {\n //不要在这里写阻塞代码\n exchange.getResponseSender().send(\"Hello World\");//send(data, IoCallback.END_EXCHANGE);\n });\n webRouter.get(\"/nonsend\", exchange -> {\n System.out.println(\"会自动关闭\");\n });\n\n webRouter.post(\"/form\", exchange -> {\n //这里使用了封装好的FormDataHandler,省略下面代码\n /* FormParserFactory.Builder builder = FormParserFactory.builder();\n FormDataParser parser = builder.build().createParser(exchange);\n FormData formData = parser.parseBlocking();\n exchange.getResponseSender().send(formData.toString());*/\n\n FormData formData = exchange.getAttachment(FormDataParser.FORM_DATA);\n exchange.getResponseSender().send(formData.toString());\n });\n\n webRouter.get(\"/send\", exchange -> {\n exchange.getResponseSender().send(\"send 1\", new IoCallback() {\n @Override\n public void onComplete(HttpServerExchange exchange, Sender sender) {\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n Thread.interrupted();\n }\n sender.send(\"send 2\");\n }\n\n @Override\n public void onException(HttpServerExchange exchange, Sender sender, IOException exception) {\n\n }\n });\n });\n\n //metrics\n webRouter.get(\"/metrics\", exchange -> {\n Thread.sleep(3000);\n exchange.getResponseSender().send(\"Hello Metrics\");\n });\n\n //同步\n webRouter.post(\"upload\", new BlockingHandler(exchange -> {\n FormParserFactory.Builder builder = FormParserFactory.builder();\n builder.setDefaultCharset(\"UTF-8\");//默认ISO8859-1会导致文件名乱码问题\n FormDataParser parser = builder.build().createParser(exchange);\n FormData formData = parser.parseBlocking();\n parser.parse(exchange1 -> {\n });\n FormData.FormValue file = formData.getFirst(\"file\");\n System.out.println(Thread.currentThread().getName());\n System.out.println(file.getFileName());\n exchange.getResponseSender().send(file.getFileName());\n }));\n //异步,Undertow的异步处理结果是放在附件中的,可以通过exchange.getAttachment()获得结果\n webRouter.post(\"upload2\", exchange -> {\n FormParserFactory.Builder builder = FormParserFactory.builder();\n builder.setDefaultCharset(\"UTF-8\");//默认ISO8859-1会导致文件名乱码问题\n FormDataParser parser = builder.build().createParser(exchange);\n parser.parse(exchange1 -> {\n FormData formData = exchange.getAttachment(FormDataParser.FORM_DATA);\n FormData.FormValue file = formData.getFirst(\"file\");\n System.out.println(Thread.currentThread().getName());\n System.out.println(file.getFileName());\n exchange.getResponseSender().send(file.getFileName());\n });\n });\n webRouter.post(\"formdata\", Helper.formParserHandler(exchange -> {\n FormData formData = exchange.getAttachment(FormDataParser.FORM_DATA);\n exchange.getResponseSender().send(formData.toString());\n }));\n //表单提交和文件长传都可以\n webRouter.post(\"formdata2\", exchange -> {\n FormData formData = exchange.getAttachment(FormDataParser.FORM_DATA);\n exchange.getResponseSender().send(formData.toString());\n });\n\n\n //静态资源(jar中) 访问:http://localhost:8080/static/img.jpg\n //ResourceHandler第288行,\n ResourceManager resourceManager = new ClassPathResourceManager(Application.class.getClassLoader());//CachingResourceManager\n webRouter.get(\"/static/*\", Handlers.resource(resourceManager));\n\n//----------------------------------------------REST----------------------------------------------------\n RoutingHandler api = Handlers.routing();\n //User API\n api.post(\"/user\", exchange -> {\n exchange.getResponseSender().send(\"add user\");\n });\n api.delete(\"/user/{id}\", exchange -> {\n exchange.getResponseSender().send(\"update user\");\n });\n api.put(\"/user\", exchange -> {\n exchange.getResponseSender().send(\"update user\");\n });\n //通过getQueryParameters()获取路径变量\n api.get(\"/user/{id}\", exchange -> {\n String id = exchange.getQueryParameters().get(\"id\").peek();\n //path变量是必须的,如果不存在或者数据类型不对应该返回错误吗\n try {\n int userId = Integer.parseInt(id);\n exchange.getResponseSender().send(\"get user by id: \" + userId);\n } catch (NumberFormatException e) {\n exchange.setStatusCode(404);\n }\n });\n //通过PathTemplateMatch获取路径变量\n api.get(\"/{test}/*\", exchange -> {\n PathTemplateMatch pathMatch = exchange.getAttachment(PathTemplateMatch.ATTACHMENT_KEY);\n String itemId1 = pathMatch.getParameters().get(\"test\"); // or exchange.getQueryParameters().get(\"test\")\n String itemId2 = pathMatch.getParameters().get(\"*\"); // or exchange.getQueryParameters().get(\"*\")\n System.out.println(itemId1);\n System.out.println(itemId2);\n exchange.getResponseSender().send(\"itemId1:\" + itemId1 + \" \\nitemId2\" + itemId2);\n });\n //----------------------------------------------Web Socket----------------------------------------------------\n PathHandler wsHandler = Handlers.path();\n wsHandler.addPrefixPath(\"/chat\", Handlers.websocket((exchange, channel) -> {\n channel.getReceiveSetter().set(new AbstractReceiveListener() {\n @Override\n protected void onFullTextMessage(WebSocketChannel channel, BufferedTextMessage message) {\n WebSockets.sendText(message.getData(), channel, null);\n }\n });\n channel.resumeReceives();\n }));\n //http://localhost:8080/api/ws/chatUI/\n wsHandler.addPrefixPath(\"/chatUI\", Handlers.resource(new ClassPathResourceManager(Application.class.getClassLoader())).addWelcomeFiles(\"ws.html\"));\n\n //Undertow匹配上了一个不会继续匹配,需要代码显示传递并调用next handler\n //不用担心\n api.get(\"err\", exchange -> {\n throw new RuntimeException(\"CCF\");\n });\n //HttpHandler链\n HttpHandler webHandler = new MetricsHandler(webRouter);//router是MetricsHandler的next handler\n webHandler = new SimpleErrorPageHandler(webHandler);//错误处理\n webHandler = new FormDataHandler(webHandler);//加上这句之后,就可以自动处理所有formdata了\n Undertow server = Undertow.builder()\n .addHttpListener(8080, \"localhost\")\n .setHandler(Handlers.path()\n .addPrefixPath(\"/\", webHandler)\n .addPrefixPath(\"/api\", api)\n .addPrefixPath(\"/api/ws\", wsHandler)\n )\n .setIoThreads(4)\n .build();\n server.start();\n //http://localhost:8080/\n //http://localhost:8080/api/user/123\n\n// Async.executor = server.getWorker();\n //Worker Thread\n server.getWorker().submit(() -> {\n System.out.println(\"First Task: \" + Thread.currentThread().getName());//First Task: XNIO-1 task-1\n });\n }", "title": "" }, { "docid": "e04f26d3a4fea147e923ee4c89f04920", "score": "0.46153614", "text": "@FeignClient(name = \"netflix-zuul-api-gateway-server\")\n@RibbonClient(name = \"currency-exchange-service\")\n//@FeignClient(name = \"currency-exchange-service\", URL = \"localhost:8000\")\npublic interface CurrencyExchangeProxy {\n\n\t/**\n\t * @RibbonClient\n\t * name: is the name of the target micro-service with which communication is to be done.\n\t * URL : is the URL on which the target micro-service is hosted upon\n\t * \n\t * @FeignClient this Proxy will communicate with ZUUL API Gateway server\n\t * i.e. when the endpoint of CCS is invoked then \n\t * the Routing will happen as follows: \n\t * endUser -> CCS -> ZUUL -> EUREKA -> CES -> CCS -> endUser \n\t */\n\t\n\t\n\t/**\n\t * Below is the copied-pasted method signature from the CES\n\t * Its the rest end-point with which we will be communicating from CCS\n\t */\n\t@GetMapping(value = \"/currency-exchange-service/currency-exchange/from/{from}/to/{to}\")\n\tpublic ExchangeValue retrieveExchangeValue(@PathVariable(\"from\") String from, @PathVariable(\"to\") String to);\n}", "title": "" }, { "docid": "c3fa842cb00127f0e24e0a80662b2298", "score": "0.46145117", "text": "@Override\n public Request authenticateProxy(Proxy proxy, Response response) throws IOException {\n return null;\n }", "title": "" }, { "docid": "69b684bc21513cf8b66873582a1dbc93", "score": "0.461264", "text": "public Response send(Request message) throws IOException;", "title": "" } ]
6c726f40d8327317fe9de59fb68db916
Regex: "+"; that dont work
[ { "docid": "1b4fb531484f2502fc35a21542dc28f3", "score": "0.5274853", "text": "@Test public void test_54() {\n\t\tassertEquals(false, match(\"daveb\", \"bc+\"));\n\t}", "title": "" } ]
[ { "docid": "562c719f418703eaa7036aa0e5c36cfc", "score": "0.5785446", "text": "private NodeAddop parseAddop() throws SyntaxException {\n\t\tif (curr().equals(new Token(\"+\"))) {\n\t\t\tmatch(\"+\");\n\t\t\treturn new NodeAddop(pos(),\"+\");\n\t\t}\n\t\tif (curr().equals(new Token(\"-\"))) {\n\t\t\tmatch(\"-\");\n\t\t\treturn new NodeAddop(pos(),\"-\");\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3f538e3313a46039b1596591fafa5d88", "score": "0.5738773", "text": "private String preprocessInput(String input) {\n Pattern headSignPattern = Pattern.compile(\"^[ \\\\t]*[-+]\");\n if (!headSignPattern.matcher(input).find()) {\n return \"+\" + input;\n } else {\n return input;\n }\n }", "title": "" }, { "docid": "5d6f6cc525b2ed06ef04d1e7e2c3429e", "score": "0.5590341", "text": "private static List<String> parseExp(String exp) {\n exp = exp.replaceAll(\"-{2}\", \"+\");\n exp = exp.replaceAll(\"\\\\+{2,}\", \"+\");\n exp = exp.replaceAll(\"-\\\\+|\\\\+-\", \"-\");\n exp = exp.replaceAll(\" \", \"\");\n\n List<String> result = new ArrayList<>();\n Stack<String> op = new Stack<>();\n StringBuffer number = new StringBuffer();\n char[] chs = exp.toCharArray();\n for (int i = 0; i < chs.length; i++) {\n char ch = chs[i];\n if (Character.isDigit(ch) || ch == '.') {\n number.append(ch);\n } else if (priority(ch) >= -1) {\n\n if (i == 0 && priority(ch) == 1) {\n result.add(\"0\");\n }\n\n if (number.length() > 0) {\n result.add((op.size() > 0 ? op.pop() : \"\") + number.toString());\n number.delete(0, number.length());\n }\n // insert * when previous of '(' is ')' or is non operator\n if (i > 0) {\n // convert to negative number when '-' is after (, [, *, /, ^\n if (ch == '-' && (priority(chs[i - 1]) >= 2 || priority(chs[i - 1]) == -1)) {\n op.push(\"-\");\n continue;\n }\n\n // remove '+' when '+' is after (, [, *, /, ^\n if (ch == '+' && (priority(chs[i - 1]) >= 2 || priority(chs[i - 1]) == -1)) {\n continue;\n }\n\n\n if (priority(ch) == -1\n && (priority(chs[i - 1]) == 0 || priority(chs[i - 1]) < -1)\n ) {\n result.add(\"*\");\n }\n }\n\n result.add(ch + \"\");\n // insert * when after of ')' is '('\n if (i < chs.length - 1) {\n if (priority(ch) == 0 && priority(chs[i + 1]) < -1) {\n result.add(\"*\");\n }\n\n }\n } else {\n throw new IllegalArgumentException(\"Invalid Input\");\n }\n }\n if (number.length() > 0)\n result.add((op.size() > 0 ? op.pop() : \"\") + number.toString());\n\n return result;\n }", "title": "" }, { "docid": "94b7f88db5363eea2e071741748c7b20", "score": "0.55857044", "text": "public static String plusOut(String str, String word) {\n if (word.length() == 0) {\n return \"\";\n }\n String newStr = \"\";\n for (int i = 0; i < str.length() - 1; i++) {\n if (str.substring(i, word.length() + i).equals(word)) {\n newStr += word;\n } else {\n newStr += \"+\";\n }\n }\n return newStr;\n }", "title": "" }, { "docid": "41be31b66aa5a33978b1e98af584b140", "score": "0.5576752", "text": "public static String appendPlus(final String expression) {\n return ((expression.charAt(0) == '+') || (expression.charAt(0) == '-'))\n ? expression\n : '+' + expression;\n }", "title": "" }, { "docid": "fcc2c30fbbc2f50d6040a5b3c39c966b", "score": "0.55694544", "text": "private Collection<String> getTestParse0FillingTriggerSlotExplicitlyWithPlusSignPatterns() {\n\t\tCollection<String> patterns = new ArrayList<String>();\n\t\tpatterns.add(\"{activation-keyword} := activated;\");\n\t\tpatterns.add(\"{c-activate} := [trigger +activation-keyword];\"); // note the \"+\" sign\n\t\treturn patterns;\n\t}", "title": "" }, { "docid": "896f3af7813bbf1d8e57712d91467ec4", "score": "0.55503947", "text": "private Expr addition() {\n return leftAssociativeBinary(Parser::multiplication, MINUS, PLUS);\n }", "title": "" }, { "docid": "8147c4dbfe76d47ea7d7788c72e86940", "score": "0.5455663", "text": "public static String removeFirstPlus(final String expression) {\n return (expression.charAt(0) == '+')\n ? StringConverter.removeCharAt(expression, 0)\n : expression;\n }", "title": "" }, { "docid": "2fc938bd02d666468c80c98ff7caa1d7", "score": "0.54470944", "text": "public static TA_Line_Char plus(){\r\n\t\treturn TA_Line_Char.create('+', \"line using plus character '+'\");\r\n\t}", "title": "" }, { "docid": "1f723b09f7b013b4aa6213f9b2732e86", "score": "0.54392445", "text": "private static String CalcAdd(String sFormule) \n\t{\n\t\t\n\t\tdouble dDeel1;\n\t\tdouble dDeel2;\n\t\tdouble dUitkomst;\n\t\t\n\t\t// Splits de formule uit in twee delen\n\t\t\tint iPositie=sFormule.indexOf(\"+\");\n\t\t\tString sDeel1=sFormule.substring(0, iPositie);\n\t\t\tString sDeel2=sFormule.substring( iPositie+1,sFormule.length());\n\n\n\t\t// Bereken nu de twee delen numeriek\n\t\t\tdDeel1=Double.parseDouble(sDeel1);\n\t\t\tdDeel2=Double.parseDouble(sDeel2);\n\t\t\tdUitkomst=dDeel1+dDeel2;\n\t\t\n\t\t// Maak van de numerieke waarde een String\n\t\tString sUitkomst=Double.toString(dUitkomst);\n\t\t\n\t\t// Geef de waarde terug\n\t\treturn sUitkomst;\n\t}", "title": "" }, { "docid": "e7ecf2340cdd4ba84282697ccacb4e96", "score": "0.5391832", "text": "private static String cleanExpr(String expr) {\n return expr.replaceAll(\"[^\\\\*\\\\+\\\\-\\\\d/\\\\s\\\\.]\", \"\");\n }", "title": "" }, { "docid": "50c09368aeb695101bd755b20afe65b4", "score": "0.5386996", "text": "public void visit(PlusExpression n);", "title": "" }, { "docid": "ebb6c2f7e16a2637bd6146ac55b33c8a", "score": "0.5350111", "text": "public static String removeExtraSigns(final String expression) {\n String result = expression.replaceAll(\"\\\\+\\\\-\", \"-\")\n .replaceAll(\"\\\\-\\\\+\", \"-\").replaceAll(\"\\\\-\\\\-\", \"+\").replaceAll(\"\\\\+\\\\+\", \"+\");\n\n return result.equals(expression) ? result : removeExtraSigns(result);\n }", "title": "" }, { "docid": "2ea17105332656785db1582e09ab9e03", "score": "0.5308403", "text": "public final void rule__AddExpr__OpAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalGame.g:931:1: ( ( '+' ) | ( '-' ) )\n int alt7=2;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0==16) ) {\n alt7=1;\n }\n else if ( (LA7_0==17) ) {\n alt7=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 7, 0, input);\n\n throw nvae;\n }\n switch (alt7) {\n case 1 :\n // InternalGame.g:932:2: ( '+' )\n {\n // InternalGame.g:932:2: ( '+' )\n // InternalGame.g:933:3: '+'\n {\n before(grammarAccess.getAddExprAccess().getOpPlusSignKeyword_1_1_0_0()); \n match(input,16,FOLLOW_2); \n after(grammarAccess.getAddExprAccess().getOpPlusSignKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // InternalGame.g:938:2: ( '-' )\n {\n // InternalGame.g:938:2: ( '-' )\n // InternalGame.g:939:3: '-'\n {\n before(grammarAccess.getAddExprAccess().getOpHyphenMinusKeyword_1_1_0_1()); \n match(input,17,FOLLOW_2); \n after(grammarAccess.getAddExprAccess().getOpHyphenMinusKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4ae89d530027de6509344764da3ee8bf", "score": "0.5258993", "text": "public final void rule__AdditiveOperator__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2449:1: ( ( ( '+' ) ) | ( ( '-' ) ) )\r\n int alt19=2;\r\n int LA19_0 = input.LA(1);\r\n\r\n if ( (LA19_0==31) ) {\r\n alt19=1;\r\n }\r\n else if ( (LA19_0==32) ) {\r\n alt19=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 19, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt19) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2450:1: ( ( '+' ) )\r\n {\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2450:1: ( ( '+' ) )\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2451:1: ( '+' )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getAdditiveOperatorAccess().getPlusEnumLiteralDeclaration_0()); \r\n }\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2452:1: ( '+' )\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2452:3: '+'\r\n {\r\n match(input,31,FOLLOW_31_in_rule__AdditiveOperator__Alternatives5296); if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getAdditiveOperatorAccess().getPlusEnumLiteralDeclaration_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2457:6: ( ( '-' ) )\r\n {\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2457:6: ( ( '-' ) )\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2458:1: ( '-' )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getAdditiveOperatorAccess().getMinusEnumLiteralDeclaration_1()); \r\n }\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2459:1: ( '-' )\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2459:3: '-'\r\n {\r\n match(input,32,FOLLOW_32_in_rule__AdditiveOperator__Alternatives5317); if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getAdditiveOperatorAccess().getMinusEnumLiteralDeclaration_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "bd99ea9e412875081e7681993252de12", "score": "0.5255248", "text": "private static boolean isAllNumericsWithSign(final String text) {\r\n\t\t\tboolean flag = true;\r\n\t\t\tfinal Pattern p = Pattern.compile(\"(-|\\\\+)?\\\\d+\");\r\n\t\t\tfinal Matcher m = p.matcher(text);\r\n\t\t\tif (m.matches()) {\r\n\t\t\t\tflag = true;\r\n\t\t\t} else {\r\n\t\t\t\tflag = false;\r\n\t\t\t}\r\n\r\n\t\t\treturn flag;\r\n\t\t}", "title": "" }, { "docid": "897f63e673fc8206c2a9cfb26d9aa418", "score": "0.52366006", "text": "private static String purify(String in) {\n String str = in;\n\n str = str.replace(\")(\", \")*(\");\n str = str.replace(\"++\", \"+\");\n str = str.replace(\"--\", \"+\");\n str = str.replace(\"+-\", \"-\");\n str = str.replace(\"-+\", \"-\");\n str = str.replace(\"//\", \"*\");\n str = str.replace(\"**\", \"^\");\n str = str.replace(\"()\", \"(0)\");\n\n if (str.contains(\"/-\") || str.contains(\"/+\") || str.contains(\"-/\") || str.contains(\"+/\") || str.contains(\"*+\")\n || str.contains(\"*-\") || str.contains(\"/*\") || str.contains(\"*/\")) {\n throw new NumberFormatException();\n }\n\n return str;\n }", "title": "" }, { "docid": "23f4b96fe96bb5f21ac007c575f3f84e", "score": "0.52103364", "text": "public final void rule__AdditiveOperator__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2527:1: ( ( ( '+' ) ) | ( ( '-' ) ) )\n int alt20=2;\n int LA20_0 = input.LA(1);\n\n if ( (LA20_0==34) ) {\n alt20=1;\n }\n else if ( (LA20_0==35) ) {\n alt20=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 20, 0, input);\n\n throw nvae;\n }\n switch (alt20) {\n case 1 :\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2528:1: ( ( '+' ) )\n {\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2528:1: ( ( '+' ) )\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2529:1: ( '+' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAdditiveOperatorAccess().getPlusEnumLiteralDeclaration_0()); \n }\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2530:1: ( '+' )\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2530:3: '+'\n {\n match(input,34,FOLLOW_34_in_rule__AdditiveOperator__Alternatives5451); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAdditiveOperatorAccess().getPlusEnumLiteralDeclaration_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2535:6: ( ( '-' ) )\n {\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2535:6: ( ( '-' ) )\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2536:1: ( '-' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getAdditiveOperatorAccess().getMinusEnumLiteralDeclaration_1()); \n }\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2537:1: ( '-' )\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2537:3: '-'\n {\n match(input,35,FOLLOW_35_in_rule__AdditiveOperator__Alternatives5472); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getAdditiveOperatorAccess().getMinusEnumLiteralDeclaration_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "928c46bba81a886ebe1069cf42072900", "score": "0.5190675", "text": "public final void rule__OpAdd__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2408:1: ( ( '+' ) | ( '-' ) )\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0==29) ) {\n alt13=1;\n }\n else if ( (LA13_0==30) ) {\n alt13=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 13, 0, input);\n\n throw nvae;\n }\n switch (alt13) {\n case 1 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2409:1: ( '+' )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2409:1: ( '+' )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2410:1: '+'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); \n }\n match(input,29,FOLLOW_29_in_rule__OpAdd__Alternatives5129); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2417:6: ( '-' )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2417:6: ( '-' )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2418:1: '-'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); \n }\n match(input,30,FOLLOW_30_in_rule__OpAdd__Alternatives5149); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "386ce226059eef7916eb6c88f09b3107", "score": "0.51757103", "text": "@Test(expected = Exception.class)\n\tpublic void stringCalcAddFailTest() throws Exception {\n\t\tStringCalculator.add(\"1,3,-4\");\n\t}", "title": "" }, { "docid": "227915cdf70fd73d3d2cfded78df047f", "score": "0.5162387", "text": "@Override\n public void caseAAddExpr(AAddExpr node) {\n this.inAAddExpr(node);\n\n addLeftParen();\n\n if (node.getLeft() != null) {\n normalizeExpr(node.getLeft());\n }\n\n buffer.append(\" + \");\n\n if (node.getRight() != null) {\n normalizeExpr(node.getRight());\n }\n\n addRightParen();\n\n this.outAAddExpr(node);\n }", "title": "" }, { "docid": "7b9ebcccb2dfe01a29f8b3c43b674529", "score": "0.5160924", "text": "@Test\n public void delimiterOfAnyLength(){\n String numbers = \"//[*****]\\n1*****2*****3\";\n Assert.assertEquals(6,stringCalculator.Add(numbers));\n }", "title": "" }, { "docid": "3e9b4f857cb2ccdac05bbd286bbe794a", "score": "0.51423764", "text": "@Test public void test_51() {\n\t\tassertEquals(true, match(\"davebc\", \"bc+\"));\n\t}", "title": "" }, { "docid": "25102fa7a01e3991602875b6097801a4", "score": "0.51390374", "text": "public final void mRULE_PLUS() throws RecognitionException {\n try {\n int _type = RULE_PLUS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../at.caks.eglipse.lang.glsl/src-gen/at/caks/eglipse/lang/glsl/parser/antlr/internal/InternalGlsl.g:3788:11: ( '+' )\n // ../at.caks.eglipse.lang.glsl/src-gen/at/caks/eglipse/lang/glsl/parser/antlr/internal/InternalGlsl.g:3788:13: '+'\n {\n match('+'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "a18780f956e4cf1301e58c036076f13f", "score": "0.51290673", "text": "public boolean isPlus() {\n\t\treturn type == 3;\n\t}", "title": "" }, { "docid": "e62d7cbfd81fa43cd7ec3e91feb3fb3f", "score": "0.5120238", "text": "public final void rule__UnaryOperator__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2504:1: ( ( ( '+' ) ) | ( ( '-' ) ) | ( ( '~' ) ) )\r\n int alt21=3;\r\n switch ( input.LA(1) ) {\r\n case 31:\r\n {\r\n alt21=1;\r\n }\r\n break;\r\n case 32:\r\n {\r\n alt21=2;\r\n }\r\n break;\r\n case 36:\r\n {\r\n alt21=3;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 21, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt21) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2505:1: ( ( '+' ) )\r\n {\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2505:1: ( ( '+' ) )\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2506:1: ( '+' )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getUnaryOperatorAccess().getPositiveEnumLiteralDeclaration_0()); \r\n }\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2507:1: ( '+' )\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2507:3: '+'\r\n {\r\n match(input,31,FOLLOW_31_in_rule__UnaryOperator__Alternatives5431); if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getUnaryOperatorAccess().getPositiveEnumLiteralDeclaration_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2512:6: ( ( '-' ) )\r\n {\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2512:6: ( ( '-' ) )\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2513:1: ( '-' )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getUnaryOperatorAccess().getNegativeEnumLiteralDeclaration_1()); \r\n }\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2514:1: ( '-' )\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2514:3: '-'\r\n {\r\n match(input,32,FOLLOW_32_in_rule__UnaryOperator__Alternatives5452); if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getUnaryOperatorAccess().getNegativeEnumLiteralDeclaration_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2519:6: ( ( '~' ) )\r\n {\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2519:6: ( ( '~' ) )\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2520:1: ( '~' )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getUnaryOperatorAccess().getComplementEnumLiteralDeclaration_2()); \r\n }\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2521:1: ( '~' )\r\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2521:3: '~'\r\n {\r\n match(input,36,FOLLOW_36_in_rule__UnaryOperator__Alternatives5473); if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getUnaryOperatorAccess().getComplementEnumLiteralDeclaration_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "3b4b83a488cf31c5942ff51fa4f17e0e", "score": "0.5110878", "text": "private static String cleanExpr(String expr){\n\t\treturn expr.replaceAll(\"[^\\\\×\\\\÷\\\\+\\\\-\\\\d/\\\\s]\", \"\");\n\t}", "title": "" }, { "docid": "df2edeaec45babaa9ba8583ec3fa5600", "score": "0.50977546", "text": "@FailureIsAnOption\n public final void testRegexpFollowingPreincrement() {\n JsLexer lexer = createLexer(\"x = ++/x/m\", false);\n assertNext(lexer, JsTokenType.WORD, \"x\");\n assertNext(lexer, JsTokenType.PUNCTUATION, \"=\");\n assertNext(lexer, JsTokenType.PUNCTUATION, \"++\");\n assertNext(lexer, JsTokenType.REGEXP, \"/x/m\");\n assertEmpty(lexer);\n }", "title": "" }, { "docid": "74a4924b5efb0f6f75bbf3751dc6f2b5", "score": "0.50965476", "text": "AstNode add() throws ParserException {\n return leftRecursiveImpl(this::multi, Token.Type.Plus, Token.Type.Minus);\n }", "title": "" }, { "docid": "54fec581e9e93fb1b550196c319ee8cf", "score": "0.5081966", "text": "public final void rule__PlusExpr__OpAlternatives_1_0_0_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalACLParser.g:1848:1: ( ( PlusSign ) | ( HyphenMinus ) )\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( (LA8_0==PlusSign) ) {\n alt8=1;\n }\n else if ( (LA8_0==HyphenMinus) ) {\n alt8=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 8, 0, input);\n\n throw nvae;\n }\n switch (alt8) {\n case 1 :\n // InternalACLParser.g:1849:1: ( PlusSign )\n {\n // InternalACLParser.g:1849:1: ( PlusSign )\n // InternalACLParser.g:1850:1: PlusSign\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPlusExprAccess().getOpPlusSignKeyword_1_0_0_1_0_0()); \n }\n match(input,PlusSign,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPlusExprAccess().getOpPlusSignKeyword_1_0_0_1_0_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalACLParser.g:1857:6: ( HyphenMinus )\n {\n // InternalACLParser.g:1857:6: ( HyphenMinus )\n // InternalACLParser.g:1858:1: HyphenMinus\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPlusExprAccess().getOpHyphenMinusKeyword_1_0_0_1_0_1()); \n }\n match(input,HyphenMinus,FollowSets000.FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPlusExprAccess().getOpHyphenMinusKeyword_1_0_0_1_0_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4d82fc90a3810c379b95d9a2ca5c1fbd", "score": "0.5055923", "text": "private static boolean ContainsMath(String sFormule)\n\t{\n\t\tif (sFormule.contains(\"*\") || sFormule.contains(\"/\") || sFormule.contains(\"+\") || sFormule.indexOf(\"-\")>0)\n\t\t\t{return true;}\n\t\telse\n\t\t\t{return false;}\t\t\n\t}", "title": "" }, { "docid": "237040dd270c6bdf1d72194789cade33", "score": "0.505252", "text": "@org.junit.Test\n public void fnReplace15() {\n final XQuery query = new XQuery(\n \"fn:replace(\\\"abracadabra+abracadabra\\\", \\\"\\\\+\\\", \\\"with\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"abracadabrawithabracadabra\")\n );\n }", "title": "" }, { "docid": "af4975ac90ea6f0ef939d41cd49784ce", "score": "0.5048268", "text": "@Test\n public void anySizeOfMultipleDelimiterTest(){\n String numbers = \"//[***][%%]\\n1***2%%3\";\n Assert.assertEquals(6,stringCalculator.Add(numbers));\n }", "title": "" }, { "docid": "02a453b3ef7350443dcd329090d7cbf6", "score": "0.5047466", "text": "public final void rule__UnaryOperator__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2582:1: ( ( ( '+' ) ) | ( ( '-' ) ) | ( ( '~' ) ) )\n int alt22=3;\n switch ( input.LA(1) ) {\n case 34:\n {\n alt22=1;\n }\n break;\n case 35:\n {\n alt22=2;\n }\n break;\n case 39:\n {\n alt22=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 22, 0, input);\n\n throw nvae;\n }\n\n switch (alt22) {\n case 1 :\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2583:1: ( ( '+' ) )\n {\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2583:1: ( ( '+' ) )\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2584:1: ( '+' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryOperatorAccess().getPositiveEnumLiteralDeclaration_0()); \n }\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2585:1: ( '+' )\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2585:3: '+'\n {\n match(input,34,FOLLOW_34_in_rule__UnaryOperator__Alternatives5586); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryOperatorAccess().getPositiveEnumLiteralDeclaration_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2590:6: ( ( '-' ) )\n {\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2590:6: ( ( '-' ) )\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2591:1: ( '-' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryOperatorAccess().getNegativeEnumLiteralDeclaration_1()); \n }\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2592:1: ( '-' )\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2592:3: '-'\n {\n match(input,35,FOLLOW_35_in_rule__UnaryOperator__Alternatives5607); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryOperatorAccess().getNegativeEnumLiteralDeclaration_1()); \n }\n\n }\n\n\n }\n break;\n case 3 :\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2597:6: ( ( '~' ) )\n {\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2597:6: ( ( '~' ) )\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2598:1: ( '~' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryOperatorAccess().getComplementEnumLiteralDeclaration_2()); \n }\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2599:1: ( '~' )\n // ../org.yakindu.sct.model.stext.ui/src-gen/org/yakindu/sct/model/stext/ui/contentassist/antlr/internal/InternalSText.g:2599:3: '~'\n {\n match(input,39,FOLLOW_39_in_rule__UnaryOperator__Alternatives5628); if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryOperatorAccess().getComplementEnumLiteralDeclaration_2()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f6eaedb0bd522374ff3b24b9ab87a728", "score": "0.50319135", "text": "double parseExpression() {\n double v = parseTerm();\n for (; ; ) {\n eatSpace();\n if (c == '+') { // addition\n eatChar();\n v += parseTerm();\n } else if (c == '-') { // subtraction\n eatChar();\n v -= parseTerm();\n } else {\n return v;\n }\n }\n }", "title": "" }, { "docid": "26144f10686ba9a421234388b5fdaf02", "score": "0.49689627", "text": "double parseExpression() {\r\n\t double x = parseTerm();\r\n\t for (;;) {\r\n\t if (eat('+')) x += parseTerm(); // addition\r\n\t else if (eat('-')) x -= parseTerm(); // subtraction\r\n\t else return x;\r\n\t }\r\n\t }", "title": "" }, { "docid": "e3f8c6ba952ac2ba85223b3e2b316931", "score": "0.4950308", "text": "public final void mPLUS() throws RecognitionException {\n try {\n int _type = PLUS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // css21.g:535:17: ( '+' )\n // css21.g:535:19: '+'\n {\n match('+'); if (state.failed) return ;\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "beaaa4208fd2e8b4c60e5d60a3cd5d38", "score": "0.49499726", "text": "private void addop() {\n if(is(TK.MINUS)) {System.out.print(\" -\");\n vec.addElement(\" -\");//*************************\n }//**********\n if(is(TK.PLUS)) {System.out.print(\" +\");\n vec.addElement(\" +\");//*************************\n }//********** \n scan();\n }", "title": "" }, { "docid": "d8188b387b8567a3eb15154bb7acd69c", "score": "0.49494955", "text": "public final AS3Parser.additiveOperator_return additiveOperator() throws RecognitionException {\r\n AS3Parser.additiveOperator_return retval = new AS3Parser.additiveOperator_return();\r\n retval.start = input.LT(1);\r\n\r\n LinkedListTree root_0 = null;\r\n\r\n Token set353=null;\r\n\r\n LinkedListTree set353_tree=null;\r\n\r\n try { dbg.enterRule(getGrammarFileName(), \"additiveOperator\");\r\n if ( getRuleLevel()==0 ) {dbg.commence();}\r\n incRuleLevel();\r\n dbg.location(993, 1);\r\n\r\n try {\r\n // /Users/eliseev/Projects/metaas-src/src/main/antlr/org/asdt/core/internal/antlr/AS3.g:994:2: ( PLUS | MINUS )\r\n dbg.enterAlt(1);\r\n\r\n // /Users/eliseev/Projects/metaas-src/src/main/antlr/org/asdt/core/internal/antlr/AS3.g:\r\n {\r\n root_0 = (LinkedListTree)adaptor.nil();\r\n\r\n dbg.location(994,2);\r\n set353=(Token)input.LT(1);\r\n if ( (input.LA(1)>=PLUS && input.LA(1)<=MINUS) ) {\r\n input.consume();\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, (LinkedListTree)adaptor.create(set353));\r\n state.errorRecovery=false;state.failed=false;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n MismatchedSetException mse = new MismatchedSetException(null,input);\r\n dbg.recognitionException(mse);\r\n throw mse;\r\n }\r\n\r\n\r\n }\r\n\r\n retval.stop = input.LT(-1);\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (LinkedListTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n finally {\r\n }\r\n dbg.location(995, 2);\r\n\r\n }\r\n finally {\r\n dbg.exitRule(getGrammarFileName(), \"additiveOperator\");\r\n decRuleLevel();\r\n if ( getRuleLevel()==0 ) {dbg.terminate();}\r\n }\r\n\r\n return retval;\r\n }", "title": "" }, { "docid": "633fc302e996d6b830389392d4b1f026", "score": "0.49414983", "text": "double parseExpression() {\n double x = parseTerm();\n for (; ; ) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "title": "" }, { "docid": "633fc302e996d6b830389392d4b1f026", "score": "0.49414983", "text": "double parseExpression() {\n double x = parseTerm();\n for (; ; ) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "title": "" }, { "docid": "e06fbead5670987e911a05084d262ea2", "score": "0.49329904", "text": "protected String symbol(){\n return \"+\";\n }", "title": "" }, { "docid": "78f5cbbb4b5c93547cf300c9a6b67f3e", "score": "0.49240825", "text": "private String evalPowerRule(String s) {\n boolean foundSign=false;\n String powNum=\"\";\n for(int i=0; i<s.length();i++){\n \n if(foundSign && s.charAt(i)!='(' && s.charAt(i)!=')') \n \n powNum+=s.charAt(i);\n \n if(s.charAt(i)=='^')foundSign=true;\n \n }\n \n return getMultPowRule(powNum)+\"*x^\"+getPowerPowRule(powNum);\n \n }", "title": "" }, { "docid": "dcb174176e1800b6e696141921c8cc0c", "score": "0.49121642", "text": "@Test\n public void DelimiterWithNumbers( ) throws Exception {\n assertThat( string_kata.Add( \"//[*1*][%]\\n1*1*2%3\" ) ).isEqualTo( 6 );\n }", "title": "" }, { "docid": "769e3ac36268bb554db2fb7d06280507", "score": "0.49116826", "text": "public final void mPLUS() throws RecognitionException {\n try {\n int _type = PLUS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\home\\\\kozlenkova\\\\git\\\\prova\\\\src\\\\main\\\\antlr\\\\org\\\\provarules\\\\parser\\\\Prova2.g:25:6: ( '+' )\n // C:\\\\home\\\\kozlenkova\\\\git\\\\prova\\\\src\\\\main\\\\antlr\\\\org\\\\provarules\\\\parser\\\\Prova2.g:25:8: '+'\n {\n match('+'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "88ff6c1e6d1285f6a6f0782adde61553", "score": "0.4901754", "text": "@Override\r\n\tpublic boolean isRegexpr(String expr, String value) {\r\n\t\treturn value.matches(expr);\r\n\t}", "title": "" }, { "docid": "2f31ba28cac8de250a61691f4712acdc", "score": "0.48994026", "text": "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "title": "" }, { "docid": "2f31ba28cac8de250a61691f4712acdc", "score": "0.48994026", "text": "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "title": "" }, { "docid": "2f31ba28cac8de250a61691f4712acdc", "score": "0.48994026", "text": "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "title": "" }, { "docid": "aaefe7f18670aa0364e36fa1897990f5", "score": "0.48988566", "text": "public String retirarOperadores(String valor){\n \n valor = valor.replace(\"+\",\" \");\n valor = valor.replace(\"-\",\" \");\n valor = valor.replace(\"*\",\" \");\n valor = valor.replace(\"div\",\" \");\n \n //Parenteses ( );\n \n valor = valor.replace(\"(\",\" \");\n valor = valor.replace(\")\",\" \");\n\n return valor;\n \n }", "title": "" }, { "docid": "549ad1378cf93c66db20065b1575d5f8", "score": "0.48968983", "text": "public void testParse() throws Exception {\n System.out.println(\"parse\");\n\n // Parse a simple multi-gram\n RegExParser mgramParser1 = new RegExParser(\"abcd\");\n RegEx mgramRegEx1 = mgramParser1.parse();\n assertEquals(mgramRegEx1.getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) mgramRegEx1).getPrimitiveStr(), \"abcd\");\n\n // Parse multi-grams with escape characters\n RegExParser mgramParser2 = new RegExParser(\"\\\\|a\\\\(b\\\\)c\\\\*d\\\\+\\\\{\\\\}\");\n RegEx mgramRegEx2 = mgramParser2.parse();\n assertEquals(mgramRegEx2.getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) mgramRegEx2).getPrimitiveStr(), \"|a(b)c*d+{}\");\n\n // Parse union\n RegExParser unionParser = new RegExParser(\"a|b\");\n RegEx unionRegEx = unionParser.parse();\n assertEquals(unionRegEx.getRegExType(), RegExType.Union);\n RegExUnion uRE = (RegExUnion) unionRegEx;\n assertEquals(uRE.getFirst().getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) uRE.getFirst()).getPrimitiveStr(), \"a\");\n assertEquals(uRE.getSecond().getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) uRE.getSecond()).getPrimitiveStr(), \"b\");\n\n // Parse concat\n RegExParser concatParser1 = new RegExParser(\"a(b|c)\");\n RegEx concatRegEx1 = concatParser1.parse();\n assertEquals(concatRegEx1.getRegExType(), RegExType.Concat);\n RegExConcat cRE1 = (RegExConcat) concatRegEx1;\n assertEquals(cRE1.getLeft().getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) cRE1.getLeft()).getPrimitiveStr(), \"a\");\n assertEquals(cRE1.getRight().getRegExType(), RegExType.Union);\n\n // Parse concat with optimization\n RegExParser concatParser2 = new RegExParser(\"a(b)\");\n RegEx concatRegEx2 = concatParser2.parse();\n assertEquals(concatRegEx2.getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) concatRegEx2).getPrimitiveStr(), \"ab\");\n\n // Parse repeat: zero or more\n RegExParser repeatParser1 = new RegExParser(\"a*\");\n RegEx repeatRegEx1 = repeatParser1.parse();\n assertEquals(repeatRegEx1.getRegExType(), RegExType.Repeat);\n RegExRepeat rRE1 = (RegExRepeat) repeatRegEx1;\n assertEquals(rRE1.getRegExRepeatType(), RegExRepeatType.ZeroOrMore);\n assertEquals(rRE1.getInternal().getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) rRE1.getInternal()).getPrimitiveStr(), \"a\");\n\n // Parse repeat: one or more\n RegExParser repeatParser2 = new RegExParser(\"a+\");\n RegEx repeatRegEx2 = repeatParser2.parse();\n assertEquals(repeatRegEx2.getRegExType(), RegExType.Repeat);\n RegExRepeat rRE2 = (RegExRepeat) repeatRegEx2;\n assertEquals(rRE2.getRegExRepeatType(), RegExRepeatType.OneOrMore);\n assertEquals(rRE2.getInternal().getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) rRE2.getInternal()).getPrimitiveStr(), \"a\");\n\n // Parse repeat: min to max\n RegExParser repeatParser3 = new RegExParser(\"a{1,2}\");\n RegEx repeatRegEx3 = repeatParser3.parse();\n assertEquals(repeatRegEx3.getRegExType(), RegExType.Repeat);\n RegExRepeat rRE3 = (RegExRepeat) repeatRegEx3;\n assertEquals(rRE3.getRegExRepeatType(), RegExRepeatType.MinToMax);\n assertEquals(rRE3.getInternal().getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) rRE3.getInternal()).getPrimitiveStr(), \"a\");\n assertEquals(rRE3.getMin(), 1);\n assertEquals(rRE3.getMax(), 2);\n }", "title": "" }, { "docid": "fd2ed0aa863deb9375186b97bc4aa155", "score": "0.48937422", "text": "String getSimpleExp();", "title": "" }, { "docid": "458880fea151953834e004b2ea50e9f2", "score": "0.4890255", "text": "private Regexp toNormalForm(Regexp root) {\n\t\tif (root instanceof Alternation) {\n\t\t\tAlternation alt = (Alternation) root;\n\t\t\tList<Regexp> list = alt.getExp();\n\t\t\t\n\t\t\tif (list.size() == 1) { // (A) = A\n\t\t\t\treturn toNormalForm(alt.getExp().get(0));\n\t\t\t}\n\t\t\tArrayList<Regexp> toRemove = new ArrayList<Regexp>();\n\t\t\tArrayList<Regexp> toAdd = new ArrayList<Regexp>();\n\n\t\t\tHashSet<String> dits=new HashSet<String>();\n\t\t\tfor (int i = 0; i < list.size(); ++i) {\n\t\t\t\tRegexp exp = list.get(i);\n\t\t\t\tRegexp fn = toNormalForm(exp);\n\t\t\t\t\n\t\t\t\tif (fn instanceof Alternation) { // ((A+B)+C) = (C+A+B)\n\t\t\t\t\tfor (Regexp exp0 : ((Alternation)fn).getExp()) {\n\t\t\t\t\t\tString ch=RegexpExtractionUtils.reg2String(exp0);\n\t\t\t\t\t\tif(!dits.contains(ch)){\n\t\t\t\t\t\t\ttoAdd.add(exp0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdits.add(ch);\n\t\t\t\t\t}\n\t\t\t\t\t//toRemove.add(exp);\t\t\t\t\t\n\t\t\t\t} /*else if (fn instanceof EmptySet) { // A+{} = A\t\t\t\t\t\n\t\t\t\t\ttoRemove.add(exp);\t\t\t\t\t\n\t\t\t\t}*/ \n\t\t\t\telse {\n\t\t\t\t\t//list.set(i, fn);\n\t\t\t\t\tString ch=RegexpExtractionUtils.reg2String(fn);\n\t\t\t\t\tif(!dits.contains(ch)){\n\t\t\t\t\t\ttoAdd.add(fn);\n\t\t\t\t\t}\n\t\t\t\t\tdits.add(ch);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlist.clear(); //removeAll(toRemove);\n\t\t\tlist.addAll(toAdd);\n\t\t\t\n\t\t\t/*if(true){\n\t\t\t\treturn alt;\n\t\t\t}*/\n\t\t\t\n\t\t\t//System.out.println(\"A+A=A\");\n\t\t\t\n\t\t\tHashMap<Regexp,HashSet<Regexp>> h=new HashMap<Regexp,HashSet<Regexp>>();\n\t\t\tif(facto){\t\n\t\t\t\t// XA + YA = (X+Y)A \n\t\t\t\th=new HashMap<Regexp,HashSet<Regexp>>();\n\t\t\t\tfor(Regexp r:alt.getExp()){\n\t\t\t\t\tif(r instanceof ConcatenationImpl){\n\t\t\t\t\t\tRegexp last=((ConcatenationImpl) r).getLast();\n\t\t\t\t\t\t/*Regexp remain=r;\n\t\t\t\t\t\tif(((ConcatenationImpl) r).getExp().size()==0){\n\t\t\t\t\t\t\tremain=new Epsilon();\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\n\t\t\t\t\t\tHashSet<Regexp> hh=h.get(last);\n\t\t\t\t\t\tif(hh==null){\n\t\t\t\t\t\t\thh=new HashSet<Regexp>();\n\t\t\t\t\t\t\th.put(last, hh);\n\t\t\t\t\t\t}\n\t\t\t\t\t\thh.add(r);\n\t\t\t\t\t}\n\t\t\t\t\t/*else if(r instanceof AlternationImpl){\n\t\t\t\t\t\tHashSet<Regexp> last=((AlternationImpl) r).getLast();\n\t\t\t\t\t\tfor(Regexp l:last){\n\t\t\t\t\t\t\tHashSet<Regexp> hh=h.get(last);\n\t\t\t\t\t\t\tif(hh==null){\n\t\t\t\t\t\t\t\thh=new HashSet<Regexp>();\n\t\t\t\t\t\t\t\th.put(l, hh);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\thh.add(r);\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\tHashSet<Regexp> hh=h.get(r);\n\t\t\t\t\t\tif(hh==null){\n\t\t\t\t\t\t\thh=new HashSet<Regexp>();\n\t\t\t\t\t\t\th.put(r, hh);\n\t\t\t\t\t\t}\n\t\t\t\t\t\thh.add(r);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/*if(h.size()==alt.getExp().size()){\n\t\t\t\t\treturn alt;\n\t\t\t\t}*/\n\t\t\t\tif(h.size()!=alt.getExp().size()){\n\t\t\t\t\tArrayList<Regexp> lc=new ArrayList<Regexp>();\n\t\t\t\t\tfor(Entry<Regexp, HashSet<Regexp>> e:h.entrySet()){\n\t\t\t\t\t\tRegexp k=e.getKey();\n\t\t\t\t\t\tHashSet<Regexp> hh=e.getValue();\n\t\t\t\t\t\tArrayList<Regexp> la;\n\t\t\t\t\t\tif(hh.size()==1){\n\t\t\t\t\t\t\tla=new ArrayList<Regexp>(hh);\n\t\t\t\t\t\t\tlc.add(toNormalForm(la.get(0)));\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//HashSet<Regexp> ha=new HashSet<Regexp>();\n\t\t\t\t\t\tla=new ArrayList<Regexp>();\n\t\t\t\t\t\tfor(Regexp f:hh){\n\t\t\t\t\t\t\tRegexp re=null;\n\t\t\t\t\t\t\tif(f instanceof ConcatenationImpl){\n\t\t\t\t\t\t\t\t((ConcatenationImpl)f).removeLast();\n\t\t\t\t\t\t\t\tre=f;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tre=new Epsilon();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tla.add(re);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t((AlternationImpl)alt).setExp(la);\n\t\t\t\t\t\tConcatenation conc=new ConcatenationImpl();\n\t\t\t\t\t\tList<Regexp> rs=conc.getExp();\n\t\t\t\t\t\trs.add(alt);\n\t\t\t\t\t\trs.add(k);\n\t\t\t\t\t\tlc.add(toNormalForm(conc));\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tRegexp nr=null;\n\t\t\t\t\tif(h.size()>1){\n\t\t\t\t\t\tnr=new AlternationImpl();\n\t\t\t\t\t\t((AlternationImpl) nr).setExp(lc);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tnr=lc.get(0);\n\t\t\t\t\t\treturn nr;\n\t\t\t\t\t}\n\t\t\t\t\talt=(Alternation)nr;\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\t// AX+AY = A(X+Y)\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t// facto begin\n\t\t\t\th=new HashMap<Regexp,HashSet<Regexp>>();\n\t\t\t\tfor(Regexp r:alt.getExp()){\n\t\t\t\t\tif(r instanceof ConcatenationImpl){\n\t\t\t\t\t\tRegexp first=((ConcatenationImpl) r).getFirst();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tHashSet<Regexp> hh=h.get(first);\n\t\t\t\t\t\tif(hh==null){\n\t\t\t\t\t\t\thh=new HashSet<Regexp>();\n\t\t\t\t\t\t\th.put(first, hh);\n\t\t\t\t\t\t}\n\t\t\t\t\t\thh.add(r);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tHashSet<Regexp> hh=h.get(r);\n\t\t\t\t\t\tif(hh==null){\n\t\t\t\t\t\t\thh=new HashSet<Regexp>();\n\t\t\t\t\t\t\th.put(r, hh);\n\t\t\t\t\t\t}\n\t\t\t\t\t\thh.add(r);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(h.size()!=alt.getExp().size()){\n\t\t\t\t\t\n\t\t\t\t\tArrayList<Regexp> lc=new ArrayList<Regexp>();\n\t\t\t\t\tfor(Entry<Regexp, HashSet<Regexp>> e:h.entrySet()){\n\t\t\t\t\t\tRegexp k=e.getKey();\n\t\t\t\t\t\tHashSet<Regexp> hh=e.getValue();\n\t\t\t\t\t\tArrayList<Regexp> la;\n\t\t\t\t\t\tif(hh.size()==1){\n\t\t\t\t\t\t\tla=new ArrayList<Regexp>(hh);\n\t\t\t\t\t\t\tlc.add(toNormalForm(la.get(0)));\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//HashSet<Regexp> ha=new HashSet<Regexp>();\n\t\t\t\t\t\tla=new ArrayList<Regexp>();\n\t\t\t\t\t\tfor(Regexp f:hh){\n\t\t\t\t\t\t\tRegexp re=null;\n\t\t\t\t\t\t\tif(f instanceof ConcatenationImpl){\n\t\t\t\t\t\t\t\t((ConcatenationImpl)f).removeFirst();\n\t\t\t\t\t\t\t\tre=f;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tre=new Epsilon();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tla.add(re);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t((AlternationImpl)alt).setExp(la);\n\t\t\t\t\t\tConcatenation conc=new ConcatenationImpl();\n\t\t\t\t\t\tList<Regexp> rs=conc.getExp();\n\t\t\t\t\t\trs.add(k);\n\t\t\t\t\t\trs.add(alt);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlc.add(toNormalForm(conc));\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tRegexp nr=null;\n\t\t\t\t\tif(h.size()>1){\n\t\t\t\t\t\tnr=new AlternationImpl();\n\t\t\t\t\t\t((AlternationImpl) nr).setExp(lc);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\treturn lc.get(0);\n\t\t\t\t\t\t//return nr;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\talt=(Alternation)nr;\n\t\t\t\t}\n\t\t\t//}\n\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\treturn alt;\n\t\t\t\n\t\t\t\n\t\t\t/*int i=0;\n\t\t\twhile(i < list.size()){ // A + A = A\n\t\t\t\tRegexp exp = list.get(i);\n\t\t\t\tString st=RegexpExtractionUtils.reg2String(exp);\n\t\t\t\t//System.out.println(st);\n\t\t\t\tif (!dits.contains(st)){\n\t\t\t\t\tdits.add(st);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tlist.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}*/\n\t\t\t\n/*\t\t\tif (!EcoreUtil.equals(root, alt)) {\n\t\t\t\treturn toNormalForm(alt);\t\t\t\t\n\t\t\t} else {\t*/\t\t\t\n\t\t\t//return reg;\n\t\t\t//}\n\t\t} else if (root instanceof Concatenation) {\n\t\t\tConcatenation con = ((Concatenation) root);\n\t\t\tList<Regexp> list = ((Concatenation) root).getExp();\n\n\t\t\tif (list.size() == 1) { // (A) = A\n\t\t\t\treturn toNormalForm(con.getExp().get(0));\n\t\t\t}\n\n\t\t\tfor (Regexp exp : list) { // A{} = {}\n\t\t\t\tif (exp instanceof EmptySet) {\n\t\t\t\t\treturn exp;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t// associate\n\t\t\tArrayList<Regexp> newList = new ArrayList<Regexp>();\n\t\t\tfor (int i = 0; i < list.size(); ++i) {\n\t\t\t\tRegexp exp = list.get(i);\n\t\t\t\tRegexp fn = toNormalForm(exp);\n\t\t\t\t\n\t\t\t\tif (fn instanceof Concatenation) { // (AB)C = ABC \n\t\t\t\t\tfor (Regexp exp0 : ((Concatenation)fn).getExp()) {\n\t\t\t\t\t\tnewList.add(exp0);\n\t\t\t\t\t}\n\t\t\t\t} else if (fn instanceof Epsilon) {\n\t\t\t\t\t// AeB = AB\n\t\t\t\t} else {\t\t\t\t\t\n\t\t\t\t\tnewList.add(fn);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.clear();\n\t\t\tlist.addAll(newList);\n\t\t\t\n\t\t\t//return root;\n\t\t\t\n\n\t\t\t\n\t\t\t\n\t\t\t//lampriers : je retire la distribution, c'est le contraire qu'on fait maintenant (facto des alternatives)\n\t\t\t\n\t\t\t// distribute (A+B)C = AC+BC \n\t\t\t/*Alternation alt = null;\n\t\t\tfor (Regexp exp : con.getExp()) {\n\t\t\t\t\tif (exp instanceof Alternation) {\n\t\t\t\t\t\t\talt = (Alternation) exp;\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (alt == null) {\n\t\t\t\tif (!con.equals(root)) {//?? TODO\n\t\t\t\t\treturn toNormalForm(con);\t\t\t\t\n\t\t\t\t} else {\t\t\t\t\n\t\t\t\t\treturn con;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// hypothesis: the distributed part will always be the last one\n\t\t\t\tcon.getExp().remove(alt);\n\n\t\t\t\tAlternation nalt = new AlternationImpl();\n\t\t\t\tfor (Regexp exp : alt.getExp()) {\n\t\t\t\t\tConcatenation ncon = new ConcatenationImpl();\n\t\t\t\t\tncon.getExp().add(con);\n\t\t\t\t\tncon.getExp().add(exp);\n\t\t\t\t\tnalt.getExp().add(ncon);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn toNormalForm(nalt);\n\t\t\t \n\t\t\t}*/\n\t\t} else if (root instanceof KleeneStar) {\n\t\t\t\n\t\t\tRegexp exp = ((KleeneStar) root).getExp();\n\n\t\t\tif (exp instanceof KleeneStar) { // (A*)* = A*\n\t\t\t\treturn toNormalForm(exp);\n\t\t\t} else if (exp instanceof EmptySet || exp instanceof Epsilon) { // ({})* = {}, (e)* = e\n\t\t\t\treturn exp;\t\t\t\n\t\t\t} else {\n\t\t\t\t((KleeneStar) root).setExp(toNormalForm(((KleeneStar) root).getExp()));\n\t\t\t\treturn root;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn root;\n\t}", "title": "" }, { "docid": "65ed9367f8734a99e814b94e471ab3c2", "score": "0.4888307", "text": "public final ObjectiveCParser.additive_expression_return additive_expression() throws RecognitionException {\n ObjectiveCParser.additive_expression_return retval = new ObjectiveCParser.additive_expression_return();\n retval.start = input.LT(1);\n\n\n Object root_0 = null;\n\n Token set408=null;\n ObjectiveCParser.multiplicative_expression_return multiplicative_expression407 =null;\n\n ObjectiveCParser.multiplicative_expression_return multiplicative_expression409 =null;\n\n\n Object set408_tree=null;\n\n try {\n // /Users/Vincent/Projects/parsing/ObjectiveC/antlr-objc/src/smartmobili/lang/objc/ObjectiveC.g:380:21: ( multiplicative_expression ( ( '+' | '-' ) multiplicative_expression )* )\n // /Users/Vincent/Projects/parsing/ObjectiveC/antlr-objc/src/smartmobili/lang/objc/ObjectiveC.g:380:23: multiplicative_expression ( ( '+' | '-' ) multiplicative_expression )*\n {\n root_0 = (Object)adaptor.nil();\n\n\n pushFollow(FOLLOW_multiplicative_expression_in_additive_expression2214);\n multiplicative_expression407=multiplicative_expression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, multiplicative_expression407.getTree());\n\n // /Users/Vincent/Projects/parsing/ObjectiveC/antlr-objc/src/smartmobili/lang/objc/ObjectiveC.g:381:3: ( ( '+' | '-' ) multiplicative_expression )*\n loop104:\n do {\n int alt104=2;\n int LA104_0 = input.LA(1);\n\n if ( (LA104_0==42||LA104_0==46) ) {\n alt104=1;\n }\n\n\n switch (alt104) {\n \tcase 1 :\n \t // /Users/Vincent/Projects/parsing/ObjectiveC/antlr-objc/src/smartmobili/lang/objc/ObjectiveC.g:381:4: ( '+' | '-' ) multiplicative_expression\n \t {\n \t set408=(Token)input.LT(1);\n\n \t if ( input.LA(1)==42||input.LA(1)==46 ) {\n \t input.consume();\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, \n \t (Object)adaptor.create(set408)\n \t );\n \t state.errorRecovery=false;\n \t state.failed=false;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t throw mse;\n \t }\n\n\n \t pushFollow(FOLLOW_multiplicative_expression_in_additive_expression2227);\n \t multiplicative_expression409=multiplicative_expression();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, multiplicative_expression409.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop104;\n }\n } while (true);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "title": "" }, { "docid": "9000e3f869816ebc82c0943779567764", "score": "0.4887077", "text": "public final void mPlusSign() throws RecognitionException {\n try {\n int _type = PlusSign;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalSqlLexer.g:255:10: ( '+' )\n // InternalSqlLexer.g:255:12: '+'\n {\n match('+'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "196e67dc01d08f3f5dba6faa9c29b871", "score": "0.48850837", "text": "String getRegex();", "title": "" }, { "docid": "7e8dcafb973e24318dd9d1074f42bf82", "score": "0.48786268", "text": "public String visit(PlusExpression n, String argu) throws Exception {\n String leftExpr;\n String rightExpr;\n int labeltemp1;\n\n leftExpr = n.f0.accept(this,null);\n rightExpr = n.f2.accept(this,null);\n labeltemp1 = tempcounter.getTemp();\n this.spCode += \"MOVE TEMP \" + labeltemp1 + \" PLUS \" + leftExpr + \" \" + rightExpr + \"\\n\";\n\n return \"TEMP \" + labeltemp1;\n }", "title": "" }, { "docid": "4b774696014225b6664b5c64542614ca", "score": "0.4873055", "text": "public final void mPLUS() throws RecognitionException {\n try {\n int _type = PLUS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // jj.g:49:13: ( '+' )\n // jj.g:49:15: '+'\n {\n match('+'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "0c2e405c3f5066ea984a22cd386a13b6", "score": "0.48696503", "text": "public final void rule__ADDOP__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4343:1: ( ( '+' ) | ( '-' ) | ( 'bor' ) | ( 'bxor' ) | ( 'bsl' ) | ( 'bsr' ) | ( 'or' ) | ( 'xor' ) )\n int alt37=8;\n switch ( input.LA(1) ) {\n case 27:\n {\n alt37=1;\n }\n break;\n case 28:\n {\n alt37=2;\n }\n break;\n case 29:\n {\n alt37=3;\n }\n break;\n case 30:\n {\n alt37=4;\n }\n break;\n case 31:\n {\n alt37=5;\n }\n break;\n case 32:\n {\n alt37=6;\n }\n break;\n case 33:\n {\n alt37=7;\n }\n break;\n case 34:\n {\n alt37=8;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 37, 0, input);\n\n throw nvae;\n }\n\n switch (alt37) {\n case 1 :\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4344:1: ( '+' )\n {\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4344:1: ( '+' )\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4345:1: '+'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getADDOPAccess().getPlusSignKeyword_0()); \n }\n match(input,27,FOLLOW_27_in_rule__ADDOP__Alternatives9444); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getADDOPAccess().getPlusSignKeyword_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4352:6: ( '-' )\n {\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4352:6: ( '-' )\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4353:1: '-'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getADDOPAccess().getHyphenMinusKeyword_1()); \n }\n match(input,28,FOLLOW_28_in_rule__ADDOP__Alternatives9464); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getADDOPAccess().getHyphenMinusKeyword_1()); \n }\n\n }\n\n\n }\n break;\n case 3 :\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4360:6: ( 'bor' )\n {\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4360:6: ( 'bor' )\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4361:1: 'bor'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getADDOPAccess().getBorKeyword_2()); \n }\n match(input,29,FOLLOW_29_in_rule__ADDOP__Alternatives9484); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getADDOPAccess().getBorKeyword_2()); \n }\n\n }\n\n\n }\n break;\n case 4 :\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4368:6: ( 'bxor' )\n {\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4368:6: ( 'bxor' )\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4369:1: 'bxor'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getADDOPAccess().getBxorKeyword_3()); \n }\n match(input,30,FOLLOW_30_in_rule__ADDOP__Alternatives9504); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getADDOPAccess().getBxorKeyword_3()); \n }\n\n }\n\n\n }\n break;\n case 5 :\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4376:6: ( 'bsl' )\n {\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4376:6: ( 'bsl' )\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4377:1: 'bsl'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getADDOPAccess().getBslKeyword_4()); \n }\n match(input,31,FOLLOW_31_in_rule__ADDOP__Alternatives9524); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getADDOPAccess().getBslKeyword_4()); \n }\n\n }\n\n\n }\n break;\n case 6 :\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4384:6: ( 'bsr' )\n {\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4384:6: ( 'bsr' )\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4385:1: 'bsr'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getADDOPAccess().getBsrKeyword_5()); \n }\n match(input,32,FOLLOW_32_in_rule__ADDOP__Alternatives9544); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getADDOPAccess().getBsrKeyword_5()); \n }\n\n }\n\n\n }\n break;\n case 7 :\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4392:6: ( 'or' )\n {\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4392:6: ( 'or' )\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4393:1: 'or'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getADDOPAccess().getOrKeyword_6()); \n }\n match(input,33,FOLLOW_33_in_rule__ADDOP__Alternatives9564); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getADDOPAccess().getOrKeyword_6()); \n }\n\n }\n\n\n }\n break;\n case 8 :\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4400:6: ( 'xor' )\n {\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4400:6: ( 'xor' )\n // ../org.erlide.erlang.ui/src-gen/org/erlide/ui/contentassist/antlr/internal/InternalErlang.g:4401:1: 'xor'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getADDOPAccess().getXorKeyword_7()); \n }\n match(input,34,FOLLOW_34_in_rule__ADDOP__Alternatives9584); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getADDOPAccess().getXorKeyword_7()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cd7d906444fbb039be95e583039392ba", "score": "0.48670602", "text": "public final void mPLUS() throws RecognitionException {\n try {\n int _type = PLUS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /home/ubuntu/spork/src/org/apache/pig/parser/QueryLexer.g:463:6: ( '+' )\n // /home/ubuntu/spork/src/org/apache/pig/parser/QueryLexer.g:463:8: '+'\n {\n match('+'); if (state.failed) return ;\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "d50e0707c25c45a3cbbc132a636ea2ed", "score": "0.48659846", "text": "public final void unaryExpressionNotPlusMinus() throws RecognitionException {\n try { dbg.enterRule(\"unaryExpressionNotPlusMinus\");\n if ( ruleLevel==0 ) {dbg.commence();}\n ruleLevel++;\n dbg.location(670, 1);\n\n try {\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:671:5: ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? )\n int alt147=4;\n try { dbg.enterDecision(147);\n\n switch ( input.LA(1) ) {\n case 110:\n {\n alt147=1;\n }\n break;\n case 111:\n {\n alt147=2;\n }\n break;\n case 65:\n {\n switch ( input.LA(2) ) {\n case 104:\n {\n int LA147_17 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 17, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case 105:\n {\n int LA147_18 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 18, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case 108:\n {\n int LA147_19 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 19, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case 109:\n {\n int LA147_20 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 20, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case 110:\n {\n int LA147_21 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 21, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case 111:\n {\n int LA147_22 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 22, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case 65:\n {\n int LA147_23 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 23, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case 33:\n {\n int LA147_24 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 24, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case 112:\n {\n int LA147_25 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 25, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case 64:\n {\n int LA147_26 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 26, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case HexLiteral:\n case OctalLiteral:\n case DecimalLiteral:\n {\n int LA147_27 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 27, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case FloatingPointLiteral:\n {\n int LA147_28 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 28, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case CharacterLiteral:\n {\n int LA147_29 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 29, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case StringLiteral:\n {\n int LA147_30 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 30, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case 69:\n case 70:\n {\n int LA147_31 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 31, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case 68:\n {\n int LA147_32 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 32, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case 113:\n {\n int LA147_33 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 33, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case Identifier:\n {\n int LA147_34 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 34, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case 55:\n case 56:\n case 57:\n case 58:\n case 59:\n case 60:\n case 61:\n case 62:\n {\n int LA147_35 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 35, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n case 40:\n {\n int LA147_36 = input.LA(3);\n\n if ( (synpred223()) ) {\n alt147=3;\n }\n else if ( (true) ) {\n alt147=4;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 36, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n break;\n default:\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 3, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n\n }\n break;\n case Identifier:\n case FloatingPointLiteral:\n case CharacterLiteral:\n case StringLiteral:\n case HexLiteral:\n case OctalLiteral:\n case DecimalLiteral:\n case 33:\n case 40:\n case 55:\n case 56:\n case 57:\n case 58:\n case 59:\n case 60:\n case 61:\n case 62:\n case 64:\n case 68:\n case 69:\n case 70:\n case 112:\n case 113:\n {\n alt147=4;\n }\n break;\n default:\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"670:1: unaryExpressionNotPlusMinus : ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? );\", 147, 0, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n\n } finally {dbg.exitDecision(147);}\n\n switch (alt147) {\n case 1 :\n dbg.enterAlt(1);\n\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:671:9: '~' unaryExpression\n {\n dbg.location(671,9);\n match(input,110,FOLLOW_110_in_unaryExpressionNotPlusMinus3422); if (failed) return ;\n dbg.location(671,13);\n pushFollow(FOLLOW_unaryExpression_in_unaryExpressionNotPlusMinus3424);\n unaryExpression();\n _fsp--;\n if (failed) return ;\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:672:8: '!' unaryExpression\n {\n dbg.location(672,8);\n match(input,111,FOLLOW_111_in_unaryExpressionNotPlusMinus3433); if (failed) return ;\n dbg.location(672,12);\n pushFollow(FOLLOW_unaryExpression_in_unaryExpressionNotPlusMinus3435);\n unaryExpression();\n _fsp--;\n if (failed) return ;\n\n }\n break;\n case 3 :\n dbg.enterAlt(3);\n\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:673:9: castExpression\n {\n dbg.location(673,9);\n pushFollow(FOLLOW_castExpression_in_unaryExpressionNotPlusMinus3445);\n castExpression();\n _fsp--;\n if (failed) return ;\n\n }\n break;\n case 4 :\n dbg.enterAlt(4);\n\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:674:9: primary ( selector )* ( '++' | '--' )?\n {\n dbg.location(674,9);\n pushFollow(FOLLOW_primary_in_unaryExpressionNotPlusMinus3455);\n primary();\n _fsp--;\n if (failed) return ;\n dbg.location(674,17);\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:674:17: ( selector )*\n try { dbg.enterSubRule(145);\n\n loop145:\n do {\n int alt145=2;\n try { dbg.enterDecision(145);\n\n int LA145_0 = input.LA(1);\n\n if ( (LA145_0==28||LA145_0==41) ) {\n alt145=1;\n }\n\n\n } finally {dbg.exitDecision(145);}\n\n switch (alt145) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:0:0: selector\n \t {\n \t dbg.location(674,17);\n \t pushFollow(FOLLOW_selector_in_unaryExpressionNotPlusMinus3457);\n \t selector();\n \t _fsp--;\n \t if (failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop145;\n }\n } while (true);\n } finally {dbg.exitSubRule(145);}\n\n dbg.location(674,27);\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:674:27: ( '++' | '--' )?\n int alt146=2;\n try { dbg.enterSubRule(146);\n try { dbg.enterDecision(146);\n\n int LA146_0 = input.LA(1);\n\n if ( ((LA146_0>=108 && LA146_0<=109)) ) {\n alt146=1;\n }\n } finally {dbg.exitDecision(146);}\n\n switch (alt146) {\n case 1 :\n dbg.enterAlt(1);\n\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:\n {\n dbg.location(674,27);\n if ( (input.LA(1)>=108 && input.LA(1)<=109) ) {\n input.consume();\n errorRecovery=false;failed=false;\n }\n else {\n if (backtracking>0) {failed=true; return ;}\n MismatchedSetException mse =\n new MismatchedSetException(null,input);\n dbg.recognitionException(mse);\n recoverFromMismatchedSet(input,mse,FOLLOW_set_in_unaryExpressionNotPlusMinus3460); throw mse;\n }\n\n\n }\n break;\n\n }\n } finally {dbg.exitSubRule(146);}\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n dbg.location(675, 5);\n\n }\n finally {\n dbg.exitRule(\"unaryExpressionNotPlusMinus\");\n ruleLevel--;\n if ( ruleLevel==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "title": "" }, { "docid": "c563f015f705d40ad66dcec64e87d5de", "score": "0.48655516", "text": "@Test\n public void testAddForMoreThanThousand()\n {\n\t\tint iOutput = strAccObj.add(\"//*\\n100*1002*2*3\");\n\t\tassertEquals(105, iOutput);\n }", "title": "" }, { "docid": "33e5a9cd537a3cf1a468d9c56637b15e", "score": "0.48529693", "text": "@Test\n public void multipleDelimitersOfAnySizeTest(){\n String numbers = \"//[***][%%][++++]\\n1***2%%3++++4\";\n Assert.assertEquals(10,stringCalculator.Add(numbers));\n }", "title": "" }, { "docid": "d783e76857b7cdda20f62ecca3e39d85", "score": "0.48250055", "text": "private static void doOperation () {\n\t\tif (RegularExpression.operator.size() > 0) {\n\t\t\tString charAt = operator.pop();\n\n\t\t\tswitch (charAt) {\n\t\t\t\tcase (\"+\"):\n\t\t\t\t\tunion ();\n\t\t\t\t\tbreak;\n\t\n\t\t\t\tcase (\".\"):\n\t\t\t\t\tconcatenation ();\n\t\t\t\t\tbreak;\n\t\n\t\t\t\tcase (\"*\"):\n\t\t\t\t\tstar ();\n\t\t\t\t\tbreak;\n\t\n\t\t\t\tdefault :\n\t\t\t\t\tSystem.out.println(\"Unkown Symbol !\"+charAt);\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d3be4b59d53d3db8c279628236a71888", "score": "0.48240986", "text": "public final void mADDOP() throws RecognitionException {\n try {\n int _type = ADDOP;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // Simplegt.g:14928:6: ( ( ( '-' | '+' ) ) )\n // Simplegt.g:\n {\n if ( input.LA(1)=='+'||input.LA(1)=='-' ) {\n input.consume();\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "0a31e56440319f47ee2c3a403e6d6e93", "score": "0.48182574", "text": "public final void mPLUS() throws RecognitionException {\n try {\n final int _type = PLUS;\n final int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/madeen/Projects/Clonk/C4DT/C4DT/src/net/arctics/clonk/parser/landscapescript/LandscapeScript.g:215:7: ( '+' )\n // /Users/madeen/Projects/Clonk/C4DT/C4DT/src/net/arctics/clonk/parser/landscapescript/LandscapeScript.g:215:9: '+'\n {\n match('+'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "c7905b7f412494744e41d8f5b53cf1f9", "score": "0.48167145", "text": "@Override\n\t\tpublic Integer visit(REGEXP_CHAR r) {\n\t\t\treturn -1;\n\t\t}", "title": "" }, { "docid": "31161c68aa686762529b48fd92490b9c", "score": "0.4810338", "text": "public final EObject ruleExprAdd() throws RecognitionException {\n EObject current = null;\n\n Token lv_op_2_1=null;\n Token lv_op_2_2=null;\n EObject this_ExprBit_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:608:28: ( (this_ExprBit_0= ruleExprBit ( () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) ) ( (lv_right_3_0= ruleExprBit ) ) )* ) )\n // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:609:1: (this_ExprBit_0= ruleExprBit ( () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) ) ( (lv_right_3_0= ruleExprBit ) ) )* )\n {\n // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:609:1: (this_ExprBit_0= ruleExprBit ( () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) ) ( (lv_right_3_0= ruleExprBit ) ) )* )\n // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:610:5: this_ExprBit_0= ruleExprBit ( () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) ) ( (lv_right_3_0= ruleExprBit ) ) )*\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExprAddAccess().getExprBitParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleExprBit_in_ruleExprAdd1321);\n this_ExprBit_0=ruleExprBit();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_ExprBit_0; \n afterParserOrEnumRuleCall();\n \n }\n // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:618:1: ( () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) ) ( (lv_right_3_0= ruleExprBit ) ) )*\n loop9:\n do {\n int alt9=2;\n int LA9_0 = input.LA(1);\n\n if ( ((LA9_0>=24 && LA9_0<=25)) ) {\n alt9=1;\n }\n\n\n switch (alt9) {\n \tcase 1 :\n \t // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:618:2: () ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) ) ( (lv_right_3_0= ruleExprBit ) )\n \t {\n \t // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:618:2: ()\n \t // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:619:5: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getExprAddAccess().getExprAddLeftAction_1_0(),\n \t current);\n \t \n \t }\n\n \t }\n\n \t // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:624:2: ( ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) ) )\n \t // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:625:1: ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) )\n \t {\n \t // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:625:1: ( (lv_op_2_1= '+' | lv_op_2_2= '-' ) )\n \t // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:626:1: (lv_op_2_1= '+' | lv_op_2_2= '-' )\n \t {\n \t // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:626:1: (lv_op_2_1= '+' | lv_op_2_2= '-' )\n \t int alt8=2;\n \t int LA8_0 = input.LA(1);\n\n \t if ( (LA8_0==24) ) {\n \t alt8=1;\n \t }\n \t else if ( (LA8_0==25) ) {\n \t alt8=2;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return current;}\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 8, 0, input);\n\n \t throw nvae;\n \t }\n \t switch (alt8) {\n \t case 1 :\n \t // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:627:3: lv_op_2_1= '+'\n \t {\n \t lv_op_2_1=(Token)match(input,24,FOLLOW_24_in_ruleExprAdd1350); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_1, grammarAccess.getExprAddAccess().getOpPlusSignKeyword_1_1_0_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getExprAddRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_1, null);\n \t \t \n \t }\n\n \t }\n \t break;\n \t case 2 :\n \t // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:639:8: lv_op_2_2= '-'\n \t {\n \t lv_op_2_2=(Token)match(input,25,FOLLOW_25_in_ruleExprAdd1379); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_2, grammarAccess.getExprAddAccess().getOpHyphenMinusKeyword_1_1_0_1());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getExprAddRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_2, null);\n \t \t \n \t }\n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n\n\n \t }\n\n \t // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:654:2: ( (lv_right_3_0= ruleExprBit ) )\n \t // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:655:1: (lv_right_3_0= ruleExprBit )\n \t {\n \t // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:655:1: (lv_right_3_0= ruleExprBit )\n \t // ../com.robotoworks.mechanoid.sqlite/src-gen/com/robotoworks/mechanoid/sqlite/parser/antlr/internal/InternalSqliteModel.g:656:3: lv_right_3_0= ruleExprBit\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getExprAddAccess().getRightExprBitParserRuleCall_1_2_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleExprBit_in_ruleExprAdd1416);\n \t lv_right_3_0=ruleExprBit();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getExprAddRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"ExprBit\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop9;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "2e7fdbd93014a2f8ee4b799f6d0a34a4", "score": "0.4792795", "text": "private static String escapeForRegExpSearch(CharSequence str) {\n return str.toString().replaceAll(\"([/\\\\\\\\\\\\.\\\\*\\\\+\\\\?\\\\|\\\\(\\\\)\\\\[\\\\]\\\\{\\\\}$^])\", \"\\\\\\\\$1\");\n }", "title": "" }, { "docid": "d0fbccd777f51fac151173d017fa2c97", "score": "0.4783616", "text": "private boolean AddOp(){\r\n\r\n\t\tboolean success = skipErrors(nt.AddOp);\r\n\t\t\r\n\t\tif (lookAhead.inRHS1(nt.AddOp)){\r\n\t\t\tif (match(\"or\"))\r\n\t\t\t{\r\n\t\t\t\tparseInfo += \"*AddOp -> or\" + \"\\r\\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsuccess = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (lookAhead.inRHS2(nt.AddOp)){\r\n\t\t\tif (match(\"sub\"))\r\n\t\t\t{\r\n\t\t\t\tparseInfo += \"*AddOp -> -\" + \"\\r\\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsuccess = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (lookAhead.inRHS3(nt.AddOp)){\r\n\t\t\tif (match(\"add\"))\r\n\t\t\t{\r\n\t\t\t\tparseInfo += \"*AddOp -> +\" + \"\\r\\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsuccess = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsuccess = false;\r\n\t\t}\r\n\t\treturn success;\r\n\t}", "title": "" }, { "docid": "1cfafc2882a2698f2a99ad5b1c16dc10", "score": "0.47835597", "text": "public interface RegexConst {\n String LETTER = \"[a-zA-Z]\";\n String INTEGER = \"([+-]?[1-9]\\\\d*|0)\";\n String DIGITS = \"\\\\d+\";\n String DIGIT = \"\\\\d\";\n String NUMBER = \"\\\\d+(\\\\.\\\\d+)?\";\n String EMAIL = \"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\\\.[a-zA-Z]{2,6}\";\n String NEW_LINE = \"(\\r\\n|\\n)\";\n String ANY = \".*\";\n String START = \"^\";\n String END = \"$\";\n String OR = \"|\";\n String OCC_ZERO_OR_ONE = \"?\";\n String OCC_ZERO_OR_MORE = \"*\";\n String OCC_ONE_OR_MORE = \"+\";\n String OCC_TWO_OR_MORE = \"{2,}\";\n}", "title": "" }, { "docid": "a2480f57ee4eae2e455973efac2005bc", "score": "0.47778407", "text": "public final void mADD() throws RecognitionException {\n try {\n int _type = ADD;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Users\\\\Louisa\\\\Documents\\\\GitHub\\\\CIP\\\\Aufgabe4\\\\ChocoSolver\\\\src\\\\symbolpuzzle\\\\grammar\\\\SymbolRiddle_AST.g:48:5: ( '+' )\n // C:\\\\Users\\\\Louisa\\\\Documents\\\\GitHub\\\\CIP\\\\Aufgabe4\\\\ChocoSolver\\\\src\\\\symbolpuzzle\\\\grammar\\\\SymbolRiddle_AST.g:48:7: '+'\n {\n match('+'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "1f19445c62366408d91f6ee44d4eda1d", "score": "0.47740722", "text": "private Expr unary() throws QueryException {\n boolean minus = false;\n boolean found = false;\n do {\n skipWS();\n if(consume('-')) {\n minus ^= true;\n found = true;\n } else if(consume('+')) {\n found = true;\n } else {\n final Expr e = value();\n return found ? new Unary(input(), check(e, EVALUNARY), minus) : e;\n }\n } while(true);\n }", "title": "" }, { "docid": "81c8cb5a0151e4ab05f88d36638c80be", "score": "0.47706467", "text": "public final AntlrDatatypeRuleToken ruleOpAdd() throws RecognitionException {\r\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\r\n\r\n Token kw=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.xtext.onec/src-gen/org/xtext/onec/parser/antlr/internal/InternalOneCParser.g:3634:6: ( (kw= PlusSign | kw= HyphenMinus ) )\r\n // ../org.xtext.onec/src-gen/org/xtext/onec/parser/antlr/internal/InternalOneCParser.g:3635:1: (kw= PlusSign | kw= HyphenMinus )\r\n {\r\n // ../org.xtext.onec/src-gen/org/xtext/onec/parser/antlr/internal/InternalOneCParser.g:3635:1: (kw= PlusSign | kw= HyphenMinus )\r\n int alt100=2;\r\n int LA100_0 = input.LA(1);\r\n\r\n if ( (LA100_0==PlusSign) ) {\r\n alt100=1;\r\n }\r\n else if ( (LA100_0==HyphenMinus) ) {\r\n alt100=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 100, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt100) {\r\n case 1 :\r\n // ../org.xtext.onec/src-gen/org/xtext/onec/parser/antlr/internal/InternalOneCParser.g:3636:2: kw= PlusSign\r\n {\r\n kw=(Token)match(input,PlusSign,FOLLOW_PlusSign_in_ruleOpAdd8274); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n current.merge(kw);\r\n newLeafNode(kw, grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); \r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.xtext.onec/src-gen/org/xtext/onec/parser/antlr/internal/InternalOneCParser.g:3643:2: kw= HyphenMinus\r\n {\r\n kw=(Token)match(input,HyphenMinus,FOLLOW_HyphenMinus_in_ruleOpAdd8293); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n current.merge(kw);\r\n newLeafNode(kw, grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); \r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule();\r\n \r\n }\r\n }\r\n \r\n \tcatch (RecognitionException re) { \r\n \t recover(input,re); \r\n \t appendSkippedTokens();\r\n \t}\r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "2e9fc19e66b5916df35e223cf61902e7", "score": "0.47667733", "text": "public final void additiveExpression() throws RecognitionException {\n try { dbg.enterRule(\"additiveExpression\");\n if ( ruleLevel==0 ) {dbg.commence();}\n ruleLevel++;\n dbg.location(654, 1);\n\n try {\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:655:5: ( multiplicativeExpression ( ( '+' | '-' ) multiplicativeExpression )* )\n dbg.enterAlt(1);\n\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:655:9: multiplicativeExpression ( ( '+' | '-' ) multiplicativeExpression )*\n {\n dbg.location(655,9);\n pushFollow(FOLLOW_multiplicativeExpression_in_additiveExpression3288);\n multiplicativeExpression();\n _fsp--;\n if (failed) return ;\n dbg.location(655,34);\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:655:34: ( ( '+' | '-' ) multiplicativeExpression )*\n try { dbg.enterSubRule(142);\n\n loop142:\n do {\n int alt142=2;\n try { dbg.enterDecision(142);\n\n int LA142_0 = input.LA(1);\n\n if ( ((LA142_0>=104 && LA142_0<=105)) ) {\n alt142=1;\n }\n\n\n } finally {dbg.exitDecision(142);}\n\n switch (alt142) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:655:36: ( '+' | '-' ) multiplicativeExpression\n \t {\n \t dbg.location(655,36);\n \t if ( (input.LA(1)>=104 && input.LA(1)<=105) ) {\n \t input.consume();\n \t errorRecovery=false;failed=false;\n \t }\n \t else {\n \t if (backtracking>0) {failed=true; return ;}\n \t MismatchedSetException mse =\n \t new MismatchedSetException(null,input);\n \t dbg.recognitionException(mse);\n \t recoverFromMismatchedSet(input,mse,FOLLOW_set_in_additiveExpression3292); throw mse;\n \t }\n\n \t dbg.location(655,48);\n \t pushFollow(FOLLOW_multiplicativeExpression_in_additiveExpression3300);\n \t multiplicativeExpression();\n \t _fsp--;\n \t if (failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop142;\n }\n } while (true);\n } finally {dbg.exitSubRule(142);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n dbg.location(656, 2);\n\n }\n finally {\n dbg.exitRule(\"additiveExpression\");\n ruleLevel--;\n if ( ruleLevel==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "title": "" }, { "docid": "5ccd08d27cbd8b901d0ea18f79ac1791", "score": "0.47664848", "text": "String ValidarEntero(String texto) {\n\n String entero = \"\";\n boolean signo = false;\n for (char c : texto.toCharArray()) {\n if (c == '0' || c == '1' || c == '2' || c == '3' || c == '4' || c == '5' || c == '6' || c == '7' || c == '8' || c == '9') {\n signo = true;\n entero += c;\n } else if (!signo && c == '-') {\n entero += c;\n signo = true;\n } else if (!signo && c == '+') {\n signo = true;\n } else {\n break;\n }\n }\n if (entero.equals(\"-\") || entero.equals(\"\") || entero.isEmpty()) {\n entero = \"0\";\n }\n return entero;\n }", "title": "" }, { "docid": "0804ae8a37c756a85ee73a36f42b4b4b", "score": "0.47642857", "text": "private void bulidRegEx() {\n\n properties = \"\";\n properties += \"\\\\..+\";\n\n directives = \"\";\n directives += \"#.+\";\n\n references = \"\";\n references += \"(\\\\{|\\\\$).+\";\n\n\n }", "title": "" }, { "docid": "5434508f8fcf624da333d405cd4e0811", "score": "0.47614422", "text": "public int add(String string) {\n\n this.string = string; // Set the global string variable declared with the string variable pass as a parameter.\n\n Matcher matchMultiple = getText(\"(?<=\\\\[).+?(?=\\\\])\",string); // This is to find all delimiters of any length.\n\n while (matchMultiple.find()) { // Replace all delimiters found with a comma.\n this.string = this.string.replace(matchMultiple.group(),\",\");\n }\n\n Matcher matcherSingle = getText(\"(?<=//).+?(?=\\\\n)\",this.string); // Match a default delimiter of this kind, \"//...\\n\"\n\n while (matcherSingle.find()) { // Replace delimiter \"//...\\n\" with a comma.\"\n this.string = this.string.replace(matcherSingle.group(),\",\");\n }\n\n this.string = this.string.replace(\"//,\\n\",\"\"); // Replace \"//,\\n\" with an empty string.\n this.string = this.string.replace(\"\\n\",\",\"); // Replace \\n with a comma in a case where there are no delimiters.\n\n setMatchedList(getText(\"-\\\\d+|\\\\d+\",this.string)); // Append matched integers to matchedList instance variable.\n\n try { // Throw and catch an Exception if negative integers are found.\n if(negatives.length > 0) { throw new Exception();}\n } catch (Exception e2) {\n System.out.println(\"ERROR: negatives not allowed \" + Arrays.toString(negatives).replace(\"[\",\"\").replace(\"]\",\"\"));\n System.exit(0);\n }\n try { // Throw and catch an Exception if the input string is not in a required format.\n if (matchedList.length > 0) {\n if (!getText(\"\\\\d+.+\\\\d+$|\\\\d+$\",this.string).matches()) { throw new Exception();}\n }if (!string.startsWith(\"//\") && string.indexOf(\"//\") > 0) { throw new Exception();}\n } catch (Exception e1) {\n System.out.println(\"ERROR: invalid input\");\n System.exit(0);\n }\n\n return IntStream.of(matchedList).sum();\n }", "title": "" }, { "docid": "68891a49cad364517a17a0a8c1c5fa19", "score": "0.4761097", "text": "public R visit(PlusExpression n) {\n R _ret=null;\n if(itr == 1)\n System.out.print(\"PLUS \");\n n.f0.accept(this);\n n.f1.accept(this);\n n.f2.accept(this);\n return _ret;\n }", "title": "" }, { "docid": "c1a349aee9a54211be4801cb1e8f6c14", "score": "0.47602767", "text": "public final void mADD_OP() throws RecognitionException {\n try {\n int _type = ADD_OP;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // RuleSet.g:1790:7: ( '+' | '-' )\n // RuleSet.g:\n {\n if ( input.LA(1)=='+'||input.LA(1)=='-' ) {\n input.consume();\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n \n \n }\n \n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "6c856302464c0d938e1b1e4b144ac91f", "score": "0.4749266", "text": "public ArrayList<String> operation(ArrayList<String> m ) {\r\n\r\n\t\twhile(m.contains(\"+\")) {\r\n\t\t\t\r\n\t\t\tint indexOfThatSymbol = m.indexOf(\"+\");\r\n\t\t\t\r\n\t\t\tdouble num1 = Double.parseDouble(m.get(indexOfThatSymbol - 1));\r\n\t\t\tdouble num2 = Double.parseDouble(m.get(indexOfThatSymbol + 1));\r\n\t\t\tdouble num3 = (num1 + num2);\r\n\t\t\tif(num3 % 1 == 0) \r\n\t\t\t{\r\n\t\t\t\tString changed = Integer.toString((int) num3);\r\n\t\t\t\t\r\n\t\t\t\tm.subList((indexOfThatSymbol - 1), (indexOfThatSymbol + 2)).clear();\r\n\t\t\t\tm.add(indexOfThatSymbol - 1, changed);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\r\n\t\t\tm.subList((indexOfThatSymbol - 1), (indexOfThatSymbol + 2)).clear();\r\n\t\t\tm.add(indexOfThatSymbol - 1, String.format(\"%.5f\", num3));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn m;\r\n\r\n}", "title": "" }, { "docid": "99f08e270cd9b7d5d4c6f2972b5be0a7", "score": "0.4748516", "text": "boolean testPlusInPlus(Tester t) {\n\t try {\n\t ISpreadsheet s = new Spreadsheet();\n\t s.editContents(\"a10\", new CellRef(\"b10\"));\n\t s.editContents(\"a9\", new Num(12));\n\t s.editContents(\"b10\", new Num(50));\n\t s.editContents(\"c10\", new Plus(new Plus(new Num(40), new CellRef(\"b10\")), new Plus(new Num(10), new CellRef(\"a9\"))));\n\t \n\t return t.checkExpect(s.lookupValue(\"c10\"), 112);\n\t \n\t } catch (CyclicFormulaException e) {\n\t return t.checkExpect(false, true);\n\t } catch (EmptyCellException e) {\n\t return t.checkExpect(false, true);\n\t }\n}", "title": "" }, { "docid": "f0bd3d39b1d85af393ccc2d233730b50", "score": "0.4746903", "text": "@Test\n public void testSample() {\n assertEquals( \"Answer for expression '123?45-?=123?45' \" , 0 , Runes.solveExpression(\"123?45-?=123?45\") );\n }", "title": "" }, { "docid": "188fb76e196126d3bc369afcd41f08bc", "score": "0.4746244", "text": "private Collection<String> getTestParse2WithDependencyInfoWithMinusSignPatterns() {\n\t\tCollection<String> patterns = new ArrayList<String>();\n\t\tpatterns.add(\"{c-protein} := ki-ras;\");\n\t\tpatterns.add(\"{activation-keyword} := activated;\");\n\t\tpatterns.add(\"{c-activate} := [activator -dep:x] _ [trigger activation-keyword head:x];\");\n\t\treturn patterns;\n\t}", "title": "" }, { "docid": "891ecdb795cb8820959bbde819a92764", "score": "0.47433513", "text": "public final void unaryExpression() throws RecognitionException {\n try { dbg.enterRule(\"unaryExpression\");\n if ( ruleLevel==0 ) {dbg.commence();}\n ruleLevel++;\n dbg.location(662, 1);\n\n try {\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:663:5: ( '+' unaryExpression | '-' unaryExpression | '++' unaryExpression | '--' unaryExpression | unaryExpressionNotPlusMinus )\n int alt144=5;\n try { dbg.enterDecision(144);\n\n switch ( input.LA(1) ) {\n case 104:\n {\n alt144=1;\n }\n break;\n case 105:\n {\n alt144=2;\n }\n break;\n case 108:\n {\n alt144=3;\n }\n break;\n case 109:\n {\n alt144=4;\n }\n break;\n case Identifier:\n case FloatingPointLiteral:\n case CharacterLiteral:\n case StringLiteral:\n case HexLiteral:\n case OctalLiteral:\n case DecimalLiteral:\n case 33:\n case 40:\n case 55:\n case 56:\n case 57:\n case 58:\n case 59:\n case 60:\n case 61:\n case 62:\n case 64:\n case 65:\n case 68:\n case 69:\n case 70:\n case 110:\n case 111:\n case 112:\n case 113:\n {\n alt144=5;\n }\n break;\n default:\n if (backtracking>0) {failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"662:1: unaryExpression : ( '+' unaryExpression | '-' unaryExpression | '++' unaryExpression | '--' unaryExpression | unaryExpressionNotPlusMinus );\", 144, 0, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n\n } finally {dbg.exitDecision(144);}\n\n switch (alt144) {\n case 1 :\n dbg.enterAlt(1);\n\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:663:9: '+' unaryExpression\n {\n dbg.location(663,9);\n match(input,104,FOLLOW_104_in_unaryExpression3357); if (failed) return ;\n dbg.location(663,13);\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression3359);\n unaryExpression();\n _fsp--;\n if (failed) return ;\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:664:7: '-' unaryExpression\n {\n dbg.location(664,7);\n match(input,105,FOLLOW_105_in_unaryExpression3367); if (failed) return ;\n dbg.location(664,11);\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression3369);\n unaryExpression();\n _fsp--;\n if (failed) return ;\n\n }\n break;\n case 3 :\n dbg.enterAlt(3);\n\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:665:9: '++' unaryExpression\n {\n dbg.location(665,9);\n match(input,108,FOLLOW_108_in_unaryExpression3379); if (failed) return ;\n dbg.location(665,14);\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression3381);\n unaryExpression();\n _fsp--;\n if (failed) return ;\n\n }\n break;\n case 4 :\n dbg.enterAlt(4);\n\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:666:9: '--' unaryExpression\n {\n dbg.location(666,9);\n match(input,109,FOLLOW_109_in_unaryExpression3391); if (failed) return ;\n dbg.location(666,14);\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression3393);\n unaryExpression();\n _fsp--;\n if (failed) return ;\n\n }\n break;\n case 5 :\n dbg.enterAlt(5);\n\n // C:\\\\Users\\\\Aaron\\\\Desktop\\\\ANTLR\\\\grammars\\\\Java.g:667:9: unaryExpressionNotPlusMinus\n {\n dbg.location(667,9);\n pushFollow(FOLLOW_unaryExpressionNotPlusMinus_in_unaryExpression3403);\n unaryExpressionNotPlusMinus();\n _fsp--;\n if (failed) return ;\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n dbg.location(668, 5);\n\n }\n finally {\n dbg.exitRule(\"unaryExpression\");\n ruleLevel--;\n if ( ruleLevel==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "title": "" }, { "docid": "50ee040e59944d42dbf018bccf993ff0", "score": "0.47424355", "text": "public final String entryRuleadd_op_plus() throws RecognitionException {\r\n String current = null;\r\n\r\n AntlrDatatypeRuleToken iv_ruleadd_op_plus = null;\r\n\r\n\r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.algorithmsection/src-gen/org/openmodelica/modelicaml/editor/xtext/algorithm/parser/antlr/internal/InternalAlgorithmsection.g:3372:2: (iv_ruleadd_op_plus= ruleadd_op_plus EOF )\r\n // ../org.openmodelica.modelicaml.editor.xtext.algorithmsection/src-gen/org/openmodelica/modelicaml/editor/xtext/algorithm/parser/antlr/internal/InternalAlgorithmsection.g:3373:2: iv_ruleadd_op_plus= ruleadd_op_plus EOF\r\n {\r\n newCompositeNode(grammarAccess.getAdd_op_plusRule()); \r\n pushFollow(FOLLOW_ruleadd_op_plus_in_entryRuleadd_op_plus7039);\r\n iv_ruleadd_op_plus=ruleadd_op_plus();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleadd_op_plus.getText(); \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleadd_op_plus7050); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "262502c9aada5ed445a4356d1b5174f8", "score": "0.4734081", "text": "public final void mADD() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = ADD;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// Lex.g:63:5: ( '+' )\n\t\t\t// Lex.g:63:7: '+'\n\t\t\t{\n\t\t\tmatch('+'); \n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "title": "" }, { "docid": "7f242b5b4dee74856bdad4588d6f8c58", "score": "0.47290966", "text": "@org.junit.Test\n public void kNumericAdd4() {\n final XQuery query = new XQuery(\n \"1.1 + 2.2 eq 3.3\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(true)\n );\n }", "title": "" }, { "docid": "45a6d17014a69dcafe9039ea83d466d6", "score": "0.47269964", "text": "public void visit(PlusExpression n) {\n n.f0.accept(this);\n String arg1 = synthTempVar;\n n.f1.accept(this);\n n.f2.accept(this);\n String arg2 = synthTempVar;\n\n //<PlusExpression> = ST_INT\n inheritedType = SymbolType.ST_INT;\n\n String temp = newTempVar();\n vaporPrinter.print(temp + \" = Add(\" + arg1 + \" \" + arg2 + \")\");\n\n synthTempVar = temp;\n }", "title": "" }, { "docid": "1c7a69edfbb9453914a24f15e0851ec6", "score": "0.47187752", "text": "public Plus(String firstVariable, String secondVariable) {\r\n super(firstVariable, secondVariable);\r\n }", "title": "" }, { "docid": "71e6a316a2415c35e6a3580f540b822a", "score": "0.47146696", "text": "public static String format(String exp) {\n\t\t// Uncomment the following line to allow passed-in\n\t\t// expressions containing whitespace.\n\t\t// exp = exp.replaceAll(\"[\\\\s\\\\p{Z}]\",\"\");\n\n\t\t// This is used to build the formatted expression.\n\t\tStringBuilder formattedExp = new StringBuilder();\n\n\t\t// Now we analyze each Character of the expression one by one.\n\t\tfor (int i = 0; i < exp.length(); i++) {\n\t\t\t// Save the current Character.\n\t\t\tchar c = exp.charAt(i);\n\t\t\t// Save the Character before and after\n\t\t\t// the current Character of the expression\n\t\t\t// that is being analyzed.\n\t\t\tchar beforeC = ' ', afterC = ' ';\n\t\t\tif (i != 0) {\n\t\t\t\tbeforeC = exp.charAt(i - 1);\n\t\t\t}\n\t\t\tif (i != exp.length() - 1) {\n\t\t\t\tafterC = exp.charAt(i + 1);\n\t\t\t}\n\n\t\t\tif (Character.isDigit(c)) {\n\t\t\t\t// Continuously append the current Character to the StringBuilder\n\t\t\t\t// until an operator is reached.\n\t\t\t\twhile (i < exp.length() && Character.isDigit(exp.charAt(i))) {\n\t\t\t\t\tformattedExp.append(exp.charAt(i++));\n\t\t\t\t}\n\t\t\t\t// Since the last Character was not a number we need to\n\t\t\t\t// go back one position.\n\t\t\t\ti--;\n\t\t\t\t// Add a blank space after the number.\n\t\t\t\tformattedExp.append(' ');\n\t\t\t} else if (c == '-' && afterC == '-') {\n\t\t\t\t// This handles the following scenarios:\n\t\t\t\t// 1.) 1--1\n\t\t\t\t// 2.) 1--6^2\n\t\t\t\t// 3.) 1--(1+1)\n\t\t\t\tformattedExp.append('+').append(' ');\n\t\t\t\t// Skip the next '-' operator.\n\t\t\t\ti++;\n\t\t\t} else if (exp.length() > 3 && c == '-' && beforeC == ' ' && exp.charAt(i + 2) == '^'\n\t\t\t\t\t|| exp.length() > 3 && c == '-' && beforeC == '(' && exp.charAt(i + 2) == '^'\n\t\t\t\t\t|| i != exp.length() - 2 && c == '-' && exp.charAt(i + 2) == '^' && beforeC == '+') {\n\t\t\t\t// The above checks and handles the following scenarios:\n\t\t\t\t// 1.) -6^2 which should equate to -36.\n\t\t\t\t// 2.) (-6^2) which should also equate to -36.\n\t\t\t\t// 3.) 1+-6^2 which should equate to -35\n\t\t\t\t// This will exclude examples such as: 1--6^2 which was handled directly\n\t\t\t\t// above.\n\t\t\t\tformattedExp.append(\"-1\").append(' ');\n\t\t\t\tformattedExp.append('*').append(' ');\n\t\t\t} else if (c == '-' && beforeC == ' ' && afterC == '('\n\t\t\t\t\t|| c == '-' && isPartOfOperator(beforeC) && afterC == '(') {\n\t\t\t\t// The above checks and handles the following scenarios:\n\t\t\t\t// 1.) -(1+1) which equates to -2.\n\t\t\t\t// 2.) 1+-(1+1) which equates to 1 - 2.\n\t\t\t\t// To achieve this I chose to not append the operator itself but to\n\t\t\t\t// instead multiply the value within the parentheses by -1. To do this\n\t\t\t\t// we must append \"-1 *\" which means -(1+1) will turn into -1*(1+1).\n\t\t\t\tformattedExp.append(\"-1\").append(' ');\n\t\t\t\tformattedExp.append('*').append(' ');\n\t\t\t} else if (c == '-' && i == 0 || c == '-' && isPartOfOperator(beforeC) || c == '-' && beforeC == '('\n\t\t\t\t\t|| c == '-' && afterC == '(') {\n\t\t\t\t// The above check is to check whether its purpose is to be a\n\t\t\t\t// subtraction operator or to negate an integer value. If it is\n\t\t\t\t// {true} then the symbol is used to negate the following value\n\t\t\t\t// otherwise it is a subtraction operator which means that this\n\t\t\t\t// check is {false} and moves to the next else-if block.\n\n\t\t\t\t// The above checks for the following scenarios:\n\t\t\t\t// 1.) A '-' symbol is the first character of the expression\n\t\t\t\t// example: -2+1\n\t\t\t\t// 2.) A '-' symbol is found directly after an operator\n\t\t\t\t// example: 1+-2\n\t\t\t\t// 3.) A '-' symbol is found directly after an opening parentheses.\n\t\t\t\t// example 1+(-2+1)\n\t\t\t\t// Append the operator.\n\t\t\t\tformattedExp.append(c);\n\t\t\t\ti++;\n\t\t\t\t// Continuously append each digit of the number until the end\n\t\t\t\t// of the number is reached.\n\t\t\t\twhile (i < exp.length() && Character.isDigit(exp.charAt(i))) {\n\t\t\t\t\tformattedExp.append(exp.charAt(i++));\n\t\t\t\t}\n\t\t\t\t// Add a blank space after the number.\n\t\t\t\tformattedExp.append(' ');\n\t\t\t\ti--;\n\t\t\t} else if (c == '+' && i == 0 || c == '+' && isPartOfOperator(beforeC) || c == '+' && beforeC == '('\n\t\t\t\t\t|| c == '+' && afterC == '(' && i == 0) {\n\t\t\t\t// The above checks for the following (+) scenarios:\n\t\t\t\t// 1.) A '+' symbol is the first character of the expression\n\t\t\t\t// example: +2+1\n\t\t\t\t// 2.) A '+' symbol is found directly after an operator\n\t\t\t\t// example: 1-+2\n\t\t\t\t// 3.) A '+' symbol is found directly after an opening parentheses.\n\t\t\t\t// example 1+(+2+1)\n\n\t\t\t\t// Although some of the expressions this check helps correct may\n\t\t\t\t// be invalid we can use this to convert the expression to a valid\n\t\t\t\t// expression that we are assuming is what the user most likely\n\t\t\t\t// meant by simply removing the invalidly placed '+' operator.\n\n\t\t\t\t// If this is the case we simply skip this symbol because it\n\t\t\t\t// serves no reason purpose and has no impact on the outcome\n\t\t\t\t// of the solution.\n\t\t\t\tcontinue;\n\t\t\t} else if (isPartOfOperator(c)) {\n\t\t\t\t// If the next Character is an operator then we append it.\n\t\t\t\t// We also append the following Character if it to\n\t\t\t\t// is an operator. This accounts for:\n\t\t\t\t// 1.) >=\n\t\t\t\t// 2.) <=\n\t\t\t\t// 3.) &&\n\t\t\t\t// 4.) ||\n\t\t\t\t// 5.) ==\n\t\t\t\t// 6.) !=\n\t\t\t\twhile (i < exp.length() && isPartOfOperator(exp.charAt(i))) {\n\t\t\t\t\tformattedExp.append(exp.charAt(i++));\n\t\t\t\t\t// This accounts for not adding a negative or positive\n\t\t\t\t\t// symbol to the end of an operator.\n\t\t\t\t\tif (exp.charAt(i) == '-' || exp.charAt(i) == '+') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Since the last Character was not a operator or part of an\n\t\t\t\t// operator the we need to go back one position.\n\t\t\t\ti--;\n\t\t\t\t// Add a blank space after the operator.\n\t\t\t\tformattedExp.append(' ');\n\t\t\t} else if (c == '(' && Character.isDigit(beforeC)) {\n\t\t\t\t// Accounts for:\n\t\t\t\t// -5(8) which converts to -5 * ( 8 )\n\t\t\t\tformattedExp.append('*').append(' ');\n\t\t\t\tformattedExp.append(exp.charAt(i)).append(' ');\n\t\t\t\t\n\t\t\t} else if (c == '(' || c == ')') {\n\t\t\t\t// If the Character is part of a pair of parenthesis then\n\t\t\t\t// append it to the StringBuilder followed by a blank space.\n\t\t\t\tformattedExp.append(exp.charAt(i)).append(' ');\n\t\t\t\t\n\t\t\t} else if (Character.isLetter(c)) {\n\t\t\t\t// If the user is attempting to use variables in their infix expression then\n\t\t\t\t// print the following notifying the user that the infix expression is invalid.\n\t\t\t\tformattedExp.append(exp.charAt(i)).append(' ');\n\t\t\t} else {\n\t\t\t\t// If none of the above apply then the character must be an unrecognized symbol,\n\t\t\t\t// so we return an \"Invalid Expression Error\" message.\n\t\t\t\treturn \"Invalid Expression Error\";\t\t\t\n\t\t\t}\n\t\t}\n\n\t\t// Return the formatted expression as a String.\n\t\treturn formattedExp.toString();\n\t}", "title": "" }, { "docid": "3c80dc732ed40a6498177f1c73f71ed6", "score": "0.47078228", "text": "@Test\n public void testAdd2()\n {\n int actual = manipulatedString.add(\"1,1000\");\n assertEquals(1,actual);\n }", "title": "" }, { "docid": "2c0d0705b7338968e20a7a4327316d6d", "score": "0.47060782", "text": "public long addMe(String text) {\n char character;\n int sum = 0;\n int number;\n\n if (text == null) {\n return -1;\n } else {\n for (int n = 0; n < text.length(); n++) {\n character = text.charAt(n);\n\n if (Character.isDigit(character)) {\n number = Character.getNumericValue(character);\n sum += number;\n }\n }\n\n return sum;\n }\n\n }", "title": "" }, { "docid": "21b63f698cbd1d6d5a5089ade2ba832a", "score": "0.46986437", "text": "private Boolean isOperator(String s) {\n String operators = \"+-*/!\";\n if(!s.isEmpty() && operators.contains(s)) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "9ce63d543053166dd332d5b5e42edf28", "score": "0.46845442", "text": "public final void mPLUS() throws RecognitionException {\n try {\n int _type = PLUS;\n // /home/bigben/Desktop/Java.g:52:6: ( '+' )\n // /home/bigben/Desktop/Java.g:52:8: '+'\n {\n match('+'); \n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "title": "" }, { "docid": "1228d7aff7077687649b23f6295b8866", "score": "0.4683172", "text": "public boolean clearNumbers(String s) {\n Pattern pattern = Pattern.compile(\"^[-\\\\+]?[\\\\d]*$\");\n return pattern.matcher(s).matches();\n }", "title": "" }, { "docid": "21542f3f7384668a8a4a1d70b606c10f", "score": "0.46824902", "text": "@Test\r\n\tpublic void testParseOperator() {\r\n\t\tString s = \"+\";\r\n\t\tOperation obj1 = Operation.parseOperator(s);\r\n\t\tassertTrue(obj1 instanceof Addition); \r\n\t}", "title": "" }, { "docid": "d803b898ffc53b7f3f7d9933ff715ead", "score": "0.46647844", "text": "private static String replaceAllDigitsWithDelimiter(String source) {\n\n final String numRegex = \"((?<!/\\\\d{0,4}|:\\\\d{0,2})-*\\\\d+(?=$|\\\\s|a|p|z|,|-|\\\\Q.\\\\E))\";\n\n final int digitGroup = 1;\n\n Pattern pattern = Pattern.compile(numRegex);\n Matcher matcher = pattern.matcher(source);\n StringBuffer result = new StringBuffer();\n\n while (matcher.find()) {\n matcher.appendReplacement(result,\n START_DIGIT_DELIMITER + matcher.group(digitGroup)\n + END_DIGIT_DELIMITER);\n }\n\n return matcher.appendTail(result).toString();\n\n }", "title": "" }, { "docid": "9e3b07177bd0b72f4ecfdb414eaca390", "score": "0.46638232", "text": "public Plus(Expression first, Expression second) {\r\n super(first, second);\r\n }", "title": "" }, { "docid": "51809948061fb463320c5c6905afa0d4", "score": "0.4663394", "text": "private int nextExpParts() {\r\n\r\n\t\tif (tokens.isEmpty()) return 0;\r\n\r\n\t\tif (!nextTextIsAny(\"e\", \"E\")) return 0;\r\n\t\t\r\n\t\tif (typeAt(1) == IntNumber) return 1;\r\n\t\tif (textAtIsAny(1, \"-\", \"+\") && typeAt(2) == IntNumber) return 2;\r\n\t\t\r\n\t\treturn 0;\t\t\r\n\t}", "title": "" } ]