query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Asigna el valor que tiene la variable timeout.
public void setTimeout(double timeout){ this.timeout = timeout; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getTimeout();", "final Long getTimeoutValue()\n/* */ {\n/* 137 */ return this.timeout;\n/* */ }", "public long getTimeout() { return timeout; }", "public long GetTimeout() { return timeout; }", "public int getTimeout();", "int getTimeout();", "public int getTimeout() {\r\n return timeout;\r\n }", "public int getTimeout() {\n return timeout;\n }", "public long timeout(long timeout);", "public int getTimeout() {\n return params.getTimeout() * 1000;\n }", "public long getTimeout() {\n return timeout;\n }", "public long getTimeout() {\n return timeout;\n }", "public long getTimeout() {\n return timeout;\n }", "public int getTimeout() {\n\t\treturn (Integer)getObject(\"timeout\");\n\t}", "public void setTimeOut(int value) {\n this.timeOut = value;\n }", "public void setTimeout(Long value) {\r\n timeout = value;\r\n incompatibleWithSpawn |= timeout != null;\r\n }", "public Duration timeout() {\n return this.timeout;\n }", "public static int getTimeOut() {\n\t\tTIME_OUT = 10;\n\t\treturn TIME_OUT;\n\t}", "public int getTimeOut() {\n return timeOut;\n }", "public void setTimeout(Integer timeout) {\n\t\tthis.timeout = timeout;\n\t}", "public int getTimeOut()\r\n\t{\r\n\t\tString time = JOptionPane.showInputDialog(null, \"Please enter the timeout amount in milliseconds: \", \"Set Timeout\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t//Check to see if the entry was invalid\r\n\t\twhile(!isNumber(time))\r\n\t\t\ttime = JOptionPane.showInputDialog(null, \"You must enter a NUMBER. Please re-enter the timeout time in milliseconds: \", \"Set Timeout\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\r\n\t\treturn Integer.parseInt(time);\r\n\t}", "public org.apache.axis.types.UnsignedInt getTimeout() {\n return timeout;\n }", "public int getDelayedTimeout();", "@Property(displayName = \"Timeout\", description = \"Sets the amount of time that must pass in milliseconds\"\n\t\t\t+ \" before the reader stops looking for tags. If this value is too small, the reader will not \"\n\t\t\t+ \"read from all of its antennas. Because of this, it is recommended that the value be at least 500ms. \"\n\t\t\t+ \"\", writable = true, type = PropertyType.PT_INTEGER, minValue = \"\"\n\t\t\t+ \"500\", maxValue = \"16535\", defaultValue = \"1000\", category=\"Timeout\")\n\tpublic Integer getTimeout() {\n\t\treturn timeout;\n\t}", "public long getTimeoutInMilliseconds() {\n return timeoutInMilliseconds;\n }", "public LWTRTPdu timeout() throws IncorrectTransitionException;", "public void setTimeout(int timeout) {\r\n this.timeout = timeout;\r\n }", "int timeout();", "public void setTimeout(org.apache.axis.types.UnsignedInt timeout) {\n this.timeout = timeout;\n }", "public void setTimeout(int timeout) {\r\n\t\tthis.TIMEOUT = timeout;\r\n\t}", "public String getTimeOut() {\n return prop.getProperty(TIMEOUT_KEY);\n }", "public void setTimeout(int timeout);", "public void setTimeout( int timeout ) {\n this.timeout = timeout;\n }", "public void setTimeout(int _timeout) {\n if (timeout < 0)\n return;\n timeout = _timeout;\n }", "public TestTimeout getTimeout() {\n return timeout;\n }", "public void setTimeout(int timeout) {\n this.timeout = timeout;\n }", "public int getNortpTimeout();", "void setTimeout(@Nullable Duration timeout);", "public void setTimeout(final String timeout);", "public void setTimeout(long timeout)\r\n\t{\r\n\t\tthis.timeout = timeout;\r\n\t}", "int hardTimeout();", "public int sendTimeout(){\n return 0; //TODO codavaj!!\n }", "public void setTimeout(long timeout) {\n this.timeout = timeout;\n }", "public void setTimeout(long timeout) {\n this.timeout = timeout;\n }", "public void setTimeout(final long timeout);", "T setStartTimeout(Integer timeout);", "Integer getStartTimeout();", "public long getTimeout() {\r\n return configuration.getTimeout();\r\n }", "public int getTimeoutInSeconds() {\n return timeoutInSeconds;\n }", "public int explicitWait(){\n\t\tString time_out = null;\n\t\ttry {\n\t\t\ttime_out = new AutomationConfigurator().getTimeOut();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (time_out == null){\n\t\t\treturn default_timeout;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn Integer.parseInt(time_out);\n\t\t}\n\t}", "private void setTimedOut() {\n\t\tthis.timedOut.set(true);\n\t}", "public int getTIME_OUT() {\n\t\treturn TIME_OUT;\n\t}", "public void setTimeout(long timeout) {\n\t\tthis.timeout = timeout;\n\t}", "public int getDefaultTimeout() {\n return defaultTimeout;\n }", "void setTimeout(long timeoutInNanos);", "public Integer timeoutSeconds() {\n return this.timeoutSeconds;\n }", "public void onTimeout();", "public void setTimeout(final int timeout) {\n this.timeout = timeout;\n }", "protected void setTimeout() {\r\n\t\tTimeout timeout = new Timeout();\r\n\t\tt.schedule(timeout, TIMEOUT);\r\n\t}", "public int getHardwareTimeout();", "public int getIncTimeout();", "void setTimeout(long timeout) {\n if(timeout < 0) {\n throw new RuntimeException(buildMessage(\"Timeout value must be positive, not \" + timeout));\n }\n this.timeout = timeout;\n }", "public int getTimeoutInterval() {\n return timeoutInterval_;\n }", "public void resetTimeout(){\n this.timeout = this.timeoutMax;\n }", "public void setNortpTimeout(int seconds);", "public void setTimeoutLength(int timeout) {\n\t\tmyTimeoutLength = timeout;\n\t\tif (myPort == null) {\n\t\t\treturn;\n\t\t}\n\t\tmyPort.setTimeoutLength(timeout);\n\t}", "private void checkTimeout() {\n val timeout = config.getInt(\"timeout\");\n\n checkArgument(timeout >= 1000, \"timeout is less than 1000!\");\n }", "protected int getTimeoutInMs() {\n return this.properties.executionTimeoutInMilliseconds().get();\n }", "public void setTimeout(long t) {\n StepTimeout = t;\n }", "public void setTimeout (int timeout) {\n\tif (timeout >= 0)\n\t call.setTimeout (new Integer (timeout));\n }", "protected int maxTimeout() { return 15*1000*1000; }", "Future timeoutIn(long timeout, TimeUnit timeUnit);", "public void setTimeOut(long timeOut) {\n _timeOut = timeOut;\n }", "public void handleTimeout();", "public abstract void isTimeout(long ms);", "public long getExecutionTimeout() {\n \n // return it\n return executionTimeout;\n }", "@WithName(\"export.timeout\")\n @WithDefault(\"30s\")\n Duration exportTimeout();", "public int getResponseTimeOut()\n {\n return fResponseTimeOut;\n }", "public abstract void onTimeout();", "void timedOut();", "@Override\n public void onTimeout(TimeValue timeout) {\n run();\n }", "private static void timeout(String user, int time) { sendMessage(\"/timeout \" + user + \" \" + time); }", "public AutonDelay(double timeout) {\n super(\"autonDelay\");\n setTimeout(timeout);\n }", "boolean timedOut() {\n\treturn timedOut;\n }", "public void setTimeout(int newTimeout) {\n this.timeout = newTimeout;\n }", "@Test\n public void testLongTimeout() throws Exception {\n final int expectedTimeoutInSeconds = ((30 * 24) * 60) * 60;// 30 days.\n\n final long expectedLongValue = expectedTimeoutInSeconds * 1000L;\n Capture<Integer> capturedInt = new Capture<Integer>();\n // use a capture to make sure the setter is doing the right thing.\n mockSession.setMaxInactiveInterval(captureInt(capturedInt));\n expect(mockSession.getMaxInactiveInterval()).andReturn(expectedTimeoutInSeconds);\n replay(mockSession);\n HttpServletSession servletSession = new HttpServletSession(mockSession, null);\n servletSession.setTimeout(expectedLongValue);\n long timeoutInMilliseconds = servletSession.getTimeout();\n Assert.assertEquals(expectedLongValue, timeoutInMilliseconds);\n Assert.assertEquals(expectedTimeoutInSeconds, capturedInt.getValue().intValue());\n }", "public long getTimeout() {\n return StepTimeout;\n }", "public void setTimeout(int timeout) {\r\n\t\tconnTimeout = timeout;\r\n\t}", "protected void onTimeout() {\n }", "public int getEleMaxTimeOut(){\r\n\t\t String temp= rb.getProperty(\"eleMaxTimeOut\");\r\n\t\t return Integer.parseInt(temp);\r\n\t}", "public void setDelayedTimeout(int seconds);", "public String getOutTime3() {\n\treturn outTime3;\n }", "int getExpireTimeout();", "public int getInCallTimeout();", "public Long getDefaultTimeoutInSecs() {\n\t\treturn defaultTimeoutInSecs;\n\t}", "public long readTimeout(){\n return 0l; //TODO codavaj!!\n }", "public static int getLongPressTimeout() {\n return sLongPressTimeout;\n }", "public int receiveTimeout(){\n return 0; //TODO codavaj!!\n }", "public TimeoutException(long time) {\n\t\tduration = time;\n\t}", "public void setTimeout(final int timeout) {\r\n clock.setTimeout(timeout);\r\n }" ]
[ "0.7931364", "0.78780055", "0.7862992", "0.78387564", "0.7809909", "0.77927965", "0.77678746", "0.7703726", "0.76490563", "0.75297004", "0.750819", "0.750819", "0.750819", "0.7468566", "0.74351496", "0.7344381", "0.7334647", "0.72886854", "0.72718304", "0.7237564", "0.72346747", "0.7202614", "0.71854395", "0.71695966", "0.7162992", "0.7146974", "0.71029925", "0.70844376", "0.704653", "0.70428604", "0.7036673", "0.70133215", "0.70117337", "0.6999151", "0.69801986", "0.6976215", "0.6959048", "0.6955995", "0.6929697", "0.6923386", "0.69227135", "0.68899804", "0.6877595", "0.6877595", "0.68619996", "0.68482184", "0.68455917", "0.6791933", "0.67812914", "0.67741466", "0.67693156", "0.6763101", "0.67423916", "0.6722405", "0.66783535", "0.66779435", "0.6672511", "0.66468966", "0.66441536", "0.6637472", "0.66237384", "0.65712434", "0.6553796", "0.6546391", "0.65318584", "0.6529968", "0.6520071", "0.6498201", "0.6493695", "0.6493526", "0.64885604", "0.647962", "0.6476453", "0.64764327", "0.64707685", "0.64644736", "0.6453409", "0.6448261", "0.64309967", "0.6401357", "0.6378345", "0.6359473", "0.6348963", "0.6343375", "0.63337797", "0.63197154", "0.6302541", "0.629558", "0.6279294", "0.6254297", "0.6248724", "0.6223327", "0.62127775", "0.6212459", "0.6208566", "0.6196484", "0.617501", "0.61733264", "0.61689276", "0.6164273" ]
0.73814225
15
TODO Autogenerated method stub
public static void main(String[] args) { Scanner in = new Scanner(System.in); { System.out.print("Enter the amount of oil ordered, in gallons: "); //output to ask user test oil double oil = in.nextDouble(); //program waits and asks user for input if (oil >= 100) //if statement for oil greater than equal to 100 { int discount = 1; //Displays prompt if user enters a value 100 or greater double pricePerGallon = 325.00; double pricePerGallon2 = 3.25; System.out.println("Number of gallons ordered: " + oil + " - $" + pricePerGallon); System.out.println("Discount: " + discount + "% - $" + pricePerGallon2); double total = pricePerGallon - pricePerGallon2; System.out.println("Your total charge is: $" + total); } else if (oil >= 200) //if statement for oil greater than or equal to 200 { int discount2 = 2; //Displays prompt if user enters a value of 200 or greater double pricePerGallon = 650.00; double pricePerGallon2 = 6.50; System.out.println("Number of gallons ordered: " + oil + " - $" + pricePerGallon); System.out.println("Discount: " + discount2 + "% - $" + pricePerGallon2); double total = pricePerGallon - pricePerGallon2; System.out.println("Your total charge is: $" + total); } else if (oil >= 300) //if statement for oil greater than or equal to 300 { int discount3 = 3; //Displays prompt if user enters a value 300 or greater double pricePerGallon = 975.00; double pricePerGallon2 = 9.75; System.out.println("Number of gallons ordered: " + oil + " - $" + pricePerGallon); System.out.println("Discount: " + discount3 + "% - $" + pricePerGallon2); double total = pricePerGallon - pricePerGallon2; System.out.println("Your total charge is: $" + total); } else if (oil >= 400) //if statement for oil greater than or equal to 400 { int discount4 = 4; //Displays prompt if user enters a value 400 or greater double pricePerGallon = 1300.00; double pricePerGallon2 = 13; System.out.println("Number of gallons ordered: " + oil + " - $" + pricePerGallon); System.out.println("Discount: " + discount4 + "% - $" + pricePerGallon2); double total = pricePerGallon - pricePerGallon2; System.out.println("Your total charge is: $" + total); } else if (oil >= 500) //if statement for oil greater than or equal to 500 { int discount5 = 5; //Displays prompt if user enters a value 500 or greater double pricePerGallon = 1625.00; double pricePerGallon2 = 16.25; System.out.println("Number of gallons ordered: " + oil + " - $" + pricePerGallon); System.out.println("Discount: " + discount5 + "% - $" + pricePerGallon2); double total = pricePerGallon - pricePerGallon2; System.out.println("Your total charge is: $" + total); } else { System.out.print("Have a great day"); //Displays message if the input of oil is less than 100 } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Map section = ConfigProvider.getConfigSectionValue(this.config.get("teams." + team + ".generators"), true);
public Location getGeneratorLocation(String team) { double x = this.getDouble("teams." + team + ".generator.x"); double y = this.getDouble("teams." + team + ".generator.y"); double z = this.getDouble("teams." + team + ".generator.z"); return new Location(BedWars.world, x, y, z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getConfigName();", "ConfigBlock getConfig();", "public IConfigurationElement getCommandLineGeneratorElement();", "public String getConfig();", "public Config getConfig();", "String[] getGenerators();", "public abstract String getConfig();", "public IConfigurationElement getDependencyGeneratorElement();", "@Config.LoadPolicy(Config.LoadType.MERGE)\[email protected]({\n \"system:properties\",\n \"classpath:application.properties\"\n})\npublic interface ProjectConfig extends Config {\n\n @Key(\"app.hostname\")\n String hostname();\n\n @Key(\"browser.name\")\n @DefaultValue(\"chrome\")\n String browser();\n\n}", "public String getConfigurationValue(String name);", "public static void generateCustomGameConfiguration() {\n // GameConfig.getInstance().setMapWidthX(20);\n // GameConfig.getInstance().setMapHeightY(20);\n // GameConfig.getInstance().setMaxEnergyPirateValue(100);\n // GameConfig.getInstance().setMonkeyErraticSpeed(1000);\n // GameConfig.getInstance().setMonkeyHunterSpeed(750);\n // GameConfig.getInstance().setRumEnergyValue(10);\n // GameConfig.getInstance().setTimeRumVisibility(10000);\n // GameConfig.getInstance().setRumList(Brain.getInstance().getObjectManager().getRumList());\n // GameConfig.getInstance().setSquaresList(Brain.getInstance().getMapManager().getMap().getSquareList());\n // ArrayList<Monkey> monkeyArrayList = new ArrayList<Monkey>();\n // for(int i=0;i<10;i++) {\n // if (i % 2 == 0) {\n // monkeyArrayList.add(new Monkey(PositionUtils.getSpawnPosition(\n // Map.getInstance().getGroundSquareList(),\n // CharacterManager.getInstance(Brain.getInstance()).getCharacterList(),\n // ObjectManager.getInstance(Brain.getInstance()).getObjectList()\n // ), Monkey.MonkeyType.ERRATIC));\n // } else {\n // monkeyArrayList.add(new Monkey(PositionUtils.getSpawnPosition(\n // Map.getInstance().getGroundSquareList(),\n // CharacterManager.getInstance(Brain.getInstance()).getCharacterList(),\n // ObjectManager.getInstance(Brain.getInstance()).getObjectList()\n // ), Monkey.MonkeyType.HUNTER));\n // }\n // }\n // GameConfig.getInstance().setMonkeyList(monkeyArrayList);\n // for(int i=0;i< Brain.getInstance().getMapManager().getMap().getSquareList().size();i++) {\n // for (int j = 0; j < Brain.getInstance().getMapManager().getMap().getSquareList().get(i).size(); j++) {\n // if (i == 0 || j==0 || i == GameConfig.getInstance().getMapWidthX()-1\n // || j == GameConfig.getInstance().getMapHeightY()-1) {\n // Brain.getInstance().getMapManager().getMap().getSquareList().get(i).get(j)\n // .setSquareType(Square.SquareType.SEA);\n // }else{\n // Brain.getInstance().getMapManager().getMap().getSquareList().get(i).get(j)\n // .setSquareType(Square.SquareType.GROUND);\n // }\n // }\n // }\n // GameConfig.getInstance().setSquaresList(Brain.getInstance().getMapManager().getMap().getSquareList());\n // saveGameConfiguration();\n }", "public p getConfig() {\n return c.K();\n }", "RootConfig getConfig();", "public PerWorldConfig getConfig(World world){\n \t\treturn config.get(world);\n \t}", "public WorldConfig getWorldConfig(World grabfor) {\n\t\tif (this.SingleWorldConfig != null)\n\t\t\treturn SingleWorldConfig;\n\t\tString worldName = grabfor.getName();\n\n\t\t// if it's not in the hashmap...\n\t\tif (!WorldCfg.containsKey(worldName)) {\n\t\t\t// special code: it's possible a configuration might already exist\n\t\t\t// for this file, so we'll\n\t\t\t// check\n\t\t\tString checkyamlfile = WorldConfig.getWorldConfig(worldName);\n\t\t\t// if it exists...\n\t\t\tif (new File(checkyamlfile).exists()) {\n\t\t\t\t// attempt to load the configuration from the given file.\n\t\t\t\tYamlConfiguration existingcfg = YamlConfiguration.loadConfiguration(new File(checkyamlfile));\n\t\t\t\tYamlConfiguration outConfiguration = new YamlConfiguration();\n\t\t\t\t// place it in the hashmap.\n\t\t\t\tWorldCfg.put(worldName, new WorldConfig(worldName, existingcfg, outConfiguration));\n\t\t\t\t// try to save it. this can error out for who knows what reason.\n\t\t\t\t// If it does, we'll\n\t\t\t\t// squirt the issue to the log.\n\t\t\t\ttry {\n\t\t\t\t\toutConfiguration.save(new File(checkyamlfile));\n\t\t\t\t} catch (IOException iex) {\n\t\t\t\t\tGriefPrevention.instance.getLogger().log(Level.SEVERE, \"Failed to save World Config for world \" + worldName);\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// if the file doesn't exist, then we will go ahead and create a\n\t\t\t\t// new configuration.\n\t\t\t\t// set the input Yaml to default to the template.\n\t\t\t\t// if the template file exists, load it's configuration and use\n\t\t\t\t// the result as useSource.\n\t\t\t\t// Otherwise, we create a blank configuration.\n\t\t\t\tDebugger.Write(\"Failed to find world configuration for World \" + worldName, DebugLevel.Errors);\n\t\t\t\tFile TemplFile = new File(TemplateFile);\n\t\t\t\tFileConfiguration useSource = null;\n\t\t\t\tif (TemplFile.exists()) {\n\t\t\t\t\tuseSource = YamlConfiguration.loadConfiguration(TemplFile);\n\t\t\t\t} else {\n\t\t\t\t\tDebugger.Write(\"Template file \\\"\" + TemplateFile + \" \\\"Not Found.\", DebugLevel.Errors);\n\t\t\t\t\tuseSource = new YamlConfiguration();\n\t\t\t\t}\n\n\t\t\t\t// The target save location.\n\t\t\t\tFileConfiguration Target = new YamlConfiguration();\n\t\t\t\t// place it in the hashmap.\n\t\t\t\tWorldCfg.put(worldName, new WorldConfig(grabfor.getName(), useSource, Target));\n\t\t\t\ttry {\n\t\t\t\t\tTarget.save(new File(checkyamlfile));\n\t\t\t\t} catch (IOException ioex) {\n\t\t\t\t\tGriefPrevention.instance.getLogger().log(Level.SEVERE, \"Failed to write world configuration to \" + checkyamlfile);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// save target\n\t\t}\n\t\t// after the above logic, we know it's in the hashmap, so return that.\n\t\treturn WorldCfg.get(worldName);\n\n\t}", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "String getConfigFileName();", "public Config(HG plugin)\r\n/* 38: */ {\r\n/* 39:46 */ if (!new File(plugin.getDataFolder(), \"config.yml\").exists())\r\n/* 40: */ {\r\n/* 41:47 */ Util.log(\"Config not found. Generating default config!\");\r\n/* 42:48 */ plugin.saveDefaultConfig();\r\n/* 43: */ }\r\n/* 44:51 */ config = plugin.getConfig().getRoot();\r\n/* 45:52 */ config.options().copyDefaults(true);\r\n/* 46:53 */ plugin.reloadConfig();\r\n/* 47:54 */ config = plugin.getConfig();\r\n/* 48: */ \r\n/* 49:56 */ spawnmobs = config.getBoolean(\"settings.spawn-mobs\");\r\n/* 50:57 */ spawnmobsinterval = config.getInt(\"settings.spawn-mobs-interval\") * 20;\r\n/* 51:58 */ freeroam = config.getInt(\"settings.free-roam\");\r\n/* 52:59 */ trackingstickuses = config.getInt(\"settings.trackingstick-uses\");\r\n/* 53:60 */ playersfortrackingstick = config.getInt(\"settings.players-for-trackingstick\");\r\n/* 54:61 */ maxchestcontent = config.getInt(\"settings.max-chestcontent\");\r\n/* 55:62 */ teleAtEnd = config.getBoolean(\"settings.teleport-at-end\");\r\n/* 56:63 */ maxTeam = config.getInt(\"settings.max-team-size\");\r\n/* 57:64 */ giveReward = config.getBoolean(\"reward.enabled\");\r\n/* 58:65 */ cash = config.getInt(\"reward.cash\");\r\n/* 59:66 */ maxTeam = config.getInt(\"settings.max-team-size\");\r\n/* 60:67 */ giveReward = config.getBoolean(\"reward.enabled\");\r\n/* 61:68 */ cash = config.getInt(\"reward.cash\");\r\n/* 62:69 */ breakblocks = config.getBoolean(\"rollback.allow-block-break\");\r\n/* 63:70 */ blocks = config.getIntegerList(\"rollback.editable-blocks\");\r\n/* 64:71 */ randomChest = config.getBoolean(\"random-chest.enabled\");\r\n/* 65:72 */ randomChestInterval = config.getInt(\"random-chest.interval\") * 20;\r\n/* 66:73 */ randomChestMaxContent = config.getInt(\"random-chest.max-chestcontent\");\r\n/* 67:75 */ if (giveReward) {\r\n/* 68: */ try\r\n/* 69: */ {\r\n/* 70:77 */ Vault.setupEconomy();\r\n/* 71: */ }\r\n/* 72: */ catch (NoClassDefFoundError e)\r\n/* 73: */ {\r\n/* 74:79 */ Util.log(\"Unable to setup vault! Rewards will not be given out..\");\r\n/* 75:80 */ giveReward = false;\r\n/* 76: */ }\r\n/* 77: */ }\r\n/* 78:84 */ ItemStack i = new ItemStack(Material.FIREWORK, 64);\r\n/* 79:85 */ FireworkMeta fm = (FireworkMeta)i.getItemMeta();\r\n/* 80:86 */ List<Color> c = new ArrayList();\r\n/* 81:87 */ c.add(Color.ORANGE);\r\n/* 82:88 */ c.add(Color.RED);\r\n/* 83:89 */ FireworkEffect e = FireworkEffect.builder().flicker(true).withColor(c).withFade(c).with(FireworkEffect.Type.BALL_LARGE).trail(true).build();\r\n/* 84:90 */ fm.addEffect(e);\r\n/* 85:91 */ fm.setPower(3);\r\n/* 86:92 */ i.setItemMeta(fm);\r\n/* 87: */ \r\n/* 88:94 */ firework = i;\r\n/* 89: */ }", "private static ConfigSource config()\n {\n return CONFIG_MAPPER_FACTORY.newConfigSource()\n .set(\"type\", \"mailchimp\")\n .set(\"auth_method\", \"api_key\")\n .set(\"apikey\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"access_token\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"list_id\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"email_column\", \"email\")\n .set(\"fname_column\", \"fname\")\n .set(\"lname_column\", \"lname\");\n }", "@Override\n\tpublic Map<String, String> getConfig() {\n\t\treturn null;\n\t}", "private String generateConfigurationString() {\n\t\tStringBuilder configuration = new StringBuilder();\n\t\tconfigurationHolder.entrySet().stream().forEach(line -> {\n\t\t\tconfiguration.append(line.getKey()+\"=\"+line.getValue()+\"\\n\");\n\t\t});\n\t\treturn configuration.toString();\n\t}", "public abstract OptionGroup getMapGeneratorOptions();", "public abstract OptionGroup getMapGeneratorOptions();", "EventWriterConfig getConfig();", "int getGenerations();", "private void generateConfig() \n {\n Random randomSpin = new Random();\n //System.out.println(\"Generated lattice looks like this:\");\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < m; j++) {\n if (randomSpin.nextDouble() < 0.5) {\n lattice[i][j] = -1; \n } else {\n lattice[i][j] = 1;\n }\n // System.out.printf(\"%d \", lattice[i][j]);\n }\n // System.out.println();\n\n }\n }", "GameConfiguration getGameConfiguration();", "public Parameters getConfigParameters();", "@Test\n public void testDetectConfigurationConfig() throws Exception {\n\n Config config = ConfigFactory.load(\"componentTest\").getConfig(\"configuredComponent\");\n\n ComponentConfigurator<ComponentConfiguration> configurator = new ComponentConfigurator<>(ComponentConfiguration.class);\n\n ComponentConfiguration testPojo = mapper.readValue(config.root().render(ConfigRenderOptions.concise()), ComponentConfiguration.class);\n\n assert(testPojo != null);\n\n ComponentConfiguration configuredPojo = configurator.detectConfiguration(config);\n\n assert(configuredPojo != null);\n\n Assert.assertEquals(configuredPojo,testPojo);\n\n }", "@Override\n\tpublic void visit(TaskyieldDirective n) {\n\t\tcfgNode = n;\n\t}", "public String getConfig() {\n\t\treturn(config);\n\t}", "static Properties getConfig()\n {\n return(config);\n }", "private void ReadConfig()\n {\n try\n {\n Yaml yaml = new Yaml();\n\n BufferedReader reader = new BufferedReader(new FileReader(confFileName));\n\n yamlConfig = yaml.loadAll(reader);\n\n for (Object confEntry : yamlConfig)\n {\n //System.out.println(\"Configuration object type: \" + confEntry.getClass());\n\n Map<String, Object> confMap = (Map<String, Object>) confEntry;\n //System.out.println(\"conf contents: \" + confMap);\n\n\n for (String keyName : confMap.keySet())\n {\n //System.out.println(keyName + \" = \" + confMap.get(keyName).toString());\n\n switch (keyName)\n {\n case \"lineInclude\":\n\n for ( String key : ((Map<String, String>) confMap.get(keyName)).keySet())\n {\n lineFindReplace.put(key, ((Map<String, String>) confMap.get(keyName)).get(key).toString());\n }\n\n lineIncludePattern = ConvertToPattern(lineFindReplace.keySet().toString());\n\n break;\n case \"lineExclude\":\n lineExcludePattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n case \"fileExclude\":\n fileExcludePattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n case \"fileInclude\":\n fileIncludePattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n case \"dirExclude\":\n dirExcludePattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n case \"dirInclude\":\n dirIncludePattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n case \"urlPattern\":\n urlPattern = ConvertToPattern(confMap.get(keyName).toString());\n break;\n }\n }\n }\n\n } catch (Exception e)\n {\n System.err.format(\"Exception occurred trying to read '%s'.\", confFileName);\n e.printStackTrace();\n }\n }", "public void config(Group[] group) {\n\n }", "default Component getConfigComponent()\r\n {\r\n return null;\r\n }", "@Test\n public void testConfigurationBuilderProvider()\n throws ConfigurationException\n {\n factory.addProperty(\"override.configuration[@fileName]\", TEST_FILE\n .getAbsolutePath());\n CombinedConfiguration cc = factory.getConfiguration(false);\n assertEquals(\"Wrong number of configurations\", 1, cc\n .getNumberOfConfigurations());\n checkProperties(cc);\n }", "private void config() {\n\t}", "Collection<String> readConfigs();", "Factory getFactory()\n {\n return configfile.factory;\n }", "@Override\n public Map<String, ConfiguredVariableItem> getConfiguration() {\n return config;\n }", "String findConfigInfoAggrIsOrdered();", "void setup(Map<String, Object> cfg);", "public Object\tgetConfiguration();", "C getConfiguration();", "@Config.LoadPolicy(Config.LoadType.MERGE)\[email protected]({\n \"classpath:test.properties\",\n \"system:properties\",\n \"system:env\"})\npublic interface UserConfiguration extends Config {\n\n @DefaultValue(\"default_Name\")\n @Key(\"user.name\")\n String name();\n @Key(\"user.email\")\n String email();\n @Key(\"user.password\")\n String password();\n}", "private static Path getConfig(String modName)\n\t{\n\t\treturn Paths.get(\"config\"+File.separator+modName+\".cfg\").toAbsolutePath();\n\t}", "@Test\n public void testGetConfig() throws Exception {\n\n String value = service.getConfig();\n assertEquals(\"training\", value);\n }", "protected IDAOConfigs getDaoGenConfig(URL argUrl) {\r\n\t\tIDAOConfigs daoGenConfig = null;\r\n\t\tList<IConfigObject> configs = getConfigs(argUrl);\r\n\t\tif (!configs.isEmpty()) {\r\n\t\t\tdaoGenConfig = DAOConfigs.createInstance();\r\n\r\n\t\t\tfor (IConfigObject config : configs) {\r\n\t\t\t\tdaoGenConfig.setConfigObject(null, config);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn daoGenConfig;\r\n\t}", "public void printConfig();", "private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }", "public interface IConfigurationProvider {\r\n String get(String path);\r\n}", "public String getConfiguration(){\n\t\treturn this.config;\n\t}", "ConfigGenerator(Path copy, Path paste)\n\t{\n\t\tcopyPath = copy;\n\t\tpastePath = paste;\n\t}", "@Override\n\tpublic Properties getConfig() {\n\t\treturn null;\n\t}", "@Override\n public ConfigValue getConfigValue(String propertyName) {\n return passedCfg.getConfigValue(propertyName);\n }", "public String getConfigName () {\n return this.configName;\n }", "public void loadConfig() {\n\t}", "public interface IConfigManager {\n\n\tpublic void loadConfig();\n\n\tpublic List<CalcTemplate> getTemplates();\n\t\n\tpublic CalcTemplate getTemplateByName(String templateName);\n\n\t\n\n}", "public String getgenMgr() {\n\t\treturn _genMgr;\n\t}", "public String get(String key) {\n\t\tInstant start = Instant.now();\n\t\tString value = getConfig(key);\n\t\tLOGGER.debug(\"Access to config {} to get {} took {}\", uniqueInstance.instanceUUID, key, Duration.between(start, Instant.now()));\t\t\n\t\treturn value;\n\t}", "public interface PathGenerator {\n /**\n * Generates path for the given configuration.\n * @param configuration the configuration to generate path for.\n * @return the path.\n */\n String path(Configuration configuration);\n}", "private static Config defineConfig(RunSettings settings) {\r\n\t\tConfig config = ConfigUtils.createConfig();\r\n\r\n\t\t// set number of iterations\r\n\t\tconfig.controler().setLastIteration( 2 );\r\n\r\n\t\t// able or enable signals and lanes\r\n\t\tconfig.qsim().setUseLanes( settings.isUseLanes() );\r\n\t\tif(settings.isUseSignals()){\r\n\t\t\tSignalSystemsConfigGroup signalConfigGroup = ConfigUtils.addOrGetModule(config, SignalSystemsConfigGroup.GROUP_NAME,SignalSystemsConfigGroup.class);\r\n\t\t\tsignalConfigGroup.setUseSignalSystems(true);\r\n\t\t}\r\n\t\t\r\n\t\t// set brain exp beta\r\n\t\tconfig.planCalcScore().setBrainExpBeta( 20 );\r\n\r\n\t\t// choose between link to link and node to node routing\r\n\t\tif(settings.isUseLink2Link()){\r\n\t\t\tconfig.controler().setLinkToLinkRoutingEnabled( true );\r\n\t\t\tconfig.travelTimeCalculator().setCalculateLinkToLinkTravelTimes(true);\r\n\t\t\t// link2link currently does not work for separate modes\r\n\t\t\tconfig.travelTimeCalculator().setSeparateModes(false);\r\n\t\t}\r\n\t\t\r\n\t\tconfig.travelTimeCalculator().setCalculateLinkTravelTimes(true);\r\n\t\t\r\n\t\t// set travelTimeBinSize\r\n\t\tconfig.travelTimeCalculator().setTraveltimeBinSize( 900 );\r\n\t\t\r\n\t\tconfig.travelTimeCalculator().setTravelTimeCalculatorType(\r\n\t\t\t\tTravelTimeCalculatorType.TravelTimeCalculatorHashMap.toString());\r\n\t\t// hash map and array produce same results. only difference: memory and time.\r\n\t\t// for small time bins and sparse values hash map is better. theresa, may 2015\r\n\t\t\r\n\t\t// define strategies:\r\n\t\t{\r\n\t\t\tStrategySettings strat = new StrategySettings() ;\r\n\t\t\tstrat.setStrategyName( DefaultStrategy.ReRoute.toString() );\r\n\t\t\tstrat.setWeight( 0.1 );\r\n\t\t\tconfig.strategy().addStrategySettings(strat);\r\n\t\t}\r\n\t\t{\r\n\t\t\tStrategySettings strat = new StrategySettings() ;\r\n\t\t\tstrat.setStrategyName( DefaultSelector.ChangeExpBeta.toString() );\r\n\t\t\tstrat.setWeight( 0.9 ) ;\r\n\t\t\tstrat.setDisableAfter( config.controler().getLastIteration() );\r\n\t\t\tconfig.strategy().addStrategySettings(strat);\r\n\t\t}\r\n\t\t\r\n\t\tconfig.controler().setOutputDirectory(OUTPUT_DIR);\r\n\t\tconfig.controler().setOverwriteFileSetting(OverwriteFileSetting.overwriteExistingFiles);\t\t\r\n\t\t// note: the output directory is defined in createOutputDir(...) after all adaptations are done\r\n\t\t\r\n\t\tconfig.controler().setWriteEventsInterval(0);\r\n\t\tconfig.controler().setWritePlansInterval(0);\r\n\t\tconfig.controler().setWriteSnapshotsInterval(0);\r\n\t\tconfig.controler().setCreateGraphs(false);\r\n\t\t\r\n\t\t//set StuckTime\r\n\t\tconfig.qsim().setStuckTime(3600 * 10.);\r\n\t\t\r\n\t\tconfig.qsim().setUsingFastCapacityUpdate(false);\r\n\t\t\r\n\t\tActivityParams dummyAct = new ActivityParams(\"dummy\");\r\n\t\tdummyAct.setTypicalDuration(8 * 3600);\r\n\t\tconfig.planCalcScore().addActivityParams(dummyAct);\r\n\t\t\r\n\t\treturn config;\r\n\t}", "public void setCommandLineGeneratorElement(IConfigurationElement element);", "public StepConfig getConfig() {\n StepConfig stepConfig = new StepConfig();\n stepConfig.setEnableTickCallback(true);\n stepConfig.setRunningPeriodicDelay(5);//10 Seconds\n stepConfig.setMonitorEnabledForStep(true);\n stepConfig.setRunningPeriodicDelayUnit(TimeUnit.SECONDS);\n stepConfig.setMonitorEmmitTimeout(10);\n return stepConfig;\n }", "abstract ConfigDescription getDescription();", "public ConfigProvider getConfig() {\n return config;\n }", "public abstract String getConfigElementName();", "public interface Config {\n\n /**\n * Converts the config into a Map\n *\n * @param deep If true, instead of putting Maps for subconfigs,\n * use the full path using the separator character to split\n * @return This config as a Map\n */\n Map<String, Object> getValues(boolean deep);\n\n /**\n * @param path The path to check\n * @return If the config contains an item at path\n */\n boolean contains(String path);\n\n /**\n * Load the values from the map into this config.\n *\n * @param values The map to load in.\n */\n default void setAll(Map<String, Object> values) {\n for (String path : values.keySet()) {\n set(path, values.get(path));\n }\n }\n\n /**\n * Sets the value at path to value\n *\n * @param path The path to put the value\n * @param value The value\n * @return The modified config object, to allow for chain calls\n */\n Config set(String path, Object value);\n\n default void setAll(Config values) {\n for (String path : values.getKeys(true)) {\n set(path, values.get(path));\n }\n }\n\n /**\n * @param deep Should full paths be returned for keys in subconfigs, separated by the separator character?\n * @return The keys that have values in this config\n */\n Set<String> getKeys(boolean deep);\n\n /**\n * Finds and retrieves the object at the given path. If the path is empty, returns this object.\n *\n * @param path The path of the object\n * @return The object at the given path, or null if not found\n */\n default Object get(String path) {\n return get(path, null);\n }\n\n /**\n * Gets the raw value this config contains at path, returning the placeholder def is nothing is found.\n *\n * @param path The path to get the value at\n * @param def The placeholder if no value is found at path, e.g. {@code null}\n * @return The raw object contained at path, or def if nothing is there.\n */\n Object get(String path, Object def);\n\n /**\n * @return The separator character.\n */\n char getSeparator();\n\n /**\n *\n * @return toString() of the object at the path, or null if there is none\n */\n default String getString(String path) {\n return getString(path, null);\n }\n\n /**\n *\n * @return toString() of the object at the path, or def if there is none\n */\n default String getString(String path, String def) {\n Object obj = get(path);\n\n if (obj != null) return obj.toString();\n else return def;\n }\n\n /**\n *\n * @return If there is a String stored at the given path\n */\n default boolean isString(String path) {\n return get(path) instanceof String;\n }\n\n /**\n *\n * @return The int value of the number stored at the path, or 0 if there is none\n */\n default int getInt(String path) {\n return getInt(path, 0);\n }\n\n /**\n * @return The int value of the number stored at the path, or def if there is none\n */\n default int getInt(String path, int def) {\n Object obj = get(path);\n\n if (obj instanceof Number) return ((Number) obj).intValue();\n else return def;\n }\n\n /**\n *\n * @return If the object at the path is an instance of Integer\n */\n default boolean isInt(String path) {\n return get(path) instanceof Integer;\n }\n\n /**\n *\n * @return The short value of the number stored at the path, or 0 if there is none\n */\n default short getShort(String path) {\n return getShort(path, 0);\n }\n\n /**\n * @return The short value of the number stored at the path, or def if there is none\n */\n default short getShort(String path, int def) {\n Object obj = get(path);\n\n if (obj instanceof Number) return ((Number) obj).shortValue();\n else return (short) def;\n }\n\n /**\n *\n * @return If the object at the path is an instance of Short\n */\n default boolean isShort(String path) {\n return get(path) instanceof Short;\n }\n\n /**\n *\n * @return True if the boolean true is stored at path, otherwise false\n */\n default boolean getBoolean(String path) {\n return getBoolean(path, false);\n }\n\n /**\n * @return The boolean value stored at path, or def is there is none\n */\n default boolean getBoolean(String path, boolean def) {\n Object obj = get(path);\n\n if (obj instanceof Boolean) return (Boolean) obj;\n else return def;\n }\n\n /**\n * @return If there is a boolean stored at path\n */\n default boolean isBoolean(String path) {\n return get(path) instanceof Boolean;\n }\n\n default boolean isNumber(String path) {\n return get(path) instanceof Number;\n }\n\n default double getDouble(String path) {\n return getDouble(path, 0.0d);\n }\n\n default double getDouble(String path, double def) {\n Object obj = get(path);\n\n if (obj instanceof Number) return ((Number) obj).doubleValue();\n else return def;\n }\n\n default boolean isDouble(String path) {\n return get(path) instanceof Double;\n }\n\n default BigDecimal getBigDecimal(String path) {\n return getBigDecimal(path, BigDecimal.ZERO);\n }\n\n default BigDecimal getBigDecimal(String path, BigDecimal def) {\n Object obj = get(path);\n\n if (obj instanceof Number) {\n if (obj instanceof BigDecimal) {\n return (BigDecimal) obj;\n } else if (obj instanceof BigInteger) {\n return new BigDecimal((BigInteger) obj);\n } else {\n return BigDecimal.valueOf(((Number) obj).doubleValue());\n }\n } else return def;\n }\n\n default boolean isBigDecimal(String path) {\n return get(path) instanceof BigDecimal;\n }\n\n default long getLong(String path) {\n return getLong(path, 0L);\n }\n\n default long getLong(String path, long def) {\n Object obj = get(path);\n\n if (obj instanceof Number) return ((Number) obj).longValue();\n else return def;\n }\n\n default boolean isLong(String path) {\n return get(path) instanceof Long;\n }\n\n default byte[] getByteArray(String path) {\n return getByteArray(path, new byte[0]);\n }\n\n default byte[] getByteArray(String path, byte[] def) {\n Object obj = get(path);\n\n if (obj instanceof byte[]) return (byte[]) obj;\n else return def;\n }\n\n default boolean isByteArray(String path) {\n return get(path) instanceof byte[];\n }\n\n default List<String> getStringList(String path) {\n return getList(path, String.class);\n }\n\n default <T> List<T> getList(String path, Class<T> clazz) {\n return getList(path, new ArrayList<>(), clazz);\n }\n\n @SuppressWarnings(\"unchecked\")\n default <T> List<T> getList(String path, List<T> def, Class<T> clazz) {\n Object obj = get(path);\n\n if (!(obj instanceof Collection<?>)) return def;\n\n Collection<?> input = (Collection<?>) obj;\n List<T> result = new ArrayList<>();\n\n for (Object o : input) {\n if (!clazz.isInstance(o)) continue;\n\n result.add((T) o);\n }\n\n return result;\n }\n\n default List<Config> getConfigList(String path) {\n return getList(path, Config.class);\n }\n\n default boolean isList(String path) {\n return get(path) instanceof List<?>;\n }\n\n /**\n * @param path The path to check for a list\n * @param type The type that the list should contain\n * @return If there is a list at this path and it contains an object with the type {@code type}\n */\n default boolean isList(String path, Class<?> type) {\n if (!isList(path)) return false;\n\n List<?> list = getList(path, null, type);\n\n return list != null && !list.isEmpty();\n }\n\n default Config getConfigOrNull(String path) {\n Object obj = get(path);\n\n if (!(obj instanceof Config)) return null;\n else return (Config) obj;\n }\n\n Config getConfigOrEmpty(String path);\n\n default boolean isConfig(String path) {\n return get(path) instanceof Config;\n }\n\n /**\n * Modifies the fields of the object passed in to the values specified in this config.\n *\n * @param object The object to modify the fields of.\n * @param <T> The type of the object\n * @return The (now modified) object\n */\n default <T> T getAllFields(T object) {\n Field[] fields = object.getClass().getDeclaredFields();\n\n for (Field field : fields) {\n field.setAccessible(true);\n\n if (Modifier.isStatic(field.getModifiers())) continue;\n if (Modifier.isTransient(field.getModifiers())) continue;\n\n if (!contains(field.getName())) continue;\n\n try {\n if (field.getType().equals(double.class)) {\n if (!isNumber(field.getName())) continue;\n field.setDouble(object, getDouble(field.getName()));\n } else if (field.getType().equals(float.class)) {\n if (!isNumber(field.getName())) continue;\n field.setFloat(object, (float) getDouble(field.getName()));\n } else if (field.getType().equals(int.class)) {\n if (!isNumber(field.getName())) continue;\n field.setInt(object, getInt(field.getName()));\n } else if (field.getType().equals(boolean.class)) {\n if (!isBoolean(field.getName())) continue;\n field.setBoolean(object, getBoolean(field.getName()));\n } else if (field.getType().equals(long.class)) {\n if (!isNumber(field.getName())) continue;\n field.setLong(object, getLong(field.getName()));\n } else if (field.getType().equals(short.class)) {\n if (!isNumber(field.getName())) continue;\n field.setShort(object, (short) getInt(field.getName()));\n } else if (field.getType().equals(byte.class)) {\n if (!isNumber(field.getName())) continue;\n field.setByte(object, (byte) getInt(field.getName()));\n } else {\n Object newValue = getType(field.getName(), field.getType());\n if (newValue == null) continue;\n\n field.set(object, newValue);\n }\n\n } catch (IllegalAccessException e) {\n //This should not happen hopefully.\n e.printStackTrace();\n }\n }\n\n return object;\n }\n\n /**\n * Loads the fields of the object into this config.\n *\n * @param object The object itself\n * @param <T> The type of object\n * @return The object, again\n */\n default <T> T setAllFields(T object) {\n Field[] fields = object.getClass().getDeclaredFields();\n\n for (Field field : fields) {\n field.setAccessible(true);\n\n if (Modifier.isStatic(field.getModifiers()) || Modifier.isTransient(field.getModifiers())) continue;\n\n try {\n set(field.getName(), field.get(object));\n } catch (IllegalAccessException e) {\n //hopefully we will be fine\n e.printStackTrace();\n }\n }\n\n return object;\n }\n\n default <T> T getType(String path, Class<T> type) {\n return getType(path, null, type);\n }\n\n @SuppressWarnings(\"unchecked\")\n default <T> T getType(String path, T def, Class<T> type) {\n Object obj = get(path);\n\n if (!type.isInstance(obj)) return def;\n return (T) obj;\n }\n}", "@Override\n\tpublic void configure(Map<String, ?> configs, boolean isKey) {\n\t}", "public interface SeparatorConfiguration {\n\n String get();\n\n}", "@Override\r\n public void configure(Map<String, ?> configs, boolean isKey) {\n \r\n }", "Section getSection();", "@Test\n void check_mappingConfigFromJsonFile_key_priority_json_conf() {\n MappingConfig externalMappingConfig =\n new MergeableMappingConfigSupplier(new ArrayList<String>() {\n {\n add(\"src/test/resources/json/mappingconfig3.json\");\n add(\"src/test/resources/json/mappingconfig4.conf\");\n }\n }).get();\n\n assertEquals(externalMappingConfig.getGenerateToString(), false);\n assertEquals(externalMappingConfig.getGenerateApis(), true);\n }", "@Test\n public void testDetectConfigurationConfigString() throws Exception {\n\n Config config = ConfigFactory.load(\"componentTest\");\n\n ComponentConfigurator<ComponentConfiguration> configurator = new ComponentConfigurator<>(ComponentConfiguration.class);\n\n ComponentConfiguration testPojo = mapper.readValue(config.root().get(\"configuredComponent\").render(ConfigRenderOptions.concise()), ComponentConfiguration.class);\n\n assert(testPojo != null);\n\n ComponentConfiguration configuredPojo = configurator.detectConfiguration(config, \"configuredComponent\");\n\n assert(configuredPojo != null);\n\n Assert.assertEquals(configuredPojo,testPojo);\n }", "@Configuration\n public Option[] config() {\n String pathToTestClass = ServiceOneBundleTest.class.getClassLoader().getResource(\".\").getPath();\n String[] pathParts = pathToTestClass.split(\"OsgiBundleTest\");\n StringBuilder pathToBundle = new StringBuilder(pathParts[0]);\n pathToBundle.append(\"ServiceOneModule/target/ServiceOneModule-1.0-SNAPSHOT.jar\");\n return CoreOptions.options(\n mavenBundle(\"com.google.guava\", \"guava\", \"13.0.1\").startLevel(30),\n bundle(new File(pathToBundle.toString()).toURI().toString()),\n junitBundles()\n );\n }", "@Bean\n public MetadataGenerator metadataGenerator() {\n final MetadataGenerator metadataGenerator = new MetadataGenerator();\n metadataGenerator.setEntityId(this.samlProperties.getSp().getEntityId());\n metadataGenerator.setExtendedMetadata(extendedMetadata());\n metadataGenerator.setIncludeDiscoveryExtension(false);\n metadataGenerator.setKeyManager(keyManager());\n if (this.samlProperties.getSp().getEntityBaseURL() != null) {\n metadataGenerator.setEntityBaseURL(this.samlProperties.getSp().getEntityBaseURL());\n }\n return metadataGenerator;\n }", "public int get(int id) {\r\n return configurations[id];\r\n }", "public void setDependencyGeneratorElement(IConfigurationElement element);", "Configuration getConfigByKey(String configKey);", "@Override\n public boolean hasAdditionalConfig() { return true; }", "public SelectorConfig(Plugin plugin, String name) {\n if (!SelectorManager.getINSTANCE().getSelectorDirectory().exists()) {\n if (!SelectorManager.getINSTANCE().getSelectorDirectory().mkdir()) {\n plugin.getLogger().log(Level.SEVERE, \"Could not create \" + SelectorManager.getINSTANCE().getSelectorDirectory().getPath());\n return;\n }\n }\n\n config = new File(SelectorManager.getINSTANCE().getSelectorDirectory(), name + \".yml\");\n if (!config.exists()) {\n firstTime = true;\n plugin.getLogger().log(Level.INFO, \"Creating \" + config.getPath());\n try {\n if (!config.createNewFile()) {\n plugin.getLogger().log(Level.SEVERE, \"Could not create \" + config.getPath());\n return;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n yml = YamlConfiguration.loadConfiguration(config);\n yml.options().copyDefaults(true);\n\n yml.options().header(\"Plugin by andrei1058.\\n\" +\n \"Replacements example:\\n\" +\n \"'x':\\n\" +\n \" type: ARENA (arena type keeps item-stack configuration in the arena file.\\n\" +\n \" filter-template: none or templateName,skeld,etc\\n\" +\n \" filter-status: loading,separated,by,comma (available: loading,waiting,starting,in_game,ending,none)\\n\" +\n \"'*':\\n\" +\n \" type: NONE or AIR for air.\\n\" +\n \"'=':\\n\" +\n \" type: COMMAND or CMD for items that execute commands when clicked.\\n\" +\n \" commands: \\n\" +\n \" as-player: myStoreLink'\\n' bw open someOtherGUI, etc\\n\" +\n \" as-console: openDonations {player}\\n\" +\n \" item:\\n\" +\n \" material: DIAMOND\\n\" +\n \" data:0 (yes, data. I'm supporting 1.12.)\\n\" +\n \" enchanted: false\\n\" +\n \" amount: 1\");\n\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_PATTERN_PATH, Arrays.asList(\"#########\", \"#***#####\", \"#####===#\", \"##-z#####\", \"#########\"));\n\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".*.\" + \"type\", \"ARENA\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".*.\" + \"filter-template\", \"skeld\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".*.\" + \"filter-status\", \"starting,waiting\");\n\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".=.\" + \"type\", \"ARENA\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".=.\" + \"filter-template\", \"polus\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".=.\" + \"filter-status\", \"none\");\n\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".-.\" + \"type\", \"CMD\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".-.\" + \"commands.as-player\", \"ss join\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".-.\" + \"commands.as-console\", \"\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".-.\" + \"item.material\", \"EMERALD\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".-.\" + \"item.data\", 0);\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".-.\" + \"item.enchanted\", true);\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".-.\" + \"item.amount\", 1);\n\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".z.\" + \"type\", \"CMD\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".z.\" + \"commands.as-player\", \"ss selector spectate\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".z.\" + \"commands.as-console\", \"\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".z.\" + \"item.material\", \"ELYTRA\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".z.\" + \"item.data\", 0);\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".z.\" + \"item.enchanted\", true);\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".z.\" + \"item.amount\", 1);\n\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"type\", \"ITEM\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.material\", CommonManager.SERVER_VERSION < 13 ? \"STAINED_GLASS_PANE\" : \"GRAY_STAINED_GLASS_PANE\");\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.data\", 7);\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.enchanted\", false);\n yml.addDefault(\"main.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.amount\", 1);\n\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_PATTERN_PATH, Arrays.asList(\"#########\", \"#*******#\", \"#*******#\", \"#*******#\", \"4########\"));\n\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".*.\" + \"type\", \"ARENA\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".*.\" + \"filter-template\", \"none\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".*.\" + \"filter-status\", \"started\");\n\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"type\", \"ITEM\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.material\", CommonManager.SERVER_VERSION < 13 ? \"STAINED_GLASS_PANE\" : \"GRAY_STAINED_GLASS_PANE\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.data\", 7);\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.enchanted\", false);\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".#.\" + \"item.amount\", 1);\n\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".4.\" + \"type\", \"CMD\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".4.\" + \"commands.as-player\", \"ss selector\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".4.\" + \"commands.as-console\", \"\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".4.\" + \"item.material\", \"CHEST\");\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".4.\" + \"item.data\", 0);\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".4.\" + \"item.enchanted\", true);\n yml.addDefault(\"spectate.\" + SELECTOR_GENERIC_REPLACE_PATH + \".4.\" + \"item.amount\", 1);\n save();\n }", "@Bean(name = {\"actorSystemConfiguration\"})\n public InternalActorSystemConfiguration getConfiguration(\n ResourceLoader resourceLoader,\n Environment env) throws IOException\n {\n Resource configResource = resourceLoader.getResource(env.getProperty(\"ea.node.config.location\",\"classpath:ea-test.yaml\"));\n // yaml mapper\n ObjectMapper objectMapper = new ObjectMapper(new YAMLFactory());\n return objectMapper.readValue(configResource.getInputStream(), DefaultConfiguration.class);\n }", "public interface SampleGeneratorTask extends Task {\n DirectoryProperty getTemplatesDir();\n\n DirectoryProperty getSampleDir();\n}", "@Configuration\n public Option[] configuration() {\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.core\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.api\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.jackrabbit.vault\",\"org.apache.jackrabbit.vault\");\n return new Option[]{\n baseConfiguration(),\n slingQuickstart(),\n logback(),\n // build artifact\n slingDistribution(),\n // testing\n defaultOsgiConfigs(),\n SlingOptions.webconsole(),\n CoreOptions.mavenBundle(\"org.apache.felix\", \"org.apache.felix.webconsole.plugins.ds\", \"2.0.8\"),\n junitBundles()\n };\n }", "public interface IGeneratorconfigExpectedElement {\r\n\r\n\tpublic java.lang.String getTokenName();\r\n\tpublic org.eclipse.emf.ecore.EClass getRuleMetaclass();\r\n\tpublic void addFollower(org.emftext.sdk.generatorconfig.resource.generatorconfig.IGeneratorconfigExpectedElement follower, org.eclipse.emf.ecore.EStructuralFeature[] path);\r\n\tpublic java.util.Collection<org.emftext.sdk.generatorconfig.resource.generatorconfig.util.GeneratorconfigPair<org.emftext.sdk.generatorconfig.resource.generatorconfig.IGeneratorconfigExpectedElement, org.eclipse.emf.ecore.EStructuralFeature[]>> getFollowers();\r\n}", "public static YamlConfiguration getConfig(String name) {\r\n if (!name.endsWith(\".yml\")) {\r\n \tname += \".yml\";\r\n\t }\r\n \r\n File file = new File(plugin.getDataFolder(), name);\r\n if (!file.exists()){\r\n\t\t\t\treturn null;\r\n\t\t\t} else {\r\n\t\t\t\treturn YamlConfiguration.loadConfiguration(file);\r\n\t\t\t}\r\n\t\t}", "Map<String, String> getConfigProperties();", "private String getPlaymeidFromConfig(){\n\t\tString playmeid = \"\";\n\t\ttry {\n\t\t\tString filePath = \"/system/etc/manufactory.conf\";\n\t\t\tFile file = new File(filePath);\n\t\t\tif (!file.isFile()) {\n\t\t\t\treturn playmeid;\n\t\t\t}\n\t\t\tFileInputStream fin = new FileInputStream(filePath);\n\t\t\tint length = fin.available();\n\t\t\tif(length == 32){\n\t\t\t\tbyte[] buffer = new byte[length];\n\t\t\t\tfin.read(buffer);\n//\t\t\t\tplaymeid = EncodingUtils.getString(buffer, \"UTF-8\");\n\t\t\t\tfin.close();\n\t\t\t\treturn new String(buffer);\n\t\t\t}\n\t\t\tfin.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn playmeid;\n\t}", "@Override\n public String getConfigPath() {\n String fs = String.valueOf(File.separatorChar);\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"scan\").append(fs);\n sb.append(\"config\").append(fs);\n sb.append(\"mesoTableConfig\").append(fs);\n\n return sb.toString();\n }", "private Machine readConfig() {\n try {\n String firstLine = _config.next();\n if (firstLine.contains(\"*\") || firstLine.contains(\"(\")\n || firstLine.contains(\")\") || firstLine.contains(\" \")) {\n throw error(\"incompatible characters in alphabet\");\n }\n\n _alphabet = new Alphabet(firstLine);\n if (!_config.hasNextInt()) {\n throw new EnigmaException(\"Should be number of rotors\");\n }\n\n int numRotors = _config.nextInt();\n if (!_config.hasNextInt()) {\n throw new EnigmaException(\"Should be number of pawls\");\n }\n\n int numPawls = _config.nextInt();\n\n _name = _config.next().toUpperCase();\n while (_config.hasNext()) {\n notches = _config.next();\n mRotors.add(readRotor());\n }\n return new Machine(_alphabet, numRotors, numPawls, mRotors);\n\n } catch (NoSuchElementException excp) {\n throw error(\"configuration file truncated\");\n }\n }", "boolean hasOutputConfig();", "public String configurationInfo();", "ParameterConfiguration getParameterConfiguration(String name);", "@Override\n public void configure(Map<String, ?> configs, boolean isKey) {\n }", "public abstract CONFIG build();", "public Map<String, String> buildSiteConfFromSpec(ClusterDescription clusterSpec)\n throws BadConfigException {\n\n Map<String, String> master = clusterSpec.getMandatoryRole(\n HBaseKeys.ROLE_MASTER);\n\n Map<String, String> worker = clusterSpec.getMandatoryRole(\n HBaseKeys.ROLE_WORKER);\n\n Map<String, String> sitexml = new HashMap<String, String>();\n \n //map all cluster-wide site. options\n providerUtils.propagateSiteOptions(clusterSpec, sitexml);\n/*\n //this is where we'd do app-indepdenent keytabs\n\n String keytab =\n clusterSpec.getOption(OptionKeys.OPTION_KEYTAB_LOCATION, \"\");\n \n*/\n\n\n sitexml.put(KEY_HBASE_CLUSTER_DISTRIBUTED, \"true\");\n sitexml.put(KEY_HBASE_MASTER_PORT, \"0\");\n\n sitexml.put(KEY_HBASE_MASTER_INFO_PORT, master.get(\n RoleKeys.APP_INFOPORT));\n sitexml.put(KEY_HBASE_ROOTDIR,\n clusterSpec.dataPath);\n sitexml.put(KEY_REGIONSERVER_INFO_PORT,\n worker.get(RoleKeys.APP_INFOPORT));\n sitexml.put(KEY_REGIONSERVER_PORT, \"0\");\n providerUtils.propagateOption(clusterSpec, OptionKeys.ZOOKEEPER_PATH,\n sitexml, KEY_ZNODE_PARENT);\n providerUtils.propagateOption(clusterSpec, OptionKeys.ZOOKEEPER_PORT,\n sitexml, KEY_ZOOKEEPER_PORT);\n providerUtils.propagateOption(clusterSpec, OptionKeys.ZOOKEEPER_HOSTS,\n sitexml, KEY_ZOOKEEPER_QUORUM);\n\n return sitexml;\n }", "@Test\n public void testLoadOptional() throws Exception\n {\n factory.setURL(OPTIONAL_FILE.toURI().toURL());\n Configuration config = factory.getConfiguration();\n assertTrue(config.getBoolean(\"test.boolean\"));\n assertEquals(\"value\", config.getProperty(\"element\"));\n }", "@GetMapping(\"/configtest01\")\n public String configtest01() {\n System.out.println(configTest01.getMyconf1().getMapping().get(configTest01.getMyconf1().getSKey1()));\n System.out.println(configTest01.getBvalue());\n System.out.println(configTest01.getListOfStrings());\n return \"greeting\";\n }" ]
[ "0.57564366", "0.5705942", "0.5703285", "0.5617329", "0.55519915", "0.55169654", "0.54723406", "0.54313934", "0.5375008", "0.53265274", "0.53252095", "0.5296902", "0.5285202", "0.52802354", "0.5276687", "0.5275544", "0.5275544", "0.5275544", "0.5275544", "0.52556545", "0.5209398", "0.5188941", "0.51815814", "0.51741743", "0.51424545", "0.51424545", "0.51294476", "0.50824827", "0.5068861", "0.5067803", "0.5061775", "0.5055346", "0.5053267", "0.50529265", "0.50513715", "0.50327665", "0.5027322", "0.50251657", "0.5008023", "0.49966738", "0.4974743", "0.49724373", "0.49652416", "0.49563703", "0.49499825", "0.4945942", "0.494176", "0.49402556", "0.49389377", "0.4931511", "0.49202642", "0.49172089", "0.49163288", "0.49132708", "0.49098074", "0.48854506", "0.4881261", "0.48663914", "0.48649457", "0.48624495", "0.48614734", "0.4855713", "0.4849359", "0.48492363", "0.4835291", "0.48311284", "0.4827197", "0.48271412", "0.4824987", "0.4816906", "0.4815299", "0.4813349", "0.48074365", "0.4802075", "0.47945565", "0.47890186", "0.47859925", "0.47819838", "0.47749433", "0.47736079", "0.47625753", "0.47585028", "0.47461936", "0.4744302", "0.47313178", "0.47275776", "0.47215676", "0.47201413", "0.47167197", "0.4716475", "0.47129372", "0.47122082", "0.4712197", "0.47100723", "0.4708526", "0.47084597", "0.47046068", "0.47042876", "0.4702822", "0.47018135", "0.47016296" ]
0.0
-1
If true, adds the value of the `address` argument to the Terraform process environment.
public Optional<String> addAddressToEnv() { return Codegen.stringProp("addAddressToEnv").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAddress(java.lang.String param) {\r\n localAddressTracker = param != null;\r\n\r\n this.localAddress = param;\r\n }", "public void setExternalAddress(String address);", "public void setAddress(String address) { this.address = address; }", "public boolean setAddress(String address){\r\n\t\ttry {\r\n\t\t\tthis.workerobj.put(WorkerController.ADDRESS, address);\r\n\t\t\treturn true;\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "void addHasAddress(String newHasAddress);", "private boolean isDeploy(String address) {\n if (StringUtils.isBlank(address)) {\n return true;\n }\n return ConstantProperties.ADDRESS_DEPLOY.equals(address);\n }", "public void setAddress(String _address){\n address = _address;\n }", "@java.lang.Override\n public boolean hasAddress() {\n return address_ != null;\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "boolean hasHasAddress();", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address)\n {\n this.address = address;\n }", "Builder setAddress(String address);", "public void setAddress(final String address){\n this.address=address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "boolean hasAddress();", "boolean hasAddress();", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public boolean hasAddress() {\n return addressBuilder_ != null || address_ != null;\n }", "private static boolean updateAddress(String address) {\n\n if(deviceService.updateServerAddress(address) == true)\n return true;\n else\n return false;\n\n\n\n }", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public boolean updateAddress(Address newAddress);", "public boolean addStudentAddress(StudentAddress studentAddress) {\n\t\treturn false;\r\n\t}", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public void setAddress(String adrs) {\n address = adrs;\n }", "public void setAddress(String newAddress) {\r\n\t\tthis.address = newAddress;\r\n\t}", "public void setInternalAddress(String address);", "boolean hasAddressCreationStrategy();", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(final String address) {\n this._address = address;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) { throw new NullPointerException(); }\n address_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public void setAddress (java.lang.String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = StringUtils.trimString( address );\n\t}", "public void setRegaddress(java.lang.String param) {\r\n localRegaddressTracker = param != null;\r\n\r\n this.localRegaddress = param;\r\n }", "public boolean isSetAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(ADDRESS$2) != null;\n }\n }", "public void setaddress(String address) {\n\t\t_address = address;\n\t}", "public final void setAddress(final String addressNew) {\n this.address = addressNew;\n }", "public void setBindAddress(String bindAddress) {\n agentConfig.setBindAddress(bindAddress);\n }", "boolean equals(String address) { return this.address.getHostAddress().equals(address); }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public boolean isSetAddress() {\n\t\treturn this.address != null;\n\t}", "private void setPrefAddress( String addr ) {\n\t\tmPreferences.edit().putString( PREF_ADDR, addr ).commit();\n\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n\t\t\t\t\t\tjava.lang.String value) {\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t\t}\n\n\t\t\t\t\taddress_ = value;\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}", "public void editAttractionAddress(String address){\r\n this.address = address;\r\n }", "static boolean changeAddress(Person p, String newAddress){\n\n p.setAress(lquhfsflqj);\n return true;\n }", "public String address() {\n return Codegen.stringProp(\"address\").config(config).require();\n }", "@Override\n\tpublic void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public boolean isSetFromAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FROMADDRESS$6) != 0;\n }\n }", "public void addAddress(Address address) {\n this.addresses.add(address);\n }", "public void setAddress(org.nhind.config.Address[] address) {\n this.address = address;\n }", "public boolean hasAddress() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public void setAddress(String address) throws JAXRException {\n this.address = address;\n }", "public void setAddr(String addr) {\n this.addr = addr;\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddressState(String addressState) {\n this.addressState = addressState;\n }", "public String getRequireAddress() {\n return this.requireAddress;\n }", "public boolean associateAddress(EC2AssociateAddress request) {\n try {\n List<CloudStackIpAddress> cloudIps = getApi().listPublicIpAddresses(null, null, null, null, null, request.getPublicIp(), null, null, null);\n if (cloudIps == null)\n throw new Exception(\"Specified ipAddress doesn't exist\");\n CloudStackIpAddress cloudIp = cloudIps.get(0);\n\n List<CloudStackUserVm> vmList =\n getApi().listVirtualMachines(null, null, true, null, null, null, null, request.getInstanceId(), null, null, null, null, null, null, null, null, null);\n if (vmList == null || vmList.size() == 0) {\n throw new Exception(\"Instance not found\");\n }\n CloudStackUserVm cloudVm = vmList.get(0);\n\n CloudStackInfoResponse resp = getApi().enableStaticNat(cloudIp.getId(), cloudVm.getId());\n if (resp != null) {\n return resp.getSuccess();\n }\n } catch (Exception e) {\n logger.error(\"EC2 AssociateAddress - \", e);\n handleException(e);\n }\n return false;\n }", "public boolean hasAddress() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private void saveNewAddress() {\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(deviceAddress, \"previousDeviceAddress\");\n editor.commit();\n }", "@Override\r\n\tpublic boolean updateAddress(Map<String, String> address) {\n\t\treturn ado.updateAddress(address);\r\n\t}" ]
[ "0.59775436", "0.58945465", "0.5815727", "0.5814472", "0.5798578", "0.578938", "0.57761633", "0.5765887", "0.5760096", "0.5760096", "0.5760096", "0.5756777", "0.5756777", "0.5711265", "0.5698616", "0.5698616", "0.5697431", "0.56916696", "0.5680162", "0.5671112", "0.5671112", "0.5671112", "0.5671112", "0.5671112", "0.5671112", "0.5671112", "0.5671112", "0.5671112", "0.5671112", "0.5671112", "0.5671112", "0.5671112", "0.5671112", "0.5671112", "0.5671112", "0.5671112", "0.56619865", "0.56619865", "0.56619865", "0.5657996", "0.5657996", "0.56412715", "0.56335413", "0.56275165", "0.56243235", "0.56243235", "0.56243235", "0.56243235", "0.56243235", "0.55827063", "0.5582458", "0.55602515", "0.55508834", "0.5545147", "0.5544453", "0.5542928", "0.5518117", "0.550183", "0.5491983", "0.5491983", "0.5491983", "0.5491983", "0.5474997", "0.54745185", "0.54745185", "0.54495114", "0.54456633", "0.54282486", "0.5418279", "0.5409898", "0.5386401", "0.5378542", "0.53724885", "0.53711444", "0.5337297", "0.5332491", "0.5332491", "0.532926", "0.532926", "0.5305012", "0.53048414", "0.53001416", "0.52897054", "0.52860695", "0.5274472", "0.5274144", "0.5271083", "0.5254382", "0.52489585", "0.52038205", "0.51993454", "0.51822406", "0.5179961", "0.517666", "0.51664674", "0.516143", "0.5158908", "0.51530504", "0.5151942", "0.51490813" ]
0.6703582
0
URL of the root of the target Vault server.
public String address() { return Codegen.stringProp("address").config(config).require(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getRootServerBaseUrl();", "private String getRootUrl(String path){\n return \"http://localhost:\" + port + \"/api/v1\" + path;\n }", "private String getRootUrl() {\n\t\treturn \"http://localhost:\" + port;\n\t}", "private String getRootUrl() {\n\t\treturn \"http://localhost:\" + port;\n\t}", "String getServerBaseURL();", "String getServerUrl();", "public String getServerUrl() {\r\n return this.fedoraBaseUrl;\r\n }", "public String getServerURI() {\n return settings.getString(\"server_url\", DEFAULT_SERVER_URL);\n }", "public String url() {\n return server.baseUri().toString();\n }", "public static String getBaseURL()\r\n {\r\n String savedUrl = P.getChoreoServicesUrl();\r\n return savedUrl.length() > 0 ? savedUrl : Config.DEFAULT_SERVER_URL;\r\n }", "public String getServerUrl() {\n\t return Config.SERVER_URL;\n }", "public String getServerBase() {\n HttpServletRequest request = FxJsfUtils.getRequest().getRequest();\n return \"http\" + (request.isSecure() ? \"s://\" : \"://\") + FxRequestUtils.getExternalServerName(request);\n }", "public String getServerUrl() {\n return props.getProperty(\"url\");\n }", "public URL getRootDirURL() {\n\t\treturn null;\n\t}", "private static String getServerUrl() {\n\t\treturn \"http://jfabricationgames.ddns.net:5715/genesis_project_server/genesis_project/genesis_project/\";\n\t}", "private String getUrlBaseForLocalServer() {\n\t HttpServletRequest request = ((ServletRequestAttributes) \n\t\t\t RequestContextHolder.getRequestAttributes()).getRequest();\n\t String base = \"http://\" + request.getServerName() + ( \n\t (request.getServerPort() != 80) \n\t \t\t ? \":\" + request.getServerPort() \n\t\t\t\t : \"\");\n\t return base;\n\t}", "protected String getServerUrl() {\r\n\t\treturn server;\r\n\t}", "public static String getServerBaseUrl() {\n if (isProductionMode()) {\n return getConfiguration().productionModeServerBaseUrl();\n }\n return getConfiguration().developmentModeServerBaseUrl();\n }", "public String getServerUrl()\n {\n return null;\n }", "public String getServerURL() {\n return serverURL;\n }", "public String getServerUri(String namespace);", "private String baseUrl() {\n return \"http://\" + xosServerAddress + \":\" +\n Integer.toString(xosServerPort) + XOSLIB + baseUri;\n }", "private String makeServerUrl(){\n\t\tURL url = null;\n\t\t\n\t\t//Make sure we have a valid url\n\t\tString complete = this.preferences.getString(\"server\", \"\");\n\t\ttry {\n\t\t\turl = new URL( complete );\n\t\t} catch( Exception e ) {\n\t\t\tonCreateDialog(DIALOG_INVALID_URL).show();\n\t\t\treturn null;\n\t\t}\n\t\treturn url.toExternalForm();\n\t}", "public String getDocumentBase() {\n return getServerBase() + getContextPath() + \"/\";\n }", "public String getLogonURL()\n {\n return getUnsecuredRootLocation() + configfile.logon_url;\n }", "public String getBaseUrl() {\n StringBuffer buf = new StringBuffer();\n buf.append(getScheme());\n buf.append(\"://\");\n buf.append(getServerName());\n if ((isSecure() && getServerPort() != 443) ||\n getServerPort() != 80) {\n buf.append(\":\");\n buf.append(getServerPort());\n }\n return buf.toString();\n }", "@Key(\"mapserver.url\")\n\tString mapServerUrl();", "public abstract String getBaseURL();", "String getVmUrl();", "public String getBaseUrl() {\n return preferences.getString(PREFERENCES_BACKEND_BASE_URL, \"http://naamataulu-backend.herokuapp.com/api/v1/\");\n }", "public String getServerUrl() {\n return mServerUrl;\n }", "public URL getServerLocation() {\n return serverLocation;\n }", "public String getURL(){\r\n\t\tString url = \"rmi://\";\r\n\t\turl += this.getAddress()+\":\"+this.getPort()+\"/\";\r\n\t\treturn url;\r\n\t}", "public static String getBaseURI() {\n\t\treturn getIP() + \":\" + getPort();\r\n//\t\tURIBuilder builder = new URIBuilder();\r\n//\t\tbuilder.setScheme(\"http\");\r\n//\t\tbuilder.setHost(getIP());\r\n//\t\tbuilder.setPort(Integer.valueOf(getPort()));\r\n//\t\tbuilder.setPath(\"/\"+getVersion());\r\n//\t\treturn builder.toString();\r\n//\t\treturn \"http://\" + getIP() + \":\" + getPort()\r\n//\t\t\t\t+ \"/\"+getVersion();\r\n\t}", "public static String getDongtuServerUrl() {\n return BaseAppServerUrl.videoUrl + \"?service=\";\n }", "public String getHostURL() {\n return getHostURL(PAActiveObject.getActiveObjectNodeUrl(PAActiveObject.getStubOnThis()));\n }", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "public String getBaseUrl()\r\n {\r\n return this.url;\r\n }", "public String getBaseUrl() {\n return builder.getBaseUrl();\n }", "String rootPath();", "public String getLogCollectionUploadServerUrl();", "public String appBaseUrl() {\n int amtToTrim = request.getServletPath().length() + request.getPathInfo().length();\n String appBase = requestURL.substring(0, requestURL.length()-amtToTrim);\n return appBase;\n }", "@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n public String getURL();", "public String getServerUrl() {\n return ipAddress;\n }", "@Override\r\n public String getRootURI() {\r\n if (rootUri == null) {\r\n final StringBuilder buffer = new StringBuilder();\r\n appendRootUri(buffer, true);\r\n buffer.append(SEPARATOR_CHAR);\r\n rootUri = buffer.toString().intern();\r\n }\r\n return rootUri;\r\n }", "public String getApplicationURL()\n\t{\n\t\tString url=pro.getProperty(\"baseURL\");\n\t\treturn url;\n\t}", "public String getZookeeperUrl() {\n return zookeeper.getHost() + \":\" + zookeeper.getPort();\n }", "private static String getBaseUrl() {\n StringBuilder url = new StringBuilder();\n url.append(getProtocol());\n url.append(getHost());\n url.append(getPort());\n url.append(getVersion());\n url.append(getService());\n Log.d(TAG, \"url_base: \" + url.toString());\n return url.toString();\n }", "public URL getServer() {\n\t\treturn null;\n\t}", "public static String getTestInstanceURL() {\n\n\t\treturn baseURL + login_required_string + \"/rest/domains/\" + domain + \"/projects/\" + project + \"/test-instances\";\n\t}", "public static String getServerUrl(Context context) {\n if (mServerUrl == null) {\n ApplicationInfo appInfo = null;\n try {\n appInfo = context.getPackageManager()\n .getApplicationInfo(context.getPackageName(),\n PackageManager.GET_META_DATA);\n mServerUrl = appInfo.metaData.getString(\"WHISPER_SERVER_ADDRESS\");\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n }\n }\n return mServerUrl;\n }", "public String getServerUrl() {\n return this.ctmUrl;\n }", "String basePath();", "public static String getURL() {\n\t return getURL(BackOfficeGlobals.ENV.NIS_USE_HTTPS, BackOfficeGlobals.ENV.NIS_HOST, BackOfficeGlobals.ENV.NIS_PORT);\n\t}", "@Override\n\tpublic String getImagesUrl() {\n\t\treturn SERVER;\n\t}", "public static String getBaseUrl() {\r\n if (baseUrl == null) {\r\n baseUrl = Constants.HTTP_PROTOCOL + \"://\" + getBaseHost() + \":\" + getBasePort();\r\n }\r\n return baseUrl;\r\n }", "public String baseUrl() {\n return baseUrl;\n }", "protected final String getServerUrl() {\n return this.serverUrl;\n }", "@Override\r\n\tpublic String getUri() {\n\t\treturn \"kbox://global\";\r\n\t}", "public static final String getDataServerUrl() {\n\t\treturn \"http://uifolder.coolauncher.com.cn/iloong/pui/ServicesEngineV1/DataService\";\n\t}", "public String getSecureBaseUrl() {\n return (String) get(\"secure_base_url\");\n }", "public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}", "public String getBaseUrl() {\n return (String) get(\"base_url\");\n }", "public String getBaseUrl() {\r\n return baseUrl;\r\n }", "public Path getRemoteRepositoryBaseDir();", "String getServiceUrl();", "public String getHandleServiceBaseUrl();", "@Override\n\tprotected String getHttpBaseUrl() {\n\t\treturn this.properties.getHttpUrlBase();\n\t}", "public String getBaseURL() {\n return baseURL;\n }", "public String getBaseURL() {\n return baseURL;\n }", "public URL getDocumentBase() {\n/* 158 */ return this.stub.getDocumentBase();\n/* */ }", "public String getBaseUrl()\n {\n return baseUrl;\n }", "public String getBaseUrl()\n\t{\n\t\treturn baseUrl;\n\t}", "IParser setServerBaseUrl(String theUrl);", "public String getZookeeperAdminUrl() {\n return \"http://\" + zookeeper.getHost() + \":\" + zookeeper.getAdminPort();\n }", "public String getBaseUrl() {\n return baseUrl;\n }", "public String getBaseUrl() {\n return baseUrl;\n }", "VirtualDirectory getRootContents();", "FullUriTemplateString baseUri();", "public String getFileUploadUrl()\n\t\t{\n\t\t\treturn EU.getFileUploadUrl();\n\t\t}", "public String getFileUploadUrl()\n\t\t{\n\t\t\treturn EU.getFileUploadUrl();\n\t\t}", "public String getFileUploadUrl()\n\t\t{\n\t\t\treturn EU.getFileUploadUrl();\n\t\t}", "@Override\n public String createEndpointUri() {\n \n Properties scProps = utils.obtainServerConfig();\n String baseUri = scProps.getProperty(TARGET_SERVER_PROPERTY_NAME);\n String accessToken = scProps.getProperty(AUTH_TOKEN_PROPERTY_NAME);\n String sourceName = scProps.getProperty(SOURCES_PROPERTY_NAME);\n String sendPings = scProps.getProperty(SEND_PING_PROPERTY_NAME);\n if (StringUtils.isEmpty(baseUri) || StringUtils.isEmpty(accessToken)) {\n throw new IllegalArgumentException(\"source.config file is missing or does not contain sufficient \" +\n \"information from which to construct an endpoint URI.\");\n }\n if (StringUtils.isEmpty(sourceName) || sourceName.contains(\",\")) {\n throw new IllegalArgumentException(\"Default vantiq: endpoints require a source.config file with a single\" +\n \" source name. Found: '\" + sourceName + \"'.\");\n }\n \n try {\n URI vantiqURI = new URI(baseUri);\n this.setEndpointUri(baseUri);\n String origScheme = vantiqURI.getScheme();\n \n StringBuilder epString = new StringBuilder(vantiqURI.toString());\n epString.append(\"?sourceName=\").append(sourceName);\n this.sourceName = sourceName;\n epString.append(\"&accessToken=\").append(accessToken);\n this.accessToken = accessToken;\n if (sendPings != null) {\n epString.append(\"&sendPings=\").append(sendPings);\n this.sendPings = Boolean.parseBoolean(sendPings);\n }\n if (origScheme.equals(\"http\") || origScheme.equals(\"ws\")) {\n epString.append(\"&noSsl=\").append(\"true\");\n noSsl = true;\n }\n epString.replace(0, origScheme.length(), \"vantiq\");\n URI endpointUri = URI.create(String.valueOf(epString));\n return endpointUri.toString();\n } catch (URISyntaxException mue) {\n throw new IllegalArgumentException(TARGET_SERVER_PROPERTY_NAME + \" from server config file is invalid\",\n mue);\n }\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The URI for this resource, relative to /apiserver.\")\n\n public String getUri() {\n return uri;\n }", "public String getUrl()\n\t\t{\n\t\t\treturn \"https://sandbox.zohoapis.eu\";\n\t\t}", "public URL getCveJsonUrlBase() {\n return cveJsonUrlBase;\n }", "String repoUrl();", "public static String getBaseUrl() {\n return baseUrl;\n }", "public String getBaseURI(){\r\n\t\t \r\n\t\t String uri = properties.getProperty(\"baseuri\");\r\n\t\t if(uri != null) return uri;\r\n\t\t else throw new RuntimeException(\"baseuri not specified in the configuration.properties file.\");\r\n\t }", "private static URI getBaseURI() {\n\t\treturn UriBuilder.fromUri(\"https://api.myjson.com/bins/aeka0\").build();\n\t}", "public String getBaseURL() {\n\n\t\treturn baseURL;\n\n\t}", "public String getShBaseURL() {\n\n\t\treturn shBaseURL;\n\n\t}", "@Nonnull\n\tprivate URI getPossiblyInsecureBaseUri() {\n\t\tUriInfo ui = getUriInfo();\n\t\tif (ui != null && ui.getBaseUri() != null)\n\t\t\treturn ui.getBaseUri();\n\t\t// See if JAX-WS *cannot* supply the info\n\t\tif (jaxws == null || jaxws.getMessageContext() == null)\n\t\t\t// Hack to make the test suite work\n\t\t\treturn URI.create(\"http://\" + DEFAULT_HOST\n\t\t\t\t\t+ \"/taverna-server/rest/\");\n\t\tString pathInfo = (String) jaxws.getMessageContext().get(PATH_INFO);\n\t\tpathInfo = pathInfo.replaceFirst(\"/soap$\", \"/rest/\");\n\t\tpathInfo = pathInfo.replaceFirst(\"/rest/.+$\", \"/rest/\");\n\t\treturn URI.create(\"http://\" + getHostLocation() + pathInfo);\n\t}", "final public URL getURL() throws VlException \n {\n \tif (_nodeVRL==null)\n \t\treturn null;\n \t\n\t\treturn _nodeVRL.toURL();\n }", "private String getUrlPlanet() {\n return this.url + this.resource;\n }", "public String getUnproxiedFieldDataServerUrl() {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx);\n\t\tString hostName = prefs.getString(\"serverHostName\", \"\");\n\t\tString context = \"bdrs-core\";//prefs.getString(\"contextName\", \"\");\n\t\tString path = prefs.getString(\"path\", \"\");\n\t\t\n\t\tStringBuilder url = new StringBuilder();\n\t\turl.append(\"http://\").append(hostName).append(\"/\").append(context);\n\t\t\n\t\tif (path.length() > 0) {\n\t\t\turl.append(\"/\").append(path);\n\t\t}\n\t\t\n\t\treturn url.toString();\n\t}", "@Override\r\n\t\tpublic String getBaseURI()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "String getSpecUrl();", "public static String getdevBaseUrl(){\n\n return DEV_BASE_URL;\n }", "public String getRootPath() {\n return root.getPath();\n }", "CreateS3VolumeRequestBuilder setRootUrl(String rootUrl);" ]
[ "0.7705045", "0.7007577", "0.6916749", "0.6916749", "0.68601", "0.680182", "0.6777382", "0.67489684", "0.6734411", "0.6708374", "0.6634317", "0.65809655", "0.6489701", "0.6436521", "0.6375516", "0.6355159", "0.63316256", "0.63307124", "0.631469", "0.6250944", "0.622125", "0.6172895", "0.615535", "0.615491", "0.6150461", "0.6116151", "0.6021802", "0.6002925", "0.59555024", "0.5916927", "0.59113365", "0.59021884", "0.59000176", "0.58880925", "0.5863636", "0.57850295", "0.57722265", "0.5771457", "0.57681876", "0.5753941", "0.57439554", "0.5742728", "0.5739064", "0.57297474", "0.57286173", "0.5727627", "0.5724428", "0.5715306", "0.57127947", "0.5711882", "0.57040733", "0.56951886", "0.5691431", "0.56629246", "0.5616877", "0.5605324", "0.56015325", "0.55919003", "0.5585663", "0.55800295", "0.5578623", "0.55705965", "0.55569255", "0.55564016", "0.5555033", "0.55502677", "0.5549424", "0.55313885", "0.55279434", "0.55279434", "0.55274177", "0.5524397", "0.5521332", "0.5512615", "0.551118", "0.55057186", "0.55057186", "0.55000263", "0.5487948", "0.54845", "0.54845", "0.54845", "0.5477719", "0.5476072", "0.5469472", "0.5463584", "0.54533017", "0.5449086", "0.54460895", "0.54428697", "0.54303527", "0.5428699", "0.5427724", "0.5420825", "0.5412305", "0.5410257", "0.54027903", "0.53879344", "0.5381246", "0.53794795", "0.5378704" ]
0.0
-1
Login to vault with an existing auth method using auth//login
public Optional<AuthLogin> authLogin() { return Codegen.objectProp("authLogin", AuthLogin.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public User doAuthentication(String account, String password);", "protected Response login() {\n return login(\"\");\n }", "public abstract void login(String userName, String password) throws RemoteException;", "protected void login() {\n\t\t\r\n\t}", "void login(String user, String password);", "private void login(String username,String password){\n\n }", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "private void authenticate(String user, String pass) {\n }", "public void authenticate(LoginRequest loginRequest) {\n\n }", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "protected void doLogin(Authentication authentication) throws AuthenticationException {\n \n }", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "@Override\r\n\tpublic void login() {\n\r\n\t}", "public void authenticate(LoginCredentials credentials) throws LoginException;", "public int login(String username, String password) \n {\n\treturn this.acctCtrl.login(username, password);\n\n }", "LoginContext login(String username, String password) throws LoginException;", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "User login(Uuid id, String username, String password, Time creationTime);", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "public com.sun.jna.PointerType login(Credentials c) throws RelationException;", "SignedObject authenticate(String username, String hashedPassword) throws RemoteException, Exception;", "public Person login(String username, String password);", "void login(String cuid, String pass)\n throws RemoteException;", "public void LogIn() {\n\t\t\r\n\t}", "private void login(final String login, final String password, final String domainId) {\n checkCredentials(login, password);\n\n if (!login.isEmpty() && !password.isEmpty()) {\n Notification.activityStart();\n AuthentificationManager.getInstance()\n .authenticateOnSilverpeas(loginField.getText(), passwordField.getText(),\n domains.getSelectedValue(), null);\n }\n }", "String login(String userName, String password) throws RemoteException, InterruptedException;", "@Override\n public void performLogin(String account, String password) {\n performLoginInternal(1, account, password);\n }", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "public String signIn(String username, String password);", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "private void signIn() {\n }", "public void doLogin(Activity activity) {\n\t\tif (!isLoggedIn())\n\t\t\tmDropboxAPI.getSession().startAuthentication(activity);\n\t}", "Login() { \n }", "@Override \n public void commandLogin(String userName, String password)\n {\n }", "public void login(AuthenticationRequest auth_request)\n throws AuthorizationException, TException, AuthenticationException\n {\n for (Cassandra.Client client : addressToClient.values()) {\n long returnTime = client.login(auth_request, LamportClock.sendTimestamp());\n LamportClock.updateTime(returnTime);\n }\n }", "public User login(String loginName, String password) throws UserBlockedException;", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "public boolean authenticate(String id, String password, String type) {\r\n\t\tmethodname = \"authenticate\" ;\r\n\t\tlogger.info(\"ENTRY---> methodname : \"+methodname);\r\n\t\t\r\n\t\tboolean flag = authDao.authenticate(id,password,type) ;\r\n\t\t\r\n\t\tlogger.info(\"EXIT---> methodname : \"+methodname);\r\n\t\treturn flag;\r\n\t}", "@Override\n public void onLoginClicked(String username, String password) {\n loginView.showProgress();\n loginInteractor.authorize(username, password, this);\n }", "public void StartLogIn(){\n\t}", "int authenticateUser(IDAOSession session, String userName, String password);", "void loginAttempt(String email, String password);", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }", "boolean authenticate(String userName, String password);", "protected Response login(String environment) {\n environment = Strings.isNullOrEmpty(environment) ? \"\"\n : \"/\" + environment;\n JsonObject creds = new JsonObject();\n creds.addProperty(\"username\", \"admin\");\n creds.addProperty(\"password\", \"admin\");\n Response resp = post(environment + \"/login\", creds.toString());\n return resp;\n }", "void initiateLogin() {\n\t\tString username = this.mAuthUsername.getText().toString();\n\t\tString password = this.mAuthPassword.getText().toString();\n\t\t\n\t\tfetch();\n\t\tthis.mAuthTask = new AuthenticationTask(this, this, username, password);\n\t\tthis.mAuthTask.execute();\n\t}", "@Override\r\n\tpublic void loginIn(Account account) throws ServiceException {\n\r\n\t}", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "AuthenticationMethod createAuthenticationMethod();", "User login(String username, String password);", "public void performLogin() {\n AppMethodBeat.m2504i(92640);\n LoginManager loginManager = getLoginManager();\n if (LoginAuthorizationType.PUBLISH.equals(LoginButton.this.properties.authorizationType)) {\n if (LoginButton.this.getFragment() != null) {\n loginManager.logInWithPublishPermissions(LoginButton.this.getFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else if (LoginButton.this.getNativeFragment() != null) {\n loginManager.logInWithPublishPermissions(LoginButton.this.getNativeFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else {\n loginManager.logInWithPublishPermissions(LoginButton.access$800(LoginButton.this), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n }\n } else if (LoginButton.this.getFragment() != null) {\n loginManager.logInWithReadPermissions(LoginButton.this.getFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else if (LoginButton.this.getNativeFragment() != null) {\n loginManager.logInWithReadPermissions(LoginButton.this.getNativeFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else {\n loginManager.logInWithReadPermissions(LoginButton.access$900(LoginButton.this), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n }\n }", "public Pair<UUID, Boolean> login(String username,\n String password) {\n return tradingSystemFacade.login(username, password);\n }", "private void logIn(LogSignTemplate credentials){\n Call<LogSignTemplate> callNewTrack = nightAPI.authorize(credentials);\n callNewTrack.enqueue(new Callback<LogSignTemplate>() {\n @Override\n public void onResponse(Call<LogSignTemplate> call, Response<LogSignTemplate> response) {\n if(response.isSuccessful()){\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// SUCCESFUL LOGIN !!!!!!!!!!!!!!! /////////////////////////////////////\");\n Toasty.success(getContext(), \"Succes, welcome.\", Toast.LENGTH_SHORT, true).show();\n Intent intent = new Intent(getContext(), MenuActivity.class);\n startActivity(intent);\n }\n else{\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// NO SUCCESFUL RESPONSE /////////////////////////////////////\");\n Toasty.error(getContext(), \"Incorrect username or password.\", Toast.LENGTH_SHORT, true).show();\n }\n }\n\n @Override\n public void onFailure(Call<LogSignTemplate> call, Throwable t) {\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////////// ERROR /////////////////////////////////\");\n Toasty.error(getContext(), \"Error while validating..\", Toast.LENGTH_SHORT, true).show();\n t.printStackTrace();\n }\n });\n }", "@Override\r\n\tpublic UserVO login(LoginUserVO user) {\n\t\treturn login.login(user);\r\n\t}", "@Override\n\tpublic boolean login(Credentials cred) {\n\t\treturn true;\n\t}", "public ControleurVueLogin() {\n\n\t}", "public AdbLoginResponse loginScoinFromAdb(AdbLoginScoinRequest adbLoginScoinRequest);", "public void login(User user);", "public void signIn()\r\n {\r\n FoodCenterRequestFactory factory = AndroidRequestUtils.getFoodCenterRF(context);\r\n ClientServiceRequest service = factory.getClientService();\r\n\r\n service.login(regId).fire(this);\r\n }", "AuthenticationToken authenticate(String username, CharSequence password) throws Exception;", "RequestResult loginRequest() throws Exception;", "public void login(String uname, String pwd) {\n username.type(uname);\n password.type(pwd);\n loginButton.click();\n }", "String getLoginapiavgrtt();", "@Override\n public JsonResponse duringAuthentication(String... params) {\n try {\n final String username = params[0];\n final String password = params[1];\n return RequestHandler.authenticate(this.getApplicationContext(), username, password);\n } catch (IOException e) {\n return null;\n }\n }", "public LoginResult login() {\n\t\tif (!auth.isLoggedIn())\n\t\t\treturn LoginResult.MAIN_LOGOUT;\n\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_INDEX);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tArrayList<Cookie> tmpCookies = Cookie.getCookies(conn);\n\t\t\taws = Cookie.getCookie(tmpCookies, \"AWSELB\");\n\t\t\tphp = Cookie.getCookie(tmpCookies, \"PHPSESSID\");\n\t\t\t\n\t\t\tconn = Utility.getGetConn(FUND_LOGIN);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tString location = Utility.getLocation(conn);\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t// TODO: future speed optimization\n\t\t\t//if (auth.getPHPCookie() == null) {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie()));\n\t\t\t\tCookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), \"PHPSESSID\");\n\t\t\t\t// saves time for Blackboard and retrieveProfileImage().\n\t\t\t\tauth.setPHPCookie(phpCookie);\n\t\t\t\t\n\t\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\t\n\t\t\t\tlocation = Utility.getLocation(conn);\n\t\t\t\tif (location.startsWith(\"signin.aspx\"))\n\t\t\t\t\tlocation = \"https://eraider.ttu.edu/\" + location;\n\t\t\t\tconn = Utility.getGetConn(location);\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\t// might need to set ESI and ELC here. If other areas are bugged, this is why.\n\t\t\t/*} else {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie()));\n\t\t\t\t/// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!!\n\t\t\t\tthrow new NullPointerException(\"Needs implementation!\");\n\t\t\t}*/\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/login.php?ticket=ST-...\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/funds_home.php\n\t\t\tlocation = Utility.getLocation(conn);\n\t\t\tif (location.startsWith(\"index.\")) {\n\t\t\t\tlocation = \"https://get.cbord.com/raidercard/full/\" + location;\n\t\t\t}\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tUtility.readByte(conn);\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundlogin\", ErrorType.Fatal);\n\t\t\treturn LoginResult.OTHER;\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundlogingeneral\", ErrorType.APIChange);\n\t\t\treturn LoginResult.OTHER;\n\t\t}\n\n\t\tloggedIn = true;\n\n\t\treturn LoginResult.SUCCESS;\n\t}", "void login(String email, String password) throws InvalidCredentialsException, IOException;", "@Override\n\tpublic Result login(Account account) {\n\t\ttry {\n\t\t\treturn (ok(login.login(account)));\n\t\t} catch (AuthenticationErrorException e) {\n\t\t\treturn (getError(UNAUTHORIZED));\n\t\t}\n\t}", "User signIn(String login, String password);", "public AuthResponse loginAccount(Account acc){\n Call<AuthResponse> call = endpoints.loginAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "@Override\n\tpublic ResultMessage login(String user_name, String password) throws RemoteException{\n\t\treturn null;\n\t}", "UserToken login(String username, String password) throws WorkspaceException;", "User authenticate(String username, String password);", "@Override\n\tpublic SpaceUserVO login(SpaceUserVO spaceUserVO) throws Exception {\n\t\treturn null;\n\t}", "private void login(Conversation conversation) {\n\t\tJsonObject lJsonObjIn = (JsonObject) conversation.getRequestBodyAsJSON();\n\t\t\n\t\tString lGebruikersnaam = lJsonObjIn.getString(\"username\");\t\t\t\t\t\t// Uitlezen van opgestuurde inloggegevens... \n\t\tString lWachtwoord = lJsonObjIn.getString(\"password\");\n\t\tMap<String, String> loginInfo = informatieSysteem.loginDetails(lGebruikersnaam,lWachtwoord);\n\n\t\tif(loginInfo.isEmpty())\n\t\t{\n\t\t\t//LOGIN FAILED !\n\t\t\tconversation.sendJSONMessage(\"{\\\"rol\\\":\\\"undefined\\\"}\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJsonObjectBuilder lJsonObjectBuilder = Json.createObjectBuilder();\n\t\t\tlJsonObjectBuilder.add(\"rol\", loginInfo.get(\"rol\"));\n\t\t\tlJsonObjectBuilder.add(\"voornaam\", loginInfo.get(\"voornaam\"));\n\t\t\tlJsonObjectBuilder.add(\"achternaam\", loginInfo.get(\"achternaam\"));\n\t\t\tlJsonObjectBuilder.add(\"identificatienummer\", loginInfo.get(\"identificatienummer\"));\t\t// en teruggekregen gebruikersrol als JSON-object...\n\t\t\tif(loginInfo.containsKey(\"group\")) lJsonObjectBuilder.add(\"group\", loginInfo.get(\"group\"));\n\t\t\tif(loginInfo.containsKey(\"klasnaam\")) lJsonObjectBuilder.add(\"klasnaam\", loginInfo.get(\"klasnaam\"));\n\t\t\tif(loginInfo.containsKey(\"klascode\")) lJsonObjectBuilder.add(\"klascode\", loginInfo.get(\"klascode\"));\n\t\t\tString lJsonOut = lJsonObjectBuilder.build().toString();\n\t\t\tconversation.sendJSONMessage(lJsonOut);\n\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t// terugsturen naar de Polymer-GUI!\n\t}", "public login() {\r\n\t\tsuper();\r\n\t}", "private void loginAccount() {\n\t\taccountManager.loginAccount(etEmail.getText().toString(), etPassword.getText().toString());\n\n\t}", "public int logIn() {\n guestPresenter.printLogInMessage();\n int id = requestInt(\"id\");\n char[] password = requestString(\"password\").toCharArray();\n UserManager.UserType user = guestManager.logIn(id, password);\n\n if (user == null) {\n guestPresenter.logInFailure();\n return -1;\n } else {\n return id;\n }\n }", "public void login(View v) {\n if (validateLogin()) {\n attemptLogin();\n }\n }", "private void attemptUsernamePasswordLogin()\n {\n if (mAuthTask != null)\n {\n return;\n }\n\n if(mLogInButton.getText().equals(getResources().getString(R.string.logout)))\n {\n mAuthTask = new RestCallerPostLoginTask(this,mStoredToken,MagazzinoService.getAuthenticationHeader(this),true);\n mAuthTask.execute(MagazzinoService.getLogoutService(this));\n return;\n }\n // Reset errors.\n mUsernameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mUsernameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password))\n {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email))\n {\n mUsernameView.setError(getString(R.string.error_field_required));\n focusView = mUsernameView;\n cancel = true;\n }\n else if (!isUsernameOrEmailValid(email))\n {\n mUsernameView.setError(getString(R.string.error_invalid_email));\n focusView = mUsernameView;\n cancel = true;\n }\n\n if (cancel)\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n return;\n }\n\n mAuthTask = new RestCallerPostLoginTask(this,email, password);\n mAuthTask.execute(MagazzinoService.getLoginService(this));\n\n }", "private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSystem.out.println(\"Welcome to AnnyBank\");\n\n\t\ttransactions();\n\t}", "public Result authenticate() {\r\n // 1. Define class to send JSON response back\r\n class Login {\r\n public Long id;\r\n public String gamerTag;\r\n public String token;\r\n\r\n public Login() {\r\n }\r\n }\r\n\r\n // 2. Read email and password from request()\r\n JsonNode request = request().body().asJson();\r\n String gamerTag = request.get(\"gamerTag\").asText();\r\n String password = request.get(\"password\").asText();\r\n\r\n // 3. Find user with given gamerTag\r\n Login ret = new Login();\r\n User user = User.gamerTagLogin(gamerTag);\r\n if (user == null) {\r\n return unauthorized(Json.toJson(ret));\r\n }\r\n // 4. Compare password.\r\n String sha256 = User.getSha256(request.get(\"password\").asText());\r\n if (sha256.equals(user.getPassword())) {\r\n // Success\r\n String authToken = generateAuthToken();\r\n user.setToken(authToken);\r\n Ebean.update(user);\r\n ret.token = authToken;\r\n ret.gamerTag = user.getGamerTag();\r\n ret.id = user.getId();\r\n return ok(Json.toJson(ret));\r\n\r\n }\r\n // 5. Unauthorized access\r\n return unauthorized();\r\n }", "Document login(String username, String password);", "public InboxPage login(String email, String password) {\n enterEmailOrPhone(email).clickOnNext().enterPassword(password);\n return clickPasswordNext();\n }", "public void onClick(View v) {\n\t\t if (mLoggedIn) {\n\t\t logOut();\n\t\t } else {\n\t\t // Start the remote authentication\n\t\t mApi.getSession().startAuthentication(ResourceActivity.this);\n\t\t }\n\t\t }", "@Override\r\n\t\t\tpublic void onLogin(String username, String password) {\n\r\n\t\t\t}", "@Public\n\t@Get(\"/login\")\n\tpublic void login() {\n\t\tif (userSession.isLogged()) {\n\t\t\tresult.redirectTo(HomeController.class).home();\n\t\t}\n\t}", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "public void login(){\n if (this.method.equals(\"Facebook\")){\n Scanner in = new Scanner(System.in);\n\n System.out.println(\"Enter your Facebook username :\");\n String username = in.next();\n\n System.out.println(\"Enter your Facebook password :\");\n String password = in.next();\n\n connector.connectToDb();\n\n System.out.println(\"Success : Logged In !\");\n }\n }", "@GET(\"/login\")\n Call<LoginResponse> loginRequest(@Path(\"username\") String username\n , @Path(\"password\") String password);", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "@When(\"I login as {string} with password {string}\")\r\n public void iLoginAsWithPassword(String login, String password) {\n autorisation.click(By.id(\"admin_login__nz-select--authorizationRole\"));\r\n autorisation.waitVisibility(By.cssSelector(\"nz-option-item[title='Центральный администратор']\"));\r\n autorisation.click(By.cssSelector(\"nz-option-item[title='Центральный администратор']\"));\r\n autorisation.click(By.id(\"admin_login__button--submit\"));\r\n }", "private void authenticate() {\n\t\t//Isn't a foreach because if the ciphertext is invalid, that data object is removed from the data array.\n\t\t// In a foreach, this would lead to a concurrent modification exception.\n\t\t//noinspection ForLoopReplaceableByForEach\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\ttry {\n\t\t\t\tdata.get(i).decryptText(plainPassword);\n\t\t\t} catch (VaultFormatException ignored) {\n\t\t\t}\n\t\t}\n\t}", "private void login(){\n\t\tprogress.toggleProgress(true, R.string.pagetext_signing_in);\n\t\tParseUser.logInInBackground(email.split(\"@\")[0], password, new LogInCallback() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(ParseUser user, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tprogress.toggleProgress(false);\n\t\t\t\t\tIntent intent = new Intent(context, MainActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// else, incorrect password\n\t\t\t\t\tToast.makeText(context, \n\t\t\t\t\t\t\t\t getString(R.string.parse_login_fail, email), \n\t\t\t\t\t\t\t\t Toast.LENGTH_LONG).show();\t\t\t\t\t\n\t\t\t\t\tLog.e(\"Error Logging into Parse\", \"Details: \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\t\t\n\t\t});\n\t}", "public Login() {\r\n\t\tinitialize();\r\n\t}", "public String getAuthMethod() {\n return AUTH_NAME;\n }" ]
[ "0.6455401", "0.6312018", "0.61904866", "0.61766434", "0.6167265", "0.616163", "0.6155467", "0.6136926", "0.60745466", "0.60275394", "0.6027443", "0.6010199", "0.60049236", "0.6002678", "0.5967003", "0.59452826", "0.5891631", "0.5841141", "0.5810358", "0.5760842", "0.57372034", "0.573104", "0.57086223", "0.57078934", "0.56926715", "0.56799704", "0.5671752", "0.5656198", "0.56527954", "0.565228", "0.564529", "0.56308204", "0.5628858", "0.5622613", "0.56153643", "0.55813956", "0.5577387", "0.55737245", "0.5563545", "0.5561019", "0.5554753", "0.5554168", "0.55519927", "0.554688", "0.5540486", "0.55396014", "0.55248016", "0.55176735", "0.55170536", "0.5486836", "0.5486729", "0.54821885", "0.5481129", "0.5477375", "0.5470404", "0.54558504", "0.54516006", "0.5445051", "0.5440464", "0.54328275", "0.54257077", "0.5424742", "0.54200774", "0.5417456", "0.5415271", "0.54142267", "0.5398739", "0.53969765", "0.5396796", "0.53956056", "0.5391405", "0.53905576", "0.53900266", "0.538406", "0.53801244", "0.5379998", "0.5374116", "0.5373803", "0.53693765", "0.53678584", "0.5364586", "0.5363067", "0.53604233", "0.53546697", "0.5354112", "0.53534627", "0.53520447", "0.5351274", "0.53460985", "0.5342652", "0.53295696", "0.5324577", "0.53174067", "0.53162503", "0.53134936", "0.5309017", "0.5300881", "0.5298839", "0.52988374", "0.5297568", "0.52943987" ]
0.0
-1
Login to vault using the AWS method
public Optional<AuthLoginAws> authLoginAws() { return Codegen.objectProp("authLoginAws", AuthLoginAws.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AdbLoginResponse loginScoinFromAdb(AdbLoginScoinRequest adbLoginScoinRequest);", "SqlVirtualMachineManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "protected Response login(String environment) {\n environment = Strings.isNullOrEmpty(environment) ? \"\"\n : \"/\" + environment;\n JsonObject creds = new JsonObject();\n creds.addProperty(\"username\", \"admin\");\n creds.addProperty(\"password\", \"admin\");\n Response resp = post(environment + \"/login\", creds.toString());\n return resp;\n }", "private void login() {\n if (blobStore != null) {\n return;\n }\n if (swiftUsername == null || swiftPassword == null || swiftAuthUrl == null || swiftContainer == null) {\n logger.error(\"Blob storage account is not configured\");\n throw new IllegalArgumentException(\"ERROR: Blob storage account is not configured\");\n }\n blobStore = ContextBuilder.newBuilder(blobApi)\n .endpoint(swiftAuthUrl)\n .credentials(swiftUsername, swiftPassword)\n .buildView(BlobStoreContext.class)\n .getBlobStore();\n\n if (!blobStore.containerExists(swiftContainer)) {\n// CreateContainerOptions options = CreateContainerOptions.Builder\n// .withMetadata(ImmutableMap.of(\"description\", \"E-PRTR data\"));\n// blobStore.createContainerInLocation(null, swiftContainer, options);\n Location location = getRegion();\n blobStore.createContainerInLocation(location, swiftContainer);\n }\n }", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "protected Response login() {\n return login(\"\");\n }", "@BeforeGroups(groups = \"REGION_ADMIN\")\n protected void loginRegionAdmin() throws Exception {\n login(\"[email protected]\", \"region\");\n }", "String login(String userName, String password) throws RemoteException, InterruptedException;", "private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSystem.out.println(\"Welcome to AnnyBank\");\n\n\t\ttransactions();\n\t}", "protected void login() {\n\t\t\r\n\t}", "RequestResult loginRequest() throws Exception;", "public Reply login(String hostname) throws ThingsException, InterruptedException;", "User login(Uuid id, String username, String password, Time creationTime);", "private void login(String username,String password){\n\n }", "public LoginResult login() {\n\t\tif (!auth.isLoggedIn())\n\t\t\treturn LoginResult.MAIN_LOGOUT;\n\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_INDEX);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tArrayList<Cookie> tmpCookies = Cookie.getCookies(conn);\n\t\t\taws = Cookie.getCookie(tmpCookies, \"AWSELB\");\n\t\t\tphp = Cookie.getCookie(tmpCookies, \"PHPSESSID\");\n\t\t\t\n\t\t\tconn = Utility.getGetConn(FUND_LOGIN);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tString location = Utility.getLocation(conn);\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t// TODO: future speed optimization\n\t\t\t//if (auth.getPHPCookie() == null) {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie()));\n\t\t\t\tCookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), \"PHPSESSID\");\n\t\t\t\t// saves time for Blackboard and retrieveProfileImage().\n\t\t\t\tauth.setPHPCookie(phpCookie);\n\t\t\t\t\n\t\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\t\n\t\t\t\tlocation = Utility.getLocation(conn);\n\t\t\t\tif (location.startsWith(\"signin.aspx\"))\n\t\t\t\t\tlocation = \"https://eraider.ttu.edu/\" + location;\n\t\t\t\tconn = Utility.getGetConn(location);\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\t// might need to set ESI and ELC here. If other areas are bugged, this is why.\n\t\t\t/*} else {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie()));\n\t\t\t\t/// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!!\n\t\t\t\tthrow new NullPointerException(\"Needs implementation!\");\n\t\t\t}*/\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/login.php?ticket=ST-...\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/funds_home.php\n\t\t\tlocation = Utility.getLocation(conn);\n\t\t\tif (location.startsWith(\"index.\")) {\n\t\t\t\tlocation = \"https://get.cbord.com/raidercard/full/\" + location;\n\t\t\t}\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tUtility.readByte(conn);\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundlogin\", ErrorType.Fatal);\n\t\t\treturn LoginResult.OTHER;\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundlogingeneral\", ErrorType.APIChange);\n\t\t\treturn LoginResult.OTHER;\n\t\t}\n\n\t\tloggedIn = true;\n\n\t\treturn LoginResult.SUCCESS;\n\t}", "public User login(String loginName, String password) throws UserBlockedException;", "@BeforeMethod\n public void loadLoginPage(){\n driver.get(\"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/\");\n Loginpage page = new Loginpage(driver);\n page.createAccount();\n }", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "public abstract void login(String userName, String password) throws RemoteException;", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "public void signIn()\r\n {\r\n FoodCenterRequestFactory factory = AndroidRequestUtils.getFoodCenterRF(context);\r\n ClientServiceRequest service = factory.getClientService();\r\n\r\n service.login(regId).fire(this);\r\n }", "public ControleurVueLogin() {\n\n\t}", "private void signIn() {\n }", "@Override\n\tpublic SpaceUserVO login(SpaceUserVO spaceUserVO) throws Exception {\n\t\treturn null;\n\t}", "private void go(String[] args) {\n System.setProperty(\"jsse.enableSNIExtension\", \"false\");\n\n // process command line arguments\n options = new SampleCommandLineOptions();\n options.parseOptions(args);\n\n // Log in to vCHS API, getting a session in response if login is successful\n System.out.print(\"\\nConnecting to vCHS...\");\n\n authToken = IAM\n .login(options.hostname, options.username, options.password, options.version);\n\n if (null != authToken) {\n System.out.println(\"Success\\n\");\n\n // Retrieve the collection of compute services which can be of type dedicated cloud or\n // vpc\n // and has VDC in it.\n System.out.print(\"Retrieving users...\");\n\n // List all the users displaying their ids, usernames, family/given names, emails and\n // status\n Users allUsers = IAM.getUsers(options.hostname, authToken, options.version);\n if (null != allUsers && null != allUsers.getUsers() && allUsers.getUsers().size() > 0) {\n System.out.println(\"\\n\");\n\n System.out.printf(\"%-38s %-30s %-40s %-40s %-8s %-20s\\n\", \"Id\", \"Username\",\n \"Given & Family Name\", \"Email\", \"State\", \"Roles\");\n System.out.printf(\"%-38s %-30s %-40s %-40s %-8s %-20s\\n\", \"--\", \"--------\",\n \"-------------------\", \"-----\", \"-----\", \"-----\");\n for (User user : allUsers.getUsers()) {\n Roles allRoles = user.getRoles();\n List<Role> roles = allRoles.getRoles();\n StringBuilder sb = new StringBuilder();\n for (Role role : roles) {\n sb.append(role.getName()).append(\", \");\n }\n\n sb.deleteCharAt(sb.length() - 1);\n sb.deleteCharAt(sb.length() - 1);\n\n System.out.printf(\"%-38s %-30s %-40s %-40s %-8s %-20s\\n\", user.getId(),\n user.getUserName(), user.getGivenName() + \" \" + user.getFamilyName(),\n user.getEmail(), user.getState(), sb.toString());\n }\n }\n\n System.out.println();\n System.out\n .println(\"There are a total of \" + allUsers.getUsers().size() + \" users.\\n\\n\");\n System.out.print(\"Getting logged in user's details....\");\n User self = IAM.getSelf(options.hostname, authToken, options.version);\n if (null != self) {\n System.out.println(\"\\n\");\n System.out.printf(\"%-40s %-40s %-25s %-25s\\n\", \"Id\", \"Email\", \"Given Name\",\n \"Family Name\");\n System.out.printf(\"%-40s %-40s %-25s %-25s\\n\", \"--\", \"-----\", \"----------\",\n \"-----------\");\n System.out.printf(\"%-40s %-40s %-25s %-25s\\n\\n\", self.getId(), self.getEmail(),\n self.getGivenName(), self.getFamilyName());\n\n List<String> serviceGroupIds = null != self.getServiceGroupIds() ? self\n .getServiceGroupIds().getServiceGroupIds() : null;\n if (null != serviceGroupIds && serviceGroupIds.size() > 0) {\n System.out.printf(\"%-38s\\n\", \"Service Group Id\");\n System.out.printf(\"%-38s\\n\", \"----------------\");\n\n for (String sgid : serviceGroupIds) {\n System.out.printf(\"%-38s\\n\", sgid);\n }\n }\n }\n\n System.out.print(\"\\nCreating new user...\");\n Role role = new Role();\n role.setName(\"End User\");\n\n User user = new ObjectFactory().createUser();\n int num = new Random().nextInt();\n user.setEmail(\"test_\" + num + \"@test.com\");\n user.setState(\"Active\");\n user.setUserName(\"test_\" + num + \"@test.com\");\n user.setFamilyName(\"Test_FamilyName\");\n user.getSchemas().add(\"urn:scim:schemas:core:1.0\");\n user.setGivenName(\"Test_GivenName\");\n Roles roles = new Roles();\n roles.getRoles().add(role);\n user.setRoles(roles);\n\n User newUser = IAM.createUser(options.hostname, authToken, user, options.version);\n if (null != newUser) {\n System.out.println(\"Success.\\n\");\n\n // Update user\n newUser.setFamilyName(\"NewFamilyName\");\n\n System.out.print(\"Updating Family Name for new user...\");\n int status = IAM.updateUser(options.hostname, authToken, newUser, options.version);\n if (status == HttpStatus.SC_NO_CONTENT) {\n System.out.println(\"Success.\\n\");\n User updatedUser = IAM.getUser(options.hostname, authToken, newUser.getId(),\n options.version);\n if (null != updatedUser) {\n System.out.println(\"Updated user family name is now \"\n + updatedUser.getFamilyName() + \"\\n\");\n }\n } else {\n System.out.println(\"Failed.\\n\");\n }\n\n System.out.print(\"Deleting newly created user...\");\n status = IAM.deleteUser(options.hostname, authToken, newUser.getId(),\n options.version);\n if (status == HttpStatus.SC_OK || status == HttpStatus.SC_NO_CONTENT) {\n System.out.println(\"Success.\\n\");\n } else {\n System.out.println(\"Failed.\\n\");\n }\n }\n }\n }", "SignedObject authenticate(String username, String hashedPassword) throws RemoteException, Exception;", "public static void loginToSmartBear(WebDriver driver) throws InterruptedException, IOException {\n Properties properties = new Properties();\n FileInputStream file = new FileInputStream(\"configuration.properties\");\n properties.load(file);\n String url = properties.getProperty(\"smartbearUrl\");\n\n\n //#3- This method simply logs in to SmartBear when you call it.\n //#4- Accepts WebDriver type as parameter\n driver.get(url);\n\n Thread.sleep(3000);\n driver.findElement(By.id(\"ctl00_MainContent_username\")).sendKeys(\"Tester\");\n //4. Enter password: “com.cybertek.extrapractice.test”\n driver.findElement(By.id(\"ctl00_MainContent_password\")).sendKeys(\"com/cybertek/extrapractice/test\");\n\n //5. Click to Login button\n driver.findElement(By.id(\"ctl00_MainContent_login_button\")).click();\n\n }", "public abstract void login(\r\n com.google.protobuf.RpcController controller,\r\n PbDemoProto.Login_C2S request,\r\n com.google.protobuf.RpcCallback<PbDemoProto.Login_S2C> done);", "public void login() throws IOException {\n\t\tApp.setRoot(\"LogIn\");\n\t}", "public void StartLogIn(){\n\t}", "void login(String email, String password) throws InvalidCredentialsException, IOException;", "public int login(String username, String password) \n {\n\treturn this.acctCtrl.login(username, password);\n\n }", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "public abstract void login(\r\n com.google.protobuf.RpcController controller,\r\n PbDemoProto.Login_C2S request,\r\n com.google.protobuf.RpcCallback<PbDemoProto.Login_S2C> done);", "public Pair<UUID, Boolean> login(String username,\n String password) {\n return tradingSystemFacade.login(username, password);\n }", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "private static void authenticateToAzure() {\n ApplicationTokenCredentials credentials = new ApplicationTokenCredentials(AZURE_CLIENT_ID,\r\n AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AzureEnvironment.AZURE);\r\n\r\n try {\r\n azure = Azure.configure().withLogLevel(LogLevel.BASIC).authenticate(credentials).withDefaultSubscription();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n throw new AuthenticationException(\r\n \"Error authenticating to Azure - check your credentials in your environment.\");\r\n }\r\n }", "public void LogIn() {\n\t\t\r\n\t}", "public void setVaultName(String vaultName) {\n this.vaultName = vaultName;\n }", "protected void login(String username, String password) throws Exception {\n final SecurityClient securityClient = SecurityClientFactory.getSecurityClient();\n securityClient.setSimple(username, password);\n securityClient.login();\n }", "void start(SignedObject accessToken) throws RemoteException, AuthenticationException;", "void login(String user, String password);", "public String signIn(String username, String password);", "LoginContext login(String username, String password) throws LoginException;", "private void logIn() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n\n String user = a[0];\n String password = a[1];\n boolean rez = service.checkPassword(user, password);\n if(rez == TRUE)\n System.out.println(\"Ok\");\n else\n System.out.println(\"Not ok\");\n }", "public LoginResponse login(LoginRequest request) throws IOException {\n ClientCommunicator loginCommunicator = new ClientCommunicator(new LoginStrategy());\n\n return (LoginResponse) loginCommunicator.doWebRequest(request, null);\n }", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }", "private void logIn(LogSignTemplate credentials){\n Call<LogSignTemplate> callNewTrack = nightAPI.authorize(credentials);\n callNewTrack.enqueue(new Callback<LogSignTemplate>() {\n @Override\n public void onResponse(Call<LogSignTemplate> call, Response<LogSignTemplate> response) {\n if(response.isSuccessful()){\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// SUCCESFUL LOGIN !!!!!!!!!!!!!!! /////////////////////////////////////\");\n Toasty.success(getContext(), \"Succes, welcome.\", Toast.LENGTH_SHORT, true).show();\n Intent intent = new Intent(getContext(), MenuActivity.class);\n startActivity(intent);\n }\n else{\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// NO SUCCESFUL RESPONSE /////////////////////////////////////\");\n Toasty.error(getContext(), \"Incorrect username or password.\", Toast.LENGTH_SHORT, true).show();\n }\n }\n\n @Override\n public void onFailure(Call<LogSignTemplate> call, Throwable t) {\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////////// ERROR /////////////////////////////////\");\n Toasty.error(getContext(), \"Error while validating..\", Toast.LENGTH_SHORT, true).show();\n t.printStackTrace();\n }\n });\n }", "public void login(){\n JSONObject clientInfo = new JSONObject();\n try{\n clientInfo.put(\"username\", mUsername);\n clientInfo.put(\"password\", mPassword);\n clientInfo.put(\"deviceID\", getDeviceID());\n clientInfo.put(\"ipAddress\", getClientIP());\n mSocket.emit(\"login\", clientInfo);\n }catch(JSONException ex){\n throw new RuntimeException(ex);\n }\n }", "public String getVault() {\n return vault;\n }", "private void loginHandler(RoutingContext context) {\n JsonObject creds = new JsonObject()\n .put(\"username\", context.getBodyAsJson().getString(\"username\"))\n .put(\"password\", context.getBodyAsJson().getString(\"password\"));\n\n // TODO : Authentication\n context.response().setStatusCode(500).end();\n }", "private void loginClient() throws IOException {\n\t\tString instanceID = UUID.randomUUID().toString();\r\n\t\tString loginName = fromClient.readLine();\r\n\t\t\r\n\t\tif (clientTable.has(loginName)) {\r\n\t\t\tString password = fromClient.readLine();\r\n\t\t\t\r\n\t\t\tif (!clientTable.testPassword(loginName, password)) toClient.println(Commands.INVALID_PASSWORD);\r\n\t\t\telse {\r\n\t\t\t\tReport.behaviour(loginName + \" has connected\");\r\n\t\t\t\t\r\n\t\t\t\t//tells the client the connection was a success\r\n\t\t\t\ttoClient.println(Commands.CONNECTION_SUCCESS);\r\n\t\t\t\t\r\n\t\t\t\t//adds a running queue to the account\r\n\t\t\t\tclientTable.addQueue(loginName, instanceID);\r\n\t\t\t\t\r\n\t\t\t\t//create threads\r\n\t\t\t\tmakeThreads(loginName, instanceID);\r\n\t\t\t}\r\n\t\t} \r\n\t\t\r\n\t\t//send error messages if the login was unsuccessful\r\n\t\telse toClient.println(Commands.USER_NOT_FOUND);\r\n\t}", "@Override\r\n\tpublic void loginIn(Account account) throws ServiceException {\n\r\n\t}", "@Test\r\n\tpublic void test_2_SignIn() {\n\t\tdriver.findElement(By.cssSelector(\"#nav-link-accountList > span.nav-line-2\")).click();\r\n\t\tString signIn = driver.getTitle();\r\n\t\tAssert.assertEquals(signIn, \"Amazon Sign In\");\r\n\t\t// enter email\r\n\t\tdriver.findElement(By.id(\"ap_email\")).sendKeys(email);\r\n\t\t// enter password\r\n\t\tdriver.findElement(By.id(\"ap_password\")).sendKeys(password);\r\n\t\t// click on submit\r\n\t\tdriver.findElement(By.id(\"signInSubmit\")).click();\r\n\t\tSystem.out.println(\"Sign in is successful\");\r\n\t}", "@Override\r\n protected void onCreate(Bundle savedInstanceState) {\r\n // these will always be here, every time, thanks Android\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_main);\r\n\r\n getApplicationContext().startService(new Intent(getApplicationContext(), TransferService.class));\r\n\r\n ActivityCompat.requestPermissions(this, new String[]{READ_EXTERNAL_STORAGE}, 10);\r\n\r\n AWSMobileClient.getInstance().initialize(getApplicationContext(), new com.amazonaws.mobile.client.Callback<UserStateDetails>() {\r\n @Override\r\n public void onResult(UserStateDetails result) {\r\n Log.i(\"ncarignan.login\", result.getUserState().toString());\r\n if(result.getUserState().toString().equals(\"SIGNED_OUT\")){\r\n AWSMobileClient.getInstance().showSignIn(MainActivity.this,\r\n SignInUIOptions.builder().backgroundColor(1).logo(R.drawable.tv_scooby_doo_2b).build(),\r\n new com.amazonaws.mobile.client.Callback<UserStateDetails>() {\r\n @Override\r\n public void onResult(UserStateDetails result) {\r\n Log.i(\"ncarignan.signin\", result.getUserState().toString());\r\n }\r\n\r\n @Override\r\n public void onError(Exception e) {\r\n Log.e(\"ncarignan.signin\", e.getMessage());\r\n }\r\n });\r\n }\r\n\r\n }\r\n\r\n @Override\r\n public void onError(Exception e) {\r\n Log.e(\"ncarignan.login\", e.getMessage());\r\n }\r\n });\r\n\r\n // Build a connection to AWS\r\n awsAppSyncClient = AWSAppSyncClient.builder()\r\n .context(getApplicationContext())\r\n .awsConfiguration(new AWSConfiguration(getApplicationContext()))\r\n .build();\r\n\r\n // run graphql query for all data\r\n queryAllBuyableItems();\r\n\r\n // subscribe to future updates\r\n Log.i(TAG, \"trying to subscribe\");\r\n OnCreateBuyableItemSubscription subscription = OnCreateBuyableItemSubscription.builder().build();\r\n awsAppSyncClient.subscribe(subscription).execute(new AppSyncSubscriptionCall.Callback<OnCreateBuyableItemSubscription.Data>() {\r\n @Override\r\n public void onResponse(@Nonnull com.apollographql.apollo.api.Response<OnCreateBuyableItemSubscription.Data> response) {\r\n // hey you have something\r\n // AWS calls this method when a new BuyableItem is created\r\n Log.i(TAG, \"new data added\");\r\n final BuyableItem newItem = new BuyableItem(response.data().onCreateBuyableItem().title(), response.data().onCreateBuyableItem().priceInCents());\r\n Handler handler = new Handler(Looper.getMainLooper()) {\r\n @Override\r\n public void handleMessage(Message inputMessage) {\r\n buyableItemAdapter.addItem(newItem);\r\n }\r\n };\r\n\r\n handler.obtainMessage().sendToTarget();\r\n\r\n }\r\n\r\n @Override\r\n public void onFailure(@Nonnull ApolloException e) {\r\n Log.i(TAG, Arrays.toString(e.getStackTrace()));\r\n Log.i(TAG, e.getCause().getMessage());\r\n }\r\n\r\n @Override\r\n public void onCompleted() {\r\n // good job you subscribed gold star\r\n Log.i(TAG, \"subscribed to buyable items\");\r\n }\r\n });\r\n\r\n\r\n // render the buyable items to the screen, in the RecyclerView\r\n // https://developer.android.com/guide/topics/ui/layout/recyclerview\r\n // this.buyableItems will be empty until we get the data from GraphQL\r\n this.buyableItems = new LinkedList<>();\r\n recyclerView = findViewById(R.id.results);\r\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\r\n this.buyableItemAdapter = new BuyableItemAdapter(this.buyableItems, this);\r\n recyclerView.setAdapter(this.buyableItemAdapter);\r\n\r\n\r\n // grab the button, using its ID and the generated R (resource) info\r\n Button button = findViewById(R.id.button);\r\n // add the event listener to the button\r\n button.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View event) {\r\n // hide keyboard\r\n InputMethodManager inputManager = (InputMethodManager)\r\n getSystemService(Context.INPUT_METHOD_SERVICE);\r\n inputManager.hideSoftInputFromWindow((null == getCurrentFocus()) ? null : getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\r\n // update text of the thing to be whatever was typed in\r\n\r\n // grab what was typed in\r\n EditText editText = findViewById(R.id.editText);\r\n enteredItemName = editText.getText().toString();\r\n\r\n // tell graphql to add the item\r\n runAddBuyableItemMutation(enteredItemName);\r\n\r\n MainActivity.this.findViewById(R.id.results).setVisibility(View.VISIBLE);\r\n }\r\n });\r\n\r\n // Handle a button click for logout\r\n // need a listener\r\n // stuff happens in the listener (signout)\r\n // need to connect it to a button\r\n Button signoutButton = findViewById(R.id.signout);\r\n signoutButton.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View event) {\r\n String username = AWSMobileClient.getInstance().getUsername();\r\n\r\n AWSMobileClient.getInstance().signOut();\r\n\r\n TextView hiView = findViewById(R.id.hiTextView);\r\n hiView.setText(\"Bye \" + username +\"!\");\r\n\r\n// MainActivity.this.();\r\n }\r\n });\r\n\r\n Button signinButton = findViewById(R.id.signin);\r\n signinButton.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View event) {\r\n AWSMobileClient.getInstance().showSignIn(MainActivity.this,\r\n SignInUIOptions.builder().backgroundColor(1).logo(R.drawable.tv_scooby_doo_2b).build(),\r\n new com.amazonaws.mobile.client.Callback<UserStateDetails>() {\r\n @Override\r\n public void onResult(UserStateDetails result) {\r\n Log.i(\"ncarignan.signin\", result.getUserState().toString());\r\n Log.i(\"ncarignan.signin\", AWSMobileClient.getInstance().currentUserState().getUserState().toString());\r\n Log.i(\"ncarignan.signin\", AWSMobileClient.getInstance().currentUserState().getDetails().toString());\r\n Log.i(\"ncarignan.signin\", AWSMobileClient.getInstance().getUsername());\r\n }\r\n\r\n @Override\r\n public void onError(Exception e) {\r\n Log.e(\"ncarignan.signin\", e.getMessage());\r\n }\r\n });\r\n }\r\n });\r\n\r\n }", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "void login(String userName) throws IllegalArgumentException, IOException;", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "String vaultName();", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "Login() { \n }", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "private ServicioLogin() {\n super();\n }", "private String login() throws AxisFault {\n APIManagerConfiguration config = ServiceReferenceHolder.getInstance().\n getAPIManagerConfigurationService().getAPIManagerConfiguration();\n String user = config.getFirstProperty(APIConstants.API_GATEWAY_USERNAME);\n String password = config.getFirstProperty(APIConstants.API_GATEWAY_PASSWORD);\n String url = config.getFirstProperty(APIConstants.API_GATEWAY_SERVER_URL);\n\n if (url == null || user == null || password == null) {\n throw new AxisFault(\"Required API gateway admin configuration unspecified\");\n }\n\n String host;\n try {\n host = new URL(url).getHost();\n } catch (MalformedURLException e) {\n throw new AxisFault(\"API gateway URL is malformed\", e);\n }\n\n AuthenticationAdminStub authAdminStub = new AuthenticationAdminStub(\n ServiceReferenceHolder.getContextService().getClientConfigContext(),\n url + \"AuthenticationAdmin\");\n ServiceClient client = authAdminStub._getServiceClient();\n Options options = client.getOptions();\n options.setManageSession(true);\n try {\n authAdminStub.login(user, password, host);\n ServiceContext serviceContext = authAdminStub.\n _getServiceClient().getLastOperationContext().getServiceContext();\n String sessionCookie = (String) serviceContext.getProperty(HTTPConstants.COOKIE_STRING);\n return sessionCookie;\n } catch (RemoteException e) {\n throw new AxisFault(\"Error while contacting the authentication admin services\", e);\n } catch (LoginAuthenticationExceptionException e) {\n throw new AxisFault(\"Error while authenticating against the API gateway admin\", e);\n }\n }", "private LogIn() {}", "public void authenticate(LoginCredentials credentials) throws LoginException;", "RedisManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "public static void logIn(WebDriver dr) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// Username\n\t\tSystem.out.println(\"Enter username:\");\n\t\tString username=sc.nextLine();\n\t\tIzletPage.clickLUsername(dr);\n\t\tIzletPage.sendKeysLUsername(dr, username);\n\t\t// Password\n\t\tSystem.out.println(\"Enter password: \");\n\t\tString pass = sc.nextLine();\n\t\tIzletPage.clickLPassword(dr);\n\t\tIzletPage.sendKeysLPassword(dr, pass);\n\t\t// Log in button\n\t\tIzletPage.clickLogInButton(dr);\n\t\tsc.close();\n\t}", "public Person login(String username, String password);", "void login(String cuid, String pass)\n throws RemoteException;", "public com.sun.jna.PointerType login(Credentials c) throws RelationException;", "public String getVaultName() {\n return vaultName;\n }", "public void login(){\n if (this.method.equals(\"Facebook\")){\n Scanner in = new Scanner(System.in);\n\n System.out.println(\"Enter your Facebook username :\");\n String username = in.next();\n\n System.out.println(\"Enter your Facebook password :\");\n String password = in.next();\n\n connector.connectToDb();\n\n System.out.println(\"Success : Logged In !\");\n }\n }", "public void login(View v) {\n if (validateLogin()) {\n attemptLogin();\n }\n }", "private void loginUser() throws JSONException, UnsupportedEncodingException {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"username\", editUserName.getText().toString());\n jsonObject.put(\"password\", editPassword.getText().toString());\n jsonObject.put(\"DeviceID\", diviceToken);\n jsonObject.put(\"DevicePlatform\", devicePlatform);\n invokeLogin(jsonObject);\n\n\n }", "public void doLogin(Activity activity) {\n\t\tif (!isLoggedIn())\n\t\t\tmDropboxAPI.getSession().startAuthentication(activity);\n\t}", "public Login() {\r\n\t\tinitialize();\r\n\t}", "public int logIn() {\n guestPresenter.printLogInMessage();\n int id = requestInt(\"id\");\n char[] password = requestString(\"password\").toCharArray();\n UserManager.UserType user = guestManager.logIn(id, password);\n\n if (user == null) {\n guestPresenter.logInFailure();\n return -1;\n } else {\n return id;\n }\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "@Test\r\n\tpublic void login() throws Exception{\r\n\t\t\r\n\t\tSignInPage objSignInPage=new SignInPage(driver);\r\n\t\t\r\n\t\t//insert username and password\r\n\t\tobjSignInPage.signIn(Util_VU.LOGIN_ID,Util_VU.PASSWORD);\r\n\t\t\r\n\t\t//get\r\n\t\tString step2=driver.getTitle();\r\n\t\tSystem.out.println(step2);\r\n\t\t\r\n\t}", "public AuthResponse loginAccount(Account acc){\n Call<AuthResponse> call = endpoints.loginAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "public AWSCredentialsProvider getAWSCredentialsProvider() {\n return new DefaultAWSCredentialsProviderChain();\n }", "@Test(priority = 0)\n public void salesforceLogin() {\n SalesforceLoginPage salesforceLoginObj = new SalesforceLoginPage(driver);\n\n driver.get(\"https://login.salesforce.com\");\n\n salesforceLoginObj.setUsername(\"*********\");//Enter valid username\n salesforceLoginObj.setPassword(\"********\");//Enter valid password\n salesforceLoginObj.logInButtonClick();\n\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "Document login(String username, String password);", "public boolean tryLogin(auctionsystemInterface ai) throws RemoteException\n {\n//\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Please enter username: \");\n curBuyerName = sc.next();\n\n System.out.println(\"Please enter password: \");\n curBuyerPas = sc.next();\n\n try {\n boolean succesful = ai.login(curBuyerName,curBuyerPas);\n\n if(succesful)\n {\n System.out.println(\"You have successfully logged in \" + curBuyerName);\n return true;\n }\n else\n {\n System.out.println(\"Login failed.\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }", "@Given(\"Login Functionality\")\n public void Login_Functionality() {\n String url = ConfigurationReader.get(\"url\");\n Driver.get().get(url);\n //login with valid credentials\n loginPage.login();\n }", "UserToken login(String username, String password) throws WorkspaceException;", "public static void login(Lookup lookup) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tSystem.out.println(\"Enter your UserName: \");\r\n\t\t\t\r\n\t\t\tString name = sc.nextLine();\r\n\r\n\t\t\tSystem.out.println(\"Enter your Password: \");\r\n\t\t\t\r\n\t\t\tString pass = sc.nextLine();\r\n\r\n\t\t\tsUser = lookup.checkLoginAuth(name, pass);\r\n\r\n\t\t} catch (InvalidInputException e) {\r\n\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tSystem.err.flush();\r\n\r\n\t\t}\r\n\r\n\t}", "public void authenticate(LoginRequest loginRequest) {\n\n }", "String signIn(String userName, String password) throws UserNotFoundException;", "public void clickLogin() {\n\t\tcontinueButton.click();\n\t}", "public void loginAsTom() {\n textFieldUsername.withTimeoutOf(2000, MILLIS).type(\"tomsmith\");\n textFieldPassword.type(\"SuperSecretPassword!\");\n buttonLogin.click();\n }", "public void login(ActionEvent e) throws IOException {\r\n\t\t\r\n \tString username = loginuser.getText().trim();\r\n \t//if user is admin, change to userlist screen\r\n \tif (username.equals(\"admin\")) {\r\n \tPhotos.userlistscreen();\r\n \t} else {\r\n \t\tUser user = currentAdmin.findUser(username);\r\n \t\t//if user is found, log into that user and show the album view for that user specifically\r\n \t\tif (user!=null) {\r\n \t\t\tAlbumController.currentUser = (NonAdmin) user;\r\n \t\t\tCopyController.currentUser = (NonAdmin) user;\r\n \t\t\tMoveController.currentUser = (NonAdmin) user;\r\n \t\t\tPhotos.albumscreen(user);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\r\n \t\t\talert.setTitle(\"Error\");\r\n \t\t\talert.setHeaderText(\"Invalid username\");\r\n \t\t\talert.setContentText(\"Please try again\");\r\n \t\t\talert.showAndWait();\r\n \t\t\tloginuser.setText(\"\");\r\n \t\t}\r\n \t}\r\n\t}", "public static Result login() {\n String csrfToken = \"\";\n return serveAsset(\"\");\n }", "public String getVaultPassword() {\n return vaultPassword;\n }" ]
[ "0.5738282", "0.5507398", "0.54317737", "0.53890514", "0.5386339", "0.53692824", "0.53357494", "0.529501", "0.52750415", "0.5267303", "0.5218932", "0.51669127", "0.5095082", "0.5067939", "0.5066096", "0.5057388", "0.5041901", "0.50212556", "0.5019289", "0.5019199", "0.50057757", "0.49888116", "0.4977343", "0.49720028", "0.49644637", "0.49442527", "0.49065623", "0.4890718", "0.4888026", "0.48877513", "0.4880838", "0.48747566", "0.48715818", "0.48625308", "0.48616883", "0.48569965", "0.4853414", "0.4853414", "0.48438683", "0.48275203", "0.48252842", "0.4824751", "0.4823678", "0.48203543", "0.48129055", "0.4806005", "0.48019618", "0.47966257", "0.47880268", "0.47844192", "0.47765172", "0.47752213", "0.47747374", "0.47719714", "0.47718146", "0.47627252", "0.47620144", "0.4754041", "0.47398457", "0.4725468", "0.47171333", "0.47140712", "0.47052696", "0.47009563", "0.46775386", "0.46760568", "0.4675008", "0.4673338", "0.46684146", "0.46623144", "0.46613738", "0.46594238", "0.46589613", "0.46586886", "0.4654111", "0.46513954", "0.4649822", "0.46486557", "0.46454424", "0.46414188", "0.4637956", "0.46368134", "0.4635703", "0.46334854", "0.46320957", "0.46298078", "0.46297067", "0.46270448", "0.46236596", "0.46141064", "0.46080023", "0.46066505", "0.46038717", "0.46036056", "0.4599374", "0.459055", "0.4589075", "0.45886555", "0.4586964", "0.45866814" ]
0.4833177
39
Login to vault using the azure method
public Optional<AuthLoginAzure> authLoginAzure() { return Codegen.objectProp("authLoginAzure", AuthLoginAzure.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SqlVirtualMachineManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "private static void authenticateToAzure() {\n ApplicationTokenCredentials credentials = new ApplicationTokenCredentials(AZURE_CLIENT_ID,\r\n AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AzureEnvironment.AZURE);\r\n\r\n try {\r\n azure = Azure.configure().withLogLevel(LogLevel.BASIC).authenticate(credentials).withDefaultSubscription();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n throw new AuthenticationException(\r\n \"Error authenticating to Azure - check your credentials in your environment.\");\r\n }\r\n }", "RecoveryServicesManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "RecoveryServicesManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "private String getVaultToken(MagnoliaConfigurationProperties magnoliaConfigurationProperties) {\n return magnoliaConfigurationProperties.getProperty(PROPERTY_VAULT_TOKEN);\n }", "private void login() {\n if (blobStore != null) {\n return;\n }\n if (swiftUsername == null || swiftPassword == null || swiftAuthUrl == null || swiftContainer == null) {\n logger.error(\"Blob storage account is not configured\");\n throw new IllegalArgumentException(\"ERROR: Blob storage account is not configured\");\n }\n blobStore = ContextBuilder.newBuilder(blobApi)\n .endpoint(swiftAuthUrl)\n .credentials(swiftUsername, swiftPassword)\n .buildView(BlobStoreContext.class)\n .getBlobStore();\n\n if (!blobStore.containerExists(swiftContainer)) {\n// CreateContainerOptions options = CreateContainerOptions.Builder\n// .withMetadata(ImmutableMap.of(\"description\", \"E-PRTR data\"));\n// blobStore.createContainerInLocation(null, swiftContainer, options);\n Location location = getRegion();\n blobStore.createContainerInLocation(location, swiftContainer);\n }\n }", "SqlServerManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "RedisManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "public String getVault() {\n return vault;\n }", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "protected Response login(String environment) {\n environment = Strings.isNullOrEmpty(environment) ? \"\"\n : \"/\" + environment;\n JsonObject creds = new JsonObject();\n creds.addProperty(\"username\", \"admin\");\n creds.addProperty(\"password\", \"admin\");\n Response resp = post(environment + \"/login\", creds.toString());\n return resp;\n }", "private void logIn(LogSignTemplate credentials){\n Call<LogSignTemplate> callNewTrack = nightAPI.authorize(credentials);\n callNewTrack.enqueue(new Callback<LogSignTemplate>() {\n @Override\n public void onResponse(Call<LogSignTemplate> call, Response<LogSignTemplate> response) {\n if(response.isSuccessful()){\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// SUCCESFUL LOGIN !!!!!!!!!!!!!!! /////////////////////////////////////\");\n Toasty.success(getContext(), \"Succes, welcome.\", Toast.LENGTH_SHORT, true).show();\n Intent intent = new Intent(getContext(), MenuActivity.class);\n startActivity(intent);\n }\n else{\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// NO SUCCESFUL RESPONSE /////////////////////////////////////\");\n Toasty.error(getContext(), \"Incorrect username or password.\", Toast.LENGTH_SHORT, true).show();\n }\n }\n\n @Override\n public void onFailure(Call<LogSignTemplate> call, Throwable t) {\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////////// ERROR /////////////////////////////////\");\n Toasty.error(getContext(), \"Error while validating..\", Toast.LENGTH_SHORT, true).show();\n t.printStackTrace();\n }\n });\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_login);\n\n try {\n ApplicationInfo ai = getPackageManager().getApplicationInfo(this.getPackageName(), PackageManager.GET_META_DATA);\n Bundle bundle = ai.metaData;\n azure_server = bundle.getString(\"azure_server\");\n } catch (PackageManager.NameNotFoundException e) {\n Log.e(\"AZURE_SERVICE\", \"Failed to load meta-data, NameNotFound: \" + e.getMessage());\n } catch (NullPointerException e) {\n Log.e(\"AZURE_SERVICE\", \"Failed to load meta-data, NullPointer: \" + e.getMessage());\n }\n\n autoLogin = false;\n assetsManager = getAssets();\n userNameET = (EditText) findViewById(R.id.emailET);\n passwordET = (EditText) findViewById(R.id.passwordET);\n userNameET.setText(\"\");\n passwordET.setText(\"\");\n complaintSingleton = ComplaintSingleton.getInstance();\n\n Button loginBTN = (Button) findViewById(R.id.loginBtn);\n Button createAccBTN = (Button) findViewById(R.id.creatAccountBtn);\n init();\n String sharedUserName = loginPrefs.getString(USERNAME_KEY, \"\");\n String sharedPassword = loginPrefs.getString(PASSWORD_KEY, \"\");\n\n pswd = passwordET.getText().toString();\n uname = userNameET.getText().toString();\n loginBTN.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n userNameForValidation = userNameET.getText().toString();\n passwordForValidation = passwordET.getText().toString();\n\n try {\n loginSrvcResposnse = new HttpAsyncTask().execute(azure_server + \"token\").get();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n if(loginSrvcResposnse.length()>0) {\n String credentialsJSON = loginSrvcResposnse;//getCredentialsValidationJSON();\n parseCredentialsJSON(credentialsJSON, userNameForValidation, passwordForValidation);\n if(validLogin) {\n try {\n String userResponse = new HttpAsyncTaskForUserInfo().execute(azure_server+ \"Api/Account/UserInfo\").get();\n validLogin = true;\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n }\n else\n {\n Toast.makeText(getApplicationContext(),\"Login Failed!\",Toast.LENGTH_SHORT).show();\n }\n }\n }\n });\n if (sharedUserName.length() > 0 && sharedPassword.length() > 0) {\n fillData();\n pswd = passwordET.getText().toString();\n uname = userNameET.getText().toString();\n if (uname.length() > 0 && pswd.length() > 0) {\n if (loginPrefs.getString(USERNAME_KEY, \"\").length() > 0 && loginPrefs.getString(PASSWORD_KEY, \"\").length() > 0) {\n autoLogin = true;\n loginBTN.performClick();\n\n } else {\n userNameET.setText(\"\");\n passwordET.setText(\"\");\n }\n }\n client = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build();\n }\n createAccBTN.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n new HttpAsyncTask().execute(azure_server + \"token\");\n\n\n Intent createAccIntent = new Intent(LoginActivity.this, SignUpActivity.class);\n startActivity(createAccIntent);\n }\n });\n }", "public String getVaultPassword() {\n return vaultPassword;\n }", "User login(Uuid id, String username, String password, Time creationTime);", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public Reply login(String hostname) throws ThingsException, InterruptedException;", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public static void authenticate() {\n\n Stage window = new Stage();\n\n final String url = OAUTH_URL + getQuery();\n\n BorderPane borderPane = new BorderPane();\n WebView browser = new WebView();\n WebEngine webEngine = browser.getEngine();\n\n webEngine.load(url);\n borderPane.setCenter(browser);\n\n webEngine.setOnStatusChanged(event -> {\n if (event.getSource() instanceof WebEngine) {\n WebEngine we = (WebEngine) event.getSource();\n String location = we.getLocation();\n // If we are redirected to REDIRECT_URL we get contents, and send it to verify() to get access token\n if (location.startsWith(REDIRECT_URL) && location.contains(\"code\") && AUTH_OBECT == null) try {\n URL url1 = new URL(location);\n String[] params = url1.getQuery().split(\"&\");\n Map<String, String> map = new HashMap<>();\n for (String param : params) {\n String name = param.split(\"=\")[0];\n String value = param.split(\"=\")[1];\n map.put(name, value);\n }\n String code = map.get(\"code\");\n // We have code so we continue the flow\n verify(code);\n window.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n // create scene\n window.setTitle(\"Authentication\");\n Scene scene = new Scene(borderPane, 750, 500);\n window.setScene(scene);\n window.showAndWait();\n }", "public AuthResponse loginAccount(Account acc){\n Call<AuthResponse> call = endpoints.loginAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "public String getVaultName() {\n return vaultName;\n }", "UserToken login(String username, String password) throws WorkspaceException;", "public static SqlVirtualMachineManager authenticate(AzureTokenCredentials credentials, String subscriptionId) {\n return new SqlVirtualMachineManager(new RestClient.Builder()\n .withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER)\n .withCredentials(credentials)\n .withSerializerAdapter(new AzureJacksonAdapter())\n .withResponseBuilderFactory(new AzureResponseBuilder.Factory())\n .build(), subscriptionId);\n }", "public static SqlVirtualMachineManager authenticate(RestClient restClient, String subscriptionId) {\n return new SqlVirtualMachineManager(restClient, subscriptionId);\n }", "protected Response login() {\n return login(\"\");\n }", "public ControleurVueLogin() {\n\n\t}", "public AdbLoginResponse loginScoinFromAdb(AdbLoginScoinRequest adbLoginScoinRequest);", "public void setVaultName(String vaultName) {\n this.vaultName = vaultName;\n }", "LoginContext login(String username, String password) throws LoginException;", "String vaultName();", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }", "private String login() throws AxisFault {\n APIManagerConfiguration config = ServiceReferenceHolder.getInstance().\n getAPIManagerConfigurationService().getAPIManagerConfiguration();\n String user = config.getFirstProperty(APIConstants.API_GATEWAY_USERNAME);\n String password = config.getFirstProperty(APIConstants.API_GATEWAY_PASSWORD);\n String url = config.getFirstProperty(APIConstants.API_GATEWAY_SERVER_URL);\n\n if (url == null || user == null || password == null) {\n throw new AxisFault(\"Required API gateway admin configuration unspecified\");\n }\n\n String host;\n try {\n host = new URL(url).getHost();\n } catch (MalformedURLException e) {\n throw new AxisFault(\"API gateway URL is malformed\", e);\n }\n\n AuthenticationAdminStub authAdminStub = new AuthenticationAdminStub(\n ServiceReferenceHolder.getContextService().getClientConfigContext(),\n url + \"AuthenticationAdmin\");\n ServiceClient client = authAdminStub._getServiceClient();\n Options options = client.getOptions();\n options.setManageSession(true);\n try {\n authAdminStub.login(user, password, host);\n ServiceContext serviceContext = authAdminStub.\n _getServiceClient().getLastOperationContext().getServiceContext();\n String sessionCookie = (String) serviceContext.getProperty(HTTPConstants.COOKIE_STRING);\n return sessionCookie;\n } catch (RemoteException e) {\n throw new AxisFault(\"Error while contacting the authentication admin services\", e);\n } catch (LoginAuthenticationExceptionException e) {\n throw new AxisFault(\"Error while authenticating against the API gateway admin\", e);\n }\n }", "@Override\n\tpublic SpaceUserVO login(SpaceUserVO spaceUserVO) throws Exception {\n\t\treturn null;\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "@Override\r\n\tpublic UserVO login(LoginUserVO user) {\n\t\treturn login.login(user);\r\n\t}", "public void signIn()\r\n {\r\n FoodCenterRequestFactory factory = AndroidRequestUtils.getFoodCenterRF(context);\r\n ClientServiceRequest service = factory.getClientService();\r\n\r\n service.login(regId).fire(this);\r\n }", "String login(String userName, String password) throws RemoteException, InterruptedException;", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "protected void login() {\n\t\t\r\n\t}", "public int login(String username, String password) \n {\n\treturn this.acctCtrl.login(username, password);\n\n }", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "@Override\n public void clientAuthenticate()\n throws HubIntegrationException {\n try {\n final ArrayList<String> segments = new ArrayList<>();\n segments.add(\"j_spring_security_check\");\n final HttpUrl httpUrl = createHttpUrl(segments, null);\n\n final Map<String, String> content = new HashMap<>();\n final String username = hubServerConfig.getGlobalCredentials().getUsername();\n String password = hubServerConfig.getGlobalCredentials().getEncryptedPassword();\n if (StringUtils.isNotBlank(username) && StringUtils.isNotBlank(password)) {\n try {\n password = hubServerConfig.getGlobalCredentials().getDecryptedPassword();\n\n content.put(\"j_username\", username);\n content.put(\"j_password\", password);\n final Request request = createPostRequest(httpUrl, createEncodedRequestBody(content));\n Response response = null;\n try {\n logRequestHeaders(request);\n response = getClient().newCall(request).execute();\n logResponseHeaders(response);\n if (!response.isSuccessful()) {\n throw new HubIntegrationException(response.message());\n }\n } finally {\n if (response != null) {\n response.close();\n }\n }\n } catch (IllegalArgumentException | EncryptionException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }\n } catch (final IOException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }", "private void login(String username,String password){\n\n }", "Map<String, String> interactiveLogin(CloudContext cloudContext, ExtendedCloudCredential extendedCloudCredential,\n CredentialNotifier credentialNotifier);", "private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSystem.out.println(\"Welcome to AnnyBank\");\n\n\t\ttransactions();\n\t}", "@RequestMapping(value = \"/login\")\n\tpublic String loginSckcloud(ModelMap model) throws Exception {\n\t\t\n\t\tString redirectUri = URLEncoder.encode(\"http://localhost:8081/login/callback\",\"UTF-8\");\n\t\t\n\t\t//String URI26 = \"https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=84b96132-780a-4948-b8fb-db6fb660dd87&response_type=code&redirect_uri=http://localhost:8081/login/sckcorp/callback&scope=https://api.partnercenter.microsoft.com/user_impersonation https://management.azure.com/user_impersonation\";\n\t\t\n\t\t//String URI1 = \"https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=65b68f11-2c9b-4ede-b2c6-baf367e51a3e&response_type=code&redirect_uri=http://localhost:8081/login/sckcloud/callback&scope=https://api.partnercenter.microsoft.com/user_impersonation https://management.azure.com/user_impersonation\";\n\t\t\n\t\t//sptek테스트\n\t\tString URI1 = \"https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=6741dc05-403f-4e86-a70e-abb7497c3ebc&response_type=code&redirect_uri=\"+redirectUri+\"&scope=https://api.partnercenter.microsoft.com/user_impersonation https://management.azure.com/user_impersonation\";\n\t\t\n\t\t//model.addAttribute(\"URI26\", URI26);\n\t\tmodel.addAttribute(\"URI1\", URI1);\n\t\t\n\n\t\treturn \"logintest\";\n\t}", "private void loginUser() throws JSONException, UnsupportedEncodingException {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"username\", editUserName.getText().toString());\n jsonObject.put(\"password\", editPassword.getText().toString());\n jsonObject.put(\"DeviceID\", diviceToken);\n jsonObject.put(\"DevicePlatform\", devicePlatform);\n invokeLogin(jsonObject);\n\n\n }", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "@BeforeGroups(groups = \"REGION_ADMIN\")\n protected void loginRegionAdmin() throws Exception {\n login(\"[email protected]\", \"region\");\n }", "public com.sun.jna.PointerType login(Credentials c) throws RelationException;", "public InboxPage login(String email, String password) {\n enterEmailOrPhone(email).clickOnNext().enterPassword(password);\n return clickPasswordNext();\n }", "public void onClick(View v) {\n\t\t if (mLoggedIn) {\n\t\t logOut();\n\t\t } else {\n\t\t // Start the remote authentication\n\t\t mApi.getSession().startAuthentication(ResourceActivity.this);\n\t\t }\n\t\t }", "@FXML\n protected void viewLoginPage() {\n \tLoginVistaNavigator.loadVista(LoginVistaNavigator.LOGIN);\n }", "public com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse login(\n com.outlook.octavio.armenta.ws.SOAPServiceStub.Login login2)\n throws java.rmi.RemoteException {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n try {\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions()\n .setAction(\"http://tempuri.org/ISOAPService/Login\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n addPropertyToOperationClient(_operationClient,\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\n \"&\");\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n\n env = toEnvelope(getFactory(_operationClient.getOptions()\n .getSoapVersionURI()),\n login2,\n optimizeContent(\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\n \"login\")),\n new javax.xml.namespace.QName(\"http://tempuri.org/\", \"Login\"));\n\n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n\n java.lang.Object object = fromOM(_returnEnv.getBody()\n .getFirstElement(),\n com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse.class);\n\n return (com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse) object;\n } catch (org.apache.axis2.AxisFault f) {\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n\n if (faultElt != null) {\n if (faultExceptionNameMap.containsKey(\n new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"))) {\n //make the fault by reflection\n try {\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\n //message class\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,\n messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[] { messageClass });\n m.invoke(ex, new java.lang.Object[] { messageObject });\n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n } catch (java.lang.ClassCastException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n } else {\n throw f;\n }\n } else {\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender()\n .cleanup(_messageContext);\n }\n }\n }", "Document login(String username, String password);", "public static void loginToSmartBear(WebDriver driver) throws InterruptedException, IOException {\n Properties properties = new Properties();\n FileInputStream file = new FileInputStream(\"configuration.properties\");\n properties.load(file);\n String url = properties.getProperty(\"smartbearUrl\");\n\n\n //#3- This method simply logs in to SmartBear when you call it.\n //#4- Accepts WebDriver type as parameter\n driver.get(url);\n\n Thread.sleep(3000);\n driver.findElement(By.id(\"ctl00_MainContent_username\")).sendKeys(\"Tester\");\n //4. Enter password: “com.cybertek.extrapractice.test”\n driver.findElement(By.id(\"ctl00_MainContent_password\")).sendKeys(\"com/cybertek/extrapractice/test\");\n\n //5. Click to Login button\n driver.findElement(By.id(\"ctl00_MainContent_login_button\")).click();\n\n }", "@Override\n\tpublic void login() {\n\t\tAccountManager accountManager = AccountManager.get(context);\n\t\tAccount[] accounts = accountManager.getAccountsByType(GOOGLE_ACCOUNT_TYPE);\n\t\tif(accounts.length < 1) throw new NotAccountException(\"This device not has account yet\");\n\t\tfinal String userName = accounts[0].name;\n\t\tfinal String accountType = accounts[0].type;\n\t\tBundle options = new Bundle();\n\t\tif(comService.isOffLine()){\n\t\t\tsetCurrentUser(new User(userName, userName, accountType));\n\t\t\treturn;\n\t\t}\n\t\taccountManager.getAuthToken(accounts[0], AUTH_TOKEN_TYPE, options, (Activity)context, \n\t\t\t\tnew AccountManagerCallback<Bundle>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run(AccountManagerFuture<Bundle> future) {\n\t\t\t\t\t\tString token = \"\";\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tBundle result = future.getResult();\n\t\t\t\t\t\t\ttoken = result.getString(AccountManager.KEY_AUTHTOKEN);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsetCurrentUser(new User(userName, userName, accountType, token));\n\t\t\t\t\t\t} catch (OperationCanceledException e) {\n\t\t\t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(\"Login\", \"Token: \" + token);\n\t\t\t\t\t}\n\t\t\t\t}, new Handler(new Handler.Callback() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean handleMessage(Message msg) {\n\t\t\t\t\t\tLog.d(\"Login\", msg.toString());\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}));\n\t}", "public MutableLiveData<TokenResponse> login(String email, String password) {\n return repository.login(email, password);\n }", "private void authenticate() {\n\t\t//Isn't a foreach because if the ciphertext is invalid, that data object is removed from the data array.\n\t\t// In a foreach, this would lead to a concurrent modification exception.\n\t\t//noinspection ForLoopReplaceableByForEach\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\ttry {\n\t\t\t\tdata.get(i).decryptText(plainPassword);\n\t\t\t} catch (VaultFormatException ignored) {\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public Boolean loginAdmin(LoginAccessVo vo) throws Exception {\n return null;\r\n }", "@Override\r\n public Boolean loginAdmin(LoginAccessVo vo) throws Exception {\n return null;\r\n }", "@Override\r\n\tpublic void loginIn(Account account) throws ServiceException {\n\r\n\t}", "public LandingPage loginToAccount(){\n\t\taction.WaitForWebElement(linkLogin)\n\t\t\t .Click(linkLogin);\n\t\treturn this;\n\t}", "public User login(String loginName, String password) throws UserBlockedException;", "public void LogIn() {\n\t\t\r\n\t}", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "public void performLogin() {\n AppMethodBeat.m2504i(92640);\n LoginManager loginManager = getLoginManager();\n if (LoginAuthorizationType.PUBLISH.equals(LoginButton.this.properties.authorizationType)) {\n if (LoginButton.this.getFragment() != null) {\n loginManager.logInWithPublishPermissions(LoginButton.this.getFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else if (LoginButton.this.getNativeFragment() != null) {\n loginManager.logInWithPublishPermissions(LoginButton.this.getNativeFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else {\n loginManager.logInWithPublishPermissions(LoginButton.access$800(LoginButton.this), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n }\n } else if (LoginButton.this.getFragment() != null) {\n loginManager.logInWithReadPermissions(LoginButton.this.getFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else if (LoginButton.this.getNativeFragment() != null) {\n loginManager.logInWithReadPermissions(LoginButton.this.getNativeFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else {\n loginManager.logInWithReadPermissions(LoginButton.access$900(LoginButton.this), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n }\n }", "public void login(String username, String password, Context context) {\n\t\tUserVO userVO = new UserVO();\n\t\tuserVO.setId(username);\n\t\tuserVO.setPassword(password);\n\t\t\n\t\tLoginTask loginTask = new LoginTask();\n\t\tloginTask.setContext(context);\n\t\tloginTask.execute(userVO);\n\t}", "public void authenticate(LoginCredentials credentials) throws LoginException;", "void initiateLogin() {\n\t\tString username = this.mAuthUsername.getText().toString();\n\t\tString password = this.mAuthPassword.getText().toString();\n\t\t\n\t\tfetch();\n\t\tthis.mAuthTask = new AuthenticationTask(this, this, username, password);\n\t\tthis.mAuthTask.execute();\n\t}", "private void adminLogin() {\n\t\tdriver.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t}", "public void gotoAdminLogin(){ application.gotoAdminLogin(); }", "private void sendToAPI(final View v, JSONObject jsonLogin){\n APIClient apiClient = new APIClient();\n Service apiService = apiClient.getClient().create(Service.class);\n Call<User> call = apiService.login(new Login(\"efef\",\"dfwd\"));\n call.enqueue(new Callback<User>() {\n @Override\n public void onResponse(Call<User> call, Response<User> response) {\n if (response.isSuccessful()) {\n new CustomToast().displyToast(getContext(), v, \"Error:\"+response.code()+\" \"+response.body().getMessage()+\n \"Token is: \"+response.body().getAccessToken());\n }\n else{\n new CustomToast().displyToast(getContext(), v, \"Error: \"+response.code()+\" \"+\n response.headers()+ \"...Incorrect username or password!\");\n }\n }\n\n @Override\n public void onFailure(Call<User> call, Throwable t) {\n new CustomToast().displyToast(getContext(), v, \"Server unreachable, Please retry again later\");\n }\n });\n\n }", "public abstract void login(String userName, String password) throws RemoteException;", "public LoginResult login() {\n\t\tif (!auth.isLoggedIn())\n\t\t\treturn LoginResult.MAIN_LOGOUT;\n\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_INDEX);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tArrayList<Cookie> tmpCookies = Cookie.getCookies(conn);\n\t\t\taws = Cookie.getCookie(tmpCookies, \"AWSELB\");\n\t\t\tphp = Cookie.getCookie(tmpCookies, \"PHPSESSID\");\n\t\t\t\n\t\t\tconn = Utility.getGetConn(FUND_LOGIN);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tString location = Utility.getLocation(conn);\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t// TODO: future speed optimization\n\t\t\t//if (auth.getPHPCookie() == null) {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie()));\n\t\t\t\tCookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), \"PHPSESSID\");\n\t\t\t\t// saves time for Blackboard and retrieveProfileImage().\n\t\t\t\tauth.setPHPCookie(phpCookie);\n\t\t\t\t\n\t\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\t\n\t\t\t\tlocation = Utility.getLocation(conn);\n\t\t\t\tif (location.startsWith(\"signin.aspx\"))\n\t\t\t\t\tlocation = \"https://eraider.ttu.edu/\" + location;\n\t\t\t\tconn = Utility.getGetConn(location);\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\t// might need to set ESI and ELC here. If other areas are bugged, this is why.\n\t\t\t/*} else {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie()));\n\t\t\t\t/// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!!\n\t\t\t\tthrow new NullPointerException(\"Needs implementation!\");\n\t\t\t}*/\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/login.php?ticket=ST-...\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/funds_home.php\n\t\t\tlocation = Utility.getLocation(conn);\n\t\t\tif (location.startsWith(\"index.\")) {\n\t\t\t\tlocation = \"https://get.cbord.com/raidercard/full/\" + location;\n\t\t\t}\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tUtility.readByte(conn);\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundlogin\", ErrorType.Fatal);\n\t\t\treturn LoginResult.OTHER;\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundlogingeneral\", ErrorType.APIChange);\n\t\t\treturn LoginResult.OTHER;\n\t\t}\n\n\t\tloggedIn = true;\n\n\t\treturn LoginResult.SUCCESS;\n\t}", "public void login(View v){\n String email = emailET.getText().toString();\n String password = passwordET.getText().toString();\n mAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, task -> {\n if (task.isSuccessful()) {\n startActivity(new Intent(LoginActivity.this, MainActivity.class));\n } else {\n // If sign in fails, display a message to the user.\n Toast.makeText(LoginActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n });\n }", "SignedObject authenticate(String username, String hashedPassword) throws RemoteException, Exception;", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "public String signIn(String username, String password);", "@Override\r\n\t\t\tpublic void onSuccess(Void result) {\n\t\t\t\tsynAlert.clear();\r\n\t\t\t\tauthenticationController.initializeFromExistingAccessTokenCookie(new AsyncCallback<UserProfile>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t\t\tsynAlert.handleException(caught);\r\n\t\t\t\t\t\tview.showLogin();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onSuccess(UserProfile result) {\r\n\t\t\t\t\t\t// Signed ToU. Check for temp username, passing record, and then forward\r\n\t\t\t\t\t\tuserAuthenticated();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}", "public void authenticate(LoginRequest loginRequest) {\n\n }", "String getLoginapiavgrtt();", "@Test(priority = 0)\n public void salesforceLogin() {\n SalesforceLoginPage salesforceLoginObj = new SalesforceLoginPage(driver);\n\n driver.get(\"https://login.salesforce.com\");\n\n salesforceLoginObj.setUsername(\"*********\");//Enter valid username\n salesforceLoginObj.setPassword(\"********\");//Enter valid password\n salesforceLoginObj.logInButtonClick();\n\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "RequestResult loginRequest() throws Exception;", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "@Test\r\n\tpublic void login() throws Exception{\r\n\t\t\r\n\t\tSignInPage objSignInPage=new SignInPage(driver);\r\n\t\t\r\n\t\t//insert username and password\r\n\t\tobjSignInPage.signIn(Util_VU.LOGIN_ID,Util_VU.PASSWORD);\r\n\t\t\r\n\t\t//get\r\n\t\tString step2=driver.getTitle();\r\n\t\tSystem.out.println(step2);\r\n\t\t\r\n\t}", "public void startlogin(\n com.outlook.octavio.armenta.ws.SOAPServiceStub.Login login2,\n final com.outlook.octavio.armenta.ws.SOAPServiceCallbackHandler callback)\n throws java.rmi.RemoteException {\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions()\n .setAction(\"http://tempuri.org/ISOAPService/Login\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n addPropertyToOperationClient(_operationClient,\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\n \"&\");\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n //Style is Doc.\n env = toEnvelope(getFactory(_operationClient.getOptions()\n .getSoapVersionURI()),\n login2,\n optimizeContent(\n new javax.xml.namespace.QName(\"http://tempuri.org/\", \"login\")),\n new javax.xml.namespace.QName(\"http://tempuri.org/\", \"Login\"));\n\n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(\n org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n\n java.lang.Object object = fromOM(resultEnv.getBody()\n .getFirstElement(),\n com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse.class);\n callback.receiveResultlogin((com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse) object);\n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorlogin(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n if (error instanceof org.apache.axis2.AxisFault) {\n org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n\n if (faultElt != null) {\n if (faultExceptionNameMap.containsKey(\n new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"))) {\n //make the fault by reflection\n try {\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\n //message class\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,\n messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[] { messageClass });\n m.invoke(ex,\n new java.lang.Object[] { messageObject });\n\n callback.receiveErrorlogin(new java.rmi.RemoteException(\n ex.getMessage(), ex));\n } catch (java.lang.ClassCastException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorlogin(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorlogin(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorlogin(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorlogin(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorlogin(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorlogin(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorlogin(f);\n }\n } else {\n callback.receiveErrorlogin(f);\n }\n } else {\n callback.receiveErrorlogin(f);\n }\n } else {\n callback.receiveErrorlogin(error);\n }\n }\n\n public void onFault(\n org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender()\n .cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorlogin(axisFault);\n }\n }\n });\n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n\n if ((_operations[1].getMessageReceiver() == null) &&\n _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[1].setMessageReceiver(_callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n }", "@Given ( \"I am logged into iTrust2 as an Admin\" )\r\n public void loginAsAdmin () {\r\n driver.get( baseUrl );\r\n final WebElement username = driver.findElement( By.name( \"username\" ) );\r\n username.clear();\r\n username.sendKeys( \"admin\" );\r\n final WebElement password = driver.findElement( By.name( \"password\" ) );\r\n password.clear();\r\n password.sendKeys( \"123456\" );\r\n final WebElement submit = driver.findElement( By.className( \"btn\" ) );\r\n submit.click();\r\n\r\n }", "void login(String user, String password);", "private ServicioLogin() {\n super();\n }", "private void signIn() {\n }", "@Override\n public Map login(TreadmillStatus treadmillStatus) {\n TreadmillInfo treadmillInfo = new TreadmillInfo();\n BeanCoper.copyProperties(treadmillInfo, treadmillStatus);\n validateTreadmill(treadmillInfo);\n\n Map<String, Object> result = new HashMap<>();\n /*\n * Check this treadmill registered or not\n * If registered return token , else return nothing\n */\n // Set the default unlock status is locked\n treadmillStatus.setLockStatus(TreadmillStatusEnum.LOCKED.getValue());\n String token = StringUtils.getUUID();\n // Cache token to redis\n redisDbDao.setexBySerialize(TOKEN_PREFIX + token, DEFAULT_EXPIRE_SECONDS, treadmillStatus);\n // Token should be stored a copy in mysql in case of Server shutdown suddenly\n\n /*\n * Generate QRCode page url\n */\n JdUrl jdUrl = homeModule.getTarget(\"/v1/authPage\");\n // Set query criteria\n Map<String, Object> query = new LinkedHashMap<>();\n query.put(\"token\", token);\n\n jdUrl.setQuery(query);\n\n result.put(\"token\", token);\n // Url is like http://www.baidu.com?...\n result.put(\"url\", jdUrl.toString());\n\n return result;\n }", "@Test\n\tpublic void testAuthenticateAdminAccountSuccessfully() {\n\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.authenticateAdminAccount(USERNAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\tfail();\n\t\t}\n\t\tassertNotNull(user);\n\t\tassertNotEquals(0, user.getToken());\n\t}", "private void loginAccount() {\n\t\taccountManager.loginAccount(etEmail.getText().toString(), etPassword.getText().toString());\n\n\t}" ]
[ "0.6678755", "0.6639221", "0.5834142", "0.5834142", "0.5807505", "0.569161", "0.5614148", "0.5594924", "0.55104953", "0.5492428", "0.5482306", "0.5367023", "0.5362736", "0.5362736", "0.5273855", "0.5252134", "0.52071166", "0.520027", "0.51954734", "0.5189538", "0.518234", "0.5175268", "0.515832", "0.51517016", "0.51468945", "0.5144683", "0.5133355", "0.51217955", "0.5112323", "0.51028013", "0.50626755", "0.50129783", "0.49889213", "0.49805382", "0.49769202", "0.49721777", "0.496284", "0.49491382", "0.49452233", "0.4940625", "0.49320582", "0.4923932", "0.4903643", "0.4902907", "0.4898199", "0.48913804", "0.4868626", "0.48552024", "0.48550606", "0.4839976", "0.48160818", "0.4799292", "0.47955385", "0.47912586", "0.4780662", "0.47713017", "0.47605774", "0.47555348", "0.4752321", "0.47457704", "0.47396043", "0.47327513", "0.47320426", "0.4730024", "0.4730024", "0.47259697", "0.47247422", "0.47226125", "0.4717722", "0.47095186", "0.47041628", "0.47016174", "0.46976376", "0.46966904", "0.46946147", "0.46900237", "0.46858874", "0.46853724", "0.4685187", "0.46849373", "0.4681419", "0.46780604", "0.46658793", "0.46654272", "0.46624693", "0.4659885", "0.4651435", "0.4651292", "0.46486446", "0.46427867", "0.46382684", "0.46363258", "0.4632569", "0.46318203", "0.46282637", "0.4626921", "0.4615742", "0.46154836", "0.4614049", "0.46069017" ]
0.53765464
11
Login to vault using the cert method
public Optional<AuthLoginCert> authLoginCert() { return Codegen.objectProp("authLoginCert", AuthLoginCert.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public AdbLoginResponse loginScoinFromAdb(AdbLoginScoinRequest adbLoginScoinRequest);", "public Reply login(String hostname) throws ThingsException, InterruptedException;", "SignedObject authenticate(String username, String hashedPassword) throws RemoteException, Exception;", "private void login() {\n if (blobStore != null) {\n return;\n }\n if (swiftUsername == null || swiftPassword == null || swiftAuthUrl == null || swiftContainer == null) {\n logger.error(\"Blob storage account is not configured\");\n throw new IllegalArgumentException(\"ERROR: Blob storage account is not configured\");\n }\n blobStore = ContextBuilder.newBuilder(blobApi)\n .endpoint(swiftAuthUrl)\n .credentials(swiftUsername, swiftPassword)\n .buildView(BlobStoreContext.class)\n .getBlobStore();\n\n if (!blobStore.containerExists(swiftContainer)) {\n// CreateContainerOptions options = CreateContainerOptions.Builder\n// .withMetadata(ImmutableMap.of(\"description\", \"E-PRTR data\"));\n// blobStore.createContainerInLocation(null, swiftContainer, options);\n Location location = getRegion();\n blobStore.createContainerInLocation(location, swiftContainer);\n }\n }", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "protected Response login() {\n return login(\"\");\n }", "SqlVirtualMachineManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "public com.sun.jna.PointerType login(Credentials c) throws RelationException;", "void login(String cuid, String pass)\n throws RemoteException;", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }", "LoginContext login(String username, String password) throws LoginException;", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "protected void login() {\n\t\t\r\n\t}", "String login(String userName, String password) throws RemoteException, InterruptedException;", "private void login(final String login, final String password, final String domainId) {\n checkCredentials(login, password);\n\n if (!login.isEmpty() && !password.isEmpty()) {\n Notification.activityStart();\n AuthentificationManager.getInstance()\n .authenticateOnSilverpeas(loginField.getText(), passwordField.getText(),\n domains.getSelectedValue(), null);\n }\n }", "private void authenticate() {\n\t\t//Isn't a foreach because if the ciphertext is invalid, that data object is removed from the data array.\n\t\t// In a foreach, this would lead to a concurrent modification exception.\n\t\t//noinspection ForLoopReplaceableByForEach\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\ttry {\n\t\t\t\tdata.get(i).decryptText(plainPassword);\n\t\t\t} catch (VaultFormatException ignored) {\n\t\t\t}\n\t\t}\n\t}", "private void logIn(LogSignTemplate credentials){\n Call<LogSignTemplate> callNewTrack = nightAPI.authorize(credentials);\n callNewTrack.enqueue(new Callback<LogSignTemplate>() {\n @Override\n public void onResponse(Call<LogSignTemplate> call, Response<LogSignTemplate> response) {\n if(response.isSuccessful()){\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// SUCCESFUL LOGIN !!!!!!!!!!!!!!! /////////////////////////////////////\");\n Toasty.success(getContext(), \"Succes, welcome.\", Toast.LENGTH_SHORT, true).show();\n Intent intent = new Intent(getContext(), MenuActivity.class);\n startActivity(intent);\n }\n else{\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// NO SUCCESFUL RESPONSE /////////////////////////////////////\");\n Toasty.error(getContext(), \"Incorrect username or password.\", Toast.LENGTH_SHORT, true).show();\n }\n }\n\n @Override\n public void onFailure(Call<LogSignTemplate> call, Throwable t) {\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////////// ERROR /////////////////////////////////\");\n Toasty.error(getContext(), \"Error while validating..\", Toast.LENGTH_SHORT, true).show();\n t.printStackTrace();\n }\n });\n }", "public void signIn()\r\n {\r\n FoodCenterRequestFactory factory = AndroidRequestUtils.getFoodCenterRF(context);\r\n ClientServiceRequest service = factory.getClientService();\r\n\r\n service.login(regId).fire(this);\r\n }", "private void login(String username,String password){\n\n }", "public int login(String username, String password) \n {\n\treturn this.acctCtrl.login(username, password);\n\n }", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "void login(String email, String password) throws InvalidCredentialsException, IOException;", "public void authenticate(LoginCredentials credentials) throws LoginException;", "public abstract void login(String userName, String password) throws RemoteException;", "public ControleurVueLogin() {\n\n\t}", "private void login() {\n setCredentials();\n setSysProperties();\n\n Properties sysProperties = System.getProperties();\n sysProperties.put(\"mail.store.protocol\", \"imaps\");\n this.session = Session.getInstance(sysProperties,\n new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n }", "private void openBasicAuthPage(String login, String password) {\n\n String url = \"https://\" + login + \":\" + password + \"@\" + \"the-internet.herokuapp.com/digest_auth\";\n driver.get(url);\n }", "public User login(String loginName, String password) throws UserBlockedException;", "public interface Vault {\n\n /**\n * Close the vault. A closed vault cannot be reopened.\n *\n * @throws VaultException if there was a problem closing the vault\n */\n void close();\n\n /**\n * Stores content in the vault. Creating the vault entry requires an external reference {@code Certificate} with\n * metadata describing the content, and the content to store.\n * <p>\n * The integrity of the data will be verified against the signature from the external reference {@code Certificate}.\n * If the integrity is not validated, writing will fail with IO exception.\n * <p>\n * A vault receipt {@code Certificate} will be returned, and should then be stored on the blockchain to strongly\n * anchor the external content. The vault receipt wraps the given external reference {@code Certificate}, and is\n * signed by a vault entity.\n * @param externalReference a non-null external reference certificate, with fields describing the given content\n * @param content the byte array with the data to store in the vault\n * @return a vault receipt certificate\n * @throws IOException if an I/O error occurs writing to or creating the vault entry\n * @throws IllegalArgumentException is the external reference certificate is invalid or does not verify the content\n * @throws VaultException is operation cannot be performed\n * @see VaultUtils\n */\n default Certificate store(Certificate externalReference, byte[] content) throws IOException {\n return store(externalReference, new ByteArrayInputStream(content));\n }\n\n\n /**\n * Stores content in the vault. Creating the vault entry requires an external reference {@code Certificate} with\n * metadata describing the content, and the content to store.\n * <p>\n * The integrity of the data will be verified against the signature from the external reference {@code Certificate}.\n * If the integrity is not validated, writing will fail with IO exception.\n * <p>\n * A vault receipt {@code Certificate} will be returned, and should then be stored on the blockchain to strongly\n * anchor the external content. The vault receipt wraps the given external reference {@code Certificate}, and is\n * signed by a vault entity.\n * @param externalReference a non-null external reference certificate, with fields describing the given content\n * @param content the input stream to read from for the data to store in the vault\n * @return a vault receipt certificate\n * @throws IOException if an I/O error occurs writing to or creating the vault entry\n * @throws IllegalArgumentException is the external reference certificate is invalid or does not verify the content\n * @throws VaultException is operation cannot be performed\n * @see VaultUtils\n */\n Certificate store(Certificate externalReference, InputStream content) throws IOException;\n\n /**\n * Get content from the vault for the given external reference {@code Certificate}. Returns an\n * {@code ExternalReference} object to allow for lazy retrieval of the content.\n * @param externalReference a non-null external reference certificate, with fields describing the given content\n * @return an external reference\n * @throws IllegalArgumentException is the given certificate is invalid\n * @throws VaultException is operation cannot be performed\n */\n ExternalReference get(Certificate externalReference);\n\n /**\n * Delete an entry from the vault if it exists.\n * @return if true deleted, false if it didn't exist\n * @param externalReference an external reference certificate describing the resource to delete\n * @throws IOException if an I/O error occurs deleting the vault entry\n * @throws VaultException is operation cannot be performed\n */\n boolean delete(Certificate externalReference) throws IOException;\n}", "public CloudServiceVaultCertificate() {\n }", "public LoginResult login() {\n\t\tif (!auth.isLoggedIn())\n\t\t\treturn LoginResult.MAIN_LOGOUT;\n\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_INDEX);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tArrayList<Cookie> tmpCookies = Cookie.getCookies(conn);\n\t\t\taws = Cookie.getCookie(tmpCookies, \"AWSELB\");\n\t\t\tphp = Cookie.getCookie(tmpCookies, \"PHPSESSID\");\n\t\t\t\n\t\t\tconn = Utility.getGetConn(FUND_LOGIN);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tString location = Utility.getLocation(conn);\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t// TODO: future speed optimization\n\t\t\t//if (auth.getPHPCookie() == null) {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie()));\n\t\t\t\tCookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), \"PHPSESSID\");\n\t\t\t\t// saves time for Blackboard and retrieveProfileImage().\n\t\t\t\tauth.setPHPCookie(phpCookie);\n\t\t\t\t\n\t\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\t\n\t\t\t\tlocation = Utility.getLocation(conn);\n\t\t\t\tif (location.startsWith(\"signin.aspx\"))\n\t\t\t\t\tlocation = \"https://eraider.ttu.edu/\" + location;\n\t\t\t\tconn = Utility.getGetConn(location);\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\t// might need to set ESI and ELC here. If other areas are bugged, this is why.\n\t\t\t/*} else {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie()));\n\t\t\t\t/// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!!\n\t\t\t\tthrow new NullPointerException(\"Needs implementation!\");\n\t\t\t}*/\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/login.php?ticket=ST-...\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/funds_home.php\n\t\t\tlocation = Utility.getLocation(conn);\n\t\t\tif (location.startsWith(\"index.\")) {\n\t\t\t\tlocation = \"https://get.cbord.com/raidercard/full/\" + location;\n\t\t\t}\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tUtility.readByte(conn);\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundlogin\", ErrorType.Fatal);\n\t\t\treturn LoginResult.OTHER;\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundlogingeneral\", ErrorType.APIChange);\n\t\t\treturn LoginResult.OTHER;\n\t\t}\n\n\t\tloggedIn = true;\n\n\t\treturn LoginResult.SUCCESS;\n\t}", "void login(String user, String password);", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "private void connectUsingCertificate() {\n\t\tfinal String METHOD = \"connectUsingCertificate\";\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"wss://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WSS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"ssl://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTTS_PORT;\n\t\t\t}\n\t\t} \n\n\t\tString mqttServer = getMQTTServer();\n\t\t\n\t\tif(mqttServer != null){\n\t\t\tserverURI = protocol + mqttServer + \":\" + port;\n\t\t} else {\n\t\t\tserverURI = protocol + getOrgId() + \".\" + MESSAGING + \".\" + this.getDomain() + \":\" + port;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, DATA_STORE);\n\t\t\tmqttAsyncClient.setCallback(mqttCallback);\n\t\t\tmqttClientOptions = new MqttConnectOptions();\n\t\t\tif (clientUsername != null) {\n\t\t\t\tmqttClientOptions.setUserName(clientUsername);\n\t\t\t}\n\t\t\tif (clientPassword != null) {\n\t\t\t\tmqttClientOptions.setPassword(clientPassword.toCharArray());\n\t\t\t}\n\t\t\tmqttClientOptions.setCleanSession(this.isCleanSession());\n\t\t\tif(this.keepAliveInterval != -1) {\n\t\t\t\tmqttClientOptions.setKeepAliveInterval(this.keepAliveInterval);\n\t\t\t}\n\t\t\t\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t\tmqttClientOptions.setAutomaticReconnect(isAutomaticReconnect());\n\t\t\t\n\t\t\t/* This isn't needed as the production messaging.internetofthings.ibmcloud.com \n\t\t\t * certificate should already be in trust chain.\n\t\t\t * \n\t\t\t * See: \n\t\t\t * http://stackoverflow.com/questions/859111/how-do-i-accept-a-self-signed-certificate-with-a-java-httpsurlconnection\n\t\t\t * https://gerrydevstory.com/2014/05/01/trusting-x509-base64-pem-ssl-certificate-in-java/\n\t\t\t * http://stackoverflow.com/questions/12501117/programmatically-obtain-keystore-from-pem\n\t\t\t * https://gist.github.com/sharonbn/4104301\n\t\t\t * \n\t\t\t * CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\t\t\t * InputStream certFile = AbstractClient.class.getResourceAsStream(\"messaging.pem\");\n\t\t\t * Certificate ca = cf.generateCertificate(certFile);\n\t\t\t *\n\t\t\t * KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t * keyStore.load(null, null);\n\t\t\t * keyStore.setCertificateEntry(\"ca\", ca);\n\t\t\t * TrustManager trustManager = TrustManagerUtils.getDefaultTrustManager(keyStore);\n\t\t\t * SSLContext sslContext = SSLContextUtils.createSSLContext(\"TLSv1.2\", null, trustManager);\n\t\t\t * \n\t\t\t */\n\n\t\t\tSSLContext sslContext = SSLContext.getInstance(\"TLSv1.2\");\n\t\t\tsslContext.init(null, null, null);\n\t\t\t\n\t\t\t//Validate the availability of Server Certificate\n\t\t\t\n\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tserverCert = trimedValue(options.getProperty(\"Server-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Server Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Client Certificate\n\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tclientCert = trimedValue(options.getProperty(\"Client-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t//Validate the availability of Client Certificate Key\n\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")).contains(\".key\")){\n\t\t\t\t\tclientCertKey = trimedValue(options.getProperty(\"Client-Key\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only Certificate key in .key format is supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Key is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Certificate Password\n\t\t\ttry{\n\t\t\tif (trimedValue(options.getProperty(\"Certificate-Password\")) != null){\n\t\t\t\tcertPassword = trimedValue(options.getProperty(\"Certificate-Password\"));\n\t\t\t\t} else {\n\t\t\t\t\tcertPassword = \"\";\n\t\t\t\t}\n\t\t\t} catch (Exception e){\n\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Certificate Password is missing\", e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t\n\t\t\tmqttClientOptions.setSocketFactory(getSocketFactory(serverCert, clientCert, clientCertKey, certPassword));\n\n\t\t} catch (Exception e) {\n\t\t\tLoggerUtility.warn(CLASS_NAME, METHOD, \"Unable to configure TLSv1.2 connection: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "private void authenticate(String user, String pass) {\n }", "public void TC_04_Authentication_Alert() {\n\n\t\tdriver.get(\"http://admin:[email protected]/basic_auth\");\n\t}", "private String getVaultToken(MagnoliaConfigurationProperties magnoliaConfigurationProperties) {\n return magnoliaConfigurationProperties.getProperty(PROPERTY_VAULT_TOKEN);\n }", "Map<String, String> interactiveLogin(CloudContext cloudContext, ExtendedCloudCredential extendedCloudCredential,\n CredentialNotifier credentialNotifier);", "public AuthResponse loginAccount(Account acc){\n Call<AuthResponse> call = endpoints.loginAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "@Override\n public void clientAuthenticate()\n throws HubIntegrationException {\n try {\n final ArrayList<String> segments = new ArrayList<>();\n segments.add(\"j_spring_security_check\");\n final HttpUrl httpUrl = createHttpUrl(segments, null);\n\n final Map<String, String> content = new HashMap<>();\n final String username = hubServerConfig.getGlobalCredentials().getUsername();\n String password = hubServerConfig.getGlobalCredentials().getEncryptedPassword();\n if (StringUtils.isNotBlank(username) && StringUtils.isNotBlank(password)) {\n try {\n password = hubServerConfig.getGlobalCredentials().getDecryptedPassword();\n\n content.put(\"j_username\", username);\n content.put(\"j_password\", password);\n final Request request = createPostRequest(httpUrl, createEncodedRequestBody(content));\n Response response = null;\n try {\n logRequestHeaders(request);\n response = getClient().newCall(request).execute();\n logResponseHeaders(response);\n if (!response.isSuccessful()) {\n throw new HubIntegrationException(response.message());\n }\n } finally {\n if (response != null) {\n response.close();\n }\n }\n } catch (IllegalArgumentException | EncryptionException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }\n } catch (final IOException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }", "public void login(String uname, String pwd) {\n username.type(uname);\n password.type(pwd);\n loginButton.click();\n }", "Document login(String username, String password);", "public String getVaultPassword() {\n return vaultPassword;\n }", "public void authenticate(LoginRequest loginRequest) {\n\n }", "protected Response login(String environment) {\n environment = Strings.isNullOrEmpty(environment) ? \"\"\n : \"/\" + environment;\n JsonObject creds = new JsonObject();\n creds.addProperty(\"username\", \"admin\");\n creds.addProperty(\"password\", \"admin\");\n Response resp = post(environment + \"/login\", creds.toString());\n return resp;\n }", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "RequestResult loginRequest() throws Exception;", "public Login() {\r\n\t\tinitialize();\r\n\t}", "protected void login(String username, String password) throws Exception {\n final SecurityClient securityClient = SecurityClientFactory.getSecurityClient();\n securityClient.setSimple(username, password);\n securityClient.login();\n }", "public String signIn(String username, String password);", "public void login(){\n JSONObject clientInfo = new JSONObject();\n try{\n clientInfo.put(\"username\", mUsername);\n clientInfo.put(\"password\", mPassword);\n clientInfo.put(\"deviceID\", getDeviceID());\n clientInfo.put(\"ipAddress\", getClientIP());\n mSocket.emit(\"login\", clientInfo);\n }catch(JSONException ex){\n throw new RuntimeException(ex);\n }\n }", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "public Pair<UUID, Boolean> login(String username,\n String password) {\n return tradingSystemFacade.login(username, password);\n }", "private void signIn() {\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "@Test\n public void testSslJks_loadTrustStoreFromFile() throws Exception {\n final InputStream inputStream = this.getClass().getResourceAsStream(\"/keystore.jks\");\n final String tempDirectoryPath = System.getProperty(\"java.io.tmpdir\");\n final File jks = new File(tempDirectoryPath + File.separator + \"keystore.jks\");\n final FileOutputStream outputStream = new FileOutputStream(jks);\n final byte[] buffer = new byte[1024];\n int noOfBytes = 0;\n while ((noOfBytes = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, noOfBytes);\n }\n\n final MockVault mockVault = new MockVault(200, \"{\\\"data\\\":{\\\"value\\\":\\\"mock\\\"}}\");\n final Server server = VaultTestUtils.initHttpsMockVault(mockVault);\n server.start();\n\n final VaultConfig vaultConfig = new VaultConfig()\n .address(\"https://127.0.0.1:9998\")\n .token(\"mock_token\")\n .sslConfig(new SslConfig().trustStoreFile(jks).build())\n .build();\n final Vault vault = new Vault(vaultConfig);\n final LogicalResponse response = vault.logical().read(\"secret/hello\");\n\n VaultTestUtils.shutdownMockVault(server);\n }", "public Subject login() throws LoginException {\n\t\tSubject ret = null;\n\t\t\n\t\tlc = new LoginContext(ClientLogin.SEYCON_DOMAIN, new ClientCallBackHandler(this.username, this.password));\n\t\t\n\t\tlc.login();\n\t\tret = lc.getSubject();\n\n\t return ret;\n\t}", "public User doAuthentication(String account, String password);", "private String login() throws AxisFault {\n APIManagerConfiguration config = ServiceReferenceHolder.getInstance().\n getAPIManagerConfigurationService().getAPIManagerConfiguration();\n String user = config.getFirstProperty(APIConstants.API_GATEWAY_USERNAME);\n String password = config.getFirstProperty(APIConstants.API_GATEWAY_PASSWORD);\n String url = config.getFirstProperty(APIConstants.API_GATEWAY_SERVER_URL);\n\n if (url == null || user == null || password == null) {\n throw new AxisFault(\"Required API gateway admin configuration unspecified\");\n }\n\n String host;\n try {\n host = new URL(url).getHost();\n } catch (MalformedURLException e) {\n throw new AxisFault(\"API gateway URL is malformed\", e);\n }\n\n AuthenticationAdminStub authAdminStub = new AuthenticationAdminStub(\n ServiceReferenceHolder.getContextService().getClientConfigContext(),\n url + \"AuthenticationAdmin\");\n ServiceClient client = authAdminStub._getServiceClient();\n Options options = client.getOptions();\n options.setManageSession(true);\n try {\n authAdminStub.login(user, password, host);\n ServiceContext serviceContext = authAdminStub.\n _getServiceClient().getLastOperationContext().getServiceContext();\n String sessionCookie = (String) serviceContext.getProperty(HTTPConstants.COOKIE_STRING);\n return sessionCookie;\n } catch (RemoteException e) {\n throw new AxisFault(\"Error while contacting the authentication admin services\", e);\n } catch (LoginAuthenticationExceptionException e) {\n throw new AxisFault(\"Error while authenticating against the API gateway admin\", e);\n }\n }", "public static void login(Lookup lookup) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tSystem.out.println(\"Enter your UserName: \");\r\n\t\t\t\r\n\t\t\tString name = sc.nextLine();\r\n\r\n\t\t\tSystem.out.println(\"Enter your Password: \");\r\n\t\t\t\r\n\t\t\tString pass = sc.nextLine();\r\n\r\n\t\t\tsUser = lookup.checkLoginAuth(name, pass);\r\n\r\n\t\t} catch (InvalidInputException e) {\r\n\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tSystem.err.flush();\r\n\r\n\t\t}\r\n\r\n\t}", "UserToken login(String username, String password) throws WorkspaceException;", "public static void authenticate() {\n\n Stage window = new Stage();\n\n final String url = OAUTH_URL + getQuery();\n\n BorderPane borderPane = new BorderPane();\n WebView browser = new WebView();\n WebEngine webEngine = browser.getEngine();\n\n webEngine.load(url);\n borderPane.setCenter(browser);\n\n webEngine.setOnStatusChanged(event -> {\n if (event.getSource() instanceof WebEngine) {\n WebEngine we = (WebEngine) event.getSource();\n String location = we.getLocation();\n // If we are redirected to REDIRECT_URL we get contents, and send it to verify() to get access token\n if (location.startsWith(REDIRECT_URL) && location.contains(\"code\") && AUTH_OBECT == null) try {\n URL url1 = new URL(location);\n String[] params = url1.getQuery().split(\"&\");\n Map<String, String> map = new HashMap<>();\n for (String param : params) {\n String name = param.split(\"=\")[0];\n String value = param.split(\"=\")[1];\n map.put(name, value);\n }\n String code = map.get(\"code\");\n // We have code so we continue the flow\n verify(code);\n window.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n // create scene\n window.setTitle(\"Authentication\");\n Scene scene = new Scene(borderPane, 750, 500);\n window.setScene(scene);\n window.showAndWait();\n }", "@When(\"^To Validathe Retail Login with Valid Credentials$\")\r\n\tpublic void to_Validathe_Retail_Login_with_Valid_Credentials() throws InterruptedException {\n\t\tdriver.findElement(By.className(\"sign-in\")).click();\r\n\t\tdriver.findElement(By.name(\"log\")).sendKeys(\"admin\");\r\n\t\tdriver.findElement(By.name(\"pwd\")).sendKeys(\"admin@123\");\r\n\t\tdriver.findElement(By.name(\"login\")).click();\r\n\t\t Thread.sleep(3000);\r\n\t\t \r\n\t}", "@Override\n\tpublic boolean login(Credentials cred) {\n\t\treturn true;\n\t}", "public void login(String username, String password) {\n HttpClient httpclient = new DefaultHttpClient();\n HttpPost httppost = new HttpPost(\n \"https://epitech-tiekeo.c9.io/login/check-mobile\");\n\n try {\n // Add your data\n List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();\n nameValuePairs.add(new BasicNameValuePair(\"username\",\n username));\n nameValuePairs.add(new BasicNameValuePair(\"password\",\n password));\n httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\n // Execute HTTP Post Request\n HttpResponse response = httpclient.execute(httppost);\n HttpEntity entity = response.getEntity();\n InputStream is = entity.getContent();\n String resp = convertStreamToString(is);\n System.out.println(\"tssttt \"+resp);\n\n } catch (ClientProtocolException e) {\n // TODO Auto-generated catch block\n } catch (IOException e) {\n // TODO Auto-generated catch block\n }\n }", "public void setTlsCert(String tlsCert);", "public PaymentInterface(Validator validator, String vaultAddress, String vaultToken) throws Exception {\n VaultConfig vaultConfig;\n\n // this.validator = validator;\n this.vaultaddr = vaultAddress;\n this.vaulttoken = vaultToken;\n\n try\n {\n vaultConfig = new VaultConfig()\n .address(this.vaultaddr)\n .token(this.vaulttoken)\n .build();\n } catch ( VaultException ex) {\n throw new Exception(\"Could not initialize Vault session.\");\n }\n\n this.vault = new Vault(vaultConfig);\n\n this.dbserver = vault.logical().read(\"secret/dbhost\").getData().get(\"address\");\n this.username = vault.logical().read(\"secret/dbhost\").getData().get(\"username\");\n this.password = vault.logical().read(\"secret/dbhost\").getData().get(\"password\");\n this.database = vault.logical().read(\"secret/dbhost\").getData().get(\"database\");\n }", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "public CouchDbAuthenticate(String url, String username, String password)\r\n {\r\n super();\r\n this.url = url + \"/_session\";\r\n this.username = username;\r\n this.password = password;\r\n this.sessionTimeout = TimeUnit.MINUTES.toMillis(10L);\r\n }", "@Override\n\tpublic SpaceUserVO login(SpaceUserVO spaceUserVO) throws Exception {\n\t\treturn null;\n\t}", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "@Override\n public void run() throws Exception {\n InputStream in = getClass().getResourceAsStream(\"/keystore.p12\");\n char[] password = \"password\".toCharArray();\n KeyStore keystore = new JavaKeyStore(\"PKCS12\", in, password);\n System.out.println(\"Loaded keystore: \" + keystore);\n\n // create walletapi with loaded one\n WalletApi walletApi = new WalletApiFactory().create(keystore);\n System.out.println(\"Walletapi with loaded keystore: \" + walletApi);\n\n // unlocked key\n Authentication authentication = Authentication.of(new KeyAlias(\"keyalias\"), \"password\");\n boolean unlockResult = walletApi.unlock(authentication);\n System.out.println(\"Unlock result: \" + unlockResult);\n System.out.println(\"Unlocked account: \" + walletApi.getPrincipal());\n }", "public void login(AuthenticationRequest auth_request)\n throws AuthorizationException, TException, AuthenticationException\n {\n for (Cassandra.Client client : addressToClient.values()) {\n long returnTime = client.login(auth_request, LamportClock.sendTimestamp());\n LamportClock.updateTime(returnTime);\n }\n }", "public String getVault() {\n return vault;\n }", "public String getTlsCert();", "public InboxPage login(String email, String password) {\n enterEmailOrPhone(email).clickOnNext().enterPassword(password);\n return clickPasswordNext();\n }", "RecoveryServicesManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "RecoveryServicesManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "String login(String string2, String string3) throws IOException {\n Protocol protocol = this;\n synchronized (protocol) {\n Response response;\n String string4 = this.apopChallenge;\n String string5 = null;\n if (string4 != null) {\n string5 = this.getDigest(string3);\n }\n if (this.apopChallenge != null && string5 != null) {\n response = this.simpleCommand(\"APOP \" + string2 + \" \" + string5);\n } else {\n Response response2 = this.simpleCommand(\"USER \" + string2);\n if (!response2.ok) {\n if (response2.data == null) return \"USER command failed\";\n return response2.data;\n }\n response = this.simpleCommand(\"PASS \" + string3);\n }\n if (response.ok) return null;\n if (response.data == null) return \"login failed\";\n return response.data;\n }\n }", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }", "private void logIn() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n\n String user = a[0];\n String password = a[1];\n boolean rez = service.checkPassword(user, password);\n if(rez == TRUE)\n System.out.println(\"Ok\");\n else\n System.out.println(\"Not ok\");\n }", "public MutableLiveData<TokenResponse> login(String email, String password) {\n return repository.login(email, password);\n }", "User login(Uuid id, String username, String password, Time creationTime);", "User signIn(String login, String password);", "public Person login(String username, String password);", "@Override\n\tpublic void credite() {\n\t\t\n\t}", "@Override\r\n protected void execute() throws Exception {\r\n log.debug(\"Downloading SAML certificate and adding it to the keystore\");\r\n TlsPolicy tlsPolicy = TlsPolicyBuilder.factory().strictWithKeystore(trustagentConfiguration.getTrustagentKeystoreFile(), trustagentConfiguration.getTrustagentKeystorePassword()).build();\r\n TlsConnection tlsConnection = new TlsConnection(new URL(url), tlsPolicy);\r\n \r\n Properties clientConfiguration = new Properties();\r\n clientConfiguration.setProperty(TrustagentConfiguration.MTWILSON_API_USERNAME, username);\r\n clientConfiguration.setProperty(TrustagentConfiguration.MTWILSON_API_PASSWORD, password);\r\n \r\n CaCertificates client = new CaCertificates(clientConfiguration, tlsConnection);\r\n X509Certificate certificate = client.retrieveCaCertificate(\"saml\");\r\n keystore.addTrustedCaCertificate(certificate, \"saml\");\r\n// X509Certificate endorsementCertificate = client.retrieveCaCertificate(\"endorsement\");\r\n// keystore.addTrustedCaCertificate(endorsementCertificate, \"endorsement\");\r\n keystore.save();\r\n }", "public void cl_login(String uname, String pwd)\n\t{\n\t\tEnter(txt_uname, uname);\n\t\tEnter(txt_pwd, pwd);\n\t\tClick(btn_login);\n\t\t\n\t}", "private void debugAuthentcation() {\n\n\t\t/*\n\t\t * XPagesUtil.showErrorMessage(\"bluemix util: serviceName: \" +\n\t\t * serviceName + \", baseUrl: \" + baseUrl + \" username: \" + username +\n\t\t * \" password: \" + password);\n\t\t * XPagesUtil.showErrorMessage(\"bluemix util: service name: \" +\n\t\t * serviceName + \", hardcodedBaseUrl: \" + hardcodedBaseUrl +\n\t\t * \" hardcodedUsername: \" + hardcodedUsername + \" hardcodedPassword: \" +\n\t\t * hardcodedPassword);\n\t\t */\n\t}", "private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSystem.out.println(\"Welcome to AnnyBank\");\n\n\t\ttransactions();\n\t}", "public void LogIn() {\n\t\t\r\n\t}", "private Object authenticate(Invocation invocation, HttpServletRequest request,\r\n HttpServletResponse response) throws IOException {\r\n\r\n Object[] args = invocation.getArgs();\r\n if (args.length != 2) {\r\n throw new RuntimeException(\"The authenticate call must have two arguments\");\r\n }\r\n\r\n String user = (String) args[0];\r\n String password = (String) args[1];\r\n\r\n //We can make the remote call\r\n Object result = invoke(invocation);\r\n\r\n //If the authentification failed we finish the execution\r\n if (result instanceof LoginContext) {\r\n LoginContext loginContext = (LoginContext) result;\r\n if (loginContext == null) {\r\n throw new RuntimeException(\"Login failed!!\");\r\n }\r\n \r\n HttpSession session = request.getSession(false);\r\n String sessionId = session.getId();\r\n response.addHeader(\"jsessionid\", sessionId);\r\n\r\n \r\n session.setAttribute(User.USER_KEY, loginContext.getUser());\r\n\r\n session.setAttribute(RhSessionContext.CLIENT_ID, loginContext.getClient_id());\r\n session.setAttribute(RhSessionContext.ORG_ID, loginContext.getOrg_id());\r\n session.setAttribute(RhSessionContext.DUTY_ID, loginContext.getDutyId());\r\n\r\n Map attrs = loginContext.getAttributes();\r\n Set<Map.Entry> entries = attrs.entrySet();\r\n for (Map.Entry entry : entries) {\r\n session.setAttribute((String) entry.getKey(), entry.getValue());\r\n }\r\n\r\n // 创建login session\r\n LoginSession loginSession = new LoginSession();\r\n loginSession.setLoginName(loginContext.getUser().getUsername());\r\n loginSession.setIp(request.getRemoteHost());\r\n loginSession.setLoginDate(new Date(session.getCreationTime()));\r\n loginSession.setSessionId(session.getId());\r\n loginSession.setLiving(true);\r\n\r\n //Session hibernateSession = RhinoCtx.instance().getHibernate().getSession();\r\n try {\r\n \r\n ServiceBase serviceBase = (ServiceBase) ServiceFactory.getService(ServiceBase.NAME);\r\n //ServiceBase serviceBase = (ServiceBase) RhinoCtx.getBean(\"serviceBase\");\r\n //hibernateSession.beginTransaction();\r\n serviceBase.save(loginSession);\r\n //hibernateSession.getTransaction().commit();\r\n session.setAttribute(\"loginSession\", loginSession);\r\n\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n //hibernateSession.getTransaction().rollback();\r\n } finally {\r\n //hibernateSession.close();\r\n }\r\n }\r\n return result;\r\n }", "public ProtocolProviderService signin()\n throws OperationFailedException\n {\n firstWizardPage.commitPage();\n\n return signin(registration.getUserID(), null);\n }", "public void doLogin() throws IOException {\n if (principal != null) {\n LOG.info(\n \"Attempting to login to KDC using principal: {} keytab: {}\", principal, keytab);\n UserGroupInformation.loginUserFromKeytab(principal, keytab);\n LOG.info(\"Successfully logged into KDC\");\n } else if (!isProxyUser(UserGroupInformation.getCurrentUser())) {\n LOG.info(\"Attempting to load user's ticket cache\");\n UserGroupInformation.loginUserFromSubject(null);\n LOG.info(\"Loaded user's ticket cache successfully\");\n } else {\n throwProxyUserNotSupported();\n }\n }", "java.lang.String getCred();" ]
[ "0.573131", "0.55913854", "0.5509606", "0.5474442", "0.5331562", "0.53301245", "0.5279328", "0.5274508", "0.5255032", "0.520103", "0.5190993", "0.5181305", "0.51715153", "0.5149033", "0.5146134", "0.51348376", "0.51035404", "0.50970495", "0.5057134", "0.5049156", "0.5034625", "0.5031155", "0.50204116", "0.50179404", "0.5008574", "0.5006114", "0.50041956", "0.50025314", "0.5002029", "0.49955016", "0.49850276", "0.49847233", "0.49646226", "0.49517548", "0.49427247", "0.49419567", "0.4930147", "0.49293607", "0.4927152", "0.49257916", "0.49085632", "0.48922306", "0.48893327", "0.488495", "0.4874058", "0.48666823", "0.48513946", "0.48458007", "0.484551", "0.48349908", "0.48211712", "0.4820614", "0.4819206", "0.4807957", "0.48031524", "0.48002923", "0.47999927", "0.47977397", "0.47945347", "0.47878045", "0.4787045", "0.47789508", "0.47743964", "0.47714686", "0.47596422", "0.47566402", "0.4749927", "0.47489017", "0.4745047", "0.47395927", "0.47361255", "0.47354364", "0.47312683", "0.47218898", "0.47147727", "0.471475", "0.47059578", "0.46992937", "0.46989423", "0.46985224", "0.46752816", "0.46653026", "0.46619153", "0.46619153", "0.46616763", "0.4660729", "0.46524602", "0.46489367", "0.46458668", "0.46386942", "0.46367636", "0.46355554", "0.4627444", "0.46193847", "0.4617293", "0.46137762", "0.46134728", "0.46122044", "0.4607588", "0.46066362", "0.46059063" ]
0.0
-1
Login to vault using the gcp method
public Optional<AuthLoginGcp> authLoginGcp() { return Codegen.objectProp("authLoginGcp", AuthLoginGcp.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "public ControleurVueLogin() {\n\n\t}", "private void login() {\n if (blobStore != null) {\n return;\n }\n if (swiftUsername == null || swiftPassword == null || swiftAuthUrl == null || swiftContainer == null) {\n logger.error(\"Blob storage account is not configured\");\n throw new IllegalArgumentException(\"ERROR: Blob storage account is not configured\");\n }\n blobStore = ContextBuilder.newBuilder(blobApi)\n .endpoint(swiftAuthUrl)\n .credentials(swiftUsername, swiftPassword)\n .buildView(BlobStoreContext.class)\n .getBlobStore();\n\n if (!blobStore.containerExists(swiftContainer)) {\n// CreateContainerOptions options = CreateContainerOptions.Builder\n// .withMetadata(ImmutableMap.of(\"description\", \"E-PRTR data\"));\n// blobStore.createContainerInLocation(null, swiftContainer, options);\n Location location = getRegion();\n blobStore.createContainerInLocation(location, swiftContainer);\n }\n }", "protected void login() {\n\t\t\r\n\t}", "public ProtocolProviderService signin()\n throws OperationFailedException\n {\n firstWizardPage.commitPage();\n\n return signin(registration.getUserID(), null);\n }", "public void signIn()\r\n {\r\n FoodCenterRequestFactory factory = AndroidRequestUtils.getFoodCenterRF(context);\r\n ClientServiceRequest service = factory.getClientService();\r\n\r\n service.login(regId).fire(this);\r\n }", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "public Reply login(String hostname) throws ThingsException, InterruptedException;", "UserToken login(String username, String password) throws WorkspaceException;", "@Override\n\tpublic void loginGPGS() {\n\t}", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "protected Response login(String environment) {\n environment = Strings.isNullOrEmpty(environment) ? \"\"\n : \"/\" + environment;\n JsonObject creds = new JsonObject();\n creds.addProperty(\"username\", \"admin\");\n creds.addProperty(\"password\", \"admin\");\n Response resp = post(environment + \"/login\", creds.toString());\n return resp;\n }", "void initiateLogin() {\n\t\tString username = this.mAuthUsername.getText().toString();\n\t\tString password = this.mAuthPassword.getText().toString();\n\t\t\n\t\tfetch();\n\t\tthis.mAuthTask = new AuthenticationTask(this, this, username, password);\n\t\tthis.mAuthTask.execute();\n\t}", "@Override\n\tpublic void login() {\n\t\tAccountManager accountManager = AccountManager.get(context);\n\t\tAccount[] accounts = accountManager.getAccountsByType(GOOGLE_ACCOUNT_TYPE);\n\t\tif(accounts.length < 1) throw new NotAccountException(\"This device not has account yet\");\n\t\tfinal String userName = accounts[0].name;\n\t\tfinal String accountType = accounts[0].type;\n\t\tBundle options = new Bundle();\n\t\tif(comService.isOffLine()){\n\t\t\tsetCurrentUser(new User(userName, userName, accountType));\n\t\t\treturn;\n\t\t}\n\t\taccountManager.getAuthToken(accounts[0], AUTH_TOKEN_TYPE, options, (Activity)context, \n\t\t\t\tnew AccountManagerCallback<Bundle>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run(AccountManagerFuture<Bundle> future) {\n\t\t\t\t\t\tString token = \"\";\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tBundle result = future.getResult();\n\t\t\t\t\t\t\ttoken = result.getString(AccountManager.KEY_AUTHTOKEN);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsetCurrentUser(new User(userName, userName, accountType, token));\n\t\t\t\t\t\t} catch (OperationCanceledException e) {\n\t\t\t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(\"Login\", \"Token: \" + token);\n\t\t\t\t\t}\n\t\t\t\t}, new Handler(new Handler.Callback() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean handleMessage(Message msg) {\n\t\t\t\t\t\tLog.d(\"Login\", msg.toString());\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}));\n\t}", "@BeforeGroups(groups = \"REGION_ADMIN\")\n protected void loginRegionAdmin() throws Exception {\n login(\"[email protected]\", \"region\");\n }", "protected Response login() {\n return login(\"\");\n }", "Map<String, String> interactiveLogin(CloudContext cloudContext, ExtendedCloudCredential extendedCloudCredential,\n CredentialNotifier credentialNotifier);", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "SqlVirtualMachineManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public String signIn(String username, String password);", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "public void onClick(View v) {\n\t\t if (mLoggedIn) {\n\t\t logOut();\n\t\t } else {\n\t\t // Start the remote authentication\n\t\t mApi.getSession().startAuthentication(ResourceActivity.this);\n\t\t }\n\t\t }", "void login(String cuid, String pass)\n throws RemoteException;", "private void signIn() {\n }", "String login(String userName, String password) throws RemoteException, InterruptedException;", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "@Override\n\tpublic void loginGPGS() {\n\t\ttry {\n\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tgameHelper.beginUserInitiatedSignIn();\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (final Exception ex) {\n\t\t}\n\n\t}", "@Override\n\tpublic void credite() {\n\t\t\n\t}", "private void login(String username,String password){\n\n }", "@Override\n public void clientAuthenticate()\n throws HubIntegrationException {\n try {\n final ArrayList<String> segments = new ArrayList<>();\n segments.add(\"j_spring_security_check\");\n final HttpUrl httpUrl = createHttpUrl(segments, null);\n\n final Map<String, String> content = new HashMap<>();\n final String username = hubServerConfig.getGlobalCredentials().getUsername();\n String password = hubServerConfig.getGlobalCredentials().getEncryptedPassword();\n if (StringUtils.isNotBlank(username) && StringUtils.isNotBlank(password)) {\n try {\n password = hubServerConfig.getGlobalCredentials().getDecryptedPassword();\n\n content.put(\"j_username\", username);\n content.put(\"j_password\", password);\n final Request request = createPostRequest(httpUrl, createEncodedRequestBody(content));\n Response response = null;\n try {\n logRequestHeaders(request);\n response = getClient().newCall(request).execute();\n logResponseHeaders(response);\n if (!response.isSuccessful()) {\n throw new HubIntegrationException(response.message());\n }\n } finally {\n if (response != null) {\n response.close();\n }\n }\n } catch (IllegalArgumentException | EncryptionException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }\n } catch (final IOException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }", "void login(String user, String password);", "Login() { \n }", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "public void onClick(View v) {\n\t\t\t\tString usernameField = username.getText().toString();\n\t\t\t\tString passwordField = password.getText().toString();\n\n\t\t\t\t// login with this information\n\t\t\t\tlogin(usernameField, passwordField);\n\t\t\t\t\n\t\t\t}", "private void signInFeature() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestEmail()\n .build();\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .enableAutoManage(this, this)\n .addApi(Auth.GOOGLE_SIGN_IN_API, gso)\n .build();\n\n Button signInButton = (Button) findViewById(R.id.login_button);\n signInButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n signIn();\n }\n });\n }", "public abstract void login(String userName, String password) throws RemoteException;", "User login(Uuid id, String username, String password, Time creationTime);", "private void logIn(LogSignTemplate credentials){\n Call<LogSignTemplate> callNewTrack = nightAPI.authorize(credentials);\n callNewTrack.enqueue(new Callback<LogSignTemplate>() {\n @Override\n public void onResponse(Call<LogSignTemplate> call, Response<LogSignTemplate> response) {\n if(response.isSuccessful()){\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// SUCCESFUL LOGIN !!!!!!!!!!!!!!! /////////////////////////////////////\");\n Toasty.success(getContext(), \"Succes, welcome.\", Toast.LENGTH_SHORT, true).show();\n Intent intent = new Intent(getContext(), MenuActivity.class);\n startActivity(intent);\n }\n else{\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// NO SUCCESFUL RESPONSE /////////////////////////////////////\");\n Toasty.error(getContext(), \"Incorrect username or password.\", Toast.LENGTH_SHORT, true).show();\n }\n }\n\n @Override\n public void onFailure(Call<LogSignTemplate> call, Throwable t) {\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////////// ERROR /////////////////////////////////\");\n Toasty.error(getContext(), \"Error while validating..\", Toast.LENGTH_SHORT, true).show();\n t.printStackTrace();\n }\n });\n }", "@Test(groups = \"testAuth\", dependsOnGroups = \"authEnable\", priority = 1)\n public void testKVWithAuth() throws ExecutionException, InterruptedException {\n this.userClient.getKVClient().put(rootRoleKey, rootRoleValue).get();\n this.userClient.getKVClient().put(userRoleKey, userRoleValue).get();\n this.userClient.getKVClient().get(rootRoleKey).get();\n this.userClient.getKVClient().get(userRoleKey).get();\n }", "public void login(View v) {\n if (validateLogin()) {\n attemptLogin();\n }\n }", "@Given ( \"I am logged into iTrust2 as an HCP\" )\r\n public void loginAsHCP () {\r\n driver.get( baseUrl );\r\n final WebElement username = driver.findElement( By.name( \"username\" ) );\r\n username.clear();\r\n username.sendKeys( \"hcp\" );\r\n final WebElement password = driver.findElement( By.name( \"password\" ) );\r\n password.clear();\r\n password.sendKeys( \"123456\" );\r\n final WebElement submit = driver.findElement( By.className( \"btn\" ) );\r\n submit.click();\r\n }", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "private void signInMethod() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n\n // Build a GoogleSignInClient with the options specified by gso.\n mGoogleSignInClient = GoogleSignIn.getClient(this, gso);\n }", "private ServicioLogin() {\n super();\n }", "public void LogIn() {\n\t\t\r\n\t}", "String getLoginapiavgrtt();", "private void debugAuthentcation() {\n\n\t\t/*\n\t\t * XPagesUtil.showErrorMessage(\"bluemix util: serviceName: \" +\n\t\t * serviceName + \", baseUrl: \" + baseUrl + \" username: \" + username +\n\t\t * \" password: \" + password);\n\t\t * XPagesUtil.showErrorMessage(\"bluemix util: service name: \" +\n\t\t * serviceName + \", hardcodedBaseUrl: \" + hardcodedBaseUrl +\n\t\t * \" hardcodedUsername: \" + hardcodedUsername + \" hardcodedPassword: \" +\n\t\t * hardcodedPassword);\n\t\t */\n\t}", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }", "public Login() {\r\n\t\tinitialize();\r\n\t}", "GoogleAuthenticatorKey createCredentials();", "private void loginHandler(RoutingContext context) {\n JsonObject creds = new JsonObject()\n .put(\"username\", context.getBodyAsJson().getString(\"username\"))\n .put(\"password\", context.getBodyAsJson().getString(\"password\"));\n\n // TODO : Authentication\n context.response().setStatusCode(500).end();\n }", "private String login() throws AxisFault {\n APIManagerConfiguration config = ServiceReferenceHolder.getInstance().\n getAPIManagerConfigurationService().getAPIManagerConfiguration();\n String user = config.getFirstProperty(APIConstants.API_GATEWAY_USERNAME);\n String password = config.getFirstProperty(APIConstants.API_GATEWAY_PASSWORD);\n String url = config.getFirstProperty(APIConstants.API_GATEWAY_SERVER_URL);\n\n if (url == null || user == null || password == null) {\n throw new AxisFault(\"Required API gateway admin configuration unspecified\");\n }\n\n String host;\n try {\n host = new URL(url).getHost();\n } catch (MalformedURLException e) {\n throw new AxisFault(\"API gateway URL is malformed\", e);\n }\n\n AuthenticationAdminStub authAdminStub = new AuthenticationAdminStub(\n ServiceReferenceHolder.getContextService().getClientConfigContext(),\n url + \"AuthenticationAdmin\");\n ServiceClient client = authAdminStub._getServiceClient();\n Options options = client.getOptions();\n options.setManageSession(true);\n try {\n authAdminStub.login(user, password, host);\n ServiceContext serviceContext = authAdminStub.\n _getServiceClient().getLastOperationContext().getServiceContext();\n String sessionCookie = (String) serviceContext.getProperty(HTTPConstants.COOKIE_STRING);\n return sessionCookie;\n } catch (RemoteException e) {\n throw new AxisFault(\"Error while contacting the authentication admin services\", e);\n } catch (LoginAuthenticationExceptionException e) {\n throw new AxisFault(\"Error while authenticating against the API gateway admin\", e);\n }\n }", "private void signIn() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestEmail()\n .build();\n\n // Build a GoogleSignInClient with the options specified by gso.\n GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(getActivity(), gso);\n\n // Starting the intent prompts the user to select a Google account to sign in with\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "public static void authenticate() {\n\n Stage window = new Stage();\n\n final String url = OAUTH_URL + getQuery();\n\n BorderPane borderPane = new BorderPane();\n WebView browser = new WebView();\n WebEngine webEngine = browser.getEngine();\n\n webEngine.load(url);\n borderPane.setCenter(browser);\n\n webEngine.setOnStatusChanged(event -> {\n if (event.getSource() instanceof WebEngine) {\n WebEngine we = (WebEngine) event.getSource();\n String location = we.getLocation();\n // If we are redirected to REDIRECT_URL we get contents, and send it to verify() to get access token\n if (location.startsWith(REDIRECT_URL) && location.contains(\"code\") && AUTH_OBECT == null) try {\n URL url1 = new URL(location);\n String[] params = url1.getQuery().split(\"&\");\n Map<String, String> map = new HashMap<>();\n for (String param : params) {\n String name = param.split(\"=\")[0];\n String value = param.split(\"=\")[1];\n map.put(name, value);\n }\n String code = map.get(\"code\");\n // We have code so we continue the flow\n verify(code);\n window.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n // create scene\n window.setTitle(\"Authentication\");\n Scene scene = new Scene(borderPane, 750, 500);\n window.setScene(scene);\n window.showAndWait();\n }", "public void login(View v){\n String email = emailET.getText().toString();\n String password = passwordET.getText().toString();\n mAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, task -> {\n if (task.isSuccessful()) {\n startActivity(new Intent(LoginActivity.this, MainActivity.class));\n } else {\n // If sign in fails, display a message to the user.\n Toast.makeText(LoginActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n });\n }", "java.lang.String getCred();", "public void loginAsAdmin() {\n mAuth.signInWithEmailAndPassword(\"[email protected]\", \"password\")\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (! task.isSuccessful()) {\n alert(\"Firebase\", \"ERROR: Invalid username or password!\");\n return;\n }\n\n authenticationDone = true;\n if (splashTimeoutFinished) {\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(intent);\n }\n }\n });\n }", "private void doLogin() {\n\t\tSharedPreferences.Editor prefEditor = mSP.edit();\n\t\tSession.FirstLogin = true;\n\t\tmUserPin = et_password.getText().toString();\n\t\t// Time to update the session\n\t\tif (inTruckMode) {\n\t\t\tSession.setVehicle(vehicle);\n\t\t\tSession.setDriver(userDao.getByPin(mUserPin));\n\n\t\t\tprefEditor.putString(Config.VEHICLE_ID_KEY, vehicle.getId());\n\t\t\tprefEditor.putString(Config.LAST_VEHICLE_KEY, vehicle.getId());\n\t\t\tprefEditor.putString(Config.SITE_ID_KEY, null);\n\n\t\t\tSession.setType(SessionType.VEHICLE_SESSION);\n\t\t} else {\n\t\t\tSession.setSite(site);\n\t\t\tSession.setDriver(userDao.getByPin(mUserPin));\n\n\t\t\tprefEditor.putString(Config.VEHICLE_ID_KEY, null);\n\t\t\tprefEditor.putString(Config.LAST_VEHICLE_KEY, null);\n\t\t\tprefEditor.putString(Config.SITE_ID_KEY, site.getId());\n\n\t\t\tSession.setType(SessionType.SITE_SESSION);\n\t\t}\n\n\t\tstartupSync();\n\t\tstartSync();\n\n\t\tprefEditor.putString(Config.USER_PIN_KEY, mUserPin);\n\t\tprefEditor.putString(Config.LAST_USER_PIN_KEY, mUserPin);\n\t\tprefEditor.putString(Config.SYNC_SERVICE_KEY, \"yes\");\n\t\tprefEditor.commit();\n\n\t\t// if no VIMEI associated with truck, starting GPSService on SB device\n\t\tif (!vehiclesDao.xergoEsn(getApplicationContext())) {\n\t\t\tvimei = vehiclesDao.getVimei(this);\n\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.setAction(GPSService.UPDATE_IMEI_EVENT);\n\t\t\tintent.putExtra(\"Value\", vimei);\n\t\t\tsendBroadcast(intent);\n\n\t\t\tintent = new Intent();\n\t\t\tintent.setAction(GPSService.SEND_IGNITION_ON_EVENT);\n\t\t\tsendBroadcast(intent);\n\t\t}\n\n\t\tstartSession(mUserPin);\n\t\tIntent intent = new Intent(this, MapActivity.class);\n\t\tthis.startActivity(intent);\n\t\tfinish();\n\t}", "public static void main(String[] args) throws SessionException, AbpException, NotAuthorizedException {\n ObjectCommunicator objectCommunicator = ObjectCommunicator.getSharedInstance();\n try {\n objectCommunicator.login(\"lvs\", \"a\", \"1\", \"http://localhost:8080/abp\");\n } catch (Exception e) {\n }\n System.getProperties().put(\"exec.url\", \"http://localhost:8080/abp\");\n AbpSettings.getInstance().initForClient();\n\n // AbpManager abpManager = AbpManager.loginAsGuest(\"oracle\");\n\n // ProgrammeHelper.checkCombination(150L, 235L, 2, abpManager.makeWorkspace(\"oracle\"));\n\n }", "private void login(){\n\t\tprogress.toggleProgress(true, R.string.pagetext_signing_in);\n\t\tParseUser.logInInBackground(email.split(\"@\")[0], password, new LogInCallback() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(ParseUser user, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tprogress.toggleProgress(false);\n\t\t\t\t\tIntent intent = new Intent(context, MainActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// else, incorrect password\n\t\t\t\t\tToast.makeText(context, \n\t\t\t\t\t\t\t\t getString(R.string.parse_login_fail, email), \n\t\t\t\t\t\t\t\t Toast.LENGTH_LONG).show();\t\t\t\t\t\n\t\t\t\t\tLog.e(\"Error Logging into Parse\", \"Details: \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\t\t\n\t\t});\n\t}", "private void openBasicAuthPage(String login, String password) {\n\n String url = \"https://\" + login + \":\" + password + \"@\" + \"the-internet.herokuapp.com/digest_auth\";\n driver.get(url);\n }", "@Override\r\n\tpublic void login() {\n\r\n\t}", "private LogIn() {}", "private static HttpResponse sendAuthenticated(HttpUriRequest request) throws Exception {\n if (accessToken == null) {\n throw new Exception(\"GitLab access token not set\");\n }\n request.addHeader(\"PRIVATE-TOKEN\", accessToken);\n return createClient().execute(request);\n }", "public void authenticate(LoginCredentials credentials) throws LoginException;", "User signIn(String login, String password);", "public User login(String loginName, String password) throws UserBlockedException;", "public Login(Client client) {\n this.client = client;\n }", "@UiHandler(\"go\")\n void connexion(ClickEvent e) {\n loginField.setFocus(false);\n passwordField.setFocus(false);\n domains.setFocus(false);\n\n String login = loginField.getText();\n String password = passwordField.getText();\n login(login, password, domains.getValue(domains.getSelectedIndex()));\n\n\n }", "@Override\n public void onLoginButtonClick(String email, String password) {\n AGConnectAuthCredential credential = EmailAuthProvider.credentialWithPassword(email, password);\n AGConnectAuth.getInstance().signIn(credential)\n .addOnSuccessListener(signInResult -> onLoginCorrect())\n .addOnFailureListener(e -> Toast.makeText(MainActivity.this, \"Bad credentials\", Toast.LENGTH_LONG).show());\n }", "void login(String email, String password) throws InvalidCredentialsException, IOException;", "@Given(\"Login Functionality\")\n public void Login_Functionality() {\n String url = ConfigurationReader.get(\"url\");\n Driver.get().get(url);\n //login with valid credentials\n loginPage.login();\n }", "public String getVault() {\n return vault;\n }", "public void StartLogIn(){\n\t}", "String signUp(String userName, String password) throws RemoteException, InterruptedException;", "public com.sun.jna.PointerType login(Credentials c) throws RelationException;", "private void adminLogin() {\n\t\tdriver.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t}", "LoginContext login(String username, String password) throws LoginException;", "public int login(String username, String password) \n {\n\treturn this.acctCtrl.login(username, password);\n\n }", "public Login() {\n initComponents();\n KiemTraKN();\n }", "public String getVaultPassword() {\n return vaultPassword;\n }", "private void signIn() {\n Utility.showLoader(this);\n mGoogleApiClient.clearDefaultAccountAndReconnect();\n\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "protected void doLogin(Authentication authentication) throws AuthenticationException {\n \n }", "private void startGoogleGamesSignIn () {\n\t\tfinal GPPSignIn s = GPPSignIn.sharedInstance();\n\t\tGPGManager m = GPGManager.sharedInstance();\n\n\t\tgamesAuthBlock = new GPGReAuthenticationBlock() {\n\t\t\t@Override\n\t\t\tpublic void invoke (boolean requiresKeychainWipe, NSError error) {\n\t\t\t\t// If you hit this, auth has failed and you need to authenticate.\n\t\t\t\t// Most likely you can refresh behind the scenes\n\t\t\t\tif (requiresKeychainWipe) {\n\t\t\t\t\ts.signOut();\n\t\t\t\t}\n\t\t\t\ts.authenticate();\n\t\t\t}\n\t\t};\n\n\t\t// pass the GPPSignIn to the GPGManager.\n\t\tm.signIn(s, gamesAuthBlock);\n\t}", "public login() {\r\n\t\tsuper();\r\n\t}", "@BeforeMethod\n public void loadLoginPage(){\n driver.get(\"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/\");\n Loginpage page = new Loginpage(driver);\n page.createAccount();\n }", "public login() {\n initComponents();\n \n \n }", "public String getCredentials();", "@Test\n\tpublic void loginToOpentaps() {\n\t\tinvokeApp(\"chrome\", \"http://demo1.opentaps.org\");\n\n\t\t// Step 2: Enter user name\n\t\tenterById(\"username\", \"DemoSalesManager\");\n\n\t\t// Step 3: Enter Password\n\t\tenterById(\"password\", \"crmsfa\");\n\n\t\t// Step 4: Click Login\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\t\t// Step 5: Verify Username\n\t\tverifyTextContainsByXpath(\"//div[@id='form']/h2\", \"Welcome\");\n\t\t\n\t\t// Step 6: Click Logout\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\n\n\n\t}", "private void formAuthenticate(String server) throws Exception{\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tcredsProvider.setCredentials(\n\t\t\t\tnew AuthScope(server, 8081),\n\t\t\t\tnew UsernamePasswordCredentials(\"debug\", \"debuglockss\"));\n\t\tCloseableHttpClient httpclient = HttpClients.custom()\n\t\t\t\t.setDefaultCredentialsProvider(credsProvider)\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tHttpGet httpget = new HttpGet(\"https://\"+ server +\":8081/Home\");\n\n\t\t\tLOGGER.info(\"Executing request \" + httpget.getRequestLine());\n\t\t\tCloseableHttpResponse response = httpclient.execute(httpget);\n\t\t\ttry {\n\t\t\t\tLOGGER.info(\"----------------------------------------\");\n\t\t\t\tLOGGER.info(response.getStatusLine().toString());\n\t\t\t\tLOGGER.info(EntityUtils.toString(response.getEntity()));\n\t\t\t} finally {\n\t\t\t\tresponse.close();\n\t\t\t}\n\t\t} finally {\n\t\t\thttpclient.close();\n\t\t}\n\t}", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "@Test\r\n\tpublic void login() throws Exception{\r\n\t\t\r\n\t\tSignInPage objSignInPage=new SignInPage(driver);\r\n\t\t\r\n\t\t//insert username and password\r\n\t\tobjSignInPage.signIn(Util_VU.LOGIN_ID,Util_VU.PASSWORD);\r\n\t\t\r\n\t\t//get\r\n\t\tString step2=driver.getTitle();\r\n\t\tSystem.out.println(step2);\r\n\t\t\r\n\t}", "public Person login(String username, String password);" ]
[ "0.6530903", "0.59050465", "0.59035337", "0.5699965", "0.56697285", "0.5551532", "0.54651254", "0.5420195", "0.5408027", "0.53934515", "0.538774", "0.53856665", "0.5346215", "0.53004575", "0.52953404", "0.52953404", "0.5291406", "0.52899957", "0.5289239", "0.5271152", "0.5261566", "0.52514035", "0.52264583", "0.52042973", "0.51831925", "0.51736075", "0.5159753", "0.51584625", "0.51451033", "0.51405543", "0.5139981", "0.5133472", "0.5131642", "0.51162845", "0.51139086", "0.50983053", "0.50788", "0.5076077", "0.5061093", "0.50539124", "0.50509775", "0.5050976", "0.5047537", "0.5046401", "0.50243837", "0.5022774", "0.49827", "0.49794012", "0.4976232", "0.4964841", "0.49640134", "0.4954882", "0.49538112", "0.4942721", "0.4935865", "0.49315894", "0.49275726", "0.4926597", "0.4925891", "0.49242812", "0.49154148", "0.49153024", "0.4914642", "0.49028128", "0.4899164", "0.48966795", "0.4896402", "0.4894479", "0.48917514", "0.48840266", "0.48792914", "0.48764205", "0.4874041", "0.48717752", "0.48711333", "0.48678857", "0.48657385", "0.48640814", "0.4862141", "0.48605156", "0.48574576", "0.48561153", "0.48479527", "0.48451206", "0.48317972", "0.48309386", "0.48269302", "0.48237002", "0.48221427", "0.4820165", "0.48193163", "0.48176363", "0.48128173", "0.48063913", "0.48029462", "0.48012587", "0.47936618", "0.47909176", "0.4788428", "0.47849107", "0.47775376" ]
0.0
-1
Login to vault using the jwt method
public Optional<AuthLoginJwt> authLoginJwt() { return Codegen.objectProp("authLoginJwt", AuthLoginJwt.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Response login() {\n return login(\"\");\n }", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "User login(Uuid id, String username, String password, Time creationTime);", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "private void loginHandler(RoutingContext context) {\n JsonObject creds = new JsonObject()\n .put(\"username\", context.getBodyAsJson().getString(\"username\"))\n .put(\"password\", context.getBodyAsJson().getString(\"password\"));\n\n // TODO : Authentication\n context.response().setStatusCode(500).end();\n }", "protected Response login(String environment) {\n environment = Strings.isNullOrEmpty(environment) ? \"\"\n : \"/\" + environment;\n JsonObject creds = new JsonObject();\n creds.addProperty(\"username\", \"admin\");\n creds.addProperty(\"password\", \"admin\");\n Response resp = post(environment + \"/login\", creds.toString());\n return resp;\n }", "private void loginUser() throws JSONException, UnsupportedEncodingException {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"username\", editUserName.getText().toString());\n jsonObject.put(\"password\", editPassword.getText().toString());\n jsonObject.put(\"DeviceID\", diviceToken);\n jsonObject.put(\"DevicePlatform\", devicePlatform);\n invokeLogin(jsonObject);\n\n\n }", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }", "protected synchronized String authenticated() throws JSONException {\n JSONObject principal = new JSONObject()\n .put(FIELD_USERNAME, USER)\n .put(FIELD_PASSWORD, PASSWORD);\n if (token == null){ //Avoid authentication in each call\n token =\n given()\n .basePath(\"/\")\n .contentType(ContentType.JSON)\n .body(principal.toString())\n .when()\n .post(LOGIN)\n .then()\n .statusCode(200)\n .extract()\n .header(HEADER_AUTHORIZATION);\n\n }\n return token;\n }", "public AuthResponse loginAccount(Account acc){\n Call<AuthResponse> call = endpoints.loginAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "public void login(String username, String password){\n\n //Para las pruebas un usuario por defecto\n if(username.equals(\"xxx\") && password.equals(\"xxx\")){\n LoginUserMutation.LoginUser loginUser = new LoginUserMutation.LoginUser(\n \"jwt\", \"xxx\"+username+\"xxx\",\n \"type\",9999999, \"ni idea\");\n jwt.setValue(new LoginUserMutation.Data(loginUser));\n }\n\n if(isUserNameValid(username) && isPasswordValid(password)){\n CompletableFuture<LoginUserMutation.Data> loginDataPromise = loginRepository.gqlLoginUser(username, password);\n try {\n LoginUserMutation.Data loginData = loginDataPromise.get(2L, TimeUnit.SECONDS);\n System.out.println(loginData.loginUser());\n if(loginData.loginUser() != null){\n jwt.setValue(loginData);\n }else{\n toastErrorObserver.setValue(\"Correo o Contraseña Incorrectas\");\n }\n }catch(Error | ExecutionException | InterruptedException | TimeoutException e){\n toastErrorObserver.setValue(\"No se pudo comunicar con el servidor\");\n }\n }else{\n toastErrorObserver.setValue(\"Formato de Correo o Contraseña Erroneos\");\n }\n }", "public String LoginServiceJwt(String jwt){\n return jwt =\n given().log().all().accept(\"text/plain, */*\")\n .headers(\n \"App-Code\", APPCODE,\n \"X-IBM-Client-Id\", IBMCLIENTID\n )\n .and().given().contentType(\"application/x-www-form-urlencoded\")\n .and().given().body(\"grant_type=password&scope=security&username=\"+MXUSER+\"&password=\"+PWD+\"&client_id=\"+IBMCLIENTID)\n .when().post(AZUREURL+\"/v2/secm/oam/oauth2/token\")\n .then().log().ifError().assertThat().statusCode(200)\n .extract().path(\"jwt\").toString();\n }", "private void logIn(LogSignTemplate credentials){\n Call<LogSignTemplate> callNewTrack = nightAPI.authorize(credentials);\n callNewTrack.enqueue(new Callback<LogSignTemplate>() {\n @Override\n public void onResponse(Call<LogSignTemplate> call, Response<LogSignTemplate> response) {\n if(response.isSuccessful()){\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// SUCCESFUL LOGIN !!!!!!!!!!!!!!! /////////////////////////////////////\");\n Toasty.success(getContext(), \"Succes, welcome.\", Toast.LENGTH_SHORT, true).show();\n Intent intent = new Intent(getContext(), MenuActivity.class);\n startActivity(intent);\n }\n else{\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// NO SUCCESFUL RESPONSE /////////////////////////////////////\");\n Toasty.error(getContext(), \"Incorrect username or password.\", Toast.LENGTH_SHORT, true).show();\n }\n }\n\n @Override\n public void onFailure(Call<LogSignTemplate> call, Throwable t) {\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////////// ERROR /////////////////////////////////\");\n Toasty.error(getContext(), \"Error while validating..\", Toast.LENGTH_SHORT, true).show();\n t.printStackTrace();\n }\n });\n }", "public void authenticate(LoginRequest loginRequest) {\n\n }", "void login(String user, String password);", "RequestResult loginRequest() throws Exception;", "private void login(String username,String password){\n\n }", "public MutableLiveData<TokenResponse> login(String email, String password) {\n return repository.login(email, password);\n }", "private static void login(String role, String password) {\n String json = String.format(\"{username: \\\"%s\\\", password: \\\"%s\\\"}\", role, password);\n securityToken = given()\n .contentType(\"application/json\")\n .body(json)\n //.when().post(\"/api/login\")\n .when().post(\"/login\")\n .then()\n .extract().path(\"token\");\n }", "@Override\r\n\tpublic UserVO login(LoginUserVO user) {\n\t\treturn login.login(user);\r\n\t}", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "UserToken login(String username, String password) throws WorkspaceException;", "@Override\n public JsonResponse duringAuthentication(String... params) {\n try {\n final String username = params[0];\n final String password = params[1];\n return RequestHandler.authenticate(this.getApplicationContext(), username, password);\n } catch (IOException e) {\n return null;\n }\n }", "public AuthToken loginUser(){\n return null;\n }", "private void login(Conversation conversation) {\n\t\tJsonObject lJsonObjIn = (JsonObject) conversation.getRequestBodyAsJSON();\n\t\t\n\t\tString lGebruikersnaam = lJsonObjIn.getString(\"username\");\t\t\t\t\t\t// Uitlezen van opgestuurde inloggegevens... \n\t\tString lWachtwoord = lJsonObjIn.getString(\"password\");\n\t\tMap<String, String> loginInfo = informatieSysteem.loginDetails(lGebruikersnaam,lWachtwoord);\n\n\t\tif(loginInfo.isEmpty())\n\t\t{\n\t\t\t//LOGIN FAILED !\n\t\t\tconversation.sendJSONMessage(\"{\\\"rol\\\":\\\"undefined\\\"}\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJsonObjectBuilder lJsonObjectBuilder = Json.createObjectBuilder();\n\t\t\tlJsonObjectBuilder.add(\"rol\", loginInfo.get(\"rol\"));\n\t\t\tlJsonObjectBuilder.add(\"voornaam\", loginInfo.get(\"voornaam\"));\n\t\t\tlJsonObjectBuilder.add(\"achternaam\", loginInfo.get(\"achternaam\"));\n\t\t\tlJsonObjectBuilder.add(\"identificatienummer\", loginInfo.get(\"identificatienummer\"));\t\t// en teruggekregen gebruikersrol als JSON-object...\n\t\t\tif(loginInfo.containsKey(\"group\")) lJsonObjectBuilder.add(\"group\", loginInfo.get(\"group\"));\n\t\t\tif(loginInfo.containsKey(\"klasnaam\")) lJsonObjectBuilder.add(\"klasnaam\", loginInfo.get(\"klasnaam\"));\n\t\t\tif(loginInfo.containsKey(\"klascode\")) lJsonObjectBuilder.add(\"klascode\", loginInfo.get(\"klascode\"));\n\t\t\tString lJsonOut = lJsonObjectBuilder.build().toString();\n\t\t\tconversation.sendJSONMessage(lJsonOut);\n\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t// terugsturen naar de Polymer-GUI!\n\t}", "Pokemon.RequestEnvelop.AuthInfo.JWT getToken();", "private void sendToAPI(final View v, JSONObject jsonLogin){\n APIClient apiClient = new APIClient();\n Service apiService = apiClient.getClient().create(Service.class);\n Call<User> call = apiService.login(new Login(\"efef\",\"dfwd\"));\n call.enqueue(new Callback<User>() {\n @Override\n public void onResponse(Call<User> call, Response<User> response) {\n if (response.isSuccessful()) {\n new CustomToast().displyToast(getContext(), v, \"Error:\"+response.code()+\" \"+response.body().getMessage()+\n \"Token is: \"+response.body().getAccessToken());\n }\n else{\n new CustomToast().displyToast(getContext(), v, \"Error: \"+response.code()+\" \"+\n response.headers()+ \"...Incorrect username or password!\");\n }\n }\n\n @Override\n public void onFailure(Call<User> call, Throwable t) {\n new CustomToast().displyToast(getContext(), v, \"Server unreachable, Please retry again later\");\n }\n });\n\n }", "public String signIn(String username, String password);", "LoginContext login(String username, String password) throws LoginException;", "@Override\n\tpublic SpaceUserVO login(SpaceUserVO spaceUserVO) throws Exception {\n\t\treturn null;\n\t}", "protected void login() {\n\t\t\r\n\t}", "@GetMapping(\"/api/v1/login\")\n public String login() {\n return \"Success\";\n }", "public Result authenticate() {\r\n // 1. Define class to send JSON response back\r\n class Login {\r\n public Long id;\r\n public String gamerTag;\r\n public String token;\r\n\r\n public Login() {\r\n }\r\n }\r\n\r\n // 2. Read email and password from request()\r\n JsonNode request = request().body().asJson();\r\n String gamerTag = request.get(\"gamerTag\").asText();\r\n String password = request.get(\"password\").asText();\r\n\r\n // 3. Find user with given gamerTag\r\n Login ret = new Login();\r\n User user = User.gamerTagLogin(gamerTag);\r\n if (user == null) {\r\n return unauthorized(Json.toJson(ret));\r\n }\r\n // 4. Compare password.\r\n String sha256 = User.getSha256(request.get(\"password\").asText());\r\n if (sha256.equals(user.getPassword())) {\r\n // Success\r\n String authToken = generateAuthToken();\r\n user.setToken(authToken);\r\n Ebean.update(user);\r\n ret.token = authToken;\r\n ret.gamerTag = user.getGamerTag();\r\n ret.id = user.getId();\r\n return ok(Json.toJson(ret));\r\n\r\n }\r\n // 5. Unauthorized access\r\n return unauthorized();\r\n }", "public void login(String username, String password) {\n User user = new User(username, password);\r\n String paramBodyJsonStr = new Gson().toJson(user);\r\n Logger.d(\"paramBodyJsonStr=\" + paramBodyJsonStr);\r\n // handle login\r\n AndroidNetworking.post()\r\n .setContentType(\"application/json; charset=utf-8\")\r\n .setTag(this)\r\n .setUrl(Constants.URL_LOGIN)\r\n .build()\r\n .setApplicationJsonString(paramBodyJsonStr)\r\n .setAnalyticsListener(analyticsListener)\r\n .getAsJSONObject(new JSONObjectRequestListener() {\r\n @Override\r\n public void onResponse(JSONObject result) {\r\n Logger.d(\"response result=\" + result.toString());\r\n Result<LoggedInUser> defultResult = loginRepository.getDataSource().login(username, password);\r\n LoggedInUser data = ((Result.Success<LoggedInUser>) defultResult).getData();\r\n loginResult.setValue(new LoginResult(new LoggedInUserView(data.getDisplayName())));\r\n }\r\n\r\n @Override\r\n public void onError(ANError anError) {\r\n loginResult.setValue(new LoginResult(new Result.Error(anError)));\r\n Logger.d(\"anError=\" + anError.toString());\r\n if (!TextUtils.isEmpty(anError.getErrorDetail())) {\r\n Logger.d(\"getMessage=\" + anError.getMessage() + \" getErrorDetail=\" + anError.getErrorDetail());\r\n }\r\n }\r\n });\r\n\r\n }", "@Override\n public Map login(TreadmillStatus treadmillStatus) {\n TreadmillInfo treadmillInfo = new TreadmillInfo();\n BeanCoper.copyProperties(treadmillInfo, treadmillStatus);\n validateTreadmill(treadmillInfo);\n\n Map<String, Object> result = new HashMap<>();\n /*\n * Check this treadmill registered or not\n * If registered return token , else return nothing\n */\n // Set the default unlock status is locked\n treadmillStatus.setLockStatus(TreadmillStatusEnum.LOCKED.getValue());\n String token = StringUtils.getUUID();\n // Cache token to redis\n redisDbDao.setexBySerialize(TOKEN_PREFIX + token, DEFAULT_EXPIRE_SECONDS, treadmillStatus);\n // Token should be stored a copy in mysql in case of Server shutdown suddenly\n\n /*\n * Generate QRCode page url\n */\n JdUrl jdUrl = homeModule.getTarget(\"/v1/authPage\");\n // Set query criteria\n Map<String, Object> query = new LinkedHashMap<>();\n query.put(\"token\", token);\n\n jdUrl.setQuery(query);\n\n result.put(\"token\", token);\n // Url is like http://www.baidu.com?...\n result.put(\"url\", jdUrl.toString());\n\n return result;\n }", "@Test\n public void cTestGetLoginToken() {\n token = given()\n .param(\"username\", \"playlist\")\n .param(\"password\", \"playlist\")\n .post(\"/login\")\n .jsonPath().getString(\"token\");\n }", "public void signIn()\r\n {\r\n FoodCenterRequestFactory factory = AndroidRequestUtils.getFoodCenterRF(context);\r\n ClientServiceRequest service = factory.getClientService();\r\n\r\n service.login(regId).fire(this);\r\n }", "@POST(\"login\")\n Call<User> login();", "User signIn(String login, String password);", "public abstract void login(String userName, String password) throws RemoteException;", "public void login(){\n JSONObject clientInfo = new JSONObject();\n try{\n clientInfo.put(\"username\", mUsername);\n clientInfo.put(\"password\", mPassword);\n clientInfo.put(\"deviceID\", getDeviceID());\n clientInfo.put(\"ipAddress\", getClientIP());\n mSocket.emit(\"login\", clientInfo);\n }catch(JSONException ex){\n throw new RuntimeException(ex);\n }\n }", "String login(String userName, String password) throws RemoteException, InterruptedException;", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "public AgentDTO login(String login, String senha);", "public void login(User user);", "public User doAuthentication(String account, String password);", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "String signIn(String userName, String password) throws UserNotFoundException;", "void login(String email, String password) throws InvalidCredentialsException, IOException;", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "User login(String username, String password);", "private void signIn() {\n }", "public ControleurVueLogin() {\n\n\t}", "void loginAttempt(String email, String password);", "public Person login(String username, String password);", "@GetMapping(\"/user\")\n public User login(@RequestParam String username, @RequestParam String password) { return userDataTierConnection.login(username,password); }", "@GET(\"/login\")\n Call<LoginResponse> loginRequest(@Path(\"username\") String username\n , @Path(\"password\") String password);", "@Test\n public void loginSuccessWithGoodCredentials() {\n Mockito.when(accountService.getAuthenticatedUser()).thenReturn(Mono.just(account));\n //Mockito.when(userDetailsService.findByUsername(eq(\"jukka\"))).thenReturn(Mono.just(account.toUserDetails()));\n \n client\n .post().uri(\"/login\")\n .header(\"Authorization\", \"Basic \" + utils.createAuthenticationToken(\"jukka\", \"jukka\"))\n .exchange()\n .expectStatus()\n .isOk()\n .expectHeader()\n .contentType(APPLICATION_JSON)\n .expectBody()\n .jsonPath(\"$.id\").isEqualTo(\"oidasajfdlihfaidh\")\n .jsonPath(\"$.name\").isEqualTo(\"Jukka Riekkonen\")\n .jsonPath(\"$.username\").isEqualTo(\"jukka\")\n .jsonPath(\"$.password\").doesNotExist();\n }", "SignedObject authenticate(String username, String hashedPassword) throws RemoteException, Exception;", "public LoginResult login() {\n\t\tif (!auth.isLoggedIn())\n\t\t\treturn LoginResult.MAIN_LOGOUT;\n\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_INDEX);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tArrayList<Cookie> tmpCookies = Cookie.getCookies(conn);\n\t\t\taws = Cookie.getCookie(tmpCookies, \"AWSELB\");\n\t\t\tphp = Cookie.getCookie(tmpCookies, \"PHPSESSID\");\n\t\t\t\n\t\t\tconn = Utility.getGetConn(FUND_LOGIN);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tString location = Utility.getLocation(conn);\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t// TODO: future speed optimization\n\t\t\t//if (auth.getPHPCookie() == null) {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie()));\n\t\t\t\tCookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), \"PHPSESSID\");\n\t\t\t\t// saves time for Blackboard and retrieveProfileImage().\n\t\t\t\tauth.setPHPCookie(phpCookie);\n\t\t\t\t\n\t\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\t\n\t\t\t\tlocation = Utility.getLocation(conn);\n\t\t\t\tif (location.startsWith(\"signin.aspx\"))\n\t\t\t\t\tlocation = \"https://eraider.ttu.edu/\" + location;\n\t\t\t\tconn = Utility.getGetConn(location);\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\t// might need to set ESI and ELC here. If other areas are bugged, this is why.\n\t\t\t/*} else {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie()));\n\t\t\t\t/// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!!\n\t\t\t\tthrow new NullPointerException(\"Needs implementation!\");\n\t\t\t}*/\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/login.php?ticket=ST-...\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/funds_home.php\n\t\t\tlocation = Utility.getLocation(conn);\n\t\t\tif (location.startsWith(\"index.\")) {\n\t\t\t\tlocation = \"https://get.cbord.com/raidercard/full/\" + location;\n\t\t\t}\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tUtility.readByte(conn);\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundlogin\", ErrorType.Fatal);\n\t\t\treturn LoginResult.OTHER;\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundlogingeneral\", ErrorType.APIChange);\n\t\t\treturn LoginResult.OTHER;\n\t\t}\n\n\t\tloggedIn = true;\n\n\t\treturn LoginResult.SUCCESS;\n\t}", "private static void postLoginPage() {\n post(\"/login\", \"application/json\", (req, res) -> {\n HomerAccount loggedInAccount = homerAuth.login(req.body());\n if(loggedInAccount != null) {\n req.session().attribute(\"account\", loggedInAccount);\n res.redirect(\"/team\");\n } else {\n res.redirect(\"/login\");\n }\n return null;\n });\n }", "public static void authenticate() {\n\n Stage window = new Stage();\n\n final String url = OAUTH_URL + getQuery();\n\n BorderPane borderPane = new BorderPane();\n WebView browser = new WebView();\n WebEngine webEngine = browser.getEngine();\n\n webEngine.load(url);\n borderPane.setCenter(browser);\n\n webEngine.setOnStatusChanged(event -> {\n if (event.getSource() instanceof WebEngine) {\n WebEngine we = (WebEngine) event.getSource();\n String location = we.getLocation();\n // If we are redirected to REDIRECT_URL we get contents, and send it to verify() to get access token\n if (location.startsWith(REDIRECT_URL) && location.contains(\"code\") && AUTH_OBECT == null) try {\n URL url1 = new URL(location);\n String[] params = url1.getQuery().split(\"&\");\n Map<String, String> map = new HashMap<>();\n for (String param : params) {\n String name = param.split(\"=\")[0];\n String value = param.split(\"=\")[1];\n map.put(name, value);\n }\n String code = map.get(\"code\");\n // We have code so we continue the flow\n verify(code);\n window.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n // create scene\n window.setTitle(\"Authentication\");\n Scene scene = new Scene(borderPane, 750, 500);\n window.setScene(scene);\n window.showAndWait();\n }", "public String login(){\n UsernamePasswordToken token = new UsernamePasswordToken(user.getAccount(),\n user.getPassword());\n\n// \"Remember Me\" built-in:\n token.setRememberMe(user.isRememberMe());\n\n Subject currentUser = SecurityUtils.getSubject();\n\n\n try {\n currentUser.login(token);\n } catch (AuthenticationException e) {\n // Could catch a subclass of AuthenticationException if you like\n FacesContext.getCurrentInstance().addMessage(\n null,\n new FacesMessage(\"Login Failed: \" + e.getMessage(), e\n .toString()));\n return \"/login\";\n }\n return \"index\";\n }", "public User login(String loginName, String password) throws UserBlockedException;", "@Override\n public Token login(String _username, String _password,\n HttpServletRequest _request) throws AuthException {\n return new Token(this.config.getAdminToken(), null);\n }", "SqlVirtualMachineManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "private void loginUser(final String email, final String password){\n String cancel_req_tag = \"login\";\n progressDialog.setMessage(\"Logging you in...\");\n showDialog();\n \n Map<String, String> params = new HashMap<>();\n params.put(\"email\", email);\n params.put(\"password\", password);\n \n JSONObject req = new JSONObject(params);\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, URL_FOR_LOGIN, req,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response){\n try{\n boolean error = response.getBoolean(\"error\");\n if(!error){\n Intent intent = new Intent(LoginActivity.this, UserActivity.class);\n String token = response.getString(\"token\");\n saveToken(getApplicationContext(), token);\n hideDialog();\n \n startActivity(intent);\n finish();\n } else {\n String error_msg = response.getString(\"error_msg\");\n Toast.makeText(getApplicationContext(), error_msg,Toast.LENGTH_LONG).show();\n hideDialog();\n }\n \n } catch (JSONException e){\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener(){\n @Override\n public void onErrorResponse(VolleyError error){\n Toast.makeText(getApplicationContext(), \"An error occurred while logging in, please try again.\", Toast.LENGTH_LONG).show();\n error.printStackTrace();\n hideDialog();\n }\n });\n \n AppSingleton.getInstance(getApplicationContext()).addToRequestQueue(jsonObjectRequest, cancel_req_tag);\n }", "@GET(\"users/signin\")\r\n Call<User> signIn(@Header(\"Authorization\") String token);", "private void authenticate(String user, String pass) {\n }", "private void login() {\n String email = username.getText().toString();\n String pass = password.getText().toString();\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(DonorInterface.BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n DonorInterface api = retrofit.create(DonorInterface.class);\n Login login = new Login(email, pass);\n Call<Donor> call = api.login(login);\n\n call.enqueue(new Callback<Donor>() {\n @Override\n public void onResponse(Call<Donor> call, Response<Donor> response) {\n if (response.isSuccessful())\n {\n token = response.body().getToken().toString();\n Intent intent = new Intent(LoginActivity.this, SecondActivity.class);\n intent.putExtra(\"token\", token);\n startActivity(intent);\n finish();\n }\n else\n {\n Toast.makeText(LoginActivity.this,\"Username or Password is incorrect!\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<Donor> call, Throwable t) {\n Toast.makeText(LoginActivity.this,\"Issue in method\",Toast.LENGTH_SHORT).show();\n }\n });\n\n\n\n }", "public AdbLoginResponse loginScoinFromAdb(AdbLoginScoinRequest adbLoginScoinRequest);", "EmployeeMaster authenticateUser(int employeeId, String password);", "private void login() {\n if (blobStore != null) {\n return;\n }\n if (swiftUsername == null || swiftPassword == null || swiftAuthUrl == null || swiftContainer == null) {\n logger.error(\"Blob storage account is not configured\");\n throw new IllegalArgumentException(\"ERROR: Blob storage account is not configured\");\n }\n blobStore = ContextBuilder.newBuilder(blobApi)\n .endpoint(swiftAuthUrl)\n .credentials(swiftUsername, swiftPassword)\n .buildView(BlobStoreContext.class)\n .getBlobStore();\n\n if (!blobStore.containerExists(swiftContainer)) {\n// CreateContainerOptions options = CreateContainerOptions.Builder\n// .withMetadata(ImmutableMap.of(\"description\", \"E-PRTR data\"));\n// blobStore.createContainerInLocation(null, swiftContainer, options);\n Location location = getRegion();\n blobStore.createContainerInLocation(location, swiftContainer);\n }\n }", "public static Result login() {\n String csrfToken = \"\";\n return serveAsset(\"\");\n }", "Document login(String username, String password);", "@Override\n public void doLogin(String userName, String password, final RequestResultListener requestResultListener) {\n\n initApiService();\n\n apiService.token(\"password\", userName, password).enqueue(new Callback<Response4Login>() {\n @Override\n public void onResponse(Call<Response4Login> call, Response<Response4Login> response) {\n if (response.isSuccessful()) {\n requestResultListener.onSuccess(response);\n } else {\n requestResultListener.onUnSuccess(response);\n }\n }\n\n @Override\n public void onFailure(Call<Response4Login> call, Throwable t) {\n requestResultListener.onFail();\n }\n });\n\n\n }", "Login() { \n }", "@Override\n\tpublic Result login(Account account) {\n\t\ttry {\n\t\t\treturn (ok(login.login(account)));\n\t\t} catch (AuthenticationErrorException e) {\n\t\t\treturn (getError(UNAUTHORIZED));\n\t\t}\n\t}", "@Test\n public void bTestLogin(){\n given()\n .param(\"username\", \"playlist\")\n .param(\"password\", \"playlist\")\n .post(\"/login\")\n .then()\n .statusCode(200);\n }", "String login(Integer userId);", "@Override\r\n\tpublic void login() {\n\r\n\t}", "@POST\r\n\t@Path(\"/login/\")\r\n\tpublic User login(@RequestBody User user);", "public Reply login(String hostname) throws ThingsException, InterruptedException;", "@ApiOperation(value=\"Login\", notes=\"Login action\")\n @RequestMapping(value=\"/user/login\",method= RequestMethod.POST)\n @ResponseBody\n public LoginResVO loginHomeconnect(@ApiParam(value = \"account login\", required = true)@RequestHeader(value = \"PlatID\", required = true) String platID,@RequestHeader(value = \"AppID\", required = false) String appID,\n\t\t\t\t\t@RequestHeader HttpHeaders httpHeaders,\n\t\t\t\t\t@RequestBody(required = false) LoginReqVO body,HttpServletResponse response){\n\tString url = \"/api/translator/user/login\";\n\tLoginResVO result = new LoginResVO(RetObject.fail());\n\tMap<String,String> headerMap = new HashedMap();\n\theaderMap.put(\"PlatID\", platID);\n\theaderMap.put(\"AppID\", appID);\n\tString headers = getJSONString(headerMap);\n\tString bodyText = getJSONString(body);\n\tError headerError = validateHeaders(platID,appID);\n\tError bodyError = validateLoginBodyError(body);\n\tif ( bodyError == null && headerError == null){\n\t\tresponse.addHeader(\"AccessToken\",\"12345678\");\n\t\tresult = new LoginResVO();\n\t}\n\treturn result;\n}", "public void authenticate(LoginCredentials credentials) throws LoginException;", "public void login(View v) {\n if (validateLogin()) {\n attemptLogin();\n }\n }", "@Override\n public void clientAuthenticate()\n throws HubIntegrationException {\n try {\n final ArrayList<String> segments = new ArrayList<>();\n segments.add(\"j_spring_security_check\");\n final HttpUrl httpUrl = createHttpUrl(segments, null);\n\n final Map<String, String> content = new HashMap<>();\n final String username = hubServerConfig.getGlobalCredentials().getUsername();\n String password = hubServerConfig.getGlobalCredentials().getEncryptedPassword();\n if (StringUtils.isNotBlank(username) && StringUtils.isNotBlank(password)) {\n try {\n password = hubServerConfig.getGlobalCredentials().getDecryptedPassword();\n\n content.put(\"j_username\", username);\n content.put(\"j_password\", password);\n final Request request = createPostRequest(httpUrl, createEncodedRequestBody(content));\n Response response = null;\n try {\n logRequestHeaders(request);\n response = getClient().newCall(request).execute();\n logResponseHeaders(response);\n if (!response.isSuccessful()) {\n throw new HubIntegrationException(response.message());\n }\n } finally {\n if (response != null) {\n response.close();\n }\n }\n } catch (IllegalArgumentException | EncryptionException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }\n } catch (final IOException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }", "private ServicioLogin() {\n super();\n }", "public void login(HttpServletRequest req, HttpServletResponse res) throws IOException {\n\n // Client credentials\n Properties p = GlobalSettings.getNode(\"oauth.password-credentials\");\n String clientId = p.getProperty(\"client\");\n String secret = p.getProperty(\"secret\");\n ClientCredentials clientCredentials = new ClientCredentials(clientId, secret);\n\n // User credentials\n String username = req.getParameter(\"username\");\n String password = req.getParameter(\"password\");\n UsernamePassword userCredentials = new UsernamePassword(username, password);\n\n // Create request\n TokenResponse oauth = TokenRequest.newPassword(userCredentials, clientCredentials).post();\n if (oauth.isSuccessful()) {\n PSToken token = oauth.getAccessToken();\n\n // If open id was defined, we can get the member directly\n PSMember member = oauth.getMember();\n if (member == null) {\n member = OAuthUtils.retrieve(token);\n }\n\n if (member != null) {\n OAuthUser user = new OAuthUser(member, token);\n HttpSession session = req.getSession(false);\n String goToURL = this.defaultTarget;\n if (session != null) {\n ProtectedRequest target = (ProtectedRequest)session.getAttribute(AuthSessions.REQUEST_ATTRIBUTE);\n if (target != null) {\n goToURL = target.url();\n session.invalidate();\n }\n }\n session = req.getSession(true);\n session.setAttribute(AuthSessions.USER_ATTRIBUTE, user);\n res.sendRedirect(goToURL);\n } else {\n LOGGER.error(\"Unable to identify user!\");\n res.sendError(HttpServletResponse.SC_FORBIDDEN);\n }\n\n } else {\n LOGGER.error(\"OAuth failed '{}': {}\", oauth.getError(), oauth.getErrorDescription());\n if (oauth.isAvailable()) {\n res.sendError(HttpServletResponse.SC_FORBIDDEN);\n } else {\n res.sendError(HttpServletResponse.SC_BAD_GATEWAY);\n }\n }\n\n }", "public void LogIn() {\n\t\t\r\n\t}", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "public static void signIn(String username, String password, final Context context, final OnLoginListener onLoginListener)\n {\n HttpClientHelper client = new HttpClientHelper(Endpoints.User.login, context);\n\n client.addParamForPost(\"api_type\", \"json\");\n client.addParamForPost(\"user\", username);\n client.addParamForPost(\"passwd\", password);\n client.addParamForPost(\"rem\", String.valueOf(true));\n\n Network.newRequest(client, Network.POST, Network.WITHOUT_COOKIE, new Delegate()\n {\n @Override\n public void requestResults(Network.Status status)\n {\n User user = null;\n boolean err = false;\n\n if(status.hasInternet)\n {\n if(status.response.getStatusLine().getStatusCode() == 200\n || status.response.getStatusLine().getStatusCode() == 409)\n {\n try\n {\n JSONObject values = (JSONObject) ((JSONObject) status.result.get(\"json\")).get(\"data\");\n String cookie = values.getString(\"cookie\");\n\n status.httpClientHelper.setCookie(cookie, context);\n\n getMe(context, onLoginListener);\n }\n catch (JSONException e)\n {\n err = true;\n onLoginListener.onLogin(user, status, err);\n }\n }\n else\n {\n err = true;\n onLoginListener.onLogin(user, status, err);\n }\n }\n else\n {\n onLoginListener.onLogin(user, status, err);\n }\n }\n });\n }", "private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSystem.out.println(\"Welcome to AnnyBank\");\n\n\t\ttransactions();\n\t}", "public void login(View v){\n String email = emailET.getText().toString();\n String password = passwordET.getText().toString();\n mAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, task -> {\n if (task.isSuccessful()) {\n startActivity(new Intent(LoginActivity.this, MainActivity.class));\n } else {\n // If sign in fails, display a message to the user.\n Toast.makeText(LoginActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n });\n }", "@PostMapping(\"login\")\r\n public ResponseEntity<?> login(@RequestBody UserDetails userDetails) {\r\n try {\r\n companyService = (CompanyService) loginManager.login(userDetails.getEmail(), userDetails.getPassword(), userDetails.getClientType());\r\n } catch (LoginException error) {\r\n System.out.println(error.getMessage());\r\n return ResponseEntity.badRequest().body(error.getMessage());\r\n }\r\n return ResponseEntity.ok(jwtUtil.generateToken(userDetails));\r\n }", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }" ]
[ "0.6336322", "0.62115496", "0.6106165", "0.6102047", "0.6082504", "0.60657823", "0.60485005", "0.6027204", "0.6003208", "0.59825605", "0.5968519", "0.59165007", "0.5906494", "0.59041387", "0.58898485", "0.5878947", "0.5878505", "0.5876011", "0.58633244", "0.58548343", "0.5835772", "0.5802513", "0.57932585", "0.57435507", "0.573899", "0.5736128", "0.57244265", "0.57210034", "0.5712621", "0.5707432", "0.5702001", "0.5680034", "0.5679666", "0.5659848", "0.56473345", "0.56462866", "0.5627938", "0.56258976", "0.56147695", "0.5613002", "0.56126815", "0.5587263", "0.55808014", "0.55796117", "0.5578982", "0.55649", "0.55633634", "0.55618", "0.55492103", "0.55439883", "0.55439883", "0.5541645", "0.5533816", "0.55320257", "0.55315", "0.55272835", "0.5525949", "0.552011", "0.551614", "0.5505422", "0.5495771", "0.5491748", "0.5478677", "0.54552406", "0.54500884", "0.5443445", "0.54335254", "0.54309255", "0.54288834", "0.54278046", "0.5423667", "0.5410801", "0.5405705", "0.5397203", "0.53915566", "0.53895634", "0.53837985", "0.5377598", "0.5374572", "0.5370268", "0.5364461", "0.5361083", "0.5354851", "0.535153", "0.535042", "0.5350414", "0.5349158", "0.534684", "0.5337614", "0.532695", "0.53233343", "0.5322077", "0.5310019", "0.53084034", "0.5300689", "0.52859074", "0.52799296", "0.5278029", "0.5276741", "0.52736366", "0.5268753" ]
0.0
-1
Login to vault using the kerberos method
public Optional<AuthLoginKerberos> authLoginKerberos() { return Codegen.objectProp("authLoginKerberos", AuthLoginKerberos.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Reply login(String hostname) throws ThingsException, InterruptedException;", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "String login(String userName, String password) throws RemoteException, InterruptedException;", "public void doLogin() throws IOException {\n if (principal != null) {\n LOG.info(\n \"Attempting to login to KDC using principal: {} keytab: {}\", principal, keytab);\n UserGroupInformation.loginUserFromKeytab(principal, keytab);\n LOG.info(\"Successfully logged into KDC\");\n } else if (!isProxyUser(UserGroupInformation.getCurrentUser())) {\n LOG.info(\"Attempting to load user's ticket cache\");\n UserGroupInformation.loginUserFromSubject(null);\n LOG.info(\"Loaded user's ticket cache successfully\");\n } else {\n throwProxyUserNotSupported();\n }\n }", "public static void tryKerberosKeytabLogin(Configuration conf) {\n if (UserGroupInformation.isSecurityEnabled()) {\n UserGroupInformation loginUser;\n try {\n loginUser = UserGroupInformation.getLoginUser();\n } catch (IOException e) {\n LOG.error(\"Unable to start attempt to login using Kerberos keytab: \" + e.getMessage());\n return;\n }\n\n // If we are logged in into Kerberos with a keytab we can skip this to avoid needless logins\n if (!loginUser.hasKerberosCredentials() && !loginUser.isFromKeytab()) {\n String krb5Conf = conf.get(\"java.security.krb5.conf\");\n String krb5Principal = conf.get(\"hadoop.security.krb5.principal\");\n String krb5Keytab = conf.get(\"hadoop.security.krb5.keytab\");\n\n // Only attempt login if we have all the required settings.\n if (krb5Conf != null && krb5Principal != null && krb5Keytab != null) {\n LOG.info(\"Trying login using Kerberos Keytab\");\n LOG.info(\"krb5: Conf = \" + krb5Conf);\n LOG.info(\"krb5: Principal = \" + krb5Principal);\n LOG.info(\"krb5: Keytab = \" + krb5Keytab);\n System.setProperty(\"java.security.krb5.conf\", krb5Conf);\n try {\n UserGroupInformation.loginUserFromKeytab(krb5Principal, krb5Keytab);\n } catch (IOException e) {\n LOG.error(\"Unable to perform keytab based kerberos authentication: \" + e.getMessage());\n }\n }\n }\n }\n }", "void login(String cuid, String pass)\n throws RemoteException;", "public abstract void login(String userName, String password) throws RemoteException;", "public com.sun.jna.PointerType login(Credentials c) throws RelationException;", "protected Response login(String environment) {\n environment = Strings.isNullOrEmpty(environment) ? \"\"\n : \"/\" + environment;\n JsonObject creds = new JsonObject();\n creds.addProperty(\"username\", \"admin\");\n creds.addProperty(\"password\", \"admin\");\n Response resp = post(environment + \"/login\", creds.toString());\n return resp;\n }", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public void login(AuthenticationRequest auth_request)\n throws AuthorizationException, TException, AuthenticationException\n {\n for (Cassandra.Client client : addressToClient.values()) {\n long returnTime = client.login(auth_request, LamportClock.sendTimestamp());\n LamportClock.updateTime(returnTime);\n }\n }", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "public void authenticate(LoginCredentials credentials) throws LoginException;", "static Krb5InitCredential getInstance(Krb5NameElement paramKrb5NameElement, Credentials paramCredentials) throws GSSException {\n/* 200 */ EncryptionKey encryptionKey = paramCredentials.getSessionKey();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 207 */ PrincipalName principalName1 = paramCredentials.getClient();\n/* 208 */ PrincipalName principalName2 = paramCredentials.getClientAlias();\n/* 209 */ PrincipalName principalName3 = paramCredentials.getServer();\n/* 210 */ PrincipalName principalName4 = paramCredentials.getServerAlias();\n/* */ \n/* 212 */ KerberosPrincipal kerberosPrincipal1 = null;\n/* 213 */ KerberosPrincipal kerberosPrincipal2 = null;\n/* 214 */ KerberosPrincipal kerberosPrincipal3 = null;\n/* 215 */ KerberosPrincipal kerberosPrincipal4 = null;\n/* */ \n/* 217 */ Krb5NameElement krb5NameElement = null;\n/* */ \n/* 219 */ if (principalName1 != null) {\n/* 220 */ String str = principalName1.getName();\n/* 221 */ krb5NameElement = Krb5NameElement.getInstance(str, Krb5MechFactory.NT_GSS_KRB5_PRINCIPAL);\n/* */ \n/* 223 */ kerberosPrincipal1 = new KerberosPrincipal(str);\n/* */ } \n/* */ \n/* 226 */ if (principalName2 != null) {\n/* 227 */ kerberosPrincipal2 = new KerberosPrincipal(principalName2.getName());\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 232 */ if (principalName3 != null)\n/* */ {\n/* 234 */ kerberosPrincipal3 = new KerberosPrincipal(principalName3.getName(), 2);\n/* */ }\n/* */ \n/* */ \n/* 238 */ if (principalName4 != null) {\n/* 239 */ kerberosPrincipal4 = new KerberosPrincipal(principalName4.getName());\n/* */ }\n/* */ \n/* 242 */ return new Krb5InitCredential(krb5NameElement, paramCredentials, paramCredentials\n/* */ \n/* 244 */ .getEncoded(), kerberosPrincipal1, kerberosPrincipal2, kerberosPrincipal3, kerberosPrincipal4, encryptionKey\n/* */ \n/* */ \n/* */ \n/* */ \n/* 249 */ .getBytes(), encryptionKey\n/* 250 */ .getEType(), paramCredentials\n/* 251 */ .getFlags(), paramCredentials\n/* 252 */ .getAuthTime(), paramCredentials\n/* 253 */ .getStartTime(), paramCredentials\n/* 254 */ .getEndTime(), paramCredentials\n/* 255 */ .getRenewTill(), paramCredentials\n/* 256 */ .getClientAddresses());\n/* */ }", "protected void login() {\n\t\t\r\n\t}", "protected Response login() {\n return login(\"\");\n }", "public int login(String username, String password) \n {\n\treturn this.acctCtrl.login(username, password);\n\n }", "LoginContext login(String username, String password) throws LoginException;", "static Krb5InitCredential getInstance(GSSCaller paramGSSCaller, Krb5NameElement paramKrb5NameElement, int paramInt) throws GSSException {\n/* 160 */ KerberosTicket kerberosTicket = getTgt(paramGSSCaller, paramKrb5NameElement, paramInt);\n/* 161 */ if (kerberosTicket == null) {\n/* 162 */ throw new GSSException(13, -1, \"Failed to find any Kerberos tgt\");\n/* */ }\n/* */ \n/* 165 */ if (paramKrb5NameElement == null) {\n/* 166 */ String str = kerberosTicket.getClient().getName();\n/* 167 */ paramKrb5NameElement = Krb5NameElement.getInstance(str, Krb5MechFactory.NT_GSS_KRB5_PRINCIPAL);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 173 */ KerberosPrincipal kerberosPrincipal1 = KerberosSecrets.getJavaxSecurityAuthKerberosAccess().kerberosTicketGetClientAlias(kerberosTicket);\n/* */ \n/* */ \n/* 176 */ KerberosPrincipal kerberosPrincipal2 = KerberosSecrets.getJavaxSecurityAuthKerberosAccess().kerberosTicketGetServerAlias(kerberosTicket);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 190 */ Krb5InitCredential krb5InitCredential = new Krb5InitCredential(paramKrb5NameElement, kerberosTicket.getEncoded(), kerberosTicket.getClient(), kerberosPrincipal1, kerberosTicket.getServer(), kerberosPrincipal2, kerberosTicket.getSessionKey().getEncoded(), kerberosTicket.getSessionKeyType(), kerberosTicket.getFlags(), kerberosTicket.getAuthTime(), kerberosTicket.getStartTime(), kerberosTicket.getEndTime(), kerberosTicket.getRenewTill(), kerberosTicket.getClientAddresses());\n/* 191 */ krb5InitCredential\n/* 192 */ .proxyTicket = KerberosSecrets.getJavaxSecurityAuthKerberosAccess().kerberosTicketGetProxy(kerberosTicket);\n/* 193 */ return krb5InitCredential;\n/* */ }", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "public User login(String loginName, String password) throws UserBlockedException;", "private void login() {\n setCredentials();\n setSysProperties();\n\n Properties sysProperties = System.getProperties();\n sysProperties.put(\"mail.store.protocol\", \"imaps\");\n this.session = Session.getInstance(sysProperties,\n new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n }", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "SignedObject authenticate(String username, String hashedPassword) throws RemoteException, Exception;", "private boolean authenticate (HttpRequest request, HttpResponse response) throws UnsupportedEncodingException\n\t{\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\tif(requestSplit.length<2)\n\t\t\treturn false;\n\t\tString serviceName=requestSplit[1];\n\t\tfinal int BASIC_PREFIX_LENGTH=\"BASIC \".length();\n\t\tString userPass=\"\";\n\t\tString username=\"\";\n\t\tString password=\"\";\n\t\t\n\t\t//Check for authentication information in header\n\t\tif(request.hasHeaderField(AUTHENTICATION_FIELD)\n\t\t\t\t&&(request.getHeaderField(AUTHENTICATION_FIELD).length()>BASIC_PREFIX_LENGTH))\n\t\t{\n\t\t\tuserPass=request.getHeaderField(AUTHENTICATION_FIELD).substring(BASIC_PREFIX_LENGTH);\n\t\t\tuserPass=new String(Base64.decode(userPass), \"UTF-8\");\n\t\t\tint separatorPos=userPass.indexOf(':');\n\t\t\t//get username and password\n\t\t\tusername=userPass.substring(0,separatorPos);\n\t\t\tpassword=userPass.substring(separatorPos+1);\n\t\t\t\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\tlong userId;\n\t\t\t\tAgent userAgent;\n\t\t\t\t\n\t\t\t\tif ( username.matches (\"-?[0-9].*\") ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tuserId = Long.valueOf(username);\n\t\t\t\t\t} catch ( NumberFormatException e ) {\n\t\t\t\t\t\tthrow new L2pSecurityException (\"The given user does not contain a valid agent id!\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tuserId = l2pNode.getAgentIdForLogin(username);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tuserAgent = l2pNode.getAgent(userId);\n\t\t\t\t\n\t\t\t\tif ( ! (userAgent instanceof PassphraseAgent ))\n\t\t\t\t\tthrow new L2pSecurityException (\"Agent is not passphrase protected!\");\n\t\t\t\t((PassphraseAgent)userAgent).unlockPrivateKey(password);\n\t\t\t\t_currentUserId=userId;\n\t\t\t\t\n\t\t\t\tif(!_userSessions.containsKey(userId))//if user not registered\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tMediator mediator = l2pNode.getOrRegisterLocalMediator(userAgent);\n\t\t\t\t\t_userSessions.put(userId, new UserSession(mediator));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t_userSessions.get(userId).updateServiceTime(serviceName,new Date().getTime());//update last access time for service\n\t\t\t\t\n\t\t\t\tconnector.logMessage(\"Login: \"+username);\n\t\t\t\tconnector.logMessage(\"Sessions: \"+Integer.toString(_userSessions.size()));\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}catch (AgentNotKnownException e) {\n\t\t\t\tsendUnauthorizedResponse(response, null, request.getRemoteAddress() + \": login denied for user \" + username);\n\t\t\t} catch (L2pSecurityException e) {\n\t\t\t\tsendUnauthorizedResponse( response, null, request.getRemoteAddress() + \": unauth access - prob. login problems\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\tsendInternalErrorResponse(\n\t\t\t\t\t\tresponse, \n\t\t\t\t\t\t\"The server was unable to process your request because of an internal exception!\", \n\t\t\t\t\t\t\"Exception in processing create session request: \" + e);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresponse.setStatus ( HttpResponse.STATUS_BAD_REQUEST );\n\t\t\tresponse.setContentType( \"text/plain\" );\n\t\t\tresponse.print ( \"No authentication provided!\" );\n\t\t\tconnector.logError( \"No authentication provided!\" );\n\t\t}\n\t\treturn false;\n\t}", "private void doSpnegoSequence(AuthenticatedURL.Token token) throws IOException, AuthenticationException {\n try {\n AccessControlContext context = AccessController.getContext();\n Subject subject = Subject.getSubject(context);\n if ((subject == null) || (subject.getPrivateCredentials().size() == 0)) {\n subject = new Subject();\n LoginContext login = null;\n KerberosConfiguration krbConfiguration = new KerberosConfiguration();\n\n // use keytab\n if (useKeytab)\n {\n krbConfiguration.addUserKerberosOption(\"useKeyTab\", \"true\");\n krbConfiguration.addUserKerberosOption(\"storeKey\", \"true\");\n krbConfiguration.addUserKerberosOption(\"principal\", userPrincipal);\n krbConfiguration.addUserKerberosOption(\"keyTab\", keytab);\n login = new LoginContext(userPrincipal, subject, null, krbConfiguration);\n }\n else // use ticket cache\n {\n krbConfiguration.addUserKerberosOption(\"useTicketCache\", \"true\");\n krbConfiguration.addUserKerberosOption(\"renewTGT\", \"true\");\n login = new LoginContext(\"\", subject, null, krbConfiguration);\n }\n login.login();\n }\n Subject.doAs(subject, new PrivilegedExceptionAction<Void>() {\n\n @Override\n public Void run() throws Exception {\n GSSContext gssContext = null;\n try {\n GSSManager gssManager = GSSManager.getInstance();\n String servicePrincipal = \"HTTP/\" + KerberosAuthenticator.this.url.getHost();\n GSSName serviceName = gssManager.createName(servicePrincipal,\n GSSUtil.NT_GSS_KRB5_PRINCIPAL);\n gssContext = gssManager.createContext(serviceName, GSSUtil.GSS_KRB5_MECH_OID, null,\n GSSContext.DEFAULT_LIFETIME);\n gssContext.requestCredDeleg(true);\n gssContext.requestMutualAuth(true);\n\n byte[] inToken = new byte[0];\n byte[] outToken;\n boolean established = false;\n\n // Loop while the context is still not established\n while (!established) {\n outToken = gssContext.initSecContext(inToken, 0, inToken.length);\n if (outToken != null) {\n sendToken(outToken);\n }\n\n if (!gssContext.isEstablished()) {\n inToken = readToken();\n }\n else {\n established = true;\n }\n }\n }\n finally {\n if (gssContext != null) {\n gssContext.dispose();\n }\n }\n return null;\n }\n });\n }\n catch (PrivilegedActionException ex) {\n throw new AuthenticationException(ex.getException(), AuthenticationException.AuthenticationExceptionCode.PRIVILEGED_ACTION_EXCEPTION);\n }\n catch (LoginException ex) {\n throw new AuthenticationException(ex, AuthenticationException.AuthenticationExceptionCode.LOGIN_EXCEPTION);\n }\n AuthenticatedURL.extractToken(conn, token);\n }", "private void loginClient() throws IOException {\n\t\tString instanceID = UUID.randomUUID().toString();\r\n\t\tString loginName = fromClient.readLine();\r\n\t\t\r\n\t\tif (clientTable.has(loginName)) {\r\n\t\t\tString password = fromClient.readLine();\r\n\t\t\t\r\n\t\t\tif (!clientTable.testPassword(loginName, password)) toClient.println(Commands.INVALID_PASSWORD);\r\n\t\t\telse {\r\n\t\t\t\tReport.behaviour(loginName + \" has connected\");\r\n\t\t\t\t\r\n\t\t\t\t//tells the client the connection was a success\r\n\t\t\t\ttoClient.println(Commands.CONNECTION_SUCCESS);\r\n\t\t\t\t\r\n\t\t\t\t//adds a running queue to the account\r\n\t\t\t\tclientTable.addQueue(loginName, instanceID);\r\n\t\t\t\t\r\n\t\t\t\t//create threads\r\n\t\t\t\tmakeThreads(loginName, instanceID);\r\n\t\t\t}\r\n\t\t} \r\n\t\t\r\n\t\t//send error messages if the login was unsuccessful\r\n\t\telse toClient.println(Commands.USER_NOT_FOUND);\r\n\t}", "private void _login() throws SessionException {\n\n \n String servergroup = (String) this._argTable.get(CMD.SERVERGROUP);\n String filetype = (String) this._argTable.get(CMD.FILETYPE);\n String user = (String) this._argTable.get(CMD.USER);\n String password = (String) this._argTable.get(CMD.PASSWORD);\n this._client = new Client(this._domainFile);\n \n //if (servergroup == null) {\n // servergroup = this._client.getDefaultGroup();\n // if (servergroup != null)\n // this._argTable.put(CMD.SERVERGROUP, servergroup);\n //}\n if (servergroup != null)\n {\n if (!this._client.isGroupDefined(servergroup))\n throw new SessionException(\"Group \" + servergroup\n + \" not found in domain!\", Constants.DOMAINLOOKUPERR); \n }\n \n //if (servergroup != null && !l.contains(servergroup))\n // throw new SessionException(\"Group \" + servergroup\n // + \" not found in domain!\", Constants.DOMAINLOOKUPERR);\n if (filetype != null)\n {\n \t this._client.login(user, password, servergroup, filetype);\n }\n else\n {\n \t this._client.login(user, password);\n \t if (servergroup != null)\n \t this._client.setDefaultGroup(servergroup);\n }\n \n if (this._argTable.get(CMD.SERVERGROUP) == null)\n \t this._argTable.put(CMD.SERVERGROUP, \n \t this._client.getDefaultGroup());\n \n }", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "UserToken login(String username, String password) throws WorkspaceException;", "private String login() throws AxisFault {\n APIManagerConfiguration config = ServiceReferenceHolder.getInstance().\n getAPIManagerConfigurationService().getAPIManagerConfiguration();\n String user = config.getFirstProperty(APIConstants.API_GATEWAY_USERNAME);\n String password = config.getFirstProperty(APIConstants.API_GATEWAY_PASSWORD);\n String url = config.getFirstProperty(APIConstants.API_GATEWAY_SERVER_URL);\n\n if (url == null || user == null || password == null) {\n throw new AxisFault(\"Required API gateway admin configuration unspecified\");\n }\n\n String host;\n try {\n host = new URL(url).getHost();\n } catch (MalformedURLException e) {\n throw new AxisFault(\"API gateway URL is malformed\", e);\n }\n\n AuthenticationAdminStub authAdminStub = new AuthenticationAdminStub(\n ServiceReferenceHolder.getContextService().getClientConfigContext(),\n url + \"AuthenticationAdmin\");\n ServiceClient client = authAdminStub._getServiceClient();\n Options options = client.getOptions();\n options.setManageSession(true);\n try {\n authAdminStub.login(user, password, host);\n ServiceContext serviceContext = authAdminStub.\n _getServiceClient().getLastOperationContext().getServiceContext();\n String sessionCookie = (String) serviceContext.getProperty(HTTPConstants.COOKIE_STRING);\n return sessionCookie;\n } catch (RemoteException e) {\n throw new AxisFault(\"Error while contacting the authentication admin services\", e);\n } catch (LoginAuthenticationExceptionException e) {\n throw new AxisFault(\"Error while authenticating against the API gateway admin\", e);\n }\n }", "@Override\n\tpublic boolean login(Credentials cred) {\n\t\treturn true;\n\t}", "public User doAuthentication(String account, String password);", "private void formAuthenticate(String server) throws Exception{\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tcredsProvider.setCredentials(\n\t\t\t\tnew AuthScope(server, 8081),\n\t\t\t\tnew UsernamePasswordCredentials(\"debug\", \"debuglockss\"));\n\t\tCloseableHttpClient httpclient = HttpClients.custom()\n\t\t\t\t.setDefaultCredentialsProvider(credsProvider)\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tHttpGet httpget = new HttpGet(\"https://\"+ server +\":8081/Home\");\n\n\t\t\tLOGGER.info(\"Executing request \" + httpget.getRequestLine());\n\t\t\tCloseableHttpResponse response = httpclient.execute(httpget);\n\t\t\ttry {\n\t\t\t\tLOGGER.info(\"----------------------------------------\");\n\t\t\t\tLOGGER.info(response.getStatusLine().toString());\n\t\t\t\tLOGGER.info(EntityUtils.toString(response.getEntity()));\n\t\t\t} finally {\n\t\t\t\tresponse.close();\n\t\t\t}\n\t\t} finally {\n\t\t\thttpclient.close();\n\t\t}\n\t}", "SqlVirtualMachineManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "public LoginResult login() {\n\t\tif (!auth.isLoggedIn())\n\t\t\treturn LoginResult.MAIN_LOGOUT;\n\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_INDEX);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tArrayList<Cookie> tmpCookies = Cookie.getCookies(conn);\n\t\t\taws = Cookie.getCookie(tmpCookies, \"AWSELB\");\n\t\t\tphp = Cookie.getCookie(tmpCookies, \"PHPSESSID\");\n\t\t\t\n\t\t\tconn = Utility.getGetConn(FUND_LOGIN);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tString location = Utility.getLocation(conn);\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t// TODO: future speed optimization\n\t\t\t//if (auth.getPHPCookie() == null) {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie()));\n\t\t\t\tCookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), \"PHPSESSID\");\n\t\t\t\t// saves time for Blackboard and retrieveProfileImage().\n\t\t\t\tauth.setPHPCookie(phpCookie);\n\t\t\t\t\n\t\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\t\n\t\t\t\tlocation = Utility.getLocation(conn);\n\t\t\t\tif (location.startsWith(\"signin.aspx\"))\n\t\t\t\t\tlocation = \"https://eraider.ttu.edu/\" + location;\n\t\t\t\tconn = Utility.getGetConn(location);\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\t// might need to set ESI and ELC here. If other areas are bugged, this is why.\n\t\t\t/*} else {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie()));\n\t\t\t\t/// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!!\n\t\t\t\tthrow new NullPointerException(\"Needs implementation!\");\n\t\t\t}*/\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/login.php?ticket=ST-...\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/funds_home.php\n\t\t\tlocation = Utility.getLocation(conn);\n\t\t\tif (location.startsWith(\"index.\")) {\n\t\t\t\tlocation = \"https://get.cbord.com/raidercard/full/\" + location;\n\t\t\t}\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tUtility.readByte(conn);\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundlogin\", ErrorType.Fatal);\n\t\t\treturn LoginResult.OTHER;\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundlogingeneral\", ErrorType.APIChange);\n\t\t\treturn LoginResult.OTHER;\n\t\t}\n\n\t\tloggedIn = true;\n\n\t\treturn LoginResult.SUCCESS;\n\t}", "void login(String user, String password);", "protected void doLogin(Authentication authentication) throws AuthenticationException {\n \n }", "@Override\n public void clientAuthenticate()\n throws HubIntegrationException {\n try {\n final ArrayList<String> segments = new ArrayList<>();\n segments.add(\"j_spring_security_check\");\n final HttpUrl httpUrl = createHttpUrl(segments, null);\n\n final Map<String, String> content = new HashMap<>();\n final String username = hubServerConfig.getGlobalCredentials().getUsername();\n String password = hubServerConfig.getGlobalCredentials().getEncryptedPassword();\n if (StringUtils.isNotBlank(username) && StringUtils.isNotBlank(password)) {\n try {\n password = hubServerConfig.getGlobalCredentials().getDecryptedPassword();\n\n content.put(\"j_username\", username);\n content.put(\"j_password\", password);\n final Request request = createPostRequest(httpUrl, createEncodedRequestBody(content));\n Response response = null;\n try {\n logRequestHeaders(request);\n response = getClient().newCall(request).execute();\n logResponseHeaders(response);\n if (!response.isSuccessful()) {\n throw new HubIntegrationException(response.message());\n }\n } finally {\n if (response != null) {\n response.close();\n }\n }\n } catch (IllegalArgumentException | EncryptionException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }\n } catch (final IOException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }", "private LoginContext kinit(String principal) throws LoginException {\n LoginContext lc = new LoginContext(this.getClass().getSimpleName(), new CallbackHandler() {\n public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {\n for (Callback c : callbacks) {\n //if(c instanceof )\n if (c instanceof NameCallback)\n ((NameCallback) c).setName(principal);\n if (c instanceof PasswordCallback)\n ((PasswordCallback) c).setPassword(\"\".toCharArray()); // empty password -- use keytab ?\n }\n }\n });\n lc.login();\n return lc;\n }", "private void login() {\n if (blobStore != null) {\n return;\n }\n if (swiftUsername == null || swiftPassword == null || swiftAuthUrl == null || swiftContainer == null) {\n logger.error(\"Blob storage account is not configured\");\n throw new IllegalArgumentException(\"ERROR: Blob storage account is not configured\");\n }\n blobStore = ContextBuilder.newBuilder(blobApi)\n .endpoint(swiftAuthUrl)\n .credentials(swiftUsername, swiftPassword)\n .buildView(BlobStoreContext.class)\n .getBlobStore();\n\n if (!blobStore.containerExists(swiftContainer)) {\n// CreateContainerOptions options = CreateContainerOptions.Builder\n// .withMetadata(ImmutableMap.of(\"description\", \"E-PRTR data\"));\n// blobStore.createContainerInLocation(null, swiftContainer, options);\n Location location = getRegion();\n blobStore.createContainerInLocation(location, swiftContainer);\n }\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "public void login() throws IOException {\n\t\tApp.setRoot(\"LogIn\");\n\t}", "public static void main(String[] args) \n throws IOException, GSSException {\n Oid krb5Oid = new Oid( \"1.2.840.113554.1.2.2\");\n \n // 1.2 Set Kerberos Properties\n System.setProperty( \"sun.security.krb5.debug\", \"true\");\n System.setProperty( \"java.security.auth.login.config\", \"./jaas.conf\");\n System.setProperty( \"javax.security.auth.useSubjectCredsOnly\", \"true\");\n \n // 2. Login to the KDC.\n LoginContext loginCtx = null;\n // \"KerberizedServer\" refers to a section of the JAAS configuration in the jaas.conf file.\n Subject subject = null;\n try {\n loginCtx = new LoginContext( \"KerberizedServer\");\n loginCtx.login();\n subject = loginCtx.getSubject();\n }\n catch (LoginException e) {\n System.err.println(\"Login failure : \" + e);\n System.exit(-1);\n }\n // Obtain the command-line arguments and parse the port number\n \n if (args.length != 1) {\n System.err.println(\"Usage: java <options> KerberizedServer <localPort>\");\n System.exit(-1);\n }\n \n // 3. Main Loop: handle connections from network clients.\n // 3.1. Startup service network connection.\n int localPort = Integer.parseInt(args[0]);\n\n // <1. NIO>\n Selector selector = SelectorProvider.provider().openSelector();\n \n // Create a new non-blocking server socket channel\n ServerSocketChannel serverChannel = ServerSocketChannel.open();\n serverChannel.configureBlocking(false);\n \n // Bind the server socket to the specified address and port\n InetSocketAddress isa = new InetSocketAddress(\"localhost\",localPort);\n serverChannel.socket().bind(isa);\n \n // Register the server socket channel, indicating an interest in \n // accepting new connections\n serverChannel.register(selector, SelectionKey.OP_ACCEPT);\n // </1. NIO>\n\n GSSContext clientContext = null;\n\n // selection key => context map.\n final HashMap<SelectionKey,GSSContext> clientToContext = new HashMap<SelectionKey,GSSContext>();\n\n System.out.println(\"start main listen loop..\");\n while(true) {\n\n selector.select();\n Iterator selectedKeys = selector.selectedKeys().iterator();\n while (selectedKeys.hasNext()) {\n final SelectionKey sk = (SelectionKey) selectedKeys.next();\n selectedKeys.remove();\n\n if (!sk.isValid()) {\n System.out.println(\"key is not valid; continuing.\");\n continue;\n }\n \n // Check what event is available and deal with it\n if (sk.isAcceptable()) {\n System.out.println(\"accepting connection from client.\");\n\n // For an accept to be pending the channel must be a server socket channel.\n ServerSocketChannel serverSocketChannel = (ServerSocketChannel) sk.channel();\n \n // Accept the connection and make it non-blocking\n SocketChannel socketChannel = serverSocketChannel.accept();\n socketChannel.configureBlocking(false);\n \n // Register the new SocketChannel with our Selector, indicating\n // we'd like to be notified when there's data waiting to be read\n socketChannel.register(selector, SelectionKey.OP_READ | SelectionKey.OP_WRITE);\n } else if (sk.isReadable()) {\n System.out.println(\"reading context from channel.\");\n final SocketChannel socketChannel = (SocketChannel) sk.channel();\n \n clientContext =\n Subject.doAs( subject, new PrivilegedAction<GSSContext>() {\n public GSSContext run() {\n try {\n GSSManager manager = GSSManager.getInstance();\n GSSContext context = manager.createContext( (GSSCredential) null);\n while (!context.isEstablished()) {\n System.out.println(\"KerberizedServer: context not yet established: accepting from client.\");\n \n ByteBuffer readBuffer = ByteBuffer.allocate(8192);\n readBuffer.clear();\n \n // Attempt to read off the channel\n int numRead = 0;\n try {\n numRead = socketChannel.read(readBuffer);\n if (numRead != -1) {\n readBuffer.flip();\n System.out.println(\"read: \" + numRead + \" bytes.\");\n byte[] bytes = new byte[8192];\n readBuffer.get(bytes,0,numRead);\n Hexdump.hexdump(System.out,bytes,0,numRead);\n context.acceptSecContext(bytes,0,numRead);\n }\n } catch (IOException e) {\n System.err.println(\"IOEXCEPTION: GIVING UP ON THIS CLIENT.\");\n // The remote forcibly closed the connection, cancel\n // the selection key and close the channel.\n clientToContext.remove(sk);\n sk.cancel();\n try {\n sk.channel().close();\n }\n catch (IOException ioe) {\n System.err.println(\"IoException trying to close socket.\");\n ioe.printStackTrace();\n }\n return null;\n }\n \n if (numRead == -1) {\n // Remote entity shut the socket down cleanly. Do the\n // same from our end and cancel the channel.\n System.out.println(\"removing key from clientToContext.\");\n clientToContext.remove(sk);\n try {\n sk.channel().close();\n }\n catch (IOException ioe) {\n System.err.println(\"IoException trying to close socket.\");\n ioe.printStackTrace();\n } \n sk.cancel();\n return null;\n }\n }\n System.out.println(\"returning context now.\");\n return context;\n }\n catch (GSSException e) {\n System.err.println(\"GSS EXCEPTION: GIVING UP ON THIS CLIENT.\");\n e.printStackTrace();\n clientToContext.remove(sk);\n try {\n sk.channel().close();\n }\n catch (IOException ioe) {\n System.err.println(\"IoException trying to close socket.\");\n ioe.printStackTrace();\n }\n sk.cancel();\n return null;\n }\n }\n }\n );\n System.out.println(\"done with client context-acceptance.\");\n if (clientContext != null) {\n clientToContext.put(sk,clientContext);\n System.out.println(\"KerberizedServer: Client authenticated: (principal: \" + clientContext.getSrcName() + \")\");\n // ..conduct business with client since it's authenticated and optionally encrypted too..\n \n \n }\n \n // dump current client->context mapping to console.\n System.out.println(\"===<current clients>===\");\n for (SelectionKey each : clientToContext.keySet()) {\n GSSContext eachContext = null;\n if ((eachContext = clientToContext.get(each)) != null) {\n System.out.println(\"client principal: \" + eachContext.getSrcName());\n }\n }\n System.out.println(\"===</current clients>===\");\n } else if (sk.isWritable()) {\n // .. write to client ..\n }\n }\n }\n\n }", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "Map<String, String> interactiveLogin(CloudContext cloudContext, ExtendedCloudCredential extendedCloudCredential,\n CredentialNotifier credentialNotifier);", "public Login() {\n initComponents();\n KiemTraKN();\n }", "Document login(String username, String password);", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "Credentials getKrb5Credentials() {\n/* 325 */ return this.krb5Credentials;\n/* */ }", "public void run(HookContext context) throws Exception {\n\t\t\n\t\tHiveConf conf = context.getConf();\n\t\tString userName = context.getUgi().getShortUserName();\n\t\tString property = conf.get(\"test.hook.conf\");\n\t\tcontext.getUgi();\n\t\tSystem.out.println(\"Sysout Log : \"+property+\" user \"+userName+\" isLoginKeytabBased() \"+UserGroupInformation.isLoginKeytabBased());\n\t PrintStream stream = SessionState.getConsole().getOutStream();\n\t stream.println(\"Console Log : \"+property+\" user \"+userName);\n\t \n\t // additions\n\t //conf.get(arg0)\n\t \n\t Properties krbProperties = new Properties();\n\t krbProperties.setProperty(\"ddl.hook.KafkaClient.option.keyTab\",\"/etc/security/keytabs/hive.service.keytab\");\n\t krbProperties.setProperty(\"ddl.hook.KafkaClient.option.principal\",\"hive/\"+InetAddress.getLocalHost().getCanonicalHostName()+\"@\"+conf.get(\"ddl.hook.krb.realm\"));\n\t krbProperties.setProperty(\"ddl.hook.ticketBased-KafkaClient.loginModuleControlFlag\",\"required\");\n\t krbProperties.setProperty(\"ddl.hook.ticketBased-KafkaClient.loginModuleName\",\"com.sun.security.auth.module.Krb5LoginModule\");\n\t krbProperties.setProperty(\"ddl.hook.ticketBased-KafkaClient.option.useTicketCache\",\"true\");\n\t InMemoryJAASConfiguration.init(krbProperties);\n\t \n\t /*\n\t * KafkaClient.option.keyTab=/etc/security/keytabs/hive.service.keytab\natlas.jaas.KafkaClient.option.principal=hive/[email protected]\natlas.jaas.ticketBased-KafkaClient.loginModuleControlFlag=required\natlas.jaas.ticketBased-KafkaClient.loginModuleName=com.sun.security.auth.module.Krb5LoginModule\natlas.jaas.ticketBased-KafkaClient.option.useTicketCache=true\n\t * \n\t * */\n\t\t\n\t}", "private void login(String username,String password){\n\n }", "public void cl_login(String uname, String pwd)\n\t{\n\t\tEnter(txt_uname, uname);\n\t\tEnter(txt_pwd, pwd);\n\t\tClick(btn_login);\n\t\t\n\t}", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "public LoginResponse login(LoginRequest request, String urlPath) throws IOException, TweeterRemoteException {\n LoginResponse response = clientCommunicator.doPost(urlPath, request, null, LoginResponse.class);\n if(response.isSuccess()) {\n return response;\n } else {\n throw new RuntimeException(response.getMessage());\n }\n }", "public boolean login() { \r\n byte keytype = (byte)ACR120U.AC_MIFARE_LOGIN_KEYTYPE_A;\r\n byte[] key = new byte[6];\r\n for(int i=0;i<6;i++) \r\n key[i] = (byte)0xff;\r\n int result;\r\n result = cardReader.login(handle,sector,keytype,(byte)00,key);\r\n if (result < 0){ \r\n message = \"No Card\";\r\n return false;\r\n }\r\n return true;\r\n }", "RequestResult loginRequest() throws Exception;", "private Object authenticate(Invocation invocation, HttpServletRequest request,\r\n HttpServletResponse response) throws IOException {\r\n\r\n Object[] args = invocation.getArgs();\r\n if (args.length != 2) {\r\n throw new RuntimeException(\"The authenticate call must have two arguments\");\r\n }\r\n\r\n String user = (String) args[0];\r\n String password = (String) args[1];\r\n\r\n //We can make the remote call\r\n Object result = invoke(invocation);\r\n\r\n //If the authentification failed we finish the execution\r\n if (result instanceof LoginContext) {\r\n LoginContext loginContext = (LoginContext) result;\r\n if (loginContext == null) {\r\n throw new RuntimeException(\"Login failed!!\");\r\n }\r\n \r\n HttpSession session = request.getSession(false);\r\n String sessionId = session.getId();\r\n response.addHeader(\"jsessionid\", sessionId);\r\n\r\n \r\n session.setAttribute(User.USER_KEY, loginContext.getUser());\r\n\r\n session.setAttribute(RhSessionContext.CLIENT_ID, loginContext.getClient_id());\r\n session.setAttribute(RhSessionContext.ORG_ID, loginContext.getOrg_id());\r\n session.setAttribute(RhSessionContext.DUTY_ID, loginContext.getDutyId());\r\n\r\n Map attrs = loginContext.getAttributes();\r\n Set<Map.Entry> entries = attrs.entrySet();\r\n for (Map.Entry entry : entries) {\r\n session.setAttribute((String) entry.getKey(), entry.getValue());\r\n }\r\n\r\n // 创建login session\r\n LoginSession loginSession = new LoginSession();\r\n loginSession.setLoginName(loginContext.getUser().getUsername());\r\n loginSession.setIp(request.getRemoteHost());\r\n loginSession.setLoginDate(new Date(session.getCreationTime()));\r\n loginSession.setSessionId(session.getId());\r\n loginSession.setLiving(true);\r\n\r\n //Session hibernateSession = RhinoCtx.instance().getHibernate().getSession();\r\n try {\r\n \r\n ServiceBase serviceBase = (ServiceBase) ServiceFactory.getService(ServiceBase.NAME);\r\n //ServiceBase serviceBase = (ServiceBase) RhinoCtx.getBean(\"serviceBase\");\r\n //hibernateSession.beginTransaction();\r\n serviceBase.save(loginSession);\r\n //hibernateSession.getTransaction().commit();\r\n session.setAttribute(\"loginSession\", loginSession);\r\n\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n //hibernateSession.getTransaction().rollback();\r\n } finally {\r\n //hibernateSession.close();\r\n }\r\n }\r\n return result;\r\n }", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "public LoginResponse login(LoginRequest request) throws IOException {\n ClientCommunicator loginCommunicator = new ClientCommunicator(new LoginStrategy());\n\n return (LoginResponse) loginCommunicator.doWebRequest(request, null);\n }", "public AdbLoginResponse loginScoinFromAdb(AdbLoginScoinRequest adbLoginScoinRequest);", "protected void login(String username, String password) throws Exception {\n final SecurityClient securityClient = SecurityClientFactory.getSecurityClient();\n securityClient.setSimple(username, password);\n securityClient.login();\n }", "@Override\n\tpublic void sendLogin() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\tString result = \"\";\n\t\t\tif (this.servType.equals(SERVICE_TYPE_SOAP)){\n\t\t\t\tresult = server.login();\n\t\t\t} else {\n\t\t\t\tWebResource loginService = service.path(URI_LOGIN);\n\t\t\t\tresult = loginService.accept(MediaType.TEXT_PLAIN).get(String.class);\n\t\t\t}\n\t\t\t//get the clientId\n\t\t\tclientId = Integer.parseInt(result);\n\t\t\t//set the status\n\t\t\tgui.setStatus(\"Successfully logged in! Obtained client ID: \"+clientId+\" from server!\");\n\t\t\t//immediately send the request for the list of items\n\t\t\tsendItemListRequest();\n\t\t} catch (ClientHandlerException ex){\n\t\t\t//exceptions for REST service\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The RESTFul server is not responding!! Closing application...\");\n\t\t\tSystem.exit(0);\n\t\t} catch (WebServiceException ex){\n\t\t\t//exceptions for SOAP-RPC service\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The SOAP-RPC server is not responding!! Closing application...\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "int authenticateUser(IDAOSession session, String userName, String password);", "public void login(String uname, String pwd) {\n username.type(uname);\n password.type(pwd);\n loginButton.click();\n }", "@Test\n @Ignore // need to setup KDC\n public void authRequestByKrb5() throws Exception {\n String testName = getTestName();\n \n String externalPassword = \"test456\";\n String extAcctLocalPart = testName;\n String extAcctName = createExternalAcctEntry(extAcctLocalPart, externalPassword, null);\n \n String krb5Realm = \"MYREALM\";\n \n Map<String, Object> zmailDomainAttrs = commonZmailDomainAttrs();\n // setup auto prov\n StringUtil.addToMultiMap(zmailDomainAttrs, Provisioning.A_zmailAutoProvAuthMech, AutoProvAuthMech.KRB5.name());\n zmailDomainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchBase, extDomainDn);\n zmailDomainAttrs.put(Provisioning.A_zmailAutoProvLdapSearchFilter, \"(uid=%u)\");\n // setup auth mech and krb5 realm on domain\n zmailDomainAttrs.put(Provisioning.A_zmailAuthMech, AuthMech.kerberos5.name());\n zmailDomainAttrs.put(Provisioning.A_zmailAuthKerberos5Realm, krb5Realm);\n zmailDomainAttrs.put(Provisioning.A_zmailAuthKerberos5Realm, krb5Realm);\n Domain zmailDomain = createZmailDomain(testName, zmailDomainAttrs);\n \n String loginName = extAcctLocalPart + \"@\" + krb5Realm;\n \n // make the soap request\n SoapHttpTransport transport = new SoapHttpTransport(TestUtil.getSoapUrl());\n \n Element request = Element.create(transport.getRequestProtocol(), AccountConstants.AUTH_REQUEST);\n request.addElement(AccountConstants.E_ACCOUNT).addAttribute(AccountConstants.A_BY, AccountBy.krb5Principal.name()).setText(loginName);\n request.addElement(AccountConstants.E_PASSWORD).setText(externalPassword);\n \n Element response = transport.invoke(request);\n \n String encodedAuthToken = response.getElement(AccountConstants.E_AUTH_TOKEN).getText();\n assertNotNull(encodedAuthToken);\n String acctId = getAuthTokenAcctId(encodedAuthToken);\n Account acct = prov.get(AccountBy.id, acctId);\n verifyAcctAutoProvisioned(acct, loginName.toLowerCase());\n }", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }", "boolean authenticate(String userName, String password);", "@Override\n\tpublic ResultMessage login(String user_name, String password) throws RemoteException{\n\t\treturn null;\n\t}", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "@Override\n public void open() throws TTransportException {\n if (ugi == null) {\n baseOpen();\n } else {\n try {\n if (ugi.isFromKeytab()) {\n ugi.checkTGTAndReloginFromKeytab();\n }\n ugi.doAs(new PrivilegedExceptionAction<Void>() {\n public Void run() throws TTransportException {\n baseOpen();\n return null;\n }\n });\n } catch (IOException e) {\n throw new TTransportException(\"Failed to open SASL transport: \" + e.getMessage(), e);\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n throw new TTransportException(\n \"Interrupted while opening underlying transport: \" + e.getMessage(), e);\n }\n }\n }", "private void authenticate(String user, String pass) {\n }", "private void logIn() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n\n String user = a[0];\n String password = a[1];\n boolean rez = service.checkPassword(user, password);\n if(rez == TRUE)\n System.out.println(\"Ok\");\n else\n System.out.println(\"Not ok\");\n }", "public Login() {\r\n\t\tinitialize();\r\n\t}", "@Override \n public void commandLogin(String userName, String password)\n {\n }", "public void authenticate(LoginRequest loginRequest) {\n\n }", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "public void login(View v) {\n if (validateLogin()) {\n attemptLogin();\n }\n }", "private boolean _credInit() throws FileNotFoundException, IOException \n {\n\n String user = (String) this._argTable.get(CMD.USER);\n String svgp = (String) this._argTable.get(CMD.SERVERGROUP);\n String password = null;\n\n //get the server group first\n if (svgp == null) \n {\n while (svgp == null)\n {\n //if servergroup is null, query.If empty, set to null (which is default) \n System.out.print(\"Server group>> \");\n svgp = this._readTTYLine();\n //System.out.println(\"\");\n svgp = svgp.trim();\n if (svgp.equals(\"\"))\n svgp = null;\n \n if (svgp == null)\n {\n System.out.println(\"Server group must be specified. Enter 'abort' to quit.\");\n }\n else if (svgp.equalsIgnoreCase(\"abort\") || svgp.equalsIgnoreCase(\"exit\") ||\n svgp.equalsIgnoreCase(\"quit\") || svgp.equalsIgnoreCase(\"bye\")) \n {\n System.exit(0);\n }\n }\n }\n else\n {\n System.out.println(\"Server group>> \"+svgp); \n }\n \n //---------------------------\n\n //request the authentication method from the servergroup\n AuthenticationType authType = null;\n try {\n authType = getAuthenticationType(svgp);\n } catch (SessionException sesEx) {\n \n if (sesEx.getErrno() == Constants.CONN_FAILED)\n {\n this._logger.error(\"Unable to connect to server group '\" +\n svgp+\"'.\\nPlease check network status and \"+\n \"FEI domain file configuration.\");\n \n// this._logger.severe(\"Unable to authenticate for group '\"+svgp+\n// \"' due to connection failure. Possible network issue.\");\n }\n else\n {\n this._logger.severe(\"Authentication Error! Unable to query server \"+\n \"authentication method for servergroup '\"+svgp + \"'. (\"+\n sesEx.getErrno()+\")\");\n }\n _logger.trace(null,sesEx);\n return false;\n }\n \n final String pwdPrompt = PasswordUtil.getPrompt(authType);\n\n //---------------------------\n \n if (user == null) \n {\n System.out.print(\"User name>> \");\n user = this._readTTYLine();\n user = user.trim();\n } \n else\n {\n System.out.print(\"User name>> \"+user);\n }\n \n boolean ok = false; \n while (!ok)\n { \n password = ConsolePassword.getPassword(pwdPrompt+\">> \");\n //System.out.println(\"\");\n password = password.trim();\n if (!password.equals(\"\"))\n ok = true; \n }\n \n //System.out.println(\"\");\n //password = password.trim();\n \n if (password.equalsIgnoreCase(\"abort\") || password.equalsIgnoreCase(\"exit\") ||\n password.equalsIgnoreCase(\"quit\") || password.equalsIgnoreCase(\"bye\")) \n {\n System.exit(0);\n }\n \n \n //create the encrypter for passwords\n String encrypted = null;\n try {\n encrypted = this._encrypter.encrypt(password);\n } catch (Exception ex) {\n this._logger.severe(\"Password encrypt Error! Could not write login credentials.\");\n _logger.trace(null,ex);\n return false;\n }\n \n\n \n UserToken userToken = null;\n String authToken = encrypted;\n try {\n userToken = getAuthenticationToken(svgp, user, encrypted);\n } catch (SessionException sesEx) {\n this._logger.severe(\"Authentication Error! Could not authenticate \"+\n \"user '\"+user+\"' for servergroup '\"+svgp + \"'.\"); \n _logger.trace(null,sesEx);\n return false;\n }\n \n \n //user was not authenticated\n if (userToken == null || !userToken.isValid())\n {\n this._logger.severe(\"Authentication Error: Could not authenticate \"+\n \"user '\"+user+\"' for servergroup '\"+svgp + \"'.\"); \n return false;\n }\n \n this._loginReader.setUsername(svgp, user);\n this._loginReader.setPassword(svgp, userToken.getToken());\n this._loginReader.setExpiry( svgp, userToken.getExpiry());\n \n \n boolean success = true;\n try {\n this._loginReader.commit();\n } catch (IOException ioEx) {\n this._logger.severe(\"Login File Error! Could not write login credentials.\");\n _logger.trace(null, ioEx);\n success = false;\n ++this._errorCount;\n }\n return success;\n \n }", "public ControleurVueLogin() {\n\n\t}", "private void loginHandler(RoutingContext context) {\n JsonObject creds = new JsonObject()\n .put(\"username\", context.getBodyAsJson().getString(\"username\"))\n .put(\"password\", context.getBodyAsJson().getString(\"password\"));\n\n // TODO : Authentication\n context.response().setStatusCode(500).end();\n }", "public void signIn()\r\n {\r\n FoodCenterRequestFactory factory = AndroidRequestUtils.getFoodCenterRF(context);\r\n ClientServiceRequest service = factory.getClientService();\r\n\r\n service.login(regId).fire(this);\r\n }", "public void StartLogIn(){\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-02-25 10:38:11.378 -0500\", hash_original_method = \"73F3340DC9AFFDCAEE47EFC3606433FD\", hash_generated_method = \"EE604B285EECDD6018DC5ABFCB02AF33\")\n \npublic void rlogin(String localUsername, String remoteUsername,\n String terminalType)\n throws IOException\n {\n rexec(localUsername, remoteUsername, terminalType, false);\n }", "public void loginAsTom() {\n textFieldUsername.withTimeoutOf(2000, MILLIS).type(\"tomsmith\");\n textFieldPassword.type(\"SuperSecretPassword!\");\n buttonLogin.click();\n }", "private synchronized void doConnect() {\n try {\n String host = agent.getHost();\n int port = agent.getPort();\n log.fine(\"Connecting to server \" + host + ':' + port);\n socket = new Socket(host, port);\n input = socket.getInputStream();\n output = new OutputStreamWriter(socket.getOutputStream());\n disconnected = false;\n new Thread(this).start();\n\n // Automatically login! -> give an auth to the agent...\n TACMessage msg = new TACMessage(\"auth\");\n msg.setParameter(\"userName\", agent.getUser());\n msg.setParameter(\"userPW\", agent.getPassword());\n msg.setMessageReceiver(agent);\n sendMessage(msg);\n\n } catch (Exception e) {\n disconnected = true;\n log.log(Level.SEVERE, \"connection to server failed:\", e);\n socket = null;\n }\n }", "public void login(String username, String password)\n \t\t\tthrows IllegalStateException, IOException, JHGDException {\n \t\tif (!connected) {\n \t\t\tthrow new IllegalStateException(\"Client not connected\");\n \t\t}\n \t\t// Set SSL if necessary\n \n \t\t// Reset the authentication flag.\n \t\tauthenticated = false;\n \n \t\t// Check received parameters\n \t\tif (username == null || username.isEmpty()) {\n \t\t\tthrow new JHGDException(\"Null or empty username\");\n \t\t}\n \t\tif (password == null) {\n \t\t\tthrow new JHGDException(\"Null password\");\n \t\t}\n \n \t\t// send the command: \"user|%s|%s\"\n \t\tsendLineCommand(\"user|\" + username + \"|\" + password);\n \n \t\tString returnMessage = (String) input.readLine();\n \t\t// check server response\n \t\tif (checkServerResponse(returnMessage) == HGDConsts.SUCCESS) {\n \t\t\t// set the flags\n \t\t\tthis.authenticated = true;\n \t\t\tthis.username = username;\n \t\t\tthis.password = password;\n \t\t} else {\n \t\t\tthrow new JHGDException(returnMessage.substring(returnMessage\n \t\t\t\t\t.indexOf('|') + 1));\n \t\t}\n \n \t}", "public abstract void login(\r\n com.google.protobuf.RpcController controller,\r\n PbDemoProto.Login_C2S request,\r\n com.google.protobuf.RpcCallback<PbDemoProto.Login_S2C> done);", "java.lang.String getCred();", "public AuthResponse loginAccount(Account acc){\n Call<AuthResponse> call = endpoints.loginAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "public void authenticateUser()\r\n\t{\r\n\t\tsc.nextLine(); \r\n\t\tint index=loginattempt();\r\n\t}", "void initiateLogin() {\n\t\tString username = this.mAuthUsername.getText().toString();\n\t\tString password = this.mAuthPassword.getText().toString();\n\t\t\n\t\tfetch();\n\t\tthis.mAuthTask = new AuthenticationTask(this, this, username, password);\n\t\tthis.mAuthTask.execute();\n\t}", "public Pair<UUID, Boolean> login(String username,\n String password) {\n return tradingSystemFacade.login(username, password);\n }", "@Override\n\tpublic boolean managerLogin(Context ctx) {\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\tboolean result = authService.managerLogIn(username, password);\n\t\treturn result;\n\t}" ]
[ "0.62391126", "0.5903808", "0.582325", "0.5776788", "0.57286775", "0.55966115", "0.55799186", "0.55051106", "0.5489457", "0.54891956", "0.5486492", "0.5432225", "0.5423138", "0.54060256", "0.53711444", "0.5360851", "0.5341339", "0.5327908", "0.5319925", "0.5318342", "0.5318342", "0.5301097", "0.52913374", "0.5281921", "0.52734196", "0.52606016", "0.52535427", "0.52498865", "0.52457577", "0.5240816", "0.522694", "0.52210295", "0.52170634", "0.5204666", "0.5190638", "0.51840025", "0.51749015", "0.51746005", "0.5165818", "0.51606464", "0.51556975", "0.5145033", "0.5142029", "0.5127068", "0.51246315", "0.5123299", "0.51196414", "0.50829", "0.5065501", "0.5061179", "0.5060302", "0.5041872", "0.5038534", "0.5015176", "0.5011359", "0.50072587", "0.49959368", "0.4995134", "0.49942675", "0.49911118", "0.49765325", "0.4966", "0.496309", "0.4961492", "0.49413806", "0.49404973", "0.4939238", "0.49332258", "0.4930143", "0.4923509", "0.4920219", "0.4919204", "0.4913972", "0.4912208", "0.49095145", "0.49066544", "0.49038133", "0.4902877", "0.49026722", "0.4900298", "0.48911437", "0.4884472", "0.48836127", "0.4882881", "0.48825356", "0.487858", "0.48784384", "0.4863179", "0.48592228", "0.48530975", "0.4852818", "0.48525217", "0.48473546", "0.4845254", "0.4832856", "0.48327643", "0.48324266", "0.48243576", "0.48107636", "0.48072553" ]
0.5683098
5
Login to vault using the OCI method
public Optional<AuthLoginOci> authLoginOci() { return Codegen.objectProp("authLoginOci", AuthLoginOci.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void login(String cuid, String pass)\n throws RemoteException;", "public com.sun.jna.PointerType login(Credentials c) throws RelationException;", "String login(String userName, String password) throws RemoteException, InterruptedException;", "public abstract void login(String userName, String password) throws RemoteException;", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "public int login(String username, String password) \n {\n\treturn this.acctCtrl.login(username, password);\n\n }", "public AdbLoginResponse loginScoinFromAdb(AdbLoginScoinRequest adbLoginScoinRequest);", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "private void login() {\n if (blobStore != null) {\n return;\n }\n if (swiftUsername == null || swiftPassword == null || swiftAuthUrl == null || swiftContainer == null) {\n logger.error(\"Blob storage account is not configured\");\n throw new IllegalArgumentException(\"ERROR: Blob storage account is not configured\");\n }\n blobStore = ContextBuilder.newBuilder(blobApi)\n .endpoint(swiftAuthUrl)\n .credentials(swiftUsername, swiftPassword)\n .buildView(BlobStoreContext.class)\n .getBlobStore();\n\n if (!blobStore.containerExists(swiftContainer)) {\n// CreateContainerOptions options = CreateContainerOptions.Builder\n// .withMetadata(ImmutableMap.of(\"description\", \"E-PRTR data\"));\n// blobStore.createContainerInLocation(null, swiftContainer, options);\n Location location = getRegion();\n blobStore.createContainerInLocation(location, swiftContainer);\n }\n }", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-02-25 10:38:11.378 -0500\", hash_original_method = \"73F3340DC9AFFDCAEE47EFC3606433FD\", hash_generated_method = \"EE604B285EECDD6018DC5ABFCB02AF33\")\n \npublic void rlogin(String localUsername, String remoteUsername,\n String terminalType)\n throws IOException\n {\n rexec(localUsername, remoteUsername, terminalType, false);\n }", "SqlVirtualMachineManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "private Object authenticate(Invocation invocation, HttpServletRequest request,\r\n HttpServletResponse response) throws IOException {\r\n\r\n Object[] args = invocation.getArgs();\r\n if (args.length != 2) {\r\n throw new RuntimeException(\"The authenticate call must have two arguments\");\r\n }\r\n\r\n String user = (String) args[0];\r\n String password = (String) args[1];\r\n\r\n //We can make the remote call\r\n Object result = invoke(invocation);\r\n\r\n //If the authentification failed we finish the execution\r\n if (result instanceof LoginContext) {\r\n LoginContext loginContext = (LoginContext) result;\r\n if (loginContext == null) {\r\n throw new RuntimeException(\"Login failed!!\");\r\n }\r\n \r\n HttpSession session = request.getSession(false);\r\n String sessionId = session.getId();\r\n response.addHeader(\"jsessionid\", sessionId);\r\n\r\n \r\n session.setAttribute(User.USER_KEY, loginContext.getUser());\r\n\r\n session.setAttribute(RhSessionContext.CLIENT_ID, loginContext.getClient_id());\r\n session.setAttribute(RhSessionContext.ORG_ID, loginContext.getOrg_id());\r\n session.setAttribute(RhSessionContext.DUTY_ID, loginContext.getDutyId());\r\n\r\n Map attrs = loginContext.getAttributes();\r\n Set<Map.Entry> entries = attrs.entrySet();\r\n for (Map.Entry entry : entries) {\r\n session.setAttribute((String) entry.getKey(), entry.getValue());\r\n }\r\n\r\n // 创建login session\r\n LoginSession loginSession = new LoginSession();\r\n loginSession.setLoginName(loginContext.getUser().getUsername());\r\n loginSession.setIp(request.getRemoteHost());\r\n loginSession.setLoginDate(new Date(session.getCreationTime()));\r\n loginSession.setSessionId(session.getId());\r\n loginSession.setLiving(true);\r\n\r\n //Session hibernateSession = RhinoCtx.instance().getHibernate().getSession();\r\n try {\r\n \r\n ServiceBase serviceBase = (ServiceBase) ServiceFactory.getService(ServiceBase.NAME);\r\n //ServiceBase serviceBase = (ServiceBase) RhinoCtx.getBean(\"serviceBase\");\r\n //hibernateSession.beginTransaction();\r\n serviceBase.save(loginSession);\r\n //hibernateSession.getTransaction().commit();\r\n session.setAttribute(\"loginSession\", loginSession);\r\n\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n //hibernateSession.getTransaction().rollback();\r\n } finally {\r\n //hibernateSession.close();\r\n }\r\n }\r\n return result;\r\n }", "public LoginOra() {\n super(\"Oracle Login\");\n\n }", "int authenticateUser(IDAOSession session, String userName, String password);", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "LoginContext login(String username, String password) throws LoginException;", "void login(String user, String password);", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "protected void login() {\n\t\t\r\n\t}", "private void login(String username,String password){\n\n }", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse login(\n com.outlook.octavio.armenta.ws.SOAPServiceStub.Login login2)\n throws java.rmi.RemoteException {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n try {\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions()\n .setAction(\"http://tempuri.org/ISOAPService/Login\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n addPropertyToOperationClient(_operationClient,\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\n \"&\");\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n\n env = toEnvelope(getFactory(_operationClient.getOptions()\n .getSoapVersionURI()),\n login2,\n optimizeContent(\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\n \"login\")),\n new javax.xml.namespace.QName(\"http://tempuri.org/\", \"Login\"));\n\n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n\n java.lang.Object object = fromOM(_returnEnv.getBody()\n .getFirstElement(),\n com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse.class);\n\n return (com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse) object;\n } catch (org.apache.axis2.AxisFault f) {\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n\n if (faultElt != null) {\n if (faultExceptionNameMap.containsKey(\n new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"))) {\n //make the fault by reflection\n try {\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\n //message class\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,\n messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[] { messageClass });\n m.invoke(ex, new java.lang.Object[] { messageObject });\n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n } catch (java.lang.ClassCastException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n } else {\n throw f;\n }\n } else {\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender()\n .cleanup(_messageContext);\n }\n }\n }", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "Map<String, String> interactiveLogin(CloudContext cloudContext, ExtendedCloudCredential extendedCloudCredential,\n CredentialNotifier credentialNotifier);", "@Override\n\tpublic ResultMessage login(String user_name, String password) throws RemoteException{\n\t\treturn null;\n\t}", "public Reply login(String hostname) throws ThingsException, InterruptedException;", "private void logIn() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n\n String user = a[0];\n String password = a[1];\n boolean rez = service.checkPassword(user, password);\n if(rez == TRUE)\n System.out.println(\"Ok\");\n else\n System.out.println(\"Not ok\");\n }", "public void cl_login(String uname, String pwd)\n\t{\n\t\tEnter(txt_uname, uname);\n\t\tEnter(txt_pwd, pwd);\n\t\tClick(btn_login);\n\t\t\n\t}", "User login(Uuid id, String username, String password, Time creationTime);", "UserToken login(String username, String password) throws WorkspaceException;", "private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSystem.out.println(\"Welcome to AnnyBank\");\n\n\t\ttransactions();\n\t}", "public void login(String uname, String pwd) {\n username.type(uname);\n password.type(pwd);\n loginButton.click();\n }", "public static void main(String[] args) throws SessionException, AbpException, NotAuthorizedException {\n ObjectCommunicator objectCommunicator = ObjectCommunicator.getSharedInstance();\n try {\n objectCommunicator.login(\"lvs\", \"a\", \"1\", \"http://localhost:8080/abp\");\n } catch (Exception e) {\n }\n System.getProperties().put(\"exec.url\", \"http://localhost:8080/abp\");\n AbpSettings.getInstance().initForClient();\n\n // AbpManager abpManager = AbpManager.loginAsGuest(\"oracle\");\n\n // ProgrammeHelper.checkCombination(150L, 235L, 2, abpManager.makeWorkspace(\"oracle\"));\n\n }", "public boolean tryLogin(auctionsystemInterface ai) throws RemoteException\n {\n//\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Please enter username: \");\n curBuyerName = sc.next();\n\n System.out.println(\"Please enter password: \");\n curBuyerPas = sc.next();\n\n try {\n boolean succesful = ai.login(curBuyerName,curBuyerPas);\n\n if(succesful)\n {\n System.out.println(\"You have successfully logged in \" + curBuyerName);\n return true;\n }\n else\n {\n System.out.println(\"Login failed.\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }", "protected Response login(String environment) {\n environment = Strings.isNullOrEmpty(environment) ? \"\"\n : \"/\" + environment;\n JsonObject creds = new JsonObject();\n creds.addProperty(\"username\", \"admin\");\n creds.addProperty(\"password\", \"admin\");\n Response resp = post(environment + \"/login\", creds.toString());\n return resp;\n }", "@Override\n\tpublic SpaceUserVO login(SpaceUserVO spaceUserVO) throws Exception {\n\t\treturn null;\n\t}", "@Test\n\tpublic void loginToOpentaps() {\n\t\tinvokeApp(\"chrome\", \"http://demo1.opentaps.org\");\n\n\t\t// Step 2: Enter user name\n\t\tenterById(\"username\", \"DemoSalesManager\");\n\n\t\t// Step 3: Enter Password\n\t\tenterById(\"password\", \"crmsfa\");\n\n\t\t// Step 4: Click Login\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\t\t// Step 5: Verify Username\n\t\tverifyTextContainsByXpath(\"//div[@id='form']/h2\", \"Welcome\");\n\t\t\n\t\t// Step 6: Click Logout\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\n\n\n\t}", "@Override \n public void commandLogin(String userName, String password)\n {\n }", "public void loginAsTom() {\n textFieldUsername.withTimeoutOf(2000, MILLIS).type(\"tomsmith\");\n textFieldPassword.type(\"SuperSecretPassword!\");\n buttonLogin.click();\n }", "public User login(String loginName, String password) throws UserBlockedException;", "public int logIn() {\n guestPresenter.printLogInMessage();\n int id = requestInt(\"id\");\n char[] password = requestString(\"password\").toCharArray();\n UserManager.UserType user = guestManager.logIn(id, password);\n\n if (user == null) {\n guestPresenter.logInFailure();\n return -1;\n } else {\n return id;\n }\n }", "public Person login(String username, String password);", "public Pair<UUID, Boolean> login(String username,\n String password) {\n return tradingSystemFacade.login(username, password);\n }", "java.lang.String getCred();", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "public User doAuthentication(String account, String password);", "protected Response login() {\n return login(\"\");\n }", "SignedObject authenticate(String username, String hashedPassword) throws RemoteException, Exception;", "Document login(String username, String password);", "String login(String string2, String string3) throws IOException {\n Protocol protocol = this;\n synchronized (protocol) {\n Response response;\n String string4 = this.apopChallenge;\n String string5 = null;\n if (string4 != null) {\n string5 = this.getDigest(string3);\n }\n if (this.apopChallenge != null && string5 != null) {\n response = this.simpleCommand(\"APOP \" + string2 + \" \" + string5);\n } else {\n Response response2 = this.simpleCommand(\"USER \" + string2);\n if (!response2.ok) {\n if (response2.data == null) return \"USER command failed\";\n return response2.data;\n }\n response = this.simpleCommand(\"PASS \" + string3);\n }\n if (response.ok) return null;\n if (response.data == null) return \"login failed\";\n return response.data;\n }\n }", "public static void login(Lookup lookup) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tSystem.out.println(\"Enter your UserName: \");\r\n\t\t\t\r\n\t\t\tString name = sc.nextLine();\r\n\r\n\t\t\tSystem.out.println(\"Enter your Password: \");\r\n\t\t\t\r\n\t\t\tString pass = sc.nextLine();\r\n\r\n\t\t\tsUser = lookup.checkLoginAuth(name, pass);\r\n\r\n\t\t} catch (InvalidInputException e) {\r\n\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tSystem.err.flush();\r\n\r\n\t\t}\r\n\r\n\t}", "Conseiller obtenirConseillerParLogin(String login);", "public AuthenticationUserVO getAuthenticateVO()\n/* */ throws LoginInterruptedException\n/* */ {\n/* 383 */ AuthenticationUserVO userVO = new AuthenticationUserVO();\n/* 384 */ Map<String, String> extMap = new HashMap();\n/* 385 */ LfwView widget = getCurrentWidget();\n/* 386 */ TextComp userIdComp = (TextComp)widget.getViewComponents().getComponent(\"userid\");\n/* 387 */ TextComp randomImageComp = (TextComp)widget.getViewComponents().getComponent(\"randimg\");\n/* */ \n/* 389 */ ICpSysinitQry cpSysinitQry = PortalServiceUtil.getCpSysinitQry();\n/* 390 */ boolean enabledRandomImage = false;\n/* */ try {\n/* 392 */ String showRanImg = cpSysinitQry.getSysinitValueByCodeAndPkorg(\"randomimg\", null);\n/* 393 */ enabledRandomImage = UFBoolean.valueOf(showRanImg).booleanValue();\n/* */ } catch (CpbBusinessException e) {\n/* 395 */ PortalLogger.error(e.getMessage(), e);\n/* */ }\n/* 397 */ String userId = null;\n/* */ \n/* 399 */ AppLifeCycleContext pctx = AppLifeCycleContext.current();\n/* 400 */ HttpSession session = LfwRuntimeEnvironment.getWebContext().getRequest().getSession();\n/* 401 */ String signdata = pctx.getParameter(\"p_signdata\");\n/* 402 */ String sn = pctx.getParameter(\"p_sn\");\n/* 403 */ String tz = pctx.getParameter(\"p_tz\");\n/* 404 */ if (userIdComp != null) {\n/* 405 */ if (enabledRandomImage) {\n/* 406 */ String rand = null;\n/* 407 */ if (session != null) {\n/* 408 */ rand = (String)session.getAttribute(\"rand\");\n/* */ }\n/* 410 */ String ricv = randomImageComp.getValue();\n/* 411 */ if (!StringUtils.equals(rand, ricv)) {\n/* 412 */ throw new LoginInterruptedException(LfwResBundle.getInstance().getStrByID(\"pserver\", \"PortalLoginHandler-000006\"));\n/* */ }\n/* */ }\n/* 415 */ userId = userIdComp.getValue();\n/* 416 */ if ((userId == null) || (userId.equals(\"\"))) {\n/* 417 */ throw new LoginInterruptedException(LfwResBundle.getInstance().getStrByID(\"pserver\", \"PortalLoginHandler-000007\"));\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 422 */ TextComp passComp = (TextComp)widget.getViewComponents().getComponent(\"password\");\n/* 423 */ String passValue = null;\n/* 424 */ if (passComp != null) {\n/* 425 */ passValue = passComp.getValue();\n/* 426 */ if (passValue == null) {\n/* 427 */ passValue = \"\";\n/* */ }\n/* */ }\n/* */ \n/* 431 */ ComboBoxComp multiLanguageCombo = (ComboBoxComp)widget.getViewComponents().getComponent(\"multiLanguageCombo\");\n/* 432 */ String language = multiLanguageCombo.getValue();\n/* */ \n/* 434 */ userVO.setUserID(userId);\n/* 435 */ userVO.setPassword(passValue);\n/* 436 */ extMap.put(\"p_language\", language);\n/* 437 */ extMap.put(\"p_maxwin\", \"N\");\n/* 438 */ extMap.put(\"p_signdata\", signdata);\n/* 439 */ extMap.put(\"p_sn\", sn);\n/* */ \n/* 441 */ extMap.put(\"p_tz\", tz);\n/* 442 */ String challlid = (String)session.getAttribute(\"challlid\");\n/* 443 */ extMap.put(\"challlid\", challlid);\n/* 444 */ userVO.setExtInfo(extMap);\n/* 445 */ return userVO;\n/* */ }", "public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public void startlogin(\n com.outlook.octavio.armenta.ws.SOAPServiceStub.Login login2,\n final com.outlook.octavio.armenta.ws.SOAPServiceCallbackHandler callback)\n throws java.rmi.RemoteException {\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions()\n .setAction(\"http://tempuri.org/ISOAPService/Login\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n addPropertyToOperationClient(_operationClient,\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\n \"&\");\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n //Style is Doc.\n env = toEnvelope(getFactory(_operationClient.getOptions()\n .getSoapVersionURI()),\n login2,\n optimizeContent(\n new javax.xml.namespace.QName(\"http://tempuri.org/\", \"login\")),\n new javax.xml.namespace.QName(\"http://tempuri.org/\", \"Login\"));\n\n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(\n org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n\n java.lang.Object object = fromOM(resultEnv.getBody()\n .getFirstElement(),\n com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse.class);\n callback.receiveResultlogin((com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse) object);\n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorlogin(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n if (error instanceof org.apache.axis2.AxisFault) {\n org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n\n if (faultElt != null) {\n if (faultExceptionNameMap.containsKey(\n new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"))) {\n //make the fault by reflection\n try {\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\n //message class\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,\n messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[] { messageClass });\n m.invoke(ex,\n new java.lang.Object[] { messageObject });\n\n callback.receiveErrorlogin(new java.rmi.RemoteException(\n ex.getMessage(), ex));\n } catch (java.lang.ClassCastException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorlogin(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorlogin(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorlogin(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorlogin(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorlogin(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorlogin(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorlogin(f);\n }\n } else {\n callback.receiveErrorlogin(f);\n }\n } else {\n callback.receiveErrorlogin(f);\n }\n } else {\n callback.receiveErrorlogin(error);\n }\n }\n\n public void onFault(\n org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender()\n .cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorlogin(axisFault);\n }\n }\n });\n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n\n if ((_operations[1].getMessageReceiver() == null) &&\n _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[1].setMessageReceiver(_callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n }", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "public void logInSSO(WebDriver driver, String baseUrl){\n\t\t//get ther form\n\t\tWebElement form = driver.findElement(By.name(pblinkProperties.getSso_loginform_name()));\n\t\tList<WebElement> elements = driver.findElements(By.tagName(\"button\"));\n\t\tfor (WebElement element : elements) {\n\t\t if (element.getAttribute(\"type\").equals(\"button\")) {\n\t\t\t \telement.click();\n\t\t\t \tform.findElement(By.linkText(\"Standard\")).click();\n\t\t }\n\t\t}\n\t\tform.findElement(By.name(pblinkProperties.getSso_user_field_name())).sendKeys(pblinkProperties.getSso_user_value());\n\t\tform.findElement(By.name(pblinkProperties.getSso_field_password_name())).sendKeys(pblinkProperties.getSso_pwd_value());\n\t\tform.findElement(By.name(pblinkProperties.getSso_btn_login_name())).click();\n\t\tif(driver instanceof FirefoxDriver){\n\t\t\t//accept security pop up\n\t\t\tAlert alert = driver.switchTo().alert();\n\t\t\talert.accept();\n\t\t}\n\t\t//switch to cat id redirected to neolink by sso\n\t\tdriver.get(baseUrl);\t\n\t}", "public boolean login() { \r\n byte keytype = (byte)ACR120U.AC_MIFARE_LOGIN_KEYTYPE_A;\r\n byte[] key = new byte[6];\r\n for(int i=0;i<6;i++) \r\n key[i] = (byte)0xff;\r\n int result;\r\n result = cardReader.login(handle,sector,keytype,(byte)00,key);\r\n if (result < 0){ \r\n message = \"No Card\";\r\n return false;\r\n }\r\n return true;\r\n }", "private void authenticate(String user, String pass) {\n }", "public void LogIn() {\n\t\t\r\n\t}", "public void authenticate(LoginCredentials credentials) throws LoginException;", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "public abstract void login(\r\n com.google.protobuf.RpcController controller,\r\n PbDemoProto.Login_C2S request,\r\n com.google.protobuf.RpcCallback<PbDemoProto.Login_S2C> done);", "public LoginResult login() {\n\t\tif (!auth.isLoggedIn())\n\t\t\treturn LoginResult.MAIN_LOGOUT;\n\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_INDEX);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tArrayList<Cookie> tmpCookies = Cookie.getCookies(conn);\n\t\t\taws = Cookie.getCookie(tmpCookies, \"AWSELB\");\n\t\t\tphp = Cookie.getCookie(tmpCookies, \"PHPSESSID\");\n\t\t\t\n\t\t\tconn = Utility.getGetConn(FUND_LOGIN);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tString location = Utility.getLocation(conn);\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t// TODO: future speed optimization\n\t\t\t//if (auth.getPHPCookie() == null) {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie()));\n\t\t\t\tCookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), \"PHPSESSID\");\n\t\t\t\t// saves time for Blackboard and retrieveProfileImage().\n\t\t\t\tauth.setPHPCookie(phpCookie);\n\t\t\t\t\n\t\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\t\n\t\t\t\tlocation = Utility.getLocation(conn);\n\t\t\t\tif (location.startsWith(\"signin.aspx\"))\n\t\t\t\t\tlocation = \"https://eraider.ttu.edu/\" + location;\n\t\t\t\tconn = Utility.getGetConn(location);\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\t// might need to set ESI and ELC here. If other areas are bugged, this is why.\n\t\t\t/*} else {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie()));\n\t\t\t\t/// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!!\n\t\t\t\tthrow new NullPointerException(\"Needs implementation!\");\n\t\t\t}*/\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/login.php?ticket=ST-...\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/funds_home.php\n\t\t\tlocation = Utility.getLocation(conn);\n\t\t\tif (location.startsWith(\"index.\")) {\n\t\t\t\tlocation = \"https://get.cbord.com/raidercard/full/\" + location;\n\t\t\t}\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tUtility.readByte(conn);\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundlogin\", ErrorType.Fatal);\n\t\t\treturn LoginResult.OTHER;\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundlogingeneral\", ErrorType.APIChange);\n\t\t\treturn LoginResult.OTHER;\n\t\t}\n\n\t\tloggedIn = true;\n\n\t\treturn LoginResult.SUCCESS;\n\t}", "@Test(description = \"Login con credenciales correctas\", enabled = false)\n\tpublic void login() {\n\t\tPageLogin pageLogin = new PageLogin(driver);\n\t\tPageReservation pageReservation = new PageReservation(driver);\n\t\tpageLogin.login(\"mercury\", \"imercury\");\n\t\tpageReservation.assertPage();\n\t\t//****Este código se cambió por A****\n\t\t/*driver.findElement(By.name(\"userName\")).sendKeys(\"mercury\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"mercury\");\n\t\tdriver.findElement(By.name(\"login\")).click();*/\n\t\t//******todo este código que se repite se cambió por B****\n\t\t/*try {\n\t\t\tThread.sleep(5);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t//****código B****\n\t\t/*Helpers helper = new Helpers();\n\t\thelper.sleepSeconds(4);*/\n\t\t//este codigo pasa a la Page Object(page reservation)\n\t\t//Assert.assertTrue(driver.findElement(By.xpath(\"/html/body/div/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[3]/td/font\")).getText().contains(\"Flight Finder to search\"));\n\t}", "public void onClick(View v) {\n\t\t if (mLoggedIn) {\n\t\t logOut();\n\t\t } else {\n\t\t // Start the remote authentication\n\t\t mApi.getSession().startAuthentication(ResourceActivity.this);\n\t\t }\n\t\t }", "public Person authenticateAndGetUser(String numCc, String password) throws RemoteException;", "public void loginPin(){\n\t\tstate = ATM_State.LOGINPIN;\n\t\tgui.setDisplay(\"Enter your account PIN: \\n\");\n\t}", "private void auto_log_in()\n {\n jtf_username.setText(Config.USERNAME);\n jpf_password.setText(Config.PASSWORD);\n jb_prijavi.doClick();\n\n }", "protected void login(String username, String password) throws Exception {\n final SecurityClient securityClient = SecurityClientFactory.getSecurityClient();\n securityClient.setSimple(username, password);\n securityClient.login();\n }", "public void login(AuthenticationRequest auth_request)\n throws AuthorizationException, TException, AuthenticationException\n {\n for (Cassandra.Client client : addressToClient.values()) {\n long returnTime = client.login(auth_request, LamportClock.sendTimestamp());\n LamportClock.updateTime(returnTime);\n }\n }", "@Override\r\n\tpublic UserVO login(LoginUserVO user) {\n\t\treturn login.login(user);\r\n\t}", "public void StartLogIn(){\n\t}", "public interface IBillingServer extends Remote {\r\n\r\n\t/**\r\n\t * \r\n\t * @param username\r\n\t * @param password\r\n\t * @return null if user not authorized, access otherwise\r\n\t * @throws RemoteException\r\n\t */\r\n\tIBillingServerSecure login(String username, String password) throws RemoteException;\r\n}", "public void login(final View v) {\n\n // validate login here\n dbHelper = new EMFMonitorDbHelper(this);\n db = dbHelper.getReadableDatabase();\n\n String username = usernameField.getText().toString();\n String password = passwordField.getText().toString();\n\n Cursor cur = db.rawQuery(\"SELECT * FROM users WHERE username = ? AND password = ?\",\n new String[] {username, password});\n\n if (cur.moveToFirst()) {\n if (cur.getInt(EMFMonitorDbHelper.CAN_WORK_INDEX) > 0) {\n Intent i = new Intent(this, MainActivity.class);\n i.putExtra(\"USERNAME\", username);\n i.putExtra(\"UID\", cur.getInt(EMFMonitorDbHelper.UID_INDEX));\n i.putExtra(\"UNITS\", cur.getString(EMFMonitorDbHelper.UNITS_INDEX));\n i.putExtra(\"ALARM_THRESHOLD\", cur.getDouble(EMFMonitorDbHelper.ALARM_THRESHOLD_INDEX));\n startActivity(i);\n finish();\n }\n else {\n Toast toast = Toast.makeText(this, \"You have been exposed to unsafe levels of EMF\", Toast.LENGTH_SHORT);\n toast.show();\n }\n }\n else {\n Toast toast = Toast.makeText(this, \"Invalid Username or Password\", Toast.LENGTH_SHORT);\n toast.show();\n }\n\n\n }", "public abstract void login(\r\n com.google.protobuf.RpcController controller,\r\n PbDemoProto.Login_C2S request,\r\n com.google.protobuf.RpcCallback<PbDemoProto.Login_S2C> done);", "@Override\r\n\tpublic void Login(DbInterface dbi) {\n\t\t\r\n\t}", "public static void logIn(WebDriver dr) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// Username\n\t\tSystem.out.println(\"Enter username:\");\n\t\tString username=sc.nextLine();\n\t\tIzletPage.clickLUsername(dr);\n\t\tIzletPage.sendKeysLUsername(dr, username);\n\t\t// Password\n\t\tSystem.out.println(\"Enter password: \");\n\t\tString pass = sc.nextLine();\n\t\tIzletPage.clickLPassword(dr);\n\t\tIzletPage.sendKeysLPassword(dr, pass);\n\t\t// Log in button\n\t\tIzletPage.clickLogInButton(dr);\n\t\tsc.close();\n\t}", "@When(\"^To Validathe Retail Login with Valid Credentials$\")\r\n\tpublic void to_Validathe_Retail_Login_with_Valid_Credentials() throws InterruptedException {\n\t\tdriver.findElement(By.className(\"sign-in\")).click();\r\n\t\tdriver.findElement(By.name(\"log\")).sendKeys(\"admin\");\r\n\t\tdriver.findElement(By.name(\"pwd\")).sendKeys(\"admin@123\");\r\n\t\tdriver.findElement(By.name(\"login\")).click();\r\n\t\t Thread.sleep(3000);\r\n\t\t \r\n\t}", "public void loginAlert() {\n\t\tDialog<Pair<String, String>> dialog = new Dialog<>();\n\t\tdialog.setTitle(\"Login Dialog\");\n\t\tdialog.setHeaderText(\"Look, a Custom Login Dialog\");\n\n\t\t// Set the icon (must be included in the project).\n\t\tdialog.setGraphic(new ImageView(this.getClass().getResource(\"file:src/vista/img/usuario.png\").toString()));\n\n\t\t// Set the button types.\n\t\tButtonType loginButtonType = new ButtonType(\"Login\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().addAll(loginButtonType, ButtonType.CANCEL);\n\n\t\t// Create the username and password labels and fields.\n\t\tGridPane grid = new GridPane();\n\t\tgrid.setHgap(10);\n\t\tgrid.setVgap(10);\n\t\tgrid.setPadding(new Insets(20, 150, 10, 10));\n\n\t\tTextField username = new TextField();\n\t\tusername.setPromptText(\"Username\");\n\t\tPasswordField password = new PasswordField();\n\t\tpassword.setPromptText(\"Password\");\n\n\t\tgrid.add(new Label(\"Username:\"), 0, 0);\n\t\tgrid.add(username, 1, 0);\n\t\tgrid.add(new Label(\"Password:\"), 0, 1);\n\t\tgrid.add(password, 1, 1);\n\n\t\t// Enable/Disable login button depending on whether a username was entered.\n\t\tNode loginButton = dialog.getDialogPane().lookupButton(loginButtonType);\n\t\tloginButton.setDisable(true);\n\n\t\t// Do some validation (using the Java 8 lambda syntax).\n\t\tusername.textProperty().addListener((observable, oldValue, newValue) -> {\n\t\t loginButton.setDisable(newValue.trim().isEmpty());\n\t\t});\n\n\t\tdialog.getDialogPane().setContent(grid);\n\n\t\t// Request focus on the username field by default.\n\t\tPlatform.runLater(() -> username.requestFocus());\n\n\t\t// Convert the result to a username-password-pair when the login button is clicked.\n\t\tdialog.setResultConverter(dialogButton -> {\n\t\t if (dialogButton == loginButtonType) {\n\t\t return new Pair<>(username.getText(), password.getText());\n\t\t }\n\t\t return null;\n\t\t});\n\n\t\tOptional<Pair<String, String>> result = dialog.showAndWait();\n\n\t\tresult.ifPresent(usernamePassword -> {\n\t\t System.out.println(\"Username=\" + usernamePassword.getKey() + \", Password=\" + usernamePassword.getValue());\n\t\t});\n\t}", "User login(String username, String password);", "public void gotoAdminLogin(){ application.gotoAdminLogin(); }", "public void login() throws IOException {\n\t\tApp.setRoot(\"LogIn\");\n\t}", "public String signIn(String username, String password);", "public void clickLogin() {\n\t\tcontinueButton.click();\n\t}", "@Override public User login(String username, String password)\r\n throws RemoteException, SQLException {\r\n this.username = username;\r\n this.password = password;\r\n user = gameListClientModel.login(username, password);\r\n return gameListClientModel.login(username, password);\r\n }", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "RequestResult loginRequest() throws Exception;", "public void signIn()\r\n {\r\n FoodCenterRequestFactory factory = AndroidRequestUtils.getFoodCenterRF(context);\r\n ClientServiceRequest service = factory.getClientService();\r\n\r\n service.login(regId).fire(this);\r\n }", "@Test\n\t@Parameters({\"username\",\"password\"})\n\tpublic void testLoginIPA(String username,String password) throws Exception {\n\n\t\tboolean testRunmode = getTestRunMode(rowData.getTestcaseRunmode()); \n\t\tboolean master_condition = suiteRunmode && testRunmode;\n\t\tlogger.info(\"checking master condition status-->\" + this.getClass().getSimpleName() + \"-->\" + master_condition);\n\n\t\tif (!master_condition) {\n\t\t\tstatus = 3;\n\t\t\ttest.log(LogStatus.SKIP,\n\t\t\t\t\t\"Skipping test case \" + this.getClass().getSimpleName() + \" as the run mode is set to NO\");\n\t\t\tthrow new SkipException(\"Skipping Test Case\" + this.getClass().getSimpleName() + \" as runmode set to NO\");// reports\n\t\t}\n\n\t\ttest.log(LogStatus.INFO, this.getClass().getSimpleName() + \" execution starts \");\n\n\t\ttry {\n\t\t\topenBrowser();\n\t\t\tclearCookies();\n\t\t\tmaximizeWindow();\n\t\t\ttest.log(LogStatus.INFO, \"Login to IPA application\");\n\t\t\tob.navigate().to(host+CONFIG.getProperty(\"appendIPAAppUrl\"));\n\t\t\tif(!pf.getLoginTRInstance(ob).loginToIPA(username, password))\n\t\t\t\t\tthrow new Exception(\"Login not sucess\");\t\t\t\t\n\t\t\ttest.log(LogStatus.PASS, \"Login successfully\");\n\t\t\tpf.getDashboardPage(ob).SearchTermEnter(\"technology\", \"Java\");\n\t\t\tpf.getDashboardPage(ob).addTechnologyTerms(\"\",6 , false, false);\n\t\t\tpf.getDashboardPage(ob).exploreSearch();\n\t\t\tboolean leader = ValidationPinVisualization();\n\t\t\tpf.getDashboardPage(ob).selectTab(\"where\");\n\t\t\tboolean where = ValidationPinVisualization();\n\t\t\tpf.getDashboardPage(ob).selectTab(\"trend\");\n\t\t\tboolean trend = ValidationPinVisualization();\n\t\t\t\n\t\t\tif(leader && where && trend)\n\t\t\t\ttest.log(LogStatus.PASS, \"Pin Visulizations is displayed for Compititor, Where in World and Trending\");\n\t\t\telse\n\t\t\t\tlogFailureDetails(test, \"Pin Visualization validation for Compititor, Where in World and Trending is failed\", \"fail\");\n\t\t\t\n\t\t\t\n\t\t\tList<WebElement> pins = ob.findElements(By.cssSelector(OnePObjectMap.NEON_IPA_VISUALIZATION_PIN_CSS.toString()));\n\t\t\t\n\t\t\tfor(int i=0; i<pins.size(); i++){\n\t\t\t\tpins.get(i).click();\n\t\t\t}\n\t\t\t\n\t\t\tboolean pinVisual = validateAllGraphDisplay();\n\t\t\t\n\t\t\tif(pinVisual)\n\t\t\t\ttest.log(LogStatus.PASS, \"All graphs are displayed when pin is selected\");\n\t\t\telse\n\t\t\t\tlogFailureDetails(test, \"All graphs are not displayed when pin is selected\", \"fail\");\n\t\t\t\n\t\t\tcloseBrowser();\n\t\t} catch (Throwable t) {\n\t\t\ttest.log(LogStatus.FAIL, \"Error: Login not happended\");\n\t\t\t// print full stack trace\n\t\t\tStringWriter errors = new StringWriter();\n\t\t\tt.printStackTrace(new PrintWriter(errors));\n\t\t\ttest.log(LogStatus.INFO, errors.toString());\n\t\t\tErrorUtil.addVerificationFailure(t);\n\t\t\tstatus = 2;// excel\n\t\t\ttest.log(LogStatus.INFO, \"Snapshot below: \"\n\t\t\t\t\t+ test.addScreenCapture(captureScreenshot(this.getClass().getSimpleName() + \"_login_not_done\")));// screenshot\n\t\t\t\n\t\t\tcloseBrowser();\n\t\t}\n\n\t}", "public ControleurVueLogin() {\n\n\t}", "@When(\"I login as {string} with password {string}\")\r\n public void iLoginAsWithPassword(String login, String password) {\n autorisation.click(By.id(\"admin_login__nz-select--authorizationRole\"));\r\n autorisation.waitVisibility(By.cssSelector(\"nz-option-item[title='Центральный администратор']\"));\r\n autorisation.click(By.cssSelector(\"nz-option-item[title='Центральный администратор']\"));\r\n autorisation.click(By.id(\"admin_login__button--submit\"));\r\n }", "public Doctor login(Doctor o) {\n\t\treturn dao.login(o);\n\t}", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public AgentDTO login(String login, String senha);" ]
[ "0.60738194", "0.6071216", "0.6062153", "0.60240203", "0.57252437", "0.5685769", "0.56572384", "0.55718684", "0.55368966", "0.5536489", "0.55114806", "0.55062413", "0.55033076", "0.5478512", "0.54741335", "0.54331684", "0.5427766", "0.54035205", "0.53889704", "0.53793174", "0.5366558", "0.5366558", "0.5363411", "0.53535324", "0.53249276", "0.5318998", "0.5302472", "0.52915096", "0.52769023", "0.52686554", "0.526276", "0.52602947", "0.52195185", "0.520711", "0.5202601", "0.5194974", "0.5185531", "0.5177515", "0.5169422", "0.5166372", "0.5154503", "0.5154328", "0.51383734", "0.5129837", "0.51252", "0.512128", "0.51117635", "0.51093847", "0.5108135", "0.50902694", "0.50583774", "0.5057418", "0.50559074", "0.5050045", "0.50474745", "0.50469905", "0.5046125", "0.5028487", "0.5017989", "0.5005411", "0.49974307", "0.49936548", "0.49918133", "0.49913394", "0.4990916", "0.4989908", "0.4979048", "0.49777004", "0.4975532", "0.4970861", "0.49673375", "0.4961001", "0.49594426", "0.49583283", "0.494551", "0.4936032", "0.49350256", "0.49325487", "0.49245888", "0.49237368", "0.4922893", "0.49189106", "0.49182191", "0.49117973", "0.48946396", "0.48943877", "0.48855942", "0.48854953", "0.48797637", "0.48764253", "0.48744524", "0.48744518", "0.48723805", "0.4869136", "0.48683777", "0.48628458", "0.4861948", "0.48512137", "0.48510858", "0.48496312", "0.4847598" ]
0.0
-1
Login to vault using the oidc method
public Optional<AuthLoginOidc> authLoginOidc() { return Codegen.objectProp("authLoginOidc", AuthLoginOidc.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public AdbLoginResponse loginScoinFromAdb(AdbLoginScoinRequest adbLoginScoinRequest);", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "protected Response login() {\n return login(\"\");\n }", "void login(String cuid, String pass)\n throws RemoteException;", "public void signIn()\r\n {\r\n FoodCenterRequestFactory factory = AndroidRequestUtils.getFoodCenterRF(context);\r\n ClientServiceRequest service = factory.getClientService();\r\n\r\n service.login(regId).fire(this);\r\n }", "public com.sun.jna.PointerType login(Credentials c) throws RelationException;", "LoginContext login(String username, String password) throws LoginException;", "private void login() {\n if (blobStore != null) {\n return;\n }\n if (swiftUsername == null || swiftPassword == null || swiftAuthUrl == null || swiftContainer == null) {\n logger.error(\"Blob storage account is not configured\");\n throw new IllegalArgumentException(\"ERROR: Blob storage account is not configured\");\n }\n blobStore = ContextBuilder.newBuilder(blobApi)\n .endpoint(swiftAuthUrl)\n .credentials(swiftUsername, swiftPassword)\n .buildView(BlobStoreContext.class)\n .getBlobStore();\n\n if (!blobStore.containerExists(swiftContainer)) {\n// CreateContainerOptions options = CreateContainerOptions.Builder\n// .withMetadata(ImmutableMap.of(\"description\", \"E-PRTR data\"));\n// blobStore.createContainerInLocation(null, swiftContainer, options);\n Location location = getRegion();\n blobStore.createContainerInLocation(location, swiftContainer);\n }\n }", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }", "int authenticateUser(IDAOSession session, String userName, String password);", "User login(Uuid id, String username, String password, Time creationTime);", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "public int login(String username, String password) \n {\n\treturn this.acctCtrl.login(username, password);\n\n }", "protected void login() {\n\t\t\r\n\t}", "public abstract void login(String userName, String password) throws RemoteException;", "public static void authenticate() {\n\n Stage window = new Stage();\n\n final String url = OAUTH_URL + getQuery();\n\n BorderPane borderPane = new BorderPane();\n WebView browser = new WebView();\n WebEngine webEngine = browser.getEngine();\n\n webEngine.load(url);\n borderPane.setCenter(browser);\n\n webEngine.setOnStatusChanged(event -> {\n if (event.getSource() instanceof WebEngine) {\n WebEngine we = (WebEngine) event.getSource();\n String location = we.getLocation();\n // If we are redirected to REDIRECT_URL we get contents, and send it to verify() to get access token\n if (location.startsWith(REDIRECT_URL) && location.contains(\"code\") && AUTH_OBECT == null) try {\n URL url1 = new URL(location);\n String[] params = url1.getQuery().split(\"&\");\n Map<String, String> map = new HashMap<>();\n for (String param : params) {\n String name = param.split(\"=\")[0];\n String value = param.split(\"=\")[1];\n map.put(name, value);\n }\n String code = map.get(\"code\");\n // We have code so we continue the flow\n verify(code);\n window.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n // create scene\n window.setTitle(\"Authentication\");\n Scene scene = new Scene(borderPane, 750, 500);\n window.setScene(scene);\n window.showAndWait();\n }", "public LoginResult login() {\n\t\tif (!auth.isLoggedIn())\n\t\t\treturn LoginResult.MAIN_LOGOUT;\n\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_INDEX);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tArrayList<Cookie> tmpCookies = Cookie.getCookies(conn);\n\t\t\taws = Cookie.getCookie(tmpCookies, \"AWSELB\");\n\t\t\tphp = Cookie.getCookie(tmpCookies, \"PHPSESSID\");\n\t\t\t\n\t\t\tconn = Utility.getGetConn(FUND_LOGIN);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tString location = Utility.getLocation(conn);\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t// TODO: future speed optimization\n\t\t\t//if (auth.getPHPCookie() == null) {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie()));\n\t\t\t\tCookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), \"PHPSESSID\");\n\t\t\t\t// saves time for Blackboard and retrieveProfileImage().\n\t\t\t\tauth.setPHPCookie(phpCookie);\n\t\t\t\t\n\t\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\t\n\t\t\t\tlocation = Utility.getLocation(conn);\n\t\t\t\tif (location.startsWith(\"signin.aspx\"))\n\t\t\t\t\tlocation = \"https://eraider.ttu.edu/\" + location;\n\t\t\t\tconn = Utility.getGetConn(location);\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\t// might need to set ESI and ELC here. If other areas are bugged, this is why.\n\t\t\t/*} else {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie()));\n\t\t\t\t/// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!!\n\t\t\t\tthrow new NullPointerException(\"Needs implementation!\");\n\t\t\t}*/\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/login.php?ticket=ST-...\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/funds_home.php\n\t\t\tlocation = Utility.getLocation(conn);\n\t\t\tif (location.startsWith(\"index.\")) {\n\t\t\t\tlocation = \"https://get.cbord.com/raidercard/full/\" + location;\n\t\t\t}\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tUtility.readByte(conn);\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundlogin\", ErrorType.Fatal);\n\t\t\treturn LoginResult.OTHER;\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundlogingeneral\", ErrorType.APIChange);\n\t\t\treturn LoginResult.OTHER;\n\t\t}\n\n\t\tloggedIn = true;\n\n\t\treturn LoginResult.SUCCESS;\n\t}", "public int logIn() {\n guestPresenter.printLogInMessage();\n int id = requestInt(\"id\");\n char[] password = requestString(\"password\").toCharArray();\n UserManager.UserType user = guestManager.logIn(id, password);\n\n if (user == null) {\n guestPresenter.logInFailure();\n return -1;\n } else {\n return id;\n }\n }", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "protected Response login(String environment) {\n environment = Strings.isNullOrEmpty(environment) ? \"\"\n : \"/\" + environment;\n JsonObject creds = new JsonObject();\n creds.addProperty(\"username\", \"admin\");\n creds.addProperty(\"password\", \"admin\");\n Response resp = post(environment + \"/login\", creds.toString());\n return resp;\n }", "private void login(String username,String password){\n\n }", "void login(String user, String password);", "String login(String userName, String password) throws RemoteException, InterruptedException;", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "public AuthResponse loginAccount(Account acc){\n Call<AuthResponse> call = endpoints.loginAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "public Reply login(String hostname) throws ThingsException, InterruptedException;", "Map<String, String> interactiveLogin(CloudContext cloudContext, ExtendedCloudCredential extendedCloudCredential,\n CredentialNotifier credentialNotifier);", "SignedObject authenticate(String username, String hashedPassword) throws RemoteException, Exception;", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "public User doAuthentication(String account, String password);", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "public void authenticate(LoginRequest loginRequest) {\n\n }", "private Object authenticate(Invocation invocation, HttpServletRequest request,\r\n HttpServletResponse response) throws IOException {\r\n\r\n Object[] args = invocation.getArgs();\r\n if (args.length != 2) {\r\n throw new RuntimeException(\"The authenticate call must have two arguments\");\r\n }\r\n\r\n String user = (String) args[0];\r\n String password = (String) args[1];\r\n\r\n //We can make the remote call\r\n Object result = invoke(invocation);\r\n\r\n //If the authentification failed we finish the execution\r\n if (result instanceof LoginContext) {\r\n LoginContext loginContext = (LoginContext) result;\r\n if (loginContext == null) {\r\n throw new RuntimeException(\"Login failed!!\");\r\n }\r\n \r\n HttpSession session = request.getSession(false);\r\n String sessionId = session.getId();\r\n response.addHeader(\"jsessionid\", sessionId);\r\n\r\n \r\n session.setAttribute(User.USER_KEY, loginContext.getUser());\r\n\r\n session.setAttribute(RhSessionContext.CLIENT_ID, loginContext.getClient_id());\r\n session.setAttribute(RhSessionContext.ORG_ID, loginContext.getOrg_id());\r\n session.setAttribute(RhSessionContext.DUTY_ID, loginContext.getDutyId());\r\n\r\n Map attrs = loginContext.getAttributes();\r\n Set<Map.Entry> entries = attrs.entrySet();\r\n for (Map.Entry entry : entries) {\r\n session.setAttribute((String) entry.getKey(), entry.getValue());\r\n }\r\n\r\n // 创建login session\r\n LoginSession loginSession = new LoginSession();\r\n loginSession.setLoginName(loginContext.getUser().getUsername());\r\n loginSession.setIp(request.getRemoteHost());\r\n loginSession.setLoginDate(new Date(session.getCreationTime()));\r\n loginSession.setSessionId(session.getId());\r\n loginSession.setLiving(true);\r\n\r\n //Session hibernateSession = RhinoCtx.instance().getHibernate().getSession();\r\n try {\r\n \r\n ServiceBase serviceBase = (ServiceBase) ServiceFactory.getService(ServiceBase.NAME);\r\n //ServiceBase serviceBase = (ServiceBase) RhinoCtx.getBean(\"serviceBase\");\r\n //hibernateSession.beginTransaction();\r\n serviceBase.save(loginSession);\r\n //hibernateSession.getTransaction().commit();\r\n session.setAttribute(\"loginSession\", loginSession);\r\n\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n //hibernateSession.getTransaction().rollback();\r\n } finally {\r\n //hibernateSession.close();\r\n }\r\n }\r\n return result;\r\n }", "private void logIn(LogSignTemplate credentials){\n Call<LogSignTemplate> callNewTrack = nightAPI.authorize(credentials);\n callNewTrack.enqueue(new Callback<LogSignTemplate>() {\n @Override\n public void onResponse(Call<LogSignTemplate> call, Response<LogSignTemplate> response) {\n if(response.isSuccessful()){\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// SUCCESFUL LOGIN !!!!!!!!!!!!!!! /////////////////////////////////////\");\n Toasty.success(getContext(), \"Succes, welcome.\", Toast.LENGTH_SHORT, true).show();\n Intent intent = new Intent(getContext(), MenuActivity.class);\n startActivity(intent);\n }\n else{\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// NO SUCCESFUL RESPONSE /////////////////////////////////////\");\n Toasty.error(getContext(), \"Incorrect username or password.\", Toast.LENGTH_SHORT, true).show();\n }\n }\n\n @Override\n public void onFailure(Call<LogSignTemplate> call, Throwable t) {\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////////// ERROR /////////////////////////////////\");\n Toasty.error(getContext(), \"Error while validating..\", Toast.LENGTH_SHORT, true).show();\n t.printStackTrace();\n }\n });\n }", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "public String signIn(String username, String password);", "public void login(AuthenticationRequest auth_request)\n throws AuthorizationException, TException, AuthenticationException\n {\n for (Cassandra.Client client : addressToClient.values()) {\n long returnTime = client.login(auth_request, LamportClock.sendTimestamp());\n LamportClock.updateTime(returnTime);\n }\n }", "public void authenticate(LoginCredentials credentials) throws LoginException;", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "UserToken login(String username, String password) throws WorkspaceException;", "public void onClick(View v) {\n\t\t if (mLoggedIn) {\n\t\t logOut();\n\t\t } else {\n\t\t // Start the remote authentication\n\t\t mApi.getSession().startAuthentication(ResourceActivity.this);\n\t\t }\n\t\t }", "public void LogIn() {\n\t\t\r\n\t}", "public void login(){\n JSONObject clientInfo = new JSONObject();\n try{\n clientInfo.put(\"username\", mUsername);\n clientInfo.put(\"password\", mPassword);\n clientInfo.put(\"deviceID\", getDeviceID());\n clientInfo.put(\"ipAddress\", getClientIP());\n mSocket.emit(\"login\", clientInfo);\n }catch(JSONException ex){\n throw new RuntimeException(ex);\n }\n }", "public void login(HttpServletRequest req, HttpServletResponse res) throws IOException {\n\n // Client credentials\n Properties p = GlobalSettings.getNode(\"oauth.password-credentials\");\n String clientId = p.getProperty(\"client\");\n String secret = p.getProperty(\"secret\");\n ClientCredentials clientCredentials = new ClientCredentials(clientId, secret);\n\n // User credentials\n String username = req.getParameter(\"username\");\n String password = req.getParameter(\"password\");\n UsernamePassword userCredentials = new UsernamePassword(username, password);\n\n // Create request\n TokenResponse oauth = TokenRequest.newPassword(userCredentials, clientCredentials).post();\n if (oauth.isSuccessful()) {\n PSToken token = oauth.getAccessToken();\n\n // If open id was defined, we can get the member directly\n PSMember member = oauth.getMember();\n if (member == null) {\n member = OAuthUtils.retrieve(token);\n }\n\n if (member != null) {\n OAuthUser user = new OAuthUser(member, token);\n HttpSession session = req.getSession(false);\n String goToURL = this.defaultTarget;\n if (session != null) {\n ProtectedRequest target = (ProtectedRequest)session.getAttribute(AuthSessions.REQUEST_ATTRIBUTE);\n if (target != null) {\n goToURL = target.url();\n session.invalidate();\n }\n }\n session = req.getSession(true);\n session.setAttribute(AuthSessions.USER_ATTRIBUTE, user);\n res.sendRedirect(goToURL);\n } else {\n LOGGER.error(\"Unable to identify user!\");\n res.sendError(HttpServletResponse.SC_FORBIDDEN);\n }\n\n } else {\n LOGGER.error(\"OAuth failed '{}': {}\", oauth.getError(), oauth.getErrorDescription());\n if (oauth.isAvailable()) {\n res.sendError(HttpServletResponse.SC_FORBIDDEN);\n } else {\n res.sendError(HttpServletResponse.SC_BAD_GATEWAY);\n }\n }\n\n }", "private void login(final String login, final String password, final String domainId) {\n checkCredentials(login, password);\n\n if (!login.isEmpty() && !password.isEmpty()) {\n Notification.activityStart();\n AuthentificationManager.getInstance()\n .authenticateOnSilverpeas(loginField.getText(), passwordField.getText(),\n domains.getSelectedValue(), null);\n }\n }", "public abstract void login(\r\n com.google.protobuf.RpcController controller,\r\n PbDemoProto.Login_C2S request,\r\n com.google.protobuf.RpcCallback<PbDemoProto.Login_S2C> done);", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "String login(String string2, String string3) throws IOException {\n Protocol protocol = this;\n synchronized (protocol) {\n Response response;\n String string4 = this.apopChallenge;\n String string5 = null;\n if (string4 != null) {\n string5 = this.getDigest(string3);\n }\n if (this.apopChallenge != null && string5 != null) {\n response = this.simpleCommand(\"APOP \" + string2 + \" \" + string5);\n } else {\n Response response2 = this.simpleCommand(\"USER \" + string2);\n if (!response2.ok) {\n if (response2.data == null) return \"USER command failed\";\n return response2.data;\n }\n response = this.simpleCommand(\"PASS \" + string3);\n }\n if (response.ok) return null;\n if (response.data == null) return \"login failed\";\n return response.data;\n }\n }", "SqlVirtualMachineManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "public ControleurVueLogin() {\n\n\t}", "@Override\n\tpublic SpaceUserVO login(SpaceUserVO spaceUserVO) throws Exception {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic UserVO login(LoginUserVO user) {\n\t\treturn login.login(user);\r\n\t}", "public abstract void login(\r\n com.google.protobuf.RpcController controller,\r\n PbDemoProto.Login_C2S request,\r\n com.google.protobuf.RpcCallback<PbDemoProto.Login_S2C> done);", "private void loginHandler(RoutingContext context) {\n JsonObject creds = new JsonObject()\n .put(\"username\", context.getBodyAsJson().getString(\"username\"))\n .put(\"password\", context.getBodyAsJson().getString(\"password\"));\n\n // TODO : Authentication\n context.response().setStatusCode(500).end();\n }", "private boolean authenticate (HttpRequest request, HttpResponse response) throws UnsupportedEncodingException\n\t{\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\tif(requestSplit.length<2)\n\t\t\treturn false;\n\t\tString serviceName=requestSplit[1];\n\t\tfinal int BASIC_PREFIX_LENGTH=\"BASIC \".length();\n\t\tString userPass=\"\";\n\t\tString username=\"\";\n\t\tString password=\"\";\n\t\t\n\t\t//Check for authentication information in header\n\t\tif(request.hasHeaderField(AUTHENTICATION_FIELD)\n\t\t\t\t&&(request.getHeaderField(AUTHENTICATION_FIELD).length()>BASIC_PREFIX_LENGTH))\n\t\t{\n\t\t\tuserPass=request.getHeaderField(AUTHENTICATION_FIELD).substring(BASIC_PREFIX_LENGTH);\n\t\t\tuserPass=new String(Base64.decode(userPass), \"UTF-8\");\n\t\t\tint separatorPos=userPass.indexOf(':');\n\t\t\t//get username and password\n\t\t\tusername=userPass.substring(0,separatorPos);\n\t\t\tpassword=userPass.substring(separatorPos+1);\n\t\t\t\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\tlong userId;\n\t\t\t\tAgent userAgent;\n\t\t\t\t\n\t\t\t\tif ( username.matches (\"-?[0-9].*\") ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tuserId = Long.valueOf(username);\n\t\t\t\t\t} catch ( NumberFormatException e ) {\n\t\t\t\t\t\tthrow new L2pSecurityException (\"The given user does not contain a valid agent id!\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tuserId = l2pNode.getAgentIdForLogin(username);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tuserAgent = l2pNode.getAgent(userId);\n\t\t\t\t\n\t\t\t\tif ( ! (userAgent instanceof PassphraseAgent ))\n\t\t\t\t\tthrow new L2pSecurityException (\"Agent is not passphrase protected!\");\n\t\t\t\t((PassphraseAgent)userAgent).unlockPrivateKey(password);\n\t\t\t\t_currentUserId=userId;\n\t\t\t\t\n\t\t\t\tif(!_userSessions.containsKey(userId))//if user not registered\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tMediator mediator = l2pNode.getOrRegisterLocalMediator(userAgent);\n\t\t\t\t\t_userSessions.put(userId, new UserSession(mediator));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t_userSessions.get(userId).updateServiceTime(serviceName,new Date().getTime());//update last access time for service\n\t\t\t\t\n\t\t\t\tconnector.logMessage(\"Login: \"+username);\n\t\t\t\tconnector.logMessage(\"Sessions: \"+Integer.toString(_userSessions.size()));\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}catch (AgentNotKnownException e) {\n\t\t\t\tsendUnauthorizedResponse(response, null, request.getRemoteAddress() + \": login denied for user \" + username);\n\t\t\t} catch (L2pSecurityException e) {\n\t\t\t\tsendUnauthorizedResponse( response, null, request.getRemoteAddress() + \": unauth access - prob. login problems\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\tsendInternalErrorResponse(\n\t\t\t\t\t\tresponse, \n\t\t\t\t\t\t\"The server was unable to process your request because of an internal exception!\", \n\t\t\t\t\t\t\"Exception in processing create session request: \" + e);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresponse.setStatus ( HttpResponse.STATUS_BAD_REQUEST );\n\t\t\tresponse.setContentType( \"text/plain\" );\n\t\t\tresponse.print ( \"No authentication provided!\" );\n\t\t\tconnector.logError( \"No authentication provided!\" );\n\t\t}\n\t\treturn false;\n\t}", "public void doLogin(Activity activity) {\n\t\tif (!isLoggedIn())\n\t\t\tmDropboxAPI.getSession().startAuthentication(activity);\n\t}", "private void authenticate() {\n\t\t//Isn't a foreach because if the ciphertext is invalid, that data object is removed from the data array.\n\t\t// In a foreach, this would lead to a concurrent modification exception.\n\t\t//noinspection ForLoopReplaceableByForEach\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\ttry {\n\t\t\t\tdata.get(i).decryptText(plainPassword);\n\t\t\t} catch (VaultFormatException ignored) {\n\t\t\t}\n\t\t}\n\t}", "public LoginResponse login(LoginRequest request) throws IOException {\n ClientCommunicator loginCommunicator = new ClientCommunicator(new LoginStrategy());\n\n return (LoginResponse) loginCommunicator.doWebRequest(request, null);\n }", "private void loginUser() throws JSONException, UnsupportedEncodingException {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"username\", editUserName.getText().toString());\n jsonObject.put(\"password\", editPassword.getText().toString());\n jsonObject.put(\"DeviceID\", diviceToken);\n jsonObject.put(\"DevicePlatform\", devicePlatform);\n invokeLogin(jsonObject);\n\n\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "RequestResult loginRequest() throws Exception;", "public void StartLogIn(){\n\t}", "public Person login(String username, String password);", "public void login() throws IOException {\n\t\tApp.setRoot(\"LogIn\");\n\t}", "void initiateLogin() {\n\t\tString username = this.mAuthUsername.getText().toString();\n\t\tString password = this.mAuthPassword.getText().toString();\n\t\t\n\t\tfetch();\n\t\tthis.mAuthTask = new AuthenticationTask(this, this, username, password);\n\t\tthis.mAuthTask.execute();\n\t}", "Document login(String username, String password);", "private void authenticate(String user, String pass) {\n }", "private void signIn() {\n }", "@Override\n public JsonResponse duringAuthentication(String... params) {\n try {\n final String username = params[0];\n final String password = params[1];\n return RequestHandler.authenticate(this.getApplicationContext(), username, password);\n } catch (IOException e) {\n return null;\n }\n }", "private void logIn() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n\n String user = a[0];\n String password = a[1];\n boolean rez = service.checkPassword(user, password);\n if(rez == TRUE)\n System.out.println(\"Ok\");\n else\n System.out.println(\"Not ok\");\n }", "@Test\n public void testWebAuthnIDLessLogin() throws IOException {\n\n configureUser(username, false, true, true);\n initializeAuthenticator(true, true, true, true);\n setWebAuthnRealmSettings(false, false, true, true);\n\n // Trigger webauthn-passwordless setup (resident key)\n setUpUsernamePasswordFlow(\"username-password-flow\");\n String credentialId = usernamePasswordAuthWithAuthSetup(username, true, true);\n\n setUpIDLessOnlyFlow(\"idless-only-flow\");\n idlessAuthentication(username, credentialId, false, true);\n\n }", "User signIn(String login, String password);", "public boolean login() { \r\n byte keytype = (byte)ACR120U.AC_MIFARE_LOGIN_KEYTYPE_A;\r\n byte[] key = new byte[6];\r\n for(int i=0;i<6;i++) \r\n key[i] = (byte)0xff;\r\n int result;\r\n result = cardReader.login(handle,sector,keytype,(byte)00,key);\r\n if (result < 0){ \r\n message = \"No Card\";\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic void login() {\n\t\tAccountManager accountManager = AccountManager.get(context);\n\t\tAccount[] accounts = accountManager.getAccountsByType(GOOGLE_ACCOUNT_TYPE);\n\t\tif(accounts.length < 1) throw new NotAccountException(\"This device not has account yet\");\n\t\tfinal String userName = accounts[0].name;\n\t\tfinal String accountType = accounts[0].type;\n\t\tBundle options = new Bundle();\n\t\tif(comService.isOffLine()){\n\t\t\tsetCurrentUser(new User(userName, userName, accountType));\n\t\t\treturn;\n\t\t}\n\t\taccountManager.getAuthToken(accounts[0], AUTH_TOKEN_TYPE, options, (Activity)context, \n\t\t\t\tnew AccountManagerCallback<Bundle>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run(AccountManagerFuture<Bundle> future) {\n\t\t\t\t\t\tString token = \"\";\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tBundle result = future.getResult();\n\t\t\t\t\t\t\ttoken = result.getString(AccountManager.KEY_AUTHTOKEN);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsetCurrentUser(new User(userName, userName, accountType, token));\n\t\t\t\t\t\t} catch (OperationCanceledException e) {\n\t\t\t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(\"Login\", \"Token: \" + token);\n\t\t\t\t\t}\n\t\t\t\t}, new Handler(new Handler.Callback() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean handleMessage(Message msg) {\n\t\t\t\t\t\tLog.d(\"Login\", msg.toString());\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}));\n\t}", "@Override\r\n\tpublic void login() {\n\r\n\t}", "void login(String email, String password) throws InvalidCredentialsException, IOException;", "public void logInSSO(WebDriver driver, String baseUrl){\n\t\t//get ther form\n\t\tWebElement form = driver.findElement(By.name(pblinkProperties.getSso_loginform_name()));\n\t\tList<WebElement> elements = driver.findElements(By.tagName(\"button\"));\n\t\tfor (WebElement element : elements) {\n\t\t if (element.getAttribute(\"type\").equals(\"button\")) {\n\t\t\t \telement.click();\n\t\t\t \tform.findElement(By.linkText(\"Standard\")).click();\n\t\t }\n\t\t}\n\t\tform.findElement(By.name(pblinkProperties.getSso_user_field_name())).sendKeys(pblinkProperties.getSso_user_value());\n\t\tform.findElement(By.name(pblinkProperties.getSso_field_password_name())).sendKeys(pblinkProperties.getSso_pwd_value());\n\t\tform.findElement(By.name(pblinkProperties.getSso_btn_login_name())).click();\n\t\tif(driver instanceof FirefoxDriver){\n\t\t\t//accept security pop up\n\t\t\tAlert alert = driver.switchTo().alert();\n\t\t\talert.accept();\n\t\t}\n\t\t//switch to cat id redirected to neolink by sso\n\t\tdriver.get(baseUrl);\t\n\t}", "public Login() {\r\n\t\tinitialize();\r\n\t}", "EmployeeMaster authenticateUser(int employeeId, String password);", "@Test\n\tpublic void loginToOpentaps() {\n\t\tinvokeApp(\"chrome\", \"http://demo1.opentaps.org\");\n\n\t\t// Step 2: Enter user name\n\t\tenterById(\"username\", \"DemoSalesManager\");\n\n\t\t// Step 3: Enter Password\n\t\tenterById(\"password\", \"crmsfa\");\n\n\t\t// Step 4: Click Login\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\t\t// Step 5: Verify Username\n\t\tverifyTextContainsByXpath(\"//div[@id='form']/h2\", \"Welcome\");\n\t\t\n\t\t// Step 6: Click Logout\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\n\n\n\t}", "private String login() throws AxisFault {\n APIManagerConfiguration config = ServiceReferenceHolder.getInstance().\n getAPIManagerConfigurationService().getAPIManagerConfiguration();\n String user = config.getFirstProperty(APIConstants.API_GATEWAY_USERNAME);\n String password = config.getFirstProperty(APIConstants.API_GATEWAY_PASSWORD);\n String url = config.getFirstProperty(APIConstants.API_GATEWAY_SERVER_URL);\n\n if (url == null || user == null || password == null) {\n throw new AxisFault(\"Required API gateway admin configuration unspecified\");\n }\n\n String host;\n try {\n host = new URL(url).getHost();\n } catch (MalformedURLException e) {\n throw new AxisFault(\"API gateway URL is malformed\", e);\n }\n\n AuthenticationAdminStub authAdminStub = new AuthenticationAdminStub(\n ServiceReferenceHolder.getContextService().getClientConfigContext(),\n url + \"AuthenticationAdmin\");\n ServiceClient client = authAdminStub._getServiceClient();\n Options options = client.getOptions();\n options.setManageSession(true);\n try {\n authAdminStub.login(user, password, host);\n ServiceContext serviceContext = authAdminStub.\n _getServiceClient().getLastOperationContext().getServiceContext();\n String sessionCookie = (String) serviceContext.getProperty(HTTPConstants.COOKIE_STRING);\n return sessionCookie;\n } catch (RemoteException e) {\n throw new AxisFault(\"Error while contacting the authentication admin services\", e);\n } catch (LoginAuthenticationExceptionException e) {\n throw new AxisFault(\"Error while authenticating against the API gateway admin\", e);\n }\n }", "Login() { \n }", "private void login(Conversation conversation) {\n\t\tJsonObject lJsonObjIn = (JsonObject) conversation.getRequestBodyAsJSON();\n\t\t\n\t\tString lGebruikersnaam = lJsonObjIn.getString(\"username\");\t\t\t\t\t\t// Uitlezen van opgestuurde inloggegevens... \n\t\tString lWachtwoord = lJsonObjIn.getString(\"password\");\n\t\tMap<String, String> loginInfo = informatieSysteem.loginDetails(lGebruikersnaam,lWachtwoord);\n\n\t\tif(loginInfo.isEmpty())\n\t\t{\n\t\t\t//LOGIN FAILED !\n\t\t\tconversation.sendJSONMessage(\"{\\\"rol\\\":\\\"undefined\\\"}\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJsonObjectBuilder lJsonObjectBuilder = Json.createObjectBuilder();\n\t\t\tlJsonObjectBuilder.add(\"rol\", loginInfo.get(\"rol\"));\n\t\t\tlJsonObjectBuilder.add(\"voornaam\", loginInfo.get(\"voornaam\"));\n\t\t\tlJsonObjectBuilder.add(\"achternaam\", loginInfo.get(\"achternaam\"));\n\t\t\tlJsonObjectBuilder.add(\"identificatienummer\", loginInfo.get(\"identificatienummer\"));\t\t// en teruggekregen gebruikersrol als JSON-object...\n\t\t\tif(loginInfo.containsKey(\"group\")) lJsonObjectBuilder.add(\"group\", loginInfo.get(\"group\"));\n\t\t\tif(loginInfo.containsKey(\"klasnaam\")) lJsonObjectBuilder.add(\"klasnaam\", loginInfo.get(\"klasnaam\"));\n\t\t\tif(loginInfo.containsKey(\"klascode\")) lJsonObjectBuilder.add(\"klascode\", loginInfo.get(\"klascode\"));\n\t\t\tString lJsonOut = lJsonObjectBuilder.build().toString();\n\t\t\tconversation.sendJSONMessage(lJsonOut);\n\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t// terugsturen naar de Polymer-GUI!\n\t}", "private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSystem.out.println(\"Welcome to AnnyBank\");\n\n\t\ttransactions();\n\t}", "public void doLogin() throws IOException {\n if (principal != null) {\n LOG.info(\n \"Attempting to login to KDC using principal: {} keytab: {}\", principal, keytab);\n UserGroupInformation.loginUserFromKeytab(principal, keytab);\n LOG.info(\"Successfully logged into KDC\");\n } else if (!isProxyUser(UserGroupInformation.getCurrentUser())) {\n LOG.info(\"Attempting to load user's ticket cache\");\n UserGroupInformation.loginUserFromSubject(null);\n LOG.info(\"Loaded user's ticket cache successfully\");\n } else {\n throwProxyUserNotSupported();\n }\n }", "User login(String username, String password);", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }", "@Override\n public void clientAuthenticate()\n throws HubIntegrationException {\n try {\n final ArrayList<String> segments = new ArrayList<>();\n segments.add(\"j_spring_security_check\");\n final HttpUrl httpUrl = createHttpUrl(segments, null);\n\n final Map<String, String> content = new HashMap<>();\n final String username = hubServerConfig.getGlobalCredentials().getUsername();\n String password = hubServerConfig.getGlobalCredentials().getEncryptedPassword();\n if (StringUtils.isNotBlank(username) && StringUtils.isNotBlank(password)) {\n try {\n password = hubServerConfig.getGlobalCredentials().getDecryptedPassword();\n\n content.put(\"j_username\", username);\n content.put(\"j_password\", password);\n final Request request = createPostRequest(httpUrl, createEncodedRequestBody(content));\n Response response = null;\n try {\n logRequestHeaders(request);\n response = getClient().newCall(request).execute();\n logResponseHeaders(response);\n if (!response.isSuccessful()) {\n throw new HubIntegrationException(response.message());\n }\n } finally {\n if (response != null) {\n response.close();\n }\n }\n } catch (IllegalArgumentException | EncryptionException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }\n } catch (final IOException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }", "private AuthenticatorFlowStatus initiateAuthRequest(HttpServletResponse response, AuthenticationContext context,\n String errorMessage)\n throws AuthenticationFailedException {\n\n // Find the authenticated user.\n AuthenticatedUser authenticatedUser = getUser(context);\n\n if (authenticatedUser == null) {\n throw new AuthenticationFailedException(\"Authentication failed!. \" +\n \"Cannot proceed further without identifying the user\");\n }\n\n String tenantDomain = authenticatedUser.getTenantDomain();\n String username = authenticatedUser.getAuthenticatedSubjectIdentifier();\n String tenantAwareUsername = MultitenantUtils.getTenantAwareUsername(username);\n\n /*\n In here we do the redirection to the termsAndConditionForm.jsp page.\n If you need to do any api calls and pass any information to the custom page you can do it here and pass\n them as query parameters or else best way is to do the api call using a javascript function within the\n custom page.\n */\n\n try {\n String loginPage = ConfigurationFacade.getInstance().getAuthenticationEndpointURL().\n replace(\"login.do\", \"termsAndConditionForm.jsp\");\n String queryParams = FrameworkUtils.getQueryStringWithFrameworkContextId(context.getQueryParams(),\n context.getCallerSessionKey(), context.getContextIdentifier());\n String retryParam = \"\";\n if (context.isRetrying()) {\n retryParam = \"&authFailure=true\" +\n \"&authFailureMsg=\" + URLEncoder.encode(errorMessage, StandardCharsets.UTF_8.name());\n }\n String fullyQualifiedUsername = UserCoreUtil.addTenantDomainToEntry(tenantAwareUsername,\n tenantDomain);\n String encodedUrl =\n (loginPage + (\"?\" + queryParams\n + \"&username=\" + URLEncoder.encode(fullyQualifiedUsername, StandardCharsets.UTF_8.name())))\n + \"&authenticators=\" + getName() + \":\" + AUTHENTICATOR_TYPE\n + retryParam;\n response.sendRedirect(encodedUrl);\n } catch (IOException e) {\n throw new AuthenticationFailedException(e.getMessage(), e);\n }\n context.setCurrentAuthenticator(getName());\n context.setRetrying(false);\n return AuthenticatorFlowStatus.INCOMPLETE;\n\n }", "@Override\r\n\tpublic void loginIn(Account account) throws ServiceException {\n\r\n\t}", "String signIn(String userName, String password) throws UserNotFoundException;", "public com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse login(\n com.outlook.octavio.armenta.ws.SOAPServiceStub.Login login2)\n throws java.rmi.RemoteException {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n try {\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions()\n .setAction(\"http://tempuri.org/ISOAPService/Login\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n addPropertyToOperationClient(_operationClient,\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\n \"&\");\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n\n env = toEnvelope(getFactory(_operationClient.getOptions()\n .getSoapVersionURI()),\n login2,\n optimizeContent(\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\n \"login\")),\n new javax.xml.namespace.QName(\"http://tempuri.org/\", \"Login\"));\n\n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n\n java.lang.Object object = fromOM(_returnEnv.getBody()\n .getFirstElement(),\n com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse.class);\n\n return (com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse) object;\n } catch (org.apache.axis2.AxisFault f) {\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n\n if (faultElt != null) {\n if (faultExceptionNameMap.containsKey(\n new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"))) {\n //make the fault by reflection\n try {\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\n //message class\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,\n messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[] { messageClass });\n m.invoke(ex, new java.lang.Object[] { messageObject });\n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n } catch (java.lang.ClassCastException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n } else {\n throw f;\n }\n } else {\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender()\n .cleanup(_messageContext);\n }\n }\n }", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "AuthenticationToken authenticate(String username, CharSequence password) throws Exception;", "private ServicioLogin() {\n super();\n }" ]
[ "0.58869016", "0.58367467", "0.58017945", "0.5752768", "0.56833625", "0.5667112", "0.5658028", "0.56495136", "0.5646221", "0.5644723", "0.5618529", "0.5586276", "0.55767304", "0.5574636", "0.5569276", "0.55533326", "0.55326355", "0.5511637", "0.5509141", "0.5492902", "0.54658884", "0.5459351", "0.5434879", "0.5417258", "0.54150796", "0.54123735", "0.5411264", "0.5411264", "0.5402714", "0.5397283", "0.5385124", "0.53814787", "0.537594", "0.5363607", "0.53587353", "0.53335685", "0.53312856", "0.5330927", "0.532933", "0.53069204", "0.53048825", "0.5302156", "0.5293038", "0.5287986", "0.528391", "0.52572584", "0.52553403", "0.5252615", "0.524676", "0.52424264", "0.52391815", "0.5235837", "0.5235808", "0.52293533", "0.522692", "0.52114254", "0.5194513", "0.5179538", "0.51581746", "0.5156731", "0.5134657", "0.5133407", "0.51315266", "0.512827", "0.51281184", "0.51215696", "0.5111586", "0.5107156", "0.5107146", "0.5106752", "0.5105003", "0.5092596", "0.5092389", "0.50910586", "0.50851226", "0.5079889", "0.50796545", "0.50755554", "0.5070483", "0.50688785", "0.506136", "0.50609654", "0.5048476", "0.5047099", "0.50434303", "0.504068", "0.5037499", "0.5030034", "0.5029509", "0.5027056", "0.50220335", "0.5018025", "0.50137585", "0.50130767", "0.50116473", "0.500436", "0.50012946", "0.49944133", "0.49937078", "0.49918365", "0.49905795" ]
0.0
-1
Login to vault using the radius method
public Optional<AuthLoginRadius> authLoginRadius() { return Codegen.objectProp("authLoginRadius", AuthLoginRadius.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "public LoginResult login() {\n\t\tif (!auth.isLoggedIn())\n\t\t\treturn LoginResult.MAIN_LOGOUT;\n\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_INDEX);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tArrayList<Cookie> tmpCookies = Cookie.getCookies(conn);\n\t\t\taws = Cookie.getCookie(tmpCookies, \"AWSELB\");\n\t\t\tphp = Cookie.getCookie(tmpCookies, \"PHPSESSID\");\n\t\t\t\n\t\t\tconn = Utility.getGetConn(FUND_LOGIN);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tString location = Utility.getLocation(conn);\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t// TODO: future speed optimization\n\t\t\t//if (auth.getPHPCookie() == null) {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie()));\n\t\t\t\tCookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), \"PHPSESSID\");\n\t\t\t\t// saves time for Blackboard and retrieveProfileImage().\n\t\t\t\tauth.setPHPCookie(phpCookie);\n\t\t\t\t\n\t\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\t\n\t\t\t\tlocation = Utility.getLocation(conn);\n\t\t\t\tif (location.startsWith(\"signin.aspx\"))\n\t\t\t\t\tlocation = \"https://eraider.ttu.edu/\" + location;\n\t\t\t\tconn = Utility.getGetConn(location);\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\t// might need to set ESI and ELC here. If other areas are bugged, this is why.\n\t\t\t/*} else {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie()));\n\t\t\t\t/// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!!\n\t\t\t\tthrow new NullPointerException(\"Needs implementation!\");\n\t\t\t}*/\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/login.php?ticket=ST-...\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/funds_home.php\n\t\t\tlocation = Utility.getLocation(conn);\n\t\t\tif (location.startsWith(\"index.\")) {\n\t\t\t\tlocation = \"https://get.cbord.com/raidercard/full/\" + location;\n\t\t\t}\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tUtility.readByte(conn);\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundlogin\", ErrorType.Fatal);\n\t\t\treturn LoginResult.OTHER;\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundlogingeneral\", ErrorType.APIChange);\n\t\t\treturn LoginResult.OTHER;\n\t\t}\n\n\t\tloggedIn = true;\n\n\t\treturn LoginResult.SUCCESS;\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "protected Response login() {\n return login(\"\");\n }", "RequestResult loginRequest() throws Exception;", "private void login(String username,String password){\n\n }", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public void signIn()\r\n {\r\n FoodCenterRequestFactory factory = AndroidRequestUtils.getFoodCenterRF(context);\r\n ClientServiceRequest service = factory.getClientService();\r\n\r\n service.login(regId).fire(this);\r\n }", "public abstract void login(String userName, String password) throws RemoteException;", "protected void login() {\n\t\t\r\n\t}", "public void loginAsTom() {\n textFieldUsername.withTimeoutOf(2000, MILLIS).type(\"tomsmith\");\n textFieldPassword.type(\"SuperSecretPassword!\");\n buttonLogin.click();\n }", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "public com.sun.jna.PointerType login(Credentials c) throws RelationException;", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }", "private void logIn(LogSignTemplate credentials){\n Call<LogSignTemplate> callNewTrack = nightAPI.authorize(credentials);\n callNewTrack.enqueue(new Callback<LogSignTemplate>() {\n @Override\n public void onResponse(Call<LogSignTemplate> call, Response<LogSignTemplate> response) {\n if(response.isSuccessful()){\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// SUCCESFUL LOGIN !!!!!!!!!!!!!!! /////////////////////////////////////\");\n Toasty.success(getContext(), \"Succes, welcome.\", Toast.LENGTH_SHORT, true).show();\n Intent intent = new Intent(getContext(), MenuActivity.class);\n startActivity(intent);\n }\n else{\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// NO SUCCESFUL RESPONSE /////////////////////////////////////\");\n Toasty.error(getContext(), \"Incorrect username or password.\", Toast.LENGTH_SHORT, true).show();\n }\n }\n\n @Override\n public void onFailure(Call<LogSignTemplate> call, Throwable t) {\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////////// ERROR /////////////////////////////////\");\n Toasty.error(getContext(), \"Error while validating..\", Toast.LENGTH_SHORT, true).show();\n t.printStackTrace();\n }\n });\n }", "private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSystem.out.println(\"Welcome to AnnyBank\");\n\n\t\ttransactions();\n\t}", "public Pair<UUID, Boolean> login(String username,\n String password) {\n return tradingSystemFacade.login(username, password);\n }", "String login(String userName, String password) throws RemoteException, InterruptedException;", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "public int login(String username, String password) \n {\n\treturn this.acctCtrl.login(username, password);\n\n }", "private void login(Conversation conversation) {\n\t\tJsonObject lJsonObjIn = (JsonObject) conversation.getRequestBodyAsJSON();\n\t\t\n\t\tString lGebruikersnaam = lJsonObjIn.getString(\"username\");\t\t\t\t\t\t// Uitlezen van opgestuurde inloggegevens... \n\t\tString lWachtwoord = lJsonObjIn.getString(\"password\");\n\t\tMap<String, String> loginInfo = informatieSysteem.loginDetails(lGebruikersnaam,lWachtwoord);\n\n\t\tif(loginInfo.isEmpty())\n\t\t{\n\t\t\t//LOGIN FAILED !\n\t\t\tconversation.sendJSONMessage(\"{\\\"rol\\\":\\\"undefined\\\"}\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJsonObjectBuilder lJsonObjectBuilder = Json.createObjectBuilder();\n\t\t\tlJsonObjectBuilder.add(\"rol\", loginInfo.get(\"rol\"));\n\t\t\tlJsonObjectBuilder.add(\"voornaam\", loginInfo.get(\"voornaam\"));\n\t\t\tlJsonObjectBuilder.add(\"achternaam\", loginInfo.get(\"achternaam\"));\n\t\t\tlJsonObjectBuilder.add(\"identificatienummer\", loginInfo.get(\"identificatienummer\"));\t\t// en teruggekregen gebruikersrol als JSON-object...\n\t\t\tif(loginInfo.containsKey(\"group\")) lJsonObjectBuilder.add(\"group\", loginInfo.get(\"group\"));\n\t\t\tif(loginInfo.containsKey(\"klasnaam\")) lJsonObjectBuilder.add(\"klasnaam\", loginInfo.get(\"klasnaam\"));\n\t\t\tif(loginInfo.containsKey(\"klascode\")) lJsonObjectBuilder.add(\"klascode\", loginInfo.get(\"klascode\"));\n\t\t\tString lJsonOut = lJsonObjectBuilder.build().toString();\n\t\t\tconversation.sendJSONMessage(lJsonOut);\n\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t// terugsturen naar de Polymer-GUI!\n\t}", "void login(String user, String password);", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "public void loginPin(){\n\t\tstate = ATM_State.LOGINPIN;\n\t\tgui.setDisplay(\"Enter your account PIN: \\n\");\n\t}", "UserToken login(String username, String password) throws WorkspaceException;", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "public AdbLoginResponse loginScoinFromAdb(AdbLoginScoinRequest adbLoginScoinRequest);", "User login(Uuid id, String username, String password, Time creationTime);", "public static void authenticate() {\n\n Stage window = new Stage();\n\n final String url = OAUTH_URL + getQuery();\n\n BorderPane borderPane = new BorderPane();\n WebView browser = new WebView();\n WebEngine webEngine = browser.getEngine();\n\n webEngine.load(url);\n borderPane.setCenter(browser);\n\n webEngine.setOnStatusChanged(event -> {\n if (event.getSource() instanceof WebEngine) {\n WebEngine we = (WebEngine) event.getSource();\n String location = we.getLocation();\n // If we are redirected to REDIRECT_URL we get contents, and send it to verify() to get access token\n if (location.startsWith(REDIRECT_URL) && location.contains(\"code\") && AUTH_OBECT == null) try {\n URL url1 = new URL(location);\n String[] params = url1.getQuery().split(\"&\");\n Map<String, String> map = new HashMap<>();\n for (String param : params) {\n String name = param.split(\"=\")[0];\n String value = param.split(\"=\")[1];\n map.put(name, value);\n }\n String code = map.get(\"code\");\n // We have code so we continue the flow\n verify(code);\n window.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n // create scene\n window.setTitle(\"Authentication\");\n Scene scene = new Scene(borderPane, 750, 500);\n window.setScene(scene);\n window.showAndWait();\n }", "public Login() {\r\n\t\tinitialize();\r\n\t}", "public User login(String loginName, String password) throws UserBlockedException;", "public void login() throws IOException {\n\t\tApp.setRoot(\"LogIn\");\n\t}", "private void loginUser() throws JSONException, UnsupportedEncodingException {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"username\", editUserName.getText().toString());\n jsonObject.put(\"password\", editPassword.getText().toString());\n jsonObject.put(\"DeviceID\", diviceToken);\n jsonObject.put(\"DevicePlatform\", devicePlatform);\n invokeLogin(jsonObject);\n\n\n }", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public Person login(String username, String password);", "public String signIn(String username, String password);", "public void LogIn() {\n\t\t\r\n\t}", "Login() { \n }", "private void login() {\n if (blobStore != null) {\n return;\n }\n if (swiftUsername == null || swiftPassword == null || swiftAuthUrl == null || swiftContainer == null) {\n logger.error(\"Blob storage account is not configured\");\n throw new IllegalArgumentException(\"ERROR: Blob storage account is not configured\");\n }\n blobStore = ContextBuilder.newBuilder(blobApi)\n .endpoint(swiftAuthUrl)\n .credentials(swiftUsername, swiftPassword)\n .buildView(BlobStoreContext.class)\n .getBlobStore();\n\n if (!blobStore.containerExists(swiftContainer)) {\n// CreateContainerOptions options = CreateContainerOptions.Builder\n// .withMetadata(ImmutableMap.of(\"description\", \"E-PRTR data\"));\n// blobStore.createContainerInLocation(null, swiftContainer, options);\n Location location = getRegion();\n blobStore.createContainerInLocation(location, swiftContainer);\n }\n }", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "public void testLoginPIN() {\r\n try {\r\n tokenHandler.loginPIN(pinCode);\r\n tokenHandler.logoutPIN();\r\n } catch (Exception e) {\r\n fail(e.toString());\r\n }\r\n }", "@Override\n\tpublic SpaceUserVO login(SpaceUserVO spaceUserVO) throws Exception {\n\t\treturn null;\n\t}", "public void login(){\n JSONObject clientInfo = new JSONObject();\n try{\n clientInfo.put(\"username\", mUsername);\n clientInfo.put(\"password\", mPassword);\n clientInfo.put(\"deviceID\", getDeviceID());\n clientInfo.put(\"ipAddress\", getClientIP());\n mSocket.emit(\"login\", clientInfo);\n }catch(JSONException ex){\n throw new RuntimeException(ex);\n }\n }", "protected Response login(String environment) {\n environment = Strings.isNullOrEmpty(environment) ? \"\"\n : \"/\" + environment;\n JsonObject creds = new JsonObject();\n creds.addProperty(\"username\", \"admin\");\n creds.addProperty(\"password\", \"admin\");\n Response resp = post(environment + \"/login\", creds.toString());\n return resp;\n }", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "public Reply login(String hostname) throws ThingsException, InterruptedException;", "@Override\n public Map login(TreadmillStatus treadmillStatus) {\n TreadmillInfo treadmillInfo = new TreadmillInfo();\n BeanCoper.copyProperties(treadmillInfo, treadmillStatus);\n validateTreadmill(treadmillInfo);\n\n Map<String, Object> result = new HashMap<>();\n /*\n * Check this treadmill registered or not\n * If registered return token , else return nothing\n */\n // Set the default unlock status is locked\n treadmillStatus.setLockStatus(TreadmillStatusEnum.LOCKED.getValue());\n String token = StringUtils.getUUID();\n // Cache token to redis\n redisDbDao.setexBySerialize(TOKEN_PREFIX + token, DEFAULT_EXPIRE_SECONDS, treadmillStatus);\n // Token should be stored a copy in mysql in case of Server shutdown suddenly\n\n /*\n * Generate QRCode page url\n */\n JdUrl jdUrl = homeModule.getTarget(\"/v1/authPage\");\n // Set query criteria\n Map<String, Object> query = new LinkedHashMap<>();\n query.put(\"token\", token);\n\n jdUrl.setQuery(query);\n\n result.put(\"token\", token);\n // Url is like http://www.baidu.com?...\n result.put(\"url\", jdUrl.toString());\n\n return result;\n }", "public Result authenticate() {\r\n // 1. Define class to send JSON response back\r\n class Login {\r\n public Long id;\r\n public String gamerTag;\r\n public String token;\r\n\r\n public Login() {\r\n }\r\n }\r\n\r\n // 2. Read email and password from request()\r\n JsonNode request = request().body().asJson();\r\n String gamerTag = request.get(\"gamerTag\").asText();\r\n String password = request.get(\"password\").asText();\r\n\r\n // 3. Find user with given gamerTag\r\n Login ret = new Login();\r\n User user = User.gamerTagLogin(gamerTag);\r\n if (user == null) {\r\n return unauthorized(Json.toJson(ret));\r\n }\r\n // 4. Compare password.\r\n String sha256 = User.getSha256(request.get(\"password\").asText());\r\n if (sha256.equals(user.getPassword())) {\r\n // Success\r\n String authToken = generateAuthToken();\r\n user.setToken(authToken);\r\n Ebean.update(user);\r\n ret.token = authToken;\r\n ret.gamerTag = user.getGamerTag();\r\n ret.id = user.getId();\r\n return ok(Json.toJson(ret));\r\n\r\n }\r\n // 5. Unauthorized access\r\n return unauthorized();\r\n }", "private void logIn() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n\n String user = a[0];\n String password = a[1];\n boolean rez = service.checkPassword(user, password);\n if(rez == TRUE)\n System.out.println(\"Ok\");\n else\n System.out.println(\"Not ok\");\n }", "public User doAuthentication(String account, String password);", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "private void login(final String login, final String password, final String domainId) {\n checkCredentials(login, password);\n\n if (!login.isEmpty() && !password.isEmpty()) {\n Notification.activityStart();\n AuthentificationManager.getInstance()\n .authenticateOnSilverpeas(loginField.getText(), passwordField.getText(),\n domains.getSelectedValue(), null);\n }\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "@Override\n public void performLogin(String account, String password) {\n performLoginInternal(1, account, password);\n }", "private void signIn() {\n }", "void login(String cuid, String pass)\n throws RemoteException;", "private void authenticating(final String username, final String password) {\n final ProgressDialog progressDialog = new ProgressDialog(LoginActivity.this);\n progressDialog.setMessage(getResources().getString(R.string.wait));\n progressDialog.setIndeterminate(true);\n progressDialog.setCanceledOnTouchOutside(false);\n\n\n progressDialog.show();\n //waiting for 3sec before running this process\n\n\n //tester dans la base\n WebService.SendRequest(new LoginHandler(this, username, password, progressDialog));\n }", "@Override\n\tpublic void login() {\n\t\tAccountManager accountManager = AccountManager.get(context);\n\t\tAccount[] accounts = accountManager.getAccountsByType(GOOGLE_ACCOUNT_TYPE);\n\t\tif(accounts.length < 1) throw new NotAccountException(\"This device not has account yet\");\n\t\tfinal String userName = accounts[0].name;\n\t\tfinal String accountType = accounts[0].type;\n\t\tBundle options = new Bundle();\n\t\tif(comService.isOffLine()){\n\t\t\tsetCurrentUser(new User(userName, userName, accountType));\n\t\t\treturn;\n\t\t}\n\t\taccountManager.getAuthToken(accounts[0], AUTH_TOKEN_TYPE, options, (Activity)context, \n\t\t\t\tnew AccountManagerCallback<Bundle>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run(AccountManagerFuture<Bundle> future) {\n\t\t\t\t\t\tString token = \"\";\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tBundle result = future.getResult();\n\t\t\t\t\t\t\ttoken = result.getString(AccountManager.KEY_AUTHTOKEN);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsetCurrentUser(new User(userName, userName, accountType, token));\n\t\t\t\t\t\t} catch (OperationCanceledException e) {\n\t\t\t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(\"Login\", \"Token: \" + token);\n\t\t\t\t\t}\n\t\t\t\t}, new Handler(new Handler.Callback() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean handleMessage(Message msg) {\n\t\t\t\t\t\tLog.d(\"Login\", msg.toString());\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}));\n\t}", "public Login() {\n initComponents();\n KiemTraKN();\n }", "public void login(String username, String password) {\n User user = new User(username, password);\r\n String paramBodyJsonStr = new Gson().toJson(user);\r\n Logger.d(\"paramBodyJsonStr=\" + paramBodyJsonStr);\r\n // handle login\r\n AndroidNetworking.post()\r\n .setContentType(\"application/json; charset=utf-8\")\r\n .setTag(this)\r\n .setUrl(Constants.URL_LOGIN)\r\n .build()\r\n .setApplicationJsonString(paramBodyJsonStr)\r\n .setAnalyticsListener(analyticsListener)\r\n .getAsJSONObject(new JSONObjectRequestListener() {\r\n @Override\r\n public void onResponse(JSONObject result) {\r\n Logger.d(\"response result=\" + result.toString());\r\n Result<LoggedInUser> defultResult = loginRepository.getDataSource().login(username, password);\r\n LoggedInUser data = ((Result.Success<LoggedInUser>) defultResult).getData();\r\n loginResult.setValue(new LoginResult(new LoggedInUserView(data.getDisplayName())));\r\n }\r\n\r\n @Override\r\n public void onError(ANError anError) {\r\n loginResult.setValue(new LoginResult(new Result.Error(anError)));\r\n Logger.d(\"anError=\" + anError.toString());\r\n if (!TextUtils.isEmpty(anError.getErrorDetail())) {\r\n Logger.d(\"getMessage=\" + anError.getMessage() + \" getErrorDetail=\" + anError.getErrorDetail());\r\n }\r\n }\r\n });\r\n\r\n }", "@Override\n\tpublic ResultMessage login(String user_name, String password) throws RemoteException{\n\t\treturn null;\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-02-25 10:38:11.378 -0500\", hash_original_method = \"73F3340DC9AFFDCAEE47EFC3606433FD\", hash_generated_method = \"EE604B285EECDD6018DC5ABFCB02AF33\")\n \npublic void rlogin(String localUsername, String remoteUsername,\n String terminalType)\n throws IOException\n {\n rexec(localUsername, remoteUsername, terminalType, false);\n }", "public void login(String uname, String pwd) {\n username.type(uname);\n password.type(pwd);\n loginButton.click();\n }", "Document login(String username, String password);", "public login() {\n initComponents();\n \n \n }", "public LandingPage loginToAccount(){\n\t\taction.WaitForWebElement(linkLogin)\n\t\t\t .Click(linkLogin);\n\t\treturn this;\n\t}", "public ControleurVueLogin() {\n\n\t}", "public void doLogin(String username, String password) {\n typeUsername(username);\n typePassword(password);\n clickLoginButton();\n }", "public void userNormalLogin(String username, String password, FutureCallback<Response<JsonObject>> callback)\n\t{\n\t}", "@Override\n public void onLoginClicked(String username, String password) {\n loginView.showProgress();\n loginInteractor.authorize(username, password, this);\n }", "@Test\n\tpublic void loginWithValidCredentials(){\n\t\tapp.loginScreen().waitUntilLoaded();\n\t\tapp.loginScreen().logIn(Credentials.USER_VALID.username, Credentials.USER_VALID.password);\n\t\tassertTrue(app.userDashboardScreen().isActive());\n\t}", "private void doLogin() {\n\t\tSharedPreferences.Editor prefEditor = mSP.edit();\n\t\tSession.FirstLogin = true;\n\t\tmUserPin = et_password.getText().toString();\n\t\t// Time to update the session\n\t\tif (inTruckMode) {\n\t\t\tSession.setVehicle(vehicle);\n\t\t\tSession.setDriver(userDao.getByPin(mUserPin));\n\n\t\t\tprefEditor.putString(Config.VEHICLE_ID_KEY, vehicle.getId());\n\t\t\tprefEditor.putString(Config.LAST_VEHICLE_KEY, vehicle.getId());\n\t\t\tprefEditor.putString(Config.SITE_ID_KEY, null);\n\n\t\t\tSession.setType(SessionType.VEHICLE_SESSION);\n\t\t} else {\n\t\t\tSession.setSite(site);\n\t\t\tSession.setDriver(userDao.getByPin(mUserPin));\n\n\t\t\tprefEditor.putString(Config.VEHICLE_ID_KEY, null);\n\t\t\tprefEditor.putString(Config.LAST_VEHICLE_KEY, null);\n\t\t\tprefEditor.putString(Config.SITE_ID_KEY, site.getId());\n\n\t\t\tSession.setType(SessionType.SITE_SESSION);\n\t\t}\n\n\t\tstartupSync();\n\t\tstartSync();\n\n\t\tprefEditor.putString(Config.USER_PIN_KEY, mUserPin);\n\t\tprefEditor.putString(Config.LAST_USER_PIN_KEY, mUserPin);\n\t\tprefEditor.putString(Config.SYNC_SERVICE_KEY, \"yes\");\n\t\tprefEditor.commit();\n\n\t\t// if no VIMEI associated with truck, starting GPSService on SB device\n\t\tif (!vehiclesDao.xergoEsn(getApplicationContext())) {\n\t\t\tvimei = vehiclesDao.getVimei(this);\n\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.setAction(GPSService.UPDATE_IMEI_EVENT);\n\t\t\tintent.putExtra(\"Value\", vimei);\n\t\t\tsendBroadcast(intent);\n\n\t\t\tintent = new Intent();\n\t\t\tintent.setAction(GPSService.SEND_IGNITION_ON_EVENT);\n\t\t\tsendBroadcast(intent);\n\t\t}\n\n\t\tstartSession(mUserPin);\n\t\tIntent intent = new Intent(this, MapActivity.class);\n\t\tthis.startActivity(intent);\n\t\tfinish();\n\t}", "public void StartLogIn(){\n\t}", "public void login(final View v) {\n\n // validate login here\n dbHelper = new EMFMonitorDbHelper(this);\n db = dbHelper.getReadableDatabase();\n\n String username = usernameField.getText().toString();\n String password = passwordField.getText().toString();\n\n Cursor cur = db.rawQuery(\"SELECT * FROM users WHERE username = ? AND password = ?\",\n new String[] {username, password});\n\n if (cur.moveToFirst()) {\n if (cur.getInt(EMFMonitorDbHelper.CAN_WORK_INDEX) > 0) {\n Intent i = new Intent(this, MainActivity.class);\n i.putExtra(\"USERNAME\", username);\n i.putExtra(\"UID\", cur.getInt(EMFMonitorDbHelper.UID_INDEX));\n i.putExtra(\"UNITS\", cur.getString(EMFMonitorDbHelper.UNITS_INDEX));\n i.putExtra(\"ALARM_THRESHOLD\", cur.getDouble(EMFMonitorDbHelper.ALARM_THRESHOLD_INDEX));\n startActivity(i);\n finish();\n }\n else {\n Toast toast = Toast.makeText(this, \"You have been exposed to unsafe levels of EMF\", Toast.LENGTH_SHORT);\n toast.show();\n }\n }\n else {\n Toast toast = Toast.makeText(this, \"Invalid Username or Password\", Toast.LENGTH_SHORT);\n toast.show();\n }\n\n\n }", "@Override\r\n\tpublic void login() {\n\r\n\t}", "private void loginUser(String username, String password) {\n ParseUser.logInInBackground(username, password, new LogInCallback() {\n @Override\n public void done(ParseUser user, ParseException e) {\n if(e != null){\n Log.e(TAG, \"Issue with login: \"+e);\n Toast.makeText(LoginActivity.this, e+\"\", Toast.LENGTH_SHORT);\n return;\n }\n\n linkOneSignalID(ParseUser.getCurrentUser());\n goMainActivity();\n Toast.makeText(LoginActivity.this, \"Success!\", Toast.LENGTH_SHORT);\n }\n });\n }", "public void login(AuthenticationRequest auth_request)\n throws AuthorizationException, TException, AuthenticationException\n {\n for (Cassandra.Client client : addressToClient.values()) {\n long returnTime = client.login(auth_request, LamportClock.sendTimestamp());\n LamportClock.updateTime(returnTime);\n }\n }", "public AuthResponse loginAccount(Account acc){\n Call<AuthResponse> call = endpoints.loginAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "@Override\n\tpublic void sendLogin() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\tString result = \"\";\n\t\t\tif (this.servType.equals(SERVICE_TYPE_SOAP)){\n\t\t\t\tresult = server.login();\n\t\t\t} else {\n\t\t\t\tWebResource loginService = service.path(URI_LOGIN);\n\t\t\t\tresult = loginService.accept(MediaType.TEXT_PLAIN).get(String.class);\n\t\t\t}\n\t\t\t//get the clientId\n\t\t\tclientId = Integer.parseInt(result);\n\t\t\t//set the status\n\t\t\tgui.setStatus(\"Successfully logged in! Obtained client ID: \"+clientId+\" from server!\");\n\t\t\t//immediately send the request for the list of items\n\t\t\tsendItemListRequest();\n\t\t} catch (ClientHandlerException ex){\n\t\t\t//exceptions for REST service\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The RESTFul server is not responding!! Closing application...\");\n\t\t\tSystem.exit(0);\n\t\t} catch (WebServiceException ex){\n\t\t\t//exceptions for SOAP-RPC service\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The SOAP-RPC server is not responding!! Closing application...\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void clickLogin() {\n\t\tcontinueButton.click();\n\t}", "public AgentDTO login(String login, String senha);", "public com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse login(\n com.outlook.octavio.armenta.ws.SOAPServiceStub.Login login2)\n throws java.rmi.RemoteException {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n try {\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions()\n .setAction(\"http://tempuri.org/ISOAPService/Login\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n addPropertyToOperationClient(_operationClient,\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\n \"&\");\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n\n env = toEnvelope(getFactory(_operationClient.getOptions()\n .getSoapVersionURI()),\n login2,\n optimizeContent(\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\n \"login\")),\n new javax.xml.namespace.QName(\"http://tempuri.org/\", \"Login\"));\n\n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n\n java.lang.Object object = fromOM(_returnEnv.getBody()\n .getFirstElement(),\n com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse.class);\n\n return (com.outlook.octavio.armenta.ws.SOAPServiceStub.LoginResponse) object;\n } catch (org.apache.axis2.AxisFault f) {\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n\n if (faultElt != null) {\n if (faultExceptionNameMap.containsKey(\n new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"))) {\n //make the fault by reflection\n try {\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\n //message class\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\n faultElt.getQName(), \"Login\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,\n messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[] { messageClass });\n m.invoke(ex, new java.lang.Object[] { messageObject });\n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n } catch (java.lang.ClassCastException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n } else {\n throw f;\n }\n } else {\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender()\n .cleanup(_messageContext);\n }\n }\n }", "@Test(description = \"Login con credenciales correctas\", enabled = false)\n\tpublic void login() {\n\t\tPageLogin pageLogin = new PageLogin(driver);\n\t\tPageReservation pageReservation = new PageReservation(driver);\n\t\tpageLogin.login(\"mercury\", \"imercury\");\n\t\tpageReservation.assertPage();\n\t\t//****Este código se cambió por A****\n\t\t/*driver.findElement(By.name(\"userName\")).sendKeys(\"mercury\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"mercury\");\n\t\tdriver.findElement(By.name(\"login\")).click();*/\n\t\t//******todo este código que se repite se cambió por B****\n\t\t/*try {\n\t\t\tThread.sleep(5);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t//****código B****\n\t\t/*Helpers helper = new Helpers();\n\t\thelper.sleepSeconds(4);*/\n\t\t//este codigo pasa a la Page Object(page reservation)\n\t\t//Assert.assertTrue(driver.findElement(By.xpath(\"/html/body/div/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[3]/td/font\")).getText().contains(\"Flight Finder to search\"));\n\t}", "@GET(\"/login\")\n Call<LoginResponse> loginRequest(@Path(\"username\") String username\n , @Path(\"password\") String password);", "public void login() {\n String appId = \"404127593399770\";\n String redirectUrl = \"https://www.facebook.com/connect/login_success.html\";\n String loginDialogUrl = facebookClient.getLoginDialogUrl(appId, redirectUrl, scopeBuilder);\n Gdx.net.openURI(loginDialogUrl);\n }", "public void btnLoginClicked() {\n String username = txfUsername.getText();\n String password = txfPassword.getText();\n DatabaseController database = new DatabaseController(new TuDbConnectionFactory());\n Authentication auth = new Authentication(database);\n if (auth.signIn(username, password)) {\n Player player = new Player(username, database.getPersonalTopScore(username));\n game.setScreen(new PreGameScreen(game,\"music/bensound-funkyelement.mp3\", player));\n } else {\n txfUsername.setColor(Color.RED);\n txfPassword.setColor(Color.RED);\n }\n }", "public LoginResponse login(LoginRequest request, String urlPath) throws IOException, TweeterRemoteException {\n LoginResponse response = clientCommunicator.doPost(urlPath, request, null, LoginResponse.class);\n if(response.isSuccess()) {\n return response;\n } else {\n throw new RuntimeException(response.getMessage());\n }\n }", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "public void login(){\n if (this.method.equals(\"Facebook\")){\n Scanner in = new Scanner(System.in);\n\n System.out.println(\"Enter your Facebook username :\");\n String username = in.next();\n\n System.out.println(\"Enter your Facebook password :\");\n String password = in.next();\n\n connector.connectToDb();\n\n System.out.println(\"Success : Logged In !\");\n }\n }", "void loginDone();", "public void loginAlert() {\n\t\tDialog<Pair<String, String>> dialog = new Dialog<>();\n\t\tdialog.setTitle(\"Login Dialog\");\n\t\tdialog.setHeaderText(\"Look, a Custom Login Dialog\");\n\n\t\t// Set the icon (must be included in the project).\n\t\tdialog.setGraphic(new ImageView(this.getClass().getResource(\"file:src/vista/img/usuario.png\").toString()));\n\n\t\t// Set the button types.\n\t\tButtonType loginButtonType = new ButtonType(\"Login\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().addAll(loginButtonType, ButtonType.CANCEL);\n\n\t\t// Create the username and password labels and fields.\n\t\tGridPane grid = new GridPane();\n\t\tgrid.setHgap(10);\n\t\tgrid.setVgap(10);\n\t\tgrid.setPadding(new Insets(20, 150, 10, 10));\n\n\t\tTextField username = new TextField();\n\t\tusername.setPromptText(\"Username\");\n\t\tPasswordField password = new PasswordField();\n\t\tpassword.setPromptText(\"Password\");\n\n\t\tgrid.add(new Label(\"Username:\"), 0, 0);\n\t\tgrid.add(username, 1, 0);\n\t\tgrid.add(new Label(\"Password:\"), 0, 1);\n\t\tgrid.add(password, 1, 1);\n\n\t\t// Enable/Disable login button depending on whether a username was entered.\n\t\tNode loginButton = dialog.getDialogPane().lookupButton(loginButtonType);\n\t\tloginButton.setDisable(true);\n\n\t\t// Do some validation (using the Java 8 lambda syntax).\n\t\tusername.textProperty().addListener((observable, oldValue, newValue) -> {\n\t\t loginButton.setDisable(newValue.trim().isEmpty());\n\t\t});\n\n\t\tdialog.getDialogPane().setContent(grid);\n\n\t\t// Request focus on the username field by default.\n\t\tPlatform.runLater(() -> username.requestFocus());\n\n\t\t// Convert the result to a username-password-pair when the login button is clicked.\n\t\tdialog.setResultConverter(dialogButton -> {\n\t\t if (dialogButton == loginButtonType) {\n\t\t return new Pair<>(username.getText(), password.getText());\n\t\t }\n\t\t return null;\n\t\t});\n\n\t\tOptional<Pair<String, String>> result = dialog.showAndWait();\n\n\t\tresult.ifPresent(usernamePassword -> {\n\t\t System.out.println(\"Username=\" + usernamePassword.getKey() + \", Password=\" + usernamePassword.getValue());\n\t\t});\n\t}", "public static Result login() {\n String csrfToken = \"\";\n return serveAsset(\"\");\n }", "public abstract void login(\r\n com.google.protobuf.RpcController controller,\r\n PbDemoProto.Login_C2S request,\r\n com.google.protobuf.RpcCallback<PbDemoProto.Login_S2C> done);", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "User login(String username, String password);", "public login() {\r\n\t\tsuper();\r\n\t}" ]
[ "0.6194595", "0.6172504", "0.6101661", "0.60233116", "0.60224426", "0.60152143", "0.600175", "0.5989436", "0.5951228", "0.5913772", "0.5909098", "0.59056354", "0.5864548", "0.58620954", "0.5853213", "0.58430314", "0.58218145", "0.5811605", "0.5799396", "0.5776659", "0.57727873", "0.574661", "0.5721905", "0.5694205", "0.5680597", "0.5677667", "0.56683844", "0.5666427", "0.56512356", "0.56512356", "0.5606089", "0.5597722", "0.55788755", "0.55782616", "0.55739254", "0.5569446", "0.5567265", "0.55610025", "0.55523604", "0.55496657", "0.55336374", "0.5529639", "0.55275327", "0.5514384", "0.55071706", "0.54970974", "0.5471396", "0.5461078", "0.545065", "0.54489404", "0.5444624", "0.5435129", "0.5434553", "0.543324", "0.54317456", "0.5428931", "0.5428373", "0.5416275", "0.54104805", "0.54060376", "0.5404454", "0.5402613", "0.5391157", "0.53895235", "0.53852546", "0.5382614", "0.53630424", "0.5349742", "0.5344816", "0.5322175", "0.53210735", "0.53184736", "0.5314594", "0.5313897", "0.5307586", "0.53042024", "0.53038913", "0.53025097", "0.5294629", "0.52928066", "0.5290181", "0.5290011", "0.5285738", "0.5281778", "0.52781034", "0.5277461", "0.5272994", "0.5262624", "0.5256963", "0.5255913", "0.5254279", "0.5251587", "0.525094", "0.5244941", "0.5233841", "0.52315885", "0.52287054", "0.52279854", "0.5227491", "0.52227634", "0.52181304" ]
0.0
-1
Login to vault using
public Optional<AuthLoginTokenFile> authLoginTokenFile() { return Codegen.objectProp("authLoginTokenFile", AuthLoginTokenFile.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "protected Response login() {\n return login(\"\");\n }", "void login(String user, String password);", "private void login(String username,String password){\n\n }", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "protected void login() {\n\t\t\r\n\t}", "User login(Uuid id, String username, String password, Time creationTime);", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "public abstract void login(String userName, String password) throws RemoteException;", "String login(String userName, String password) throws RemoteException, InterruptedException;", "public User login(String loginName, String password) throws UserBlockedException;", "public Reply login(String hostname) throws ThingsException, InterruptedException;", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "protected Response login(String environment) {\n environment = Strings.isNullOrEmpty(environment) ? \"\"\n : \"/\" + environment;\n JsonObject creds = new JsonObject();\n creds.addProperty(\"username\", \"admin\");\n creds.addProperty(\"password\", \"admin\");\n Response resp = post(environment + \"/login\", creds.toString());\n return resp;\n }", "private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSystem.out.println(\"Welcome to AnnyBank\");\n\n\t\ttransactions();\n\t}", "LoginContext login(String username, String password) throws LoginException;", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "public int login(String username, String password) \n {\n\treturn this.acctCtrl.login(username, password);\n\n }", "UserToken login(String username, String password) throws WorkspaceException;", "public ControleurVueLogin() {\n\n\t}", "void login(String cuid, String pass)\n throws RemoteException;", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}", "private void logIn() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n\n String user = a[0];\n String password = a[1];\n boolean rez = service.checkPassword(user, password);\n if(rez == TRUE)\n System.out.println(\"Ok\");\n else\n System.out.println(\"Not ok\");\n }", "public AdbLoginResponse loginScoinFromAdb(AdbLoginScoinRequest adbLoginScoinRequest);", "private void login() {\n if (blobStore != null) {\n return;\n }\n if (swiftUsername == null || swiftPassword == null || swiftAuthUrl == null || swiftContainer == null) {\n logger.error(\"Blob storage account is not configured\");\n throw new IllegalArgumentException(\"ERROR: Blob storage account is not configured\");\n }\n blobStore = ContextBuilder.newBuilder(blobApi)\n .endpoint(swiftAuthUrl)\n .credentials(swiftUsername, swiftPassword)\n .buildView(BlobStoreContext.class)\n .getBlobStore();\n\n if (!blobStore.containerExists(swiftContainer)) {\n// CreateContainerOptions options = CreateContainerOptions.Builder\n// .withMetadata(ImmutableMap.of(\"description\", \"E-PRTR data\"));\n// blobStore.createContainerInLocation(null, swiftContainer, options);\n Location location = getRegion();\n blobStore.createContainerInLocation(location, swiftContainer);\n }\n }", "public Person login(String username, String password);", "public void login(String uname, String pwd) {\n username.type(uname);\n password.type(pwd);\n loginButton.click();\n }", "public com.sun.jna.PointerType login(Credentials c) throws RelationException;", "User login(String username, String password);", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public Pair<UUID, Boolean> login(String username,\n String password) {\n return tradingSystemFacade.login(username, password);\n }", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "public String signIn(String username, String password);", "public int logIn() {\n guestPresenter.printLogInMessage();\n int id = requestInt(\"id\");\n char[] password = requestString(\"password\").toCharArray();\n UserManager.UserType user = guestManager.logIn(id, password);\n\n if (user == null) {\n guestPresenter.logInFailure();\n return -1;\n } else {\n return id;\n }\n }", "public Login() {\r\n\t\tinitialize();\r\n\t}", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "public String getVaultPassword() {\n return vaultPassword;\n }", "Login() { \n }", "public void loginAsTom() {\n textFieldUsername.withTimeoutOf(2000, MILLIS).type(\"tomsmith\");\n textFieldPassword.type(\"SuperSecretPassword!\");\n buttonLogin.click();\n }", "public void login() throws IOException {\n\t\tApp.setRoot(\"LogIn\");\n\t}", "public void onClick(View v) {\n\t\t\t\tString usernameField = username.getText().toString();\n\t\t\t\tString passwordField = password.getText().toString();\n\n\t\t\t\t// login with this information\n\t\t\t\tlogin(usernameField, passwordField);\n\t\t\t\t\n\t\t\t}", "public String getVault() {\n return vault;\n }", "public void login(){\n JSONObject clientInfo = new JSONObject();\n try{\n clientInfo.put(\"username\", mUsername);\n clientInfo.put(\"password\", mPassword);\n clientInfo.put(\"deviceID\", getDeviceID());\n clientInfo.put(\"ipAddress\", getClientIP());\n mSocket.emit(\"login\", clientInfo);\n }catch(JSONException ex){\n throw new RuntimeException(ex);\n }\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "Document login(String username, String password);", "private void login(final String login, final String password, final String domainId) {\n checkCredentials(login, password);\n\n if (!login.isEmpty() && !password.isEmpty()) {\n Notification.activityStart();\n AuthentificationManager.getInstance()\n .authenticateOnSilverpeas(loginField.getText(), passwordField.getText(),\n domains.getSelectedValue(), null);\n }\n }", "public void LogIn() {\n\t\t\r\n\t}", "public void login(View v) {\n if (validateLogin()) {\n attemptLogin();\n }\n }", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "public LoginResult login() {\n\t\tif (!auth.isLoggedIn())\n\t\t\treturn LoginResult.MAIN_LOGOUT;\n\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_INDEX);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tArrayList<Cookie> tmpCookies = Cookie.getCookies(conn);\n\t\t\taws = Cookie.getCookie(tmpCookies, \"AWSELB\");\n\t\t\tphp = Cookie.getCookie(tmpCookies, \"PHPSESSID\");\n\t\t\t\n\t\t\tconn = Utility.getGetConn(FUND_LOGIN);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tString location = Utility.getLocation(conn);\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t// TODO: future speed optimization\n\t\t\t//if (auth.getPHPCookie() == null) {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie()));\n\t\t\t\tCookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), \"PHPSESSID\");\n\t\t\t\t// saves time for Blackboard and retrieveProfileImage().\n\t\t\t\tauth.setPHPCookie(phpCookie);\n\t\t\t\t\n\t\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\t\n\t\t\t\tlocation = Utility.getLocation(conn);\n\t\t\t\tif (location.startsWith(\"signin.aspx\"))\n\t\t\t\t\tlocation = \"https://eraider.ttu.edu/\" + location;\n\t\t\t\tconn = Utility.getGetConn(location);\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\t// might need to set ESI and ELC here. If other areas are bugged, this is why.\n\t\t\t/*} else {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie()));\n\t\t\t\t/// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!!\n\t\t\t\tthrow new NullPointerException(\"Needs implementation!\");\n\t\t\t}*/\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/login.php?ticket=ST-...\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/funds_home.php\n\t\t\tlocation = Utility.getLocation(conn);\n\t\t\tif (location.startsWith(\"index.\")) {\n\t\t\t\tlocation = \"https://get.cbord.com/raidercard/full/\" + location;\n\t\t\t}\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tUtility.readByte(conn);\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundlogin\", ErrorType.Fatal);\n\t\t\treturn LoginResult.OTHER;\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundlogingeneral\", ErrorType.APIChange);\n\t\t\treturn LoginResult.OTHER;\n\t\t}\n\n\t\tloggedIn = true;\n\n\t\treturn LoginResult.SUCCESS;\n\t}", "@Override\r\n\tpublic UserVO login(LoginUserVO user) {\n\t\treturn login.login(user);\r\n\t}", "public login() {\r\n\t\tsuper();\r\n\t}", "private void loginHandler(RoutingContext context) {\n JsonObject creds = new JsonObject()\n .put(\"username\", context.getBodyAsJson().getString(\"username\"))\n .put(\"password\", context.getBodyAsJson().getString(\"password\"));\n\n // TODO : Authentication\n context.response().setStatusCode(500).end();\n }", "private void login(Conversation conversation) {\n\t\tJsonObject lJsonObjIn = (JsonObject) conversation.getRequestBodyAsJSON();\n\t\t\n\t\tString lGebruikersnaam = lJsonObjIn.getString(\"username\");\t\t\t\t\t\t// Uitlezen van opgestuurde inloggegevens... \n\t\tString lWachtwoord = lJsonObjIn.getString(\"password\");\n\t\tMap<String, String> loginInfo = informatieSysteem.loginDetails(lGebruikersnaam,lWachtwoord);\n\n\t\tif(loginInfo.isEmpty())\n\t\t{\n\t\t\t//LOGIN FAILED !\n\t\t\tconversation.sendJSONMessage(\"{\\\"rol\\\":\\\"undefined\\\"}\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJsonObjectBuilder lJsonObjectBuilder = Json.createObjectBuilder();\n\t\t\tlJsonObjectBuilder.add(\"rol\", loginInfo.get(\"rol\"));\n\t\t\tlJsonObjectBuilder.add(\"voornaam\", loginInfo.get(\"voornaam\"));\n\t\t\tlJsonObjectBuilder.add(\"achternaam\", loginInfo.get(\"achternaam\"));\n\t\t\tlJsonObjectBuilder.add(\"identificatienummer\", loginInfo.get(\"identificatienummer\"));\t\t// en teruggekregen gebruikersrol als JSON-object...\n\t\t\tif(loginInfo.containsKey(\"group\")) lJsonObjectBuilder.add(\"group\", loginInfo.get(\"group\"));\n\t\t\tif(loginInfo.containsKey(\"klasnaam\")) lJsonObjectBuilder.add(\"klasnaam\", loginInfo.get(\"klasnaam\"));\n\t\t\tif(loginInfo.containsKey(\"klascode\")) lJsonObjectBuilder.add(\"klascode\", loginInfo.get(\"klascode\"));\n\t\t\tString lJsonOut = lJsonObjectBuilder.build().toString();\n\t\t\tconversation.sendJSONMessage(lJsonOut);\n\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t// terugsturen naar de Polymer-GUI!\n\t}", "@Test\n\tpublic void loginWithValidCredentials(){\n\t\tapp.loginScreen().waitUntilLoaded();\n\t\tapp.loginScreen().logIn(Credentials.USER_VALID.username, Credentials.USER_VALID.password);\n\t\tassertTrue(app.userDashboardScreen().isActive());\n\t}", "private void logIn(LogSignTemplate credentials){\n Call<LogSignTemplate> callNewTrack = nightAPI.authorize(credentials);\n callNewTrack.enqueue(new Callback<LogSignTemplate>() {\n @Override\n public void onResponse(Call<LogSignTemplate> call, Response<LogSignTemplate> response) {\n if(response.isSuccessful()){\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// SUCCESFUL LOGIN !!!!!!!!!!!!!!! /////////////////////////////////////\");\n Toasty.success(getContext(), \"Succes, welcome.\", Toast.LENGTH_SHORT, true).show();\n Intent intent = new Intent(getContext(), MenuActivity.class);\n startActivity(intent);\n }\n else{\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// NO SUCCESFUL RESPONSE /////////////////////////////////////\");\n Toasty.error(getContext(), \"Incorrect username or password.\", Toast.LENGTH_SHORT, true).show();\n }\n }\n\n @Override\n public void onFailure(Call<LogSignTemplate> call, Throwable t) {\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////////// ERROR /////////////////////////////////\");\n Toasty.error(getContext(), \"Error while validating..\", Toast.LENGTH_SHORT, true).show();\n t.printStackTrace();\n }\n });\n }", "SqlVirtualMachineManager authenticate(AzureTokenCredentials credentials, String subscriptionId);", "@Override\n\tpublic SpaceUserVO login(SpaceUserVO spaceUserVO) throws Exception {\n\t\treturn null;\n\t}", "public void login(String username, String password, Context context) {\n\t\tUserVO userVO = new UserVO();\n\t\tuserVO.setId(username);\n\t\tuserVO.setPassword(password);\n\t\t\n\t\tLoginTask loginTask = new LoginTask();\n\t\tloginTask.setContext(context);\n\t\tloginTask.execute(userVO);\n\t}", "private void loginUser() throws JSONException, UnsupportedEncodingException {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"username\", editUserName.getText().toString());\n jsonObject.put(\"password\", editPassword.getText().toString());\n jsonObject.put(\"DeviceID\", diviceToken);\n jsonObject.put(\"DevicePlatform\", devicePlatform);\n invokeLogin(jsonObject);\n\n\n }", "public void signIn()\r\n {\r\n FoodCenterRequestFactory factory = AndroidRequestUtils.getFoodCenterRF(context);\r\n ClientServiceRequest service = factory.getClientService();\r\n\r\n service.login(regId).fire(this);\r\n }", "RequestResult loginRequest() throws Exception;", "private void authenticate(String user, String pass) {\n }", "public String login(String username, String password){\n return login.login(username, password);\n }", "public void StartLogIn(){\n\t}", "public static void login(Lookup lookup) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tSystem.out.println(\"Enter your UserName: \");\r\n\t\t\t\r\n\t\t\tString name = sc.nextLine();\r\n\r\n\t\t\tSystem.out.println(\"Enter your Password: \");\r\n\t\t\t\r\n\t\t\tString pass = sc.nextLine();\r\n\r\n\t\t\tsUser = lookup.checkLoginAuth(name, pass);\r\n\r\n\t\t} catch (InvalidInputException e) {\r\n\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tSystem.err.flush();\r\n\r\n\t\t}\r\n\r\n\t}", "public void login(final View v) {\n\n // validate login here\n dbHelper = new EMFMonitorDbHelper(this);\n db = dbHelper.getReadableDatabase();\n\n String username = usernameField.getText().toString();\n String password = passwordField.getText().toString();\n\n Cursor cur = db.rawQuery(\"SELECT * FROM users WHERE username = ? AND password = ?\",\n new String[] {username, password});\n\n if (cur.moveToFirst()) {\n if (cur.getInt(EMFMonitorDbHelper.CAN_WORK_INDEX) > 0) {\n Intent i = new Intent(this, MainActivity.class);\n i.putExtra(\"USERNAME\", username);\n i.putExtra(\"UID\", cur.getInt(EMFMonitorDbHelper.UID_INDEX));\n i.putExtra(\"UNITS\", cur.getString(EMFMonitorDbHelper.UNITS_INDEX));\n i.putExtra(\"ALARM_THRESHOLD\", cur.getDouble(EMFMonitorDbHelper.ALARM_THRESHOLD_INDEX));\n startActivity(i);\n finish();\n }\n else {\n Toast toast = Toast.makeText(this, \"You have been exposed to unsafe levels of EMF\", Toast.LENGTH_SHORT);\n toast.show();\n }\n }\n else {\n Toast toast = Toast.makeText(this, \"Invalid Username or Password\", Toast.LENGTH_SHORT);\n toast.show();\n }\n\n\n }", "@Override\n\tpublic ResultMessage login(String user_name, String password) throws RemoteException{\n\t\treturn null;\n\t}", "private LogIn() {}", "public AuthResponse loginAccount(Account acc){\n Call<AuthResponse> call = endpoints.loginAcc(acc);\n AuthResponse serverResponse = null;\n try {\n serverResponse = call.execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return serverResponse;\n }", "public void cl_login(String uname, String pwd)\n\t{\n\t\tEnter(txt_uname, uname);\n\t\tEnter(txt_pwd, pwd);\n\t\tClick(btn_login);\n\t\t\n\t}", "public void authenticate(LoginCredentials credentials) throws LoginException;", "@Override\r\n\tpublic void login() {\n\r\n\t}", "void login(String userName) throws IllegalArgumentException, IOException;", "public void onLoginClick(View view) {\n dialog = initLoadingDialog();\n etUsername = findViewById(R.id.etUsername);\n etPassword = findViewById(R.id.etPassword);\n viewModel.login(etUsername.getText().toString().toLowerCase());\n }", "SignedObject authenticate(String username, String hashedPassword) throws RemoteException, Exception;", "public User doAuthentication(String account, String password);", "private void loginClient() throws IOException {\n\t\tString instanceID = UUID.randomUUID().toString();\r\n\t\tString loginName = fromClient.readLine();\r\n\t\t\r\n\t\tif (clientTable.has(loginName)) {\r\n\t\t\tString password = fromClient.readLine();\r\n\t\t\t\r\n\t\t\tif (!clientTable.testPassword(loginName, password)) toClient.println(Commands.INVALID_PASSWORD);\r\n\t\t\telse {\r\n\t\t\t\tReport.behaviour(loginName + \" has connected\");\r\n\t\t\t\t\r\n\t\t\t\t//tells the client the connection was a success\r\n\t\t\t\ttoClient.println(Commands.CONNECTION_SUCCESS);\r\n\t\t\t\t\r\n\t\t\t\t//adds a running queue to the account\r\n\t\t\t\tclientTable.addQueue(loginName, instanceID);\r\n\t\t\t\t\r\n\t\t\t\t//create threads\r\n\t\t\t\tmakeThreads(loginName, instanceID);\r\n\t\t\t}\r\n\t\t} \r\n\t\t\r\n\t\t//send error messages if the login was unsuccessful\r\n\t\telse toClient.println(Commands.USER_NOT_FOUND);\r\n\t}", "void login(String email, String password) throws InvalidCredentialsException, IOException;", "public void login(){\n if (this.method.equals(\"Facebook\")){\n Scanner in = new Scanner(System.in);\n\n System.out.println(\"Enter your Facebook username :\");\n String username = in.next();\n\n System.out.println(\"Enter your Facebook password :\");\n String password = in.next();\n\n connector.connectToDb();\n\n System.out.println(\"Success : Logged In !\");\n }\n }", "User signIn(String login, String password);", "private String getVaultToken(MagnoliaConfigurationProperties magnoliaConfigurationProperties) {\n return magnoliaConfigurationProperties.getProperty(PROPERTY_VAULT_TOKEN);\n }", "@Override\n\tpublic void sendLogin() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\tString result = \"\";\n\t\t\tif (this.servType.equals(SERVICE_TYPE_SOAP)){\n\t\t\t\tresult = server.login();\n\t\t\t} else {\n\t\t\t\tWebResource loginService = service.path(URI_LOGIN);\n\t\t\t\tresult = loginService.accept(MediaType.TEXT_PLAIN).get(String.class);\n\t\t\t}\n\t\t\t//get the clientId\n\t\t\tclientId = Integer.parseInt(result);\n\t\t\t//set the status\n\t\t\tgui.setStatus(\"Successfully logged in! Obtained client ID: \"+clientId+\" from server!\");\n\t\t\t//immediately send the request for the list of items\n\t\t\tsendItemListRequest();\n\t\t} catch (ClientHandlerException ex){\n\t\t\t//exceptions for REST service\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The RESTFul server is not responding!! Closing application...\");\n\t\t\tSystem.exit(0);\n\t\t} catch (WebServiceException ex){\n\t\t\t//exceptions for SOAP-RPC service\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The SOAP-RPC server is not responding!! Closing application...\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void btnLoginClicked() {\n String username = txfUsername.getText();\n String password = txfPassword.getText();\n DatabaseController database = new DatabaseController(new TuDbConnectionFactory());\n Authentication auth = new Authentication(database);\n if (auth.signIn(username, password)) {\n Player player = new Player(username, database.getPersonalTopScore(username));\n game.setScreen(new PreGameScreen(game,\"music/bensound-funkyelement.mp3\", player));\n } else {\n txfUsername.setColor(Color.RED);\n txfPassword.setColor(Color.RED);\n }\n }", "private ServicioLogin() {\n super();\n }", "@Test\n public void bTestLogin(){\n given()\n .param(\"username\", \"playlist\")\n .param(\"password\", \"playlist\")\n .post(\"/login\")\n .then()\n .statusCode(200);\n }", "void initiateLogin() {\n\t\tString username = this.mAuthUsername.getText().toString();\n\t\tString password = this.mAuthPassword.getText().toString();\n\t\t\n\t\tfetch();\n\t\tthis.mAuthTask = new AuthenticationTask(this, this, username, password);\n\t\tthis.mAuthTask.execute();\n\t}", "@Override\n public Map login(TreadmillStatus treadmillStatus) {\n TreadmillInfo treadmillInfo = new TreadmillInfo();\n BeanCoper.copyProperties(treadmillInfo, treadmillStatus);\n validateTreadmill(treadmillInfo);\n\n Map<String, Object> result = new HashMap<>();\n /*\n * Check this treadmill registered or not\n * If registered return token , else return nothing\n */\n // Set the default unlock status is locked\n treadmillStatus.setLockStatus(TreadmillStatusEnum.LOCKED.getValue());\n String token = StringUtils.getUUID();\n // Cache token to redis\n redisDbDao.setexBySerialize(TOKEN_PREFIX + token, DEFAULT_EXPIRE_SECONDS, treadmillStatus);\n // Token should be stored a copy in mysql in case of Server shutdown suddenly\n\n /*\n * Generate QRCode page url\n */\n JdUrl jdUrl = homeModule.getTarget(\"/v1/authPage\");\n // Set query criteria\n Map<String, Object> query = new LinkedHashMap<>();\n query.put(\"token\", token);\n\n jdUrl.setQuery(query);\n\n result.put(\"token\", token);\n // Url is like http://www.baidu.com?...\n result.put(\"url\", jdUrl.toString());\n\n return result;\n }", "public void doLogin(String username, String password) {\n typeUsername(username);\n typePassword(password);\n clickLoginButton();\n }", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "public InboxPage login(String email, String password) {\n enterEmailOrPhone(email).clickOnNext().enterPassword(password);\n return clickPasswordNext();\n }", "public void loginPin(){\n\t\tstate = ATM_State.LOGINPIN;\n\t\tgui.setDisplay(\"Enter your account PIN: \\n\");\n\t}" ]
[ "0.64736617", "0.62114394", "0.6126528", "0.6109893", "0.6085969", "0.60588527", "0.60279745", "0.59955025", "0.5970518", "0.5970341", "0.59693766", "0.59662783", "0.5927412", "0.59242296", "0.59021205", "0.5869405", "0.5866831", "0.5861245", "0.5831453", "0.5818742", "0.58139354", "0.580288", "0.579754", "0.5793524", "0.5792908", "0.57669353", "0.57669353", "0.57293457", "0.57262397", "0.5707829", "0.56548184", "0.5640812", "0.56373686", "0.56331486", "0.56249547", "0.5621227", "0.56162876", "0.560152", "0.55998254", "0.5594685", "0.558771", "0.5576895", "0.5572118", "0.5571918", "0.55647254", "0.5562138", "0.55555224", "0.55521125", "0.5548842", "0.55471003", "0.55209064", "0.55189633", "0.5500247", "0.549537", "0.5495156", "0.5483902", "0.54770404", "0.5474253", "0.5466853", "0.5457407", "0.5454537", "0.5447102", "0.5445735", "0.5436842", "0.54293686", "0.5421202", "0.5415106", "0.54117966", "0.5408544", "0.539456", "0.53927374", "0.5388801", "0.53869385", "0.5379704", "0.53791976", "0.5372663", "0.5370578", "0.5369645", "0.5359725", "0.5355041", "0.53424555", "0.533697", "0.53355443", "0.5331272", "0.53298914", "0.53284836", "0.5320872", "0.5320054", "0.5312865", "0.53069603", "0.53059196", "0.5302417", "0.530137", "0.53005713", "0.5299818", "0.529719", "0.5279141", "0.5273188", "0.5256263", "0.52554536", "0.52494246" ]
0.0
-1
Login to vault using the userpass method
public Optional<AuthLoginUserpass> authLoginUserpass() { return Codegen.objectProp("authLoginUserpass", AuthLoginUserpass.class).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void login(String user, String password);", "void login(String cuid, String pass)\n throws RemoteException;", "private void authenticate(String user, String pass) {\n }", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "private void logIn() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n\n String user = a[0];\n String password = a[1];\n boolean rez = service.checkPassword(user, password);\n if(rez == TRUE)\n System.out.println(\"Ok\");\n else\n System.out.println(\"Not ok\");\n }", "public User login(String loginName, String password) throws UserBlockedException;", "private void login(String username,String password){\n\n }", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "public abstract void login(String userName, String password) throws RemoteException;", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "public void login(String uname, String pwd) {\n username.type(uname);\n password.type(pwd);\n loginButton.click();\n }", "public void setPassword(String pass);", "protected void login() {\n\t\t\r\n\t}", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "public int login(String username, String password) \n {\n\treturn this.acctCtrl.login(username, password);\n\n }", "protected Response login() {\n return login(\"\");\n }", "String login(String userName, String password) throws RemoteException, InterruptedException;", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }", "private void logIn() {\n char[] password = jPasswordField1.getPassword();\n String userCode = jTextField1.getText();\n\n String txtpassword = \"\";\n for (char pw : password) {\n txtpassword += pw;\n }\n if (\"\".equals(txtpassword)) {\n JOptionPane.showMessageDialog(this, textBundle.getTextBundle().getString(\"enterPassword\"), \"No Password\", JOptionPane.WARNING_MESSAGE);\n } else if (txtpassword.equals(userData.get(0).toString())) {\n jPasswordField2.setEnabled(true);\n jPasswordField3.setEnabled(true);\n jPasswordField2.setEditable(true);\n jPasswordField3.setEditable(true);\n jPasswordField2.grabFocus();\n }\n }", "@Override\n\tpublic User login(String user, String pass) {\n\t\treturn null;\n\t}", "LoginContext login(String username, String password) throws LoginException;", "private void loginIn(String user, String pass, int message){\n writeTextIntoTextBox(R.id.username_text_input, user);\n writeTextIntoTextBox(R.id.password_text_input, pass);\n clickId(R.id.login_button);\n checkLoginMessage(message);\n clickId(R.id.alt_button);\n checkIfAtLogin();\n }", "public User logInUser(final String login, final String password);", "public void doLogin(String user, String pass) {\n\t\trefgservice.checkUserPassword(user, pass, new LoginCallback());\n\t\t\n\t}", "public void cl_login(String uname, String pwd)\n\t{\n\t\tEnter(txt_uname, uname);\n\t\tEnter(txt_pwd, pwd);\n\t\tClick(btn_login);\n\t\t\n\t}", "public void loginTo(String strUserName,String strPasword)\n { \n if(strUserName.equals(\"\"))\n \tthis.getUserName().clear();\n \n if(strPasword.equals(\"\"))\n \tthis.getPassword().clear();\n \n \n \tthis.getUserName().sendKeys(strUserName); \n\n this.getPassword().sendKeys(strPasword); \n\n this.getLoginButton().click(); \n }", "public static void run_auth(String pass)\r\n\t{\r\n\t\tpassword = pass;\r\n\t\t\r\n\t\t// Call hash function to encrypt the input password\r\n\t\ttry \r\n\t\t{\r\n\t\t\thash = hash_password(password);\r\n\t\t\tSystem.out.println(\"Hashed password: \" + hash);\r\n\t\t} \r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"There was an error hashing the input password...\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// Call query function to retrieve hash from the DB\r\n\t\ttry \r\n\t\t{\r\n\t\t\tquery_hash = query_hash();\r\n\t\t\tSystem.out.println(\"Queried hash: \" + query_hash);\r\n\t\t} \r\n\t\tcatch (ClassNotFoundException e) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"There was an error querying the database...\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic ResultMessage login(String user_name, String password) throws RemoteException{\n\t\treturn null;\n\t}", "private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSystem.out.println(\"Welcome to AnnyBank\");\n\n\t\ttransactions();\n\t}", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "User login(String username, String password);", "public Pair<UUID, Boolean> login(String username,\n String password) {\n return tradingSystemFacade.login(username, password);\n }", "UserToken login(String username, String password) throws WorkspaceException;", "public void authenticateUser()\r\n\t{\r\n\t\tsc.nextLine(); \r\n\t\tint index=loginattempt();\r\n\t}", "public void set_pass(String password)\n {\n pass=password;\n }", "@When(\"^Enter password as \\\"([^\\\"]*)\\\"$\")\n\tpublic void enter_password_as(String arg1) throws Throwable {\n\t\tpass = arg1;\n\t\tSystem.out.println(userName+\" - \"+ pass);\n\t\tloginPage.loginWithCredentials(userName, pass);\n\t}", "public String getVaultPassword() {\n return vaultPassword;\n }", "@Override\n\tpublic void login(String ip, String pass) {\n\t\tif(network == null || !pass.equals(network.password)) { //if loc net not defined OR pw differ from current loc net pw:\n\t\t\tnetwork = new Network();\t\t\t\t\t\t\t\t\t//create a new loc net with given password. \n\t\t\tnetwork.setPassword(pass);;\n\t\t}\n\t\tif(!ip.equals(\"\"))\n\t\t\tnetwork.connect(ip);\t\t\t\t\t\t\t\t\t//try and connect to ip given.\n\t}", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "public void loginAsTom() {\n textFieldUsername.withTimeoutOf(2000, MILLIS).type(\"tomsmith\");\n textFieldPassword.type(\"SuperSecretPassword!\");\n buttonLogin.click();\n }", "public static void login(Lookup lookup) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tSystem.out.println(\"Enter your UserName: \");\r\n\t\t\t\r\n\t\t\tString name = sc.nextLine();\r\n\r\n\t\t\tSystem.out.println(\"Enter your Password: \");\r\n\t\t\t\r\n\t\t\tString pass = sc.nextLine();\r\n\r\n\t\t\tsUser = lookup.checkLoginAuth(name, pass);\r\n\r\n\t\t} catch (InvalidInputException e) {\r\n\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tSystem.err.flush();\r\n\r\n\t\t}\r\n\r\n\t}", "User login(Uuid id, String username, String password, Time creationTime);", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "public void signIn(String userName, String password) {\n\t}", "public int logIn() {\n guestPresenter.printLogInMessage();\n int id = requestInt(\"id\");\n char[] password = requestString(\"password\").toCharArray();\n UserManager.UserType user = guestManager.logIn(id, password);\n\n if (user == null) {\n guestPresenter.logInFailure();\n return -1;\n } else {\n return id;\n }\n }", "@Override\r\n\tpublic UserVO login(LoginUserVO user) {\n\t\treturn login.login(user);\r\n\t}", "public Person login(String username, String password);", "public User doAuthentication(String account, String password);", "public void login(String username, String password, Context context) {\n\t\tUserVO userVO = new UserVO();\n\t\tuserVO.setId(username);\n\t\tuserVO.setPassword(password);\n\t\t\n\t\tLoginTask loginTask = new LoginTask();\n\t\tloginTask.setContext(context);\n\t\tloginTask.execute(userVO);\n\t}", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "public String login(String username, String password){\n return login.login(username, password);\n }", "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "public String signIn(String username, String password);", "@When(\"^User login into the app with username and password$\")\n\tpublic void user_login_to_the_app_with_username_and_password() {\n\t\tSystem.out.println(\"User is logged\");\n\t}", "Document login(String username, String password);", "public void login(User user);", "@Override \n public void commandLogin(String userName, String password)\n {\n }", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public void loginStrict(String user, String pass) throws IOException {\n boolean r = this.login(user, pass);\n if (!r) {\n throw new FTPException(this.getReplyCode());\n }\n }", "public void login(final View v) {\n\n // validate login here\n dbHelper = new EMFMonitorDbHelper(this);\n db = dbHelper.getReadableDatabase();\n\n String username = usernameField.getText().toString();\n String password = passwordField.getText().toString();\n\n Cursor cur = db.rawQuery(\"SELECT * FROM users WHERE username = ? AND password = ?\",\n new String[] {username, password});\n\n if (cur.moveToFirst()) {\n if (cur.getInt(EMFMonitorDbHelper.CAN_WORK_INDEX) > 0) {\n Intent i = new Intent(this, MainActivity.class);\n i.putExtra(\"USERNAME\", username);\n i.putExtra(\"UID\", cur.getInt(EMFMonitorDbHelper.UID_INDEX));\n i.putExtra(\"UNITS\", cur.getString(EMFMonitorDbHelper.UNITS_INDEX));\n i.putExtra(\"ALARM_THRESHOLD\", cur.getDouble(EMFMonitorDbHelper.ALARM_THRESHOLD_INDEX));\n startActivity(i);\n finish();\n }\n else {\n Toast toast = Toast.makeText(this, \"You have been exposed to unsafe levels of EMF\", Toast.LENGTH_SHORT);\n toast.show();\n }\n }\n else {\n Toast toast = Toast.makeText(this, \"Invalid Username or Password\", Toast.LENGTH_SHORT);\n toast.show();\n }\n\n\n }", "@Override\n public void onLoginClick(String user, String pass) {\n this.password = pass;\n enviarJson(user, pass);\n\n }", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "@Override\n\t\t\tpublic void submit(String user, String pass) {\n\t\t\t\tsetUsername(user);\n\t\t\t\tsetPassword(pass);\n\t\t\t\tlogin();\n\t\t\t}", "void login(String userName) throws IllegalArgumentException, IOException;", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "int authenticateUser(IDAOSession session, String userName, String password);", "public void setPass(String pass)\r\n\t{\r\n\t\tpassword = pass;\r\n\t}", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "public static void logIn(String user, String password) {\n clear(USERNAME_FIELD);\n type(USERNAME_FIELD, user);\n clear(PASSWORD_FIELD);\n type(PASSWORD_FIELD, password);\n click(LOGIN_BUTTON);\n }", "@Override public User login(String username, String password)\r\n throws RemoteException, SQLException {\r\n this.username = username;\r\n this.password = password;\r\n user = gameListClientModel.login(username, password);\r\n return gameListClientModel.login(username, password);\r\n }", "User signIn(String login, String password);", "void loginAttempt(String email, String password);", "public Reply login(String hostname) throws ThingsException, InterruptedException;", "public Librarian(String name, String pass) {\n\t\tusername = name;\n\t\tpassword = pass;\n\t}", "public void doLogin(String username, String password) {\n typeUsername(username);\n typePassword(password);\n clickLoginButton();\n }", "protected Response login(String environment) {\n environment = Strings.isNullOrEmpty(environment) ? \"\"\n : \"/\" + environment;\n JsonObject creds = new JsonObject();\n creds.addProperty(\"username\", \"admin\");\n creds.addProperty(\"password\", \"admin\");\n Response resp = post(environment + \"/login\", creds.toString());\n return resp;\n }", "public static void logIn(WebDriver dr) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// Username\n\t\tSystem.out.println(\"Enter username:\");\n\t\tString username=sc.nextLine();\n\t\tIzletPage.clickLUsername(dr);\n\t\tIzletPage.sendKeysLUsername(dr, username);\n\t\t// Password\n\t\tSystem.out.println(\"Enter password: \");\n\t\tString pass = sc.nextLine();\n\t\tIzletPage.clickLPassword(dr);\n\t\tIzletPage.sendKeysLPassword(dr, pass);\n\t\t// Log in button\n\t\tIzletPage.clickLogInButton(dr);\n\t\tsc.close();\n\t}", "Login() { \n }", "public void login(String username, String password) {\n\t\t// store values in case we need to attempt to update to the salted hashes\n\t\tthis.lastUsername = username;\n\t\tthis.lastPassword = password;\n\t\tchar language = '0';\n\t\tif(GameClient.getLanguage().equalsIgnoreCase(\"english\")) {\n\t\t\tlanguage = '0';\n\t\t} else if(GameClient.getLanguage().equalsIgnoreCase(\"portuguese\")) {\n\t\t\tlanguage = '1';\n\t\t} else if(GameClient.getLanguage().equalsIgnoreCase(\"italian\")) {\n\t\t\tlanguage = '2';\n\t\t} else if(GameClient.getLanguage().equalsIgnoreCase(\"french\")) {\n\t\t\tlanguage = '3';\n\t\t} else if(GameClient.getLanguage().equalsIgnoreCase(\"finnish\")) {\n\t\t\tlanguage = '4';\n\t\t} else if(GameClient.getLanguage().equalsIgnoreCase(\"spanish\")) {\n\t\t\tlanguage = '5';\n\t\t} else if(GameClient.getLanguage().equalsIgnoreCase(\"dutch\")) {\n\t\t\tlanguage = '6';\n\t\t} else if(GameClient.getLanguage().equalsIgnoreCase(\"german\")) {\n\t\t\tlanguage = '7';\n\t\t}\n\t\tm_tcpSession.write(\"l\" + language + username + \",\" + (getPasswordHash(username, password)));\n\t\t\n\t\tif(GameClient.getInstance().getPacketGenerator().m_chatSession != null)\n\t\t\tm_chatSession.write(\"l\" + language + username + \",\" + (getPasswordHash(username, password)));\n\t}", "public void logIn(View v){\n mUsername = (EditText) findViewById(R.id.username);\n mPassword = (EditText) findViewById(R.id.password);\n\n // Reset errors.\n mUsername.setError(null);\n mPassword.setError(null);\n\n // Store the data\n username = mUsername.getText().toString();\n password = mPassword.getText().toString();\n\n //Check username\n if (TextUtils.isEmpty(username)) {\n mUsername.setError(fielderror);\n checklog = false;\n }\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPassword.setError(fielderror);\n checklog = false;\n }\n if(checklog == true) {\n loginUser();\n }\n\n\n }", "public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}", "String getUserPassword();", "public void login(String userCredentials, String pass) {\r\n driver.findElement(loginTab).click();\r\n driver.findElement(username).sendKeys(userCredentials);\r\n driver.findElement(password).sendKeys(pass);\r\n driver.findElement(loginBtn).click();\r\n }", "void retrievePassWord(User user);", "private void byPassLogin(String email) {\n User user = new User(123, email, Grade.A, 100, 9999991, 50f, 25f);\n Login(user);\n }", "private void login(String username, String password) {\n userDao.findByName(username, password)\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(users -> {\n if (users.size() > 0) {\n User user = users.get(0);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"uid\", user.uid);\n editor.putString(\"username\", user.username);\n editor.putString(\"password\", user.password);\n editor.commit();\n Intent intent = new Intent(LoginActivity.this, MeasureActivity.class);\n startActivity(intent);\n } else {\n showLoginFailed();\n }\n }, e-> {\n showLoginFailed();\n });\n }", "public void loginPin(){\n\t\tstate = ATM_State.LOGINPIN;\n\t\tgui.setDisplay(\"Enter your account PIN: \\n\");\n\t}", "public ControleurVueLogin() {\n\n\t}", "public void LogIn() {\n\t\t\r\n\t}", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "public boolean tryLogin(auctionsystemInterface ai) throws RemoteException\n {\n//\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Please enter username: \");\n curBuyerName = sc.next();\n\n System.out.println(\"Please enter password: \");\n curBuyerPas = sc.next();\n\n try {\n boolean succesful = ai.login(curBuyerName,curBuyerPas);\n\n if(succesful)\n {\n System.out.println(\"You have successfully logged in \" + curBuyerName);\n return true;\n }\n else\n {\n System.out.println(\"Login failed.\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }", "public void doLogin(String userName,String password) {\n\t\tenterText(usernamelocator, userName);\n\t\tenterText(passwordlocator, password);\n\t\tclick(loginButton);\n\t}", "@Test\n\tpublic void loginWithValidCredentials(){\n\t\tapp.loginScreen().waitUntilLoaded();\n\t\tapp.loginScreen().logIn(Credentials.USER_VALID.username, Credentials.USER_VALID.password);\n\t\tassertTrue(app.userDashboardScreen().isActive());\n\t}", "private void loginUser() throws JSONException, UnsupportedEncodingException {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"username\", editUserName.getText().toString());\n jsonObject.put(\"password\", editPassword.getText().toString());\n jsonObject.put(\"DeviceID\", diviceToken);\n jsonObject.put(\"DevicePlatform\", devicePlatform);\n invokeLogin(jsonObject);\n\n\n }", "@Override\n\tpublic void LoginProc(Parent root) {\n\t\tTextField idTxt = (TextField) root.lookup(\"#txtid\");\n\t\tTextField pwTxt = (TextField) root.lookup(\"#txtpw\");\n\t\tSystem.out.println(\"ID : \"+idTxt.getText()+\",PW : \"+pwTxt.getText()+\"가 입력되었습니다.\");\n\t}", "boolean authenticate(String userName, String password);", "private int logIn()\r\n\t{\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tString username;\r\n\t\tString password;\r\n\t\tint index;\r\n\t\t\r\n\t\t//prompt user for username and password\r\n\t\tSystem.out.println(\"Enter your username\");\r\n\t\tusername = input.nextLine();\r\n\t\tSystem.out.println(\"Enter your password\");\r\n\t\tpassword = input.nextLine();\r\n\t\t\r\n\t\tindex = checkUserExists(username);\t\t\t\t\t\t\t\t\t//get the index of the username so we can find the password\r\n\t\tif (index == -1 || !userAccounts[1][index].equals(password))\t\t//username or password is incorrect\r\n\t\t{\r\n\t\t\tSystem.out.println(\"\\nIncorrect Username/Password\");\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tSystem.out.println(\"Login Successful\");\r\n\t\treturn 1;\r\n\t}" ]
[ "0.681498", "0.6680694", "0.66718906", "0.66315794", "0.6440902", "0.64019567", "0.6394346", "0.63456345", "0.62955236", "0.62767804", "0.62434673", "0.62334436", "0.6141401", "0.611455", "0.6109048", "0.61058766", "0.608491", "0.6039153", "0.6038306", "0.60301787", "0.60025996", "0.59928083", "0.59887564", "0.59872127", "0.5981802", "0.5981733", "0.59766847", "0.5970197", "0.59648716", "0.5948996", "0.5943159", "0.5942654", "0.59239477", "0.591304", "0.59056616", "0.59038055", "0.5876972", "0.5871684", "0.5868642", "0.5863397", "0.58631104", "0.5851483", "0.5843903", "0.58281165", "0.5817584", "0.5814204", "0.5774539", "0.577146", "0.57709664", "0.57683206", "0.5765857", "0.575735", "0.57531726", "0.5737897", "0.5736391", "0.5733907", "0.57272583", "0.5727186", "0.5721453", "0.572118", "0.5718679", "0.56956124", "0.56950414", "0.5694391", "0.5693964", "0.56886095", "0.56698847", "0.56698847", "0.56698847", "0.5667806", "0.5662431", "0.56498736", "0.56467986", "0.56453055", "0.56389403", "0.5638569", "0.56313026", "0.56123453", "0.5605099", "0.5594334", "0.55829495", "0.5573016", "0.5572011", "0.5565099", "0.5561408", "0.5558937", "0.5558372", "0.5555866", "0.55543774", "0.554785", "0.55469435", "0.55333364", "0.55327046", "0.5532661", "0.5531892", "0.5529922", "0.5528445", "0.552602", "0.5521562", "0.5515198", "0.55139565" ]
0.0
-1
Path to directory containing CA certificate files to validate the server&39;s certificate.
public Optional<String> caCertDir() { return Codegen.stringProp("caCertDir").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserCertificatesPath();", "public ValidationResult validate(CertPath certPath);", "public Optional<String> caCertFile() {\n return Codegen.stringProp(\"caCertFile\").config(config).get();\n }", "private void assignCAPath()\n {\n this.caPath = CA_PATH.get(conf);\n\n if (CA_PATH_ENV.get(conf) != null) {\n String envVarTlsCAPath = System.getenv(CA_PATH_ENV.get(conf));\n if (envVarTlsCAPath != null) {\n this.caPath = envVarTlsCAPath;\n }\n }\n }", "public String getTlsCertPath();", "public ValidationResult validate(X509Certificate[] certChain);", "protected static String getCertificatePath() {\n return certificatePath;\n }", "protected boolean configCert () {\n\t\t\n\t\tFile file = new File(\"confid\");\n\t\t\n\t\tif(!file.exists()) {\n\t\t\t\n\t\t\tfile.mkdir();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Directory created...\");\n\t\t\t\n\t\t}\n\n\t\t//File fl = new File();\n\t\t\n\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tKeyPairGenerator keygen = KeyPairGenerator.getInstance(\"RSA\");\n\t\t\t\t\n\t\t\t\tkeygen.initialize(4096, new SecureRandom());\n\t\t\t\t\n\t\t\t\tKeyPair key = keygen.generateKeyPair();\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tX509Certificate cert = new GenCert().selfSignedCert(key.getPublic(), key.getPrivate(),\"DeepDiveCA\", \"DeepDiveCA\");\n\t\t\t\t\n\t\t\t\tX509Certificate[] chain = new X509Certificate[1];\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\tKeyStore keystore = KeyStore.getInstance(\"jceks\");\n\t\t\t\t\n\t\t\t\tkeystore.load(null, \"winslygay\".toCharArray());\n\t\t\t\t\n\t\t\t\tchain[0] = cert;\n\t\t\t\t\n\t\t\t\tkeystore.setKeyEntry(\"rootPrivateKey\", key.getPrivate() , \"winslygay\".toCharArray(), chain );\n\t\t\t\t\t\t\t\n\t\t\t\tkeystore.store(new FileOutputStream(\"confid/keystore.jceks\"), \"winslygay\".toCharArray());\n\n\t\t\t\tif(keystore.size()!= 0||keystore.size()!=-1)\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"cert server all set up\");\n\t\t\t\t{\n\t\t\t\t\tisconfigured = true;\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (KeyStoreException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CertificateException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn isconfigured;\n\t\t\n\n\t}", "public void setRootCa(String path);", "public static String getCertificadoCliente() {\n\n\t\treturn NfeUtil.class.getResource(\"/CERTIFICADO.pfx\").getPath();\n\n\t}", "public String getServerRootCaCertificate() {\n return this.serverRootCaCertificate;\n }", "private static final CertificateValidationContext getCertContextFromPath(String pemFilePath)\n throws IOException {\n return CertificateValidationContext.newBuilder()\n .setTrustedCa(\n DataSource.newBuilder().setFilename(TestUtils.loadCert(pemFilePath).getAbsolutePath()))\n .build();\n }", "public String getRootCertPemPath() {\n try {\n synchronized (mImplMonitor) {\n checkServiceLocked();\n return mImpl.getRootCertPemPath();\n }\n } catch (RemoteException e) {\n throw new EmbeddedTestServerFailure(\"Failed to get root cert's path\", e);\n }\n }", "public String getRootCa();", "public static String getServerSSLConfigFileName() {\n return getSSLConfigFileName(\"ssl-server\");\n }", "public void setServerRootCaCertificate(String serverRootCaCertificate) {\n this.serverRootCaCertificate = serverRootCaCertificate;\n }", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public void validate(KeyStore keyStore, Certificate cert) throws CertificateException\n {\n if (cert != null && cert instanceof X509Certificate)\n {\n ((X509Certificate)cert).checkValidity();\n \n String certAlias = \"[none]\";\n try\n {\n certAlias = keyStore.getCertificateAlias((X509Certificate)cert);\n Certificate[] certChain = keyStore.getCertificateChain(certAlias);\n \n ArrayList<X509Certificate> certList = new ArrayList<X509Certificate>();\n for (Certificate item : certChain)\n {\n if (!(item instanceof X509Certificate))\n {\n throw new CertificateException(\"Invalid certificate type in chain\");\n }\n certList.add((X509Certificate)item);\n }\n \n if (certList.isEmpty())\n {\n throw new CertificateException(\"Invalid certificate chain\");\n \n }\n \n X509CertSelector certSelect = new X509CertSelector();\n certSelect.setCertificate(certList.get(0));\n \n // Configure certification path builder parameters\n PKIXBuilderParameters pbParams = new PKIXBuilderParameters(_trustStore, certSelect);\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(certList)));\n \n // Set static Certificate Revocation List\n if (_crls != null && !_crls.isEmpty())\n {\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(_crls)));\n }\n \n // Enable revocation checking\n pbParams.setRevocationEnabled(true);\n \n // Set maximum certification path length\n pbParams.setMaxPathLength(_maxCertPathLength);\n \n // Build certification path\n CertPathBuilderResult buildResult = CertPathBuilder.getInstance(\"PKIX\").build(pbParams); \n \n // Validate certification path\n CertPathValidator.getInstance(\"PKIX\").validate(buildResult.getCertPath(),pbParams);\n }\n catch (Exception ex)\n {\n Log.debug(ex);\n throw new CertificateException(\"Unable to validate certificate for alias [\" +\n certAlias + \"]: \" + ex.getMessage());\n }\n } \n }", "public static String getClientSSLConfigFileName() {\n return getSSLConfigFileName(\"ssl-client\");\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public Certificate[] getFileCertificates()\r\n {\r\n return acFileCertificates;\r\n }", "public void setUserCertificatesPath(String path);", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public void setFileCertificates(Certificate[] acFileCertificates)\r\n {\r\n this.acFileCertificates = acFileCertificates;\r\n }", "@Override\n public void checkServerTrusted(\n java.security.cert.X509Certificate[] certs, String authType)\n throws CertificateException {\n InputStream inStream = null;\n try {\n // Loading the CA cert\n URL u = getClass().getResource(\"dstca.cer\");\n inStream = new FileInputStream(u.getFile());\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n X509Certificate ca = (X509Certificate) cf.generateCertificate(inStream);\n inStream.close();\n //if(certs[0].getSignature().equals(ca.getSignature()))\n for (int i = 0; i < certs.length ; i++) {\n X509Certificate cert = certs[i];\n // Verifing by public key\n try{\n cert.verify(certs[i+1].getPublicKey());\n }catch (Exception e) {\n cert.verify(ca.getPublicKey());\n }\n }\n } catch (Exception ex) {\n Monitor.logger(ex.getLocalizedMessage());\n ex.printStackTrace();\n throw new CertificateException(ex);\n } finally {\n try {\n inStream.close();\n } catch (IOException ex) {\n Monitor.logger(ex.getLocalizedMessage());\n ex.printStackTrace();\n }\n }\n\n }", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "private static final CertificateValidationContext getCertContextFromPathAsInlineBytes(\n String pemFilePath) throws IOException, CertificateException {\n X509Certificate x509Cert = TestUtils.loadX509Cert(pemFilePath);\n return CertificateValidationContext.newBuilder()\n .setTrustedCa(\n DataSource.newBuilder().setInlineBytes(ByteString.copyFrom(x509Cert.getEncoded())))\n .build();\n }", "public interface X509CertChainValidator\n{\n\t/**\n\t * Performs validation of a provided certificate path.\n\t * @param certPath to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(CertPath certPath);\n\t\n\t/**\n\t * Performs validation of a provided certificate chain.\n\t * @param certChain to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(X509Certificate[] certChain);\n\t\n\t/**\n\t * Returns a list of trusted issuers of certificates. \n\t * @return array containing trusted issuers' certificates\n\t */\n\tpublic X509Certificate[] getTrustedIssuers();\n\t\n\t/**\n\t * Registers a listener which can react to errors found during certificate \n\t * validation. It is useful in two cases: (rarely) if you want to change \n\t * the default logic of the validator and if you will use the validator indirectly\n\t * (e.g. to validate SSL socket connections) and want to get the original \n\t * {@link ValidationError}, not the exception. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addValidationListener(ValidationErrorListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered validation listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeValidationListener(ValidationErrorListener listener);\n\t\n\t\n\t/**\n\t * Registers a listener which can react to errors found during refreshing \n\t * of the trust material: trusted CAs or CRLs. This method is useful only if\n\t * the implementation supports updating of CAs or CRLs, otherwise the listener\n\t * will not be invoked. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addUpdateListener(StoreUpdateListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered CA or CRL update listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeUpdateListener(StoreUpdateListener listener);\n}", "private static List<String> checkInstallCertificates(){\n\t\tList<String> output = new ArrayList<>();\n\t\ttry {\n\t\t\t\n\t\t\tString cmd = currentDir + scriptDir + \"checkInstallCertificate.sh\";\n\t\t\tProcess p = Runtime.getRuntime().exec(cmd);\n\t\t\tList<String> lines = readOutput(p);\n\t\t\toutput = checkOutputLong(lines);\n\t\t\t\n\t\t\treturn output;\n\n\t\t}catch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\t\n\t\treturn output;\n\t}", "@Override\n public String getCACertificate() throws IOException {\n LOGGER.debug(\"Getting CA certificate.\");\n try {\n return getPEMEncodedString(\n scmCertificateServer.getCaCertPath());\n } catch (CertificateException e) {\n throw new SCMSecurityException(\"getRootCertificate operation failed. \",\n e, GET_CA_CERT_FAILED);\n }\n }", "public CertificateValidator(KeyStore trustStore, Collection<? extends CRL> crls)\n {\n _trustStore = trustStore;\n _crls = crls;\n }", "X509Certificate getCertificateToCheck()\n {\n return certificateToCheck;\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "public CertValidate getCertValidate() {\r\n\t\treturn certValidate;\r\n\t}", "public X509Certificate getRootCertificate() throws CertException;", "public static File installBrokerCertificate(AsyncTestSpecification specification) throws Exception {\n String caCertPem = specification.getSecret().getCaCertPem();\n\n // First compute a stripped PEM certificate and decode it from base64.\n String strippedPem = caCertPem.replaceAll(BEGIN_CERTIFICATE, \"\")\n .replaceAll(END_CERTIFICATE, \"\");\n InputStream is = new ByteArrayInputStream(org.apache.commons.codec.binary.Base64.decodeBase64(strippedPem));\n\n // Generate a new x509 certificate from the stripped decoded pem.\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n X509Certificate caCert = (X509Certificate)cf.generateCertificate(is);\n\n // Create a new TrustStore using KeyStore API.\n char[] password = TRUSTSTORE_PASSWORD.toCharArray();\n KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());\n ks.load(null, password);\n ks.setCertificateEntry(\"root\", caCert);\n\n File trustStore = File.createTempFile(\"microcks-truststore-\" + System.currentTimeMillis(), \".jks\");\n\n try (FileOutputStream fos = new FileOutputStream(trustStore)) {\n ks.store(fos, password);\n }\n\n return trustStore;\n }", "private SslContext buildServerSslContext()\n throws SSLException\n {\n SslContextBuilder builder = SslContextBuilder.forServer(certFile, keyFile);\n if (verifyMode == VerifyMode.NO_VERIFY) {\n builder.trustManager(InsecureTrustManagerFactory.INSTANCE);\n } else {\n builder.trustManager(caFile);\n }\n if (verifyMode == VerifyMode.VERIFY) {\n builder.clientAuth(ClientAuth.OPTIONAL);\n } else if (verifyMode == VerifyMode.VERIFY_REQ_CLIENT_CERT) {\n builder.clientAuth(ClientAuth.REQUIRE);\n }\n return builder.build();\n }", "public CompletionStage<Result> validate()\n {\n IRequestValidator requestValidator=new CertValidateRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_VALIDATE);\n }", "private void assignCertAndKeyPath()\n {\n\n if (CLIENT_PATH_ENV.get(conf) != null &&\n SERVER_PATH_ENV.get(conf) != null) {\n String envVarTlsClientCertPath =\n System.getenv(CLIENT_PATH_ENV.get(conf));\n String envVarTlsClientKeyPath =\n System.getenv(SERVER_PATH_ENV.get(conf));\n if (envVarTlsClientCertPath != null && envVarTlsClientKeyPath != null) {\n // If expected env variables are present, check if file exists\n File certFile = new File(envVarTlsClientCertPath);\n File keyFile = new File(envVarTlsClientKeyPath);\n if (certFile.exists() && keyFile.exists()) {\n // set paths and return if both files exist\n this.certPath = envVarTlsClientCertPath;\n this.keyPath = envVarTlsClientKeyPath;\n return;\n }\n }\n }\n\n // Now we know that we are a Client, without valid env variables\n // We shall try to read off of the default Client path\n if (CLIENT_PATH.get(conf) != null &&\n (new File(CLIENT_PATH.get(conf))).exists()) {\n LOG.error(\"Falling back to CLIENT_PATH (\" + CLIENT_PATH.get(conf) +\n \") since env var path is not valid/env var not present\");\n this.keyPath = CLIENT_PATH.get(conf);\n this.certPath = CLIENT_PATH.get(conf);\n return;\n }\n\n // Looks like default Client also does not exist\n // Time to use the server cert and see if we have any luck\n LOG.error(\"EnvVar and CLIENT_PATH (\" + CLIENT_PATH.get(conf) +\n \") both do not exist/invalid, trying SERVER_PATH(\" +\n SERVER_PATH.get(conf) + \")\");\n this.keyPath = SERVER_PATH.get(conf);\n this.certPath = SERVER_PATH.get(conf);\n }", "private List<X509Certificate> getValidationCertificates(String idpEntityID) throws ResolverException {\n if (this.validationCertificates != null && !this.validationCertificates.isEmpty()) {\n return this.validationCertificates;\n }\n else if (this.metadataProvider != null) {\n EntityDescriptor metadata = this.metadataProvider.getEntityDescriptor(idpEntityID);\n if (metadata == null) {\n logger.warn(\"No metadata found for IdP '{}' - cannot find key to use when verifying SAD JWT signature\", idpEntityID);\n return Collections.emptyList();\n }\n List<X509Credential> creds = MetadataUtils.getMetadataCertificates(metadata, UsageType.SIGNING);\n return creds.stream().map(X509Credential::getEntityCertificate).collect(Collectors.toList());\n }\n else {\n return Collections.emptyList();\n }\n }", "public void verifyServerCertificates(boolean yesno);", "public static String getComplaintAttachmentsPath() {\n\t\treturn \"/home/ftpshared/WorkflowAttachments\";\n\t}", "public static void allowAllCertificates() {\n try {\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public X509Certificate[] getAcceptedIssuers() {\n X509Certificate[] myTrustedAnchors = new X509Certificate[0];\n return myTrustedAnchors;\n }\n\n @Override\n public void checkClientTrusted(X509Certificate[] certs,\n String authType) {}\n\n @Override\n public void checkServerTrusted(X509Certificate[] certs,\n String authType) {}\n } };\n\n SSLContext sc = SSLContext.getInstance(\"SSL\");\n sc.init(null, trustAllCerts, new SecureRandom());\n HttpsURLConnection\n .setDefaultSSLSocketFactory(sc.getSocketFactory());\n HttpsURLConnection\n .setDefaultHostnameVerifier(new HostnameVerifier() {\n\n @Override\n public boolean verify(String arg0, SSLSession arg1) {\n return true;\n }\n });\n } catch (Exception e) {}\n }", "String getCertificate();", "boolean hasCertificates();", "boolean hasCertificates();", "public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }", "public CompletionStage<Result> verify()\n {\n IRequestValidator requestValidator=new CertVerifyRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_VERIFY);\n }", "private byte[][] getTrustedCertificates() {\n ArrayList localArrayList = new ArrayList();\n try {\n CertificateFactory localCertificateFactory = CertificateFactory.getInstance(\"X.509\");\n Certificate localCertificate = localCertificateFactory.generateCertificate(new StringBufferInputStream(mCurrentProfile.getCert()));\n localArrayList.add(localCertificate.getEncoded());\n return (byte[][]) localArrayList.toArray(new byte[localArrayList.size()][]);\n } catch (Exception e) {\n LogUtil.e(e);\n return null;\n }\n }", "@Test\n\tpublic void testGetCACerts_ClientCert() {\n\t\tSystem.out.println(\"Beginning TC2011\");\n\t\tArrayList<X509Certificate> newCACerts = null;\n\t\tESTClient ec = new ESTClient();\n\t\tX509Certificate myCert1 = null;\n\t\t\n\t\tassertNotNull(ec);\n\t\t// get a good cert to use for tls authentication\n\t\tmyCert1 = getTrustedCert();\n\n\t\tassertNotNull(myCert1);\n\n\t\tSystem.out.println(\"\\nSetting TLS authentication credentials ...\");\n\n\t\tec.setTLSAuthenticationCredentials(myCert1, mKey);\n\t\t\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t/*\n\t\t * Attempt to fetch the latest CA certs from the EST server\n\t\t */\n\t\ttry {\n\t\t\tnewCACerts = ec.fetchLatestCACerts();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Caught Exception as expected: \"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\t\tassertNull(newCACerts);\n\t\t\n\t\tSystem.out.println(\"Ending TC2011\");\n\t}", "public IPath getRuntimeBaseDirectory(TomcatServer server);", "public static AttestationCertificatePath load3tierTestAttestationCertificatePath() {\n return new AttestationCertificatePath(Arrays.asList(load3tierTestAuthenticatorAttestationCertificate(), load3tierTestIntermediateCACertificate()));\n }", "@Test\n\tpublic void testGetCACerts() {\n\t\tSystem.out.println(\"Beginning TC2001\");\n\t\tArrayList<X509Certificate> newCACerts = null;\n\t\tESTClient ec = new ESTClient();\n\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(mCerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t/*\n\t\t * Attempt to fetch the latest CA certs from the EST server\n\t\t */\n\t\ttry {\n\t\t\tnewCACerts = ec.fetchLatestCACerts();\n\t\t} catch (CertificateException | IOException | CACertsException\n\t\t\t\t| BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tassertNotNull(newCACerts);\n\t\tif (newCACerts != null) {\n\t\t\tassertFalse(newCACerts.isEmpty());\n\t\t}\n\n\t\tfor (X509Certificate c : newCACerts) {\n\t\t\t// System.out.println(c.toString());\n\t\t\tSystem.out.println(\"Issuer: \" + c.getIssuerDN().getName());\n\t\t\tassertNotNull(c.getIssuerDN().getName());\n\t\t\tassertFalse(c.getIssuerDN().getName().equals(\"\"));\n\t\t}\n\t\tSystem.out.println(\"Ending TC2001\");\n\t}", "public static String getCertificadoCacert(String ambiente)\n\t\t\tthrows NfeException {\n\n\t\tif (ambiente.equals(\"DES\")) {\n\t\t\treturn NfeUtil.class.getResource(\"/ARQUIVO_JKS.jks\").getPath();\n\t\t} else if (ambiente.equals(\"PROD\")) {\n\t\t\treturn NfeUtil.class.getResource(\"/ARQUIVO_JKS.jks\").getPath();\n\t\t} else {\n\t\t\tthrow new NfeException(\"Selecione o ambiente PROD/DES\");\n\n\t\t}\n\t}", "static ValidationResult verifyCertificateCRLs(final X509Certificate cert,\r\n\t\t\t final PublicKey vaPublicKey,\r\n\t\t\t final List<String> overridingDistributionPoints) {\r\n\t\tif (cert == null) {\r\n\t\t\treturn ValidationResult.CORRUPT;\r\n\t\t}\r\n\r\n\t\tfinal List<String> crlDistPoints;\r\n\t\ttry {\r\n\t\t\tcrlDistPoints = overridingDistributionPoints == null || overridingDistributionPoints.isEmpty() ?\r\n\t\t\t\t\t\t\t\tgetCrlDistributionPoints(cert) :\r\n\t\t\t\t\t\t\t\t\toverridingDistributionPoints;\r\n\t\t}\r\n\t\tcatch (final IOException e) {\r\n\t\t\tLOGGER.severe(\"Error obteniendo los puntos de distribucion de CRL: \" + e); //$NON-NLS-1$\r\n\t\t\treturn ValidationResult.SERVER_ERROR;\r\n\t\t}\r\n\r\n\t\tLOGGER.info(\r\n\t\t\t\"El certificado con serie '\" + cert.getSerialNumber() + \"' tiene asociadas las siguientes CRL: \" + crlDistPoints //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t);\r\n\r\n\t\tfinal CertificateFactory cf;\r\n\t\ttry {\r\n\t\t\tcf = CertificateFactory.getInstance(\"X.509\"); //$NON-NLS-1$\r\n\t\t}\r\n\t\tcatch (final CertificateException e1) {\r\n\t\t\tLOGGER.severe(\"Error instanciando la factoria de certificados: \" + e1); //$NON-NLS-1$\r\n\t\t\treturn ValidationResult.SERVER_ERROR;\r\n\t\t}\r\n\r\n\t\tboolean checked = false;\r\n\t\tfor (final String crlDP : crlDistPoints) {\r\n\r\n\t\t\t// Descargamos\r\n\t\t\tfinal byte[] crlBytes;\r\n\t\t\ttry {\r\n\t\t\t\tcrlBytes = downloadCRL(crlDP);\r\n\t\t\t}\r\n\t\t\tcatch (final Exception e1) {\r\n\t\t\t\tLOGGER.severe(\"No se ha podido descargar la CRL (\" + crlDP + \"), se continuara con el siguiente punto de distribucion: \" + e1); //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tfinal X509CRL crl;\r\n\t\t\ttry {\r\n\t\t\t\tcrl = (X509CRL)cf.generateCRL(new ByteArrayInputStream(crlBytes));\r\n\t\t\t}\r\n\t\t\tcatch (final Exception e) {\r\n\t\t\t\tLOGGER.severe(\"Error analizando la lista de revocacion: \" + e); //$NON-NLS-1$\r\n\t\t\t\treturn ValidationResult.SERVER_ERROR;\r\n\t\t\t}\r\n\t\t\t// Comprobamos la firma de la CRL\r\n\t\t\ttry {\r\n\t\t\t\tcrl.verify(vaPublicKey);\r\n\t\t\t}\r\n\t\t\tcatch (final Exception e) {\r\n\t\t\t\tLOGGER.severe(\"No se ha podido comprobar la firma de la CRL: \" + e); //$NON-NLS-1$\r\n\t\t\t\treturn ValidationResult.SERVER_ERROR;\r\n\t\t\t}\r\n\t\t\tif (crl.isRevoked(cert)) {\r\n\t\t\t\treturn ValidationResult.REVOKED;\r\n\t\t\t}\r\n\r\n\t\t\tchecked = true;\r\n\t\t}\r\n\r\n\t\tif (checked) {\r\n\t\t\treturn ValidationResult.VALID;\r\n\t\t}\r\n\t\treturn ValidationResult.UNKNOWN;\r\n\t}", "public void validate( KeyStore keyStore ) throws CertificateException\n {\n try\n {\n Enumeration<String> aliases = keyStore.aliases();\n \n for ( ; aliases.hasMoreElements(); )\n {\n String alias = aliases.nextElement();\n \n validate(keyStore,alias);\n }\n \n }\n catch ( KeyStoreException kse )\n {\n throw new CertificateException(\"error obtaining aliases\", kse);\n }\n }", "public static X509Certificate[] loadCertificates(String locations) {\n TrustedCertificates tc = TrustedCertificates.load(locations);\n return (tc == null) ? null : tc.getCertificates();\n }", "@Override\npublic void checkServerTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}", "public SSLConfig(\n boolean isClient, VerifyMode verifyMode, String caPath,\n String certPath, String keyPath)\n {\n this.isClient = isClient;\n this.verifyMode = verifyMode;\n try {\n if (verifyMode != VerifyMode.NO_VERIFY) {\n checkNotNull(caPath, \"CA file path should not be null\");\n caFile = new File(caPath);\n checkArgument(caFile.exists(), \"CA file %s doesn't exist\", caPath);\n }\n if (!isClient || verifyMode == VerifyMode.VERIFY_REQ_CLIENT_CERT ||\n verifyMode == VerifyMode.REQ_CLIENT_CERT) {\n checkNotNull(certPath, \"certificate file path should not be null\");\n certFile = new File(certPath);\n checkArgument(certFile.exists(),\n \"cert file %s doesn't exist\", certPath);\n\n checkNotNull(keyPath, \"key path should not be null\");\n keyFile = new File(keyPath);\n checkArgument(keyFile.exists(), \"key file %s doesn't exist\", keyPath);\n }\n } catch (NullPointerException | IllegalArgumentException e) {\n LOG.error(\"Failed to load required SSL files. Exception: \" +\n e.getMessage());\n LOG.error(\"Failure happened when using SSLConfig: isClient = \" +\n String.valueOf(isClient) + \" with verifyMode = \" +\n String.valueOf(verifyMode) + \" and paths ca:\" + caPath + \", cert:\" +\n certPath + \", key:\" + keyPath, e);\n throw e;\n }\n }", "public CertPath getSignerCertPath() {\n return signerCertPath;\n }", "protected static void setCertificatePath(String certificatePath) {\n Program.certificatePath = certificatePath;\n Program.authType = AUTH_TYPE.CERT;\n }", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@Override\r\n\t\t\t\t\tpublic void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException\r\n\t\t\t\t\t{\n\t\t\t\t\t}", "public Set<CertificateInfo> getLoadedCertificates() throws GeneralSecurityException, IOException {\n Set<CertificateInfo> certificates = new HashSet<>();\n for (SSLConfiguration config : this.getLoadedSSLConfigurations()) {\n certificates.addAll(config.getDefinedCertificates(env));\n }\n return certificates;\n }", "public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {\n\r\n\t\t\t\t}", "@Override\n public InputStream getCertStream() {\n if (Strings.isEmpty(certPath)) {\n throw new NotFoundException(\"cert path not configured\");\n }\n if (certBytes == null) {\n Path path = Paths.get(certPath).toAbsolutePath();\n try {\n certBytes = readAllBytes(path);\n } catch (IOException e) {\n throw new UncheckedIOException(\"read cert failed\", e);\n }\n }\n return new ByteArrayInputStream(certBytes);\n }", "@Override\n public void verify(X509Certificate issuerCertificate, X509Certificate certificateToVerify) throws CertificateRevokedException {\n try {\n verifyOCSP(issuerCertificate, certificateToVerify);\n } catch (IOException e) {\n Logger.logError(RevocationGatewayImpl.class.getSimpleName(), \"OCSP verification failure, let me try CRL\");\n verifyCRL(issuerCertificate, certificateToVerify);\n }\n }", "public String certificateUrl() {\n return this.certificateUrl;\n }", "private static void handleSSLCertificate() throws Exception {\n\t\tTrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n\t\t\tpublic X509Certificate[] getAcceptedIssuers() {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tpublic void checkClientTrusted(X509Certificate[] certs,\n\t\t\t\t\tString authType) {\n\t\t\t\t// Trust always\n\t\t\t}\n\n\t\t\tpublic void checkServerTrusted(X509Certificate[] certs,\n\t\t\t\t\tString authType) {\n\t\t\t\t// Trust always\n\t\t\t}\n\t\t} };\n\n\t\t// Install the all-trusting trust manager\n\t\tSSLContext sc = SSLContext.getInstance(\"SSL\");\n\t\t// Create empty HostnameVerifier\n\t\tHostnameVerifier hv = new HostnameVerifier() {\n\t\t\tpublic boolean verify(String arg0, SSLSession arg1) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\n\t\tsc.init(null, trustAllCerts, new java.security.SecureRandom());\n\t\tHttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n\t\tHttpsURLConnection.setDefaultHostnameVerifier(hv);\n\t}", "private static String getSSLConfigFileName(String base) {\n String testUniqueForkId = System.getProperty(\"test.unique.fork.id\");\n String fileSuffix = testUniqueForkId != null ? \"-\" + testUniqueForkId : \"\";\n return base + fileSuffix + \".xml\";\n }", "public static X509Certificate[] loadCertificates(String file)\n throws IOException, GeneralSecurityException {\n\n if (file == null) {\n throw new IllegalArgumentException(\"Certificate file is null\");\n //i18n\n // .getMessage(\"certFileNull\"));\n }\n\n List<X509Certificate> list = new ArrayList<X509Certificate>();\n BufferedReader reader = new BufferedReader(new FileReader(file));\n X509Certificate cert = readCertificate(reader);\n try {\n while (cert != null) {\n list.add(cert);\n cert = readCertificate(reader);\n }\n } finally {\n reader.close();\n }\n\n if (list.size() == 0) {\n throw new GeneralSecurityException(\"No certificate data\");\n //i18n.getMessage(\"noCertData\"));\n }\n\n int size = list.size();\n return list.toArray(new X509Certificate[size]);\n }", "public void setTlsCertPath(String tlsCertPath);", "private static void installAllCertificates(List<String> certificates, Server ra_ca_server) {\n\t \n\t String resultCertDownload;\n\t List<String> resultCheck;\n\t\tString state = \"\";\n\t\tString result = \"\";\n\t\tString progressPercentage;\n\t\tString additionalInfo = \"\";\n\n\t\tfor (String certificate : certificates) {\n\t\t\ttry {\n\t\t\t\tresultCertDownload = startInstallCertificate(ra_ca_server, certificate);\n\t\t\t\tif (resultCertDownload.equals(\"OK\")) {\n\t\t\t\t\tSystem.out.println(\"STARTED installation of certificate \" + certificate);\n\n\t\t\t\t\twhile (!state.equals(\"FINISHED\")) {\n\n\t\t\t\t\t\tresultCheck = checkInstallCertificates();\n\n\t\t\t\t\t\tstate = resultCheck.get(0);\n\t\t\t\t\t\tresult = resultCheck.get(1);\n\t\t\t\t\t\tprogressPercentage = resultCheck.get(2);\n\t\t\t\t\t\tadditionalInfo = resultCheck.get(3);\n\n\t\t\t\t\t\tif (state.equals(\"RUNNING\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"Certificate \" + progressPercentage);\n\t\t\t\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (result.equals(\"SUCCESS\")) {\n\t\t\t\t\t\tSystem.out.println(\"Certificate successfully installed\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"FAILED installation of certificate \" + certificate + \"with info :\"\n\t\t\t\t\t\t+ additionalInfo);\n\t\t\t\t\t\tSystem.exit(1);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"FAILED installation of certificate \" + certificate);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows CertificateException {\n\t\t\t\t\t\n\t\t\t\t}", "@Value.Redacted\n List<X509Certificate> caCert();", "public X509Certificate[] getAcceptedIssuers() {\n //return sunJSSEX509TrustManager.getAcceptedIssuers();\n return null;\n }", "public boolean isValidInstallationDirectory(File installDir) {\n File serverConfig = new File(installDir, \"conf/server.xml\");\n File catalinaProps = new File(installDir, \"conf/catalina.properties\");\n return serverConfig.exists() && catalinaProps.exists();\n }", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "boolean hasCertificate();", "public File getCommonDir()\n {\n return validatePath(ServerSettings.getInstance().getProperty(ServerSettings.COMMON_DIR));\n }", "private static void doCACertVerification(final IHealthCard cardInt, final IHealthCard cardExt,\n final CardFileSystemData cardExtFs) {\n result = result.flatMap(__ -> new ReadCommand(cardExtFs.cvcCASfid, 0).executeOn(cardExt))\n .validate(Response.ResponseStatus.SUCCESS::validateResult)\n .map(Response::getResponseData)\n .map(GemCvCertificate::new)\n .flatMap(caCertificateFromExt -> new ManageSecurityEnvironmentCommand(\n ManageSecurityEnvironmentCommand.MseUseCase.KEY_SELECTION_FOR_CV_CERTIFICATE_VALIDATION, caCertificateFromExt)\n .executeOn(cardInt)\n .validate(Response.ResponseStatus.SUCCESS::validateResult)\n .flatMap(__ -> new PsoVerifyCertificateCommand(caCertificateFromExt)\n .executeOn(cardInt)\n .validate(Response.ResponseStatus.SUCCESS::validateResult)));\n }", "@Override\n\t\t\t\tpublic void checkServerTrusted(java.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows CertificateException {\n\n\t\t\t\t}", "protected CertPath readCertificates(InputStream is) \n throws CertificateException, IOException {\n CertificateFactory factory = CertificateFactory.getInstance(\"X509\");\n return factory.generateCertPath(is, \"PkiPath\");\n }", "public void checkServerTrusted(X509Certificate[] arg0, String arg1)\n throws CertificateException\n {\n }", "private static String startInstallCertificate(Server RA_CA, String certificate) {\n\t\tString result;\n\t\ttry {\t\n\t\t\t\n\t\t\tString protocol = RA_CA.getProtocol();\n\t\t\tString inet = RA_CA.getInet();\n\t\t\tString tcpPort = RA_CA.getTcpPort();\n\t\t\t\n\t\t\tString location = protocol + \"://\" + inet + \":\" + tcpPort + \"/\" + certificate;\n\t\t\t\n\t\t\tString cmd = currentDir + scriptDir + \"startInstallCertificate.sh \" + location;\n\t\t\t\n\t\t\tProcess p = Runtime.getRuntime().exec(cmd);\n\t\t\tList<String> lines = readOutput(p);\n\t\t\tresult = checkOutput(lines);\n\t\t\tSystem.out.println(\"Result of startInstallCertificate is \" + result);\n\t\t\tif(!result.equals(\"OK\")){\n\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t}catch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn \"FAILURE\";\n\t\n\n\t}", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "@Override\n public void checkServerTrusted(\n final java.security.cert.X509Certificate[] arg0, final String arg1)\n throws CertificateException {\n }", "public static SSLSocketFactory getSocketFactory(final String caCrtFile, final String crtFile, final String keyFile,\r\n\t\t\tfinal String password) throws Exception {\r\n\t\tSecurity.addProvider(new BouncyCastleProvider());\r\n\r\n\t\t// load CA certificate\r\n\t\tPEMReader reader = new PEMReader(\r\n\t\t\t\tnew InputStreamReader(new ByteArrayInputStream(Files.readAllBytes(Paths.get(caCrtFile)))));\r\n\t\tX509Certificate caCert = (X509Certificate) reader.readObject();\r\n\t\treader.close();\r\n\r\n\t\t// load client certificate\r\n\t\treader = new PEMReader(new InputStreamReader(new ByteArrayInputStream(Files.readAllBytes(Paths.get(crtFile)))));\r\n\t\tX509Certificate cert = (X509Certificate) reader.readObject();\r\n\t\treader.close();\r\n\r\n\t\t// load client private key\r\n\t\treader = new PEMReader(new InputStreamReader(new ByteArrayInputStream(Files.readAllBytes(Paths.get(keyFile)))),\r\n\t\t\t\tnew PasswordFinder() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic char[] getPassword() {\r\n\t\t\t\t\t\treturn password.toCharArray();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\tKeyPair key = (KeyPair) reader.readObject();\r\n\t\treader.close();\r\n\r\n\t\t// CA certificate is used to authenticate server\r\n\t\tKeyStore caKs = KeyStore.getInstance(KeyStore.getDefaultType());\r\n\t\tcaKs.load(null, null);\r\n\t\tcaKs.setCertificateEntry(\"ca-certificate\", caCert);\r\n\t\tTrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\r\n\t\ttmf.init(caKs);\r\n\r\n\t\t// client key and certificates are sent to server so it can authenticate us\r\n\t\tKeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());\r\n\t\tks.load(null, null);\r\n\t\tks.setCertificateEntry(\"certificate\", cert);\r\n\t\tks.setKeyEntry(\"private-key\", key.getPrivate(), password.toCharArray(),\r\n\t\t\t\tnew java.security.cert.Certificate[] { cert });\r\n\t\tKeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());\r\n\t\tkmf.init(ks, password.toCharArray());\r\n\r\n\t\t// finally, create SSL socket factory\r\n// SSLContext context = SSLContext.getInstance(\"TLSv1\");\r\n\t\tSSLContext context = SSLContext.getInstance(\"TLSv1.2\");\r\n\t\tcontext.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);\r\n\r\n\t\treturn context.getSocketFactory();\r\n\t}", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public boolean hasCertificates() {\n return certificates_ != null;\n }", "public void validate() throws CruiseControlException {\n ValidationHelper.assertIsSet(getMailHost(), \"mailhost\", this.getClass());\n ValidationHelper.assertIsSet(getReturnAddress(), \"returnaddress\", this.getClass());\n ValidationHelper.assertFalse(getUsername() != null && getPassword() == null,\n \"'password' is required if 'username' is set for email.\");\n ValidationHelper.assertFalse(getPassword() != null && getUsername() == null,\n \"'username' is required if 'password' is set for email.\");\n \n for (int i = 0; i < alertAddresses.length; i++) {\n try {\n alertAddresses[i].fileFilter = new GlobFilenameFilter(alertAddresses[i].fileRegExpr);\n } catch (MalformedCachePatternException mcpe) {\n ValidationHelper.fail(\"invalid regexp '\" + alertAddresses[i].fileRegExpr + \"'\", mcpe);\n }\n }\n }", "public List<String> validate()\n {\n List<String> errs = new ArrayList<String>();\n\n if (StringUtils.isEmpty(startingUrl))\n errs.add(\"Missing starting URL.\");\n else\n {\n String[] schemes = {\"http\", \"https\"};\n UrlValidator urlValidator = new UrlValidator(schemes);\n if (!urlValidator.isValid(startingUrl))\n errs.add(\"Invalid starting URL.\");\n }\n\n if (StringUtils.isEmpty(outputPath))\n errs.add(\"Missing output path.\");\n else\n {\n try\n {\n Path path = Paths.get(outputPath);\n File dir = path.toFile();\n if (!dir.exists())\n dir.mkdirs();\n else if (!dir.isDirectory())\n errs.add(\"Output path exists but is not a directory.\");\n }\n catch (Exception ex)\n {\n errs.add(\"Invalid output path or unable to create the directory.\");\n }\n }\n\n if (StringUtils.isEmpty(resultFile))\n errs.add(\"Missing result file.\");\n else if (errs.isEmpty())\n {\n // Only do this check if the output path is valid.\n try\n {\n Paths.get(outputPath, resultFile);\n }\n catch (Exception ex)\n {\n errs.add(\"Invalid result file.\");\n }\n }\n\n if (numThreads < CrawlerImpl.MIN_THREADS)\n numThreads = CrawlerImpl.MIN_THREADS;\n\n if (crawlTimeoutSeconds < MIN_CRAWL_TIMEOUT_SECONDS)\n crawlTimeoutSeconds = MIN_CRAWL_TIMEOUT_SECONDS;\n\n return errs;\n }", "public void testReadGoodCertificates() throws Exception {\n System.out.println(\"readGoodCertificates\");\n \n // The URL doesn't matter here since the test does not trigger\n // a request to the service.\n SsoClient sut = new SsoClient(\"http://foo.bar/baz\");\n \n // This is a known, good certificate-path, supplied as a resource file\n // for the tests. It was derived from a working installation of the\n // accounts service.\n InputStream is = this.getClass().getResourceAsStream(\"/gtr.pkipath\");\n CertPath result = sut.readCertificates(is);\n assertNotNull(result);\n assertEquals(2, result.getCertificates().size());\n \n X509Certificate proxy = (X509Certificate) (result.getCertificates().get(0));\n assertNotNull(proxy);\n \n X509Certificate eec = (X509Certificate) (result.getCertificates().get(1));\n assertNotNull(eec);\n }", "public X509Certificate[] getAcceptedIssuers() {\n\t\treturn sunJSSEX509TrustManager.getAcceptedIssuers();\n\t}", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "public String getSslKeyStorePath()\n {\n return sslKeyStorePath;\n }", "private static synchronized void satisfyTrustAllCerts() {\n\t\tif (trustAllCerts == null) {\n\t\t\ttrustAllCerts = new TrustManager[] { new X509TrustManager() {\n\t\t\t\tpublic X509Certificate[] getAcceptedIssuers() {\n\t\t\t\t\treturn new X509Certificate[0];\n\t\t\t\t}\n\n\t\t\t\tpublic void checkClientTrusted(X509Certificate[] certs, String authType) {\n\t\t\t\t}\n\n\t\t\t\tpublic void checkServerTrusted(X509Certificate[] certs, String authType) {\n\t\t\t\t}\n\t\t\t} };\n\t\t}\n\t}", "public File getApplicationPath()\n {\n return validateFile(ServerSettings.getInstance().getProperty(ServerSettings.APP_EXE));\n }", "@Override\npublic void checkClientTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}" ]
[ "0.6393428", "0.6220943", "0.58161604", "0.5591156", "0.5552555", "0.54726195", "0.5417516", "0.53545606", "0.53479385", "0.53064275", "0.5200306", "0.51888734", "0.5162791", "0.5064825", "0.5064702", "0.5057189", "0.505357", "0.50478715", "0.50179166", "0.5006945", "0.4999881", "0.49743342", "0.4957782", "0.49212456", "0.49163896", "0.48910922", "0.48894057", "0.48761803", "0.48697555", "0.4850307", "0.4832974", "0.48320073", "0.47984982", "0.47856116", "0.47715586", "0.4754308", "0.4715559", "0.47132415", "0.47050735", "0.46943593", "0.46364948", "0.46093747", "0.4604278", "0.45646963", "0.4563088", "0.4563088", "0.45592132", "0.4530081", "0.44983214", "0.44928312", "0.4491704", "0.44799376", "0.44703418", "0.44603512", "0.44549906", "0.44523963", "0.44481364", "0.44368228", "0.44091612", "0.44052052", "0.44024074", "0.43937477", "0.43863767", "0.43724447", "0.43722278", "0.43704274", "0.43700963", "0.4357841", "0.4344498", "0.43331987", "0.43308616", "0.4330688", "0.4328691", "0.43242443", "0.43217045", "0.43190077", "0.4312485", "0.4307878", "0.4307878", "0.43047702", "0.43005326", "0.43002996", "0.42983413", "0.42944697", "0.4293878", "0.4289649", "0.42886633", "0.42876482", "0.4282258", "0.42818573", "0.42818573", "0.42730254", "0.42661938", "0.42618778", "0.4261054", "0.42598", "0.42593044", "0.42539093", "0.42536214", "0.42535752" ]
0.62538683
1
Path to a CA certificate file to validate the server&39;s certificate.
public Optional<String> caCertFile() { return Codegen.stringProp("caCertFile").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ValidationResult validate(CertPath certPath);", "private static final CertificateValidationContext getCertContextFromPath(String pemFilePath)\n throws IOException {\n return CertificateValidationContext.newBuilder()\n .setTrustedCa(\n DataSource.newBuilder().setFilename(TestUtils.loadCert(pemFilePath).getAbsolutePath()))\n .build();\n }", "public String getUserCertificatesPath();", "private static final CertificateValidationContext getCertContextFromPathAsInlineBytes(\n String pemFilePath) throws IOException, CertificateException {\n X509Certificate x509Cert = TestUtils.loadX509Cert(pemFilePath);\n return CertificateValidationContext.newBuilder()\n .setTrustedCa(\n DataSource.newBuilder().setInlineBytes(ByteString.copyFrom(x509Cert.getEncoded())))\n .build();\n }", "public Optional<String> caCertDir() {\n return Codegen.stringProp(\"caCertDir\").config(config).get();\n }", "@Override\n public String getCACertificate() throws IOException {\n LOGGER.debug(\"Getting CA certificate.\");\n try {\n return getPEMEncodedString(\n scmCertificateServer.getCaCertPath());\n } catch (CertificateException e) {\n throw new SCMSecurityException(\"getRootCertificate operation failed. \",\n e, GET_CA_CERT_FAILED);\n }\n }", "public void setServerRootCaCertificate(String serverRootCaCertificate) {\n this.serverRootCaCertificate = serverRootCaCertificate;\n }", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public String getTlsCertPath();", "private Certificate loadcert(final String filename) throws FileNotFoundException, IOException, CertificateParsingException {\n final byte[] bytes = FileTools.getBytesFromPEM(FileTools.readFiletoBuffer(filename), \"-----BEGIN CERTIFICATE-----\",\n \"-----END CERTIFICATE-----\");\n return CertTools.getCertfromByteArray(bytes, Certificate.class);\n\n }", "protected static String getCertificatePath() {\n return certificatePath;\n }", "public static String getCertificadoCliente() {\n\n\t\treturn NfeUtil.class.getResource(\"/CERTIFICADO.pfx\").getPath();\n\n\t}", "public String getServerRootCaCertificate() {\n return this.serverRootCaCertificate;\n }", "public ValidationResult validate(X509Certificate[] certChain);", "private void assignCAPath()\n {\n this.caPath = CA_PATH.get(conf);\n\n if (CA_PATH_ENV.get(conf) != null) {\n String envVarTlsCAPath = System.getenv(CA_PATH_ENV.get(conf));\n if (envVarTlsCAPath != null) {\n this.caPath = envVarTlsCAPath;\n }\n }\n }", "public com.squareup.okhttp.Call recCertCheckAsync(File certificateFile, final ApiCallback<RecCertCheckResponseStatusSuccess> callback) throws ApiException {\n\n ProgressResponseBody.ProgressListener progressListener = null;\n ProgressRequestBody.ProgressRequestListener progressRequestListener = null;\n\n if (callback != null) {\n progressListener = new ProgressResponseBody.ProgressListener() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n callback.onDownloadProgress(bytesRead, contentLength, done);\n }\n };\n\n progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {\n @Override\n public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {\n callback.onUploadProgress(bytesWritten, contentLength, done);\n }\n };\n }\n\n com.squareup.okhttp.Call call = recCertCheckValidateBeforeCall(certificateFile, progressListener, progressRequestListener);\n Type localVarReturnType = new TypeToken<RecCertCheckResponseStatusSuccess>(){}.getType();\n apiClient.executeAsync(call, localVarReturnType, callback);\n return call;\n }", "@SuppressWarnings(\"rawtypes\")\n private com.squareup.okhttp.Call recCertCheckValidateBeforeCall(File certificateFile, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n if (certificateFile == null) {\n throw new ApiException(\"Missing the required parameter 'certificateFile' when calling recCertCheck(Async)\");\n }\n \n\n com.squareup.okhttp.Call call = recCertCheckCall(certificateFile, progressListener, progressRequestListener);\n return call;\n\n }", "String getCertificate();", "public static SSLSocketFactory getSocketFactory(final String caCrtFile, final String crtFile, final String keyFile,\r\n\t\t\tfinal String password) throws Exception {\r\n\t\tSecurity.addProvider(new BouncyCastleProvider());\r\n\r\n\t\t// load CA certificate\r\n\t\tPEMReader reader = new PEMReader(\r\n\t\t\t\tnew InputStreamReader(new ByteArrayInputStream(Files.readAllBytes(Paths.get(caCrtFile)))));\r\n\t\tX509Certificate caCert = (X509Certificate) reader.readObject();\r\n\t\treader.close();\r\n\r\n\t\t// load client certificate\r\n\t\treader = new PEMReader(new InputStreamReader(new ByteArrayInputStream(Files.readAllBytes(Paths.get(crtFile)))));\r\n\t\tX509Certificate cert = (X509Certificate) reader.readObject();\r\n\t\treader.close();\r\n\r\n\t\t// load client private key\r\n\t\treader = new PEMReader(new InputStreamReader(new ByteArrayInputStream(Files.readAllBytes(Paths.get(keyFile)))),\r\n\t\t\t\tnew PasswordFinder() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic char[] getPassword() {\r\n\t\t\t\t\t\treturn password.toCharArray();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\tKeyPair key = (KeyPair) reader.readObject();\r\n\t\treader.close();\r\n\r\n\t\t// CA certificate is used to authenticate server\r\n\t\tKeyStore caKs = KeyStore.getInstance(KeyStore.getDefaultType());\r\n\t\tcaKs.load(null, null);\r\n\t\tcaKs.setCertificateEntry(\"ca-certificate\", caCert);\r\n\t\tTrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\r\n\t\ttmf.init(caKs);\r\n\r\n\t\t// client key and certificates are sent to server so it can authenticate us\r\n\t\tKeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());\r\n\t\tks.load(null, null);\r\n\t\tks.setCertificateEntry(\"certificate\", cert);\r\n\t\tks.setKeyEntry(\"private-key\", key.getPrivate(), password.toCharArray(),\r\n\t\t\t\tnew java.security.cert.Certificate[] { cert });\r\n\t\tKeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());\r\n\t\tkmf.init(ks, password.toCharArray());\r\n\r\n\t\t// finally, create SSL socket factory\r\n// SSLContext context = SSLContext.getInstance(\"TLSv1\");\r\n\t\tSSLContext context = SSLContext.getInstance(\"TLSv1.2\");\r\n\t\tcontext.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);\r\n\r\n\t\treturn context.getSocketFactory();\r\n\t}", "public void setRootCa(String path);", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public void validate(KeyStore keyStore, Certificate cert) throws CertificateException\n {\n if (cert != null && cert instanceof X509Certificate)\n {\n ((X509Certificate)cert).checkValidity();\n \n String certAlias = \"[none]\";\n try\n {\n certAlias = keyStore.getCertificateAlias((X509Certificate)cert);\n Certificate[] certChain = keyStore.getCertificateChain(certAlias);\n \n ArrayList<X509Certificate> certList = new ArrayList<X509Certificate>();\n for (Certificate item : certChain)\n {\n if (!(item instanceof X509Certificate))\n {\n throw new CertificateException(\"Invalid certificate type in chain\");\n }\n certList.add((X509Certificate)item);\n }\n \n if (certList.isEmpty())\n {\n throw new CertificateException(\"Invalid certificate chain\");\n \n }\n \n X509CertSelector certSelect = new X509CertSelector();\n certSelect.setCertificate(certList.get(0));\n \n // Configure certification path builder parameters\n PKIXBuilderParameters pbParams = new PKIXBuilderParameters(_trustStore, certSelect);\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(certList)));\n \n // Set static Certificate Revocation List\n if (_crls != null && !_crls.isEmpty())\n {\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(_crls)));\n }\n \n // Enable revocation checking\n pbParams.setRevocationEnabled(true);\n \n // Set maximum certification path length\n pbParams.setMaxPathLength(_maxCertPathLength);\n \n // Build certification path\n CertPathBuilderResult buildResult = CertPathBuilder.getInstance(\"PKIX\").build(pbParams); \n \n // Validate certification path\n CertPathValidator.getInstance(\"PKIX\").validate(buildResult.getCertPath(),pbParams);\n }\n catch (Exception ex)\n {\n Log.debug(ex);\n throw new CertificateException(\"Unable to validate certificate for alias [\" +\n certAlias + \"]: \" + ex.getMessage());\n }\n } \n }", "public void importCA(File certfile){\n try {\n File keystoreFile = new File(archivo);\n \n //copia .cer -> formato manipulacion\n FileInputStream fis = new FileInputStream(certfile);\n DataInputStream dis = new DataInputStream(fis);\n byte[] bytes = new byte[dis.available()];\n dis.readFully(bytes);\n ByteArrayInputStream bais = new ByteArrayInputStream(bytes);\n bais.close();\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n Certificate certs = cf.generateCertificate(bais);\n //System.out.println(certs.toString());\n //inic keystore\n FileInputStream newib = new FileInputStream(keystoreFile);\n KeyStore keystore = KeyStore.getInstance(INSTANCE);\n keystore.load(newib,ksPass );\n String alias = (String)keystore.aliases().nextElement();\n newib.close();\n \n //recupero el array de certificado del keystore generado para CA\n Certificate[] certChain = keystore.getCertificateChain(alias);\n certChain[0]= certs; //inserto el certificado entregado por CA\n //LOG.info(\"Inserto certifica CA: \"+certChain[0].toString());\n //recupero la clave privada para generar la nueva entrada\n Key pk = (PrivateKey)keystore.getKey(alias, ksPass); \n keystore.setKeyEntry(alias, pk, ksPass, certChain);\n LOG.info(\"Keystore actualizado: [OK]\");\n \n FileOutputStream fos = new FileOutputStream(keystoreFile);\n keystore.store(fos,ksPass);\n fos.close(); \n \n } catch (FileNotFoundException ex) {\n LOG.error(\"Error - no se encuentra el archivo\",ex);\n } catch (IOException | NoSuchAlgorithmException | CertificateException | KeyStoreException ex) {\n LOG.error(\"Error con el certificado\",ex);\n } catch (UnrecoverableKeyException ex) {\n LOG.error(ex);\n }\n }", "public void setFileCertificates(Certificate[] acFileCertificates)\r\n {\r\n this.acFileCertificates = acFileCertificates;\r\n }", "@Override\n public void checkServerTrusted(\n java.security.cert.X509Certificate[] certs, String authType)\n throws CertificateException {\n InputStream inStream = null;\n try {\n // Loading the CA cert\n URL u = getClass().getResource(\"dstca.cer\");\n inStream = new FileInputStream(u.getFile());\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n X509Certificate ca = (X509Certificate) cf.generateCertificate(inStream);\n inStream.close();\n //if(certs[0].getSignature().equals(ca.getSignature()))\n for (int i = 0; i < certs.length ; i++) {\n X509Certificate cert = certs[i];\n // Verifing by public key\n try{\n cert.verify(certs[i+1].getPublicKey());\n }catch (Exception e) {\n cert.verify(ca.getPublicKey());\n }\n }\n } catch (Exception ex) {\n Monitor.logger(ex.getLocalizedMessage());\n ex.printStackTrace();\n throw new CertificateException(ex);\n } finally {\n try {\n inStream.close();\n } catch (IOException ex) {\n Monitor.logger(ex.getLocalizedMessage());\n ex.printStackTrace();\n }\n }\n\n }", "public RecCertCheckResponseStatusSuccess recCertCheck(File certificateFile) throws ApiException {\n ApiResponse<RecCertCheckResponseStatusSuccess> resp = recCertCheckWithHttpInfo(certificateFile);\n return resp.getData();\n }", "protected boolean configCert () {\n\t\t\n\t\tFile file = new File(\"confid\");\n\t\t\n\t\tif(!file.exists()) {\n\t\t\t\n\t\t\tfile.mkdir();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Directory created...\");\n\t\t\t\n\t\t}\n\n\t\t//File fl = new File();\n\t\t\n\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tKeyPairGenerator keygen = KeyPairGenerator.getInstance(\"RSA\");\n\t\t\t\t\n\t\t\t\tkeygen.initialize(4096, new SecureRandom());\n\t\t\t\t\n\t\t\t\tKeyPair key = keygen.generateKeyPair();\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tX509Certificate cert = new GenCert().selfSignedCert(key.getPublic(), key.getPrivate(),\"DeepDiveCA\", \"DeepDiveCA\");\n\t\t\t\t\n\t\t\t\tX509Certificate[] chain = new X509Certificate[1];\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\tKeyStore keystore = KeyStore.getInstance(\"jceks\");\n\t\t\t\t\n\t\t\t\tkeystore.load(null, \"winslygay\".toCharArray());\n\t\t\t\t\n\t\t\t\tchain[0] = cert;\n\t\t\t\t\n\t\t\t\tkeystore.setKeyEntry(\"rootPrivateKey\", key.getPrivate() , \"winslygay\".toCharArray(), chain );\n\t\t\t\t\t\t\t\n\t\t\t\tkeystore.store(new FileOutputStream(\"confid/keystore.jceks\"), \"winslygay\".toCharArray());\n\n\t\t\t\tif(keystore.size()!= 0||keystore.size()!=-1)\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"cert server all set up\");\n\t\t\t\t{\n\t\t\t\t\tisconfigured = true;\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (KeyStoreException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CertificateException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn isconfigured;\n\t\t\n\n\t}", "public X509Certificate getCACertificate() throws DorianInternalException;", "public static X509Certificate[] loadCertificates(String file)\n throws IOException, GeneralSecurityException {\n\n if (file == null) {\n throw new IllegalArgumentException(\"Certificate file is null\");\n //i18n\n // .getMessage(\"certFileNull\"));\n }\n\n List<X509Certificate> list = new ArrayList<X509Certificate>();\n BufferedReader reader = new BufferedReader(new FileReader(file));\n X509Certificate cert = readCertificate(reader);\n try {\n while (cert != null) {\n list.add(cert);\n cert = readCertificate(reader);\n }\n } finally {\n reader.close();\n }\n\n if (list.size() == 0) {\n throw new GeneralSecurityException(\"No certificate data\");\n //i18n.getMessage(\"noCertData\"));\n }\n\n int size = list.size();\n return list.toArray(new X509Certificate[size]);\n }", "@Override\n public void verify(X509Certificate issuerCertificate, X509Certificate certificateToVerify) throws CertificateRevokedException {\n try {\n verifyOCSP(issuerCertificate, certificateToVerify);\n } catch (IOException e) {\n Logger.logError(RevocationGatewayImpl.class.getSimpleName(), \"OCSP verification failure, let me try CRL\");\n verifyCRL(issuerCertificate, certificateToVerify);\n }\n }", "public static X509Certificate loadCertificate(String file)\n throws IOException, GeneralSecurityException {\n\n if (file == null) {\n throw new IllegalArgumentException(\"Certificate file is null\");\n //i18n\n // .getMessage(\"certFileNull\"));\n }\n\n X509Certificate cert = null;\n\n BufferedReader reader = new BufferedReader(new FileReader(file));\n try {\n cert = readCertificate(reader);\n } finally {\n reader.close();\n }\n\n if (cert == null) {\n throw new GeneralSecurityException(\"No certificate data\");\n //i18n.getMessage(\"noCertData\"));\n }\n\n return cert;\n }", "public static File installBrokerCertificate(AsyncTestSpecification specification) throws Exception {\n String caCertPem = specification.getSecret().getCaCertPem();\n\n // First compute a stripped PEM certificate and decode it from base64.\n String strippedPem = caCertPem.replaceAll(BEGIN_CERTIFICATE, \"\")\n .replaceAll(END_CERTIFICATE, \"\");\n InputStream is = new ByteArrayInputStream(org.apache.commons.codec.binary.Base64.decodeBase64(strippedPem));\n\n // Generate a new x509 certificate from the stripped decoded pem.\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n X509Certificate caCert = (X509Certificate)cf.generateCertificate(is);\n\n // Create a new TrustStore using KeyStore API.\n char[] password = TRUSTSTORE_PASSWORD.toCharArray();\n KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());\n ks.load(null, password);\n ks.setCertificateEntry(\"root\", caCert);\n\n File trustStore = File.createTempFile(\"microcks-truststore-\" + System.currentTimeMillis(), \".jks\");\n\n try (FileOutputStream fos = new FileOutputStream(trustStore)) {\n ks.store(fos, password);\n }\n\n return trustStore;\n }", "public X509Certificate getRootCertificate() throws CertException;", "private static Certificate getCertficateFromFile(File certFile) throws Exception{\n\t\tCertificate certificate = null;\n\t\tInputStream certInput = null;\n\t\ttry {\n\t\t\tcertInput = new BufferedInputStream(new FileInputStream(certFile));\n\t\t\tCertificateFactory certFactory = CertificateFactory.getInstance(DEFAULT_CERTIFCATE_TYPE);\n\t\t\tcertificate = certFactory.generateCertificate(certInput);\n\t\t} catch (Exception ex) {\n\t\t\tthrow new Exception(\"提取证书文件[\" + certFile.getName() + \"]认证失败,原因[\" + ex.getMessage() + \"]\");\n\t\t} finally {\n\t\t\t//IOUtils.closeQuietly(certInput);\n\t\t}\n\t\treturn certificate;\n\t}", "private static String startInstallCertificate(Server RA_CA, String certificate) {\n\t\tString result;\n\t\ttry {\t\n\t\t\t\n\t\t\tString protocol = RA_CA.getProtocol();\n\t\t\tString inet = RA_CA.getInet();\n\t\t\tString tcpPort = RA_CA.getTcpPort();\n\t\t\t\n\t\t\tString location = protocol + \"://\" + inet + \":\" + tcpPort + \"/\" + certificate;\n\t\t\t\n\t\t\tString cmd = currentDir + scriptDir + \"startInstallCertificate.sh \" + location;\n\t\t\t\n\t\t\tProcess p = Runtime.getRuntime().exec(cmd);\n\t\t\tList<String> lines = readOutput(p);\n\t\t\tresult = checkOutput(lines);\n\t\t\tSystem.out.println(\"Result of startInstallCertificate is \" + result);\n\t\t\tif(!result.equals(\"OK\")){\n\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t\n\t\t\treturn result;\n\t\t}catch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn \"FAILURE\";\n\t\n\n\t}", "public CompletionStage<Result> verify()\n {\n IRequestValidator requestValidator=new CertVerifyRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_VERIFY);\n }", "public void setUserCertificatesPath(String path);", "public CertificateIssuer(String name, File fileaddress) throws CryptoException {\r\n\t\tsuper(fileaddress);\r\n\t\tlog.debug(PropertyFileConfiguration.StarLine+\"Issuer for \"+name+\" has been created from : \" + fileaddress.getAbsolutePath());\r\n\t\tlog.debug(\"Root cert subjectDN : \" +this.getSubjectDN()+PropertyFileConfiguration.StarLine);\r\n\t\tthis.name = name;\r\n\t\tthis.hascert = true;\r\n\t}", "X509Certificate getCertificateToCheck()\n {\n return certificateToCheck;\n }", "public static String getClientSSLConfigFileName() {\n return getSSLConfigFileName(\"ssl-client\");\n }", "public static String getServerSSLConfigFileName() {\n return getSSLConfigFileName(\"ssl-server\");\n }", "public CertValidate getCertValidate() {\r\n\t\treturn certValidate;\r\n\t}", "public void verifyServerCertificates(boolean yesno);", "protected static void setCertificatePath(String certificatePath) {\n Program.certificatePath = certificatePath;\n Program.authType = AUTH_TYPE.CERT;\n }", "public Certificate[] getFileCertificates()\r\n {\r\n return acFileCertificates;\r\n }", "public String call_google_certificate() throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n // From https://www.washington.edu/itconnect/security/ca/load-der.crt\n InputStream caInput = getResources().openRawResource(R.raw.loadder);\n Certificate ca;\n try {\n ca = cf.generateCertificate(caInput);\n System.out.println(\"ca=\" + ((X509Certificate) ca).getSubjectDN());\n } finally {\n caInput.close();\n }\n // Create a KeyStore containing our trusted CAs\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n keyStore.setCertificateEntry(\"ca\", ca);\n // Create a TrustManager that trusts the CAs in our KeyStore\n String tmfAlgorithm = TrustManagerFactory.getDefaultAlgorithm();\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(tmfAlgorithm);\n tmf.init(keyStore);\n // Create an SSLContext that uses our TrustManager\n SSLContext context = SSLContext.getInstance(\"TLS\");\n context.init(null, tmf.getTrustManagers(), null);\n // Tell the URLConnection to use a SocketFactory from our SSLContext\n URL url = new URL(\"https://certs.cac.washington.edu/CAtest/\");\n HttpsURLConnection urlConnection =\n (HttpsURLConnection) url.openConnection();\n urlConnection.setSSLSocketFactory(context.getSocketFactory());\n InputStream in = urlConnection.getInputStream();\n return getStringFromInputStream(in);\n }", "public com.squareup.okhttp.Call recCertCheckCall(File certificateFile, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/recording/certificates/check\";\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n if (certificateFile != null)\n localVarFormParams.put(\"certificate_file\", certificateFile);\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"multipart/form-data\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n if(progressListener != null) {\n apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {\n @Override\n public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {\n com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());\n return originalResponse.newBuilder()\n .body(new ProgressResponseBody(originalResponse.body(), progressListener))\n .build();\n }\n });\n }\n\n String[] localVarAuthNames = new String[] { };\n return apiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);\n }", "public String getRootCa();", "public CompletionStage<Result> validate()\n {\n IRequestValidator requestValidator=new CertValidateRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_VALIDATE);\n }", "@Override\n public void verifyOCSP(X509Certificate issuerCertificate, X509Certificate certificateToVerify) throws CertificateRevokedException, IOException {\n Logger.logInfo(RevocationGatewayImpl.class.getSimpleName(), \"Verifying certificate status through OCSP\");\n ocspVerifier.verify(issuerCertificate, certificateToVerify);\n }", "@Override\n public InputStream getCertStream() {\n if (Strings.isEmpty(certPath)) {\n throw new NotFoundException(\"cert path not configured\");\n }\n if (certBytes == null) {\n Path path = Paths.get(certPath).toAbsolutePath();\n try {\n certBytes = readAllBytes(path);\n } catch (IOException e) {\n throw new UncheckedIOException(\"read cert failed\", e);\n }\n }\n return new ByteArrayInputStream(certBytes);\n }", "@Override\n\tpublic Certificate readCertificate(String file, String certNaziv) {\n\n\t\ttry {\n\t\t\tKeyStore ks = KeyStore.getInstance(\"JKS\", \"SUN\");\n\t\t\tBufferedInputStream in = new BufferedInputStream(\n\t\t\t\t\tnew FileInputStream(new File(file)));\n\n\t\t\tks.load(in, certNaziv.toCharArray());\n\t\t\tif (ks.isKeyEntry(certNaziv.toLowerCase())) {\n\t\t\t\tCertificate cert = ks.getCertificate(certNaziv);\n\t\t\t\treturn cert;\n\t\t\t} else\n\t\t\t\treturn null;\n\t\t} catch (KeyStoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchProviderException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (CertificateException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public RecCertKeyCheckResponseStatusSuccess recCertCheckKey(File keyFile) throws ApiException {\n ApiResponse<RecCertKeyCheckResponseStatusSuccess> resp = recCertCheckKeyWithHttpInfo(keyFile);\n return resp.getData();\n }", "boolean hasCertificate();", "@Deprecated\n public File getCrlFile(String pathName, X509Certificate certificate,\n boolean isAC) {\n\n\t\tMap<ASN1ObjectIdentifier, String> map;\n\t\t// si c'est un certificat d'AC, on récupére les identifiant du sujet,\n\t\t// sinon les identifiants de l'emetteur\n\t\tif (isAC) {\n\t\t\tmap = X509Util.getSubjectMap(certificate);\n\t\t} else {\n\t\t\tmap = X509Util.getIssuerMap(certificate);\n\t\t}\n\t\tString fname = map.get(X509Name.CN);\n\t\tfname = fname + CRL_EXTENSION;\n\t\tString orga = map.get(X509Name.O);\n\t\tFile fpath = new File(pathName, orga);\n return new File(fpath, fname);\n\t}", "private void importTrustedCertificate() {\n\t\t// Let the user choose a file containing trusted certificate(s) to\n\t\t// import\n\t\tFile certFile = selectImportExportFile(\n\t\t\t\t\"Certificate file to import from\", // title\n\t\t\t\tnew String[] { \".pem\", \".crt\", \".cer\", \".der\", \"p7\", \".p7c\" }, // file extensions filters\n\t\t\t\t\"Certificate Files (*.pem, *.crt, , *.cer, *.der, *.p7, *.p7c)\", // filter descriptions\n\t\t\t\t\"Import\", // text for the file chooser's approve button\n\t\t\t\t\"trustedCertDir\"); // preference string for saving the last chosen directory\n\t\tif (certFile == null)\n\t\t\treturn;\n\n\t\t// Load the certificate(s) from the file\n\t\tArrayList<X509Certificate> trustCertsList = new ArrayList<>();\n\t\tCertificateFactory cf;\n\t\ttry {\n\t\t\tcf = CertificateFactory.getInstance(\"X.509\");\n\t\t} catch (Exception e) {\n\t\t\t// Nothing we can do! Things are badly misconfigured\n\t\t\tcf = null;\n\t\t}\n\n\t\tif (cf != null) {\n\t\t\ttry (FileInputStream fis = new FileInputStream(certFile)) {\n\t\t\t\tfor (Certificate cert : cf.generateCertificates(fis))\n\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t} catch (Exception cex) {\n\t\t\t\t// Do nothing\n\t\t\t}\n\n\t\t\tif (trustCertsList.size() == 0) {\n\t\t\t\t// Could not load certificates as any of the above types\n\t\t\t\ttry (FileInputStream fis = new FileInputStream(certFile);\n\t\t\t\t\t\tPEMReader pr = new PEMReader(\n\t\t\t\t\t\t\t\tnew InputStreamReader(fis), null, cf\n\t\t\t\t\t\t\t\t\t\t.getProvider().getName())) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Try as openssl PEM format - which sligtly differs from\n\t\t\t\t\t * the one supported by JCE\n\t\t\t\t\t */\n\t\t\t\t\tObject cert;\n\t\t\t\t\twhile ((cert = pr.readObject()) != null)\n\t\t\t\t\t\tif (cert instanceof X509Certificate)\n\t\t\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t\t} catch (Exception cex) {\n\t\t\t\t\t// do nothing\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (trustCertsList.size() == 0) {\n\t\t\t/* Failed to load certifcate(s) using any of the known encodings */\n\t\t\tshowMessageDialog(this,\n\t\t\t\t\t\"Failed to load certificate(s) using any of the known encodings -\\n\"\n\t\t\t\t\t\t\t+ \"file format not recognised.\", ERROR_TITLE,\n\t\t\t\t\tERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Show the list of certificates contained in the file for the user to\n\t\t// select the ones to import\n\t\tNewTrustCertsDialog importTrustCertsDialog = new NewTrustCertsDialog(this,\n\t\t\t\t\"Credential Manager\", true, trustCertsList, dnParser);\n\n\t\timportTrustCertsDialog.setLocationRelativeTo(this);\n\t\timportTrustCertsDialog.setVisible(true);\n\t\tList<X509Certificate> selectedTrustCerts = importTrustCertsDialog\n\t\t\t\t.getTrustedCertificates(); // user-selected trusted certs to import\n\n\t\t// If user cancelled or did not select any cert to import\n\t\tif (selectedTrustCerts == null || selectedTrustCerts.isEmpty())\n\t\t\treturn;\n\n\t\ttry {\n\t\t\tfor (X509Certificate cert : selectedTrustCerts)\n\t\t\t\t// Import the selected trusted certificates\n\t\t\t\tcredManager.addTrustedCertificate(cert);\n\n\t\t\t// Display success message\n\t\t\tshowMessageDialog(this, \"Trusted certificate(s) import successful\",\n\t\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\t} catch (CMException cme) {\n\t\t\tString exMessage = \"Failed to import trusted certificate(s) to the Truststore\";\n\t\t\tlogger.error(exMessage, cme);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}", "public SSLConfig(\n boolean isClient, VerifyMode verifyMode, String caPath,\n String certPath, String keyPath)\n {\n this.isClient = isClient;\n this.verifyMode = verifyMode;\n try {\n if (verifyMode != VerifyMode.NO_VERIFY) {\n checkNotNull(caPath, \"CA file path should not be null\");\n caFile = new File(caPath);\n checkArgument(caFile.exists(), \"CA file %s doesn't exist\", caPath);\n }\n if (!isClient || verifyMode == VerifyMode.VERIFY_REQ_CLIENT_CERT ||\n verifyMode == VerifyMode.REQ_CLIENT_CERT) {\n checkNotNull(certPath, \"certificate file path should not be null\");\n certFile = new File(certPath);\n checkArgument(certFile.exists(),\n \"cert file %s doesn't exist\", certPath);\n\n checkNotNull(keyPath, \"key path should not be null\");\n keyFile = new File(keyPath);\n checkArgument(keyFile.exists(), \"key file %s doesn't exist\", keyPath);\n }\n } catch (NullPointerException | IllegalArgumentException e) {\n LOG.error(\"Failed to load required SSL files. Exception: \" +\n e.getMessage());\n LOG.error(\"Failure happened when using SSLConfig: isClient = \" +\n String.valueOf(isClient) + \" with verifyMode = \" +\n String.valueOf(verifyMode) + \" and paths ca:\" + caPath + \", cert:\" +\n certPath + \", key:\" + keyPath, e);\n throw e;\n }\n }", "public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }", "public X509Certificate readCertificateFromPem(File file) {\n FileReader reader = null;\n PEMParser parser = null;\n try {\n reader = new FileReader(file);\n parser = new PEMParser(reader);\n X509CertificateHolder holder = (X509CertificateHolder) parser.readObject();\n return new JcaX509CertificateConverter().setProvider(\"BC\").getCertificate(holder);\n } catch (RuntimeException | IOException | GeneralSecurityException e) {\n throw new RuntimeException(\"Failed to load certficate from [\"+file+\"]\", e);\n } finally {\n CloseablesExt.closeQuietly(parser);\n CloseablesExt.closeQuietly(reader);\n }\n }", "@Override\npublic void checkServerTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}", "public X509Certificate getCertificate();", "@Value.Redacted\n List<X509Certificate> caCert();", "public com.squareup.okhttp.Call recCertCheckKeyAsync(File keyFile, final ApiCallback<RecCertKeyCheckResponseStatusSuccess> callback) throws ApiException {\n\n ProgressResponseBody.ProgressListener progressListener = null;\n ProgressRequestBody.ProgressRequestListener progressRequestListener = null;\n\n if (callback != null) {\n progressListener = new ProgressResponseBody.ProgressListener() {\n @Override\n public void update(long bytesRead, long contentLength, boolean done) {\n callback.onDownloadProgress(bytesRead, contentLength, done);\n }\n };\n\n progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {\n @Override\n public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {\n callback.onUploadProgress(bytesWritten, contentLength, done);\n }\n };\n }\n\n com.squareup.okhttp.Call call = recCertCheckKeyValidateBeforeCall(keyFile, progressListener, progressRequestListener);\n Type localVarReturnType = new TypeToken<RecCertKeyCheckResponseStatusSuccess>(){}.getType();\n apiClient.executeAsync(call, localVarReturnType, callback);\n return call;\n }", "public interface X509CertChainValidator\n{\n\t/**\n\t * Performs validation of a provided certificate path.\n\t * @param certPath to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(CertPath certPath);\n\t\n\t/**\n\t * Performs validation of a provided certificate chain.\n\t * @param certChain to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(X509Certificate[] certChain);\n\t\n\t/**\n\t * Returns a list of trusted issuers of certificates. \n\t * @return array containing trusted issuers' certificates\n\t */\n\tpublic X509Certificate[] getTrustedIssuers();\n\t\n\t/**\n\t * Registers a listener which can react to errors found during certificate \n\t * validation. It is useful in two cases: (rarely) if you want to change \n\t * the default logic of the validator and if you will use the validator indirectly\n\t * (e.g. to validate SSL socket connections) and want to get the original \n\t * {@link ValidationError}, not the exception. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addValidationListener(ValidationErrorListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered validation listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeValidationListener(ValidationErrorListener listener);\n\t\n\t\n\t/**\n\t * Registers a listener which can react to errors found during refreshing \n\t * of the trust material: trusted CAs or CRLs. This method is useful only if\n\t * the implementation supports updating of CAs or CRLs, otherwise the listener\n\t * will not be invoked. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addUpdateListener(StoreUpdateListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered CA or CRL update listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeUpdateListener(StoreUpdateListener listener);\n}", "public static String getCertificadoCacert(String ambiente)\n\t\t\tthrows NfeException {\n\n\t\tif (ambiente.equals(\"DES\")) {\n\t\t\treturn NfeUtil.class.getResource(\"/ARQUIVO_JKS.jks\").getPath();\n\t\t} else if (ambiente.equals(\"PROD\")) {\n\t\t\treturn NfeUtil.class.getResource(\"/ARQUIVO_JKS.jks\").getPath();\n\t\t} else {\n\t\t\tthrow new NfeException(\"Selecione o ambiente PROD/DES\");\n\n\t\t}\n\t}", "@Override\n public void verifyCRL(X509Certificate issuerCertificate, X509Certificate certificateToVerify) throws CertificateRevokedException {\n Logger.logError(RevocationGatewayImpl.class.getSimpleName(), \"Verifying certificate status through CRL\");\n crlVerifier.verify(issuerCertificate, certificateToVerify);\n }", "public String getRootCertPemPath() {\n try {\n synchronized (mImplMonitor) {\n checkServiceLocked();\n return mImpl.getRootCertPemPath();\n }\n } catch (RemoteException e) {\n throw new EmbeddedTestServerFailure(\"Failed to get root cert's path\", e);\n }\n }", "public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException\r\n\t\t\t\t\t{\n\t\t\t\t\t}", "public String certificateUrl() {\n return this.certificateUrl;\n }", "@Test\n\tpublic void testGetCACerts_ClientCert() {\n\t\tSystem.out.println(\"Beginning TC2011\");\n\t\tArrayList<X509Certificate> newCACerts = null;\n\t\tESTClient ec = new ESTClient();\n\t\tX509Certificate myCert1 = null;\n\t\t\n\t\tassertNotNull(ec);\n\t\t// get a good cert to use for tls authentication\n\t\tmyCert1 = getTrustedCert();\n\n\t\tassertNotNull(myCert1);\n\n\t\tSystem.out.println(\"\\nSetting TLS authentication credentials ...\");\n\n\t\tec.setTLSAuthenticationCredentials(myCert1, mKey);\n\t\t\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t/*\n\t\t * Attempt to fetch the latest CA certs from the EST server\n\t\t */\n\t\ttry {\n\t\t\tnewCACerts = ec.fetchLatestCACerts();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Caught Exception as expected: \"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\t\tassertNull(newCACerts);\n\t\t\n\t\tSystem.out.println(\"Ending TC2011\");\n\t}", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows CertificateException {\n\t\t\t\t\t\n\t\t\t\t}", "public void checkServerTrusted(X509Certificate[] arg0, String arg1)\n throws CertificateException\n {\n }", "@Action(value = \"saveCertificate\", results = { @Result(name = INPUT, location = JSP_FIELDS) })\n @Validations(\n customValidators = { @CustomValidator(type = \"hibernate\", fieldName = \"certificate.issuer\", parameters = {\n @ValidationParameter(name = \"resourceKeyBase\", value = \"profile.organization\"),\n @ValidationParameter(name = \"excludes\", value = \"externalId\") }) },\n requiredFields = { @RequiredFieldValidator(fieldName = \"certificate.certificateType\",\n key = \"error.credentials.certificate.type.required\") },\n fieldExpressions = { @FieldExpressionValidator(\n fieldName = \"certificateFile.data\",\n expression = \"certificate.id != null || (certificateFile != null && certificateFile.data != null)\",\n key = \"error.credentials.certificate.file.required\"),\n @FieldExpressionValidator(fieldName = \"nihOerIssued\",\n expression = \"nihOerIssued || issuingOrganizationExternalId != null || certificate.issuer != null\",\n key = \"error.credentials.organization.required\"),\n @FieldExpressionValidator(\n fieldName = \"certificate.issuer.postalAddress.stateOrProvince\",\n expression = \"certificate.issuer != null\"\n + \" && certificate.issuer.postalAddress.stateOrProvinceValid\",\n key = \"stateOrProvince.required\")\n })\n public String saveCertificate() throws IOException {\n setFileDescription();\n setCertificateIssuer();\n boolean valid = validateFields();\n if (valid) {\n try {\n doSave();\n } catch (CredentialAlreadyExistsException ae) {\n handleCredentialAlreadyExists();\n valid = false;\n } catch (ValidationException e) {\n return handleValidationException(e);\n }\n }\n\n return valid ? closeDialog(getDialogId()) : INPUT;\n }", "private SslContext buildServerSslContext()\n throws SSLException\n {\n SslContextBuilder builder = SslContextBuilder.forServer(certFile, keyFile);\n if (verifyMode == VerifyMode.NO_VERIFY) {\n builder.trustManager(InsecureTrustManagerFactory.INSTANCE);\n } else {\n builder.trustManager(caFile);\n }\n if (verifyMode == VerifyMode.VERIFY) {\n builder.clientAuth(ClientAuth.OPTIONAL);\n } else if (verifyMode == VerifyMode.VERIFY_REQ_CLIENT_CERT) {\n builder.clientAuth(ClientAuth.REQUIRE);\n }\n return builder.build();\n }", "@SuppressWarnings(\"rawtypes\")\n private com.squareup.okhttp.Call recCertPostValidateBeforeCall(File certificateFile, File keyFile, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n if (certificateFile == null) {\n throw new ApiException(\"Missing the required parameter 'certificateFile' when calling recCertPost(Async)\");\n }\n \n // verify the required parameter 'keyFile' is set\n if (keyFile == null) {\n throw new ApiException(\"Missing the required parameter 'keyFile' when calling recCertPost(Async)\");\n }\n \n\n com.squareup.okhttp.Call call = recCertPostCall(certificateFile, keyFile, progressListener, progressRequestListener);\n return call;\n\n }", "@Override\n public void checkServerTrusted(\n final java.security.cert.X509Certificate[] arg0, final String arg1)\n throws CertificateException {\n }", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void checkServerTrusted(java.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows CertificateException {\n\n\t\t\t\t}", "List<Certificate> getCertificatesById(@NonNull String certificateId, String sha256Thumbprint);", "@Override\npublic void checkClientTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}", "public CertificateValidator(KeyStore trustStore, Collection<? extends CRL> crls)\n {\n _trustStore = trustStore;\n _crls = crls;\n }", "public String getTlsCert();", "public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }", "public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;", "public X509Certificate getAikCa() {\n log.debug(\"target: {}\", getTarget().getUri().toString());\n X509Certificate aik = getTarget()\n .path(\"/aik/ca\")\n .request()\n .accept(CryptoMediaType.APPLICATION_PKIX_CERT)\n .get(X509Certificate.class);\n return aik;\n }", "public String validate(KeyStore keyStore, String keyAlias) throws CertificateException\n {\n String result = null;\n \n if (keyAlias != null)\n {\n try\n {\n validate(keyStore, keyStore.getCertificate(keyAlias));\n }\n catch (KeyStoreException ex)\n {\n Log.debug(ex);\n throw new CertificateException(\"Unable to validate certificate for alias [\" +\n keyAlias + \"]: \" + ex.getMessage());\n }\n result = keyAlias; \n }\n \n return result;\n }", "public static void verifyCertificateCRLs(X509Certificate cert)\n throws CertificateVerificationException {\n try {\n List<String> crlDistPoints = getCrlDistributionPoints(cert);\n for (String crlDP : crlDistPoints) {\n X509CRL crl = downloadCRL(crlDP);\n if (crl.isRevoked(cert)) {\n throw new CertificateVerificationException(\n \"The certificate is revoked by CRL: \" + crlDP);\n }\n }\n } catch (Exception ex) {\n if (ex instanceof CertificateVerificationException) {\n throw (CertificateVerificationException) ex;\n } else {\n throw new CertificateVerificationException(\n \"Can not verify CRL for certificate: \"\n + cert.getSubjectX500Principal());\n }\n }\n }", "static ValidationResult verifyCertificateCRLs(final X509Certificate cert,\r\n\t\t\t final PublicKey vaPublicKey,\r\n\t\t\t final List<String> overridingDistributionPoints) {\r\n\t\tif (cert == null) {\r\n\t\t\treturn ValidationResult.CORRUPT;\r\n\t\t}\r\n\r\n\t\tfinal List<String> crlDistPoints;\r\n\t\ttry {\r\n\t\t\tcrlDistPoints = overridingDistributionPoints == null || overridingDistributionPoints.isEmpty() ?\r\n\t\t\t\t\t\t\t\tgetCrlDistributionPoints(cert) :\r\n\t\t\t\t\t\t\t\t\toverridingDistributionPoints;\r\n\t\t}\r\n\t\tcatch (final IOException e) {\r\n\t\t\tLOGGER.severe(\"Error obteniendo los puntos de distribucion de CRL: \" + e); //$NON-NLS-1$\r\n\t\t\treturn ValidationResult.SERVER_ERROR;\r\n\t\t}\r\n\r\n\t\tLOGGER.info(\r\n\t\t\t\"El certificado con serie '\" + cert.getSerialNumber() + \"' tiene asociadas las siguientes CRL: \" + crlDistPoints //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t);\r\n\r\n\t\tfinal CertificateFactory cf;\r\n\t\ttry {\r\n\t\t\tcf = CertificateFactory.getInstance(\"X.509\"); //$NON-NLS-1$\r\n\t\t}\r\n\t\tcatch (final CertificateException e1) {\r\n\t\t\tLOGGER.severe(\"Error instanciando la factoria de certificados: \" + e1); //$NON-NLS-1$\r\n\t\t\treturn ValidationResult.SERVER_ERROR;\r\n\t\t}\r\n\r\n\t\tboolean checked = false;\r\n\t\tfor (final String crlDP : crlDistPoints) {\r\n\r\n\t\t\t// Descargamos\r\n\t\t\tfinal byte[] crlBytes;\r\n\t\t\ttry {\r\n\t\t\t\tcrlBytes = downloadCRL(crlDP);\r\n\t\t\t}\r\n\t\t\tcatch (final Exception e1) {\r\n\t\t\t\tLOGGER.severe(\"No se ha podido descargar la CRL (\" + crlDP + \"), se continuara con el siguiente punto de distribucion: \" + e1); //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tfinal X509CRL crl;\r\n\t\t\ttry {\r\n\t\t\t\tcrl = (X509CRL)cf.generateCRL(new ByteArrayInputStream(crlBytes));\r\n\t\t\t}\r\n\t\t\tcatch (final Exception e) {\r\n\t\t\t\tLOGGER.severe(\"Error analizando la lista de revocacion: \" + e); //$NON-NLS-1$\r\n\t\t\t\treturn ValidationResult.SERVER_ERROR;\r\n\t\t\t}\r\n\t\t\t// Comprobamos la firma de la CRL\r\n\t\t\ttry {\r\n\t\t\t\tcrl.verify(vaPublicKey);\r\n\t\t\t}\r\n\t\t\tcatch (final Exception e) {\r\n\t\t\t\tLOGGER.severe(\"No se ha podido comprobar la firma de la CRL: \" + e); //$NON-NLS-1$\r\n\t\t\t\treturn ValidationResult.SERVER_ERROR;\r\n\t\t\t}\r\n\t\t\tif (crl.isRevoked(cert)) {\r\n\t\t\t\treturn ValidationResult.REVOKED;\r\n\t\t\t}\r\n\r\n\t\t\tchecked = true;\r\n\t\t}\r\n\r\n\t\tif (checked) {\r\n\t\t\treturn ValidationResult.VALID;\r\n\t\t}\r\n\t\treturn ValidationResult.UNKNOWN;\r\n\t}", "public abstract void\n verifyOriginalPacket_(CertificateV2 trustedCertificate);", "@Override\n public String getCertificate(String certSerialId) throws IOException {\n LOGGER.debug(\"Getting certificate with certificate serial id {}\",\n certSerialId);\n try {\n X509Certificate certificate =\n scmCertificateServer.getCertificate(certSerialId);\n if (certificate != null) {\n return getPEMEncodedString(certificate);\n }\n } catch (CertificateException e) {\n throw new SCMSecurityException(\"getCertificate operation failed. \", e,\n GET_CERTIFICATE_FAILED);\n }\n LOGGER.info(\"Certificate with serial id {} not found.\", certSerialId);\n throw new SCMSecurityException(\"Certificate not found\",\n CERTIFICATE_NOT_FOUND);\n }", "public void setTlsCertPath(String tlsCertPath);", "@SuppressWarnings(\"rawtypes\")\n private com.squareup.okhttp.Call recCertCheckKeyValidateBeforeCall(File keyFile, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n if (keyFile == null) {\n throw new ApiException(\"Missing the required parameter 'keyFile' when calling recCertCheckKey(Async)\");\n }\n \n\n com.squareup.okhttp.Call call = recCertCheckKeyCall(keyFile, progressListener, progressRequestListener);\n return call;\n\n }", "public java.lang.String getCertUri() {\n return certUri;\n }", "private static void doCACertVerification(final IHealthCard cardInt, final IHealthCard cardExt,\n final CardFileSystemData cardExtFs) {\n result = result.flatMap(__ -> new ReadCommand(cardExtFs.cvcCASfid, 0).executeOn(cardExt))\n .validate(Response.ResponseStatus.SUCCESS::validateResult)\n .map(Response::getResponseData)\n .map(GemCvCertificate::new)\n .flatMap(caCertificateFromExt -> new ManageSecurityEnvironmentCommand(\n ManageSecurityEnvironmentCommand.MseUseCase.KEY_SELECTION_FOR_CV_CERTIFICATE_VALIDATION, caCertificateFromExt)\n .executeOn(cardInt)\n .validate(Response.ResponseStatus.SUCCESS::validateResult)\n .flatMap(__ -> new PsoVerifyCertificateCommand(caCertificateFromExt)\n .executeOn(cardInt)\n .validate(Response.ResponseStatus.SUCCESS::validateResult)));\n }", "public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }", "public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {\n\r\n\t\t\t\t}" ]
[ "0.66154706", "0.5861481", "0.580025", "0.56686467", "0.56006366", "0.55422693", "0.54730517", "0.54653794", "0.545231", "0.54104525", "0.5408147", "0.5350186", "0.52931327", "0.526799", "0.52550703", "0.5254804", "0.51919407", "0.515991", "0.51261085", "0.5113809", "0.5093361", "0.5085703", "0.50806314", "0.50206375", "0.5013512", "0.50090367", "0.5002835", "0.49541238", "0.49525914", "0.49302775", "0.4927235", "0.49173802", "0.49042186", "0.48929316", "0.4884671", "0.4867802", "0.48443025", "0.4808725", "0.48081264", "0.48021373", "0.47466153", "0.47459498", "0.47396356", "0.47224662", "0.47078726", "0.4703632", "0.4701496", "0.47011095", "0.4698155", "0.46920618", "0.4662659", "0.46576023", "0.46525085", "0.46518773", "0.46466795", "0.46380067", "0.4637812", "0.4637643", "0.45982355", "0.45923093", "0.4591101", "0.45603096", "0.45584297", "0.45566154", "0.4554781", "0.45516637", "0.45458063", "0.45379722", "0.45332783", "0.4532311", "0.45291188", "0.45058155", "0.44911933", "0.44852957", "0.4484819", "0.44815856", "0.44660947", "0.44647038", "0.446334", "0.4456519", "0.4456519", "0.4455439", "0.4449342", "0.44475737", "0.4435646", "0.44291222", "0.44187063", "0.44099098", "0.4399297", "0.43911266", "0.43845317", "0.43822518", "0.43654346", "0.43539798", "0.4353525", "0.4353435", "0.43509436", "0.4344546", "0.4329533", "0.432936" ]
0.6621814
0
The headers to send with each Vault request.
public Optional<List<Headers>> headers() { return Codegen.objectProp("headers", TypeShape.<List<Headers>>builder(List.class).addParameter(Headers.class).build()).config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RequestHeaders headers();", "public VersionedMap getHeaders ()\n {\n return headers;\n }", "private HttpHeaders getHeaders() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n\t\treturn headers;\n\t}", "public abstract HttpHeaders headers();", "public Vector<YANG_Header> getHeaders() {\n\t\treturn headers;\n\t}", "@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/json\"); // header format wysłanej wiadomości - JSON\n params.put(\"Accept\", \"application/json\"); // header format otrzymanej wiadomości -JSON\n params.put(\"Consumer\", C.HEDDER_CUSTOMER); // header Consumer\n params.put(\"Authorization\", C.HEDDER_BEARER + shar.getString(C.KEY_FOR_SHAR_TOKEN, \"\")); // header Authorization\n return params;\n }", "@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/json\"); // header format wysłanej wiadomości - JSON\n params.put(\"Accept\", \"application/json\"); // header format otrzymanej wiadomości -JSON\n params.put(\"Consumer\", C.HEDDER_CUSTOMER); // header Consumer\n params.put(\"Authorization\", C.HEDDER_BEARER + shar.getString(C.KEY_FOR_SHAR_TOKEN, \"\")); // header Authorization\n return params;\n }", "@Override\n public Enumeration<String> getHeaderNames() {\n List<String> names = new ArrayList<String>();\n names.addAll(Collections.list(super.getHeaderNames()));\n names.add(\"Authorization\");\n return Collections.enumeration(names);\n }", "@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n\n return params;\n }", "@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n\n return params;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n return authenticator.getVolleyHttpHeaders();\n }", "public Map<String, String> headers() {\n return this.header.headers();\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n return httpClientRequest.getHeaders();\n }", "private Header[] requestHeadMaker() {\n\t\tHeader[] header = {\n\t\t\t\tnew BasicHeader(\"User-Agent\", \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36\")\n\t\t\t\t//new BasicHeader(HttpHeaders.USER_AGENT, \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36\")\n\t\t\t, new BasicHeader(\"Accpet-Language\", \"ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7,ja;q=0.6\")\n\t\t\t, new BasicHeader(\"Accept-Charset\", \"application/x-www-form-urlencoded; charset=UTF-8\")\n\t\t\t, new BasicHeader(\"Origin\", \"https://developer.riotgames.com\")\n\t\t\t, //new BasicHeader(\"X-Riot-Token\", riotApiKey)\n\t\t};\n\t\treturn header;\n\t}", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError\n {\n Map<String, String> params = new HashMap<String, String>();\n params.put(Keys.Authorization,\"Bearer \"+TripManagement.readValueFromPreferences(getActivity(),\"accesstoken\",\"\"));\n return params;\n }", "Headers getHeaders();", "public Header[] getRequestHeaders();", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Authorization\", loggedInUser.getToken_type()+\" \"+loggedInUser.getAccess_token());\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"Accept\", \"application/json\");\n return headers;\n }", "private HashMap<String, String> getHeaders() {\n mHeaders = new HashMap<>();\n // set user'token if user token is not set\n if ((this.mToken == null || this.mToken.isEmpty()) && mProfile != null)\n this.mToken = mProfile.getToken();\n\n if (this.mToken != null && !this.mToken.isEmpty()) {\n mHeaders.put(\"Authorization\", \"Token \" + this.mToken);\n Log.e(\"TOKEN\", mToken);\n }\n\n mHeaders.put(\"Content-Type\", \"application/form-data\");\n mHeaders.put(\"Accept\", \"application/json\");\n return mHeaders;\n }", "@Override public Map<String, String> getHeaders() {\n return Collections.unmodifiableMap(headers);\n }", "@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }", "@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }", "@Override\n public Map<String, String> getHeaders() {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }", "public MultiMap getHeaders() {\n return headers;\n }", "public String[] getHeaders(){\n String[] headers={\"Owner Unit ID\",\"Origin Geoloc\",\"Origin Name\",\"Number of Assets\",};\n return headers;\n }", "private HttpHeaders prepareLoginHeaders() {\n ResponseEntity<TokenLoginResponse> loginResponse = requestLoginResponse();\n HttpHeaders httpHeaders = new HttpHeaders();\n httpHeaders.add(\"Authorization\", \"Bearer \" + loginResponse.getBody().getToken());\n return httpHeaders;\n }", "@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n //params.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n params.put(\"Authorization\", appUtil.getPrefrence(\"token_type\")+\" \"+appUtil.getPrefrence(\"access_token\"));\n return params;\n }", "Map<String, String> getRequestHeaders();", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/json\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/json\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n headers.put(\"Authorization\", \"Bearer \" + TOKEN);\n return headers;\n }", "@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n params.put(\"Authorization\", appUtil.getPrefrence(\"token_type\") + \" \" + appUtil.getPrefrence(\"access_token\"));\n return params;\n }", "@Override\n public Map<String, String> getHeaders() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"authorization\", apikey);\n\n\n return params;\n }", "@Override\n public Collection<String> getRestHeaders() {\n return Arrays.asList(KerberosRealm.AUTHENTICATION_HEADER, KrbConstants.WWW_AUTHENTICATE );\n }", "@Override\n public Map<String, String> getHeaders() {\n System.out.println(\"------token:---------\"+token);\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n params.put(\"authorization\",\"Bearer \"+token);\n\n\n return params;\n }", "@Override\n public Map<String, String> getHeaders() {\n System.out.println(\"------token:---------\"+token);\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"content-type\", \"application/json\");\n params.put(\"cache-control\", \"no-cache\");\n params.put(\"authorization\",\"Bearer \"+token);\n\n\n return params;\n }", "public static Map<String, String> getHeaders() {\n if (headers == null) {\n headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"X-Custom-Header\", \"application/json\");\n }\n return headers;\n }", "Map<String, String> getHeaders();", "public Header[] getRequestHeaders() {\n return getRequestHeaderGroup().getAllHeaders();\n }", "public Set<String> getHeaderNames() {\n return headers.keySet();\n }", "public HashMap<String, String> getHeader() {\n HashMap<String, String> header = new HashMap<String, String>();\n//\t\theader.put(\"Content-Type\", pref.getString(\"application/json\", \"application/json\"));\n /*header.put(\"authId\", pref.getString(KEY_USER_ID, KEY_USER_ID));\n header.put(\"authToken\", pref.getString(KEY_AUTH_TOKEN, KEY_AUTH_TOKEN));*/\n\n\n header.put(\"authId\", pref.getString(KEY_USER_ID, \"1\"));\n header.put(\"authToken\", pref.getString(KEY_AUTH_TOKEN, \"s4nbp5FibJpfEY9q\"));\n\n return header;\n }", "private HttpHeaders getHttpHeaders()\r\n\t{\n HttpHeaders lHttpHeaders = new HttpHeaders();\r\n lHttpHeaders.setContentType(MediaType.APPLICATION_JSON);\r\n lHttpHeaders.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\r\n // set basic authorization with api key and its value\r\n lHttpHeaders.setBasicAuth( PaymentConstant.API_KEY_ID, PaymentConstant.API_KEY_PASSWORD );\r\n return lHttpHeaders;\r\n\t}", "private static void addAdditionalHttpHeaders(Request.Builder requestBuilder) {\n for (Map.Entry<String, String> entry : Parley.getInstance().getNetwork().headers.entrySet()) {\n String name = entry.getKey();\n String value = entry.getValue();\n\n requestBuilder.addHeader(name, value);\n }\n }", "List<Header> headers();", "@Override\n\t\t\tpublic Map<String, String> getHeaders() throws AuthFailureError {\n\t\t\t\tHashMap<String, String> headers = new HashMap<String, String>();\n\t\t\t\theaders.put(\"Content-Type\", \"application/json;charset=UTF-8\");\n\t\t\t\treturn headers;\n\t\t\t}", "public HttpResponseHeaders getHeaders() {\n return mHeaders;\n }", "Map<String, List<String>> getHeaders();", "@Override\n public Enumeration<String> getHeaders(String name) {\n if (name.equalsIgnoreCase(\"Authorization\")) {\n return Collections.enumeration(Arrays.asList(getHeader(name)));\n } else {\n return super.getHeaders(name);\n }\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Content-Type\", \"application/json\");\n params.put(\"Authorization\", \"Bearer \" +accessToken);\n return params;\n }", "public Map<String, List<String>> getHeaders() {\n\t\t\treturn headers;\n\t\t}", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headerMap = new HashMap<String, String>();\n headerMap.put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n headerMap.put(\"Authorization\", \"Bearer \" + token);\n return headerMap;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n // params.put(\"Content-Type\", \"application/json; charset=UTF-8\");\n params.put(\"authorization\", token);\n return params;\n }", "public void setRequestHeaders() {\n connection.setRequestProperty(ACCEPTS_TAG, ACCEPTS);\n connection.setRequestProperty(USER_AGENT_TAG, USER_AGENT);\n connection.setRequestProperty(CONTENT_TYPE_TAG, CONTENT_TYPE);\n\n LOG.info(\"*************************************\");\n LOG.info(\"--- REQUEST ---\");\n LOG.info(\"Type: \" + connection.getRequestMethod());\n LOG.info(\"Url: \" + connection.getURL());\n LOG.info(\"Body: \" + requestBody);\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> header = new HashMap<String, String>();\n //header.put(\"Content-Type\", \"application/json; charset=UTF-8\");\n header.put(\"Authorization\", \"Bearer \"+LoginMedico.ACCESS_TOKEN);\n return header;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n return headers;\n }", "private static void addAdditionalHttpHeaders(LazyHeaders.Builder requestBuilder) {\n for (Map.Entry<String, String> entry : Parley.getInstance().getNetwork().headers.entrySet()) {\n String name = entry.getKey();\n String value = entry.getValue();\n\n requestBuilder.addHeader(name, value);\n }\n }", "public Map<String, HeaderInfo> getHeaders() {\n\t\treturn headers;\n\t}", "public java.lang.String getReqHeaders() {\n return req_headers;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<>();\n String token = sharedPreferences.getString(\"token\", \"\");\n String auth = \"Bearer \" + token;\n headers.put(\"Authorization\", auth);\n return headers;\n }", "public List<HttpHeaderOption> getRequestHeadersToAddList() {\n return requestHeadersToAdd;\n }", "private static void addParleyHttpHeaders(Request.Builder requestBuilder) {\n requestBuilder.addHeader(HEADER_PARLEY_IDENTIFICATION, Parley.getInstance().getSecret() + \":\" + Parley.getInstance().getUniqueDeviceIdentifier());\n\n if (Parley.getInstance().getUserAuthorization() != null) {\n requestBuilder.addHeader(HEADER_PARLEY_AUTHORIZATION, Parley.getInstance().getUserAuthorization());\n }\n }", "public java.lang.String getReqHeaders() {\n return req_headers;\n }", "public List<HttpHeaderOption> getRequestHeadersToAddList() {\n return requestHeadersToAdd;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<>();\n String token = LogInActivity.token;\n headers.put(\"Authorization\", \"bearer \"+ token);\n return headers;\n }", "public Map getHeaders() {\r\n if (headers == null) {\r\n headers = new HashMap();\r\n }\r\n\r\n return headers;\r\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<>();\n headers.put(\"User-Agent\", \"MyTestApp\");\n return headers;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"x-access-token\", AppConstants.ACCESS_TOKEN);\n return headers;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"x-access-token\", AppConstants.ACCESS_TOKEN);\n return headers;\n }", "public Map<String, String> getHeaders() {\n return Collections.unmodifiableMap(headers);\n }", "public Headers getHeaders() {\n if (headers == null) {\n headers = new DefaultHeaders();\n }\n return headers;\n }", "public void setRequestHeaders(Header[] requestHeaders);", "public final Map<String, String> getHeaders() {\n return Collections.unmodifiableMap(headers);\n }", "protected Map<String, String> getRequiredResponseHeaders()\n {\n if (requiredHttpHeaders != null)\n {\n return requiredHttpHeaders;\n }\n if (scimHttpClient.getScimClientConfig().getExpectedHttpResponseHeaders() != null)\n {\n return scimHttpClient.getScimClientConfig().getExpectedHttpResponseHeaders();\n }\n Map<String, String> requiredHttpHeaders = new HashMap<>();\n requiredHttpHeaders.put(HttpHeader.CONTENT_TYPE_HEADER, HttpHeader.SCIM_CONTENT_TYPE);\n return requiredHttpHeaders;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }", "public HttpHeaders getHeaders()\r\n/* 63: */ {\r\n/* 64: 93 */ if (this.headers == null)\r\n/* 65: */ {\r\n/* 66: 94 */ this.headers = new HttpHeaders();\r\n/* 67: */ Enumeration headerValues;\r\n/* 68: 95 */ for (Enumeration headerNames = this.servletRequest.getHeaderNames(); headerNames.hasMoreElements(); \r\n/* 69: 98 */ headerValues.hasMoreElements())\r\n/* 70: */ {\r\n/* 71: 96 */ String headerName = (String)headerNames.nextElement();\r\n/* 72: 97 */ headerValues = this.servletRequest.getHeaders(headerName);\r\n/* 73: 98 */ continue;\r\n/* 74: 99 */ String headerValue = (String)headerValues.nextElement();\r\n/* 75:100 */ this.headers.add(headerName, headerValue);\r\n/* 76: */ }\r\n/* 77: */ }\r\n/* 78:104 */ return this.headers;\r\n/* 79: */ }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> keys = new HashMap<String, String>();\n keys.put(\"token\", TOKEN);\n return keys;\n }", "@Override\r\n public Map<String, String> getHeaders() throws AuthFailureError {\r\n Map headers = new HashMap();\r\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\r\n return headers;\r\n }", "public List<String> getHeaders() {\n try {\n return load().getHeaderNames();\n } catch (IOException ex) {\n Logger.getLogger(IntelligentSystem.class.getName()).log(Level.SEVERE, null, ex);\n }\n return Collections.EMPTY_LIST;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError\n {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError\n {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }", "protected HeaderGroup getRequestHeaderGroup() {\n return requestHeaders;\n }", "@Test\n\tprivate void get_all_headers() {\n\t\tRestAssured.baseURI = \"https://reqres.in\";\n\t\tRequestSpecification httpRequest = RestAssured.given();\n\t\tResponse response = httpRequest.request(Method.GET, \"/api/users?page=2\");\n\t\tHeaders headers = response.getHeaders();\n\t\tfor (Header header : headers) {\n\t\t\tSystem.out.println(header.getName() + \" \\t : \" + header.getValue());\n\t\t}\n\t}", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"x-access-token\", AppConstants.ACCESS_TOKEN);\n return headers;\n }", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"x-access-token\", AppConstants.ACCESS_TOKEN);\n return headers;\n }", "@Override\n\tpublic FileItemHeaders getHeaders()\n\t{\n\t\treturn headers;\n\t}", "public Map<String, AbstractHeader> getHeaders()\n\t{\n\t\treturn headers;\n\t}", "public interface HttpResponseHeaders {\n\n /**\n * Http status code\n */\n int statusCode();\n\n /**\n * all commons headers(exclude request line)\n */\n List<Header> headers();\n}", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }", "public Set<QName> getHeaders() {\n\t\treturn headers;\n\t}", "public List<Header> nextHeader(JSONResponse response){\n\t\tList<Header> headers = getHeaders();\n if(response.token == null){\n return headers;\n } else {\n headers.add(new BasicHeader(\"Authorization\", \"Bearer \" + response.token));\n return headers;\n }\n }", "List<? extends Header> getAllHeaders();", "FS2ObjectHeaders getHeaders();", "@Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap headers = new HashMap();\n headers.put(\"Content-Type\", \"application/json\");\n headers.put(\"Device-id:\", \"000bca56-fb54-4704-9abe-60efc4d9993c\");\n headers.put(\"Platform\",\"android\");\n return headers;\n }" ]
[ "0.71020675", "0.6997531", "0.68097866", "0.68024987", "0.67940414", "0.6792962", "0.6792962", "0.677315", "0.67030096", "0.67030096", "0.6669572", "0.6669408", "0.6656029", "0.6638157", "0.6637932", "0.6631435", "0.6624495", "0.6599793", "0.659766", "0.6584925", "0.65823346", "0.65823346", "0.65823346", "0.6562903", "0.65624094", "0.65539527", "0.65491843", "0.65466356", "0.6529928", "0.6529928", "0.6513006", "0.65116924", "0.6507092", "0.65028805", "0.64889634", "0.64889634", "0.6488575", "0.6479352", "0.6455103", "0.64421684", "0.6440523", "0.6431167", "0.6429851", "0.640704", "0.6400481", "0.63815796", "0.6365206", "0.6361659", "0.63409334", "0.63315606", "0.6329841", "0.6321534", "0.6292069", "0.62917984", "0.6265883", "0.6265883", "0.6265883", "0.6265883", "0.6265883", "0.62626034", "0.6257251", "0.62498784", "0.62462807", "0.6244177", "0.6236297", "0.6234968", "0.62286824", "0.6208972", "0.62055594", "0.62024134", "0.6175397", "0.6175397", "0.6149749", "0.61365414", "0.6134323", "0.6120573", "0.6120032", "0.61190075", "0.6118729", "0.61135346", "0.61135346", "0.61135346", "0.61135346", "0.61073023", "0.61057544", "0.609231", "0.60901845", "0.60901845", "0.6089891", "0.6073993", "0.60681987", "0.60681987", "0.6058474", "0.6054937", "0.60509515", "0.6037255", "0.60096264", "0.6006687", "0.60032886", "0.6000317", "0.5992379" ]
0.0
-1
Maximum TTL for secret leases requested by this provider.
public Optional<Integer> maxLeaseTtlSeconds() { return Codegen.integerProp("maxLeaseTtlSeconds").config(config).env("TERRAFORM_VAULT_MAX_TTL").def(1200).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTTL()\r\n {\r\n return TTL;\r\n }", "long getTTL();", "public long maxStakeRewarded() {\n return stakingMaxStakeRewarded;\n }", "public int getSessionMaxAliveTime();", "public int getMaxInactiveInterval();", "public int getConnectionMaxTokens() {\n return zks.connThrottle().getMaxTokens();\n }", "public Long getMaxDelayTime() {\n return this.MaxDelayTime;\n }", "public int getMaximumAge() {\n\t\treturn 2 * 60 * 60; \n\t}", "long getExpiration();", "public Long getMaxAgeTime() {\n return this.MaxAgeTime;\n }", "int getMaxInactiveInterval();", "public Duration getMaxRetryDelay() {\n return maxRetryDelay;\n }", "protected int get_max_age()\n {\n return max_age;\n }", "public OzoneSecretManager(SecurityConfig secureConf, long tokenMaxLifetime,\n long tokenRenewInterval, Text service, Logger logger) {\n this.securityConfig = secureConf;\n this.tokenMaxLifetime = tokenMaxLifetime;\n this.tokenRenewInterval = tokenRenewInterval;\n currentKeyId = new AtomicInteger();\n tokenSequenceNumber = new AtomicInteger();\n this.service = service;\n this.logger = logger;\n this.currentKey = new AtomicReference<>();\n }", "public Long getMaxAgeSeconds(Auth arg0) {\n\t\treturn null;\n\t}", "protected int maxTimeout() { return 15*1000*1000; }", "public long getMaxIdleTime()\n {\n if (_maxIdleTime > Long.MAX_VALUE / 2)\n return -1;\n else\n return _maxIdleTime;\n }", "@Override\n public int getMaxCapacity() {\n return 156250000;\n }", "public int getTtl() {\n return ttl;\n }", "public long getTtl() {\n return ttl_;\n }", "public int getTTL() {\n\t\t\treturn ttl;\n\t\t}", "public int getMaxAge() {\n return maxAge;\n }", "public Integer getMaxLoginTrialCnt() {\r\n return maxLoginTrialCnt;\r\n }", "public long getTtl() {\n return ttl_;\n }", "public long explicitAutoAssocSlotLifetime() {\n return expireAccounts ? 0 : THREE_MONTHS_IN_SECONDS;\n }", "@Deprecated\n long getMaxThreadAge();", "public final Integer getTtl() {\n return this.ttl;\n }", "@Basic @Immutable\n\tpublic static int getMaxProtection() {\n\t\treturn MAX_PROTECTION;\n\t}", "private long getPasswordExpirationLocked(ComponentName who, int userHandle, boolean parent) {\n long timeout = 0L;\n\n if (who != null) {\n ActiveAdmin admin = getActiveAdminUncheckedLocked(who, userHandle, parent);\n return admin != null ? admin.passwordExpirationDate : timeout;\n }\n\n // Return the strictest policy across all participating admins.\n List<ActiveAdmin> admins = getActiveAdminsForLockscreenPoliciesLocked(\n getProfileParentUserIfRequested(userHandle, parent));\n final int N = admins.size();\n for (int i = 0; i < N; i++) {\n ActiveAdmin admin = admins.get(i);\n if (timeout == 0L || (admin.passwordExpirationDate != 0\n && timeout > admin.passwordExpirationDate)) {\n timeout = admin.passwordExpirationDate;\n }\n }\n return timeout;\n }", "long getEvictions();", "public int getMaxLife() {\n\t\treturn MAX_LIFE;\n\t}", "public void setBoostExpiration(){\r\n\t\tboostExpiration = GameController.getTimer() + 1000000000l * length;\r\n\t}", "@Override\n\tpublic long getTokenExpiryTime() {\n\t\treturn 0;\n\t}", "public long getMaxPoolTime()\n {\n if (_maxPoolTime > Long.MAX_VALUE / 2)\n return -1;\n else\n return _maxPoolTime;\n }", "public int getMaxKeyLength()\n\t{\n\t\treturn maxKeyLen;\n\t}", "protected int getMaxAccessTokens() {\n return maxAccessTokens;\n }", "public Integer getMaxAge() {\r\n\t\t\treturn maxAge;\r\n\t\t}", "Duration getTokenExpiredIn();", "public void requestEviction(int cMaximum);", "TimeResource maxDuration();", "@SuppressLint(\"MethodNameUnits\")\n @IntRange(from = IKE_HARD_LIFETIME_SEC_MINIMUM, to = IKE_HARD_LIFETIME_SEC_MAXIMUM)\n public int getHardLifetimeSeconds() {\n return mHardLifetimeSec;\n }", "int getExpireTimeout();", "public int getContainerTokenExpiryInterval() {\n return containerTokenExpiryInterval;\n }", "public Integer getTtl() {\n return ttl;\n }", "int getMaxCooldown();", "String getMaximumRedeliveryDelay();", "public int getMaxChainLength(){\r\n return maxChainLength;\r\n }", "public Long getMax_latency() {\n return max_latency;\n }", "public long getTokenValidityInSecondsForRememberMe() {\n return tokenValidityInSecondsForRememberMe;\n }", "public long getTokenValidityInSeconds() {\n return tokenValidityInSeconds;\n }", "public long getTokenExpirationInMillis() {\n return tokenExpirationInMillis;\n }", "@Override\n\tpublic int getMaxInactiveInterval() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getMaxInactiveInterval() {\n\t\treturn 0;\n\t}", "long getOldestWalAge() {\n long now = EnvironmentEdgeManager.currentTime();\n long timestamp = getOldestWalTimestamp();\n if (timestamp == Long.MAX_VALUE) {\n // If there are no wals in the queue then set the oldest wal timestamp to current time\n // so that the oldest wal age will be 0.\n timestamp = now;\n }\n long age = now - timestamp;\n return age;\n }", "public long getExpiration() {\n return expiration;\n }", "public long\ngetOrigTTL() {\n\treturn origttl;\n}", "long getInvalidLoginLockoutTime();", "int getMaximumDelay();", "public void setSessionMaxAliveTime(int sessionMaxAliveTime);", "com.google.protobuf.Duration getMaximumBackoff();", "public int getMaximumAge() {\n\t\treturn maximum_age;\n\t}", "public BigInteger getMaxUses() {\r\n return maxUses;\r\n }", "@Override\n public final double getExpiration() {\n return safetyHelper.getExpiration();\n }", "public void setMaxAutoLockRenewDuration(Duration maxAutoLockRenewDuration) {\n this.maxAutoLockRenewDuration = maxAutoLockRenewDuration;\n }", "public int getPortalCooldown ( ) {\n\t\treturn extract ( handle -> handle.getPortalCooldown ( ) );\n\t}", "int getAbsoluteMaximumDelay();", "public long getPropertyBalanceMax();", "public static long getKeepalives() {\n return keepalives;\n }", "public String getMaxKey() {\n\t\treturn maxkey;\n \n }", "public static long getMaximumResponseTime() {\n return (long) maxResponseTime;\n }", "public long getMaximumLong() {\n/* 233 */ return this.max;\n/* */ }", "public long getLifetime() {\n return lifetime;\n }", "public int getExpiryDelay()\n {\n return m_cExpiryDelay;\n }", "@Override\n public long getPasswordExpirationTimeout(ComponentName who, int userHandle, boolean parent) {\n if (!mHasFeature || !mLockPatternUtils.hasSecureLockScreen()) {\n return 0L;\n }\n Preconditions.checkArgumentNonnegative(userHandle, \"Invalid userId\");\n\n final CallerIdentity caller = getCallerIdentity(who);\n Preconditions.checkCallAuthorization(hasFullCrossUsersPermission(caller, userHandle));\n\n synchronized (getLockObject()) {\n long timeout = 0L;\n\n if (who != null) {\n ActiveAdmin admin = getActiveAdminUncheckedLocked(who, userHandle, parent);\n return admin != null ? admin.passwordExpirationTimeout : timeout;\n }\n\n // Return the strictest policy across all participating admins.\n List<ActiveAdmin> admins = getActiveAdminsForLockscreenPoliciesLocked(\n getProfileParentUserIfRequested(userHandle, parent));\n final int N = admins.size();\n for (int i = 0; i < N; i++) {\n ActiveAdmin admin = admins.get(i);\n if (timeout == 0L || (admin.passwordExpirationTimeout != 0L\n && timeout > admin.passwordExpirationTimeout)) {\n timeout = admin.passwordExpirationTimeout;\n }\n }\n return timeout;\n }\n }", "long getRevokeDelay();", "public static double GetMaxPassengers() \r\n {\r\n return maxPassengers;\r\n }", "public static long getIdleTimeouts() {\n return idleTimeouts;\n }", "public int getLength()\n {\n return encryptionDictionary.getInt( \"Length\", 40 );\n }", "public Integer idleTimeoutInMinutes() {\n return this.idleTimeoutInMinutes;\n }", "public int getMaxTrapDestinations() {\n return maxTrapDestinations;\n }", "private int getMaxReconsumeTimes() {\n if (this.defaultMQPushConsumer.getMaxReconsumeTimes() == -1) {\n return Integer.MAX_VALUE;\n } else {\n return this.defaultMQPushConsumer.getMaxReconsumeTimes();\n }\n }", "public int getMaxPoolSize(Env env) {\n return client.getMaxPoolSize();\n }", "public Long getPortMappingLeaseDuration() {\n\t\treturn portMappingLeaseDuration;\n\t}", "public void setTTL(int t) {\n\t\tthis.ttl = t;\n\t}", "public int getPassivePoolSize(){return passivePoolSize;}", "String[] getTimeToExpirationLock(String uuid) throws DatabaseException;", "public long getExpiry() {\n return this.contextSet.getExpiration();\n }", "@JsonIgnore\n public long getPairingExpiration() {\n return this.pairingExpiration;\n }", "public UTXOPool getMaxHeightUTXOPool() {\n return maxHeightBlockNode.utxoPool;\n }", "public Integer getMaxTokenLength() {\n return this.maxTokenLength;\n }", "public Long getMaximum() {\r\n\t\treturn maximum;\r\n\t}", "public Integer getAcquireTimeoutMillis() {\n return pool.getAcquireTimeoutMillis();\n }", "public LimitDuration(long maxDuration) {\n _maxDuration = maxDuration;\n }", "public Builder setTtl(long value) {\n bitField0_ |= 0x00000008;\n ttl_ = value;\n onChanged();\n return this;\n }", "public long getTimeLimit() {\n\t\treturn timeLimit;\n\t}", "public int getMaxSlots() {\n return maxSlots;\n }", "public float getMaxIdleTimeoutPercent() {\n return maxIdleShrinkPercent;\n }", "@Override\n public int getTxTimeoutInMillis() {\n return Globals.lockingTimeout;\n }", "public int getTimeToLive() {\n\t\treturn deathsTillForget;\n\t}", "public int getMaxTime() { return _maxTime; }" ]
[ "0.5923776", "0.59077746", "0.5662367", "0.5640297", "0.56245685", "0.5619553", "0.56067693", "0.5580499", "0.5559867", "0.5548733", "0.5494898", "0.5476381", "0.54712", "0.54683834", "0.54604363", "0.5451768", "0.5443642", "0.54434013", "0.542454", "0.5421598", "0.5416064", "0.5407598", "0.5382031", "0.53686184", "0.53626525", "0.53586316", "0.5351929", "0.5351812", "0.53481036", "0.53331006", "0.5312167", "0.52967566", "0.52913195", "0.5290023", "0.52860844", "0.5259013", "0.52530503", "0.52514637", "0.5240028", "0.5237286", "0.523095", "0.52291596", "0.5227492", "0.522685", "0.520589", "0.520501", "0.52047735", "0.51955116", "0.51889944", "0.51609313", "0.51532835", "0.5143708", "0.5143708", "0.51387507", "0.5133345", "0.51286566", "0.5112603", "0.5105635", "0.5092565", "0.5088662", "0.50831324", "0.5065306", "0.5058524", "0.5027746", "0.5026503", "0.5011869", "0.49765337", "0.49730396", "0.496915", "0.49647084", "0.49592012", "0.49531105", "0.49530268", "0.4941743", "0.49397355", "0.49272108", "0.4917985", "0.49178472", "0.4917029", "0.49082088", "0.49076077", "0.48980802", "0.4891751", "0.48869509", "0.48829356", "0.48754957", "0.4869178", "0.48680878", "0.486803", "0.48664838", "0.4864526", "0.48630208", "0.48600966", "0.48566985", "0.4856044", "0.48535308", "0.48520082", "0.48511863", "0.48506215", "0.48490506" ]
0.6853419
0
Maximum number of retries when a 5xx error code is encountered.
public Optional<Integer> maxRetries() { return Codegen.integerProp("maxRetries").config(config).env("VAULT_MAX_RETRIES").def(2).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected short maxRetries() { return 15; }", "protected int retryLimit() {\n return DEFAULT_RETRIES;\n }", "static public int getMaxAsyncPollingRetries() {\n return maxAsyncPollingRetries;\n }", "protected int getMaxRetries()\n {\n return heartbeat.getMaxRetries();\n }", "public int getMaxRetries() {\n return maxRetries;\n }", "public int getMaxRetries() {\n\t return maxRetries.get();\n\t}", "static public int getMaxMigrationAsyncPollingRetries() {\n return maxMigrationAsyncPollingRetries;\n }", "static public void setMaxAsyncPollingRetries(int maxRetries) {\n maxAsyncPollingRetries = maxRetries;\n }", "public int getRequestRetryCount() {\n \t\treturn 1;\n \t}", "int getRetries();", "public int retry() {\r\n\t\treturn ++retryCount;\r\n\t}", "public Integer getMaxRetryAttempt() {\n\t\treturn maxRetryAttempt;\n\t}", "protected abstract void onMaxAttempts(final Exception exception);", "protected int maxTimeout() { return 15*1000*1000; }", "public int getRecoveryRetries();", "static public void setMaxMigrationAsyncPollingRetries(int maxRetries) {\n maxMigrationAsyncPollingRetries = maxRetries;\n }", "public int getMaxLagMaxRetries() {\n\t\treturn maxLagMaxRetries;\n\t}", "public long getMaximumRetryWaitTime() {\r\n return configuration.getMaximumRetryWaitTime();\r\n }", "Integer totalRetryAttempts();", "public int getNumberOfRetries() {\r\n return configuration.getNumberOfRetries();\r\n }", "public abstract long retryAfter();", "public void onTryFails(int currentRetryCount, Exception e) {}", "@Test\n public void shouldReturnTotalNumberOfRequestsAs5OnlyFailsChecked() throws IOException {\n\n HelloWorldService helloWorldService = mock(HelloWorldService.class);\n\n Retry retry = Retry.of(\"metrics\", RetryConfig.<String>custom()\n .retryExceptions(Exception.class)\n .maxAttempts(5)\n .failAfterMaxAttempts(true)\n .build());\n\n willThrow(new HelloWorldException()).given(helloWorldService).returnHelloWorldWithException();\n\n Callable<String> retryableCallable = Retry.decorateCallable(retry, helloWorldService::returnHelloWorldWithException);\n\n Try<Void> run = Try.run(retryableCallable::call);\n\n assertThat(retry.getMetrics().getNumberOfTotalCalls()).isEqualTo(5);\n assertThat(run.isFailure()).isTrue();\n }", "private long calculateConnectionFailedTimeout()\r\n { \r\n // Once we are over BAD_CANDIDATE_CONNECTION_TRIES we dont call this \r\n // method anymore and use BAD_CANDIDATE_STATUS_TIMEOUT instead.\r\n \r\n // When CONNECTION_FAILED_STEP_TIME time is 2 it gives a sequence of\r\n // tries: 1, 2, 3,| 4, 5, 6, 7, 8, 9, 10\r\n // to: 2, 4, 8,| 16, 32, 64, 128, 128, 128, 128\r\n // to2: 2, 6, 12,| 22, 40, 74, 140, 142, 144, 146 \r\n // \r\n // to1 - would cause the values to double on each repetition.\r\n // CONNECTION_FAILED_STEP_TIME * (long)Math.pow( 2, \r\n // Math.min( failedConnectionTries - 1, 7 ) );\r\n // to2 - would add a raising penalty to to1 on each repetition\r\n // CONNECTION_FAILED_STEP_TIME * (long)Math.pow( 2,\r\n // Math.min( failedConnectionTries - 1, 7 ) ) \r\n // + (failedConnectionTries - 1) * 2;\r\n //\r\n // We use to2 currently:\r\n return CONNECTION_FAILED_STEP_TIME * (long)Math.pow( 2,\r\n Math.min( failedConnectionTries - 1, 7 ) ) \r\n + (failedConnectionTries - 1) * 2;\r\n }", "public void setMaxRetryAttempt(final Integer maxRetryAttempt) {\n\t\tthis.maxRetryAttempt = maxRetryAttempt;\n\t}", "public int getNumRetries() {\n\t\treturn this.numRetries;\n\t}", "public void setMaxattempts(int maxattempts) {\n this.maxattempts = maxattempts;\n }", "public int getRetryCount() {\n return numberRetries;\n }", "protected int minTimeout() { return 500; }", "public void setRecoveryRetries(int retries);", "public void setSocketRetries(int retries);", "public void setMaxRetries(int maxRetries) {\n\t if (maxRetries > 0) {\n\t this.maxRetries.set(maxRetries);\n\t } else {\n\t this.maxRetries.set(0);\n\t }\n\t \n\t resetChain();\n\t}", "public int getMaxAttemptCount() {\n return maxAttemptCount;\n }", "public void setMaxLagMaxRetries(int retries) {\n\t\tmaxLagMaxRetries = retries;\n\t}", "void setMaxWrongGuesses(Integer max);", "public int getRetryCount() {\n return retryCount;\n }", "public int getRetryCount() {\n return retryCount;\n }", "public Optional<Integer> maxRetriesCcc() {\n return Codegen.integerProp(\"maxRetriesCcc\").config(config).get();\n }", "public int getRetryCount() {\n return this.retryCount;\n }", "public boolean retry() {\n return tries++ < MAX_TRY;\n }", "public int getBatchDownloadFailureCountdown()\n {\n return 0; \n }", "public void testHttpFailureRetries() {\n delayTestFinish(RUNASYNC_TIMEOUT);\n runAsync1(0);\n }", "public int getAttemptCount() {\n return maxAttemptCount;\n }", "public int get_max_accept() throws Exception;", "public int getRetryTimeoutInSeconds() {\n return retryTimeoutInSeconds;\n }", "public int getRetryCount() {\r\n\t\treturn retryCount;\r\n\t}", "public native void setDefaultRetryTimeout (long retryTimeout) throws IOException,IllegalArgumentException;", "@Override\n public int getMaxConnections() throws ResourceException {\n return Integer.MAX_VALUE;\n }", "public int getMaxAttempts(AsyncOperation op);", "@Test\n public void shouldReturnTotalNumberOfRequestsAs5OnlyFails() {\n\n HelloWorldService helloWorldService = mock(HelloWorldService.class);\n\n Retry retry = Retry.of(\"metrics\", RetryConfig.<String>custom()\n .retryExceptions(Exception.class)\n .maxAttempts(5)\n .failAfterMaxAttempts(true)\n .build());\n\n given(helloWorldService.returnHelloWorld())\n .willThrow(new HelloWorldException());\n\n Try<String> supplier = Try.ofSupplier(Retry.decorateSupplier(retry, helloWorldService::returnHelloWorld));\n\n assertThat(retry.getMetrics().getNumberOfTotalCalls()).isEqualTo(5);\n assertThat(supplier.isFailure()).isTrue();\n }", "@Nonnull\n public final HttpRetrySettings setMaxRetries (final int nMaxRetries)\n {\n m_nMaxRetries = nMaxRetries;\n return this;\n }", "int getRetryCount() {\n return retryCount;\n }", "private long determineErrorStatusTimeout( short aErrorStatus )\r\n {\r\n if ( errorStatus == aErrorStatus )\r\n {\r\n errorStatusRepetition ++;\r\n }\r\n else\r\n {\r\n errorStatus = aErrorStatus;\r\n errorStatusRepetition = 0;\r\n }\r\n switch( errorStatus )\r\n {\r\n case STATUS_CANDIDATE_BUSY:\r\n // we can add here a step thing for each retry with a top limit\r\n // and a shorter start sleep time but currently we keep it like this.\r\n return HOST_BUSY_SLEEP_TIME;\r\n /*( statusRepetition + 1 ) * */\r\n case STATUS_CANDIDATE_RANGE_UNAVAILABLE:\r\n // when step time is 1 it gives a sequence of\r\n // 1, 2, 4, 8, 16, 32...\r\n // this would cause the values to double on each repetition.\r\n return RANGE_UNAVAILABLE_STEP_TIME * (long)Math.pow( 2, errorStatusRepetition );\r\n case STATUS_CANDIDATE_REMOTLY_QUEUED:\r\n if ( xQueueParameters == null )\r\n {\r\n return 0;\r\n }\r\n else\r\n {\r\n return xQueueParameters.getRequestSleepTime();\r\n }\r\n default:\r\n NLogger.warn( NLoggerNames.Download_Candidate, \"Unknown error status: \" + errorStatus );\r\n return 0;\r\n }\r\n }", "private int getMaxReconsumeTimes() {\n if (this.defaultMQPushConsumer.getMaxReconsumeTimes() == -1) {\n return Integer.MAX_VALUE;\n } else {\n return this.defaultMQPushConsumer.getMaxReconsumeTimes();\n }\n }", "@Override\npublic boolean retry(ITestResult result) {\n\tif(minretryCount<=maxretryCount){\n\t\t\n\t\tSystem.out.println(\"Following test is failing====\"+result.getName());\n\t\t\n\t\tSystem.out.println(\"Retrying the test Count is=== \"+ (minretryCount+1));\n\t\t\n\t\t//increment counter each time by 1  \n\t\tminretryCount++;\n\n\t\treturn true;\n\t}\n\treturn false;\n}", "@Test\n public void testRetryLimitProperty() {\n assertEquals(3, rc.getRetryLimit());\n }", "public int getMaxPoolSize(Env env) {\n return client.getMaxPoolSize();\n }", "private void handleErrorRetries(final String error, final int maxRetries, final long disableTime) throws PluginException {\r\n int timesFailed = this.currDownloadLink.getIntegerProperty(NICE_HOSTproperty + \"failedtimes_\" + error, 0);\r\n this.currDownloadLink.getLinkStatus().setRetryCount(0);\r\n if (timesFailed <= maxRetries) {\r\n logger.info(NICE_HOST + \": \" + error + \" -> Retrying\");\r\n timesFailed++;\r\n this.currDownloadLink.setProperty(NICE_HOSTproperty + \"failedtimes_\" + error, timesFailed);\r\n throw new PluginException(LinkStatus.ERROR_RETRY, error);\r\n } else {\r\n this.currDownloadLink.setProperty(NICE_HOSTproperty + \"failedtimes_\" + error, Property.NULL);\r\n logger.info(NICE_HOST + \": \" + error + \" -> Disabling current host\");\r\n tempUnavailableHoster(disableTime);\r\n }\r\n }", "public int getRecoverableExceptionCount() {\n return recoverableExceptionCount;\n }", "@IntRange(from = 0L) long interval(int retryCount, long elapsedTime);", "public void setRetryCount( int retries ) {\n numberRetries = retries;\n }", "public _cls_cs_retries0() {\r\n}", "public int getRetryAttempt()\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(RETRYATTEMPT$24, 0);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }", "private int getFailThreshold() {\n\t\t\treturn getContext().getIntegerParameter(\"max_password_fails\",0);\n\t\t}", "private void setNitrateMaxError (float nitrateMax, Exception e, int error) {\n this.nitrateMax = nitrateMax;\n nitrateMaxErrorMessage = e.toString();\n nitrateMaxError = error;\n }", "int getSleepBeforeRetry();", "int getTries();", "public boolean retry(ITestResult result) {\n\t\tif (counter < retryMaxLimit) {\n\t\t\tcounter++;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public String dlMaxFailures();", "@Override\n protected int getMaxPossibleAttempts(){\n int choiceCt = questionData.getChoices().size();\n //if there's one choice, it's intentionally obvious\n return (choiceCt == 1 ? 1 : choiceCt - 1);\n }", "int getNumberOfSpecifiedExceptions();", "private void handleErrorRetries(final String error, final int maxRetries) throws PluginException {\r\n int timesFailed = this.currDownloadLink.getIntegerProperty(NICE_HOSTproperty + \"failedtimes_\" + error, 0);\r\n this.currDownloadLink.getLinkStatus().setRetryCount(0);\r\n if (timesFailed <= maxRetries) {\r\n logger.info(NICE_HOST + \": \" + error + \" -> Retrying\");\r\n timesFailed++;\r\n this.currDownloadLink.setProperty(NICE_HOSTproperty + \"failedtimes_\" + error, timesFailed);\r\n throw new PluginException(LinkStatus.ERROR_RETRY, error);\r\n } else {\r\n this.currDownloadLink.setProperty(NICE_HOSTproperty + \"failedtimes_\" + error, Property.NULL);\r\n logger.info(NICE_HOST + \": \" + error + \" -> Disabling current host\");\r\n tempUnavailableHoster(1 * 60 * 60 * 1000l);\r\n }\r\n }", "public void incrementRetryCount() {\n this.retryCount++;\n }", "public long getFailedLoginAttempts() {\n return FxContext.getUserTicket().getFailedLoginAttempts();\n }", "public int getMaxValue() throws Exception {\n\t\treturn RemoteServer.instance().executeAndGetId(\"getmaxvalue\",\n\t\t\t\tgetRefId());\n\t}", "public void setMaxCalls(int max);", "public void setErrorcount(int value) {\n this.errorcount = value;\n }", "public void setNRetries(int nRetries) {\n\t\tthis.nRetries = nRetries;\n\t}", "@Override\n public void onRetry(int retryNo) {\n }", "public int getMaxOverflowConnections()\n {\n return _maxOverflowConnections;\n }", "public static void setRetryCount(int count) {\n logger.debug(\"The retry count value is {}\", count);\n retryCount = count;\n }", "private void checkRetries(final int counter) throws InterruptedException {\n\t\tif (counter > retries) {\n\t\t\tthrow new IllegalStateException(\"Remote server did not started correctly\");\n\t\t}\n\t\tThread.sleep(2000);\n\t}", "public boolean attemptToRegisterWithServer(int maxNumberOfAttempts);", "public void setNumberOfFailedFiles(int value) {\n this.numberOfFailedFiles = value;\n }", "public Duration getMaxRetryDelay() {\n return maxRetryDelay;\n }", "@Override\n\tpublic int getMaxThreads() {\n\t\treturn 10;\n\t}", "@Test\n public void shouldReturnTotalNumberOfRequestsAs5ForFailAsync() {\n AsyncHelloWorldService helloWorldService = mock(AsyncHelloWorldService.class);\n ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor();\n\n CompletableFuture<String> failedFuture = new CompletableFuture<>();\n failedFuture.completeExceptionally(new HelloWorldException());\n given(helloWorldService.returnHelloWorld()).willReturn(failedFuture);\n\n Retry retry = Retry.of(\"metrics\", RetryConfig.<String>custom()\n .retryExceptions(Exception.class)\n .maxAttempts(5)\n .failAfterMaxAttempts(true)\n .build());\n\n Supplier<CompletionStage<String>> supplier = Retry.decorateCompletionStage(retry, scheduler, helloWorldService::returnHelloWorld);\n\n assertThat(supplier.get())\n .failsWithin(5, TimeUnit.SECONDS)\n .withThrowableOfType(ExecutionException.class)\n .havingCause();\n\n assertThat(retry.getMetrics().getNumberOfTotalCalls()).isEqualTo(5);\n }", "public long getExceptionCount();", "public long getRetryInterval() {\r\n return configuration.getRetryInterval();\r\n }", "public Set<Integer> getHttpStatusCodesToRetry() {\r\n return configuration.getHttpStatusCodesToRetry();\r\n }", "public static long getApiMaxInflightRequests() {\n return 5000L;\n }", "@Override\n\t\tpublic boolean retryRequest(IOException exception, int executionCount, HttpContext context) {\n\t\t\tif (executionCount >= MAX_REQUEST_RETRY_COUNTS) {\n\t\t\t\t// Do not retry if over max retry count\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (exception instanceof NoHttpResponseException) {\n\t\t\t\t// Retry if the server dropped connection on us\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (exception instanceof SSLHandshakeException) {\n\t\t\t\t// Do not retry on SSL handshake exception\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tHttpRequest request = (HttpRequest) context.getAttribute(ExecutionContext.HTTP_REQUEST);\n\t\t\tboolean idempotent = (request instanceof HttpEntityEnclosingRequest);\n\t\t\tif (!idempotent) {\n\t\t\t\t// Retry if the request is considered idempotent\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\n\t\t}", "int getExceptionsCount();", "@Test\n public void testRetryCountNoRetries() {\n assertEquals(0, rc.getAttempts());\n }", "public void setRetries(int retries) {\n\t\tthis.retries = retries;\n\t}", "public static void treatPdpError(int downloadAttempts) {\n\t\t\n\t}", "private void updateRetries(int tries) {\n synchronized(this) {\n maxNum = maxNum < tries ? tries : maxNum;\n minNum = minNum < tries ? minNum : tries;\n }\n if (tries > 0 && Utils.VERBOSE) {\n System.err.println(\"Retries this round: \" + tries);\n }\n }", "public void setAttempts(int value) {\n this.attempts = value;\n }", "private void setConfigNumMaxBgJobs(int value) {\n this.bitField0_ |= 2;\n this.configNumMaxBgJobs_ = value;\n }", "public void setMaxIterations(int number) {\r\n if (number < CurrentIteration) {\r\n throw new Error(\"Cannot be lower than the current iteration.\");\r\n }\r\n MaxIteration = number;\r\n Candidates.ensureCapacity(MaxIteration);\r\n }" ]
[ "0.8175113", "0.76407427", "0.72639096", "0.7232953", "0.7231864", "0.7143289", "0.688596", "0.682089", "0.6815401", "0.67574257", "0.6648795", "0.663482", "0.6590453", "0.6523154", "0.6462368", "0.64481735", "0.6369393", "0.6357083", "0.6348692", "0.6320361", "0.63104486", "0.6231078", "0.6225619", "0.62216735", "0.6218723", "0.61131597", "0.6098", "0.60916924", "0.6061026", "0.6060859", "0.6034096", "0.601482", "0.5973319", "0.59531265", "0.58919185", "0.5872373", "0.5872373", "0.58640134", "0.58619016", "0.58157766", "0.5805628", "0.5774897", "0.57615024", "0.57572067", "0.57443357", "0.5743655", "0.5731636", "0.572712", "0.57191336", "0.5707278", "0.5704216", "0.56830734", "0.5666643", "0.5644904", "0.5643936", "0.5622294", "0.56171346", "0.55809146", "0.5580565", "0.5574488", "0.5567051", "0.5566406", "0.55522907", "0.5542879", "0.5536814", "0.55365425", "0.55120873", "0.5500999", "0.54905725", "0.547714", "0.54751176", "0.5471374", "0.5447225", "0.5440855", "0.5435104", "0.54230994", "0.54054093", "0.5393436", "0.53874636", "0.5384603", "0.5381109", "0.53782284", "0.5366152", "0.53645176", "0.53564334", "0.5355377", "0.5352825", "0.53392875", "0.5339263", "0.533237", "0.53275865", "0.53251845", "0.5323293", "0.52843803", "0.528329", "0.5272182", "0.52694106", "0.5268635", "0.52655715", "0.5262599" ]
0.6786413
9
Maximum number of retries for Client Controlled Consistency related operations
public Optional<Integer> maxRetriesCcc() { return Codegen.integerProp("maxRetriesCcc").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected short maxRetries() { return 15; }", "protected int getMaxRetries()\n {\n return heartbeat.getMaxRetries();\n }", "protected int retryLimit() {\n return DEFAULT_RETRIES;\n }", "static public int getMaxAsyncPollingRetries() {\n return maxAsyncPollingRetries;\n }", "public int getMaxRetries() {\n return maxRetries;\n }", "public int getMaxRetries() {\n\t return maxRetries.get();\n\t}", "static public int getMaxMigrationAsyncPollingRetries() {\n return maxMigrationAsyncPollingRetries;\n }", "static public void setMaxAsyncPollingRetries(int maxRetries) {\n maxAsyncPollingRetries = maxRetries;\n }", "public int getRecoveryRetries();", "public Optional<Integer> maxRetries() {\n return Codegen.integerProp(\"maxRetries\").config(config).env(\"VAULT_MAX_RETRIES\").def(2).get();\n }", "int getRetries();", "static public void setMaxMigrationAsyncPollingRetries(int maxRetries) {\n maxMigrationAsyncPollingRetries = maxRetries;\n }", "public int getRequestRetryCount() {\n \t\treturn 1;\n \t}", "public Integer getMaxRetryAttempt() {\n\t\treturn maxRetryAttempt;\n\t}", "@Override\n public int getMaxConnections() throws ResourceException {\n return Integer.MAX_VALUE;\n }", "@Test(expected = TimeoutException.class)\n public void testConsistencyTimeOut() throws Exception {\n service.setCallsToConsistency(10);\n backoff.setMaxTries(8);\n tableAdminClient.waitForReplication(TABLE_NAME, backoff);\n }", "public int getMaxLagMaxRetries() {\n\t\treturn maxLagMaxRetries;\n\t}", "@Test\n public void testConsistencySlow() throws Exception {\n service.setCallsToConsistency(10);\n backoff.setMaxTries(9);\n tableAdminClient.waitForReplication(TABLE_NAME, backoff);\n Assert.assertEquals(9, backoff.getNumberOfTries());\n }", "public int getMaxAttempts(AsyncOperation op);", "public void setRecoveryRetries(int retries);", "@Test\n public void testRetryLimitProperty() {\n assertEquals(3, rc.getRetryLimit());\n }", "public abstract long retryAfter();", "public int getNumberOfRetries() {\r\n return configuration.getNumberOfRetries();\r\n }", "public int getMaxPoolSize(Env env) {\n return client.getMaxPoolSize();\n }", "protected int maxTimeout() { return 15*1000*1000; }", "public void setMaxRetries(int maxRetries) {\n\t if (maxRetries > 0) {\n\t this.maxRetries.set(maxRetries);\n\t } else {\n\t this.maxRetries.set(0);\n\t }\n\t \n\t resetChain();\n\t}", "private int getMaxReconsumeTimes() {\n if (this.defaultMQPushConsumer.getMaxReconsumeTimes() == -1) {\n return Integer.MAX_VALUE;\n } else {\n return this.defaultMQPushConsumer.getMaxReconsumeTimes();\n }\n }", "public int retry() {\r\n\t\treturn ++retryCount;\r\n\t}", "public long getMaximumRetryWaitTime() {\r\n return configuration.getMaximumRetryWaitTime();\r\n }", "Integer totalRetryAttempts();", "public int getNumRetries() {\n\t\treturn this.numRetries;\n\t}", "public void setSocketRetries(int retries);", "public int getRetryCount() {\n return numberRetries;\n }", "public _cls_cs_retries0() {\r\n}", "public void setMaxRetryAttempt(final Integer maxRetryAttempt) {\n\t\tthis.maxRetryAttempt = maxRetryAttempt;\n\t}", "public void setMaxConcurrentAccessCount(String newValue);", "public void setMaxLagMaxRetries(int retries) {\n\t\tmaxLagMaxRetries = retries;\n\t}", "private int getMaxConfiguredReplicaCount() {\n if (maxConfiguredReplicaCount > 0) {\n return maxConfiguredReplicaCount;\n } else {\n ClientMessage request = PNCounterGetConfiguredReplicaCountCodec.encodeRequest(name);\n ClientMessage response = invoke(request);\n maxConfiguredReplicaCount = PNCounterGetConfiguredReplicaCountCodec.decodeResponse(response);\n }\n return maxConfiguredReplicaCount;\n }", "int getMaxConcurrentStartup(ClusterSpec clusterSpec);", "private long calculateConnectionFailedTimeout()\r\n { \r\n // Once we are over BAD_CANDIDATE_CONNECTION_TRIES we dont call this \r\n // method anymore and use BAD_CANDIDATE_STATUS_TIMEOUT instead.\r\n \r\n // When CONNECTION_FAILED_STEP_TIME time is 2 it gives a sequence of\r\n // tries: 1, 2, 3,| 4, 5, 6, 7, 8, 9, 10\r\n // to: 2, 4, 8,| 16, 32, 64, 128, 128, 128, 128\r\n // to2: 2, 6, 12,| 22, 40, 74, 140, 142, 144, 146 \r\n // \r\n // to1 - would cause the values to double on each repetition.\r\n // CONNECTION_FAILED_STEP_TIME * (long)Math.pow( 2, \r\n // Math.min( failedConnectionTries - 1, 7 ) );\r\n // to2 - would add a raising penalty to to1 on each repetition\r\n // CONNECTION_FAILED_STEP_TIME * (long)Math.pow( 2,\r\n // Math.min( failedConnectionTries - 1, 7 ) ) \r\n // + (failedConnectionTries - 1) * 2;\r\n //\r\n // We use to2 currently:\r\n return CONNECTION_FAILED_STEP_TIME * (long)Math.pow( 2,\r\n Math.min( failedConnectionTries - 1, 7 ) ) \r\n + (failedConnectionTries - 1) * 2;\r\n }", "public int getMaxOverflowConnections()\n {\n return _maxOverflowConnections;\n }", "com.google.protobuf.Duration getMaximumBackoff();", "int getMaxReplicaCount(Type type);", "int getMaxConcurrent();", "@DefaultValue(\"20\")\n int getApiClientThreadPoolSize();", "public int getRetryCount() {\n return this.retryCount;\n }", "public static int getZookeeperRetryTimes() {\r\n return zookeeperRetryTimes.getValue();\r\n }", "int getRetryCount() {\n return retryCount;\n }", "public int getRetryCount() {\n return retryCount;\n }", "public int getRetryCount() {\n return retryCount;\n }", "boolean hasMaximumBackoff();", "private void retry() {\n if (catalog == null) {\n if (--retries < 0) {\n inactive = true;\n pendingRequests.clear();\n log.error(\"Maximum retries exceeded while attempting to load catalog for endpoint \" + discoveryEndpoint\n + \".\\nThis service will be unavailabe.\");\n } else {\n try {\n sleep(RETRY_INTERVAL * 1000);\n _loadCatalog();\n } catch (InterruptedException e) {\n log.warn(\"Thread for loading CDS Hooks catalog for \" + discoveryEndpoint + \"has been interrupted\"\n + \".\\nThis service will be unavailable.\");\n }\n }\n }\n }", "public Duration getMaxRetryDelay() {\n return maxRetryDelay;\n }", "public int getMaxAttemptCount() {\n return maxAttemptCount;\n }", "public Long getMaxConcurrentConnection() {\n return this.MaxConcurrentConnection;\n }", "int getMaxUnavailable(ClusterSpec clusterSpec);", "int getMaxConcurrentShutdown(ClusterSpec clusterSpec);", "String getMaximumRedeliveryDelay();", "@IntRange(from = 0L) long interval(int retryCount, long elapsedTime);", "public static long getApiMaxInflightRequests() {\n return 5000L;\n }", "public void setMaxConcurrentConnection(Long MaxConcurrentConnection) {\n this.MaxConcurrentConnection = MaxConcurrentConnection;\n }", "@Test\n public void eternal_retry10s() {\n Cache<Integer, Integer> c = new Cache2kBuilder<Integer, Integer>() {}\n .eternal(true)\n .retryInterval(10, TimeUnit.SECONDS)\n /* ... set loader ... */\n .build();\n target.setCache(c);\n DefaultResiliencePolicy p = extractDefaultPolicy();\n assertEquals(0, p.getResilienceDuration());\n assertEquals(TimeUnit.SECONDS.toMillis(10), p.getMaxRetryInterval());\n assertEquals(TimeUnit.SECONDS.toMillis(10), p.getRetryInterval());\n }", "public static int getZookeeperRetryInterval() {\r\n return zookeeperRetryInterval.getValue();\r\n }", "public int getRetryTimeoutInSeconds() {\n return retryTimeoutInSeconds;\n }", "public int getBatchDownloadFailureCountdown()\n {\n return 0; \n }", "public native void setDefaultRetryTimeout (long retryTimeout) throws IOException,IllegalArgumentException;", "@Nonnull\n public final HttpRetrySettings setMaxRetries (final int nMaxRetries)\n {\n m_nMaxRetries = nMaxRetries;\n return this;\n }", "public int getMaxConnections()\n {\n return _maxConnections;\n }", "@Test\n public void testCanRetry() {\n assertEquals(0, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(1, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(2, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n }", "public void incrementRetryCount() {\n this.retryCount++;\n }", "protected int maxPktsOut() { return Integer.MAX_VALUE; }", "int getMaxPoolSize();", "private void sendCancelRpcCall(int numberRetries) {\n\t}", "@Test\n public void testRetryCountNoRetries() {\n assertEquals(0, rc.getAttempts());\n }", "@Override\n\tpublic int getMaxThreads() {\n\t\treturn 10;\n\t}", "public int getRetryCount() {\r\n\t\treturn retryCount;\r\n\t}", "public ClientBuilder maxConnection(int maxConnection) {\n this.maxConnection = Predicates.bigThanZero(maxConnection);\n return this;\n }", "public void requestEviction(int cMaximum);", "public void setMaxCalls(int max);", "int getSleepBeforeRetry();", "public void setMaxConns(int value) {\n this.maxConns = value;\n }", "com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder();", "public void setRetryMaxDelay(long retryMaxDelay) {\n this.retryMaxDelay = retryMaxDelay;\n }", "void setMaxWrongGuesses(Integer max);", "static RetryPolicy getDefaultRetry() {\n return new ExponentialBackoffRetry(\n CuratorUtils.DEFAULT_CURATOR_POLL_DELAY_MS, CuratorUtils.DEFAULT_CURATOR_MAX_RETRIES);\n }", "int getMaximumPoolSize();", "public int error_sync_size() {\r\n return 3;\r\n }", "@Test\n public void testAdminTimeout() throws Exception {\n long lastLimit = HConstants.DEFAULT_HBASE_CLIENT_PREFETCH_LIMIT;\n HConnection lastConnection = null;\n boolean lastFailed = false;\n int initialInvocations = RandomTimeoutRpcEngine.getNumberOfInvocations();\n for (int i = 0; i < 5 || (lastFailed && i < 100); ++i) {\n lastFailed = false;\n // Ensure the HBaseAdmin uses a new connection by changing Configuration.\n Configuration conf = HBaseConfiguration.create(TEST_UTIL.getConfiguration());\n conf.setLong(HConstants.HBASE_CLIENT_PREFETCH_LIMIT, ++lastLimit);\n try {\n HBaseAdmin admin = new HBaseAdmin(conf);\n HConnection connection = admin.getConnection();\n assertFalse(connection == lastConnection);\n // run some admin commands\n HBaseAdmin.checkHBaseAvailable(conf);\n admin.setBalancerRunning(false, false);\n } catch (MasterNotRunningException ex) {\n // Since we are randomly throwing SocketTimeoutExceptions, it is possible to get\n // a MasterNotRunningException. It's a bug if we get other exceptions.\n lastFailed = true;\n }\n }\n // Ensure the RandomTimeoutRpcEngine is actually being used.\n assertFalse(lastFailed);\n assertTrue(RandomTimeoutRpcEngine.getNumberOfInvocations() > initialInvocations);\n }", "public int getForbiddenReconnectDownloadNum() {\r\n final boolean allowinterrupt = config.isReconnectAllowedToInterruptResumableDownloads();\r\n\r\n int ret = 0;\r\n synchronized (this.downloadControllers) {\r\n for (final SingleDownloadController con : downloadControllers) {\r\n DownloadLink link = con.getDownloadLink();\r\n if (link.getLinkStatus().hasStatus(LinkStatus.DOWNLOADINTERFACE_IN_PROGRESS)) {\r\n DownloadInterface dl = link.getDownloadInstance();\r\n if (!(dl != null && dl.isResumable() && allowinterrupt)) ret++;\r\n }\r\n }\r\n }\r\n return ret;\r\n }", "public int getAttemptCount() {\n return maxAttemptCount;\n }", "public long getRetryInterval() {\r\n return configuration.getRetryInterval();\r\n }", "public void setRetryCount( int retries ) {\n numberRetries = retries;\n }", "protected abstract void onMaxAttempts(final Exception exception);", "public void setMaxOverflowConnections(int maxOverflowConnections)\n {\n _maxOverflowConnections = maxOverflowConnections;\n }", "public void setMaxConflicts(long max_conflicts) {\n this.exec = this.exec.withProperty(\"sm.maxConflicts\", max_conflicts);\n }", "@Override\n protected RetryConstraint shouldReRunOnThrowable(@NonNull Throwable throwable, int runCount, int maxRunCount) {\n return RetryConstraint.CANCEL;\n }", "public void setMaxConnections(int maxConnections)\n {\n _maxConnections = maxConnections;\n }", "public int getMaxCalls();", "@Override\n public int getMaxJobsPerAcquisition() {\n return myMaxJobsPerAcquisition;\n }", "@Override\n public void onRetry(int retryNo) {\n }" ]
[ "0.7955949", "0.74327904", "0.74215233", "0.72578067", "0.72538626", "0.7132607", "0.7053853", "0.6908257", "0.6884619", "0.68834597", "0.68099356", "0.6730807", "0.65785706", "0.64696753", "0.6459009", "0.64450955", "0.64212775", "0.6319326", "0.62786746", "0.627782", "0.6275959", "0.6192741", "0.6148389", "0.61382395", "0.61353797", "0.6130287", "0.61296624", "0.61229604", "0.610438", "0.61020315", "0.6092869", "0.60348386", "0.60166514", "0.5983257", "0.5967111", "0.5908351", "0.5878585", "0.58709353", "0.5839778", "0.583972", "0.5838626", "0.582169", "0.58198", "0.5815159", "0.5800749", "0.57919", "0.5777499", "0.576561", "0.57654506", "0.57654506", "0.57572246", "0.57393044", "0.5733653", "0.57308316", "0.5710341", "0.57085913", "0.5698421", "0.5691775", "0.5683682", "0.5674149", "0.56611556", "0.5639481", "0.5633997", "0.5622545", "0.56204164", "0.5616977", "0.55905604", "0.55887574", "0.5586728", "0.5576547", "0.55750823", "0.5572701", "0.5557919", "0.5543512", "0.55418855", "0.5522933", "0.5510859", "0.55047923", "0.5503124", "0.5490179", "0.54892975", "0.5481335", "0.5476573", "0.5476339", "0.546437", "0.5459166", "0.5431941", "0.54263955", "0.54251635", "0.5412419", "0.5402846", "0.53969324", "0.5396652", "0.53942066", "0.53921145", "0.5390734", "0.5385508", "0.53754", "0.53711694", "0.5363709" ]
0.6375137
17
The namespace to use. Available only for Vault Enterprise.
public Optional<String> namespace() { return Codegen.stringProp("namespace").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNamespace() {\n return namespace;\n }", "public String getNamespace()\n {\n return NAMESPACE;\n }", "@Updatable\n public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "String getNamespace();", "String getNamespace();", "String getNamespace();", "@Override\n\tprotected String getNamespace() {\n\t\treturn NAMESPACE;\n\t}", "java.lang.String getNamespace();", "public String getNamespace();", "@Override\n\tpublic String getNamespace() {\n\t\treturn nameSpace;\n\t}", "public String getNamespace()\n/* */ {\n/* 357 */ return this.namespace;\n/* */ }", "@Nullable public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return this.namespace;\n }", "public String getNamespaceName() {\n return namespaceName;\n }", "public String getNamespace() {\n\t\treturn EPPNameVerificationMapFactory.NS;\n\t}", "public String getNameSpace() {\n return this.namespace;\n }", "public String getNamespace() {\n return getTypeDefinition().getNamespace();\n }", "@Override\r\n\tpublic String getNamespace() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic String getNamespace() {\n\t\treturn null;\n\t}", "String getReferenceNamespace();", "public String getNamespace() {\n return EPPSecDNSExtFactory.NS;\n }", "protected final Namespace getNamespace()\n {\n return m_namespace;\n }", "int getNamespaceUri();", "public String getNamespaceURI() {\n return this.namespaceUri;\n }", "String getTargetNamespace();", "String getNamespacePrefix(Object ns);", "@XmlElement(required = true, name = \"namespace\")\n public String getNamespace() {\n return namespace;\n }", "public Namespace() {\n this(DSL.name(\"namespace\"), null);\n }", "public String getNamespace () throws java.io.IOException, com.linar.jintegra.AutomationException;", "public String getNamespaceURL() {\n return namespaceURL;\n }", "public void setNamespace(String namespace) {\n\t\t\r\n\t}", "public AVM2Namespace getAVM2ProtectedNamespace();", "String getNamespaceStringValue(Object ns);", "public String getNameSpace() {\n return nameSpace;\n }", "public AVM2Namespace getAVM2InternalNamespace();", "private NamespaceHelper() {}", "public String getDefaultNamespace() {\n return defaultNamespaceUri;\n }", "void setNamespace(java.lang.String namespace);", "Rule ScopedNamespace() {\n return Sequence(\n \"namespace \",\n ScopeAndId());\n }", "public java.lang.String getNameSpaceURI()\n {\n return nsURI;\n }", "public java.lang.String getNameSpaceURI()\n {\n return nsURI;\n }", "public java.lang.String getNameSpaceURI()\n {\n return nsURI;\n }", "public YANG_NameSpace getNameSpace() {\n\t\treturn namespace;\n\t}", "public String getTargetNamespace()\r\n {\r\n return targetNamespace;\r\n }", "public String getTargetNamespace() {\n return _targetNamespace;\n }", "public final String getTargetNamespace() {\n return fTargetNamespace;\n }", "public void setNamespace(String namespace) {\n this.namespace = namespace;\n }", "public void setNamespace(String namespace) {\n this.namespace = namespace;\n }", "public NsNamespaces() {\n this(DSL.name(\"ns_namespaces\"), null);\n }", "void setNamespace(String namespace);", "@Override\r\n\tpublic String getNamespaceURI() {\n\t\treturn null;\r\n\t}", "Namespaces namespaces();", "public String getFullName() {\n return getNamespace().getFullName();\n }", "public final Namespace getDefaultNamespace() {\n return _defaultNamespace;\n }", "public AVM2Namespace getAVM2PrivateNamespace();", "@Override\r\n\t\tpublic String getNamespaceURI()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void setNameSpace(String namespace) {\n this.namespace = namespace;\n }", "@TargetAttributeType(\n\t\tname = NAMESPACE_ATTRIBUTE_NAME,\n\t\trequired = true,\n\t\tfixed = true,\n\t\thidden = true)\n\tpublic default TargetSymbolNamespace getNamespace() {\n\t\treturn getTypedAttributeNowByName(NAMESPACE_ATTRIBUTE_NAME, TargetSymbolNamespace.class,\n\t\t\tnull);\n\t}", "public NamespaceId getNamespaceId() {\n return namespaceId;\n }", "public boolean isNamespaceAware () {\n return true;\n }", "@DISPID(1091) //= 0x443. The runtime will prefer the VTID if present\n @VTID(11)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject namespaces();", "Rule Namespace() {\n // No direct effect on value stack\n return FirstOf(\n ScopedNamespace(),\n PhpNamespace(),\n XsdNamespace());\n }", "@Override\n\tpublic void namespace() {\n\t\t\n\t}", "public java.lang.Long getOpcnamespace() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCNAMESPACE);\n\t}", "public String getNamespaceURI()\n {\n return moduleNS;\n }", "public String getServerUri(String namespace);", "public String getXMLSchemaTargetNamespace() {\n String targetNamespace = getPreferenceStore().getString(CONST_DEFAULT_TARGET_NAMESPACE);\n if (!targetNamespace.endsWith(\"/\")) {\n targetNamespace = targetNamespace + \"/\";\n }\n return targetNamespace;\n }", "public NamespaceContext getNamespaceContext() {\n LOGGER.entering(JsonXmlStreamReader.class.getName(), \"getNamespaceContext\");\n NamespaceContext result = new JsonNamespaceContext();\n LOGGER.exiting(JsonXmlStreamReader.class.getName(), \"getNamespaceContext\", result);\n return result;\n }", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "public java.lang.String getNameSpacePrefix()\n {\n return nsPrefix;\n }", "private String getNamespace(Package pkg) {\n/* */ String nsUri;\n/* 223 */ if (pkg == null) return \"\";\n/* */ \n/* */ \n/* 226 */ XmlNamespace ns = pkg.<XmlNamespace>getAnnotation(XmlNamespace.class);\n/* 227 */ if (ns != null) {\n/* 228 */ nsUri = ns.value();\n/* */ } else {\n/* 230 */ nsUri = \"\";\n/* 231 */ } return nsUri;\n/* */ }", "Namespace getGpmlNamespace();", "String getNamespaceURI(String prefix, Object session) throws RepositoryAccessException;", "String getImportedNamespace();", "public String getBaseNamespace() {\n/* 454 */ return \"http://www.w3.org/2000/09/xmldsig#\";\n/* */ }", "@Override\n public String getNamespaceURI(String prefix) {\n return MARC21_PREFIX;\n }", "String getNameSpace();", "public XMLNamespaces() {\n this(libsbmlJNI.new_XMLNamespaces__SWIG_0(), true);\n }", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "org.apache.xmlbeans.XmlNMTOKEN xgetNamespace();", "public abstract String getLegacyDeltemplateNamespace();", "public static String getURI() {\n return NS;\n }", "public static String getURI() {\n\t\treturn NS;\n\t}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public static String getURI() {return NS;}", "public String getXmlns()\r\n\t{\r\n\t\treturn xmlns;\r\n\t}", "public static Namespace getDefault() {\n if (instance == null) {\n new R_OSGiWSNamespace();\n }\n return instance;\n }" ]
[ "0.76492566", "0.7630527", "0.7614426", "0.76124626", "0.76124626", "0.76124626", "0.760906", "0.760906", "0.760906", "0.75985044", "0.7580913", "0.7580744", "0.7460457", "0.744617", "0.7428694", "0.7355499", "0.7181361", "0.69971514", "0.69781315", "0.6954493", "0.69411117", "0.68678355", "0.68104666", "0.67940927", "0.6784373", "0.6777553", "0.67664963", "0.6728204", "0.67101234", "0.66921663", "0.6682134", "0.66393554", "0.6603665", "0.6598361", "0.65454555", "0.6539318", "0.6522056", "0.6511728", "0.6496985", "0.64911073", "0.64864534", "0.64289206", "0.6427311", "0.6427311", "0.6427311", "0.64044744", "0.63962424", "0.6382962", "0.6365911", "0.63438725", "0.63438725", "0.6304392", "0.62981796", "0.6292037", "0.6290004", "0.628861", "0.62854224", "0.62714344", "0.62451816", "0.62108046", "0.61856335", "0.61656636", "0.6146716", "0.61440676", "0.6135403", "0.6127403", "0.612629", "0.611548", "0.6110535", "0.60929704", "0.6090555", "0.6084026", "0.6084026", "0.6084026", "0.6084009", "0.6060264", "0.60530156", "0.60165995", "0.594938", "0.59151953", "0.5913335", "0.591217", "0.5909256", "0.5909256", "0.5909256", "0.5909256", "0.5909256", "0.5877538", "0.58751893", "0.5855219", "0.5821908", "0.5812947", "0.5812947", "0.5812947", "0.5812947", "0.5812947", "0.5812947", "0.5812947", "0.58056456", "0.580334" ]
0.7202758
16
Set this to true to prevent the creation of ephemeral child token used by this provider.
public Optional<Boolean> skipChildToken() { return Codegen.booleanProp("skipChildToken").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PersistentChildToken() {\n this.Id = UUID.randomUUID();\n this.owner = \"\";\n this.issuer = \"\";\n this.amount = 0;\n this.persistentToken = null;\n this.childProof = \"I am a child\";\n this.listOfPersistentGrandChildTokens = null;\n }", "public PersistentGrandChildToken() {\n this.Id = UUID.randomUUID();\n this.owner = \"\";\n this.issuer = \"\";\n this.amount = 0;\n this.persistentChildToken = null;\n this.childProof = \"I am a child\";\n }", "public Token(boolean killNode)\r\n {\r\n this.killNode = killNode; //sets local killNode variable to true\r\n\r\n }", "private Boolean ignoreTokenExpiration(String token) {\n return false;\r\n }", "@Override\n\tpublic boolean needSecurityCheck() {\n\t\treturn false;\n\t}", "public void setX509Token(boolean value) {\n\t\tthis.x509Token = value;\n\t}", "public boolean checkKillToken()\r\n {\r\n return killNode;\r\n }", "public boolean getCanSpawnHere()\r\n {\r\n return false;\r\n }", "default boolean isSharded() {\n return false;\n }", "public void setKerberosToken(boolean value) {\n\t\tthis.kerberosToken = value;\n\t}", "@Override\r\n public boolean isSafe() {\n return false;\r\n }", "@Override\n\tprotected boolean canDespawn() {\n\t\treturn false;\n\t}", "public Builder withDisableTokenCaching(boolean bool) {\r\n this.disableTokenCaching = bool;\r\n return this;\r\n }", "@Override\r\n\tpublic void list_validParentNoChildren() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_validParentNoChildren();\r\n\t\t}\r\n\t}", "public boolean isChild(){\n return false;\n }", "public boolean isSecret() {\r\n \treturn false;\r\n }", "@Override\r\n\tprotected boolean allowNewContainerName() {\n\t\treturn false;\r\n\t}", "public void notDestroyable()\n\t{\n\t\tdestroyable = false;\n\t}", "@Override\n public void setForceEphemeralUsers(ComponentName who, boolean forceEphemeralUsers) {\n throw new UnsupportedOperationException(\"This method was used by split system user only.\");\n }", "public DriverForCreateBuilder eldExempt(Boolean eldExempt) {\r\n driverForCreate.setEldExempt(eldExempt);\r\n return this;\r\n }", "public void setProtection(boolean value);", "public boolean allowBotSpawn(boolean allowSpawning) {\n if(m_spawnBots == allowSpawning) {\n return false;\n }\n\n m_spawnBots = allowSpawning;\n return true;\n }", "@Override\n\tpublic boolean allowsTwoChildren() {\n\t\treturn false;\n\t}", "@Override\n public boolean neverAttach() {\n return true;\n }", "public boolean getAllowsChildren()\n {\n return true;\n }", "protected boolean generateIdTokenOnRefreshRequest() {\n\t\treturn true;\n\t}", "public Boolean shouldAbandon() {\n return false;\n }", "public boolean getAllowsChildren() {\n\t\treturn false;\n\t}", "public void setExempt(boolean exempt);", "@Override\n public boolean canUseCard(){\n return false;\n }", "@Override\n public boolean isAccountNonExpired() {\n return false;\n }", "@Override\n public boolean isAccountNonExpired() {\n return false;\n }", "@Override\n public boolean isAccountNonExpired() {\n return false;\n }", "public boolean tokenEnabled() {\n return tokenSecret != null && !tokenSecret.isEmpty();\n }", "protected final void setDontShowThisAgain() {\n messageFactory.setDontShowThisAgain(messageId);\n }", "@Override\r\n\tpublic void list_invalidParent() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_invalidParent();\r\n\t\t}\r\n\t}", "public void setSAMLToken(boolean value) {\n\t\tthis.samlToken = value;\n\t}", "@Override\n public boolean isAccountNonExpired() {\n return !locked;\n }", "protected AbstractGeneratedPrefsTransform() {\n\t\tsuper(false);\n\t}", "public PersistentToken() {\n this.owner = \"\";\n this.issuer = \"\";\n this.amount = 0;\n this.linearId = UUID.randomUUID();\n this.listOfPersistentChildTokens = null;\n }", "@Override\n\tprotected AuthenticationToken createToken(ServletRequest request, ServletResponse response) throws Exception {\n\t\treturn null;\n\t}", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "protected boolean getStravaCheckToken()\n {\n return true;\n }", "@Override\r\n public boolean isAccountNonExpired() {\r\n return true;\r\n }", "public boolean isSelfGuard() {\n return selfGuard;\n }", "@Override\n public boolean isAccountNonLocked() {\n return false;\n }", "@Override\n public boolean isAccountNonLocked() {\n return false;\n }", "@Override\n public boolean isAccountNonLocked() {\n return false;\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\n public void handleTokenExpiration(){\n JWTToken.removeTokenSharedPref(this);\n }", "@Override\r\n public boolean isAccountNonLocked() {\r\n return true;\r\n }", "@Override\n public boolean isAccountNonLocked() {\n return true;\n }", "@Override\n\tpublic boolean isProcessForSessionAllocation() {\n\t\treturn false;\n\t}", "@Override\npublic boolean isAccountNonExpired() {\n\treturn false;\n}", "@Override\npublic boolean isCredentialsNonExpired() {\n\treturn false;\n}", "@Override\n public boolean isAccountNonExpired () {\n return true;\n }", "@Override\r\n\tpublic boolean needsCredentials() {\n\t\treturn false;\r\n\t}", "public Builder allowParallelTokenization(boolean allow) {\n this.allowParallelTokenization = allow;\n return this;\n }", "@Override\r\n\tpublic void list_validParent() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_validParent();\r\n\t\t}\r\n\t}", "@Override\npublic boolean isAccountNonLocked() {\n\treturn false;\n}", "public void setCanBeSafe(boolean on) {\r\n canBeSafe = on;\r\n }", "@Override\n\tpublic void expireToken() {\n\t\t\n\t}", "@Override\n public boolean isCredentialsNonExpired() {\n return Boolean.TRUE;\n }", "@Override\n public void addChild(ConfigurationNode child)\n {\n children.addNode(child);\n child.setAttribute(false);\n child.setParentNode(this);\n }", "@Override\n public boolean isCredentialsNonExpired() {\n return true;\n }", "@Override\n public boolean isSoft() {\n return true;\n }", "public boolean isXAForbidSameRM()\n {\n return _isXAForbidSameRM;\n }", "void setProtection(boolean value);", "@Override\n \t\t\t\tpublic void doDettachFromParent() {\n \n \t\t\t\t}", "public jpuppeteer.util.XFuture<?> disable() {\n return connection.send(\"Security.disable\", null);\n }", "public boolean isAllowGuestControl() {\r\n return allowGuestControl;\r\n }", "boolean getDeletionProtection();", "@Override\npublic boolean isAccountNonLocked() {\n\treturn true;\n}", "public boolean isGuard(){\n return false;\n }", "@Override\n\tpublic boolean isSecured() {\n\t\treturn false;\n\t}", "public boolean canDespawn()\n {\n return false;\n }", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn isCredentialsNonExpired;\n\t}", "@Override\npublic boolean isAccountNonExpired() {\n\treturn true;\n}", "public void setDestroyAdminEnabled( boolean how ) {\n\t\tdestroy = how;\n\t}", "@Override\r\n public boolean isCredentialsNonExpired() {\r\n return true;\r\n }", "@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isCredentialsNonExpired() {\n\t\treturn true;\n\t}" ]
[ "0.55763066", "0.5407206", "0.5390175", "0.52868474", "0.5264609", "0.5220743", "0.5157669", "0.5109565", "0.50975275", "0.5052242", "0.50321406", "0.49886903", "0.49700147", "0.4968929", "0.49232802", "0.4923116", "0.49115658", "0.4882043", "0.4880917", "0.48574772", "0.4851575", "0.48430967", "0.48426414", "0.48278934", "0.48274702", "0.48253623", "0.48147044", "0.4795135", "0.479371", "0.47913462", "0.47818905", "0.47818905", "0.47818905", "0.47797704", "0.47776935", "0.4773982", "0.47728917", "0.4772067", "0.47711843", "0.47706386", "0.47626218", "0.47453347", "0.47453347", "0.47453347", "0.47294387", "0.47225174", "0.47213966", "0.47122929", "0.47122929", "0.47122929", "0.4711187", "0.4711187", "0.4711187", "0.47072887", "0.47003308", "0.46976778", "0.4692617", "0.4691191", "0.46911472", "0.46900475", "0.46862784", "0.46852326", "0.46835372", "0.4674861", "0.46599334", "0.46565366", "0.4643509", "0.46417022", "0.4639307", "0.4635864", "0.46264204", "0.46232143", "0.46206838", "0.46137652", "0.4608406", "0.4602182", "0.46008268", "0.45921016", "0.45902425", "0.45892847", "0.4586269", "0.4585893", "0.45827267", "0.4578299", "0.45767578", "0.45767578", "0.45737264", "0.45735115", "0.45735115", "0.45735115", "0.45733964", "0.45733964", "0.45733964", "0.45733964", "0.45733964", "0.45733964", "0.45733964", "0.45733964", "0.45733964", "0.45733964" ]
0.5793482
0
Skip the dynamic fetching of the Vault server version.
public Optional<Boolean> skipGetVaultVersion() { return Codegen.booleanProp("skipGetVaultVersion").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Optional<String> vaultVersionOverride() {\n return Codegen.stringProp(\"vaultVersionOverride\").config(config).get();\n }", "@Override\n public void onNoNewVersionDetected() {\n\n }", "public Optional<Boolean> skipTlsVerify() {\n return Codegen.booleanProp(\"skipTlsVerify\").config(config).env(\"VAULT_SKIP_VERIFY\").get();\n }", "void showRealSenseNotUpToDate(String version) {\n\t\tshowInput3DMessage(\n\t\t\t\tgetLocalization().getPlain(\"RealSense.NotUpToDate\", version),\n\t\t\t\tgetLocalization().getMenu(\"RealSense.DownloadUpdate\"),\n\t\t\t\t\"https://software.intel.com/intel-realsense-sdk/download\");\n\t}", "private static final void u() {\n try {\n Object object = StaticLoggerBinder.REQUESTED_API_VERSION;\n Object object2 = v;\n int n10 = ((String[])object2).length;\n int n11 = 0;\n boolean bl2 = false;\n while (true) {\n if (n11 >= n10) {\n if (bl2) return;\n object2 = new StringBuilder();\n String string2 = \"The requested version \";\n ((StringBuilder)object2).append(string2);\n ((StringBuilder)object2).append((String)object);\n object = \" by your slf4j binding is not compatible with \";\n ((StringBuilder)object2).append((String)object);\n object = v;\n object = Arrays.asList(object);\n object = object.toString();\n ((StringBuilder)object2).append((String)object);\n object = ((StringBuilder)object2).toString();\n i.h.h.i.c((String)object);\n object = \"See http://www.slf4j.org/codes.html#version_mismatch for further details.\";\n i.h.h.i.c((String)object);\n return;\n }\n String string3 = object2[n11];\n boolean bl3 = ((String)object).startsWith(string3);\n if (bl3) {\n bl2 = true;\n }\n ++n11;\n }\n }\n catch (Throwable throwable) {\n String string4 = \"Unexpected problem occured during version sanity check\";\n i.h.h.i.d(string4, throwable);\n return;\n }\n catch (NoSuchFieldError noSuchFieldError) {\n return;\n }\n }", "protected boolean getNoFallback() {\n return noFallback;\n }", "public void skipVerify() {\n\tskipVerify = true;\n }", "public void irNoSiteN11 (){\n driver.get(URLbase);\n }", "default void getRuntimeVersion(\n com.google.cloud.tpu.v2alpha1.GetRuntimeVersionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.RuntimeVersion>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getGetRuntimeVersionMethod(), responseObserver);\n }", "public String getServerVersion();", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetSecretVersionNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n server.enqueue(new MockResponse());\n\n // Invoke operation with null options model (negative test)\n secretsManagerService.getSecretVersion(null).execute();\n }", "@Override\n\tpublic boolean getCheckOlderVersion()\n\t{\n\t\treturn false;\n\t}", "public String getMinecraftVersionPre();", "private void checkServerSoftware() {\n try {\n Class.forName(\"org.bukkit.entity.Player.Spigot\");\n } catch (ClassNotFoundException e) {\n if (isNotSuppressed(Incompatibility.Type.SERVER_SOFTWARE)) {\n incompatibilities.add(new Incompatibility(Incompatibility.Type.SERVER_SOFTWARE, \"ElenmentalMenus requires the &bSpigotMC&7 software to be used (or a derivative such as PaperMC) to provide full functionality. Server software such as CraftBukkit is unsupported by the ElementalMenus team.\"));\n }\n }\n }", "public boolean ignoreService() {\n if (\"undef\".equalsIgnoreCase(type) || \"undef,1.0\".equalsIgnoreCase(type))\n return true;\n return false;\n }", "@Test\n void testVersionSelection() throws Exception {\n for (SqlGatewayRestAPIVersion version : SqlGatewayRestAPIVersion.values()) {\n if (version != SqlGatewayRestAPIVersion.V0) {\n CompletableFuture<TestResponse> versionResponse =\n restClient.sendRequest(\n serverAddress.getHostName(),\n serverAddress.getPort(),\n headerNot0,\n EmptyMessageParameters.getInstance(),\n EmptyRequestBody.getInstance(),\n Collections.emptyList(),\n version);\n\n TestResponse testResponse =\n versionResponse.get(timeout.getSize(), timeout.getUnit());\n assertThat(testResponse.getStatus()).isEqualTo(version.name());\n }\n }\n }", "public static final boolean shouldUseVersions() {\n return true;\n }", "@Override\n public final int getVersion() {\n if (StringVersionService.Manager.allowCaching) {\n return 0;\n }\n else {\n return DO_NOT_CACHE;\n }\n }", "public static void crdStatusHasNotUpdatedStorageVersions(KubernetesClient client) {\n for (String kind : AbstractCommand.STRIMZI_KINDS) {\n String crdName = CrdUpgradeCommand.CRD_NAMES.get(kind);\n CustomResourceDefinition crd = client.apiextensions().v1beta1().customResourceDefinitions().withName(crdName).get();\n\n assertThat(crd.getStatus().getStoredVersions(), hasItem(\"v1beta2\"));\n assertThat(crd.getStatus().getStoredVersions(), hasItem(oneOf(\"v1alpha1\", \"v1beta1\")));\n }\n }", "private boolean isBadVersion(int n) {\n\t\treturn false;\n\t}", "@Test public void unknownOptionStopsProcessing() {\n\t\tfinal String[] args = new String[]{\"-unknown\"};\n\t\tfinal CliActuators actuators = parser.parse(args, OPTIONS);\n\t\tAssert.assertEquals(\"-unknown\", actuators.getRests().get(0));\n\t}", "@Override\n\tpublic boolean getDownLoad_AutoRecover()\n\t{\n\t\treturn false;\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n public void onDisable() {\n try {\n System.out.println(\"Cleaning Dynamic Server System Processes.\");\n for (MinigameServer minigameServer : dynamicServerSystemManager.getServers())\n minigameServer.deleteServer();\n\n // Clean the output directory.\n FileUtils.deleteDirectory(new File(\"../minigameservers\"));\n new File(\"../minigameservers\").mkdirs();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n plugin = null;\n }", "String getEmptyVersion();", "private boolean isBadVersion(int version) {\n return false;\n }", "protected void setIncompatibleWithSkymeld() {\n addOptions(\"--noexperimental_merged_skyframe_analysis_execution\");\n }", "@java.lang.Override\n public boolean getIsFallback() {\n return isFallback_;\n }", "public void unsetVersionValue() throws JNCException {\n delete(\"version\");\n }", "@Override\n public void checkVersion() {\n }", "protected boolean disableEnableSvcs() throws Throwable {\n int i = ((int)(Math.random() * nodes));\n portString = \"\" + (i + NODE_PORT_OFFSET);\n \n return (verifySvcs(\"online\") &&\n changeSvcs(\"disable\") &&\n verifySvcs(\"disabled\") &&\n changeSvcs(\"enable\") &&\n verifySvcs(\"online\"));\n }", "public void testIgnore() {\n final TestUpdateSettings settings = new TestUpdateSettings(ChannelStatus.EAP);\n settings.addIgnoredBuildNumber(\"95.627\");\n //first time load\n UpdateStrategy strategy = new UpdateStrategy(9, BuildNumber.fromString(\"IU-95.429\"), UpdatesInfoXppParserTest.InfoReader.read(\"idea-new9eap.xml\"), settings);\n\n final CheckForUpdateResult result = strategy.checkForUpdates();\n Assert.assertEquals(UpdateStrategy.State.LOADED, result.getState());\n final BuildInfo update = result.getNewBuildInSelectedChannel();\n Assert.assertNull(update);\n }", "@Override\n public void reDownloadDB(String newVersion)\n {\n }", "@java.lang.Override\n public boolean hasAppEngineVersion() {\n return stepInfoCase_ == 22;\n }", "public String getServerVersion() throws IOException {\n\t\treturn Core.getServerVersion(getHttpMethodExecutor());\n\t}", "@Override\n public void run() {\n super.run();\n\n try {\n has_newVersion = hasServerVersion();\n newVerName = getNewVersionURL();\n\n if (has_newVersion) {\n handler.sendEmptyMessage(Const.NEWVERSION);\n }\n\n }\n catch (NameNotFoundException e) {\n e.printStackTrace();\n }\n }", "public VersionVO getUnused(){\n return localUnused;\n }", "private boolean loadVersioning(boolean offVersioning) {\n Boolean storedOffVersioning = getFromStore((K) OFF_VERSIONING_INFO);\n if (storedOffVersioning == null) {\n storedOffVersioning = offVersioning;\n putToStore((K) OFF_VERSIONING_INFO, offVersioning);\n }\n\n return storedOffVersioning;\n }", "public static void noClientCache() {\n sBinderServiceCache = BinderCache.noCache();\n sInterfaceServiceCache = BinderCache.noCache();\n }", "@java.lang.Override\n public boolean hasAppEngineVersion() {\n return stepInfoCase_ == 22;\n }", "public void setMissiveVersion(String version) {\n\n // Set the missive document version\n this.missive.setVersion(version);\n\n // Build the missive document\n this.build();\n }", "@java.lang.Override\n public boolean hasVpnTunnel() {\n return stepInfoCase_ == 11;\n }", "private void onProviderInstallerNotAvailable() {\n Toast.makeText(this, \"Unable to update your security settings and SSL security may not avialble\", Toast.LENGTH_SHORT).show();\n }", "void disableUpgrade(NodeType type);", "protected static void getLatestPack() {\n\t\tSystem.out.println(\"Getting Latest Pack Version Link...\");\n\t\ttempPackURL = ConfigHandler.packLatestLink;\n\t\tSystem.out.println(\"Link Found!\");\n\t}", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testGetSecretVersionMetadataNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n server.enqueue(new MockResponse());\n\n // Invoke operation with null options model (negative test)\n secretsManagerService.getSecretVersionMetadata(null).execute();\n }", "public void setUnused(VersionVO param){\n \n if (param != null){\n //update the setting tracker\n localUnusedTracker = true;\n } else {\n localUnusedTracker = true;\n \n }\n \n this.localUnused=param;\n \n\n }", "@java.lang.Override\n public boolean hasVpnTunnel() {\n return stepInfoCase_ == 11;\n }", "private static String getVersion(Server server) {\n final String packageName = server.getClass().getPackage().getName();\n return packageName.substring(packageName.lastIndexOf('.') + 1);\n }", "@Override\r\n public void knife() {\n System.out.println(\"검이 없습니다\");\r\n }", "boolean hasRpcVersion();", "boolean hasRpcVersion();", "protected void checkVersion(long clientVersion) throws IOException {\n if (mServiceVersion == Constants.UNKNOWN_SERVICE_VERSION) {\n mServiceVersion = getRemoteServiceVersion();\n if (mServiceVersion != clientVersion) {\n throw new IOException(ExceptionMessage.INCOMPATIBLE_VERSION.getMessage(getServiceName(),\n clientVersion, mServiceVersion));\n }\n }\n }", "@Override\n\tprotected String getServerAdapter() {\n\t\treturn \"Container Development Environment 3.2\";\n\t}", "@java.lang.Override\n public boolean getIsFallback() {\n return isFallback_;\n }", "default String getVersion()\n {\n return getString( \"version\", \"Unknown Version\");\n }", "public void disableHighAvailability() {\n enableHa = false;\n listMembersService.shutdown();\n }", "public ULocale getFallback() {\n/* 314 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void unknownOption(final String option)\n {\n try\n {\n System.err.println(MessageFormat.format(res.getString(\"unknown_option\"), option));\n }\n catch (final MissingResourceException e)\n {\n System.err.println(e.toString());\n }\n }", "boolean isBadVersion(int version) {\n return true;\n }", "default boolean doesUpdateExist(String version) {\n return !getLatestVersion().getVersion().equals(version);\n }", "public void recover() {\n _siteStatus = true;\n for (Integer varIndex : _dataMap.keySet()) {\n List<Data> dataList;\n if (varIndex % 2 == 0) {\n dataList = _dataMap.get(varIndex);\n Data d = dataList.get(dataList.size() - 1);\n // set the last commit variable to unavailable to read\n d.setAccess(false);\n // set the unavailable time for the variable which is the time it fails\n // When a particular version of variable is unavailable, it will never\n // become available, but we may have new version of variable\n d.setUnavailableTime(_lastFailTime);\n }\n }\n }", "public static String checkSystem(String version) {\n \n if (MainFormJFrame.cashMachine.isEnabled()) {\n try {\n \n Connection connection = SingletonConnection.getConnection();\n \n Statement statement = connection.createStatement();\n String queryString = (\"SELECT `newversion`, `maintenance` FROM system_update\");\n ResultSet rs = statement.executeQuery(queryString);\n \n String checkVersion;\n Boolean checkmaintenance;\n \n while (rs.next()) {\n \n System.out.println(rs.getString(1));\n System.out.println(rs.getBoolean(2));\n \n checkVersion = rs.getString(1);\n checkmaintenance = rs.getBoolean(2);\n \n if ((!softwareVersion.equals(checkVersion)) && (checkmaintenance.equals(softwareMaintenance))) {\n MainFormJFrame.cashMachine.changePanel(new UpdateSystemPanel());\n }\n \n else if ((!softwareVersion.equals(checkVersion)) && (!checkmaintenance.equals(softwareMaintenance)) || ((softwareVersion.equals(checkVersion)) && (!checkmaintenance.equals(softwareMaintenance)))) {\n MainFormJFrame.cashMachine.changePanel(new MaintenanceSystemPanel());\n }\n else {\n MainFormJFrame.cashMachine.changePanel(new LoginPanel());\n }\n }\n } catch (Exception ex) {\n System.out.println(ex);\n }\n }\n return softwareVersion;\n }", "@Override\n public void disableUpgrade(NodeType type) {\n }", "@Override\n public int getVersion() {\n return 0;\n }", "@GetMapping()\n public String getServerVersion() {\n return versionProperties.getVersion();\n }", "@Override\n\tpublic void setCheckOlderVersion(boolean paramBoolean)\n\t{\n\n\t}", "public void setGetAppNoResult(java.lang.String param) {\r\n localGetAppNoResultTracker = param != null;\r\n\r\n this.localGetAppNoResult = param;\r\n }", "public void requestInvisibleMode() {\n final ModContainer activeModContainer = Loader.instance().activeModContainer();\n if (activeModContainer != null) {\n invisibleRequesters.add(activeModContainer.getName());\n } else {\n invisibleRequesters.add(\"null\");\n }\n }", "@Override\n\tpublic ServerServices upstreamGlobalVarsInit() throws Exception {\n\t\treturn null;\n\t}", "@Override\n public void onRefresh() {\n if (isNetworkAvailable2()) {\n //Reloading the latest kernel and rom.\n ArrayList<String> fileArray = new ArrayList<>();\n srl.setRefreshing(true);\n getNXVersionFromURL();\n soldierRomCheck(fileArray);\n } else {\n //If there is no Internet Connection, sending you back to InternetCheck activity.\n Intent a = new Intent(MainActivity.this, InternetCheck.class);\n startActivity(a);\n }\n }", "private void workaroundCLICheckedExceptions() throws\n cli.Infinispan.HotRod.Exceptions.HotRodClientException,\n cli.Infinispan.HotRod.Exceptions.RemoteCacheManagerNotStartedException {\n }", "public boolean isNonLivrer() {\n\t\treturn getStatut().equals(StatusBonPreparation.NON_LIVRER);\n\t}", "@Test\n\tpublic void testResolveOldAPIVersionByPlatformVersion()\n\t\t\tthrows Exception {\n\t\tAPIVersionResolver fixture = new APIVersionResolver();\n\n\t\tfinal String sysPropBefore = System.getProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_OLD_REST_API_VERSION);\n\t\tSystem.clearProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_OLD_REST_API_VERSION);\n\n\t\tString result = fixture.resolveOldAPIVersion();\n\t\ttry {\n\t\t\tAssert.assertEquals(PlatformVersion.getVersionNumber(), result);\n\t\t} finally {\n\t\t\tif (sysPropBefore == null) {\n\t\t\t\tSystem.clearProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_OLD_REST_API_VERSION);\n\t\t\t} else {\n\t\t\t\tSystem.setProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_OLD_REST_API_VERSION, sysPropBefore);\n\t\t\t}\n\n\t\t}\n\t}", "@Override\n public boolean isOutdated() {\n return false;\n }", "void onIssuerWithoutDefaultInstallment();", "protected String getOsVersion() {\n return \"\";\n }", "protected abstract VersionInformation fetchVersionInformation() throws ExecutorException;", "@Test\n public void pacDownloadFromURLShouldNotUseProxy() throws Exception {\n ProxySelector oldOne = ProxySelector.getDefault();\n try {\n ProxySelector.setDefault(new ProxySelector() {\n @Override\n public List<Proxy> select(URI uri) {\n throw new UsedProxyException(\"Should not download via proxy\");\n }\n\n @Override\n public void connectFailed(URI uri, SocketAddress sa, IOException ioe) {\n // Not used\n }\n });\n PacProxySelector pacProxySelector = new PacProxySelector(\n new UrlPacScriptSource(\"http://www.test.invalid/wpad.pac\"));\n List<Proxy> ret = pacProxySelector.select(TestUtil.HTTPS_TEST_URI);\n assertEquals(\"Should return no proxy for invalid pac url\", Proxy.NO_PROXY, ret.get(0));\n } finally {\n ProxySelector.setDefault(oldOne);\n }\n }", "private void apiVersion(RoutingContext context) {\n context.response()\n .end(new JsonObject().put(\"version\", \"v1\").encodePrettily());\n }", "@Override\n public void onVersionFileDownloadTimeout() {\n\n }", "public static void setLocalVersion() {\n Properties prop = new Properties();\n try {\n prop.setProperty(\"updateID\", \"\"+UPDATE_ID); //make sure this matches the server's updateID\n prop.setProperty(\"name\", \"\"+VERSION_NAME);\n prop.store(\n new FileOutputStream(System.getProperty(\"user.home\") + \"/sheepfarmsimulator/client.properties\"), null);\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "private Tool unknownOption(String option) {\n printOutput(\"unknown option: '%s'%n\", option);\n printUsage();\n return doNothing();\n }", "@java.lang.Override\n public boolean hasVpcConnector() {\n return stepInfoCase_ == 21;\n }", "public static String no() {\n\t\treturn \"allowusersetup no\" + delimiter + \"allowusersetup no \";\n\t}", "private void defaultMalwareShouldNotBeFound(String filter) throws Exception {\n restMalwareMockMvc.perform(get(\"/api/malwares?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$\").isArray())\n .andExpect(jsonPath(\"$\").isEmpty());\n }", "private void getVersion(RoutingContext routingContext) {\n response(routingContext, 200, new JsonObject().put(\"version\", \"0.1\"));\n }", "@Test\n public void testIgnore() {\n TestUpdateSettings settings = new TestUpdateSettings(ChannelStatus.EAP, \"95.627\", \"98.620\");\n UpdateStrategyCustomization customization = new UpdateStrategyCustomization();\n UpdateStrategy strategy = new UpdateStrategy(9, BuildNumber.fromString(\"IU-95.429\"), InfoReader.read(\"idea-new9eap.xml\"), settings, customization);\n\n CheckForUpdateResult result = strategy.checkForUpdates();\n assertEquals(UpdateStrategy.State.LOADED, result.getState());\n BuildInfo update = result.getNewBuildInSelectedChannel();\n assertNull(update);\n }", "public void clearSupportsPreauthOverage() {\n genClient.clear(CacheKey.supportsPreauthOverage);\n }", "private boolean isIgnored(ServerDetail serverDetail){\n for (ServerDetail toCheck: ignoredServerDetails){\n if ((toCheck.getName().equals(serverDetail.getName())) &&\n (toCheck.getCore().equals(serverDetail.getCore())) &&\n (toCheck.getPool().equals(serverDetail.getPool())) &&\n (toCheck.getPort().equals(serverDetail.getPort()))){\n return true;\n }\n }\n return false;\n }", "private void checkVersion() {\n\r\n\t\tMyTask mytask = new MyTask();\r\n\t\tmytask.execute(null, null, null);\r\n\t}", "void setIgnoreForRecovery(boolean value) {\n ignoreForRecovery = value;\n }", "private void defaultKpiShouldNotBeFound(String filter) throws Exception {\n restKpiMockMvc\n .perform(get(ENTITY_API_URL + \"?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$\").isArray())\n .andExpect(jsonPath(\"$\").isEmpty());\n\n // Check, that the count call also returns 0\n restKpiMockMvc\n .perform(get(ENTITY_API_URL + \"/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(content().string(\"0\"));\n }", "public void setNoCache() {\n noCache= true;\n }", "protected GassServer getGassServerNoSecure() throws GrpcException {\n\t\treturn gassServerNoSecure;\n\t}", "default void listRuntimeVersions(\n com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getListRuntimeVersionsMethod(), responseObserver);\n }", "public static void disableSetupWizard(Context context) {\n }", "@Override\n public boolean hasIsTransient()\n {\n return version.compareTo(\"ca\") >= 0;\n }", "public void checkFirmwareVersion()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfor (SensorData sensorData : sCollect.getList())\n\t\t\t{\n\t\t\t\tif (sensorData.getId().equals(ConnectionManager.getInstance().currentSensor(0).getSerialNumber()))\n\t\t\t\t{\n\t\t\t\t\tif (!ConnectionManager.getInstance().currentSensor(0).getFirwareVersion()\n\t\t\t\t\t\t\t.equals(sensorData.getFirmware()))\n\t\t\t\t\t{\n\t\t\t\t\t\trestApiUpdate(ConnectionManager.getInstance().currentSensor(0).getSerialNumber(), \"firmware\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}catch (SensorNotFoundException e){\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\t\t\n\n\t}", "@java.lang.Override\n public boolean hasVpcConnector() {\n return stepInfoCase_ == 21;\n }" ]
[ "0.56455564", "0.5414893", "0.52861476", "0.52617294", "0.51944643", "0.49235612", "0.48449114", "0.48394495", "0.48246995", "0.48213202", "0.47810608", "0.47443682", "0.47210598", "0.47149712", "0.4710502", "0.4698284", "0.4684302", "0.46685445", "0.464462", "0.46411404", "0.4614181", "0.4603584", "0.45958945", "0.45772377", "0.45588982", "0.45570946", "0.45437145", "0.45389542", "0.45374662", "0.4525746", "0.45246813", "0.45157322", "0.45157218", "0.45136487", "0.45023653", "0.44806588", "0.44502407", "0.4437953", "0.44353905", "0.44348112", "0.44312647", "0.442854", "0.44258946", "0.44194984", "0.4418117", "0.44044626", "0.43924507", "0.43896332", "0.43864414", "0.43839476", "0.43831182", "0.43831182", "0.4373525", "0.43729782", "0.43691266", "0.43579873", "0.43470243", "0.43458712", "0.43402788", "0.4336638", "0.43306363", "0.43269923", "0.43174183", "0.4315509", "0.43082723", "0.43055025", "0.43044618", "0.43034708", "0.42928198", "0.42898655", "0.4287204", "0.4283948", "0.4283615", "0.42805785", "0.42724088", "0.4271755", "0.42672524", "0.42665434", "0.4265158", "0.4262843", "0.42597067", "0.42591676", "0.4256577", "0.42509732", "0.4243952", "0.42426723", "0.4235926", "0.42354065", "0.42349246", "0.42348644", "0.42340755", "0.42205352", "0.42195234", "0.4219129", "0.4218813", "0.42182902", "0.42060083", "0.41987062", "0.41907954", "0.41878352" ]
0.6441363
0
Set this to true only if the target Vault server is an insecure development instance.
public Optional<Boolean> skipTlsVerify() { return Codegen.booleanProp("skipTlsVerify").config(config).env("VAULT_SKIP_VERIFY").get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isDevEnv() {\n return (Boolean) Launch.blackboard.get(\"fml.deobfuscatedEnvironment\");\n }", "private void checkProductionMode() {\n if (getApplicationOrSystemProperty(SERVLET_PARAMETER_DEBUG, \"true\")\n .equals(\"false\")) {\n // \"Debug=true\" is the old way and should no longer be used\n productionMode = true;\n } else if (getApplicationOrSystemProperty(\n SERVLET_PARAMETER_PRODUCTION_MODE, \"false\").equals(\"true\")) {\n // \"productionMode=true\" is the real way to do it\n productionMode = true;\n }\n \n if (!productionMode) {\n /* Print an information/warning message about running in debug mode */\n // TODO Maybe we need a different message for portlets?\n logger.warning(NOT_PRODUCTION_MODE_INFO);\n }\n }", "private static boolean development() {\n final String mode = mode();\n return \"dev\".equalsIgnoreCase(mode);\n }", "protected boolean isDevelopment() {\n\t\treturn ArrayUtils.contains(environment.getActiveProfiles(), \"dev\")\n\t\t\t\t|| ArrayUtils.contains(environment.getActiveProfiles(), \"test\");\n\t}", "public boolean getDevelopment();", "public boolean isProductionMode() {\n return productionMode;\n }", "public void setVulnerable(boolean vulnerable) {\n this.vulnerable = vulnerable;\n }", "public boolean isSecure() {\n return false;\n }", "public boolean isSecure() {\n return false;\n }", "private final boolean isDebugMode() {\r\n\tString debug = m_ctx.getInitParameter(\"gateway.debug\");\r\n\tif (debug == null)\r\n\t return false;\r\n\tif (debug.equalsIgnoreCase(\"true\"))\r\n\t return true;\r\n\telse\r\n\t return false;\r\n }", "public static boolean allowLocalAccess() {\n return ConfigFactory.getCommonConfig().getBoolean(PERMIT_LOCAL_ACCESS_KEY, false);\n }", "public Boolean allowInsecure() {\n return this.allowInsecure;\n }", "protected boolean isDebugEnable() {\n return BlurDialogEngine.DEFAULT_DEBUG_POLICY;\n }", "public boolean isNotNullProduction() {\n return genClient.cacheValueIsNotNull(CacheKey.production);\n }", "public void setDebug(boolean b) { debug = b; }", "public void setDebugServer(final boolean debugServer)\n {\n this.debugServer = debugServer;\n }", "@Override\n\tpublic boolean isSecure() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isSecure() {\n\t\treturn false;\n\t}", "void setDebugEnabled(boolean value) {\r\n debug_enabled = value;\r\n }", "public void toggleDebugMode() {\r\n DEBUG = !DEBUG;\r\n }", "@Override\n public boolean isSecure() {\n return secure;\n }", "public static void enableDebugging(){\n DEBUG = true;\n }", "public boolean isSecure() {\n return secure;\n }", "@Override\n\t\tpublic boolean isSecure() {\n\t\t\treturn false;\n\t\t}", "@Input\n public boolean isDebuggable() {\n return debug;\n }", "public void setDebug(boolean value) {\n\t\tdebug = value;\n\t}", "private static native boolean isDevelopmentMode()/*-{\n return typeof $wnd.__gwt_sdm !== 'undefined';\n }-*/;", "@Override\n\tpublic boolean isSecured() {\n\t\treturn false;\n\t}", "public static boolean isDebugMode(Context context) {\n SharedPreferences preference=context.getSharedPreferences(AppSectionsConstant.Storage.PREFERENCE_CONF_SETTING, Context.MODE_PRIVATE);\n boolean bDebugMode=preference.getBoolean(KEY_SETTING_GENERAL_DEBUGMODE, DEFAULT_VAL_DEBUGMODE);\n return bDebugMode;\n }", "public static void syncIsDebug(Context context) {\n if (isDebug == null) {\n isDebug = context.getApplicationInfo() != null\n && (context.getApplicationInfo().flags\n & ApplicationInfo.FLAG_DEBUGGABLE) != 0;\n }\n }", "public static void disableDebugging(){\n DEBUG = false;\n }", "public boolean isSecure() {\n return m_Secure;\n }", "@Override\n protected boolean isDebugEnable() {\n return false;\n }", "public static boolean isSecurityOnlyLocalRequests() {\r\n return (isSecurityOnlyLocalRequests);\r\n }", "public boolean isSSLEnabled() {\n return agentConfig.isSSLEnabled();\n }", "public void setServer(boolean isServer) { this.isServer = isServer; }", "protected boolean isDebugging() {\n\t\treturn debugging;\n\t}", "static boolean debug(Configuration conf) {\n return conf.getBoolean(DEBUG_FLAG, false);\n }", "public boolean hasProduction() {\n return genClient.cacheHasKey(CacheKey.production);\n }", "public boolean isPublicServer() {\n return publicServer;\n }", "public void securityOn()\n {\n m_bSecurity = true;\n }", "public void setDebug(boolean f) {\n debug = f;\n }", "public void setDebugMode(boolean status)\n {\n debugMode = status;\n }", "public boolean isInvulnerable() {\n return _invulnerable;\n }", "@Override\n\tpublic void setDebug(boolean isDebug) {\n\t\t\n\t}", "public boolean isSetBadTServers() {\n return this.badTServers != null;\n }", "public static boolean debugOff()\r\n {\r\n on = false;\r\n System.out.println(\"Debug Mode Off\");\r\n return on;\r\n }", "public void sandbox(boolean sandbox) {\n this.sandbox = sandbox;\n }", "public void setLivePlant(boolean value) {\r\n this.livePlant = value;\r\n }", "public boolean isDebugEnabled();", "public void setDebuggable(boolean debug) {\n this.debug = debug;\n }", "public void enableDebug() {\n this.debug = true;\n }", "public void setSecure(boolean mySecure)\n\t{\n\t\tthis.secure = mySecure;\n\t}", "public static boolean debugOn()\r\n {\r\n on = true;\r\n System.out.println(\"Debug Mode On\");\r\n return on;\r\n }", "@Override\n public boolean isSoft() {\n return true;\n }", "public void toggleDebug() {\n\t\tdebug = debug ? false : true;\n\t}", "public void setDedicatedServer(boolean dedicatedServer) {\n\t\tthis.dedicatedServer = dedicatedServer;\n\t}", "public boolean isDebug();", "public boolean setDangerous() {\r\n\t\tif(!isDangerous && isCovered) {\r\n\t\t\tisDangerous=true;\r\n\t\t\t\r\n\t\t\tthis.setChanged();\r\n\t\t\tthis.notifyObservers();\r\n\t\t\tthis.clearChanged();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void setInvulnerable(boolean invulnerable) {\n _invulnerable = invulnerable;\n }", "public boolean getUseLocal() {return this.databaseConfig.getProperty(\"useLocal\").equals(\"true\");}", "public static void setDebug(boolean d) {\n\t\tdebug = d;\n\t}", "public void setDebugMode(final boolean dMode) { debugMode = dMode; }", "public boolean isDangerous() {\r\n\t\treturn isDangerous;\r\n\t}", "public void setDebug(boolean debug) {\n this.debug=debug;\n }", "private boolean inStrictContext() {\n return config.isStrictMode;\n }", "public static void normalDebug(){\n enableVerbos = false;\n }", "public boolean isProdEnvironment() {\n\n\t\tif (driver.getCurrentUrl().contains(\"www.homedepot.com\")\n\t\t\t\t|| dataHelper.getCommonData(CommonDataColumn.EnvironmentUrl)\n\t\t\t\t\t\t.contains(\"www.homedepot.com\")\n\t\t\t\t|| HelperClass.baseModel.runEnvironment.equals(\"Prod\")) {\n\n\t\t\treturn true;\n\n\t\t} else {\n\n\t\t\treturn false;\n\t\t}\n\t}", "public java.lang.Boolean getProduction() {\n return genClient.cacheGet(CacheKey.production);\n }", "public void setSecure(boolean secure)\n {\n this.secure = secure;\n }", "public static void setDebug(boolean db) {\n\n\t\tdebug = db;\n\n\t}", "boolean isDebugEnabled();", "public void setDebugging(boolean on)\n\t{\n\t\t_options.setDebugging(on);\n\t}", "public boolean isDebug( ) {\n\t\treturn debug;\n\t}", "@Override\r\n public boolean isDebug() {\n return BuildConfig.DEBUG;\r\n }", "public static boolean isProductionMode() {\n return getConfiguration() != null && ApplicationConfiguration.PRODUCTION_MODE\n .equals(getConfiguration().applicationMode());\n }", "@Override\n public boolean isDebug() {\n return BuildConfig.DEBUG;\n }", "public boolean isDebugEnabled() {\n return debugEnabled;\n }", "public boolean getDebugMode() { return debugMode; }", "public boolean isComputeLiveConfigured() {\n return\n identity != null && credential != null && image != null && location != null\n && !identity.isEmpty() && !credential.isEmpty() && !image.isEmpty() && !location.isEmpty();\n }", "public boolean isDedicatedServer() {\n\t\treturn dedicatedServer;\n\t}", "public void setDebugSend( boolean debug_on_off )\n {\n debug_send = debug_on_off;\n }", "public boolean isDebug() {\n\t\treturn debug;\n\t}", "public boolean isDebug() {\n\t\treturn debug;\n\t}", "public boolean isDebugMode() {\n return debugMode;\n }", "public boolean getSecure()\n\t{\n\t\treturn this.secure;\n\t}", "public static boolean verboseOn() {\n return (SolrUtil.DEBUG || Debug.verboseOn());\n }", "public boolean requiresSecurityPolicy()\n {\n return true;\n }", "public void setDebug(boolean debug) {\n this.debug = debug;\n }", "public void setDebug(boolean debug) {\n this.debug = debug;\n }", "private void selectPRODUCTIONEnv() {\n ((AppController) getApplication()).setAppEnvironment(AppEnvironment.PRODUCTION);\n editor = settings.edit();\n editor.putBoolean(\"is_prod_env\", false);\n editor.apply();\n }", "boolean isDebug();", "boolean isDebug();", "public static boolean UnityAdsGetDebugMode() {\n Log.d(\"Unity cocos2dx Sample\", \"[UnityAds Demo] UnityAdsGetDebugMode\");\n return UnityAds.getDebugMode();\n }", "public boolean escreveDebug (boolean escreveDebug) {\r\n return this._delegate.escreveDebug(escreveDebug);\r\n }", "public boolean isSoft();", "public boolean isDisplayDebug() {\n return displayDebug;\n }", "@java.lang.Override\n public boolean hasFirewall() {\n return stepInfoCase_ == 6;\n }", "public boolean isDebugged() {\r\n\t\treturn debugged;\r\n\t}", "public boolean isDebug()\n\t{\n\t\treturn this.debug;\n\t}" ]
[ "0.66566765", "0.6516824", "0.64727795", "0.6337339", "0.6230058", "0.6178492", "0.60633254", "0.60114264", "0.60114264", "0.600435", "0.5965679", "0.59656566", "0.59407586", "0.58919114", "0.5861207", "0.58453685", "0.58435136", "0.58435136", "0.5839771", "0.580786", "0.5803204", "0.5801609", "0.5801165", "0.5795587", "0.57634795", "0.57380927", "0.5734706", "0.5723452", "0.57200474", "0.56851465", "0.56782824", "0.5667773", "0.5657897", "0.56566954", "0.5656022", "0.56367654", "0.5617502", "0.56024045", "0.5558682", "0.555772", "0.5551235", "0.5549921", "0.55472887", "0.554697", "0.55451775", "0.5529667", "0.55241334", "0.5524094", "0.55192566", "0.5511118", "0.55080664", "0.55026233", "0.55007386", "0.54980195", "0.549607", "0.54806536", "0.5477577", "0.54716873", "0.5470838", "0.5458961", "0.5456186", "0.5453006", "0.54449487", "0.54300624", "0.5428374", "0.541208", "0.5408834", "0.5403938", "0.540334", "0.54021853", "0.5401174", "0.539672", "0.5390911", "0.5385649", "0.53800565", "0.5373258", "0.53701556", "0.5365783", "0.5364943", "0.5359379", "0.5358533", "0.5351862", "0.534472", "0.534472", "0.53441924", "0.5334515", "0.53326744", "0.5323163", "0.5314961", "0.5314961", "0.5312116", "0.531021", "0.531021", "0.53072286", "0.5301529", "0.529476", "0.5280995", "0.5278364", "0.5268948", "0.5266844" ]
0.5660896
32
Name to use as the SNI host when connecting via TLS.
public Optional<String> tlsServerName() { return Codegen.stringProp("tlsServerName").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String name () {\n return \"tls\";\n }", "String getHostName();", "String getHostName();", "public String getHostName();", "String getRemoteHostName();", "String getHostname();", "String getHostname();", "public String getServername() {\r\n return servername;\r\n }", "public String getHostname();", "public String hostname() {\n return this.hostname;\n }", "public String getHostName() {\n\t\treturn \"RaspberryHostName\";\n\t}", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getHostName (){\n return hostName;\n }", "public String getHostName() {\n return hostName;\n }", "public String getHostName() {\n return hostName;\n }", "public String getHostName() {\n\t\treturn hostName;\n\t}", "public String getHostName() {\n\t\treturn hostName;\n\t}", "public String getHostName() {\n return null;\n }", "public static String getHostname()\n\t{\n\t\treturn hostname; // send the hostname\n\t}", "public String getHostName() {\n return this.hostContext.getHostName();\n }", "public String getHostName() {\n return FxSharedUtils.getHostName();\n }", "java.lang.String getHost();", "java.lang.String getHost();", "String getServerConnectionChannelName();", "String host();", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getServerName();", "@NonNull\n public String getServerHostname() {\n return mServerHostname;\n }", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }", "private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().getHostName();\n }", "public String getHostname() {\r\n return hostname;\r\n }", "public final String getIdentifier() {\n return ServerUtils.getIdentifier(name, ip, port);\n }", "String getHost();", "public String getHostname() {\n return this.config.getHostname();\n }", "public static server getNameServer(){\n return nameServer;\n }", "public static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return LOCALHOST;\n }\n }", "public String getHostname () {\n return hostname;\n }", "public String get_hostname() throws Exception {\n\t\treturn this.hostname;\n\t}", "public String getServerName() {\n return serverName;\n }", "public String getServerName() {\n return serverName;\n }", "@Override\n\t\tpublic String getServerName() {\n\t\t\treturn null;\n\t\t}", "@Override\n public String getServerDisplayName() {\n return serverDisplayName;\n }", "public String getHostname() {\n return this.hostname;\n }", "protected String get_object_name() {\n\t\treturn this.hostname;\n\t}", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public String getHost();", "public String getHost();", "private static String getHostname()\n throws UnknownHostException {\n return InetAddress.getLocalHost().getHostName();\n }", "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "@NonNull\n public String getServerAddr() {\n if (mIkeTunConnParams == null) return mServerAddr;\n\n final IkeSessionParams ikeSessionParams = mIkeTunConnParams.getIkeSessionParams();\n return ikeSessionParams.getServerHostname();\n }", "public String hostname() {\n return this.innerProperties() == null ? null : this.innerProperties().hostname();\n }", "java.lang.String getServerAddress();", "default String socket() {\n return WebServer.DEFAULT_SOCKET_NAME;\n }", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "@Override\n\tpublic String getServerName() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getServerName() {\n\t\treturn null;\n\t}", "public String getHostName() throws UnknownHostException\n\t{\n\t\t\n\t\treturn InetAddress.getLocalHost().getHostAddress();\n\t\t\n\t}", "public static String getHttpHostName(ConfigurationExtensions configurationExtensions) {\n return configurationExtensions.get(HTTP_HOSTNAME);\n }", "public static String getHostname()\n {\n String host = \"unknown\";\n try\n {\n return InetAddress.getLocalHost().getHostName();\n }\n catch ( UnknownHostException e )\n {\n // ignore\n }\n return host;\n }", "public String getServerName() {\n\t\treturn m_serverName;\n\t}", "public String getProtocolDisplayName()\n {\n String displayName = getAccountID().getAccountPropertyString(ProtocolProviderFactory.PROTOCOL);\n return (displayName == null) ? getProtocolName() : displayName;\n }", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "public HostnameVerifier hostnameVerifier() {\n return hostnameVerifier;\n }", "private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return NetworkUtils.canonize(getLocalHost().getHostName());\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }", "public final GSSNameSpi getName() throws GSSException {\n/* 267 */ return this.name;\n/* */ }", "public String getServerName(){\n return this.serverName;\n }", "protected abstract String getHostNamePropertyName();", "java.lang.String getRemoteHost();", "Builder hostName(String hostName);", "public String getHost() { return host; }", "@Override\n\tpublic String getProtocolName() {\n\t\treturn null;\n\t}", "public String getSimulatorHostname() {\n return simSpec.getHostAddr();\n }", "OctetString getSecurityName();", "public String getPeerName() {\n return peerAddress.getHostName();\n }", "public String getPeerName() {\n return peerAddress.getHostName();\n }", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "String getServerName() {\n return game.z.C;\n }", "String getIntegHost();", "public String getHostName(String connectionString)\n {\n String[] tokens = connectionString.split(\";\");\n for (String token: tokens)\n {\n if (token.contains(\"HostName\"))\n {\n String[] hName = token.split(\"=\");\n return hName[1];\n }\n }\n\n return null;\n }", "public String getHost() {\r\n return host;\r\n }", "Host getHost();", "@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}", "public String host() {\n return host;\n }", "public String getSiteHttpServerName() {\n return mSiteHttpServerName;\n }", "public final static String getServerIdentificator() {\r\n\t\treturn serverID;\r\n\t}", "public static String getClientHost() throws ServerNotActiveException {\n return sun.rmi.transport.tcp.TCPTransport.getClientHost();\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "private static void connectToNameNode(){\n int nameNodeID = GlobalContext.getNameNodeId();\n ServerConnectMsg msg = new ServerConnectMsg(null);\n\n if(comm_bus.isLocalEntity(nameNodeID)) {\n log.info(\"Connect to local name node\");\n comm_bus.connectTo(nameNodeID, msg.getByteBuffer());\n } else {\n log.info(\"Connect to remote name node\");\n HostInfo nameNodeInfo = GlobalContext.getHostInfo(nameNodeID);\n String nameNodeAddr = nameNodeInfo.ip + \":\" + nameNodeInfo.port;\n log.info(\"name_node_addr = \" + String.valueOf(nameNodeAddr));\n comm_bus.connectTo(nameNodeID, nameNodeAddr, msg.getByteBuffer());\n }\n }", "public void setName (String name) {\n this.name = name;\n NameRegistrar.register (\"server.\"+name, this);\n }", "X509HostnameVerifier getHostnameVerifier();", "String getServerId();", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }" ]
[ "0.6556287", "0.6544177", "0.6544177", "0.65433776", "0.64536065", "0.63699096", "0.63699096", "0.63046753", "0.6293422", "0.6266543", "0.62525105", "0.62031853", "0.61855155", "0.618374", "0.618374", "0.6172959", "0.6172959", "0.61697775", "0.6162579", "0.61436194", "0.6126073", "0.608561", "0.608561", "0.6085601", "0.60468286", "0.60365325", "0.60226303", "0.60122675", "0.60118663", "0.59872264", "0.5967579", "0.5956073", "0.5933812", "0.5922594", "0.5912069", "0.59028983", "0.5894884", "0.5870718", "0.5862891", "0.5862891", "0.5852269", "0.58482826", "0.5847241", "0.5842354", "0.58418494", "0.58408034", "0.58408034", "0.583061", "0.58015734", "0.58011013", "0.5793461", "0.5789196", "0.57872176", "0.57655174", "0.5763075", "0.5740811", "0.5740811", "0.5718224", "0.56922424", "0.5687481", "0.5680428", "0.5673316", "0.566881", "0.56251574", "0.56066924", "0.56006193", "0.55935466", "0.5583574", "0.55743444", "0.55591273", "0.55546916", "0.5546186", "0.5544497", "0.55424076", "0.554018", "0.554018", "0.55298537", "0.55283093", "0.55270886", "0.5513693", "0.5513025", "0.54940325", "0.54883957", "0.54781425", "0.54776245", "0.54774386", "0.54735893", "0.5464161", "0.5464161", "0.546414", "0.546414", "0.5454575", "0.54541713", "0.5453277", "0.5441332", "0.54179376", "0.54179376", "0.54179376", "0.54179376", "0.54179376" ]
0.62357354
11
Token to use to authenticate to Vault.
public String token() { return Codegen.stringProp("token").config(config).require(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getVaultToken(MagnoliaConfigurationProperties magnoliaConfigurationProperties) {\n return magnoliaConfigurationProperties.getProperty(PROPERTY_VAULT_TOKEN);\n }", "public String getToken();", "Pokemon.RequestEnvelop.AuthInfo.JWT getToken();", "public static String getToken() {\n String token = \"96179ce8939c4cdfacba65baab1d5ff8\";\n return token;\n }", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "private static Tuple<Integer, String> getToken() {\n\t\tTuple<Integer, String> result = new Tuple<Integer, String>();\n\t\tresult = GETRequest(AUTH_URL, AUTH_HEADER, \"\", \"\");\n\t\treturn result;\n\t}", "public String getToken()\n {\n return token;\n }", "public Pokemon.RequestEnvelop.AuthInfo.JWT getToken() {\n return token_;\n }", "public String getToken() {\n return token;\n }", "public String getToken() {\n return token;\n }", "public String getToken() {\n return token;\n }", "public String getToken() {\n return token;\n }", "public String getToken() {\n return token;\n }", "public String getToken() {\r\n return token;\r\n }", "public String getToken() {\r\n return token;\r\n }", "public String getTokenKey()\r\n\t{\r\n\t\treturn TOKEN_KEY;\r\n\t}", "public String getToken() {\n return token.get();\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\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 token_ = s;\n return s;\n }\n }", "@Override\n public Object getCredentials() {\n return token;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Authentication token (see `/auth` and `/configure`)\")\n\n public String getToken() {\n return token;\n }", "public String getToken() {\n return token_;\n }", "public String getToken() {\n return token_;\n }", "public String getToken() {\n return token_;\n }", "java.lang.String getRemoteToken();", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n }\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n }\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n }\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n }\n }", "public java.lang.String getToken(){\n return localToken;\n }", "public String getToken() {\n\t\treturn token;\n\t}", "public String getToken() {\n\t\treturn token;\n\t}", "com.google.protobuf.ByteString\n getTokenBytes();", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\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 token_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "com.google.protobuf.ByteString\n getTokenBytes();", "com.google.protobuf.ByteString\n getTokenBytes();", "com.google.protobuf.ByteString\n getTokenBytes();", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n token_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n token_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@java.lang.Override\n public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n }\n }", "@ApiModelProperty(value = \"String that represents the authentication token. (For security reasons, this value is null except for a successful token creation response.)\")\n public String getToken() {\n return token;\n }", "public String getToken() {\n return this.token;\n }", "com.google.protobuf.ByteString\n getTokenBytes();", "com.google.protobuf.ByteString\n getTokenBytes();", "com.google.protobuf.ByteString\n getTokenBytes();", "com.google.protobuf.ByteString\n getTokenBytes();", "com.google.protobuf.ByteString\n getTokenBytes();", "public String getToken() {\n return instance.getToken();\n }", "public String getToken() {\n return instance.getToken();\n }", "public String getToken() {\n return instance.getToken();\n }", "String getToken();", "String getToken();", "String getToken();", "String getToken();", "String getToken();", "public String getToken(String name){\n\n return credentials.get(name, token);\n }", "public java.lang.String getToken(){\r\n return localToken;\r\n }", "public String getToken()\n {\n return ssProxy.getToken();\n }", "public com.google.protobuf.ByteString\n getTokenBytes() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n token_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTokenBytes() {\n java.lang.Object ref = token_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n token_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTokenBytes() {\n java.lang.Object ref = token_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n token_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTokenBytes() {\n java.lang.Object ref = token_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n token_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTokenBytes() {\n java.lang.Object ref = token_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n token_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTokenBytes() {\n java.lang.Object ref = token_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n token_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getToken() {\n\n return this.token;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getTokenBytes() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n token_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getToken() {\n return this.token;\n }", "Mono<GenericToken> getToken();", "public Pokemon.RequestEnvelop.AuthInfo.JWTOrBuilder getTokenOrBuilder() {\n return token_;\n }", "public Token getToken() {\n return token;\n }", "public com.google.protobuf.ByteString\n getTokenBytes() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n token_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTokenBytes() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n token_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTokenBytes() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n token_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTokenBytes() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n token_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getToken() {\n \treturn mToken;\n }", "public AuthorizationToken retrieveToken(String token);", "public com.google.protobuf.ByteString\n getTokenBytes() {\n java.lang.Object ref = token_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n token_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public DsByteString getToken() {\n return sToken;\n }", "public String getToken() {\n return this.token;\n }", "GetToken.Req getGetTokenReq();", "private void requestToken(){\n APIAuth auth = new APIAuth(this.prefs.getString(\"email\", \"\"), this.prefs.getString(\"password\", \"\"), this.prefs.getString(\"fname\", \"\") + \" \" +this.prefs.getString(\"lname\", \"\"), this.prefs, null);\n auth.authenticate();\n }", "public String getTokenId() {\n return tokenId;\n }", "OAuth2Token getToken();", "protected String getAuthMethod() {\n return \"Token\" ;// TODO this.conf.getAuthMethod();\n }", "@Nonnull\n public final String getToken() {\n return this.token;\n }", "Pokemon.RequestEnvelop.AuthInfo.JWTOrBuilder getTokenOrBuilder();", "public Token() {\n mTokenReceivedDate = new Date();\n }", "public byte[] getToken() {\n\t\treturn this.token;\n\t}", "public Pokemon.RequestEnvelop.AuthInfo.JWT getToken() {\n if (tokenBuilder_ == null) {\n return token_;\n } else {\n return tokenBuilder_.getMessage();\n }\n }", "public T getToken() {\n return this.token;\n }", "String getToken(PortalControllerContext portalControllerContext);", "public void storeToken(AuthorizationToken token);", "public String getAuthtoken() {\n return authtoken;\n }" ]
[ "0.7127441", "0.6746648", "0.6503431", "0.6425657", "0.6402556", "0.6402556", "0.6402556", "0.6402556", "0.6402556", "0.6402556", "0.6377366", "0.6360293", "0.6351713", "0.6332273", "0.6332273", "0.6332273", "0.6332273", "0.6332273", "0.6327812", "0.6327812", "0.6304202", "0.6286392", "0.6283123", "0.627814", "0.62508947", "0.624682", "0.624682", "0.624682", "0.6218604", "0.62163883", "0.62163883", "0.62163883", "0.62163883", "0.6211674", "0.62109876", "0.62109876", "0.6208947", "0.6199245", "0.6198392", "0.6198392", "0.6198392", "0.61874527", "0.61874527", "0.6182824", "0.6182824", "0.6182824", "0.61729294", "0.61686087", "0.6141711", "0.6127571", "0.6127571", "0.6127571", "0.6127571", "0.6127571", "0.6123796", "0.6123796", "0.6123796", "0.6116172", "0.6116172", "0.6116172", "0.6116172", "0.6116172", "0.6112794", "0.6108591", "0.6106754", "0.60855824", "0.6074842", "0.6074842", "0.6074842", "0.6074842", "0.6074842", "0.6062367", "0.6048005", "0.6033883", "0.60285884", "0.6021416", "0.5995268", "0.59944737", "0.59944737", "0.59944737", "0.59944737", "0.5974017", "0.5973529", "0.5969145", "0.5961832", "0.59526545", "0.5932198", "0.59321046", "0.591103", "0.59088683", "0.5900724", "0.5891222", "0.587133", "0.58526796", "0.58439124", "0.58384544", "0.5808468", "0.57973516", "0.5783284", "0.5775443" ]
0.6144382
48
Token name to use for creating the Vault child token.
public Optional<String> tokenName() { return Codegen.stringProp("tokenName").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TokenTypes.TokenName getName();", "public Token getName()\n {\n if (isVersion())\n {\n return getVersion();\n }\n\n return getModule();\n }", "@Override\r\n\tpublic Token createToken() {\n\t\tToken token = new Token();\r\n\t\treturn token;\r\n\t}", "public String getTokenKey()\r\n\t{\r\n\t\treturn TOKEN_KEY;\r\n\t}", "public PersistentChildToken() {\n this.Id = UUID.randomUUID();\n this.owner = \"\";\n this.issuer = \"\";\n this.amount = 0;\n this.persistentToken = null;\n this.childProof = \"I am a child\";\n this.listOfPersistentGrandChildTokens = null;\n }", "@Override\n public String getName() {\n return Constant.messages.getString(\"pscanrules.noanticsrftokens.name\");\n }", "void createLabelToken( String name, int id );", "public Token newToken() {\r\n\t\tString value = UUID.randomUUID().toString();\r\n\t\treturn new Token(value);\r\n\t}", "public String token() {\n return Codegen.stringProp(\"token\").config(config).require();\n }", "String getTokenName(FederationElement fedElem);", "public PersistentGrandChildToken() {\n this.Id = UUID.randomUUID();\n this.owner = \"\";\n this.issuer = \"\";\n this.amount = 0;\n this.persistentChildToken = null;\n this.childProof = \"I am a child\";\n }", "void putToken(String name, String value);", "private String getTokenName(int token) {\n try {\n java.lang.reflect.Field [] classFields = sym.class.getFields();\n for (int i = 0; i < classFields.length; i++) {\n if (classFields[i].getInt(null) == token) {\n return classFields[i].getName();\n }\n }\n } catch (Exception e) {\n e.printStackTrace(System.err);\n }\n\n return \"UNKNOWN TOKEN\";\n }", "private String getTokenName(int token) {\n try {\n java.lang.reflect.Field [] classFields = sym.class.getFields();\n for (int i = 0; i < classFields.length; i++) {\n if (classFields[i].getInt(null) == token) {\n return classFields[i].getName();\n }\n }\n } catch (Exception e) {\n e.printStackTrace(System.err);\n }\n\n return \"UNKNOWN TOKEN\";\n }", "private String getTokenName(int token) {\n try {\n java.lang.reflect.Field [] classFields = sym.class.getFields();\n for (int i = 0; i < classFields.length; i++) {\n if (classFields[i].getInt(null) == token) {\n return classFields[i].getName();\n }\n }\n } catch (Exception e) {\n e.printStackTrace(System.err);\n }\n\n return \"UNKNOWN TOKEN\";\n }", "public String newToken(){\n String line = getLine(lines);\n String token = getToken(line);\n return token;\n }", "protected String getTokenName(Token parent, String transitionName, int loopIndex)\n {\n String suffix = \".\" + loopIndex;\n if (transitionName == null || transitionName.isEmpty())\n {\n // No transition name\n int size = (parent.getChildren() != null) ? parent.getChildren().size() + 1 : 1;\n return buildTokenName(\"FOREACHFORK\", suffix, size);\n }\n return findFirstAvailableTokenName(parent, transitionName, suffix);\n }", "public static String getTokenName(int type) {\r\n return TokenType.getTokenName(type);\r\n }", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "public String getToken() {\r\n return token;\r\n }", "public String getToken() {\r\n return token;\r\n }", "public static String getToken() {\n String token = \"96179ce8939c4cdfacba65baab1d5ff8\";\n return token;\n }", "public java.lang.String getToken(){\n return localToken;\n }", "public String getToken() {\n return token;\n }", "public String getToken() {\n return token;\n }", "public String getToken() {\n return token;\n }", "public String getToken() {\n return token;\n }", "public String getToken() {\n return token;\n }", "public String getToken() {\n return token.get();\n }", "public String getToken() {\n\t\treturn token;\n\t}", "public String getToken() {\n\t\treturn token;\n\t}", "public String getToken()\n {\n return token;\n }", "public String getToken();", "void createRelationshipTypeToken( int id, String name );", "public java.lang.String getToken(){\r\n return localToken;\r\n }", "String getPrimaryToken();", "public String getToken() {\n return instance.getToken();\n }", "public String getToken() {\n return instance.getToken();\n }", "public String getToken() {\n return instance.getToken();\n }", "public String getToken() {\n return token_;\n }", "public String getToken() {\n return token_;\n }", "public String getToken() {\n return token_;\n }", "String getToken();", "String getToken();", "String getToken();", "String getToken();", "String getToken();", "public String getToken() {\n return this.token;\n }", "public String getTokenValue() { return tok; }", "private Token () { }", "public Token getToken() {\n return token;\n }", "@Override\n\tpublic String getTokenId() {\n\t\treturn null;\n\t}", "@java.lang.Override\n public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n }\n }", "@Override\n public String toString() {\n synchronized (this) {\n return \"DLockToken\" + \"@\" + Integer.toHexString(hashCode()) + \", name: \" + name\n + \", thread: <\" + getThreadName() + \">\" + \", recursion: \" + recursion\n + \", leaseExpireTime: \" + leaseExpireTime + \", leaseId: \" + leaseId\n + \", ignoreForRecovery: \" + ignoreForRecovery + \", lesseeThread: \"\n + lesseeThread + \", usageCount: \" + usageCount + \", currentTime: \"\n + getCurrentTime();\n }\n }", "public TemplexTokenMaker() {\r\n\t\tsuper();\r\n\t}", "public String getTokenId() {\n return tokenId;\n }", "public String getToken(String name){\n\n return credentials.get(name, token);\n }", "ElementNameCode(int token, String name) {\n super(token);\n this.name = name;\n }", "String vaultName();", "public String getToken() {\n return this.token;\n }", "@Override\r\n public int getTokenId()\r\n {\r\n return this.tokenId;\r\n }", "public PersistentToken() {\n this.owner = \"\";\n this.issuer = \"\";\n this.amount = 0;\n this.linearId = UUID.randomUUID();\n this.listOfPersistentChildTokens = null;\n }", "public String onCreateTokenForHistory() {\n switch (Storage.getCurrentlyLoadedView()) {\n case Constants.CLIENT_DEMANDS:\n return CLIENT_DEMANDS_STRING;\n case Constants.CLIENT_OFFERED_DEMANDS:\n return CLIENT_OFFERED_DEMANDS_STRING;\n case Constants.CLIENT_ASSIGNED_DEMANDS:\n return CLIENT_ASSIGNED_DEMANDS_STRING;\n case Constants.CLIENT_CLOSED_DEMANDS:\n return CLIENT_CLOSED_DEMANDS_STRING;\n case Constants.CLIENT_RATINGS:\n return CLIENT_RATINGS_STRING;\n default:\n return NONE_STRING;\n }\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\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 token_ = s;\n return s;\n }\n }", "public Token() {\n token = new Random().nextLong();\n }", "public String getToken() {\n return this.token;\n }", "public String getToken() {\n\n return this.token;\n }", "public String token() {\n return this.token;\n }", "public static String getToken() {\n \treturn mToken;\n }", "public String getName() {\n\t\t\n\t\tString name = \"\";\n\t\t\n\t\tif (securityContext != null) {\n\t\t\tname = securityContext.getIdToken().getPreferredUsername();\n\t\t}\n\t\t\n\t\treturn name;\n\t}", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getStringToken()\n\t{\n\t\tgetToken();\n\t\treturn token;\n\t}", "private String getVaultToken(MagnoliaConfigurationProperties magnoliaConfigurationProperties) {\n return magnoliaConfigurationProperties.getProperty(PROPERTY_VAULT_TOKEN);\n }", "public TokenInfo createToken(TokenCoreInfo coreInfo, String password);", "public String getName() {\n return Token2Constants.AUTHENTICATOR_NAME;\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n }\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n }\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n }\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n token_ = s;\n }\n return s;\n }\n }", "public String getToken_type() {\r\n\t\treturn token_type;\r\n\t}", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\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 token_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "protected static String generateToken()\n\t{\n\t\treturn UUID.randomUUID().toString();\n\t}", "public T getToken() {\n return this.token;\n }", "public Token getToken() {\n\t\treturn token;\n\t}", "public Token getToken() {\n\t\treturn token;\n\t}", "public Token getToken() {\n\t\treturn token;\n\t}", "public String getTokenId() {\n return this.TokenId;\n }", "public java.lang.String getTokenId() {\n java.lang.Object ref = tokenId_;\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 tokenId_ = s;\n return s;\n }\n }", "@Override\n\tpublic Token getToken() {\n\t\treturn this.token;\n\t\t\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn \"new\";\n\t}", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n token_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getToken() {\n java.lang.Object ref = token_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n token_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String identifier(){\n\n if (currentTokenType == TYPE.IDENTIFIER){\n\n return currentToken;\n\n }else {\n throw new IllegalStateException(\"Current token is not an identifier! current type:\" + currentTokenType);\n }\n }" ]
[ "0.66298413", "0.6477666", "0.6331196", "0.6029376", "0.59981096", "0.59294677", "0.5916345", "0.58921075", "0.58779997", "0.58662647", "0.58277744", "0.582459", "0.57948154", "0.57948154", "0.57948154", "0.5775557", "0.5757189", "0.5756824", "0.5749178", "0.5749178", "0.5749178", "0.5749178", "0.5749178", "0.5749178", "0.56838405", "0.56838405", "0.56618464", "0.56610656", "0.56484264", "0.56484264", "0.56484264", "0.56484264", "0.56484264", "0.563521", "0.56283736", "0.56283736", "0.56275284", "0.561335", "0.5600599", "0.55867606", "0.5554361", "0.5527637", "0.5527637", "0.5527637", "0.55245674", "0.55245674", "0.55245674", "0.55116224", "0.55116224", "0.55116224", "0.55116224", "0.55116224", "0.54806757", "0.545753", "0.54542667", "0.5440319", "0.5435901", "0.5418948", "0.54148906", "0.54118973", "0.5409166", "0.54035664", "0.5393764", "0.5389779", "0.5384572", "0.53791153", "0.53702164", "0.53442883", "0.5339448", "0.5335518", "0.5334943", "0.53309315", "0.53307426", "0.53223366", "0.53194016", "0.53116465", "0.53116465", "0.53116465", "0.53104293", "0.53064597", "0.52979016", "0.52897733", "0.5285235", "0.5285235", "0.5285235", "0.5285235", "0.5283926", "0.5283171", "0.52760845", "0.5268738", "0.5265829", "0.5265829", "0.5265829", "0.52508736", "0.5247607", "0.5238861", "0.52316564", "0.5230455", "0.5230455", "0.52291226" ]
0.6264751
3
Override the Vault server version, which is normally determined dynamically from the target Vault server
public Optional<String> vaultVersionOverride() { return Codegen.stringProp("vaultVersionOverride").config(config).get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServerVersion();", "public Long getServerVersion() {\n\t\treturn serverVersion;\n\t}", "@GetMapping()\n public String getServerVersion() {\n return versionProperties.getVersion();\n }", "public String getServerVersion() throws IOException {\n\t\treturn Core.getServerVersion(getHttpMethodExecutor());\n\t}", "public static void setLocalVersion() {\n Properties prop = new Properties();\n try {\n prop.setProperty(\"updateID\", \"\"+UPDATE_ID); //make sure this matches the server's updateID\n prop.setProperty(\"name\", \"\"+VERSION_NAME);\n prop.store(\n new FileOutputStream(System.getProperty(\"user.home\") + \"/sheepfarmsimulator/client.properties\"), null);\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "public void setServerVersion(Long serverVersion) {\n\t\tthis.serverVersion = serverVersion;\n\t}", "void setVersion(long version);", "void setVersion(String version);", "void setVersion(String version);", "public void setVersion(String version){\r\n this.version = version;\r\n }", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "@Override\r\n\tpublic String getVersion() {\r\n\t\treturn \"1.0.5\";\r\n\t}", "public void setVersion(String version);", "public void setVersion(String version)\n {\n this.ver = version;\n }", "@Override\n\tpublic void setMethodVersion() {\n\t\tthis.version=\"app3.5\";\n\t}", "private void setVersion(long value) {\n bitField0_ |= 0x00000002;\n version_ = value;\n }", "String offerVersion();", "public String getMinecraftVersion();", "public void setVersion(int version)\n {\n encryptionDictionary.setInt( \"V\", version );\n }", "public long getVersion(){\n return localVersion;\n }", "public String getMinecraftVersionPre();", "public void setVersion(String value) {\n\t\tthis._version = value;\n\t}", "@Override\n public String getVersionString() {\n return versionString;\n }", "private static String getVersion(Server server) {\n final String packageName = server.getClass().getPackage().getName();\n return packageName.substring(packageName.lastIndexOf('.') + 1);\n }", "private void getVersion(RoutingContext routingContext) {\n response(routingContext, 200, new JsonObject().put(\"version\", \"0.1\"));\n }", "public void setVersion(String version) {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void setVersion(Long version) {\n this.version = version;\n }", "public void setVersion(long version) {\n this.version = version;\n }", "public void setVersion(String version) {\n this.version = version;\n }", "public void setVersion(String version) {\n this.version = version;\n }", "public void setVersion(String version)\n {\n this.version = version;\n }", "public String getServiceVersion();", "public void setVersion(long param){\n \n // setting primitive attribute tracker to true\n \n if (param==java.lang.Long.MIN_VALUE) {\n localVersionTracker = false;\n \n } else {\n localVersionTracker = true;\n }\n \n this.localVersion=param;\n \n\n }", "int getCurrentVersion();", "public void setVersion(String version) {\n this.version = version;\n }", "@Override\r\n\tpublic void setVersion(int version) {\n\r\n\t}", "int getRpcVersion();", "int getRpcVersion();", "public abstract HttpClient.Version version();", "public abstract String getVersion();", "public abstract String getVersion();", "public abstract String getVersion();", "public static String getVersion() { return \"2.0\"; }", "Long getVersion();", "public void setVersion(String version) {\r\n\t\tthis.version = version;\r\n\t}", "public void setVersion(Long version) {\n this.version = version;\n }", "public void setVersion(Long version) {\n this.version = version;\n }", "public void setVersion(Long version) {\n this.version = version;\n }", "public void setVersion(Long version) {\n this.version = version;\n }", "public void setVersion(int value) {\n this.version = value;\n }", "public void setVersion(String version) {\n this.version = version;\n }", "public void setVersion(String version) {\n this.version = version;\n }", "public void setVersion(String version) {\n this.version = version;\n }", "default String getVersion()\n {\n return getString( \"version\", \"Unknown Version\");\n }", "public void setVersion( String version )\n {\n this.version = version.toLowerCase( Locale.ENGLISH );\n }", "public void setServiceVersion(String serviceVersion);", "private void setAppVersion() {\n try {\n String appVer = mContext.getPackageManager().getPackageInfo(mContext.getPackageName(), 0).versionName;\n ServerSettingHelper.getInstance().setApplicationVersion(appVer);\n } catch (NameNotFoundException e) {\n if (Config.GD_ERROR_LOGS_ENABLED)\n Log.e(\"NameNotFoundException\", \"Error of getting package information!\");\n }\n }", "Version getApiVersion();", "public String getVersion(){\r\n return version;\r\n }", "private void apiVersion(RoutingContext context) {\n context.response()\n .end(new JsonObject().put(\"version\", \"v1\").encodePrettily());\n }", "int getVersion() throws RemoteException;", "public void setVersion(Integer version)\r\n {\r\n this.version = version;\r\n }", "public int getVersion() { return 1; }", "public abstract int getVersion();", "public void setVersion(String version) {\n\t\tthis.version = version;\n\t}", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "public void setVersion(java.lang.String version) {\r\n this.version = version;\r\n }", "String getVersion() throws IOException, SoapException;", "@Override\n\tpublic String getVersion() {\n\t\treturn \"0\";\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public String getVersion() {\n return \"2.0\";\n }", "private String getHttpVersion() {\n return (http11 ? \"HTTP/1.1\" : \"HTTP/1.0\");\n }", "public void setVersion(Integer version) {\r\n this.version = version;\r\n }", "public String getVersion();", "public String getVersion();", "public String getVersion();", "public String getVersion();", "public void setVersion(int version) {\n this.version = version;\n }", "public void setVersion(int version) {\n this.version = version;\n }", "@Override\n public int getVersion() {\n return 0;\n }", "public String getProductVersion();", "public static String getVersion() {\n\t\treturn \"1.0.3\";\n\t}", "@java.lang.Override\n public long getVersion() {\n return version_;\n }" ]
[ "0.69903433", "0.6421012", "0.6144509", "0.61157197", "0.60530853", "0.600078", "0.5996463", "0.5910492", "0.5910492", "0.5887728", "0.58806115", "0.58806115", "0.58806115", "0.58806115", "0.58806115", "0.58806115", "0.58806115", "0.58806115", "0.5880282", "0.5878691", "0.58648306", "0.5841662", "0.58299494", "0.58264184", "0.5803321", "0.57899386", "0.57881063", "0.57878834", "0.57780224", "0.5766722", "0.5761434", "0.5752156", "0.57360214", "0.57301116", "0.5721866", "0.5719892", "0.5719892", "0.57070476", "0.56853145", "0.5681232", "0.5679776", "0.56764865", "0.5662466", "0.56575257", "0.56575257", "0.5655128", "0.56517476", "0.56517476", "0.56517476", "0.5638244", "0.5629413", "0.56183827", "0.5599911", "0.5599911", "0.5599911", "0.5599911", "0.5599797", "0.55975056", "0.55975056", "0.55975056", "0.5595751", "0.5591832", "0.55887777", "0.55835015", "0.55804807", "0.55790627", "0.55675304", "0.55593485", "0.55366623", "0.5532746", "0.5530845", "0.5522588", "0.5519342", "0.5519342", "0.5519342", "0.5519342", "0.5519342", "0.5519342", "0.5519342", "0.5519342", "0.5519342", "0.5519342", "0.5519342", "0.5518661", "0.5516647", "0.55026454", "0.54976916", "0.5485202", "0.54831856", "0.5480405", "0.54781455", "0.54781455", "0.54781455", "0.54781455", "0.5472501", "0.5472501", "0.5467981", "0.5464813", "0.54632676", "0.54570484" ]
0.72772473
0
testEnumMethod(); testEnumMethod2(); testEnumMethod3(); testSwitchEnum();
public static void main(String[] args) { for (OperateTypeEnum test : OperateTypeEnum.values()) { System.out.println(test.name()+" "+test.ordinal()); } EnumMap<OperateTypeEnum, String> enumMap = new EnumMap<OperateTypeEnum, String>(OperateTypeEnum.class); enumMap.put(OperateTypeEnum.DELETE, "dddddddddddddd"); enumMap.put(OperateTypeEnum.UPDATE, "uuuuuuuuuuuuuu"); for (Map.Entry<OperateTypeEnum, String> entry : enumMap.entrySet()) { System.out.println(entry.getValue() + entry.getKey().getEnumDesc()); } // EnumSet<OperateTypeEnum> enumSets = EnumSet.of(OperateTypeEnum.DELETE); // EnumSet<OperateTypeEnum> enumSets = EnumSet.allOf(OperateTypeEnum.class); // EnumSet<OperateTypeEnum> enumSets = EnumSet.range(OperateTypeEnum.DELETE,OperateTypeEnum.UPDATE); EnumSet<OperateTypeEnum> enumSet = EnumSet.noneOf(OperateTypeEnum.class); enumSet.add(OperateTypeEnum.DELETE); enumSet.add(OperateTypeEnum.UPDATE); for (Iterator<OperateTypeEnum> it = enumSet.iterator(); it.hasNext();) { System.out.println(it.next().getEnumDesc()); } for (OperateTypeEnum enumTest : enumSet) { System.out.println(enumTest.getEnumDesc() + " ..... "); } EnumSet<OperateTypeEnum> enumSets = EnumSet.copyOf(enumSet); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws Exception {\n testEnum();\r\n }", "public static void main( String[] args ) {\n\t\tEnumUnderTest[] enumValues = EnumUnderTest.values();\n\t\t// this converts a string to an enum value\n\t\tEnumUnderTest stringConvertedEnumValue = EnumUnderTest.valueOf( \"ENUMS\" );\n\t\t\n\t\tfor( EnumUnderTest e : enumValues ) {\n\t\t\t// gives the enum name\n\t\t\tSystem.out.println( e.name() );\n\t\t\t// gives the enum name (again)\n\t\t\tSystem.out.println( e.toString() );\n\t\t\t// gives the index of the enum value in the enum\n\t\t\tSystem.out.println( e.ordinal() );\n\t\t\t// returns the difference in the ordinal of the two enum values\n\t\t\tSystem.out.println( e.compareTo( stringConvertedEnumValue ) );\n\t\t\t\n\t\t\t// calling a user defined enum method\n\t\t\tSystem.out.println( \"Languages: \" );\n\t\t\te.printLanguages();\n\t\t}\n\t\t\n\t\tSystem.out.println( \"Seasonal fruits: \" );\n\t\t// testing the abstract enum\n\t\tfor( AbstractMethodEnum e : AbstractMethodEnum.values() ) {\n\t\t\te.printSeasonalFruit();\n\t\t}\n\t}", "@Test\n public void testEnumFunctions() {\n assertEquals(3, Ack.values().length);\n assertEquals(Ack.OK, Ack.valueOf(\"OK\"));\n assertEquals(Ack.WARN, Ack.valueOf(\"WARN\"));\n assertEquals(Ack.ERROR, Ack.valueOf(\"ERROR\"));\n }", "public void testValidEnums () {\t\n\t\tString example = \"USER_EXIT\";\n\t\tAppInterfaceUnregisteredReason enumUserExit = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"IGNITION_OFF\";\n\t\tAppInterfaceUnregisteredReason enumIgnitionOff = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"BLUETOOTH_OFF\";\n\t\tAppInterfaceUnregisteredReason enumBluetoothOff = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"USB_DISCONNECTED\";\n\t\tAppInterfaceUnregisteredReason enumUsbDisconnected = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"REQUEST_WHILE_IN_NONE_HMI_LEVEL\";\n\t\tAppInterfaceUnregisteredReason enumRequestWhileInNoneHmiLevel = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"TOO_MANY_REQUESTS\";\n\t\tAppInterfaceUnregisteredReason enumTooManyRequests = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"DRIVER_DISTRACTION_VIOLATION\";\n\t\tAppInterfaceUnregisteredReason enumDriverDistractionViolation = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"LANGUAGE_CHANGE\";\n\t\tAppInterfaceUnregisteredReason enumLanguageChange = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"MASTER_RESET\";\n\t\tAppInterfaceUnregisteredReason enumMasterReset = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"FACTORY_DEFAULTS\";\n\t\tAppInterfaceUnregisteredReason enumFactoryDefaults = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"APP_UNAUTHORIZED\";\n\t\tAppInterfaceUnregisteredReason enumAppAuthorized = AppInterfaceUnregisteredReason.valueForString(example);\n\t\texample = \"PROTOCOL_VIOLATION\";\n\t\tAppInterfaceUnregisteredReason enumProtocolViolation = AppInterfaceUnregisteredReason.valueForString(example);\n\t\t\t\t\n\t\tassertNotNull(\"USER_EXIT returned null\", enumUserExit);\n\t\tassertNotNull(\"IGNITION_OFF returned null\", enumIgnitionOff);\n\t\tassertNotNull(\"BLUETOOTH_OFF returned null\", enumBluetoothOff);\n\t\tassertNotNull(\"USB_DISCONNECTED returned null\", enumUsbDisconnected);\n\t\tassertNotNull(\"REQUEST_WHILE_IN_NONE_HMI_LEVEL returned null\", enumRequestWhileInNoneHmiLevel);\n\t\tassertNotNull(\"TOO_MANY_REQUESTS returned null\", enumTooManyRequests);\n\t\tassertNotNull(\"DRIVER_DISTRACTION_VIOLATION returned null\", enumDriverDistractionViolation);\n\t\tassertNotNull(\"LANGUAGE_CHANGE returned null\", enumLanguageChange);\n\t\tassertNotNull(\"MASTER_RESET returned null\", enumMasterReset);\n\t\tassertNotNull(\"FACTORY_DEFAULTS returned null\", enumFactoryDefaults);\n\t\tassertNotNull(\"APP_UNAUTHORIZED returned null\", enumAppAuthorized);\n\t\tassertNotNull(\"PROTOCOL_VIOLATION returned null\", enumProtocolViolation);\n\t}", "List<TestEnum> selectByExample(TestEnumExample example);", "@Test\n public void operator_enum() {\n OutputNode output = new OutputNode(\"testing\", typeOf(Result.class), typeOf(String.class));\n OperatorNode operator = new OperatorNode(\n classOf(SimpleOp.class), typeOf(Result.class), typeOf(String.class),\n output, new ValueElement(valueOf(BasicTypeKind.VOID), typeOf(Enum.class)));\n InputNode root = new InputNode(operator);\n MockContext context = new MockContext();\n testing(root, context, op -> {\n op.process(\"Hello, world!\");\n });\n assertThat(context.get(\"testing\"), contains(\"Hello, world!VOID\"));\n }", "public void testValidEnums () {\t\n\t\tString example = \"NORMAL\";\n\t\tECallConfirmationStatus enumNormal = ECallConfirmationStatus.valueForString(example);\n\t\texample = \"CALL_IN_PROGRESS\";\n\t\tECallConfirmationStatus enumCallInProgress = ECallConfirmationStatus.valueForString(example);\n\t\texample = \"CALL_CANCELLED\";\n\t\tECallConfirmationStatus enumCancelled = ECallConfirmationStatus.valueForString(example);\n\t\texample = \"CALL_COMPLETED\";\n\t\tECallConfirmationStatus enumCompleted = ECallConfirmationStatus.valueForString(example);\n\t\texample = \"CALL_UNSUCCESSFUL\";\n\t\tECallConfirmationStatus enumUnsuccessful = ECallConfirmationStatus.valueForString(example);\n\t\texample = \"ECALL_CONFIGURED_OFF\";\n\t\tECallConfirmationStatus enumConfiguredOff = ECallConfirmationStatus.valueForString(example);\n\t\texample = \"CALL_COMPLETE_DTMF_TIMEOUT\";\n\t\tECallConfirmationStatus enumCompleteDtmfTimeout = ECallConfirmationStatus.valueForString(example);\n\t\t\n\t\tassertNotNull(\"NORMAL returned null\", enumNormal);\n\t\tassertNotNull(\"CALL_IN_PROGRESS returned null\", enumCallInProgress);\n\t\tassertNotNull(\"CALL_CANCELLED returned null\", enumCancelled);\n\t\tassertNotNull(\"CALL_COMPLETED returned null\", enumCompleted);\n\t\tassertNotNull(\"CALL_UNSUCCESSFUL returned null\", enumUnsuccessful);\n\t\tassertNotNull(\"ECALL_CONFIGURED_OFF returned null\", enumConfiguredOff);\n\t\tassertNotNull(\"CALL_COMPLETE_DTMF_TIMEOUT returned null\", enumCompleteDtmfTimeout);\n\t}", "public void testGetEnumValue_differentCase() {\r\n\r\n TestEnum result = ReflectionUtils.getEnumValue(TestEnum.class, \"Value1\");\r\n assertSame(TestEnum.VALUE1, result);\r\n }", "@org.junit.jupiter.api.Test\n public void testEnums() {\n assertEquals(GameOptions.ControlType.MIXED, Enums.getIfPresent(GameOptions.ControlType.class, iniReader.getString(\"enumDefault\", \"MIXED\")).or(GameOptions.ControlType.KEYBOARD));\n assertEquals(GameOptions.ControlType.MIXED, Enums.getIfPresent(GameOptions.ControlType.class, iniReader.getString(\"enumDefault\", \"MIXED\")).or(GameOptions.ControlType.MIXED));\n assertEquals(GameOptions.ControlType.KEYBOARD, Enums.getIfPresent(GameOptions.ControlType.class, iniReader.getString(\"enumEmpty\", \"KEYBOARD\")).or(GameOptions.ControlType.MIXED));\n\n // When the value in the file isn't a valid enum, use the default value in getIfPresent\n assertEquals(GameOptions.ControlType.MIXED, Enums.getIfPresent(GameOptions.ControlType.class, iniReader.getString(\"enumInvalid\", \"KEYBOARD\")).or(GameOptions.ControlType.MIXED));\n assertEquals(GameOptions.ControlType.MIXED, Enums.getIfPresent(GameOptions.ControlType.class, iniReader.getString(\"enumInvalid\", \"MIXED\")).or(GameOptions.ControlType.MIXED));\n\n // When the value is in the file, use that value regardless of the default values.\n assertEquals(GameOptions.ControlType.KEYBOARD, Enums.getIfPresent(GameOptions.ControlType.class, iniReader.getString(\"enumValid\", \"MIXED\")).or(GameOptions.ControlType.MIXED));\n }", "int countByExample(TestEnumExample example);", "private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }", "public void testGetEnumValue() {\r\n\r\n TestEnum result = ReflectionUtils.getEnumValue(TestEnum.class, \"VALUE1\");\r\n assertSame(TestEnum.VALUE1, result);\r\n }", "public interface ModeTest {\n\n public void traditionalTest();\n\n public void modeTest();\n\n}", "@Override\r\n\tpublic void visit(EnumDefinition enumDefinition) {\n\r\n\t}", "public void testValidEnums () {\t\n\t\tString example = \"AM\";\n\t\tRadioBand enumAm = RadioBand.valueForString(example);\n\t\texample = \"FM\";\n\t\tRadioBand enumFm = RadioBand.valueForString(example);\n\t\texample = \"XM\";\n\t\tRadioBand enumXm = RadioBand.valueForString(example);\n\n\t\tassertNotNull(\"AM returned null\", enumAm);\n\t\tassertNotNull(\"FM returned null\", enumFm);\n\t\tassertNotNull(\"XM returned null\", enumXm);\n\t}", "public void testListEnum() {\n \t\tList<ECallConfirmationStatus> enumValueList = Arrays.asList(ECallConfirmationStatus.values());\n\n\t\tList<ECallConfirmationStatus> enumTestList = new ArrayList<ECallConfirmationStatus>();\n\t\tenumTestList.add(ECallConfirmationStatus.NORMAL);\n\t\tenumTestList.add(ECallConfirmationStatus.CALL_IN_PROGRESS);\n\t\tenumTestList.add(ECallConfirmationStatus.CALL_CANCELLED);\n\t\tenumTestList.add(ECallConfirmationStatus.CALL_COMPLETED);\n\t\tenumTestList.add(ECallConfirmationStatus.CALL_UNSUCCESSFUL);\n\t\tenumTestList.add(ECallConfirmationStatus.ECALL_CONFIGURED_OFF);\t\t\n\t\tenumTestList.add(ECallConfirmationStatus.CALL_COMPLETE_DTMF_TIMEOUT);\n\n\t\tassertTrue(\"Enum value list does not match enum class list\", \n\t\t\t\tenumValueList.containsAll(enumTestList) && enumTestList.containsAll(enumValueList));\n\t}", "@Test\n public void testCreationOfAccountWithEnum() {\n\n AccountWithEnum accountWithEnum = new AccountWithEnum();\n Assert.assertEquals(accountWithEnum.getAccountType(), AccountType.CHECKING);\n }", "public void testEnum() {\n assertNotNull(MazeCell.valueOf(MazeCell.UNEXPLORED.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.INVALID_CELL.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.CURRENT_PATH.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.FAILED_PATH.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.WALL.toString()));\n }", "public void testListEnum() {\n \t\tList<RadioBand> enumValueList = Arrays.asList(RadioBand.values());\n\n\t\tList<RadioBand> enumTestList = new ArrayList<RadioBand>();\n\t\tenumTestList.add(RadioBand.AM);\n\t\tenumTestList.add(RadioBand.FM);\n\t\tenumTestList.add(RadioBand.XM);\n\n\t\tassertTrue(\"Enum value list does not match enum class list\", \n\t\t\t\tenumValueList.containsAll(enumTestList) && enumTestList.containsAll(enumValueList));\n\t}", "@Test\n\tpublic void testEditExistingEnum2() throws Exception {\n\n\t\tEnum enummDt = createRedGreenBlueEnum();\n\t\tedit(enummDt);\n\n\t\tEnumEditorPanel panel = findEditorPanel(tool.getToolFrame());\n\t\tfinal JTable table = panel.getTable();\n\t\tfinal EnumTableModel model = (EnumTableModel) table.getModel();\n\t\taddEntry(table, model, \"Purple\", 7);\n\n\t\tapply();\n\n\t\tCategory cat =\n\t\t\tprogram.getListing().getDataTypeManager().getCategory(enummDt.getCategoryPath());\n\t\tEnum en = (Enum) cat.getDataType(\"Colors\");\n\t\tString[] names = en.getNames();\n\t\tassertEquals(4, names.length);\n\t\tassertEquals(7, en.getValue(\"Purple\"));\n\t}", "@Test\n void no_fall_through() {\n System.out.println(\"Result = \" + no_fall_through(\"TEST_1\"));\n System.out.println(\"Result = \" + no_fall_through(\"TEST_2\"));\n System.out.println(\"Result = \" + no_fall_through(\"TEST\"));\n }", "void test02(){\n\t}", "public void testListEnum() {\n \t\tList<AppInterfaceUnregisteredReason> enumValueList = Arrays.asList(AppInterfaceUnregisteredReason.values());\n\n\t\tList<AppInterfaceUnregisteredReason> enumTestList = new ArrayList<AppInterfaceUnregisteredReason>();\n\t\tenumTestList.add(AppInterfaceUnregisteredReason.USER_EXIT);\n\t\tenumTestList.add(AppInterfaceUnregisteredReason.IGNITION_OFF);\n\t\tenumTestList.add(AppInterfaceUnregisteredReason.BLUETOOTH_OFF);\n\t\tenumTestList.add(AppInterfaceUnregisteredReason.USB_DISCONNECTED);\n\t\tenumTestList.add(AppInterfaceUnregisteredReason.REQUEST_WHILE_IN_NONE_HMI_LEVEL);\n\t\tenumTestList.add(AppInterfaceUnregisteredReason.TOO_MANY_REQUESTS);\t\t\n\t\tenumTestList.add(AppInterfaceUnregisteredReason.DRIVER_DISTRACTION_VIOLATION);\n\t\tenumTestList.add(AppInterfaceUnregisteredReason.LANGUAGE_CHANGE);\t\n\t\tenumTestList.add(AppInterfaceUnregisteredReason.MASTER_RESET);\n\t\tenumTestList.add(AppInterfaceUnregisteredReason.FACTORY_DEFAULTS);\t\n\t\tenumTestList.add(AppInterfaceUnregisteredReason.APP_UNAUTHORIZED);\n\t\tenumTestList.add(AppInterfaceUnregisteredReason.PROTOCOL_VIOLATION);\n\n\t\tassertTrue(\"Enum value list does not match enum class list\", \n\t\t\t\tenumValueList.containsAll(enumTestList) && enumTestList.containsAll(enumValueList));\n\t}", "public void testListEnum() {\n \t\tList<SamplingRate> enumValueList = Arrays.asList(SamplingRate.values());\n\n\t\tList<SamplingRate> enumTestList = new ArrayList<SamplingRate>();\n\t\tenumTestList.add(SamplingRate._8KHZ);\n\t\tenumTestList.add(SamplingRate._16KHZ);\n\t\tenumTestList.add(SamplingRate._22KHZ);\n\t\tenumTestList.add(SamplingRate._44KHZ);\n\t\t\n\t\tassertTrue(\"Enum value list does not match enum class list\", \n\t\t\t\tenumValueList.containsAll(enumTestList) && enumTestList.containsAll(enumValueList));\n\t}", "@Test\n //checks for state switching (on/off)\n void SwitchStates() {\n Assertions.assertFalse(machine.isTurnedOn());\n\n //then, switch on and check if on\n machine.setTurnedOn(true);\n Assertions.assertTrue(machine.isTurnedOn());\n\n //switch off to see if turned off correctly\n machine.setTurnedOn(false);\n Assertions.assertFalse(machine.isTurnedOn());\n\n //and now check the inversion\n machine.flipSwitch();\n\n Assertions.assertTrue(machine.isTurnedOn());\n }", "@Test\n public void testAttack() {\n enemy.attack(1, enemy);\n assertEquals(enemy.getHealth(), 90);\n \n hero.attack(2, hero);\n assertEquals(hero.getHealth(), 85);\n \n \n System.out.println(testName.getMethodName() + \" PASSED.\");\n }", "@Test\n public void testGetActions() {\n }", "private EnumUnderTest( String... strings ) {\n\t\tlanguages = Arrays.asList( strings );\n\t}", "@Test\n\tpublic void testNewEnumFromAction() throws Exception {\n\t\t// This test works differently that the others in that it uses the same path as the\n\t\t// GUI action to start the editing process.\n\t\t//\n\t\tDataTypeManager dtm = program.getListing().getDataTypeManager();\n\t\tfinal Category c = dtm.getCategory(new CategoryPath(CategoryPath.ROOT, \"Category1\"));\n\t\tfinal DataTypeEditorManager editorManager = plugin.getEditorManager();\n\n\t\trunSwing(() -> editorManager.createNewEnum(c));\n\t\twaitForSwing();\n\n\t\tfinal EnumEditorPanel panel = findEditorPanel(tool.getToolFrame());\n\t\tJTable table = panel.getTable();\n\t\tEnumTableModel model = (EnumTableModel) table.getModel();\n\n\t\taddEntry(table, model, \"Purple\", 7);\n\t\tsetEditorEnumName(panel, \"Test.\" + testName.getMethodName());\n\n\t\tapply();\n\t}", "void visitEnumValue(EnumValue value);", "public static void main(String[] args) throws ClassNotFoundException {\n\t\t\t\tint count = 0;\n\t\t\t\tClass c = Class.forName(\"java.lang.Enum\");\n\t\t\t\tMethod[] m1 = c.getDeclaredMethods();\n\t\t\t\tSystem.out.println(\"Method's name:\");\n\t\t\t\tfor(Method m2:m1){\n\t\t\t\t\tcount++;\n\t\t\t\t\tSystem.out.println(m2.getName()+\"()\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"The number of method: \"+count);\n\t\t\t\t\n\t\t// clone()\n\t\tSystem.out.println(\"Enum can never be cloned...\");\n\t\t\n\t\tEnumDemo0 t = new EnumDemo0(){\n\t\t\t\n\t\t\tprotected final Object clone() throws CloneNotSupportedException{\n\t\t\t\tthrow new CloneNotSupportedException();\n\t\t\t}\n\t\t};\n\t\t\n\t\tSystem.out.println(\"CellPhone List:\");\n\t\tfor(Mobile m : Mobile.values()){\n\t\t\tSystem.out.println(m+\" costs \"+m.showPrice()+\" dollars\");\n\t\t}\n\t}", "@Test\n public void reopenClosedTeamUnavalableOption() {\n\n }", "@Test\n public void testSetHealth() {\n assertEquals(hero.getHealth(), 100);\n System.out.println(testName.getMethodName() + \" PASSED.\");\n\n }", "@Test\n public void test() {\n\n testBookExample();\n // testK5();\n // testK3_3();\n }", "public void testingSwitchWithStringStatemant() {\r\n\t\tSystem.err\r\n\t\t\t\t.println(\"Class NewFeatures, method testingSwitchWithStringStatement called!\");\r\n\t\tArrayList<String> randomStrings = new ArrayList<>();\r\n\t\trandomStrings.add(\"hey\");\r\n\t\trandomStrings.add(\"hello\");\r\n\t\trandomStrings.add(\"labas\");\r\n\t\t// generating random number and using Random class\r\n\t\tRandom generator = new Random();\r\n\t\tswitch (randomStrings.get(generator.nextInt(3))) {\r\n\t\tcase \"hey\":\r\n\t\t\tSystem.out.println(\"String \"\r\n\t\t\t\t\t+ randomStrings.get(generator.nextInt(3)) + \" called!\");\r\n\t\t\tbreak;\r\n\t\tcase \"hello\":\r\n\t\t\tSystem.out.println(\"String \"\r\n\t\t\t\t\t+ randomStrings.get(generator.nextInt(3)) + \" called!\");\r\n\t\t\tbreak;\r\n\t\tcase \"labas\":\r\n\t\t\tSystem.out.println(\"String \"\r\n\t\t\t\t\t+ randomStrings.get(generator.nextInt(3)) + \" called!\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Nothing has been called!\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"Class NewFeatures, method testingSwitchWithStringStatement done!\");\r\n\t}", "@Test\n public void getAction() {\n Card dealerCard = new CardClassAdapter(RankEnum.NINE, SuitEnum.DIAMONDS);\n\n PlayerActionEnum actionEnum1 = PlayerActionEnum.STAND;\n State55 instance = State55.getInstance();\n assertEquals(\"STAND\", actionEnum1, instance.getAction(dealerCard));\n\n }", "@Test\n\tpublic static void runAllTheTests() {\n\t\ttestGetters();\n\t}", "public void testValidEnums () {\t\n\t\tString example = \"8KHZ\";\n\t\tSamplingRate enum8Khz = SamplingRate.valueForString(example);\n\t\texample = \"16KHZ\";\n\t\tSamplingRate enum16Khz = SamplingRate.valueForString(example);\n\t\texample = \"22KHZ\";\n\t\tSamplingRate enum22Khz = SamplingRate.valueForString(example);\n\t\texample = \"44KHZ\";\n\t\tSamplingRate enum44Khz = SamplingRate.valueForString(example);\n\t\t\n\t\tassertNotNull(\"8KHZ returned null\", enum8Khz);\n\t\tassertNotNull(\"16KHZ returned null\", enum16Khz);\n\t\tassertNotNull(\"22KHZ returned null\", enum22Khz);\n\t\tassertNotNull(\"44KHZ returned null\", enum44Khz);\n\t}", "@Test\r\n\tpublic void testGetState() {\r\n\t}", "@Test\n\tpublic void testEnumSize1BadInput() throws Exception {\n\t\tCategory category = program.getListing()\n\t\t\t\t.getDataTypeManager()\n\t\t\t\t.getCategory(new CategoryPath(CategoryPath.ROOT, \"Category1\"));\n\t\tEnum enumm = createEnum(category, \"TestEnum\", 1);\n\t\tedit(enumm);\n\n\t\tEnumEditorPanel panel = findEditorPanel(tool.getToolFrame());\n\t\tassertNotNull(panel);\n\n\t\taddEnumValue();\n\n\t\twaitForSwing();\n\t\tDockingActionIf applyAction = getApplyAction();\n\t\tassertTrue(applyAction.isEnabled());\n\t\tassertTrue(panel.needsSave());\n\n\t\tJTable table = panel.getTable();\n\t\tEnumTableModel model = (EnumTableModel) table.getModel();\n\n\t\tassertEquals(\"New_Name\", model.getValueAt(0, NAME_COL));\n\t\tassertEquals(0L, model.getValueAt(0, VALUE_COL));\n\n\t\taddEnumValue();\n\n\t\tString editName = \"New_Name_(1)\";\n\t\tassertEquals(editName, model.getValueAt(1, NAME_COL));\n\t\tassertEquals(1L, model.getValueAt(1, VALUE_COL));\n\n\t\taddEnumValue();\n\n\t\tassertEquals(\"New_Name_(2)\", model.getValueAt(2, NAME_COL));\n\t\tassertEquals(2L, model.getValueAt(2, VALUE_COL));\n\n\t\tint row = getRowFor(editName);\n\n\t\teditValueInTable(row, \"0x777\");\n\n\t\trow = getRowFor(editName); // the row may have changed if we are sorted on the values col\n\t\tassertEquals(0x77L, model.getValueAt(row, VALUE_COL));\n\t}", "@Test\n public void overdraw_forCheckingAccount_shouldSucceed() {\n\n AccountWithEnum accountWithEnum = new AccountWithEnum(100, 12345, AccountType.CHECKING);\n\n accountWithEnum.withdraw(150);\n\n Assert.assertEquals(-50, accountWithEnum.getBalance());\n }", "@Override\n\tpublic void test() {\n\t\t\n\t}", "@Test(timeout = 10000)\n public void genericType_sd810_failAssert1() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method recursiveEnum = getClass().getDeclaredMethod(\"generic\", Enum[].class);\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_4 = TypeName.get(recursiveEnum.getReturnType());\n TypeName.get(recursiveEnum.getGenericReturnType());\n TypeName genericTypeName = TypeName.get(recursiveEnum.getParameterTypes()[0]);\n TypeName.get(recursiveEnum.getGenericParameterTypes()[0]);\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_4.unbox();\n org.junit.Assert.fail(\"genericType_sd810 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "@Test\n\tpublic void testAll() {\n\n\t\tassertEquals(\"Not specified\", getAtonType(0));\n\t\tassertEquals(\"unknown code 100\", getAtonType(100));\n\t\tassertEquals(\"Fixed - Light, without sectors\", getAtonType(5));\n\t\tassertEquals(\"Fixed - Beacon, Cardinal E\", getAtonType(10));\n\t\tassertEquals(\"Floating - Light Vessel, LANBY, Rigs\", getAtonType(31));\n\t\tassertEquals(\"Fixed - Beacon, Isolated danger\", getAtonType(17));\n\t\tassertEquals(\"Fixed - Beacon, Special mark\", getAtonType(19));\n\t\tassertEquals(\"Floating - Cardinal Mark N\", getAtonType(20));\n\t\tassertEquals(\"Floating - Cardinal Mark E\", getAtonType(21));\n\n\t}", "public interface BaseEnum {\n\n int getStatus();\n\n String getDesc();\n}", "public void test(int testcase) {\n\t\tswitch (testcase) {\n\t\tcase 1: insertCase(); break;\n\t\tcase 2: selectCase(); break;\n\t\tcase 3: resetDB(); break;\n\t\tcase 4: externalTestcase(); break;\n\t\tcase 6: bulkLoad(); break;\n\t\tcase 7: addIndex(); break;\n\t\t}\n\t}", "int updateByExampleSelective(@Param(\"record\") TestEnum record, @Param(\"example\") TestEnumExample example);", "@Test\r\n public void test2(){\n colorEnum = Color.GREEN;\r\n System.out.println(colorEnum);\r\n System.out.println(colorEnum.name());\r\n System.out.println(colorEnum.ordinal());\r\n System.out.println(colorEnum.toString());\r\n Color[] values = Color.values();\r\n System.out.println(Arrays.toString(values));\r\n }", "public void test5() {\n\t\t\n\t}", "@Test\n public void testGetNext() throws Exception {\n//TODO: Test goes here... \n }", "private void test() {\n\n\t}", "@Test\n public void testAll() throws ParseException {\n testCreate();\n testExists(true);\n testGetInfo(false);\n testUpdate();\n testGetInfo(true);\n testDelete();\n testExists(false);\n }", "public void testGetEnumValue_unexisting() {\r\n\r\n try {\r\n ReflectionUtils.getEnumValue(TestEnum.class, \"xxxxxxxxx\");\r\n fail(\"Expected UnitilsException\");\r\n\r\n } catch (UnitilsException e) {\r\n //expected\r\n }\r\n }", "@Test\n public void testGetPower() {\n assertEquals(hero.getPower(), 100);\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n }", "public interface ITestStatus {\n int PASSED=1;\n int FAILED=2;\n int SKIPPED=3;\n}", "@Test\n public void temporaryTeamClosingUnavalableOption() {\n\n }", "public void testGetAbbr() {\r\n assertEquals(test1.getStateAbbr(), \"VM\");\r\n }", "public void testAddEmptyEnumsToModel() {\r\n\r\n String source = \"\"\r\n + \"public enum Enum1 {}\\n\"\r\n + \"enum Enum2 {;}\\n\";\r\n\r\n JavaProjectBuilder javaDocBuilder = new JavaProjectBuilder();\r\n javaDocBuilder.addSource(new StringReader(source));\r\n\r\n JavaClass enum1 = javaDocBuilder.getClassByName(\"Enum1\");\r\n assertTrue(enum1.isEnum());\r\n JavaClass enum2 = javaDocBuilder.getClassByName(\"Enum2\");\r\n assertTrue(enum2.isEnum());\r\n }", "@Test\n public void test_constructor_0(){\n\tSystem.out.println(\"Testing TracerIsotopes's enumerations and getters.\");\n //Tests if values are correct for all enumerations, and tests the getters as well. You cannot instantiate new inumerations.\n \n TracerIsotopes ave=TracerIsotopes.concPb205t;\n assertEquals(\"concPb205t\",ave.getName());\n\n ave=TracerIsotopes.concU235t;\n assertEquals(\"concU235t\",ave.getName());\n \n ave=TracerIsotopes.concU236t;\n assertEquals(\"concU236t\",ave.getName()); \n \n String[] list=TracerIsotopes.getNames();\n assertEquals(\"concPb205t\",list[0]);\n assertEquals(\"concU235t\",list[1]);\n assertEquals(\"concU236t\",list[2]);\n \n \n \n }", "public interface CodeEnum {\n int getCode();\n}", "@Test\n public void testBeneZPayerInsuredSex() {\n new BeneZPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissBeneZPayer.Builder::setInsuredSexEnum,\n RdaFissPayer::getInsuredSex,\n FissBeneficiarySex.BENEFICIARY_SEX_FEMALE,\n \"F\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissBeneZPayer.Builder::setInsuredSexUnrecognized,\n RdaFissPayer::getInsuredSex,\n RdaFissPayer.Fields.insuredSex,\n 1);\n }", "int updateByExample(@Param(\"record\") TestEnum record, @Param(\"example\") TestEnumExample example);", "@Test\n @TestForIssue(jiraKey = \"HHH-10402\")\n public void testEnumeratedTypeResolutions() {\n final MetadataImplementor mappings = ((MetadataImplementor) (addAnnotatedClass(EnumeratedSmokeTest.EntityWithEnumeratedAttributes.class).buildMetadata()));\n mappings.validate();\n final PersistentClass entityBinding = mappings.getEntityBinding(EnumeratedSmokeTest.EntityWithEnumeratedAttributes.class.getName());\n validateEnumMapping(entityBinding.getProperty(\"notAnnotated\"), ORDINAL);\n validateEnumMapping(entityBinding.getProperty(\"noEnumType\"), ORDINAL);\n validateEnumMapping(entityBinding.getProperty(\"ordinalEnumType\"), ORDINAL);\n validateEnumMapping(entityBinding.getProperty(\"stringEnumType\"), STRING);\n }", "public void test() {\n\t}", "public void testCompletionOnEEnums() throws BadLocationException {\n \t\tsetUpIntentProject(\"completionTest\", INTENT_DOC_WITH_ENUMS_PATH);\n \t\teditor = openIntentEditor();\n \t\tdocument = editor.getDocumentProvider().getDocument(editor.getEditorInput());\n \t\tcontentAssistant = editor.getViewerConfiguration().getContentAssistant(editor.getProjectionViewer());\n \n \t\tICompletionProposal[] proposals = getCompletionProposals(112);\n \t\tassertEquals(4, proposals.length);\n \t\tString enumSuffix = \" value (of type CompilationStatusSeverity) - Default: WARNING - Set a simple value of type CompilationStatusSeverity\";\n \t\tassertEquals(\"'WARNING'\" + enumSuffix, proposals[0].getDisplayString());\n \t\tassertEquals(\"'ERROR'\" + enumSuffix, proposals[1].getDisplayString());\n \t\tassertEquals(\"'INFO'\" + enumSuffix, proposals[2].getDisplayString());\n \t\tassertEquals(\"'OK'\" + enumSuffix, proposals[3].getDisplayString());\n \t}", "@Test(timeout = 10000)\n public void genericType_sd834_failAssert3() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method recursiveEnum = getClass().getDeclaredMethod(\"generic\", Enum[].class);\n TypeName.get(recursiveEnum.getReturnType());\n TypeName.get(recursiveEnum.getGenericReturnType());\n TypeName genericTypeName = TypeName.get(recursiveEnum.getParameterTypes()[0]);\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_11 = TypeName.get(recursiveEnum.getGenericParameterTypes()[0]);\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_11.unbox();\n org.junit.Assert.fail(\"genericType_sd834 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "public static void switchTest(Enum obj) {\n String className = obj.getClass().getSimpleName();\n //int key = obj.ordinal();\n String res=\"undefined\";\n switch (className) {\n case \"E1\":\n try {\n res=\"it's \"+className+\".\"+((E1)obj).name();\n } catch (Exception e) {\n }\n break;\n case \"E2\":\n try {\n res=\"it's \"+className+\".\"+((E2)obj).name();\n } catch (Exception e) {\n\n }\n break;\n default:\n// try {\n// res=\"It's \"+className+\".\"+((E3)obj).name();\n// } catch (Exception e) {\n//\n// }\n res=\"undefined\";\n } // sw\n System.out.println(res);\n }", "public static void main (String args[]) {\n\t\tteste01();\n\t\tteste02();\n\t\tteste03();\n\t\t//teste04();\n\t}", "@Test\n public void enumClassesShouldBecomeNonFinal() throws Exception {\n MockClassLoader mockClassLoader = new MockClassLoader(new String[] { MockClassLoader.MODIFY_ALL_CLASSES });\n mockClassLoader.setMockTransformerChain(Collections.<MockTransformer> singletonList(new MainMockTransformer()));\n Class<?> clazz = Class.forName(SupportClasses.EnumClass.class.getName(), true, mockClassLoader);\n assertFalse(Modifier.isFinal(clazz.getModifiers()));\n }", "@Test(timeout = 10000)\n public void genericType_sd798_failAssert0() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method recursiveEnum = getClass().getDeclaredMethod(\"generic\", Enum[].class);\n TypeName.get(recursiveEnum.getReturnType());\n TypeName.get(recursiveEnum.getGenericReturnType());\n TypeName genericTypeName = TypeName.get(recursiveEnum.getParameterTypes()[0]);\n TypeName.get(recursiveEnum.getGenericParameterTypes()[0]);\n // StatementAdd: add invocation of a method\n genericTypeName.unbox();\n org.junit.Assert.fail(\"genericType_sd798 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "@Test\n public void testGetHealth() {\n \n assertEquals(hero.getHealth(), 100);\n System.out.println(testName.getMethodName() + \" PASSED.\");\n }", "int deleteByExample(TestEnumExample example);", "@Test(timeout = 10000)\n public void genericType_sd822_failAssert2() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method recursiveEnum = getClass().getDeclaredMethod(\"generic\", Enum[].class);\n TypeName.get(recursiveEnum.getReturnType());\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_6 = TypeName.get(recursiveEnum.getGenericReturnType());\n TypeName genericTypeName = TypeName.get(recursiveEnum.getParameterTypes()[0]);\n TypeName.get(recursiveEnum.getGenericParameterTypes()[0]);\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_6.unbox();\n org.junit.Assert.fail(\"genericType_sd822 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "static void test1(){\n\t\n\t}", "public interface CrudTest {\n\n void test1Create();\n void test2Update();\n void test7List();\n void test4Read();\n\n void test8Delete();\n\n}", "public interface TestCategories {\n\n public static interface PositiveTests {}\n public static interface NegativeTests {}\n\n public static interface BrokenTests {}\n}", "public void test01() {\n\t\tSystem.out.println(\"I am in test01() method\");\n\t}", "@Test\n public void testInsuredPayerInsuredSex() {\n new InsuredPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissInsuredPayer.Builder::setInsuredSexEnum,\n RdaFissPayer::getInsuredSex,\n FissBeneficiarySex.BENEFICIARY_SEX_UNKNOWN,\n \"U\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissInsuredPayer.Builder::setInsuredSexUnrecognized,\n RdaFissPayer::getInsuredSex,\n RdaFissPayer.Fields.insuredSex,\n 1);\n }", "@Test\n public void test4() {\n class mini_tests {\n public void test4_1() {\n try {\n tester.testOnInheritanceTree(null, testClass);\n Assert.fail();\n }\n catch (IllegalArgumentException e) {\n Assert.assertTrue(true);\n }\n catch (Throwable e) {\n Assert.fail();\n }\n }\n public void test4_2() {\n try {\n tester.testOnInheritanceTree(Story3, null);\n Assert.fail();\n }\n catch (IllegalArgumentException e) {\n Assert.assertTrue(true);\n }\n catch (Throwable e) {\n Assert.fail();\n }\n }\n public void test4_3() {\n try {\n tester.testOnInheritanceTree(null, null);\n Assert.fail();\n } catch (IllegalArgumentException e) {\n Assert.assertTrue(true);\n } catch (Throwable e) {\n Assert.fail();\n }\n }\n }\n mini_tests t = new mini_tests();\n t.test4_1();\n t.test4_2();\n t.test4_3();\n }", "void testMethod() {\n f();\n }", "@Test\n void equipWeaponTest() {\n\n assertNull(characterEquipWeaponTest.getEquippedWeapon());\n\n characterEquipWeaponTest.equipWeapon(axeTest);\n assertNull(characterEquipWeaponTest.getEquippedWeapon());\n\n characterEquipWeaponTest.equipWeapon(swordTest);\n assertNull(characterEquipWeaponTest.getEquippedWeapon());\n\n characterEquipWeaponTest.equipWeapon(bowTest);\n assertNull(characterEquipWeaponTest.getEquippedWeapon());\n\n characterEquipWeaponTest.equipWeapon(knifeTest);\n assertNull(characterEquipWeaponTest.getEquippedWeapon());\n\n characterEquipWeaponTest.equipWeapon(staffTest);\n assertEquals(characterEquipWeaponTest.getEquippedWeapon(), staffTest);\n\n characterEquipWeaponTest0.equipWeapon(staffTest);\n assertNull(characterEquipWeaponTest0.getEquippedWeapon());\n\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n HomeEnvironment.DrawingMode.values();\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n HomeEnvironment homeEnvironment1 = homeEnvironment0.clone();\n homeEnvironment0.setAllLevelsVisible(false);\n homeEnvironment1.setAllLevelsVisible(true);\n homeEnvironment1.setObserverCameraElevationAdjusted(false);\n homeEnvironment1.setObserverCameraElevationAdjusted(true);\n homeEnvironment1.setObserverCameraElevationAdjusted(false);\n HomeEnvironment.DrawingMode.values();\n // Undeclared exception!\n try { \n HomeEnvironment.DrawingMode.valueOf(\"hkT\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant com.eteks.sweethome3d.model.HomeEnvironment.DrawingMode.hkT\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "public void test() {\n }", "public void test() {\n }", "@Test\n public void testBeneZPayerBeneSex() {\n new BeneZPayerFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissBeneZPayer.Builder::setBeneSexEnum,\n RdaFissPayer::getBeneSex,\n FissBeneficiarySex.BENEFICIARY_SEX_FEMALE,\n \"F\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissBeneZPayer.Builder::setBeneSexUnrecognized,\n RdaFissPayer::getBeneSex,\n RdaFissPayer.Fields.beneSex,\n 1);\n }", "@Test\n public void doTest4() {\n }", "public static void main (String[] args) {\n \n doTest (\"hello\");\n doTest (\"query\");\n doTest (\"Mississippi\");\n doTest (\"elephant\");\n doTest (\"Qatar\");\n System.out.println();\n \n }", "public static void main(String args[]) {\n\t\tSystem.out.println(\"\\r\\ngetGameSituationTest()\");\n\t\tgetGameSituationTest();\n\n\t\tSystem.out.println(\"\\r\\nstateCheckerboardConvertionTest()\");\n\t\tstateCheckerboardConvertionTest();\n\n\t\tSystem.out.println(\"\\r\\ngetValidActionsTest()\");\n\t\tgetValidActionsTest();\n\t}", "public void test(){\n }", "@Test\n public void verifyPathsInSequence() {\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n testGetCompanyHome();\n testGetCabinetFolder();\n testGetCaseFolder();\n testGetDocumentLibraryFolder();\n testEvidenceBankFolder();\n\n }", "@Test\n\tpublic void test4() {\n\t}", "public Result testGetMethodDescriptors() {\n try {\n beanInfo.getPropertyDescriptors();\n MethodDescriptor[] methodDescriptors = beanInfo\n .getMethodDescriptors();\n assertTrue(findMethod(\"getProperty8\", methodDescriptors));\n assertTrue(findMethod(\"setProperty8\", methodDescriptors));\n assertTrue(findMethod(\"removeFredListener\", methodDescriptors));\n assertTrue(findMethod(\"addFredListener\", methodDescriptors));\n assertTrue(findMethod(\"ssetI\", methodDescriptors));\n assertTrue(findMethod(\"ggetI\", methodDescriptors));\n assertTrue(findMethod(\"getClass\", methodDescriptors));\n assertTrue(findMethod(\"equals\", methodDescriptors));\n assertTrue(findMethod(\"hashCode\", methodDescriptors));\n assertTrue(findMethod(\"notify\", methodDescriptors));\n assertTrue(findMethod(\"notifyAll\", methodDescriptors));\n assertTrue(findMethod(\"toString\", methodDescriptors));\n\n // 3 wait methods\n assertTrue(findMethod(\"wait\", methodDescriptors));\n assertEquals(methodDescriptors.length, 15);\n return passed();\n } catch (Exception e) {\n e.printStackTrace();\n return failed(e.getMessage());\n }\n }", "@Test\n\tpublic void testExternalValueAndNameUpdate() throws Exception {\n\t\tEnum enummDt = createRedGreenBlueEnum();\n\t\tedit(enummDt);\n\n\t\tEnumEditorPanel panel = findEditorPanel(tool.getToolFrame());\n\t\tJTable table = panel.getTable();\n\t\tEnumTableModel model = (EnumTableModel) table.getModel();\n\n\t\tint transactionID = program.startTransaction(\"Test\");\n\t\tenummDt.add(\"Yellow\", 10);\n\t\tenummDt.add(\"Magenta\", 5);\n\n\t\t// note: this tests triggers a code path for updating the name that relies upon the name\n\t\t// being edited *after* new values are added above.\n\t\tString oldName = enummDt.getName();\n\t\tString newName = oldName + \"_updated\";\n\t\tenummDt.setName(newName);\n\t\tprogram.endTransaction(transactionID, true);\n\t\tprogram.flushEvents();\n\t\twaitForSwing();\n\n\t\tEnum en = getEnum(model);\n\n\t\tassertEquals(10, getValue(en, \"Yellow\"));\n\t\tassertEquals(5, getValue(en, \"Magenta\"));\n\t\tassertEquals(newName, en.getName());\n\t}", "com.yahoo.xpathproto.TransformTestProtos.MessageEnum getEnumValue();", "public static void UnitTests() {\n System.out.println(\"---\");\n\n int input = 0;\n boolean running = true;\n\n while(running) {\n System.out.println(\"1. Test Layer Class\\n2. Test NeuralNetwork Class\\n3. Go Back\\n\");\n input = getInput();\n switch (input) {\n case 1:\n UnitTests.testLayers();\n break;\n case 2:\n UnitTests.testNeuralNetwork();\n break;\n case 3:\n running = false;\n break;\n default:\n System.out.println(\"That's not an option.\");\n }\n }\n\n System.out.println(\"---\\n\");\n }", "@Test\r\n\tpublic void test() {\r\n\t\tDifficulty easy = Difficulty.EASY;\r\n\t\tDifficulty moderate = Difficulty.MODERATE;\r\n\t\tDifficulty challenging = Difficulty.CHALLENGING;\r\n\t\tDifficulty extreme = Difficulty.EXTREME;\r\n\t\tDifficulty difficult = Difficulty.DIFFICULT;\r\n\t\tDifficulty veryDifficult = Difficulty.VERY_DIFFICULT;\r\n\r\n\t\tassertEquals(Difficulty.EASY, easy);\r\n\t\tassertEquals(Difficulty.MODERATE, moderate);\r\n\t\tassertEquals(Difficulty.CHALLENGING, challenging);\r\n\t\tassertEquals(Difficulty.EXTREME, extreme);\r\n\t\tassertEquals(Difficulty.DIFFICULT, difficult);\r\n\t\tassertEquals(Difficulty.VERY_DIFFICULT, veryDifficult);\r\n\t\t\r\n\t\tDifficulty.valueOf(Difficulty.EASY.toString());\r\n\r\n\t}", "public static void main(String[] args)\n\t {\n\t \n\t \n\t\t Enums en = Enums.B; //All enum constants are created while executing this statement. \n\t\t \n\t //While creating each enum constant, corresponding constructor is called\n\t \n\t Enums en2 = Enums.C; //No enum constant is created here.\n\t \n\t Enums en3 = Enums.A; //No enum constant is created here.\n\t \n\t \n}", "private Enums(int i)\n\t {\n\t System.out.println(2);\n\t }", "public void testEnumUsingToString() throws Exception\n {\n assertEquals(\"\\\"c2\\\"\", MAPPER.writeValueAsString(AnnotatedTestEnum.C2));\n }", "@Test\n public void test5() throws Exception {\n class mini_tests {\n public void test5_1() {\n try {\n tester.testOnInheritanceTree(Story5_1, testClass);\n Assert.fail();\n }\n catch (WhenNotFoundException e) {\n Assert.assertTrue(true);\n }\n catch (Throwable e) {\n Assert.fail();\n }\n }\n public void test5_2() {\n try {\n tester.testOnInheritanceTree(Story5_2, testClass);\n Assert.fail();\n }\n catch (GivenNotFoundException e) {\n Assert.assertTrue(true);\n }\n catch (Throwable e) {\n Assert.fail();\n }\n }\n public void test5_3() {\n try {\n tester.testOnInheritanceTree(Story5_3, testClass);\n Assert.fail();\n } catch (ThenNotFoundException e) {\n Assert.assertTrue(true);\n } catch (Throwable e) {\n Assert.fail();\n }\n }\n }\n mini_tests t = new mini_tests();\n t.test5_1();\n t.test5_2();\n t.test5_3();\n }" ]
[ "0.6643009", "0.6627", "0.6589795", "0.61185366", "0.61053467", "0.60977936", "0.5988162", "0.5936658", "0.5909773", "0.58904505", "0.5807953", "0.5712071", "0.5711919", "0.56456804", "0.5613351", "0.55596244", "0.5534644", "0.55179447", "0.54855347", "0.5455321", "0.54273826", "0.5425565", "0.539542", "0.5390429", "0.5380465", "0.53640896", "0.5355348", "0.53544664", "0.5350683", "0.5332717", "0.531928", "0.53131074", "0.5274711", "0.52698296", "0.52500665", "0.524711", "0.5246298", "0.5241719", "0.5201043", "0.51907396", "0.5188246", "0.51759404", "0.5155115", "0.5143313", "0.51386017", "0.5134654", "0.51339406", "0.5124726", "0.5123732", "0.51219755", "0.5121385", "0.51182103", "0.5105289", "0.51049775", "0.5103558", "0.5101444", "0.5071979", "0.5070708", "0.5064585", "0.5063964", "0.50591475", "0.5057036", "0.50534993", "0.50527054", "0.5038419", "0.5035644", "0.5034487", "0.50253236", "0.50224525", "0.5014333", "0.5012313", "0.50022596", "0.49988702", "0.49960142", "0.49848026", "0.4982522", "0.49797842", "0.49782932", "0.49760565", "0.49724454", "0.4961471", "0.49589428", "0.49488437", "0.49488437", "0.49459514", "0.4943673", "0.49393967", "0.49361336", "0.4935689", "0.49287355", "0.49280488", "0.49261764", "0.49251628", "0.4921685", "0.49204752", "0.49180043", "0.49151662", "0.49100086", "0.49058002", "0.49022582" ]
0.5691194
13
Return the diagrams that ought to be opened when first opening the project right after its creation
@objid ("8716539d-59a0-4e88-8366-8d78d836652f") public List<MRef> getDiagramsToOpen() { return this.diagrams; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected Collection<Diagram> getDiagrams() {\n\t\treturn null;\n\t}", "public String getExistingDiagnoses(){\n \treturn existingDiagnoses;\n }", "public List<Concept> getDiagnoses(){\n \treturn diagnoses;\n }", "Diagram getDiagram();", "Diagram getDiagram();", "protected Diagram getDiagramToOpen() {\n\t\t\t\tIGraphicalEditPart grahicalHostEditPart = (IGraphicalEditPart) getHost();\n\t\t\t\tEObject element = grahicalHostEditPart.resolveSemanticElement();\n\t\t\t\tList<Diagram> diagramL = MultiDiagramUtil\n\t\t\t\t\t\t.getDiagramsAssociatedToElement(element);\n\n\t\t\t\tif (diagramL.isEmpty()) {\n\t\t\t\t\treturn null;\n\t\t\t\t} else if (diagramL.size() == 1) {\n\t\t\t\t\treturn diagramL.get(0);\n\t\t\t\t}\n\n\t\t\t\tElementListSelectionDialog dialog = new ElementListSelectionDialog(\n\t\t\t\t\t\tPlatformUI.getWorkbench().getActiveWorkbenchWindow()\n\t\t\t\t\t\t\t\t.getShell(), new GeneralLabelProvider());\n\t\t\t\tdialog.setMessage(\"Select the diagram to be opened\");\n\t\t\t\tdialog.setTitle(\"Diagram selection\");\n\t\t\t\tdialog.setElements(diagramL.toArray());\n\t\t\t\tif (dialog.open() == Dialog.OK) {\n\t\t\t\t\treturn (Diagram) dialog.getFirstResult();\n\t\t\t\t}\n\n\t\t\t\treturn null;\n\t\t\t}", "public void projectOpened() {\n initToolWindow();\n }", "public List<ProjectIdea> showAll(){\n try {\n List<ProjectIdea> result = new ArrayList<ProjectIdea>();\n CloseableIterator<ProjectIdea> itr = super.closeableIterator();\n try {\n while (itr.hasNext()) {\n ProjectIdea tmp = itr.next();\n result.add(tmp);\n }\n } finally {\n itr.close();\n }\n return result;\n }catch (Exception e){\n System.out.println(e.getMessage());\n return null;\n }\n }", "public editDiagnoses() {\r\n }", "@Override\r\n\tpublic void showClassmate() {\n\t\tSystem.out.println(\"你的同学有: \"+classmateRelations);\r\n\t}", "public void softwareResources() {\n\t\tSystem.out.println(\"I am the software implemented through Multiple inheritence in Desktop class\");\r\n\t\t\r\n\t}", "@Override\n public InputStream getPerspectiveIcon() {\n return null;\n }", "PiviDiagram createPiviDiagram();", "public ListIDE() {\n initComponents();\n loadAsset();\n directory = new Directory();\n }", "public void showDraw(){\n\t\tdraw = new Document( drawFilePath);\n\t}", "public static void printOpenWindows() {\n\t\tMsg.debug(AbstractDockingTest.class, \"Open windows: \" + getOpenWindowsAsString());\n\t}", "private static boolean isDiagram(Filesystem element) {\r\n\t\treturn true;\r\n\t}", "protected boolean showOutlineView() {\r\n\t\treturn false;\r\n\t}", "public static Icon getToolWindow() {\n\t\tif (ApplicationInfo.getInstance().getBuild().getBaselineVersion() >= 182) {\n\t\t\treturn IconLoader.getIcon(\"/icons/org/antlr/intellij/plugin/toolWindowAntlr.svg\");\n\t\t}\n\n\t\treturn IconLoader.getIcon(\"/icons/org/antlr/intellij/plugin/antlr.png\");\n\t}", "private void initializeViews() {\n \n \t\tIViewReference[] views = PlatformUI.getWorkbench().getActiveWorkbenchWindow()\n \t\t\t\t.getActivePage().getViewReferences();\n \n\t\tIWorkbenchPart activeView = PlatformUI.getWorkbench().getActiveWorkbenchWindow()\n\t\t\t\t.getActivePage().getActivePart();\n\n \t\ttry {\n \t\t\tfor (IViewReference view : views) {\n\n\t\t\t\tPlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()\n\t\t\t\t\t\t.showView(view.getId());\n\t\t\t}\n\n\t\t\tif (activeView instanceof CaleydoRCPViewPart) {\n\t\t\t\t// Make sure that the active part will remain active\n \t\t\t\tPlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()\n\t\t\t\t\t\t.showView(((CaleydoRCPViewPart) activeView).getSite().getId());\n \t\t\t}\n \t\t}\n \t\tcatch (PartInitException e) {\n \t\t\tthrow new IllegalStateException();\n \t\t}\n \n \t}", "private void findViews() {\r\n\t\t// Buttons first\r\n\t\tcloseBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"closeBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\tshareBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"shareBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\t// Photo Container\r\n\t\tphoto = (ImageView) findViewById( getApplication().getResources().getIdentifier(\"photoView\", \"id\", getApplication().getPackageName()) );\r\n\t\twarning = this.getResources().getIdentifier(\"warning\", \"drawable\", getApplication().getPackageName());\r\n\t\tplace = this.getResources().getIdentifier(\"no_media\", \"drawable\", getApplication().getPackageName());\r\n\t\tmAttacher = new PhotoViewAttacher(photo);\r\n\t\t// Title TextView\r\n\t\t//titleTxt = (TextView) findViewById( getApplication().getResources().getIdentifier(\"titleTxt\", \"id\", getApplication().getPackageName()) );\r\n\t\tprogress = (ProgressBar) findViewById( getApplication().getResources().getIdentifier(\"progressBar\", \"id\", getApplication().getPackageName()));\r\n\t}", "public String[] getDisplayedResources(){\n\t\tString resources =\n\t\t\tHub.localCfg.get(PreferenceConstants.AG_RESOURCESTOSHOW,\n\t\t\t\tStringTool.join(agenda.getResources(), \",\")); //$NON-NLS-1$\n\t\tif (resources == null) {\n\t\t\treturn new String[0];\n\t\t} else {\n\t\t\treturn resources.split(\",\"); //$NON-NLS-1$\n\t\t}\n\t}", "public String getAsciidocDiagramName() {\n\t\treturn asciidocDiagramName;\n\t}", "@Override\n public String getPerspectiveIconPath() {\n return null;\n }", "public String openAssociationSystem() {\n String welcome = \"Welcome to the setup of the soccer association system\";\n return welcome;\n }", "private static boolean isDiagram(AbstractEditor element){\n\t\treturn true;\n\t}", "private void showProposalDevelopment(){\r\n try{\r\n \r\n ProposalBaseWindow propFrame = null;\r\n if ( (propFrame = (ProposalBaseWindow)mdiForm.getFrame(\r\n CoeusGuiConstants.PROPOSAL_BASE_FRAME_TITLE))!= null ) {\r\n if( propFrame.isIcon() ){\r\n propFrame.setIcon(false);\r\n }\r\n propFrame.setSelected(true);\r\n return;\r\n }\r\n propFrame = new ProposalBaseWindow(mdiForm );\r\n propFrame.setVisible( true );\r\n }catch(Exception exception){\r\n CoeusOptionPane.showInfoDialog(exception.getMessage());\r\n }\r\n }", "public static Collection<Demo> getCommonDemos() {\n\t\tList<Demo> demos = Arrays.asList(new SuccessTransactionDemo(), new TimeoutTransactionDemo(), new PrepareFailDemo(),\n\t\t\t\tnew ClientDrivenRollbackDemo(), new TimeoutWithRecoveryDemo());\n\t\tint noDemos = demos.size();\n\t\tSet<Demo> demosUnique = new HashSet<>(demos);\n\t\tif(noDemos != demosUnique.size()) {\n\t\t\tthrow new RuntimeException(\"There is at least one pair of demos which has got the same id. Fix it.\");\n\t\t}\n\t\treturn demosUnique;\n\t}", "public String getDisplayName() {\n return \"Rhapsody Build\";\n }", "String getDesignation();", "public void actionPerformed (AnActionEvent e)\n {\n final Project project = DataKeys.PROJECT.getData (e.getDataContext ());\n UMLDiagramsPanel diagrams = ProjectUtils.get (project, UMLDiagramsPanel.class);\n if (diagrams != null)\n {\n final UMLDiagram umlDiagram = diagrams.getCurrentDiagram ();\n if (umlDiagram != null)\n {\n final SaveDialog saveDialog = new SaveDialog (project, \"Save diagram to file\", \"Choose diagram folder.\",\n \"Select folder for saving diagram file.\", \"UMLDiagramPath\",\n DiagramFileType.DIAGRAM, DiagramFileType.DIAGRAMS,\n DiagramFileType.GIF, DiagramFileType.JPG,\n DiagramFileType.PNG, DiagramFileType.SVG,\n DiagramFileType.GRAPHML);\n saveDialog.show (new Runnable () {\n public void run ()\n {\n String path = saveDialog.getPath ();\n DiagramFileType fileType = (DiagramFileType) saveDialog.getFileType ();\n boolean saveThumbnail = saveDialog.saveThumbnail ();\n int thumbnailHeight = saveDialog.getThumbnailHeight ();\n if (saveDiagram (path, fileType, project, saveThumbnail, thumbnailHeight))\n {\n saveDialog.close ();\n }\n }\n });\n }\n }\n }", "private static void startDiagram(String nameOfDiagram, PrintWriter printFile) {\n\t\tprintFile.print(\"digraph \" + nameOfDiagram + \"{\\nrankdir=BT\\n\");\n\t}", "private void printSketchFolder() {\n File sketchFolder = sketch.getFolder();\n System.out.println(\"++++++++++sketch folder: [\" + sketchFolder.getAbsolutePath() + \"]\");\n }", "public static void show() {\n\n\t}", "public static void show() {\n\t\t\n\t}", "@Override\r\n\tpublic String shortProjectDescr() {\n\t\treturn null;\r\n\t}", "public static String getOpenWindowsAsString() {\n\t\tSet<Window> allFoundWindows = getAllWindows();\n\n\t\t//@formatter:off\n\t\tList<Window> roots = allFoundWindows\n\t\t\t\t.stream()\n\t\t\t\t.filter(w -> w.getParent() == null)\n\t\t\t\t.collect(Collectors.toList())\n\t\t\t\t;\n\t\t//@formatter:on\n\n\t\tStringBuilder buffy = new StringBuilder(\"\\n\");\n\t\tfor (Window w : roots) {\n\t\t\tif (!isHierarchyShowing(w)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twindowToString(w, 0, buffy);\n\t\t}\n\t\treturn buffy.toString();\n\t}", "private void presentShowcaseSequence() {\n }", "public A_Class_Diagram getDiagram() {\r\n\t\treturn diagram;\r\n\t}", "private String executeGenerateAllSequenceDiagrams(StringTokenizer command) throws Exception {\n String processId = command.nextToken();\n String outputdirectory = command.nextToken();\n StringBuffer sequenceInformation = new StringBuffer();\n\n // Ok check if the output directory exits\n File directory = new File(outputdirectory);\n\n // Check if the directory exists and if it is in fact a directory\n if (!directory.exists() || !directory.isDirectory())\n throw new Exception(\"Directory specified does not exist\");\n\n // Ok, now get all the starting points\n ArrayList entryPoints = findEntryPoints((RantSystem) PrevaylerPersister.getInstance().getPrevayler().prevalentSystem(), processId);\n Iterator entryIterator = entryPoints.iterator();\n\n ArrayList sequences = generateSequenceStructure(processId);\n\n // Iterate over the collected metrics\n while (entryIterator.hasNext()) {\n SequenceMetric sequenceMetric = (SequenceMetric) entryIterator.next();\n\n // Ok for each metric generate a graphics file in the specified catalog\n String sequenceString = this.generateSequenceString(sequenceMetric, sequences);\n\n sequenceInformation.append(\"\\t Generating PNG for entry Point: \" + sequenceMetric.getCallerClass() + \" \" + sequenceMetric.getCallerMethod() + \"\\n\");\n\n // Ok generate the file\n this.generateSequenceDiagramPNG(outputdirectory + \"/\" + processId + \"-\" + sequenceMetric.getCallerClass() + \"-\" + sequenceMetric.getCallerMethod() + \".png\", sequenceString);\n }\n\n return sequenceInformation.toString();\n }", "public static void printAvailableMaps() {\n \tFile folder = new File(\"./examples/\");\n \tFile[] listOfFiles = folder.listFiles();\n \tSystem.out.println(\"Available maps (choose one and start game with command 'game map_name' ) : \");\n\n \t for (int i = 0; i < listOfFiles.length; i++) {\n \t if (listOfFiles[i].isFile()) {\n \t System.out.println(\"\\t\"+listOfFiles[i].getName());\n \t } \n \t }\n }", "@Override\n protected boolean isAppropriate() {\n return true; // always show\n }", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tif (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() == 2) {\n\n\t\t\tif (MainFrame.getInstance().getWorkspaceTree()\n\t\t\t\t\t.getLastSelectedPathComponent() instanceof Diagram) {\n\t\t\t\tDiagram diag1 = (Diagram) MainFrame.getInstance()\n\t\t\t\t\t\t.getWorkspaceTree().getLastSelectedPathComponent();\n\t\t\t\tfor (int i = 0; i < MainFrame.getInstance().getDesktop()\n\t\t\t\t\t\t.getAllFrames().length; i++) {\n\n\t\t\t\t\tif (MainFrame\n\t\t\t\t\t\t\t.getInstance()\n\t\t\t\t\t\t\t.getWorkspaceTree()\n\t\t\t\t\t\t\t.getLastSelectedPathComponent()\n\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t.equals(MainFrame.getInstance().getDesktop()\n\t\t\t\t\t\t\t\t\t.getAllFrames()[i].getName())) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tdiagView = new DiagramView();\n\t\t\t\tdiagView.setTitle(diag1.getName());\n\t\t\t\tdiagView.setName(diag1.getName());\n\t\t\t\tdiagView.setDiagram(diag1);\n\t\t\t\tMainFrame.getInstance().getDesktop().add(diagView);\n\n\t\t\t\ttry {\n\t\t\t\t\tdiagView.setSelected(true);\n\t\t\t\t} catch (PropertyVetoException 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\n\t\t\t\t// System.out.println(sel);\n\t\t\t}\n\n\t\t}\n\n\t}", "private void initializeExplorerCommands() {\n\t\tthis.commands.add(new GUICmdGraphMouseMode(\"Transforming\",\n\t\t\t\t\"GUICmdGraphMouseMode.Transforming\", this.hydraExplorer,\n\t\t\t\tModalGraphMouse.Mode.TRANSFORMING));\n\t\tthis.commands.add(new GUICmdGraphMouseMode(\"Picking\",\n\t\t\t\t\"GUICmdGraphMouseMode.Picking\", this.hydraExplorer,\n\t\t\t\tModalGraphMouse.Mode.PICKING));\n\t\tthis.commands.add(new GUICmdGraphRevert(\"Revert to Selected\",\n\t\t\t\tGUICmdGraphRevert.DEFAULT_ID, this.hydraExplorer));\n\t}", "private static boolean isDiagram(ConfigurableUnit element) {\n\t\treturn true;\n\t}", "public void launchExplorer() {\n SimulatedEnvironment env = new SimulatedEnvironment(this.domain, this.initialState);\n VisualExplorer exp = new VisualExplorer(this.domain, env, this.v, 800, 800);\n exp.addKeyAction(\"w\", GridWorldDomain.ACTION_NORTH, \"\");\n exp.addKeyAction(\"s\", GridWorldDomain.ACTION_SOUTH, \"\");\n exp.addKeyAction(\"d\", GridWorldDomain.ACTION_EAST, \"\");\n exp.addKeyAction(\"a\", GridWorldDomain.ACTION_WEST, \"\");\n\n //exp.enableEpisodeRecording(\"r\", \"f\", \"irlDemo\");\n\n exp.initGUI();\n }", "@Override\n public Map<String, String> getInteractiveViewers() {\n Map<String, String> views = new LinkedHashMap<String, String>();\n\n views.put(\"Show chart\",\n \"weka.gui.knowledgeflow.steps.StripChartInteractiveView\");\n\n return views;\n }", "public abstract KenaiProject[] getDashboardProjects(boolean onlyOpened);", "private void findViews() {\n // Buttons first\n closeBtn = (ImageButton) findViewById(getApplication().getResources().getIdentifier(\"closeBtn\", \"id\", getApplication().getPackageName()));\n shareBtn = (ImageButton) findViewById(getApplication().getResources().getIdentifier(\"shareBtn\", \"id\", getApplication().getPackageName()));\n\n //ProgressBar\n loadingBar = (ProgressBar) findViewById(getApplication().getResources().getIdentifier(\"loadingBar\", \"id\", getApplication().getPackageName()));\n // Image Container\n image = (TouchImageView) findViewById(getApplication().getResources().getIdentifier(\"imageView\", \"id\", getApplication().getPackageName()));\n \n\n // Title TextView\n titleTxt = (TextView) findViewById(getApplication().getResources().getIdentifier(\"titleTxt\", \"id\", getApplication().getPackageName()));\n }", "public boolean createCmsDescriptorProjects() {\n final ProjectInfo mainData = collectMainPageInfo();\n\n try {\n\t\t\tmWizard.getContainer().run(true, false, new IRunnableWithProgress() {\n\t\t\t\t\n\t\t\t @Override\n\t\t\t public void run(IProgressMonitor monitor) throws InvocationTargetException,\n\t\t\t InterruptedException {\n\t\t\t \tcreateProjectAsync(monitor, mainData, null, true);\n\t\t\t }\n\t\t\t});\n\t\t} catch (InvocationTargetException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n \n return true;\n }", "private void showQuesAndAnswers() {\r\n QuestionData qd = theQuestions.get(thisQues);\r\n TextView tv = (TextView)findViewById(R.id.theQuestion);\r\n tv.setText(Titles[bookNbrIx] + \", question nbr: \" + qd.quesNbr\r\n + \", line: \" + thisQues + \"\\n\\n\" + qd.question);\r\n \r\n\t\tadapter = new ArrayAdapter<String>(USCG_QuestionsActivity.this, android.R.layout.simple_list_item_1, qd.choices);\r\n\t\tsetListAdapter(adapter);\r\n\t\t\r\n\t\t// Does this question have an illustration image?\r\n\t\tif(!qd.illustrations.equals(NoIllusFlag)){\r\n\t\t\tSystem.out.println(\"Question \"+thisQues+\" has diagram:\"+qd.illustrations);\r\n\t\t\tBitmap bitmap = loadDiagram(IllusFolder + qd.illustrations + IllusExt);\r\n\t\t\tif(bitmap == null) {\r\n\t\t\t\tSystem.out.println(\"bitmap null for \" + IllusFolder + qd.illustrations + IllusExt);\r\n\t\t\t\tshowMsg(\"bitmap null for \" + IllusFolder + qd.illustrations + IllusExt);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t// Build and show a popup window\r\n\t\t LayoutInflater inflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n\t\t int puwWidth = (int)(bitmap.getWidth() * pxlDensity) + 5;\r\n\t\t int puwHeight = (int)(bitmap.getHeight() * pxlDensity) + 5;\r\n \t puw = new PopupWindow(inflater.inflate(R.layout.diagram_popup, null, false), \r\n\t\t\t\t\t\t \t puwWidth, \r\n\t\t\t\t\t\t \t puwHeight, \r\n\t\t\t\t\t\t \t true);\r\n// \t puw.setOutsideTouchable(true); //WHAT DOES THIS CHANGE ???? <<<<<<<<\r\n \t puw.setBackgroundDrawable(new BitmapDrawable()); // To enable Back button\r\n\r\n \t puw.showAtLocation(this.findViewById(R.id.theQuestion), Gravity.CENTER, 0, 0); \r\n \t puw.setOnDismissListener(new PopupWindow.OnDismissListener(){\r\n \t \tpublic void onDismiss() {\r\n \t \t\tpuw = null; // set flag for onBackPressed()\r\n \t \t}\r\n \t } \t \r\n \t );\r\n \t \r\n \t // Show the image in a popup window\r\n \t ShowDiagramView sdv = (ShowDiagramView)puw.getContentView().findViewById(R.id.view_area);\r\n \t sdv.setBitmap(bitmap, puw, pxlDensity);\r\n \t sdv.invalidate(); // force a call to onDraw()\r\n \t \r\n// \t TextView tv2 = (TextView)puw.getContentView().findViewById(R.id.view_area);\r\n// \t tv2.setText(\"Question has diagram:\"+qd.illustrations);\r\n \t \r\n \t Button dspBtn = (Button)puw.getContentView().findViewById(R.id.disposeBtn);\r\n dspBtn.setOnClickListener(new View.OnClickListener() {\r\n public void onClick(View v) {\r\n puw.dismiss();\r\n puw = null; // flag for onBackPressed()\r\n }\r\n });\r\n// */\r\n\t\t}\r\n\r\n\t}", "private WizardDescriptor.Panel[] getPanels() {\n Project project = Templates.getProject(wizard);\n File f1 = new File(\"src\");\n \n // Templates.setTargetFolder(wizard);\n\n Sources sources = project.getLookup().lookup(Sources.class);\n SourceGroup[] sg = sources.getSourceGroups(Sources.TYPE_GENERIC);\n \n if (panels == null) {\n targetChooserPanel = \n Templates.createSimpleTargetChooser(project, sg);\n panels = new WizardDescriptor.Panel[]{\n targetChooserPanel\n };\n String[] steps = createSteps();\n for (int i = 0; i < panels.length; i++) {\n Component c = panels[i].getComponent();\n if (steps[i] == null) {\n // Default step name to component name of panel. Mainly\n // useful for getting the name of the target chooser to\n // appear in the list of steps.\n steps[i] = c.getName();\n }\n if (c instanceof JComponent) { // assume Swing components\n JComponent jc = (JComponent) c;\n // Sets step number of a component\n // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:\n jc.putClientProperty(\"WizardPanel_contentSelectedIndex\", Integer.valueOf(i));\n // Sets steps names for a panel\n jc.putClientProperty(\"WizardPanel_contentData\", steps);\n // Turn on subtitle creation on each step\n jc.putClientProperty(\"WizardPanel_autoWizardStyle\", Boolean.TRUE);\n // Show steps on the left side with the image on the background\n jc.putClientProperty(\"WizardPanel_contentDisplayed\", Boolean.TRUE);\n // Turn on numbering of all steps\n jc.putClientProperty(\"WizardPanel_contentNumbered\", Boolean.TRUE);\n }\n }\n }\n return panels;\n }", "public String toString() {\n return getDesign();\n }", "public View[] getViews() {\n \t\tif (views != null)\n \t\t\treturn views;\n \n \t\tView tocview = new View(\"toc\", //$NON-NLS-1$\n \t\t\t\t\"\", //$NON-NLS-1$\n \t\t\t\tpreferences.getImagesDirectory() + \"/contents_view.gif\", 'C', !HelpPlugin.getTocManager().isTocLoaded(getLocale())); //$NON-NLS-1$\n \t\tView indexview = null;\n \t\tView searchview = new View(\"search\", //$NON-NLS-1$\n \t\t\t\t\"\", //$NON-NLS-1$\n \t\t\t\tpreferences.getImagesDirectory() + \"/search_results_view.gif\", 'R', false); //$NON-NLS-1$\n \t\tView linksview = null;\n \t\tView bookmarksview = null;\n \n \t\tif (preferences.isIndexView())\n \t\t\tindexview = new View(\"index\", //$NON-NLS-1$\n \t\t\t\t\t\"\", //$NON-NLS-1$\n\t\t\t\t\tpreferences.getImagesDirectory() + \"/index_view.gif\", 'I', !HelpPlugin.getIndexManager().isIndexLoaded(getLocale())); //$NON-NLS-1$\n \t\tif (preferences.isLinksView())\n \t\t\tlinksview = new View(\"links\", //$NON-NLS-1$\n \t\t\t\t\t\"\", //$NON-NLS-1$\n \t\t\t\t\tpreferences.getImagesDirectory() + \"/links_view.gif\", (char)0, false); //$NON-NLS-1$\n \t\tif (preferences.isBookmarksView())\n \t\t\tbookmarksview = new View(\"bookmarks\", //$NON-NLS-1$\n \t\t\t\t\t\"\", //$NON-NLS-1$\n \t\t\t\t\tpreferences.getImagesDirectory() + \"/bookmarks_view.gif\", (char)0, false); //$NON-NLS-1$\n \n \t\tArrayList viewList = new ArrayList();\n \t\tviewList.add(tocview);\n \t\tif (indexview != null) {\n \t\t\tviewList.add(indexview);\n \t\t}\n \t\tviewList.add(searchview);\n \t\tif (linksview != null) {\n \t\t\tviewList.add(linksview);\n \t\t}\n \t\tif (bookmarksview !=null) {\n \t\t\tviewList.add(bookmarksview);\n \t\t}\n \t\t\n \t\tviews = (View[]) viewList.toArray(new View[viewList.size()]);\n \t\treturn views;\n \t}", "public String show() {\n\t\treturn null;\r\n\t}", "public String showAllNhanvien();", "@Experimental\n default Collection<String> getGeneratedResources() {\n info(\"EXPERIMENTAL: Compile time resource contribution to the context is experimental\", null);\n return Collections.emptyList();\n }", "public File getDiagramFile() throws GefException {\n\t\treturn new File(this.project.getProjectFolder(), getModel().getTitle() + \".dgr\");\n\t}", "@Override\n\tpublic String getInitialViewKml() {\n\t\treturn null;\n\t}", "private String getDesignPath() {\n Class<?> clazz = getClass();\n String designFilePath = null;\n if (clazz.getAnnotation(DeclarativeUI.class).absolutePath()) {\n designFilePath = \"\";\n } else {\n // This is rather nasty.. but it works well enough for now.\n String userDir = System.getProperty(\"user.dir\");\n designFilePath = userDir + \"/uitest/src/\"\n + clazz.getPackage().getName().replace('.', '/') + \"/\";\n }\n\n String designFileName = clazz.getAnnotation(DeclarativeUI.class)\n .value();\n\n return designFilePath + designFileName;\n }", "public String getDefaultAppearance() {\n/* 530 */ return getCOSObject().getString(COSName.DA);\n/* */ }", "public void startDia() {\r\n this.setStatus(false);\r\n this.isDiagStarted = true;\r\n if (!this.is_alg_started || (this.is_alg_started && ((this.is_already_read_from_DB && this.UseFile.isSelected())\r\n || (!this.is_already_read_from_DB && this.UseDB.isSelected())))) {\r\n this.dBInError = false;\r\n this.startALG(true);\r\n } else {\r\n try {\r\n Thread t2 = new Thread(new Diagram((ChineseWhispers) this.cw.clone()));\r\n t2.start();\r\n } catch (CloneNotSupportedException e) {\r\n e.printStackTrace();\r\n }\r\n this.setStatus(true);\r\n this.isDiagStarted = false;\r\n }\r\n }", "private void createMenusNow()\n {\n JMenu debugMenu = myToolbox.getUIRegistry().getMenuBarRegistry().getMenu(MenuBarRegistry.MAIN_MENU_BAR,\n MenuBarRegistry.DEBUG_MENU);\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Print Summary\", e -> printSummary()));\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Tag Data Type\", e -> tagDataType()));\n }", "public void show() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "public List<DevStudio> findAll() {\n return getDevStudioRepository().findAll();\n }", "@Override\r\n\tprotected final void createAppWindows() {\r\n \t//Instantiate only DD-specific windows. SFDC-scope windows (such as mainWindow) are static\r\n \t// objects in the EISTestBase class\r\n \tmyDocumentsPopUp = createWindow(\"WINDOW_MY_DOCUMENTS_POPUP_PROPERTIES_FILE\");\r\n }", "public void actionPerformed (AnActionEvent e)\n {\n Project project = DataKeys.PROJECT.getData (e.getDataContext ());\n UMLDiagramsPanel diagrams = ProjectUtils.get (project, UMLDiagramsPanel.class);\n if (diagrams != null)\n {\n UMLDiagram umlDiagram = diagrams.getCurrentDiagram ();\n if (umlDiagram != null && project != null)\n {\n int answer = Messages.showYesNoDialog (project, \"Contents will be lost! Really close diagram?\",\n \"Confirm close diagram\", Messages.getWarningIcon ());\n if (answer == 0)\n {\n diagrams.closeDiagram (umlDiagram);\n }\n }\n }\n }", "public static void showOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- The participants' directory.\")\n .add(\"2- The RDVs' agenda.\")\n .add(\"3- Quit the app.\")\n .add(\"*************************\")\n );\n }", "public void visMedlemskabsMenu ()\r\n {\r\n System.out.println(\"Du har valgt medlemskab.\");\r\n System.out.println(\"Hvad Oensker du at foretage dig?\");\r\n System.out.println(\"1: Oprette et nyt medlem\");\r\n System.out.println(\"2: Opdatere oplysninger paa et eksisterende medlem\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "@Test\n\tpublic void testProducesOpenOn() {\n\t\tnew DefaultStyledText().selectText(\"s:Produces\");\n\t\tKeyboardFactory.getKeyboard().invokeKeyCombination(SWT.F3);\n\t\tnew DefaultEditor(\"Produces.class\");\n\n\t\t/* test opened object */\n\t\tassertExpectedOpenedClass(\"javax.enterprise.inject.Produces\");\n\n\t}", "@Override\n public void printExistFigure() {\n if (!isRealFigure()) {\n System.out.println(\"Triangular prism is not exist\");\n } else {\n System.out.println(\"Triangular prism is exist\");\n }\n }", "public void voroDiagram() {\n\t\tPowerDiagram diagram = new PowerDiagram();\n\t\tdiagram.setSites(sites);\n\t\tdiagram.setClipPoly(clipPolygon);\n\t\tdiagram.computeDiagram();\n\t}", "public void showDefaultsEditor() {\r\n \t\tDefaultsEditor.getInstance(mainWindow, DefaultsEditor.JMODEL).show();\r\n \t}", "public void updateIcons() {\n String info = \"\";\n if (Main.mainProject.getCurrentCase().isLeaf()) {\n info += ((TestCase) Main.mainProject.getCurrentCase().getParent()).getName() + \"\\n\";\n info += Main.mainProject.getCurrentCase().getName() + \"\\n\";\n info += Main.mainProject.getCurrentCase().getConclusion().toString();\n }\n infoTextArea.setText(info);\n Main.mainProject.getCurrentCase().setChecked(true);\n TreePath path = projectTree.getSelectionPath();\n this.updateTreeModel();\n projectTree.setSelectionPath(path);\n projectTree.scrollPathToVisible(path);\n }", "public boolean isDemo() {\n return demo;\n }", "void show() {\n super.show();\n System.out.println(\"i am in Flavor1Demo class\"); // remember\n }", "@Override\r\n public String[] getInputs() {\r\n // no inputs from this view it is the opening view that explains the game \r\n return null;\r\n }", "public Dialog getWisdom() {\n\t\treturn wisdom;\n\t}", "private void scanForIcons() {\n\t\t\ttry {\n\t\t\t\tFile graphicDir = new File(helpIconBase + File.separator);\n\t\t\t\tlist = filter(graphicDir.listFiles(), \"tip\", \".png\");\n\t\t\t} catch (NullPointerException npe) {\n\t\t\t\tSystem.err.println(npe);\n\t\t\t\tlist = null;\n\t\t\t}\n\t\t}", "@Override\r\n\tprotected Control createContents(Composite parent) {\n\t\tIProject project = (IProject) getElement().getAdapter(IProject.class);\r\n\t\tdfc = new DeepFileChanger(project.getLocation()\t+ \"/\" + project.getName() + \".deep\");\r\n\r\n\t\tlibPath = dfc.getContent(\"libpath\");\r\n\t\tif (!libPath.equals(\"not available\")) libPath = libPath.substring(1, libPath.length()-1);\r\n\t\tboard = dfc.getContent(\"boardtype\");\r\n\t\tprogrammer = dfc.getContent(\"programmertype\");\r\n\t\tos = dfc.getContent(\"ostype\");\r\n\t\trootclasses = dfc.getContent(\"rootclasses\");\r\n\t\timglocation = dfc.getContent(\"imgfile\");\r\n\t\timgformat = dfc.getContent(\"imgformat\");\r\n\t\tif(imglocation.equalsIgnoreCase(\"not available\") && imgformat.equalsIgnoreCase(\"not available\")){\r\n\t\t\tcreateImgFile = false;\r\n\t\t\tlastImgPathChoice = project.getLocation().toString();\r\n\t\t\tlastImgPathChoice = lastImgPathChoice.replace('/', '\\\\');\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcreateImgFile = true;\r\n\t\t\tlastImgPathChoice = imglocation.replace('/', '\\\\');\r\n\t\t\tlastImgPathChoice = lastImgPathChoice.substring(1,lastImgPathChoice.length() -1 );\r\n\t\t\tint indexOfProjectName = lastImgPathChoice.lastIndexOf(\"\\\\\");\r\n\t\t\tlastImgPathChoice = lastImgPathChoice.substring(0, indexOfProjectName);\r\n\t\t\tlastImgFormatChoice = imgformat;\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(dfc.fileContent.toString());\t\t\r\n//\t\tSystem.out.println(libPath);\r\n//\t\tSystem.out.println(board);\r\n//\t\tSystem.out.println(programmer);\r\n//\t\tSystem.out.println(os);\r\n//\t\tSystem.out.println(rootclasses);\r\n//\t\tSystem.out.println(lastImgPathChoice);\r\n//\t\tSystem.out.println(lastImgFormatChoice);\r\n//\t\tSystem.out.println(\"\");\r\n\r\n\t\t// read project preferences\r\n\t\tpref = getPref();\r\n\t\t\r\n\t\t// build control\r\n\t\tComposite composite = new Composite(parent, SWT.NONE);\r\n\t\tcomposite.setLayout(new GridLayout(2, false));\r\n\t\r\n\t\tGroup groupLib = new Group(composite, SWT.NONE);\r\n\t\tgroupLib.setText(\"Target Library\");\r\n\t\tGridLayout gridLayout2 = new GridLayout(2, false);\r\n\t\tgroupLib.setLayout(gridLayout2);\r\n\t\tGridData gridData = new GridData(SWT.FILL, SWT.CENTER, true, false);\r\n\t\tgridData.horizontalSpan = 2;\r\n\t\tgroupLib.setLayoutData(gridData);\r\n\t\tLabel label1 = new Label(groupLib,SWT.NONE);\r\n\t\tlabel1.setText(\"Pleace specify the target library you want to use for this project.\");\r\n\t\tlabel1.setLayoutData(gridData);\r\n\t\tLabel dummy = new Label(groupLib, SWT.NONE);\r\n\t\tdummy.setLayoutData(gridData);\r\n\t\tcheck = new Button(groupLib, SWT.CHECK);\r\n\t\tcheck.setText(\"Use default library path\");\r\n\t\tcheck.setSelection(libPath.equals(defaultPath));\r\n\t\tcheck.addSelectionListener(new SelectionAdapter() {\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tif (e.widget.equals(check)) {\r\n\t\t\t\t\tif (check.getSelection()) {\r\n\t\t\t\t\t\tpath.setEnabled(false);\r\n\t\t\t\t\t\tpath.setText(defaultPath);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tpath.setEnabled(true);\r\n\t\t\t\t\t\tpath.setText(lastChoice);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlibPath = path.getText();\r\n\t\t\t\t\tif (checkLibPath()) readLib();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tcheck.setLayoutData(gridData);\r\n\t\tpath = new Text(groupLib, SWT.SINGLE | SWT.BORDER);\r\n\t\tGridData gridData2 = new GridData();\r\n\t\tgridData2.horizontalAlignment = SWT.FILL;\r\n\t\tgridData2.grabExcessHorizontalSpace = true;\r\n\t\tpath.setLayoutData(gridData2);\r\n\t\tpath.setText(libPath);\r\n\t\tpath.setEnabled(!libPath.equals(defaultPath));\r\n\t\tpath.addModifyListener(new ModifyListener() {\r\n\t\t\tpublic void modifyText(ModifyEvent e) {\r\n\t\t\t\tlibPath = path.getText();\r\n\t\t\t\tif (checkLibPath()) readLib();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbrowse = new Button(groupLib, SWT.PUSH);\r\n\t\tbrowse.setText(\"Browse...\");\r\n\t\tbrowse.addSelectionListener(new SelectionAdapter() {\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tif (!check.getSelection()){\t\r\n\t\t\t\t\topenDirectoryDialog();\r\n\t\t\t\t\tif (checkLibPath()) readLib();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tlibState = new Label(groupLib,SWT.NONE);\r\n\t\tlibState.setLayoutData(gridData);\r\n\r\n//\t\tGroup groupBoard = new Group(composite, SWT.BOTTOM);\r\n\t\tGroup groupBoard = new Group(composite, SWT.NONE);\r\n\t\tgroupBoard.setText(\"Board configuration\");\r\n\t\tGridLayout groupLayout1 = new GridLayout(2, false);\r\n\t\tgroupBoard.setLayout(groupLayout1);\r\n\t\tGridData gridData3 = new GridData();\r\n\t\tgridData3.horizontalAlignment = SWT.FILL;\r\n\t\tgridData3.grabExcessHorizontalSpace = true;\r\n\t\tgridData3.horizontalSpan = 2;\r\n\t\tgroupBoard.setLayoutData(gridData3);\r\n\t\tLabel boardLabel = new Label(groupBoard, SWT.NONE);\r\n\t\tboardLabel.setText(\"Select a board\");\r\n\t\tboardCombo = new Combo(groupBoard, SWT.VERTICAL | SWT.DROP_DOWN | SWT.BORDER | SWT.READ_ONLY);\r\n\t\tboardCombo.addSelectionListener(listener);\r\n\t\tLabel progLabel = new Label(groupBoard, SWT.NONE);\r\n\t\tprogLabel.setText(\"Select a programmer\");\r\n\t\tprogrammerCombo = new Combo(groupBoard, SWT.VERTICAL | SWT.DROP_DOWN | SWT.BORDER | SWT.READ_ONLY);\r\n\t\tprogrammerCombo.addSelectionListener(listener);\r\n\r\n//\t\tGroup groupOS = new Group(composite, SWT.BOTTOM);\r\n\t\tGroup groupOS = new Group(composite, SWT.NONE);\r\n\t\tgroupOS.setText(\"Runtime system\");\r\n\t\tGridLayout groupLayout2 = new GridLayout(2, false);\r\n\t\tgroupOS.setLayout(groupLayout2);\r\n\t\tGridData gridData4 = new GridData();\r\n\t\tgridData4.horizontalAlignment = SWT.FILL;\r\n\t\tgridData4.grabExcessHorizontalSpace = true;\r\n\t\tgridData4.horizontalSpan = 2;\r\n\t\tgroupOS.setLayoutData(gridData4);\r\n\t\tLabel osLabel = new Label(groupOS,SWT.NONE);\r\n\t\tosLabel.setText(\"Select a operating system\");\r\n\t\tosCombo = new Combo(groupOS, SWT.VERTICAL | SWT.DROP_DOWN | SWT.BORDER | SWT.READ_ONLY);\r\n\t\tosCombo.addSelectionListener(listener);\r\n\r\n\t\tGroup groupImg = new Group(composite, SWT.NONE);\r\n\t\tgroupImg.setText(\"Image file creation\");\r\n\t\tGridLayout gridLayoutImg = new GridLayout(2,false);\r\n\t\tgroupImg.setLayout(gridLayoutImg);\r\n\t\tGridData gridDataImg = new GridData(SWT.FILL, SWT.CENTER, true, false);\r\n\t\tgridDataImg.horizontalSpan = 2;\t\t\r\n\t\tcheckImg = new Button(groupImg, SWT.CHECK);\r\n\t\tcheckImg.setText(\"Create image file\");\r\n\t\tcheckImg.setSelection(false);\r\n\t\tcheckImg.addSelectionListener(new SelectionAdapter() {\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tif(e.widget.equals(checkImg)) {\r\n\t\t\t\t\tif (checkLibPath()) readLib();\r\n\t\t\t\t\tif(checkImg.getSelection()) {\r\n\t\t\t\t\t\tpathImg.setEnabled(true);\r\n\t\t\t\t\t\tpathImg.setText(lastImgPathChoice);\r\n\t\t\t\t\t\tbrowseImg.setEnabled(true);\r\n\t\t\t\t\t\timgFormatCombo.setEnabled(true);\r\n\t\t\t\t\t\tindexImgFormat = 0;\r\n\t\t\t\t\t\tfor (int i = 0; i < Configuration.formatMnemonics.length; i++) {\r\n\t\t\t\t\t\t\tif (lastImgFormatChoice.equalsIgnoreCase(Configuration.formatMnemonics[i])) indexImgFormat = i;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\timgFormatCombo.select(indexImgFormat);\r\n\t\t\t\t\t\tcreateImgFile = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tpathImg.setEnabled(false);\r\n\t\t\t\t\t\tpathImg.setText(lastImgPathChoice);\r\n\t\t\t\t\t\tbrowseImg.setEnabled(false);\r\n\t\t\t\t\t\timgFormatCombo.setEnabled(false);\r\n\t\t\t\t\t\tindexImgFormat = 0;\r\n\t\t\t\t\t\tfor (int i = 0; i < Configuration.formatMnemonics.length; i++) {\r\n\t\t\t\t\t\t\tif (lastImgFormatChoice.equalsIgnoreCase(Configuration.formatMnemonics[i])) indexImgFormat = i;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\timgFormatCombo.select(indexImgFormat);\r\n\t\t\t\t\t\tcreateImgFile = false;\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\tcheckImg.setLayoutData(gridDataImg);\r\n\t\t\r\n\t\tGridData gridDataImg2 = new GridData(SWT.FILL, SWT.FILL, true, false);\r\n\t\tpathImg = new Text(groupImg, SWT.SINGLE | SWT.BORDER);\r\n\t\tpathImg.setLayoutData(gridDataImg2);\r\n\t\tpathImg.setEnabled(false);\r\n\t\tpathImg.addModifyListener(new ModifyListener() {\r\n\t\t\tpublic void modifyText(ModifyEvent e) {\r\n\t\t\t\timglocation = pathImg.getText();\r\n\t\t\t\tif (checkLibPath()) readLib();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbrowseImg = new Button(groupImg, SWT.PUSH);\r\n\t\tbrowseImg.setText(\"Browse...\");\r\n\t\tbrowseImg.setEnabled(false);\r\n\t\tbrowseImg.addSelectionListener(new SelectionAdapter() {\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tif (checkImg.getSelection()) {\t\r\n\t\t\t\t\topenImgDirectoryDialog();\r\n\t\t\t\t\tif (checkLibPath()) readLib();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\t\r\n\t\tGridData gridDataImg3 = new GridData(SWT.FILL, SWT.FILL, true, false);\r\n\t\tgridDataImg3.horizontalSpan = 2;\r\n\t\tLabel imgFormatLabel = new Label(groupImg,SWT.NONE);\r\n\t\timgFormatLabel.setText(\"Select image file format\");\r\n\t\timgFormatCombo = new Combo(groupImg, SWT.VERTICAL | SWT.DROP_DOWN | SWT.BORDER | SWT.READ_ONLY);\r\n\t\timgFormatCombo.setEnabled(false);\r\n\t\timgFormatCombo.setLayoutData(gridDataImg3);\r\n\t\timgFormatCombo.addSelectionListener(listener);\r\n\t\tindexImgFormat = 0;\r\n\t\tfor (int i = 0; i < Configuration.formatMnemonics.length; i++) {\r\n\t\t\tif (lastImgFormatChoice.equalsIgnoreCase(Configuration.formatMnemonics[i])) indexImgFormat = i;\r\n\t\t}\r\n\t\timgFormatCombo.select(indexImgFormat);\r\n\t\t\r\n\t\t//initial values of Image file creation\r\n\t\tif(createImgFile){\r\n\t\t\tcheckImg.setSelection(true);\r\n\t\t\tpathImg.setEnabled(true);\r\n\t\t\tpathImg.setText(lastImgPathChoice);\r\n\t\t\tbrowseImg.setEnabled(true);\r\n\t\t\timgFormatCombo.setEnabled(true);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcheckImg.setSelection(false);\r\n\t\t\tpathImg.setEnabled(false);\r\n\t\t\tpathImg.setText(lastImgPathChoice);\r\n\t\t\tbrowseImg.setEnabled(false);\r\n\t\t\timgFormatCombo.setEnabled(false);\r\n\t\t}\r\n\t\t\r\n\t\tif (checkLibPath()) readLib(); else libPath = \"not available\";\r\n\t\treturn composite;\r\n\t}", "private static void helpMenuLines(){\n setMenuLines(\"\",7,9,11,13,15,16,18,20);\n setMenuLines(\"Welcome to Ben's CMR program. Here are the main commands:\",1);\n setMenuLines(HIGHLIGHT_COLOR + \"new lead\" + ANSI_RESET + \" - Creates a new Lead\",4);\n setMenuLines(HIGHLIGHT_COLOR + \"convert <ID>\" + ANSI_RESET + \" - Converts a Lead into an Opportunity\",6);\n setMenuLines(HIGHLIGHT_COLOR + \"close-won <ID>\" + ANSI_RESET + \" - Close Won Opportunity\",8);\n setMenuLines(HIGHLIGHT_COLOR + \"close-lost <ID>\" + ANSI_RESET + \" - Close Lost Opportunity\",10);\n setMenuLines(HIGHLIGHT_COLOR + \"lookup <OBJECT> <ID>\" + ANSI_RESET + \" - Search for specific Lead, Opportunity, Account or Contact\",12);\n setMenuLines(HIGHLIGHT_COLOR + \"show <OBJECT PLURAL>\" + ANSI_RESET + \" - List all Leads, Opportunities, Accounts or Contacts\",14);\n setMenuLines(HIGHLIGHT_COLOR + \"help\" + ANSI_RESET + \" - Explains usage of available commands\",17);\n setMenuLines(HIGHLIGHT_COLOR + \"save\" + ANSI_RESET + \" - Saves the changed data\",19);\n setMenuLines(HIGHLIGHT_COLOR + \"exit\" + ANSI_RESET + \" - Saves and exits the program\",21);\n }", "private List<Presentation> getPresentations(){\n List<Presentation> itemList = new ArrayList<Presentation>();\n File appDir = getActivity().getExternalFilesDir(null);\n for(File dir : appDir.listFiles()){\n File presentationJsonFile = new File(dir,\"presentation.json\");\n if(presentationJsonFile.exists()){\n try {\n Presentation presentation = getPresentationFromJson(presentationJsonFile);\n presentation.setDirPath(dir.getAbsolutePath());\n itemList.add(presentation);\n }\n catch(FileNotFoundException e) {}\n }\n }\n return itemList;\n }", "public void openNewProject() {\n\n\t\t// Dispose of all the sound objects in the project that is currently open\n\t\tCollection<SoundInfo> sounds = soundList.values();\n for(SoundInfo sound: sounds){\n sound.close();\n }\n \n // Set the newly opened project variables\n\t\tsoundList = new HashMap<Integer, SoundInfo>();\n\t\tprojectModified = false;\n\t\tprojectFileIO = null;\n\t}", "public View getGraphic()\n{\n // Get image for file\n //Image img = _type==FileType.PACKAGE_DIR? Package : ViewUtils.getFileIconImage(_file);\n Image img = ViewUtils.getFileIconImage(_file);\n View grf = new ImageView(img); grf.setPrefSize(18,18);\n \n // If error/warning add Error/Warning badge as composite icon\n /*BuildIssue.Kind status = _proj!=null? _proj.getRootProject().getBuildIssues().getBuildStatus(_file) : null;\n if(status!=null) {\n Image badge = status==BuildIssue.Kind.Error? ErrorBadge : WarningBadge;\n ImageView bview = new ImageView(badge); bview.setLean(Pos.BOTTOM_LEFT);\n StackView spane = new StackView(); spane.setChildren(grf, bview); grf = spane;\n }*/\n \n // Return node\n return grf;\n}", "public List<HealthInspectorsInfo> availableInspectors() {\n return INSPECTORS.stream().map(HealthInspectorsInfo::new).collect(Collectors.toList());\n }", "public String getDemography() {\n return demography;\n }", "public boolean shouldDisplayProject ()\r\n {\r\n return displayProjectName_;\r\n }", "public void forceOpen()\r\n\t{\n\t\tOpenLegende ol=new OpenLegende(this);\r\n\t\tFile dir=new File(AppContext.getApplicationContext().getUserPreference(AppContext.PREFERENCES_DATA_PATH_KEY,null,false));\r\n\t\tol.getFileChooser().setCurrentDirectory(dir);\r\n\t\tol.getFileChooser().setFileFilter(new FileFilter()\r\n\t\t{\r\n\t\t\tpublic boolean accept(File arg0)\r\n\t\t\t{\r\n\t\t\t if(arg0.getName().endsWith(\".jmp\") || arg0.isDirectory())\r\n\t\t\t {\r\n\t\t\t return true;\r\n\t\t\t }\r\n\t\t\t return false;\r\n\t\t\t}\r\n\r\n\t\t\tpublic String getDescription()\r\n\t\t\t{\r\n\t\t\treturn I18N.get(\"PrintLayoutPlugin.PrintTemplates\");\r\n\t\t\t}\r\n\t\t});\r\n\tol.actionPerformed(null);\r\n\tsetMapsExtents(); //refresh maps and labels\r\n\t}", "private static void showMemoList() {\n\t\t\n\t}", "private void showInformationAboutBrokenFile(Shell shell) {\n\t\tMessageDialog\n \t.openInformation(\n \t\t shell, \n \t\t \"Info\",\n \t\t \"There was error during test cases generation, make sure selected file is correct!\");\n\t}", "@Override\n public void projectOpened() {\n ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project);\n JPanel myContentPanel = new JPanel(new BorderLayout());\n ShareToolWin toolWin = new ShareToolWin();\n myContentPanel.add(toolWin.getRootPanel(), BorderLayout.CENTER);\n ToolWindow toolWindow = toolWindowManager.registerToolWindow(TOOL_WINDOW_ID, false, ToolWindowAnchor.LEFT);\n toolWindow.getComponent().add(myContentPanel);\n }", "@Override\n \t\t\t\tpublic Collection<String> getAttachedGraphNames() {\n \t\t\t\t\treturn null;\n \t\t\t\t}", "public abstract String getDesign();", "public void _getDiagramType() {\n result = true;\n\n String stype = oObj.getDiagramType();\n log.println(\"Current Diagram Type is \" + stype);\n result = (stype.startsWith(\"com.sun.star.chart.\"));\n\n tRes.tested(\"getDiagramType()\", result);\n }", "private List<Turtle> createActiveDisplay() {\n\t\tactiveListDisplay = new FlowPane();\n\t\tactiveListDisplay.setPrefWrapLength(turtleView.getWidth());\n\t\tif (tManager != null) {\n\t\t\tactiveTurtles = tManager.getActiveTurtles();\n\t\t\tfor(Turtle turtle: activeTurtles) {\n\t\t\t\tLabel currentTurtle = new Label(Double.toString(turtle.getID()));\n\t\t\t\tturtleView.getChildren().add(currentTurtle);\n\t\t\t\tlabels.add(currentTurtle);\n\t\t\t\ttoggleTurtle(currentTurtle, turtle);\n\t\t\t}\n\t\t\treturn activeTurtles;\n\t\t}\n\t\treturn null;\n\t}", "public java.util.List<EncounterDiagnosis> diagnosis() {\n return getList(EncounterDiagnosis.class, FhirPropertyNames.PROPERTY_DIAGNOSIS);\n }", "protected void createContents() {\n\t\tshell = new Shell(SWT.CLOSE | SWT.MIN);// 取消最大化与拖拽放大功能\n\t\tshell.setImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/MC.ico\"));\n\t\tshell.setBackgroundImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/back.jpg\"));\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tshell.setSize(1157, 720);\n\t\tshell.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tshell.setLocation(Display.getCurrent().getClientArea().width / 2 - shell.getShell().getSize().x / 2,\n\t\t\t\tDisplay.getCurrent().getClientArea().height / 2 - shell.getSize().y / 2);\n\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/base.png\"));\n\t\tmenuItem.setText(\"\\u7A0B\\u5E8F\");\n\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\n\t\tMenuItem menuI_main = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuI_main.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmenuI_main.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_BookShow window = new Admin_BookShow();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI_main.setText(\"\\u4E3B\\u9875\");\n\n\t\tMenuItem menu_exit = new MenuItem(menu_1, SWT.NONE);\n\t\tmenu_exit.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/reset.png\"));\n\t\tmenu_exit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tWelcomPart window = new WelcomPart();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu_exit.setText(\"\\u9000\\u51FA\");\n\n\t\tMenuItem menubook = new MenuItem(menu, SWT.CASCADE);\n\t\tmenubook.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookTypeManager.png\"));\n\t\tmenubook.setText(\"\\u56FE\\u4E66\\u7BA1\\u7406\");\n\n\t\tMenu menu_2 = new Menu(menubook);\n\t\tmenubook.setMenu(menu_2);\n\n\t\tMenuItem menu1_add = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu1_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_add window = new Book_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_add.setText(\"\\u6DFB\\u52A0\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_select = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_select.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu1_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// 图书查询\n\t\t\t\tshell.close();\n\t\t\t\tBook_select window = new Book_select();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_select.setText(\"\\u67E5\\u8BE2\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_alter = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu1_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_alter window = new Book_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_alter.setText(\"\\u4FEE\\u6539\\u56FE\\u4E66\");\n\n\t\tMenuItem menuI1_delete = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuI1_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenuI1_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_del window = new Book_del();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI1_delete.setText(\"\\u5220\\u9664\\u56FE\\u4E66\");\n\n\t\tMenuItem menutype = new MenuItem(menu, SWT.CASCADE);\n\t\tmenutype.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookManager.png\"));\n\t\tmenutype.setText(\"\\u4E66\\u7C7B\\u7BA1\\u7406\");\n\n\t\tMenu menu_3 = new Menu(menutype);\n\t\tmenutype.setMenu(menu_3);\n\n\t\tMenuItem menu2_add = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu2_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_add window = new Booktype_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_add.setText(\"\\u6DFB\\u52A0\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_alter = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu2_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_alter window = new Booktype_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_alter.setText(\"\\u4FEE\\u6539\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_delete = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenu2_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_delete window = new Booktype_delete();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_delete.setText(\"\\u5220\\u9664\\u4E66\\u7C7B\");\n\n\t\tMenuItem menumark = new MenuItem(menu, SWT.CASCADE);\n\t\tmenumark.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/student.png\"));\n\t\tmenumark.setText(\"\\u501F\\u8FD8\\u8BB0\\u5F55\");\n\n\t\tMenu menu_4 = new Menu(menumark);\n\t\tmenumark.setMenu(menu_4);\n\n\t\tMenuItem menu3_borrow = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_borrow.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/edit.png\"));\n\t\tmenu3_borrow.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_borrowmark window = new Admin_borrowmark();\n\t\t\t\twindow.open();// 借书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_borrow.setText(\"\\u501F\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem menu3_return = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_return.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu3_return.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_returnmark window = new Admin_returnmark();\n\t\t\t\twindow.open();// 还书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_return.setText(\"\\u8FD8\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem mntmhelp = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmhelp.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmntmhelp.setText(\"\\u5173\\u4E8E\");\n\n\t\tMenu menu_5 = new Menu(mntmhelp);\n\t\tmntmhelp.setMenu(menu_5);\n\n\t\tMenuItem menu4_Info = new MenuItem(menu_5, SWT.NONE);\n\t\tmenu4_Info.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/me.png\"));\n\t\tmenu4_Info.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_Info window = new Admin_Info();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu4_Info.setText(\"\\u8F6F\\u4EF6\\u4FE1\\u606F\");\n\n\t\ttable = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable.setFont(SWTResourceManager.getFont(\"黑体\", 10, SWT.NORMAL));\n\t\ttable.setLinesVisible(true);\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setBounds(10, 191, 1119, 447);\n\n\t\tTableColumn tableColumn = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn.setWidth(29);\n\n\t\tTableColumn tableColumn_id = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_id.setWidth(110);\n\t\ttableColumn_id.setText(\"\\u56FE\\u4E66\\u7F16\\u53F7\");\n\n\t\tTableColumn tableColumn_name = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_name.setWidth(216);\n\t\ttableColumn_name.setText(\"\\u56FE\\u4E66\\u540D\\u79F0\");\n\n\t\tTableColumn tableColumn_author = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_author.setWidth(117);\n\t\ttableColumn_author.setText(\"\\u56FE\\u4E66\\u79CD\\u7C7B\");\n\n\t\tTableColumn tableColumn_pub = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_pub.setWidth(148);\n\t\ttableColumn_pub.setText(\"\\u4F5C\\u8005\");\n\n\t\tTableColumn tableColumn_stock = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_stock.setWidth(167);\n\t\ttableColumn_stock.setText(\"\\u51FA\\u7248\\u793E\");\n\n\t\tTableColumn tableColumn_sortid = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_sortid.setWidth(79);\n\t\ttableColumn_sortid.setText(\"\\u5E93\\u5B58\");\n\n\t\tTableColumn tableColumn_record = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_record.setWidth(247);\n\t\ttableColumn_record.setText(\"\\u767B\\u8BB0\\u65F6\\u95F4\");\n\n\t\tCombo combo_way = new Combo(shell, SWT.NONE);\n\t\tcombo_way.add(\"图书编号\");\n\t\tcombo_way.add(\"图书名称\");\n\t\tcombo_way.add(\"图书作者\");\n\t\tcombo_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tcombo_way.setBounds(314, 157, 131, 28);\n\n\t\t// 遍历查询book表\n\t\tButton btnButton_select = new Button(shell, SWT.NONE);\n\t\tbtnButton_select.setImage(SWTResourceManager.getImage(Book_select.class, \"/images/search.png\"));\n\t\tbtnButton_select.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tbtnButton_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tBook book = new Book();\n\t\t\t\tSelectbook selectbook = new Selectbook();\n\t\t\t\ttable.removeAll();\n\t\t\t\tif (combo_way.getText().equals(\"图书编号\")) {\n\t\t\t\t\tbook.setBook_id(text_select.getText().trim());\n\t\t\t\t\tString str[][] = selectbook.ShowAidBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书名称\")) {\n\t\t\t\t\tbook.setBook_name(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAnameBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书作者\")) {\n\t\t\t\t\tbook.setBook_author(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAauthorBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().length() == 0) {\n\t\t\t\t\tString str[][] = selectbook.ShowAllBook();\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnButton_select.setBounds(664, 155, 98, 30);\n\t\tbtnButton_select.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tbtnButton_select.setText(\"查询\");\n\n\t\ttext_select = new Text(shell, SWT.BORDER);\n\t\ttext_select.setBounds(472, 155, 186, 30);\n\n\t\tLabel lblNewLabel_way = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_way.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel_way.setBounds(314, 128, 107, 30);\n\t\tlblNewLabel_way.setText(\"\\u67E5\\u8BE2\\u65B9\\u5F0F\\uFF1A\");\n\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tlblNewLabel_1.setForeground(SWTResourceManager.getColor(255, 255, 255));\n\t\tlblNewLabel_1.setFont(SWTResourceManager.getFont(\"黑体\", 25, SWT.BOLD));\n\t\tlblNewLabel_1.setAlignment(SWT.CENTER);\n\t\tlblNewLabel_1.setBounds(392, 54, 266, 48);\n\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setText(\"\\u8F93\\u5165\\uFF1A\");\n\t\tlblNewLabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(472, 129, 76, 20);\n\n\t}", "public void createObservers() {\n\n\t\t// Airport screens\n\n\t\tAirportScreen airportScreen1 = new AirportScreen(airport, \"AIRPORT (1)\", airportScreen1Dialog);\n\t\tAirportScreen airportScreen2 = new AirportScreen(airport, \"AIRPORT (2)\", airportScreen2Dialog);\n\t\tairport.attach(airportScreen1);\n\t\tairport.attach(airportScreen2);\n\n\t\t// Terminal screens (three each)\n\n\t\tTerminalScreen termAScreen1 = new TerminalScreen(termA, \"TERMINAL A (1)\", termAScreen1Dialog);\n\t\tTerminalScreen termAScreen2 = new TerminalScreen(termA, \"TERMINAL A (2)\", termAScreen2Dialog);\n\t\tTerminalScreen termAScreen3 = new TerminalScreen(termA, \"TERMINAL A (3)\", termAScreen3Dialog);\n\t\ttermA.attach(termAScreen1);\n\t\ttermA.attach(termAScreen2);\n\t\ttermA.attach(termAScreen3);\n\n\t\tTerminalScreen termBScreen1 = new TerminalScreen(termB, \"TERMINAL B (1)\", termBScreen1Dialog);\n\t\tTerminalScreen termBScreen2 = new TerminalScreen(termB, \"TERMINAL B (2)\", termBScreen2Dialog);\n\t\tTerminalScreen termBScreen3 = new TerminalScreen(termB, \"TERMINAL B (3)\", termBScreen3Dialog);\n\t\ttermB.attach(termBScreen1);\n\t\ttermB.attach(termBScreen2);\n\t\ttermB.attach(termBScreen3);\n\n\t\tTerminalScreen termCScreen1 = new TerminalScreen(termC, \"TERMINAL C (1)\", termCScreen1Dialog);\n\t\tTerminalScreen termCScreen2 = new TerminalScreen(termC, \"TERMINAL C (2)\", termCScreen2Dialog);\n\t\tTerminalScreen termCScreen3 = new TerminalScreen(termC, \"TERMINAL C (3)\", termCScreen3Dialog);\n\t\ttermC.attach(termCScreen1);\n\t\ttermC.attach(termCScreen2);\n\t\ttermC.attach(termCScreen3);\n\n\t\t// Gates and gate screens\n\n\t\t// Terminal A\n\t\tfor (int i = 0; i < gatesA.length; ++i) {\n\t\t\tgatesA[i] = new Gate(\"A-\" + (i + 1));\n\t\t\tgatesA[i].attach(new GateScreen(gatesA[i], gatesADialogs[i]));\n\t\t}\n\n\t\t// Terminal B\n\t\tfor (int i = 0; i < gatesB.length; ++i) {\n\t\t\tgatesB[i] = new Gate(\"B-\" + (i + 1));\n\t\t\tgatesB[i].attach(new GateScreen(gatesB[i], gatesBDialogs[i]));\n\t\t}\n\n\t\t// Terminal C\n\t\tfor (int i = 0; i < gatesC.length; ++i) {\n\t\t\tgatesC[i] = new Gate(\"C-\" + (i + 1));\n\t\t\tgatesC[i].attach(new GateScreen(gatesC[i], gatesCDialogs[i]));\n\t\t}\n\t}", "public Object showDiscreteEditor() throws Exception {\n \t\treturn showEditor(EditorDisplayer.getEditor(this, EditorType.DISCRETE));\n \t}", "public void showActivity() {\n setContentView(R.layout.activity_study);\n\n TextView info = (TextView) findViewById(R.id.trial_status);\n info.setText(getResources().getString(R.string.trial_status, Study.getCurrentTrialIndex(), Study.numTrials * 2));\n\n // hide demo button\n if (demosAvailable <= 0) {\n Button demo = (Button) findViewById(R.id.start_demo);\n demo.setVisibility(View.INVISIBLE);\n }\n }" ]
[ "0.6435871", "0.5920553", "0.5367176", "0.53551966", "0.53551966", "0.5310435", "0.5263362", "0.52059877", "0.51850647", "0.5073732", "0.5004903", "0.50021833", "0.5001252", "0.49481055", "0.4918452", "0.48662126", "0.48474243", "0.4844576", "0.48254254", "0.4821765", "0.48040092", "0.4774333", "0.47506317", "0.4749996", "0.4746998", "0.47414067", "0.47348073", "0.47280613", "0.47258833", "0.47196752", "0.47144637", "0.47133523", "0.47103268", "0.4701891", "0.46909177", "0.46665758", "0.4656481", "0.4652348", "0.46490684", "0.46464047", "0.46456793", "0.4643172", "0.4641222", "0.46387264", "0.46306556", "0.46286595", "0.46278787", "0.4617314", "0.4613785", "0.45998302", "0.4595809", "0.45957628", "0.459149", "0.45858684", "0.45825917", "0.45679423", "0.4562464", "0.45563185", "0.45558172", "0.45476848", "0.45458174", "0.45442843", "0.454243", "0.45393553", "0.45345554", "0.4529832", "0.45286646", "0.4527351", "0.45177996", "0.45151767", "0.4505404", "0.4499108", "0.4484365", "0.44821334", "0.4471357", "0.44694945", "0.44631615", "0.44576344", "0.44574276", "0.44545302", "0.44525403", "0.4447424", "0.44470426", "0.44424123", "0.44385776", "0.44319993", "0.44277614", "0.44258583", "0.4424148", "0.4423873", "0.4419355", "0.44127697", "0.44126606", "0.4409428", "0.44065136", "0.44030902", "0.44011348", "0.43997523", "0.43945295", "0.43908432" ]
0.68061244
0
Find the ModelerModule, if not found : abort as this module is mandatory.
@objid ("3e9074cc-ba08-40be-ac20-9f2456c7e329") private IModuleHandle getModelerModule(IModuleCatalog moduleCatalog, IModelioProgress monitor) throws IOException, FileSystemException { IModuleHandle modelerModule = moduleCatalog.findModule("ModelerModule", /* * latest * version */null, monitor); if (modelerModule == null) { final String errMsg = AppProjectCore.I18N.getString("ModelerModuleMissing.Message"); throw new FileNotFoundException(errMsg); } return modelerModule; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Module findModule(String moduleName) {\n if(modules.containsKey(moduleName))\n return modules.get(moduleName);\n //TODO: search in joined mobiles\n return null;\n }", "private Optional<RuntimeModel> loadImportById(String id) {\n Optional<RuntimeModel> runtimeModelOp = registry.get(id);\n if (runtimeModelOp.isPresent()) {\n return runtimeModelOp;\n }\n\n Optional<String> modelPath = runtimeOptions.modelPath(id);\n if (modelPath.isPresent()) {\n return registry.registerFile(modelPath.get());\n }\n\n if (runtimeOptions.isAllowExternal()) {\n return externalImportService.registerExternalImport(id);\n }\n return Optional.empty();\n }", "public boolean loadModel() throws Exception{\r\n\t\t\r\n\t\tboolean rB = false ;\r\n\t\tModelCatalogItem mcItem ;\r\n\t\t\r\n\t\t// before, we have determined name and version according to the request options (e.g. \"latest\")\r\n\t\tmcItem = soappModelCatalog.getItemByModelname( activeModel, activeVersion ); \r\n\t\t// here, an active version should always be defined, if not, the first one will be selected\r\n\t\t\r\n\t\t\r\n\t\tif (mcItem != null){\r\n\t\t\t\t\t\t\t\t\t\t\tout.print(2, \"loading resources for requested model <\"+activeModel+\">, version <\"+activeVersion+\"> ... \") ;\r\n\t\t\t\r\n\t\t\tif ((somData==null) || (somData.getData().getColumnHeaders().size()==0)){\t\t\t\t\t\t\r\n\t\t\t\tsomApplication.loadSource();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// this also sets the data\r\n\t\t\tsoappTransformer = loadSomAppTransformer(mcItem);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\trB= transformIncomingData();\r\n\t\t\t\r\n\t\t\tsoappClassifier = loadSomAppClassifier(mcItem);\r\n\r\n\t\t\trB= (soappTransformer!=null) && (soappClassifier!=null);\r\n\t\t}else{\r\n\t\t\tout.print(2, \"identification resources for requested model <\"+activeModel+\"> failed.\") ;\r\n\t\t}\r\n\t\treturn rB;\r\n\t}", "Value require(String module);", "private Model findOrBuildModelDefinitionForType(ModelicaModel m, Stage stage)\n\t{\n\t\tif (ModelicaTricks.isInfiniteBus(m)) return null;\n\n\t\tStaticType staticType = StaticType.from(m);\n\t\tif (staticType == null) return null;\n\n\t\tModel mdef = ddr.getDynamicModelForStaticType(staticType, stage);\n\t\tif (mdef != null)\n\t\t{\n\t\t\tboolean isGenericModel = true;\n\t\t\tsaveParametersForModel(mdef, m, isGenericModel);\n\t\t\treturn mdef;\n\t\t}\n\n\t\t// FIXME Default modeling for generators should be a fixed injection (or configurable)\n\t\t// Currently we do not build generic model definition for static type Generator\n\t\tif (staticType.equals(StaticType.Generator)) return null;\n\n\t\treturn buildModelDefinitionForStaticType(staticType, m, stage);\n\t}", "public Optional<T> getModule() {\n return Optional.ofNullable(this.module);\n }", "public interface Model {\n /**\n * {@code Predicate} that always evaluate to true\n */\n Predicate<Module> PREDICATE_SHOW_ALL_MODULES = unused -> true;\n\n /**\n * Replaces user prefs data with the data in {@code userPrefs}.\n */\n void setUserPrefs(ReadOnlyUserPrefs userPrefs);\n\n /**\n * Returns the user prefs.\n */\n ReadOnlyUserPrefs getUserPrefs();\n\n /**\n * Returns the user prefs' GUI settings.\n */\n GuiSettings getGuiSettings();\n\n /**\n * Sets the user prefs' GUI settings.\n */\n void setGuiSettings(GuiSettings guiSettings);\n\n /**\n * Returns the user prefs' mod book file path.\n */\n Path getModBookFilePath();\n\n /**\n * Sets the user prefs' mod book file path.\n */\n void setModBookFilePath(Path modBookFilePath);\n\n /**\n * Replaces mod book data with the data in {@code modBook}.\n */\n void setModBook(ReadOnlyModBook modBook);\n\n /**\n * Returns the ModBook\n */\n ReadOnlyModBook getModBook();\n\n /**\n * Returns true if a module with the same identity as {@code module} exists in the mod book.\n */\n boolean hasModule(Module module);\n\n /**\n * Deletes the given module.\n * The module must exist in the mod book.\n */\n void deleteModule(Module module);\n\n /**\n * Adds the given module.\n * {@code module} must not already exist in the mod book.\n */\n void addModule(Module module);\n\n /**\n * Gets the requested module based on given modCode.\n *\n * @param modCode Used to find module.\n * @return Module.\n * @throws CommandException If module does not exist.\n */\n Module getModule(ModuleCode modCode) throws CommandException;\n\n /**\n * Deletes the Exam from the specified module's lessons list.\n */\n void deleteExam(Module module, Exam target);\n\n /**\n * Deletes the Lesson from the specified module's lessons list.\n */\n void deleteLesson(Module module, Lesson target);\n\n /**\n * Checks if a module has the lesson\n */\n boolean moduleHasLesson(Module module, Lesson lesson);\n\n /**\n * Adds a lesson to a module.\n */\n void addLessonToModule(Module module, Lesson lesson);\n\n /**\n * Checks if a module has the lesson\n */\n boolean moduleHasExam(Module module, Exam exam);\n\n /**\n * Adds a lesson to a module.\n */\n void addExamToModule(Module module, Exam exam);\n\n /**\n * Replaces the {@code target} Exam with {@code newExam} from the specified module's exams list.\n */\n void setExam(Module module, Exam target, Exam newExam);\n\n /**\n * Replaces the {@code target} Exam with {@code newLesson} from the specified module's lessons list.\n */\n void setLesson(Module module, Lesson target, Lesson newLesson);\n\n /**\n * Replaces the given module {@code target} with {@code editedModule}.\n * {@code target} must exist in the mod book.\n * The module identity of {@code editedModule} must not be the same as another existing module in the mod book.\n */\n void setModule(Module target, Module editedModule);\n\n /**\n * Returns an unmodifiable view of the filtered module list\n */\n ObservableList<Module> getFilteredModuleList();\n\n /**\n * Updates the filter of the filtered module list to filter by the given {@code predicate}.\n *\n * @throws NullPointerException if {@code predicate} is null.\n */\n void updateFilteredModuleList(Predicate<Module> predicate);\n}", "@Override\n\tpublic void prepareModule() throws Exception {\n\n\t}", "private void setDetector() {\n\n try {\n AssetManager assetManager = getAssets();\n String[] fileList = assetManager.list(modelPath);\n String modelType = dlaasD.ReturnModelType(assetManager, modelPath);\n\n if (fileList.length != 0) {\n\n if (modelType.equals(\"mobilenet_1\")) {\n detector = new MobileNet(rs, assetManager, modelPath);\n } else {\n\n detector = new MobileNetSSD(rs, assetManager, modelPath);\n }\n } else {\n if (modelType.equals(\"mobilenet_1\")) {\n String modelDir = Environment.getExternalStorageDirectory().getPath() + \"/\" + modelPath;\n detector = new MobileNet(rs, assetManager, modelDir);\n } else {\n String modelDir = Environment.getExternalStorageDirectory().getPath() + \"/\" + modelPath;\n detector = new MobileNetSSD(rs, assetManager, modelDir);\n }\n\n }\n } catch (IOException e) {\n Log.d(\"onFindModule: \", e.toString());\n e.printStackTrace();\n }\n }", "interface ExternalModuleChecker {\n\t/**\n\t * To check is external-module registered well\n\t *\n\t * @param module module to check\n\t * @return true if registered well\n\t */\n\tboolean isValidModule(ExternalModule module);\n}", "public boolean hasModel() {\n return false;\r\n }", "Optional<Module> getReadModule();", "private LanguageModule getModuleByRequiredInterface(ArrayList<LanguageModule> modulesList, RequiredInterface requiredInterface){\n\t\tfor (LanguageModule languageModule : modulesList) {\n\t\t\tif(languageModule.getRequiredInterface() != null && languageModule.getRequiredInterface().getName().equals(requiredInterface.getName()))\n\t\t\t\treturn languageModule;\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n protected boolean isSwitchFor(EPackage ePackage)\r\n {\r\n return ePackage == modelPackage;\r\n }", "@Override\r\n protected boolean isSwitchFor(EPackage ePackage)\r\n {\r\n return ePackage == modelPackage;\r\n }", "boolean hasDeployedModel();", "@Override\n protected boolean isSwitchFor(EPackage ePackage)\n {\n return ePackage == modelPackage;\n }", "@Override\n protected boolean isSwitchFor(EPackage ePackage)\n {\n return ePackage == modelPackage;\n }", "@Override\n protected boolean isSwitchFor(EPackage ePackage)\n {\n return ePackage == modelPackage;\n }", "@Override\n protected boolean isSwitchFor(EPackage ePackage)\n {\n return ePackage == modelPackage;\n }", "@Override\n protected boolean isSwitchFor(EPackage ePackage)\n {\n return ePackage == modelPackage;\n }", "@Override\n protected boolean isSwitchFor(EPackage ePackage)\n {\n return ePackage == modelPackage;\n }", "protected static Module getModule(String workspaceId, String modelId,\n String moduleId) throws AnaplanAPIException {\n Model model = getModel(workspaceId, modelId);\n\n if (model == null) {\n return null;\n }\n if (moduleId == null || moduleId.isEmpty()) {\n LOG.error(\"A module ID must be provided\");\n return null;\n }\n Module module = model.getModule(moduleId);\n if (module == null) {\n LOG.error(\"Module \\\"{}\\\" not found in workspace \\\"{}\\\", model \\\"{}\\\"\", moduleId, workspaceId, modelId);\n }\n return module;\n }", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage)\n\t{\n\t\treturn ePackage == modelPackage;\n\t}", "public boolean modelPresent() {\r\n return models.size() > 0;\r\n }", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "@Override\n\tprotected boolean isSwitchFor(EPackage ePackage) {\n\t\treturn ePackage == modelPackage;\n\t}", "boolean isValidModule(ExternalModule module);", "default Optional<RecommendationModule> getRecommendationModule(\n @Nonnull Urn userUrn,\n @Nonnull RecommendationRequestContext requestContext) {\n if (!isEligible(userUrn, requestContext)) {\n return Optional.empty();\n }\n\n List<RecommendationContent> recommendations = getRecommendations(userUrn, requestContext);\n if (recommendations.isEmpty()) {\n return Optional.empty();\n }\n\n return Optional.of(new RecommendationModule().setTitle(getTitle())\n .setModuleId(getModuleId())\n .setRenderType(getRenderType())\n .setContent(new RecommendationContentArray(recommendations)));\n }", "@Override\r\n\tprotected boolean isSwitchFor(EPackage ePackage) {\r\n\t\treturn ePackage == modelPackage;\r\n\t}", "@Override\r\n\tprotected boolean isSwitchFor(EPackage ePackage) {\r\n\t\treturn ePackage == modelPackage;\r\n\t}", "@Override\r\n\tprotected boolean isSwitchFor(EPackage ePackage) {\r\n\t\treturn ePackage == modelPackage;\r\n\t}", "@Override\r\n\tprotected boolean isSwitchFor(EPackage ePackage) {\r\n\t\treturn ePackage == modelPackage;\r\n\t}", "private LanguageModule getModuleByProvidedInterface(ArrayList<LanguageModule> modulesList, ProvidedInterface providedInterface){\n\t\tfor (LanguageModule languageModule : modulesList) {\n\t\t\tif(languageModule.getProvidedInterface() != null && languageModule.getProvidedInterface().getName().equals(providedInterface.getName()))\n\t\t\t\treturn languageModule;\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n\tprotected boolean isSwitchFor(EPackage ePackage) {\r\n return ePackage == modelPackage;\r\n }", "boolean hasModel();", "boolean hasModel();", "public EngineSwitch() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = EnginePackage.eINSTANCE;\n\t\t}\n\t}", "private JavaPackage checkAndUseApplicationModule(JavaPackage controllerPackage) {\n\n if (!typeLocationService.hasModuleFeature(\n projectOperations.getPomFromModuleName(controllerPackage.getModule()),\n ModuleFeatureName.APPLICATION)) {\n\n LOGGER\n .log(\n Level.WARNING,\n \"Focused or specified module isn't an application module (containing a class \"\n + \"annotated with @SpringBootApplication). Looking for an application module and default package...\");\n\n // Validate that project has at least one application module\n Validate.notEmpty(typeLocationService.getModuleNames(ModuleFeatureName.APPLICATION),\n \"The project must have at least one application module to publish web finders.\");\n\n // Get the first application module\n String moduleName =\n typeLocationService.getModuleNames(ModuleFeatureName.APPLICATION).iterator().next();\n Pom module = projectOperations.getPomFromModuleName(moduleName);\n controllerPackage =\n new JavaPackage(typeLocationService.getTopLevelPackageForModule(module).concat(\".web\"),\n moduleName);\n }\n return controllerPackage;\n }", "@Override\n public String getModuleName() {\n return \"kerencore\";\n }", "public boolean selectFromAvailableModels() throws Exception{\r\n\t\t\r\n\t\tboolean rB=false;\r\n\t\t\t\r\n\t\tbaseFolder = soappProperties.getBaseModelFolder() ;\r\n\t\t\t\t\t // sth like: \"D:/data/projects/_classifierTesting/bank2/models\"\r\n\t\t\r\n\t\tactiveModel = soappProperties.getActiveModel() ; // sth like \"bank2\" \r\n\t\t// this refers to the name of the project as it is contained in the model file!!\r\n\t\t// on first loading, a catalog of available model will be created for faster access if it does not exists\r\n\t\r\n\t\tif (activeModel.length()>0){ \r\n\t\t\t\t\t\t\t\t\t\t\tout.print(2, \"checking model catalog associated with selected project ...\") ;\r\n\t\t\tcheckCreateLocationCatalog() ;\r\n\t\t} else{\r\n\t\t\t// alternatively, we set the active model to blank here, and provide the package name ;\r\n\t\t\t// whenever the active model name is given (and existing) it will be preferred!\r\n\t\t\t \r\n\t\t\tmodelPackageName = soappProperties.getModelPackageName();\r\n\t\t\tactiveModel = getModelThroughPackage(modelPackageName ) ;\r\n\t\t}\r\n\t\t\r\n\t\t// now reading from the modelcatalog.dat\r\n\t\t\r\n\t\t/*\r\n\t \t_MODELSELECT_LATEST = 1;\r\n\t\t_MODELSELECT_FIRSTFOUND = 2;\r\n\t\t_MODELSELECT_BEST = 4;\r\n\t\t_MODELSELECT_ROBUST = 8;\r\n\t\t_MODELSELECT_VERSION = 16 ;\r\n\t\t */\r\n\t\tModelCatalogItem mcItem= null, mci = null ;\r\n\r\n\t\tif (soappModelCatalog.size()>0){\r\n\t\t\tint m=0;\r\n\t\t\tboolean mciOK=false;\r\n\t\t\t\r\n\t\t\twhile ( (mciOK==false) && (mcItem==null) && (m<soappModelCatalog.size())){\r\n\t\t\t\t\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_FIRSTFOUND){\r\n\t\t\t\t\tmci = soappModelCatalog.getItem(m);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_LATEST){\r\n\t\t\t\t\tmci = soappModelCatalog.getLatestItem();\r\n\t\t\t\t}\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_BEST){\r\n\t\t\t\t\tmci = soappModelCatalog.getBestItem();\r\n\t\t\t\t}\r\n\t\t\t\tif (soappProperties.getModelSelectionMode() == SomAppProperties._MODELSELECT_VERSION){\r\n\t\t\t\t\tmci = soappModelCatalog.getItemByModelname( activeModel, soappProperties.preferredModelVersion ) ;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// checking whether the model contains the required fields mcItem.requiredfields\r\n\t\t\t\tif (modelCheckRequirements(mci) == false ){\r\n\t\t\t\t\tsoappModelCatalog.addToExcludedItems(mci);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmciOK=true;\r\n\t\t\t\t\tmcItem = mci;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm++;\r\n\t\t\t} // ->\r\n\t\t\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmcItem=null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tactiveModel = \"\" ;\r\n\t\tactiveVersion = \"\" ;\r\n\t\t\r\n\t\tif (mcItem!=null){\r\n\t\t\tactiveVersion = mcItem.modelVersion;\r\n\t\t\tactiveModel = mcItem.modelName;\r\n\t\t\trB=true;\r\n\t\t\t\r\n\t\t\tif (activeModel.length()==0){\r\n\t\t\t\trB = false;\r\n\t\t\t}\r\n\t\t\tif (activeVersion.length()==0){\r\n\t\t\t\trB = false;\r\n\t\t\t}\r\n\r\n\t\t}else{ // mcItem ?\r\n\t\t\tout.print(2,\"No matching model (by required fields) found in the list (n=\"+soappModelCatalog.size()+\") of available models.\");\r\n\t\t}\r\n\t\treturn rB;\r\n\t}", "public PreprocessSwitch()\n\t{\n\t\tif (modelPackage == null)\n\t\t{\n\t\t\tmodelPackage = PreprocessPackage.eINSTANCE;\n\t\t}\n\t}", "MatchModelPackage getMatchModelPackage();", "private IReasoner findReasoner(ReasonerDescriptor descriptor) {\r\n if (null == descriptor) {\r\n throw new IllegalArgumentException(\"descriptor must not be null\");\r\n }\r\n IReasoner reasoner = registry.findReasoner(descriptor);\r\n if (null == reasoner) {\r\n throw new IllegalArgumentException(\"descriptor does not fit to a registered reasoner\");\r\n }\r\n return reasoner;\r\n }", "public AdwithoutruntimeSwitch() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = AdwithoutruntimePackage.eINSTANCE;\n\t\t}\n\t}", "@Override\r\n\tpublic ModelManager getModelManager() {\n\t\treturn null;\r\n\t}", "public String getModel() {\n\t\treturn \"0.11.2\";\n\t}", "public abstract ModularConfigurationModule<T> getDefaultModule();", "public ValidationModule getModuleDefinition();", "boolean modelSupports(Object modelID, int modelConstant) throws Exception;", "public String getModuleId() throws BaseTechnicalError, RemoteException {\n\t return JazzQAConstants.MODULE_PEDVALIDACAO;\n\t}", "private void setupModel() {\n\n //Chooses which model gets prepared\n switch (id) {\n case 2:\n singlePackage = new Node();\n activeNode = singlePackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_solo)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 3:\n multiPackage = new Node();\n activeNode = multiPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_multi_new)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 4:\n wagonPackage = new Node();\n activeNode = wagonPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_car_new)\n .build().thenAccept(a -> activeRenderable = a)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n default:\n mailbox = new Node();\n activeNode = mailbox;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.mailbox)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n }\n }", "public Boolean getModel () throws CGException {\n return ivModel;\n }", "modelProvidersI getProvider();", "public ProcessModel getProcessModel(String modelId)\r\n throws ProcessManagerException {\r\n try {\r\n return Workflow.getProcessModelManager().getProcessModel(modelId);\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"ProcessManagerSessionControler\",\r\n \"processManager.UNKNOWN_PROCESS_MODEL\", modelId, e);\r\n }\r\n }", "public Minerv1AdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = Minerv1Package.eINSTANCE;\n\t\t}\n\t}", "Requires getRequires();", "public Object loadModelClass(String name) throws ModelManagerException {\n\t\tClassLoader cl = getClassLoader();\n\t\tString pkg = getModelPackageStr();\n\t\ttry {\n\t\t\tClass<?> af = cl.loadClass(pkg + name);\n\t\t\treturn af.newInstance();\n\t\t} catch (Exception e) {\n\t\t\tthrow new ModelManagerException(\"Error loading the model class '\" + name + \"' of package '\"\n\t\t\t\t\t+ (pkg != \"\" ? pkg : \"(default)\") + \"'.\", e);\n\t\t}\n\t}", "public interface MauModule {\r\n\t/**\r\n\t * Initializes the module and loads all the configurations and everything else that needs to be\r\n\t * loaded.\r\n\t * \r\n\t * @param plugin The hosting instance of Maussentials.\r\n\t */\r\n\tpublic void load(Maussentials plugin);\r\n\t\r\n\t/**\r\n\t * Unload the MauModule.\r\n\t */\r\n\tpublic void unload();\r\n\t\r\n\t/**\r\n\t * @return True, if the module is loaded. False otherwise.\r\n\t */\r\n\tpublic boolean isLoaded();\r\n\t\r\n\t/**\r\n\t * Get the list of module names that this module depends on.\r\n\t */\r\n\tpublic default String[] getDependencies() {\r\n\t\treturn new String[0];\r\n\t}\r\n}", "public ProgramModule getModule(String treeName, String name);", "@Override\n\tpublic String getModuleName() {\n\t\treturn \"kereneducation\";\n\t}", "@Override\n\tpublic String getModuleName() {\n\t\treturn \"kereneducation\";\n\t}", "public void useModel(String location) throws ModelManagerException {\n\t\tassert isValidModelDir(location);\n\n\t\tthis.mdir = location;\n\t\tLog.d(\"ModelManager\", \"Loading model from \" + getModelURI());\n\t\ttry {\n\t\t\tmodelxml = db.parse(getInStream(\"model.xml\"));\n\t\t} catch (Exception e) {\n\t\t\tthrow new ModelManagerException(\"Unexpected Exception in AModelManager.setModelDir: \" + e.getMessage(), e);\n\t\t}\n\n\t\tmodelxml.normalize();\n\t\tmodelnode = modelxml.getElementsByTagName(\"model\").item(0);\n\n\t\tString type = getModelXMLAttribute(\"type\");\n\t\tmtype = ModelType.parse(type);\n\t\tif (mtype == ModelType.Unknown)\n\t\t\tthrow new ModelManagerException(\"Unknown model type: \" + type);\n\n\t\t// Parse model data machine format\n\t\tmor = new MathObjectReader();\n\t\tString machformat = getModelXMLAttribute(\"machformat\");\n\t\tif (\"le\".equals(machformat)) {\n\t\t\tmor.MachineFormat = MachineFormats.LittleEndian;\n\t\t} else {\n\t\t\tmor.MachineFormat = MachineFormats.BigEndian;\n\t\t}\n\t}", "public ModuleDecision getModule() {\n return module;\n }", "ComponentmodelPackage getComponentmodelPackage();", "public abstract M getModel();", "public Modello getModello() {\r\n\t\treturn mod;\r\n\t}", "Module getModule(ModuleCode modCode) throws CommandException;", "public String getModuleName() {\n\t\treturn \"IGA: Prepare data for Model (Decision Tree)\";\n\t}", "public FMSwitch() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = FMPackage.eINSTANCE;\n\t\t}\n\t}", "@Override\n\tpublic String getModuleName() {\n\t\treturn \"kerenrh\";\n\t}", "public ModelSwitch() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = ModelPackage.eINSTANCE;\n\t\t}\n\t}", "public void getDeviceByModelNumber()\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter Model number \");\r\n\t\t\tString searchModelNumber = sc.nextLine();\r\n\t\t\t\r\n\t\t\tDevice d = record.getDeviceByModelNumber(searchModelNumber);\r\n\t\t\tprintDeviceDetails(d);\r\n\t\t}", "public void testGetModel() {\n System.out.println(\"getModel\");\n Wizard instance = new Wizard();\n WizardModel result = instance.getModel();\n assertNotNull(result);\n }", "boolean isVirtualModel(Object modelID) throws Exception;", "private interface LoadStrategy {\n /**\n * Perform loading on the specified module.\n * \n * @param logger logs the process\n * @param moduleName the name of the process\n * @param moduleDef a module\n * @throws UnableToCompleteException\n */\n void load(TreeLogger logger, String moduleName, ModuleDef moduleDef)\n throws UnableToCompleteException;\n }", "@Override\n public void playMonument() throws ModelException {\n if (!GameModelFacade.instance().canPlayMonument()) {\n throw new ModelException(\"Preconditions for action not met.\");\n }\n\n try {\n String clientModel = m_theProxy.playMonument(GameModelFacade.instance().getLocalPlayer().getIndex());\n new ModelInitializer().initializeClientModel(clientModel, m_theProxy.getPlayerId());\n } catch (NetworkException e) {\n throw new ModelException(e);\n }\n }", "public AdlSwitch()\n {\n if (modelPackage == null)\n {\n modelPackage = AdlPackage.eINSTANCE;\n }\n }", "public final Token getRequireToken()\n {\n Token token = getModule();\n\n if (token.isNull())\n {\n token = getVersion();\n\n if (token.isNull())\n {\n if (((token = getToken(QuoteToken.class, 1))).isNull())\n {\n token = getToken(QuoteLikeToken.class, 1);\n }\n }\n }\n\n return token;\n }", "public void initClassificationModule(KinectInterface kinectModule, MovementFoundInterface engineModule);", "public ProgramModule getRootModule(long treeID);", "protected void initModules()\n {\n\n }", "public boolean hasModule() {\n return fieldSetFlags()[2];\n }", "private Module selectModuleFromPath(String path) {\n\n\t\tModule module = modules.get(path);\n\t\tif (module != null)\n\t\t\treturn module;\n\t\telse\n\t\t\treturn new DiscardingModule();\n\t}", "public IReasoner findReasoner(String name, String version) {\r\n if (null == name) {\r\n throw new IllegalArgumentException(\"name must not be null\");\r\n }\r\n IReasoner reasoner = registry.findReasoner(name, version);\r\n if (null == reasoner) {\r\n throw new IllegalArgumentException(\"descriptor does not fit to a registered reasoner\");\r\n }\r\n return reasoner;\r\n }", "public IspemSwitch() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = IspemPackage.eINSTANCE;\n\t\t}\n\t}" ]
[ "0.5332333", "0.5142807", "0.5091444", "0.5002318", "0.49738294", "0.49608737", "0.49583367", "0.493609", "0.4934476", "0.48175567", "0.47867393", "0.47852895", "0.4782793", "0.47497544", "0.47497544", "0.4749496", "0.4744167", "0.4744167", "0.4744167", "0.4744167", "0.4744167", "0.4744167", "0.4735443", "0.47341365", "0.47256193", "0.468619", "0.468619", "0.468619", "0.468619", "0.468619", "0.468619", "0.468619", "0.468619", "0.468619", "0.468619", "0.468619", "0.468619", "0.468619", "0.468619", "0.468619", "0.468619", "0.46791765", "0.4677722", "0.4671784", "0.4671784", "0.4671784", "0.4671784", "0.46657604", "0.46604893", "0.46503368", "0.46503368", "0.4633445", "0.46217698", "0.46159038", "0.46146464", "0.46103206", "0.46040016", "0.45851642", "0.45839214", "0.4578947", "0.45762604", "0.4561739", "0.4537836", "0.45155397", "0.45149666", "0.45020193", "0.4488636", "0.44879338", "0.44876835", "0.44837242", "0.44834742", "0.44798115", "0.44675925", "0.44673806", "0.44647187", "0.44647187", "0.44638374", "0.44614035", "0.44497937", "0.4439965", "0.44343182", "0.44326922", "0.44223303", "0.44202647", "0.44078138", "0.44018656", "0.43966824", "0.43962538", "0.4393812", "0.4387569", "0.43863186", "0.4380315", "0.43797967", "0.43729293", "0.43664303", "0.43582252", "0.43557656", "0.43498486", "0.4341881", "0.4341807" ]
0.6696505
0
Person component. Generated by Jspresso. All rights reserved.
@SuppressWarnings("all") public interface Person { /** * Constant value for lastname. */ String LASTNAME = "lastname"; /** * Gets the lastname. * * @hibernate.property * @hibernate.column * name = "LASTNAME" * length = "64" * @return the lastname. */ java.lang.String getLastname(); /** * Sets the lastname. * * @param lastname * the lastname to set. */ void setLastname(java.lang.String lastname); /** * Constant value for firstname. */ String FIRSTNAME = "firstname"; /** * Gets the firstname. * * @hibernate.property * @hibernate.column * name = "FIRSTNAME" * length = "64" * @return the firstname. */ java.lang.String getFirstname(); /** * Sets the firstname. * * @param firstname * the firstname to set. */ void setFirstname(java.lang.String firstname); /** * Constant value for createTimestamp. */ String CREATE_TIMESTAMP = "createTimestamp"; /** * Gets the createTimestamp. * * @hibernate.property * type = "timestamp" * @hibernate.column * name = "CREATE_TIMESTAMP" * @return the createTimestamp. */ java.util.Date getCreateTimestamp(); /** * Sets the createTimestamp. * * @param createTimestamp * the createTimestamp to set. */ void setCreateTimestamp(java.util.Date createTimestamp); /** * Constant value for lastUpdateTimestamp. */ String LAST_UPDATE_TIMESTAMP = "lastUpdateTimestamp"; /** * Gets the lastUpdateTimestamp. * * @hibernate.property * type = "timestamp" * @hibernate.column * name = "LAST_UPDATE_TIMESTAMP" * @return the lastUpdateTimestamp. */ java.util.Date getLastUpdateTimestamp(); /** * Sets the lastUpdateTimestamp. * * @param lastUpdateTimestamp * the lastUpdateTimestamp to set. */ void setLastUpdateTimestamp(java.util.Date lastUpdateTimestamp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void create(Person person) {\n\r\n\t}", "public Person getPerson()\r\n\t{\r\n\t\treturn person;\r\n\t}", "private TypicalPersons() {}", "private TypicalPersons() {}", "public SamplePerson getPersonById(int id) {\n //TODO\n throw new NotImplementedException();\n }", "@Schema(hidden = true)\n public void setPerson(Person person) {\n this.person = person;\n }", "@Override\r\n\tpublic void create(Person p) \r\n\t{\n\t\t\r\n\t}", "void lookupAndSaveNewPerson();", "public void setPerson( Person person )\r\n\t{\r\n\t\tthis.person = person;\r\n\t}", "Person createPerson();", "public Person()\n {\n this.name = \"John Doe\";\n this.address = \"1234 Somewhere Dr.\";\n this.phoneNumber = \"309-555-1234\";\n this.emailAddress = \"[email protected]\";\n }", "public void create(Person p) {\n\t\t\n\t}", "@Schema(hidden = true)\n public Person getPerson() {\n return person;\n }", "public String getName(){\n return personName;\n }", "PersonDetails(String name) {\n this.name = name;\n }", "public void addPerson(Person p);", "public GPerson getPerson() {\r\n\t\treturn person;\r\n\t}", "public static void AddPerson(Person person)\n {\n dataWraper.addRecordTrans(person, dataWraper.tables.get(Person.class.getAnnotation(Entity.class).name()), null);\n }", "public void setPersonID(String personID){\n this.personID = personID;\n }", "public boolean insertPerson(SamplePerson person) {\n //TODO\n throw new NotImplementedException();\n }", "public Person() {\n\t\tthis.name = \"Unknown\"; \n\t}", "@Override\n\tpublic String getPerson() throws RemoteException {\n\t\treturn \"[Person name=\" + name + \",sex=\" + sex + \",age=\" + age + \"]\";\n\t}", "public String showPerson(){\n return _person.toString();\n }", "public String getPersonID(){\n return personID;\n }", "void visitElement_person(org.w3c.dom.Element element) { // <person>\n // element.getValue();\n person = new Person();\n list.persons.add(person);\n org.w3c.dom.NamedNodeMap attrs = element.getAttributes();\n for (int i = 0; i < attrs.getLength(); i++) {\n org.w3c.dom.Attr attr = (org.w3c.dom.Attr)attrs.item(i);\n if (attr.getName().equals(\"first-name\")) { // <person name=\"???\">\n person.firstName = attr.getValue();\n }\n if (attr.getName().equals(\"surname\")) { // <person sirname=\"???\">\n person.surname = attr.getValue();\n }\n if (attr.getName().equals(\"email\")) { // <person email=\"???\">\n person.email = attr.getValue();\n }\n }\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n }\n }\n }", "public Person(String name)\n {\n this.name = name;\n }", "private String addPerson()\n {\n String phone = getPhone();\n System.out.println(\"Person tilføjet.\");\n System.out.println(\"\");\n return phone;\n }", "public void setPersonType(PersonType_Tp type) { this.personType = type; }", "public void savePerson(Person person) {\n\t\t\n\t}", "public void CreatePerson(Person p){\n\t\tWeddingConnectionPoolManager con = new WeddingConnectionPoolManager(); \n\t\t Person p1 = new Person(p.getId(), p.getFirstName(), p.getLastName(), p.getRelationship(),\n\t\t\t\t p.getAddress(), p.getPhone(), p.getEmail(), p.getComment(), user.getId());\n\t\t System.out.println(\"p1 : \" + p1);\n\t\t System.out.println(\"p : \" + p);\n\t\t// TODO - should to iterate on the results that returns when calling to \"getpersons\" method.\n\t\tPersonDBManager.getInstance().CreateNewPerson(con.getConnectionFromPool(), p1);\t\n\t}", "protected ProcessAddPerson() {\n }", "@Override\n public String toString() {\n return \"Person{\" + getId() + \" : \" + getUsername() + \" : \" + getJmeno() + \" \" + getPrijmeni() + '}';\n }", "public Person createPerson(Person p);", "public Person(String name) {\n this.name = name;\n }", "public Person(String firstName, String lastName) {\r\n name = new Name(firstName, lastName); \r\n id = (int )(Math.random() * 200 + 100);; \r\n }", "public Person (String _name, int _ID) {\n name = _name;\n ID = _ID;\n }", "private person getEditPerson(person selected_person) {\n\n selected_person.setName(textView_name.getText().toString());\n selected_person.setDate(textView_date.getText().toString());\n selected_person.setNeck(textView_neck.getText().toString());\n selected_person.setBust(textView_bust.getText().toString());\n selected_person.setChest(textView_chest.getText().toString());\n selected_person.setWaist(textView_waist.getText().toString());\n selected_person.setHip(textView_hip.getText().toString());\n selected_person.setInseam(textView_inseam.getText().toString());\n selected_person.setComment(textView_comment.getText().toString());\n\n return selected_person;\n }", "public Person(String name){\n\t\tthis.name = name ; \n\t}", "void crearNuevaPersona(Persona persona);", "public Person(){\r\n\t\tsuper();\r\n\t}", "public Person(String name){\n\t\t\n\t\t\n\t\tthis.myName = name;\n\t\t\n\t}", "@Override\r\n\tpublic Person getPerson(Long personId) {\n\r\n\r\n\t\tPerson person = new Person(\"bob\", String.format(\"Unit%d\", personId), \"carol\", \"alice\", \"42\");\r\n\t\tperson.setId(personId);\r\n\t\treturn person;\r\n\t}", "People(String name, int age) {\n this.name = name;\n this.age = age;\n }", "public void savePerson() {\n\t\tSystem.out.println(\"save person\");\n\t}", "public void savePerson() {\n\t\tSystem.out.println(\"save person\");\n\t}", "public Person() {\r\n setPersonID(null);\r\n setAssocUserName(null);\r\n setFirstName(null);\r\n setLastName(null);\r\n setGender(null);\r\n setFatherID(null);\r\n setMotherID(null);\r\n setSpouseID(null);\r\n }", "Builder addAccountablePerson(Person value);", "public int getPersonId() {\n return personId;\n }", "private Person getPerson() {\n String fore = this.forenameCombo.getSelectedItem().toString();\n String sur = this.surnameCombo.getSelectedItem().toString();\n String sect = this.sectionCombo.getSelectedItem().toString();\n Person myPers = pers.getPerson(fore, sur, sect);\n return myPers;\n }", "public Person() {\r\n\t\tid = \"00000\";\r\n\t\tfName = \"unknown\";\r\n\t\tlName = \"unknown\";\r\n\t\tbirthday = LocalDate.now();\r\n\t\tphone = \"unknown\";\r\n\t\tstatus = \"unknown\";\r\n\t\tcontacts = new ArrayList<String>();\r\n\t}", "public void setContactPerson(String contactPerson) {\n this.contactPerson = contactPerson;\n }", "public void savePerson() {\n\t\tSystem.out.println(\"save--person\");\n\t}", "Builder addCreator(Person value);", "List<Person> persons(final PersonStringAware person,final AddressStringAware address, final Contact contact, final Circle distance, final Paging paging);", "public void addPerson(Person thePerson) {\r\n staff.add(thePerson);\r\n }", "public Person (String firstName, String lastName, String address) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.address = address;\n\n }", "public void setPersonId(long personId);", "public XmlAdaptedPerson() {}", "public PersonType_Tp getPersonType() { return personType; }", "@XmlTransient\n\t\t\tpublic Person getPerson() {return person;}", "public static void personTest(){\n ArrayList<Person> people = new ArrayList<>();\n //people[0] = new Person(\"Fer\", \"Mendoza\", true);\n people.add(new Person(\"Fer\", \"Mendoza\", true));\n people.add(new Person(\"Stacy\", \"Malibu\", false));\n people.add(new Person(\"Ana\", \"Morton\", true));\n\n for (Person person : people) {\n System.out.println(\"person.getFullName() = \" + person.getFullName());\n }\n\n }", "public void personIdentity(String name, String string) {\n\t\t\r\n\t}", "public PersonResult(Person person){\n super(\"\");\n this.person = person;\n }", "public Person getUserById(int id);", "public String getType() {\n\t\t\treturn \"person\";\n\t\t}", "public void updatePerson() {\n\t\tSystem.out.println(\"update person\");\n\t}", "public String getPersonNum(){\n return personNum;\n }", "public void addperson(Person p, int floorNum) {\n\r\n\r\n }", "public Person(String name, String phoneNumber, String email){\n setName(name);\n setPhoneNumber(phoneNumber);\n setEmail(email);\n }", "private FacadePerson() throws personNotFoundExeption{}", "void addPerson(Person person) throws UniquePersonList.DuplicatePersonException;", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "private MyPersonModelProvider() {\n\t\t\tpersons = new ArrayList<MyPerson>();\n\t\t\tpersons.add(new MyPerson(\"AFirstName1\", \"ALastName1\", \"female\", true));\n\t\t persons.add(new MyPerson(\"CFirstName1\", \"CLastName1\", \"female\", true));\n\t\t persons.add(new MyPerson(\"DFirstName1\", \"DLastName1\", \"male\", true));\n\t\t persons.add(new MyPerson(\"BFirstName1\", \"BLastName1\", \"female\", true));\n\t\t persons.add(new MyPerson(\"AFirstName3\", \"ALastName3\", \"female\", true));\n\t\t persons.add(new MyPerson(\"CFirstName3\", \"CLastName3\", \"female\", true));\n\t\t persons.add(new MyPerson(\"DFirstName3\", \"DLastName3\", \"male\", true));\n\t\t persons.add(new MyPerson(\"BFirstName3\", \"BLastName3\", \"female\", true));\n\t\t persons.add(new MyPerson(\"AFirstName2\", \"ALastName2\", \"male\", false));\n\t\t persons.add(new MyPerson(\"CFirstName2\", \"CLastName2\", \"female\", true));\n\t\t persons.add(new MyPerson(\"DFirstName2\", \"DLastName2\", \"female\", true));\n\t\t persons.add(new MyPerson(\"BFirstName2\", \"BLastName2\", \"female\", true));\n\t\t}", "public void setOwner(Person person) \n {\n owner = person;\n }", "public Human getPerson() {\n\t\treturn this.person;\n\t}", "@Override\r\n public boolean create(Person person) {\n return false;\r\n }", "public Person registerOwner() {\n registerOwnerButton.setOnAction(e -> {\n if (validatePersonData() == DataControl.SUCCESS) {\n String birthNo = birthNoField.getText();\n String firstName = firstNameField.getText();\n String lastName = lastNameField.getText();\n String telephoneNo = telephoneNoField.getText();\n String email = emailField.getText();\n String zipCode = zipCodeField.getText();\n String streetAddress = streetAddressField.getText();\n person = new Person(birthNo, firstName, lastName, telephoneNo,\n email, zipCode, streetAddress);\n MessageDialog.showMessageDialog(\"Registrert\",\n \"Du har nå registrert en person ny eier av bilen.\",\n MessageDialog.INFORMATION_ICON,\n MessageDialog.OK_OPTION);\n stage.close();\n } else {\n if (MessageDialog.showMessageDialog(\"Ugyldig\",\n \"Ugyldig informasjon. Ønsker du å gjøre om?\",\n MessageDialog.INFORMATION_ICON,\n MessageDialog.YES__NO_OPTION) ==\n MessageDialog.YES_OPTION) {\n // do nothing after closing dialog\n } else {\n stage.close();\n }\n }\n });\n stage.showAndWait();\n return person;\n }", "com.zzsong.netty.protobuff.two.ProtoData.Person getPerson();", "public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}", "public void setOwner(Person person) {\n _owner = person;\n }", "@Override\n\tpublic void addPerson(User pUser) {\n\t\t\n\t}", "public Person() {\n\t\t\n\t}", "public Person(String firstName, String lastName) {\n this.firstName = firstName;\n this.lastName = lastName;\n }", "public Person(String name, String address, String postalCode, String city, String phone){\n // initialise instance variables\n this.name = name;\n this.address = address;\n this.postalCode = postalCode;\n this.city = city;\n this.phone = phone;\n }", "@Override\n\tpublic Types getType() {\n\t\treturn GameObject.Types.PERSON;\n\t}", "public void setPersonId(int personId) {\n this.personId = personId;\n }", "public Person(String name) {\n\t\tthis.name = name;\n\t\tSystem.out.println(\"Instantiated a Person Object\");\n\t}", "People getUser();", "public List<SamplePerson> getAllPeople() {\n //TODO\n throw new NotImplementedException();\n }", "public ShelterPerson(){\n\t\tthis.firstName = \"\";\n\t\tthis.lastName = \"\";\n\t}", "public com.zzsong.netty.protobuff.two.ProtoData.Person getPerson() {\n if (personBuilder_ == null) {\n if (dataBodyCase_ == 2) {\n return (com.zzsong.netty.protobuff.two.ProtoData.Person) dataBody_;\n }\n return com.zzsong.netty.protobuff.two.ProtoData.Person.getDefaultInstance();\n } else {\n if (dataBodyCase_ == 2) {\n return personBuilder_.getMessage();\n }\n return com.zzsong.netty.protobuff.two.ProtoData.Person.getDefaultInstance();\n }\n }", "@Override\n\tpublic void visit(final GrandMa person) {\n\t\t\n\t}", "public final EObject rulePerson() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_2=null;\n EObject lv_attribute_1_0 = null;\n\n EObject lv_attribute_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:459:28: ( (otherlv_0= 'person' ( (lv_attribute_1_0= rulePersonAttribute ) ) (otherlv_2= ',' ( (lv_attribute_3_0= rulePersonAttribute ) ) )* ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:460:1: (otherlv_0= 'person' ( (lv_attribute_1_0= rulePersonAttribute ) ) (otherlv_2= ',' ( (lv_attribute_3_0= rulePersonAttribute ) ) )* )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:460:1: (otherlv_0= 'person' ( (lv_attribute_1_0= rulePersonAttribute ) ) (otherlv_2= ',' ( (lv_attribute_3_0= rulePersonAttribute ) ) )* )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:460:3: otherlv_0= 'person' ( (lv_attribute_1_0= rulePersonAttribute ) ) (otherlv_2= ',' ( (lv_attribute_3_0= rulePersonAttribute ) ) )*\n {\n otherlv_0=(Token)match(input,16,FollowSets000.FOLLOW_16_in_rulePerson932); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getPersonAccess().getPersonKeyword_0());\n \n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:464:1: ( (lv_attribute_1_0= rulePersonAttribute ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:465:1: (lv_attribute_1_0= rulePersonAttribute )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:465:1: (lv_attribute_1_0= rulePersonAttribute )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:466:3: lv_attribute_1_0= rulePersonAttribute\n {\n \n \t newCompositeNode(grammarAccess.getPersonAccess().getAttributePersonAttributeParserRuleCall_1_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_rulePersonAttribute_in_rulePerson953);\n lv_attribute_1_0=rulePersonAttribute();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getPersonRule());\n \t }\n \t\tadd(\n \t\t\tcurrent, \n \t\t\t\"attribute\",\n \t\tlv_attribute_1_0, \n \t\t\"PersonAttribute\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:482:2: (otherlv_2= ',' ( (lv_attribute_3_0= rulePersonAttribute ) ) )*\n loop10:\n do {\n int alt10=2;\n int LA10_0 = input.LA(1);\n\n if ( (LA10_0==17) ) {\n alt10=1;\n }\n\n\n switch (alt10) {\n \tcase 1 :\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:482:4: otherlv_2= ',' ( (lv_attribute_3_0= rulePersonAttribute ) )\n \t {\n \t otherlv_2=(Token)match(input,17,FollowSets000.FOLLOW_17_in_rulePerson966); \n\n \t \tnewLeafNode(otherlv_2, grammarAccess.getPersonAccess().getCommaKeyword_2_0());\n \t \n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:486:1: ( (lv_attribute_3_0= rulePersonAttribute ) )\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:487:1: (lv_attribute_3_0= rulePersonAttribute )\n \t {\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:487:1: (lv_attribute_3_0= rulePersonAttribute )\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:488:3: lv_attribute_3_0= rulePersonAttribute\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getPersonAccess().getAttributePersonAttributeParserRuleCall_2_1_0()); \n \t \t \n \t pushFollow(FollowSets000.FOLLOW_rulePersonAttribute_in_rulePerson987);\n \t lv_attribute_3_0=rulePersonAttribute();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getPersonRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"attribute\",\n \t \t\tlv_attribute_3_0, \n \t \t\t\"PersonAttribute\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop10;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@Override\n\tpublic void save(Person person) {\n\t\t\n\t}", "public static User createPerson() throws ParserConfigurationException, SAXException, IOException {\n User[] users = XMLReader.parsePersonXML();\n User user = users[0];\n calories = user.getCalories();\n diet = user.getDiet();\n quantity = user.getQuantityOfPeople();\n transport = user.getTransport();\n return user;\n }", "protected void addPersonPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_JuristType_person_feature\"),\n\t\t\t\t getString(\"_UI_JuristType_person_description\"),\n\t\t\t\t ContestPackage.Literals.JURIST_TYPE__PERSON,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t true,\n\t\t\t\t null,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "protected void refinePerson(Person person) {\n\t\tperson.setBirthDay(birthDay(person));\n\t\tStringHelper stringHelper=new StringHelper();\n\t\tperson.setName(stringHelper.formatFirstToUpeerOtherToLowerCase(person.getName()));\n\t\tperson.setSirName(stringHelper.formatFirstToUpeerOtherToLowerCase(person.getSirName()));\n\t}", "protected void returnPerson(Person person) {\n person.setIsWorking(false);\n this.setAvailablePersons(this.getAvailablePersons() + 1);\n this.countLabel.setText(\"Available: \" + String.valueOf(this.getAvailablePersons()));\n }", "@Override\n\tpublic Person getModel() {\n\t\treturn person;\n\t}", "public Person(String name, String address, String phoneNumber, String emailAddress)\n {\n this.name = name;\n this.address = address;\n this.phoneNumber = phoneNumber;\n this.emailAddress = emailAddress;\n }", "public Person(String name, String surname) {\n this.name = name;\n this.surname = surname;\n }" ]
[ "0.6826346", "0.68024206", "0.679128", "0.679128", "0.66518795", "0.65976053", "0.6594275", "0.6562481", "0.65418607", "0.6482017", "0.6474864", "0.64454263", "0.6433872", "0.64296097", "0.63998723", "0.63968146", "0.63864607", "0.6380665", "0.63790816", "0.6361438", "0.6360461", "0.63528943", "0.63251", "0.63003206", "0.6300234", "0.6272104", "0.62592775", "0.6257149", "0.6254703", "0.6253473", "0.624387", "0.6240033", "0.6239519", "0.6237797", "0.6230385", "0.6218031", "0.62041485", "0.618118", "0.6166173", "0.616137", "0.61583436", "0.61565536", "0.61512876", "0.61501414", "0.61501414", "0.6144081", "0.61425275", "0.6120621", "0.61070937", "0.6106998", "0.6101917", "0.60991406", "0.6095143", "0.60948837", "0.6094653", "0.6081307", "0.60798234", "0.60793763", "0.6073447", "0.60716975", "0.60638857", "0.6062459", "0.60550505", "0.6053079", "0.60524315", "0.6050361", "0.604024", "0.6037778", "0.6037178", "0.60370964", "0.60264224", "0.60260135", "0.6016661", "0.60063916", "0.6002399", "0.60016525", "0.6001125", "0.5999221", "0.5990046", "0.59838796", "0.59757", "0.5972414", "0.5967765", "0.5966786", "0.59601796", "0.5959927", "0.59573126", "0.59551555", "0.59547675", "0.5951356", "0.5943104", "0.5940968", "0.5939269", "0.5936968", "0.59368026", "0.5935282", "0.5932518", "0.5932322", "0.59310544", "0.5929155", "0.59280837" ]
0.0
-1
variable para la conexion a la BD Metodos constructores
public AdminDAO() { con = DataBase.getConnection();//crear una conexión al crear un objeto AdminDAO }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private GestionBD(){\r\n\t\tlineConnection=SingleDBConnection.getConexionBD().conectarBD();\r\n\t}", "public paciente()\n {\n con = new bdconexion(); //instancia la clase bdconexion\n }", "public libroBean() throws SQLException\r\n {\r\n variables = new VariablesConexion();\r\n variables.iniciarConexion();\r\n conexion=variables.getConexion();\r\n \r\n }", "public Descripcion() {\n cnx= new ConexionDB();\n }", "public void conectionSql(){\n conection = connectSql.connectDataBase(dataBase);\n }", "private ConexionBD() {\n\t\testablecerConexion();\n\t}", "public DataHandlerDBMS() {\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tDBMS = DriverManager.getConnection(url);\n\t\t\tSystem.out.println(\"DBSM inizializzato\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Errore apertura DBMS\");\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"Assenza driver mySQL\");\n\t\t}\n\t}", "public void initialiserBD() {\n\n // on crée une personne avec tous les champs à vide, cela nous permettra de tester l'existence de la BD pour les futurs lancements.\n pdao.open();\n pdao.creerPersonnePremierLancement();\n pdao.close();\n\n // création des 3 listes\n Liste liste1 = new Liste(1, \"Maison\", \"La liste de ma maison\");\n Liste liste2 = new Liste(2, \"Garage\", \"La liste de mon garage\");\n Liste liste3 = new Liste(3, \"Magasin\", \"La liste de mon magasin\");\n\n // ajout des listes\n ldao.open();\n ldao.ajouterListe(liste1);\n ldao.ajouterListe(liste2);\n ldao.ajouterListe(liste3);\n ldao.close();\n\n // on ajoute 3 catégories\n CategorieDAO categorieDAO = new CategorieDAO(this);\n categorieDAO.open();\n Categorie cuisine = new Categorie(0, \"Cuisine\", \"Tous les objets de la cuisine\");\n Categorie salon = new Categorie(0, \"Salon\", \"Tous les objets du Salon\");\n Categorie chambre = new Categorie(0, \"Chambre\", \"Tous les objets de la chambre\");\n categorieDAO.addCategorie(cuisine);\n categorieDAO.addCategorie(salon);\n categorieDAO.addCategorie(chambre);\n categorieDAO.close();\n\n Date date = new Date();\n\n // Création de la classe utilitaire pour les dates\n Utils utils = new Utils(this);\n String dateSimpleDateFormat = utils.getDateSimpleDateFormat();\n SimpleDateFormat sdf = new SimpleDateFormat(dateSimpleDateFormat);\n String dateDuJour = sdf.format(date);\n\n // texte explicatif\n String explication = \"Cet objet est crée au demarrage de l'application, vous pouvez le supprimer en cliquant dessus.\";\n\n // on ajoute 6 bien pour exemple\n Bien bien1 = new Bien(1, \"Lunette\", dateDuJour, dateDuJour, \"\", \"Légèrement rayées sur le coté\", \"251\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n Bien bien2 = new Bien(2, \"Frigo\", dateDuJour, dateDuJour, \"\", \"\", \"3599\", \"\", \"\", \"\", \"\", 1, explication, \"45DG425845DA\");\n Bien bien3 = new Bien(3, \"Ordinateur\", dateDuJour, dateDuJour, \"\", \"Manque une touche\", \"1099\", \"\", \"\", \"\", \"\", 3, explication, \"515D-TGH2336\");\n Bien bien4 = new Bien(4, \"Vaisselle\", dateDuJour, dateDuJour, \"\", \"Vaisselle de Mémé\", \"6902\", \"\", \"\", \"\", \"\", 1, explication, \"\");\n Bien bien5 = new Bien(5, \"TV\", dateDuJour, dateDuJour, \"\", \"\", \"350\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n Bien bien6 = new Bien(6, \"Home cinéma\", dateDuJour, dateDuJour, \"\", \"Marque Pioneer - Une enceinte grésille un peu\", \"400\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n\n\n // dans la liste 1\n ArrayList<Integer> listeIdListe1 = new ArrayList<Integer>();\n listeIdListe1.add(1);\n\n\n bdao.open();\n\n bdao.addBien(bien1, listeIdListe1);\n bdao.addBien(bien2, listeIdListe1);\n bdao.addBien(bien3, listeIdListe1);\n bdao.addBien(bien4, listeIdListe1);\n bdao.addBien(bien5, listeIdListe1);\n bdao.addBien(bien6, listeIdListe1);\n\n bdao.close();\n }", "public UfficioTecnicoDB() {\n this(ConnectionManager.getInstance());\n }", "public TermDAOImpl(){\n connexion= new Connexion();\n }", "public ConnexioBD() {\n try {\n Class.forName(driver);\n connection = DriverManager.getConnection(url, user, password);\n\n\n } catch (ClassNotFoundException | SQLException e) {\n System.out.println(\"Error al connectar amb la base de dades:\" + e);\n }\n }", "private Conexao() {\r\n\t\ttry {\r\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:mem:.\", \"sa\", \"\");\r\n\t\t\tnew LoadTables().creatScherma(connection);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Erro ao conectar com o banco: \"+e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public ConexionDB() {\n\n\t\tconn = null;\n\n\t}", "public void PrepararBaseDatos() { \r\n try{ \r\n conexion=DriverManager.getConnection(\"jdbc:ucanaccess://\"+this.NOMBRE_BASE_DE_DATOS,this.USUARIO_BASE_DE_DATOS,this.CLAVE_BASE_DE_DATOS);\r\n \r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al realizar la conexion \"+e);\r\n } \r\n try { \r\n sentencia=conexion.createStatement( \r\n ResultSet.TYPE_SCROLL_INSENSITIVE, \r\n ResultSet.CONCUR_READ_ONLY); \r\n \r\n System.out.println(\"Se ha establecido la conexión correctamente\");\r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al crear el objeto sentencia \"+e);\r\n } \r\n }", "@Override\n\tpublic void construct() {\n\t\tSystem.out.println(\"Getting a MySQL Database Connection\");\n\n\t}", "public void instalarBaseDatos()\r\n\t{\r\n\t\tString nombrebuscado = \"information_schema\";\r\n\t\tArrayList parametrosbd = parametrosConectorBaseDatos();\r\n\t\tif(parametrosbd != null)\r\n\t\t{\r\n\t\t\tif(parametrosbd.size()>0)\r\n\t\t\t{\r\n\t\t\t\tnombrebuscado =(String)parametrosbd.get(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString nombrebd = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tConector conector = new Conector(\"information_schema\");\r\n\t\t\tconector.iniciarConexionBaseDatos();\r\n\t\t\tnombrebd = CrearBD.buscarBaseDatos(nombrebuscado, conector);\r\n\t\t\tconector.terminarConexionBaseDatos();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t}\r\n\t\tif(nombrebd == null)\r\n\t\t{\r\n\t\t\tint numerotablascreadas = 0;\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tConector conectora = new Conector(\"information_schema\");\r\n\t\t\t\tconectora.iniciarConexionBaseDatos();\r\n\t\t\t\tCrearBD.crearBaseDatos(nombrebuscado, conectora);\r\n\t\t\t\tconectora.terminarConexionBaseDatos();\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 1; i < 20; i++) \r\n\t\t\t\t{\r\n\t\t\t\t\tString nombretabla = i+\".sql\";\r\n\t\t\t\t\tString contenidotabla = ejecutarCodigoSQLtablas(nombretabla);\r\n\t\t\t\t\tif(!contenidotabla.equalsIgnoreCase(\"\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tConector conectorb = new Conector(nombrebuscado);\r\n\t\t\t\t\t\tconectorb.iniciarConexionBaseDatos();\r\n\t\t\t\t\t\tCrearBD.ejecutarCodigoSQL(contenidotabla, conectorb);\r\n\t\t\t\t\t\tconectorb.terminarConexionBaseDatos();\r\n\t\t\t\t\t\tnumerotablascreadas++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tConector conectorg = new Conector(nombrebuscado);\r\n\t\t\t\t\t\tconectorg.iniciarConexionBaseDatos();\r\n\t\t\t\t\t\tCrearBD.ejecutarCodigoSQL(\"DROP DATABASE \"+nombrebuscado, conectorg);\r\n\t\t\t\t\t\tconectorg.terminarConexionBaseDatos();\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el archivo \"+nombretabla,\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numerotablascreadas == 19)\r\n\t\t\t\t{\r\n\t\t\t\t\tejecutarCodigoSQLdatos(nombrebuscado);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static Connection CrearConexion(){\n String clave=\"inacap\";\r\n String usuario=\"inacap\";\r\n String url=\"jdbc:derby://localhost:1527/aereopuerto\";\r\n \r\n //crear conexion a la Base de datos\r\n \r\n try{\r\n Connection conn=DriverManager.getConnection(url,usuario,clave);\r\n return conn;\r\n }\r\n catch(SQLException e){\r\n System.out.println(\"Excepcion de sql:\"+e);\r\n return null;\r\n }\r\n \r\n \r\n }", "public DBManager(){\r\n connect(DBConstant.driver,DBConstant.connetionstring);\r\n }", "DBConnect() {\n \n }", "public ConnectDB(){\r\n\r\n\t}", "public Propiedad() {\n bdPropiedad = new DaoPropiedad();\n bdComentario = new DaoComentario();\n }", "public DaoConnection() {\n\t\t\n\t}", "@SuppressWarnings(\"deprecation\")\n\tpublic void inicializaBD() {\n\t\t\n\t\t/*Registros de Orden*/\n\t\tint n1=1;\n\t\tString p1=\"Taco Azteca\", p2=\"Sopa\";\n\t\tjava.util.Date utilDate = new java.util.Date();\n\t\tjava.util.Date utilDate1 = new java.util.Date();\n\t\tutilDate.setMonth(1);\n\t\tutilDate.setYear(119);\n\t\tutilDate.setMinutes(1);\n\t\tutilDate1.setMonth(1);\n\t\tutilDate1.setYear(119);\n\t\tutilDate1.setMinutes(59);\n\t\tlong lnMilisegundos = utilDate.getTime();\n\t\tlong lnMilisegundos1 = utilDate1.getTime()+10;\n\t\tTimestamp fecha1= new Timestamp(lnMilisegundos);\n\t\tTimestamp fecha2 = new Timestamp(lnMilisegundos+9999999);\n\t\tTimestamp fecha3= new Timestamp(lnMilisegundos1);\n\t\tTimestamp fecha4 = new Timestamp(lnMilisegundos1+999999);\n\t\tOrden orden1 = new Orden(n1,p1, fecha1, fecha2, 60, 3);\n\t\tOrden orden2 = new Orden(n1,p2, fecha3, fecha4, 30, 3);\n\t\torden1.setEstado(3);\n\t\torden2.setEstado(3);\n\t\tordenRepository.save(orden1);\n\t\tordenRepository.save(orden2);\n\t\t\n\t\t/*Registros de producto*/\n\t\tProducto producto1 = new Producto();\n\t\tproducto1.setFecha(\"2020-05-10\");\n\t\tproducto1.setNombreProducto(\"Chiles Verdes\");\n\t\tproducto1.setDescripcion(\"Bolsas de 1 kg de Chiles\");\n\t\tproducto1.setCantidad(15);\n\t\tproducto1.setMinimo(20);\n\t\tproductoRepository.save(producto1);\n\t\t\n\t\tProducto producto2 = new Producto();\n\t\tproducto2.setFecha(\"2020-10-05\");\n\t\tproducto2.setNombreProducto(\"Papas\");\n\t\tproducto2.setDescripcion(\"Costal de 32 Kg de papas\");\n\t\tproducto2.setCantidad(58);\n\t\tproducto2.setMinimo(10);\n\t\tproductoRepository.save(producto2);\n\t\t\n\t\tProducto producto3 = new Producto();\n\t\tproducto3.setFecha(\"2020-10-20\");\n\t\tproducto3.setNombreProducto(\"Frijoles\");\n\t\tproducto3.setDescripcion(\"Costales de 13 kg de Frijoles\");\n\t\tproducto3.setCantidad(2);\n\t\tproducto3.setMinimo(20);\n\t\tproductoRepository.save(producto3);\n\t\t\n\t\tProducto producto4 = new Producto();\n\t\tproducto4.setFecha(\"2020-08-16\");\n\t\tproducto4.setNombreProducto(\"Sopa de fideo\");\n\t\tproducto4.setDescripcion(\"Bolsas de 500g de sopa de fideo\");\n\t\tproducto4.setCantidad(8);\n\t\tproducto4.setMinimo(10);\n\t\tproductoRepository.save(producto4);\n\t\t\n\t\t//Registro de recordatorio\n\t\tRecordatorio recordatorio = new Recordatorio();\n\t\trecordatorio.setId(1);\n\t\trecordatorio.setInfo(\"1. A partir de mañana se empezará a ofrecer los \\n\"\n\t\t\t\t+ \"beneficios para los clientes preferenciales\\n\"\n\t\t\t\t+ \"2. Los empleados que no se han registrado para \\n\"\n\t\t\t\t+ \"algo algotienen hasta el 25 de Julio para \\n\"\n\t\t\t\t+ \"registrarse.\");\n\t\trecordatorioRepository.save(recordatorio);\n\t\t\n\t\t//Registro empleados\n\t\tEmpleado empleado1 = new Empleado();\n\t\templeado1.setNombre(\"Paola\");\n\t\templeado1.setApellidos(\"Aguillón\");\n\t\templeado1.setEdad(24);\n\t\templeado1.setSueldo(2120.50);\n\t\templeado1.setOcupacion(\"Mesera\");\n\t\templeadoRepository.save(empleado1);\n\t\t\n\t\tEmpleado empleado2 = new Empleado();\n\t\templeado2.setNombre(\"Jorge\");\n\t\templeado2.setApellidos(\"Luna\");\n\t\templeado2.setEdad(20);\n\t\templeado2.setSueldo(2599.50);\n\t\templeado2.setOcupacion(\"Cocinero\");\n\t\templeadoRepository.save(empleado2);\n\t\t\n\t\tEmpleado empleado3 = new Empleado();\n\t\templeado3.setNombre(\"Mariana\");\n\t\templeado3.setApellidos(\"Mendoza\");\n\t\templeado3.setEdad(32);\n\t\templeado3.setSueldo(1810.80);\n\t\templeado3.setOcupacion(\"Ayudante general\");\n\t\templeadoRepository.save(empleado3);\n\t\t\n\t\tEmpleado empleado4 = new Empleado();\n\t\templeado4.setNombre(\"Diego\");\n\t\templeado4.setApellidos(\"Ayala\");\n\t\templeado4.setEdad(28);\n\t\templeado4.setSueldo(3560.60);\n\t\templeado4.setOcupacion(\"Chef\");\n\t\templeadoRepository.save(empleado4);\n\t\t\n\t\tCliente cliente1 = new Cliente();\n\t\tcliente1.setNombre(\"Mario\");\n\t\tcliente1.setCorreo(\"[email protected]\");\n\t\tcliente1.setPromocion(\"Sopa 2x1\");\n\t\tclienteRepository.save(cliente1);\n\n\t\t//Registro Ventas de menú\n\t\tVentasMenu dia1 = new VentasMenu();\n\t\tdia1.setFecha(LocalDate.of(2021,02,01));\n\t\tdia1.setMenu(\"Tacos,Sopa de papa, Agua de limón\");\n\t\tdia1.setVentas(20);\n\t\tventasMenuRepository.save(dia1);\n\t\t\n\t\tVentasMenu dia2 = new VentasMenu();\n\t\tdia2.setFecha(LocalDate.of(2021,02,02));\n\t\tdia2.setMenu(\"Tortas de papa,Sopa de verdura, Agua de piña\");\n\t\tdia2.setVentas(22);\n\t\tventasMenuRepository.save(dia2);\n\t\t\n\t\tVentasMenu dia21 = new VentasMenu();\n\t\tdia21.setFecha(LocalDate.of(2021,02,03));\n\t\tdia21.setMenu(\"Tortas de papa,Sopa de tortilla, Agua de mango\");\n\t\tdia21.setVentas(25);\n\t\tventasMenuRepository.save(dia21);\n\t\t\n\t\tVentasMenu dia211 = new VentasMenu();\n\t\tdia211.setFecha(LocalDate.of(2021,02,04));\n\t\tdia211.setMenu(\"Papas a la francesa,sopa de arroz, Agua de jamaica \");\n\t\tdia211.setVentas(30);\n\t\tventasMenuRepository.save(dia211);\n\t\t\n\t\t\n\t\t\n\t\t//Registro de menú\n\t\tMenu menu = new Menu();\n\t\tmenu.setId(1);\n\t\tmenu.setMen(\"Sopa \\n\"\n\t\t\t\t+ \"Consome\\n\"\n\t\t\t\t+ \"Arroz\\n\"\n\t\t\t\t+ \"Pasta\\n\"\n\t\t\t\t+ \"Chile relleno \\n\"\n\t\t\t\t+ \"Taco Azteca \\n\"\n\t\t\t\t+ \"Filete de Pescado empanizado\"\n\t\t + \"Enchiladas\\n\"\n\t\t + \"Gelatina\\n\"\n\t\t + \"Flan\\n\");\n\t\tmenuRepository.save(menu);\n\t\t\n\t\t//Registro de algunos proveedores\n\t\t\n\t\tProveedor proveedor1 = new Proveedor();\n\t\tproveedor1.setNomProveedor(\"Aaron\");\n\t\tproveedor1.setMarca(\"Alpura\");\n\t\tproveedor1.setTipo(\"Embutidos y lacteos\");\n\t\tproveedor1.setCosto(4600);\n\t\tproveedorRepository.save(proveedor1);\n\t\t\n\t\tProveedor proveedor2 = new Proveedor();\n\t\tproveedor2.setNomProveedor(\"Angelica\");\n\t\tproveedor2.setMarca(\"Coca-Cola\");\n\t\tproveedor2.setTipo(\"Bebidas\");\n\t\tproveedor2.setCosto(1810.11);\n\t\tproveedorRepository.save(proveedor2);\n\t\t\n\t\tProveedor proveedor3 = new Proveedor();\n\t\tproveedor3.setNomProveedor(\"Ernesto\");\n\t\tproveedor3.setMarca(\"Patito\");\n\t\tproveedor3.setTipo(\"Productos de limpieza\");\n\t\tproveedor3.setCosto(2455.80);\n\t\tproveedorRepository.save(proveedor3);\n\t\t\n\t\t// Registro Sugerencias \n\t\t\n\t\t \n\t\tSugerencia sugerencia= new Sugerencia();\n\t\tsugerencia.setIdSugeregncia(1);\n\t\tsugerencia.setNombre(\"Pedro\");\n\t\tsugerencia.setSugerencia(\"Pollo Frito\");\n\t\tsugerenciaRepository.save(sugerencia);\n\t\t\n\t\tSugerencia sugerencia1= new Sugerencia();\n\t\tsugerencia1.setIdSugeregncia(2);\n\t\tsugerencia1.setNombre(\"Miriam\");\n\t\tsugerencia1.setSugerencia(\"Sopes\");\n\t\tsugerenciaRepository.save(sugerencia1);\n\t\t\n\t\tSugerencia sugerencia2= new Sugerencia();\n\t\tsugerencia2.setIdSugeregncia(3);\n\t\tsugerencia2.setNombre(\"Rebeca\");\n\t\tsugerencia2.setSugerencia(\"Tamales Oaxaqueños\");\n\t\tsugerenciaRepository.save(sugerencia2);\n\t\t\n\t}", "private DatabaseHandler(){\n createConnection();\n }", "public UnidadDAO() {\n this.setCon(cs.getConection());\n \n }", "public Biodata() {\n initComponents();\n //pemanggilan fungsi koneksi database yang sudah kita buat pada class koneksi.java\n ConnectionDB DB = new ConnectionDB();\n DB.config();\n con = DB.con;\n stat = DB.stm;\n pst = DB.pst;\n data_table_mahasiswa();\n }", "public EstadosSql() {\r\n }", "private DBConnection() \n {\n initConnection();\n }", "public conectar(){\r\n \r\n }", "private void connectDatabase(){\n }", "public EtiquetaDao() {\n //subiendola en modo Embedded\n this.sql2o = new Sql2o(\"jdbc:h2:~/demojdbc\", \"sa\", \"\");\n createTable();\n //cargaDemo();\n }", "public DataConnection() {\n\t\ttry {\n\t\t\tString dbClass = \"com.mysql.jdbc.Driver\";\n\t\t\tClass.forName(dbClass).newInstance();\n\t\t\tConnection con = DriverManager.getConnection(DIR_DB, USER_DB, PASS_DB);\n\t\t\tstatement = con.createStatement();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void conectar() {\r\n try {\r\n Class.forName(driver); //se carga el driver en memoria\r\n conexionDB = DriverManager.getConnection(connectString, user, password);//conexion a la base de datos\r\n System.out.println(\"SE CONECTA\");\r\n sentenciaSQL = conexionDB.createStatement();//variable que permite ejecutar las sentencias SQL \r\n System.out.println(\"SE CREA STATEMENT\");\r\n } catch (ClassNotFoundException | SQLException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "public vistaAlojamientos() {\n initComponents();\n \n try {\n miConn = new Conexion(\"jdbc:mysql://localhost/turismo\", \"root\", \"\");\n ad = new alojamientoData(miConn);\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(vistaAlojamientos.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "public BaseDatos(String url, String user, String pass) {\n \n //asignacion de los atributos de clase\n this.url = url;\n this.user = user;\n this.pass = pass;\n \n try{\n Class.forName(\"com.mysql.jdbc.Driver\"); // importamos el driver de la base de datos \n conexion= DriverManager.getConnection(url,user,pass); // creamos la conexion a la base de datos\n }catch(SQLException e){\n System.out.println(\"Error de sql:_ \"+e.getMessage());\n }catch(ClassNotFoundException ex){\n System.out.println(\"No se pudo cargar el driver MySQL:_\"+ex.getMessage());\n }\n \n }", "public OnibusDAO() {}", "public Conexion() throws ClassNotFoundException, SQLException {\n Class.forName(DRIVER);//Cargamos las clases\n conn = DriverManager.getConnection(URL, \"root\", \"\");//Obtenemos la conexion\n System.out.println(\"Conectado a la base de datos\");//Confirmamos que todo salio bien\n }", "public ProtocoloDAO() {\n }", "public void establecerConexion() {\n\n\t\ttry {\n\t\t\tClass.forName(\"org.sqlite.JDBC\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"conexion de driver no establecida\");\n\t\t}\n\n\t\ttry {\n\n\t\t\tconexion = DriverManager.getConnection(\"jdbc:sqlite:\" + nombreBD);\n\t\t\tstmt = conexion.createStatement();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"problema con conexion\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public TelaCliente() {\n initComponents();\n conexao=ModuloConexao.conector();\n }", "public void init() {\r\n \tconnection = Connect.initConnexion();\r\n \tSystem.out.println(\"connexion :\"+connection);\r\n }", "private static Connection baglan() {\n Connection baglanti = null;\n try {\n baglanti = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/SogutucuKontrolCihazi\",\n \"postgres\", \"159753\");\n if (baglanti != null) //bağlantı varsa\n System.out.println(\"Veritabanına bağlandı!\");\n else\n System.out.println(\"Bağlantı girişimi başarısız!\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return baglanti;\n }", "public DescritoresDAO() {\n\t\t\n\t}", "public LocalResidenciaColaborador() {\n //ORM\n }", "public DanielPatricio() throws SQLException {\n initComponents();\n //limpiar();\n recargarDropDownCarros();\n recargarTextArea();\n recargarDataTable();\n \n \n }", "public PujaDAO() {\n con = null;\n st = null;\n rs = null;\n }", "public contrustor(){\r\n\t}", "public Conexion(){\n \n }", "private void makeSQLConn() {\n\t\ttry {\n\t\t\tmyDB = new MySQLAccess();\n\t\t} catch (Exception e) { e.printStackTrace(); }\n\t}", "private void criarConexao(){\n\n try {\n\n clientOpenHelper = new ClientOpenHelper(this);\n\n conexao = clientOpenHelper.getWritableDatabase();\n\n Snackbar.make(layoutMain, R.string.Aviso, Snackbar.LENGTH_SHORT)\n .setAction(R.string.ok,null)\n .show();\n clienteRepositorio = new ClienteRepositorio(conexao);\n }catch (SQLException ex){\n AlertDialog.Builder dlg = new AlertDialog.Builder(this);\n dlg.setTitle(\"Error\");\n dlg.setMessage(ex.getMessage());\n dlg.setNeutralButton(\"OK\",null);\n dlg.show();\n }\n }", "public void buildConnection()\n {\n try\n {\n myConn = DriverManager.getConnection(url, user, pw);\n statement = myConn.createStatement();\n }\n catch(CommunicationsException e)\n {\n System.err.println(e);\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Verbindungsfehler\");\n alert.setContentText(\"Verbindung zum SQL Server fehlgeschlagen\");\n alert.showAndWait();\n }\n catch(Exception e)\n {\n System.err.println(e);\n }\n\n }", "private void criarConexao(){\n try{\n testeOpenHelper = new TesteOpenHelper(this);\n conexao = testeOpenHelper.getWritableDatabase();\n Toast.makeText(this,\"Conexao executada com sucesso\", Toast.LENGTH_SHORT).show();\n produtoRepositorio = new ProdutoRepositorio(conexao);\n }catch(SQLException e){\n AlertDialog.Builder dlg = new AlertDialog.Builder(this);\n dlg.setTitle(\"Erro\");\n dlg.setMessage(e.getMessage());\n dlg.setNeutralButton(\"Ok\", null);\n dlg.show();\n Toast.makeText(this,\"ERRO na conexao\", Toast.LENGTH_LONG).show();\n }\n }", "public static ConexionBD obtenerInstancia() {\n\t\tif (INSTANCIA == null)\n\t\t\tINSTANCIA = new ConexionBD();\n\n\t\treturn INSTANCIA;\n\t}", "public DBConnection()\n {\n\n }", "public UtentiDB(){\r\n this.utenti = new LinkedList<Utente>();\r\n }", "public TelefoneDao() {\n\t\tconnection = SingleConnection.getConnection();\n\t}", "public DB() {\r\n\t\r\n\t}", "public TPS_BasicConnectionClass() {\n this.parameterClass = new TPS_ParameterClass();\n try {\n this.parameterClass.loadRuntimeParameters(TPS_BasicConnectionClass.getRuntimeFile());\n dbCon = new TPS_DB_Connector(this.parameterClass);\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "public TelaDoador() {\n initComponents();\n conexao = ModuloConexao.conector();\n }", "Object getDB();", "public void buildConnect() {\n\t\ttry {\n\t\t\tClass.forName(jdbcDriver);\n\t\t\tconnection= DriverManager.getConnection(dbUrl, user, passwd);\n\t\t\tstatement= connection.createStatement();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public CriaBanco (Context context){\n\n super (context, NOME_BD, null, VERSAO);\n }", "private void apriConnessione() throws SQLException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundException {\n\t\tString password, user;\n\t\tDatabaseProps dbConf = config.getDb();\n\n\t\tClass.forName(dbConf.getDriver()).getDeclaredConstructor().newInstance();\n\n\t\tuser = dbConf.getUsername();\n\t\tpassword = dbConf.getPassword();\n\n\t\tString uri = String.format(\"jdbc:%s://%s:%d/%s\", dbConf.getDbms(), dbConf.getHost(), dbConf.getPort(), dbConf.getName());\n\n\t\tconnessioneDB = DriverManager.getConnection(uri, user, password);\n\t}", "private Database() throws SQLException, ClassNotFoundException {\r\n Class.forName(\"org.postgresql.Driver\");\r\n con = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/postgres\", \"postgres\", \"kuka\");\r\n }", "public Connection conectarBD() {\n\t\tConnection con = null;\t\t\n\t\t\n\t\ttry {\n\t\t\tProperties p = new Properties();\n\t\t\tp.load(new FileInputStream(\"config/parametros.txt\"));\n\t\t\tdriver = p.getProperty(\"driver\");\n\t\t\tClass.forName(driver);\n\t\t\t//System.out.println(\"driver: \" + driver);\n\t\t\t\n\t\t\tusername = p.getProperty(\"usuario\");\n\t\t\tpass = p.getProperty(\"password\");\n\t\t\turl = p.getProperty(\"url\");\n\t\t\tbase = p.getProperty(\"bdatos\");\n\t\t\t\n\t\t\tcon = DriverManager.getConnection(url + base, username, pass);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\treturn con;\n\t}", "DatabaseController() {\n\n\t\tloadDriver();\n\t\tconnection = getConnection(connection);\n\t}", "private void initCoordLogic() throws SQLException {\n\t\tcoordUsuario = new CoordinadorUsuario();\n\t\tlogicaUsuario = new LogicaUsuario();\n\t\tcoordUsuario.setLogica(logicaUsuario);\n\t\tlogicaUsuario.setCoordinador(coordUsuario);\n\t\t/* Listados de ComboBox*/\n\t\trol = new RolVO();\n\t\templeado = new EmpleadoVO();\n\t}", "public DAOImpl(String baseDatos, String usuario, String clave){\n this.baseDatos = baseDatos;\n this.usuario = usuario;\n this.clave = clave;\n }", "public connect_db() {\n initComponents();\n }", "private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}", "public ClientsSpeicher() {\n mDb = new MyArrowDB().getInstance();\n }", "public GudangDao(Connection con){\r\n this.conn=con;\r\n }", "public Caso_de_uso () {\n }", "public DAO(String dbType){\n this.dbType = dbType;\n if(this.dbType.equals(\"MySQL\")){\n initialPool();\n\n // for q5 mysql use\n if(wholeUserIds == null){\n wholeUserIds = new TreeSet<Long>();\n }\n }\n else if(this.dbType.equals(\"Memory\")){\n // for q5 memory use\n if(wholeCountData == null){\n wholeCountData = new TreeMap<String, Integer>();\n }\n }\n\n }", "Bd(String baseDatos) {\n\t\tthis.servidor = \"jdbc:mysql://\" + this.maquina + \":\" + this.puerto\n\t\t\t\t+ \"/\" + baseDatos;\n\n\t\t// Registrar el driver\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.err.println(\"ERROR AL REGISTRAR EL DRIVER\");\n\t\t\tSystem.exit(0); // parar la ejecución\n\t\t}\n\n\t\t// Establecer la conexión con el servidor\n\t\ttry {\n\t\t\tconexion = DriverManager.getConnection(this.servidor, this.usuario,\n\t\t\t\t\tthis.clave);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"ERROR AL CONECTAR CON EL SERVIDOR\");\n\t\t\tSystem.exit(0); // parar la ejecución\n\t\t}\n\t\tSystem.out.println(\"Conectado a \" + baseDatos);\n\t}", "public DBController() {\n System.out.println(\"[\" + this.getClass() + \" : consctructor]\");\n this.listeObservers = new ArrayList<>();\n this.url = \"/Users/nico/Desktop/testSquirell.db\";\n //this.listeMorceau=new ArrayList<Morceau>();\n //this.initDB();\n addTableMorceau();\n System.out.println(\"[end constructor \" + this.getClass() + \"]\");\n }", "sqlcommands(Connection conn){\n this.conn = conn ;\n }", "public ImageDAO() {\r\n super();\r\n con = MySQLConnection.getMyOracleConnection();\r\n }", "public Conectar() {//creamos un constructor\n conn = null;//iniciamos la variable conn en null\n try {//en caso de error creamos un try/catch\n Class.forName(driver);//carga la clase con el nombre indicado\n conn = (Connection) DriverManager.getConnection(url, user, password);//se le envian los datos\n if (conn != null) {//para saber si se realizo la coneccion\n //JOptionPane.showMessageDialog(null,\"Conexion establecida..\");//genera un cuadro de dialogo con el mensaje establecido\n //System.out.println(\"Conexion establecida..\");//genera un mensaje por consola \n }\n } catch (ClassNotFoundException | SQLException e) {//capturo los errores posibles\n JOptionPane.showMessageDialog(null, \"Error al conectar \" + e);//genera un cuadro de dialogo con el mensaje establecido\n System.out.println(\"Error al conectar \" + e);//genera un mensaje por consola \n\n }\n }", "public DatabaseManager() {\n try {\n con = DriverManager.getConnection(DB_URL, \"root\", \"marko\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private Offce_item() {\n\n initComponents();\n con = MysqlConnect.getDbCon();\n }", "public BeneficiaireDAO() {\n\t\t// chargement du pilote de bases de donn闂佹唶\n\t\t\n\t\ttry {\n\t\t\t Class.forName( \"com.mysql.jdbc.Driver\" );\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.err\n\t\t\t\t\t.println(\"Impossible de charger le pilote de BDD, ne pas oublier d'importer le fichier .jar dans le projet\");\n\t\t}\n\n\t}", "public Database(){\n ItemBox.getLogger().info(\"[Database] protocol version \" + net.mckitsu.itembox.protocol.ItemBoxProtocol.getVersion());\n }", "public BemPessoaDAOImpl() {\n\t\tsuper(\"PESQUISAR_BEM_PESSOA\");\n\t}", "public buyMedicine() {\n initComponents();\n getConnection();\n getConnection1();\n }", "private Connection connect() {\n\t String url = \"jdbc:sqlite:\" + this.db;\r\n\t Connection conn = null;\r\n\t try {\r\n\t \t// Incercam conexiunea la baza de date\r\n\t conn = DriverManager.getConnection(url);\r\n\t } catch (SQLException e) {\r\n\t System.out.println(e.getMessage());\r\n\t }\r\n\t return conn; // returnam conexiunea, daca aceasta s-a facut fara erori\r\n\t }", "public MenuDAO() {\n\t\t\n\t\tconnection = ConnectDatabase.connectDatabase();\n\t\t\n\t}", "public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }", "public void getConnect() \n {\n con = new ConnectDB().getCn();\n \n }", "Persistencia() {\n\t}", "Connection createConnection();", "private ConnectionPool() {\r\n\t\tResourceManagerDB resourceManager = ResourceManagerDB.getInstance();\r\n\t\tthis.driver = resourceManager.getValue(ParameterDB.DRIVER_DB);\r\n\t\tthis.url = resourceManager.getValue(ParameterDB.URL_DB);\r\n\t\tthis.user = resourceManager.getValue(ParameterDB.USER_DB);\r\n\t\tthis.password = resourceManager.getValue(ParameterDB.PASSWORD_DB);\r\n\t\tthis.poolsize = Integer.parseInt(resourceManager.getValue(ParameterDB.POOLSIZE_DB));\r\n\t}", "public DAOImpl(String urlBase, String baseDatos, String usuario, String clave){\n this.urlBase = urlBase;\n this.baseDatos = baseDatos;\n this.usuario = usuario;\n this.clave = clave;\n }", "DatabaseClient newModulesDbClient();", "public DBHandler() {\n\n driverName = \"com.mysql.jdbc.Driver\";\n url = \"jdbc:mysql://us-cdbr-azure-southcentral-e.cloudapp.net/newsstand\";\n userId = (String) \"ba7e286a39ae9e\";\n password = (String) \"d89b6d9b\";\n \n }", "public Connection OpenConnection() {\n try {\n //obtenemos el driver para SQLSERVER\n Class.forName(driver);\n //obtenemos la conexion\n con = DriverManager.getConnection(url, user, pass);\n if (con != null) {\n System.out.println(\"OK base de datos \" + bd + \" listo\");\n }\n } catch (ClassNotFoundException | SQLException e) {\n e.printStackTrace();\n }\n return con;\n }", "private Connection dbacademia() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public PersistenciaCMT() {\n\n }", "DatabaseClient newFinalClient();" ]
[ "0.72424716", "0.7059767", "0.70341825", "0.6965906", "0.6864588", "0.6854192", "0.6775527", "0.67509866", "0.6726248", "0.66474074", "0.6645205", "0.6627924", "0.66135186", "0.65928763", "0.65782315", "0.65688044", "0.65681624", "0.65418947", "0.6532053", "0.65111053", "0.64985496", "0.64928997", "0.64777255", "0.64730203", "0.6456929", "0.64343244", "0.642614", "0.6425364", "0.6387641", "0.6377262", "0.6347226", "0.6344128", "0.6319478", "0.6313513", "0.6313431", "0.62933123", "0.6288926", "0.62801033", "0.6232276", "0.6231599", "0.6231345", "0.6221186", "0.62182987", "0.6215941", "0.62023497", "0.6194214", "0.6188027", "0.6187744", "0.6184448", "0.61827415", "0.6172677", "0.61625904", "0.6161246", "0.6138143", "0.6135638", "0.6122094", "0.6115525", "0.6107131", "0.61065626", "0.6104881", "0.60887986", "0.60864866", "0.60831803", "0.6077495", "0.6069088", "0.606576", "0.60628897", "0.60619175", "0.6056455", "0.6054105", "0.6048851", "0.6040486", "0.60374534", "0.60333467", "0.6022362", "0.60212576", "0.6020266", "0.6018301", "0.60077965", "0.6004417", "0.599636", "0.5988144", "0.5977778", "0.5974341", "0.59699345", "0.59656614", "0.5962845", "0.59581625", "0.59579617", "0.59524214", "0.5951117", "0.5946053", "0.5941586", "0.59366024", "0.5933259", "0.59300274", "0.5928786", "0.59281117", "0.5925189", "0.5919742" ]
0.6376476
30
Metodos/funciones de la clase Metodo que devuelve false o true si el usuario existe en la BD
public boolean login(String Usuario, String Password) { try { PreparedStatement pstm = null; ResultSet rs = null; String query = "SELECT ID_User FROM Usuario WHERE username = ? AND password = ? AND status = ?"; pstm = con.prepareStatement(query); pstm.setString(1, Usuario);//convertir a String el parametro Usuario pstm.setString(2, Password);//convertir a String el parametro Password pstm.setBoolean(3, true);//convertir a boolean rs = pstm.executeQuery();//ejecutar el query if(rs.next()) { return true; }else{ return false; } }catch(Exception ex) { ex.printStackTrace(); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean existUser(String campo1, String campo2);", "public User userExist(User user);", "boolean hasObjUser();", "public boolean existUser(String id);", "@Override\n\tpublic boolean existe(Usuario usuarioLogado) {\n\t\treturn false;\n\t}", "private boolean userIDExists( String idCedulaNit, Connection con ) \n {\n ClassConnection cc = new ClassConnection();\n \n //System.out.println( idCedulaNit );\n //System.out.print( idCedulaNit );\n Boolean presente = (Boolean) cc.execute( \"SELECT idcedulanit FROM usuario WHERE idcedulanit = \" + Long.parseLong( idCedulaNit ) , 2, con);\n \n return presente;\n }", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "private boolean IsUserExist(){\n SignupUser user =roomDB.dao().GetUserData(et_user.getText().toString());\n if(user!=null){\n if(!user.getEmail().isEmpty()){\n Toast.makeText(this, \"User is already registered!\", Toast.LENGTH_SHORT).show();\n return true;\n }\n\n }\n return false;\n }", "private boolean isUserExists() {\n\t\treturn KliqDataStore.isUserExists(this.mobileNumber, null);\r\n\t}", "boolean exists(User user);", "boolean isUserExist(String username, String password);", "private static boolean doesUserExist () {\n String sqlRetrieveAisId = \"SELECT ais_id FROM users WHERE user_id=?\";\n \n boolean valid = false;\n try (Connection conn = Database.getConnection();\n PreparedStatement pstmt = conn.prepareStatement(sqlRetrieveAisId)) {\n \n pstmt.setInt(1, userId);\n \n ResultSet rs = pstmt.executeQuery();\n \n valid = rs.next() != false;\n } catch (SQLException se) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(1), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (IOException ioe) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n }\n \n return valid;\n }", "boolean isUserExists(RegisterData data) throws DuplicateUserException;", "public boolean usuarioExistente(String apelido) {\r\n\t\tConexao con = (Conexao) conexoes.get(apelido);\r\n\t\t\r\n\t\treturn (con != null);\r\n\t}", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "public boolean existeUser(String usuario) {\n Conexion c = new Conexion();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String sql = \"SELECT email FROM usuario WHERE usuario.usuario = ?\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n ps.setString(1, usuario);\n rs = ps.executeQuery();\n if (rs.next()) {\n return true;\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n } finally {\n try {\n ps.close();\n rs.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n return false;\n }", "@Override\r\n\tpublic Boolean userExist(String username) {\n\t\treturn null;\r\n\t}", "public boolean Exist(int usertype,long id,String password);", "public boolean isUserExist(String email, String Password);", "public boolean findUserIsExist(String name) {\n\t\treturn false;\r\n\t}", "public boolean existeUsuario(String usuario){\r\n try {\r\n Statement s= connection.createStatement();\r\n String sql=\"Select * from sistemasEM.usuarios where nombre='\"+usuario+\"'\";\r\n ResultSet rs= s.executeQuery(sql);\r\n if (rs.next()){\r\n return true;\r\n }\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return false;\r\n }", "public boolean existeUsuario(String usuario) {\n Conexion c = new Conexion();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String sql = \"SELECT email FROM usuario WHERE usuario.usuario = ?\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n ps.setString(1, usuario);\n rs = ps.executeQuery();\n if (rs.next()) {\n return true;\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n } finally {\n try {\n ps.close();\n rs.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n return false;\n }", "public boolean existsUser(String username);", "boolean hasUserId();", "boolean hasUserId();", "boolean hasUserId();", "public boolean isUsersExist(Pet pet);", "public boolean hasObjUser() {\n return objUser_ != null;\n }", "private boolean userExists(Utente checkUser) {\n\t\tDB db = getDB();\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tfor(Map.Entry<Long, UtenteBase> user : users.entrySet())\n\t\t\tif(user.getValue() instanceof Utente && (((Utente)user.getValue()).getUsername().equals(checkUser.getUsername())))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean isUserExisted(String _fbEmail);", "@Override\n\tpublic boolean isUserExist(StudentForm student) {\n\t\treturn false;\n\t}", "boolean isUserExists(Username username);", "private boolean existsUser(Connection con) throws SQLException {\n\t\tlog.entry();\n\t\tboolean userExists = false;\n\t\tPreparedStatement ps = con.prepareStatement(\"SELECT COUNT(*) FROM Users \"\n\t\t + \"WHERE `id`=?;\");\n\t\ttry {\n\t\t\tps.setInt(1, id);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.first() && rs.getInt(1) > 0) {\n\t\t\t\tuserExists = true;\n\t\t\t}\n\t\t} finally {\n\t\t\tcloseStatement(ps);\n\t\t}\n\t\tthrowSqlException();\n\t\tlog.exit();\n\t\treturn userExists;\n\t}", "public boolean isExistingUser() {\r\n return isExistingUser;\r\n }", "public boolean existeUsuario(String nickname, String mail);", "boolean hasUserName();", "private static boolean verificaUser(String username) {\n String user = null;\r\n try {\r\n PreparedStatement stmt = c.prepareStatement(\"SELECT * FROM utilizador where nome=?;\");\r\n stmt.setString(1, username);\r\n ResultSet rs = stmt.executeQuery();\r\n rs.next();\r\n user = rs.getString(\"nome\");\r\n if (user.equals(username)) {\r\n return true;\r\n }\r\n } catch (SQLException e) {\r\n System.out.println(e);\r\n }\r\n return false;\r\n }", "private boolean existeUsuario(String chatId)\n\t{\n\t\treturn usuarioService.findById(chatId).isPresent();\n\t}", "public Boolean isUsernameExist(String username);", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean isUserExist(String username) throws ErrorConnectionException, TException;", "public Boolean user_exists (UserWS user) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tQuery i = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\tiniciaOperacion();\r\n\t\t\t\t\ti = sesion.createQuery(\"SELECT u.id_user FROM User u WHERE u.mail = :login\"); \r\n\t\t\t\t i.setString(\"login\", user.getLogin());\r\n\t\t\t\t \r\n\t\t\t\t return (i.uniqueResult() != null);\r\n\t\t\t\t}", "public boolean createUser() {\r\n\t\tboolean signupSuccess = false;\r\n\t\t/**\r\n\t\t*\tSince connecting to database (DbConnection()) and retrieving data (fetchSelectAllUsers())\r\n\t\t* throw SQLException and throwing an exception from multiple levels again and again is not\r\n\t\t*\ta good way, so its is needed to catch the exception here.\r\n\t\t*/\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection to the database\r\n\t\t\t*/\r\n\t\t\tDbConnection signupConn = new DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tinsert data into table\r\n\t\t\t*/\r\n\t\t\tsignupSuccess = signupConn.executeInsertIntoUsers(uName, password, fullName, phone, email);\r\n\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"**************Error Connecting to the Database**************\");\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//validateConn.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn signupSuccess;\r\n\t}", "@Override\n public boolean isUser(User entity) {\n \tboolean result = false;\n \tUser user = (User) getCurrentSession()\n \t\t.createQuery(\"select u from User u where email = :email and password = :password\")\n \t\t.setParameter(\"email\", entity.getEmail())\n \t\t.setParameter(\"password\", entity.getPassword()).uniqueResult();\n if(user != null) {\n \tresult = true;\n }\n \treturn result;\n }", "private boolean isUserExist(String friendName)\r\n\t{\r\n\t\tlogger.debug(\"->->->->-> Inside isUserExist method ->->->->->\");\r\n\t\tif(userDAO.getParticularUserbyUserName(friendName)==null){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "boolean hasUserManaged();", "private boolean correctUser() {\n // TODO mirar si l'usuari es unic a la base de dades\n return true;\n }", "boolean hasUserType();", "public boolean isThereSuchAUser(String username, String email) ;", "public User userExists(IDatabase db) {\n\t\tUser doesExist = db.userExists(model);\n\t\treturn doesExist;\n\t}", "@Override\r\n\tpublic boolean exists( UserFields fields ) {\n\t\treturn false;\r\n\t}", "public boolean usuarioExistente(String usuario){\n\t\tboolean salida = false;\n\t\ttry{\n\t\t\t\n\t\t\t//Conexión a la base de datos y preparación del comando SQL:\n\t\t\tClass.forName(DRIVER);\n\t\t\tconexion = DriverManager.getConnection(URL);\n\t\t\tString sql = \"SELECT * FROM jugadores WHERE nombreUsuario = ?\";\n\t\t\tpsSql = conexion.prepareStatement(sql);\n\t\t\tpsSql.setString(1, usuario);\n\t\t\t\n\t\t\t//Ejecución de la búsqueda en la base de datos:\n\t\t\tresultado = psSql.executeQuery();\n\t\t\t\n\t\t\t//Validación del resultado de la búsqueda:\n\t\t\twhile(resultado.next()){\n\t\t\t\tif(resultado.getString(\"nombreUsuario\").equals(usuario)){\n\t\t\t\t\tsalida = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception E){\n\t\t\tE.printStackTrace();\n\t\t}finally{\n\t\t\ttry{\n\t\t\t\t\n\t\t\t\t//Cierre de la conexión:\n\t\t\t\tresultado.close();\n\t\t\t\tpsSql.close();\n\t\t\t\tconexion.close();\n\t\t\t\t\n\t\t\t}catch(SQLException E){\n\t\t\t\tE.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn salida;\n\t}", "public boolean isExist(String ID) {\n\t\tboolean verdict = false;\n\t\tPreparedStatement prpstmt = null;\n\t\tResultSet rset;\n\t\ttry {\n\t\t\tString sql = \"SELECT * FROM userinfo.user WHERE ID=?\";\n\n\t\t\tif (ID != \"\" && ID != null) {\n\n\t\t\t\tprpstmt = conn.prepareStatement(sql);\n\t\t\t\tprpstmt.setString(1, ID);\n\t\t\t\trset = prpstmt.executeQuery();\n\t\t\t\tif (rset.first()) {\n\t\t\t\t\tverdict = true;\n\t\t\t\t\treturn verdict;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"ステートメント実行エラーが発生しました/Statement execution Error Occured\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn verdict;\n\n\t}", "private Boolean findUser(String username){\n return usersDataBase.containsKey(username);\n }", "@Override\r\n\tpublic Boolean kiemTonTaiTheoUserName(String id) {\n\t\treturn userReposotory.existsByUserName(id);\r\n\t}", "public boolean doesTheUserExist(String user)\r\n\t {\r\n\t\t if (!users.get(user).equals(null))\r\n\t\t return true;\r\n\t\t return false;\r\n\t }", "@Override\r\n\tpublic boolean insertUsuario(Usuario user) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean checkUser(String username) {\n\t\tboolean result = false;\n\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tQuery query = (Query) session.createQuery(\"from Member where username=?\");\n\n\t\tMember member = (Member) query.setString(0, username).uniqueResult();\n\t\tif (member != null) {\n\t\t\tresult = true;\n\t\t\tlogger.info(\"Member Exists\");\n\t\t} \n\n\t\treturn result;\n\n\t}", "public void checkUsernameExist() {\n\n try {\n BLUser bluser = new BLUser();\n User user = new User();\n\n ResultSet rs = bluser.selectUserIdFromUsername(txt_username.getText());\n\n user.setUsername(txt_username.getText());\n bluser.setUser(user);\n\n if (bluser.checkUsernameExist()) {\n \n populateDataOnTable();\n }// end if\n else {\n JOptionPane.showMessageDialog(rootPane, \"Invalid username!\");\n }// end else \n\n }// end try\n catch (Exception ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage(), \"Exception\", JOptionPane.INFORMATION_MESSAGE);\n }//end catch\n }", "public static boolean verificaUsuario(String usuario,String password){\n\t\tResultSet resultadoConsulta;\n\t\tString query =\"SELECT\"\n\t\t\t\t+ \" usuario.id,\"\n\t\t\t\t+ \" usuario.nombres,\"\n\t\t\t\t+ \"usuario.apellido_paterno,\"\n\t\t\t\t+ \"usuario.apellido_materno,\"\n\t\t\t\t+ \"usuario.usuario,\"\n\t\t\t\t+ \" usuario.contrasenia,\"\n\t\t\t\t+ \" usuario.catergoria as categoria\"\n\t\t\t\t+ \" FROM \"\n\t\t\t\t+ \"usuario\"\n\t\t\t\t+ \" WHERE\"\n\t\t\t\t+ \" usuario.usuario = ?\"\n\t\t\t\t+ \" AND \"\n\t\t\t\t+ \"usuario.contrasenia = ?\"; \n\t\t\n\t\ttry {\n\t\t\tPreparedStatement comando = conexion.prepareStatement(query);\n\t\t\tcomando.setString(1, usuario);\n\t\t\tcomando.setString(2, password);\n\t\t\tresultadoConsulta = comando.executeQuery();\n\n\t\t\twhile (resultadoConsulta.next()) {\n\t\t\t\tUsuario.setId(resultadoConsulta.getInt(\"id\"));\n\t\t\t\tUsuario.setNombre(resultadoConsulta.getString(\"nombres\"));\n\t\t\t\tUsuario.setUsuario(resultadoConsulta.getString(\"usuario\"));\n\t\t\t\tUsuario.setApellidoPaterno(resultadoConsulta.getString(\"apellido_paterno\"));\n\t\t\t\tUsuario.setApellidoMaterno(resultadoConsulta.getString(\"apellido_materno\"));\n\t\t\t\tUsuario.setCategoria(resultadoConsulta.getString(\"categoria\"));\n\t\t\t}\n\t\t\treturn true;\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 false;\n\t}", "@Override\n @SuppressWarnings(\"unchecked\")\n public boolean checkExists(String username) throws DAOException{\n \n try{\n Session session = HibernateConnectionUtil.getSession();\n \n Criteria crit = session.createCriteria(UserProfile.class);\n crit.add(Restrictions.eq(\"username\", username));\n List<UserProfile> userList = crit.list();\n session.close();\n return !userList.isEmpty();\n }\n catch(HibernateException e){\n throw new DAOException(\"HibernateException: \" + e.getMessage());\n }\n\n }", "public boolean userNameExist(String username);", "@Override\n\tpublic boolean isValid(UsersDto dto) {\n\t\tString id=session.selectOne(\"users.isValid\",dto);\n\t\tif(id==null) {//잘못된 아이디와 비밀번호\n\t\t\treturn false;\n\t\t}else {//유효한 아이디와 비밀번호\n\t\t\treturn true;\n\t\t}\n\t}", "@Override\n public boolean isUserAlreadyExist(String email) throws UserException {\n User user;\n\n if (email == null || email.equals(\"\")) {\n logger.error(\"invalid user id: \" + email);\n return false;\n }\n try {\n user = userDAO.getUserById(email);\n return user != null;\n } catch (UserException e) {\n e.printStackTrace();\n logger.error(\"failed to delete a user with id: \" + email);\n return false;\n }\n }", "public boolean register(String u_Name, String u_pw, String f_name){\n List<User> userList = userDao.getUserFromUsername(u_Name);\n //1.check if userName is used\n if (userList.size() != 0){ \n return false;\n }\n //2.create user and add to the DB\n User user = new User(u_Name, u_pw, f_name);\n userDao.addUser(user);\n //3.return true\n return true;\n }", "private boolean accountExists(String codigoCuenta, Connection con )\n {\n ClassConnection cc = new ClassConnection();\n boolean presente = (Boolean)cc.execute( \"SELECT codigocuenta FROM cuenta WHERE codigocuenta = \" + Long.parseLong( codigoCuenta ), 2, con);\n \n return presente;\n }", "public boolean hasObjUser() {\n return instance.hasObjUser();\n }", "@Override\n public boolean compruebaPorId(Integer id) {\n return usuarioRepository.existsById(id);\n }", "boolean exists(String username);", "private boolean checkNameExistAdd(String userName) {\n\n\t\tUser user = this.userDAO.getUserByName(userName);\n\t\tif (null != user) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "@Override\n public boolean checkExists(int userID) throws DAOException{\n\n try{\n Session session = HibernateConnectionUtil.getSession();\n UserProfile up = (UserProfile)session.get(UserProfile.class, userID);\n session.close();\n return up != null;\n }\n catch(HibernateException e){\n throw new DAOException(\"HibernateException: \" + e.getMessage());\n }\n }", "public boolean userExists(String user){\n boolean answer = false;\n //look into the database\n try{\n statement = connection.createStatement();\n //execute SQL query and get the data from the database\n ResultSet myResult = statement.executeQuery(\"SELECT name FROM members WHERE name = '\" + user +\"'\");\n while (myResult.next()) {\n if (myResult.getString(\"name\")!= null)\n //name exists so answer = true\n answer = true;\n }\n\n }catch (SQLException ex){ex.printStackTrace();}\n return answer;\n }" ]
[ "0.7688962", "0.75598836", "0.7411137", "0.7336152", "0.7265776", "0.72542626", "0.72116673", "0.72116673", "0.72116673", "0.72116673", "0.72116673", "0.72116673", "0.72116673", "0.7179628", "0.7160627", "0.7156967", "0.7098189", "0.7046133", "0.7028604", "0.7014979", "0.70008934", "0.70008934", "0.70008934", "0.70008934", "0.70008934", "0.70008934", "0.70008934", "0.70008934", "0.70008934", "0.70008934", "0.70008934", "0.70008934", "0.70008934", "0.70008934", "0.70008934", "0.70008934", "0.70008934", "0.70008934", "0.6999218", "0.69919175", "0.6991255", "0.6934174", "0.6919254", "0.6904152", "0.6832588", "0.6796619", "0.6777514", "0.6777514", "0.6777514", "0.6763233", "0.67608374", "0.6757587", "0.67548335", "0.6726598", "0.67233074", "0.6719494", "0.6715182", "0.6709273", "0.6703977", "0.66763616", "0.66056097", "0.6604671", "0.6604618", "0.6604618", "0.6604618", "0.6604618", "0.6604618", "0.6604618", "0.66027164", "0.65890473", "0.6587596", "0.65846056", "0.6583672", "0.6575813", "0.65706205", "0.6560478", "0.655427", "0.6548518", "0.653724", "0.6534891", "0.65088457", "0.6503451", "0.649497", "0.6477824", "0.6457436", "0.64555204", "0.64538664", "0.64533395", "0.64473623", "0.6443195", "0.6429515", "0.6422016", "0.6421801", "0.6420742", "0.6419174", "0.64183706", "0.6413784", "0.6412217", "0.64116615", "0.6409999", "0.6402864" ]
0.0
-1
Metodo que devuelve los permisos segun el tipo de usuario
public PermisosPyS obtenerPermisos(String user) { try { PreparedStatement pstm = null; ResultSet rs = null; String query = "SELECT * FROM permisos WHERE ID_permiso IN (SELECT ID_permisos FROM Roles as r INNER JOIN Usuario as u ON r.ID_Rol = u.ID_Rol WHERE u.username = ?);"; pstm = con.prepareStatement(query); pstm.setString(1, user); rs = pstm.executeQuery(); if(rs.next()) { PermisosPyS p = new PermisosPyS(); p.setPySSelect(rs.getBoolean("PyS_select")); p.setPySUpdate(rs.getBoolean("PyS_update")); p.setPySInsert(rs.getBoolean("PyS_insert")); p.setPySDelete(rs.getBoolean("PyS_delete")); p.setAdmin(rs.getBoolean("isAdmin")); p.setUser(rs.getBoolean("isUser")); return p; //regresar el objeto con los permisos almacenados }else{ return null; } }catch(Exception ex){ ex.printStackTrace(); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setearPermisosMenu()\r\n\t{\r\n\t\t/*Permisos del usuario para los mantenimientos*/\r\n\t\tthis.setearOpcionesMenuMantenimientos();\r\n\t\tthis.setearOpcionesMenuFacturacion();\r\n\t\tthis.setearOpcionesMenuCobros();\r\n\t\tthis.setearOpcionesMenuProcesos();\r\n\t\tthis.setearOpcionesReportes();\r\n\t\tthis.setearOpcionesMenuAdministracion();\r\n\t}", "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "@Override\n\tpublic String checkPermision(String user, String userType) {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<UserRole> buscarUserRoleSemPermissoes() {\n\t\t// TODO Auto-generated method stub\n\t\tQuery query = getCurrentSession().createQuery(\"select ur from UserRole ur where ur.permissions\");\n\t\treturn query.list();\n\t}", "public int getIdPermisos()\r\n\t{\r\n\t\treturn idPermisos;\r\n\t}", "protected void accionUsuario() {\n\t\t\r\n\t}", "public void setPermisos(int permisos) {\n\t\tthis.permisos = permisos;\r\n\t}", "public List<String> grantpermission() {\n\t\tList<Integer> userids = new ArrayList<>();\n\t\tuserids = crud1.grantPermission();\n\t\tList<String> username = new ArrayList<>();\n\t\tfor (Integer x : userids) {\n\n\t\t\tusername.add(crud1.findById(x).get().getUsername());\n\t\t}\n\t\treturn username;\n\t}", "@Override\r\n\tpublic void analizarUsuario(String tipo) {\n\t\t\r\n\t\tswitch (tipo){\r\n\t\t\tcase \"Administrativo\":\r\n\t\t\t\tfor(IAsesoria ia : usuarios) {\r\n\t\t\t\t\tif(ia.getClass().getSimpleName().equals(tipo)) {\r\n\t\t\t\t\t\tia.analizarUsuario();\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\t\r\n\t\t\t\tbreak;\t\r\n\t\t\tcase \"Profesional\":\r\n\t\t\t\tfor(IAsesoria ia : usuarios) {\r\n\t\t\t\t\tif(ia.getClass().getSimpleName().equals(tipo)) {\r\n\t\t\t\t\t\tia.analizarUsuario();\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Cliente\":\r\n\t\t\t\tfor(IAsesoria ia : usuarios) {\r\n\t\t\t\t\tif(ia.getClass().getSimpleName().equals(tipo)) {\r\n\t\t\t\t\t\tia.analizarUsuario();\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\t\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t}\r\n\r\n\r\n\t}", "public List<Pregunta> getPreguntasUsuario(Usuario user);", "@Override\n\tpublic List<TiposUsuario> findAllTipoUsuarios() {\n\t\treturn (List<TiposUsuario>) iUsuarios.findAllTipoGastos();\n\t}", "@Override\n protected String requiredGetPermission() {\n return \"user\";\n }", "public List<NotaDeCredito> procesar();", "public List<Permission> getPermissions(User user) throws UserManagementException;", "public List<Permission> getPermissions(T object, User user);", "private void permisos(HttpPresentationComms comms) throws HttpPresentationException, KeywordValueException {\n/* 289 */ int miGrupo = Integer.parseInt((String)comms.session.getSessionData().get(\"miGrupo\"));\n/* */ \n/* 291 */ Varios oVarios = new Varios();\n/* 292 */ boolean oPermisoAct = oVarios.tienePermiso(miGrupo, \"admPrcRecursoAct\");\n/* 293 */ boolean oPermisoDel = oVarios.tienePermiso(miGrupo, \"admPrcRecursoDel\");\n/* 294 */ if (!oPermisoAct) {\n/* 295 */ HTMLElement elem = this.pagHTML.getElementBtnCrear();\n/* 296 */ elem.getParentNode().removeChild(elem);\n/* 297 */ elem = this.pagHTML.getElementBtnGrabar();\n/* 298 */ elem.getParentNode().removeChild(elem);\n/* 299 */ elem = this.pagHTML.getElementBtnModificar();\n/* 300 */ elem.getParentNode().removeChild(elem);\n/* */ } \n/* 302 */ if (!oPermisoDel) {\n/* 303 */ HTMLElement elem = this.pagHTML.getElementBtnEliminar();\n/* 304 */ elem.getParentNode().removeChild(elem);\n/* */ } \n/* */ }", "public List<Permiso> obtenerTodosActivos();", "@Override\n public RspPermiso listPermiso() {\n ConectorBDMySQL conectorBD = new ConectorBDMySQL();\n RspPermiso rspPermiso = new RspPermiso();\n List<Permiso> todosLosPermisos = new ArrayList<Permiso>();\n //INICIALIZAR VARIABLES\n rspPermiso.setEsConexionAbiertaExitosamente(false);\n rspPermiso.setEsConexionCerradaExitosamente(false);\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(false);\n //INTENTA ESTABLECER LA CONEXIÓN CON LA BASE DE DATOS\n if (conectorBD.iniciarConexion()) {\n rspPermiso.setEsConexionAbiertaExitosamente(true);\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n String consultaSQL = \"SELECT * FROM permiso WHERE estado = 1\";\n try {\n Statement sentencia = conectorBD.getConnection().createStatement();\n boolean bandera = sentencia.execute(consultaSQL);\n if (bandera) {\n ResultSet rs = sentencia.getResultSet();\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(true);\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirConsulta(sentencia.toString(), \"listPermiso()\", this.getClass().toString()));\n while (rs.next()) {\n Permiso permiso = new Permiso();\n permiso = rsPermiso(rs, permiso);\n todosLosPermisos.add(permiso);\n }\n }\n } catch (SQLException e) {\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirExcepcion(e, \"listPermiso()\", this.getClass().toString()));\n } finally {\n if (conectorBD.cerrarConexion()) {\n rspPermiso.setEsConexionCerradaExitosamente(true);\n }\n rspPermiso.setRespuestaCierreDeConexion(conectorBD.getAtributosConector().getRespuestaCierreDeConexion());\n rspPermiso.setAllPermisos(todosLosPermisos);\n return rspPermiso;\n }\n } else {\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n return rspPermiso;\n }\n }", "private void listaUsuario(HttpServletRequest req, HttpServletResponse resp) {\n\t\t\r\n\t}", "public List getUsuarios();", "public SigalPeticion getUsuarios() throws Exception {\n SigalPeticion msgEnvio = SigalPeticion.getInstance( 2 );\n\n msgEnvio.addParametro( 0, new Parametro( \"FUNCION\", \"CL\" ) ); \n msgEnvio.addParametro( 1, \n /**\n * Somente usuarios ATIVOS\n * N = Ativos\n * S = Ativos e Inativos\n */\n new Parametro( \"USUBAJAC\", \"N\" ) \n );\n\n msgEnvio.setTipoOperacion( \"view\" );\n msgEnvio.setTransaccion( \"SGCLUSU\" );\n\n return msgEnvio;\n }", "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "private void controladorPerfil(Controlador controlador){\n this.contUserDisplayCollective = controlador.getUserDisplayCollective();\n perfil.setControlCollective((ListSelectionListener)contUserDisplayCollective);\n inicioUser.setControlCollective((ListSelectionListener)contUserDisplayCollective);\n\n this.contUserDisplayProject = controlador.getUserDisplayProject();\n perfil.setControlProject((ListSelectionListener)contUserDisplayProject);\n inicioUser.setControlProject((ListSelectionListener)contUserDisplayProject);\n inicioAdmin.setControlProject((ListSelectionListener)contUserDisplayProject);\n \n }", "public List<Permission> getPermissionsPending(User user) throws UserManagementException;", "private void controladorUser(Controlador controlador){\n this.contUserCrearProyecto = controlador.getUserCrearProyecto();\n inicioUser.setControlCrearProyecto(contUserCrearProyecto);\n \n this.contUserCrearColectivo = controlador.getUserCrearColectivo();\n inicioUser.setControlCrearColectivo(contUserCrearColectivo);\n\n this.contInformes = controlador.getInformes();\n inicioUser.setControlSolicitarInformes(contInformes); \n \n this.contFiltrar = controlador.getFiltrar();\n inicioUser.setControlFiltrar(contFiltrar);\n\n this.contLimpiar = controlador.getLimpiarFiltro();\n inicioUser.setControlLimpiarFiltro(contLimpiar);\n }", "private void permisosContactos() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS) != PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_CONTACTS) != PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(this, new String[]{\n Manifest.permission.READ_CONTACTS, Manifest.permission.WRITE_CONTACTS\n }, CONTACTS_REQUEST_CODE);\n\n }\n\n else{\n llenarLista();\n }\n }", "protected void doGetPermissions() throws TmplException {\r\n try {\r\n GlbPerm perm = (GlbPerm)TmplEJBLocater.getInstance().getEJBRemote(\"pt.inescporto.permissions.ejb.session.GlbPerm\");\r\n\r\n perms = perm.getFormPerms(MenuSingleton.getRole(), permFormId);\r\n }\r\n catch (java.rmi.RemoteException rex) {\r\n //can't get form perms\r\n TmplException tmplex = new TmplException(TmplMessages.NOT_DEFINED);\r\n tmplex.setDetail(rex);\r\n throw tmplex;\r\n }\r\n catch (javax.naming.NamingException nex) {\r\n //can't find GlbPerm\r\n TmplException tmplex = new TmplException(TmplMessages.NOT_DEFINED);\r\n tmplex.setDetail(nex);\r\n throw tmplex;\r\n }\r\n }", "public List<Perfil> perfilListar() {\r\n\r\n try {\r\n ControladorPerfil ctrlperfil = new ControladorPerfil();\r\n return ctrlperfil.getListaPerfil();\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n return new ArrayList<>();\r\n }\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic JSONArray NombrePermisosDeUnUsuario(String nombre_usuario){\n \tJSONArray jarray= new JSONArray();\n \tUsuario lu= this.buscarUsuarioPorNombre(nombre_usuario);\n\t\tList<UsuarioRol>Userroles=lu.getRoles();\n\t\tfor(UsuarioRol ur: Userroles){\n\t\t\tList<PermisoRol>Permroles = ur.getRol().getPermisos();\n\t\t\tfor(PermisoRol pr: Permroles){\n\t\t\t\tjarray.add(pr.getPermiso().toJSON());\n\t\t\t}\n\t\t}\n\t\treturn jarray;\n }", "private void cargaPermisos() {\n habilitaCampos();\n \n //Abre la conexion\n Connection con = Star.conAbrBas(true, false);\n \n //Declara variables de la base de datos \n java.sql.Statement st;\n java.sql.ResultSet rs; \n String sQ;\n \n try {\n /*Obtiene todos los datos del usuario*/\n sQ = \"SELECT * FROM er_permisos WHERE FKIdUsuario = (SELECT id_id FROM estacs WHERE estac = '\"+jcmbUsuarios.getSelectedItem().toString()+\"')\";\n st = con.createStatement();\n rs = st.executeQuery(sQ);\n /*Si hay datos*/\n if(rs.next())\n {\n /*Obtiene los datos y cargalos en sus campos*/\n llenaPermisos(rs,jcbConf,jcbConfCorreos,jcbConfDatos,jcbconfSeries,jcbConfImpresoras,jcbConfCambiarIcono,jcbConfConfiguraciones, jcbConfiguracionesPermiso,\n jcbUsuarios, jcbDefinirUsr, jcbUsrConectados, jcbPermisosUsr,jcbClaves, jcbReparar, jcbReparador, jcbRestaurar, jcbBaseDatos, jcbConexionesBD, jcbArchivoConf,jcbReportes, jcbRepUsuarios, jcbRepRespaldos, jcbRepLog, jcbRepEstadisticas, jcbRevocacion, jcbActivar,jcbSistemaPermiso,\n jcbContabilidad, jcbConceptos, jcbCatalogo, jcbZonas, jcbGiros, jcbMonedas, jcbImpuestos, jcbModulosPermiso,\n jcbCompras, jcbCancelarCompra, jcbDevolCompra, jcbParcialCompra, jcbNuevoCompra,jcbNotCompra, jcbVerCompra,jcbCargarArchivoCompra, jcbBorrarArchivoCompra, jcbRecibirCompra, jcbComprasPermiso,\n jcbProve, jcbProveNuevo, jcbProveModificar, jcbProveVer, jcbProveBorrar, jcbProveePermiso,\n jcbPrevioCompra, jcbNuevaPrevio, jcbAbrirPrevio, jcbVerPrevio, jcbCancelarPrevio, jcbSeriesPrevio,jcbCompraPrevio,jcbPrevioPermiso,\n jcbInventario, jcbProductos, jcbNuevoProd, jcbModificarProd, jcbBorrarProd, jcbInventarioPermiso,\n jcbClientes, jcbClieNuevo, jcbClieModificar, jcbClieVer, jcbClieBorrar, jcbClieEnviar, jcbClientesPermiso,\n jcbVentas, jcbCancelarVentas, jcbDevolVentas, jcbParcialVentas, jcbNuevaVentas, jcbNotVentas, jcbVerVentas, jcbEnviarVentas, jcbTimbrarVentas, jcbEntregarVentas, jcbComprobarVentas, jcbAcuseVentas, jcbObtenerXmlVentas, jcbFacturarVentas, jcbCargarArchivoVentas, jcbBorrarArchivoVentas, jcbVentasPermiso,\n jcbCotizaciones, jcbNuevaCotiza, jcbAbrirCotiza, jcbVerCotiza, jcbCancelarCotiza, jcbReenviarCotiza, jcbVentaCotiza, jcbCotizaPermiso);\n \n }\n } catch (SQLException ex) {\n Logger.getLogger(PermsEstacs.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n try {\n /*Obtiene todos los datos del usuario*/\n sQ = \"SELECT otorgaPermisosConfig, otorgaPermisosSistema, otorgaPermisosModulos, otorgaPermisosCompras, otorgaPermisosProvee, otorgaPermisosPrevio, otorgaPermisosInventario, otorgaPermisosClientes, otorgaPermisosVentas, otorgaPermisosCotiza FROM er_permisos WHERE FKIdUsuario = (SELECT id_id FROM estacs WHERE estac = '\"+Login.sUsrG+\"')\";\n st = con.createStatement();\n rs = st.executeQuery(sQ);\n /*Si hay datos*/\n if(rs.last())\n {\n //Desactiva los permisos a los cuales no tiene permiso el usuario actual\n revisaOtorgaPermisos(rs);\n \n }\n } catch (SQLException ex) {\n Logger.getLogger(PermsEstacs.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public ArrayList<Usuario> getUsuarios(Usuario creador){\r\n ArrayList<Usuario> al= new ArrayList<>();\r\n if (creador.isAdmin()){\r\n try {\r\n String sql= \"Select * from sistemasEM.usuarios\";\r\n Statement s= connection.createStatement();\r\n ResultSet rs = s.executeQuery(sql);\r\n Usuario u;\r\n while(rs.next()){\r\n TipoDescuento td = this.getTipoDescuento(rs.getInt(\"permisosDescuento\"));\r\n TipoPersonal tp = this.getTipoPersonal(rs.getInt(\"permisosPersonal\"));\r\n al.add( new Usuario(rs.getInt(\"id\"), rs.getString(\"nombre\"), rs.getString(\"mostrar\"),rs.getBoolean(\"admin\"),tp,td,rs.getBoolean(\"notas\"),rs.getBoolean(\"habilitacion\"),rs.getBoolean(\"profesor\"),rs.getInt(\"ciProfesor\"),rs.getBoolean(\"cambiarContra\")));\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return al;\r\n }", "public int getMetaPrivileges();", "public List<Usuario> getTodosOsUsuarios() {\r\n\t\treturn listaDeUsuarios;\r\n\t}", "@Override\n\tpublic List<HashMap<String, Object>> findRoleUser(XtParmas parmas) {\n\t\treturn roleMapper.findRoleUser(parmas);\n\t}", "public UsuarioMovil getPerfil(String nombreUsuario) throws Exception {\n\t\t\n\t\treturn toUsuarioAndrac(getUsuarioFromDB(nombreUsuario));\n\n\t}", "private static void privilegio(int tipo) {\n String nome;\r\n Scanner sc = new Scanner(System.in);\r\n if (tipo == 1)\r\n System.out.println(\"Qual o utilizador a quem quer dar privilégios de editor?\");\r\n else\r\n System.out.println(\"Qual o utilizador a quem quer dar privilégios de editor?\");\r\n nome = sc.nextLine();\r\n PreparedStatement stmt;\r\n if (verificaUser(nome)) {\r\n try {\r\n c.setAutoCommit(false);\r\n if (tipo == 1)\r\n stmt = c.prepareStatement(\"UPDATE utilizador SET utilizador_tipo = true WHERE nome=?\");\r\n else\r\n stmt = c.prepareStatement(\"UPDATE utilizador SET utilizador_tipo = false WHERE nome=?\");\r\n stmt.setString(1, nome);\r\n stmt.executeUpdate();\r\n\r\n stmt.close();\r\n c.commit();\r\n } catch (SQLException e) {\r\n System.out.println(e);\r\n }\r\n System.out.println(\"Privilégios atualizados\");\r\n } else {\r\n System.out.println(\"Utilizador não encontrado\");\r\n }\r\n }", "public void setUsuarioModificacion(String p) { this.usuarioModificacion = p; }", "public void setUsuarioModificacion(String p) { this.usuarioModificacion = p; }", "private void setPrivilagesToModifyUser(User user){\n\t\tsetFields(false);\n\t\tif (!LoginWindowController.loggedUser.getPermissions().equals(\"administrator\"))\n\t\t{\n\t\t\tif (LoginWindowController.loggedUser.getId() != user.getId()){\n\t\t\t\tif ((user.getPermissions().equals(\"manager\")) \n\t\t\t\t\t\t|| (user.getPermissions().equals(\"administrator\"))){\n\t\t\t\t\tsetFields(true);\n\t\t\t\t}\n\t\t\t\tif (user.getPermissions().equals(\"pracownik\")){\n\t\t\t\t\tsetFields(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tsetFields(false);\n\t\t\t\tdeleteMenuItem.setDisable(true);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (LoginWindowController.loggedUser.getId() == user.getId()){\n\t\t\t\tdeleteMenuItem.setDisable(true);\n\t\t\t\tuserPermissionsBox.setDisable(true);\n\t\t\t}\n\t\t}\n\t}", "public List<PerfilTO> buscarTodos();", "private void cargaUsuarios() {\n //Abre la conexion\n Connection con = Star.conAbrBas(true, false);\n \n //Declara variables de la base de datos \n java.sql.Statement st;\n java.sql.ResultSet rs; \n String sQ;\n /*Obtiene todos los datos del usuario*/\n try\n {\n sQ = \"SELECT estac FROM estacs WHERE estac <> '\" + Login.sUsrG + \"' AND admcaj <= (SELECT admcaj FROM estacs WHERE estac = '\" + Login.sUsrG + \"')\";\n st = con.createStatement();\n rs = st.executeQuery(sQ);\n /*Si hay datos*/\n while(rs.next())\n {\n /*Obtiene los datos y cargalos en sus campos*/\n jcmbUsuarios.addItem(rs.getString(\"estac\"));\n }\n //si ingreso usuarios al combo, jalo los permisos del primer usuario\n// if(jcmbUsuarios.getItemCount() > 0){\n// cargaPermisos(jcmbUsuarios.getSelectedItem().toString());\n// }\n \n }catch(SQLException expnSQL)\n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnSQL.getMessage(), Star.sErrSQL, expnSQL.getStackTrace(), con); \n }\n }", "@Override\r\n\tpublic void analizarUsuario() {\n\t\tfor(IAsesoria ia : usuarios) {\r\n\t\t\tia.analizarUsuario();\r\n\t\t}\t\r\n\t}", "public void recuperandoDadosUsuarioescolhido(){\n Bundle bundle = getIntent().getExtras();\n if (bundle != null){\n if (bundle.containsKey(\"usuarioSelecionado\")){\n dadosDoUsuario = (Usuario) bundle.getSerializable(\"usuarioSelecionado\");\n }\n }\n\n // Configurando Toolbar\n\n toolbar.setTitle(dadosDoUsuario.getNome());\n setSupportActionBar(toolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n // Configurando Imagem\n if (dadosDoUsuario.getFoto() != null){\n if (!dadosDoUsuario.getFoto().isEmpty()){\n Uri url = Uri.parse(dadosDoUsuario.getFoto());\n Glide.with(getApplicationContext()).load(url).into(civFotoPerfil);\n }\n }\n\n // Configurando Seguidores Postagens e Seguindo\n\n //stPublicacao = String.valueOf(dadosDoUsuario.getPublicacoes());\n stSeguidores = String.valueOf(dadosDoUsuario.getSeguidores());\n stSeguindo = String.valueOf(dadosDoUsuario.getSeguindo());\n\n tvSeguindo.setText(stSeguindo);\n tvSeguidores.setText(stSeguidores);\n //tvPublicacao.setText(stPublicacao);\n\n // Configurando Referencia postagens Usuario Escolhido\n postagensUsuarioRef = ConfiguracaoFirebase.getFirebaseDatabase()\n .child(\"postagens\")\n .child(dadosDoUsuario.getId());\n\n // Inicializa o Universal Image Loader\n inicializarImageLoader();\n // Recupera as Postagens do nosso Banco de Dados\n carregarFotosPostagem();\n }", "public List<PrivilegioGrupoUsuarioDTO> getGrupoUsuarioPrivilegioGrupoUsuarioList(){\n return this.grupoUsuarioPrivilegioGrupoUsuarioList;\n }", "public SigalPeticion reativarUsuario ( AccountTO usuario ) throws Exception {\n \n // Tratamento para controle de campos opicionais\n int totalParams = 11;\n boolean possuiCenttra = true;\n boolean possuiCodPerfil = true;\n\n if ( usuario.getCenttra() == null || usuario.getCenttra().trim().equals(\"\") ) {\n --totalParams;\n possuiCenttra = false;\n }\n\n if ( usuario.getCodperfil() == null || usuario.getCodperfil().trim().equals(\"\") ) {\n --totalParams;\n possuiCodPerfil = false;\n }\n\n SigalPeticion msgEnvio = SigalPeticion.getInstance( totalParams );\n\n msgEnvio.addParametro( --totalParams, new Parametro( \"FUNCION\", \"RE\" ) );\n\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.USUARIO,\n usuario.getUsuario() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.OFICINA,\n usuario.getOficina() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.NOMBREUSU,\n usuario.getNombreusu() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.PASSWORD,\n usuario.getPassword() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.NIVSEGUSU,\n usuario.getNivsegusu() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.CODIDIOMA,\n usuario.getCodidioma() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.FECACTIVA,\n usuario.getFecactivaForEASE() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.FECDESACT,\n usuario.getFecdesactForEASE() ) );\n\n // CAMPO OPICIONAL, alteração feita na especificação v. 5.0\n if ( possuiCenttra )\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.CENTTRA,\n usuario.getCenttra() ) );\n\n // CAMPO OPICIONAL, alteração feita na especificação v. 5.0\n if ( possuiCodPerfil ) {\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.CODPERFIL,\n usuario.getCodperfil() ) );\n }\n\n msgEnvio.setTipoOperacion( \"update\" );\n msgEnvio.setTransaccion( \"SGREUSU\" );\n\n return msgEnvio; \n }", "@Override\r\n\tpublic List<Usuario> listarUsuario() {\n\t\treturn iUsuario.listarUsuarios();\r\n\t}", "public Permission[] getPermissionsField() {\n\treturn super.getPermissions(null);\n }", "private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }", "private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }", "public void ValidandoPerfil()\r\n\t{\n\t\t\r\n\t}", "public List<String> getUserPermissions(String login) throws IOException;", "public List<Usuario> listarUsuarios(boolean Vigente){\r\n return cVista.listarUsuarios(Vigente);\r\n }", "public static void getUserPermissions(ArrayList<String> parameters, HashMap<String, ArrayList<String>> sessions, ObjectOutputStream oos) throws IOException {\n ArrayList<Integer> userPermissions;\n\n // check if correct number of parameters have been provided\n if (parameters.size() != 2) {\n oos.writeObject(new Response(StatusCodes.BAD_REQUEST, \"Parameters Invalid\"));\n } else {\n // check if token from parameters is valid and if session token has not yet expired\n if (sessions.containsKey(parameters.get(1)) && !hasTokenExpired(sessions, parameters.get(1))) {\n // check if the user exists\n if (Users.doesUserExists(parameters.get(0))) {\n // check if user is attempting to get their own permissions\n if (parameters.get(0).equals(sessions.get(parameters.get(1)).get(0))) {\n // get the user's permissions\n userPermissions = Users.getUserPermissionsFromDB(parameters.get(0));\n if (userPermissions.isEmpty()) {\n oos.writeObject(new Response(StatusCodes.NO_CONTENT, userPermissions));\n } else {\n oos.writeObject(new Response(StatusCodes.OK, userPermissions));\n }\n } else {\n // check if the user has the \"Edit Users\" permission\n if (Users.userHasPermission(sessions.get(parameters.get(1)).get(0), ServerPermissions.EDIT_USERS)) {\n // get the user's permissions\n userPermissions = Users.getUserPermissionsFromDB(parameters.get(0));\n if (userPermissions.isEmpty()) {\n oos.writeObject(new Response(StatusCodes.NO_CONTENT, userPermissions));\n } else {\n oos.writeObject(new Response(StatusCodes.OK, userPermissions));\n }\n } else {\n oos.writeObject(new Response(StatusCodes.FORBIDDEN, \"Missing Permissions\"));\n }\n }\n } else {\n oos.writeObject(new Response(StatusCodes.INTERNAL_ERROR, \"User Does Not Exist\"));\n }\n } else {\n oos.writeObject(new Response(StatusCodes.UNAUTHORISED, \"Unauthorised Request\"));\n }\n }\n // flush oos\n oos.flush();\n }", "@Override\n public Set<String> getPermissions(Class<? extends AeroCommandBase<?>> command) {\n return permissions.get(command);\n }", "public int getMetaUsers();", "public QuerySet<Privilegio> getPrivilegioSet() {\n return Privilegio.objects.getSet(Permissao.class, this.id);\n }", "@Override\n\tpublic List<Map<String, Object>> getAllUser(int userType) {\n\t\tString sql = \"select * from tp_users where userType=2\";\n\t\t\n\t\tMap<String, Object> params = new HashMap<String, Object>();\n\t\tparams.put(\"userType\", userType);\n\t\treturn joaSimpleDao.queryForList(sql, params);\n\t}", "public QuerySet<Perfil> getPerfilSet() {\n QuerySet<Perfil> perfilList = new QuerySet<Perfil>();\n Perfil perfil = null;\n for (Privilegio privilegio : getPrivilegioSet()) {\n perfil = Perfil.objects.<Perfil>get(\"id\", privilegio.getPerfil().getId());\n perfil.getPermissoes();\n perfilList.add(perfil);\n }\n return perfilList;\n }", "private void verificaTipoUsuario(Usuario usuario) {\n \n if( usuario.getTipoUsuario() == 3 ){ //Usuário apenas visualização\n adicionarInvAnimaisBT.setEnabled(false);\n adicionarInvBenfeitoriasBT.setEnabled(false);\n adicionarInvMaquinasBT.setEnabled(false);\n adicionarInvTerrasBT.setEnabled(false);\n \n editarInvAnimaisBT.setEnabled(false);\n editarInvBenfeitoriasBT.setEnabled(false);\n editarInvMaquinasBT.setEnabled(false);\n editarInvTerrasBT.setEnabled(false);\n \n removerInvAnimaisBT.setEnabled(false);\n removerInvBenfeitoriasBT.setEnabled(false);\n removerInvMaquinasBT.setEnabled(false);\n removerInvTerrasBT.setEnabled(false);\n \n atividadeLeiteBT.setEnabled(false);\n custoOportBT.setEnabled(false);\n salarioMinimoBT.setEnabled(false);\n \n valorGastoAnimaisBT.setEnabled(false);\n vidaUtilReprodBT.setEnabled(false);\n vidaUtilServBT.setEnabled(false);\n }\n \n }", "public int getPerfil(){\n return this.perfil;\n }", "@Name(\"creditoDisponivel\")\n public Integer limiteCredito(@Source Usuario u) {\n return u.nome.length();\n }", "public ec.com.smx.framework.security.dto.UserDto getUsuarioModificacion() {\n\t\treturn this.usuarioModificacion;\n\t}", "abstract public void getPermission();", "@Override\n public void mostrarUsuarios(List<UserModel> usuarios) {\n }", "public List <String> getPermittedUsers() throws BusinessServiceException{\r\n\r\n\t\treturn financeManagerBO.getPermittedUsers();\t\t\r\n\t}", "void askForPermissions();", "public HashSet<Usuario> getRegistrosPendientesDeAprobacion(){\r\n\t\t\r\n\t\tif(!this.modoAdmin) return null;\r\n\t\t\r\n\t\tUsuario u;\r\n\t\tHashSet<Usuario> pendientes = new HashSet<Usuario>();\r\n\t\tfor(Proponente p: this.proponentes) {\r\n\t\t\tif( p.getClass().getSimpleName().equals(\"Usuario\")) {\r\n\t\t\t\tu = (Usuario)p;\r\n\t\t\t\tif(u.getEstado()== EstadoUsuario.PENDIENTE) {\r\n\t\t\t\t\tpendientes.add(u);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pendientes;\r\n\t}", "@Override\r\n\tpublic List<Permission> queryPermissionsByUsers(User dbUser) {\n\t\treturn permissionDao.queryPermissionsByUsers(dbUser);\r\n\t}", "public void popoulaRepositorioUsuarios(){\n Usuario usuario1 = new Usuario();\n usuario1.setUsername(\"EliSilva\");\n usuario1.setEmail(\"[email protected]\");\n usuario1.setSenha(\"123\");\n usuario1.setNome(\"Elineide Silva\");\n usuario1.setCPF(\"12345678\");\n\n\n\n Usuario usuario2 = new Usuario();\n usuario2.setUsername(\"gustavo\");\n usuario2.setEmail(\"[email protected]\");\n usuario2.setSenha(\"12345\");\n usuario2.setNome(\"Gustavo\");\n usuario2.setCPF(\"666\");\n\n Usuario usuario3 = new Usuario();\n usuario1.setUsername(\"peixe\");\n usuario1.setEmail(\"[email protected]\");\n usuario1.setSenha(\"1111\");\n usuario1.setNome(\"quem dera ser um peixe\");\n usuario1.setCPF(\"1111\");\n\n Usuario usuario4 = new Usuario();\n usuario1.setUsername(\"segundo\");\n usuario1.setEmail(\"[email protected]\");\n usuario1.setSenha(\"123\");\n usuario1.setNome(\"Elineide Silva\");\n usuario1.setCPF(\"12345678\");\n\n inserir(usuario1);\n inserir(usuario2);\n inserir(usuario3);\n inserir(usuario4);\n }", "public List<IPermissionOwner> getAllPermissionOwners();", "private static ArrayList<Boolean> retrieveUserPermissionsFromDb(String username) throws IOException, SQLException {\n ArrayList<Boolean> userPermissions = new ArrayList<>();\n ArrayList<String> retrievedUser = retrieveUser(username);\n userPermissions.add(0, stringToBoolean(retrievedUser.get(3))); // Create billboard\n userPermissions.add(1, stringToBoolean(retrievedUser.get(4))); // Edit billboard\n userPermissions.add(2, stringToBoolean(retrievedUser.get(5))); // Edit schedule\n userPermissions.add(3, stringToBoolean(retrievedUser.get(6))); // Edit User\n return userPermissions;\n }", "public Enumeration permissions();", "public List<UsuarioDTO> listarUsuarios() {\n\t\treturn null;\n\n\t}", "public Permissions[] getPermissionsNeeded(ContainerRequestContext context) throws Exception {\n Secured auth = resourceInfo.getResourceMethod().getAnnotation(Secured.class);\n\n // If there's no authentication required on method level, check class level.\n if (auth == null) {\n auth = resourceInfo.getResourceClass().getAnnotation(Secured.class);\n }\n\n // Else, there's no permission required, thus we chan continue;\n if (auth == null) {\n log.log(Level.INFO, \"AUTHENTICATION: Method: \" + context.getMethod() + \", no permission required\");\n return new Permissions[0];\n }\n\n return auth.value();\n }", "List<UserPermissionDTO> findAll();", "@MemberOrder(sequence = \"30\")\n @Render(Render.Type.EAGERLY)\n @Paged(50)\n @NotInServiceMenu\n @NotContributed(NotContributed.As.ACTION) // ie contributed as property\n @ActionSemantics(ActionSemantics.Of.SAFE)\n public List<UserPermissionViewModel> permissions(ApplicationUser user) {\n final Collection<ApplicationFeature> allMembers = applicationFeatures.allMembers();\n return Lists.newArrayList(\n Iterables.transform(\n allMembers,\n UserPermissionViewModel.Functions.asViewModel(user, container))\n );\n }", "public TabelaHash getUsuarios() {\n return usuarios;\n }", "@Override\n\tpublic Set<String> getPermissions(String username) {\n\t\tSet<String> pers = userDao.getPermissions(username);\n\t\treturn pers;\n\t}", "public void AsignarPermiso(Permiso p){\n\t\tPermisoRol pr = new PermisoRol(p,this);\n\t\tpermisos.add(pr);\n\t}", "public Perfil getPerfilSesion(){\n return this.perfilSesion;\n }", "@Override\n\tpublic List<ControlAcceso> registroUsers(String fecha, int codigo) {\n\t\treturn controlA.registroUsers(fecha, codigo);\n\t}", "public String[] getUsuariosInmueble(){\n\t\tint registros=0;\n\t\ttry{\n\t\t\tPreparedStatement statemenet=getConnection().prepareStatement(\"select count(*) as total from usuarios where tipo='A' \");\n\t\t\tResultSet respuesta=statemenet.executeQuery();\n\t\t\trespuesta.next();\n\t\t\tregistros=respuesta.getInt(\"total\");\n\t\t\trespuesta.close();\n\t\t\t\n\t\t}catch(SQLException exception){\n\t\t\tSystem.err.println(exception.getMessage());\n\t\t}\n\t\tString[] usuarios=new String[registros+1];\n\t\ttry{\n\t\t\tPreparedStatement statement=getConnection().prepareStatement(\"select usuario from usuarios where tipo='R' \");\n\t\t\tResultSet respuesta=statement.executeQuery();\n\t\t\trespuesta.next();\n\t\t\tusuarios[0]=respuesta.getString(1);\n\t\t\tstatement=getConnection().prepareStatement(\"select usuario from usuarios where tipo='A' \");\n\t\t\trespuesta=statement.executeQuery();\n\t\t\tint i=1;\n\t\t\twhile(respuesta.next()){\n\t\t\t\tusuarios[i]=respuesta.getString(1);\n\t\t\t\ti++;\n\t\t\t\n\t\t\t}\n\t\t\tstatement.close();\n\t\t}catch(SQLException exception){\n\t\t\tSystem.err.println(exception.getMessage());\n\t\t}\n\t\treturn usuarios;\n\t}", "private void controladorAdminUsuarios(Controlador controlador) {\n \tthis.contAdminConfig = controlador.getAdminConfig();\n \tadminUsuarios.setControlAdminConfig(contAdminConfig);\n \t\n \tthis.contAdminProyectos = controlador.getAdminProyectos();\n \tadminUsuarios.setControlAdminProyectos(contAdminProyectos);\n \t\n \tthis.contAdminUsuariosBloq = controlador.getAdminUsuariosBloq();\n \tadminUsuarios.setControlAdminBloq(contAdminUsuariosBloq);\n \t\n }", "@Override\n public User getUserInfo() {\n return User.AUTHORIZED_USER;\n }", "List<UserDisplayDto> findeAdmins();", "@Query(\"select pu from ProcesoUsuario pu join pu.proceso p where p.estado = true\")\r\n\tPage<ProcesoUsuario> findAllBySuperAdmin(Pageable pageable);", "public String getPerfilDescripcion();", "public PanelInicioUser getInicioUser(){\n return inicioUser;\n }", "public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }", "public List<User> ObtenerTodosUsuarios() throws BLException;", "public interface User {\n\n public enum UserType{\n STUDENT, TA, PROFESSOR\n }\n UserType getUserType();\n String getToken();\n String getName();\n String getUsername();\n String getEmail();\n //int getNumberOfGroups();\n}", "public static Utente queryUserType(String user, String password) throws SQLException{\n\t\t\tUtente mUser = null;\n\t\t\tModeratore mMod = null;\n\t\t\tString query = \"SELECT * \"\n\t\t\t\t\t+ \"FROM utente JOIN utente_gioco ON (utente.id = utente_gioco.id) \"\n\t\t\t\t\t+ \"WHERE username=? AND password=? ;\";\n\t\t\t\n\t\t\tConnection con = connectToDB();\n\t\t\tPreparedStatement cmd = con.prepareStatement(query);\n\t\t\tcmd.setString(1, user);\n\t\t\tcmd.setString(2, password);\n\t\t\t\n\t\t\tResultSet res = cmd.executeQuery();\n\t\t\t\n\t\t\t// Stampiamone i risultati riga per riga\n\t\t\twhile (res.next()) {\n\t\t\t\tSystem.out.println(res.getString(TIPO));\n\t\t\t\tif(res.getString(TIPO).equals(\"giocatore\")){\n\t\t\t\t\tmUser = new Utente();\n\t\t\t\t\t// Popola utente.\n\t\t\t\t\tmUser.setID(res.getInt(\"id\"));\n\t\t\t\t\tmUser.setNome(res.getString(\"nome\"));\n\t\t\t\t\tmUser.setCognome(res.getString(\"cognome\"));\n\t\t\t\t\tmUser.setEmail(res.getString(\"email\"));\n\t\t\t\t\tmUser.setUsername(res.getString(\"username\"));\n\t\t\t\t\tmUser.setPassword(res.getString(\"password\"));\n\t\t\t\t\tmUser.setPuntiXP(res.getInt(\"puntixp\"));\n\t\t\t\t\tmUser.setLivello();\n\t\t\t}\n\t\t\t\telse if (res.getString(TIPO).equals(\"moderatore\")){\n\t\t\t\t\tmMod = new Moderatore();\n\t\t\t\t\t// Popola utente.\n\t\t\t\t\tmMod.setID(res.getInt(\"id\"));\n\t\t\t\t\tmMod.setNome(res.getString(\"nome\"));\n\t\t\t\t\tmMod.setCognome(res.getString(\"cognome\"));\n\t\t\t\t\tmMod.setEmail(res.getString(\"email\"));\n\t\t\t\t\tmMod.setUsername(res.getString(\"username\"));\n\t\t\t\t\tmMod.setPassword(res.getString(\"password\"));\n\t\t\t\t\tmMod.setPuntiXP(res.getInt(\"puntixp\"));\n\t\t\t\t\tmMod.setLivello();\n\t\t\t\t}\n\t\t\t}\n\t\t\tres.close();\n\t\t\tcmd.close();\n\t\t\tif(mMod == null && mUser == null ) return null;\n\t\t\tif(mMod == null && mUser != null) return mUser;\n\t\t\tif(mMod != null && mUser == null) return mMod;\n\t\t\treturn null;\n\t\t}", "public List<String> getPermission(int userId, String crp);", "@Override\n\tpublic void emprestimo(Livros livro, Usuarios usuario) {\n\t\t\n\t}", "@PostMapping(\"chequear_permisos_por_rol\")\n public ResponseEntity<?> permisosgeneral(@RequestBody LoginDatos loginDatos) {\n try {\n Usuario u = this.usuarioServicio.obtener(loginDatos.getIdUsuario());\n String rolResponse = \"\";\n for (Rol rol : u.getRoles()) {\n rolResponse = rol.getNombre();\n break;\n }\n //log.info(\" ROL de USER: \"+rolResponse);\n return new ResponseEntity<Mensaje>(new Mensaje(rolResponse), HttpStatus.OK);\n } catch (Exception e) {\n log.info(\" ESPLOTE\");\n return new ResponseEntity<Mensaje>(new Mensaje(\" NOOK \"), HttpStatus.UNAUTHORIZED);\n }\n }", "private void getUserInfo() {\n\t}", "public ArrayList <Usuario>listaUsuario(){\r\n\t\treturn loja.getUsuarios();\r\n\t}", "private void CargarUsuarios(){\n administradores.clear();\n usuariosList.clear();\n for (String i: BienvenidaActivity.UsuariosRegistrados.keySet()) {\n if(EsAdmin(i)){\n administradores.add(BienvenidaActivity.UsuariosRegistrados.get(i));\n }else{\n usuariosList.add(BienvenidaActivity.UsuariosRegistrados.get(i));\n }\n }\n String admins_string = \"\";\n for(Usuario admin : administradores){\n admins_string += admin.getUsername() + \" -> \" + admin.getNombre() + \" \" + admin.getApellido() + \"\\n\";\n }\n\n String users_string = \"\";\n for(Usuario userss : usuariosList){\n users_string += userss.getUsername() + \" -> \" + userss.getNombre() + \" \" + userss.getApellido() + \"\\n\";\n }\n\n // Finalmente se coloca en la actividad\n\n txtvw_contadmin.setText(String.valueOf(administradores.size()));\n txtvw_contusers.setText(String.valueOf(usuariosList.size()));\n txtvw_admins.setText(admins_string);\n txtvw_users.setText(users_string);\n }", "public List<Permission> getUserPermission() {\n\t\treturn securityContext.getAuthorizationContext().getPermissions();\n\t}", "public HashMap<String, String> getDadosDoUsuario() {\n\n // Use hashmap to store user credentials\n HashMap<String, String> user = new HashMap<String, String>();\n\n user.put(CHAVE_MATRICULA, pref.getString(CHAVE_MATRICULA, null));\n\n user.put(CHAVE_SENHA, pref.getString(CHAVE_SENHA, null));\n\n user.put(CHAVE_NOME, pref.getString(CHAVE_NOME, null));\n\n user.put(CHAVE_NUCLEO,pref.getString(CHAVE_NUCLEO,null));\n\n // return user\n return user;\n }" ]
[ "0.6701704", "0.65424794", "0.64558834", "0.64254385", "0.6279363", "0.6182144", "0.6135227", "0.6062509", "0.60492694", "0.6045173", "0.60342914", "0.5981834", "0.590155", "0.5894155", "0.58844495", "0.5864377", "0.5830214", "0.58216166", "0.5806895", "0.580612", "0.5776967", "0.57757497", "0.57753915", "0.5764539", "0.5751517", "0.57408154", "0.56924945", "0.5667345", "0.5643679", "0.56323063", "0.56301785", "0.5628207", "0.56105477", "0.55959445", "0.5585405", "0.55794793", "0.5574495", "0.5574495", "0.5553979", "0.5546712", "0.5541608", "0.55408597", "0.5538861", "0.5536607", "0.5530188", "0.55235404", "0.5517234", "0.5509465", "0.55044174", "0.5502673", "0.549805", "0.54843587", "0.5483755", "0.5481244", "0.54784006", "0.5475667", "0.5474975", "0.54637235", "0.5460464", "0.5457288", "0.544281", "0.5432072", "0.5431845", "0.54299664", "0.5429537", "0.54295015", "0.5428225", "0.5426502", "0.5421448", "0.5410004", "0.54094833", "0.5408111", "0.5406671", "0.54036456", "0.5401247", "0.538323", "0.5381907", "0.5380445", "0.5380137", "0.5374886", "0.53680044", "0.53664315", "0.5365978", "0.5365372", "0.53643894", "0.53600353", "0.5356982", "0.53559047", "0.5351475", "0.5347477", "0.53410554", "0.53278375", "0.53200936", "0.5311962", "0.53078943", "0.5304984", "0.5301845", "0.5294422", "0.5291442", "0.52912325" ]
0.60244495
11
Metodo que devuelve la url del Rol
public String getURLMenu(String usuario) { String url = ""; try { PreparedStatement pstm = null; ResultSet rs = null; String query = "SELECT url FROM Roles as r INNER JOIN Usuario as u ON u.ID_Rol = r.ID_Rol WHERE u.username = ?"; pstm = con.prepareStatement(query); pstm.setString(1, usuario); rs = pstm.executeQuery(); if(rs.next()) { url = rs.getString("url"); } }catch(Exception ex){ ex.printStackTrace(); } return url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarSustento\";\r\n\t}", "public String getURL();", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ConsultarIndiceEjecucionAnio\";\r\n\t}", "public abstract String getURL();", "@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ActualizarCompromiso\";\r\n\t}", "protected abstract String getUrl();", "@Override\r\n\tpublic void getUrl() {\n\r\n\t}", "public java.lang.String getURL() {\n return uRL;\n }", "public abstract String getUrl();", "URL getUrl();", "public abstract RestURL getURL();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "public void changeUrl() {\n url();\n }", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "private String getJiaoDaUrl(MesItemHolder holder) {\n StringBuilder url = new StringBuilder(holder.getBaseUrl());\n if(holder.isPull()){\n url.append(\"?modcode=jygl_xjhxxck&subsyscode=zpfw&type=searchXjhxx&xjhType=all\");\n }else{\n\n url.append(\"?ype=goPager&requestPager=pager&pageMethod=next&currentPage=\"+(holder.getPager()-1));\n }\n return url.toString();\n }", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "public String getURL(){\r\n\t\t \r\n\t\t\r\n\t\treturn rb.getProperty(\"url\");\r\n\t}", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/GuardarMotivo\";\r\n\t}", "String url();", "@Override\n\tprotected String url() {\n\t\treturn \"user\";\n\t}", "public String getUrl(){\n \treturn url;\n }", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/actualizarCliente\";\r\n\t}", "private String getUrlPlanet() {\n return this.url + this.resource;\n }", "Uri getUrl();", "@Nullable\n public abstract String url();", "String getServerUrl();", "@Override\r\n public String getURL() {\n return url;\r\n }", "public void setURL(java.lang.String uRL) {\n this.uRL = uRL;\n }", "String getLink();", "@Override\r\n\tpublic String getUrl() {\n\t\treturn null;\r\n\t}", "public java.lang.String getUrl () {\r\n\t\treturn url;\r\n\t}", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "WebURL createURL()\n {\n String url = getDir().getURL().getString() + \"!/\" + _cmt._rev.getId().getName();\n return WebURL.getURL(url);\n }", "@Override\n\tpublic String getUrlName() {\n\t\treturn URL_NAME;\n\t}", "@Override\r\n public String getUrl()\r\n {\n return null;\r\n }", "public String getUrl() { return url; }", "URL getRepositoryWebUrl(ProgrammingExerciseParticipation participation);", "public String getUrl()\n\t\t{\n\t\t\treturn \"https://www.zohoapis.eu\";\n\t\t}", "@Override\r\n\tprotected String getUrl() {\n\t\tif(tipo==PROFIT_DATOS_COMERCIALES){\r\n\t\t\treturn urlWS + \"/ProfitResumen\";\r\n\t\t}else{\r\n\t\t\treturn urlWS + \"/ProfitDataAdicional\";\r\n\t\t}\r\n\t}", "public String getURL()\n {\n return getURL(\"http\");\n }", "public URL getURL()\n/* */ {\n/* 135 */ return ResourceUtils.getResourceAsURL(this, this);\n/* */ }", "public String getUrlName() {\n\t\treturn \"neoload\";\n\t}", "public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}", "public String getURL() { return url; }", "public abstract String getRobotUri();", "public Recurso(String ruta){\n\t\ttipo = ruta.contains(\"http://\")?IMAGEN:TEXTO;\n\t\tif(tipo.equals(IMAGEN)){\n\t\t\timgUrl = ruta;\n\t\t\tdescripcion = ruta;\n\t\t}\n\t\telse{\n\t\t\tdescripcion = ruta;\n\t\t\timgUrl=\"\";\n\t\t}\n\t\tnivel = 0;\n\t\turl = \"Recurso obtenido de servidor se perdio url en persistencia de datos\";\n\t}", "public SitoWeb(URL u) throws UrlNonValidoException {\r\n\t\tsuper();\r\n\t\tif(u == null)\r\n\t\t\tthrow new UrlNonValidoException(\"URL in input non valido.\");\r\n\t\tthis.urlBase = new URL(u.getProtocollo(), u.getHostname(), \"/\");\t\t\r\n\t}", "public String link() {\n return DevRant.BASE_URL + DevRant.RANT_URL + '/' + getId();\n }", "public String getLink();", "public String getUrl() {\r\n\t\t\treturn url;\r\n\t\t}", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "public String getPreViewUrl();", "@Override\n\tpublic String getURL() {\n\t\treturn null;\n\t}", "String getRequestURL();", "public String getUrl() {\r\n\t\treturn url;\r\n\t}", "public String getUrl() {\r\n\t\treturn url;\r\n\t}", "java.lang.String getBookingURL();", "@Override\n\tpublic String getLiuLiangUrl() {\n\t\tLiuLiang_Url = Util.getMaiYuanConfig(\"LiuLiang_Url\");\n\t\treturn LiuLiang_Url;\n\t}", "public String getURL() {\n\t\treturn getName();\n\t}", "public void setURL() {\n\t\tURL = Constant.HOST_KALTURA+\"/api_v3/?service=\"+Constant.SERVICE_KALTURA_LOGIN+\"&action=\"\n\t\t\t\t\t\t+Constant.ACTION_KALTURA_LOGIN+\"&loginId=\"+Constant.USER_KALTURA+\"&password=\"+Constant.PASSWORD_KALTURA+\"&format=\"+Constant.FORMAT_KALTURA;\n\t}", "private URL createURLaddUser() {\n try {\n String urlString;\n\n urlString = \"http://cs262.cs.calvin.edu:8081/fitness/users\";\n\n return new URL(urlString);\n\n } catch (Exception e) {\n Toast.makeText(this, \"Failed to make URL\", Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }", "public java.lang.String getUrl(){\r\n return this.url;\r\n }", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "CartogramWizardShowURL (String url)\n\t{\n\t\tmUrl = url;\n\t\n\t}", "public String getSiteUrl();", "public java.lang.String getUrl() {\n return url;\n }", "java.net.URL getUrl();", "public String getURL() {\r\n\t\treturn url;\r\n\t}", "@Override\r\n\tprotected String getUrl() {\n\t\treturn \"http://apis.skplanetx.com/melon/genres\";\r\n\t}", "public String getUrl()\n {\n return url;\n }", "String getURL(FsItem f);", "String makePlanCommunityUrl();", "final public URL getURL() throws VlException \n {\n \tif (_nodeVRL==null)\n \t\treturn null;\n \t\n\t\treturn _nodeVRL.toURL();\n }", "String getUri();", "String getJoinUrl();", "public String getURL() {\r\n return url;\r\n }" ]
[ "0.6631484", "0.6566145", "0.6520489", "0.651709", "0.6506077", "0.64816386", "0.6472009", "0.64696825", "0.64347905", "0.6414732", "0.6407203", "0.640442", "0.63587254", "0.6313923", "0.6313923", "0.6313923", "0.6313923", "0.6313923", "0.6313923", "0.6310465", "0.62975854", "0.62975854", "0.62975854", "0.62975854", "0.6291364", "0.62908417", "0.62908417", "0.62908417", "0.62908417", "0.62908417", "0.628063", "0.624116", "0.6222634", "0.6204292", "0.61827755", "0.6153432", "0.6138696", "0.6133061", "0.61267316", "0.606343", "0.6056157", "0.6051016", "0.6035502", "0.60113573", "0.6008817", "0.5969056", "0.5969056", "0.59653664", "0.59605855", "0.59438866", "0.5939855", "0.5913723", "0.5910581", "0.59001446", "0.58693296", "0.5865665", "0.5845918", "0.58420235", "0.58366287", "0.58302313", "0.5826305", "0.58243155", "0.58225054", "0.5812292", "0.58077085", "0.5794674", "0.5794674", "0.57926524", "0.57870895", "0.5781554", "0.57720596", "0.57720596", "0.5760849", "0.57573116", "0.57562816", "0.5754135", "0.57373923", "0.5731738", "0.5730607", "0.5730607", "0.5730607", "0.5730607", "0.5730607", "0.5730607", "0.5730607", "0.5730607", "0.5730607", "0.57269645", "0.57263285", "0.57224405", "0.5716621", "0.571337", "0.57087314", "0.570547", "0.5701677", "0.56990606", "0.56972206", "0.56937784", "0.56937087", "0.56872416" ]
0.60231954
43
obtiene el ID_User de un usuario dado su id usuario
public int getusuarioPorNombre(String nombre) { int usuario = 0; try { PreparedStatement pstm = null; ResultSet rs = null; String query = "SELECT ID_User FROM Usuario WHERE username = ?"; pstm = con.prepareStatement(query); pstm.setString(1, nombre); rs = pstm.executeQuery(); if(rs.next()) { usuario = rs.getInt("ID_User"); } }catch(Exception ex) { ex.printStackTrace(); } return usuario; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getIdUser() {\n return idUser;\n }", "public int getIdUser() {\n return idUser;\n }", "public int getIduser() {\n return iduser;\n }", "public Integer getIdUser() {\r\n\t\treturn idUser;\r\n\t}", "public String getIdUser() {\n\t\treturn idUser;\n\t }", "public String getIdUser() {\n\t\treturn idUser;\n\t}", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public Long getUserId() {\n return this.user.getId();\n }", "public Integer getUser_id() {\n\t\treturn user_id;\n\t}", "Long getUserId();", "public String getUser_id() {\n return this.user_id;\n }", "@Override\n public long getUserId() {\n return _partido.getUserId();\n }", "public String getIduser() {\n\t\treturn iduser;\n\t}", "public int getId_usuario() {\n\treturn id_usuario;\n }", "long getUserId();", "long getUserId();", "public long getUserId();", "public long getUserId();", "public long getUserId();", "public long getUserId();", "Integer getUserId();", "@Override\n public String getUserID() {\n return user_id;\n }", "public long getIdUsuario() {\n\t\treturn idUsuario;\n\t}", "public User getUserById(int id) {\n System.out.println(id + this.userDao.selectId(id).getUsername());\n\n return this.userDao.selectId(id);\n }", "public Usuario findUserById(Integer id){\n\t\treturn usuarios.findById(id);\n\t}", "public int getUserId()\r\n\t{\r\n\t\treturn this.userId;\r\n\t}", "public Long getUserid() {\r\n return userid;\r\n }", "int getUserId() {\r\n\t\t\treturn userId;\r\n\t\t}", "@Override\n\tpublic Long getUserId() {\n\t\treturn user.getKey().getId();\n\t}", "public int getUserId() {\r\n return this.UserId;\r\n }", "String getUserId();", "String getUserId();", "public static User getUserByID(int idUser) {\n\t\ttry {\n\t\t\tStatement stmt = MySQLConnection.establishConnection().createStatement();\n\t\t\t\n\t\t\tString query = \"SELECT * FROM users WHERE IDUser = \" + idUser;\n\t\t\t\n\t\t\tResultSet rset = stmt.executeQuery(query);\n\t\t\t\n\t\t\trset.next();\n\t\t\t\n\t\t\tint idAdmin = rset.getInt(\"IDUser\");\n\t\t\tString name = rset.getString(\"Name\");\n\t\t\tString surname = rset.getString(\"Surname\");\n\t\t\tString mailUser = rset.getString(\"Email\");\n\t\t\tString passwordUser = rset.getString(\"Password\");\n\t\t\t\n\t\t\tUser user = new User(idAdmin, name, surname, mailUser, passwordUser);\n\t\t\t\n\t\t\treturn user;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public Usuario findbyIdUsuario(Long idUsr){\n\t\t\t\t em.getTransaction().begin();\n\t\t\t\t Usuario u= em.find(Usuario.class, idUsr);\n\t\t\t\t em.getTransaction().commit();\n\t\t\t\t return u;\n\t\t\t }", "public int getUserId() {\n return userId_;\n }", "public Integer getIdUsuario() {\n\t\treturn idUsuario;\n\t}", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public String getIdUsuario() {\n\t\treturn idUsuario;\n\t}", "public String getIdUsuario() {\n\t\treturn idUsuario;\n\t}", "public Long getUserId() {\r\n return userId;\r\n }", "public Long getUserId() {\r\n return userId;\r\n }", "public Long getUserId() {\r\n return userId;\r\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public String getId_usuario() {\n return id_usuario;\n }", "@Override\n\tpublic long getUserId();", "@Override\n\tpublic long getUserId();", "public int getUserId() {\r\n\t\treturn userId;\r\n\t}", "public UsuarioTable getUsuarioLogueado() {\n String usuario = FacesContext.getCurrentInstance().getExternalContext().getRemoteUser();\n return getUsuarioFacade().obtenerIDPorNombre(usuario);\n }", "User getUserById(Long id);", "User getUserById(Long id);", "public long getUserId() {\r\n return userId;\r\n }", "public String getUserId()\r\n\t{\r\n\t\treturn userId;\r\n\t}", "public int getIdUsuario() {\n return idUsuario;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Integer getUserId() {\r\n return userId;\r\n }", "public Integer getUserId() {\r\n return userId;\r\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }" ]
[ "0.77906454", "0.77906454", "0.760146", "0.7570565", "0.7516367", "0.74559397", "0.73667085", "0.73667085", "0.73667085", "0.72827315", "0.7280858", "0.72672933", "0.72319037", "0.7218487", "0.7216256", "0.720637", "0.7138417", "0.7138417", "0.713302", "0.713302", "0.713302", "0.713302", "0.71133673", "0.71070755", "0.7105815", "0.70944464", "0.70826066", "0.70734507", "0.7070013", "0.70603454", "0.70427465", "0.70423675", "0.70416844", "0.70416844", "0.69947946", "0.69721895", "0.69717276", "0.69694805", "0.6962069", "0.6962069", "0.6962069", "0.6962069", "0.6962069", "0.6962069", "0.6962069", "0.6962069", "0.6962069", "0.6962069", "0.6962069", "0.6962069", "0.6961458", "0.6961458", "0.6961458", "0.6961458", "0.6961458", "0.69545126", "0.69545126", "0.6950406", "0.6950406", "0.6950406", "0.6948542", "0.6948542", "0.6948542", "0.69477063", "0.6947335", "0.6947335", "0.69330347", "0.692975", "0.69255227", "0.69255227", "0.6912738", "0.6903303", "0.68979305", "0.68975675", "0.68975675", "0.68975675", "0.68975675", "0.68975675", "0.68975675", "0.68975675", "0.68975675", "0.68975675", "0.68975675", "0.68975675", "0.68975675", "0.68939656", "0.68939656", "0.68895596", "0.68895596", "0.6888922", "0.6888922", "0.6888922", "0.6888922", "0.6888922", "0.6888922", "0.6888922", "0.6888922", "0.6888922", "0.6888922", "0.6888922", "0.6888922" ]
0.0
-1
obtiene el rol de un usuario dado su id usuario
public int getRolByUsuario(int id_usuario) { int id_rol = 0; try { PreparedStatement pstm = null; ResultSet rs = null; String query = "SELECT ID_Rol FROM Usuario WHERE ID_User = ?"; pstm = con.prepareStatement(query); pstm.setInt(1, id_usuario); rs = pstm.executeQuery(); if(rs.next()) { id_rol = rs.getInt("ID_Rol"); } }catch(Exception ex){ ex.printStackTrace(); } return id_rol; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UsuarioRol getUsuarioRolById(Integer id);", "@Override\r\n\tpublic Integer getIdRol(String usuario) {\t\r\n\t\tInteger rolId = null;\r\n\t\t\r\n\t\ttry\r\n\t\t{\t\t\t\r\n\t\t\trolId = jdbcTemplate.queryForObject(\r\n\t\t\t\t\tSQL_SELECT_ROL_USUARIO, \r\n\t\t\t\t\tnew RowMapper<Integer>() {\r\n\t\t\t\t public Integer mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n\t\t\t\t return rs.getInt(\"id\");\r\n\t\t\t\t }\r\n\t\t\t\t },\r\n\t\t\t\t\tusuario);\r\n\t\t}\r\n\t\tcatch(EmptyResultDataAccessException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn rolId;\t\r\n\t}", "public String devolverRolUsuario(){\n Usuario usuario = (Usuario) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"usuario\");\n return usuario.getRol().getNombre();\n }", "public String getRol() \n {\n \t return rol;\n }", "private void cargarUsuario() {\n try {\n rol = null;\n if (usuario != null && usuario.getUsuario() != null) {\n for (SsRoles rols : usuario.getUsuario().getSsRolesList()) {\n for (String rl : ROL) {\n if (rols.getCodigoRol().equalsIgnoreCase(rl)) {\n rol = new SsRoles();\n rol = rols;\n }\n }\n }\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void setRol(String rol) {\r\n\t\tthis.rol = rol;\r\n\t}", "public String consultarRol() throws Exception\n {\n this.setMsg(\"\");\n String vst_mensaje=\"\";\n if(this.getIdRol() == 0)\n this.setMsg(\"Debe ingresar un número de rol mayor que cero.\");\n else\n Servicio.rolConsultar(this);\n\n return vst_mensaje;\n }", "private void llenarControles(Cliente pCliente) {\n try {\n clienteActual = ClienteDAL.obtenerPorId(pCliente); // Obtener el Rol por Id \n this.txtNombre.setText(clienteActual.getNombre()); // Llenar la caja de texto txtNombre con el nombre del rol \n this.txtApellido.setText(clienteActual.getApellido());\n this.txtDui.setText(clienteActual.getDui());\n //clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n this.txtNumero.setText(Integer.toString(clienteActual.getNumero()));\n } catch (Exception ex) {\n // Enviar el mensaje al usuario de la pantalla en el caso que suceda un error al obtener los datos de la base de datos\n JOptionPane.showMessageDialog(frmPadre, \"Sucedio el siguiente error: \" + ex.getMessage());\n }\n }", "public boolean asignarRolUsuario(int id_usuario, int id_rol)\n\t{\n\t\tboolean asignado=false;\t\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//Getting connection thread, important!\n\t\t\tConnection con = connectionP.getConnection();\n\n\t\t\tPreparedStatement ps = con.prepareStatement(\"SELECT * from tbl_rol_usuario\", \n\t\t\t\t\tResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE, \n\t\t\t\t\tResultSet.HOLD_CURSORS_OVER_COMMIT);\n\t\t\t\n\t\t\trsRol = ps.executeQuery();\n\t\t\t\n\t\t\trsRol.moveToInsertRow();\n\t\t\trsRol.updateInt(\"id_rol\", id_rol);\n\t\t\trsRol.updateInt(\"id_usuario\", id_usuario);\n\t\t\t\n\t\t\trsRol.insertRow();\n\t\t\trsRol.moveToCurrentRow();\n\t\t\tasignado = true;\n\t\t\t\n\t\t\t// Closing connection thread, very important!\n\t\t\tconnectionP.closeConnection(con);\n\t\t\t\t\n\t\t} catch (Exception e)\t{\n\t\t\tSystem.out.println(\"DATOS: ERROR en asignarRolUsuario() \"+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn asignado;\n\t\t\n\t}", "@Generated\n public Rol getRol() {\n Long __key = this.usu_rol_id;\n if (rol__resolvedKey == null || !rol__resolvedKey.equals(__key)) {\n __throwIfDetached();\n RolDao targetDao = daoSession.getRolDao();\n Rol rolNew = targetDao.load(__key);\n synchronized (this) {\n rol = rolNew;\n \trol__resolvedKey = __key;\n }\n }\n return rol;\n }", "TblRoles findByIdRol(long idRol);", "@Override\n\tpublic List<GrantedAuthority> buscarRolUser(int iduser) {\n\t\treturn rolDao.buscarRolUser(iduser);\n\t}", "public String verUsuarios() {\n\t\tString stringIdRol = session.getAttribute(\"rol\").toString();\n\t\tInteger idRol = Integer.parseInt(stringIdRol);\n\n\t\tif (idRol == 1) {\n\t\t\treturn \"TodosLosUsuarios\";\n\t\t}\n\n\t\treturn \"home\";\n\t}", "public List<RolModel> listarRolUsuario();", "private void checkRol(HttpSession session){\n UserDetails user = (UserDetails) session.getAttribute(\"user\");\n if(!user.getRol().equals(\"Company\")){\n System.out.println(\"El usuario no puede acceder a esta pagina con este rol\");\n throw new MajorsACasaException(\"No tens permisos per accedir a aquesta pàgina. \" +\n \"Has d'haver iniciat sessió com a Company per a poder accedir-hi.\",\"AccesDenied\",\"../\"+user.getMainPage());\n }\n }", "public int getRolesRolId(int row) throws DataStoreException {\r\n return getInt(row,ROLES_ROL_ID);\r\n }", "public String getRolename() {\n return rolename;\n }", "public String getRolename() {\n return rolename;\n }", "public int getRolesRolId() throws DataStoreException {\r\n return getInt(ROLES_ROL_ID);\r\n }", "boolean actualizarRol(int idCategoria, String nombreRol) throws Exception;", "protected void accionUsuario() {\n\t\t\r\n\t}", "public Usuario findbyIdUsuario(Long idUsr){\n\t\t\t\t em.getTransaction().begin();\n\t\t\t\t Usuario u= em.find(Usuario.class, idUsr);\n\t\t\t\t em.getTransaction().commit();\n\t\t\t\t return u;\n\t\t\t }", "public void eliminarRol(int id) throws Exception {\n if (this.roles.containsKey(id)) {\r\n this.generarAuditoria(\"BAJA\", \"ROL\", String.valueOf(id), \"\", GuiIngresar.getUsuario());\r\n this.roles.remove(id);\r\n setChanged();\r\n notifyObservers();\r\n //retorno = true;\r\n } else {\r\n throw new Exception(\"El Rol no Existe\");\r\n }\r\n //return retorno;\r\n }", "public void setRolesRolId(int row,int newValue) throws DataStoreException {\r\n setInt(row,ROLES_ROL_ID, newValue);\r\n }", "UserRole loadUserRole(int id) throws DataAccessException;", "public Usuario getUsuario(Usuario creador, int id){\r\n Usuario u=null;\r\n if (creador.isAdmin() || creador.getId()==id){\r\n try {\r\n String sql= \"Select * from sistemasEM.usuarios where id=\"+id;\r\n Statement s= connection.createStatement();\r\n ResultSet rs = s.executeQuery(sql);\r\n while(rs.next()){\r\n TipoDescuento td = this.getTipoDescuento(rs.getInt(\"permisosDescuento\"));\r\n TipoPersonal tp = this.getTipoPersonal(rs.getInt(\"permisosPersonal\"));\r\n u= new Usuario(rs.getInt(\"id\"), rs.getString(\"nombre\"), rs.getString(\"mostrar\"),rs.getBoolean(\"admin\"),tp,td,rs.getBoolean(\"notas\"),rs.getBoolean(\"habilitacion\"),rs.getBoolean(\"profesor\"),rs.getInt(\"ciProfesor\"),rs.getBoolean(\"cambiarContra\"));\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return u;\r\n }", "public UsuarioTable getUsuarioLogueado() {\n String usuario = FacesContext.getCurrentInstance().getExternalContext().getRemoteUser();\n return getUsuarioFacade().obtenerIDPorNombre(usuario);\n }", "public Tbl_rol obtenerRol(int idRol)\n\t{\n\t\tTbl_rol trol = new Tbl_rol();\n\t\ttry\n\t\t{\n\t\t\t//Getting connection thread, important!\n\t\t\tConnection con = connectionP.getConnection();\n\t\t\tthis.getRS(con);\n\t\t\t\n\t\t\tif(rsRol.next())\n\t\t\t{\n\t\t\t\ttrol.setId(rsRol.getInt(\"id\"));\n\t\t\t\ttrol.setRol(rsRol.getString(\"rol\"));\n\t\t\t\ttrol.setDescripcion(rsRol.getString(\"descripcion\"));\n\t\t\t\ttrol.setEstado(rsRol.getInt(\"estado\"));\n\t\t\t}\n\t\t\t\t\n\t\t\t// Closing connection thread, very important!\n\t\t\tconnectionP.closeConnection(con);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"DATOS: ERROR en ObtenerRol() \"+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn trol;\n\t}", "public Integer RoleByUser(Integer id) {\n\t\treturn userDao.RoleByUser(id);\r\n\t}", "public AdministrationRole obtenerRolesPorNombre(String rolName){\n AdministrationRole rol = null;\n for (Iterator<AdministrationRole> it = obtenerConexion().getAllRoles(ConstantesWS.APLICACION_PROVEEDORES).getAdministrationRole().iterator(); it.hasNext();) {\n rol = it.next(); \n if(rol.getName().getValue().equals(rolName)){\n return rol;\n }\n }\n return rol;\n }", "@Override\n\tpublic void emprestimo(Livros livro, Usuarios usuario) {\n\t\t\n\t}", "public void verificarRol() throws IOException {\n\t\tif (FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"email\") != null) {\n\t\t\tObject rol = FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"rol\");\n\n\t\t\tif ((Integer) rol != 1) {\n\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"home.xhtml\");\n\t\t\t} else {\n\t\t\t\t// System.out.println(\"sin permisos\");\n\t\t\t}\n\t\t}\n\t}", "public String getIdUsuarioModificacion() {\n\t\treturn this.idUsuarioModificacion;\n\t}", "public java.lang.Long getUsua_id();", "public Usuario getUsuario(String usuario) {\r\n\t\tUsuario user = null;\r\n\t\ttry\r\n\t\t{\t\t\t\r\n\t\t\tuser = jdbcTemplate.queryForObject(\r\n\t\t\t\t\tSQL_SELECT_USUARIO, \r\n\t\t\t\t\tnew RowMapper<Usuario>() {\r\n\t\t\t\t public Usuario mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n\t\t\t\t Usuario user = new Usuario();\r\n\t\t\t\t user.setId(rs.getLong(\"id\"));\r\n\t\t\t\t user.setUsuarioAlias(rs.getString(\"usuario\"));\r\n\t\t\t\t user.setUsuarioPwd(rs.getString(\"clave\"));\r\n\t\t\t\t user.setUsuarioEstatus(rs.getBoolean(\"estatus\"));\r\n\t\t\t\t return user;\r\n\t\t\t\t }\r\n\t\t\t\t },\r\n\t\t\t\t\tusuario);\t\t\t\r\n\t\t}\r\n\t\tcatch(EmptyResultDataAccessException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tRol rol = new Rol();\r\n\t\trol.setId(100);\r\n\t\trol.setDescripcion(\"inatec\");\r\n\t\trol.setNombre(\"inatec\");\r\n\t\trol.setEstatus(true);\t\t\r\n\t\tuser.setRol(rol);\r\n\t\treturn user;\r\n\t}", "boolean insertarRol(String nombre) throws Exception;", "SysRoleUser selectByPrimaryKey(Long id);", "public int getId_usuario() {\n\treturn id_usuario;\n }", "ParUsuarios selectByPrimaryKey(Integer id);", "public ArrayList<RolUsuario> listarRolesUsuario(){\n ArrayList<RolUsuario> rolUsuarioArrayList = new ArrayList<>();\n String sqlListarEstados = \"SELECT * FROM \"+TablaRolUsuario.tableName;\n Cursor cursor = db.rawQuery(sqlListarEstados, null);\n\n if(cursor.moveToFirst()){\n while(cursor.isAfterLast() == false) {\n RolUsuario rolUsuario = new RolUsuario();\n rolUsuario.setIdRolUsuario( Integer.parseInt( cursor.getString(cursor.getColumnIndex(TablaRolUsuario.idRolUsuario)) ) );\n rolUsuario.setRol( cursor.getString(cursor.getColumnIndex(TablaRolUsuario.rol)) );\n rolUsuarioArrayList.add(rolUsuario);\n cursor.moveToNext();\n }\n }\n\n return rolUsuarioArrayList;\n }", "public void setRolesRolId(int newValue) throws DataStoreException {\r\n setInt(ROLES_ROL_ID, newValue);\r\n }", "public String getURLMenu(String usuario) \n {\n String url = \"\";\n try \n {\n PreparedStatement pstm = null; \n ResultSet rs = null;\n String query = \"SELECT url FROM Roles as r INNER JOIN Usuario as u ON u.ID_Rol = r.ID_Rol WHERE u.username = ?\";\n pstm = con.prepareStatement(query);\n pstm.setString(1, usuario);\n rs = pstm.executeQuery();\n if(rs.next())\n { \n url = rs.getString(\"url\");\n }\n }catch(Exception ex){\n ex.printStackTrace(); \n } \n return url;\n }", "public CrudRolUsuario(Context context){\n db = Conexion.obtenerBaseDatosLectura(context , null );\n }", "public void ponerUsuarioInactivo(String idUsuario);", "@Override\n\tpublic Optional<Rol> listarId(int id) {\n\t\treturn dao.findById(id);\n\t}", "@Override\n\tpublic void emprestimo(Livros livro, Aluno usuario) {\n\t\t\n\t}", "public int getIdUsuario() {\n return idUsuario;\n }", "@Override\n\tpublic List<Rol> readHola(int id) {\n\t\treturn rolDao.readHola(id);\n\t}", "@Override\n\tpublic RoleUtilisateur getRoleUtilisateur(Integer idR) {\n\t\treturn roleUtilisateurDAO.getRoleUtilisateur(idR);\n\t}", "List<Rol> obtenerRoles() throws Exception;", "public String getIDUsuario(String idSessao) throws SessaoInexistenteException, SessaoInvalidaException {\r\n\t\tString login =gerenciaSessao.getLoginUser(idSessao);\r\n\t\treturn gerenciaUsuario.getIDUsuario(login);\r\n\t}", "public void setRolename(String rolename) {\n this.rolename = rolename;\n }", "public String actualizarRol() throws Exception\n {\n this.setMsg(\"\");\n String vst_mensaje=\"\";\n ArrayList list_st_comentarios = new ArrayList();\n /* Campos requeridos para registrar un funcionario */\n if(this.getIdRol() == 0)list_st_comentarios.add(\" el número\");\n if(this.getNombreRol().equals(\"\"))list_st_comentarios.add(\" el Nombre\");\n if(this.getDescripcionRol().equals(\"\"))list_st_comentarios.add(\" la Descripción\");\n\n if(!list_st_comentarios.isEmpty())\n {\n for(int i = 0; i < list_st_comentarios.size();i++)\n {\n if(list_st_comentarios.size() == 1)\n vst_mensaje = (String)list_st_comentarios.get(i)+\".\";\n else if(i == 0)\n vst_mensaje += (String)list_st_comentarios.get(i);\n else if(i == list_st_comentarios.size()-1 )\n vst_mensaje += \" y \" + (String)list_st_comentarios.get(i)+\".\";\n else\n vst_mensaje += \", \" + (String)list_st_comentarios.get(i);\n }\n }\n\n if(!list_st_comentarios.isEmpty())\n {\n vst_mensaje = \"Para actualizar el rol debe ingresar \"+ vst_mensaje;\n this.setMsg(vst_mensaje);\n return \"faltandatos\";\n }\n else\n {\n if(new ToolBean().ValidarEsNumero(Integer.toString(this.getIdRol())))\n {\n if(!new ToolBean().ValidarEsPalabra(this.getNombreRol()))\n {\n this.setMsg(\"El nombre del rol debe contener únicamente letras.\");\n return \"\";\n }\n else if(!new ToolBean().ValidarEsPalabra(this.getDescripcionRol()))\n {\n this.setMsg(\"La descripción del rol debe contener únicamente letras.\");\n return \"\";\n }\n else\n {\n Servicio.rolModificar(this);\n //this.list_ins_RolBeanUpdate(this);// <== para el PROTOTIPO\n Servicio.rolListarTodos(this);\n\n if(this.getIdRol() == 0)\n return \"noexiste\";\n else\n return \"actualizado\";\n }\n }\n else\n {\n this.setMsg(\"El ID del Rol debe ser un valor numérico.\");\n return \"\";\n }\n }\n }", "public void ajouterRole(RoleUtilisateur ru);", "public void crearUsuarioWS(String name, String login, String pass){\n //JAXBElement<ArrayOfAdministrationResource> arrayAdminRole = obtenerRolesPorNombre(ConstantesWS.ROL_NAME_CLIENTE).;\n \n ObjectFactory fact = new ObjectFactory(); \n //fact.createArrayOfAdministrationRole(obtenerRolesPorNombre(ConstantesWS.ROL_NAME_CLIENTE).);\n \n //fact.createArrayOfint()\n \n //obtenerConexion().getRolesByIds()\n \n //busqueda y seteo del rol de cliente\n ArrayOfint aux =fact.createArrayOfint(); \n aux.getInt().add(Integer.valueOf(181)); //perfil del cliente \n ArrayOfAdministrationRole arrayRole = obtenerConexion().getRolesByIds(aux);\n \n JAXBElement<ArrayOfAdministrationRole> jaxbElementRol;\n jaxbElementRol = fact.createArrayOfAdministrationRole(arrayRole);\n \n //creacion del nuevo usuario con rol cliente\n AdministrationUser user = new AdministrationUser();\n user.setEnabled(Boolean.TRUE);\n user.setMustChangePassword(Boolean.FALSE);\n user.setLastName(fact.createString(name)); \n user.setPassword(fact.createString(pass));\n user.setUserName(fact.createString(login)); \n user.setRoles(jaxbElementRol); \n \n \n //agrego el nuevo usuario\n obtenerConexion().addUser(ConstantesWS.APLICACION_PROVEEDORES, user);\n \n }", "RoleUser selectByPrimaryKey(String id);", "public java.lang.String getUsuario();", "public Usuario verUsuario() {\n\t\tString id = session.getAttribute(\"id\").toString();\n\t\tInteger idUsuario = Integer.parseInt(id);\n\t\tUsuario usuario = usuarioService.buscarUsuarioPorId(idUsuario);\n\t\tif (usuario != null) {\n\t\t\treturn usuario;\n\t\t}\n\t\treturn new Usuario();\n\t}", "public void enrolStudent(String id) {\r\n System.out.println(\"conectado con model ---> metodo enrolStudent\");\r\n //TODO\r\n }", "boolean borrarRol(int idRol) throws Exception;", "@Override\n\tpublic List<UserRole> buscarUserRoleSemPermissoes() {\n\t\t// TODO Auto-generated method stub\n\t\tQuery query = getCurrentSession().createQuery(\"select ur from UserRole ur where ur.permissions\");\n\t\treturn query.list();\n\t}", "public void setUsua_id(java.lang.Long newUsua_id);", "public String registrarRol() throws Exception\n {\n this.setMsg(\"\");\n String vst_mensaje=\"\";\n ArrayList list_st_comentarios = new ArrayList();\n /* Campos requeridos para registrar un funcionario */\n if(this.getIdRol() == 0)list_st_comentarios.add(\" el número\");\n if(this.getNombreRol().equals(\"\"))list_st_comentarios.add(\" el Nombre\");\n if(this.getDescripcionRol().equals(\"\"))list_st_comentarios.add(\" la Descripción\");\n\n if(!list_st_comentarios.isEmpty())\n {\n for(int i = 0; i < list_st_comentarios.size();i++)\n {\n if(list_st_comentarios.size() == 1)\n vst_mensaje = (String)list_st_comentarios.get(i)+\".\";\n else if(i == 0)\n vst_mensaje += (String)list_st_comentarios.get(i);\n else if(i == list_st_comentarios.size()-1 )\n vst_mensaje += \" y \" + (String)list_st_comentarios.get(i)+\".\";\n else\n vst_mensaje += \", \" + (String)list_st_comentarios.get(i);\n }\n vst_mensaje = \"Para Registrar un rol debe ingresar \"+ vst_mensaje;\n }\n\n if(!list_st_comentarios.isEmpty())\n {\n this.setMsg(vst_mensaje);\n return \"faltandatos\";\n }\n else\n {\n if(new ToolBean().ValidarEsNumero(Integer.toString(this.getIdRol())))\n {\n if(!new ToolBean().ValidarEsPalabra(this.getNombreRol()))\n {\n this.setMsg(\"El nombre del rol debe contener únicamente letras.\");\n return \"\";\n }\n else if(!new ToolBean().ValidarEsPalabra(this.getDescripcionRol()))\n {\n this.setMsg(\"La descripción del rol debe contener únicamente letras.\");\n return \"\";\n }\n else\n {\n Servicio.rolAgregar(this);\n //this.list_ins_RolBeanAdd(this);// <== para el PROTOTIPO\n Servicio.rolListarTodos(this);\n\n\n if(this.getIdRol() == 0)\n return \"noestaregistrado\";\n else\n {\n if(this.getMsg().equals(\"El rol ya está registrado en el sistema.\"))\n return \"yaexiste\";\n else\n return \"registrado\";\n }\n }\n }\n else\n {\n this.setMsg(\"El ID del Rol debe ser un valor numérico.\");\n return \"\";\n }\n }\n }", "public void setLoggedUser(PersAdministrativo usuario){\n this.usuario = usuario;\n }", "public void altaUsuario();", "AuditoriaUsuario find(Object id);", "@Override\n\tpublic Usuario modificar() {\n\t\tLOG.info(\"Se modifico el usuario de la bd\");\n\t\treturn usuario;\n\t}", "public void setId_usuario(String usuario) {\n this.id_usuario = usuario;\n }", "private void controladorUser(Controlador controlador){\n this.contUserCrearProyecto = controlador.getUserCrearProyecto();\n inicioUser.setControlCrearProyecto(contUserCrearProyecto);\n \n this.contUserCrearColectivo = controlador.getUserCrearColectivo();\n inicioUser.setControlCrearColectivo(contUserCrearColectivo);\n\n this.contInformes = controlador.getInformes();\n inicioUser.setControlSolicitarInformes(contInformes); \n \n this.contFiltrar = controlador.getFiltrar();\n inicioUser.setControlFiltrar(contFiltrar);\n\n this.contLimpiar = controlador.getLimpiarFiltro();\n inicioUser.setControlLimpiarFiltro(contLimpiar);\n }", "public void delete(Integer idRol);", "public String getRolPrincipal() {\n\t\treturn rolPrincipal;\n\t}", "public Userrole getUserrole() {\n return getEntity();\n }", "public VistaPermisosRolesWrapper getAutorizaciones(String opcion, Principal principal) {\n\t\tList<RolAccionOpcion> listaRolAccionOpcion = new ArrayList<RolAccionOpcion>();\n\t\tRol rol = new Rol();\n\t\tRolAccionOpcion rolAccionOpcion = new RolAccionOpcion();\n//\t\tRolesUsuarios rolesUsuarios = new RolesUsuarios();\n\t\tVistaPermisosRolesWrapper vistaPermisosRolesWrapper = new VistaPermisosRolesWrapper();\n\n\t\tvistaPermisosRolesWrapper.setRoles(getRolesAutorizadosPorOpcion(opcion));\n\t\tvistaPermisosRolesWrapper.setListaRolAccionOpcion(getAccionesPorOpcion(opcion));\n\t\t\n\t\t/**\n\t\t * Obtiene rol de principal\n\t\t */\n\t\trol = getRolDePrincipal(principal);\n\t\t\n\t\t/**\n\t\t * Obtiene las acciones por opcion del rol Los permisos necesarios para\n\t\t * el jsp\n\t\t */\n\t\tif (!getOpcionDeUrl(opcion).isEmpty()) {\n\t\t\trolAccionOpcion = getAccionesOpcionesRol(getOpcionDeUrl(opcion), rol);\n\t\t}\n\n\t\t/**\n\t\t * Si encuentra opciones configuradas para este rol y esta opcion carga\n\t\t * el rol en el wrapper\n\t\t */\n\t\tif (SI.equals(rolAccionOpcion.getSnLectura())) {\n\t\t\tvistaPermisosRolesWrapper.setRol(rol);\n\t\t}\n\n\t\tlistaRolAccionOpcion.add(rolAccionOpcion);\n\t\tvistaPermisosRolesWrapper.setListaRolAccionOpcion(listaRolAccionOpcion);\n\n\t\treturn vistaPermisosRolesWrapper;\n\t}", "public boolean modificarRol(Tbl_rol trol)\n\t{\n\t\tboolean modificado=false;\t\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//Getting connection thread, important!\n\t\t\tConnection con = connectionP.getConnection();\n\n\t\t\tthis.getRS(con);\n\t\t\trsRol.beforeFirst();\n\t\t\twhile (rsRol.next())\n\t\t\t{\n\t\t\t\tif(rsRol.getInt(1)==trol.getId())\n\t\t\t\t{\n\t\t\t\t\trsRol.updateString(\"rol\", trol.getRol());\n\t\t\t\t\trsRol.updateString(\"descripcion\", trol.getDescripcion());\n\t\t\t\t\trsRol.updateInt(\"estado\", 2);\n\t\t\t\t\trsRol.updateRow();\n\t\t\t\t\tmodificado=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Closing connection thread, very important!\n\t\t\tconnectionP.closeConnection(con);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.err.println(\"ERROR modificarRol() \"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn modificado;\n\t\t\n\t}", "public long getIdUsuario() {\n\t\treturn idUsuario;\n\t}", "public OtrosUsuarios(int sesID) {\n initComponents();\n this.sesID = sesID;\n Conexion sql = new Conexion();\n sql.consulta(tabla, \"select Usuario, Inicio from seleccionarUsuarios\");\n }", "@Override\n\tpublic Set<String> getrolename() {\n\t\tSet<String> set = userDao.getrolename();\n\t\treturn set;\n\t}", "private static String setRoleFromDatabase () {\n String sqlRetrieveUserRole = \"SELECT user_role.role FROM user_role, users WHERE (users.user_id=? AND user_role.role_id=users.role)\";\n\n try (Connection conn = Database.getConnection();\n PreparedStatement pstmt = conn.prepareStatement(sqlRetrieveUserRole)) {\n \n pstmt.setInt(1, userId);\n \n ResultSet rs = pstmt.executeQuery();\n \n if (rs.next() == false) {\n roleFromDatabase = \"\";\n } else {\n roleFromDatabase = rs.getString(\"role\");\n }\n } catch (SQLException se) {\n roleFromDatabase = \"\";\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(1), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (IOException ioe) {\n roleFromDatabase = \"\";\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n } catch (Exception e) {\n roleFromDatabase = \"\";\n JOptionPane.showMessageDialog(MainLayout.getJPanel(), Messages.getError(0), Messages.getHeaders(0), JOptionPane.ERROR_MESSAGE);\n }\n \n return roleFromDatabase;\n }", "public Integer getIdUsuario() {\n\t\treturn idUsuario;\n\t}", "public ArrayList<Usuario> getUsuarios(Usuario creador){\r\n ArrayList<Usuario> al= new ArrayList<>();\r\n if (creador.isAdmin()){\r\n try {\r\n String sql= \"Select * from sistemasEM.usuarios\";\r\n Statement s= connection.createStatement();\r\n ResultSet rs = s.executeQuery(sql);\r\n Usuario u;\r\n while(rs.next()){\r\n TipoDescuento td = this.getTipoDescuento(rs.getInt(\"permisosDescuento\"));\r\n TipoPersonal tp = this.getTipoPersonal(rs.getInt(\"permisosPersonal\"));\r\n al.add( new Usuario(rs.getInt(\"id\"), rs.getString(\"nombre\"), rs.getString(\"mostrar\"),rs.getBoolean(\"admin\"),tp,td,rs.getBoolean(\"notas\"),rs.getBoolean(\"habilitacion\"),rs.getBoolean(\"profesor\"),rs.getInt(\"ciProfesor\"),rs.getBoolean(\"cambiarContra\")));\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return al;\r\n }", "User_Role selectByPrimaryKey(Integer id);", "public String getId_usuario() {\n return id_usuario;\n }", "@Override\n\tpublic UserRole get(UserRole vo) {\n\t\treturn null;\n\t}", "public Integer obterIdEmpresaPorRota(Rota rota) throws ErroRepositorioException;", "public String getIdUsuario() {\n\t\treturn idUsuario;\n\t}", "public String getIdUsuario() {\n\t\treturn idUsuario;\n\t}", "public UsuarioSistema get_UsuarioSistema( int id ){ \n UsuarioSistema retorno = null;\n \n List<UsuarioSistema> UsuarioSistema = null;\n try{ \n Query q = JPAUtil.em().createNativeQuery(\"SELECT * FROM JM.USUARIO_SISTEMA WHERE ID = ?\", UsuarioSistema.class );\n q.setParameter(1, id );\n List<UsuarioSistema> lista_Banco = q.getResultList(); \n UsuarioSistema = lista_Banco;\n }catch( Exception e ){ }\n \n String rbusca = \"\"; \n try{ rbusca = UsuarioSistema.get(0).getLogin(); }catch( Exception e ){}\n \n if( !rbusca.equals(\"\") ){\n \n retorno = UsuarioSistema.get(0);\n }\n\n return retorno;\n }", "public Usuario findUserById(Integer id){\n\t\treturn usuarios.findById(id);\n\t}", "public Integer getIdUsuario() {\n return idUsuario;\n }", "public ArrayList <Usuario>listaUsuario(){\r\n\t\treturn loja.getUsuarios();\r\n\t}", "public Usuario iniciarSesion(Usuario u) {\n Usuario user = null;\n\n try {\n if (this.em.isOpen()) {\n user = (Usuario) this.em.createNamedQuery(\"Usuario.findByUsernamePass\")\n .setParameter(\"username\", u.getUsername())\n .setParameter(\"password\", u.getPassword()).getSingleResult();\n em.refresh(user);\n }\n\n } catch (Exception e) {\n //e.printStackTrace();\n\n }\n\n return (user);\n }", "@Test\n\tpublic void testCrudRole() {\n\t\tRoleUtilisateur r1 = new RoleUtilisateur();\n\t\tr1.setId(1);\n\t\tr1.setNom(\"Commercial\");\n\t\t\n\t\tRoleUtilisateur r2 = new RoleUtilisateur();\n\t\tr2.setId(2);\n\t\tr2.setNom(\"Magasinier\");\n\t\t\n\t\tSystem.err.println(daoRole.getDao());\n\t\tdaoRole.createRoleUtilisateur(r1);\n\t\tdaoRole.createRoleUtilisateur(r2);\n\t\t\n\t\t//Récuperation des deux rôles crées\n\t\tRoleUtilisateur r1Recup = daoRole.findByIdRoleUtilisateur(1);\n\t\t\n\t\tassertNotNull(r1Recup);\n\t\tassertEquals(\"Commercial\", r1Recup.getNom());\n\t\t\n\t\t\n\t\tRoleUtilisateur r2Recup = daoRole.findByIdRoleUtilisateur(2);\n\t\t\n\t\tassertNotNull(r2Recup);\n\t\tassertEquals(\"Magasinier\", r2Recup.getNom());\n\t\t\n\t\n\t\t//Modification des deux roles\n\t\tRoleUtilisateur r1Modifie = r1;\n\t\tr1Modifie.setNom(\"CommercialMod\");\n\t\t\n\t\tRoleUtilisateur r2Modifie = r2;\n\t\tr2Modifie.setNom(\"MagasinierMod\");\n\t\t\n\t\tdaoRole.updateRoleUtilisateur(r1Modifie);\n\t\tdaoRole.updateRoleUtilisateur(r2Modifie);\n\t\t\n\t\t\n\t\t\n\t\tRoleUtilisateur rRecupModifie1 = daoRole.findByIdRoleUtilisateur(1);\n\t\tassertEquals(\"CommercialMod\", rRecupModifie1.getNom());\n\n\t\tRoleUtilisateur rRecupModifie2 = daoRole.findByIdRoleUtilisateur(2);\n\t\tassertEquals(\"MagasinierMod\", rRecupModifie2.getNom());\n\t\t\n\t\t\n\t\t//Afficher la liste des roles\n\t\tList<RoleUtilisateur> allRoleUtilisateur = daoRole.findAllRoleUtilisateur();\n\t\tassertEquals(2, allRoleUtilisateur.size());\n\t\t\n\t\tassertEquals(\"CommercialMod\", allRoleUtilisateur.get(0).getNom());\n\t\tassertEquals(\"MagasinierMod\", allRoleUtilisateur.get(1).getNom());\n\n\n\t}", "@Override\r\n\tpublic int delUserRole(long urId) {\n\t\treturn 0;\r\n\t}", "public String getRolesNombre(int row) throws DataStoreException {\r\n return getString(row,ROLES_NOMBRE);\r\n }", "UserRole selectByPrimaryKey(String id);", "UserRole selectByPrimaryKey(String id);", "public AdministrarUsuarios() {\n initComponents();\n modelo = (DefaultTableModel) tablaUsuarios.getModel();\n tablaUsuarios.getTableHeader().setReorderingAllowed(false);\n tablaUsuarios.getTableHeader().setDefaultRenderer(new Facturar.HeaderColor());\n \n manejador.CargarUsuarios();\n listaTotalUsuarios = manejador.ObtenerListaUsuarios();\n cargarUsuariosEnTabla(listaTotalUsuarios);\n ocultarColumnaID();\n }", "public Usuario getAutor() {\n return autor;\n }", "@Test\n void getByIdSuccess() {\n UserRoles retrievedUserRole = (UserRoles) genericDao.getById(2);\n assertEquals(\"all\", retrievedUserRole.getRoleName());\n assertEquals(\"fhensen\", retrievedUserRole.getUserName());\n\n assertNotNull(retrievedUserRole);\n }", "@SuppressWarnings(\"unused\")\n\tprivate VistaPermisosRolesWrapper getOpcionesPorRol(Rol rol) {\n\t\treturn null;\n\t}" ]
[ "0.7657577", "0.7313073", "0.7059888", "0.69676805", "0.68129015", "0.6777752", "0.67647296", "0.67085564", "0.66009957", "0.656896", "0.6550052", "0.6491182", "0.64757705", "0.6466244", "0.63355666", "0.62787557", "0.62740946", "0.62740946", "0.62503916", "0.62485135", "0.6178392", "0.6150758", "0.61477095", "0.6133605", "0.61325705", "0.6083333", "0.6076355", "0.6069477", "0.60645056", "0.60558647", "0.6053483", "0.6048847", "0.60445434", "0.6043127", "0.601924", "0.59864074", "0.59457886", "0.5939529", "0.5930081", "0.59255654", "0.5920867", "0.5916269", "0.5912605", "0.5906336", "0.590535", "0.5895169", "0.58827317", "0.58821785", "0.5880754", "0.5841644", "0.58156663", "0.581335", "0.5800843", "0.57979655", "0.5788541", "0.578182", "0.57742834", "0.5773595", "0.57713485", "0.57660365", "0.5764489", "0.5759294", "0.575085", "0.57506675", "0.5728146", "0.57270634", "0.5726375", "0.57119083", "0.57079786", "0.570299", "0.56995857", "0.56955016", "0.56900173", "0.56773466", "0.5673995", "0.5672292", "0.56690156", "0.56655604", "0.5665557", "0.5662236", "0.5657691", "0.5656219", "0.56541145", "0.5651458", "0.5643301", "0.5643301", "0.56425345", "0.56387395", "0.5637628", "0.5622104", "0.5619743", "0.5609576", "0.560864", "0.5603074", "0.5592924", "0.5592924", "0.5592751", "0.5591135", "0.55907047", "0.5571103" ]
0.70427614
3
Almacena el id_user y la fecha de ingreso en la bitacora_registro
public boolean registroEnBitacora(int id_usuario, int id_rol) { try { PreparedStatement pstm = null; ResultSet rs = null; String query = "INSERT INTO bitacora_ingresos(id_user, id_rol, fecha_reg) VALUES (?,?,now())"; pstm = con.prepareStatement(query); pstm.setInt(1, id_usuario); pstm.setInt(2, id_rol); if (pstm.executeUpdate() == 1) { return true; } }catch(SQLException ex){ ex.printStackTrace(); return false; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ponerUsuarioInactivo(String idUsuario);", "@Override\n\tpublic void registrarAtencion(TramiteUsuario tramite) {\n\t\ttramite.setSecUsuario1( Usuario.getUsuarioBean() );\n\t\ttramite.setSecUsuario2( Usuario.getUsuarioBean() );\n\t\ttramite.setEstado(1);\n\t\ttramite.setEstadoTramiteFinal( ParametroUtil.EstadoTramite.ATENDIDO.value );\n\t\ttramite.setFechaRegistro( new Date() );\n\t\ttramiteDAO.registrarMovimiento( tramite );\n\t\t\n\t\ttramite.getTramite().setEstado( ParametroUtil.EstadoTramite.ATENDIDO.value );\n\t\ttramiteDAO.registrar( tramite.getTramite() );\n\t\t\n\t}", "private void actualizaUsuario() {\n\t\t\n\t\tInteger edad=miCoordinador.validarEdad(campoEdad.getText().trim());\n\t\t\n\t\tif (edad!=null) {\n\t\t\t\n\t\t\tUsuarioVo miUsuarioVo=new UsuarioVo();\n\t\t\t//se asigna cada dato... el metodo trim() del final, permite eliminar espacios al inicio y al final, en caso de que se ingresen datos con espacio\n\t\t\tmiUsuarioVo.setDocumento(campoDocumento.getText().trim());\n\t\t\tmiUsuarioVo.setNombre(campoNombre.getText().trim());\n\t\t\tmiUsuarioVo.setEdad(Integer.parseInt(campoEdad.getText().trim()));\n\t\t\tmiUsuarioVo.setProfesion(campoProfesion.getText().trim());\n\t\t\tmiUsuarioVo.setTelefono(campoTelefono.getText().trim());\n\t\t\tmiUsuarioVo.setDireccion(campoDireccion.getText().trim());\n\t\t\t\n\t\t\tString actualiza=\"\";\n\t\t\t//se llama al metodo validarCampos(), este retorna true o false, dependiendo de eso ingresa a una de las opciones\n\t\t\tif (miCoordinador.validarCampos(miUsuarioVo)) {\n\t\t\t\t//si se retornó true es porque todo está correcto y se llama a actualizar\n\t\t\t\tactualiza=miCoordinador.actualizaUsuario(miUsuarioVo);//en registro se almacena ok o error, dependiendo de lo que retorne el metodo\n\t\t\t}else{\n\t\t\t\tactualiza=\"mas_datos\";//si validarCampos() retorna false, entonces se guarda la palabra mas_datos para indicar que hace falta diligenciar los campos obligatorios\n\t\t\t}\n\t\t\t\n\t\t\t//si el registro es exitoso muestra un mensaje en pantalla, sino, se valida si necesita mas datos o hay algun error\n\t\t\tif (actualiza.equals(\"ok\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \" Se ha Modificado Correctamente \",\"Confirmación\",JOptionPane.INFORMATION_MESSAGE);\t\t\t\n\t\t\t}else{\n\t\t\t\tif (actualiza.equals(\"mas_datos\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Debe Ingresar los campos obligatorios\",\"Faltan Datos\",JOptionPane.WARNING_MESSAGE);\t\t\t\n\t\t\t\t}else{\n\t\t JOptionPane.showMessageDialog(null, \"Error al Modificar\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(null, \"Debe ingresar una edad Valida!!!\",\"Advertencia\",JOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t\t\t\t\n\t}", "public Utilizador(){\r\n this.id = \"\";\r\n this.email = \"\";\r\n this.nome = \"\";\r\n this.password = \"\";\r\n this.morada = \"\";\r\n this.dataNasc = new GregorianCalendar();\r\n }", "public RespuestaDTO registrarUsuario(Connection conexion, UsuarioDTO usuario) throws SQLException {\n PreparedStatement ps = null;\n ResultSet rs = null;\n int nRows = 0;\n StringBuilder cadSQL = null; //para crear el ddl \n RespuestaDTO registro = null;\n \n try {\n registro = new RespuestaDTO();\n System.out.println(\"usuario----\" + usuario.toStringJson());\n cadSQL = new StringBuilder();\n cadSQL.append(\" INSERT INTO usuario(usua_correo, usua_usuario,tius_id, usua_clave)\");\n cadSQL.append(\" VALUES (?, ?, ?, SHA2(?,256)) \");\n \n ps = conexion.prepareStatement(cadSQL.toString(), Statement.RETURN_GENERATED_KEYS);\n \n AsignaAtributoStatement.setString(1, usuario.getCorreo(), ps);// se envian los datos a los ?, el orden importa mucho\n AsignaAtributoStatement.setString(2, usuario.getUsuario(), ps);\n AsignaAtributoStatement.setString(3, usuario.getIdTipoUsuario(), ps);\n AsignaAtributoStatement.setString(4, usuario.getClave(), ps);\n \n nRows = ps.executeUpdate(); // ejecuta el proceso\n if (nRows > 0) { //nRows es el numero de filas que hubo de movimiento, es decir si hizo el registro, con este if se sabe\n rs = ps.getGeneratedKeys(); // esto se usa para capturar el id recien ingresado en caso de necesitarlo despues\n if (rs.next()) {\n registro.setRegistro(true);\n registro.setIdResgistrado(rs.getString(1)); // guardo el id en en este atributo del objeto\n\n }\n // cerramos los rs y ps\n ps.close();\n ps = null;\n rs.close();\n rs = null;\n }\n } catch (SQLException se) {\n LoggerMessage.getInstancia().loggerMessageException(se);\n return null;\n }\n return registro;\n }", "private void fechaActual() {\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat sm = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\t// Formateo de Fecha para mostrar en la vista - (String)\r\n\t\tsetFechaCreacion(sm.format(date.getTime()));\r\n\t\t// Formateo de Fecha campo db - (Date)\r\n\t\ttry {\r\n\t\t\tnewEntidad.setFechaCreacion(sm.parse(getFechaCreacion()));\r\n\t\t} catch (ParseException 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}", "@Override\n\tpublic List<ControlAcceso> registroUsers(String fecha, int codigo) {\n\t\treturn controlA.registroUsers(fecha, codigo);\n\t}", "public User(int id,String firstName, String lastName, String username, String email, String password, String city, String country, String gender, Date birthdate, int age, int imgUser, Date last_access, Date registration_date) {\n this.id = id;\n this.firstName = firstName;\n this.lastName = lastName;\n this.username = username;\n this.email = email;\n this.password = password;\n this.city = city;\n this.country = country;\n this.gender = gender;\n this.birthdate = birthdate;\n this.age = age;\n this.imgUser = imgUser;\n this.last_access = last_access;\n this.registration_date = registration_date;\n }", "public void setCreacion(Date creacion) {\r\n this.creacion = creacion;\r\n }", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,DatoGeneralEmpleado datogeneralempleado,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(DatoGeneralEmpleadoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(datogeneralempleado.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(DatoGeneralEmpleadoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////DatoGeneralEmpleadoLogic.registrarAuditoriaDetallesDatoGeneralEmpleado(connexion,datogeneralempleado,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(datogeneralempleado.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!datogeneralempleado.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////DatoGeneralEmpleadoLogic.registrarAuditoriaDetallesDatoGeneralEmpleado(connexion,datogeneralempleado,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(datogeneralempleado.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(DatoGeneralEmpleadoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////DatoGeneralEmpleadoLogic.registrarAuditoriaDetallesDatoGeneralEmpleado(connexion,datogeneralempleado,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public abstract void setFecha_ingreso(java.sql.Timestamp newFecha_ingreso);", "public long create_user(User user)\r\n\t{ \r\n\t long id = 0; //id de la tabla user (único) \r\n\r\n\t try \r\n\t { \r\n\t iniciaOperacion(); \r\n\t id = (Long)sesion.save(user); //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t tx.commit(); \r\n\t }catch(HibernateException he) \r\n\t { \r\n\t manejaExcepcion(he);\r\n\t throw he; \r\n\t }finally \r\n\t { \r\n\t sesion.close(); \r\n\t } \r\n\t return id; \r\n\t}", "int getIdRondaCancion(Cancion cancion,Date fecha) throws ExceptionDao;", "public User() {\n this.dateRegister = DateTime.now();\n }", "public UsuarioRegistrado(String nombre, String contrasena, Date fechanac) {\n\t\tsuper(nombre, contrasena);\n\t\tthis.fechanac = fechanac;\n\n\t\tbloqueado = false;\n\t\tpremium = false;\n\t\treproducciones = 0;\n\t\tcanciones = new ArrayList<>();\n\t\talbumes = new ArrayList<>();\n\t\tlistas = new ArrayList<>();\n\t\tseguidos = new ArrayList<>();\n\t}", "void setUserCreated(final Long userCreated);", "public Date generarFechaSolicitudGarantia() {\r\n return new Date();\r\n }", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,TarjetaCredito tarjetacredito,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(tarjetacredito.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TarjetaCreditoLogic.registrarAuditoriaDetallesTarjetaCredito(connexion,tarjetacredito,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(tarjetacredito.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!tarjetacredito.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////TarjetaCreditoLogic.registrarAuditoriaDetallesTarjetaCredito(connexion,tarjetacredito,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(tarjetacredito.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TarjetaCreditoLogic.registrarAuditoriaDetallesTarjetaCredito(connexion,tarjetacredito,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public static void registrarOperacionPrestamo(Usuario autor, long idPrestamo, Operacion operacion) throws DaoException {\r\n String msg = null;\r\n Prestamo prestamo = PrestamoDao.findPrestamoById(idPrestamo, null);\r\n Conexion con = null;\r\n try {\r\n HashMap<String, String> infoPrestamo;\r\n HashMap<String, Object> infoOperacion = new HashMap<String, Object>();\r\n infoOperacion.put(\"ID\", Consultas.darNumFilas(Operacion.NOMBRE_TABLA)+1);\r\n infoOperacion.put(\"FECHA\", Consultas.getCurrentDate());\r\n infoOperacion.put(\"TIPO\", operacion.getTipo());\r\n infoOperacion.put(\"ID_AUTOR\", autor.getId());\r\n\r\n \r\n con=new Conexion();\r\n switch (operacion.getTipo()) {\r\n case Operacion.PAGAR_CUOTA:\r\n PrestamoDao.registrarPagoCuota(prestamo,con);\r\n infoOperacion.put(\"MONTO\", prestamo.getValorCuota());\r\n infoOperacion.put(\"DESTINO\", \"0\");\r\n infoOperacion.put(\"METODO\", operacion.getMetodo());\r\n infoOperacion.put(\"ID_PRESTAMO\", prestamo.getId()); \r\n \r\n break;\r\n case Operacion.PAGAR_CUOTA_EXTRAORDINARIA:\r\n \r\n //solo gasta lo necesario par apagar el prestamo\r\n if (operacion.getMonto()>prestamo.getCantidadRestante())\r\n {\r\n throw new DaoException(\"La cuota supera lo que debe\");\r\n }\r\n \r\n infoOperacion.put(\"MONTO\", operacion.getMonto());\r\n infoOperacion.put(\"DESTINO\",\"0\" );\r\n infoOperacion.put(\"METODO\", operacion.getMetodo());\r\n infoOperacion.put(\"ID_PRESTAMO\", prestamo.getId()); \r\n PrestamoDao.registrarPagoCuotaExtraordinaria(prestamo,operacion,con);\r\n break;\r\n case Operacion.CERRAR:\r\n if (prestamo.getCantidadRestante() != 0) {\r\n throw new DaoException( \"El prestamo no se ha pagado completamente\");\r\n } else {\r\n \r\n Consultas.insertar(null, infoOperacion, Operacion.infoColumnas, Operacion.NOMBRE_TABLA);\r\n String sentenciaCerrar = \"UPDATE PRESTAMOS SET ESTADO='CERRADO' WHERE ID=\" + prestamo.getId();\r\n con.getConexion().prepareStatement(sentenciaCerrar).executeUpdate();\r\n \r\n }\r\n \r\n }\r\n \r\n Consultas.insertar(con, infoOperacion, Operacion.infoColumnas, Operacion.NOMBRE_TABLA);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(OperacionDao.class.getName()).log(Level.SEVERE, null, ex); \r\n con.rollback();\r\n throw new DaoException();\r\n }\r\n\r\n \r\n }", "public void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,PresuTipoProyecto presutipoproyecto,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(presutipoproyecto.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PresuTipoProyectoLogic.registrarAuditoriaDetallesPresuTipoProyecto(connexion,presutipoproyecto,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(presutipoproyecto.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!presutipoproyecto.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////PresuTipoProyectoLogic.registrarAuditoriaDetallesPresuTipoProyecto(connexion,presutipoproyecto,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(presutipoproyecto.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PresuTipoProyectoLogic.registrarAuditoriaDetallesPresuTipoProyecto(connexion,presutipoproyecto,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public Fecha getFechaIngreso(){\n return this.fechaIngreso;\n }", "public void modificar() {\n try {\n if(!fecha.equals(null)){\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n \n calendar.setTime((Date) this.fecha);\n this.Selected.setApel_fecha_sesion(calendar.getTime());\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(2, Selected); \n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"1\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue modificada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n this.Selected = new ApelacionesBean();\n addMessage(\"Guadado Exitosamente\", 1);\n }else\n {\n addMessage(\"Es requerida la fecha\",1 );\n }\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al insertar el registro, contacte al administrador del sistema\", 1);\n }\n }", "public Cgg_res_oficial_seguimiento_usuario(){}", "public void setId_usuario(String usuario) {\n this.id_usuario = usuario;\n }", "public User(){\n nomorAkun = 0;\n pin = 0;\n saldo = 0;\n }", "private void metodoSalvarUsuarioFirebase(final Usuarios variavelClasseUsuarios) {\n\n refAutenticacaofb = ConfiguracaoFirebase.metodoAutenticacaoFirebase();\n refAutenticacaofb.createUserWithEmailAndPassword(variavelClasseUsuarios.getEmail(),\n variavelClasseUsuarios.getSenha()).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if(task.isSuccessful()){\n\n idUsuario = task.getResult().getUser().getUid();\n variavelClasseUsuarios.setId(idUsuario);\n variavelClasseUsuarios.salvarUsuario();\n\n if(pegarTipoUsuarioSwitch() == \"Cliente\"){\n\n startActivity(new Intent(CadastroUsuario.this, Home.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Usuário salvo com sucesso\", Toast.LENGTH_LONG).show();\n }else{\n\n startActivity(new Intent(CadastroUsuario.this, PainelEmpresa.class));\n finish();\n Toast.makeText(CadastroUsuario.this, \"Empresa inserida com sucesso!\", Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n\n\n }\n });\n\n }", "@Override\n\tpublic Usuario modificar() {\n\t\tLOG.info(\"Se modifico el usuario de la bd\");\n\t\treturn usuario;\n\t}", "private void controladorUser(Controlador controlador){\n this.contUserCrearProyecto = controlador.getUserCrearProyecto();\n inicioUser.setControlCrearProyecto(contUserCrearProyecto);\n \n this.contUserCrearColectivo = controlador.getUserCrearColectivo();\n inicioUser.setControlCrearColectivo(contUserCrearColectivo);\n\n this.contInformes = controlador.getInformes();\n inicioUser.setControlSolicitarInformes(contInformes); \n \n this.contFiltrar = controlador.getFiltrar();\n inicioUser.setControlFiltrar(contFiltrar);\n\n this.contLimpiar = controlador.getLimpiarFiltro();\n inicioUser.setControlLimpiarFiltro(contLimpiar);\n }", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,ValorPorUnidad valorporunidad,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(valorporunidad.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(valorporunidad.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!valorporunidad.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(valorporunidad.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public String regist(User user) {\n\t\t\n\t\tuser.setId(UUIDUtils.getNumUUID());\n\t\tuserMapper.insertSelective(user);\n\t\t\n\t\treturn \"success\";\n\t}", "public void setFechaInsercion(String p) { this.fechaInsercion = p; }", "public void setFechaInsercion(String p) { this.fechaInsercion = p; }", "public void zmienDaneUzytkownika() throws SQLException {\n String noweImie = userEdycjaNoweImie.getText().trim();\n String noweNazwisko = userEdycjaNoweNazwisko.getText().trim();\n String nowyEmail = userEdycjaNoweAdresEmail.getText().trim();\n String nowyNumerKontaktowy = userEdycjaNowyNumerKontaktowy.getText().trim();\n\n Driver.editUser(noweImie, noweNazwisko, nowyNumerKontaktowy, nowyEmail);\n }", "public void actualizarUsuario(Integer id, String nombre, long documento, String email, Boolean activo) throws Exception;", "public long agregarUsuario(Usuario usuario) throws SQLException {\n PreparedStatement preSt = connection.prepareStatement(CREAR_USUARIO, Statement.RETURN_GENERATED_KEYS);\n\n preSt.setString(1, usuario.getNombre());\n preSt.setString(2, usuario.getProfesion());\n preSt.setString(3, usuario.getPassword());\n\n preSt.executeUpdate();\n\n ResultSet result = preSt.getGeneratedKeys();\n if (result.first()) {\n return result.getLong(1);\n }\n\n return -1;\n }", "public void actualizarUsuario(Long idUsr,String nick,String nombres,String pass){\n\t\t\t\t\t //buscamos el objeto que debe ser actualizado:\n\t\t\t\t\t Usuario u = findbyIdUsuario(idUsr);\n\t\t\t\t\t em.getTransaction().begin();\n\t\t\t\t\t // no se actualiza la clave primaria, en este caso solo la descripcion\n\t\t\t\t\t u.setNick(nick);\n\t\t\t\t\t u.setNombres(nombres);\n\t\t\t\t\t u.setPass(pass);\n\t\t\t\t\t em.merge(u);\n\t\t\t\t\t em.getTransaction().commit();\n\t\t\t\t }", "public void setCreatedByUser(long createdByUser);", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,GrupoBodega grupobodega,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(GrupoBodegaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(grupobodega.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(GrupoBodegaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////GrupoBodegaLogic.registrarAuditoriaDetallesGrupoBodega(connexion,grupobodega,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(grupobodega.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!grupobodega.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////GrupoBodegaLogic.registrarAuditoriaDetallesGrupoBodega(connexion,grupobodega,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(grupobodega.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(GrupoBodegaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////GrupoBodegaLogic.registrarAuditoriaDetallesGrupoBodega(connexion,grupobodega,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public long registerClasificadoTable(Clasificacion clasifi, Usuario usuario) {\n\n AdmSQLiteOpenHelper admin;\n ContentValues registro;\n long clasificado_id = 0;\n\n try {\n admin = new AdmSQLiteOpenHelper(this.context);\n admin.createDataBase();\n\n SQLiteDatabase bd = admin.getWritableDatabase();\n registro = new ContentValues();\n registro.put(\"clasificacion_id\", clasifi.getId());\n registro.put(\"usuario_id\", usuario.getId());\n clasificado_id = bd.insert(\"clasificado\", null, registro);\n/*\n Toast.makeText(this.context, \"Se cargaron los datos de Sincronizacion\",\n Toast.LENGTH_SHORT).show();\n*/\n //admin.openDataBase();\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n Toast.makeText(this.context, \"ERR-REGSYNC datos de Sincronizacion\",\n Toast.LENGTH_SHORT).show();\n System.out.println(\"ERR-REGSYNC\" + e.getMessage());\n }\n return clasificado_id;\n\n }", "public Long getUserCreate() {\n return userCreate;\n }", "public Date getCreacion() {\r\n return creacion;\r\n }", "public String getIdUsuarioModificacion() {\n\t\treturn this.idUsuarioModificacion;\n\t}", "public boolean saveLastLogin(User user);", "@Override\n public void save(Usuario usuario) {\n }", "void setCreationDate( String username, Date creationDate ) throws UserNotFoundException;", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,ClienteArchivo clientearchivo,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(ClienteArchivoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(clientearchivo.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ClienteArchivoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ClienteArchivoLogic.registrarAuditoriaDetallesClienteArchivo(connexion,clientearchivo,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(clientearchivo.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!clientearchivo.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////ClienteArchivoLogic.registrarAuditoriaDetallesClienteArchivo(connexion,clientearchivo,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(clientearchivo.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ClienteArchivoDataAccess.TABLENAME, clientearchivo.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ClienteArchivoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ClienteArchivoLogic.registrarAuditoriaDetallesClienteArchivo(connexion,clientearchivo,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public boolean comprobarReservaSimultaneaUsuario(String id_usuario, Timestamp horaInicio) {\r\n\t\ttry {\r\n\t\t\tConnection con = conectar();\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\r\n\t\t\t\t\t\"SELECT R.ID_RESERVA FROM RESERVA r WHERE r.ID_USUARIO = ? AND r.HORA_INICIO = ?\");\r\n\t\t\tps.setString(1, id_usuario);\r\n\t\t\tps.setTimestamp(2, horaInicio);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\trs.close();\r\n\t\t\t\tps.close();\r\n\t\t\t\tcon.close();\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\trs.close();\r\n\t\t\t\tps.close();\r\n\t\t\t\tcon.close();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic AuthUser update(AuthUser knownUser) {\n\t\tUser.setLastLoginDate(knownUser);\n\t\treturn knownUser;\n\t}", "@Override\r\n\tpublic boolean insertUsuario(Usuario user) {\n\t\treturn false;\r\n\t}", "public static Fecha IngresarFecha(){\n int diaIngreso, mesIngreso,anioIngreso;\r\n Fecha fechaIngreso = null;\r\n boolean condicion=false;\r\n \r\n do {\r\n System.out.println(\"Ingrese una fecha.\\n\"\r\n + \"Ingrese Dia: \");\r\n diaIngreso = TecladoIn.readInt();\r\n System.out.println(\"Ingrese el Mes: \");\r\n mesIngreso = TecladoIn.readLineInt();\r\n System.out.println(\"Ingrese el año: \");\r\n anioIngreso = TecladoIn.readInt();\r\n if (Validaciones.esValidoDatosFecha(diaIngreso, mesIngreso, anioIngreso)) {\r\n fechaIngreso = new Fecha(diaIngreso, mesIngreso, anioIngreso);\r\n \r\n condicion = true;\r\n } else {\r\n System.out.println(\"...........................................\");\r\n System.out.println(\"Ingrese Una Fecha Correcta: Dia/Mes/Año\");\r\n System.out.println(\"...........................................\");\r\n }\r\n } while (condicion != true);\r\n \r\n return fechaIngreso;}", "public void registro(View v) {\n\t\tsubeUsuario();\n\t\tif (userId == -1) { // si es nuevo\n\t\t\tfinish(); // hay que dejar que el server devuelva el id y leerlo\n\t\t}\n\t}", "public void updateUserDate(User user){\n ContentValues values = new ContentValues();\n values.put(COLUMN_USER_AGE, user.getNume());\n // updating row\n db.update(TABLE_USER, values, COLUMN_USER_EMAIL + \" = ?\",\n new String[]{String.valueOf(user.getEmail())});\n db.close();\n }", "public Usuario actualizar(RegistroActForm usuario, long idUsuario) throws AbadiaException {\n String sSQL;\r\n PreparedStatement ps = null;\r\n ResultSet rs = null;\r\n try {\r\n // Añadir el usuario en la tabla\r\n sSQL = \"Update usuario set IDIOMAID = ?, CONTRASENA=? , NOMBRE=? , APELLIDO1=? , APELLIDO2=? ,EDAD=?, PAIS=?, SEXO=? \" +\r\n \"WHERE USUARIOID= ?\";\r\n ps = con.prepareStatement(sSQL);\r\n ps.setInt(1, usuario.getIdioma());\r\n ps.setString(2, usuario.getPwd());\r\n ps.setString(3, usuario.getNombre());\r\n ps.setString(4, usuario.getApellido1());\r\n ps.setString(5, usuario.getApellido2());\r\n ps.setInt(6, usuario.getEdad());\r\n ps.setInt(7, usuario.getPais());\r\n ps.setInt(8, usuario.getSexo());\r\n ps.setLong(9, idUsuario);\r\n // Ejecutarlo\r\n ps.execute();\r\n return validar(usuario.getNick(), usuario.getPwd());\r\n } catch (SQLException e) {\r\n throw new AbadiaSQLException(\"adUsuario. actualizar. SQLException.\", e, log);\r\n } finally {\r\n DBMSUtils.cerrarObjetoSQL(rs);\r\n DBMSUtils.cerrarObjetoSQL(ps);\r\n }\r\n\r\n }", "public abstract java.sql.Timestamp getFecha_ingreso();", "private void actualizarUsuario() {\n\n\n if (!altura_et.getText().toString().isEmpty() && !peso_et.getText().toString().isEmpty() &&\n !email_et.getText().toString().isEmpty() && !nombreUO_et.getText().toString().isEmpty()) {\n\n user.setAltura(Integer.parseInt(altura_et.getText().toString()));\n user.setPeso(Integer.parseInt(peso_et.getText().toString()));\n user.setCorreo(email_et.getText().toString());\n user.setUserID(nombreUO_et.getText().toString());\n\n\n }else\n Toast.makeText(this,\"Comprueba los datos\", Toast.LENGTH_LONG).show();\n\n }", "public void altaUsuario();", "public static UsuarioTemporal getUsuarioTemporal(){\n UsuarioTemporal usuarioTemporal = new UsuarioTemporal();\n usuarioTemporal.setCorreo(\"[email protected]\");\n usuarioTemporal.setNombre(\"Gerente\");\n usuarioTemporal.setApellido1(\"Apellido1\");\n usuarioTemporal.setApellido2(\"Apellido2\");\n usuarioTemporal.setTelefono(\"11111111\");\n usuarioTemporal.setContrasena(\"$2a$10$gJ0hUnsEvTp5zyBVo19IHe.GoYKkL3Wy268wGJxG5.k.tUFhSUify\");\n usuarioTemporal.setFoto(\"foto\");\n usuarioTemporal.setIdGrupo(\"Cliente\");\n return usuarioTemporal;\n }", "@WebMethod public Pertsona register(String izena, String abizena1, String abizena2, String erabiltzaileIzena, String pasahitza, String telefonoa, String emaila, LocalDate jaiotzeData, String mota) throws UserAlreadyExist;", "void actualizarRondaCancion( Cancion cancion, Date fecha) throws ExceptionDao;", "public void SaveUsuario(UsuarioDTO u) {\n Conexion c = new Conexion();\n PreparedStatement ps = null;\n String sql = \"INSERT INTO Usuario(nombre,apellido,usuario,email,password,fecha_nacimiento,fecha_creacion)\"\n + \"VALUES (?,?,?,?,?,?,?)\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n ps.setString(1, u.getNombre());\n ps.setString(2, u.getApellido());\n ps.setString(3, u.getUsuario());\n ps.setString(4, u.getEmail());\n ps.setString(5, u.getPassword());\n ps.setDate(6, Date.valueOf(u.getFecha_Nacimiento()));\n ps.setDate(7, Date.valueOf(u.getFecha_Creacion()));\n ps.executeUpdate();\n } catch (SQLException ex) {\n System.out.println(\"A \" + ex.getMessage());\n } catch (Exception ex) {\n System.out.println(\"B \" + ex.getMessage());\n } finally {\n try {\n ps.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n }", "public Reserva(int id,Timestamp fechaInicio,Timestamp fechaFin,Recurso recurso,Usuario usuario,String estado,String tipo){\n this.id=id;\n this.fechaInicio=fechaInicio;\n this.fechaFin=fechaFin;\n this.recurso=recurso;\n this.usuario=usuario;\n this.estado=estado;\n this.tipo=tipo;\n }", "Registration registration(long idUser, long idTrail);", "public void setUsuarioModificacion(String p) { this.usuarioModificacion = p; }", "public void setUsuarioModificacion(String p) { this.usuarioModificacion = p; }", "public void check_in ( String id,String longitud,String latitud, String id_cliente, String nota){\n this.id = id;\n this.longitud=longitud;\n this.latitud=latitud;\n this.id_cliente = id_cliente;\n this.nota=nota;\n Calendar c = Calendar.getInstance();\n SimpleDateFormat df = new SimpleDateFormat(\"yyyyMMdd HH:mm\");\n fecha= df.format(c.getTime()).toString();\n new ejecuta_checkin().execute();\n\n }", "private void registrarDatosBD(String nombre, String apellido, String usuario, String clave, String fnacim) {\n\t\tUsuario u = new Usuario(0, nombre, apellido, usuario, clave, fnacim, 0, 0);\n\t\t// 02. Registrar el obj usando la clase de gestion y guardando\n\t\tint ok = new GestionUsuarios().registrar(u);\n\n\t\t// salidas\n\t\tif (ok == 0) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Error al registrar\");\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(this, \"Registro OK\");\n\t\t}\n\t}", "public void setFechaCreacion(Date fechaCreacion) {\r\n this.fechaCreacion = fechaCreacion;\r\n }", "public Date getFechaCreacion() {\r\n return fechaCreacion;\r\n }", "protected void accionUsuario() {\n\t\t\r\n\t}", "public HTMLElement getElementUsuarioInsercionEd() { return this.$element_UsuarioInsercionEd; }", "@Override\n\tpublic User getUserDt(int id) {\n\t\treturn userdao.getUserDt(id);\n\t}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,PlantillaFactura plantillafactura,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(PlantillaFacturaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(plantillafactura.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PlantillaFacturaDataAccess.TABLENAME, plantillafactura.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PlantillaFacturaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PlantillaFacturaLogic.registrarAuditoriaDetallesPlantillaFactura(connexion,plantillafactura,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(plantillafactura.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!plantillafactura.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,PlantillaFacturaDataAccess.TABLENAME, plantillafactura.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////PlantillaFacturaLogic.registrarAuditoriaDetallesPlantillaFactura(connexion,plantillafactura,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PlantillaFacturaDataAccess.TABLENAME, plantillafactura.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(plantillafactura.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PlantillaFacturaDataAccess.TABLENAME, plantillafactura.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PlantillaFacturaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PlantillaFacturaLogic.registrarAuditoriaDetallesPlantillaFactura(connexion,plantillafactura,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public ExistenciaMaq generar(final String clave,final Date fecha, final Long almacenId);", "public void setRegisterDateTime(Date dateTime) { this.registerDateTime = dateTime; }", "@Override\r\n\tpublic boolean updateUsuario(Usuario user) {\n\t\treturn false;\r\n\t}", "Long getUserCreated();", "public long wsadd_user( UserWS user)\r\n\t\t{ \r\n\t\t\t\r\n\t\t\tlong id = 0; //id de la tabla user (único) \r\n\t\t\t\r\n\t\t \r\n\t\t User userH = new User(user.getLogin(),user.getPassword(),user.getRole(),user.getName(),user.getPhone(),user.getDepartment());\r\n\t\t \r\n\t\t //User cliente1 = new User(\"[email protected]\", \"gutie33\", 1, \"Luis\",\"677899876\", \"Informatica\"); \r\n\t\t \r\n\t\t try \r\n\t\t { \r\n\t\t iniciaOperacion(); \r\n\t\t \r\n\t\t id= (Long) sesion.createQuery(\"SELECT u.id_company FROM Company u WHERE u.company_name ='\"+user.getName_company()+\"'\").uniqueResult();\r\n\t\t Company x = (Company) sesion.load(Company.class, id);\r\n\t\t x.addUsuario(userH);\r\n\t\t \r\n\t\t\t userH.setCompany(x);\r\n\t\t \r\n\t\t //sesion.update(compx);\r\n\t\t \r\n\t\t \r\n\t\t //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t tx.commit(); \r\n\t\t }catch(HibernateException he) \r\n\t\t { \r\n\t\t manejaExcepcion(he);\r\n\t\t throw he; \r\n\t\t }finally \r\n\t\t { \r\n\t\t \t//Busqueda del id con qu elo ha introducido a la BBDD\r\n\t\t \tid= (Long) sesion.createQuery(\"SELECT u.id_user FROM User u WHERE u.mail ='\"+user.getLogin()+\"'\").uniqueResult();\r\n\t\t sesion.close(); \r\n\t\t } \r\n\t\t return id; \r\n\t\t}", "public void atualizar(Usuario usuario) {\n\t\tmanager.merge(usuario);\n\t\t\n\t}", "public int getDtRegistro() {\n return dtRegistro;\n }", "public User(String firstName, String lastName, String username, String email, String password, String city, String country, String gender,Date birthdate, int age, int imgUser, Date last_access, Date registration_date) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.username = username;\n this.email = email;\n this.password = password;\n this.city = city;\n this.country = country;\n this.gender = gender;\n this.birthdate = birthdate;\n this.age = age;\n this.imgUser = imgUser;\n this.last_access = last_access;\n this.registration_date = registration_date;\n }", "public UsuarioTable getUsuarioLogueado() {\n String usuario = FacesContext.getCurrentInstance().getExternalContext().getRemoteUser();\n return getUsuarioFacade().obtenerIDPorNombre(usuario);\n }", "@Override\n\t/*Método que va a ser utilizado en el momento en el que se vaya a registrar un usuario*/\n\tpublic String registrarusuario(String nombreusuario, String clave, String nombre, String apellidos, String email, float saldo, Boolean premium) {\n\t\tDBConnection con = new DBConnection();\n\t\tString mensaje=\"\"; //mensaje que se va a devolver al final de la funcion\n\t\tString sqlcomprobacionusuario=\"SELECT * from usuarios\"; //Se cojen todos los datos de los usuarios\n\t\tBoolean valido=true; //para ver si el usuario es válido\n\t\ttry {\n\t\t\tStatement st = con.getConnection().createStatement(); \n\t\t\tResultSet rscomprobacionusuario = st.executeQuery(sqlcomprobacionusuario);\n\t\t\twhile(rscomprobacionusuario.next()) {\n\t\t\t\tString nombre_usu= rscomprobacionusuario.getString(\"nombreusuario\");\n\t\t\t\tString correo= rscomprobacionusuario.getString(\"email\");\n\t\t\t\tif(nombre_usu.equals(nombreusuario) || correo.equals(email)) {\n\t\t\t\t\tvalido=false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*En caso de que el usuario sea válido se procederá a insertarlo en la BD como un nuevo usuario de la aplicación*/\n\t\t\tif(valido) {\n\t\t\t\tString sql =\"Insert into usuarios(nombreusuario,clave,nombre,apellidos,email,saldo,premium) VALUES('\" +nombreusuario+\"','\" +clave+\"','\" +nombre+\"','\"+apellidos+\"','\"+email+\"',\"+saldo+\",'\"+premium+\"')\";\n\t\t\t\tst.executeQuery(sql);\n\t\t\t\tst.close();\n\t\t\t\tmensaje=\"ok\"; //se establece el mensaje que se va a devolver como ok\n\t\t\t}else{\n\t\t\t\tmensaje=\"not ok\"; //mensaje pasa a ser not ok ya que el usuario no era valido\n\t\t\t\t}\n\t\t\t\n\t\t\treturn mensaje;\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\treturn e.getMessage();\n\t\t\t}finally {\n\t\t\t\tcon.desconectar();\n\t\t\t}\n\t }", "public void addUsuario(Usuario usuario) {\n\t\t\n\t}", "@Override\r\n\tpublic Utilisateur addUser() {\n\t\treturn null;\r\n\t}", "@WebMethod\n\tpublic String updateFechaInicio(\n\t\t@WebParam(name=\"inCrrsd_codigo\")String inCrrsd_codigo,\n\t\t@WebParam(name=\"inCrrsd_fecha_inicio\")java.util.Date inCrrsd_fecha_inicio\t\n\t) throws SOAPException{\n\t\tString res = \"true\";\n\t\tHttpServletRequest tmpRequest = (HttpServletRequest) wctx.getMessageContext().get(MessageContext.SERVLET_REQUEST);\n\t\tcom.besixplus.sii.objects.Cgg_res_residencia obj = new com.besixplus.sii.objects.Cgg_res_residencia();\n\t\tobj.setCRRSD_CODIGO(inCrrsd_codigo);\n\t\tobj.setCRRSD_FECHA_INICIO(inCrrsd_fecha_inicio);\n\t\tobj.setCRRSD_ESTADO(true);\n\t\tobj.setCRRSD_USUARIO_UPDATE(tmpRequest.getUserPrincipal().getName());\n\t\ttry{\n\t\t\tConnection con = ManagerConnection.getConnection();\n\t\t\tif(!com.besixplus.sii.db.Cgg_sec_objeto.isGrant(con, Thread.currentThread().getStackTrace()[1].getMethodName(), Thread.currentThread().getStackTrace()[1].getClassName(), tmpRequest.getUserPrincipal().getName(), 1)){\n\t\t\t\tcon.close();\n\t\t\t\tthrow new SOAPFaultException(SOAPFactory.newInstance().createFault(\"Acceso no autorizado.\", new QName(\"http://schemas.xmlsoap.org/soap/envelope/\",Thread.currentThread().getStackTrace()[1].getClassName()+\" \"+Thread.currentThread().getStackTrace()[1].getMethodName())));\n\t\t\t}\n\t\t\tres = new com.besixplus.sii.db.Cgg_res_residencia(obj).updateFechaInicio(con);\n\t\t\tcon.close();\n\t\t\tif(!res.equals(\"true\"))\n\t\t\t\tthrow new SOAPFaultException(SOAPFactory.newInstance().createFault(res, new QName(\"http://schemas.xmlsoap.org/soap/envelope/\",Thread.currentThread().getStackTrace()[1].getClassName()+\" \"+Thread.currentThread().getStackTrace()[1].getMethodName())));\n\t\t}catch(SQLException inException){\n\t\t\tcom.besixplus.sii.db.SQLErrorHandler.errorHandler(inException);\n\t\t\tthrow new SOAPFaultException(SOAPFactory.newInstance().createFault(inException.getMessage(), new QName(\"http://schemas.xmlsoap.org/soap/envelope/\", Thread.currentThread().getStackTrace()[1].getClassName()+\" \"+Thread.currentThread().getStackTrace()[1].getMethodName())));\n\t\t}catch (Exception inException){\n\t\t\tcom.besixplus.sii.db.SQLErrorHandler.errorHandler(inException);\n\t\t\tthrow new SOAPFaultException(SOAPFactory.newInstance().createFault(inException.getMessage(), new QName(\"http://schemas.xmlsoap.org/soap/envelope/\", Thread.currentThread().getStackTrace()[1].getClassName()+\" \"+Thread.currentThread().getStackTrace()[1].getMethodName())));\n\t\t}\n\t\treturn res;\n\t}", "@Override\n\tpublic List<Integer> usersDate(String fecha) {\n\t\treturn controlA.usersDate(fecha);\n\t}", "public void setFecha(Fecha fecha) {\r\n this.fecha = fecha;\r\n }", "public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }", "public void setUsuarioInsercion(String p) { this.usuarioInsercion = p; }", "Boolean registerNewUser(User user);", "public Long saveUser(User user, User modifiedBy);", "Calendar registeredAt();", "public User(){\n registerDate = new LocalDateTime();\n }", "public void cadastrarUsuario(final Usuario usuario){\n mAuth = ConfiguracaoFirebase.getFirebaseAuth();\n mAuth.createUserWithEmailAndPassword(\n usuario.getEmail(),usuario.getSenha()\n ).addOnCompleteListener(\n this, new OnCompleteListener<AuthResult>() {\n //Verifica exceções e se o usuário se cadastrou\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n Toast.makeText(getApplicationContext(),\"Usuário cadastrado com sucesso!\",Toast.LENGTH_SHORT).show();\n finish();\n //Convertendo email em base 64 para ser usado como uidPessoa\n try {\n String identificadorUsuario = Base64Custom.codificarBase64(FirebaseAuth.getInstance().getCurrentUser().getEmail());\n usuario.setUidPessoa(identificadorUsuario);\n usuario.setNome(FirebaseAuth.getInstance().getCurrentUser().getDisplayName());\n usuario.setEmail(FirebaseAuth.getInstance().getCurrentUser().getEmail());\n usuario.setPontos(1);\n usuario.salvar();\n cadastrarUsuario(usuario);\n logarUsuario(usuario);\n abrirTelaPrincipal();\n }catch (Exception e){\n e.printStackTrace();\n }\n }else {String excecao = \"\";\n try{\n throw task.getException();\n\n }catch (FirebaseAuthWeakPasswordException e){\n excecao = \"Digite uma senha forte!\";\n }catch (FirebaseAuthInvalidCredentialsException e){\n excecao = \"Por favor, digite um e-mail válido\";\n }catch (FirebaseAuthUserCollisionException e){\n excecao = \"esta conta já está cadastrada\";\n }catch (Exception e){\n excecao = \"Erro ao cadastrar usuário\" + e.getMessage();\n e.printStackTrace();\n }\n Toast.makeText(getApplicationContext(),excecao,Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public boolean registrar(usuario usr) {\n\n PreparedStatement ps = null;\n Conectar ct = new Conectar();\n Connection con = ct.conexion();\n //INSEERTAR DENTRO DE LA TABLA TRABAJO LOS DATOS DE REGISTRO\n String sql = \"INSERT INTO trabajo (usuario, password, Email, id_tipo, Nombre) VALUES(?,?,?,?,?)\";\n\n try {\n ps = con.prepareStatement(sql);\n\n ps.setString(1, usr.getUsuario());\n\n ps.setString(2, usr.getPassword());\n\n ps.setString(3, usr.getEmail());\n\n ps.setInt(4, usr.getId_tipo());\n\n ps.setString(5, usr.getNombre());\n\n ps.execute();\n return true;\n\n } catch (SQLException ex) {\n Logger.getLogger(sqlUsuario.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }", "public Long getCreateduser() {\n return createduser;\n }", "public void setUsua_id(java.lang.Long newUsua_id);", "public int getId_usuario() {\n\treturn id_usuario;\n }" ]
[ "0.6206038", "0.5928044", "0.5865479", "0.58654505", "0.58654153", "0.5774966", "0.5720135", "0.57044506", "0.5668191", "0.5648513", "0.5645737", "0.5643419", "0.5633496", "0.5627555", "0.5624771", "0.55935127", "0.5563512", "0.5560956", "0.5550133", "0.554924", "0.55412346", "0.5540791", "0.5540433", "0.5536319", "0.55289704", "0.552458", "0.55208373", "0.55190784", "0.5516712", "0.5505785", "0.54984415", "0.5494537", "0.5494537", "0.54838187", "0.5465935", "0.54631525", "0.5462697", "0.54562557", "0.5452727", "0.545228", "0.54505265", "0.5444906", "0.5430527", "0.54262966", "0.54223025", "0.5419242", "0.5406539", "0.54051507", "0.5403957", "0.54016083", "0.53998667", "0.5399235", "0.53964", "0.53920823", "0.5389051", "0.538544", "0.5383832", "0.53774524", "0.5365132", "0.5363669", "0.5361004", "0.53476024", "0.5345535", "0.533907", "0.53309697", "0.53309697", "0.53294355", "0.5319451", "0.53166735", "0.531611", "0.5316047", "0.5311884", "0.53114384", "0.5305802", "0.5299288", "0.5297581", "0.52923805", "0.52912503", "0.52879", "0.5286363", "0.5278639", "0.52755064", "0.5268487", "0.526446", "0.52641654", "0.52641547", "0.52599525", "0.52594864", "0.52533627", "0.5252576", "0.5252576", "0.525257", "0.5250729", "0.52446806", "0.5243797", "0.5243285", "0.5237751", "0.5236095", "0.5235225", "0.5233107" ]
0.6497075
0
Metodo para obtener informacion de la persona del usuario
public Persona getPersona(String nombre) { Persona p = new Persona(); //Considerar almacenar todos los registros en un arrayList o //en un JsonArray y JsonObject try { PreparedStatement pstm = null; ResultSet rs = null; String query = "SELECT * FROM Persona WHERE ID_User IN (SELECT ID_User FROM Usuario WHERE username = ?)"; pstm = con.prepareStatement(query); pstm.setString(1, nombre); rs = pstm.executeQuery(); while(rs.next()) { p.setIdPersona(rs.getInt("ID_Persona")); p.setIdUser(rs.getInt("ID_User")); p.setNombre(rs.getString("Nombre")); p.setApellidoP(rs.getString("apellidoPaterno")); p.setApellidoM(rs.getString("apellidoMaterno")); } }catch(SQLException ex){ ex.printStackTrace(); } return p; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "People getUser();", "public String userInfo(String name){\r\n\t\tString message=\"Este usuario NO existe \";\r\n\t\tint[] info = findUser(name);\r\n\t\tif(info[0]==1)\r\n\t\t\tmessage=user[info[1]].showInfo();\r\n\t\treturn message;\r\n\t}", "public java.lang.String getUsuario();", "java.lang.String getUser();", "@Override\n public java.lang.String getUserName() {\n return _partido.getUserName();\n }", "@Override\n public String toString() {\n String output = \"User Info for: \" + getId();\n output += \"\\n\\tName: \" + getFirstName() + \" \" + getLastName();\n output += \"\\n\\tCreated on: \" + DF.format(getEnrolDate());\n output += \"\\n\\tLast access: \" + DF.format(getLastAccess());\n \n return output;\n }", "java.lang.String getXUsersInfo();", "UserInfo getUserInfo();", "public void printUserInfo(){\n System.out.print(\"Username: \"+ getName() + \"\\n\" + \"Birthday: \"+getBirthday()+ \"\\n\"+ \"Hometown: \"+getHome()+ \"\\n\"+ \"About: \" +getAbout()+ \" \\n\"+ \"Subscribers: \" + getSubscriptions());\n\t}", "private void getUserInfo() {\n\t}", "@Override\n public String toString() {\n return \"userName \" + this.userName + \", pasword \" + this.passWord + \"sex \" + userSex.name();\n }", "String getIdentifiant();", "String getUser();", "String getUser();", "People getObjUser();", "public void displayUserInformations() {\n println(\"getLocation(): \"+user.getLocation());\n println(\"getFriendsCount(): \"+user.getFriendsCount());\n println(\"getFollowersCount(): \"+user.getFollowersCount());\n println(\"getDescription(): \"+user.getDescription());\n println(\"getCreatedAt() : \"+user.getCreatedAt() );\n println(\"getDescriptionURLEntities(): \"+user.getDescriptionURLEntities());\n println(\"getFavouritesCount() : \"+user.getFavouritesCount() );\n }", "public String toString () {\n\t\treturn \"User, name = \" + this.getName() + \" id = \" + this.getId();\n \t}", "public String getUserinfo() {\n return m_userinfo;\n }", "@Override\n public String toString() {\n return \"Person{\" + getId() + \" : \" + getUsername() + \" : \" + getJmeno() + \" \" + getPrijmeni() + '}';\n }", "public String showUser(){\n String dataUser = \"\";\n for(int i = 0; i<MAX_USER; i++){\n if(user[i] != null){\n dataUser += user[i].showDataUser();\n }\n }\n return dataUser;\n }", "public String getParticipantInfo() {\n\t\treturn String.format(\"%s (%s) from %s\", getParticipantName(), this.emailAddress,\n\t\t\tthis.company);\n\t}", "@Override\n\tpublic String getNaam(){\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\tString w=p.getName();\n\t\treturn w;\n\t}", "@Override\n\tpublic String getPerson() throws RemoteException {\n\t\treturn \"[Person name=\" + name + \",sex=\" + sex + \",age=\" + age + \"]\";\n\t}", "public String toString(){\r\n\t\treturn this.username+\"(\"+this.firstname+\" \"+this.lastname+\")\";\r\n\t}", "com.lxd.protobuf.msg.result.user.User.User_ getUser();", "User getUserInformation(Long user_id);", "public User search_userinfo(String user_name);", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, Object> reqs) {\n\t\treturn joaSimpleDao.retrieve(\"tp_users\", reqs);\n\t}", "public String usuarioconectado() {\n\t\tString nome;\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n\t\tif (principal instanceof UserDetails) {\n\t\t\tnome = ((UserDetails) principal).getUsername();\n\t\t} else {\n\t\t\tnome = principal.toString();\n\t\t}\n\t\t// System.out.println(nome);\n\t\treturn nome;\n\t}", "UserInfo getUserInfo(String username);", "public User details(String user);", "@Override\n public String toString() {\n return getUsername();\n }", "private void populateUserInfo() {\n User user = Session.getInstance().getUser();\n labelDisplayFirstname.setText(user.getFirstname());\n labelDisplayLastname.setText(user.getLastname());\n lblEmail.setText(user.getEmail());\n lblUsername.setText(user.getUsername());\n }", "@Override\n public String toString() {\n \treturn \"lastname : \"+this.userLastname+\" firstname: \"+this.userFirstname+\" username: \"+this.userLogin+\" email: \"+this.userEmail+\" role: \"+this.roles;\n }", "final String [] getPersonalInfo(Object value) {\n int countInfo = 3; //Cound of the personal information fields\n String toString [] = new String[countInfo];\n //Extract some information\n toString[0] = (String) ((AbstractPerson) value).getFirstName();\n toString[1] = (String) ((AbstractPerson) value).getLastName();\n toString[2] = (String) ((AbstractPerson) value).getEmail();\n return toString;\n }", "@Override\n public String toString() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'@'HH:mm:ss\");\n String userInformation = new String();\n Date date = new Date();\n userInformation = \"[\" + username + \" - \" +\n socket.getInetAddress().getHostAddress() +\n \":\" + socket.getPort() + \" - \" + formatter.format(date)\n + \"]: \";\n return userInformation;\n }", "@Override\n public String toString() {\n return username;\n }", "public String getUser(){\n \treturn user;\n }", "public String getUser_name() {\n return user_name;\n }", "@AutoEscape\n\tpublic String getUser_name();", "public String getNickName(){\n return nombreUsuario;\n }", "UserDisplayDto getUserInfo(String login);", "@Override\n\tpublic Usuario mostrar() {\n\t\tLOG.info(\"Mostrar los datos del usuario\");\n\t\treturn usuario;\n\t}", "@Override\n public String toString() {\n StringBuffer sb = new StringBuffer(\"[User |\");\n sb.append(\" iduser=\").append(getIduser());\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public String toString() {\n return \"User [id=\" + userId + \", userName=\" + userName + \", password=\" + password\n + \", firstName=\" + firstName + \", lastName=\" + lastName\n + \", email=\" + email + \"]\";\n }", "private void mostrarUsuario(Usuario usuario) {\n\t\tSystem.out.println(usuario.getId()+\" - \"+usuario.getNombre()+\" \"+usuario.getApellido()+\" / \"+usuario.getEdad()+\" / \"+usuario.getDni()+\" / \"+usuario.getFecha_nac());\r\n\t}", "public String getName(){\n return username;\n\t}", "@Override\n public String toString() {\n return String.format(\"[id = %d, PIN: %s, LastName = %s, gender=%s, FirstName: %s]\", id, pin,LastName, gender, FirstName);\n }", "public void printUsers() {\n userAnya.printInfo();\n userRoma.printInfo();\n }", "private String getUserData() { \n\t\t \n\t\tString userName;\n\t\tObject principial = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\t\n\t\tif(principial instanceof UserDetails) {\n\t\t\tuserName = ((UserDetails) principial).getUsername();\n\t\t} else {\n\t\t\tuserName = principial.toString(); \n\t\t}\n\t\treturn userName; \n\t}", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public String getUsuario() {\r\n return usuario;\r\n }", "public String getUsuario() {\r\n return usuario;\r\n }", "public HashMap<String, String> getUserDetails() {\n HashMap<String, String> user = new HashMap<String, String>();\n // user name\n\n user.put(KEY_ID, pref.getString(KEY_ID, null));\n user.put(KEY_EMAIL, pref.getString(KEY_EMAIL, null));\n user.put(KEY_NAME, pref.getString(KEY_NAME, null));\n return user;\n }", "public abstract String getUser();", "@Override\n public String getUserPersonalInfo(String user_id)\n {\n String returnVal = null; \n Connection conn = null;\n Statement stmt = null;\n try \n {\n db_controller.setClass();\n conn = db_controller.getConnection();\n stmt = conn.createStatement();\n String sql;\n \n sql = \"SELECT information from user_personal_information where user_id = '\" + user_id + \"'\";\n \n ResultSet rs = stmt.executeQuery(sql);\n \n \n while(rs.next())\n {\n returnVal = rs.getString(\"information\");\n }\n \n stmt.close();\n conn.close();\n \n } \n catch (SQLException ex) { ex.printStackTrace(); return null;} \n catch (ClassNotFoundException ex) { ex.printStackTrace(); return null;} \n return returnVal;\n }", "@Override\n\tpublic String toString() {\n\t\treturn username;\n\t}", "@Override \n public String toString() \n { \n return \"user\" + \n \"\\n\\t RecordNo: \" + this.recordNo + \n \"\\n\\t EmployeeName: \" + this.name + \n \"\\n\\t Age: \" + this.age + \n \"\\n\\t Sex: \" + this.sex + \n \"\\n\\t Date of Birth: \" + this.dob + \n \"\\n\\t Remark: \" + this.remark; \n }", "String getUserName();", "String getUserName();", "public String toString(){\n\t\tString personInfo = \"First Name: \" + this.firstName + \" Last Name: \" + this.lastName;\n\t\t\n\t\treturn personInfo;\n\t}", "@Override\n public String toString() {\n return \"ID: \" + userID + \" Name: \" + name;\n }", "String getResponsible();", "public String getName() {\n return user.getName();\n }", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "@Override\n public String toString() {\n return \"User{\" +\n \"Id=\" + Id +\n \", name='\" + name + '\\'' +\n \", email='\" + email + '\\'' +\n \", phoneNumber=\" + phoneNumber +\n \", gender=\" + gender +\n \", age=\" + age +\n \", boardingPass=\" + boardingPass +\n \"'}'\\n\";\n }", "@Override\n public String toString() {\n return \"Username: \" + this.username + \"\\n\";\n }", "@Override\n public String toString() {\n return \"User{\" +\n \"id=\" + id +\n \", imgUser=\" + imgUser +\n \", firstName='\" + firstName + '\\'' +\n \", lastName='\" + lastName + '\\'' +\n \", username='\" + username + '\\'' +\n \", email='\" + email + '\\'' +\n \", password='\" + password + '\\'' +\n \", city='\" + city + '\\'' +\n \", country='\" + country + '\\'' +\n \", gender='\" + gender + '\\'' +\n \", birthdate=\" + birthdate +\n \", age=\" + age +\n \", last_access=\" + last_access +\n \", registration_date=\" + registration_date +\n '}';\n }", "@Override\n\tpublic Map<String, Object> getUserAccountInfo(String userId) {\n\t\tString sql = \"select userId,userName,realName where userId=:userId\";\n\t\tMap<String, Object> params = new HashMap<String, Object>();\n\t\tparams.put(\"userId\", userId);\n\t\treturn joaSimpleDao.queryForList(sql, params).get(0);\n\t}", "public String showPerson(){\n return _person.toString();\n }", "public String getUser()\n {\n return _user;\n }", "public java.lang.String getUsuario() {\n return usuario;\n }", "protected String getUsuario() {\n return this.usuario;\n }", "public UserInfo getUserInfo() {\r\n return userInfo;\r\n }", "private static String showDetails (String name){\n\t\t//We find the user\n\t\tint position = findContact(name);\n\t\t//If not found, we return null\n\t\tif (position==-1)\n\t\t\treturn null;\n\t\t//We return the details invoking the toString method\n\t\telse\n\t\t\treturn contacts[position].toString();\n\t}", "public String getUserName();", "public String toString(){\n return username;\n\n }", "@Override\n public User getUserInfo() {\n return User.AUTHORIZED_USER;\n }", "public String getUser()\n {\n return this.user;\n }", "public String getUser()\n {\n return this.user;\n }", "public String getUser()\n {\n return this.user;\n }", "public String showNameUser(){\n String nameUsertoSong = \"\";\n for(int i = 0; i<MAX_USER; i++){\n if(user[i] != null){\n nameUsertoSong += \"[\"+(i+1)+\"]\"+user[i].getUserName()+\"\\n\";\n }\n }\n return nameUsertoSong;\n }", "public UserInfo getUserInfo() {\n return userInfo;\n }", "@Override\n public String toString() {\n return \"UserEntity{\" +\n \"id=\" + id +\n \", peerId=\" + peerId +\n \", gender=\" + gender +\n \", mainName='\" + mainName + '\\'' +\n \", pinyinName='\" + pinyinName + '\\'' +\n \", realName='\" + realName + '\\'' +\n \", avatar='\" + avatar + '\\'' +\n \", phone='\" + phone + '\\'' +\n \", email='\" + email + '\\'' +\n \", departmentId=\" + departmentId +\n \", status=\" + status +\n \", created=\" + created +\n \", updated=\" + updated +\n \", pinyinElement=\" + pinyinElement +\n \", searchElement=\" + searchElement +\n '}';\n }", "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "public String getUser() {\n\treturn strUser;\n }", "public static String getUser() {\n return annotation != null ? annotation.user() : \"Unknown\";\n }", "public void mostrarPersona(){\r\n System.out.println(\"Nombre: \" + persona.getNombre());\r\n System.out.println(\"Cedula: \" + persona.getCedula());\r\n }", "public String getUser() {\r\n return user;\r\n }", "public String toString() {\n return (\"Principal's username: \" + name);\n }", "public String getNombre_usuario() {\n return nombre_usuario;\n }", "public String getUsuario() {\r\n return Usuario;\r\n }", "public String mostrarUsuario(String identificador) throws Exception{\n if (!diccionario.containsKey(identificador)){\n throw new Exception(\"El usuario no existe.\");\n }\n return \"La clave del usuario \"+ identificador + \" es: \"+diccionario.get(identificador);\n }", "@Override\r\n public String toString() {\r\n\t\tStringBuilder sb=new StringBuilder();\r\n\t\tsb.append(\"Usuario{\");\r\n\t\tsb.append(\"emailUsuario\" ).append(\"=\").append(emailUsuario).append(\"|\");\r\n\t\tsb.append(\"contrasenia\" ).append(\"=\").append(contrasenia).append(\"|\");\r\n\t\tsb.append(\"fechaCreacion\" ).append(\"=\").append(fechaCreacion).append(\"|\");\r\n\t\tsb.append(\"nombre\" ).append(\"=\").append(nombre).append(\"|\");\r\n\t\tsb.append(\"apellidoPaterno\" ).append(\"=\").append(apellidoPaterno).append(\"|\");\r\n\t\tsb.append(\"apellidoMaterno\" ).append(\"=\").append(apellidoMaterno).append(\"|\");\r\n\t\tsb.append(\"estatus\" ).append(\"=\").append(estatus).append(\"|\");\r\n\t\tsb.append(\"serialVersionUID=\").append(serialVersionUID).append(\"}\");\r\n\t\treturn sb.toString();\r\n\t}", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();" ]
[ "0.7004712", "0.69827276", "0.68923455", "0.68719864", "0.6862287", "0.6860569", "0.6827097", "0.68105054", "0.68104017", "0.6774835", "0.6751994", "0.67348385", "0.6707772", "0.6707772", "0.6682737", "0.6682373", "0.6681166", "0.6673353", "0.6650257", "0.6609019", "0.655809", "0.654442", "0.65400434", "0.6527267", "0.6524347", "0.65163445", "0.64972746", "0.64931446", "0.64929974", "0.64665717", "0.6462522", "0.6447043", "0.64455146", "0.6444812", "0.6428358", "0.64245987", "0.6424329", "0.6414705", "0.64075845", "0.64045084", "0.63959426", "0.638961", "0.6380793", "0.6374399", "0.63743716", "0.63400906", "0.63302076", "0.6324159", "0.63213724", "0.6320138", "0.6319824", "0.6319824", "0.6319824", "0.6318203", "0.6318203", "0.6318037", "0.6315521", "0.6314933", "0.6310284", "0.6301247", "0.62998796", "0.62998796", "0.62896967", "0.6273059", "0.62726384", "0.6269001", "0.62662876", "0.62662876", "0.62662876", "0.6266226", "0.6263727", "0.6262262", "0.6261441", "0.62550557", "0.62518084", "0.62511796", "0.62501585", "0.62470824", "0.6245363", "0.6237436", "0.62315524", "0.62187755", "0.6212444", "0.6212444", "0.6212444", "0.6211825", "0.62056524", "0.6205052", "0.62015915", "0.6197781", "0.61931247", "0.61801004", "0.61759365", "0.6172499", "0.6163719", "0.6158445", "0.61541796", "0.6144774", "0.6144645", "0.6144645", "0.6144645" ]
0.0
-1
Created by hossain.doula on 5/25/2016.
public interface InventoryDao extends GenericDao<InventoryItem, Long>{ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public void func_104112_b() {\n \n }", "private Rekenhulp()\n\t{\n\t}", "public void mo4359a() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "private void poetries() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "Petunia() {\r\n\t\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public Pitonyak_09_02() {\r\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public int describeContents() { return 0; }", "private TMCourse() {\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "private void m50366E() {\n }", "public void mo6081a() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n public void initialize() { \n }", "@Override\n public void init() {}", "private UsineJoueur() {}", "@Override\n public void initialize() {\n \n }", "protected void mo6255a() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private void init() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "public void mo12930a() {\n }" ]
[ "0.61279106", "0.605581", "0.58397543", "0.5834523", "0.5794805", "0.5767141", "0.57509375", "0.57411754", "0.57411754", "0.56837815", "0.5676819", "0.56680965", "0.56229395", "0.5585558", "0.55833936", "0.5583017", "0.5563144", "0.5562712", "0.5556987", "0.5548965", "0.55413204", "0.55413204", "0.55413204", "0.55413204", "0.55413204", "0.55413204", "0.55372566", "0.55372566", "0.5536062", "0.553522", "0.55228376", "0.55215025", "0.55139744", "0.5510087", "0.5509346", "0.55084074", "0.5507451", "0.5507086", "0.5491152", "0.548133", "0.5481148", "0.54726285", "0.5465955", "0.5462642", "0.5462642", "0.54526937", "0.5436293", "0.5436293", "0.5436293", "0.5436293", "0.5436293", "0.5436293", "0.5436293", "0.5427142", "0.5424074", "0.542144", "0.54137075", "0.5408425", "0.540499", "0.5394429", "0.539214", "0.53877413", "0.53877413", "0.53877413", "0.53877413", "0.53877413", "0.53820294", "0.5359567", "0.53564584", "0.5355582", "0.53546005", "0.5347886", "0.5341904", "0.5340106", "0.53347456", "0.5330589", "0.5329669", "0.53143746", "0.5310693", "0.53070647", "0.53052866", "0.53052866", "0.53052866", "0.5303827", "0.5303827", "0.5295195", "0.52949864", "0.5294865", "0.5294865", "0.5294865", "0.5289261", "0.5289261", "0.528603", "0.52775484", "0.52756536", "0.5272655", "0.52684784", "0.52684027", "0.52684027", "0.52684027", "0.5258055" ]
0.0
-1
When creating the intro, load the intro image.
public Intro(MysticStudioGame game) throws SlickException { introImage = new Image("res/images/Intro_Skizze_FS.png"); this.game = game; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initIntro() {\n\t\tWorld.clear();\n\t\tstate = STATE.INTRO;\n\t\tinitBackground();\n\t\tWorld.add(new Logo(Screen.getCenterX() - Logo.WIDTH / 2, Screen\n\t\t\t\t.getHeight() * 3 / 4 - Logo.HEIGHT / 2));\n\n\t\tWorld.add(new StartButton(Screen.getCenterX() - StartButton.WIDTH / 2,\n\t\t\t\tScreen.getHeight() / 4 - StartButton.HEIGHT / 2, this));\n\n\t\tWorld.add(new SoundButton(Screen.getCenterX() - StartButton.WIDTH / 2,\n\t\t\t\tScreen.getHeight() / 8 - StartButton.HEIGHT / 2));\n\n\t\tWorld.add(new TextStatic(footerText, Screen.getCenterX()\n\t\t\t\t- footerText.length() * Sprite.CHAR_WIDTH / 2,\n\t\t\t\tSprite.CHAR_HEIGHT, Color.yellow));\n\t}", "@Override\n\tpublic void init() {\n\t\tloadSpritesheet();\n\t\tloadSounds();\n\t\tinitIntro();\n\t}", "protected void init() {\n splashImg = new Texture(\"splash.png\");\n }", "public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}", "private void loadImage() {\n try {\n background = ImageIO.read(new File(\"src/main/resources/background.jpg\"));\n } catch (IOException e) {\n System.out.println(\"Cannot load background image!\");\n }\n }", "public void preload() {\n\t\ttry {\n\t\t\ttexture = TextureLoader.getTexture(\"PNG\",\n\t\t\t\t\tResourceLoader.getResourceAsStream(file));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tloaded = true;\n\t}", "@Override\n\tpublic void intro() {\n\t\t\n\t}", "private void loadResource() {\n\t\ttry {\n\t\t\ttarmacTexture = scaleResourceImagePaint(\"/textures/tarmac2.jpg\", 300, 300);\n\t\t\tgrassTexture = scaleResourceImagePaint(\"/textures/grass.jpg\", 300, 300);\n\t\t\tstopwayTexture = scaleResourceImagePaint(\"/textures/stopway.jpg\", 300, 300);\n\t\t} catch (IOException e) {\n\t\t\tsetUsingTextures(false);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadImage() {\r\n\t\tthis.background = GraphicsUtil.resize(ImageLoader.getImage(\"resources/img/loginScreen/LoginBackground.jpg\"),\r\n\t\t\t\tFRAME_X, FRAME_Y);\r\n\t}", "public void initialize() {\n\t\tImageIcon bg = new ImageIcon(\"bg.png\");\n\t\tBackground = (bg.getImage().getScaledInstance(bg.getIconWidth(), bg.getIconHeight(), Image.SCALE_DEFAULT));\n\t\tImageIcon[] in1 = new ImageIcon[12];\n\t\tin1[0] = new ImageIcon(\"Hero1 Normal.png\");\n\t\tin1[1] = new ImageIcon(\"20ed.png\");\n\t\tin1[2] = new ImageIcon(\"50ed.png\");\n\t\tin1[3] = new ImageIcon(\"100ed.png\");\n\t\tin1[4] = new ImageIcon(\"200ed.png\");\n\t\tin1[5] = new ImageIcon(\"500ed.png\");\n\t\tin1[6] = new ImageIcon(\"Hero1 Att200.png\");\n\t\tin1[7] = new ImageIcon(\"Hero1 Att500.png\");\n\t\tin1[8] = new ImageIcon(\"Hero1 Defence01.png\");\n\t\tin1[9] = new ImageIcon(\"Hero1Defence02.png\");\n\t\tin1[10] = new ImageIcon(\"Hero1 to fire.png\");\n\t\tin1[11] = new ImageIcon(\"Hero1 die.png\");\n\t\tImageIcon[] in2 = new ImageIcon[12];\n\t\tin2[0] = new ImageIcon(\"Hero02.png\");\n\t\tin2[1] = new ImageIcon(\"20ed02.png\");\n\t\tin2[2] = new ImageIcon(\"50ed02.png\");\n\t\tin2[3] = new ImageIcon(\"100ed02.png\");\n\t\tin2[4] = new ImageIcon(\"200ed02.png\");\n\t\tin2[5] = new ImageIcon(\"500ed02.png\");\n\t\tin2[6] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[7] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[8] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[9] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[10] = new ImageIcon(\"Hero02 Attack01.png\");\n\t\tin2[11] = new ImageIcon(\"Hero02 Die.png\");\n\t\tImageIcon[] inBullet1 = new ImageIcon[3];\n\t\tinBullet1[0] = new ImageIcon(\"B1fire02.png\");\n\t\tinBullet1[1] = new ImageIcon(\"B1fire03.png\");\n\t\tinBullet1[2] = new ImageIcon(\"B1fire05.png\");\n\t\tImageIcon[] inBullet2 = new ImageIcon[5];\n\t\tinBullet2[0] = new ImageIcon(\"20.png\");\n\t\tinBullet2[1]= new ImageIcon(\"50.png\");\n\t\tinBullet2[2]= new ImageIcon(\"100.png\");\n\t\tinBullet2[3]= new ImageIcon(\"200.png\");\n\t\tinBullet2[4]= new ImageIcon(\"500.png\");\n\t\tHero1.settemplate(in2);\n\t\tHero2.settemplate(in1);\n\t\tBullet1.settemplate(inBullet2);\n\t\tBullet2.settemplate(inBullet1);\n\t\tHero1.setstatus(0);\n\t\tHero2.setstatus(0);\n\t}", "public void loadSkin()\n {\n try\n {\n bgImage = ImageIO.read(BrandingActivator.getResources().\n getImageURL(\"plugin.branding.ABOUT_WINDOW_BACKGROUND\"));\n\n this.setPreferredSize(new Dimension(bgImage.getWidth(this),\n bgImage.getHeight(this)));\n }\n catch (IOException e)\n {\n logger.error(\"Error cannot obtain background image\", e);\n bgImage = null;\n }\n }", "public void preGameMode(){\n\n ImageIcon icon = new ImageIcon(getClass().getResource(\"/title.jpg\"));\n Image image=icon.getImage();\n background = new PBackground(image);\n this.repaint();\n background.setLayout(null);\n this.add(background);\n\n\n // Prepare the body container\n container = new PanelContainer();\n container.setBounds(230,170, 700, 400);\n background.add(container);\n\n this.setVisible(true);\n }", "@Override\n\tpublic void LoadContent()\n\t{\n\t\tspriteBatch = new SpriteBatch(getGraphicsDevice());\n\t\t\n\t\tbackground = Texture2D.FromStream(getGraphicsDevice(), TitleContainer.OpenStream(\"test.png\"));\n\t\t\n\t\t//background = Content.Load(\"test.png\");\n\t\t\n\t\t// TODO: use this.Content to load your game content here\n\t}", "public void InitLoadingInRecognition() {\n Point screen = MainView.GetScreenSize();\n // image setting\n int x = (screen.x - LOADING_IMAGE_SIZE.x) >> 1;\n int y = 100;\n this.m_LoadingImage.InitCharacterEx(\n \"recognizerimages\",\n x, y,\n LOADING_IMAGE_SIZE.x,\n LOADING_IMAGE_SIZE.y,\n 255, 1.0f, 0);\n // animation setting\n this.m_LoadingImage.InitAnimation(\n ANIMATION_LOADING_COUNT_MAX,\n ANIMATION_LOADING_FRAME, 0);\n }", "private void addIntroduction() {\n introductionArrayList = new ArrayList<>();\n introductionArrayList.add(new Item(R.drawable.image_introduction_child,getString(R.string.introduction).replace(\"\\n\",\"\")));\n introductionArrayList.add(new Item(R.drawable.image_history,getString(R.string.history)));\n introductionArrayList.add(new Item(R.drawable.image_symbols,getString(R.string.symbols)));\n introductionArrayList.add(new Item(R.drawable.image_why,getString(R.string.why)));\n introductionArrayList.add(new Item(R.drawable.image_software,getString(R.string.software_stack)));\n introductionArrayList.add(new Item(R.drawable.image_virtual,getString(R.string.virtual)));\n //introductionArrayList.add(new Item(R.drawable.image_art_dalvik,getString(R.string.art_dalvik)));\n introductionArrayList.add(new Item(R.drawable.image_components,getString(R.string.android_components)));\n introductionArrayList.add(new Item(R.drawable.image_setup,getString(R.string.setup)));\n introductionArrayList.add(new Item(R.drawable.image_building,getString(R.string.build_app)));\n\n }", "private void setup() {\n setPreferredSize(DEFAULT_SIZE);\n setBackground(Color.WHITE);\n addComponentsTopane();\n \n File f = new File(\"icons/title.png\");\n try {\n myImage = ImageIO.read(f);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public mainmen() {\n try {\n this.setContentPane(new javax.swing.JLabel(new javax.swing.ImageIcon(getClass().getResource(\"/splash-bg.jpg\"))));\n initComponents();\n RobotoText = Font.createFont(Font.TRUETYPE_FONT, getClass().getResource(\"/Roboto/Roboto-Regular.ttf\").openStream());\n ge.registerFont(RobotoText);\n RobotoTitle = Font.createFont(Font.TRUETYPE_FONT, getClass().getResource(\"/Roboto/Roboto-Bold.ttf\").openStream());\n ge.registerFont(RobotoTitle);\n } catch (Exception e ) {\n e.printStackTrace();\n }\n }", "private void imageInitiation() {\n ImageIcon doggyImage = new ImageIcon(\"./data/dog1.jpg\");\n JLabel dogImage = new JLabel(doggyImage);\n dogImage.setSize(700,500);\n this.add(dogImage);\n }", "@FXML\n private void initialize() {\n logo.setImage(new Image(\n FileLoader.class.getResourceAsStream(\"panama_express_logo_big.jpg\")));\n\n }", "protected void introduction() {\r\n\r\n // Titel\r\n\r\n Text title = lang.newText(new Coordinates(20, 25), \"Negascout Algorithmus\",\r\n \"header\", null, headerProperties);\r\n pMap.put(\"title\", title);\r\n // Umrandung\r\n pMap.put(\"hRect\", lang.newRect(new Coordinates(10, 15), new Coordinates(\r\n 400, 50), \"hRect\", null, headerRectProperties));\r\n\r\n // Zeigt die Einleitung an\r\n SourceCode intro;\r\n intro = lang.newSourceCode(new Coordinates(30, 60), \"intro\", null,\r\n sourceCodeProperties);\r\n intro\r\n .addCodeLine(\r\n \"Der Negascout-Algorithmus wird angewendet, um in einem Spiel zwischen zwei Parteien\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"eine optimale Spielstrategie f\\u00FCr eine der Parteien zu bestimmen.\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"Die m\\u00F6glichen Z\\u00FCge werden dazu in einer Baumstruktur dargestellt.\",\r\n \"intro\", 0, null);\r\n intro.addCodeLine(\"\", \"intro\", 0, null);\r\n intro.addCodeLine(\"Dabei werden folgende Annahmen getroffen:\", \"intro\", 0,\r\n null);\r\n intro\r\n .addCodeLine(\r\n \"- es handelt sich um ein Nullsummenspiel, das hei\\u00DFt positive Punkte des einen Spielers\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \" sind negative Punkte f\\u00FCr den anderen, sodass alle Punkte in der Summe 0 ergeben\",\r\n \"intro\", 0, null);\r\n intro.addCodeLine(\r\n \"- beide Parteien spielen optimal und machen keine Fehler\", \"intro\", 0,\r\n null);\r\n intro\r\n .addCodeLine(\r\n \"- das Spiel ist deterministisch, also nicht von W\\u00FCrfelgl\\u00FCck o.\\u00E4. abh\\u00E4ngig\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"- es gibt keine verborgenen Informationen wie beispielsweise beim Kartenspiel\",\r\n \"intro\", 0, null);\r\n intro.addCodeLine(\"\", \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"Negascout funktioniert so \\u00E4hnlich wie der Alpha-Beta-Algorithmus:\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"Jeder Knoten wird mit einer unteren und einer oberen Grenze untersucht, die den zu diesem\",\r\n \"intro\", 0, null);\r\n intro.addCodeLine(\r\n \"Zeitpunkt m\\u00F6glichen maximalen und minimalen Gewinn angibt.\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"Durch diese Begrenzung k\\u00F6nnen bestimmte Teilb\\u00E4ume abgeschnitten (gepruned) werden, da sie f\\u00FCr \",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"das Endergebnis irrelevant sind (z.B. Z\\u00FCge, die dem Gegner zu viele Punkte bringen w\\u00FCrden).\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"Die Vorsilbe 'Nega-' im Namen des Algorithmus weist darauf hin, dass das Punktefenster f\\u00FCr den\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"n\\u00E4chsten (vom jeweils anderen Spieler ausgef\\u00FChrten) Spielzug negiert wird.\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"Eine Besonderheit von Negascout ist, dass der Algorithmus davon ausgeht, dass der erste\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"betrachtete Zug der beste ist. Weitere m\\u00F6gliche Z\\u00FCge werden anschlie\\u00DFend mit einem \",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"Nullwindow (obere und untere Grenze liegen nur um 1 auseinander) untersucht, um zu beweisen,\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"dass sie tats\\u00E4chlich schlechter sind. Ist das nicht der Fall, tritt ein sogenanntes Fail High auf,\",\r\n \"intro\", 0, null);\r\n intro\r\n .addCodeLine(\r\n \"das hei\\u00DFt der betrachtete Zug ist besser als erwartet. Dann muss dieser Knoten erneut mit dem \",\r\n \"intro\", 0, null);\r\n intro.addCodeLine(\"vollst\\u00E4ndigen Wertefenster untersucht werden.\",\r\n \"intro\", 0, null);\r\n lang.nextStep(\"Intro\");\r\n intro.hide();\r\n\r\n // Zeigt den Code an\r\n code = lang.newSourceCode(new Coordinates(30, 60), \"code\", null,\r\n sourceCodeProperties);\r\n code.addCodeLine(\"int negascout (node n, int alpha, int beta){\", \"code\", 0,\r\n null); // 0\r\n code.addCodeLine(\" if (node is a leaf)\", \"code\", 0, null); // 1\r\n code.addCodeLine(\" return valueOf(node);\", \"code\", 0, null); // 2\r\n code.addCodeLine(\" int a=alpha;\", \"code\", 0, null); // 3\r\n code.addCodeLine(\" int b=beta;\", \"code\", 0, null); // 4\r\n code.addCodeLine(\" for each child of node{\", \"code\", 0, null); // 5\r\n code.addCodeLine(\" int score = -negascout (child, -b, -a);\",\r\n \"code\", 0, null); // 6\r\n code.addCodeLine(\r\n \" if (a < score < beta and child is not first child)\",\r\n \"code\", 0, null); // 7\r\n code.addCodeLine(\r\n \" score = -negascout (child, -beta, -score);\", \"code\",\r\n 0, null); // 8\r\n code.addCodeLine(\" a=max(a, score);\", \"code\", 0, null); // 9\r\n code.addCodeLine(\" if(a >= beta)\", \"code\", 0, null); // 10\r\n code.addCodeLine(\" return a;\", \"code\", 0, null); // 11\r\n code.addCodeLine(\" b = a+1;\", \"code\", 0, null); // 12\r\n code.addCodeLine(\" }\", \"code\", 0, null); // 13\r\n code.addCodeLine(\" return a;\", \"code\", 0, null); // 14\r\n code.addCodeLine(\"}\", \"code\", 0, null); // 15\r\n // Erklaert die aktuelle Codezeile\r\n\r\n explain = lang.newText(new Offset(0, 30, \"code\", \"SW\"), \"\", \"explain\",\r\n null, descriptionProperties);\r\n tSeen = lang.newText(new Offset(0, 90, \"code\", \"SW\"), \"\", \"tSeen\", null,\r\n counterTextProperties);\r\n tSeen.setText(\"betrachtete Knoten: 0\", null, null);\r\n tPruned = lang.newText(new Offset(0, 130, \"code\", \"SW\"), \"\", \"tPruned\",\r\n null, counterTextProperties);\r\n tPruned.setText(\"geprunte Knoten: 0\", null, null);\r\n tFailed = lang.newText(new Offset(0, 110, \"code\", \"SW\"), \"\", \"tFailed\",\r\n null, counterTextProperties);\r\n tFailed.setText(\"erneut untersuchte Knoten: 0\", null, null);\r\n pMap.put(\"explain\", explain);\r\n pMap.put(\"tSeen\", tSeen);\r\n pMap.put(\"tPruned\", tPruned);\r\n pMap.put(\"tFailed\", tFailed);\r\n\r\n rSeen = lang.newRect(new Offset(barLeft, -5, \"tSeen\", \"NE\"), new Offset(\r\n barLeft, 10, \"tSeen\", \"NE\"), \"rSeen0\", null, counterBarProperties);\r\n pMap.put(\"rSeen0\", rSeen);\r\n rPruned = lang.newRect(new Offset(barLeft, -5, \"tPruned\", \"NE\"),\r\n new Offset(barLeft, 10, \"tPruned\", \"NE\"), \"rPruned0\", null,\r\n counterBarProperties);\r\n pMap.put(\"rPruned0\", rPruned);\r\n rFailed = lang.newRect(new Offset(barLeft, -5, \"tFailed\", \"NE\"),\r\n new Offset(barLeft, 10, \"tFailed\", \"NE\"), \"rFailed0\", null,\r\n counterBarProperties);\r\n pMap.put(\"rFailed0\", rFailed);\r\n\r\n // Parst den Eingabebaum und zeichnet ihn\r\n Parser p = new Parser();\r\n root = p.parseText(treeText);\r\n showTree(root);\r\n nodesTotal = countNodes(root);\r\n }", "public void init() throws IOException\n\t{\n\t\tString pth = \"\";\n\t\tif(normal)\n\t\t{\n\t\t\tpth = \"Assets\\\\Art\\\\Tiles\\\\\";\n\t\t}\n\t\ttry\n\t\t{\n\t\t\ttexture = TextureLoader.getTexture(\"PNG\", ResourceLoader.getResourceAsStream(pth+path));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\ttexture = TextureLoader.getTexture(\"PNG\", ResourceLoader.getResourceAsStream(pth+\"default.png\"));\n\t\t}\n\n\t\theight = texture.getImageHeight();\n\t\twidth = texture.getImageWidth();\n\t\tRandom rand = new Random();\n\t\tthis.identity = rand.nextInt();\n\t\ta = new AudioController();\n\t\t\n\t}", "public void init()\n {\n MyRand.Init();\n // this class knows about how to load images from disk, and\n // stores them by name\n ImageManager imgr = new ImageManager(this);\n\n // --- this next section preloads all images.\n\n // the WoodPieceFactory object knows about the wood piece \n // images\n WoodPieceFactory.Initialize();\n // these are miscellaneous images\n imgr.addImage(\"PirateMousie.png\");\n imgr.addImage(\"PirateMousie2.png\");\n imgr.addImage(\"PirateMousie3.png\");\n imgr.addImage(\"PirateMousie4.png\");\n imgr.addImage(\"SushiWater.png\");\n imgr.addImage(\"Workbench3.png\");\n imgr.addImage(\"Blueprint.png\");\n\n // scroll images.\n String[] scrolls = {\"Blank\",\"Booched\",\"Poor\",\"Fine\",\"Good\",\"Excellent\",\"Incredible\"};\n int i;\n for (i = 0 ; i < scrolls.length ; ++i)\n {\n imgr.addImage(\"Scroll_\" + scrolls[i] + \".png\");\n }\n\n // wait until they load (pretty fast since they are in the same jar.\n while(!imgr.allLoaded())\n ;\n\n System.out.println(\"All Images Loaded\");\n\n // --- this section loads sounds\n SoundManager smgr = new SoundManager(this);\n smgr.addSound(\"piRat_Nom.wav\");\n // wait until sounds load.\n while(!smgr.allSoundsLoaded())\n ;\n\n System.out.println(\"All Sounds Loaded\");\n\n // the card layout is so that we can change from\n // menus to the game board \n setLayout(new CardLayout());\n\n // the control panel embodies and manages all the other\n // panels of the game, drawn as cards onto \n // the applet panel.\n ControlPanel cp = new ControlPanel(this);\n add(cp,\"ControlPanel\");\n }", "@Override\n \n \n public void initialize(URL url, ResourceBundle rb) {\n retornararImg();\n\n }", "public void initialize()\r\n {\r\n ceresImage = new Image(\"Ceres.png\");\r\n erisImage = new Image(\"Eris.png\");\r\n haumeaImage = new Image(\"Haumea.png\");\r\n makemakeImage = new Image(\"MakeMake.png\");\r\n plutoImage = new Image(\"Pluto.png\");\r\n }", "public static void load(){\r\n\t \ttry {\r\n\t \t\t// load and set all sprites\r\n\t\t\t\tsetBlueGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/blueGarbage.png\")));\r\n\t\t\t\tsetRank(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/rank.png\")));\r\n\t\t\t\tsetRedGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/redGarbage.png\")));\r\n\t\t\t\tsetYellowGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowGarbage.png\")));\r\n\t\t\t\tsetGreenGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/greenGarbage.png\")));\r\n\t\t\t\tsetBlueSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/blueSnakeBodyPart.png\")));\r\n\t\t\t\tsetRedSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/redSnakeBodyPart.png\")));\r\n\t\t\t\tsetYellowSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowSnakeBodyPart.png\")));\r\n\t\t\t\tsetGreenSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/greenSnakeBodyPart.png\")));\r\n\t\t\t\tsetHeart(ImageIO.read(classPath.getResourceAsStream(\"/images/heart.png\")));\r\n\t\t\t\tsetGameScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenBackground.png\")));\r\n\t\t\t\tsetGameScreenHeader(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenHeader.png\")));\r\n\t\t\t\tsetGameOver(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameOver.png\")));\r\n\t\t\t\tsetHitsOwnBody(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsOwnBody.png\")));\r\n\t\t\t\tsetHitsWall(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsWall.png\")));\r\n\t\t\t\tsetWrongColor(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/wrongColor.png\")));\r\n\t\t\t\tsetHelpScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpScreenBackground.png\")));\r\n\t\t\t \tsetWarningScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/warningScreenBackground.png\")));\r\n\t\t\t \tsetOkButton(ImageIO.read(classPath.getClass().getResource(\"/images/okButton.png\")));\r\n\t\t\t \tsetMenuScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/menuScreenBackground.png\")));\r\n\t\t\t\tsetStartButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/startButton.png\")));\r\n\t\t\t\tsetExitButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/exitButton.png\")));\r\n\t\t\t\tsetHelpButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpButton.png\")));\r\n\t\t\t\t\r\n\t \t} \r\n\t \tcatch (Exception e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getStackTrace(), \"Erro ao carregar imagens\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\r\n\t\t\t}\t\r\n \t\r\n \t}", "public ImageView loadTheMan()\n {\n try \n {\n Image theMan = new Image(new FileInputStream(\"theMan.jpg\"), 800, 800, true, true);\n ImageView theManView = new ImageView(theMan);\n theManView.setTranslateX(0);\n theManView.setTranslateY(-210);\n theManView.setScaleX(0.3);\n theManView.setScaleY(0.3);\n return theManView;\n } \n catch (FileNotFoundException ex) \n {\n Logger.getLogger(TycoonGUI.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n }", "public void startUpMain() {\r\n ImageIcon icon = new ImageIcon(\"./data/Untitled.png\");\r\n JLabel accountImage = new JLabel(icon);\r\n accountImage.setPreferredSize(new Dimension(938, 536));\r\n main.add(accountImage);\r\n playSound(\"./data/welcometolol.wav\");\r\n }", "private void initResources()\n {\n try\n {\n searchBackgroundImage = ImageIO.read(new File(IMAGES_DIR + \"logo.jpg\"));\n searchIcon = ImageIO.read(new File(IMAGES_DIR + \"search_icon.png\"));\n miniMenuAddImage = ImageIO.read(new File(IMAGES_DIR + \"addSmallIcon.png\"));\n miniMenuRemoveImage = ImageIO.read(new File(IMAGES_DIR + \"removeSmallIcon.png\"));\n updateMiniImage = ImageIO.read(new File(IMAGES_DIR + \"up.png\"));\n playButtonImage = ImageIO.read(new File(IMAGES_DIR + \"play_arrow.png\"));\n stopButtonImage = ImageIO.read(new File(IMAGES_DIR + \"stop_square.png\"));\n openFileImage = ImageIO.read(new File(IMAGES_DIR + \"open_icon.png\"));\n newFileImage = ImageIO.read(new File(IMAGES_DIR + \"new_file.png\"));\n settingsImage = ImageIO.read(new File(IMAGES_DIR + \"settings.png\"));\n spiderImage = ImageIO.read(new File(IMAGES_DIR + \"spider_icon.png\"));\n searchIconDark = ImageIO.read(new File(IMAGES_DIR + \"search_icon_dark.png\"));\n webIconImage = ImageIO.read(new File(IMAGES_DIR + \"web_icon.png\"));\n clipboardImage = ImageIO.read(new File(IMAGES_DIR + \"clipboard.png\"));\n colorIconImage = ImageIO.read(new File(IMAGES_DIR + \"color_icon.png\"));\n transitionSpinnerImage = IMAGES_DIR + \"loading.gif\";\n processingImage = IMAGES_DIR + \"processing.gif\";\n processingMiniImage = IMAGES_DIR + \"spinner.gif\";\n }\n \n catch(IOException e)\n {\n JOptionPane.showMessageDialog(null, \"[Error] Failed to load resource(s)\");\n }\n }", "private void loadWelcomeContent() {\n\t\twebEngine = startScreen.getEngine();\n\t\tFile jarPath = SX3Manager.getInstance().getInstallLocation();\n\t\tString sx3helpContentPath = jarPath.getParentFile().getAbsolutePath() + \"/welcomeContent/startPage.html\";\n\t\tFile f = new File(sx3helpContentPath);\n\t\twebEngine.load(f.toURI().toString());\n\t}", "@Override\n\tpublic void onLoadResources() {\n\t\tBitmapTextureAtlasTextureRegionFactory.setAssetBasePath(\"gfx/\");\t\t\n\t\tmBitmapParralaxTextureAtlas=new BitmapTextureAtlas(1024,1024);\n\t\tmBitmapTextureAtlas=new BitmapTextureAtlas(512, 512);\n\t\tmTextureRegion=BitmapTextureAtlasTextureRegionFactory.createFromAsset(mBitmapParralaxTextureAtlas, this, \"parallax_background_layer_back.png\", 0, 0);\n\t\tbananaRegion=BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(mBitmapTextureAtlas, this, \"banana_tiled.png\", 0, 0, 4,2);\n\t\tmEngine.getTextureManager().loadTextures(mBitmapParralaxTextureAtlas,mBitmapTextureAtlas);\n\t}", "private void initBackground() throws IOException{\n\t\tBufferedImage backgroundImage = ImageLoader.getBufferedImage(BACKGROUND_IMAGE_PATH);\n\t\tmainWindow.setBackgroundImage(backgroundImage);\n\t}", "public void loadIntroMessage() {\n\n\t\tmessageToDisplay.add(ArtemisCalendar.getMonthName(ArtemisCalendar.getCalendar().get(2)) + \", \"\n\t\t\t\t+ ArtemisCalendar.getCalendar().get(1) + \".\");\n\n\t\tmessageToDisplay.add(\"NASA have chosen you to help them deliver The Artemis Project successfully.\");\n\t\tmessageToDisplay.add(\"The Project aims to launch the first woman, and next man to the moon by \"\n\t\t\t\t+ ArtemisCalendar.getMonthName(ArtemisCalendar.getEndDate().get(2)) + \", \"\n\t\t\t\t+ ArtemisCalendar.getEndDate().get(1) + \".\");\n\t\tmessageToDisplay.add(\n\t\t\t\t\"In order to accomplish this lofty goal, you must work alongside other chosen companies to ensure 'All Systems are Go!' by launch-day.\");\n\t\tmessageToDisplay.add(\n\t\t\t\t\"Can you work together to research and fully develop all of the systems needed for a successful Lift-off?\");\n\t\tmessageToDisplay.add(\"...or will your team just be in it for personal gain?\");\n\t\tmessageToDisplay.add(\"You decide!\");\n\t\tGameLauncher.displayMessage();\n\t}", "@Override\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\tshowRequestDetails();\n\t\t// set images\n\t\tImage img = new Image(this.getClass().getResource(\"principalFrame.PNG\").toString());\n\t\timgBack.setImage(img);\n\t}", "public static void GameStart() throws IOException {\n\t\tJLabel label = new JLabel(new ImageIcon(\"title.png\"));\r\n\t\t\t\t \r\n\t\tJFrame title = new JFrame();\r\n\t\ttitle.add(label);\r\n\t\ttitle.getContentPane().add(label);\r\n\t\ttitle.pack();\r\n\t\ttitle.setLocationRelativeTo(null);\r\n\t\tlabel.repaint();\r\n\t\ttitle.setVisible(true); \r\n\t}", "public void init() {\n\t\t// Image init\n\t\tcharacter_static = MainClass.getImage(\"\\\\data\\\\character.png\");\n\t\tcharacter_static2 = MainClass.getImage(\"\\\\data\\\\character2.png\");\n\t\tcharacter_static3 = MainClass.getImage(\"\\\\data\\\\character3.png\");\n\t\t\n\t\tcharacterCover = MainClass.getImage(\"\\\\data\\\\cover.png\");\n\t\tcharacterJumped = MainClass.getImage(\"\\\\data\\\\jumped.png\");\n\t\t\n\t\t// Animated when static.\n\t\tthis.addFrame(character_static, 2000);\n\t\tthis.addFrame(character_static2, 50);\n\t\tthis.addFrame(character_static3, 100);\n\t\tthis.addFrame(character_static2, 50);\n\t\t\n\t\tthis.currentImage = super.getCurrentImage();\n\t}", "@Override\n\tpublic void loadImages() {\n\t\tsuper.setImage((new ImageIcon(\"pacpix/QuestionCandy.png\")).getImage());\t\n\t}", "public void loadBackground() {\n try {\n File file = new File(\"src/resources/fondo.png\");\n this.background = ImageIO.read(file);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "protected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.intro);\r\n\t\t\r\n\t\tImageView myImageView = (ImageView) findViewById(R.id.introImage);\r\n\t\tAnimation myFadeInAnimation = AnimationUtils.loadAnimation(this, R.anim.fadein);\r\n\t\t\r\n\t\tmyImageView.startAnimation(myFadeInAnimation);\r\n\t\t\r\n\t\tCountDownTimer introTimer = new CountDownTimer(10000, 1000) {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onTick(long millisUntilFinished) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onFinish() {\r\n\t\t\t\tstartActivity(new Intent(Intro.this, Login.class));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\tintroTimer.start();\r\n\t}", "public static void load() {\n\t\tspritesheet = new Spritesheet(\"src/de/kaffeeliebhaber/assets/pyxel/voland_spritesheet_new.png\", 32, 32);\n\t\tspritesheet.load();\n\t\t\n\t\t// load player\n\t\tAssetsLoader.loadPlayerAssets();\n\t\t\n\t\t// load crate\n\t\tAssetsLoader.loadCrates();\n\t\t\n\t\t// load item spritesheet \n\t\tspritesheetInventory = new Spritesheet(Config.ITEM_SPRITESHEET, Config.ITEM_SIZE, Config.ITEM_SIZE);\n\t\tspritesheetInventory.load();\n\t\t\n\t\t// load font \n\t\tloadFonts();\n\t\t\n\t\t// ui\n\t\timageUI = ImageLoader.loadImage(\"src/de/kaffeeliebhaber/assets/ui/ui.png\");\n\t\t\n\t\tAssetsLoader.loadInfoPaneAssets();\n\t\t\n\t\t// npc\n\t\tspritesheetNPC = new Spritesheet(\"src/de/kaffeeliebhaber/assets/AH_SpriteSheet_People1.png\", 16, 16);\n\t\tspritesheetNPC.load();\n\t\t\n\t\t// fox\n\t\tspritesheetNPCFox = new Spritesheet(\"src/de/kaffeeliebhaber/assets/imgs/72c68863962b7a6b5a9f5f5bcc5afb16.png\", 32, 32);\n\t\tspritesheetNPCFox.load();\n\n\t\t// *** LOAD NPCs\n\t\tAssetsLoader.loadFoxAssets();\n\t\t\n\t\tAssetsLoader.loadNPCs();\n\t\t\n\t\tspritesheetFemale = new Spritesheet(\"src/de/kaffeeliebhaber/assets/imgs/Female 01-1.png\", 32, 32);\n\t\tspritesheetFemale.load();\n\t}", "public static void closeIntro() {\n IIntroManager manager = PlatformUI.getWorkbench().getIntroManager();\n if (manager != null) {\n IIntroPart part = manager.getIntro();\n if (part != null) {\n manager.closeIntro(part);\n }\n }\n }", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void WarGameStart() throws IOException {\n\t\tJLabel label2 = new JLabel(new ImageIcon(\"WarTitle.png\"));\r\n\t\t\t\t \r\n\t\tJFrame title2 = new JFrame();\r\n\t\ttitle2.add(label2);\r\n\t\ttitle2.getContentPane().add(label2);\r\n\t\ttitle2.pack();\r\n\t\ttitle2.setLocationRelativeTo(null);\r\n\t\tlabel2.repaint();\r\n\t\ttitle2.setVisible(true);\r\n\t\t\r\n\t}", "public void render(GameContainer container, Graphics g) throws SlickException {\r\n\t\tg.drawImage(introImage, introImagePosX, introImagePosY);\r\n\t\tif (waitForIntro > 2000) {\r\n\t\t\tg.drawString(\"Press ESC to skip.\", container.getWidth() / 2, 900);\r\n\t\t}\r\n\r\n\t}", "public void init() throws MalformedURLException {\n Parent root = loadHierarchy(\"src/main/java/com/mycompany/propertytycoon/gui/mainmenu/homepage.fxml\");\n Scene scene = new Scene(root);\n\n currStage.setTitle(\"Property Tycoon\");\n currStage.setScene(scene);\n URL url = new File(\"src/main/java/resources/img/PTBarLogo.png\").toURI().toURL();\n Image i = new Image(url.toString());\n currStage.getIcons().add(i);\n currStage.show();\n }", "public Scene introScene() {\n\t\tipField = new TextField(\"127.0.0.1\");\n\t\tportNum = new TextField(\"5555\");\n\t\tintroHbox = new HBox(30,ipField, portNum);\n\t\tintroHbox.setLayoutX(150);\n\t\tintroHbox.setLayoutY(200);\n\t\t\n\t\t// login Button\n\t\tloginButton = new Button(\"Next\");\n\t\tloginButton.setLayoutX(150);\n\t\tloginButton.setLayoutY(240);\n\t\tloginButton.setOnAction(toTheInstr);\n\t\t\n\t\t// intro Pane with background\n\t\tintroPane = new Pane(introHbox, loginButton);\n\t\tImage image = new Image(\"background_intro.jpg\");\n\t\tBackgroundImage backgroundImage = new BackgroundImage(image, BackgroundRepeat.NO_REPEAT,\n\t\t\t\t\t\t\t\t\t\t\t\tBackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT, new BackgroundSize(1.0, 1.0, true, true, false, false));\n\t\tBackground background = new Background(backgroundImage);\n\t\tintroPane.setBackground(background);\n\t\t\n\t\treturn new Scene(introPane,600,600);\n\t}", "private HTMLElement generateIntroImage(IntroImage element, int indentLevel) {\n \t\tHTMLElement imageElement = generateImageElement(element.getSrc(),\n \t\t\t\tindentLevel);\n \t\tif (element.getId() != null)\n \t\t\timageElement.addAttribute(IIntroHTMLConstants.ATTRIBUTE_ID, element\n \t\t\t\t\t.getId());\n \t\treturn imageElement;\n \t}", "public void update(GameContainer container, int delta) throws SlickException, FileNotFoundException {\r\n\t\t/*\r\n\t\t * Check if the intro was skipped\r\n\t\t */\r\n\t\tif (container.getInput().isKeyPressed(Input.KEY_ESCAPE)) {\r\n\t\t\tintroImagePosY = 0;\r\n\t\t\twaitForIntro = 8000;\r\n\t\t}\r\n\t\t/*\r\n\t\t * Make the first intro image slide in from bottom to top\r\n\t\t */\r\n\t\tif (introImagePosY > 0) {\r\n\t\t\tintroImagePosY -= 3;\r\n\t\t} else {\r\n\t\t\t/*\r\n\t\t\t * If intro has finished playing or was skipped set the bool to true\r\n\t\t\t */\r\n\t\t\tif (waitForIntro > 8000) {\r\n\t\t\t\t// show main menu\r\n\t\t\t\tgame.setMainMenu(new MainMenu(game));\r\n\t\t\t\tgame.setIntro(true);\r\n\t\t\t\t/*\r\n\t\t\t\t * If the first intro image has finished playing show the title image\r\n\t\t\t\t */\r\n\t\t\t} else if (waitForIntro > 2000) {\r\n\t\t\t\twaitForIntro += delta;\r\n\t\t\t\tintroImage = new Image(\"res/images/Main_Menu.png\");\r\n\t\t\t\t/*\r\n\t\t\t\t * Otherwise just count the time\r\n\t\t\t\t */\r\n\t\t\t} else {\r\n\t\t\t\twaitForIntro += delta;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setup() {\n\n\t\t// example of loading an image file - edit to suit your project\n\t\ttry {\n\t\t\tbackground = ImageIO.read(new File(\"angrybirds.jpg\"));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// your code here\n\t\t\n\t\t\n\t}", "public ImageView loadBoot()\n {\n try \n {\n Image boot = new Image(new FileInputStream(\"boot.png\"), 800, 800, true, true);\n ImageView bootView = new ImageView(boot);\n bootView.setTranslateX(195);\n bootView.setTranslateY(390);\n bootView.setScaleX(0.05);\n bootView.setScaleY(0.05);\n return bootView;\n } \n catch (FileNotFoundException ex) \n {\n Logger.getLogger(TycoonGUI.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n }", "private void makeHeaderAndIntroTexts()\r\n\t{\r\n\t\t// Header\r\n\t\tTextProperties headerProps = new TextProperties();\r\n\t\theaderProps.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(Font.SANS_SERIF, Font.BOLD, 25));\r\n\t\theader = lang.newText(new Coordinates(20, 30), ALGORITHM_NAME, \"header\", null, headerProps);\r\n\t\t\r\n\t // Intro texts\r\n\t TextProperties introProperties = new TextProperties();\r\n\t introProperties.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(Font.SANS_SERIF, Font.PLAIN, 20));\r\n\t \r\n\t RectProperties rectProps = new RectProperties();\r\n\t rectProps.set(AnimationPropertiesKeys.FILLED_PROPERTY, true);\r\n\t rectProps.set(AnimationPropertiesKeys.FILL_PROPERTY, Color.WHITE);\r\n\t rectProps.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 2);\r\n\t @SuppressWarnings(\"unused\")\r\n\t\tRect hRect = lang.newRect(new Offset(-5, -5, \"header\", AnimalScript.DIRECTION_NW), new Offset(5, 5, \"header\", AnimalScript.DIRECTION_SE), \"hRect\", null, rectProps);\r\n\t \r\n\t String intro1Text = \"- Connects all points within linking length into one group\";\r\n\t String intro2Text = \"- Goes through 1-3 iterations. Each with a smaller linking length and a different color\";\r\n\t String intro3Text = \"- To aid understanding, the linking length will be visualized with a circle around the current point\";\r\n\t String searchText = useKDTreeToSearch ? \"KDTree for Nearest Neighbour Search [O(2N^0.5) in 2D per search]\" : \"Linear Search for Nearest Neighbour Search [O(2N) in 2D per search]\";\r\n\t String using = \"Using:\";\r\n\t \r\n\t intro1 = lang.newText(new Offset(0, 10, \"header\", AnimalScript.DIRECTION_SW), intro1Text, \"intro1\", null, introProperties);\r\n\t intro2 = lang.newText(new Offset(0, 0, \"intro1\", AnimalScript.DIRECTION_SW), intro2Text, \"intro2\", null, introProperties);\r\n\t intro3 = lang.newText(new Offset(0, 0, \"intro2\", AnimalScript.DIRECTION_SW), intro3Text, \"intro3\", null, introProperties);\r\n\t \r\n\t usingIntro = lang.newText(new Offset(0, 30, \"intro3\", AnimalScript.DIRECTION_SW), using, \"usingIntro\", null, introProperties);\r\n\t intro4 = lang.newText(new Offset(10, 0, \"usingIntro\", AnimalScript.DIRECTION_SW), \"Linking length = \"+distance, \"intro4\", null, introProperties);\r\n\t intro5 = lang.newText(new Offset(0, 0, \"intro4\", AnimalScript.DIRECTION_SW), searchText, \"intro5\", null, introProperties);\r\n\t intro6 = lang.newText(new Offset(0, 0, \"intro5\", AnimalScript.DIRECTION_SW), \"Size: \"+width+\" x \"+height+\" with ~\"+amountOfStars+\" points\", \"intro6\", null, introProperties);\r\n\t intro7 = lang.newText(new Offset(0, 0, \"intro6\", AnimalScript.DIRECTION_SW), \"Showing \"+amountOfStepsShown+\" steps in first iteration, half of that afterwards\", \"intro7\", null, introProperties);\r\n\t intro8 = lang.newText(new Offset(0, 0, \"intro7\", AnimalScript.DIRECTION_SW), \"Iterations: \"+amountOfIterations, \"intro8\", null, introProperties);\r\n\t}", "private void loadBackground() {\n RelativeLayout thisRL = (RelativeLayout) findViewById(R.id.relativeLayout);\n\n // randomly chooses a background image for the splash screen\n int r = new Random().nextInt(NUM_BACKGROUNDS);\n switch (r) {\n case 0:\n thisRL.setBackgroundResource(R.drawable.splash_cliff);\n break;\n case 1:\n thisRL.setBackgroundResource(R.drawable.splash_notebook);\n break;\n case 2:\n thisRL.setBackgroundResource(R.drawable.splash_map);\n break;\n default:\n thisRL.setBackgroundResource(R.drawable.splash_notebook);\n }\n }", "private void loadSpritesheet() {\n\t\tobjects = new SpriteSheet(\"res\\\\pong.png\");\n\t\tobjects_hires = new SpriteSheet(\"res\\\\ponghires.png\",\n\t\t\t\tSpriteSheet.LINEAR);\n\t}", "public void loadImage() {\n\t\tif (images.containsKey(name)) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tString fullPath = BASE_PATH + this.sprite_sheet;\n\t\t\tFile imageFile = new File(fullPath);\n\t\t\tImage initialImage = ImageIO.read(imageFile);\n\t\t\tImage scaledImage = initialImage.getScaledInstance(\n\t\t\t\t\tMainPanel.TILE_SIZE, MainPanel.TILE_SIZE, 0);\n\n\t\t\tBufferedImage image = new BufferedImage(scaledImage.getWidth(null),\n\t\t\t\t\tscaledImage.getHeight(null), BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D imageGraphicsContext = image.createGraphics();\n\t\t\timageGraphicsContext.drawImage(scaledImage, 0, 0, null);\n\t\t\timageGraphicsContext.dispose();\n\t\t\timages.put(name, image);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Could not load image for\" + this.name);\n\t\t}\n\t}", "public void loadResources();", "private void initTextures() {\n\n\t\ttextureManager.loadTexture(\"PNG\", \"menu_bg\", \"res/menu_bg.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"mountain_bg\", \"res/mountain_bg.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"ball\", \"res/ball_sm.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"inner_bg1\", \"res/inner_bg1.png\");\r\n\t\ttextureManager.loadSheet(\"stand_still\", \"res/stand_still.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"testAnim\", \"res/testAnim.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"tileSet\", \"res/tileset_small.png\", 32, 32);\n\t\ttextureManager.loadSheet(\"walking\", \"res/walking.png\", 32, 64);\r\n\t\ttextureManager.loadSheet(\"jumping\", \"res/jumping.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"slime_still\", \"res/slime_still_small.png\", 32, 32);\n\t}", "public void inicializar(String name,Pane paneContenido) {\n\t\t\n\t\tthis.paneContenido = paneContenido;\n\t\tstage=new Stage();\n\t\tstage.setScene(new Scene(paneContenido));\n\t\tstage.setTitle(name);\n\t\tnodos=new HashMap<>();\n\t\tmodificarBanner(\"views/imagenes/banner.jpg\");\n\t}", "private void heroStandingTextureLoad() {\n standLeft = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_left.png\", Texture.class), 1, 1, 16, 21);\n standBack = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_back.png\", Texture.class), 1, 1, 16, 21);\n standFront = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_front.png\", Texture.class), 1, 1, 17, 22);\n standRight = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_left.png\", Texture.class), 1, 1, 16, 21);\n }", "@Override\n\tpublic void createScene()\n\t\n\t{\n\t loading = new Sprite (0,0,resourceManager.loadingRegion,vbo); // тупо ставим спрайт с картинкой\n\t\tattachChild(loading);\n\t}", "public void renderAboutManager()\n {\n background(background);\n t = millis();\n t /= 200.0f;\n shift = -150;\n //imageMode(CENTER);\n image(createdBy,width/2-createdBy.width/2+40,20);\n //image(info,width/2-info.width/2+40,450);\n for(int i = 0; i < img.length; i++)\n {\n image(img[i],width/2+shift,height/5+sin(t-i*0.4f-1)*4);\n shift += img[i].width;\n }\n imageMode(CORNERS);\n }", "public Tela_Livro() {\n initComponents();\n this.setTitle(\"Sistema de Bibliotecas Columba - Admnistrador\"); \n URL iconURL = getClass().getResource(\"/org/me/myimageapp/resources/lib_icon.png\");\n // iconURL is null when not found\n ImageIcon icon = new ImageIcon(iconURL);\n this.setIconImage(icon.getImage());\n }", "private void importImages() {\n\n\t\t// Create array of the images. Each image pixel map contains\n\t\t// multiple images of the animate at different time steps\n\n\t\t// Eclipse will look for <path/to/project>/bin/<relative path specified>\n\t\tString img_file_base = \"Game_Sprites/\";\n\t\tString ext = \".png\";\n\n\t\t// Load background\n\t\tbackground = createImage(img_file_base + \"Underwater\" + ext);\n\t}", "public MainSlot_JPanel(){\n //load background image\n try {\n Image img = ImageIO.read(getClass()\n .getResource(\"./graphics/slot_BackGround.jpg\"));\n backgroundImg = img\n .getScaledInstance(800,580,java.awt.Image.SCALE_SMOOTH );\n } catch(IOException e) {\n e.printStackTrace();\n }\n }", "private void initialize() {\n setImageResource(R.drawable.content);\n }", "private void initialize() {\r\n\t\tstartScreenTexture = new Texture(Gdx.files.internal(\"death.png\"));\r\n\t\tMusicSound.deathMusic.play();\r\n\r\n\t}", "@Override\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\t\n\t\tAnimation an=new Animation();\n\t\t\n\t\tan.start();\n\t\t\n\t}", "private void onLoad(Slug slug) {\n ImageView view = new ImageView(slugImage);\n addEntity(slug, view);\n squares.getChildren().add(view);\n }", "private void initialize() {\n\t\tthis.setSize(293, 155);\n\t\tthis.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/abdo.jpg\")));\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"Désincription d'un étudiant\");\n\t}", "@Override\n public void loadTexture() {\n\n }", "private static void initResources() {\n\t\tString[] res = new String[4];\r\n\t\tres[0] = \"res/entity/spaceshipv1.png\";\r\n\t\tres[1] = \"res/entity/prob.png\";\r\n\t\tres[2] = \"res/dot.png\";\r\n\t\tres[3] = \"res/entity/spaceshipv2.png\";\r\n\t\tSResLoader.addSpriteArray(res);\r\n\t}", "private void ini_Sprites()\r\n\t{\r\n\t\tLogger.DEBUG(\"ini_Sprites\");\r\n\t\tResourceCache.LoadSprites(false);\r\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n// Image image = new Image(\"/Icons/communication.jpg\");\r\n// ImageView iv = new ImageView();\r\n// imgA.setImage(image);\r\n }", "@Override\n public void onLoadResources() {\n }", "private void onLoad(Zombie zombie) {\n ImageView view = new ImageView(zombieImage);\n addEntity(zombie, view);\n squares.getChildren().add(view);\n }", "private static ImageResource initImageResource() {\n\t\tImageResource imageResource = new ImageResource(Configuration.SUPERVISOR_LOGGER);\n\t\t\n\t\timageResource.addResource(ImageTypeAWMS.VERTICAL_BAR.name(), imagePath + \"blue_vertical_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.HORIZONTAL_BAR.name(), imagePath + \"blue_horizontal_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.WELCOME.name(), imagePath + \"welcome.png\");\n\t\t\n\t\t\n\t\treturn imageResource;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void initGui() {\n\t\tthis.viewportTexture = new DynamicTexture(256, 256);\n\t\tthis.field_110351_G = this.mc.getTextureManager().getDynamicTextureLocation(\"background\", this.viewportTexture);\n\t\tCalendar var1 = Calendar.getInstance();\n\t\tvar1.setTime(new Date());\n\n\t\tif (var1.get(2) + 1 == 11 && var1.get(5) == 9) {\n\t\t\tthis.splashText = \"Happy birthday, ez!\";\n\t\t} else if (var1.get(2) + 1 == 6 && var1.get(5) == 1) {\n\t\t\tthis.splashText = \"Happy birthday, Notch!\";\n\t\t} else if (var1.get(2) + 1 == 12 && var1.get(5) == 24) {\n\t\t\tthis.splashText = \"Merry X-mas!\";\n\t\t} else if (var1.get(2) + 1 == 1 && var1.get(5) == 1) {\n\t\t\tthis.splashText = \"Happy new year!\";\n\t\t} else if (var1.get(2) + 1 == 10 && var1.get(5) == 31) {\n\t\t\tthis.splashText = \"OOoooOOOoooo! Spooky!\";\n\t\t} else {\n\t\t\tthis.splashText = \"\";\n\t\t}\n\n\t\tboolean var2 = true;\n\t\tint var3 = this.height / 4 + 48;\n\n\t\tthis.addSingleplayerMultiplayerButtons();\n\n\t\tthis.buttonList.add(new GuiButton(0, this.width - 120, 3, 60, 20, I18n.format(\"menu.options\", new Object[0])));\n\t\tthis.buttonList.add(new GuiButton(4, this.width - 54, 3, 50, 20, I18n.format(\"menu.quit\", new Object[0])));\n\n\t\t// Remove annoying language button\n\t\t// this.buttonList.add(new GuiButtonLanguage(5, this.width / 2 - 124,\n\t\t// var3 + 72 + 12));\n\n\t\tObject var4 = this.field_104025_t;\n\n\t\tsynchronized (this.field_104025_t) {\n\t\t\tthis.field_92023_s = this.fontRendererObj.getStringWidth(this.field_92025_p);\n\t\t\tthis.field_92024_r = this.fontRendererObj.getStringWidth(this.field_146972_A);\n\t\t\tint var5 = Math.max(this.field_92023_s, this.field_92024_r);\n\t\t\tthis.field_92022_t = (this.width - var5) / 2;\n\t\t\tthis.field_92021_u = ((GuiButton) this.buttonList.get(0)).yPosition - 24;\n\t\t\tthis.field_92020_v = this.field_92022_t + var5;\n\t\t\tthis.field_92019_w = this.field_92021_u + 24;\n\t\t}\n\t}", "public void init() {\n\t\tbg = new MyImg(\"gamepage/endgame/bg.png\");\n\t\tbut0 = new MyImg(\"paygame/qdbut.png\");\n\t\tbut1 = new MyImg(\"paygame/qxbut.png\");\n\t}", "public void initialize2() {\n\t\txHero1 = 10;\n\t\tinsecondmode=true;\n\t\tImageIcon bg = new ImageIcon(\"bg for one player.png\");\n\t\tBackground = (bg.getImage().getScaledInstance(bg.getIconWidth(), bg.getIconHeight(), Image.SCALE_DEFAULT));\n\t\tImageIcon[] in1 = new ImageIcon[12];\n\t\tin1[0] = new ImageIcon(\"\");\n\t\tin1[1] = new ImageIcon(\"\");\n\t\tin1[2] = new ImageIcon(\"\");\n\t\tin1[3] = new ImageIcon(\"\");\n\t\tin1[4] = new ImageIcon(\"\");\n\t\tin1[5] = new ImageIcon(\"\");\n\t\tin1[6] = new ImageIcon(\"\");\n\t\tin1[7] = new ImageIcon(\"\");\n\t\tin1[8] = new ImageIcon(\"\");\n\t\tin1[9] = new ImageIcon(\"\");\n\t\tin1[10] = new ImageIcon(\"\");\n\t\tin1[11] = new ImageIcon(\"\");\n\t\tImageIcon[] in2 = new ImageIcon[12];\n\t\tin2[0] = new ImageIcon(\"Hero02.png\");\n\t\tin2[1] = new ImageIcon(\"Hero02inj.png\");\n\t\tin2[2] = new ImageIcon(\"Hero02inj.png\");\n\t\tin2[3] = new ImageIcon(\"Hero02inj.png\");\n\t\tin2[4] = new ImageIcon(\"Hero02inj.png\");\n\t\tin2[5] = new ImageIcon(\"Hero02inj.png\");\n\t\tin2[6] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[7] = new ImageIcon(\"Hero02 Attack02.png\");\n\t\tin2[8] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[9] = new ImageIcon(\"Hero02 Defence.png\");\n\t\tin2[10] = new ImageIcon(\"Hero02 Attack01.png\");\n\t\tin2[11] = new ImageIcon(\"Hero02 Die.png\");\n\t\tImageIcon[] inBullet1 = new ImageIcon[3];\n\t\tinBullet1[0] = new ImageIcon(\"\");\n\t\tinBullet1[1] = new ImageIcon(\"\");\n\t\tinBullet1[2] = new ImageIcon(\"\");\n\t\tImageIcon[] inBullet2 = new ImageIcon[5];\n\t\tinBullet2[0] = new ImageIcon(\"20.png\");\n\t\tinBullet2[1]= new ImageIcon(\"50.png\");\n\t\tinBullet2[2]= new ImageIcon(\"100.png\");\n\t\tinBullet2[3]= new ImageIcon(\"200.png\");\n\t\tinBullet2[4]= new ImageIcon(\"500.png\");\n\t\tcannotdefend(1);\n\t\tHero1.settemplate(in2);\n\t\tHero2.settemplate(in1);\n\t\tBullet1.settemplate(inBullet2);\n\t\tBullet2.settemplate(inBullet1);\n\t\tHero1.setstatus(0);\n\t\tHero2.setstatus(0);\n\t}", "private void loadBackground() {\n\t\ttry {\n\t\t\timgBackground[0] = ImageIO.read(new File(System.getProperty(\"user.dir\")+\"/assets/Background1.jpg\")); // attempts to load the three\n\t\t\timgBackground[1] = ImageIO.read(new File(System.getProperty(\"user.dir\")+\"/assets/Background2.jpg\")); // default backgrounds from the\n\t\t\timgBackground[2] = ImageIO.read(new File(System.getProperty(\"user.dir\")+\"/assets/Background3.jpg\")); // assets folder\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public IntroFrame() throws IntroException {\r\n super(ResourceController.getMessage(\"frame.intro.title\"));\r\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n setIconImage(EditorIcon.createEditorIcon());\r\n\r\n // Create and set up the content pane.\r\n JComponent newContentPane = new ProgressBar();\r\n newContentPane.setOpaque(true); \r\n this.setContentPane(newContentPane);\r\n\r\n Dimension dim = getToolkit().getScreenSize();\r\n Dimension abounds = getPreferredSize();\r\n this.setLocation((dim.width - abounds.width) / 2, (dim.height - abounds.height) / 2);\r\n this.setResizable(false);\r\n \r\n // Display the window.\r\n Runnable runner = new FrameShower(this);\r\n try {\r\n EventQueue.invokeAndWait(runner);\r\n } catch (Exception ex) {\r\n Log.warn(ex);\r\n }\r\n\r\n ProgressBar.getTimer().start();\r\n ProgressBar.getTask().go();\r\n\r\n if (ProgressBar.getTask().isCanceled())\r\n throw new IntroException();\r\n }", "private void createJPanelWithManual() {\r\n URL imageURL = getClass().getResource(manualPath);\r\n\r\n Image image = null;\r\n try {\r\n image = ImageIO.read(imageURL);\r\n } catch (IOException e) {\r\n new IOExceptionCall().getCall();\r\n }\r\n\r\n //scaling the image containing manual.jpg to width and height of panel and converting it to ImageIcon for its\r\n //setting to JLabel\r\n Image image2 = image.getScaledInstance(panel.getWidth(), panel.getHeight(), Image.SCALE_SMOOTH);\r\n ImageIcon imageIcon = new ImageIcon(image2);\r\n\r\n label.setIcon(imageIcon);\r\n panel.add(label, BorderLayout.CENTER);\r\n\r\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n super.initialize();\n this.__intialiseMode(Gamemode.PRACTICE);\n this.__intialiseMode(Gamemode.RANKED);\n\n setAvatarImage(rankedAvatar);\n\n this.backButton.addEventHandler(MouseEvent.MOUSE_CLICKED, _event -> MainApp.setRoot(Views.MENU));\n }", "public void initGui()\r\n\t{\r\n\t\tthis.viewportTexture = new DynamicTexture(256, 256);\r\n\t\tthis.backgroundTexture = this.mc.getTextureManager().getDynamicTextureLocation(\"background\", this.viewportTexture);\r\n\t\tthis.widthCopyright = this.fontRenderer.getStringWidth(\"Copyright Mojang AB. Do not distribute!\");\r\n\t\tthis.widthCopyrightRest = this.width - this.widthCopyright - 2;\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tcalendar.setTime(new Date());\r\n\r\n\t\tif (calendar.get(2) + 1 == 12 && calendar.get(5) == 24)\r\n\t\t{\r\n\t\t\tthis.splashText = \"Merry X-mas!\";\r\n\t\t}\r\n\t\telse if (calendar.get(2) + 1 == 1 && calendar.get(5) == 1)\r\n\t\t{\r\n\t\t\tthis.splashText = \"Happy new year!\";\r\n\t\t}\r\n\t\telse if (calendar.get(2) + 1 == 10 && calendar.get(5) == 31)\r\n\t\t{\r\n\t\t\tthis.splashText = \"OOoooOOOoooo! Spooky!\";\r\n\t\t}\r\n\r\n\t\tint i = 24;\r\n\t\tint j = this.height / 4 + 48;\r\n\r\n\t\tif (this.mc.isDemo())\r\n\t\t{\r\n\t\t\tthis.addDemoButtons(j, 24);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthis.addSingleplayerMultiplayerButtons(j, 24);\r\n\t\t}\r\n\r\n\t\tthis.buttonList.add(new GuiButton(0, this.width / 2 - 100, j + 72 + 12, 98, 20, I18n.format(\"menu.options\")));\r\n\t\tthis.buttonList.add(new GuiButton(4, this.width / 2 + 2, j + 72 + 12, 98, 20, I18n.format(\"menu.quit\")));\r\n\r\n\t\tsynchronized (this.threadLock)\r\n\t\t{\r\n\t\t\tthis.openGLWarning1Width = this.fontRenderer.getStringWidth(this.openGLWarning1);\r\n\t\t\tthis.openGLWarning2Width = this.fontRenderer.getStringWidth(this.openGLWarning2);\r\n\t\t\tint k = Math.max(this.openGLWarning1Width, this.openGLWarning2Width);\r\n\t\t\tthis.openGLWarningX1 = (this.width - k) / 2;\r\n\t\t\tthis.openGLWarningY1 = (this.buttonList.get(0)).y - 24;\r\n\t\t\tthis.openGLWarningX2 = this.openGLWarningX1 + k;\r\n\t\t\tthis.openGLWarningY2 = this.openGLWarningY1 + 24;\r\n\t\t}\r\n\r\n\t\tthis.mc.setConnectedToRealms(false);\r\n\r\n\t\tif (Minecraft.getMinecraft().gameSettings.getOptionOrdinalValue(GameSettings.Options.REALMS_NOTIFICATIONS) && !this.hasCheckedForRealmsNotification)\r\n\t\t{\r\n\t\t\tRealmsBridge realmsbridge = new RealmsBridge();\r\n\t\t\tthis.realmsNotification = realmsbridge.getNotificationScreen(this);\r\n\t\t\tthis.hasCheckedForRealmsNotification = true;\r\n\t\t}\r\n\r\n\t\tif (this.areRealmsNotificationsEnabled())\r\n\t\t{\r\n\t\t\tthis.realmsNotification.setGuiSize(this.width, this.height);\r\n\t\t\tthis.realmsNotification.initGui();\r\n\t\t}\r\n\t}", "public void intro ()\n {\n\tprintSlow (\"\\n\\nWelcome back to Hogwarts, the wonderful school of Witchcraft and Wizardry!\");\n\tprintSlow (\"As you may know already, Harry my boy, this is your third year at the school, and much is expected of you.\");\n\tprintSlow (\"... It seems that the school year has begun, go down to the main hall to hear what Professor Dumbledore \\nhas to say about the upcoming year!\\n\");\n\tprintSlow (\"~You start to walk through the halls, unsure of what to expect. Not much has changed, except for the new year of students approaching in boats.\\nEventually, you make it to the great hall, just in time for Dumbledore's speech.~\");\n\tprintSlow (\"\\nHello Students of Hogwarts. I am Professor Dumbledore, your headmaster here at Hogwarts.\");\n\tprintSlow (\"As some of you may know, it is a very dark time here at Hogwarts, and there are many dark forces among us.\");\n\tprintSlow (\"Should any students detect any such malicious sources, it would be in your best interest to \\ninform me, or any of my fellow teachers, and we will do our best to uphold the saftey we pride ourselves with here at Hogwarts.\\n\\n\");\n\n }", "@Override\r\n public void init() throws Exception {\r\n super.init();\r\n log.debug(\"init\");\r\n\r\n /*\r\n ImageView splash = new ImageView(new Image(getClass().getResourceAsStream(\"/images/splash.png\")));\r\n\r\n loadProgress = new ProgressBar();\r\n loadProgress.setPrefWidth(SPLASH_WIDTH - 20);\r\n //progressText = new Label(\"Will find friends for peanuts . . .\");\r\n progressText = new Label(\"\");\r\n splashLayout = new VBox();\r\n //splashLayout.getChildren().addAll(splash, loadProgress, progressText);\r\n splashLayout.getChildren().addAll(splash, progressText, loadProgress);\r\n progressText.setAlignment(Pos.CENTER);\r\n\r\n// splashLayout.setStyle(\r\n// \"-fx-padding: 5; \" +\r\n// \"-fx-background-color: cornsilk; \" +\r\n// \"-fx-border-width:5; \" +\r\n// \"-fx-border-color: \" +\r\n// \"linear-gradient(\" +\r\n// \"to bottom, \" +\r\n// \"chocolate, \" +\r\n// \"derive(chocolate, 50%)\" +\r\n// \");\"\r\n// );\r\n\r\n //splashLayout.setStyle(\"-fx-padding: 5; -fx-border-width:5;\");\r\n splashLayout.getStylesheets().add(BootstrapFX.bootstrapFXStylesheet());\r\n splashLayout.setEffect(new DropShadow());\r\n */\r\n }", "public void buildInitialScene() {\n\t\t\n\t\t//Creation image background\n\t\tfinal String BACKGROUND_PATH = \"src/assets/img/temp_background.png\";\n\t\tthis.background = new GameImage(BACKGROUND_PATH);\n\n\t\t//Creation image Game Over\n\t\tfinal String GAME_OVER_PATH = \"src/assets/img/erro.png\";\n\t\tthis.errorScene = new Sprite(GAME_OVER_PATH);\n\n\t\t//Game over sprite center position\n\t\tthis.errorScene.x = spos.calculatePosition(WindowConstants.WIDTH, 2, this.errorScene, 2);\n\t\tthis.errorScene.y = spos.calculatePosition(WindowConstants.HEIGHT, 2, this.errorScene, 2);\n\t}", "private void loadImages(){\n try{\n System.out.println(System.getProperty(\"user.dir\"));\n\n t1img = read(new File(\"resources/tank1.png\"));\n t2img = read(new File(\"resources/tank1.png\"));\n backgroundImg = read(new File(\"resources/background.jpg\"));\n wall1 = read(new File(\"resources/Wall1.gif\"));\n wall2 = read(new File(\"resources/Wall2.gif\"));\n heart = resize(read(new File(\"resources/Hearts/basic/heart.png\")), 35,35);\n heart2 = resize(read( new File(\"resources/Hearts/basic/heart.png\")), 25,25);\n bullet1 = read(new File(\"resources/bullet1.png\"));\n bullet2 = read(new File(\"resources/bullet2.png\"));\n\n }\n catch(IOException e){\n System.out.println(e.getMessage());\n }\n }", "public void load(String path) {\n try {\n texId = new TextureId(path);\n BufferedImage image = ImageIO.read(new FileInputStream(\"resources\" + texId.getPath()));\n createImage(image);\n } catch (Exception e) {\n e.printStackTrace();\n unload();\n }\n }", "protected abstract Image loadImage();", "public static void intro() {\n System.out.println(\"HI! Welcome to the virus simulation! This is a placeholder message.\");\r\n\r\n }", "public void init() {\n Assets.init();\n titleAnimation = new Animation(Assets.titleMoving, 180);\n startButton = new MenuButton((game.getWidth()/2 - 100), 220, 100, 200, MenuButtonType.START, this);\n highscoreButton = new MenuButton((game.getWidth()/2 - 100), 370, 100, 200, MenuButtonType.HIGHSCORE, this);\n backButton = new NavigationButton(37, 720, 120, 60, NavigationButton.NavButtonType.BACK, this.getGame());\n tutorialButton = new MenuButton((game.getWidth()/2 - 100), 520, 100, 200, MenuButtonType.INSTRUCTIONS, this);\n \n showTutorial = false;\n }", "private void loadAnimations() {\n loadImages(imagesFront, \"F\");\n loadImages(imagesLeft, \"L\");\n loadImages(imagesRight, \"R\");\n loadImages(imagesBack, \"B\");\n }", "public void showSplashScreen() {\r\n\r\n JPanel content = (JPanel) getContentPane();\r\n content.setBackground(Color.white);\r\n\r\n // setting the window's properties\r\n \r\n int width = 700;\r\n int height = 438;\r\n Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();\r\n int x = (screen.width - width) / 2;\r\n int y = (screen.height - height) / 2;\r\n setBounds(x, y, width, height);\r\n\r\n // build the splash screen using an image \r\n \r\n JLabel gifImage = new JLabel(new ImageIcon(this.getClass().getResource(\"/splash.gif\")));\r\n content.add(gifImage, BorderLayout.CENTER);\r\n\r\n // display it\r\n setVisible(true);\r\n\r\n new resourceLoader().execute();\r\n }", "public void loadImages() {\n\t\tpigsty = new ImageIcon(\"images/property/pigsty.png\");\n\t}", "private ImageView setStartMenuImage() {\r\n Image image = null;\r\n try {\r\n image = new Image(new FileInputStream(\"images/icon1.png\"));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n ImageView imageView = new ImageView(image);\r\n imageView.setFitHeight(HEIGHT / 4);\r\n imageView.setPreserveRatio(true);\r\n return imageView;\r\n }", "public abstract void preloadContent(AssetManager manager);", "public void start() throws InterruptedException {\t\t\r\n\t\t\r\n\t\tIntroPanel intro = new IntroPanel(this);\r\n\t\tgameFrame.add(intro);\r\n\t\tgameFrame.pack();\r\n\t\tgameFrame.setVisible(true);\r\n\t\tgameFrame.repaint();\r\n\t\t\r\n\t\tTimeUnit.SECONDS.sleep(9);\r\n\t\t\r\n\t\tintro.setVisible(false);\r\n\t\tskipIntro();\r\n\t\t\r\n\t}", "private void loadHealthBar()\r\n\t{\r\n \tTextureRegion [][] tempFrames;\r\n \tTextureRegion [] frames;\r\n\t\tTexture appearance = new Texture(\"img/hud/HeartBar.png\");\r\n\t\thealthWidth = appearance.getWidth() / 2;\r\n\t\thealthHeight = appearance.getHeight() / 26;\r\n\t\ttempFrames = TextureRegion.split(appearance, healthWidth,\r\n\t\t\t\thealthHeight);\r\n\t\tint index = 0;\r\n\t\tframes = new TextureRegion[52];\r\n\t\tfor (int i = 0; i < 26; i++) {\r\n\t\t\tfor (int j = 0; j < 2; j++) {\r\n\t\t\t\tframes[index++] = tempFrames[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\thealthBarAnimation = new Animation(0.01f, frames);\r\n\t\theroHealth.setOrigin(healthWidth/2, healthHeight/2);\r\n\t\theroHealth.setBounds(getX(),getY(), camera.viewportWidth * 0.3f,camera.viewportWidth * 0.3f * (appearance.getHeight() / 26)/(appearance.getWidth() / 2));\r\n\t\t\r\n\t\tstateTime = 0f;\r\n\t\tcurrentFrame = healthBarAnimation.getKeyFrame(stateTime, true);\r\n\t\t\r\n\t\t\r\n\t\tTexture tempT = new Texture(\"img/hud/HeartBarCover.jpg\");\r\n\t\tcover = new Sprite(tempT);\r\n\t\tcover.setSize(250f/270f * heroHealth.getWidth(), heroHealth.getHeight());\r\n\t\tcover.setOrigin(cover.getWidth(), cover.getHeight()/2);\r\n\t\tcover.setScale(1f, 1f);\r\n\t}", "private void initializeIntroString()\r\n {\r\n introString = new JTextArea(problem.getIntroduction());\r\n introString.setFont(new Font(Font.MONOSPACED, Font.BOLD, 14));\r\n introString.setPreferredSize(new Dimension(\r\n calculateTextWidth(problem.getIntroduction().split(\"\\\\n\"), // string array\r\n introString.getFontMetrics(introString.getFont())),// font metric\r\n calculateTextHeight(problem.getIntroduction().split(\"\\\\n\"),// string array\r\n introString.getFontMetrics(introString.getFont())))); // font metric\r\n // wrap it in a label\r\n stringLabel = new JLabel();\r\n stringLabel.setLayout(new FlowLayout(FlowLayout.CENTER));\r\n stringLabel.add(introString);\r\n stringLabel.setPreferredSize(introString.getPreferredSize());\r\n }", "@Override\n public void simpleInitApp()\n {\n makeInitialWorld();\n \tAudio audio = new Audio(assetManager, rootNode);\n inputManager.setCursorVisible(false);\n \trootNode.attachChild(overlayNode);\n\n \tflyCam.setEnabled(true);\n flyCam.setMoveSpeed(25);\n\n setDisplayFps(true);\n setDisplayStatView(true);\n\n GUIInfo guiInfo = new GUIInfo(guiNode, assetManager.loadFont(\"Interface/Fonts/Console.fnt\"));\n guiNode.addControl(guiInfo);\n }", "@Override\n\tpublic void create() {\n\t\tAssets.load();\n\t\t\n\t\t//creo pantallas y cargo por defecto menuPrincipal\n\t\tscreenJuego = new JuegoScreen(this);\n\t\tmenuPrincipal = new MenuPrincipal(this);\n\t\tsetScreen(menuPrincipal);\n\t}" ]
[ "0.653158", "0.6372625", "0.61867255", "0.6113186", "0.6112154", "0.61045057", "0.59958255", "0.594826", "0.5894384", "0.58929324", "0.58607954", "0.5808285", "0.58062375", "0.5756904", "0.57541054", "0.57404256", "0.5736283", "0.5733703", "0.5728685", "0.5728195", "0.5725606", "0.5720297", "0.5711053", "0.5708785", "0.5707034", "0.5701355", "0.5660327", "0.565032", "0.56471163", "0.56428754", "0.56388235", "0.5637003", "0.5633544", "0.5603188", "0.56006587", "0.5589045", "0.5570846", "0.5559702", "0.5551359", "0.5550992", "0.5528309", "0.5524043", "0.55213815", "0.55043375", "0.5498503", "0.54906034", "0.5480997", "0.5480239", "0.5470335", "0.5452772", "0.54478955", "0.54032713", "0.5396415", "0.5392192", "0.5377677", "0.53747475", "0.5352882", "0.53508425", "0.5348451", "0.5334734", "0.5334079", "0.53241026", "0.5318404", "0.5313539", "0.53133714", "0.5308654", "0.53086364", "0.5300772", "0.5298741", "0.5293278", "0.5292097", "0.52823246", "0.5281059", "0.5274569", "0.52542293", "0.5247965", "0.5243541", "0.52386147", "0.5237672", "0.5232545", "0.5227192", "0.52263284", "0.52242064", "0.52232033", "0.52194494", "0.5216892", "0.52154857", "0.519944", "0.5194274", "0.5190904", "0.51876676", "0.5179253", "0.5159139", "0.51577765", "0.51537263", "0.5152465", "0.51460946", "0.5145742", "0.514475", "0.51426506" ]
0.6418961
1
The render method of the Intro class only draws the current image at the current position.
public void render(GameContainer container, Graphics g) throws SlickException { g.drawImage(introImage, introImagePosX, introImagePosY); if (waitForIntro > 2000) { g.drawString("Press ESC to skip.", container.getWidth() / 2, 900); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void render() { image.drawFromTopLeft(getX(), getY()); }", "public void render () {\n image (img, xC, yC, xLength * getPixelSize(), yLength * getPixelSize());\n }", "private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }", "public void render();", "public void render() {\r\n\r\n }", "public void render() {\n }", "public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}", "public void draw() {\r\n\t\tif (active_)\r\n\t\t\tGlobals.getInstance().getCamera().drawImageOnHud(posx_, posy_, currentImage());\r\n\t}", "void display() {\n pushMatrix();\n pushStyle();\n \n translate(_x, _y);\n rotate(_rotVector.heading() - _front);\n if (_flipped) scale(-1, 1);\n imageMode(CENTER);\n image(_img, 0, 0, _w, _h);\n \n popStyle();\n popMatrix();\n }", "public void drawImage() {\n mTextureRender.drawFrame(mSurfaceTexture);\n }", "public void render()\r\n\t{\n\t}", "@Override\n public void renderNextImage() {\n }", "@Override\n\tpublic void render(Graphics g) {\n\t\tg.drawImage(curr_img, x, y, null);\n\t}", "@Override\r\n\tpublic void render() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void render(Graphics g) {\n\t\timg.setPosition(x - cam.getX(), y - cam.getY());\r\n\t\timg.render(g);\r\n\t}", "private void render() {\n\t\tBufferStrategy bs = this.getBufferStrategy();\r\n\t\tif (bs == null) {\r\n\t\t\tcreateBufferStrategy(3);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//Initiates Graphics class using bufferStrategy\r\n\t\tGraphics g = bs.getDrawGraphics();\r\n\t\t\r\n\t\t//displays img on screen\r\n\t\tg.drawImage(img, 0, 0, null);\r\n\t\t\r\n\t\tg.setColor(Color.CYAN);\r\n\t\tg.drawString(fps + \" FPS\", 10, 10);\r\n\t\tg.setFont(new Font(\"Arial\", 0, 45));\r\n\r\n\t\tg.dispose();//clears graphics\r\n\t\tbs.show();//shows graphics\r\n\t}", "@Override\n\tpublic void render() {\n\t\t\n\t}", "@Override\n\tpublic void render() {\n\t\tScreen.render();\n\t}", "@Override\r\n\tpublic void render() {\n\r\n\t}", "@Override\n\tpublic void render(float delta) {\n\t\tsetupDisplay();\n\t\tcamera.update();\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\t\t\n\t\t//Matrix4 normalProjection = new Matrix4().setToOrtho2D(0, 0,\n\t\t//\t\tGdx.graphics.getWidth(), Gdx.graphics.getHeight()); //required to render sprites properly\n\t\t//batch.setProjectionMatrix(normalProjection);\n\t\tbatch.begin();\n\t\t\n\t\t//Draw Background\n\t\tdrawBackground();\n\t\t\n\t\t//Draw Buttons (if input falls in the draw region for a button, change the image to a 'clicked' button)\n\t\tdrawButtons();\n\t\t\n\t\t//Draw Text(if you draw anything else after this, the projection matrix must be reset)\n\t\tdrawText();\n\t\tbatch.end();\n\t}", "@Override\n public void render() {\n super.render();\n }", "@Override\n public void render() {\n super.render();\n }", "@Override\n\tpublic void render(float delta) {\n\t\tupdate(delta);\n\t\tdraw(delta);\n\t}", "public void render() {\n backGraphics.drawImage(background, backgroundX, backgroundY, null);\n\n GameObject.renderAll(backGraphics);\n\n //2. Call repaint\n repaint();\n }", "@Override\n public void render() { super.render(); }", "private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTransform transform = AffineTransform.getTranslateInstance(0, height);\n transform.concatenate(AffineTransform.getScaleInstance(1, -1));\n g2.setTransform(transform);\n\n int width = this.width;\n int height = this.height;\n if (scale != 1) {\n g2.scale(scale, scale);\n width = (int) Math.round(width / scale);\n height = (int) Math.round(height / scale);\n }\n AbstractGraphics g = new GraphicsSWT(g2);\n\n g.setScale(scale);\n if (background != null) {\n g.drawImage(background, 0, 0, width, height);\n }\n\n synchronized (WFEventsLoader.GLOBAL_LOCK) {\n for (Widget widget : widgets) {\n if (widget != null) widget.paint(g, width, height);\n }\n }\n // draw semi-transparent pixel in top left corner to workaround famous OpenGL feature\n g.drawRect(0, 0, 1, 1, Color.WHITE, .5, PlateStyle.RectangleType.SOLID);\n\n g2.dispose();\n }", "public void renderAboutManager()\n {\n background(background);\n t = millis();\n t /= 200.0f;\n shift = -150;\n //imageMode(CENTER);\n image(createdBy,width/2-createdBy.width/2+40,20);\n //image(info,width/2-info.width/2+40,450);\n for(int i = 0; i < img.length; i++)\n {\n image(img[i],width/2+shift,height/5+sin(t-i*0.4f-1)*4);\n shift += img[i].width;\n }\n imageMode(CORNERS);\n }", "@Override\n\tpublic void render(float delta) {\n\t\tbackground.render(camera);\n\t\tui.act();\n\t\tui.draw();\n\t\tif(showG) {\n\t\t\tspriteBatch.begin();\n\t\t\tspriteBatch.draw(texture, 0, 0);\n\t\t\tspriteBatch.end();\n\t\t}\n\t\tif(showA) {\n\t\t\tspriteBatch.begin();\n\t\t\tspriteBatch.draw(texture2, 0, 0);\n\t\t\tspriteBatch.end();\n\t\t}\n\t}", "protected void render() {\n\t\tentities.render();\n\t\t// Render GUI\n\t\tentities.renderGUI();\n\n\t\t// Flips the page between the two buffers\n\t\ts.drawToGraphics((Graphics2D) Window.strategy.getDrawGraphics());\n\t\tWindow.strategy.show();\n\t}", "@Override\n\tpublic void draw() {\n\t\tdouble t = System.currentTimeMillis();\n\t\tdouble dt = t - currentTime;\n\t\tcurrentTime = t;\n\n\t\t// Fetch current animation\n\t\tBaseAnimation animation = AnimationManager.getInstance().getCurrentAnimation();\n\t\tif (animation == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Draw animation frame with delta time\n\t\tanimation.draw(dt);\n\n\t\t// Send image to driver\n\t\tdriver.displayImage(animation.getImage());\n\n\t\t// Display previews\n\t\tbackground(0);\n\t\tif (ledPreviewEnabled) {\n\t\t\timage(preview.renderPreview(animation.getImage()), 0, 0);\n\t\t} else {\n\t\t\ttextAlign(CENTER);\n\t\t\ttextSize(16);\n\t\t\ttext(\"Press W to preview the animation.\", previewRect.width/2, previewRect.height/2);\n\t\t}\n\t\t\n\t\tif (sourcePreviewEnabled && BaseCanvasAnimation.class.isAssignableFrom(animation.getClass())) {\n\t\t\timage(((BaseCanvasAnimation) animation).getCanvasImage(), 0, 0);\n\t\t} else if (sourcePreviewEnabled) {\n\n\t\t\t// Copy animation image (else the animation image gets resized)\n\t\t\t// and scale it for better visibility\n\t\t\tPImage sourcePreview = animation.getImage().get();\n\t\t\tsourcePreview.resize(130, 405);\n\n\t\t\timage(sourcePreview, 0, 0);\n\t\t}\n\n\t}", "public void render() {\r\n\t\t\r\n\t\tif (page >= 0 && page < pages.length) {\r\n\t\t\tTextures.renderQuad(pages[page][(updates / 90) % pages[page].length], 32, 32, 1024, 512);\r\n\t\t}\r\n\t}", "public void draw(){\n StdDraw.picture(this.xCoordinate,this.yCoordinate,this.img);\n }", "private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }", "@Override\n\tpublic void render () {\n super.render();\n\t}", "public void render()\n\t{\n\t\tBufferStrategy bs = this.getBufferStrategy();\n\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t//////////////////////////////\n\n\t\tg.setColor(Color.DARK_GRAY);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\tif (display != null && GeneticSimulator.updateRendering)\n\t\t{\n\t\t\tg.drawImage(display, 0, 0, getWidth(), getHeight(), this);\n\t\t}\n\n\t\tWorld world = GeneticSimulator.world();\n\n\t\tworld.draw((Graphics2D) g, view);\n\n\t\tg.setColor(Color.WHITE);\n\t\tg.drawString(String.format(\"view: [%2.1f, %2.1f, %2.1f, %2.1f, %2.2f]\", view.x, view.y, view.width, view.height, view.PxToWorldScale), (int) 10, (int) 15);\n\n\t\tg.drawString(String.format(\"world: [time: %2.2f pop: %d]\", world.getTime() / 100f, World.popCount), 10, 30);\n\n\t\tg.drawRect(view.pixelX, view.pixelY, view.pixelWidth, view.pixelHeight);\n//\t\tp.render(g);\n//\t\tc.render(g);\n\n\n\t\t//g.drawImage(player,100,100,this);\n\n\t\t//////////////////////////////\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "@Override\n\tpublic void render () {\n\n\t}", "@Override\r\n\tpublic void render(GameContainer gc, Graphics g) {\n\r\n\t\tg.drawImage(image, drawX - 16, drawY - 24); \r\n\t}", "public void draw() {\n \n // TODO\n }", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\n\tpublic void render(float delta) {\n\t}", "public void render() {\n\t\tscreen.background(255);\n\t\thandler.render();\n\t}", "void render() {\n\t\tif (!dragLock)\n\t\t\tfucusLocks();\n\n\t\t// display help information\n\t\tString selected = isSelected ? \" [selected]\" : \"\";\n\t\tmyParent.text(id + selected, anchor.x + 10, anchor.y);\n\n\t\t// display points and lines with their colourings\n\t\tfor (int i = 0; i < amount; i++) {\n\n\t\t\tpoint[i].render();\n\n\t\t\tif (state == State.DRAG_AREA)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\n\t\t\tline[i].draw();\n\n\t\t}\n\n\t\t// display rotation ellipse in anchor position\n\t\tif (state == State.ROTATE && isSelected) {\n\t\t\tmyParent.noFill();\n\t\t\tif (!dragLock)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\t\t\telse\n\t\t\t\tmyParent.stroke(0, 255, 0);\n\t\t\tmyParent.ellipse(anchor.x, anchor.y, 15, 15);\n\t\t}\n\n\t\t// display drag area rectangle in anchor position\n\t\tif (state == State.DRAG_AREA) {\n\t\t\tmyParent.noFill();\n\t\t\tif (!dragLock)\n\t\t\t\tmyParent.stroke(255, 255, 0);\n\t\t\telse\n\t\t\t\tmyParent.stroke(0, 255, 0);\n\t\t\tmyParent.rect(anchor.x, anchor.y, 15, 15);\n\t\t}\n\n\t\t// display anchor point\n\t\tmyParent.rect(anchor.x, anchor.y, 5, 5);\n\n\t\t// display line centres\n\t\tmyParent.noFill();\n\t\tmyParent.stroke(150);\n\t\tmyParent.rectMode(PConstants.CENTER);\n\t\tmyParent.rect(X.x, X.y, 5, 5);\n\t\tmyParent.rect(Y.x, Y.y, 5, 5);\n\t\tmyParent.rect(Z.x, Z.y, 5, 5);\n\t\tmyParent.rect(Q.x, Q.y, 5, 5);\n\t}", "public void render() {\n this.canvas.repaint();\n }", "public void render(){\n\t\tBufferStrategy bs = frame.getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tframe.createBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\trenderGraphics(bs);\n\t}", "@Override\n\tpublic void render(float delta) {\n\n\t}", "public Picture render() \r\n\t{\r\n\t\tPicture r = new Picture(); //Creates a new picture\r\n\t\tr.x = x;\r\n\t\tr.y = y;\r\n\t\t//Loads and sets the bird's image\r\n\t\tif (Bird == null) \r\n\t\t{\r\n\t\t\tBird = Picture.loadImage(\"img/bird.png\");\r\n\t\t}\r\n\t\tr.image = Bird;\r\n\t\trotate = (90 * (yVel + 20) / 20) - 90;\r\n\t\trotate = rotate * Math.PI / 180;\r\n\t\t//Rotates the Bird\r\n\t\tif (rotate > Math.PI / 2)\r\n\t\t{\r\n\t\t\trotate = Math.PI / 2;\r\n\t\t}\r\n\t\tr.transform = new AffineTransform(); //Creates a new graphical transformation\r\n\t\tr.transform.translate(x + width / 2, y + height / 2); //Moves the picture\r\n\t\tr.transform.rotate(rotate); //Rotates the picture\r\n\t\tr.transform.translate(-width / 2, -height / 2); //Moves the picture\r\n\t\treturn r; //Returns the graphic\r\n\t}", "@Override\r\n public void draw() {\n }", "@Override\n\tpublic void render(Graphics g) {\t\n\t\tg.drawImage(Images.player, (int)x, (int)y, null);\n\t}", "public void render(){\n //this block is pre-loading 2 frames in\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n this.createBufferStrategy(2);\n return;\n }\n\n Graphics g = bs.getDrawGraphics();\n Graphics2D g2d = (Graphics2D) g;\n ///////////////////////////\n //Draw things below here!\n g.setColor(Color.white);\n g.fillRect(0, 0, 800, 800);\n\n g2d.translate(-camera.getX(), -camera.getY());\n\n g.setColor(Color.gray);\n g.fillRect(0, 0, 500, 500);\n //render all the objects\n handler.render(g);\n\n //g2d.translate(camera.getX(), camera.getY());\n //Draw things above here!\n ///////////////////////////\n g.dispose();\n bs.show();\n }", "protected void render(){}", "@Override\n public void draw()\n {\n }", "public abstract void render(PixelImage canvas);", "@Override\r\n\tpublic void render(Graphics g) {\n\t\tg.drawImage(image, (int) (x - handler.getGameCamera().getxOffset()), \r\n\t\t\t\t(int) (y - handler.getGameCamera().getyOffset()), width, height, null);\r\n\t}", "@Override\n public void draw() {\n }", "public TextureDisplay() {\n initComponents();\n\n setPreferredSize(new Dimension(size, size));\n\n backImg = createBackImg();\n }", "public void draw(){\n\t\tStdDraw.picture(this.xxPos,this.yyPos,\"images/\"+this.imgFileName);\n\t}", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n g.setColor(Color.white);\n g.drawLine(0, 500, 595, 500);\n player.render(g);\n for (int i = 0; i < aliens.size(); i++) {\n Alien al = aliens.get(i);\n al.render(g);\n }\n if (shotVisible) {\n shot.render(g);\n }\n\n if(gameOver==false)\n {\n gameOver();\n }\n for(Alien alien: aliens){\n Bomb b = alien.getBomb();\n b.render(g);\n }\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\n g.setFont(small);\n g.drawString(\"G - Guardar\", 10, 50);\n g.drawString(\"C - Cargar\", 10, 70);\n g.drawString(\"P - Pausa\", 10, 90);\n\n if(keyManager.pause)\n {\n g.drawString(\"PAUSA\", 250, 300);\n }\n \n bs.show();\n g.dispose();\n }\n\n }", "private void render() {\n\t\ttheMap.draw(g);\n\t\ttheTrainer.draw(g);\n\t}", "public void renderOutputImageManager()\n {\n if(input != null)\n {\n if(toRerender)\n {\n background(background);\n mosaic.newCanvas();\n mosaic.setPreviewCanvas();\n mosaic.drawImage();\n renderPreview();\n renderHover();\n image(infoGraphics,10,270);\n toRerender = false;\n }\n }\n else\n {\n background(background);\n image(infoGraphics,40,270);\n }\n }", "private void render()\n\t{\n\t\ttheta = (float) (velocity.heading() + Math.toRadians(90.0));\n\n\t\t// se baser sur le temps écoulé depuis le lancement\n\t\tf = parent.frameCount / 4;\n\t\tint fi = f + 1;\n\t\tfloat x = fi % DIM * W;\n\t\tfloat y = fi / DIM % DIM * H;\n\n\t\tparent.pushMatrix();\n\t\tparent.translate(location.x, location.y);\n\t\tparent.rotate(theta);\n\t\tparent.beginShape();\n\t\tparent.texture(spritesheet);\n\t\tparent.vertex(0, 0, x, y);\n\t\tparent.vertex(100, 0, x + W, y);\n\t\tparent.vertex(100, 100, x + W, y + H);\n\t\tparent.vertex(0, 100, x, y + H);\n\t\tparent.endShape();\n\t\tparent.popMatrix();\n\t}", "public void draw()\n {\n imageView.setRotate(teta);\n imageView.relocate(super.getX(),super.getY());\n }", "public void render () {\n\t\tcam.update();\n\t\tbatch.setProjectionMatrix(cam.combined);\n\t\trenderBackground();\n\t\t/*shapeRender.setProjectionMatrix(cam.combined);\n\t\tshapeRender.begin(ShapeRenderer.ShapeType.Line);\n\t\tshapeRender.ellipse(world.trout.hitBox.x, world.trout.hitBox.y, world.trout.hitBox.width, world.trout.hitBox.height);\n\t\tshapeRender.circle(world.hook.circleBounds.x, world.hook.circleBounds.y, world.hook.circleBounds.radius);\n\t\tshapeRender.point(world.trout.position.x, world.trout.position.y, 0f);*/\n\t\trenderObjects();\n\t\t\n\t}", "public void render() {\n\t\t// do nothing... as we should\n\t}", "@Override\n\tpublic void draw() {\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "public void render () \n\t{ \n\t\trenderWorld(batch);\n\t\trenderGui(batch);\n\t}", "public void draw(){\n\t\tString filename = \"images/\" + this.imgFileName;\n\t\tStdDraw.picture(this.xxPos, this.yyPos, filename);\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public void render(){\n//\t\tsetCards();\n//\t\tsetMurderInfo();\n\t}", "@Override\n\tpublic void render() {\n\t\tGdx.gl.glViewport(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);\n\n\n\t\t// TODO: begin the model batch with the current camera\n\t\t// render the instance of the model in the set-up environment using the model batch\n\t\t// end the model batch rendering process\n\t\tmodelBatch.begin(cam);\n\t\tmodelBatch.render(instance, environment);\n\t\tmodelBatch.end();\n\n\t\t// TODO: begin the sprite batch rendering\n\t\t// draw the new order logo at (50, 50, 200, 200)\n\t\t// end the sprite batch rendering process\n\t\tsprites.begin();\n\t\tsprites.draw(logo,50, 50, 200, 200);\n\t\tsprites.end();\n\t}", "private void render() {\n\n if (state == STATE.PAUSE) {\n\n return;\n }\n\n\n if (state == STATE.MENU) {\n\n menu.draw();\n arrow.render();\n return;\n\n }\n\n if (state == STATE.INSTRUCTIONS) {\n instructions.draw();\n return;\n }\n\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).render();\n }\n\n\n for (Enemy enemy : enemies) {\n enemy.render();\n }\n\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).render();\n }\n\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).render();\n }\n\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).render();\n }\n\n topBar.render();\n bottomBar.render();\n fps.render();\n score.render();\n\n\n }", "@Override\n\tpublic void render() {\n\t\tif (this.hidden) {\n\t\t\treturn;\n\t\t}\n\n\t\tsuper.render();\n\n\t\tthis.font.draw(Graphics.batch, this.label, this.getX(),\n\t\t\tthis.getY() + (this.getHeight() - this.font.getLineHeight()) / 2);\n\t}", "public void draw() {\n \n }", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) { //if the buffer strategy doesnt get created, then you create it\n\t\t\tcreateBufferStrategy(3); //the number 3 means it creates triple buffering\n\t\t\treturn;\t\t\t\t\t//, so when you backup frame gets displayed (2) it will also have a backup\t\n\t\t}\n\t\t\n\t\t//apply data to the buffer \"bs\"\n\t\t//this is creating a link to graphics to drawing graphics to the screen.\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t/**\n\t\t * You input all of your graphics inbetween the g object and g.dispose();\n\t\t */\n\t\t//###################\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t//###################\n\t\tg.dispose(); //this dispose of all the graphics\n\t\tbs.show(); //this will make the next available buffer visible\n\t}", "@Override\n\tpublic void render(float deltaTime) {\n\t\t\n\t}", "@Override\n\tpublic void render() {\n\t\tgraphics.clearRect(0, 0, layerWidth, layerheight);\n\t\t\n\t\tfor(int i = 0, length = renderList.size(); i < length; i++) {\n\t\t\tSprite sprite = renderList.get(i);\n\t\t\trotateImage(sprite);\n\t\t\tgraphics.drawImage(sprite.getImage(), sprite.getX(), sprite.getY());\n\t\t}\n\t\t\n\t\ttimeDelay(3000);\n\t}", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "@Override\n\tpublic void Draw(float delta) {\n\t\t\n\t}", "public abstract void render(Graphics g);", "public void render() {\r\n\t\tif ((this instanceof Turtles && ((Turtles) this).isAboveWater()) || !(this instanceof Turtles)) {\r\n\t\t\timage.drawCentered(xCoordinate, yCoordinate);\r\n\t\t}\r\n\t}", "public void render(){\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tthis.screen.renderBackground();\n\t\t\n\t\t\n\t\tfor(int i=0;i<this.obstacles.size();i++){\n\t\t\tobstacles.get(i).render(screen);\n\t\t}\n\t\t\n\t\tthis.screen.renderGround();\n\t\t\n\t\t\n\t\tthis.bird.render(screen);\n\n\t\tscreen.renderLeftLim();\n\t\t\n\t\tfor(int i= 0;i<this.pixels.length;i++){\n\t\t\tthis.pixels[i] = this.screen.getPixel(i);\n\t\t}\n\t\n\n\t\t\n\t\tGraphics g = bs.getDrawGraphics();\n\t\tg.drawImage(image,0,0,getWidth(),getHeight(),null);\n\t\tg.setColor(Color.WHITE);\n\t\tg.setFont(new Font(\"Verdana\",0,30));\n\t\tg.drawString(\"\"+this.numGoals, 300, 60);\n\t\tif(this.gameOver){\n\t\t\tif(this.begin){\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,50));\n\t\t\t\tg.drawString(GAMEOVER_MESSAGE, (WIDTH-300)/2, 200);\n\t\t\t\t\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,20));\n\t\t\t\tg.drawString(\"press down key to restart\", (WIDTH-250)/2, 300);\n\t\t\t\tg.drawString(\"Best score:\"+this.bestScore, (WIDTH-135)/2, 350);\n\t\t\t}else{\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,50));\n\t\t\t\tg.drawString(\"OPEN BIRD\", (WIDTH-270)/2, 200);\n\t\t\t\t\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,20));\n\t\t\t\tg.drawString(\"press down key to start\", (WIDTH-250)/2, 300);\n\t\t\t}\n\t\t}\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "public void render()\n\t{\n\t\t// Get or create the BufferStrategy to plan rendering\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the graphics that can be drawn to\n\t\tg = bs.getDrawGraphics();\n\t\t\n\t\t// Set the Graphics2D\n\t\tg2d = (Graphics2D)g;\n\t\t\n\t\t// Create a black rectangle to fill the canvas as a base background\n\t\tg.setColor(Color.black);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\tif (screenLoaded)\n\t\t{\n\t\t\t// Draw the static background\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawStaticBackground(g);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(game.getCamera().getxPos(), \n\t\t\t\t\t\t \t game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the background layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawBackground(g);\n\t\t\t\n\t\t\t// Render all of the Tiles\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesWorld())\n\t\t\t\tgame.getWorldHandler().renderTiles(g);\n\t\t\t\n\t\t\t// Render all of the GameObjects\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesGameObjects())\n\t\t\t\tgame.getObjectHandler().renderGameObjects(g);\n\t\t\t\n\t\t\t// Draw the foreground layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawForeground(g);\n\t\t\t\n\t\t\t// Draw the lighting\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesLighting())\n\t\t\tg.drawImage(game.getLightHandler().getLightmap(), -1500, -3100, null);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(-game.getCamera().getxPos(), \n\t\t\t\t\t\t \t -game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the gui layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawGui(g);\n\t\t\t\n\t\t\t// Draw the debug layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null\n\t\t\t\t&& game.getDebugScreen() != null\n\t\t\t\t&& game.isDebugShown())\n\t\t\t\tgame.getDebugScreen().showDebug(g);\n\t\t\t\n\t\t\t// Draw the loading \"curtain\" if the screen is still loading\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null &&\n\t\t\t\t!screenLoaded)\n\t\t\t{\n\t\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Dispose of all graphics\n\t\t\tg.dispose();\n\t\t\t// Show all graphics prepared on the BufferStrategy\n\t\t\tbs.show();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGraphics2D g2 = (Graphics2D)g;\n\t\t\tg2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\t\n\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Dispose of all graphics\n\t\tg.dispose();\n\t\t// Show all graphics prepared on the BufferStrategy\n\t\tbs.show();\n\t}", "public void render(){\r\n if(getLives() >= 10){\r\n StdDraw.picture(super.xCoord,super.yCoord,\"EnemyPurple.png\",super.radius*2,super.radius*2);\r\n }\r\n if(getLives() < 10){\r\n StdDraw.picture(super.xCoord,super.yCoord,\"EnemyPink.png\",super.radius*2,super.radius*2);\r\n }\r\n }", "public void render(){\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Sets graphics in screen and clears them\n\t\tGraphics g = bs.getDrawGraphics();\n\t\tscreen.graphics(g);\n\t\tscreen.clear();\n\t\t\n\t\tGraphics2D graphics2d = (Graphics2D) g;\n\t\t\n\t\t//Adds antialiasing to text\n\t\tgraphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\n\t\tmanager.render(screen);\n\t\t\n\t\tfor(int i = 0; i < WIDTH*HEIGHT; i++){\n\t\t\tpixels[i] = screen.getPixels()[i];\n\t\t}\n\t\tg.drawImage(image, 0, 0, getWidth(), getHeight(), null);\n\t\t\n\t\t//Draw text from string buffer\n\t\tfor(StringObject so : screen.stringBuffer){\n\t\t\tString s = so.string;\n\t\t\tg.setColor(so.color);\n\t\t\tg.setFont(so.font);\n\t\t\tg.drawString(s, so.xp, so.yp);\n\t\t}\n\t\tscreen.stringBuffer.clear();\n\t\t\n\t\t//Draws pause graphics\n\t\tif(screen.pause && manager.getState() == 2){\n\t\t\tg.setColor(new Color((0xcc00aa & 0xff0000) >> 16, (0xcc00aa & 0xff00) >> 8, (0xcc00aa & 0xff), 255));\n\t\t\tg.fillRect(0, 290, screen.getWidth(), 170);\n\t\t\tg.setColor(new Color((0x222222 & 0xff0000) >> 16, (0x222222 & 0xff00) >> 8, (0x222222 & 0xff), 255));\n\t\t\tg.fillRect(0, 300, screen.getWidth(), 150);\n\t\t\t\n\t\t\tg.setColor(Color.WHITE);\n\t\t\tg.setFont(new Font(\"Audiowide\", Font.PLAIN, 90));\n\t\t\tg.drawString(\"PAUSED\", 330, 380);\n\t\t\tg.setFont(new Font(\"Audiowide\", Font.PLAIN, 30));\n\t\t\tg.drawString(\"Press Escape to Resume\", 340, 420);\n\t\t}\n\t\t\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "@Override\n public void render(Graphics g) {\n if (isVisible()) { \n g.drawImage(getImage(), (int)position.getX(), (int) position.getY(), width, height, null);\n }\n }", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}", "public void render(){\n\t\tstage.act();\n\t\tstage.draw();\n\t}", "public void draw() {\n }", "public void draw() {\r\n\t\tfor(int i=0; i<2; i++) {\r\n\t\t\trenderer[i].setView(camera[i]);\r\n\t\t\trenderer[i].render();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void tick() {\n\t\trenderer.render(this);\n\t}", "@Override\n public final void paint(float delta) {\n game.graphics.drawImage(\n image,\n centerX - (width / 2),\n centerY - (height / 2),\n scale, 0);\n }", "public void render (Graphics2D g);", "public void requestrender() {\n\t\trender(g2d);\r\n\t\tGraphics g = getGraphics();\r\n\t\tg.drawImage(image , 0 , 0, null);\r\n\t\tg.dispose();\r\n\t\t\r\n\t}", "public void render(Graphics g){\r\n g.drawImage(sprite, x - Camera.x, y - Camera.y, null);\r\n }", "@Override\n public void render (Graphics2D g, int x, int y)\n {\n AffineTransform aTransform = new AffineTransform();\n aTransform.translate((int) this.getX(), (int) this.getY());\n g.drawImage(image.getScaledInstance(width, height, 0), aTransform, null);\n renderComponents(g, x, y);\n }", "public void draw() {\r\n\r\n//\t\tif (textures.length > 1) {\r\n//\t\t\tfor (int i = 1; i < textures.length; i++) {\r\n\t\tif (textures.length > 1) {\r\n\t\t\tDrawQuadWithTexture(textures[0], x, y, width, height);\r\n\t\t\tDrawQuadWithRotatedTexture(textures[1], x, y, width, height, angle);\r\n\t\t} else {\r\n\t\t\tDrawQuadWithRotatedTexture(textures[0], x, y, width, height, angle);\r\n\t\t}\r\n\r\n//\t\t\t}\r\n//\t\t}\r\n//\t\t\r\n\t}", "private void render() throws IOException {\n //Setting the bufferStrategy to be the one used in our canvas.\n //Gets the number of buffers that the canvas should use.\n this.bufferStrategy = display.getCanvas().getBufferStrategy();\n //If our bufferStrategy doesn't know how many buffers to use\n //we create some manually\n if (bufferStrategy == null) {\n //Create 2 buffers and then return out of the method to prevent errors\n display.getCanvas().createBufferStrategy(2);\n return;\n }\n //Create the graphics related to the bufferStrategy\n this.graphics = this.bufferStrategy.getDrawGraphics();\n //Create and draw the animated background\n this.graphics.drawImage(this.background.crop(0, 0 + this.backgroundFrames * this.height, width, height), 0, 0, null);\n //Player Added\n player.render(this.graphics);\n //Enables the buffer\n for (int j = 0; j < enemies.size(); j++) {\n enemies.get(j).render(this.graphics);\n }\n if (StateManager.getState() != null) {\n StateManager.getState().render(this.graphics);\n }\n //Creating life and score stats.\n this.graphics.setFont(new Font(\"Verdana\", Font.BOLD, 22));\n this.graphics.setColor(Color.RED);\n this.graphics.drawString(String.format(\"LIVES: %d\",player.getLives()),60,30);\n this.graphics.setColor(Color.BLUE);\n this.graphics.drawString(String.format(\"DIFFICULTY LEVEL: %d\",Enemy.getDifficulty()),300,30);\n this.graphics.setColor(Color.orange);\n this.graphics.drawString(String.format(\"SCORE: %d\",player.getScore()),600,30);\n bufferStrategy.show();\n //Shows everything stored in the Graphics object\n this.graphics.dispose();\n }", "private void drawImage(){\n Integer resourceId = imageId.get(this.name);\n if (resourceId != null) {\n drawAbstract(resourceId);\n } else {\n drawNone();\n }\n }" ]
[ "0.7212165", "0.70083535", "0.6953329", "0.6763264", "0.6704398", "0.6667543", "0.66616863", "0.6649882", "0.66472876", "0.6604432", "0.660343", "0.6563415", "0.65535384", "0.6527354", "0.65053904", "0.6485561", "0.64738667", "0.64042795", "0.63686013", "0.63682735", "0.6366597", "0.6366597", "0.6353247", "0.6331067", "0.63187397", "0.62968767", "0.62968457", "0.6292573", "0.62862253", "0.6276206", "0.62564844", "0.6238906", "0.6236468", "0.6235575", "0.623459", "0.62325734", "0.62137103", "0.6202333", "0.61972386", "0.61972386", "0.6196908", "0.61853373", "0.6171412", "0.6168597", "0.61652166", "0.61437595", "0.6142765", "0.61374885", "0.6136002", "0.6131489", "0.61231774", "0.61212367", "0.61164117", "0.6106383", "0.6104515", "0.60965043", "0.6095334", "0.60924405", "0.60839576", "0.6078663", "0.60683596", "0.6068118", "0.6056667", "0.6055779", "0.6038945", "0.60306233", "0.60306233", "0.60297155", "0.60212684", "0.6017828", "0.6017828", "0.6013007", "0.5996974", "0.5988786", "0.59791076", "0.5976818", "0.5968955", "0.5960832", "0.59470296", "0.59452426", "0.5936748", "0.5927568", "0.59235424", "0.59207517", "0.5913135", "0.590723", "0.5898168", "0.58968407", "0.58937865", "0.58933735", "0.58913165", "0.5889992", "0.58868927", "0.5885997", "0.58782375", "0.5871925", "0.58674747", "0.5859107", "0.58587563", "0.58520883", "0.58514386" ]
0.0
-1
The update method updates the images and their position. Players can skip the intro by pressing the ESC key.
public void update(GameContainer container, int delta) throws SlickException, FileNotFoundException { /* * Check if the intro was skipped */ if (container.getInput().isKeyPressed(Input.KEY_ESCAPE)) { introImagePosY = 0; waitForIntro = 8000; } /* * Make the first intro image slide in from bottom to top */ if (introImagePosY > 0) { introImagePosY -= 3; } else { /* * If intro has finished playing or was skipped set the bool to true */ if (waitForIntro > 8000) { // show main menu game.setMainMenu(new MainMenu(game)); game.setIntro(true); /* * If the first intro image has finished playing show the title image */ } else if (waitForIntro > 2000) { waitForIntro += delta; introImage = new Image("res/images/Main_Menu.png"); /* * Otherwise just count the time */ } else { waitForIntro += delta; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update() {\n if (this.active) {\n GameObject.processing.image(this.image, this.xPosition, this.yPosition);\n }\n }", "public void update()\r\n {\n for (MapObject mo : gameData.getMap().getObjects())\r\n {\r\n mo.getAI().advance();\r\n }\r\n \r\n // update the UI\r\n for (UIElement uiEl : ui.getUIElements())\r\n {\r\n uiEl.update();\r\n }\r\n\r\n // Move the map objects\r\n movHandler.moveObjects();\r\n\r\n // Refresh the screen position\r\n Player player = gameData.getPlayer();\r\n this.centerScreen((int) player.getX() + Tile.TILESIZE / 2, (int) player.getY() + Tile.TILESIZE / 2);\r\n }", "public void update() {\n\t\tif (MainClass.getPlayer().isJumping()) {\n\t\t\tcurrentImage = characterJumped;\n\t\t} else if(Math.abs(MainClass.getPlayer().getSpeedY()) > Player.getFallspeed() ) {\n\t\t\tcurrentImage = characterJumped;\n\t\t} else if(MainClass.getPlayer().isCovered() == true) {\n\t\t\tcurrentImage = characterCover;\n\t\t} else if(MainClass.getPlayer().isJumping() == false && MainClass.getPlayer().isCovered() == false) {\n\t\t\tcurrentImage = super.getCurrentImage();\n\t\t}\n\t\tthis.update(25);\n\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t\tif(!this.explShowing)\n\t\t{\n\t\t\tx+= dx;\n\t\t\ty+= dy;\n\t\n\t\t\tif(x < 0)\n\t\t\t{\n\t\t\t\tx = 0;\n\t\t\t\tdx = dx *-1;\n\t\t\t}\n\t\t\telse\n\t\t\tif(x + w > MainGame.getInstance().X_WORLD_END)\n\t\t\t{\n\t\t\t\tx = MainGame.getInstance().X_WORLD_END - w ;\n\t\t\t\tdx = dx *-1;\t\n\t\t\t}\n\t\n\t\t\tif(y < 0)\n\t\t\t{\n\t\t\t\tthis.reset();\n\t\t\t}\n\t\t\telse\n\t\t\tif(y + h > MainGame.getInstance().Y_WORLD_END)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tthis.reset();\n\t\t\t}\n\t\t}\n\t\t\n\t\ts.update();\n\t\n\t\tif(this.explShowing)\n\t\t{\n\t\t\tif(expl.isHasFinished())\n\t\t\t{\n\t\t\t\texplShowing = false;\n\t\t\t\ts = this.normalImage;\n\t\t\t\tthis.x = this.xStart;\n\t\t\t\tthis.y = this.yStart;\n\t\t\t\ts.setX(this.xStart);\n\t\t\t\ts.setY(this.yStart);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//s.setX(x);\n\t\t//s.setY(y);\n\t\t\n\t\tthis.rect.setFrame(getX(),getY(),getW(),getH());\t\n\t}", "public void update() {\n\t\tImage background_buffer = createImage(stats.getWidth(),\n\t\t\t\tstats.getHeight());\n\t\tGraphics background_buffer_graphics = background_buffer.getGraphics();\n\t\t// updates the stats on screen\n\t\tbackground_buffer_graphics.drawString(\n\t\t\t\t\"Current Move: \" + (model.isWhiteToPlay() ? \"White\" : \"Black\"),\n\t\t\t\t5, 20);\n\t\tbackground_buffer_graphics.drawString(\"White Points: \"\n\t\t\t\t+ (((Game) model).getBoard().getWhiteScore()), 20, 125);\n\t\tbackground_buffer_graphics.drawString(\"Black Points: \"\n\t\t\t\t+ (((Game) model).getBoard().getBlackScore()), 20, 145);\n\n\t\tImage wc = null;\n\t\tImage bc = null;\n\t\t//\n\t\ttry {\n\t\t\twc = ImageIO.read(new File((\"images/white_piece.png\")));\n\t\t\tbc = ImageIO.read(new File((\"images/black_piece.png\")));\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (model.isWhiteToPlay()) {\n\t\t\tbackground_buffer_graphics.drawImage(wc, 25, 30, null, null);\n\n\t\t} else {\n\t\t\tbackground_buffer_graphics.drawImage(bc, 25, 30, null, null);\n\n\t\t}\n\n\t\tstats.getGraphics().drawImage(background_buffer, 0, 0, null);\n\n\t}", "@Override\r\n\tpublic void update() {\n\t\tListIterator<Player> it = players.listIterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tit.next().update();\r\n\t\t}\r\n\t\t// Logica del juego, etc\r\n\t\tcontrolMenu();\r\n\t}", "public void updateImage() {\n \t\tAnimation anim = this.animationCollection.at(\n \t\t\t\tfak.getCurrentAnimationTextualId());\n \n \t\t// if animation is set to something bad, then set it to back to initial\n \t\tif(anim==null)\n \t\t{\n \t\t\tfak.setCurrentAnimationTextualId(ConstantsForAPI.INITIAL);\n \t\t\tanim = this.animationCollection.at(\n \t\t\t\t\tfak.getCurrentAnimationTextualId());\n \t\t}\n \n \t\tif(anim==null)\n \t\t{\n \t\t\tanim = this.animationCollection.at(0);\n \t\t\tfak.setCurrentAnimationTextualId(anim.getTextualId());\n \t\t}\n \n \t\tif (anim != null) {\n \t\t\tif (fak.getCurrentFrame()\n \t\t\t\t\t>= anim.getLength()) {\n \t\t\t\tfak.setCurrentFrame(\n \t\t\t\t\t\tanim.getLength() - 1);\n \t\t\t}\n \n \t\t\tcom.github.a2g.core.objectmodel.Image current = anim.getImageAndPosCollection().at(\n \t\t\t\t\tfak.getCurrentFrame());\n \n \t\t\t// yes current can equal null in some weird cases where I place breakpoints...\n \t\t\tif (current != null\n \t\t\t\t\t&& !current.equals(this)) {\n \t\t\t\tif (this.currentImage != null) {\n \t\t\t\t\tthis.currentImage.setVisible(\n \t\t\t\t\t\t\tfalse, new Point(this.left,this.top));\n \t\t\t\t}\n \t\t\t\tthis.currentImage = current;\n \t\t\t}\n \t\t}\n \t\t// 2, but do this always\n \t\tif (this.currentImage != null) {\n \t\t\tthis.currentImage.setVisible(\n \t\t\t\t\tthis.visible, new Point(this.left,\n \t\t\t\t\t\t\tthis.top));\n \t\t}\n \n \t}", "private void updateSprites() {\n\t\tpaddle1.setX(paddle1X);\r\n\t\tpaddle1.setY(paddle1Y);\r\n\r\n\t\tpaddle2.setX(paddle2X);\r\n\t\tpaddle2.setY(paddle2Y);\r\n\r\n\t\tball.setX(ballX);\r\n\t\tball.setY(ballY);\r\n\r\n\t\tscore.setVisible(paused);\r\n\t}", "public void updateSprites() {\n this.model.getSprites().values().forEach(x -> x.setPosition(this.x, this.y));\n }", "public void update() throws IOException {\r\n\t\t//Gets the x and y of the mouse relative to the frame\r\n\t\tint y = mhh.mouseY;\r\n\t\tint x = mhh.mouseX;\r\n\r\n\t\t//Makes sure the x and y doesn't go out of bounds\r\n\t\tif (x < 0) {\r\n\t\t\tx = 0;\r\n\t\t}\r\n\t\tif (y < 0) {\r\n\t\t\ty = 0;\r\n\t\t}\r\n\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Creates the hoveredColor based on the pixel rgb that coresponds to the x and y of the screen to the 2D array of the invisMap\r\n\t\tif ((y < imgH && x < imgW)) {\r\n\t\t\thoveredColor = new Color(invisData[x][y]);\r\n\t\t}\r\n\t\t\r\n\t\tif (started == false) {\r\n\t\t\t\r\n\t\t\tsaveButton.setVisible(false);\r\n\t\t\t\r\n\t\t\tcontinentData.setVisible(false);\r\n\t\t\tcardsData.setVisible(false);\r\n\t\t\tcardBackground.setVisible(false);\r\n\t\t\tphaseLabel.setVisible(false);\r\n\t\t\tphaseLabel2.setVisible(false);\r\n\t\t\t\r\n\t\t\tplayerNum.setText(\"SELECT THE NUMBER OF PLAYER: \" + playerPicker.getValue());\r\n\t\t\t\r\n\t\t}\r\n\t\t//If there has been no countries picked then it needs a player to select a country\r\n\t\telse if (CountryPicker.size() > 0 && mch.clicked) {\r\n\t\t\tpickCountry();\r\n\t\t\t\r\n\t\t\t//Once all countries have been selected it will allow the player to spread the initial troops\r\n\t\t} else if (initialtroops > 0 && mch.clicked) {\r\n\t\t\tinitialTroopSpread();\r\n\t\t\t\r\n\t\t\t//Once both of the above have been satisfied, it can start calling the phases (deploy, attack, etc.)\r\n\t\t} else if (mch.clicked) {\r\n\t\t\tphaseManager();\r\n\t\t}\r\n\r\n\t\t// Set phase label based on what phase of the game it is in, as well as how many countries that player has yet to deploy\r\n\t\tif(players.size() > 0) {\r\n\t\t\tif (CountryPicker.size() > 0) {\r\n\t\t\t\tphaseLabel.setText(\"Player \" + (turnCounter + 1) + \" - Select Country\");\r\n\t\t\t\tphaseLabel.setForeground(players.get(turnCounter).getColor());\r\n\t\t\t\tphaseLabel2.setText(\"Player \" + (turnCounter + 1) + \" - Select Country\");\r\n\t\t\t} else if (initialtroops > 0) {\r\n\t\t\t\tphaseLabel.setText(\"Player \" + (turnCounter + 1) + \" - Place Initial Troops\");\r\n\t\t\t\tphaseLabel.setForeground(players.get(turnCounter).getColor());\r\n\t\t\t\tphaseLabel2.setText(\"Player \" + (turnCounter + 1) + \" - Place Initial Troops\");\r\n\t\t\t\ttroopsToDeploy.setText((initialtroops - 1) / players.size() + 1 + \" Troops Remaining\");\r\n\t\t\t} else {\r\n\t\t\t\tphaseLabel.setText(\"Player \" + (turnCounter + 1) + \" - \" + phase);\r\n\t\t\t\tphaseLabel.setForeground(players.get(turnCounter).getColor());\r\n\t\t\t\tphaseLabel2.setText(\"Player \" + (turnCounter + 1) + \" - \" + phase);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (players.size() > 0) {\r\n\t\t\tfor (Player p : players) {\r\n\t\t\t\tif (p.getCountries().size() == 42) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tendGame(p.getPlayerNum());\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\r\n\t\t}\r\n\t\t//render the game base on chanegs made in the update class\r\n\t\trender();\r\n\t\t\r\n\t}", "@Override\n\tpublic void update() {\n\t\tmove();\n\t\tplace();\n\t}", "public void update() {\n\t\tif (screen.scale != newScale) \n\t\t\tscreen = new Screen(Game.width/newScale, Game.height/newScale, newScale);\n\t\t\n\t\tif (screen.width != Game.width || screen.height != Game.height) {\n\t\t\t\n\t\t\tscreen = new Screen(Game.width/newScale, Game.height/newScale, newScale);\n\t\t}\n\t\t\n\t\tfor (Terrain t : terrainObjs) {\n\t\t\tt.update();\n\t\t}\n\t\t\n\t\tif (backgroundMain != null) {\n\t\t\tbackgroundMain.update();\n\t\t}\n\t\t\n\t\txPos += xMoving;\n\t\tyPos += yMoving;\n\t}", "public void update() {\n\t\tupdateCamera();\n\t}", "public void update(){\r\n\t\tupdateTurnLabel();\r\n\t\tupdateCanvas();\r\n\t}", "public void Update() {\n if(_update) {\n _bpm.Update();\n _interact.Update();\n }\n }", "@Override\n public Action update() {\n // draws the image \"image\" at position \"this.x\" and \"this.y\" and then returns null\n Thing.getProcessing().image(this.image, this.x, this.y);\n return null;\n }", "@Override\n\tpublic void update() {\n\n\t\ttimer++;\n\t\tupdatePlayer();\n\t\tupdateScreen();\n\t\tupdateLives();\n\n\t}", "public void update() {\n\t\tVec2 newPos = calculatePos();\n\t\t/* energy bar */\n\t\tfloat newEnergy = actor.getEnergy();\n\t\tfloat maxEnergy = actor.getEnergyLimit();\n\t\tenergy.setPosition(newPos.getX(), newPos.getY() + paddingHealth / Application.s_Viewport.getX(), newEnergy,\n\t\t\t\tmaxEnergy);\n\t\t/* health bar */\n\t\tfloat newHealth = actor.getHealth();\n\t\tfloat maxHealth = actor.getHealthLimit();\n\t\thealth.setPosition(newPos.getX(), newPos.getY() + paddingEnergy / Application.s_Viewport.getX(), newHealth,\n\t\t\t\tmaxHealth);\n\t\t/* name label */\n\t\tplayerName.setPosition(newPos.getX(), newPos.getY() + paddingName / Application.s_Viewport.getY());\n\t}", "private void update(){\n\n//\t\tif(frameSupplier != null){\n//\n//\t\t\tBufferedImage frame = frameSupplier.getFrame();\n//\n//\t\t\tvideoContainer.setIcon(new ImageIcon(frame));\n//\t\t\tvideoContainer.setText(null);\n//\n//\t\t}\n\n\t\tBufferedImage frame = camera.getImage();\n\t\tvideoContainer.setIcon(new ImageIcon(frame));\n\t\tvideoContainer.setText(null);\n\n\t\tgpioManager.setStatusColour(Color.getHSBColor((System.currentTimeMillis() % 3000) / 3000f, 1, 1));\n\n\t\tgpioManager.setShutterLEDState(System.currentTimeMillis() % 1000 > 500);\n\n\t\tjFrame.repaint();\n\t}", "@Override\n public void update(){\n getNextPosition();\n checkTileMapCollision();\n setPosition(xtemp, ytemp);\n animation.update();\n }", "@Override\n public void update(Input input) {\n\n tickCounter++;\n // This logic was taken from the sample solution\n if (this.endOfGame || input.wasPressed(Keys.ESCAPE)){\n Window.close();\n } else{\n BACKGROUND.drawFromTopLeft(0, 0);\n treasure.printImage();\n displayEntity(entityList);\n\n // Game proceeds as the speed of a tick\n if (tickCounter%10 == 0){\n player.printImage();\n\n // Player updates including the movement and setting her direction\n player.playerUpdate(this);\n\n // Bullet movement to a zombie\n if(player.getShooting()) {\n player.getBullet().printImage();\n player.getBullet().move();\n\n }\n\n\n } else {\n player.printImage();\n if(player.getShooting()){\n player.getBullet().printImage();\n }\n }\n }\n }", "private void updateSprite(){\n //facing front\n getImage().clear();\n getImage().drawImage(SHEET,-(frame%SHEET_W)*SPRITE_W,0);\n if(!goLeft) getImage().mirrorHorizontally();\n if (iframes>0&&iframes%10<5) setImage(SpriteHelper.makeWhite( getImage()));\n else frame = frame + 1 % (SHEET_H* SHEET_W);\n }", "public void update(){\n\t\tupdatePlayerPosition();\n\t\thandleCollisions();\n\t}", "public void update()\r\n\t{\r\n\t\tAndroidGame.camera.update(grid, player);\r\n\t\tplayer.update(grid);\r\n\t\tplayButton.update(player, grid);\r\n\t\tmenu.update(grid);\r\n\t\tgrid.update();\r\n\t\tif(grid.hasKey())\r\n\t\t\tgrid.getKey().update(player, grid.getFinish());\r\n\t\tif(levelEditingMode)//checking if the make button is clicked\r\n\t\t{\r\n\t\t\tif(makeButton.getBoundingRectangle().contains(Helper.PointerX(), Helper.PointerY()))\r\n\t\t\t{\r\n\t\t\t\tgrid.makeLevel();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdoorBubble.update();\r\n\t\t\tif(hasKey)\r\n\t\t\t\tkeyBubble.update();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void update() {\n\t\tticks++;\n\t\tswitch (state) {\n\t\tcase MENU:\n\t\tcase INTRO:\n\t\t\tupdateBackground();\n\t\t\tbreak;\n\n\t\tcase PLAYING:\n\t\t\tbreak;\n\t\tcase GAMEOVER:\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\n\t\t}\n\n\t\tWorld.update();\n\t\tScreen.update();\n\n\t}", "private void update() {\n for (Background bg : backgrounds) {\n bg.update(fps);\n }\n\n }", "public void update() {\n\t\tint xa = 0, ya = 0; \n\t\tif(game.getPlayer().x < 0){\n\t\t\txa -= 2;\n\t\t}else if(game.getPlayer().x + 32 > game.getScreen().width){\n\t\t\txa += 2;\n\t\t}\n\t\tif(game.getPlayer().y < 0){\n\t\t\tya -= 2;\n\t\t}else if(game.getPlayer().y + 32 > game.getScreen().height){\n\t\t\tya +=2;\n\t\t}\n\t\t\n\t\tif (xa != 0 || ya!= 0) move(xa, ya);\n\t\t\n\t\t//detects if the mouse is clicking on the interface\n\t\t/*if(Mouse.getButton() == 1 && Mouse.getX() >= 0 && Mouse.getX() <= 1200 && Mouse.getY() > 525 && Mouse.getY() < 675) {\n\t\t\tclicked = true;\n\t\t} else {\n\t\t\tclicked = false;\n\t\t}*/\n\t\t\n\t\treturn;\n\t}", "public void update()\n {\n // get the GridSquare object from the world\n Terrain terrain = game.getTerrain(row, column);\n boolean squareVisible = game.isVisible(row, column);\n boolean squareExplored = game.isExplored(row, column);\n \n \n Color color;\n ImageIcon image;\n \n switch ( terrain )\n {\n case SAND : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/sand.jpg\")); break;\n case FOREST : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\")); break;\n case WETLAND : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/forest.jpg\")); break;\n case SCRUB : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\")); break;\n case WATER : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/water.jpg\")); break;\n case BRICK : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/brick.jpg\")); break;\n default : image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/gray.jpg\")); break; \n }\n \n if ( squareExplored || squareVisible )\n {\n // Set the text of the JLabel according to the occupant\n lblText.setText(game.getOccupantStringRepresentation(row,column));\n lblText.setHorizontalTextPosition((int) CENTER_ALIGNMENT);\n lblText.setVerticalTextPosition((int) CENTER_ALIGNMENT);\n \n setVisible(true);\n \n //Kiwifruit\n if( row == 6 && column == 2) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/brick2.jpg\"));\n }\n \n if( row == 0 && column == 7) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubk.jpg\"));\n }\n \n if( row == 7 && column == 0 || row == 7 && column == 7 || row == 6 && column == 6 || row == 8 && column == 3 || row == 9 && column == 3 || row == 9 && column == 4 || row == 9 && column == 6) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassk.jpg\"));\n }\n \n if( row == 2 && column == 8) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubk.jpg\"));\n }\n //Trap\n if(\"T\".equals(game.getOccupantStringRepresentation(row, column))){\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/trap.jpg\"));\n lblText.setIcon(image);\n }\n //Food\n //if(game.getOccupantStringRepresentation(row, column) == \"apple\" ) {\n //image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scruba.jpg\"));\n //}\n if( row == 6 && column == 7) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scruba.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\"));\n }\n }\n \n if( row == 5 && column == 4) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassm.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n \n if( row == 2 && column == 4) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubs.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\"));\n }\n }\n \n if( row == 8 && column == 2) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grasso.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n //Predator\n if( row == 2 && column == 6) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubr.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrub.jpg\"));\n }\n }\n \n if( row == 9 && column == 7 ||row == 5 && column == 2 ) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassp.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n \n if( row == 3 && column == 4 || row == 6 && column == 4 ) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassr.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass.jpg\"));\n }\n }\n \n if( row == 4 && column == 1) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/waters.jpg\"));\n if(game.getOccupantStringRepresentation(row, column) == \"\") {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/water.jpg\"));\n }\n }\n //Mystical Creature\n if( row == 7 && column == 3) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/brickf.jpg\"));\n }\n \n if( row == 4 && column == 0) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/sandph.jpg\"));\n }\n \n if( row == 0 && column == 3) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/sandm.jpg\"));\n }\n \n if( row == 4 && column == 6 || row == 6 && column == 8) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/scrubp.jpg\"));\n }\n \n if( row == 8 && column == 8) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grassd.jpg\"));\n }\n \n \n //Hazard\n if( squareExplored && row == 2 && column == 2) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n\n \n if( squareExplored && row == 3 && column == 5 || squareExplored && row == 7 && column == 4 || squareExplored && row == 6 && column == 5 || squareExplored && row == 7 && column == 6) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n \n if( squareExplored && row == 1 && column == 4) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n \n if( squareExplored && row == 5 && column == 0) {\n image = new ImageIcon(getClass().getResource(\"/nz/ac/aut/ense701/image/grass2.jpg\"));\n lblText.setHorizontalAlignment((int) CENTER_ALIGNMENT);\n lblText.setVerticalAlignment((int) CENTER_ALIGNMENT);\n setVisible(true);\n }\n \n if ( squareVisible && !squareExplored ) \n {\n\n }\n lblText.setIcon(image);\n \n // set border colour according to \n // whether the player is in the grid square or not\n setBorder(game.hasPlayer(row,column) ? activeBorder : normalBorder);\n }\n else\n {\n lblText.setText(\"\");\n lblText.setIcon(null);\n setBorder(normalBorder);\n }\n }", "public void update( ) {\n\t\tdraw( );\n\t}", "public void update()\n {\n // get the GridSquare object from the world\n Terrain terrain = game.getTerrain(row, column);\n boolean squareVisible = game.isVisible(row, column);\n boolean squareExplored = game.isExplored(row, column);\n \n if (game.hasPlayer(row, column)){\n setImage2(\"images/player.png\");\n } else {\n player = null;\n }\n \n //ImageIcon image = null;//new ImageIcon(\"images/blank.png\");\n JLabel lblImage = new JLabel(); // create a new label to put an image on\n \n // call the method to set a new Buffered image to this panel\n \n if (squareVisible && image == null){\n switch ( terrain )\n {\n case SAND : setImage(\"images/sand.png\"); break;// = new ImageIcon(\"images/sand.png\"); break;\n case FOREST : setImage(\"images/forest.png\"); break;\n case WETLAND : setImage(\"images/wetland.png\"); break;\n case SCRUB : setImage(\"images/scrub.png\"); break;\n case WATER : setImage(\"images/water.png\"); break;\n default : image = null; break;\n }\n }\n \n// this is old code that use to change the graphics, trying BufferedImage instead of IconImage\n// switch ( terrain )\n// {\n// case SAND : setImage(\"images/forest.png\");// = new ImageIcon(\"images/sand.png\"); break;\n// case FOREST : image = new ImageIcon(\"images/forest.png\"); break;\n// case WETLAND : image = new ImageIcon(\"images/wetland.png\"); break;\n// case SCRUB : image = new ImageIcon(\"images/scrub.png\"); break;\n// case WATER : image = new ImageIcon(\"images/water.png\"); break;\n// default : image = null; break;\n// }\n \n if ( squareExplored || squareVisible )\n {\n // Set the text of the JLabel according to the occupant\n lblText.setText(game.getOccupantStringRepresentation(row,column)); \n }\n else {\n lblText.setText(\"\");\n image = null;\n }\n \n // if the game is not being played, remove the activeBorder (this fixes the multiple borders glitch)\n// if (game.getState() != GameState.PLAYING) {\n// setBorder(normalBorder);\n// } \n \n // set the redsquare border to active if the player is here\n setBorder(game.hasPlayer(row,column) ? activeBorder : normalBorder);\n \n\n // add the imageIcon to the gridsquare panel\n //lblImage.setIcon((Icon) image); // add the image to the label\n this.add(lblImage); // add the jlabel image to the current gridsquare\n \n JLabel lblImage2 = new JLabel(); \n this.add(lblImage2);\n \n }", "private void update() {\n setPieceType();\n initBackground(pieceIndex);\n }", "void updateScreen() {\n\t\tZone possibleNewZone = currentZone.getSpace(playerY, playerX).getNextZone();\n\t\tif (possibleNewZone != null) {\n\t\t\tString oldBGMusic = currentZone.getBackgroundMusic();\n\t\t\tcurrentZone = possibleNewZone;\n\t\t\tcurrentZone.enableZoneWarpSpaces();\n\t\t\tplayerX = currentZone.getPlayerStartX();\n\t\t\tplayerY = currentZone.getPlayerStartY();\n\t\t\t\n\n\t\t\tif (!oldBGMusic.equals(currentZone.getBackgroundMusic())) {\n\t\t\t\tmusicPlayer.stop();\n\t\t\t\tmusicPlayer.play(currentZone.getBackgroundMusic(), 100);\n\t\t\t}\n\t\t}\n\n\t\t// Update Panel Colors\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\t\t\t\tpanels[i][a].setBackground(currentZone.getSpace(i, a).getColor());\n\t\t\t}\n\t\t}\n\n\t\t// Update Labels\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\n\t\t\t\tlabels[i][a].setIcon(currentZone.getSpace(i, a).getPic());\n\t\t\t}\n\t\t}\n\t\t// Shows player in the new space\n\t\tlabels[playerY][playerX].setIcon(playerPic);\n\n\t\t// Shows enemy in the new space\n\t\t// labels[enemyY][enemyX].setIcon(enemyPic);\n\t}", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "public void update() {\n\n\t\tfollow();\n\t\tcreateHitBox(this);\n\t}", "public void update()\n\t{\n\t\tgrid.draw();\n\t\tmonsterSpawner.update();\n\t\tjewelSpawner.update();\n\t\t\n\t\tint numOnCenter = 0;\n\t\tfor (Player player : players)\n\t\t\tif (player.getSprite().onCenterArea())\n\t\t\t\tnumOnCenter++;\n\t\tfor (Player player : players) {\n\t\t\tif (numOnCenter < 2 && player.getSprite().onCenterArea())\n\t\t\t\tplayer.addScore(Clock.getSeconds());\n\t\t\tplayer.update();\n\t\t}\n\t\tfor (Iterator<Projectile> iterator = projectiles.iterator(); iterator.hasNext();) {\n\t\t\tProjectile projectile = iterator.next();\n\t\t\tif (!projectile.exists())\n\t\t\t\titerator.remove();\n\t\t\telse\n\t\t\t\tprojectile.update();\n\t\t}\n\t\t\n\t\tui.update();\n\t\tfor (int i = traps.size() - 1; i >= 0; i--)\n\t\t{\n\t\t\tTrap trap = traps.get(i);\n\t\t\ttrap.update();\n\t\t\tif (!trap.exists())\n\t\t\t{\n\t\t\t\ttraps.remove(i);\n\t\t\t\tgrid.removeEntity(trap.getCurrentTile());\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void update() \n\t{\n\t\tPoint loc = getLocationCopy();\n\t\tEnemy c = game.findNearestEnemy(loc);\n\t\tif (c == null)\n\t\t\treturn;\n\t\t\n\t\tif(c.getLocation().distance(loc) < 100 && game.getFrameCount() % 30 == 0)\n\t\t{\n\t\t\tFlyingSalt s = new FlyingSalt(game, loc, \n\t\t\t\t\t\t\t\t\tc.getLocation().x - position.x,\n\t\t\t\t\t\t\t\t\tc.getLocation().y - position.y);\n\t\t\tgame.addAnimatable(s);\n\t\t}\n\t}", "@Override\n public void updateImages()\n {\n image = ThemeManager.getInstance().getObstacleImage();\n blackedOutImage = ThemeManager.getInstance().getDisabledImage(\"obstacle\");\n }", "public void update(){\n \n // ADD YOU CODE HERE\n\n // Updating the number of steps label\n nbreOfStepsLabel.setText(\"Number of steps: \" + Integer.toString(gameModel.getNumberOfSteps()));\n \n // Updating the icons\n for (int i=0; i<gameModel.getHeigth(); i++) {\n\n for (int j=0; j<gameModel.getWidth(); j++) {\n\n board[i][j].setIconNumber(getIcon(j,i));\n \n } \n }\n\n pack();\n }", "public void updateInformation() {\r\n onFirstCycle = false;\r\n lastLocation = player.getLocation();\r\n preparedAppearance = false;\r\n }", "public void update() {\r\n gameObjects.update(playState);\r\n }", "private void update() {\n\t\tif (needsPreview) return; // gonna happen soon anyway\n\n\t\tTask<Image> task = new Task<Image>() {\n\t\t\t@Override\n\t\t\tprotected Image call() {\n\t\t\t\treturn plotter.get().getOutput();\n\t\t\t}\n\t\t};\n\t\ttask.setOnSucceeded(event -> showImg(task.getValue()));\n\n\t\tThread th = new Thread(task);\n\t\tth.setDaemon(true);\n\t\tth.start();\n\n\t}", "public void update() {\n\t\t\n\t}", "public void update() ;", "public void update() {\r\n if(selectedImage == null) {\r\n xStartProperty.setText(\"\");\r\n yStartProperty.setText(\"\");\r\n xEndProperty.setText(\"\");\r\n yEndProperty.setText(\"\");\r\n rotationProperty.setText(\"\");\r\n } else {\r\n xStartProperty.setText(String.valueOf(selectedImage.getXStart()));\r\n yStartProperty.setText(String.valueOf(selectedImage.getYStart()));\r\n xEndProperty.setText(String.valueOf(selectedImage.getXEnd()));\r\n yEndProperty.setText(String.valueOf(selectedImage.getYEnd()));\r\n rotationProperty.setText(String.valueOf(selectedImage.getRotation()));\r\n }\r\n }", "public void update() {}", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\r\n\t\t\r\n\t}", "public void update() {\n }", "public void update(Input input, int delta) throws SlickException {\r\n //set the moving downward speed of the scrolling background\r\n\t backgroudY1 += delta * BACKGROUDSPEED;\r\n\t\tbackgroudY2 += delta * BACKGROUDSPEED;\r\n backgroudY3 += delta * BACKGROUDSPEED;\r\n \r\n \r\n // call to update the current player position\r\n\t\tplayer.update(input, delta);\r\n\t\t\r\n\t\t// set this moves the off screen background images back to the top\r\n\t\t// so a cycle is created, and the background will scroll downworld \r\n\t\t// continuously \r\n\t if (backgroudY1> HEIGHT) {\r\n\t\t\tbackgroudY1 = HEIGHT-num_backgorunfImage*IMA_HEIGHT;\r\n\t\t\t\r\n\t\t}\r\n\t\tif (backgroudY2 > HEIGHT ){\r\n\t\t\tbackgroudY2 = HEIGHT-num_backgorunfImage*IMA_HEIGHT;\r\n\t\t\t\r\n\t\t}\r\n if (backgroudY3 > HEIGHT) {\r\n\t\t\tbackgroudY3 = HEIGHT-num_backgorunfImage*IMA_HEIGHT;\r\n\t\t\t\r\n\t\t}\r\n\r\n // create a laser when Space bar is pressed, and store is in an laser array\r\n if (input.isKeyPressed(Input.KEY_SPACE)) {\r\n \t// if the array 'lasers' and 'laserUsed' is full, copy the current\r\n \t// redeclare the array and increase its size of 1, and copy the \r\n \t// original array to the new one, by doing this, it won't run out\r\n \t// of lasers\r\n // as before, set the new boolean item in the 'laserUsed'to be true \r\n \tif(arr_size == lasers.length) {\r\n \t\tlasers = Arrays.copyOf(lasers, lasers.length+1);\r\n \tlaserUsed = Arrays.copyOf(laserUsed, laserUsed.length+1);\r\n \tlaserUsed[arr_size] = true;\r\n }\r\n lasers[arr_size] = new Laser(\"res/shot.png\", player.getX(), \r\n \t\tplayer.getY());\r\n arr_size++;\r\n \r\n }\r\n // check if the Player contact any enemy.\r\n for (int i = 0; i < enemy.length; i++) {\r\n // creating BoudingBox for enemy\r\n // and check if it intersects with the player,\r\n \t // call 'contactSprite()' if the intersect;\r\n \t enemy[i].setEnemyX(enemyX+enemyDistance*i);\r\n \t enemyBB = new BoundingBox(enemy[i].getEnemy(),\r\n \t \t\tenemyX+enemyDistance*i, enemyY); \r\n \r\n \t if(enemyBB.intersects(player.getBB())){\r\n \t \tenemy[i].contactSprite(player);\r\n \t }\r\n \t \r\n }\r\n \r\n // check if each bullet has contacted any enemy, if yes, it will not\r\n // be updated anymore\r\n for (int i = 0; i<arr_size; i++) {\r\n \t// only update the current laser if it has not made any contact to\r\n \t// any enemies\r\n \tif(laserUsed[i] == true) {\r\n \t\tlasers[i].update(delta);\r\n \t}\r\n \r\n \t// creating BoundingBox for the current laser\r\n \tlaserBB = new BoundingBox(lasers[i].getLaser(), lasers[i].getLaserX(),\r\n \t\t\tlasers[i].getLaserY());\r\n\t \t// check if each enemy makes contact with each laser, if they intersect,\r\n \t// set its boolean tracking array to be false, it will stop updating\r\n \tfor (int j = 0; j < enemy.length; j++) {\r\n\t \t\tenemyBB = new BoundingBox(enemy[j].getEnemy(), \r\n\t \t\t\t\tenemyX+enemyDistance*j, enemyY); \r\n\t \t\tif (enemyBB.intersects(laserBB)) {\r\n\t \t\t \r\n\t \t\t\tlaserUsed[i] = false;\r\n\t \t enemyKilled[j] = false;\r\n\t \t }\r\n\t \t}\r\n\t \t\r\n }\r\n \r\n \r\n \r\n\t}", "@Override\n public void update(Input input) {\n // Logic to update the game, as per specification must go here\n\n if (this.endOfGame || input.wasPressed(Keys.ESCAPE)) {\n Window.close();\n } else {\n // draw background\n BACKGROUND.drawFromTopLeft(0, 0);\n // update the frame\n if (tick > TICK_CYCLE) {\n tick = 1;\n // update player's state\n this.player.update(this);\n }\n\n tick++;\n\n // draw all the characters\n player.draw();\n treasure.draw();\n for (Point pos: zombies.keySet()) {\n Zombie zombie = zombies.get(pos);\n zombie.draw();\n }\n for (Point pos: sandwiches.keySet()) {\n Sandwich sandwich = sandwiches.get(pos);\n sandwich.draw();\n }\n if (player.getShot()) {\n player.getBullet().draw();\n }\n }\n\n\n }", "public void update() {\n MouseWrapper mouseWrapper = Engine.get().getMouseWrapper();\n bufferBuffer.clear();\n if (\n Engine.get().getEngineState() == Engine.EngineState.PLAY ||\n Engine.get().getEngineState() == Engine.EngineState.PAUSE\n ) {\n VectorD mousePos = new VectorD(\n mouseWrapper.getX(),\n mouseWrapper.getY()\n );\n VectorD difference = mousePos.diff(\n Engine.get().getGameState().getCursorFollow()\n );\n if (difference.length() > Constants.MOUSE_FOLLOW_CUTOFF) {\n difference =\n difference.multiplicate(Constants.MOUSE_FOLLOW_MULTIPLIER);\n }\n Engine\n .get()\n .getGameState()\n .setCursorFollow(\n Engine\n .get()\n .getGameState()\n .getCursorFollow()\n .sum(difference)\n );\n\n Entity player = EntityUtil.getPlayer(\n Engine.get().getEntityStream()\n );\n TransformationStorage playerPos = (TransformationStorage) player.getComponent(\n SpaxelComponent.TRANSFORMATION\n );\n\n Engine\n .get()\n .getGameState()\n .setScreenOffset(calculateScreenOffset(playerPos));\n }\n renderEntities();\n\n Engine.get().getCurrentUI().render(bufferBuffer);\n\n master.render(bufferBuffer);\n }", "public void updateImage() {\n Graphics2D g = img.createGraphics();\n for (Circle gene : genes) {\n gene.paint(g);\n }\n g.dispose();\n }", "public void update() {\n\t\tupdate(1);\n\t}", "@Override\n\tpublic boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {\n\t\treturn false;\n\t}", "public static void update() {\n\t\t\n\t\t// Fill the background for every call\n\t\tUtility.background(Utility.color(235, 213, 186));\n\t\t\n\t\t// Create 10 new random particles\n\t\tcreateNewParticles(10);\n\t\t\n\t\t// Track every particle in the array then update their feature\n\t\tfor (int i = 0; i < particles.length; i++) {\n\t\t\tif (particles[i] != null) {\n\t\t\t\tupdateParticle(i);\n\t\t\t}\n\n\t\t}\n\n\t}", "public void update(){\n\t\tif (!VisualizerMain.selectedRun.equals(\"\")){\n\t\t\tupdateEpochNum();\n\t\t\tupdateParticles();\n\t\t\tthis.repaint();\n\t\t}\n\t\t\n\t}", "public void update(){\r\n }", "@Override\n\tpublic boolean imageUpdate(Image arg0, int arg1, int arg2, int arg3, int arg4, int arg5) {\n\t\treturn false;\n\t}", "public void update(ArrayList<String> pressedKeys) {\n\n\t\tcamera.setXPos(ghost.getXPos() - VIEWPORT_SIZE_X / 2);\n\t\tcamera.setYPos(ghost.getYPos() - VIEWPORT_SIZE_Y / 2);\n\t\tif (camera.getXPos() > offsetMaxX) {\n\t\t\tcamera.setXPos(offsetMaxX);\n\t\t} else if (camera.getXPos() < offsetMinX) {\n\t\t\tcamera.setXPos(offsetMinX);\n\t\t}\n\t\tif (camera.getYPos() > offsetMaxY) {\n\t\t\tcamera.setYPos(offsetMaxY);\n\t\t} else if (camera.getXPos() < offsetMinY) {\n\t\t\tcamera.setYPos(offsetMinY);\n\t\t}\n\n\t\thealth.setXPos((ghost.getXPos() - (VIEWPORT_SIZE_X / 2)));\n\t\thealth.setYPos((ghost.getYPos() - VIEWPORT_SIZE_Y / 2));\n\t\tif (health.getXPos() > offsetMaxX) {\n\t\t\thealth.setXPos(offsetMaxX);\n\t\t} else if (health.getXPos() < offsetMinX) {\n\t\t\thealth.setXPos(offsetMinX);\n\t\t}\n\t\tif (health.getYPos() > offsetMaxY) {\n\t\t\thealth.setYPos(offsetMaxY);\n\t\t} else if (health.getXPos() < offsetMinY) {\n\t\t\thealth.setYPos(offsetMinY);\n\t\t}\n\t\tsuper.update(pressedKeys);\n\n\t\thealthBar.setXPos((ghost.getXPos() - VIEWPORT_SIZE_X / 2) + 10);\n\t\thealthBar.setYPos(ghost.getYPos() - VIEWPORT_SIZE_Y / 2);\n\t\tif (healthBar.getXPos() > offsetMaxX) {\n\t\t\thealthBar.setXPos(offsetMaxX);\n\t\t} else if (healthBar.getXPos() < offsetMinX) {\n\t\t\thealthBar.setXPos(offsetMinX);\n\t\t}\n\t\tif (healthBar.getYPos() > offsetMaxY) {\n\t\t\thealthBar.setYPos(offsetMaxY);\n\t\t} else if (healthBar.getXPos() < offsetMinY) {\n\t\t\thealthBar.setYPos(offsetMinY);\n\t\t}\n\t\tsuper.update(pressedKeys);\n\n\t\tgameOver.setXPos(ghost.getXPos() - VIEWPORT_SIZE_X / 2);\n\t\tgameOver.setYPos(ghost.getYPos() - VIEWPORT_SIZE_Y / 2);\n\t\tif (gameOver.getXPos() > offsetMaxX) {\n\t\t\tgameOver.setXPos(offsetMaxX);\n\t\t} else if (gameOver.getXPos() < offsetMinX) {\n\t\t\tgameOver.setXPos(offsetMinX);\n\t\t}\n\t\tif (gameOver.getYPos() > offsetMaxY) {\n\t\t\tgameOver.setYPos(offsetMaxY);\n\t\t} else if (gameOver.getXPos() < offsetMinY) {\n\t\t\tgameOver.setYPos(offsetMinY);\n\t\t}\n\t\tsuper.update(pressedKeys);\n\t\t\n\t\tgameWon.setXPos(ghost.getXPos() - VIEWPORT_SIZE_X / 2);\n\t\tgameWon.setYPos(ghost.getYPos() - VIEWPORT_SIZE_Y / 2);\n\t\tif (gameWon.getXPos() > offsetMaxX) {\n\t\t\tgameWon.setXPos(offsetMaxX);\n\t\t} else if (gameWon.getXPos() < offsetMinX) {\n\t\t\tgameWon.setXPos(offsetMinX);\n\t\t}\n\t\tif (gameWon.getYPos() > offsetMaxY) {\n\t\t\tgameWon.setYPos(offsetMaxY);\n\t\t} else if (gameWon.getXPos() < offsetMinY) {\n\t\t\tgameWon.setYPos(offsetMinY);\n\t\t}\n\t\tsuper.update(pressedKeys);\n\n\t\tmenu2.setXPos(ghost.getXPos() - VIEWPORT_SIZE_X / 2);\n\t\tmenu2.setYPos(ghost.getYPos() - VIEWPORT_SIZE_Y / 2);\n\t\tif (menu2.getXPos() > offsetMaxX) {\n\t\t\tmenu2.setXPos(offsetMaxX);\n\t\t} else if (menu2.getXPos() < offsetMinX) {\n\t\t\tmenu2.setXPos(offsetMinX);\n\t\t}\n\t\tif (menu2.getYPos() > offsetMaxY) {\n\t\t\tmenu2.setYPos(offsetMaxY);\n\t\t} else if (menu2.getXPos() < offsetMinY) {\n\t\t\tmenu2.setYPos(offsetMinY);\n\t\t}\n\n\t\tif (isLoading == true) {\n\t\t\tloadingScreen.setXPos(ghost.getXPos() - VIEWPORT_SIZE_X / 2);\n\t\t\tloadingScreen.setYPos(ghost.getYPos() - VIEWPORT_SIZE_Y / 2);\n\t\t\tif (loadingScreen.getXPos() > offsetMaxX) {\n\t\t\t\tloadingScreen.setXPos(offsetMaxX);\n\t\t\t} else if (loadingScreen.getXPos() < offsetMinX) {\n\t\t\t\tloadingScreen.setXPos(offsetMinX);\n\t\t\t}\n\t\t\tif (loadingScreen.getYPos() > offsetMaxY) {\n\t\t\t\tloadingScreen.setYPos(offsetMaxY);\n\t\t\t} else if (loadingScreen.getXPos() < offsetMinY) {\n\t\t\t\tloadingScreen.setYPos(offsetMinY);\n\t\t\t}\n\t\t}\n\n\t\tif (isLoading == false) {\n\t\t\tloadingScreen.setVisible(false);\n\t\t\tif (willPlayMusic == true) {\n\t\t\t\tSystem.out.println(\"playing music\");\n\t\t\t\tplayMusic();\n\t\t\t\twillPlayMusic = false;\n\t\t\t}\n\n\t\t\ttitleScreen.setXPos(ghost.getXPos() - VIEWPORT_SIZE_X / 2);\n\t\t\ttitleScreen.setYPos(ghost.getYPos() - VIEWPORT_SIZE_Y / 2);\n\t\t\tif (titleScreen.getXPos() > offsetMaxX) {\n\t\t\t\ttitleScreen.setXPos(offsetMaxX);\n\t\t\t} else if (titleScreen.getXPos() < offsetMinX) {\n\t\t\t\ttitleScreen.setXPos(offsetMinX);\n\t\t\t}\n\t\t\tif (titleScreen.getYPos() > offsetMaxY) {\n\t\t\t\ttitleScreen.setYPos(offsetMaxY);\n\t\t\t} else if (titleScreen.getXPos() < offsetMinY) {\n\t\t\t\ttitleScreen.setYPos(offsetMinY);\n\t\t\t}\n\t\t}\n\n\t\tmenu3.setXPos(ghost.getXPos() - VIEWPORT_SIZE_X / 2);\n\t\tmenu3.setYPos(ghost.getYPos() - VIEWPORT_SIZE_Y / 2);\n\t\tif (menu3.getXPos() > offsetMaxX) {\n\t\t\tmenu3.setXPos(offsetMaxX);\n\t\t} else if (menu3.getXPos() < offsetMinX) {\n\t\t\tmenu3.setXPos(offsetMinX);\n\t\t}\n\t\tif (menu3.getYPos() > offsetMaxY) {\n\t\t\tmenu3.setYPos(offsetMaxY);\n\t\t} else if (menu3.getXPos() < offsetMinY) {\n\t\t\tmenu3.setYPos(offsetMinY);\n\t\t}\n\n\t\tmenu4.setXPos(ghost.getXPos() - VIEWPORT_SIZE_X / 2);\n\t\tmenu4.setYPos(ghost.getYPos() - VIEWPORT_SIZE_Y / 2);\n\t\tif (menu4.getXPos() > offsetMaxX) {\n\t\t\tmenu4.setXPos(offsetMaxX);\n\t\t} else if (menu4.getXPos() < offsetMinX) {\n\t\t\tmenu4.setXPos(offsetMinX);\n\t\t}\n\t\tif (menu4.getYPos() > offsetMaxY) {\n\t\t\tmenu4.setYPos(offsetMaxY);\n\t\t} else if (menu4.getXPos() < offsetMinY) {\n\t\t\tmenu4.setYPos(offsetMinY);\n\t\t}\n\n\t\tmenu5.setXPos(ghost.getXPos() - VIEWPORT_SIZE_X / 2);\n\t\tmenu5.setYPos(ghost.getYPos() - VIEWPORT_SIZE_Y / 2);\n\t\tif (menu5.getXPos() > offsetMaxX) {\n\t\t\tmenu5.setXPos(offsetMaxX);\n\t\t} else if (menu5.getXPos() < offsetMinX) {\n\t\t\tmenu5.setXPos(offsetMinX);\n\t\t}\n\t\tif (menu5.getYPos() > offsetMaxY) {\n\t\t\tmenu5.setYPos(offsetMaxY);\n\t\t} else if (menu5.getXPos() < offsetMinY) {\n\t\t\tmenu5.setYPos(offsetMinY);\n\t\t}\n\n\t\tcamera.setXPos(ghost.getXPos() - VIEWPORT_SIZE_X / 2);\n\t\tcamera.setYPos(ghost.getYPos() - VIEWPORT_SIZE_Y / 2);\n\t\tif (camera.getXPos() > offsetMaxX) {\n\t\t\tcamera.setXPos(offsetMaxX);\n\t\t} else if (camera.getXPos() < offsetMinX) {\n\t\t\tcamera.setXPos(offsetMinX);\n\t\t}\n\t\tif (camera.getYPos() > offsetMaxY) {\n\t\t\tcamera.setYPos(offsetMaxY);\n\t\t} else if (camera.getXPos() < offsetMinY) {\n\t\t\tcamera.setYPos(offsetMinY);\n\t\t}\n\t\tsuper.update(pressedKeys);\n\t\tsuper.update(pressedKeys);\n\n\t\tif (ghost != null) {\n\t\t\tif (fruit != null) {\n\t\t\t\tif (enemy != null) {\n\n\t\t\t\t\tif (gtr1 == true) {\n\n\t\t\t\t\t\tif (atLevelOne) { // so if we are in level one, the\n\t\t\t\t\t\t\t\t\t\t\t// enemy will go to a certain mark\n\t\t\t\t\t\t\tif (enemyMoveCounter0a < fLevelOnePath1.size()) {\n\t\t\t\t\t\t\t\tCell moveTo = fLevelOnePath1\n\t\t\t\t\t\t\t\t\t\t.get(enemyMoveCounter0a);\n\t\t\t\t\t\t\t\tint xm = moveTo.i;\n\t\t\t\t\t\t\t\tint ym = moveTo.j;\n\t\t\t\t\t\t\t\tenemy.setXPos(xm);\n\t\t\t\t\t\t\t\tenemy.setYPos(ym);\n\t\t\t\t\t\t\t\tenemy.goBackward(true); // THIS IS WHERE TO TELL\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// THE SPRITE TO CHANGE\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// DIRECTIONS\n\t\t\t\t\t\t\t\t// enemyMoveCounter+=1;\n\t\t\t\t\t\t\t\tenemyMoveCounter0a += 2; // increases the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// owner's speed\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (enemyMoveCounter0a >= fLevelOnePath1.size()) {\n\t\t\t\t\t\t\t\tenemyMoveCounter0a = 1;\n\t\t\t\t\t\t\t\tgtr0b = true;\n\t\t\t\t\t\t\t\tgtr1 = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tif (enemyMoveCounter < fPath1.size()) {\n\t\t\t\t\t\t\t\tCell moveTo = fPath1.get(enemyMoveCounter);\n\t\t\t\t\t\t\t\tint xm = moveTo.i;\n\t\t\t\t\t\t\t\tint ym = moveTo.j;\n\t\t\t\t\t\t\t\tenemy.setXPos(xm);\n\t\t\t\t\t\t\t\tenemy.setYPos(ym);\n\t\t\t\t\t\t\t\tenemy.goBackward(true); // THIS IS WHERE TO TELL\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// THE SPRITE TO CHANGE\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// DIRECTIONS\n\t\t\t\t\t\t\t\t// enemyMoveCounter+=1;\n\t\t\t\t\t\t\t\tenemyMoveCounter += 2; // increases the owner's\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// speed\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (enemyMoveCounter >= fPath1.size()) {\n\t\t\t\t\t\t\t\tenemyMoveCounter = 1;\n\t\t\t\t\t\t\t\tgtr1 = false;\n\t\t\t\t\t\t\t\tgtr2 = true;\n\t\t\t\t\t\t\t\tgtr3 = false;\n\t\t\t\t\t\t\t\tgtr4 = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (gtr0b) {\n\t\t\t\t\t\tif (enemyMoveCounter0b < levelOnePath1.size()) {\n\t\t\t\t\t\t\tCell moveTo = levelOnePath1.get(enemyMoveCounter0b);\n\t\t\t\t\t\t\tint xm = moveTo.i;\n\t\t\t\t\t\t\tint ym = moveTo.j;\n\t\t\t\t\t\t\tenemy.setXPos(xm);\n\t\t\t\t\t\t\tenemy.setYPos(ym);\n\n\t\t\t\t\t\t\tenemy.goForward(true); // THIS IS WHERE TO TELL THE\n\t\t\t\t\t\t\t\t\t\t\t\t\t// SPRITE TO CHANGE\n\t\t\t\t\t\t\t\t\t\t\t\t\t// DIRECTIONS\n\t\t\t\t\t\t\t// enemyMoveCounter+=1;\n\t\t\t\t\t\t\tenemyMoveCounter0b += 2; // increases the owner's\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// speed\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (enemyMoveCounter0b >= levelOnePath1.size()) {\n\t\t\t\t\t\t\tenemyMoveCounter0b = 1;\n\t\t\t\t\t\t\tgtr1 = true;\n\t\t\t\t\t\t\tgtr0b = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (gtr2 == true) {\n\t\t\t\t\t\tif (enemyMoveCounter2 < fPath2.size()) {\n\t\t\t\t\t\t\tCell moveTo = fPath2.get(enemyMoveCounter2);\n\t\t\t\t\t\t\tint xm = moveTo.i;\n\t\t\t\t\t\t\tint ym = moveTo.j;\n\t\t\t\t\t\t\tenemy.setXPos(xm);\n\t\t\t\t\t\t\tenemy.setYPos(ym);\n\t\t\t\t\t\t\tenemy.goForward(true); // THIS IS WHERE TO TELL THE\n\t\t\t\t\t\t\t// SPRITE TO CHANGE\n\t\t\t\t\t\t\t// DIRECTIONS\n\t\t\t\t\t\t\tenemyMoveCounter2 += 5; // makes the owner move\n\t\t\t\t\t\t\t// faster\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (enemyMoveCounter2 >= fPath2.size()) {\n\t\t\t\t\t\t\tenemyMoveCounter2 = 1;\n\n\t\t\t\t\t\t\tif (atLevelTwo) {\n\t\t\t\t\t\t\t\tgtr1 = false;\n\t\t\t\t\t\t\t\tgtr2 = false;\n\t\t\t\t\t\t\t\tgtr3 = false;\n\t\t\t\t\t\t\t\tgtr4 = false;\n\t\t\t\t\t\t\t\tgtr7 = true;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (atLevelThree || atLevelFour || atLevelFive) {\n\t\t\t\t\t\t\t\tgtr2 = false;\n\t\t\t\t\t\t\t\tgtr1 = false;\n\t\t\t\t\t\t\t\tgtr3 = true;\n\t\t\t\t\t\t\t\tgtr4 = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (gtr3 == true) {\n\t\t\t\t\t\tif (enemyMoveCounter3 < fPath3.size()) {\n\t\t\t\t\t\t\tCell moveTo = fPath3.get(enemyMoveCounter3);\n\t\t\t\t\t\t\tint xm = moveTo.i;\n\t\t\t\t\t\t\tint ym = moveTo.j;\n\t\t\t\t\t\t\tenemy.setXPos(xm);\n\t\t\t\t\t\t\tenemy.setYPos(ym);\n\t\t\t\t\t\t\tenemy.goForward(true);\n\t\t\t\t\t\t\tenemyMoveCounter3 += 3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (enemyMoveCounter3 >= fPath3.size()) {\n\t\t\t\t\t\t\tenemyMoveCounter3 = 1;\n\t\t\t\t\t\t\tif (atLevelThree) {\n\t\t\t\t\t\t\t\tgtr2 = false;\n\t\t\t\t\t\t\t\tgtr1 = false;\n\t\t\t\t\t\t\t\tgtr3 = false;\n\t\t\t\t\t\t\t\tgtr4 = false;\n\t\t\t\t\t\t\t\tgtr6 = true;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (atLevelFour || atLevelFive) {\n\t\t\t\t\t\t\t\tgtr2 = false;\n\t\t\t\t\t\t\t\tgtr1 = false;\n\t\t\t\t\t\t\t\tgtr3 = false;\n\t\t\t\t\t\t\t\tgtr4 = true;\n\t\t\t\t\t\t\t\tgtr6 = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (gtr4 == true) {\n\t\t\t\t\t\tif (enemyMoveCounter4 < fPath4.size()) {\n\t\t\t\t\t\t\tCell moveTo = fPath4.get(enemyMoveCounter4);\n\t\t\t\t\t\t\tint xm = moveTo.i;\n\t\t\t\t\t\t\tint ym = moveTo.j;\n\t\t\t\t\t\t\tenemy.setXPos(xm);\n\t\t\t\t\t\t\tenemy.setYPos(ym);\n\t\t\t\t\t\t\tenemy.goForward(true); // THIS IS WHERE TO TELL THE\n\t\t\t\t\t\t\t\t\t\t\t\t\t// SPRITE TO CHANGE\n\t\t\t\t\t\t\t\t\t\t\t\t\t// DIRECTIONS\n\t\t\t\t\t\t\tenemyMoveCounter4 += 3; // makes the owner move\n\t\t\t\t\t\t\t\t\t\t\t\t\t// faster\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (enemyMoveCounter4 >= fPath4.size()) {\n\t\t\t\t\t\t\tenemyMoveCounter4 = 1;\n\t\t\t\t\t\t\tgtr2 = false;\n\t\t\t\t\t\t\tgtr1 = false;\n\t\t\t\t\t\t\tgtr3 = false;\n\t\t\t\t\t\t\tgtr4 = false;\n\t\t\t\t\t\t\tgtr5 = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (gtr5 == true) {\n\t\t\t\t\t\tif (enemyMoveCounter5 < path4.size()) {\n\t\t\t\t\t\t\tCell moveTo = path4.get(enemyMoveCounter5);\n\t\t\t\t\t\t\tint xm = moveTo.i;\n\t\t\t\t\t\t\tint ym = moveTo.j;\n\t\t\t\t\t\t\tenemy.setXPos(xm);\n\t\t\t\t\t\t\tenemy.setYPos(ym);\n\t\t\t\t\t\t\tenemy.goBackward(true); // THIS IS WHERE TO TELL THE\n\t\t\t\t\t\t\t\t\t\t\t\t\t// SPRITE TO CHANGE\n\t\t\t\t\t\t\t\t\t\t\t\t\t// DIRECTIONS\n\t\t\t\t\t\t\tenemyMoveCounter5 += 3; // makes the owner move\n\t\t\t\t\t\t\t\t\t\t\t\t\t// faster\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (enemyMoveCounter5 >= path4.size()) {\n\t\t\t\t\t\t\tenemyMoveCounter5 = 1;\n\t\t\t\t\t\t\tgtr2 = false;\n\t\t\t\t\t\t\tgtr1 = false;\n\t\t\t\t\t\t\tgtr3 = false;\n\t\t\t\t\t\t\tgtr4 = false;\n\t\t\t\t\t\t\tgtr5 = false;\n\t\t\t\t\t\t\tgtr6 = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (gtr6 == true) {\n\t\t\t\t\t\tif (enemyMoveCounter6 < path3.size()) {\n\t\t\t\t\t\t\tCell moveTo = path3.get(enemyMoveCounter6);\n\t\t\t\t\t\t\tint xm = moveTo.i;\n\t\t\t\t\t\t\tint ym = moveTo.j;\n\t\t\t\t\t\t\tenemy.setXPos(xm);\n\t\t\t\t\t\t\tenemy.setYPos(ym);\n\t\t\t\t\t\t\tenemy.goBackward(true); // THIS IS WHERE TO TELL THE\n\t\t\t\t\t\t\t\t\t\t\t\t\t// SPRITE TO CHANGE\n\t\t\t\t\t\t\t\t\t\t\t\t\t// DIRECTIONS\n\t\t\t\t\t\t\tenemyMoveCounter6 += 5; // makes the owner move\n\t\t\t\t\t\t\t\t\t\t\t\t\t// faster\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (enemyMoveCounter6 >= path3.size()) {\n\t\t\t\t\t\t\tenemyMoveCounter6 = 1;\n\t\t\t\t\t\t\tgtr2 = false;\n\t\t\t\t\t\t\tgtr1 = false;\n\t\t\t\t\t\t\tgtr3 = false;\n\t\t\t\t\t\t\tgtr4 = false;\n\t\t\t\t\t\t\tgtr5 = false;\n\t\t\t\t\t\t\tgtr6 = false;\n\t\t\t\t\t\t\tgtr7 = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (gtr7 == true) {\n\t\t\t\t\t\tif (enemyMoveCounter7 < path2.size()) {\n\t\t\t\t\t\t\tCell moveTo = path2.get(enemyMoveCounter7);\n\t\t\t\t\t\t\tint xm = moveTo.i;\n\t\t\t\t\t\t\tint ym = moveTo.j;\n\t\t\t\t\t\t\tenemy.setXPos(xm);\n\t\t\t\t\t\t\tenemy.setYPos(ym);\n\t\t\t\t\t\t\tenemy.goForward(true); // THIS IS WHERE TO TELL THE\n\t\t\t\t\t\t\t\t\t\t\t\t\t// SPRITE TO CHANGE\n\t\t\t\t\t\t\t\t\t\t\t\t\t// DIRECTIONS\n\t\t\t\t\t\t\tenemyMoveCounter7 += 5; // makes the owner move\n\t\t\t\t\t\t\t\t\t\t\t\t\t// faster\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (enemyMoveCounter7 >= path2.size()) {\n\t\t\t\t\t\t\tenemyMoveCounter7 = 1;\n\t\t\t\t\t\t\tgtr1 = false;\n\t\t\t\t\t\t\tgtr2 = false;\n\t\t\t\t\t\t\tgtr3 = false;\n\t\t\t\t\t\t\tgtr4 = false;\n\t\t\t\t\t\t\tgtr5 = false;\n\t\t\t\t\t\t\tgtr6 = false;\n\t\t\t\t\t\t\tgtr7 = false;\n\t\t\t\t\t\t\tgtr8 = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (gtr8 == true) {\n\t\t\t\t\t\tif (enemyMoveCounter8 < path1.size()) {\n\t\t\t\t\t\t\tCell moveTo = path1.get(enemyMoveCounter8);\n\t\t\t\t\t\t\tint xm = moveTo.i;\n\t\t\t\t\t\t\tint ym = moveTo.j;\n\t\t\t\t\t\t\tenemy.setXPos(xm);\n\t\t\t\t\t\t\tenemy.setYPos(ym);\n\t\t\t\t\t\t\tenemy.goForward(true); // THIS IS WHERE TO TELL THE\n\t\t\t\t\t\t\t\t\t\t\t\t\t// SPRITE TO CHANGE\n\t\t\t\t\t\t\t\t\t\t\t\t\t// DIRECTIONS\n\t\t\t\t\t\t\tenemyMoveCounter8 += 3; // makes the owner move\n\t\t\t\t\t\t\t\t\t\t\t\t\t// faster\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (enemyMoveCounter8 >= path1.size()) {\n\t\t\t\t\t\t\tenemyMoveCounter8 = 1;\n\t\t\t\t\t\t\tgtr1 = true;\n\t\t\t\t\t\t\tgtr2 = false;\n\t\t\t\t\t\t\tgtr3 = false;\n\t\t\t\t\t\t\tgtr4 = false;\n\t\t\t\t\t\t\tgtr5 = false;\n\t\t\t\t\t\t\tgtr6 = false;\n\t\t\t\t\t\t\tgtr7 = false;\n\t\t\t\t\t\t\tgtr8 = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t/*************** END OFENEMY'S PATHS CODE *****************/\n\n\t\t\t\t\tjuggler.nextFrame();\n\n\t\t\t\t\tfor (Sprite wall : collDects) {\n\n\t\t\t\t\t\tif (ghost.collidesWith(wall) && ghostAbilities == false) {\n\n\t\t\t\t\t\t\t// System.out.println(wall.getId());\n\t\t\t\t\t\t\tcollisionOccured = true;\n\n\t\t\t\t\t\t\tif (ghost.getRightHitBox().intersects(\n\t\t\t\t\t\t\t\t\twall.getHitBox())) {\n\t\t\t\t\t\t\t\t// System.out.println(\"collision from the right\");\n\t\t\t\t\t\t\t\tstopR = true;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (ghost.getLeftHitBox().intersects(\n\t\t\t\t\t\t\t\t\twall.getHitBox())) {\n\t\t\t\t\t\t\t\t// System.out.println(\"collision from the left\");\n\t\t\t\t\t\t\t\tstopL = true;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (ghost.getBottomHitBox().intersects(\n\t\t\t\t\t\t\t\t\twall.getHitBox())) {\n\t\t\t\t\t\t\t\t// System.out.println(\"collision from the bottom\");\n\t\t\t\t\t\t\t\tstopD = true;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (ghost.getTopHitBox().intersects(\n\t\t\t\t\t\t\t\t\twall.getHitBox())) {\n\t\t\t\t\t\t\t\t// System.out.println(\"collision from the top\");\n\t\t\t\t\t\t\t\tstopU = true;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (foodCollected == maxFood) {\n\t\t\t\t\t\t// healthWidth = 0;\n\t\t\t\t\t\tif (atLevelFive == false) {\n\t\t\t\t\t\t\tswitchLevels();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse gameWon.setVisible(true);\n\t\t\t\t\t\t// else { //display you've won sprite}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (collisionOccured == false) {\n\t\t\t\t\t\tstopL = false;\n\t\t\t\t\t\tstopU = false;\n\t\t\t\t\t\tstopR = false;\n\t\t\t\t\t\tstopD = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (collisionOccured == true) {\n\t\t\t\t\t\tcollisionOccured = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (ghostAbilities == true) {\n\t\t\t\t\t\tstopL = false;\n\t\t\t\t\t\tstopU = false;\n\t\t\t\t\t\tstopR = false;\n\t\t\t\t\t\tstopD = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (myQuestManager.questCompleted) {\n\t\t\t\t\t\tif (fruitCollected == true) {\n\t\t\t\t\t\t\tfruitTween.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (fruitCollectedL2 == true) {\n\t\t\t\t\t\t\tfruitTweenL2.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (fruitCollectedL3 == true) {\n\t\t\t\t\t\t\tfruitTweenL3.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (fruitCollectedL4 == true) {\n\t\t\t\t\t\t\tfruitTweenL4.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (fruitCollectedL5 == true) {\n\t\t\t\t\t\t\tfruitTweenL5.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (fruitCollectedL52 == true) {\n\t\t\t\t\t\t\tfruitTweenL52.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (cherryCollected == true) {\n\t\t\t\t\t\t\tcherryTween.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (pearCollected == true) {\n\t\t\t\t\t\t\tpearTween.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (pearCollectedL4 == true) {\n\t\t\t\t\t\t\tSystem.out.println(\"pear L4 is tweening\");\n\t\t\t\t\t\t\tpearTweenL4.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (pearCollectedL5 == true) {\n\t\t\t\t\t\t\tpearTweenL5.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (pearCollectedL42 == true) {\n\t\t\t\t\t\t\tSystem.out.println(\"pear L4.2 is tweening\");\n\t\t\t\t\t\t\tpearTweenL42.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (pearCollectedL52 == true) {\n\t\t\t\t\t\t\tpearTweenL52.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (cherryCollectedL2 == true) {\n\t\t\t\t\t\t\tcherryTweenL2.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (cherryCollectedL3 == true) {\n\t\t\t\t\t\t\tcherryTweenL3.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (cherryCollectedL4 == true) {\n\t\t\t\t\t\t\tcherryTweenL4.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (cherryCollectedL5 == true) {\n\t\t\t\t\t\t\tcherryTweenL3.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (cherryCollectedL32 == true) {\n\t\t\t\t\t\t\tcherryTweenL32\n\t\t\t\t\t\t\t\t\t.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (cherryCollectedL42 == true) {\n\t\t\t\t\t\t\tcherryTweenL42\n\t\t\t\t\t\t\t\t\t.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (cherryCollectedL52 == true) {\n\t\t\t\t\t\t\tcherryTweenL52\n\t\t\t\t\t\t\t\t\t.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (strawberryCollectedL2 == true\n\t\t\t\t\t\t\t\t&& !gameOver.isVisible()) {\n\t\t\t\t\t\t\tstrawberryTweenL2\n\t\t\t\t\t\t\t\t\t.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (strawberryCollectedL3 == true\n\t\t\t\t\t\t\t\t&& !gameOver.isVisible()) {\n\t\t\t\t\t\t\tstrawberryTweenL3\n\t\t\t\t\t\t\t\t\t.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (strawberryCollectedL4 == true\n\t\t\t\t\t\t\t\t&& !gameOver.isVisible()) {\n\t\t\t\t\t\t\tstrawberryTweenL4\n\t\t\t\t\t\t\t\t\t.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (strawberryCollectedL5 == true\n\t\t\t\t\t\t\t\t&& !gameOver.isVisible()) {\n\t\t\t\t\t\t\tstrawberryTweenL5\n\t\t\t\t\t\t\t\t\t.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (strawberryCollectedL42 == true\n\t\t\t\t\t\t\t\t&& !gameOver.isVisible()) {\n\t\t\t\t\t\t\tstrawberryTweenL42\n\t\t\t\t\t\t\t\t\t.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (strawberryCollectedL52 == true\n\t\t\t\t\t\t\t\t&& !gameOver.isVisible()) {\n\t\t\t\t\t\t\tstrawberryTweenL52\n\t\t\t\t\t\t\t\t\t.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (bananaCollectedL2 == true) {\n\t\t\t\t\t\t\t//System.out.println(\"tweening\");\n\t\t\t\t\t\t\tbananaTweenL2.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (bananaCollectedL3 == true) {\n\t\t\t\t\t\t\tbananaTweenL3.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (bananaCollectedL4 == true) {\n\t\t\t\t\t\t\tSystem.out.println(\"tweening\");\n\t\t\t\t\t\t\tbananaTweenL4.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (bananaCollectedL5 == true) {\n\t\t\t\t\t\t\tbananaTweenL5.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (bananaCollectedL52 == true) {\n\t\t\t\t\t\t\tbananaTweenL52.doTween(myQuestManager.tweenComplete);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// questConfirm.setVisible(true);\n\t\t\t\t}\n\n\t\t\t\tif (pressedKeys.contains(\"S\") && titleScreen.isVisible()) {\n\t\t\t\t\tSystem.out.println(\"got through menu and S pressed\");\n\t\t\t\t\ttitleScreen.setVisible(false);\n\t\t\t\t\ttitleScreenActive = false;\n\t\t\t\t}\n\n\t\t\t\tif ((pressedKeys.contains(\"N\") && menu2.isVisible())\n\t\t\t\t\t\t|| (pressedKeys.contains(\"N\") && menu3.isVisible())\n\t\t\t\t\t\t|| (pressedKeys.contains(\"N\") && menu4.isVisible())\n\t\t\t\t\t\t|| (pressedKeys.contains(\"N\") && menu5.isVisible())) {\n\n\t\t\t\t\tif (menu2.isVisible()) {\n\t\t\t\t\t\tmenu2.setVisible(false);\n\t\t\t\t\t\tmenu2Active = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (menu3.isVisible()) {\n\t\t\t\t\t\tmenu3.setVisible(false);\n\t\t\t\t\t\tmenu3Active = false;\n\t\t\t\t\t}\n\t\t\t\t\tif (menu4.isVisible()) {\n\t\t\t\t\t\tmenu4.setVisible(false);\n\t\t\t\t\t\tmenu4Active = false;\n\t\t\t\t\t}\n\t\t\t\t\tif (menu5.isVisible()) {\n\t\t\t\t\t\tmenu5.setVisible(false);\n\t\t\t\t\t\tmenu5Active = false;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (pressedKeys.contains(\"Q\")) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\tif (pressedKeys.contains(KeyEvent.getKeyText(38))) {\n\t\t\t\t\tif (stopU == false && !(menu2.isVisible())\n\t\t\t\t\t\t\t&& !(menu3.isVisible()) && !(menu4.isVisible())\n\t\t\t\t\t\t\t&& !(menu5.isVisible())\n\t\t\t\t\t\t\t&& !(titleScreen.isVisible()))\n\t\t\t\t\t\tghost.setYPos(ghost.getYPos() - dy);\n\t\t\t\t}\n\n\t\t\t\tif (pressedKeys.contains(KeyEvent.getKeyText(40))) {\n\t\t\t\t\tif (stopD == false && !(menu2.isVisible())\n\t\t\t\t\t\t\t&& !(menu3.isVisible()) && !(menu4.isVisible())\n\t\t\t\t\t\t\t&& !(menu5.isVisible())\n\t\t\t\t\t\t\t&& !(titleScreen.isVisible()))\n\t\t\t\t\t\tghost.setYPos(ghost.getYPos() + dy);\n\t\t\t\t}\n\n\t\t\t\tif (pressedKeys.contains(KeyEvent.getKeyText(39))) {\n\t\t\t\t\tif (stopR == false && !(menu2.isVisible())\n\t\t\t\t\t\t\t&& !(menu3.isVisible()) && !(menu4.isVisible())\n\t\t\t\t\t\t\t&& !(menu5.isVisible())\n\t\t\t\t\t\t\t&& !(titleScreen.isVisible()))\n\t\t\t\t\t\tghost.setXPos(ghost.getXPos() + dx);\n\t\t\t\t}\n\n\t\t\t\tif (pressedKeys.contains(KeyEvent.getKeyText(37))) {\n\t\t\t\t\tif (stopL == false && !(menu2.isVisible())\n\t\t\t\t\t\t\t&& !(menu3.isVisible()) && !(menu4.isVisible())\n\t\t\t\t\t\t\t&& !(menu5.isVisible())\n\t\t\t\t\t\t\t&& !(titleScreen.isVisible()))\n\t\t\t\t\t\tghost.setXPos(ghost.getXPos() - dx);\n\t\t\t\t}\n\n\t\t\t\t/******************* TAPPING AND VISIBILITY ****************/\n\t\t\t\tif (!transKeyTapped\n\t\t\t\t\t\t&& pressedKeys.contains(KeyEvent.getKeyText(88))) {\n\t\t\t\t\tif (ghost.getTrans() - deltaAlpha > 0.0f) {\n\t\t\t\t\t\tghost.setTrans(ghost.getTrans() - deltaAlpha);\n\t\t\t\t\t}\n\t\t\t\t\ttransKeyTapped = true;\n\t\t\t\t}\n\n\t\t\t\tif (!pressedKeys.contains(KeyEvent.getKeyText(88))) {\n\t\t\t\t\ttransKeyTapped = false;\n\t\t\t\t}\n\n\t\t\t\tif (!visibleKeyTapped\n\t\t\t\t\t\t&& pressedKeys.contains(KeyEvent.getKeyText(90))) {\n\t\t\t\t\tif (ghost.getTrans() + deltaAlpha < 1.0f) {\n\t\t\t\t\t\tghost.setTrans(ghost.getTrans() + deltaAlpha);\n\t\t\t\t\t}\n\t\t\t\t\tvisibleKeyTapped = true;\n\t\t\t\t}\n\n\t\t\t\tif (!pressedKeys.contains(KeyEvent.getKeyText(90))) {\n\t\t\t\t\tvisibleKeyTapped = false;\n\t\t\t\t}\n\n\t\t\t\tif (ghost.getTrans() >= 1.0f - deltaAlpha) {\n\t\t\t\t\tghostAbilities = false;\n\t\t\t\t\tsolidEnough = true;\n\t\t\t\t}\n\n\t\t\t\tif ((0.0f + deltaAlpha < ghost.getTrans())\n\t\t\t\t\t\t&& (ghost.getTrans() < 1.0f - deltaAlpha)) {\n\t\t\t\t\tghostAbilities = false;\n\t\t\t\t\tsolidEnough = false;\n\t\t\t\t}\n\n\t\t\t\tif (ghost.getTrans() <= 0.0f + deltaAlpha) {\n\t\t\t\t\tghostAbilities = true;\n\t\t\t\t\tsolidEnough = false;\n\t\t\t\t}\n\n\t\t\t\t/********* ENEMY COLLISION DETECTION ******/\n\n\t\t\t\tfor (Rectangle room : listOfRooms) {\n\n\t\t\t\t\tif (enemy.getHitBox().intersects(room)\n\t\t\t\t\t\t\t&& ghost.getHitBox().intersects(room)\n\t\t\t\t\t\t\t&& !ghostAbilities) {\n\t\t\t\t\t\thealth.setXScale(health.getXScale() - 0.01);\n\t\t\t\t\t\tif (health.getXScale() < 0.1) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsoundManager.playSoundEffect(\"gameOver\");\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tgameOver.setVisible(true);\n\t\t\t\t\t\t\thealth.setXScale(1.9);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// System.out.println(\"enemy sees you\");\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//safe = false;\n\t\t\t\t\t\tif (gameOverB == false) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsoundManager.playSoundEffect(\"caught\");\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tgameOverB = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t}\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/************* FRUIT COLLISION DETECTION ************/\n\t\t\t\t//boolean collidedAtAll = false;\n\t\t\t\t\n\t\t\t\tfor ( Sprite fruitObject : listOfFruits ) {\n\t\t\t\t\tif ( ghost.collidesWith(fruitObject) && solidEnough && fruitObject.isVisible() ) {\n\n\t\t\t\t\t\tfruitObject.setVisible(false);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfoodCollected +=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\tif(collidedAtAll == false){\n\t\t\t\t\tfruitColliding = false;\n\t\t\t\t}*/\n\n\n\t\t\t\t/*\n\t\t\t\tif (((ghost.collidesWith(bananaL2) && !(bananaL2 == null) && solidEnough == true))\n\t\t\t\t\t\t|| (((ghost.collidesWith(bananaL3)\n\t\t\t\t\t\t\t\t&& !(bananaL3 == null) && solidEnough == true)))) {\n\t\t\t\t\tif (atLevelTwo == true && trippedBananaL2 == false) {\n\t\t\t\t\t\tbananaL2.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\t\tbananaL2));\n\t\t\t\t\t\tbananaCollectedL2 = true;\n\t\t\t\t\t\ttrippedBananaL2 = true;\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\t\tbananaTweenL2\n\t\t\t\t\t\t\t\t.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE,\n\t\t\t\t\t\t\t\t\t\tbananaTweenL2));\n\n\t\t\t\t\t}\n\t\t\t\t\tif (atLevelThree == true) {\n\t\t\t\t\t\tbananaL3.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\t\tbananaL3));\n\t\t\t\t\t\tif (trippedBananaL3 == false) {\n\t\t\t\t\t\t\tbananaCollectedL3 = true;\n\t\t\t\t\t\t\ttrippedBananaL3 = true;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(\"collected banana\");\n\t\t\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbananaTweenL3\n\t\t\t\t\t\t\t\t.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE,\n\t\t\t\t\t\t\t\t\t\tbananaTweenL3));\n\t\t\t\t\t}\n\t\t\t\t\tif (atLevelFour == true && trippedBananaL4 == false) {\n\t\t\t\t\t\tbananaL4.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\t\tbananaL4));\n\t\t\t\t\t\tbananaCollectedL4 = true;\n\t\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\t\ttrippedBananaL4 = true;\n\t\t\t\t\t\tSystem.out.println(\"caught banana 2\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\t\tbananaTweenL4.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, bananaTweenL4));\n\t\t\t\t\t}\n\t\t\t\t\tif (atLevelFive == true && trippedBananaL5 == false) {\n\t\t\t\t\t\tbananaL5.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\t\tbananaL5));\n\t\t\t\t\t\tbananaCollectedL5 = true;\n\t\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\t\ttrippedBananaL5 = true;\n\t\t\t\t\t\tSystem.out.println(\"caught banana 2\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\t\tbananaTweenL5.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, bananaTweenL5));\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n<<<<<<< HEAD\n\t\t\t\n\n=======\n\t\t\t}\n\t\t\t\n\t\t\t\n>>>>>>> origin/master\n\t\t\tif ((ghost.collidesWith(fruit) && solidEnough == true && fruit\n\t\t\t\t\t.isVisible())\n\t\t\t\t\t|| (ghost.collidesWith(fruitL2) && solidEnough == true && fruitL3\n\t\t\t\t\t\t\t.isVisible())\n\t\t\t\t\t|| (ghost.collidesWith(fruitL3) && solidEnough == true && fruitL3\n\t\t\t\t\t\t\t.isVisible())\n\t\t\t\t\t|| (ghost.collidesWith(fruitL4) && solidEnough == true && fruitL4\n\t\t\t\t\t\t\t.isVisible())\n\t\t\t\t\t|| (ghost.collidesWith(fruitL5) && solidEnough == true && fruitL5.isVisible())) {\n\n\t\t\t\tif (atLevelOne == true && !(gameOver.isVisible())\n\t\t\t\t\t\t&& trippedFruit == false) {\n\n\t\t\t\t\tSystem.out.println(\"Save me\");\n\t\t\t\t\tfruit.dispatchEvent(new Event(Event.COIN_PICKED_UP, fruit));\n\t\t\t\t\tfruitCollected = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedFruit = true;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t// System.out.println(\"collected fruit\");\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tfruitTween.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, fruitTween));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (atLevelTwo == true && trippedFruitL2 == false) {\n\t\t\t\t\tfruitL2.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tfruitL2));\n\t\t\t\t\tfruitCollectedL2 = true;\n\t\t\t\t\ttrippedFruitL2 = true;\n\t\t\t\t\tSystem.out.println(\"caught fruit 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tfruitTweenL2.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, fruitTweenL2));\n\t\t\t\t}\n\n\t\t\t\tif (atLevelThree == true && trippedFruitL3 == false) {\n\t\t\t\t\tfruitL3.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tfruitL3));\n\t\t\t\t\tfruitCollectedL3 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedFruitL3 = true;\n\t\t\t\t\tSystem.out.println(\"caught fruit 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tfruitTweenL3.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, fruitTweenL3));\n\t\t\t\t}\n\t\t\t\tif (atLevelFour == true && trippedFruitL4 == false) {\n\t\t\t\t\tfruitL4.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tfruitL4));\n\t\t\t\t\tfruitCollectedL4 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedFruitL4 = true;\n\t\t\t\t\tSystem.out.println(\"caught fruit 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tfruitTweenL4.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, fruitTweenL4));\n\t\t\t\t}\n\t\t\t\tif (atLevelFive == true && trippedFruitL5 == false) {\n\t\t\t\t\tfruitL5.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tfruitL5));\n\t\t\t\t\tfruitCollectedL5 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedFruitL5 = true;\n\t\t\t\t\tSystem.out.println(\"caught fruit 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tfruitTweenL5.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, fruitTweenL5));\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif ((ghost.collidesWith(pear) && solidEnough == true && pear.isVisible())) {\n\n\t\t\t\tif (atLevelThree == true && !(gameOver.isVisible()) && trippedPear == false) {\n\t\t\t\t\tpear.dispatchEvent(new Event(Event.COIN_PICKED_UP, pear));\n\t\t\t\t\tpearCollected = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedPear = true;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t// System.out.println(\"collected fruit\");\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tpearTween.dispatchEvent(new TweenEvent(TweenEvent.TWEEN_EVENT_COMPLETE, pearTween));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (atLevelFour == true && !(gameOver.isVisible()) && trippedPearL4 == false) {\n\t\t\t\t\tpearL4.dispatchEvent(new Event(Event.COIN_PICKED_UP, pearL4));\n\t\t\t\t\tpearCollectedL4 = true;\n\t\t\t\t\ttrippedPearL4 = true;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"collected pear\");\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tpearTweenL4.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, pearTweenL4));\n\t\t\t\t}\n\t\t\t\tif (atLevelFive == true && !(gameOver.isVisible())\n\t\t\t\t\t\t&& trippedPearL5 == false) {\n\t\t\t\t\tpearL5.dispatchEvent(new Event(Event.COIN_PICKED_UP, pearL5));\n\t\t\t\t\tpearCollectedL5 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedPearL5 = true;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t// System.out.println(\"collected fruit\");\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tpearTweenL5.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, pearTweenL5));\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (((ghost.collidesWith(cherry) && solidEnough == true) && cherry\n\t\t\t\t\t.isVisible())\n\t\t\t\t\t|| ((ghost.collidesWith(cherryL2) && solidEnough == true) && cherryL2\n\t\t\t\t\t\t\t.isVisible())\n\t\t\t\t\t|| ((ghost.collidesWith(cherryL2) && solidEnough == true) && cherryL2\n\t\t\t\t\t\t\t.isVisible())) {\n\n\t\t\t\tif (atLevelOne == true && !(gameOver.isVisible())\n\t\t\t\t\t\t&& trippedCherry == false) {\n\t\t\t\t\tcherry.dispatchEvent(new Event(Event.COIN_PICKED_UP, cherry));\n\t\t\t\t\tcherryCollected = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedCherry = true;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tcherryTween.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, cherryTween));\n\t\t\t\t}\n\n\t\t\t\tif (atLevelTwo == true && trippedCherryL2 == false) {\n\t\t\t\t\tcherryL2.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tcherryL2));\n\t\t\t\t\tcherryCollectedL2 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedCherryL2 = true;\n\t\t\t\t\tSystem.out.println(\"caught fruit 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tcherryTweenL2.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, cherryTweenL2));\n\t\t\t\t}\n\n\t\t\t\tif (atLevelThree == true && trippedCherryL3 == false) {\n\t\t\t\t\tcherryL3.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tcherryL3));\n\t\t\t\t\tcherryCollectedL3 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedCherryL3 = true;\n\t\t\t\t\tSystem.out.println(\"caught cherry3\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tcherryTweenL3.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, cherryTweenL3));\n\t\t\t\t}\n\t\t\t\tif (atLevelFour == true && trippedCherryL4 == false) {\n\t\t\t\t\tcherryL4.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tcherryL4));\n\t\t\t\t\tcherryCollectedL4 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedCherryL4 = true;\n\t\t\t\t\tSystem.out.println(\"caught cherry3\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tSystem.out.println(\"pickedup og cherry\");\n\t\t\t\t\tcherryTweenL4.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, cherryTweenL4));\n\t\t\t\t}\n\t\t\t\tif (atLevelFive == true && trippedCherryL5 == false) {\n\t\t\t\t\tcherryL5.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tcherryL5));\n\t\t\t\t\tcherryCollectedL5 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedCherryL5 = true;\n\t\t\t\t\tSystem.out.println(\"caught cherry3\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tcherryTweenL5.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, cherryTweenL5));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (((ghost.collidesWith(bananaL52) && solidEnough == true)\n\t\t\t\t\t&& bananaL52.isVisible())) {\n\t\t\t\tif (atLevelFour == true && trippedBananaL52 == false) {\n\t\t\t\t\tbananaL52.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tbananaL52));\n\t\t\t\t\tbananaCollectedL52 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedBananaL52 = true;\n\t\t\t\t\t//System.out.println(\"caught pear3 - 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\t//System.out.println(\"collected pear2\");\n\t\t\t\t\tbananaTweenL52.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, bananaTweenL52));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (((ghost.collidesWith(fruitL52) && solidEnough == true)\n\t\t\t\t\t&& fruitL52.isVisible())) {\n\t\t\t\tif (atLevelFive == true && trippedFruitL52 == false) {\n\t\t\t\t\tfruitL52.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tfruitL52));\n\t\t\t\t\tfruitCollectedL52 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedFruitL52 = true;\n\t\t\t\t\tSystem.out.println(\"caught pear3 - 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\t//System.out.println(\"collected pear2\");\n\t\t\t\t\tfruitTweenL52.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, fruitTweenL52));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif (((ghost.collidesWith(pearL42) && solidEnough == true)\n\t\t\t\t\t&& pearL42.isVisible())) {\n\t\t\t\tif (atLevelFour == true && trippedPearL42 == false) {\n\t\t\t\t\tpearL42.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tpearL42));\n\t\t\t\t\tpearCollectedL42 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedPearL42 = true;\n\t\t\t\t\tSystem.out.println(\"caught pear3 - 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tSystem.out.println(\"collected pear2\");\n\t\t\t\t\tpearTweenL42.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, pearTweenL42));\n\t\t\t\t}\n\t\t\t\tif (atLevelFive == true && trippedPearL52 == false) {\n\t\t\t\t\tpearL52.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tpearL52));\n\t\t\t\t\tpearCollectedL52 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedPearL52 = true;\n\t\t\t\t\tSystem.out.println(\"caught pear5 - 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tpearTweenL52.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, pearTweenL52));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif ((ghost.collidesWith(strawberryL42) && solidEnough == true)\n\t\t\t\t\t&& strawberryL42.isVisible()) {\n\t\t\t\tif (atLevelFour == true && trippedStrawberryL42 == false) {\n\t\t\t\t\tstrawberryL42.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tstrawberryL42));\n\t\t\t\t\tstrawberryCollectedL42 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedStrawberryL42 = true;\n\t\t\t\t\tSystem.out.println(\"caught strawberry3 - 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tstrawberryTweenL42.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, strawberryTweenL42));\n\t\t\t\t}\n\t\t\t\tif (atLevelFive == true && trippedStrawberryL52 == false) {\n\t\t\t\t\tstrawberryL52.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tstrawberryL52));\n\t\t\t\t\tstrawberryCollectedL52 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedStrawberryL52 = true;\n\t\t\t\t\tSystem.out.println(\"caught strawberry5 - 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tstrawberryTweenL52.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, strawberryTweenL52));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (((ghost.collidesWith(cherryL32) && solidEnough == true)\n\t\t\t\t\t&& cherryL32.isVisible()) || ((ghost.collidesWith(cherryL42) && solidEnough == true)\n\t\t\t\t\t\t\t&& cherryL42.isVisible())) {\n\t\t\t\tif (atLevelThree == true && trippedCherryL32 == false) {\n\t\t\t\t\tcherryL32.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tcherryL32));\n\t\t\t\t\tcherryCollectedL32 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedCherryL32 = true;\n\t\t\t\t\tSystem.out.println(\"caught cherry3 - 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tcherryTweenL32.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, cherryTweenL32));\n\t\t\t\t}\n\t\t\t\tif (atLevelFour == true && trippedCherryL42 == false) {\n\t\t\t\t\tcherryL42.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tcherryL42));\n\t\t\t\t\tcherryCollectedL42 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedCherryL42 = true;\n\t\t\t\t\tSystem.out.println(\"caught cherry3 - 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tSystem.out.println(\"pickedup cherry 2\");\n\t\t\t\t\tcherryTweenL42.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, cherryTweenL42));\n\t\t\t\t}\n\t\t\t\tif (atLevelFive == true && trippedCherryL52 == false) {\n\t\t\t\t\tcherryL52.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tcherryL52));\n\t\t\t\t\tcherryCollectedL52 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedCherryL52 = true;\n\t\t\t\t\tSystem.out.println(\"caught cherry5 - 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tcherryTweenL52.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, cherryTweenL52));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (((ghost.collidesWith(strawberryL2) && !(strawberryL2 == null) && solidEnough == true))\n\t\t\t\t\t|| (((ghost.collidesWith(strawberryL3)\n\t\t\t\t\t\t\t&& !(bananaL3 == null) && solidEnough == true)))) {\n\t\t\t\tif (atLevelTwo == true && trippedStrawberryL2 == false) {\n\t\t\t\t\tstrawberryL2.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tstrawberryL2));\n\t\t\t\t\tstrawberryCollectedL2 = true;\n\t\t\t\t\ttrippedStrawberryL2 = true;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tstrawberryTweenL2\n\t\t\t\t\t\t\t.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE,\n\t\t\t\t\t\t\t\t\tstrawberryTweenL2));\n\n\t\t\t\t}\n\t\t\t\tif (atLevelThree == true) {\n\t\t\t\t\tstrawberryL3.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tstrawberryL3));\n\t\t\t\t\tif (trippedStrawberryL3 == false) {\n\t\t\t\t\t\tstrawberryCollectedL3 = true;\n\t\t\t\t\t\ttrippedStrawberryL3 = true;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"collected strawberry\");\n\t\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\t}\n\t\t\t\t\tstrawberryTweenL3\n\t\t\t\t\t\t\t.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE,\n\t\t\t\t\t\t\t\t\tstrawberryTweenL3));\n\t\t\t\t}\n\t\t\t\tif (atLevelFour == true && trippedStrawberryL4 == false) {\n\t\t\t\t\tstrawberryL4.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tstrawberryL4));\n\t\t\t\t\tstrawberryCollectedL4 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedStrawberryL4 = true;\n\t\t\t\t\tSystem.out.println(\"caught strawberry 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tstrawberryTweenL4.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, strawberryTweenL4));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (atLevelFive == true && trippedStrawberryL5 == false) {\n\t\t\t\t\tstrawberryL5.dispatchEvent(new Event(Event.COIN_PICKED_UP,\n\t\t\t\t\t\t\tstrawberryL5));\n\t\t\t\t\tstrawberryCollectedL5 = true;\n\t\t\t\t\t// health.setXScale(health.getXScale() + 0.95);\n\t\t\t\t\ttrippedStrawberryL5 = true;\n\t\t\t\t\tSystem.out.println(\"caught strawberry 2\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsoundManager.playSoundEffect(\"munch\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfoodCollected += 1;\n\t\t\t\t\tstrawberryTweenL5.dispatchEvent(new TweenEvent(\n\t\t\t\t\t\t\tTweenEvent.TWEEN_EVENT_COMPLETE, strawberryTweenL5));\n\t\t\t\t} */\n\n\t\t}", "public void update() {\n\t\t//Start updting the image\n\t\timg.loadPixels();\n\t\t\n\t\t//for every cell apply a color\n\t\tGridCell[] cells = grid.getCells();\n\t\tfor(int i = 0 ; i < cells.length; i++) {\n\t\t\timg.pixels[i] = cells[i].getMiniMapColor(ignoreDiscovered);\n\t\t}\n\t\t\n\t\t//Now update the image\n\t\timg.updatePixels();\n\t}", "void doUpdate() {\n\t\tdrawPlayer(backBufferContext, context);\n\t\tcheckForInteractions();\n\t}", "public void update() {\n System.out.println(\"\\n\\n Board: \\n\");\n System.out.println(\" \" + pos1 + \" | \" + pos2 + \" | \" + pos3 + \" \");\n System.out.println(\" ---+---+--- \");\n System.out.println(\" \" + pos4 + \" | \" + pos5 + \" | \" + pos6 + \" \");\n System.out.println(\" ---+---+--- \");\n System.out.println(\" \" + pos7 + \" | \" + pos8 + \" | \" + pos9 + \" \");\n }", "void ship_respawn() {\n ship.resetPosition();\n ship_image_view.setX(ship.x_position); // Update the ship image position\n }", "@Override\n\tpublic void update() {\n\t\tmouseMove(gm.mouseY);\n\t\tmoveCollider();\n\t}", "@Override\n\tpublic void update() {\n\n\t\t//Get current time\n\t\tdouble currentTime = System.currentTimeMillis();\n\t\tdouble movement = ((currentTime - previousTime) * movementSpeed) / 1000.0;\n\t\t\n\t\t//Create a translation vector\n\t\tVector translation = new Vector(2);\n\n\t\tboolean moving = false;\n\t\t\n\t\t//Determine which keys are pressed\n\t\tif(Directory.inputManager.isKeyPressed('w')){\n\t\t\t//Set translation Vector to move up\n\t\t\ttranslation.setComponent(1, translation.getComponent(1)-movement);\n\t\t\tattachedTo.getSprite().playAnimation(3, true);\n\t\t\tmoving = true;\n\t\t}\n\t\tif(Directory.inputManager.isKeyPressed('s')){\n\t\t\t//Set translation vector to move down\n\t\t\ttranslation.setComponent(1, translation.getComponent(1) + movement);\n\t\t\tattachedTo.getSprite().playAnimation(2, true);\n\t\t\tmoving = true;\n\n\t\t}\n\t\tif(Directory.inputManager.isKeyPressed('a')){\n\t\t\t//Set translation Vector to move left\n\t\t\ttranslation.setComponent(0, translation.getComponent(0)-movement);\n\t\t\tattachedTo.getSprite().playAnimation(0, true);\n\t\t\tmoving = true;\n\n\t\t}\n\t\tif(Directory.inputManager.isKeyPressed('d')){\n\t\t\t//Set translation Vector to move right\n\t\t\ttranslation.setComponent(0, translation.getComponent(0)+movement);\n\t\t\tattachedTo.getSprite().playAnimation(1, true);\n\t\t\tmoving = true;\n\n\t\t}\n\t\t\n\t\tif(!moving) attachedTo.getSprite().setRepeating(false);\n\t\t\n\t\t//Move this gameObject\n\t\tgetAttachedMObj().move(translation);\n\t\t\n\t\t//Update previous time\n\t\tpreviousTime = currentTime;\n\t\t\t\n\t}", "public void update(){\n\t\t\t//Key listener for keyboard input \n\t\t\taddKeyListener(new KeyAdapter(){\n\t\t\t\t\n\n\t\t\t\t@Override\n\t\t\t\tpublic void keyPressed(KeyEvent e)\n\t\t\t\t{\t\t\t\n\t\t\t\t\t \t// Moving on the x axis.\n\t\t\t\t if((e.getKeyCode() == KeyEvent.VK_D) || e.getKeyCode() == (KeyEvent.VK_RIGHT))\n\t\t\t\t pl.moveXspeed += pl.accelXspeed;\n\t\t\t\t \t\t\n\t\t\t\t else if(e.getKeyCode() == (KeyEvent.VK_A) || e.getKeyCode() == (KeyEvent.VK_LEFT))\n\t\t\t\t pl.moveXspeed -= pl.accelXspeed;\n\t\t\t\t \n\t\t\t\t // Moving on the y axis.\n\t\t\t\t if(e.getKeyCode() == (KeyEvent.VK_W) || e.getKeyCode() == (KeyEvent.VK_UP))\n\t\t\t\t pl.moveYspeed -= pl.accelYspeed;\n\t\t\t\t else if(e.getKeyCode() == (KeyEvent.VK_S) || e.getKeyCode() == (KeyEvent.VK_DOWN))\n\t\t\t\t pl.moveYspeed += pl.accelYspeed;\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t \t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t if (GameOn == true){\n\t\t\t\t \t\n\t\t\t\t }\n\t\t\t\t else if (GameOn == false )\n\t\t\t\t {\n\t\t\t\t \t repaint(); \n\t\t\t\t \t \n\t\t\t\t \t \t\t\t\t\t\t\t\n\t\t\t\t\t\tData = \" Number of rockets remaining: \" + pl.NumRockets \n\t\t\t\t\t\t\t+ \"Number of bullets remaining: \" +pl.NumBullets\n\t\t\t\t\t\t\t+ \" Remaining health: \" +pl.Health\n\t\t\t\t\t\t\t+\" Number of runway enemies: \" + RunAwayEnemies\n\t\t\t\t\t\t\t+ \" Number of destroyed enemies: \" +DestroyedEnemies;\n\t\t\t\t \n\t\t\t\t \t Email = new EmailGUI(Data); \n\t\t\t\t \t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t /* else if (WinsState == true )\n\t\t\t\t {\n\t\t\t\t \t repaint(); \n\t\t\t\t \t //*******************stoip game here and send email with game details\n\t\t\t\t \t Data = \" Number of rockets remaining: \" + pl.NumRockets +\",\" \n\t\t\t\t\t\t\t\t\t+ \" Number of bullets remaining: \" +pl.NumBullets+\",\"\n\t\t\t\t\t\t\t\t\t+ \" Remaining health: \" +pl.Health+\",\"\n\t\t\t\t\t\t\t\t\t+ \" Number of destroyed enemies: \" +DestroyedEnemies+\",\"\n\t\t\t\t\t\t\t\t\t+\" Number of runway enemies: \" + RunAwayEnemies;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t \t Email = new EmailGUI(Data); \n\t\t\t\t\t\t \t \n\t\t\t\t }*/\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t\t//mouse listener for mouse input \n\t\t\taddMouseListener(new MouseListener()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//actions performed when mouse button 1 is pressed \t\n\t\t\t\tif (e.getButton() == MouseEvent.BUTTON1)\n\t\t\t\t{\n\t\t\t\t\tif (pl.NumBullets > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t\t//creates shoot and adds the to the list\n\t\t\t\t\t\t\tpl.Shoot(); \n\t\t\t\t\t\t\tBulletFired = true; \n\t\t\t\t\t\t\tbul = new Bullet(pl.GetXCoord() + 240,pl.GetYCoord() + 70); \n\t\t\t\t\t\t\tBulletList.add(bul); \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\telse if (pl.NumBullets <= 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tGameOn = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//actions performed when mouse button 2 is pressed \t\n\t\t\t\t\t if (e.getButton() == MouseEvent.BUTTON3)\n\t\t\t\t\t{\n\n\t\t\t\t\t\tif (pl.NumRockets > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//creates rockets and adds the to the list\n\t\t\t\t\t\t\tpl.FireRocket(); \n\t\t\t\t\t\t\tRocketFired = true; \n\t\t\t\t\t\t\trock = new Rocket(pl.GetXCoord() + 200,pl.GetYCoord() + 60); \n\t\t\t\t\t\t\tRocketList.add(rock); \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\t\t\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}); \n\t\t\n\t\t}", "public void update(){\n if(player.getPlaying()) {\n // update player animation.\n player.update();\n // update background animation.\n bg.update();\n // checks if skater has finished falling animation to end the game.\n if (player.animate instanceof FallAnimate && player.animate.getDone()) {\n player.setPlaying(false);\n player.setFall(false);\n System.out.println(\"End \" + player.getPlaying());\n }\n // checks if player has reached required points.\n if(player.getScore() > TARGETSCORE){\n player.setPlaying(false);\n levelCompleted = true;\n levelReset = System.nanoTime();\n }\n // increment jumpcounter while crouched.\n if (player.animate instanceof CrouchingAnimate && (jumpCounter <= 25)) {\n jumpCounter++;\n }\n // Creating Bananas:\n long bananaElapsed = (System.nanoTime() - bananaStartTime) / 1000000;\n if(bananaElapsed > 10500 && MainActivity.difficulty != 0){\n bananas.add(new Banana(BitmapFactory.decodeResource(getResources(),\n R.drawable.bigbanana), WIDTH + 10, (int) (HEIGHT * 0.85), 40, 40, 1));\n bananaStartTime = System.nanoTime();\n }\n //collision detection:\n for (int i = 0; i < bananas.size(); i++) {\n bananas.get(i).update();\n if (collision(bananas.get(i), player)) {\n bananas.remove(i);\n player.setFall(true);\n player.setPlaying(false);\n break;\n }\n // removing bananas when off screen\n if (bananas.get(i).getX() < -100) {\n bananas.remove(i);\n break;\n }\n }\n // Creating Cones:\n long coneElapsed = (System.nanoTime() - coneStartTime) / 1000000;\n if (coneElapsed > 5000) {\n cones.add(new TallBricks(BitmapFactory.decodeResource(getResources(),\n R.drawable.tallbricks), WIDTH + 10, (int) (HEIGHT * 0.59), 100, 161, 1));\n coneStartTime = System.nanoTime();\n }\n // update and check collisions.\n for (int i = 0; i < cones.size(); i++) {\n\n cones.get(i).update();\n if (collision(cones.get(i), player) && MainActivity.difficulty == 0) {\n cones.remove(i);\n player.forceSetScore(-500);\n break;\n }\n\n if (collision(cones.get(i), player) && MainActivity.difficulty != 0) {\n cones.remove(i);\n player.setFall(true);\n break;\n }\n // removing cones when off screen\n if (cones.get(i).getX() < -100) {\n cones.remove(i);\n break;\n }\n\n if((cones.get(i).getX() < player.getX() -15) ){\n cones.remove(i);\n player.setPendingPoints(1000);\n break;\n }\n }\n }\n else if(player.getPlaying() == false && levelCompleted){\n long resetElapsed = (System.nanoTime()-levelReset)/1000000;\n if(resetElapsed > 4000) {\n Intent resultIntent = new Intent();\n resultIntent.putExtra(\"result\",true);\n ((Activity)context).setResult(Activity.RESULT_OK,resultIntent);\n ((Activity)context).finish();\n }\n }\n else if(player.getPlaying() == false && !levelCompleted){\n if(!reset){\n newGameCreated = false;\n startReset = System.nanoTime();\n reset = true;\n }\n\n long resetElapsed = (System.nanoTime()-startReset)/1000000;\n\n if(resetElapsed > 2500 && !newGameCreated){\n newGame();\n }\n else if(resetElapsed < 2500 && started){\n player.update();\n }\n }\n }", "public void update() {\n\t\tupdateController();\n\t\tupdateTimer();\n\t\tupdateTrifecta();\n\t\tupdateGyro();\n\t\tupdateGameTime();\n\t\t//updateTilt();\n\t}", "public void update() {\n\t\t\n\t\tVector size = new Vector(Main.frame.getContentPane().getWidth() + 64, 64 + 64);\n\t\tposition = new Vector(0, Main.frame.getContentPane().getHeight() - 40);\n\t\t\n\t\tRectangle rect = new Rectangle(position, size);\n\t\t\n\t\tif (rect.contains(Mouse.getVector())) {\n\t\t\troom.isMouseOverGUI = true;\n\t\t}\n\t}", "private void update()\n {\n // update the grid square panels\n Component[] components = pnlIsland.getComponents();\n for ( Component c : components )\n {\n // all components in the panel are GridSquarePanels,\n // so we can safely cast\n GridSquarePanel gsp = (GridSquarePanel) c;\n gsp.update();\n }\n \n // update player information\n int[] playerValues = game.getPlayerValues();\n txtPlayerName.setText(game.getPlayerName());\n progPlayerStamina.setMaximum(playerValues[Game.MAXSTAMINA_INDEX]);\n progPlayerStamina.setValue(playerValues[Game.STAMINA_INDEX]);\n progBackpackWeight.setMaximum(playerValues[Game.MAXWEIGHT_INDEX]);\n progBackpackWeight.setValue(playerValues[Game.WEIGHT_INDEX]);\n progBackpackSize.setMaximum(playerValues[Game.MAXSIZE_INDEX]);\n progBackpackSize.setValue(playerValues[Game.SIZE_INDEX]);\n \n //Update Kiwi and Predator information\n txtKiwisCounted.setText(Integer.toString(game.getKiwiCount()) );\n txtPredatorsLeft.setText(Integer.toString(game.getPredatorsRemaining()));\n \n // update inventory list\n listInventory.setListData(game.getPlayerInventory());\n listInventory.clearSelection();\n listInventory.setToolTipText(null);\n btnUse.setEnabled(false);\n btnDrop.setEnabled(false);\n \n // update list of visible objects\n listObjects.setListData(game.getOccupantsPlayerPosition());\n listObjects.clearSelection();\n listObjects.setToolTipText(null);\n btnCollect.setEnabled(false);\n btnCount.setEnabled(false);\n \n // update movement buttons\n btnMoveNorth.setEnabled(game.isPlayerMovePossible(MoveDirection.NORTH));\n btnMoveEast.setEnabled( game.isPlayerMovePossible(MoveDirection.EAST));\n btnMoveSouth.setEnabled(game.isPlayerMovePossible(MoveDirection.SOUTH));\n btnMoveWest.setEnabled( game.isPlayerMovePossible(MoveDirection.WEST));\n }", "public void updateViews() {\n\t\tif (App.isInitialized() && App.getPlayer().isPlaying()) {\r\n\t\t\tactionButton.setImageResource(R.drawable.ic_media_pause);\r\n\t\t} else {\r\n\t\t\tactionButton.setImageResource(R.drawable.ic_media_play);\r\n\t\t}\r\n\t\t\r\n\t\t// Update the seek text\r\n\t\tint seek = App.getPlayer().getSeek();\r\n\t\tint duration = App.getPlayer().getDuration();\r\n\t\tseekText.setText(Utilities.formatTime(seek));\r\n\t\tdurationText.setText(Utilities.formatTime(duration));\r\n\t\t\r\n\t\t// Update the seek progress\r\n\t\tseekBar.setMax(duration);\r\n\t\tif (autoUpdateSeek) {\r\n\t\t\tseekBar.setProgress(seek);\r\n\t\t}\r\n\t}", "public void update(float delta) {\n\t\timage.setPosition(body.getPosition().x * PPM - 16, body.getPosition().y * PPM - 16);\n\t\tif (start) {\n\t\t\tGdxGame.get().gameScreen.stage.addActor(image);\n\t\t\tstart = false;\n\t\t}\n\t}", "public void update() {\n\n\t\tdisplay();\n\t}", "public void update()\n {\n scorecard.update();\n scorer.update();\n }", "public void update() {\n\n }", "public void update() {\n\n }", "public void update()\n {\n if(x + image.getWidth(null) < 0)\n {\n x = 0;\n }\n else\n {\n x--;\n }\n }", "public void update(){\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void updateGameFinished() {\n\t\t\r\n\t}", "public void updateInfo()\n\t{\n\t\twidth = Game.frame.getWidth();\n\t\theight = Game.frame.getHeight();\n\t\tGame.frame.revalidate();\n\t\tGame.frame.repaint();\n\t}", "public void updateCam()\r\n {\n \ttry{\r\n \tSystem.out.println();\r\n \tNIVision.IMAQdxGrab(curCam, frame, 1);\r\n \tif(curCam == camCenter){\r\n \t\tNIVision.imaqDrawLineOnImage(frame, frame, NIVision.DrawMode.DRAW_VALUE, new Point(320, 0), new Point(320, 480), 120);\r\n \t}\r\n server.setImage(frame);}\n \tcatch(Exception e){}\r\n }", "public void updatePlayerPanel()\n {\n playerInfoPanel.updateLabel();\n }" ]
[ "0.6972079", "0.6778652", "0.67684853", "0.6702061", "0.65443003", "0.650106", "0.6483593", "0.64659303", "0.6426996", "0.6425419", "0.6390906", "0.63896286", "0.6370754", "0.6334593", "0.6330548", "0.63082564", "0.62901914", "0.6270042", "0.6268048", "0.6234496", "0.62298596", "0.61883813", "0.6129061", "0.61235464", "0.6122752", "0.6106213", "0.61000717", "0.6087986", "0.6081861", "0.6072177", "0.6068766", "0.6047871", "0.6044068", "0.6044068", "0.6044068", "0.6044068", "0.6044068", "0.6044068", "0.6044068", "0.6044068", "0.60414773", "0.60265625", "0.5999171", "0.5994868", "0.599464", "0.599188", "0.5972952", "0.596683", "0.5965228", "0.5964686", "0.59538084", "0.59275436", "0.5920754", "0.5920754", "0.5920754", "0.5920754", "0.5920754", "0.5920754", "0.5920754", "0.5912282", "0.5912282", "0.5912282", "0.5912282", "0.590288", "0.5901874", "0.5894458", "0.58935905", "0.58857596", "0.5872972", "0.5869862", "0.58673286", "0.58673286", "0.5867321", "0.58570045", "0.5855811", "0.58546275", "0.5852762", "0.58520633", "0.58516973", "0.5847315", "0.5842961", "0.5835317", "0.5834302", "0.5822414", "0.5818965", "0.5809183", "0.5805104", "0.58028597", "0.58008355", "0.57970065", "0.57897943", "0.5786882", "0.5781367", "0.5781367", "0.5778601", "0.576809", "0.5760888", "0.57577014", "0.57365716", "0.5731318" ]
0.64458865
8
Interface to fetch tweetss by search keyword
@FunctionalInterface public interface SearchTweets{ /** * @param searchKey * @param count * @return ArrayNode */ ArrayNode getTweetsAsync(String searchKey,int count); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> searchTweets(String keywords) throws TwitterException;", "public String searchTweet(String searchString) {\n\t\treturn restClient.searchTweet(searchString);\n\t}", "public interface TweetService {\n List<Tweet> getTweetsForFeed(Long personId, String keyword);\n\n}", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "private long getTweets(String search, String geocode, Configuration auth) {\r\n TwitterFactory tf = new TwitterFactory(auth);\r\n Twitter twitter = tf.getInstance();\r\n \r\n try {\r\n Query query = new Query(search + \" \" + geocode);\r\n query.setSinceId(starttime);\r\n QueryResult result;\r\n \r\n for (int i = 0; i < blocks; i++) {\r\n if (Abort.getInstance().abort()) {\r\n return -1;\r\n }\r\n \r\n result = twitter.search(query);\r\n \r\n synchronized (this) {\r\n if (!tweets.containsKey(search)) {\r\n tweets.put(search, new HashSet());\r\n }\r\n tweets.get(search).addAll(result.getTweets());\r\n }\r\n \r\n //updateCommon(result.getTweets());\r\n //searched.add(search.toLowerCase());\r\n query.setSinceId(starttime + i * blocks15);\r\n }\r\n } catch (TwitterException te) {\r\n System.out.println(\"Failed to search tweets: \" + te);\r\n System.out.println(\"\\nRetry at: \" + \r\n (new Date(te.getRateLimitStatus()\r\n .getResetTimeInSeconds() * 1000L)));\r\n return te.getRateLimitStatus().getSecondsUntilReset() * 1000L;\r\n }\r\n return 0;\r\n }", "List<DataTerm> search(String searchTerm);", "@PostMapping(\"/tweets\")\n\tpublic List<searchresult> nameList(@RequestParam(\"keyword\") String keyword, HttpSession session) {\n\n\t\tSearchParameters params = new SearchParameters(keyword);\n\t\tSearchResults results = twitter.searchOperations().search(params);\n\n\t\tList<Tweet> Searchresult = results.getTweets();\n\t\t\tfor (Tweet tweet : Searchresult) {\n\n\t\t\tsearchresult objResult = new searchresult(0, tweet.getText(), tweet.getProfileImageUrl(),tweet.getFromUser());\n\t\t\tsearchservice.saveSearchresult(objResult);\n\t\t}\n\n\t\tList<searchresult> searchlist = searchservice.listAll();\n\t\treturn searchlist;\n\t}", "public List<Status> searchQuery(Twitter twitter, String search)\r\n throws TwitterException, IOException {\r\n\r\n Paging paging = new Paging(2, 100);\r\n List<Status> statuses = twitter.getHomeTimeline(paging);\r\n\r\n Query query = new Query(search);\r\n query.setCount(500);\r\n //this is a key part\r\n query.setSince(\"2015-01-02\");\r\n QueryResult result;\r\n List<Status> tweets = null;\r\n do {\r\n System.out.println(\"Write to File ...\");\r\n result = twitter.search(query);\r\n List<Status> newTweets = result.getTweets();\r\n if (tweets == null) {\r\n tweets = newTweets;\r\n } else {\r\n tweets.addAll(newTweets);\r\n }\r\n for (Status s:newTweets){\r\n System.out.println(s.getUser().getName() + \": \" + s.getText());\r\n }\r\n\r\n } while ((query = result.nextQuery()) != null);\r\n return tweets;\r\n }", "SearchResultCompany search(String keywords);", "public void search (String title, AsyncHttpResponseHandler handler) {\n String apiUrl = getApiUrl(\"track.search\");\n RequestParams params = new RequestParams();\n params.put(\"track\", title);\n params.put(\"api_key\", API_KEY);\n //client.addHeader(\"Authorization\", \"Bearer \" + accessToken );\n client.get(apiUrl, params, handler);\n }", "@GET(\"w/api.php?action=opensearch&format=json&suggest&redirects=resolve\")\n Call<JsonElement> getSuggestionsFromSearch(@Query(\"search\") String search);", "private ArrayList<TweetData> query(QueryTargetInfo info) {\n String url;\n ArrayList<TweetData> tweets = new ArrayList<TweetData>();\n InputStream is = null;\n\n // lastSeenId should have been set earlier.\n // However, if it is still null, just use \"0\".\n if (info.lastSeenId == null) {\n url = String.format(\"%s?q=%s&count=%d&result_type=recent&since_id=0\",\n URL_BASE, info.query, RPP);\n } else if (info.smallestId == null) {\n url = String.format(\"%s?q=%s&count=%d&result_type=recent&since_id=%s\",\n URL_BASE, info.query, RPP, info.lastSeenId);\n } else {\n url = String.format(\"%s?q=%s&count=%d&result_type=recent&since_id=%s&max_id=%s\",\n URL_BASE, info.query, RPP, info.lastSeenId, info.smallestId);\n }\n\n try {\n do {\n URL searchURL = new URL(url);\n HttpsURLConnection searchConnection = (HttpsURLConnection)searchURL.openConnection();\n\n searchConnection.setRequestProperty(\"Host\", \"api.twitter.com\");\n searchConnection.setRequestProperty(\"User-Agent\", \"BirdCatcher\");\n searchConnection.setRequestProperty(\"Authorization\", \"Bearer \" + kBearerToken);\n\n is = searchConnection.getInputStream();\n\n JSONTokener jsonTokener = new JSONTokener(is);\n\n JSONObject json = new JSONObject(jsonTokener);\n\n is.close();\n\n url = getNextLink(json, url, info);\n\n tweets.addAll(getTweets(json, info));\n\n Thread.sleep(1000);\n\n is = null;\n } while (url != null);\n } catch (Exception e) {\n Logger.logError(\"Error performing query\", e);\n\n if (is != null) {\n try {\n java.io.BufferedReader in =\n new java.io.BufferedReader(new java.io.InputStreamReader(is));\n\n String response = \"Response from Twitter:\\n\";\n String temp;\n\n while ((temp = in.readLine()) != null) {\n response += (temp + \"\\n\");\n }\n\n Logger.logDebug(response);\n\n response = null;\n temp = null;\n } catch (Exception ex) {\n }\n }\n\n return tweets;\n }\n\n return tweets;\n }", "public List<Movie> search() {\n keyword = URLEncoder.encode(keyword);\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=yedukp76ffytfuy24zsqk7f5&q=\"\n + keyword + \"&page_limit=20\";\n apicall(url);\n System.out.println(url);\n System.out.println(data);\n GsonBuilder builder = new GsonBuilder();\n Gson gson = builder.create();\n MovieResponse response = gson.fromJson(data, MovieResponse.class);\n List<Movie> movies = response.getMovies();\n movieData = movies;\n return movieData;\n }", "Search getSearch();", "List<SearchResult> search(SearchQuery searchQuery);", "public Utwor search2(String query) {\n for (Utwor utwor : utwory) {\n if (utwor.getTitle().equals(query)) {\n return utwor;\n }\n }\n return null;\n }", "@Override\n public SearchResult search_hunter(String keyword, int page, int rows ,int search_type) throws Exception{\n\n return null;\n }", "entities.Torrent.SearchResponse getSearchResponse();", "List<Cemetery> search(String query);", "@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}", "public void sampleInvestigate ()\r\n {\r\n Query query = new Query(\"Hawker\");\r\n query.setCount(100);\r\n query.setGeoCode(new GeoLocation(1.423844, 103.776921), 5, Query.MILES);\r\n query.setSince(\"2016-12-1\");\r\n try {\r\n QueryResult result = twitter.search(query);\r\n System.out.println(\"Count : \" + result.getTweets().size()) ;\r\n for (Status tweet : result.getTweets()) {\r\n System.out.println(\"@\"+tweet.getUser().getName()+ \": \" + tweet.getText()); \r\n }\r\n } \r\n catch (TwitterException e) {\r\n e.printStackTrace();\r\n } \r\n System.out.println(); \r\n }", "public List<String> searchHashTag(String searchHashTag) {\r\n\t\tList<String> twitterResponseList = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tProperties properties = getProperties();\r\n\t\t\tString apiUrl = properties.getProperty(\"twitter.api.search.tweets\");\r\n\t\t\tapiUrl = apiUrl + \"?count=10&q=%23\" + searchHashTag; // appending API url with search string\r\n\r\n\t\t\tHttpResponse apiResponse = executeHttpGet(apiUrl);\r\n\r\n\t\t\tif (200 == apiResponse.getStatusLine().getStatusCode()) {\r\n\t\t\t\tJSONObject jsonobject = new JSONObject(EntityUtils.toString(apiResponse.getEntity())); // read json\r\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// response\r\n\t\t\t\tJSONArray jsonArray = (JSONArray) jsonobject.get(\"statuses\");\r\n\t\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\t\tJSONObject userObject = (JSONObject) jsonObject.get(\"user\");\r\n\r\n\t\t\t\t\tString displayText = (String) userObject.get(\"screen_name\") + \" : \"\r\n\t\t\t\t\t\t\t+ (String) jsonObject.get(\"text\");\r\n\t\t\t\t\ttwitterResponseList.add(displayText); // add tweet user name : tweet text\r\n\t\t\t\t}\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\treturn twitterResponseList;\r\n\t}", "public interface SearchCallback {\n\n void success(ArrayList<Tweet> result, boolean isNewQuery);\n\n void failure(String e);\n\n}", "entities.Torrent.SearchRequest getSearchRequest();", "public List<Status> searchQueryMk2(Twitter twitter, String search, int page)\r\n throws TwitterException {\n int pageInt = page;\r\n int count = 0;\r\n Paging paging = new Paging(pageInt, 10);\r\n List<Status> statuses = twitter.getUserTimeline(\"meemezy\",paging);\r\n\r\n\r\n for (Status s : statuses) {\r\n System.out.println(s.getUser().getName() + \": \" + s.getText());\r\n System.out.println(s.getCreatedAt()+\"\\n\");\r\n count++;\r\n if(count == 9 && s.getText() != null){\r\n pageInt++;\r\n searchQueryMk2(twitter, search, pageInt);\r\n }\r\n }\r\n\r\n return null;\r\n }", "public void doSearch(String searchText){\n }", "SpellResponse spellQuery(SearchRequest request, Map<SearchParam, String> params);", "public void getSearchList(String query, int mode , Long since, Long max, AsyncHttpResponseHandler handler) {\n if (query == null || query.length() == 0) {\n return;\n }\n\n String apiUrl = getApiUrl(\"search/tweets.json\");\n RequestParams params = new RequestParams();\n\n params.put(\"q\", query);\n params.put(\"result_type\", mode == SearchActivity.TOP_TWEETS ? \"popular\" : \"recent\");\n params.put(\"count\", 25);\n if (since != null) {\n params.put(\"since_id\", since);\n } else if (max != null) {\n params.put(\"max_id\", max);\n }\n\n // Execute the request\n getClient().get(apiUrl, params, handler);\n }", "@GET(\"search.php\")\n Call<MealData> getMealsBySearchQuery(@Query(\"s\") String searchKeyword);", "public void searchUserAccount( )\r\n throws TwitterException, URISyntaxException, IOException{\r\n\r\n // looks at all tweets since this page\r\n // the count is the limit\r\n\r\n int count = 0;\r\n String text = \"\";\r\n Paging paging = new Paging(pageInt, 10);\r\n List<Status> statuses = twitter.getUserTimeline(user, paging);\r\n\r\n for (Status s : statuses) {\r\n String url = \"https://twitter.com/\" + s.getUser().getScreenName() + \"/status/\" + s.getId();\r\n if (s.getRetweetedStatus() == null) {\r\n content = url;\r\n //send the links to text\r\n HandleFile(override, active);\r\n\r\n //regular expressions\r\n String regex = \"https://t.co/.*\";\r\n text = s.getText().replaceAll(regex,\"\");\r\n\r\n System.out.println(s.getUser().getName() + \": \" + text);\r\n System.out.println(url); //prints the url of the tweet\r\n System.out.println(s.getCreatedAt()+\"\\n\");\r\n\r\n //sets the tweets to variables to be exported\r\n tweets = tweets + \" \" +text + \"\\n\"+ url + \"\\n\" + s.getCreatedAt() + \"\\n\\n\";\r\n\r\n\r\n active = false;\r\n\r\n //search for nudes\r\n getTwitterImage(s);\r\n }\r\n count++;\r\n\r\n if(count == 5 && limitInt > 0){\r\n limitInt--;\r\n pageInt++;\r\n searchUserAccount();\r\n }\r\n }\r\n }", "public static List<Status> getTweets(Query query) {\n\n \tTwitter twitter = new TwitterFactory().getInstance();\n \tQueryResult result = null;\n try {\n \tresult = twitter.search(query);\n \tList<Status> tweets = result.getTweets();\n \treturn tweets;\n }\n catch (TwitterException te) {\n \tte.printStackTrace();\n System.out.println(\"Failed to search tweets: \" + te.getMessage());\n return null;\n }\n }", "public void performSearch() {\n final String url = String.format(BING_SEARCH_URL, Words.getRandomWord(), Words.getRandomWord());\n\n //open page with custom data\n openWebPage(url, \"Search url: \" + url);\n }", "List<SongVO> searchSong(String searchText) throws Exception;", "public abstract HashMap search(String keyword);", "@Override\n\tpublic List<BoardVO> searchArticle(String keyword) {\n\t\t\n\t\tString sql = \"SELECT * FROM board WHERE board_writer LIKE ?\";\n\t\treturn template.query(sql,new BoardMapper(), keyword);\n\t}", "@In String search();", "public void busqueda() {\r\n\r\n try {\r\n\r\n String preg = JOptionPane.showInputDialog(\"Buscar:\");\r\n Query query = new Query(preg);\r\n QueryResult result = twitter.search(query);\r\n for (Status status : result.getTweets()) {\r\n System.out.println(\"@\" + status.getUser().getScreenName() + \":\" + status.getText());\r\n }\r\n } catch (TwitterException ex) {\r\n java.util.logging.Logger.getLogger(MetodosTwit.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\n\tpublic List<Movie> search(String queryText) {\n\t\tMoviesResponse moviesResponse = movieDataService.fetchAll();\n\t\tList<Movie> movieList = moviesResponse.stream()\n\t\t\t\t.filter(movieData -> Arrays.asList(movieData.getTitle().toLowerCase().split(\"\\\\s+\")).contains(queryText.toLowerCase()))\n\t\t\t\t.collect(Collectors.mapping(movieData -> mapMovieDataToMovie(movieData),Collectors.toList()));\n\t\treturn movieList;\n\t}", "@GET(\"list_movies.json\")\n Call<MoviesResponse> searchMovie(@Query(\"query_term\") String queryTerm);", "List<Corretor> search(String query);", "ArrayList<String> searchWordTweet(String word) throws SQLException {\r\n //Query che seleziona il mittente e il corpo data una parola\r\n String query=\"SELECT DISTINCT mittente,corpo FROM tweet WHERE corpo LIKE '%\"+word+\"%'\";\r\n //Oggetti per interrogare il db\r\n Statement statement=null;\r\n connection=DBConnection.connect();\r\n ResultSet resultSet=null;\r\n //Lista messaggi\r\n ArrayList<String> tweetsList = new ArrayList<>();\r\n\r\n try {\r\n statement=connection.createStatement();\r\n resultSet = statement.executeQuery(query);\r\n while(resultSet.next()){\r\n String mittente = resultSet.getString(\"mittente\");\r\n String corpo = resultSet.getString(\"corpo\");\r\n tweetsList.add(mittente+\": \"+corpo);\r\n }\r\n\r\n return tweetsList;\r\n }catch (SQLException e){\r\n e.printStackTrace();\r\n }finally {\r\n if (connection!=null) connection.close();\r\n if (statement!=null) statement.close();\r\n if(resultSet!=null) resultSet.close();\r\n }\r\n return null;\r\n }", "public CompletableFuture<List<Details>> searchTweetByTopic(String topic) {\n\n List<Details> tweetData = new ArrayList<>();\n try {\n Query query = new Query(topic);\n query.setCount(100);\n listCompletableFuture = CompletableFuture.supplyAsync(() -> {\n QueryResult result = null;\n try {\n result = twitter.search(query);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return result;\n }).thenApply((QueryResult result) -> {\n tweetStatusObjects = result.getTweets();\n return tweetStatusObjects;\n }).thenApply((tweetStatusObjects) -> {\n tweetStatusObjects.stream()\n .map((Status s) -> {\n tweetData.add(new Details(s.getUser().getName(), s.getUser().getLocation(),\n s.getUser().getFollowersCount(), s.getUser().getScreenName(), s.getText(),s.getHashtagEntities()));\n return tweetData;\n })\n .collect(Collectors.toList());\n return tweetData;\n });\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return listCompletableFuture;\n }", "@Override\n protected Void doInBackground(Void... params) {\n try {\n Query query = new Query(\"India\"); //\n\n GeoLocation location = new GeoLocation(mLastLocation.getLatitude(), mLastLocation.getLongitude()); //latitude, longitude\n\n query.setGeoCode(location, 1, Query.MILES); //location, radius, unit\n query.setSinceId(latestTweetId);\n QueryResult result;\n\n do {\n result = twitter.search(query);\n\n\n for (twitter4j.Status tweet : result.getTweets()) {\n\n if(tweet.getGeoLocation()!=null){\n\n newTweets.add(tweet);\n long id = tweet.getId();\n\n if(id>latestTweetId){\n\n latestTweetId = id;\n }\n\n }\n\n System.out.println(\"@\" + tweet.getUser().getScreenName() + \" - \" + tweet.getText());\n }\n\n } while ((query = result.nextQuery()) != null);\n\n } catch (TwitterException te) {\n System.out.println(\"Failed to search tweets: \" + te.getMessage());\n }\n return null;\n }", "ArtistCommunitySearch getArtistSearch();", "@Override\n\tString search(String text) throws Exception {\n\t\tString result = null;\n\t\tthis.text = text;\n\t\tthis.connection = this.getConnection();\n\n\t\tresult = searchRes();\n\t\tif (result != null)\n\t\t\treturn result;\n\n\t\tresult = searchTour();\n\t\tif (result != null)\n\t\t\treturn result;\n\n\t\tconnection.close();\n\t\tthrow new Exception(\"NOT FOUND\");\n\t}", "List<Topic> searchTopicBySTag(String[] keywords);", "public abstract S getSearch();", "@Test\r\n public void testSearchKeyword() throws Exception {\r\n LOG.info(\"searchKeyword\");\r\n String query = \"action\";\r\n int page = 0;\r\n List<Keyword> result = tmdb.searchKeyword(query, page);\r\n assertFalse(\"No keywords found\", result == null);\r\n assertTrue(\"No keywords found\", result.size() > 0);\r\n }", "public void fetchApiData(final String keyword) {\n final long DAY_IN_MILLI_SECONDS = 86400000;\n final String token = \"42e12e91-8641-4e59-aece-8b051e64acca\";\n final String format = \"json\";\n String timeStamp = String.valueOf(dataUpdateChecker.getCurrentTimeStamp() - DAY_IN_MILLI_SECONDS);\n final String sort = \"published\";\n String query = \"performance_score:>0 (title:\" + keyword + \")\";\n updateProgressBar.setProgressBarVisibility(true);\n APIService service = ApiUtils.getAPIService();\n service.getLatestNews(token,format,timeStamp,sort,query).enqueue(new Callback<NewsResultsResponse>(){\n @Override\n public void onResponse(@NonNull Call<NewsResultsResponse> call,@NonNull Response<NewsResultsResponse> response) {\n Log.e(TAG,response.toString());\n updateProgressBar.setProgressBarVisibility(false);\n storeKeyWord(keyword);\n dataUpdateChecker.updateSearchDate();\n LinkedList<NewsDetail> newsDetails;\n if (response.body() != null) {\n newsDetails = populateList(response.body());\n updateUi(response.body(),newsDetails);\n updateDatabase(newsDetails);\n }else {\n newsList.postValue(null);\n }\n\n }\n @Override\n public void onFailure(@NonNull Call<NewsResultsResponse> call,@NonNull Throwable t) {\n updateProgressBar.setProgressBarVisibility(false);\n Log.e(TAG,t.toString());\n newsList.postValue(null);\n }\n });\n }", "public void getTweets() {\r\n\t\t\r\n\t\tConfigurationBuilder cb = new ConfigurationBuilder();\r\n\t\tcb.setDebugEnabled(true);\r\n\t\t\r\n\t\t//provide your own keys\r\n\t cb.setOAuthConsumerKey(\"ConsumerKey\");\r\n\t cb.setOAuthConsumerSecret(\"ConsumerSecret\");\r\n\t cb.setOAuthAccessToken(\"AccessToken\");\r\n\t cb.setOAuthAccessTokenSecret(\"TokenSecret\");\r\n\r\n TwitterStream twitterStream = new TwitterStreamFactory(cb.build()).getInstance(); \r\n \r\n //Check for live status updates\r\n StatusListener listener = new StatusListener() {\r\n\r\n @Override\r\n public void onException(Exception arg0) {\r\n \tSystem.out.println(\"Exception!! Data Not Inserted Into Database\");\r\n }\r\n\r\n @Override\r\n public void onDeletionNotice(StatusDeletionNotice arg0) {\r\n \tSystem.out.println(\"Got a status deletion notice id:\" + arg0.getStatusId());\r\n }\r\n \r\n @Override\r\n public void onScrubGeo(long userId, long upToStatusId) {\r\n System.out.println(\"Got scrub_geo event userId:\" + userId + \" upToStatusId:\" + upToStatusId);\r\n }\r\n \r\n @Override\r\n public void onStatus(Status status) {\r\n \t\r\n \t User user = status.getUser();\r\n \t \r\n String username = status.getUser().getScreenName();\r\n String profileLocation = user.getLocation();\r\n long tweetId = status.getId(); \r\n String content = status.getText();\r\n \r\n \r\n //Create a model for the live data\r\n TweetModel memoryData = new TweetModel(username, profileLocation, tweetId, content);\r\n \r\n //store to MongoDB if data is correct\r\n System.out.println(++counter + \") username: \" + username + \" location: \" + profileLocation + \" tweetId \" + tweetId + \" Text: \" + content );\r\n data.save(memoryData);\r\n }\r\n \r\n\t\t\t@Override\r\n public void onTrackLimitationNotice(int arg0) {\r\n\t System.out.println(\"Got track limitation notice:\" + arg0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onStallWarning(StallWarning warning) {}\r\n };\r\n \r\n //Filter the live tweet results\r\n FilterQuery filterQuery = new FilterQuery();\r\n //Search for tweets with specific keywords\r\n String keywords[] = {\"Java\", \"Python\", \"PHP\"};\r\n //Restrict the language to English\r\n String[] lang = {\"en\"}; \r\n //Add the Filters\r\n filterQuery.language(lang);\r\n filterQuery.track(keywords);\r\n //Listen for Live Tweets\r\n twitterStream.addListener(listener);\r\n twitterStream.filter(filterQuery);\r\n\t}", "public void onSearchSubmit(String queryTerm);", "@Override\r\n\tpublic List<Post> searchInfResult(String word) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\treturn postDao.selectPosts(word);\r\n\t}", "public SearchResult search(String text, String subText);", "public void search() {\r\n \t\r\n }", "void search();", "void search();", "public void search(String query) {\n Log.i(TAG, \"search: \" + query);\n artistInteractor.searchInItunes(query, this);\n }", "@Path(\"tweets/{query}\")\r\n @GET\r\n @Produces(MediaType.APPLICATION_JSON)\r\n public Response getTweets(@PathParam(\"query\") final String query)\r\n {\r\n log.debug(\"GET: getTweets\");\r\n\r\n if (store == null)\r\n {\r\n initializeStore();\r\n }\r\n\r\n final List<Tweet> tweets = store.getTweets(query);\r\n final TweetList list = new TweetList();\r\n list.setTweets(tweets);\r\n return Response.ok(list).build();\r\n }", "public List<TwitterDataExtract> GetData();", "abstract public void search();", "private void search() {\n \t\tString searchString = m_searchEditText.getText().toString();\n \n \t\t// Remove the refresh if it's scheduled\n \t\tm_handler.removeCallbacks(m_refreshRunnable);\n \t\t\n\t\tif ((searchString != null) && (!searchString.equals(\"\"))) {\n \t\t\tLog.d(TAG, \"Searching string: \\\"\" + searchString + \"\\\"\");\n \n \t\t\t// Save the search string\n \t\t\tm_lastSearch = searchString;\n \n \t\t\t// Disable the Go button to show that the search is in progress\n \t\t\tm_goButton.setEnabled(false);\n \n \t\t\t// Remove the keyboard to better show results\n \t\t\t((InputMethodManager) this\n \t\t\t\t\t.getSystemService(Service.INPUT_METHOD_SERVICE))\n \t\t\t\t\t.hideSoftInputFromWindow(m_searchEditText.getWindowToken(),\n \t\t\t\t\t\t\t0);\n \n \t\t\t// Start the search task\n \t\t\tnew HTTPTask().execute(searchString);\n \t\t\t\n \t\t\t// Schedule the refresh\n \t\t\tm_handler.postDelayed(m_refreshRunnable, REFRESH_DELAY);\n \t\t} else {\n \t\t\tLog.d(TAG, \"Ignoring null or empty search string.\");\n \t\t}\n \t}", "List<ShipmentInfoPODDTO> search(String query);", "SearchResponse search(SearchRequest searchRequest) throws IOException;", "@GET\r\n public AbstractCommonList getList(@Context UriInfo ui) {\r\n MultivaluedMap<String, String> queryParams = ui.getQueryParameters();\r\n String keywords = queryParams.getFirst(IQueryManager.SEARCH_TYPE_KEYWORDS_KW);\r\n AbstractCommonList list;\r\n if (keywords != null) {\r\n list = search(queryParams, keywords);\r\n } else {\r\n list = getList(queryParams);\r\n }\r\n return list;\r\n }", "public List<Bookmark> searchBookmarks (String searchString, BookmarkType type, Long userId) throws BookMarkException;", "protected final void searchForText() {\n Logger.debug(\" - search for text\");\n final String searchText = theSearchEdit.getText().toString();\n\n MultiDaoSearchTask task = new MultiDaoSearchTask() {\n @Override\n protected void onSearchCompleted(List<Object> results) {\n adapter.setData(results);\n }\n\n @Override\n protected int getMinSearchTextLength() {\n return 0;\n }\n };\n task.readDaos.add(crDao);\n task.readDaos.add(monsterDao);\n task.readDaos.add(customMonsterDao);\n task.execute(searchText.toUpperCase());\n }", "Keyword findKeywordByName(String name);", "public String searchUserWithKeyword(){\r\n\t\tlog.info(\"Starting to search user(s) with keyword = \"+ searchkeyword);\r\n\t\tthis.clearErrorsAndMessages();\r\n\t\tusersList = new ArrayList<Users>();\r\n\t\tusersList.clear();\t\t\r\n\t\ttry {\t\t\r\n\t\t\tusersList = userService.findUsersWithNameLike(searchkeyword);\r\n\t\t\tmessage = usersList.size() + \" users found .\";\t\r\n\t\t\tlog.info(message);\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tmessage = \"Error in finding users for keyword [\" +searchkeyword+\"]. \"+ e.getMessage();\r\n\t\t\tthis.addActionError(message);\r\n\t\t\tlog.error(message, e);\r\n\t\t}\t\r\n\t\t// reset the keyword\r\n\t\tsearchkeyword = \"\";\r\n\t\treturn SUCCESS;\r\n\t}", "String getKeyword();", "public void search(String text){\n filteredList.clear();\n\n if(TextUtils.isEmpty(text)){\n filteredList.addAll(filteredListForSearch);\n }\n\n else{\n String query = text.toLowerCase();\n for(SensorResponse item : filteredListForSearch){\n if(item.getSensor_Type().toLowerCase().contains(query) || Long.toString(item.getBattery()).toLowerCase().contains(query)\n || Long.toString(item.getDate_Time()).toLowerCase().contains(query) || Double.toString(item.getLat()).toLowerCase().contains(query)\n || Double.toString(item.getLong()).toLowerCase().contains(query) || item.getSensorHealth().toLowerCase().contains(query)\n || Long.toString(item.getSensor_ID()).toLowerCase().contains(query) || Double.toString(item.getSensor_Val()).toLowerCase().contains(query)){\n filteredList.add(item);\n }\n }\n }\n removeDuplicates();\n notifyDataSetChanged();\n }", "public List<Product> search(String searchString);", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "public CompletableFuture<List<Details>> searchTweetByLocation(CompletableFuture<String> geoLocation){\n try{\n String topic= geoLocation.get();\n return searchTweetByTopic(topic);\n }\n catch (Exception e){\n e.printStackTrace();\n }\n return null;\n\n }", "List<ResultDTO> search(String query);", "@Override\n\tpublic List<ServiceInfo> search(String keywords) {\n\t\treturn null;\n\t}", "@Override\n public SearchResult search_item(String keyword, int page, int rows , int search_type) throws Exception{\n return null;\n }", "entities.Torrent.LocalSearchResponse getLocalSearchResponse();", "List<Codebadge> search(String query);", "public void onSearchResults(String term, List<WikiPage> results);", "@SuppressWarnings(\"unused\")\r\n private void getTweetsByHashtag(String hashtag) throws TwitterException {\n System.out.println(\"100 tweets with #\" + hashtag + \":\");\r\n Query query = new Query(hashtag);\r\n query.count(100);\r\n QueryResult result = twitter.search(query);\r\n for (Status status : result.getTweets()) {\r\n printStatus(status);\r\n }\r\n }", "public interface ISearch {\n void onTextQuery(String text);\n\n}", "Data<User> getUserSearch(String user);", "Customer search(String login);", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t\tpostParameters[0] = new PostParameter(\"keyword\", searchKeyword);\n\t\t\t\tpostParameters[1] = new PostParameter(\"university\", university);\n\t\t\t\tpostParameters[2] = new PostParameter(\"page\", Integer.toString(requestTime));\n\t\t\t\t\n\t\t\t\tjsonString = HttpUtil.httpRequest(HttpUtil.USER_SEARCHBOOKS, postParameters, HttpUtil.POST);\n\t\t\t\tif (jsonString != null) {\t\t\t\t\t\n\t\t\t\t\tMessage msg = handler.obtainMessage();\n\t\t\t\t\tmsg.what = what;\n\t\t\t\t\thandler.sendMessage(msg);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\thandler.sendEmptyMessage(-1);\n\t\t\t\t}\n\t\t\t}", "@Override\n \tpublic ArrayList<Object> searchPostByName(String search) {\n\t\t\n\t\tSystem.out.println(\"i am in service search looking for cool posts\" + search);\n\t\t\n\t\tif(search == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tArrayList<Object> list = null; //postRepository.findPostByName(search); ****Nick set this to null; otherwise it failed. Needs corrected in future\n\t\t\n\t\t//System.out.println(Arrays.toString(list));\n\t\treturn list;\n\t}", "private void search(String query) {\n final List<Artist> foundartists = new ArrayList<Artist>();\n final String usrquery = query;\n\n spotifysvc.searchArtists(query, new Callback<ArtistsPager>() {\n @Override\n public void success(ArtistsPager artists, Response response) {\n List<Artist> artistlist = artists.artists.items;\n Log.d(LOG_TAG_API, \"found artists [\" + artistlist.size() + \"]: \" + artistlist.toString());\n datalist.clear();\n\n if (artistlist.size() > 0) {\n setListdata(artistlist);\n } else {\n Toast.makeText(getActivity(), \"no artists found by the name: \" + usrquery, Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n Log.e(LOG_TAG_API, \"failed to retrieve artists:\\n\" + error.toString());\n Toast.makeText(getActivity(), \"failed to retrieve artists. Possible network issues?: \", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public void search(Indexer indexer, CityIndexer cityIndexer, Ranker ranker, String query, boolean withSemantic, ArrayList<String> chosenCities, ObservableList<String> citiesByTag, boolean withStemming, String saveInPath, String queryId, String queryDescription) {\n String[] originalQueryTerms = query.split(\" \");\n String originQuery = query;\n docsResults = new HashMap<>();\n parser = new Parse(withStemming, saveInPath, saveInPath);\n HashSet<String> docsOfChosenCities = new HashSet<>();\n query = \"\" + query + queryDescription;\n HashMap<String, Integer> queryTerms = parser.parseQuery(query);\n HashMap<String, ArrayList<Integer>> dictionary = indexer.getDictionary();\n if (!withStemming){\n setDocsInfo(saveInPath + \"\\\\docsInformation.txt\");\n }\n else{\n setDocsInfo(saveInPath + \"\\\\docsInformation_stemming.txt\");\n }\n\n\n //add semantic words of each term in query to 'queryTerms'\n if(withSemantic) {\n HashMap<String,ArrayList<String>> semanticWords = ws.connectToApi(originQuery);\n }\n\n //give an ID to query if it's a regular query (not queries file)\n if(queryId.equals(\"\")){\n queryId = \"\" + Searcher.queryID;\n Searcher.queryID++;\n }\n\n String postingDir;\n if (!withStemming) {\n postingDir = \"\\\\indexResults\\\\postingFiles\";\n } else {\n postingDir = \"\\\\indexResults\\\\postingFiles_Stemming\";\n }\n int pointer = 0;\n\n //find docs that contain the terms in the query in their text\n HashMap<String, Integer> queryTermsIgnoreCase = new HashMap<>();\n for (String term : queryTerms.keySet()) {\n String originTerm = term;\n if (!dictionary.containsKey(term.toUpperCase()) && !dictionary.containsKey(term.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(term.toLowerCase())){\n term = term.toLowerCase();\n }\n else {\n term = term.toUpperCase();\n }\n queryTermsIgnoreCase.put(term,queryTerms.get(originTerm));\n pointer = dictionary.get(term).get(2);\n String chunk = (\"\" + term.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsResults'\n if(line != null) {\n findDocsFromLine(line, term);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their text\n for (String cityTerm : chosenCities) {\n if (!dictionary.containsKey(cityTerm) && !dictionary.containsKey(cityTerm.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(cityTerm.toLowerCase())){\n cityTerm = cityTerm.toLowerCase();\n }\n pointer = dictionary.get(cityTerm).get(2);\n // char chunk = indexer.classifyToPosting(term).charAt(0);\n String chunk = (\"\" + cityTerm.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(0, line.indexOf(\"[\") - 1); //get 'docsListStr'\n String[] docsArr = docs.split(\";\");\n for (String docInfo : docsArr) {\n String doc = docInfo.substring(0, docInfo.indexOf(\": \"));\n while(doc.charAt(0) == ' '){\n doc = doc.substring(1);\n }\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their city tag\n if(!chosenCities.isEmpty()){\n for (String cityDicRec: chosenCities) {\n //get pointer to posting from cityDictionary\n try {\n pointer = cityIndexer.getCitiesDictionary().get(cityDicRec);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + \"\\\\cityIndexResults\" + \"\\\\posting_city\" + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(line.indexOf(\"[\") + 1, line.indexOf(\"]\")); //get 'docsListStr'\n String[] docsArr = docs.split(\"; \");\n for (String doc : docsArr) {\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n\n ranker.rank(docsResults, docsOfChosenCities, queryTermsIgnoreCase, dictionary, docsInfo,entities, queryId);\n }", "private void search(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.clearEditText(0);\n solo.typeText(0, searchTerm);\n }", "private void searchBooks(final String userQuery){\n mTTS = new TextToSpeech(this, this);\n\n //When the search Button is pressed, a query is run\n searchButton = findViewById(R.id.searchButton);\n searchButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.listLayout, LoadingFragment.newInstance()).commit();\n// query = searchEditText.getText().toString();\n new FetchData(MainActivity.this).execute(userQuery);\n speakText(userQuery);\n }\n });\n }", "List<TypeTreatmentPlanStatuses> search(String query);", "public List<User> listSearch(String search);", "public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);", "public SearchResults search(String queryString) {\n\n Timer.Context ctx = m_searchTimer.time();\n\n SearchResults searchResults = new SearchResults();\n\n for (String term : s_tokenSplitter.splitToList(queryString)) {\n\n Term t = Term.parse(term);\n\n Statement searchQuery = select(Constants.Schema.C_TERMS_RESOURCE).from(Constants.Schema.T_TERMS)\n .where(eq(Constants.Schema.C_TERMS_CONTEXT, Context.DEFAULT_CONTEXT.getId()))\n .and( eq(Constants.Schema.C_TERMS_FIELD, t.getField()))\n .and( eq(Constants.Schema.C_TERMS_VALUE, t.getValue()));\n\n // TODO: Use async DB calls; Get attrs and metrics concurrently\n for (Row row : m_session.execute(searchQuery.toString())) { // FIXME: toString()?\n String id = row.getString(Constants.Schema.C_TERMS_RESOURCE);\n Optional<Map<String, String>> attrs = fetchResourceAttributes(Context.DEFAULT_CONTEXT, id);\n Collection<String> metrics = fetchMetricNames(Context.DEFAULT_CONTEXT, id);\n\n searchResults.addResult(new Resource(id, attrs), metrics);\n }\n }\n\n try {\n return searchResults;\n }\n finally {\n ctx.stop();\n }\n }", "entities.Torrent.LocalSearchRequest getLocalSearchRequest();", "@Override\n public void onClick(View v) {\n EditText searchBar = (EditText) findViewById(R.id.searchBar);\n String searchTerms = searchBar.getText().toString();\n\n //Perform the search\n new SearchStationsAsync(getBaseContext(), searchTerms).execute();\n }", "public List<? extends GTData> search(String query, Type type) throws IOException {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n Search search = new Search.Builder(query)\n .addIndex(INDEX_NAME)\n .addType(type.toString())\n .setParameter(Parameters.SIZE, 10000)\n .build();\n SearchResult result = client.execute(search);\n\n List<? extends GTData> dataList = null;\n if (type.equals(Bid.class)) {\n dataList = result.getSourceAsObjectList(Bid.class);\n } else if (type.equals(Task.class)) {\n dataList = result.getSourceAsObjectList(Task.class);\n } else if (type.equals(User.class)) {\n dataList = result.getSourceAsObjectList(User.class);\n } else if (type.equals(Photo.class)) {\n dataList = result.getSourceAsObjectList(Photo.class);\n }\n\n return dataList;\n }", "@Path(\"fetch/{query}/{limit}\")\r\n @GET\r\n @Produces(MediaType.APPLICATION_JSON)\r\n public Response fetchTweets(@PathParam(\"query\") final String query, @PathParam(\"limit\") final String limit)\r\n {\r\n log.debug(\"GET: augmentTweets: \" + query + \"\\tlimit string: \" + limit);\r\n\r\n final TweetList list = new TweetList();\r\n final int limitValue = Integer.parseInt(limit);\r\n\r\n // TODO try-with-resources should be:\r\n // try(final MongoClient client = new MongoClient(host, port)){\r\n try (final MongoClient client = new MongoClient(\"74.140.208.12\", 6789))\r\n {\r\n final MongoCollection<Document> coll = client.getDatabase(\"visualdb\").getCollection(\"visualcollection\");\r\n\r\n final Document queryDoc = new Document();\r\n queryDoc.put(\"query\", query);\r\n\r\n final FindIterable<Document> results = coll.find(queryDoc);\r\n\r\n int count = 0;\r\n for (final Document doc : results)\r\n {\r\n count++;\r\n\r\n final Tweet tweet = new Tweet();\r\n tweet.setText(doc.getString(\"text\"));\r\n tweet.setTweetUrl(doc.getString(\"url\"));\r\n tweet.setId(doc.getString(\"tweetId\"));\r\n\r\n final Location loc = new Location();\r\n loc.setInitialized(true);\r\n\r\n final Document locationDoc = doc.get(\"loc\", Document.class);\r\n loc.setLatitude(locationDoc.getDouble(\"latitude\").doubleValue());\r\n loc.setLongitude(locationDoc.getDouble(\"longitude\").doubleValue());\r\n tweet.setLocation(loc);\r\n\r\n final List<String> imageUrls = new ArrayList<>();\r\n final List<?> urls = doc.get(\"images\", List.class);\r\n\r\n for (final Object object : urls)\r\n {\r\n imageUrls.add(object.toString());\r\n }\r\n tweet.setImageUrls(imageUrls);\r\n\r\n final List<String> entities = new ArrayList<>();\r\n final List<?> entityList = doc.get(\"entities\", List.class);\r\n for (final Object object : entityList)\r\n {\r\n entities.add(object.toString());\r\n }\r\n tweet.setExtractedEntities(entities);\r\n list.getTweets().add(tweet);\r\n\r\n if (count > limitValue)\r\n {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return Response.ok(list).build();\r\n }", "public void search() {\n }", "@Override\n public String execute(String request) {\n String author = request.substring(request.indexOf(separator) + 1);\n\n ServiceFactory service = ServiceFactory.getInstance();\n NewsService newsService = service.getNewsService();\n\n String response;\n try {\n newsService.findByAuthor(author);\n response = \"It is search results.\"; ///look it\n } catch (ServiceException e) {\n response = \"News not found.\";\n }\n return response;\n }" ]
[ "0.7408065", "0.6841186", "0.68281555", "0.68018633", "0.67073447", "0.6662265", "0.6471165", "0.64012694", "0.6342421", "0.63389015", "0.63268846", "0.627377", "0.6252426", "0.6243628", "0.62369907", "0.6214291", "0.61889404", "0.61515313", "0.6143657", "0.6118262", "0.61001015", "0.6093964", "0.60748285", "0.6054867", "0.60206574", "0.6018573", "0.59964424", "0.5993918", "0.59686303", "0.5966989", "0.5954294", "0.5953614", "0.59449756", "0.5926127", "0.59035045", "0.5897326", "0.58754843", "0.5870515", "0.58569473", "0.58345574", "0.5832391", "0.5813128", "0.5805841", "0.58026636", "0.5795262", "0.5787723", "0.57517576", "0.5743735", "0.57228494", "0.572085", "0.57110816", "0.5705668", "0.57038164", "0.56826985", "0.5680487", "0.5677833", "0.5677833", "0.5677791", "0.56767166", "0.5659731", "0.56530464", "0.5630799", "0.5626877", "0.5614452", "0.5611429", "0.5607614", "0.5605664", "0.5604065", "0.5594641", "0.55932844", "0.55880374", "0.5586138", "0.5579655", "0.55726516", "0.55683064", "0.5560099", "0.55590916", "0.5558448", "0.5552821", "0.5547472", "0.5545796", "0.5540732", "0.5539534", "0.553888", "0.55384284", "0.553327", "0.5530165", "0.5518102", "0.55143523", "0.55111706", "0.5501132", "0.54997396", "0.5484234", "0.54830396", "0.54804176", "0.5477381", "0.5473472", "0.5466271", "0.54658276", "0.54643166" ]
0.5727172
48
Determine if this handler can handle the intent (but doesn't actually handle it) This is called by the ASK framework.
@Override public boolean canHandle(HandlerInput input) { return input.matches(intentName("GetFromReadingListIntent")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean canHandle(HandlerInput handlerInput, IntentRequest intentRequest) {\n return handlerInput.matches(requestType(IntentRequest.class)) &&\n customIntentNames.stream().noneMatch(intentName -> intentName.equals(intentRequest.getIntent().getName()));\n }", "boolean hasIntent();", "@Override\n public boolean canHandle(HandlerInput handlerInput) {\n\n return handlerInput.matches(intentName(\"NextQuestionIntent\"));\n\n }", "public boolean isAdmissible();", "public abstract boolean canHandle(Object event);", "@Override\n public boolean canHandle(HandlerInput input) {\n return input.matches(intentName(\"SkipIntent\").and(sessionAttribute(Attributes.RIDDLE_STATE_KEY, Attributes.RIDDLE_STATE)));\n }", "public abstract boolean canHandle(ObjectInformation objectInformation);", "public boolean canHandle(HttpServletRequest request) {\n if (log.isDebugEnabled()) {\n log.debug(\"Inside Token2Authenticator canHandle method\");\n }\n return StringUtils.isNotEmpty(request.getParameter(Token2Constants.CODE));\n }", "boolean shouldIgnoreExternalIntentHandlers(String url);", "private Boolean getWantIntent() {\n return false;\n }", "public boolean authorize(@Nullable Intent intent) {\n return false;\n }", "protected boolean isApplicable(SPRequest req) {\n\n Log.debug(\"isApplicable ? \" + req.getPath() + \" vs \" + getRoute());\n\n if (!req.getMethod().equals(getHttpMethod()))\n return false;\n\n String[] uri = req.getSplitUri();\n String[] tok = splitPath;\n if (uri.length != tok.length && splatIndex == -1)\n return false;\n\n if (uri.length <= splatIndex)\n return false;\n\n for (int i = 0; i < tok.length; i++) {\n if (tok[i].charAt(0) != ':' && tok[i].charAt(0) != '*' && !tok[i].equals(uri[i]))\n return false;\n }\n\n return true;\n }", "public boolean canHandle(MetadataSource source);", "private boolean checkInstructionHandler(CodeAtt attribute) {\n //todo\n return false;\n }", "public boolean attempt(CommandSender sender) {\n boolean allowed = test(sender);\n if (!allowed) {\n sender.sendMessage(NO_PERMISSION);\n }\n return allowed;\n }", "@Override\n\tpublic boolean canHandlerMessage(MessageBean bean) {\n\t\treturn bean.getSendType().equals(Config.SEND_TYPE_TOSERVER)&&bean.getMsgType().equals(Config.TYPE_EXIT_ROOM);\n\t}", "private boolean canRecognizeSpeechInput() {\n final Activity activity = getActivity();\n if (activity != null) {\n final List<ResolveInfo> activities = activity.getPackageManager()\n .queryIntentActivities(new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0);\n\n if (activities.size() > 0) {\n return true;\n }\n else {\n return false;\n }\n }\n else {\n return false;\n }\n }", "@Override\n\tprotected void doIsPermitted(String arg0, Handler<AsyncResult<Boolean>> arg1) {\n\t\t\n\t}", "private boolean arEngineAbilityCheck() {\n boolean isInstallArEngineApk = AREnginesApk.isAREngineApkReady(this);\n if (!isInstallArEngineApk && isRemindInstall) {\n Toast.makeText(this, \"Please agree to install.\", Toast.LENGTH_LONG).show();\n finish();\n }\n Log.d(TAG, \"Is Install AR Engine Apk: \" + isInstallArEngineApk);\n if (!isInstallArEngineApk) {\n startActivity(new Intent(this, ConnectAppMarketActivity.class));\n isRemindInstall = true;\n }\n return AREnginesApk.isAREngineApkReady(this);\n }", "boolean supportsAccepts();", "boolean hasAutomlActionRecognitionConfig();", "private static boolean m34054a(Context context, Intent intent) {\n return context.getPackageManager().queryIntentActivities(intent, 65536).size() > 0;\n }", "public void checkHandler()\n {\n ContextManager.checkHandlerIsRunning();\n }", "public boolean shouldExecute() {\n return this.entity.getAttackTarget() != null && this.isBowInMainhand();\n }", "public boolean handle(ExchangeHelper exchangeHelper) throws IOException {\n if (method == null || method == exchangeHelper.getMethod()) {\n System.out.println(String.format(\"%s request received on path '%s', using handler: %s\", exchangeHelper.getMethod(), exchangeHelper.getUriPath(), handler.getClass().getSimpleName()));\n\n //Run pre filters\n for (RouteFilter filter : preFilters) {\n if (!filter.doFilter(exchangeHelper)) {\n //We don't continue, but the request was handled\n return true;\n }\n }\n\n //OK, we are a route for that method\n handler.handle(exchangeHelper);\n\n //Run post filters\n for (RouteFilter filter : postFilters) {\n if (!filter.doFilter(exchangeHelper)) {\n //We don't continue, but the request was handled\n return true;\n }\n }\n\n //We handled that request\n return true;\n }\n\n //We did NOT handle that request\n return false;\n }", "private static boolean isIntentAvailable(Context context, String action) {\n final PackageManager packageManager = context.getPackageManager();\n final Intent intent = new Intent(action);\n List<ResolveInfo> list =\n packageManager.queryIntentActivities(intent,\n PackageManager.MATCH_DEFAULT_ONLY);\n return list.size() > 0;\n }", "public boolean shouldExecute() {\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n if (livingentity != null && livingentity.isAlive()) {\n return ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL;\n } else {\n return false;\n }\n }", "boolean isAllowFriendlyFire();", "public boolean isInvulnerable ( ) {\n\t\ttry {\n\t\t\treturn invokeSafe ( \"isInvulnerable\" );\n\t\t} catch ( NoSuchMethodError ex ) { // legacy\n\t\t\tPlayer handle = handleOptional ( ).orElse ( null );\n\t\t\t\n\t\t\treturn handle != null && EntityReflection.isInvulnerable ( handle );\n\t\t}\n\t}", "boolean canHandle(DatabaseMetaData dbm);", "@java.lang.Override\n public boolean hasMinigameAction() {\n return minigameAction_ != null;\n }", "protected boolean canSilkHarvest() {\n\t\treturn true;\n\t}", "public abstract boolean isAppropriateRequest(Request request);", "public boolean canHandle(DynamicMetadataSource source);", "@Override\n\tpublic boolean shouldExecute() {\n\t\tif (!theEntityTameable.isTamed())\n\t\t\treturn false;\n\t\telse {\n\t\t\tfinal EntityLivingBase var1 = theEntityTameable.getOwner();\n\n\t\t\tif (var1 == null)\n\t\t\t\treturn false;\n\t\t\telse {\n\t\t\t\ttheTarget = var1.getLastAttacker();\n\t\t\t\tfinal int var2 = var1.getLastAttackerTime();\n\t\t\t\treturn var2 != field_142050_e\n\t\t\t\t\t\t&& isSuitableTarget(theTarget, false)\n\t\t\t\t\t\t&& theEntityTameable.func_142018_a(theTarget, var1);\n\t\t\t}\n\t\t}\n\t}", "public boolean isHandled() \n { return (eventAction != null) ? eventAction.isHandled() : false; }", "public boolean shouldHandle(String requestUri) {\n\t\tif (requestUri.startsWith(this.requestStart)) {\n\t\t\tthis.eventListener.log(InternationalisationUtils.getI18nString(I18N_PROCESSING_REQUEST, requestUri.toString()));\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "private final boolean m24749a(Intent intent) {\n Preconditions.m21858a(intent, (Object) \"Intent can not be null\");\n if (!this.f23881a.getPackageManager().queryIntentActivities(intent, 0).isEmpty()) {\n return true;\n }\n return false;\n }", "boolean requestIfNeeded(Activity activity, Permission permission);", "public boolean isHandled() {\r\n return handled;\r\n }", "public boolean isAccessGranted() {\n try {\n PackageManager packageManager = getPackageManager();\n ApplicationInfo applicationInfo = packageManager.getApplicationInfo(getPackageName(), 0);\n AppOpsManager appOpsManager = (AppOpsManager) getSystemService(Context.APP_OPS_SERVICE);\n int mode;\n assert appOpsManager != null;\n mode = appOpsManager.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n applicationInfo.uid, applicationInfo.packageName);\n return (mode == AppOpsManager.MODE_ALLOWED);\n\n } catch (PackageManager.NameNotFoundException e) {\n return false;\n }\n }", "@Override\n public boolean isHandled() {\n return handled;\n }", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "boolean hasRequest();", "public boolean canHandle(String guildId, String messageId) {\n\t\treturn reactions.containsKey(guildId) && reactions.get(guildId).containsKey(messageId);\n\t}", "private boolean checkForAction(){\n IndividualAction thisAction = checkTriggers();\n if(thisAction.getTriggers() == null){\n return false;\n }\n if(!checkSubjects(thisAction.getSubjects())){\n return false;\n }\n doConsumed(thisAction.getConsumed());\n doProduce(thisAction.getProduced());\n results.add(thisAction.getNarration());\n\n return true;\n }", "public final boolean mo19169a(Intent intent) {\n return \"com.google.android.gms.fitness.InternalApi\".equals(intent.getAction());\n }", "protected boolean canSilkHarvest()\n {\n return true;\n }", "protected boolean canSilkHarvest()\n {\n return true;\n }", "public boolean canOfferInsurance() {\n\t\treturn this.hand.getCards().get(0) == Card.ACE;\n\t}", "public final boolean isHandled() {\n return this.handled;\n }", "@CalledByNative\n @Override\n protected boolean canShowAppBanners() {\n return mDelegate.canShowAppBanners();\n }", "public boolean canAttackWithItem() {\n/* 253 */ return false;\n/* */ }", "public static boolean isIntentAvailable(Context context, Intent intent) {\n PackageManager packageManager = context.getPackageManager();\n List<ResolveInfo> list = packageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);\n return list.size() > 0;\n }", "public static boolean isIntentAvailable(Context context, String action) {\n\t\tfinal PackageManager packageManager = context.getPackageManager();\n\t\tfinal Intent intent = new Intent(action);\n\t\tList<ResolveInfo> list =\n\t\t\tpackageManager.queryIntentActivities(intent,\n\t\t\t\t\tPackageManager.MATCH_DEFAULT_ONLY);\n\t\treturn list.size() > 0;\n\t}", "public boolean handlesExclusively(Permission pond) {\n\t\treturn false;\n\t}", "public boolean hasImageByHandler() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }", "public boolean hasPerms()\n {\n return ContextCompat.checkSelfPermission(itsActivity, itsPerm) ==\n PackageManager.PERMISSION_GRANTED;\n }", "public static boolean m121746a(Context context, Intent intent) {\n List<ResolveInfo> queryIntentActivities = context.getPackageManager().queryIntentActivities(intent, 0);\n if (queryIntentActivities == null || queryIntentActivities.size() <= 0) {\n return true;\n }\n return false;\n }", "public boolean hasAI ( ) {\n\t\t// TODO: backwards compatibility required\n\t\treturn extract ( handle -> handle.hasAI ( ) );\n\t}", "public static boolean isIntentAvailable(Context context, Intent intent) {\n final PackageManager packageManager = context.getPackageManager();\n List<ResolveInfo> list = packageManager.queryIntentActivities(intent, 0/*PackageManager.MATCH_DEFAULT_ONLY*/);\n\n return list.size() > 0;\n }", "public static boolean checkWapSuplInit(Intent intent) {\n if (!isEnabled()) return true;\n\n boolean ret = sSingleton.isWapPushLegal(intent);\n if (DEBUG) Log.d(TAG, \"[agps] WARNING: checkWapSuplInit ret=\" + ret);\n return ret;\n }", "public boolean onSecurityCheck() {\n boolean continueProcessing = super.onSecurityCheck();\n if (!continueProcessing) {\n return false;\n }\n AuthorizationManager authzMan = getAuthorizationManager();\n try {\n if (!authzMan.canManageApplication(user)) {\n setRedirect(\"authorization-denied.htm\");\n return false;\n }\n return true;\n } catch (AuthorizationSystemException ex) {\n throw new RuntimeException(ex);\n }\n }", "protected int canTargetCode()\r\n\t{\r\n\t\treturn 0;\r\n\t}", "boolean hasSystemRequest();", "boolean hasImageByHandler();", "boolean eventEnabled(AWTEvent e) {\n if (e.id == ActionEvent.ACTION_PERFORMED) {\n if ((eventMask & AWTEvent.ACTION_EVENT_MASK) != 0 ||\n actionListener != null) {\n return true;\n }\n return false;\n }\n return super.eventEnabled(e);\n }", "public abstract boolean canUse();", "public boolean canProceedWithTapAction() {\n return ClickDelayHelper.canProceedWithTapAction();\n }", "public boolean onSilenceRinger() {\n boolean z;\n if (this.mRemote == null) {\n HiLog.error(LOG_LABEL, \"onSilenceRinger fail, no remote.\", new Object[0]);\n return false;\n }\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(DistributedCallUtils.DISTRIBUTED_CALL_ABILITY_DESCRIPTOR);\n this.mRemote.transact(5, obtain, obtain2, 0);\n z = true;\n try {\n HiLog.info(LOG_LABEL, \"onSilenceRinger.\", new Object[0]);\n } catch (RemoteException unused) {\n }\n } catch (RemoteException unused2) {\n z = false;\n try {\n HiLog.error(LOG_LABEL, \"onSilenceRinger got RemoteException.\", new Object[0]);\n obtain2.recycle();\n obtain.recycle();\n return z;\n } catch (Throwable th) {\n obtain2.recycle();\n obtain.recycle();\n throw th;\n }\n }\n obtain2.recycle();\n obtain.recycle();\n return z;\n }", "boolean hasPlainAction();", "public static boolean isNetworkSettingsApkAvailable() {\n // check whether the target handler exist in system\n boolean isVendorNetworkSettingApkAvailable = false;\n IExtTelephony extTelephony = getIExtTelephony();\n try {\n if (extTelephony != null &&\n extTelephony.isVendorApkAvailable(\"com.qualcomm.qti.networksetting\")) {\n isVendorNetworkSettingApkAvailable = true;\n }\n } catch (RemoteException ex) {\n // could not connect to extphone service, launch the default activity\n log(\"couldn't connect to extphone service, launch the default activity\");\n }\n return isVendorNetworkSettingApkAvailable;\n }", "public boolean canServeRequest() {\n return outputWSService.isRunnningAndDbInstancesAvailable(false);\n }", "public boolean hasMinigameAction() {\n return minigameActionBuilder_ != null || minigameAction_ != null;\n }", "public boolean isFromAuthoritative()\n {\n if ((this.flag & 0x0400) == 0)\n {\n // not from a authoritative server\n return false;\n }\n\n else return true;\n }", "public boolean handlesPerformAccessibilityAction(int i, Bundle bundle) {\n return false;\n }", "public boolean canAttackWithItem() {\n/* 215 */ return false;\n/* */ }", "private boolean checkPermissions(HttpServletRequest request, RouteAction route) {\n\t\treturn true;\n\t}", "boolean hasInitialPromptFulfillment();", "public boolean onIntentChosen(Intent intent, ResolveInfo resolveInfo) {\n return false;\n }", "public boolean canHit() {\n\t\treturn this.hand.countValue().first() < 17;\n\t}", "public boolean action_allowed(){\r\n\t\treturn action_holds.size()==0;\r\n\t}", "private Boolean checkRuntimePermission() {\n List<String> permissionsNeeded = new ArrayList<String>();\n\n final List<String> permissionsList = new ArrayList<String>();\n if (!addPermission(permissionsList, Manifest.permission.READ_EXTERNAL_STORAGE))\n permissionsNeeded.add(\"Storage\");\n if (!addPermission(permissionsList, Manifest.permission.CAMERA))\n permissionsNeeded.add(\"Camera\");\n /* if (!addPermission(permissionsList, Manifest.permission.WRITE_CONTACTS))\n permissionsNeeded.add(\"Write Contacts\");*/\n\n if (permissionsList.size() > 0) {\n if (permissionsNeeded.size() > 0) {\n // Need Rationale\n String message = \"You need to grant access to \" + permissionsNeeded.get(0);\n for (int i = 1; i < permissionsNeeded.size(); i++)\n message = message + \", \" + permissionsNeeded.get(i);\n showMessageOKCancel(message,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n }\n });\n return false;\n }\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n return false;\n }\n return true;\n }", "void intentHasBeenReceivedThroughTheBroadCast(Intent intent);", "public boolean hasImageByHandler() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "@Override\n\tpublic boolean canReceive() {\n\t\treturn false;\n\t}", "@Override\r\n \t\t\tpublic boolean isAllowed(long sessionId, String actionKey) {\n \t\t\t\treturn false;\r\n \t\t\t}", "@Override\r\n\tprotected boolean onDealRequest(YRequest request, YSystem system,\r\n\t\t\tYScene sceneCurrent, YBaseDomain domainContext) {\n\t\treturn false;\r\n\t}", "boolean hasAction();", "boolean hasAction();", "boolean isAccepting();", "public boolean shouldHit() {\r\n\t\tif(getHandVal() < 17) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false; \r\n\t}" ]
[ "0.69047517", "0.6756859", "0.6673539", "0.64604145", "0.6424632", "0.6365312", "0.60315377", "0.6022115", "0.59880036", "0.59029245", "0.5902592", "0.5857161", "0.5838019", "0.5815665", "0.58014905", "0.5732597", "0.56925046", "0.5658852", "0.564287", "0.5632486", "0.56298006", "0.5590794", "0.55840313", "0.5581296", "0.5571971", "0.55588675", "0.55453867", "0.55354124", "0.552607", "0.55157495", "0.5513969", "0.5511949", "0.5498745", "0.54722077", "0.5466818", "0.5465815", "0.5455618", "0.5450038", "0.54475623", "0.5431839", "0.5414403", "0.54137707", "0.5411265", "0.5411265", "0.5411265", "0.5411265", "0.5411265", "0.5411265", "0.5411265", "0.5411265", "0.5411265", "0.5411265", "0.54107267", "0.5401521", "0.53925276", "0.53844494", "0.53844494", "0.537311", "0.535377", "0.5353512", "0.5342387", "0.53408444", "0.5337295", "0.53348905", "0.53162414", "0.5313323", "0.5311143", "0.5304266", "0.5291808", "0.52868736", "0.5283136", "0.52825755", "0.5277861", "0.525447", "0.52544135", "0.524603", "0.52443403", "0.5238806", "0.5222409", "0.5220184", "0.521121", "0.52008283", "0.5196844", "0.51885146", "0.5187271", "0.51754534", "0.517309", "0.51723874", "0.517209", "0.51564604", "0.5142694", "0.51404464", "0.5137174", "0.5133745", "0.51324487", "0.5130704", "0.51306176", "0.51306176", "0.51281214", "0.512047" ]
0.6051888
6
Actually handle the event here. This is called by the ASK framework.
@Override public Optional<Response> handle(HandlerInput input) { log(input, "Starting request"); logSlots(input); // NPE Map<String, Slot> slots = getSlots(input); // first part of the speechText, blank author & title variables String speechText = "Your reading list has " ; String title; String formattedTitle; String author; String formattedAuthor; // iterate through the DDB table ScanRequest scanRequest = new ScanRequest().withTableName("DefaultReadingList"); ScanResult result = client.scan(scanRequest); for (Map<String, AttributeValue> item : result.getItems()){ // grab title & author from the item we are on title = item.get("Title").toString(); author = item.get("Author").toString(); // remove weird formatting on title and author strings and add to speechText formattedTitle = title.substring(4, title.length()-2); formattedAuthor = author.substring(4, author.length()-2); speechText = String.format((speechText + "%s by %s, "), formattedTitle, formattedAuthor); } log(input, "Speech text response is " + speechText); // response object with a card (shown on devices with a screen) and speech (what alexa says) return input.getResponseBuilder() .withSpeech(speechText) // alexa says this .withSimpleCard("GetFromReadingList", speechText) // alexa will show this on a screen .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n public void handle(Event event) {\n }", "@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "public void handleEvent(Event event) {\n\t\t\t\t}", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "public abstract void handle(Object event);", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}", "public void handleEvent(Message event)\r\n {\r\n m_tsm.handleEvent(event);\r\n\r\n String msg = event.getMessage().toLowerCase();\r\n\r\n String name = m_botAction.getPlayerName(event.getPlayerID());\r\n\r\n if(event.getMessageType() == Message.PRIVATE_MESSAGE && m_opList.isER(name))\r\n {\r\n if(msg.equals(\"!safeson\"))\r\n {\r\n c_Activate(name, true);\r\n }\r\n else if(msg.equals(\"!safesoff\"))\r\n {\r\n c_Activate(name, false);\r\n m_entryTimes.clear();\r\n } else if(msg.startsWith(\"!default\")) {\r\n cmd_default(name, msg);\r\n }\r\n }\r\n }", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n public void processEvent(IAEvent e) {\n\r\n }", "@Override\n\tpublic void handleEvent(EnOceanMessage data) {\n\t}", "public void handle(Object e){\n\t\tif(e.getClass().equals(GetResultRequestEvent.class)){\n\t\t\tgetResults((GetResultRequestEvent)e);\n\t\t}else if(e.getClass().equals(RefreshAllDataEvent.class)){\n\t\t\ttf.getData(app);\n\t\t}else if(e.getClass().equals(ExportDataEvent.class)){\n\t\t\ttf.exportItemDB();\n\t\t}\n\t}", "void handleEvent(Event e) {\n\n ConstellationIdentifier cid = null;\n\n synchronized (this) {\n\n // See if the activity is in one of our queues\n ActivityRecord tmp = lookup.get(e.target);\n\n if (tmp != null) {\n // It is, so enqueue it and return.\n tmp.enqueue(e);\n return;\n }\n\n // See if we have exported it somewhere\n cid = exportedActivities.lookup(e.target);\n\n if (cid == null) {\n // If not, it may have been relocated\n cid = relocatedActivities.lookup(e.target);\n }\n\n if (cid == null) {\n // If not, we simply send the event to the parent\n cid = e.target.getOrigin();\n }\n }\n\n if (cid.equals(identifier)) {\n // the target is local, which means we have lost a local activity\n logger.error(\"Activity \" + e.target\n + \" does no longer exist! (event dropped)\");\n return;\n }\n\n parent.handleEventMessage(new EventMessage(identifier, cid, e));\n }", "@Override\r\n public void onEvent(FlowableEvent event) {\n }", "@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}", "private void eventhandler() {\n\r\n\t}", "@Override public void handle(ActionEvent e)\n\t {\n\t }", "public void handleEvent(Event event) {\n \t\tassertNotNull(event);\n \t\tassertTrue(event instanceof WonesysAlarmEvent);\n \n \t\tWonesysAlarmEvent wevent = (WonesysAlarmEvent) event;\n \n \t\tcheckAnyAlarmReceived(wevent);\n \t}", "@Override\r\n\t\tpublic void handle(Event e) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tlogger.error(\"Error: handle never pressed. \");\r\n\t\t}", "Event () {\n // Nothing to do here.\n }", "@Override\n public void handle(Event event) {\n explainWhoStart();\n }", "public void handleEvent(PlayerEntered event) {\r\n if( isEnabled )\r\n m_botAction.sendPrivateMessage(event.getPlayerName(), \"Autopilot is engaged. PM !info to me to see how *YOU* can control me. (Type :\" + m_botAction.getBotName() + \":!info)\" );\r\n }", "@Override\n public void handleEvent(EventInfo event) {\n if (event.eventType == EventType.GO_TO) {\n goToYear(event.selectedTime.year);\n }\n }", "@Override\n\tprotected void onEventComming(EventCenter eventCenter) {\n\t}", "@Override\n public void onEvent(Event t) throws CSenseException {\n }", "public void processEvent(Event event) {\n\t\t\n\t}", "void onApplicationEvent(ApplicationEvent e);", "@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}", "protected void\n\t handleEvent(SoHandleEventAction ha)\n\t //\n\t ////////////////////////////////////////////////////////////////////////\n\t {\n\t // set eventAction so that the app may call setHandled(), grab(), etc\n\t eventAction = ha;\n\t \n\t // Are we monitoring a path?\n\t if (pathOfInterest == null)\n\t invokeCallbacks(ha.getEvent());\n\t else {\n\t // make sure the path of interest was picked\n\t SoPickedPoint pp = ha.getPickedPoint();\n\t \n\t if ((pp != null) && pp.getPath().containsPath(pathOfInterest))\n\t invokeCallbacks(ha.getEvent());\n\t }\n\t \n\t eventAction = null;\n\t }", "protected void handleEvent(MouseEvent ev) {\n\t}", "public final void handle() {\n runHandler();\n }", "public abstract void processEvent(Object event);", "public void consulterEvent() {\n\t\t\n\t}", "@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void HandleEvent(int action) {\n\t\tsetActiveAction(action);\n\t\tSystem.out.println(\"action is :\" + action);\n\t\t\n\t}", "@Override\n public void handle(ActionEvent event) {\n if (appUser != null) {\n \tAnalyticsOutput analyticsOutput = new AnalyticsOutput();\n \tanalyticsOutput.generateOutput(conn, appUser.getUserID());\n }else {\n \tSystem.out.println(\"You have to be signed in to get analytics\");\n }\n }", "@Override\n public void handle(Event event) {\n secondPlayer();\n }", "public void handle(TogglesEvent event)\n\tthrows Exception;", "void handleEvent(AutomatedSolvingEvent event);", "@Override\n public void onEvent(String eventName, HashMap dataFromHansel) {\n if (\"hansel_nudge_event\".equals(eventName)) {\n FirebaseAnalyticsHelper.logEvent(this, \"hansel_nudge_event\", dataFromHansel);\n }\n }", "void event(Event e) throws Exception;", "@Override\n public void onAccessibilityEvent(AccessibilityEvent event) {\n }", "public void handle(Event event) {\n showDiceResult();\n }", "@Override\n\t\t\tpublic void handle(MouseEvent event) {\n\t\t\t}", "public void handleEvent(Event e)\n \t\t{\n \t\t\tmWindow.getDisplay().timerExec(500, mToggleUPnPEvent);\n \t\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}", "void handleActionEvent(ActionEvent event);", "@Override\n\tpublic void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {\n\t\tLog.i(\"userEventTriggered\", evt.getClass().getName());\n\t\tsuper.userEventTriggered(ctx, evt);\n\t}", "public void handleEvent(PlayerPosition event)\r\n {\r\n if(m_active)\r\n {\r\n String name = m_botAction.getPlayerName(event.getPlayerID());\r\n\r\n if(event.isInSafe())\r\n {\r\n int ship = m_botAction.getPlayer(event.getPlayerID()).getShipType();\r\n int freq = m_botAction.getPlayer(event.getPlayerID()).getFrequency();\r\n boolean delayExceeded = true;\r\n\r\n if(delaySeconds > 0)\r\n {\r\n long currentTime = System.currentTimeMillis();\r\n\r\n if(m_entryTimes.containsKey(name))\r\n {\r\n long entryTime = m_entryTimes.get(name);\r\n int delta = (int)(currentTime - entryTime);\r\n\r\n if(!enableMS) {\r\n // Do the delay in seconds.\r\n delta /= Tools.TimeInMillis.SECOND;\r\n }\r\n\r\n if(delta < delaySeconds)\r\n {\r\n delayExceeded = false;\r\n }\r\n else\r\n {\r\n m_entryTimes.remove(name);\r\n }\r\n }\r\n else\r\n {\r\n m_entryTimes.put(name, currentTime);\r\n delayExceeded = false;\r\n }\r\n }\r\n\r\n if(delayExceeded)\r\n {\r\n if(specPlayer)\r\n {\r\n m_botAction.spec(event.getPlayerID());\r\n m_botAction.spec(event.getPlayerID());\r\n\r\n if(!speccedMsg.equalsIgnoreCase(\"none\")) {\r\n if(speccedSound != 0)\r\n m_botAction.sendArenaMessage(name + \" \" + speccedMsg, speccedSound);\r\n else\r\n m_botAction.sendArenaMessage(name + \" \" + speccedMsg);\r\n }\r\n }\r\n\r\n if(changeShip && ship != targetShip)\r\n {\r\n m_botAction.setShip(event.getPlayerID(), targetShip);\r\n\r\n if(!shipChgMsg.equalsIgnoreCase(\"none\")) {\r\n if(shipSound != 0)\r\n m_botAction.sendArenaMessage(name + \" \" + shipChgMsg, shipSound);\r\n else\r\n m_botAction.sendArenaMessage(name + \" \" + shipChgMsg);\r\n }\r\n\r\n }\r\n\r\n if(changeFreq && freq != targetFreq)\r\n {\r\n m_botAction.setFreq(event.getPlayerID(), targetFreq);\r\n\r\n if(!freqChgMsg.equalsIgnoreCase(\"none\")) {\r\n if(freqSound != 0)\r\n m_botAction.sendArenaMessage(name + \" \" + freqChgMsg, freqSound);\r\n else\r\n m_botAction.sendArenaMessage(name + \" \" + freqChgMsg);\r\n }\r\n }\r\n }\r\n }\r\n else if(delaySeconds > 0)\r\n {\r\n m_entryTimes.remove(name);\r\n }\r\n }\r\n }", "@Override\r\n\tpublic void handle(KeyEvent event) {\n\t}", "@Override\n\t\t\tpublic void onEvent(ObjectEvent event) {\n\t\t\t\t\n\t\t\t\tRankTempInfo rankInfo = RankServerManager.getInstance().getRankTempInfo(player.getPlayerId());\n\t\t\t\tif(rankInfo!=null){\n\t\t\t\t\tgetTask().updateProcess((int)rankInfo.getSoul());\n\t\t\t\t}\n\t\t\n\t\t\t\t\n\t\t\t}", "@Override\n public void onEventReceived(Event event) {\n super.onEventReceived(event);\n\n switch (event.getRawEventType())\n {\n case Track:\n trackManager.manageTrackEvent(event);\n break;\n case TentativeTracking:\n manageTentativeTrackingEvent(event);\n break;\n case Tracking:\n manageTrackingEvent(event);\n break;\n }\n }", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.processRequest(e);\n }", "void onBusEvent(Event event);", "public void handleEvent(GameEvent<S, A> e) {\n\t\t\r\n\t\tif (playerId == e.getState().getTurn() && !game.isFinished()){\r\n\t\t\tif (playerMode != PlayerMode.manual && (e.getType() == GameEvent.EventType.Info || e.getType() == GameEvent.EventType.Change)) {\r\n\t\t\t\tdecideMakeAutomaicMove();\r\n\t\t\t}\r\n\r\n\t\t\telse if (e.getType() == GameEvent.EventType.Start){\r\n\t\t\t\tif (playerMode == PlayerMode.random) makeRandomMove();\r\n\t\t\t\telse if (playerMode == PlayerMode.smart) makeSmartMove();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void onTakeOffTeaBagRaised() {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t((EventListenerTab) FragmentUtil.getActivity(discoverFragmentTab)).onEventSelected(event, \n\t\t\t\t\t\tholder.imgEvt, holder.txtEvtTitle);\n\t\t\t\tholder.rltLytBtm.setPressed(false);\n\t\t\t}", "@Override\n public void postEvent(Event event)\n {\n normalQueue.offer(event);\n }", "public void processEvent(SimEvent ev) {\n switch(ev.getTag()) {\n case OBSERVE: //It is my custom event\n //I must observe the datacenter\n balanceLoadCheck();\n //Observation loop, re-observe in `delay` seconds\n send(this.getId(), delay, OBSERVE, null);\n }\n }", "@Override\r\n\tpublic boolean handleEvent(IEvent event) {\n\t\treturn false;\r\n\t}", "@Override\n public void onTangoEvent(TangoEvent event) {\n }", "@Override\n public void handle(MouseEvent event) {\n }", "@Override\n public void onTakeTeaBagRaised() {\n }", "@Override\n\t\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\t\tint eventSelection = eventOptions.getSelectionModel().getSelectedIndex();\n\t\t\t\t\t\tString description = new String(descriptionField.getText());\n\t\t\t\t\t\tdouble priceFactor = Double.parseDouble(priceFactorField.getText());\n\n\t\t\t\t\t\tif (eventSelection == 0) {\n\t\t\t\t\t\t\tConcert selection = new Concert(description, priceFactor);\n\t\t\t\t\t\t\tevents.add(selection);\n\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t\tmessage.setText(\"Concert event created.\\n\");\n\t\t\t\t\t\t} else if (eventSelection == 1) {\n\t\t\t\t\t\t\tPlay selection = new Play(description, priceFactor);\n\t\t\t\t\t\t\tevents.add(selection);\n\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t\tmessage.setText(\"Play event created.\\n\");\n\t\t\t\t\t\t} else if (eventSelection == 2) {\n\t\t\t\t\t\t\tMeeting selection = new Meeting(description, priceFactor);\n\t\t\t\t\t\t\tevents.add(selection);\n\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t\tmessage.setText(\"Meeting event created.\\n\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tmessage.setText(\"Please choose Concert, Play, or Meeting from the Event Options list.\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tprimaryStage.setTitle(\"Events\");\n\t\t\t\t\t\tprimaryStage.setScene(scene);\n\t\t\t\t\t}", "public void handleEvent(final Event event) {\r\n\t\tIElementManager manager = getManager();\r\n\t\tif (manager == null) return;\r\n\t\tif (event.getSource() == application) {\r\n\t\t\tmanager.run(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tif (getDisplay() == null || getDisplay().isDisposed()) return;\r\n\t\t\t\t\tswitch (event.getType()) {\r\n\t\t\t\t\t\tcase Application.EVENT_DEVICE_ADDED: {\r\n\t\t\t\t\t\t\tSystemID systemID = (SystemID)event.getData();\r\n\t\t\t\t\t\t\tDeviceFigure assemblerDevice = (DeviceFigure)assemblerElements.get(systemID);\r\n\t\t\t\t\t\t\tif (assemblerDevice != null) {\r\n\t\t\t\t\t\t\t\tassemblerDevice.setResolved(true);\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase Application.EVENT_DEVICE_REMOVED: {\r\n\t\t\t\t\t\t\tSystemID systemID = (SystemID)event.getData();\r\n\t\t\t\t\t\t\tDeviceFigure assemblerDevice = (DeviceFigure)assemblerElements.get(systemID);\r\n\t\t\t\t\t\t\tif (assemblerDevice != null) {\r\n\t\t\t\t\t\t\t\tassemblerDevice.setResolved(false);\r\n\t\t\t\t\t\t\t\tassemblerDevice.setAvailable(false);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase Application.EVENT_REQEUST_ADDED: {\r\n\t\t\t\t\t\t\taddRequest((InstanceRequest)event.getData());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase Application.EVENT_REQUEST_CHANGED: {\r\n\t\t\t\t\t\t\tchangeRequest((InstanceRequest)event.getData());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase Application.EVENT_REQUEST_REMOVED: {\r\n\t\t\t\t\t\t\tremoveRequest((InstanceRequest)event.getData());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase Application.EVENT_BINDING_CHANGED: {\r\n\t\t\t\t\t\t\tchangeBinding((InstanceBinding)event.getData());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase Application.EVENT_STATE_ADDED: {\r\n\t\t\t\t\t\t\tObject[] data = (Object[])event.getData();\r\n\t\t\t\t\t\t\taddState((Pointer)data[0], (AssemblyState)data[1]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t// nothing to be done here\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tassemblerGraph.updateGraph();\r\n\t\t\t\t\tapplicationGraph.updateGraph();\r\n\t\t\t\t}\t\t\t\r\n\t\t\t});\r\n\t\t\tblock();\r\n\t\t} else if (event.getSource() == registry) {\r\n\t\t\tgetDisplay().asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tif (getDisplay() == null || getDisplay().isDisposed()) return;\r\n\t\t\t\t\tswitch (event.getType()) {\r\n\t\t\t\t\t\tcase DeviceRegistry.EVENT_DEVICE_ADDED: {\r\n\t\t\t\t\t\t\t// add the device to the panel\r\n\t\t\t\t\t\t\tDeviceDescription description = \r\n\t\t\t\t\t\t\t\t(DeviceDescription)event.getData();\r\n\t\t\t\t\t\t\taddDevice(description);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase DeviceRegistry.EVENT_DEVICE_REMOVED: {\r\n\t\t\t\t\t\t\tDeviceDescription description = \r\n\t\t\t\t\t\t\t\t(DeviceDescription)event.getData();\r\n\t\t\t\t\t\t\t// invalidate the device\r\n\t\t\t\t\t\t\tremoveDevice(description);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t// nothing to be done here\r\n\t\t\t\t\t}\r\n\t\t\t\t\tassemblerGraph.updateGraph();\r\n\t\t\t\t\tapplicationGraph.updateGraph();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}", "public void process(WatchedEvent event) {\n\t\t\n\t}", "public void processEvent(GovernanceEngineEvent event)\n {\n if (listener != null)\n {\n // todo\n }\n }", "@Override\r\n\tpublic void performAction(Event e) {\n\r\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n handleAction();\n }", "@Override\r\n\tpublic void processEvent() {\n\t\tint VolumeButtonEvent = (Integer) pdu.getRawPayload()[0];\r\n\t\t//System.out.println(\"number of objects \" + numObjects);\r\n\t}", "void doEvent(LightEvent what);", "protected void handleNext(ActionEvent event) {\n\t}", "@Override\n public void handle(MouseEvent event) {\n if (event.getButton() == event.getButton().SECONDARY) {\n if (isHighlighted(event.getX(), event.getY())) {\n\n //context menu shows relative the main screen\n //so we need to get the x and y co-ordinates of the\n //primary stage and add them to our mouse co-ordinates\n contextMenu.show(objCanvas, event.getSceneX() + primaryStage.getX(),\n event.getSceneY() + primaryStage.getY());\n }\n// undo();\n return;\n }\n\n //prompt annotation name\n Map opt = getObjectInfo();\n String name = opt.get(\"name\") != null ? (String) opt.get(\"name\") : \"N/A\";\n String pose = opt.get(\"pose\") != null ? (String) opt.get(\"pose\") : \"N/A\";\n int truncated = opt.get(\"truncated\") != null ? (Integer) opt.get(\"truncated\") : 0;\n int difficult = opt.get(\"difficult\") != null ? (Integer) opt.get(\"difficult\") : 0;\n\n //update\n repaintCanvas();\n\n labelObject(name, pose, truncated, difficult);\n\n //clear size to make room for the next rectangle\n xwidth = 0;\n yheight = 0;\n\n drawRec = false;\n }", "@Override\n\tpublic void postProcessAction(GwtEvent e) {\n\t\t\n\t}", "public void handleEvent(Message event) {\n\r\n if(m_ensureLock && event.getMessageType() == Message.ARENA_MESSAGE && event.getMessage().equals(\"Arena UNLOCKED\")) {\r\n m_botAction.toggleLocked();\r\n return;\r\n }\r\n\r\n if(event.getMessageType() != Message.PRIVATE_MESSAGE) {\r\n return;\r\n }\r\n\r\n int id = event.getPlayerID();\r\n String name = m_botAction.getPlayerName(id);\r\n String msg = event.getMessage().trim().toLowerCase();\r\n\r\n if(name == null || msg == null || msg.length() == 0) {\r\n return;\r\n }\r\n\r\n String lcname = name.toLowerCase();\r\n\r\n boolean isSmod = m_operatorList.isSmod(lcname);\r\n boolean hasAccess = isSmod || m_access.contains(lcname);\r\n\r\n /* public pm commands */\r\n //!help\r\n if(msg.equals(\"!help\")) {\r\n m_botAction.privateMessageSpam(id, help_player);\r\n\r\n if(hasAccess) {\r\n m_botAction.privateMessageSpam(id, help_staff);\r\n }\r\n\r\n if(isSmod) {\r\n m_botAction.privateMessageSpam(id, help_smod);\r\n m_botAction.sendPrivateMessage(id, \"Database: \" + (m_botAction.SQLisOperational() ? \"online\" : \"offline\"));\r\n }\r\n\r\n //!status\r\n } else if(msg.equals(\"!status\")) {\r\n cmdStatus(id);\r\n\r\n //!spec\r\n } else if(msg.equals(\"!spec\")) {\r\n if(m_state.isStarting() || m_state.isStartingFinal()) {\r\n m_botAction.specWithoutLock(id);\r\n }\r\n\r\n //!about\r\n } else if(msg.equals(\"!about\")) {\r\n m_botAction.sendPrivateMessage(id, \"KimBot! (2007-12-15) by flibb <ER>\", 7);\r\n\r\n //!lagout/!return\r\n } else if(msg.equals(\"!lagout\") || msg.equals(\"!return\")) {\r\n KimPlayer kp = m_allPlayers.get(lcname);\r\n\r\n if(kp == null) {\r\n return;\r\n }\r\n\r\n if(!kp.m_isOut) {\r\n synchronized(m_state) {\r\n if((m_state.isMidGame() || m_state.isMidGameFinal()) && m_lagoutMan.remove(lcname)) {\r\n putPlayerInGame(id, kp, false);\r\n } else if((m_state.isStarting() || m_state.isStartingFinal()) && m_startingLagouts.remove(lcname)) {\r\n m_startingReturns.add(kp);\r\n m_botAction.sendPrivateMessage(id, \"You will be put in at the start of the game.\");\r\n }\r\n }\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"Cannot return to game.\");\r\n }\r\n\r\n //poll vote\r\n } else if(Tools.isAllDigits(msg)) {\r\n if(m_poll != null) {\r\n m_poll.handlePollCount(id, name, msg);\r\n }\r\n\r\n /* staff commands */\r\n } else if(hasAccess) {\r\n //!start\r\n if(msg.equals(\"!start\")) {\r\n m_deathsToSpec = 10;\r\n m_maxTeamSize = 1;\r\n cmdStart(id);\r\n } else if(msg.startsWith(\"!start \")) {\r\n String[] params = msg.substring(7).split(\" \");\r\n m_deathsToSpec = 10;\r\n m_maxTeamSize = 1;\r\n\r\n for(String p : params) {\r\n try {\r\n if(Tools.isAllDigits(p)) {\r\n m_deathsToSpec = Integer.parseInt(p);\r\n } else if(p.startsWith(\"teams=\")) {\r\n m_maxTeamSize = Integer.parseInt(p.substring(6));\r\n }\r\n } catch(NumberFormatException e) {\r\n m_botAction.sendPrivateMessage(id, \"Can't understand: \" + p);\r\n return;\r\n }\r\n }\r\n\r\n m_deathsToSpec = Math.max(1, Math.min(99, m_deathsToSpec));\r\n m_maxTeamSize = Math.max(1, Math.min(99, m_maxTeamSize));\r\n cmdStart(id);\r\n //!stop\r\n } else if(msg.equals(\"!stop\")) {\r\n cmdStop(id);\r\n //!die\r\n } else if(msg.equals(\"!die\")) {\r\n if(m_state.isStopped()) {\r\n m_lvz.clear();\r\n\r\n try {\r\n Thread.sleep(3000);\r\n } catch(InterruptedException e) {}\r\n\r\n m_botAction.die(\"!die by \" + name);\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"A game is in progress. Use !stop first.\");\r\n }\r\n\r\n //!startinfo\r\n } else if(msg.equals(\"!startinfo\")) {\r\n if(m_state.isStopped() || m_startedBy == null) {\r\n m_botAction.sendPrivateMessage(id, \"No one started a game.\");\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"Game started by \" + m_startedBy);\r\n }\r\n\r\n //!reset\r\n } else if(msg.equals(\"!reset\")) {\r\n if(m_state.isStopped()) {\r\n resetArena();\r\n m_botAction.sendPrivateMessage(id, \"Resetted.\");\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"A game is in progress. Use !stop first.\");\r\n }\r\n\r\n //!remove\r\n } else if(msg.startsWith(\"!remove \")) {\r\n synchronized(m_state) {\r\n if(m_state.isStopped()) {\r\n m_botAction.sendPrivateMessage(id, \"The game is not running.\");\r\n } else {\r\n cmdRemove(id, msg.substring(8));\r\n }\r\n }\r\n\r\n //!test\r\n } else if(msg.startsWith(\"!test\")) {\r\n m_botAction.sendArenaMessage(Tools.addSlashes(\"test'test\\\"test\\\\test\"));\r\n\r\n } else if(isSmod) {\r\n //!addstaff\r\n if(msg.startsWith(\"!addstaff \")) {\r\n String addname = msg.substring(10);\r\n\r\n if(addname.length() <= 1 || addname.indexOf(':') >= 0) {\r\n m_botAction.sendPrivateMessage(id, \"Invalid name. Access list not changed.\");\r\n } else if(addname.length() > MAX_NAMELENGTH) {\r\n m_botAction.sendPrivateMessage(id, \"Name too long. Max. 18 characters.\");\r\n } else if(m_access.add(msg.substring(10))) {\r\n updateAccessList(id);\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"That name already has access.\");\r\n }\r\n\r\n //!delstaff\r\n } else if(msg.startsWith(\"!delstaff \")) {\r\n if(m_access.remove(msg.substring(10))) {\r\n updateAccessList(id);\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"Name not found.\");\r\n }\r\n\r\n //!accesslist\r\n } else if(msg.equals(\"!accesslist\")) {\r\n for(String s : m_access) {\r\n m_botAction.sendPrivateMessage(id, s);\r\n }\r\n\r\n m_botAction.sendPrivateMessage(id, \"End of list.\");\r\n //!purge\r\n } else if(msg.equals(\"!purge\")) {\r\n cmdPurge(id, 90);\r\n } else if(msg.startsWith(\"!purge \")) {\r\n try {\r\n cmdPurge(id, Integer.parseInt(msg.substring(7)));\r\n } catch(NumberFormatException e) {\r\n m_botAction.sendPrivateMessage(id, \"Nothing done. Check your typing.\");\r\n }\r\n }\r\n }\r\n }\r\n }", "public void handle(Event arg0) {\n\t\t\t\tif (running == false) {\r\n\t\t\t\t\t// Check if the inputs are valid\r\n\t\t\t\t\tboolean valid = validateForm();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// If the inputs are valid\r\n\t\t\t\t\tif (valid) {\r\n\t\t\t\t\t\t// Hide any showing error message\r\n\t\t\t\t\t\tsetErrorMessage(\"\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Set running to true to prevent multiple launches\r\n\t\t\t\t\t\trunning = true;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Add the display to the UI\r\n\t\t\t\t\t\tborder.setCenter(simulationDisplay());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Create object of simulation options to be passed to agents\r\n\t\t\t\t\t\tObject[] setup = getOptions(gui);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Try to create a new parent carpark agent\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tagent = container.createNewAgent(\"Carpark\", \"CarparkAgent\", setup);\r\n\t\t\t\t\t\t\tagent.start();\r\n\t\t\t\t\t\t} catch (StaleProxyException e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "public void run()\n {\n Event event = request.getEvent();\n if (logger.isDebugEnabled())\n logger.debug(\"Processing event: \"\n + event.getClass().getSimpleName());\n\n EventStatus status = null;\n try\n {\n if (request.isCancelRequested())\n {\n // If the event is cancelled note it.\n status = new EventStatus(false, true, null);\n if (logger.isDebugEnabled())\n logger.debug(\"Skipped cancelled event: \"\n + event.getClass().getSimpleName());\n }\n else\n {\n // Mark the request as started and submit to state machine.\n request.started();\n sm.applyEvent(event);\n status = new EventStatus(true, false, null);\n if (logger.isDebugEnabled())\n logger.debug(\"Applied event: \"\n + event.getClass().getSimpleName());\n }\n }\n catch (InterruptedException e)\n {\n // Handle an interruption, which could happen if we are cancelled\n // while executing.\n status = new EventStatus(false, true, e);\n logger.debug(String.format(\"Failed to apply event %s, reason=%s\",\n event, e.getLocalizedMessage()));\n }\n catch (Throwable e)\n {\n // Handle a failure.\n status = new EventStatus(false, false, e);\n logger.debug(String.format(\"Failed to apply event %s, reason=%s\",\n event, e.getLocalizedMessage()));\n }\n finally\n {\n // We need to store the status and call the completion\n // listener, if any. This must happen regardless of any\n // exception that occurs.\n try\n {\n if (listener != null)\n request.setAnnotation(listener.onCompletion(event, status));\n }\n catch (InterruptedException e)\n {\n // Do nothing; this is the end of the road for this task.\n }\n catch (Throwable e)\n {\n logger.error(\"Unexpected failure while calling listener\", e);\n }\n finally\n {\n // Make sure we record the request state no matter what to\n // prevent hangs.\n request.setStatus(status);\n }\n }\n }", "@Override\n\tpublic void doHandleEvent(CsvEvent event) {\n\t\t\n\t}", "@Override\n\tpublic boolean onEvent( HCI_Event evt) {\n\t\tif ( evt instanceof HCI_CommandComplete) {\n\t\t} else if ( evt instanceof HCI_CommandStatus) {\n\t\t} else if ( evt instanceof HCI_InquiryComplete) {\n\t\t} else if ( evt instanceof HCI_InquiryResult) {\n\t\t} else if ( evt instanceof HCI_ConnectionComplete) {\n\t\t} else if ( evt instanceof LE_AdvertisingReport) {\n\t\t\tfinal LE_AdvertisingReport le_ar = (LE_AdvertisingReport) evt;\n\t\t\tDate timeOfCapture = new Date(); // current time\n\t\t\treturn this.handle_LE_AdvertisingReport( le_ar, timeOfCapture);\n\t\t} else {\n\t\t\tlogger.warning( \"unhandled event: \" + evt.toString());\n\t\t}\n\t\treturn true;\n\t}", "void handleEvent(int event, String remainder) {\n switch (event) {\n case DISCONNECTED:\n handleNetworkStateChange(NetworkInfo.DetailedState.DISCONNECTED, remainder);\n break;\n\n case CONNECTED:\n handleNetworkStateChange(NetworkInfo.DetailedState.CONNECTED, remainder);\n break;\n\n case SCAN_RESULTS:\n mWifiStateTracker.notifyScanResultsAvailable();\n break;\n\n case TERMINATING:\n supplicantConnected = false;\n mWifiStateTracker.notifySupplicantLost();\n break;\n\n case UNKNOWN:\n break;\n }\n }", "@Override\n\t\tpublic void onActive(AcStatusEvent event) {\n\n\t\t}", "@Override\r\n protected void handleEvent(int actionId)\r\n {\n cancelCurrentRequest();\r\n requestRouteChoices();\r\n }" ]
[ "0.7656268", "0.7656268", "0.7656268", "0.7656268", "0.7656268", "0.7638414", "0.7638414", "0.76343423", "0.76343423", "0.76343423", "0.7444596", "0.7193736", "0.7164876", "0.7145207", "0.67943764", "0.67389876", "0.66893816", "0.66893816", "0.6675269", "0.6666903", "0.66595984", "0.6648136", "0.66305345", "0.6610449", "0.65515065", "0.65515065", "0.65465117", "0.650271", "0.64179", "0.6411572", "0.639929", "0.6376539", "0.637297", "0.63633466", "0.6362441", "0.63417256", "0.62964845", "0.62945485", "0.62630475", "0.6247095", "0.6245053", "0.62367785", "0.62354946", "0.62352884", "0.6220303", "0.6181041", "0.6159067", "0.6156069", "0.61148065", "0.6108754", "0.60887206", "0.60811406", "0.60734475", "0.60668427", "0.60664743", "0.60570455", "0.6046047", "0.604314", "0.6034041", "0.60323024", "0.60276985", "0.6005093", "0.60044694", "0.60008466", "0.60008466", "0.59997547", "0.59987843", "0.5995221", "0.59689564", "0.5956377", "0.5948661", "0.59452766", "0.5926128", "0.5922244", "0.5913187", "0.5881926", "0.587697", "0.5864624", "0.5862943", "0.5862075", "0.58514905", "0.58466244", "0.5843928", "0.5837254", "0.5835883", "0.5830524", "0.5824961", "0.5821508", "0.5816734", "0.5806631", "0.5806332", "0.58003175", "0.58002454", "0.5794349", "0.57911235", "0.5788455", "0.5777477", "0.57753235", "0.5774844", "0.5771373", "0.57639605" ]
0.0
-1
Get the slots passed into the request
Map<String, Slot> getSlots(HandlerInput input) { // this chunk of code gets the slots Request request = input.getRequestEnvelope().getRequest(); IntentRequest intentRequest = (IntentRequest) request; Intent intent = intentRequest.getIntent(); if (intent.getSlots() == null) { return Collections.emptyMap(); } return Collections.unmodifiableMap(intent.getSlots()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Slots getSlots()\n\t{\n\t\treturn Slots.fromNumber( mMessage.getInt( B1_SLOTS ) );\n\t}", "public synchronized long getSlots() {\n return slots;\n }", "@Override\n\tpublic List<AvailableSlot> getAvailableSlots() {\n\t\tList<AvailableSlot> slots = (List<AvailableSlot>) availableSlotRepository.findAll();\n\t\treturn slots;\n\t}", "@Override\n public List<SlotType> getSlots() {\n List<SlotType> slots = new ArrayList<SlotType>();\n\n if (sourceObjectId != null) {\n slots.add(RegistryUtil.newStringSlot(\"sourceObjectId\",\n sourceObjectId));\n }\n\n if (targetObjectId != null) {\n slots.add(RegistryUtil.newStringSlot(\"targetObjectId\",\n targetObjectId));\n }\n\n if (sourceObjectType != null) {\n slots.add(RegistryUtil.newStringSlot(\"sourceObjectType\",\n sourceObjectType));\n }\n\n if (targetObjectType != null) {\n slots.add(RegistryUtil.newStringSlot(\"targetObjectType\",\n targetObjectType));\n }\n\n if (associationType != null) {\n slots.add(RegistryUtil.newStringSlot(\"associationType\",\n associationType));\n }\n\n return slots;\n }", "public Set<Integer> slots() {\r\n\t\tHashSet<Integer> slots = new HashSet<Integer>();\r\n\t\tfor(Entry s : stmts) {\r\n\t\t\ts.code.registers(slots);\r\n\t\t}\r\n\t\treturn slots;\r\n\t}", "public Object[][] getSlotsInfo() {\n synchronized (lock) {\n jedisArray = getJedis(\"SLOT\");\n\n for (int index = 0; index < jedisArray.length; index++) {\n if (flag[index] == 1) {\n try {\n String info = jedisArray[index].clusterNodes();\n\n initNodeInfo(info);\n\n data = new Object[ipPort2nodeSlots.size()][2];\n int count = 0;\n for (String item : ipPort2nodeSlots.keySet()) {\n data[count][0] = item;\n data[count++][1] = ipPort2nodeSlots.get(item)\n .size();\n }\n break;\n } catch (Exception e) {\n continue;\n }\n }\n }\n }\n return data;\n }", "public ArrayList<Point> getAvailableSlots ()\n {\n return availableSlots;\n }", "public int getSlot() {\n return slot;\n }", "public int getSlot() {\n return slot;\n }", "public Integer getFreeSlots() {\n return AvailableSlots.size();\n }", "public Slot getSlotFrom() {\n return slotFrom;\n }", "public int getSlot() {\n\t\treturn slot;\n\t}", "public int getSlot() {\r\n\t\treturn slot;\r\n\t}", "public int getShieldSlots() {\n return base.getShieldSlots();\n }", "int getSlotsCount();", "void logSlots(HandlerInput input) {\n Map<String, Slot> slots = getSlots(input); // NPE\n // log slot values including request id and time for debugging\n for(String key : slots.keySet()) {\n log(input, String.format(\"Slot value key=%s, value = %s\", key, slots.get(key).toString()));\n }\n }", "public int[] getAccessibleSlotsFromSide(int i) {\n\t\tif (i == 0) {\n\t\t\treturn slots_input;\n\t\t} else if (i == 1) {\n\t\t\treturn slots_output;\n\t\t}\n\t\treturn null;\n\t}", "public int getGadgetsSlots() {\n return base.getGadgetSlots();\n \n }", "@Override\n\tpublic Set<String> getSlots() {\n\t\tSet<String> additionalInputVariables = new HashSet<String>();\n\t\tadditionalInputVariables.addAll(this.labelTemplate.getSlots());\n\t\tadditionalInputVariables.addAll(this.valueTemplate.getSlots());\n\t\treturn additionalInputVariables;\n\t\t}", "public Slot getSlot ()\r\n {\r\n return slot;\r\n }", "public int getSlots() {\n\t\treturn this.rows * 9;\n\t}", "@Override public Set<ClothingSlot> allowedSlots() {\n Set<ClothingSlot> slots = new HashSet<>(first.allowedSlots());\n slots.retainAll(next.allowedSlots());\n return slots;\n }", "public Slot getSlotTo() {\n return slotTo;\n }", "@Override\n public int getSlot() {\n\n if(availableSlots.size() == 0){\n return -1;\n }\n return availableSlots.first();\n }", "@Override\n\tpublic List<Slot> getSlots(Container container) {\n\t\tthis.container = (ContainerModular)container;\n\n\t\tfor(int i = 0; i + startSlot < endSlot; i++) {\n\t\t\tSlot slot;\n\t\t\tslot = new Slot(inventory, i+startSlot, offsetX + 18* (i % 9), offsetY + 18*(i/9));\n\n\t\t\tslotList.add(slot);\n\t\t}\n\t\treturn slotList;\n\t}", "public List <State> getRequest ()\n {\n return request;\n }", "private int[] getSlotRangeFor(String hostName) {\n\t\tint[] slotsRange = new int[2];\n\n\t\tslotsRange[0] = ControlCenter.getAgentInformation(hostName)\n\t\t\t\t.getFirstSlotId();\n\t\tslotsRange[1] = ControlCenter.getAgentInformation(hostName)\n\t\t\t\t.getLastSlotId();\n\n\t\treturn slotsRange;\n\t}", "public List<Integer> getRequests () {\n return requests;\n }", "Rsp.RequestFromSelf getRequests(int index);", "public String getSlotName(){\n\t\treturn slotName;\n\t}", "public int getSlotNumber() {\n return slotNumber;\n }", "public Enumeration<Integer> getStartSlots() {\n return new StartSlotsEnum();\n }", "public int getWeaponSlots() {\n return base.getWeaponSlots();\n }", "public int getTargets(int slot) {\n\n return gameMaster.getTargets(slot);\n }", "public int getSlotCount() { \n return getSlotCount0();\n }", "private Map<LinkKey, Set<TributarySlot>> findAvailableTributarySlots(OpticalOduIntent intent, Path path) {\n Set<LinkKey> linkRequest = Sets.newHashSetWithExpectedSize(path.links().size());\n for (int i = 0; i < path.links().size(); i++) {\n LinkKey link = linkKey(path.links().get(i));\n linkRequest.add(link);\n }\n\n return findTributarySlots(intent, linkRequest);\n }", "private Map<Integer, Request> splitRequest(Command cmd, List<byte[]> args, int start, int end, int step) {\n final Map<Integer, Request> map = new IdentityHashMap<>();\n\n for (int i = start; i < end; i += step) {\n int slot = ZModem.generate(args.get(i));\n // get the client for the slot\n Request request = map.get(slot);\n if (request == null) {\n // we need to create a new one\n request = Request.cmd(cmd);\n // all params before the key get added\n for (int j = 0; j < start; j++) {\n request.arg(args.get(j));\n }\n // add to the map\n map.put(slot, request);\n }\n // request isn't null anymore\n request.arg(args.get(i));\n // all params before the next key get added\n for (int j = i + 1; j < i + step; j++) {\n request.arg(args.get(j));\n }\n }\n\n // if there are args after the end they must be added to all requests\n final Collection<Request> col = map.values();\n col.forEach(req -> {\n for (int j = end; j < args.size(); j++) {\n req.arg(args.get(j));\n }\n });\n\n return map;\n }", "java.util.List<Rsp.RequestFromSelf>\n getRequestsList();", "public int numSlots() {\t\t\r\n\t\tHashSet<Integer> slots = new HashSet<Integer>();\r\n\t\tfor(Entry s : stmts) {\r\n\t\t\ts.code.registers(slots);\r\n\t\t}\r\n\t\tint r = 0;\r\n\t\tfor(int i : slots) {\r\n\t\t\tr = Math.max(r,i+1);\r\n\t\t}\t\t\r\n\t\treturn Math.max(numInputs,r);\r\n\t}", "List<SdkHttpRequest> getRequests();", "public ItemStack getStackInSlot(int slot)\n {\n return waterjetStacks[slot];\n }", "java.util.List<TransmissionProtocol.Request> \n getRequestList();", "org.omg.CORBA.Any get_slot(int id) throws org.omg.PortableInterceptor.InvalidSlot;", "public List<Slot> getSlotListBySlotName(String slotName) throws PortalException, SystemException{\n\t\tList<Slot> slotList=SlotUtil.findByname(slotName);\n\t\treturn slotList;\n\t}", "org.jetbrains.r.classes.S4ClassInfo.S4ClassSlot getSlots(int index);", "public Stack getStack(int slot);", "java.util.List<pb4client.TransportRequest> \n getReqList();", "public SQLInteger getSlot() {\n\t\treturn slot;\n\t}", "public int getSizeInventory()\n {\n return this.slotsCount;\n }", "public int getSlotTracker() {\r\n return slotTracker;\r\n }", "public int getSlotCount() {\n\t\t// TODO: Implement\n\t\treturn this.slotCount;\n\t}", "org.jetbrains.r.classes.S4ClassInfo.S4ClassSlotOrBuilder getSlotsOrBuilder(\n int index);", "public int[] getAccessibleSlotsFromSide(int side)\n {\n return side == 0 ? slotsBottom : slotsTopSides;\n }", "public void getValidSlotFields(String className) {\n\n String value = null;\n try {\n Class<?> telephonyClass = Class.forName(className);\n Class<?>[] parameter = new Class[1];\n parameter[0] = int.class;\n StringBuffer sbf = new StringBuffer();\n Field[] fieldList = telephonyClass.getDeclaredFields();\n for (int index = 0; index < fieldList.length; index++) {\n sbf.append(\"\\n\\n\" + fieldList[index].getName());\n Class<?> type = fieldList[index].getType();\n Class<?> type1 = int.class;\n if (type.equals(type1)) {\n String variableName = fieldList[index].getName();\n if (variableName.contains(\"SLOT\")\n || variableName.contains(\"slot\")) {\n if (variableName.contains(\"1\")) {\n slotName1 = variableName;\n } else if (variableName.contains(\"2\")) {\n slotName2 = variableName;\n } else if (variableName.contains(\"\" + slotNumber1)) {\n slotName1 = variableName;\n } else if (variableName.contains(\"\" + slotNumber2)) {\n slotName2 = variableName;\n }\n }\n }\n }\n } catch (Exception e) {\n LOGE(TAG, \"[getValidSlotFields] Unable to get slot info\", e);\n }\n }", "@Override\n\tpublic ItemStack getStackInSlot(int slot){\n\t return modularStacks[slot];\n\t}", "@Shadow public abstract Iterable<ItemStack> getArmorSlots();", "public List<TimeSlotInfo> searchForTimeSlots(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "public InventoryMenuTabItemSlots() {\n\t\t// Create our item slots list.\n\t\titemSlots = new ArrayList<ItemSlot>();\n\t\t// Populate our item slots list.\n\t\tTexture itemSlotBackground = new Texture(\"graphics/gamemenu/inventory/inventory_gamemenu_itemslot.png\");\n\t\tTexture itemSlotQuantityOverlay = new Texture(\"graphics/gamemenu/inventory/inventory_gamemenu_quantity_overlay.png\");\n\t\tTexture itemSlotSelectedOverlay = new Texture(\"graphics/gamemenu/inventory/inventory_gamemenu_itemslot_selectedoverlay.png\");\n\t\tFreeTypeFontGenerator.FreeTypeFontParameter parameter = new FreeTypeFontGenerator.FreeTypeFontParameter();\n\t\tparameter.size = C.FONT_SIZE_XXSMALL;\n\t\tBitmapFont quantityCountFont = FontPack.getFontPack().getFont(FontPack.FontType.MAIN_FONT, parameter);\n\t\tquantityCountFont.setColor(Color.BLACK);\n\t\tfor(int slotX = 0; slotX < C.MENU_INVENTORY_ITEM_SLOT_WIDTH; slotX++) {\n\t\t\tfor(int slotY = C.MENU_INVENTORY_ITEM_SLOT_HEIGHT - 1; slotY >= 0; slotY--) {\n\t\t\t\titemSlots.add(new ItemSlot(itemSlotBackground, itemSlotQuantityOverlay, itemSlotSelectedOverlay, quantityCountFont, slotX, slotY));\n\t\t\t}\n\t\t}\n\t}", "private String getSlot() {\n\t\tint slotPick = rgen.nextInt(1, 7);\n\t\t\tswitch (slotPick) {\n\t\t\tcase 1: return CHERRY;\n\t\t\tcase 2: return LEMON;\n\t\t\tcase 3: return ORANGE;\n\t\t\tcase 4: return PLUM;\n\t\t\tcase 5: return BELL;\n\t\t\tcase 6: return BAR;\n\t\t\tcase 7: return EMPTY_SLOT;\n\t\t\tdefault: return null;\n\t\t}\n\t}", "private boolean isSlotsValid (int slots) {\n\t\treturn slots>=0 && slots<5;\n\t}", "public String getAsSlot(int i);", "void getRequests();", "int getEnqueuedBlockRequestsNumber() {\n int count = 0;\n for (StdPeerMessage pm : sendQueue) {\n if (pm.type == StdPeerMessage.REQUEST) {\n count++;\n }\n }\n return count;\n }", "public com.novell.www.resource.service.ResourceRequestParam[] getRequestParams() {\r\n return requestParams;\r\n }", "public int getLocalSlotNumber();", "java.util.List<org.jetbrains.r.classes.S4ClassInfo.S4ClassSlot> \n getSlotsList();", "@Override\r\n\tpublic int[] getSlotsForFace(Direction side) {\r\n\t\treturn SLOTS;\r\n\t}", "public void setSlot(int slot) {\n this.slot = slot;\n }", "public String[] getRequested() {\n return this.requested;\n }", "@Override\n public List<String> createParkingLot(int slots) {\n List<String> retVal = new ArrayList<>();\n ParkingLot parkingLot = null;\n try {\n parkingLot = parkingManager.createParkingLot(slots, SlotSize.DEFAULT);\n String format = String.format(PARKING_LOT_CREATION_RESPONSE, parkingLot.getSlots().size());\n retVal.add(format);\n } catch (ParkingException e) {\n retVal.add(e.getMessage());\n }\n return retVal;\n }", "public abstract List<LocationDto> freelocations(SlotDto slot);", "public int getMaxSlots() {\n return maxSlots;\n }", "public int getSizeInventory() {\n\t\treturn this.slots.length;\n\t}", "public PoolPartyRequest[] getPoolPartyRequests() {\n return poolPartyRequests;\n }", "int getActiveBlockRequestsNumber() {\n return blockRequests.size();\n }", "Pokemon.Request getRequests(int index);", "public java.util.List<TransmissionProtocol.Request> getRequestList() {\n return request_;\n }", "private static int getSimSlotCount(Context context) {\n int simCount = SimInfoManager.getAllSimCount(context);\n Logger.d(TAG, \"getSimSlotCount() simCount is \" + simCount);\n return simCount;\n }", "@Factory(\"slotDefsByParams\")\n\tpublic List<SlotDef> retrieveByParams() {\n\t\tString ownerId = this.alfrescoUserIdentity.getMyOwnerId();\n\n\t\tif (this.slotDefParameters.getMode() == null\n\t\t\t\t|| this.slotDefParameters.getMode().equals(\"\")) {\n\t\t\treturn this.retrieve(this.slotDefParameters.isModel(), null,\n\t\t\t\t\townerId);\n\t\t} else if (this.slotDefParameters.getMode().equals(\n\t\t\t\tSlotDefType.PRIMARY.name())) {\n\t\t\treturn this.retrieve(this.slotDefParameters.isModel(),\n\t\t\t\t\tSlotDefType.PRIMARY, ownerId);\n\t\t} else if (this.slotDefParameters.getMode().equals(\n\t\t\t\tSlotDefType.GENERAL.name())) {\n\t\t\treturn this.retrieve(this.slotDefParameters.isModel(),\n\t\t\t\t\tSlotDefType.GENERAL, ownerId);\n\t\t} else if (this.slotDefParameters.getMode().equals(\n\t\t\t\tSlotDefType.DEPENDENT.name())) {\n\t\t\treturn this.retrieve(this.slotDefParameters.isModel(),\n\t\t\t\t\tSlotDefType.DEPENDENT, ownerId);\n\t\t}\n\t\treturn null;\n\t}", "public List<TimeSpan> getRequestedTimes()\r\n {\r\n return myRequestedTimes;\r\n }", "public Requests getRequests() {\n return requests;\n }", "public void updateSlots(Rete engine, BaseSlot[] slots) {\n\t}", "java.util.List<java.lang.Integer> getRequestedValuesList();", "@Override\n\tpublic List<Booking> getRequest() {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"from Booking where bookingStatus='request'\");\n\t\treturn query.list();\n\t}", "public Pokemon.Request getRequests(int index) {\n return requests_.get(index);\n }", "public static long getRequests() {\n return requests;\n }", "@Test\n void getSlots(){\n Shelf shelf=new Shelf(3);\n\n shelf.addResources(Resource.SHIELD);\n shelf.addResources(Resource.SHIELD);\n\n assertEquals(Resource.SHIELD,shelf.getResources().get(0));\n assertEquals(Resource.SHIELD,shelf.getResources().get(1));\n\n }", "@NotNull\r\n @Contract(pure = true)\r\n public Slot getSlot() {\r\n return this.slot;\r\n }", "public boolean getUsedInTimeSlots() {\n return usedInTimeSlots;\n }", "public Any get_slot(int id) throws InvalidSlot\n {\n if ((id >= m_slots.length) || (id < 0))\n {\n throw new InvalidSlot();\n }\n\n return m_slots[id];\n }", "java.util.List<Pokemon.Request> \n getRequestsList();", "TransmissionProtocol.Request getRequest(int index);", "List<BookingSlot> getSlotsByDateTime(LocalDateTime dateTime);", "public int[] getParams()\n\t{\n\t\treturn null;\n\t}", "@Override\n protected Map<String, String> getParams() {\n return requestParams;\n }", "@Override\n protected Map<String, String> getParams() {\n return requestParams;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"buslabel\", sShareBusLable);\n params.put(\"direction\", sShareDirection);\n params.put(\"ss\", sSharestopSerial);\n params = CGlobals_lib_ss.getInstance().getBasicMobileParamsShort(params,\n Constants_bus.SHARE_BUS_LOCATION_URL, mActivity);\n String delim = \"\";\n StringBuilder getParams = new StringBuilder();\n for (Map.Entry<String, String> entry : params.entrySet()) {\n getParams.append(delim + entry.getKey() + \"=\"\n + entry.getValue());\n delim = \"&\";\n }\n String url1 = Constants_bus.SHARE_BUS_LOCATION_URL;\n try {\n String url = url1 + \"?\" + getParams.toString()\n + \"&verbose=Y\";\n System.out.println(\"url \" + url);\n\n } catch (Exception e) {\n SSLog_SS.e(TAG + \" callBusTrip\", e.getMessage());\n }\n return CGlobals_BA.getInstance().checkParams(params);\n }", "protected abstract String getAllowedRequests();", "@Override\n protected Map<String, String> getParams() {\n int noofstudent = 2*Integer.parseInt(noofconflicts);\n String checkconflicts = \"jbscjas\";//send anything part\n String uid = AppController.getString(WingForm.this,\"Student_id\");\n Map<String, String> params = new LinkedHashMap<String, String>();\n //using LinkedHashmap because backend does not check key value and sees order of variables\n params.put(\"checkconflicts\", checkconflicts);\n params.put(\"noofstudent\", String.valueOf(noofstudent));\n for(int m=0;m<noofstudent;m++){\n params.put(\"sid[\"+m+\"]\",sid[m]);\n }\n\n\n return params;\n }", "java.util.List<? extends TransmissionProtocol.RequestOrBuilder> \n getRequestOrBuilderList();" ]
[ "0.70427877", "0.68167907", "0.6447432", "0.62859446", "0.620573", "0.6062155", "0.60595626", "0.60351026", "0.60351026", "0.601862", "0.6008862", "0.5969102", "0.59669363", "0.5943225", "0.5932271", "0.5910558", "0.585932", "0.5844412", "0.58296984", "0.5827371", "0.5823728", "0.57055295", "0.5661556", "0.56167126", "0.56059974", "0.558615", "0.55823016", "0.55770844", "0.5561705", "0.5557152", "0.5542345", "0.5521369", "0.55139416", "0.5482913", "0.5461297", "0.5454753", "0.5451133", "0.5429435", "0.54279596", "0.5423871", "0.5409174", "0.53934145", "0.5386027", "0.53792506", "0.5367176", "0.5362275", "0.5358254", "0.5348979", "0.53200686", "0.5313829", "0.53094757", "0.52931315", "0.52675587", "0.5238365", "0.52350616", "0.52336174", "0.522975", "0.5212097", "0.52091", "0.52038634", "0.5201566", "0.51908004", "0.5187408", "0.5185664", "0.51663315", "0.5154323", "0.5152313", "0.5150797", "0.514382", "0.51373255", "0.5133641", "0.5124425", "0.5119579", "0.50823617", "0.50793374", "0.50670725", "0.5065906", "0.50657576", "0.5064303", "0.5062636", "0.5055249", "0.50440997", "0.50372446", "0.50321245", "0.5017561", "0.5002011", "0.49827003", "0.49821702", "0.4979073", "0.49726048", "0.49683425", "0.4952456", "0.49519786", "0.49515843", "0.49411178", "0.49411178", "0.49259135", "0.49137434", "0.49065593", "0.489765" ]
0.72687596
0
Log slots for easier debugging
void logSlots(HandlerInput input) { Map<String, Slot> slots = getSlots(input); // NPE // log slot values including request id and time for debugging for(String key : slots.keySet()) { log(input, String.format("Slot value key=%s, value = %s", key, slots.get(key).toString())); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logDebugData() {\n SmartDashboard.putNumber(\"Ele Pos\", getPosition());\n SmartDashboard.putBoolean(\"Ele Switch\", bottomSwitchValue());\n SmartDashboard.putNumber(\"Ele Current\", getCurrent());\n SmartDashboard.putNumber(\"Ele Out %\", elevatorSpark.getAppliedOutput());\n }", "@Override\n public void log()\n {\n }", "public void setSlot(int slot) {\n this.slot = slot;\n }", "public void setSlot (Slot slot)\r\n {\r\n this.slot = slot;\r\n }", "private void logParkingLotAgent() {\n\t\t\n\t\tLogger logger = Logger.getInstance();\n\t\t\n\t\tlogger.logPrint(\"PARKING LOT ARGS START\");\n\t\tlogger.logPrint(\"Coords: (\" + coords.x + \", \" + coords.y + \")\");\n\t\tlogger.logPrint(\"Available spots: \" + spots);\n\t\tlogger.logPrint(\"Regular: \" + regularSpots + \" Luxury: \" + luxurySpots + \" Handicap: \" + handicapSpots);\n\t\tlogger.logPrint(\"Hourly cost: \" + hourlyCost);\n\t\tlogger.logPrint(\"Luxury cost modifier: \" + luxuryCostPercent);\n\t\tlogger.logPrint(\"PARKING LOT ARGS END\" + System.lineSeparator());\n\t}", "public void debug()\r\n\t{\r\n\t\tfloat entriesPerSlot = (float) numEntries / (float) numFilledSlots;\r\n\r\n\t\tString result = \"Format of display is\\n\";\r\n\t\tresult += \"Slot number: data record\\n\\n\";\r\n\t\tresult += \"Current table size:\\t\\t\\t\\t\\t\\t\" + table.length + \"\\n\";\r\n\t\tresult += \"Number of elements in table:\\t\\t\\t\" + numEntries + \"\\n\";\r\n\t\tresult += \"Number of filled slots in table:\\t\\t\" + numFilledSlots + \"\\n\";\r\n\t\tresult += \"Average number of entries per slot is:\\t\" + entriesPerSlot + \"\\n\";\r\n\t\tSystem.out.println(result);\r\n\r\n\t\tfor (int i = 0; i < table.length; i++)\r\n\t\t{\r\n\t\t\t// If the current slot has a value in it\r\n\t\t\tif (table[i] != null && !table[i].isTombstone)\r\n\t\t\t{\r\n\t\t\t\t// Store the key that it stores\r\n\t\t\t\tresult = \"\\n\" + i + \":\\t\" + ((i < 100) ? \"\\t\" : \"\") + \"[\" + table[i].key.toString() + \", \";\r\n\r\n\t\t\t\t// Loop through all of the entries at that key\r\n\t\t\t\tfor (V entry : table[i].value)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Store the next value at that key\r\n\t\t\t\t\tresult += \"(\" + entry.toString() + \"), \";\r\n\t\t\t\t}\r\n\r\n\t\t\t\tresult = result.substring(0, result.length() - 2) + \"]\";\r\n\t\t\t\tSystem.out.println(result);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void logs() {\n \n }", "public static void logInteresting(){\n\t\tSleepPhase currentPhase=ZeoData.currentNight().displayPhase(-1);\n\t\tSleepPhase previousPhase=ZeoData.currentNight().displayPhase(-2);\n\t\t\n\t\t//Log what phase we wake from\n\t\tif (currentPhase==SleepPhase.WAKE){\n\t\t\tif (previousPhase!=SleepPhase.WAKE && previousPhase!=SleepPhase.UNDEFINED){\n\t\t\t\tZeoData.Log(\"Waking from \" + previousPhase);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Log the more rare light-deep phase\n\t\t//if (currentPhase.containsLightDeep()){\n\t\t//\tZeoData.Log(\"Phase detail contaings light-deep: \" + currentPhase);\n\t\t//}\n\t\t\n\t\t\n\t\t\n\t}", "private void Log(String action) {\r\n\t}", "@Override\n public String toString() {\n\treturn Slot.DAYS[day] + start.toString() + \"-\" + end.toString() + \":\" + venue;\n }", "abstract protected void _log(Snapshot snapshot) throws Exception;", "public LogScrap() {\n\t\tconsumer = bin->Conveyor.LOG.debug(\"{}\",bin);\n\t}", "private void log() {\n logger.error(\"insert queue (last {}, current {}, change {}/minute)\",\n insertQueueLast, insertQueueCurrent,\n insertQueueDelta);\n logger.error(\"commits (last {}, current {}, change {}/minute)\",\n commitLast, commitCurrent, commitDelta);\n logger.error(\"dropped (last {}, current {}, change {}/minute)\",\n droppedLast, droppedCurrent, droppedDelta);\n logger.error(\"total memory {}; free memory {}\",\n Runtime.getRuntime().totalMemory(),\n Runtime.getRuntime().freeMemory());\n }", "@Override\n public void run() {\n Log.e(\"Error\",\"Slot fetching failed\");\n }", "public String toString() {\n StringBuilder sb = new StringBuilder(100);\n for (int i = 0;i < onCommands.size();i++) {\n sb.append(\"SLOT \" + i + \" for ON Command = \" + onCommands.get(i).getClass().getSimpleName() + \"\\n\");\n }\n return sb.toString();\n }", "protected void log(Object msg) {\n\t\n\t\tSystem.out.println(\"MusicDataAccessor: \" + msg);\n\t}", "public void logData(){\n }", "protected void onQuickCraft(ItemStack debug1, int debug2) {}", "private void logDeviceSettingTabField() {\n\n\t\tDeviceSettingsController.logVendorID(vendorId);\n\t\tDeviceSettingsController.logProductID(productId);\n\t\tDeviceSettingsController.logManufacture(manufacture);\n\t\tDeviceSettingsController.logProductString(productString);\n\t\tDeviceSettingsController.logSerialNumber(serialNumber);\n\t\tDeviceSettingsController.logFifoClockFrequency(fifoClockFrequency);\n\t\tDeviceSettingsController.logFPGAI2CSlaveAddress(i2cSlaveAddress);\n\t\tDeviceSettingsController.logDeviceSettingFirmware(deviceSttingFirmWare);\n\t\tDeviceSettingsController.logDeviceSettingI2CFrequency(deviceSttingI2CFrequency);\n\t}", "@Override\r\n\t\t\tpublic void debug(String arg) {\n\t\t\t\t\r\n\t\t\t}", "public void debugWriteData(INode node) {\n\t\t\tif(isLog4jEnabled){\n\t\t\t\n stringBuffer.append(TEXT_21);\n stringBuffer.append(label);\n stringBuffer.append(TEXT_22);\n stringBuffer.append(cid );\n stringBuffer.append(TEXT_23);\n \n\t\t\t}\n\t\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void setSlot(SQLInteger slot) {\n\t\tthis.slot = slot;\n\t}", "protected static void dumpItems( String msg, Logger log, Entry[] items ) {\n\t\tif( log.isLoggable( Level.FINE ) ) {\n\t\t\tfor( int i = 0; i < items.length; ++i ) {\n\t\t\t\tlog.finer( msg+\": entry[\"+i+\"]: \"+items[i].getClass().getName() );\n\t\t\t\tClass c = items[i].getClass();\n\t\t\t\tField f[] = c.getDeclaredFields();\n\t\t\t\tfor( int j = 0; j < f.length;++j ) {\n\t\t\t\t\tif( (f[j].getModifiers() & Modifier.PUBLIC) == 0 )\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlog.finest(\" \"+f[j].getName()+\n\t\t\t\t\t\t\t\": \"+f[j].get(items[i])+\"\");\n\t\t\t\t\t} catch( IllegalAccessException ex ) {\n\t\t\t\t\t\tlog.throwing( JiniAdmin.class.getName(),\n\t\t\t\t\t\t\t\"startService\", ex );\n\t\t\t\t\t\tlog.fine(\" \"+f[j].getName()+\": <unknown>\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean setSlot(int debug1, ItemStack debug2) {\n/* */ EquipmentSlot debug3;\n/* 2048 */ if (debug1 >= 0 && debug1 < this.inventory.items.size()) {\n/* 2049 */ this.inventory.setItem(debug1, debug2);\n/* 2050 */ return true;\n/* */ } \n/* */ \n/* */ \n/* 2054 */ if (debug1 == 100 + EquipmentSlot.HEAD.getIndex()) {\n/* 2055 */ debug3 = EquipmentSlot.HEAD;\n/* 2056 */ } else if (debug1 == 100 + EquipmentSlot.CHEST.getIndex()) {\n/* 2057 */ debug3 = EquipmentSlot.CHEST;\n/* 2058 */ } else if (debug1 == 100 + EquipmentSlot.LEGS.getIndex()) {\n/* 2059 */ debug3 = EquipmentSlot.LEGS;\n/* 2060 */ } else if (debug1 == 100 + EquipmentSlot.FEET.getIndex()) {\n/* 2061 */ debug3 = EquipmentSlot.FEET;\n/* */ } else {\n/* 2063 */ debug3 = null;\n/* */ } \n/* */ \n/* 2066 */ if (debug1 == 98) {\n/* 2067 */ setItemSlot(EquipmentSlot.MAINHAND, debug2);\n/* 2068 */ return true;\n/* 2069 */ } if (debug1 == 99) {\n/* 2070 */ setItemSlot(EquipmentSlot.OFFHAND, debug2);\n/* 2071 */ return true;\n/* */ } \n/* */ \n/* 2074 */ if (debug3 != null) {\n/* 2075 */ if (!debug2.isEmpty()) {\n/* 2076 */ if (debug2.getItem() instanceof net.minecraft.world.item.ArmorItem || debug2.getItem() instanceof ElytraItem) {\n/* 2077 */ if (Mob.getEquipmentSlotForItem(debug2) != debug3) {\n/* 2078 */ return false;\n/* */ }\n/* 2080 */ } else if (debug3 != EquipmentSlot.HEAD) {\n/* 2081 */ return false;\n/* */ } \n/* */ }\n/* 2084 */ this.inventory.setItem(debug3.getIndex() + this.inventory.items.size(), debug2);\n/* 2085 */ return true;\n/* */ } \n/* 2087 */ int debug4 = debug1 - 200;\n/* 2088 */ if (debug4 >= 0 && debug4 < this.enderChestInventory.getContainerSize()) {\n/* 2089 */ this.enderChestInventory.setItem(debug4, debug2);\n/* 2090 */ return true;\n/* */ } \n/* 2092 */ return false;\n/* */ }", "public void setSlotTo(Slot slotTo) {\n this.slotTo = slotTo;\n }", "private void logIt(String msg) {\n\tSystem.out.println(\"PLATINUM-SYNC-LOG: \" + msg);\n}", "public void setSlotFrom(Slot slotFrom) {\n this.slotFrom = slotFrom;\n }", "void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}", "private void infoLog(String msg) {\n Log.i(\"ActivityTransitions\", TAG + \" --> \" + msg);\n }", "@Override\n\tpublic void debug(Message msg) {\n\n\t}", "private void log(String message) {\r\n\t\tif (ChartFrameSelectParametersMenuActionListener.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void debug(Marker marker, Message msg) {\n\n\t}", "public void print_line(String who, String line) {\n Log.i(\"IncomingSyncHandler\" + who, line);\n }", "public Slot getSlot ()\r\n {\r\n return slot;\r\n }", "@Override\n\tpublic void debug(Object message) {\n\n\t}", "public void inventoryPrint() {\n System.out.println(\"Artifact Name: \" + name);\r\n System.out.println(\"Desc:\" + description);\r\n System.out.println(\"Value: \" + value);\r\n System.out.println(\"Mobility: \" + mobility); \r\n }", "@Override\n\tpublic void debug(Marker marker, CharSequence message) {\n\n\t}", "public void viewLogs() {\n\t}", "public int getSlot() {\r\n\t\treturn slot;\r\n\t}", "public int getSlot() {\n return slot;\n }", "public int getSlot() {\n return slot;\n }", "public String getSlotName(){\n\t\treturn slotName;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn ip + \" \"+ times;\n\t}", "@Override\n\tpublic void debug(CharSequence message) {\n\n\t}", "public void logSequence(List<EventType> sequence) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor (EventType event : sequence) {\r\n\t\t\tsb.append(event.getEventId() + \", \");\r\n\t\t}\r\n\t\tLog.info(sb.toString());\r\n\t}", "public int getSlot() {\n\t\treturn slot;\n\t}", "private void checkTheSummaryInformation(int slots) {\n int newSlotTotal = Integer.valueOf(driverWrapper.getData(\"slotsBalance\")) + slots;\n assertTrue(\"The slot balance total is incorrect\",\n driverWrapper.getElementText(\"successMessage\").contains(String.valueOf(newSlotTotal)));\n\n //And I check the slots are correct\n assertTrue(\"The slots purchased are incorrect\",\n driverWrapper.getElementText(\"amountOrdered\").contains(String.valueOf(slots)));\n\n //And I check the total cost is correct\n DecimalFormat df = new DecimalFormat(\"#,###.00\");\n String totalCost = df.format(slots * slotCost);\n assertTrue(\"The total cost was incorrect\",\n driverWrapper.getElementText(\"totalCost\").contains(totalCost));\n }", "public void log(View view) {\n Log.i(TAG, \"LOGGING FOR \" + X + \", \" + Y);\n logButton.setText(R.string.logging_message);\n logButton.setEnabled(false);\n progressBar.setVisibility(View.VISIBLE);\n\n numLogs = 0;\n // Stops scanning after a pre-defined scan period.\n mHandler.postDelayed(new Runnable() {\n @Override\n public void run() {\n numLogs++;\n if (numLogs < NUM_LOGS){\n log();\n mHandler.postDelayed(this, SCAN_PERIOD);\n } else {\n mScanning = false;\n scanBLEDevice(false);\n logButton.setText(R.string.start_log_message);\n logButton.setEnabled(true);\n progressBar.setVisibility(View.INVISIBLE);\n }\n }\n }, SCAN_PERIOD);\n\n mScanning = true;\n scanBLEDevice(true);\n\n }", "public interface PxVideoRecorderDebugListener {\n void debugLog(String title, String message);\n}", "abstract protected void _log(TrackingActivity activity) throws Exception;", "private boolean isSlotsValid (int slots) {\n\t\treturn slots>=0 && slots<5;\n\t}", "public void printForDebug() {\n\t\tif(Globalconstantable.DEBUG)\n\t\t{\n\t\t\tSystem.out.println(this.getSID());\n\t\t\tSystem.out.println(this.getScores());\n\t\t}\n\t}", "public static void showSlot(User user, String[] keywords) {\n if (!isLoggedIn(user)) {\n return;\n }\n if (keywords.length == 2) {\n if (Functions.isNumeric(keywords[1])) {\n int slot = Integer.parseInt(keywords[1]);\n if (slot > 0 && slot < 11) {\n String username = Bot.getUserName(user);\n String query = \"SELECT `serverstring`,`slot` FROM `save` WHERE `slot` = ? && `username` = ?\";\n try (Connection con = getConnection(); PreparedStatement pst = con.prepareStatement(query)) {\n pst.setInt(1, slot);\n pst.setString(2, username);\n ResultSet rs = pst.executeQuery();\n if (rs.next()) {\n bot.sendMessageToChannel(\"Slot \" + rs.getString(\"slot\") + \": \" + rs.getString(\"serverstring\"));\n } else {\n bot.sendMessageToChannel(\"You do not have anything saved to that slot!\");\n }\n pst.close();\n con.close();\n } catch (SQLException e) {\n Logger.logMessage(LOGLEVEL_IMPORTANT, \"SQL Error in showSlot(): \" + e.getMessage());\n }\n } else {\n bot.sendMessageToChannel(\"Slot must be between 1 and 10!\");\n }\n } else {\n bot.sendMessageToChannel(\"Slot must be a number.\");\n }\n } else {\n bot.sendMessageToChannel(\"Incorrect syntax! Correct usage is .load <slot>\");\n }\n }", "public void logSensorData () {\n\t}", "public void show(){\n System.out.println(\"Sender:\"+_sender);\n System.out.println(\"Receivers:\");\n for(String receiver: _receivers){\n System.out.println(\" - \" + receiver);\n }\n }", "@Override\n public void log(String message) {\n }", "public interface SlotsDelegate {\n void onSlotSelected(SlotItem slot);\n}", "public void selectSlot() {\n\t\t\r\n\t}", "void log();", "public Slot(String a,ArrayList<ClassTiming> b){\n\t\tslotName = a;\n\t\tclassTimings = b;\n\t}", "@Override\n\tpublic void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}", "public void logParameters() {\n logWriter.add(\"Particle Swarm Optimization Algorithm\");\n logWriter.add(\"Parameters\");\n logWriter.add((String)(\"MAX_LENGTH/N: \"+MAX_LENGTH));\n logWriter.add((String)(\"STARTING_POPULATION: \"+pso.getParticleCount()));\n logWriter.add((String)(\"MAX_EPOCHS: \"+pso.getMaxEpoch()));\n logWriter.add((String)(\"MAX_VELOCITY: \"+pso.getVmax()));\n logWriter.add((String)(\"MINIMUM_SHUFFLES: \"+pso.getShuffleMin()));\n logWriter.add((String)(\"MAXIMUM_SHUFFLES: \"+pso.getShuffleMax()));\n logWriter.add(\"\");\n\t}", "@Override\n\tpublic void debug(Marker marker, Object message) {\n\n\t}", "public void getValidSlotFields(String className) {\n\n String value = null;\n try {\n Class<?> telephonyClass = Class.forName(className);\n Class<?>[] parameter = new Class[1];\n parameter[0] = int.class;\n StringBuffer sbf = new StringBuffer();\n Field[] fieldList = telephonyClass.getDeclaredFields();\n for (int index = 0; index < fieldList.length; index++) {\n sbf.append(\"\\n\\n\" + fieldList[index].getName());\n Class<?> type = fieldList[index].getType();\n Class<?> type1 = int.class;\n if (type.equals(type1)) {\n String variableName = fieldList[index].getName();\n if (variableName.contains(\"SLOT\")\n || variableName.contains(\"slot\")) {\n if (variableName.contains(\"1\")) {\n slotName1 = variableName;\n } else if (variableName.contains(\"2\")) {\n slotName2 = variableName;\n } else if (variableName.contains(\"\" + slotNumber1)) {\n slotName1 = variableName;\n } else if (variableName.contains(\"\" + slotNumber2)) {\n slotName2 = variableName;\n }\n }\n }\n }\n } catch (Exception e) {\n LOGE(TAG, \"[getValidSlotFields] Unable to get slot info\", e);\n }\n }", "public void emit() {\n\t\tif (label != null)\n\t\t\tSystem.out.print(label + \":\");\n\n\t\tSystem.out.println(\n\t\t\t\t\"\\t\" + getOpcode() + \" \" + source1.toString() + \" => \" + source2.toString() + \" \" + dest.toString());\n\t}", "public static void addLogRecipes() {\n Container tempContainer = new Container() {\n @Override\n public boolean canInteractWith(@Nonnull EntityPlayer player) {\n return false;\n }\n };\n\n InventoryCrafting tempCrafting = new InventoryCrafting(tempContainer, 3, 3);\n\n for (int i = 1; i < 9; i++) {\n tempCrafting.setInventorySlotContents(i, ItemStack.EMPTY);\n }\n\n List<ItemStack> registeredOres = OreDictionary.getOres(\"logWood\");\n\n for (ItemStack logEntry : registeredOres) {\n if (logEntry.getItemDamage() == OreDictionary.WILDCARD_VALUE) {\n for (int j = 0; j < 16; j++) {\n ItemStack log = new ItemStack(logEntry.getItem(), 1, j);\n tempCrafting.setInventorySlotContents(0, log);\n ItemStack resultEntry = MekanismUtils.findMatchingRecipe(tempCrafting, null);\n\n if (!resultEntry.isEmpty()) {\n RecipeHandler.addPrecisionSawmillRecipe(log, StackUtils.size(resultEntry, 6),\n new ItemStack(MekanismItems.Sawdust), 1);\n }\n }\n } else {\n ItemStack log = StackUtils.size(logEntry, 1);\n tempCrafting.setInventorySlotContents(0, log);\n ItemStack resultEntry = MekanismUtils.findMatchingRecipe(tempCrafting, null);\n\n if (!resultEntry.isEmpty()) {\n RecipeHandler.addPrecisionSawmillRecipe(log, StackUtils.size(resultEntry, 6),\n new ItemStack(MekanismItems.Sawdust), 1);\n }\n }\n }\n }", "private void printData() {\n\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tlog(\" *** data index \" + i + \" = \" + data.elementAt(i));\n\t\t}\n\t}", "public Slot getSlotTo() {\n return slotTo;\n }", "private void print(String msg)\n {\n m_log.log(msg);\n m_vbox.write(\" \" + msg);\n }", "@Override\n\tpublic void debug(Marker marker, MessageSupplier msgSupplier) {\n\n\t}", "@Override\n\tpublic void debug(Marker marker, String message, Object... params) {\n\n\t}", "@Override\n\tpublic void debug(Marker marker, String message) {\n\n\t}", "public void info()\n {\n System.out.println(toString());\n }", "public Slot getSlotFrom() {\n return slotFrom;\n }", "private void logDeviceInfo() {\n logDeviceLevel();\n }", "private void logDeviceInfo() {\n logDeviceLevel();\n }", "Map<String, Slot> getSlots(HandlerInput input) {\n // this chunk of code gets the slots\n Request request = input.getRequestEnvelope().getRequest();\n IntentRequest intentRequest = (IntentRequest) request;\n Intent intent = intentRequest.getIntent();\n if (intent.getSlots() == null) {\n return Collections.emptyMap();\n }\n return Collections.unmodifiableMap(intent.getSlots());\n }", "@FXML\n\tprivate void logSerialNumberIncrement() {\n\t\tcheckFieldEditOrNot = true;\n\t\tSX3Manager.getInstance().addLog(\"Serial Number Increment : \" + serialNumberIncrement.getValue() + \".<br>\");\n\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t}", "public void logLocation(View view) {\n writeGPSDataToDB(locationHandler.getLatitude(), locationHandler.getLongitude(), locationHandler.getAltitude());\n databaseHandler.setValueInExpInfo(((TextView) findViewById(R.id.accelerate_indicator_rec)).getText().toString(), \"receiver_orientation\", experimentNumber);\n accelerometerHandler.close();\n Toast.makeText(this, \"receivers GPS data logged\", Toast.LENGTH_SHORT).show();\n gpsLogged = true;\n }", "@Override\n\tpublic void debug(String message, Object... params) {\n\n\t}", "public void addLog(String item) {\n\t\tlong itemTime = System.currentTimeMillis();\r\n\r\n\t\t// Measure total time\r\n\t\tlong itemTotalTime = (itemTime - start) / 1000;\r\n\t\tReporter.log(\"<td> - \" + item + itemTotalTime + \" </td>\");\r\n\t}", "protected abstract void debug(String msg);", "void printPlayersActionInfo(Player p) {\n }", "@Override\n protected void log(String tag, String msg) {\n Log.i(tag, \"[you can use your custom logger here \\\"]\" + msg);\n }", "public String getSlotString() {\n\t\tStringBuilder bld = new StringBuilder();\n\t\tFormatter fmt = new Formatter(bld);\n\t\tString format = \"%\" + (xspacing + 1) + \"d\";\n\t\tfor (int i = 0; i < getSlotCount(); i++) {\n\t\t\tfmt.format(format, getSlotBeanCount(i));\n\t\t}\n\t\tfmt.close();\n\t\treturn bld.toString();\n\t}", "@Override\n public void i(String TAG, String msg) {\n }", "private void log(String s) {\n RlogEx.i(TAG, s);\n }", "@Override\n\tpublic void debug(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}", "@Override\n\tpublic void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4) {\n\n\t}", "private void printMsg(String msg) {\n Log.i(\"memorycat_log_tag\",msg);\n }", "private void log(String s) {\n Rlog.i(TAG, s);\n }", "@Override\n\tpublic void debug(Marker marker, Supplier<?> msgSupplier) {\n\n\t}", "private void log(String l) {\n if (LOG) {\n System.out.println(\"RotationMatrixTest.\" + l);\n }\n }", "@Override\n\tpublic void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}", "@Override\r\n public void dump ()\r\n {\r\n super.dump();\r\n System.out.println(\" line=\" + getLine());\r\n }", "@Override\n\tpublic void debug(Marker marker, String message, Object p0) {\n\n\t}", "@Override\n public void printDetails() {\n super.printDetails(); // uses its superclass version of the method to print the basic attributes\n System.out.print(\"Time: \" + this.getTime()); // printing the time of the event\n }" ]
[ "0.5895974", "0.57884806", "0.5745599", "0.573019", "0.5624937", "0.55659497", "0.53701884", "0.53681433", "0.53647345", "0.53474325", "0.53438455", "0.53390574", "0.5327641", "0.5317744", "0.5271368", "0.5270258", "0.5244441", "0.5231277", "0.5211816", "0.5208697", "0.5197592", "0.5182856", "0.5182856", "0.5182856", "0.5166735", "0.5139417", "0.5132798", "0.5131632", "0.5114716", "0.51127934", "0.5100355", "0.50763446", "0.507138", "0.5070725", "0.5054879", "0.50539196", "0.50533295", "0.50456655", "0.50421923", "0.50392276", "0.50350475", "0.50340694", "0.50299203", "0.50299203", "0.50210613", "0.50172454", "0.5016405", "0.5010346", "0.50090206", "0.5007861", "0.50075096", "0.50037766", "0.4999986", "0.4987461", "0.49825895", "0.49727073", "0.49720767", "0.49690118", "0.49607408", "0.4956277", "0.49416608", "0.4936274", "0.49160227", "0.49146703", "0.491411", "0.49102738", "0.49075875", "0.4905835", "0.4900051", "0.48981062", "0.4896361", "0.48947313", "0.4887993", "0.48822993", "0.48811302", "0.48759377", "0.48754367", "0.4875198", "0.4875198", "0.48728725", "0.48716217", "0.4868724", "0.4856838", "0.48553237", "0.48552045", "0.48535767", "0.48476818", "0.48464388", "0.48433268", "0.48279926", "0.48244405", "0.48217165", "0.48165593", "0.48129144", "0.48128375", "0.48090765", "0.4805293", "0.48042598", "0.48039126", "0.48025092" ]
0.768154
0
Logs debug messages in an easier to search way You can also use system.out, but it'll be harder to work with
void log(HandlerInput input, String message) { System.out.printf("[%s] [%s] : %s]\n", input.getRequestEnvelope().getRequest().getRequestId().toString(), new Date(), message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void debug(final String msg) {\n \t\tif (debug) System.out.println(msg);\n \t}", "public void debug(String msg);", "private void debugPrint(String msg) {\n if (debug) {\n System.out.println(toString() + \": \" + msg);\n }\n }", "public void debug(String message);", "private void debug(String s) {\r\n\t\tif (debug)\r\n\t\t\tSystem.out.println(s);\r\n\t}", "public void logDebug()\n\t{\n\t\tLogHandler handlerList[];\n\t\tLogHandler handler = null;\n\n\t\tSystem.out.println(\"Logger = \"+logger);\n\t\tSystem.out.println(\"Logger log level is: \"+logger.getLogLevel());\n\t\tSystem.out.println(\"Logger log filter is: \"+logger.getFilter());\n\t\thandlerList = logger.getHandlers();\n\t\tfor(int i = 0; i < handlerList.length; i++)\n\t\t{\n\t\t\thandler = handlerList[i];\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" is:\"+handler+\" and called \"+handler.getName());\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" has filter:\"+handler.getFilter());\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" has log level:\"+handler.getLogLevel());\n\t\t}\n\t}", "private static void debug(String message, Object... args)\n {\n StatusLogger.getLogger().debug(String.format(message, args));\n }", "public static void Log(String message){\r\n if(isDebugBuild == false){\r\n return;\r\n }\r\n System.out.println(message);\r\n }", "public static void debug(String... messages) {\n\t\tString finalmessage = \"\";\n\t\tfor (String message : messages) {\n\t\t\tfinalmessage += message;\n\t\t}\n\t\tSystem.out.println(\"[DEBUG] \" + finalmessage);\n\t}", "private void debug(String msg) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(msg);\r\n }\r\n }", "protected abstract void debug(String msg);", "final void out (String msg) { if (m_debugMode) { Logger.println (msg); } }", "public static void printDebug(String msg) {\n if (debugEnabled) {\n out.println(\"debug [k8s plugin]: \" + msg);\n }\n }", "public static void debug(String msg) {\n\t\tif(DEBUG_ENABLED) {\n\t\t\tinfo(\"[DEBUG] \" + msg);\n\t\t}\n\t}", "private static void debug(String s) {\n if (System.getProperty(\"javafind.debug\") != null)\n System.out.println(\"debug in GnuNativeFind: \" + s);\n }", "@SuppressWarnings(\"unused\")\n\tprivate static void printDebug(String p) {\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(PREFIX + p);\n\t\t}\n\t}", "public static void debug( String msg ) {\n\t\tif( DEBUG_SHOW == 1 )\n\t\t{\n\t\t\tLog.i( DEBUG, DEBUG + \" : \" + msg );\n\t\t}\n\t}", "private void debugOutput(String msg) {\n if (debugMode) {\n System.out.println(\"Thread \" + this.getId() + \": \" + msg);\n }\n }", "private static void log(String msg) {\n System.out.println(msg);\n }", "void debug(String msg)\n {\n if (yydebug)\n System.out.println(msg);\n }", "private void debug(String post) {\n if (GameLauncher.isDebugging()) {\n System.out.println(post);\n }\n }", "public void debug(String msg) {\n LOGGER_BASE.debug(msg);\n }", "public static void print(String message) {\n\t\t// if not in production, then print log on console\n\t\tif (!isProductionMode) Log.d(\"AppDebug : \", \" Debug :\" + message);\n\n\n\t\t// log in file for testing mode debug\n\t\tif (isFileLogMode) { }\n\t}", "public void debug(Object message)\n/* */ {\n/* 118 */ if (message != null) {\n/* 119 */ getLogger().debug(String.valueOf(message));\n/* */ }\n/* */ }", "void displayDebug(String message) {\n if (this.server.isVerboseDebugEnabled())\n System.out.printf(\"**\\t[%s]\\t\" + name + \":\\t\" + message + \"\\n\", dateFormat.format(new Date()));\n }", "private void debugLog(String msg)\n {\n m_log.log(\"[\" + m_appName + \"] :\" + msg);\n }", "public static void main(String []args) {\n\t\tlog.trace(\"111---\");\n\t\tlog.debug(\"2222\");\n\t\tlog.info(\"333\");\n\t\tlog.warn(\"444\");\n\t\tlog.error(\"555\");\n\t}", "@Override\n\tpublic void debug(Message msg) {\n\n\t}", "private static void log(String message) {\n System.out.println(message);\n }", "private void log(String message) {\n System.out.println(message);\n }", "@Override\n\tpublic void debug(Object message) {\n\n\t}", "public static void debug(boolean d, String message) {\n \tif(d) {\n \t\tSystem.out.println(message);\n \t}\n }", "public static void debug(String log) {\n if (debug) {\n System.out.println(\"[DEBUG] \" + log);\n }\n }", "private void log(String message) {\n System.out.println(message);\n }", "public void print_DEBUG() {\n\t\tSystem.out.println(\"Direction\");\n\t\tSystem.out.println(\"ID: \" + ID);\n\t\tSystem.out.println(\"FROM: \" + from.name() );\n\t\tSystem.out.println(\"TO: \" + to.name() );\n\t\tSystem.out.println(\"dir: \" + dir);\n\t\tSystem.out.println(\"Locked: \" + locked);\n\t\tSystem.out.println(\"LockPattern: \" + lockPattern);\n\t}", "public void debug() {\n\n }", "private static void debug()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords:\");\r\n\t\tfor(String word : keywords)\r\n\t\t{\r\n\t\t\tSystem.out.println(word);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedLink.debugLinks();\r\n\t\t\r\n\t\tSystem.out.println(\"-----------------\");\r\n\t\tSystem.out.println();\r\n\t\tSharedPage.debugPages();\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t}", "public void logDebugData() {\n SmartDashboard.putNumber(\"Ele Pos\", getPosition());\n SmartDashboard.putBoolean(\"Ele Switch\", bottomSwitchValue());\n SmartDashboard.putNumber(\"Ele Current\", getCurrent());\n SmartDashboard.putNumber(\"Ele Out %\", elevatorSpark.getAppliedOutput());\n }", "public abstract void debug(PrintStream console);", "@Override\n\tpublic void debug(Marker marker, Message msg) {\n\n\t}", "public static void debug(String message) {\n if (mDebug)\n print(message);\n }", "private void debugPrint(String msg)\n {\n System.out.print(\";; [RedirectorPoolThread:\" + _id + \"] \" + msg);\n }", "protected static void debug(String istrMessage) {\n\t\tif (isDebugEnabled()) {\n\t\t\tSystem.out.println(Thread.currentThread().getName() + \": \"\n\t\t\t\t\t+ istrMessage);\n\t\t}\n\t}", "public void debug(String word)\n\t{\n\t\tif(debug)\n\t\tSystem.out.println(word);\n\t}", "@Override\n\tpublic void debug(Marker marker, String message) {\n\n\t}", "private static void printDebug(String s)\n {\n }", "void debug (String msg) throws RootException;", "public void logDebug(String str) {\n }", "public void debug(String x) {\n if (isDebugOn()) {\n String out = getClassName() + \"(\" + (new Date()) + \"): \" + x;\n getLogger().info(out);\n }\n }", "public static void debug(String message) {\n if (_debugMode) {\n System.out.println(\"[DEBUG] \" + message);\n }\n }", "private static void log(String aMsg){\n\t System.out.println(aMsg);\n\t }", "public void printForDebug() {\n\t\tif(Globalconstantable.DEBUG)\n\t\t{\n\t\t\tSystem.out.println(this.getSID());\n\t\t\tSystem.out.println(this.getScores());\n\t\t}\n\t}", "public static void printDebug(String message) {\n\t\tif (debugMode) {\r\n\t\t\tprintMessage(\"DEBUG: \" + message);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void debug(Marker marker, CharSequence message) {\n\n\t}", "public static void main(String[] args) {\n // logger.info(\"Message\");\n // System.out.println(\"cdkdk\");\n\n }", "@SuppressWarnings(\"static-method\")\n\tpublic void logDebugMessage(String message) {\n\t\tDebug.println(message);\n\t}", "public void debug(String s)\r\n {\r\n if (DEBUG)\r\n {\r\n System.out.println((debugCounter++) + \": \" + s);\r\n }\r\n }", "public static void debug(String msg) {\n\t\tif (Config.Debug)\n\t\t\tUtil.debug(DebugLevel.LOW, msg);\n\t}", "final void out (String msg1, String msg2) { if (m_debugMode) { Logger.print (msg1); Logger.println (msg2); } }", "@Override\r\n\t\t\tpublic void debug(String arg) {\n\t\t\t\t\r\n\t\t\t}", "public LogScrap() {\n\t\tconsumer = bin->Conveyor.LOG.debug(\"{}\",bin);\n\t}", "protected void debug(String string) {\n\t\tif (DEBUGMODE)\n\t\t\tSystem.out.println(string);\n\t}", "public static void debugln(String s) {\n\t if (debugPrintTime) {\n\t System.out.println(s);\n\t }\n\t}", "private void log(String msg) {\n\t\tSystem.out.println(new Date() + \": \" + msg);\n\t}", "public static void main(String[] args) {\n\t\tLog.debug(\"Im Debugging\");\n\t\tLog.info(\"info\");\n\t\tLog.error(\"this is an error\");\n\t\tLog.fatal(\"this is fatal\");\n\t\tLog.trace(\"this is trace\");\n\t\t/////////////////////\n\t\tLog.error(\"this is an error\");\n\t\tLog.fatal(\"this is fatal\");\n\t\tLog.trace(\"this is trace\");\n\t\tgaurav\n\t}", "@Override\n public void debug(String message) {\n if (Level.DEBUG.getPriority() <= level.getPriority()) {\n print(\"DEBUG: \" + message);\n }\n\n }", "@Override\n\tpublic void debug(Marker marker, Object message) {\n\n\t}", "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }", "private static void print(Object msg){\n if (WAMClient.Debug){\n System.out.println(msg);\n }\n\n }", "@Override\n\tpublic void debug(CharSequence message) {\n\n\t}", "private void debug(String str) {\n }", "public final static void debug(String message)\n\t{\n\t\t// TODO: Finish this method so that debugging can be disabled\n\t\tif (logger != null)\n\t\t\tlogger.info(message);\n\t}", "public void debug(final String s) {\n if (!configManager.isDebug()) { return; }\n this.getLogger().info(ChatColor.YELLOW + \"[Debug] \" + s);\n }", "private void debugPrintLn(String msg)\n {\n System.out.println(\";; [RedirectorPoolThread:\" + _id + \"] \" + msg);\n }", "public void log(String msg) {\n if(Debug.isEnabled()){ \n filterConfig.getServletContext().log(msg); //Shows in the Tomcat logs \n Debug.println(msg);\n }\n }", "public void debug(String message) {\n if (mLoggable) {\n try {\n Log.d(mClassName, message);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }\n }", "public void log(String message) {\n\tif (verbose) {\n\t System.out.println(toString() + \": \" + message);\n }\n }", "public void debug(Object message, Throwable t)\n/* */ {\n/* 132 */ if (message != null) {\n/* 133 */ getLogger().debug(String.valueOf(message), t);\n/* */ }\n/* */ }", "@Override\n\tpublic void debug(String message, Object... params) {\n\n\t}", "static public void trace(String msg) {\n if (isVerbose()) {\n System.out.println(msg);\n }\n }", "private void logWorkUnits (final String debugString)\n\t{\n\t\t@Nullable String moduleName = debugModuleName;\n\t\tif (moduleName == null)\n\t\t{\n\t\t\tmoduleName = moduleName().localName();\n\t\t\tdebugModuleName = moduleName;\n\t\t}\n\t\tfinal StringBuilder builder = new StringBuilder();\n\t\tfor (final String line : debugString.split(\"\\n\"))\n\t\t{\n\t\t\tbuilder.append(moduleName);\n\t\t\tbuilder.append(\" \");\n\t\t\tbuilder.append(line);\n\t\t\tbuilder.append('\\n');\n\t\t}\n\t\tSystem.out.print(builder);\n\t}", "protected void dbgOut(String text_out)\n {\n if (debugOn)\n System.out.println(text_out);\n }", "@Override\n\tpublic void debug(Marker marker, String message, Object... params) {\n\n\t}", "private static void LOG(String msg) {\n if ( DEBUG ) {\n Log.d(TAG, msg);\n }\n }", "@Override\n public void printDebug(String string) {\n if(allActive && active)\n System.out.println(SC + string + R);\n }", "private void debugMessage(String result)\n\t{\n\t\tmain.addDebugMessage(result);\n\t}", "private void log(String message) {\n System.out.println( message );\n sb.append( message ).append( \"\\n\" );\n }", "void debug(String messageKey, Object... args);", "@SuppressWarnings(\"unused\")\n protected void debug(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isDebugEnabled()) {\n this.getContainer().getLogger().debug(msg);\n }\n }", "void debug() {\n\t\tfor( int i = 0; i < N; i++ ) {\t\n\t\t\tSystem.out.print(i+\" \");\n\t\t\tfor( int j = 0; j < N; j++ )\n\t\t\t\tSystem.out.print(j+\":\"+(defined[i][j]?\"T\":\"F\")+\" \"+\n\t\t\t\t\t\tc[i][j]+\" p=\"+path[i][j]+\" f=\"+f[i][j]+\"; \");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "protected static void logAndPrint(Logger logger, String msg) {\n\t\tSystem.out.println(msg);\n\t\tlogger.debug(msg);\n\t}", "private void logIt(String msg) {\n\tSystem.out.println(\"PLATINUM-SYNC-LOG: \" + msg);\n}", "public static void main(String[] args) {\n\t\t\n\t\tlog.debug(\"Debugging\");\n\t\tlog.info(\"Just FYI\");\n\t\tlog.error(\"Error message\");\n\n\t\tlog.fatal(\"Fatal Error\");\n\t}", "private static void logDebug(String message, Object... arguments) {\n\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\tLOGGER.debug(message, arguments);\n\t\t}\n\t}", "private static final void log(String msg) {\n\t\tlog.println(msg);\n\t}", "public void printMessagesAsInfo() {\n logger.info(Thread.currentThread().getStackTrace()[1].getMethodName());\n if(messages != null) {\n for (String message : messages) {\n logger.debug(message);\n }\n }\n }", "@Override\n\tpublic void debug(Marker marker, MessageSupplier msgSupplier) {\n\n\t}", "public static void main(String[] args) {\n\t\tLogger logger = new Logger();\n\t\tlogger.setThreshold(LogLevels.DEBUG);\n\t\t\n\t\t\n\t\tlogger.info(\"program started\");\n\t\tlogger.warning(\"warning\");\n\t\tlogger.error(\"error\");\n\t\tlogger.debug(\"debug\");\n\t\tlogger.trace(\"trace\");\n\t\t\n\t\t\n\t\t\n\t}", "public static void printDebugStatement (String givenMessage) \t{\n\t\t\n\t\tSystem.out.println(\"\" + Thread.currentThread().getStackTrace()[2].toString() + \": \" + givenMessage);\n\t\t\n\t}", "public void logs(Object message) {\n System.out.println(message.toString());\n }", "private void dbgTrace(String trace) {\n GenUtils.logCat(tag, trace);\n GenUtils.logMessageToFile(\"SessionV2.log\", trace);\n }" ]
[ "0.7804952", "0.7635617", "0.7586122", "0.73463774", "0.7262845", "0.71914756", "0.7150422", "0.7116997", "0.7079238", "0.7060166", "0.7044533", "0.7006345", "0.6986371", "0.69765705", "0.69597673", "0.6954439", "0.6942874", "0.6919224", "0.69187665", "0.69138646", "0.69118893", "0.6905169", "0.6890885", "0.68904465", "0.68902045", "0.68900746", "0.6872375", "0.686339", "0.6831046", "0.68078315", "0.680363", "0.6803004", "0.6766303", "0.67577076", "0.674213", "0.67223936", "0.6714943", "0.6698292", "0.66891783", "0.6683397", "0.6659932", "0.66594654", "0.6655009", "0.6653606", "0.6651441", "0.6636335", "0.663389", "0.6616434", "0.6614041", "0.6610292", "0.6609346", "0.66090995", "0.66024405", "0.6597505", "0.6594695", "0.65934086", "0.6586804", "0.65839976", "0.65815926", "0.6558317", "0.65558887", "0.6553197", "0.65474546", "0.65384156", "0.65356904", "0.6534013", "0.6527694", "0.65133506", "0.6502024", "0.65016526", "0.6494978", "0.6487087", "0.64734286", "0.6466008", "0.6422676", "0.6417203", "0.6417105", "0.64155376", "0.6414997", "0.6405047", "0.6397616", "0.639662", "0.63898414", "0.6389232", "0.6384611", "0.638174", "0.6369803", "0.6369001", "0.63630325", "0.6358147", "0.63569975", "0.6340272", "0.63397884", "0.63362205", "0.6327772", "0.63216484", "0.6319072", "0.631766", "0.63026565", "0.6299892", "0.6290707" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { char color ='g'; switch(color) { case 'r': System.out.println("red"); case 'b': System.out.println("blue"); case 'g': System.out.println("green"); }}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
End Of Content View Elements
private void bindViews() { xlv_postlist = (com.mrz.searchenginefortieba.view.XListView) findViewById(R.id.xlv_postlist); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void elementEnd() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\tprotected void end() {\r\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n\t\t\tpublic void end() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void end() {\n\t\t\n\t}", "@Override\r\n protected void end() {\r\n\r\n }", "@Override\r\n\tprotected void end() {\n\r\n\t}", "@Override\r\n\tprotected void end() {\n\r\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n protected void end() {\n \n }", "@Override\n protected void end() {\n }", "protected void end() {\n \n \n }", "@Override\n protected void end() {\n\n }", "public void elementEnd() {\n\t\t\t\t\t\tblipsText.append(\"\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n\tpublic void onFinishLayout(View lay) {\n\t}", "protected void end() {\n \t// theres nothing to end\n }", "@Override\n\t\tpublic void end() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void end() {\n\n\t}", "@Override\n\tpublic void end() {\n\n\t}", "private void ending() {\n\t\tstartView.ending();\n\t\tSystem.exit(-1);\n\t}", "@Override\n public void end() {\n }", "@Override\n\tpublic void end() {\n\t\t\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end()\n\t{\n\t}", "protected void end() {\n \tclimber.ascend(0, 0);\n }", "protected void end() {\n\r\n\t}", "public void visitEnd()\n\t{\n\t}", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "@Override\n public void endBlock() {\n }", "protected void end() {\r\n\t\t \tP.println(Tt.getClassName(this) + \" ending\");\r\n\t\t }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "@Override\n\tprotected void end() {\n\t\t//System.out.println(this.getClass().getSimpleName() + \" end\");\n\t}", "@Override\n public void finishUpdate(View arg0) {}", "@Override\n\tpublic void end() {\n\t\t// Empty on purpose, no cleanup required yet\n\t}", "@Override\n\tpublic void endDocument() {\n\t\t\n\t}", "private boolean isLastView(int viewIndex){\r\n\t\treturn viewIndex == this.getChildCount() - 1;\r\n\t}", "public void loadMoreEnd() {\n loadMoreEnd(false);\n }", "public void onContentChanged() {\n }", "@Override\n protected void end() {\n DemoUtils.fadeOutAndExit(getMainFrame(), 800);\n }", "ButEnd getEnd();", "public void dragEnd() {\n\t \n\t super.dragEnd();\n\t view.dragEnd();\n\t }", "@Override\n public void onBottom() {\n if (isEnabledScrollLast) {\n footView.setVisibility(View.VISIBLE);\n loadMoreInformationData();\n }\n }", "@Override\n\tpublic void view() {\n\t\t\n\t}", "protected void end() {\n \tif (Robot.clawElevator.getLowerSwitch()) {\n \t\tRobot.clawElevator.setContainerHeight(0);\n \t\tRobot.clawElevator.resetEncoder();\n \t}\n \tRobot.clawElevator.stop();\n }", "protected void end() {\n\t\tRobot.launcher.stopTilt();\n\t\tif (Robot.launcher.getIsTilterAtBottom())\n\t\t\tnew AutoGetStuffIn();\n\t}", "public void last(View view){\n finish();\n return;\n }" ]
[ "0.6463063", "0.6223387", "0.6196776", "0.6196776", "0.6196776", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.61704755", "0.6166354", "0.61618865", "0.6157854", "0.6151566", "0.6151566", "0.61492836", "0.61492836", "0.61492836", "0.61492836", "0.6149034", "0.6122732", "0.6119946", "0.61120963", "0.61102426", "0.60897857", "0.6042183", "0.6024085", "0.60135525", "0.60135525", "0.599845", "0.59811425", "0.5976062", "0.5966502", "0.5966502", "0.5966502", "0.5966502", "0.5966502", "0.5966502", "0.5954214", "0.5952616", "0.5942898", "0.5905144", "0.58785087", "0.58785087", "0.58785087", "0.58785087", "0.5863955", "0.5848386", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.5845879", "0.578447", "0.5777158", "0.5768064", "0.5762395", "0.57421464", "0.57302934", "0.57295895", "0.57178473", "0.5713477", "0.5706147", "0.57055485", "0.56972194", "0.5670241", "0.5668487", "0.5649267" ]
0.0
-1
Session is our data type, the primary key is Long
public interface SessionRepository extends JpaRepository<Session, Long> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Object doInHibernate(Session session) throws HibernateException {\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }", "protected Object getInitialWriteValue(AbstractSession session) {\r\n return Long.valueOf(1);\r\n }", "public long getId() {\n return session.getId();\n }", "public static short getSession(){\n\t\treturn (short)++sessao;\n\t}", "public Long getSessionValue(String session) { return validSessions.get(session); }", "public String getID()\n\t{\n\t return this.sessionID;\n\t}", "java.lang.String getSessionID();", "public abstract void setIdSession(String id_session);", "String getSessionID();", "String getSessionID();", "Long getId();", "Long getId();", "Long getId();", "int getClientSessionID();", "public static Integer getUserIdFromSessionOrNull(HttpSession session) {\n\t\treturn (Integer) session.getAttribute(ATTRIBUTE_USER_ID);\n\t}", "@Test\n public void testgetandsetId() {\n session.setId(22);\n // Now check if the id actually is 22.\n assertEquals(22, session.getId());\n }", "public String getSessionID ()\n\t{\n\t\treturn sessionID;\n\t}", "@RequestMapping(\"/dept/sessionId\")\n\tpublic Object id(HttpServletRequest request) {\n\t\treturn request.getSession().getId() ;\n\t}", "public NM getSessionNo() { \r\n\t\tNM retVal = this.getTypedField(28, 0);\r\n\t\treturn retVal;\r\n }", "public int getSessionNo() {\n String[] sid = sessionid.split(\"/\");\n return Integer.parseInt(sid[0]);\n }", "public Integer getId(){return id;}", "DatabaseSession openSession();", "public SessionDao() {\n super(Session.SESSION, com.scratch.database.mysql.jv.tables.pojos.Session.class);\n }", "@Override\r\n\tpublic Integer insertHangar(Hangar hangar) {\n\t\tSession session= factory.openSession();\r\n\t\tInteger id=(Integer)session.save(hangar);\r\n\t\tsession.close();\r\n\t\treturn id;\r\n\t}", "public abstract Long getId();", "Session get(int id);", "public void setSession(Session session) { this.session = session; }", "static String getSessionId() {\n if (SESSION_ID == null) {\n // If there is no runtime value for SESSION_ID, try to load a\n // value from persistent store.\n SESSION_ID = Prefs.INSTANCE.getEventPlatformSessionId();\n\n if (SESSION_ID == null) {\n // If there is no value in the persistent store, generate a new value for\n // SESSION_ID, and write the update to the persistent store.\n SESSION_ID = generateRandomId();\n Prefs.INSTANCE.setEventPlatformSessionId(SESSION_ID);\n }\n }\n return SESSION_ID;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public void setSessionCounter(long sessionCounter);", "public long getSessionId() {\n\t\treturn sessionId;\n\t}", "public String getSessionID() {\n\t\treturn SID;\n\t}", "public Long getRoomstlogid()\n {\n return roomstlogid; \n }", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "public short getSessionId() {\n return sessionId;\n }", "protected static String indexSession(SBTarget session) {\n\t\treturn DebugClient.getId(session);\n\t}", "public Long getId() {\n return id;\n }", "public static Integer getPizzeriaIdFromSessionOrNull(HttpSession session) {\n\t\treturn (Integer) session.getAttribute(ATTRIBUTE_PIZZERIA_ID);\n\t}", "public long getId(){return this.id;}", "Session getCurrentSession();", "Session getCurrentSession();", "public int getSessionId() {\n return sessionId_;\n }", "public long getSessionCounter();", "synchronized Session getSession(long id) {\n return (Session) sessionMap.get(id);\n }", "protected String getSessionID(Session session) {\n String[] authorizationValues = session.getUpgradeRequest().getHeader(\"Authorization\").split(\":\");\n if (authorizationValues.length < 3) {\n session.close(HttpStatus.BAD_REQUEST_400, \"Invalid Authorization header.\");\n }\n return Player.getPlayer(authorizationValues[2]).getSession().getSessionID();\n\n }", "public java.lang.Long getId();", "private int storeWithUniqueIndices(final SessionWrapper session) {\n\t\tint id=0;\n\t\twhile (id==0) {\n\t\t\ttry {\n\t\t\t\tid=super.store(session);\n\t\t\t}\n\t\t\tcatch (final ConstraintViolationException e) {\n\t\t\t\tthis.index++;\n\t\t\t}\n\t\t\tcatch (final RuntimeException e) {\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t}\n\t\treturn id;\n\t}", "public void setSession(Session session) {\n\tthis.session = session; \r\n}", "public Integer getLoginid() {\n return loginid;\n }", "public int getSessionId() {\n return sessionId;\n }", "public void setSession(Session value);", "private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}", "public java.lang.Long _pk()\n {\n return (java.lang.Long)i_pk();\n }", "public Long getUserSeq() {\n return sessionData.getUserSeq();\n }", "@Override\r\n\tpublic void setSession(Map<String, Object> map) {\r\n\t\t sessionMap=(SessionMap<String, Object>)map;\r\n\t\t\r\n\t}", "public void AddSession(String session, Long id){ validSessions.put(session, id); }", "public long getId() { return id; }", "public long getId() { return id; }", "public int getLastSavedId() {\n\t\tNativeQuery query = session.createNativeQuery(\"SELECT Id FROM terms ORDER BY Id DESC LIMIT 1\");\n\t\t// int lastUpdatedValue=(int)query;\n\t\tint lastUpdatedValue = ((Number) query.getSingleResult()).intValue();\n\t\tSystem.out.println(\"the result is\" + lastUpdatedValue);\n\t\treturn lastUpdatedValue;\n\t}", "Session getSession();", "Session getSession();", "public int getTimeOfSession();", "public Long id() { return this.id; }", "long getLoginId();", "long getLoginId();", "long getLoginId();", "private String getTopcatSessionId() {\r\n HttpServletRequest request = this.getThreadLocalRequest();\r\n HttpSession session = request.getSession();\r\n String sessionId = null;\r\n if (session.getAttribute(\"SESSION_ID\") == null) { // First time login\r\n try {\r\n sessionId = userManager.login();\r\n session.setAttribute(\"SESSION_ID\", sessionId);\r\n } catch (AuthenticationException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n } else {\r\n sessionId = (String) session.getAttribute(\"SESSION_ID\");\r\n }\r\n return sessionId;\r\n }", "public long getId() { return _id; }", "public Long getId() \n {\n return id;\n }", "public long getID();", "public int getId(){\r\n return localId;\r\n }", "public abstract long getSdiId();", "@Override\n\tpublic long getLastSavedId() throws SQLException {\n\t\treturn 0;\n\t}", "public String getId()\n\t{\n\t\treturn getId( getSession().getSessionContext() );\n\t}", "public Integer getID(){\n return ID;\n }", "@Id\r\n @GeneratedValue(strategy=GenerationType.IDENTITY)\r\n public long getId(){\r\n return id;\r\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSessionIDBytes() {\n Object ref = sessionID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n sessionID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Long getRoomstid()\n {\n return roomstid; \n }", "public interface ServerSession {\n\n /**\n * Fixed field used to store the initial URI used to create this session\n */\n public static final String INITIAL_URI = \"_INITIAL_URI\";\n\n /**\n * Fixed field containing the user agent used to request the initial url\n */\n public static final String USER_AGENT = \"_USER_AGENT\";\n\n /**\n * Fixed field storing the name of the current user owning this session\n */\n public static final String USER = \"_USER\";\n\n /**\n * Fixed field storing the IP which was used to create the session\n */\n public static final String REMOTE_IP = \"_REMOTE_IP\";\n\n /**\n * Returns the timestamp of the sessions creation\n *\n * @return the timestamp in milliseconds when the session was created\n */\n long getCreationTime();\n\n /**\n * Returns the unique session id\n *\n * @return the session id\n */\n String getId();\n\n /**\n * Returns the timestamp when the session was last accessed\n *\n * @return the timestamp in milliseconds when the session was last accessed\n */\n long getLastAccessedTime();\n\n /**\n * Returns the max. time span a session is permitted to be inactive (not accessed) before it is eligible for\n * invalidation.\n * <p>\n * If the session was not accessed since its creation, this time span is rather short, to get quickly rid of\n * \"one call\" sessions created by bots. After the second call, the timeout is expanded.\n *\n * @return the max number of seconds since the last access before the session is eligible for invalidation\n */\n int getMaxInactiveInterval();\n\n /**\n * Fetches a previously stored value from the session.\n *\n * @param key the key for which the value is requested.\n * @return the stored value, wrapped as {@link sirius.kernel.commons.Value}\n */\n @Nonnull\n Value getValue(String key);\n\n /**\n * Returns a list of all keys for which a value is stored in the session\n *\n * @return a list of all keys for which a value is stored\n */\n List<String> getKeys();\n\n /**\n * Determines if a key with the given name is already present.\n *\n * @param key the name of the key\n * @return <tt>true</tt> if a value with the given key exists, <tt>false</tt> otherwise\n */\n boolean hasKey(String key);\n\n /**\n * Stores the given name value pair in the session.\n *\n * @param key the key used to associate the data with\n * @param data the data to store for the given key. Note that data needs to be serializable!\n */\n void putValue(String key, Object data);\n\n /**\n * Deletes the stored value for the given key.\n *\n * @param key the key identifying the data to be removed\n */\n void removeValue(String key);\n\n /**\n * Deletes this session.\n */\n void invalidate();\n\n /**\n * Determines if the session is new.\n * <p>\n * A new session was created by the current request and not fetched from the session map using its ID.\n *\n * @return <tt>true</tt> if the session was created by this request, <tt>false</tt> otherwise.\n */\n boolean isNew();\n\n /**\n * Signals the system that this session belongs to a user which logged in. This will normally enhance the\n * session live time over a session without an attached user.\n */\n void markAsUserSession();\n\n}" ]
[ "0.6877802", "0.67384315", "0.67179143", "0.66706467", "0.65222025", "0.6384469", "0.6313903", "0.6163088", "0.61389583", "0.61389583", "0.6093111", "0.6093111", "0.6093111", "0.60655075", "0.6063388", "0.6058516", "0.6049365", "0.6019924", "0.59863466", "0.5978521", "0.5905096", "0.58839154", "0.5867788", "0.58514047", "0.58335626", "0.58277154", "0.5814918", "0.58064675", "0.5795544", "0.5795544", "0.57946056", "0.57930005", "0.57921946", "0.5791554", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.57905215", "0.5780259", "0.57623184", "0.57470614", "0.57386434", "0.57378995", "0.5734646", "0.5734646", "0.5730522", "0.57216793", "0.57200724", "0.5720019", "0.57178986", "0.57169914", "0.5709959", "0.57040477", "0.56873244", "0.56857073", "0.56806076", "0.5663839", "0.5660642", "0.56524503", "0.5648121", "0.5642615", "0.5642615", "0.5640538", "0.56341636", "0.56341636", "0.56321985", "0.56266564", "0.5626208", "0.5626208", "0.5626208", "0.562179", "0.5614172", "0.5612346", "0.5612064", "0.5611158", "0.5603381", "0.56018347", "0.5599354", "0.5594528", "0.55942535", "0.5590721", "0.5590721", "0.5589211", "0.5585027" ]
0.596845
21
Links arguments to the youngest parent alternative or decision. Links alternatives or decisions to the youngest parent issue.
public static long createSmartLinkForElement(KnowledgeElement element) { if (element == null) { return 0; } long linkId = element.isLinked(); if (linkId > 0) { return linkId; } KnowledgeElement lastElement = getPotentialParentElement(element); linkId = KnowledgePersistenceManager.getInstance(element.getProject()).insertLink(lastElement, element, null); return linkId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Alternative getParentAlternative(Alternative alt){\r\n \t\tAlternative toReturn = null;\r\n \t\tDecision parentDecision = new Decision();\r\n \t\tparentDecision.fromDatabase(alt.getParent());\r\n \t\tif (parentDecision.getID() < 0 || \r\n \t\t\t\tparentDecision.getPtype() != RationaleElementType.ALTERNATIVE) return null;\r\n \t\ttoReturn = new Alternative();\r\n \t\ttoReturn.fromDatabase(parentDecision.getParent());\r\n \t\tif (toReturn.getID() < 0) return null;\r\n \t\treturn toReturn;\r\n \t}", "protected abstract IssueLink getPreviousIssue();", "Genome chooseParent();", "public final void ruleArguments() throws RecognitionException {\n\n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:800:2: ( ( ( rule__Arguments__Alternatives ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:801:1: ( ( rule__Arguments__Alternatives ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:801:1: ( ( rule__Arguments__Alternatives ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:802:1: ( rule__Arguments__Alternatives )\n {\n before(grammarAccess.getArgumentsAccess().getAlternatives()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:803:1: ( rule__Arguments__Alternatives )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:803:2: rule__Arguments__Alternatives\n {\n pushFollow(FOLLOW_rule__Arguments__Alternatives_in_ruleArguments1482);\n rule__Arguments__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getArgumentsAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n \tmyHiddenTokenState.restore();\n\n }\n return ;\n }", "MenuEntry getParent();", "private void streamlinedGo(String[] argsList) {\n\t\tstates = alignment.getAminoAcidsAsFitchStates();\n\t\tbaseStates = phylogeny.getFitchStates(states).clone();\n\t\tambiguousAtRoot = 0;\n\t\tancestorAmbiguities = new boolean[baseStates.length];\n\t\t/* Establish how many ancestral states are ambiguous */\n\t\tfor(int i=0;i<baseStates.length;i++){\n\t\t\tHashSet<String> statesSet=baseStates[i];\n\t\t\tif(statesSet.size()>1){\n\t\t\t\tambiguousAtRoot++;\n\t\t\t\tancestorAmbiguities[i] = true;\n\t\t\t}\n\t\t}\n\t\t/* Attempt to resolve the rootnode states */\n\t\tphylogeny.resolveFitchStatesTopnode();\n\t\tphylogeny.resolveFitchStates(phylogeny.states);\n\t\t/* A new PR object used to hold reconstructions */\n\t\tpr = new ParsimonyReconstruction(states, phylogeny);\n\t\t/* Should now be resolved as far as possible.\n\t\t * Compare each taxon to tree root MRCA */\n\t\t//pr.printAncestralComparison();\n\n\t\t/*\n\t\t * Parse the args into lists\n\t\t * Then find the tips and MRCAs of each list. at this point print all branches below\n\t\t * Then walk through the MRCA / lists counting subs\n\t\t */\n\t\tint numberOfClades = argsList.length-2;\t// we'll assume the first two args are alignment and phylogeny respectively, and all the others (we've checked >2) are clades described by tips\n\t\t// Guessed the number of clades, initialise arrays\n\t\tcladeTips = new HashSet[numberOfClades];\n\t\tcladeTipsAsNodes = new HashSet[numberOfClades];\n\t\tMRCAnodes = new TreeNode[numberOfClades];\n\t\tMRCAcladesBranchTotals = new int[numberOfClades];\n\t\tMRCAcladesBranchTotalsTerminal = new int[numberOfClades];\n\t\tMRCAcladesBranchTotalsInternal = new int[numberOfClades];\n\t\tMRCAcladesSubstitutionTotals = new int[numberOfClades];\n\t\tMRCAcladesSubstitutionTotalsTerminal = new int[numberOfClades];\n\t\tMRCAcladesSubstitutionTotalsInternal = new int[numberOfClades];\n\t\tSystem.out.println(\"Assuming \"+numberOfClades+\" separate clades. Parsing clade descriptions...\");\n\t\t// Parse the clade lists\n\t\tfor(int i=2;i<argsList.length;i++){\n\t\t\tString[] taxaTokens = argsList[i].split(\":\");\n\t\t\tcladeTips[i-2] = new HashSet<String>();\n\t\t\tcladeTipsAsNodes[i-2] = new HashSet<TreeNode>();\n\t\t\tfor(String aTaxon:taxaTokens){\n\t\t\t\tcladeTips[i-2].add(aTaxon);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check we've parsed them correctly\n\t\tSystem.out.println(\"Read these taxon lists:\");\n\t\tfor(int i=0;i<cladeTips.length;i++){\n\t\t\tSystem.out.print(\"Clade \"+i);\n\t\t\tfor(String taxon:cladeTips[i]){\n\t\t\t\tSystem.out.print(\" \"+taxon);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t// Find the MRCA node of each clade, and also print all the branches beneath that MRCA node\n\t\tSystem.out.println(\"Searching the tree for the MRCAs of each clade...\");\n\t\tfor(int i=0;i<numberOfClades;i++){\n\t\t\t// Find the tip nodes corresponding to extant taxa\n\t\t\tIterator<String> itr = cladeTips[i].iterator();\n\t\t\twhile(itr.hasNext()){\n\t\t\t\tint nodeIDofTip = phylogeny.getTipNumber(itr.next());\n\t\t\t\tTreeNode tipNode = phylogeny.getNodeByNumberingID(nodeIDofTip);\n\t\t\t\tcladeTipsAsNodes[i].add(tipNode);\n\t\t\t}\n\t\t\t\t\n\t\t\t// Find the ID of the MRCA node\n\t\t\tint nodeIDofMRCA = phylogeny.getNodeNumberingIDContainingTaxa(cladeTips[i]);\n\t\t\tTreeNode cladeNodeMRCA = phylogeny.getNodeByNumberingID(nodeIDofMRCA);\n\t\t\tMRCAnodes[i] = cladeNodeMRCA;\n\n\t\t\t// Print all the branches below MRCA\n\t\t\tSystem.out.println(\"Found the MRCA of clade \"+i+\" (\"+nodeIDofMRCA+\"):\\n\"+cladeNodeMRCA.getContent()+\"\\nPrinting all branches below this node:\");\n\t\t\tMRCAcladesBranchTotals[i] = cladeNodeMRCA.howManyTips();\n\t\t\tfor(TreeBranch branch:cladeNodeMRCA.getBranches()){\n\t\t\t\tSystem.out.println(branch);\n\t\t\t\tInteger[] substitutions = StateComparison.printStateComparisonBetweenTwoNodes(branch.getParentNode().states, branch.getDaughterNode().states, branch.getParentNode().getContent(), branch.getDaughterNode().getContent());\n\t\t\t\tMRCAcladesSubstitutionTotals[i] = substitutions.length;\n\t\t\t\tif(branch.isEndsInTerminalTaxon()){\n\t\t\t\t\tMRCAcladesBranchTotalsTerminal[i]++;\n\t\t\t\t\tMRCAcladesSubstitutionTotalsTerminal[i] = substitutions.length;\n\t\t\t\t}else{\n\t\t\t\t\tMRCAcladesBranchTotalsInternal[i]++;\n\t\t\t\t\tMRCAcladesSubstitutionTotalsInternal[i] = substitutions.length;\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// For each MRCA node and clade tips combination, compare and print substitutions\n\t\tSystem.out.println(\"Comparing ancestral clade MRCA node sequences with extant sequences...\");\n\t\tfor(int i=0;i<numberOfClades;i++){\n\t\t\tSystem.out.println(\"Comparing ancestral MRCA sequence for CLADE \"+i+\" against *ALL* clades' terminal taxa...\");\n\t\t\tTreeNode thisMRCA = MRCAnodes[i];\n\t\t\tfor(int j=0;j<cladeTipsAsNodes.length;j++){\n\t\t\t\tSystem.out.println(\"Clade MRCA: \"+i+\" -vs- clade tips: \"+j);\n\t\t\t\tint MRCAtoTipsSubstitutions = 0;\n\t\t\t\tfor(TreeNode someTip:cladeTipsAsNodes[j]){\n\t\t\t\t\tInteger[] substitutions = StateComparison.printStateComparisonBetweenTwoNodes(thisMRCA.states, someTip.states, \"MRCA_clade_\"+i, someTip.getContent());\n\t\t\t\t\tMRCAtoTipsSubstitutions+= substitutions.length;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Substitutions from Clade MRCA: \"+i+\" -vs- clade tips: \"+j+\": \"+MRCAtoTipsSubstitutions);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// All uncorrected pairwise comparisons\n\t\tSystem.out.println(\"Comparing extant sequences directly...\");\n\t\tfor(int i=0;i<numberOfClades;i++){\n\t\t\tfor(TreeNode someTip:cladeTipsAsNodes[i]){\n\t\t\t\tfor(int j=0;j<cladeTipsAsNodes.length;j++){\n\t\t\t\t\tSystem.out.println(\"Basis clade: \"+i+\" -vs- clade tips: \"+j);\n\t\t\t\t\tint MRCAtoTipsSubstitutions = 0;\n\t\t\t\t\tfor(TreeNode someOtherTip:cladeTipsAsNodes[j]){\n\t\t\t\t\t\tInteger[] substitutions = StateComparison.printStateComparisonBetweenTwoNodes(someTip.states, someOtherTip.states, someTip.getContent(), someOtherTip.getContent());\n\t\t\t\t\t\tMRCAtoTipsSubstitutions+= substitutions.length;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"Substitutions from Clade MRCA: \"+i+\" -vs- clade tips: \"+j+\": \"+MRCAtoTipsSubstitutions);\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t// Print a summary of each clade\n\t\tSystem.out.println(\"Summary of clade counts...\");\n\t\tSystem.out.println(\"Clade\\tbranches\\texternal\\tinternal\\t\\tsubstitutions\\texternal\\tinternal\");\n\t\tfor(int i=0;i<numberOfClades;i++){\n\t\t\tSystem.out.println(i\n\t\t\t\t\t+\"\\t\"+MRCAcladesBranchTotals[i]\n\t\t\t\t\t+\"\\t\"+MRCAcladesBranchTotalsTerminal[i]\n\t\t\t\t\t+\"\\t\"+MRCAcladesBranchTotalsInternal[i]+\"\\t\"\n\t\t\t\t\t+\"\\t\"+MRCAcladesSubstitutionTotals[i]\n\t\t\t\t\t+\"\\t\"+MRCAcladesSubstitutionTotalsTerminal[i]\n\t\t\t\t\t+\"\\t\"+MRCAcladesSubstitutionTotalsInternal[i]);\n\t\t}\n\t\tSystem.out.println(\"Done.\");\n\t}", "public void testExtendsLinkerArgsViaReference() {\n final Project project = new Project();\n final LinkerDef baseLinker = new LinkerDef();\n baseLinker.setProject(project);\n baseLinker.setId(\"base\");\n project.addReference(\"base\", baseLinker);\n final LinkerArgument linkerArg = new LinkerArgument();\n linkerArg.setValue(\"/base\");\n baseLinker.addConfiguredLinkerArg(linkerArg);\n\n final LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef(baseLinker);\n extendedLinker.setProject(project);\n extendedLinker.setId(\"extended\");\n project.addReference(\"extended\", extendedLinker);\n\n final LinkerDef linkerRef = new LinkerDef();\n linkerRef.setProject(project);\n linkerRef.setRefid(new Reference(project, \"extended\"));\n final String[] preArgs = getPreArguments(linkerRef);\n assertEquals(1, preArgs.length);\n assertEquals(\"/base\", preArgs[0]);\n }", "public Alternative() {\r\n \t\tsuper();\r\n \t\tstatus = AlternativeStatus.ATISSUE;\r\n \t\targumentsAgainst = new Vector<Argument>();\r\n \t\targumentsFor = new Vector<Argument>();\r\n \t\trelationships = new Vector<Argument>();\r\n \t\tsubDecisions = new Vector<Decision>();\r\n \t\tquestions = new Vector<Question>();\r\n \t\tartifacts = new Vector<String>();\r\n \t\targuments = new Vector<Argument>();\r\n \t\tpatternID = -1;\r\n \t}", "public interface UrlArgumentBuilder {\n\n /**\n * Sets next element of a chain.\n *\n * @param next next element of a chain\n */\n void setNext(final UrlArgumentBuilder next);\n\n /**\n * Builds URL argument that is used by Yandex static API.\n *\n * @param yandexMap yandex map\n * @return URL part\n */\n String build(final YandexMap yandexMap);\n\n}", "@Override\n public int getArgent() {\n return _argent;\n }", "private RequirementLink parseAttackModelLinkInfo(List<String> factors) {\n\t\t// obtain the elements of the link.\n\t\tElement source = findElementById(factors.get(4));\n\t\tElement target = findElementById(factors.get(5));\n\t\tif (target == null || source == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\t/*\n\t\t * this part is exclusively for requirement elements 0)link; 1)id,51690 2)arrow type,StickArrow; 3)line type, curved; 4)source/tail,51670; 5)destination/head,51490;\n\t\t * 6)label,NoLabel;(The shape of that label is not considered, only the content of that label) 7)dash type,0; 8)thickness,1.0; 9)head scale,1.0 10) layer, Layer 1\n\t\t */\n\t\t// first assign basic information to the link\n\t\tRequirementLink new_link = new RequirementLink();\n\t\tnew_link.setId(factors.get(1));\n\t\tnew_link.setSource(source);\n\t\tnew_link.setTarget(target);\n\t\tsource.getOutLinks().add(new_link);\n\t\ttarget.getInLinks().add(new_link);\n\n\t\t// identify the type of the link. Here we roughly have them as either \"refine\" or \"and-refine\" for simplification, facilitating the intended analysis.\n\t\t// refine\n\t\tif ((factors.get(2).equals(\"SharpArrow\") || factors.get(2).equals(\"StickArrow\") || factors.get(2).equals(\"Arrow\"))\n\t\t\t\t& !new_link.getSource().getType().equals(InfoEnum.RequirementElementType.MIDDLE_POINT.name())) {\n\t\t\tnew_link.setType(InfoEnum.RequirementLinkType.REFINE.name());\n\t\t\t// the target of this link should update the \"refine_links\" information as well\n\t\t\tnew_link.getTarget().refine_links.add(new_link);\n\t\t}\n\t\t// for all and-refine links, the corresponding information should be updated after re-processing the elements\n\t\t// and refine - main\n\t\telse if (factors.get(2).equals(\"SharpArrow\") & new_link.getSource().getType().equals(InfoEnum.RequirementElementType.MIDDLE_POINT.name())) {\n\t\t\tnew_link.setType(InfoEnum.RequirementLinkType.AND_REFINE_ARROW.name());\n\t\t\t// mark as redundant\n\t\t\tnew_link.setRemark(InfoEnum.LinkRemark.REDUNDANT.name());\n\t\t}\n\t\t// and refine - branch\n\t\telse if (factors.get(2).equals(\"NoHead\") & factors.get(6).equals(\"NoLabel\")) {\n\t\t\tnew_link.setType(InfoEnum.RequirementLinkType.AND_REFINE.name());\n\t\t}\n\t\t// exception\n\t\telse {\n\t\t\tCommandPanel.logger.severe(\"Unknown links cannot be imported\");\n\t\t}\n\t\treturn new_link;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tStackUsingLinkList stack = new StackUsingLinkList();\n\t\tstack.push(2);\n\t\t\n\n\t}", "private void previous(String[] arguments) {\n\t\ttry {\n\t int ID = Integer.parseInt(arguments[1]);\n\t predecessor = null;\n\t findPredecessor(root, ID);\n\t if(predecessor == null)\n\t \tSystem.out.println(\"0 0\");\n\t else\n\t \tSystem.out.printf(\"%d %d\\n\", predecessor.ID, predecessor.count);\n\t } catch(NumberFormatException e) { \n\t System.out.println(\"Argument not an Integer\");; \n\t }\n\t}", "abstract public Command getParent();", "private void goGuide() {\n }", "public static void migrateArgumentTypesInLinks(String projectKey) {\n\t\tif (projectKey == null || projectKey.equals(\"\")) {\n\t\t\treturn;\n\t\t}\n\t\tDecisionKnowledgeInCommentEntity[] sentencesInProject = ACTIVE_OBJECTS\n\t\t\t\t.find(DecisionKnowledgeInCommentEntity.class, Query.select().where(\"PROJECT_KEY = ?\", projectKey));\n\t\tfor (DecisionKnowledgeInCommentEntity databaseEntry : sentencesInProject) {\n\t\t\tif (databaseEntry.getType().length() == 3) {// Equals Argument\n\t\t\t\tList<Link> links = GenericLinkManager.getLinksForElement(databaseEntry.getId(),\n\t\t\t\t\t\tDocumentationLocation.JIRAISSUECOMMENT);\n\t\t\t\tfor (Link link : links) {\n\t\t\t\t\tif (link.getType().equalsIgnoreCase(\"contain\")) {\n\t\t\t\t\t\tGenericLinkManager.deleteLink(link);\n\t\t\t\t\t\tlink.setType(LinkType.getLinkTypeForKnowledgeType(databaseEntry.getType()).toString());\n\t\t\t\t\t\tGenericLinkManager.insertLink(link, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void testExtendsLinkerArgs() {\n final LinkerDef baseLinker = new LinkerDef();\n final LinkerArgument linkerArg = new LinkerArgument();\n linkerArg.setValue(\"/base\");\n baseLinker.addConfiguredLinkerArg(linkerArg);\n final LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef(baseLinker);\n final String[] preArgs = getPreArguments(extendedLinker);\n assertEquals(1, preArgs.length);\n assertEquals(\"/base\", preArgs[0]);\n }", "public static void main(String[] args) {\n\t\t\n\t\tManager job2 = new Clerk2();\n\t\t// job2.orderFromManager();\n\t\tjob2.orderFromDirector();\n\t\t\n\t}", "public static void main(String[] args) {\n addNode(3);\n Node ans = lowestCommonAncestorFast(root.left, root.left.right.right);\n System.out.print(ans.val);\n }", "public static void main(String[] args) {\n String dataDir = Utils.getDataDir(AddParentComments.class);\r\n\r\n //ExStart:AddParentComments\r\n // Instantiate the presentation\r\n Presentation pres = new Presentation();\r\n try {\r\n // Add comment\r\n ICommentAuthor author1 = pres.getCommentAuthors().addAuthor(\"Author_1\", \"A.A.\");\r\n IComment comment1 = author1.getComments().addComment(\"comment1\", pres.getSlides().get_Item(0), new Point2D.Float(10, 10), new Date());\r\n\r\n // Add reply for comment1\r\n ICommentAuthor author2 = pres.getCommentAuthors().addAuthor(\"Autror_2\", \"B.B.\");\r\n IComment reply1 = author2.getComments().addComment(\"reply 1 for comment 1\", pres.getSlides().get_Item(0), new Point2D.Float(10, 10), new Date());\r\n reply1.setParentComment(comment1);\r\n\r\n // Add reply for comment1\r\n IComment reply2 = author2.getComments().addComment(\"reply 2 for comment 1\", pres.getSlides().get_Item(0), new Point2D.Float(10, 10), new Date());\r\n reply2.setParentComment(comment1);\r\n\r\n // Add reply to reply\r\n IComment subReply = author1.getComments().addComment(\"subreply 3 for reply 2\", pres.getSlides().get_Item(0), new Point2D.Float(10, 10), new Date());\r\n subReply.setParentComment(reply2);\r\n\r\n IComment comment2 = author2.getComments().addComment(\"comment 2\", pres.getSlides().get_Item(0), new Point2D.Float(10, 10), new Date());\r\n IComment comment3 = author2.getComments().addComment(\"comment 3\", pres.getSlides().get_Item(0), new Point2D.Float(10, 10), new Date());\r\n\r\n IComment reply3 = author1.getComments().addComment(\"reply 4 for comment 3\", pres.getSlides().get_Item(0), new Point2D.Float(10, 10), new Date());\r\n reply3.setParentComment(comment3);\r\n\r\n // Display hierarchy on console\r\n ISlide slide = pres.getSlides().get_Item(0);\r\n IComment[] comments = slide.getSlideComments(null);\r\n for (int i = 0; i < comments.length; i++) {\r\n IComment comment = comments[i];\r\n while (comment.getParentComment() != null) {\r\n System.out.print(\"\\t\");\r\n comment = comment.getParentComment();\r\n }\r\n\r\n System.out.println(comments[i].getAuthor().getName() + \" : \" + comments[i].getText());\r\n System.out.println();\r\n }\r\n pres.save(dataDir + \"parent_comment.pptx\", SaveFormat.Pptx);\r\n // Remove comment1 and all its replies\r\n comment1.remove();\r\n\r\n pres.save(dataDir + \"remove_comment.pptx\", SaveFormat.Pptx);\r\n } finally {\r\n if (pres != null) pres.dispose();\r\n }\r\n //ExEnd:AddParentComments\r\n }", "public CLIRequest getParent() {\n return parent;\n }", "IMenuItem getParent();", "@Override\n\tpublic void printNode() {\n\t\tSystem.out.println(\"------Args_list------\");\n\t\te.printNode();\n\t\tif(a!=null)\n\t\t\ta.printNode();\n\t\t\n\t}", "private void reportAltairLgsGuideIssues(P2Problems problems, Set<GuideProbe> guiders, AltairParams.Mode mode, ISPObsComponent targetComp) {\n final GuideProbe guider = mode.guider();\n if (!guiders.contains(guider)) {\n problems.addError(PREFIX+\"LGS_WFS\", String.format(LGS_WFS, mode.displayValue(), guider), targetComp);\n } else if (guiders.size() > 1) {\n final Set<GuideProbe> otherGuiders = new TreeSet<>(GuideProbe.KeyComparator.instance);\n otherGuiders.addAll(guiders);\n otherGuiders.remove(guider);\n\n // Format the guider names\n final StringBuilder buf = new StringBuilder();\n final Iterator<GuideProbe> it = otherGuiders.iterator();\n buf.append(it.next().getKey());\n while (it.hasNext()) {\n buf.append(\", \").append(it.next().getKey());\n }\n\n final String msg = String.format(NO_AO_OTHER, guider.getKey(), buf.toString());\n problems.addError(PREFIX+\"NO_AO_OTHER\", msg, targetComp);\n }\n }", "@VTID(7)\r\n void getParent();", "static void addCommands(LiteralArgumentBuilder<CommandSource> parent) {\n parent.then(\n argument(\"keyword\", word()).executes(\n context -> displayTag(context.getSource(), getString(context, \"keyword\"))\n ).shortDescription(\"Displays a given tag.\")\n ).then(\n literal(\"info\")\n .shortDescription(\"Shows information about a tag.\")\n .then(\n argument(\"keyword\", word()).executes(\n context -> displayTagInfo(context.getSource(), getString(context, \"keyword\"))\n )\n )\n ).then(\n literal(\"list\")\n .shortDescription(\"Lists all known tags.\")\n .executes(context -> listTags(context.getSource()))\n );\n }", "private static String findHighParent_A(BabelSynset bs) throws IOException {\n\t\tdouble weight = 0.0;\n\t\tString id = null;\n\t\tList<BabelSynsetIDRelation> edges = bs.getEdges(BabelPointer.ANY_HYPERNYM);\n\t\tfor(BabelSynsetIDRelation b : edges) {\n\t\t\tdouble temp_weight = b.getWeight();\n\t\t\tif(temp_weight > weight && !A_parentsHigh.contains(b.getTarget())) {\n\t\t\t\tweight = temp_weight;\n\t\t\t\tid = b.getTarget();\n\t\t\t\tA_parentsHigh.add(id);\n\t\t\t}\n\t\t}\n\t\tif(id == null) id = \"bn:00031027n\";\n\t\treturn id;\n\t}", "@Override\n public void initSelf(OrchidContext oc) throws OrchidException\n {\n super.initSelf(oc);\n\n try {\n BlogPolicy blog = getParentBlog();\n if (blog != null) {\n ContentId blogId = blog.getContentId().getContentId();\n\n parentBlogLink = new OContentIdLink();\n parentBlogLink.setContentId(blogId);\n parentBlogLink.setLabel(blog.getName());\n parentBlogLink.setTitle(blogId.getContentIdString());\n parentBlogLink.init(oc);\n }\n } catch (CMException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\n\t\tLinkList ll=new LinkList();\n\t\tll.insertLast(1);\n\t\tll.insertLast(2);\n\t\tll.insertLast(3);\n\t\tll.insertLast(4);\n\t\tll.first=reverseList(ll.first);\n\t\tll.displayList();\n\t\t\n\t}", "public final void rule__Arguments__Group_2__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:14381:1: ( ( ( rule__Arguments__Alternatives_2_0 ) ) )\r\n // InternalGo.g:14382:1: ( ( rule__Arguments__Alternatives_2_0 ) )\r\n {\r\n // InternalGo.g:14382:1: ( ( rule__Arguments__Alternatives_2_0 ) )\r\n // InternalGo.g:14383:2: ( rule__Arguments__Alternatives_2_0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getArgumentsAccess().getAlternatives_2_0()); \r\n }\r\n // InternalGo.g:14384:2: ( rule__Arguments__Alternatives_2_0 )\r\n // InternalGo.g:14384:3: rule__Arguments__Alternatives_2_0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Arguments__Alternatives_2_0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getArgumentsAccess().getAlternatives_2_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public static void main ( String [] arguments )\n {\n Authenticator authenticator = new Authenticator();\n IAuthenticationProvider authenticationProvider = authenticator\n \t\t.getAuthenticationProvider();\n \n //Create a new Graph client using the default client config and our auth provider\n IClientConfig clientConfig = DefaultClientConfig\n \t\t.createWithAuthenticationProvider(authenticationProvider);\n graphClient = GraphServiceClient\n \t\t.builder()\n \t\t.fromConfig(clientConfig)\n \t\t.buildClient();\n \n \n \n //Get our IT group\n Option filterOption = new QueryOption(\"$filter\", \"displayName eq 'IT'\");\n IGroupCollectionPage groups = graphClient\n \t\t.groups()\n \t\t.buildRequest(Arrays.asList(filterOption))\n \t\t.get();\n Group itGroup = groups.getCurrentPage().get(0);\n \n HashMap<String, String> spLinks = getRelevantOneDriveLinks(\"mobile\", itGroup.id);\n String content = createHtmlList(spLinks);\n \n //Get our IT group's default OneNote notebook\n Notebook defaultBook = graphClient\n \t\t.groups(itGroup.id)\n \t\t.onenote()\n \t\t.notebooks()\n \t\t.buildRequest()\n \t\t.get()\n \t\t.getCurrentPage()\n \t\t.get(0);\n \n //Get our notebook's default section\n OnenoteSection defaultSection = graphClient\n \t\t.groups(itGroup.id)\n \t\t.onenote()\n \t\t.notebooks(defaultBook.id)\n \t\t.sections()\n \t\t.buildRequest()\n \t\t.get()\n \t\t.getCurrentPage()\n \t\t.get(0);\n\n //Post our links to the OneNote section\n postContent(content, itGroup.id, defaultSection.id);\n \n System.out.println(\"Posted content!\");\n }", "public void setParent(Concept _parent) { parent = _parent; }", "public static void main(String[] args) {\n\t\tUniquePath up=new UniquePath();\r\n\t\tup.BackTracking(1, 1, 3, 3);\r\n\t\tSystem.out.print(up.res);\r\n\r\n\t}", "public final EObject ruleRelation() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject lv_oneArgument_0_0 = null;\r\n\r\n EObject lv_multipleArgument_1_0 = null;\r\n\r\n\r\n\r\n \tenterRule();\r\n\r\n try {\r\n // InternalNestDsl.g:666:2: ( ( ( (lv_oneArgument_0_0= ruleOneArgumentRelation ) ) | ( (lv_multipleArgument_1_0= ruleMultipleArgumentRelation ) ) ) )\r\n // InternalNestDsl.g:667:2: ( ( (lv_oneArgument_0_0= ruleOneArgumentRelation ) ) | ( (lv_multipleArgument_1_0= ruleMultipleArgumentRelation ) ) )\r\n {\r\n // InternalNestDsl.g:667:2: ( ( (lv_oneArgument_0_0= ruleOneArgumentRelation ) ) | ( (lv_multipleArgument_1_0= ruleMultipleArgumentRelation ) ) )\r\n int alt17=2;\r\n int LA17_0 = input.LA(1);\r\n\r\n if ( ((LA17_0>=22 && LA17_0<=23)) ) {\r\n alt17=1;\r\n }\r\n else if ( ((LA17_0>=24 && LA17_0<=25)) ) {\r\n alt17=2;\r\n }\r\n else {\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 17, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt17) {\r\n case 1 :\r\n // InternalNestDsl.g:668:3: ( (lv_oneArgument_0_0= ruleOneArgumentRelation ) )\r\n {\r\n // InternalNestDsl.g:668:3: ( (lv_oneArgument_0_0= ruleOneArgumentRelation ) )\r\n // InternalNestDsl.g:669:4: (lv_oneArgument_0_0= ruleOneArgumentRelation )\r\n {\r\n // InternalNestDsl.g:669:4: (lv_oneArgument_0_0= ruleOneArgumentRelation )\r\n // InternalNestDsl.g:670:5: lv_oneArgument_0_0= ruleOneArgumentRelation\r\n {\r\n\r\n \t\t\t\t\tnewCompositeNode(grammarAccess.getRelationAccess().getOneArgumentOneArgumentRelationParserRuleCall_0_0());\r\n \t\t\t\t\r\n pushFollow(FOLLOW_2);\r\n lv_oneArgument_0_0=ruleOneArgumentRelation();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t\t\t\t\tif (current==null) {\r\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getRelationRule());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tset(\r\n \t\t\t\t\t\tcurrent,\r\n \t\t\t\t\t\t\"oneArgument\",\r\n \t\t\t\t\t\tlv_oneArgument_0_0,\r\n \t\t\t\t\t\t\"prodest.es.gov.br.dsl.NestDsl.OneArgumentRelation\");\r\n \t\t\t\t\tafterParserOrEnumRuleCall();\r\n \t\t\t\t\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalNestDsl.g:688:3: ( (lv_multipleArgument_1_0= ruleMultipleArgumentRelation ) )\r\n {\r\n // InternalNestDsl.g:688:3: ( (lv_multipleArgument_1_0= ruleMultipleArgumentRelation ) )\r\n // InternalNestDsl.g:689:4: (lv_multipleArgument_1_0= ruleMultipleArgumentRelation )\r\n {\r\n // InternalNestDsl.g:689:4: (lv_multipleArgument_1_0= ruleMultipleArgumentRelation )\r\n // InternalNestDsl.g:690:5: lv_multipleArgument_1_0= ruleMultipleArgumentRelation\r\n {\r\n\r\n \t\t\t\t\tnewCompositeNode(grammarAccess.getRelationAccess().getMultipleArgumentMultipleArgumentRelationParserRuleCall_1_0());\r\n \t\t\t\t\r\n pushFollow(FOLLOW_2);\r\n lv_multipleArgument_1_0=ruleMultipleArgumentRelation();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t\t\t\t\tif (current==null) {\r\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getRelationRule());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tset(\r\n \t\t\t\t\t\tcurrent,\r\n \t\t\t\t\t\t\"multipleArgument\",\r\n \t\t\t\t\t\tlv_multipleArgument_1_0,\r\n \t\t\t\t\t\t\"prodest.es.gov.br.dsl.NestDsl.MultipleArgumentRelation\");\r\n \t\t\t\t\tafterParserOrEnumRuleCall();\r\n \t\t\t\t\r\n\r\n }\r\n\r\n\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\r\n \tleaveRule();\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }", "public static void main(String[] args) {\n int[] numbers = new int[] {-556487956, -1476200375, 8, -3 ,11};\n System.out.println(findLongest(numbers));\n }", "public static void main(String[] args) {\n String[] serverArgs = {\n \"-l\",\n // MULTI AGENT LEVELS\n // \"levels/MArecursion_and_friends.lvl\",\n // \"levels/MArecursion_and_friends_color.lvl\",\n // \"levels/MArecursion_and_friends_color_big.lvl\",\n // \"levels/MAbispebjerg.lvl\", // TODO: Does not work - need conflict resolution\n // \"levels/MAsimple5.lvl\", // TODO: Does not work - need conflict resolution\n // \"levels/MAsimple4.lvl\", // TODO: Does not work\n // \"levels/MAsimple3.lvl\", // TODO: Does not work - Agents need to communicate\n // \"levels/MAsimple2.lvl\", // TODO: Why do agents wait for each other to finish?\n // \"levels/MAsimple1.lvl\", // TODO: Why do agents wait for each other to finish?\n // \"levels/MApacman.lvl\", // TODO: Does not work\n // \"levels/MApacman_easy.lvl\",\n // \"levels/MAmultiagentSort.lvl\", // TODO: Does not work - null pointer in planner\n // \"levels/MAchallenge.lvl\", // TODO: Does not work - Many different reasons\n // \"levels/MAtest.lvl\",\n // \"levels/MA_out_of_my_way_Henning.lvl\", // TODO: Does not work\n // \"levels/MA_help_henning.lvl\",\n // \"levels/MA_help_henning_3.lvl\",\n // \"levels/MA_help_henning_4.lvl\",\n // \"levels/MAconflicts.lvl\", // TODO: deadlock\n // \"levels/MAconflicts2.lvl\", // TODO: deadlock\n // \"levels/MAconflicts_simple.lvl\",\n // \"levels/MAconflicts_simple2.lvl\",\n // \"levels/MAconflicts_simple3.lvl\",\n // \"levels/MAmultiagentSort.lvl\", // TODO: deadlock\n //\"levels/MAtbsAppartment.lvl\", // TODO: deadlock\n\n // SINGLE AGENT LEVELS\n // \"levels/SAFirefly.lvl\",\n // \"levels/SACrunch.lvl\", // TODO: Independent goals are not independent\n // \"levels/SAfriendofDFS.lvl\",\n // \"levels/SAfriendofBFS.lvl\",\n // \"levels/SAsokobanLevel96.lvl\",\n // \"levels/SAHateful_Three.lvl\",\n // \"levels/SAHateful_Eight.lvl\",\n // \"levels/SALongJourney.lvl\",\n // \"levels/SAD1.lvl\",\n // \"levels/SAD2.lvl\",\n // \"levels/SAD1_multi.lvl\",\n // \"levels/SAD1_multi_conflict.lvl\",\n // \"levels/SAD1_multi_1_agent_wins.lvl\",\n // \"levels/SAhlplan.lvl\",\n // \"levels/SAhlplan_old.lvl\",\n // \"levels/SAClearPathTest.lvl\",\n // \"levels/SAobstaclePathTestLevel.lvl\",\n // \"levels/SApushing.lvl\",\n // \"levels/SAboxesOfHanoi.lvl\",\n // \"levels/SAboxesOfHanoi_simple.lvl\",\n\n // COMPETITION LEVELS - SINGLE AGENT LEVELS\n // \"competition_levels/single_agent/SAAIMuffins.lvl\", // TODO: Works!\n // \"competition_levels/single_agent/SAbotbot.lvl\", // TODO: No free neighbours\n // \"competition_levels/single_agent/SAboXboXboX.lvl\", // TODO: unsolve goals --> WE GIVE UP!\n // \"competition_levels/single_agent/SAButterBot.lvl\", // TODO: Infinite loop\n // \"competition_levels/single_agent/SADangerBot.lvl\", // TODO: Works!\n // \"competition_levels/single_agent/SAextra2.lvl\", // TODO: Works!\n // \"competition_levels/single_agent/SAFortyTwo.lvl\", // TODO: It asks for help\n // \"competition_levels/single_agent/SALazarus.lvl\", // TODO: Works!\n // \"competition_levels/single_agent/SANoOp.lvl\", // TODO: Not the right color?\n // \"competition_levels/single_agent/SAOptimal.lvl\", // TODO: Works!\n \"competition_levels/single_agent/SASojourner.lvl\", // TODO: Works!\n // \"competition_levels/single_agent/SASolo.lvl\", // TODO: Works!\n // \"competition_levels/single_agent/SATAIM.lvl\", // TODO: Whats wrong even?\n // \"competition_levels/single_agent/SAteamhal.lvl\", // TODO: Works!\n // \"competition_levels/single_agent/SATheAgency.lvl\", // TODO: Works!\n // \"competition_levels/single_agent/SATheRedDot.lvl\", // TODO: Works!\n\n // COMPETITION LEVELS - SINGLE AGENT LEVELS\n // \"competition_levels/multi_agent/MAAIMuffins.lvl\", // TODO: Not even close\n // \"competition_levels/multi_agent/MAbotbot.lvl\", // TODO: Deadlock?\n // \"competition_levels/multi_agent/MAboXboXboX.lvl\", // TODO: what even?\n // \"competition_levels/multi_agent/MAButterBot.lvl\", // TODO: Conflict resolution\n // \"competition_levels/multi_agent/MADangerBot.lvl\", // TODO: Agents just stop?\n // \"competition_levels/multi_agent/MAextra1.lvl\", // TODO: Conflict resolution\n // \"competition_levels/multi_agent/MALazarus.lvl\", // TODO: Works!\n // \"competition_levels/multi_agent/MAOptimal.lvl\", // TODO: Agents cannot help each other\n // \"competition_levels/multi_agent/MASojourner.lvl\", // TODO: Just stops...\n // \"competition_levels/multi_agent/MASolo.lvl\", // TODO: Conflict resolution\n // \"competition_levels/multi_agent/MATAIM.lvl\", // TODO: Conflict resolution\n // \"competition_levels/multi_agent/MAteamhal.lvl\", // TODO: Conflict resolution+\n // \"competition_levels/multi_agent/MATheAgency.lvl\", // TODO: Works!\n // \"competition_levels/multi_agent/MATheRedDot.lvl\", // TODO: Agents cannot help each other\n // \"competition_levels/multi_agent/MAWallE.lvl\", // TODO: Works! (sometimes if not conflicts)\n\n \"-g\",\n \"200\",\n \"-t\",\n \"300\",\n \"-c\",\n \"java -jar out/artifacts/agency_jar/The_Agency.jar\"\n };\n\n Runner.main(serverArgs);\n }", "public String resolve(InternalActionContext ac, String branchNameOrUuid, ContainerType edgeType, Node node, LinkType type,\n\t\tboolean forceAbsolute,\n\t\tString... languageTags) {\n\t\tNodeDaoWrapper nodeDao = boot.nodeDao();\n\n\t\tString defaultLanguage = options.getDefaultLanguage();\n\t\tif (languageTags == null || languageTags.length == 0) {\n\t\t\tlanguageTags = new String[] { defaultLanguage };\n\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"Fallback to default language \" + defaultLanguage);\n\t\t\t}\n\t\t} else {\n\t\t\t// In other cases add the default language to the list\n\t\t\tList<String> languageTagList = new ArrayList<String>(Arrays.asList(languageTags));\n\t\t\tlanguageTagList.add(defaultLanguage);\n\t\t\tlanguageTags = languageTagList.toArray(new String[languageTagList.size()]);\n\t\t}\n\n\t\tHibProject theirProject = node.getProject();\n\n\t\tHibBranch branch = theirProject.findBranchOrLatest(branchNameOrUuid);\n\n\t\t// edge type defaults to DRAFT\n\t\tif (edgeType == null) {\n\t\t\tedgeType = ContainerType.DRAFT;\n\t\t}\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"Resolving link to \" + node.getUuid() + \" in language \" + Arrays.toString(languageTags) + \" with type \" + type.name());\n\t\t}\n\n\t\tString path = nodeDao.getPath(node, ac, branch.getUuid(), edgeType, languageTags);\n\t\tif (path == null) {\n\t\t\tpath = \"/error/404\";\n\t\t}\n\t\tswitch (type) {\n\t\tcase SHORT:\n\t\t\t// We also try to append the scheme and authority part of the uri for foreign nodes.\n\t\t\t// Otherwise that part will be empty and thus the link relative.\n\t\t\tif (!forceAbsolute && ac.getProject() != null && ac.getBranch().equals(branch)) {\n\t\t\t\treturn path;\n\t\t\t} else {\n\t\t\t\treturn generateSchemeAuthorityForNode(node, branch) + path;\n\t\t\t}\n\t\tcase MEDIUM:\n\t\t\treturn \"/\" + node.getProject().getName() + path;\n\t\tcase FULL:\n\t\t\treturn VersionHandler.baseRoute(ac.getApiVersion()) + \"/\" + node.getProject().getName() + \"/webroot\" + path\n\t\t\t\t+ branchQueryParameter(branch);\n\t\tdefault:\n\t\t\tthrow error(BAD_REQUEST, \"Cannot render link with type \" + type);\n\t\t}\n\t}", "public Vector<Alternative> getAlts(ArgType typeWanted) {\r\n \t\tVector<Alternative> presup = new Vector<Alternative>();\r\n \t\tIterator argI;\r\n \t\tif ((typeWanted == ArgType.PRESUPPOSES)\r\n \t\t\t\t|| (typeWanted == ArgType.OPPOSES)) {\r\n \t\t\t// System.out.println(\"Relationships: \" + relationships.size());\r\n \t\t\targI = relationships.iterator();\r\n \t\t}\r\n \t\t/*\r\n \t\t * else if (typeWanted == ArgType.PRESUPPOSEDBY) { argI =\r\n \t\t * argumentsFor.iterator(); }\r\n \t\t */\r\n \t\telse {\r\n \t\t\targI = argumentsAgainst.iterator();\r\n \t\t}\r\n \t\twhile (argI.hasNext()) {\r\n \t\t\tArgument ourArg = (Argument) argI.next();\r\n \t\t\tAlternative preAlt = ourArg.getAlternative();\r\n \t\t\t// System.out.println(\"pre arg type = \" +\r\n \t\t\t// ourArg.getType().toString());\r\n \t\t\tif (preAlt != null) {\r\n \t\t\t\t// System.out.println(\"pre arg type = \" +\r\n \t\t\t\t// ourArg.getType().toString());\r\n \t\t\t\tif (ourArg.getType() == typeWanted) {\r\n \t\t\t\t\tpresup.add(preAlt);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn presup;\r\n \t}", "public static void main(String[] args) {\n\t\tMaximum_Length_of_Pair_Chain_646 m=new Maximum_Length_of_Pair_Chain_646();\n\t\tint[][] pairs=new int[][]{\n\t\t\t{-7, -1}, {0, 10}, {2, 3}, {3, 6}, {3, 10}, {4, 5}, {7, 9}, {7, 9}\n\t\t};\n\t\tSystem.out.println(m.findLongestChain(pairs));\n\t}", "abstract public void setParent(Command cmd);", "public static void main(String[] args) {\n\t\tCircularLink link = new CircularLink();\n\t \n\t link.insertAtFirst(1);\n\t link.insertAtFirst(2);\n\t link.insertAtFirst(3);\n\t link.insertAtFirst(4);\n\t link.insertAtFirst(5);\n\t link.insertAtFirst(6);\n\t link.insertAtFirst(7);\n\t link.insertAtFirst(8);\n\t link.insertAtFirst(9);\n\t link.insertAtLast(484);\n\n\t link.DisplayList();\n\t link.DisplayReverse();\n\t}", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "public static void main(String[] args) {\n LowestCommonAncestor obj = new LowestCommonAncestor();\n obj.insert(4);\n obj.insert(2);\n obj.insert(1);\n obj.insert(3);\n obj.insert(6);\n obj.insert(5);\n obj.insert(7);\n System.out.println(\"LCA of 2 numbers is \" + obj.lcaRecursive(obj.root, 1,3).data);\n obj.inorder(obj.root);\n }", "public int toDatabase(int parentID, RationaleElementType ptype,boolean newEle) {\r\n \t\tRationaleDB db = RationaleDB.getHandle();\r\n \t\tConnection conn = db.getConnection();\r\n \r\n \t\t// Update Event To Inform Subscribers Of Changes\r\n \t\t// To Rationale\r\n \t\tRationaleUpdateEvent l_updateEvent;\r\n \r\n \t\tint ourid = 0;\r\n \r\n \t\t// find out if this requirement is already in the database\r\n \t\tStatement stmt = null;\r\n \t\tResultSet rs = null;\r\n \r\n \t\tString updateC;\r\n \t\tif (contingency == null)\r\n \t\t\tupdateC = \"null\";\r\n \t\telse\r\n \t\t\tupdateC = new Integer(contingency.getID()).toString();\r\n \r\n \t\tevaluation = this.evaluate(false); // might as well make sure we are up\r\n \t\t// to date!\r\n \r\n \t\ttry {\r\n \t\t\tstmt = conn.createStatement();\r\n \t\t\t// now, we have determined that the requirement is new\r\n \r\n \t\t\tString updateAltSt =\"update alternatives \" + \"set parent=\"+ parentID + \" ,ptype='\" + ptype.toString()+ \"' where id=\"+this.id+\"\";\r\n \t\t\tSystem.out.println(updateAltSt);\r\n \t\t\tstmt.execute(updateAltSt);\r\n \r\n \t\t\tl_updateEvent = m_eventGenerator.MakeCreated();\r\n \r\n \t\t\t// in either case, we want to update any sub-requirements in case\r\n \t\t\t// they are new!\r\n \t\t\t// now, we need to get our ID\r\n \t\t\tString findQuery2 = \"SELECT id FROM alternatives where name='\"\r\n \t\t\t\t+ RationaleDBUtil.escape(this.name) + \"'\";\r\n \t\t\trs = stmt.executeQuery(findQuery2);\r\n \r\n \t\t\tif (rs.next()) {\r\n \t\t\t\tourid = rs.getInt(\"id\");\r\n \t\t\t\trs.close();\r\n \t\t\t} else {\r\n \t\t\t\tourid = -1;\r\n \t\t\t}\r\n \t\t\tthis.id = ourid;\r\n \r\n \t\t\tEnumeration args = getAllArguments().elements();\r\n \t\t\twhile (args.hasMoreElements()) {\r\n \t\t\t\tArgument arg = (Argument) args.nextElement();\r\n \t\t\t\t// System.out.println(\"Saving arg from alternative\");\r\n \t\t\t\targ.toDatabase(ourid, RationaleElementType.ALTERNATIVE);\r\n \t\t\t}\r\n \r\n \t\t\tEnumeration quests = questions.elements();\r\n \t\t\twhile (quests.hasMoreElements()) {\r\n \t\t\t\tQuestion quest = (Question) quests.nextElement();\r\n \t\t\t\tquest.toDatabase(ourid, RationaleElementType.ALTERNATIVE);\r\n \t\t\t}\r\n \r\n \t\t\tEnumeration decs = subDecisions.elements();\r\n \t\t\twhile (decs.hasMoreElements()) {\r\n \t\t\t\tDecision dec = (Decision) decs.nextElement();\r\n \t\t\t\tdec.toDatabase(ourid, RationaleElementType.ALTERNATIVE);\r\n \t\t\t}\r\n \r\n \t\t\t// finally, the history\r\n \r\n \t\t\tEnumeration hist = history.elements();\r\n \t\t\twhile (hist.hasMoreElements()) {\r\n \t\t\t\tHistory his = (History) hist.nextElement();\r\n \t\t\t\this.toDatabase(ourid, RationaleElementType.ALTERNATIVE);\r\n \t\t\t}\r\n \r\n \t\t\tm_eventGenerator.Broadcast(l_updateEvent);\r\n \t\t} catch (SQLException ex) {\r\n \t\t\t// handle any errors\r\n \t\t\tRationaleDB.reportError(ex, \"Alternative.toDatabase\", \"Bad query\");\r\n \t\t}\r\n \r\n \t\tfinally {\r\n \t\t\tRationaleDB.releaseResources(stmt, rs);\r\n \t\t}\r\n \r\n \t\treturn ourid;\r\n \r\n \t}", "private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }", "public static void main(String[] args) {\n\t\t\n\t\tint [][] arr = {{2,1,6},{4,5,8},{0,6,7}};\n\t\t\n\t\t\n\t\tfindLongestSequence(arr);\n\t\tshowTable(arr);\n\t}", "private static String recoverParent(BabelSynset bs) throws IOException {\n\t\tif(bs.getEdges(BabelPointer.ANY_HYPERNYM).size() == 0) {\n\t\t\tif(bs.getEdges(BabelPointer.DERIVATIONALLY_RELATED).size() > 0) {\n\t\t\t\tString tag = bs.getEdges(BabelPointer.DERIVATIONALLY_RELATED).get(0).getTarget();\n\t\t\t\tif(tag != null) \n\t\t\t\t\treturn tag;\n\t\t\t}\n\t\t}\n\t\treturn findHighParent_A(bs);\n\t}", "public static void main(String[] args) {\n\n LongestIncreasingSubsequence lis = new LongestIncreasingSubsequence(new int[]{4, 2, -1, 3, 5, 5});\n lis.findLIS();\n }", "public static void main(String[] args) {\n Steps ways = new Steps();\n int n=5;\n System.out.println(\"Recursion ways: \"+ways.getStepsRecur(n));\n \n System.out.println(\"DP ways: \"+ways.getStepDP(n));\n \n }", "public static void main(String[] args) {\n\t\tSinglyLinkedList list = new SinglyLinkedList();\r\n\t\tAlternatingLinkedList alternateSeq = new AlternatingLinkedList();\r\n\t\tlist.add(\"A\");\r\n\t\tlist.add(\"B\");\r\n\t\tlist.add(\"C\");\r\n\t\tlist.add(\"D\");\r\n\t\tlist.add(\"E\");\r\n\t\tlist.add(\"F\");\r\n\t\tlist.add(\"G\");\r\n\t\tlist.add(\"H\"); \r\n\t\tlist.add(\"I\");\r\n\t\tlist.add(\"J\");\r\n\t\tlist.add(\"K\");\r\n\t\tlist.add(\"L\");\r\n\t\t\t\r\n\t\talternateSeq.arrangeAlternatively(list);\r\n\t\t\t\r\n\t}", "public interface LinkOpt extends Link {\n\n}", "protected void setPrerequisiteObjects(List<Object> inputArgs)\n throws BaseCollectionException {\n // TODO Auto-generated method stub\n }", "public int getTargetArgIndex() {\n\t\treturn this.targetArgIndex;\n\t}", "public static void main(String[] args) {\n List<Node<Integer>> lst = new ArrayList<Node<Integer>>();\n for (int i = 0; i < 10; i++) {\n Node<Integer> n1 = new Node<Integer>(i);\n lst.add(n1);\n }\n for (int i = 0; i < lst.size() - 1; i++) {\n lst.get(i).next = lst.get(i + 1);\n }\n Node<Integer> start = lst.get(0);\n\n LinkListLearn l = new LinkListLearn();\n\n l.printLinkList(start);\n\n start = l.reverseRecursively(start);\n System.out.println();\n l.printLinkList(start);\n }", "@Override\n\tpublic void traverseArg(UniArg node) {\n\t}", "public static void main(String[] args) {\n Node nodeA = new Node(1);\n Node nodeB = new Node(2);\n Node nodeC = new Node(3);\n\n //assigning the reference to next noe\n nodeA.next = nodeB;\n nodeB.next = nodeC;\n }", "public static void main(String[] args) {\n ListNode l1 = new ListNode(5);\n ListNode l2 = new ListNode(5);\n Solution solution = new Solution();\n StdOut.println(Tool.linkListToString(solution.addTwoNumbers(l1, l2)));\n }", "@NonNullByDefault\npublic interface ILinkingCandidate {\n\n\t/**\n\t * Apply this candidate to the current computation state model. This propagates\n\t * the type information about arguments and child expressions to the\n\t * currently active resolution state.\n\t */\n\tvoid applyToComputationState();\n\t\n\t/**\n\t * Injects the resolved feature into the model with the same semantics as the implicit\n\t * {@link EcoreUtil#resolve(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EObject) resolve}\n\t * of EMF. This implies that the linked feature call may still point to a proxy afterwards.\n\t */\n\tvoid applyToModel();\n\t\n\t// TODO we should use a smarter acceptor here\n\t// e.g. it should be possible to suppress diagnostics for children of certain expresions\n\t// and therefore it should expose something like 'isSuppressed()'\n\t/**\n\t * Produce diagnostics for this condidate. It is not the responsibility of this\n\t * candidate to propagate the acceptor to its children.\n\t * @return <code>true</code> if further validation should be performed.\n\t */\n\tboolean validate(IAcceptor<? super AbstractDiagnostic> result);\n\t\n\t/**\n\t * Produces the best candidate for the current two candidates. It may turn out\n\t * that both candidates (<code>this</code> and <code>other</code>) are ambiguous \n\t * so no prefered candidate can be chosen. In that case, a new linking candidate\n\t * may be produced that carries this information and will use that on {@link #applyToComputationState()},\n\t * {@link #applyToModel()}, and {@link #validate(IAcceptor)}.\n\t */\n\tILinkingCandidate getPreferredCandidate(ILinkingCandidate other);\n\t\n\t/**\n\t * The currently considered feature (if any). Otherwise <code>null</code>.\n\t */\n\t@Nullable JvmIdentifiableElement getFeature();\n\t\n\t/**\n\t * The current expression that shall be linked.\n\t */\n\tXExpression getExpression();\n\t\n\t/**\n\t * The resolved type arguments.\n\t */\n\tList<LightweightTypeReference> getTypeArguments();\n\n}", "public static void main(String[] args) {\n\t\tQueue<TreeNode> queue = new LinkedList<>();\n\t\tqueue.offer(null);\n\t\tqueue.add(null);\n\t\tT44_Solution t = new T44_Solution();\n\t\tTreeNode n = null;\n\t\tt.levelOrder(n);\n\n\t}", "protected void onJunctionLinkClicked(AjaxRequestTarget target, TreeNode node)\n\t{\n\t}", "public Relation(String relationString, EnumSet<Aspects> fixes,\n MinecraftObject obj, ImmutableList<MinecraftObject> otherob) {\n this.fixes = fixes;\n this.relationString = relationString;\n this.obj = obj;\n this.otherobj = otherob;\n }", "public String getReasonerKnowledgeBaseURI();", "protected LambdaTerm getParent() { return parent; }", "public static void main(String[] args) {\n\t\tString[][] relation = {\r\n\t\t\t{\"100\",\"ryan\",\"music\",\"2\"},{\"200\",\"apeach\",\"math\",\"2\"},{\"300\",\"tube\",\"computer\",\"3\"},{\"400\",\"con\",\"computer\",\"4\"},{\"500\",\"muzi\",\"music\",\"3\"},{\"600\",\"apeach\",\"music\",\"2\"}\r\n\t\t};\r\n\r\n\t\tSystem.out.println(solution(relation));\r\n\t}", "private static ResolvedPath resolveAbsolutePath(\n EphemeralFsPath oiginalPath,\n EphemeralFsFileSystem fs,\n //the current directory\n //that parts will be resolved from\n INode current,\n //the parts of the path that must still be resolved\n //in reverse order\n List<EphemeralFsPath> remaining,\n //the steps we have already resolved\n List<ResolvedStep> steps,\n boolean noFollowLastSymlink) throws FileSystemException {\n \n if(remaining.isEmpty()) {\n return new ResolvedPath(fs, steps, current, null, !steps.isEmpty());\n }\n \n EphemeralFsPath currentPath = remaining.remove(remaining.size() -1);\n String fileName = currentPath.toString();\n\n if(fileName.equals(\".\")) {\n if(!current.isDir()) {\n throw new FileSystemException(oiginalPath + \": Not a directory\");\n }\n return resolveAbsolutePath(oiginalPath, fs, current, remaining, steps, noFollowLastSymlink);\n }\n else if(fileName.equals(\"..\")) {\n if(!current.isDir()) {\n throw new FileSystemException(oiginalPath + \": Not a directory\");\n }\n //we always have the root as the first step\n //\n if(steps.isEmpty()) {\n //we are trying to .. above the root\n //use root to explore\n //on linux, ls /../tmp will list /tmp\n return resolveAbsolutePath(oiginalPath, fs, fs.getRoot(), remaining, steps, noFollowLastSymlink);\n }\n ResolvedStep parent = steps.remove(steps.size() - 1);\n return resolveAbsolutePath(oiginalPath, fs, parent.directory, remaining, steps, noFollowLastSymlink);\n }\n \n if(current.isDir()) {\n DirectoryEntry entry = current.resolve(currentPath);\n if(entry != null) {\n if(entry.isSymbolicLink()) {\n if(noFollowLastSymlink && remaining.isEmpty()) {\n steps.add(new ResolvedStep(current, fileName));\n return new ResolvedPath(fs, steps, null, entry, true);\n }\n EphemeralFsPath linkTarget = entry.getSymbolicLink();\n EphemeralFsPath absolutePathSoFar = getPaths(fs, steps);\n List<EphemeralFsPath> newParts = absolutePathSoFar.resolve(linkTarget).splitPaths();\n for(int i = newParts.size() -1; i >= 0; i--) {\n remaining.add(newParts.get(i));\n }\n //we have a new absolute path to resolve\n //start over\n steps.clear();\n return resolveAbsolutePath(oiginalPath, fs, fs.getRoot(), remaining, steps, noFollowLastSymlink);\n }\n steps.add(new ResolvedStep(current, fileName));\n return resolveAbsolutePath(oiginalPath, fs, entry.getDestination(), remaining, steps, noFollowLastSymlink);\n }\n } \n\n //we can't resolve everything, stop\n //what we have resolved is still useful\n //for example resolving a non existing\n //path which we want to create\n steps.add(new ResolvedStep(current, fileName));\n if(remaining.isEmpty()) {\n return new ResolvedPath(fs, steps, null, null, true);\n } else {\n return new ResolvedPath(fs, steps, null, null, false); \n }\n \n }", "public ISemanticLinkColl getParentSemanticLinks()\n throws OculusException;", "public static void main(String[] args) {\n\t\tLongestValidParentheses l=new LongestValidParentheses();\n\t\tSystem.out.println(l.longestValidParentheses5(\")()())\"));\n\t\tSystem.out.println(l.longestValidParentheses5(\")(()))\"));\n\t\tSystem.out.println(l.longestValidParentheses5(\"(()\")); //special case\n\t\tSystem.out.println(l.longestValidParentheses5(\"())\")); //special case\n\t\t\n\t\t\n\t\tLongestValidParentheses l2=new LongestValidParentheses();\n\t\tSystem.out.println(l2.longestValidParentheses4(\")()())\"));\n\t\tSystem.out.println(l2.longestValidParentheses4(\")(()))\"));\n\t\tSystem.out.println(l2.longestValidParentheses4(\"(()\")); //special case\n\t\tSystem.out.println(l2.longestValidParentheses4(\"())\")); //special case\n\t}", "private void handleUpdateCommand(SlackMessageSender messageSender, String[] args) throws Exception {\n LinkEntityCommand linkEntityCommand = parseLinkEntityCommand(args);\n if (logger.isDebugEnabled()) {\n logger.debug(\"## [Link update command] \" + linkEntityCommand);\n }\n\n LinkEntity updated = linkService.updateLink(linkEntityCommand);\n String message = String.format(\"Success to update link. title %s > id : %d\"\n , updated.getTitle(), updated.getId());\n messageSender.send(message);\n }", "public static void main(String[] args) {\n Digraph grph = new Digraph(5);\n grph.addEdge(0, 1);\n grph.addEdge(1, 2);\n grph.addEdge(2, 3);\n BreadthFirstDirectedPaths path1 = new BreadthFirstDirectedPaths(grph, 0);\n BreadthFirstDirectedPaths path2 = new BreadthFirstDirectedPaths(grph, 0);\n int len = -1;\n for (int i = 0; i < grph.V(); i++) {\n if (path1.hasPathTo(i) && path2.hasPathTo(i)) {\n if (len == -1) {\n len = path1.distTo(i);\n }\n if (path1.distTo(i) > len) {\n len = path1.distTo(i);\n }\n }\n }\n }", "@Override\n public ValidationResults validArguments(String[] arguments) {\n final int MANDATORY_NUM_OF_ARGUMENTS = 1;\n if (arguments.length == MANDATORY_NUM_OF_ARGUMENTS) {\n // Check if CommandMAN was called on itself (Checker doesn't need to\n // validate CommandMAN twice).\n if (arguments[0].equals(this.getCommandName())) {\n this.toDocument = this; // man will document itself.\n } else {\n // Man will document this command object.\n try {\n this.toDocument = Checker.getCommand(arguments[0], true);\n } catch (Exception ex) {\n return new ValidationResults(false, \"No manual entry for \"\n + arguments[0]); // CMD does not exist.\n }\n }\n return new ValidationResults(true, null);\n }\n return new ValidationResults(false, \"Requires \"\n + MANDATORY_NUM_OF_ARGUMENTS + \" argument.\");\n }", "public String getArgumentLine() {\n return \"\";\n }", "public String getParentMenu();", "public static void main(String[] args) throws Throwable {\n\n Main object = new Main();\n String target = \"4\";\n Map<String, List<String>> deps = new HashMap<>();\n List<String> a = new ArrayList<>();\n a.add(\"3\");\n a.add(\"2\");\n deps.put(\"4\", a);\n List<String> b = new ArrayList<>();\n b.add(\"1\");\n deps.put(\"3\",b);\n deps.put(\"2\",b);\n List<String> res = object.buildOrder(\"4\",deps);\n\n System.out.print(\"res\" + Arrays.toString(res.toArray()));\n\n }", "public int getParent();", "public static void main(String[] args) {\n\t\tNode root = newNode(1); \r\n\t root.left = newNode(2); \r\n\t root.right = newNode(3); \r\n\t root.left.left = newNode(4); \r\n\t root.left.right = newNode(5); \r\n\t root.right.left = newNode(6); \r\n\t root.right.right = newNode(7); \r\n\t root.right.left.right = newNode(8); \r\n\t root.right.right.right = newNode(9); \r\n\t \r\n\t System.out.println(largestUinquePath(root)); \r\n\t}", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"Submitted Fourth project -branch 2 shelve\");\r\n\t}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tSystem.out.println(new Solution().longestValidParentheses(\")()())\"));\n\n\t}", "public static void main(String[] args) {\nlinktext oo=new linktext();\noo.launch();\n\t}", "private SlackerOutput handleHelp() {\n logger.debug(\"Handling help request\");\n List<WorkflowMetadata> metadata = registry.getWorkflowMetadata();\n Collections.sort(metadata, new Comparator<WorkflowMetadata>() {\n @Override\n public int compare(WorkflowMetadata m1, WorkflowMetadata m2) {\n String p1 = StringUtils.join(m1.getPath(), \"::\");\n String p2 = StringUtils.join(m2.getPath(), \"::\");\n return p1.compareTo(p2);\n }\n });\n StringBuilder sb = new StringBuilder(\"I can understand:\\n\");\n for (WorkflowMetadata wm : metadata) {\n sb.append(StringUtils.join(wm.getPath(), \" \"))\n .append(\" \")\n .append(trimToEmpty(wm.getArgsSpecification()))\n .append(\"\\n\").append(\" \")\n .append(trimToEmpty(wm.getName()))\n .append(\" - \").append(trimToEmpty(wm.getDescription()))\n .append(\"\\n\");\n }\n return new TextOutput(sb.toString());\n }", "public static Path getPathFromBranchingInformation(\n ARGState root, Collection<? extends AbstractState> arg,\n Map<Integer, Boolean> branchingInformation) throws IllegalArgumentException {\n\n checkArgument(arg.contains(root));\n\n Path result = new Path();\n ARGState currentElement = root;\n while (!currentElement.isTarget()) {\n Set<ARGState> children = currentElement.getChildren();\n\n ARGState child;\n CFAEdge edge;\n switch (children.size()) {\n\n case 0:\n throw new IllegalArgumentException(\"ARG target path terminates without reaching target state!\");\n\n case 1: // only one successor, easy\n child = Iterables.getOnlyElement(children);\n edge = currentElement.getEdgeToChild(child);\n break;\n\n case 2: // branch\n // first, find out the edges and the children\n CFAEdge trueEdge = null;\n CFAEdge falseEdge = null;\n ARGState trueChild = null;\n ARGState falseChild = null;\n\n for (ARGState currentChild : children) {\n CFAEdge currentEdge = currentElement.getEdgeToChild(currentChild);\n if (!(currentEdge instanceof CAssumeEdge)) { throw new IllegalArgumentException(\n \"ARG branches where there is no CAssumeEdge!\"); }\n\n if (((CAssumeEdge) currentEdge).getTruthAssumption()) {\n trueEdge = currentEdge;\n trueChild = currentChild;\n } else {\n falseEdge = currentEdge;\n falseChild = currentChild;\n }\n }\n if (trueEdge == null || falseEdge == null) { throw new IllegalArgumentException(\n \"ARG branches with non-complementary AssumeEdges!\"); }\n assert trueChild != null;\n assert falseChild != null;\n\n // search first idx where we have a predicate for the current branching\n Boolean predValue = branchingInformation.get(currentElement.getStateId());\n if (predValue == null) { throw new IllegalArgumentException(\"ARG branches without direction information!\"); }\n\n // now select the right edge\n if (predValue) {\n edge = trueEdge;\n child = trueChild;\n } else {\n edge = falseEdge;\n child = falseChild;\n }\n break;\n\n default:\n throw new IllegalArgumentException(\"ARG splits with more than two branches!\");\n }\n\n if (!arg.contains(child)) { throw new IllegalArgumentException(\n \"ARG and direction information from solver disagree!\"); }\n\n result.add(Pair.of(currentElement, edge));\n currentElement = child;\n }\n\n\n // need to add another pair with target state and one (arbitrary) outgoing edge\n CFANode loc = extractLocation(currentElement);\n CFAEdge lastEdge = null;\n if (loc.getNumLeavingEdges() > 0) {\n lastEdge = loc.getLeavingEdge(0);\n }\n result.add(Pair.of(currentElement, lastEdge));\n\n return result;\n }", "public String getParentAgentcy() {\r\n return parentAgentcy;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"github\");\r\n\t\t\r\n\t\tSystem.out.println(\"changed it for job text\");\r\n\t}", "public abstract void printHelp(List<String> args);", "public static void main(String[] args) {\n System.out.println(\"result = \" + new Main().findLongestPalindrome(\"abcdcbac\"));\n }", "public static void main(String[] args) {\n try {\n solution2();\n } catch (Exception e) {\n e.getStackTrace();\n }\n }", "private void go2(Node node, int viaAction){\n if(node == null) { //top\n bindCategoryListLayout();\n return;\n }\n\n QAElement element = node.getElement();\n if(element.isCategory()){\n bindQuestionListLayout(node);\n }else if(element.isQuestion()){\n if(viaAction==ACTION_BACK){\n Node category = node.getParent();\n bindQuestionListLayout(category);\n }else {\n bindAnswerView(node);\n }\n }else if(element.isFix()){\n bindFixView(node);\n }\n }", "public static void main(String[] args) {\n\t\tVertex A = new Vertex(\"A\");\n\t\tVertex B = new Vertex(\"B\");\n\t\tVertex C = new Vertex(\"C\");\n\t\tVertex D = new Vertex(\"D\");\n\t\tVertex E = new Vertex(\"E\");\n\n\t\tA.adjacencies = new Edge[]{ new Edge(B, 10),\tnew Edge(C, 3) };\n\t\tB.adjacencies = new Edge[]{\tnew Edge(C, 1), \tnew Edge(D, 2)};\n\t\tC.adjacencies = new Edge[]{ new Edge(B, 4), \tnew Edge(D, 8),\tnew Edge(E, 2)};\n\t\tD.adjacencies = new Edge[]{ new Edge(E, 7)};\n\t\tE.adjacencies = new Edge[]{ new Edge(D, 9)};\n\t\tVertex[] vertices = { A,B,C,D,E };\n\t\t\n\t\tcomputePaths(A);\n\t\t\n\t\tfor (Vertex v : vertices)\n\t\t{\n\t\t System.out.println(\"Distance to \" + v + \": \" + v.minDistance);\n\t\t List<Vertex> path = getShortestPathTo(v);\n\t\t System.out.println(\"Path: \" + path);\n\t\t}\n\t}", "private static void backtrace(int dest, int[] parents) {\n int node = dest;\n\n // Hmmm.... need some code.\n System.out.println(\"Path\" );\n\n }", "public final EObject entryRuleOneArgumentRelation() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleOneArgumentRelation = null;\r\n\r\n\r\n try {\r\n // InternalNestDsl.g:711:60: (iv_ruleOneArgumentRelation= ruleOneArgumentRelation EOF )\r\n // InternalNestDsl.g:712:2: iv_ruleOneArgumentRelation= ruleOneArgumentRelation EOF\r\n {\r\n newCompositeNode(grammarAccess.getOneArgumentRelationRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleOneArgumentRelation=ruleOneArgumentRelation();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleOneArgumentRelation; \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }", "public static void main(String[] args) {\n\t\tLinkNfromLastUsingHashMap ll=new LinkNfromLastUsingHashMap();\r\n\t\tll.insertFirst(10);\r\n\t\tll.insertFirst(20);\r\n\t\tll.insertFirst(30);\r\n\t\tll.insertFirst(40);\r\n\t\tll.insertFirst(50);\r\n\t\tll.printL();\r\n\t\tSystem.out.println(\"\");\r\n\t\tll.printNfromLast(2);\r\n\t}", "java.lang.String getParent();", "java.lang.String getParent();", "public static void main(String[] args) throws IOException {\n\n\t\tString start = \"https://en.wikipedia.org/wiki/Java_(programming_language)\";\n\t\ttryGettingToDestination(start, philosophy, 10);\n\n\t}", "Object getParent();", "public void question() {\n\t\tlead.answer(this);\n\t}", "public abstract int getMaximumArguments();", "public BaseNode getArgument()\r\n\t{\r\n\t\treturn _argument;\r\n\t}", "public void makePreferredOTTOLRelationshipsNOConflicts() {\n \n // TraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n // .relationships(RelType.TAXCHILDOF, Direction.INCOMING);\n \n // get the start point\n Node life = getLifeNode();\n System.out.println(life.getProperty(\"name\"));\n \n Transaction tx = beginTx();\n addToPreferredIndexes(life, ALLTAXA);\n HashSet<Long> traveled = new HashSet<Long>();\n int nNewRels = 0;\n try {\n // walk out to the tips from the base of the tree\n for (Node n : TAXCHILDOF_TRAVERSAL.traverse(life).nodes()) {\n if (n.hasRelationship(Direction.INCOMING, RelType.TAXCHILDOF) == false) {\n \n // when we hit a tip, start walking back\n Node curNode = n;\n while (curNode.hasRelationship(Direction.OUTGOING, RelType.TAXCHILDOF)) {\n Node startNode = curNode;\n if (traveled.contains((Long)startNode.getId())){\n \tbreak;\n }else{\n \ttraveled.add((Long)startNode.getId());\n }\n Node endNode = null;\n \n // if the current node already has a preferred relationship, we will just follow it\n if (startNode.hasRelationship(Direction.OUTGOING, RelType.PREFTAXCHILDOF)) {\n Relationship prefRel = startNode.getSingleRelationship(RelType.PREFTAXCHILDOF, Direction.OUTGOING);\n \n // make sure we don't get stuck in an infinite loop (should not happen, could do weird things to the graph)\n if (prefRel.getStartNode().getId() == prefRel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + prefRel + \" \" + prefRel.getStartNode().getId() + \" \" + prefRel.getEndNode().getId());\n break;\n }\n \n // prepare to move on\n endNode = prefRel.getEndNode();\n \n } else {\n \n // if there is no preferred rel then they all point to the same end node; just follow the first non-looping relationship\n for (Relationship rel : curNode.getRelationships(RelType.TAXCHILDOF, Direction.OUTGOING)) {\n if (rel.getStartNode().getId() == rel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + rel + \" \" + rel.getStartNode().getId() + \" \" + rel.getEndNode().getId());\n break;\n } else {\n endNode = rel.getEndNode();\n break;\n }\n }\n \n // if we found a dead-end, die\n if (endNode == null) {\n System.out.println(curNode.getProperty(\"name\"));\n System.out.println(\"Strange, this relationship seems to be pointing at a nonexistent node. Quitting.\");\n System.exit(0);\n }\n \n // create preferred relationships\n curNode.createRelationshipTo(endNode, RelType.PREFTAXCHILDOF);\n curNode.createRelationshipTo(endNode, RelType.TAXCHILDOF).setProperty(\"source\", \"ottol\");\n nNewRels += 1;\n }\n \n if (startNode == endNode) {\n System.out.println(startNode);\n System.out.println(\"The node seems to be pointing at itself. This is a problem. Quitting.\");\n System.exit(0);\n \n // prepare for next iteration\n } else {\n curNode = endNode;\n addToPreferredIndexes(startNode, ALLTAXA);\n }\n }\n }\n \n if (nNewRels % transaction_iter == 0) {\n System.out.println(nNewRels);\n // tx.success();\n // tx.finish();\n // tx = beginTx();\n }\n }\n tx.success();\n } finally {\n tx.finish();\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tint[] arr = new int[]{1,2,5,6,3,2};\n\t\t\n\t\tSystem.out.println(\"Second Largest : \" + getLarg(arr,arr.length));\n\t}" ]
[ "0.49157915", "0.48714468", "0.4763525", "0.4758585", "0.46947157", "0.46581802", "0.45882654", "0.4584221", "0.45448402", "0.45431665", "0.44605374", "0.44487363", "0.4404775", "0.43735427", "0.43688646", "0.436185", "0.4361627", "0.43572938", "0.43572763", "0.43497145", "0.43392515", "0.43386567", "0.43278575", "0.43079033", "0.42942345", "0.42902324", "0.42901236", "0.42860648", "0.42847666", "0.4283652", "0.42768756", "0.42726734", "0.42616433", "0.42489877", "0.42443836", "0.42437044", "0.4230252", "0.4229885", "0.42283404", "0.42250583", "0.42184544", "0.42145073", "0.42145073", "0.42055976", "0.4198752", "0.41913274", "0.41868204", "0.41862714", "0.4178579", "0.41785", "0.41745618", "0.4170477", "0.41634393", "0.4160049", "0.41594636", "0.4151737", "0.4150831", "0.4140727", "0.41369212", "0.41355526", "0.41346318", "0.41346112", "0.41305658", "0.41266188", "0.4126106", "0.41157368", "0.41115484", "0.41047245", "0.41010308", "0.40998372", "0.40997583", "0.40969297", "0.40960944", "0.40936768", "0.40908927", "0.40906438", "0.40886027", "0.40863183", "0.40853548", "0.40792716", "0.40719515", "0.40713376", "0.40698963", "0.40688887", "0.40642804", "0.4064013", "0.40635344", "0.4062523", "0.40607482", "0.40603387", "0.40590596", "0.4055698", "0.40453255", "0.40453255", "0.4044481", "0.4042734", "0.40427125", "0.40408167", "0.4038119", "0.40380073", "0.40327832" ]
0.0
-1
Creates new form VentaMainView
public VentaMainView() { initComponents(); controlador = new VentaController(); this.setLocationRelativeTo(null); cargarCategorias(); cargarArticulos(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ViewDetalleVentas() {\n initComponents();\n }", "@Override\n public void Create() {\n\n initView();\n }", "public void newTrip(View v) {\n\t\tIntent intent = new Intent(RootMenuActivity.this, NewTripActivity.class);\n\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\tstartActivity(intent);\n\t}", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public FormularioLivroView() {\n initComponents();\n }", "private void crearVista() {\n\t\tVista vista = Vista.getInstancia();\n\t\tvista.addObservador(this);\n\n\t}", "public Ver() {\n initComponents();\n mostrarContato();\n }", "public AdicionarProdutoCarrinhoVIew() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public void showCreateActivtiy(View v){\n Intent intent = new Intent(this, CreateActivity.class);\n startActivity(intent);\n }", "public void viewHandler(View v) {\n LinearLayout vwParentRow = (LinearLayout)v.getParent();\n TextView id =(TextView) vwParentRow.findViewById(R.id._id);\n Intent intent = new Intent(Hates.this, Formulario.class);\n\n intent.putExtra(C_MODO, C_VISUALIZAR);\n intent.putExtra(mDbHelper.ID, Long.valueOf((String)id.getText()));\n\n\n this.startActivityForResult(intent, C_VISUALIZAR);\n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "public CrearQuedadaVista() {\n }", "public VendaView() {\n initComponents();\n }", "public myView() {\n initComponents();\n CreatMenu();\n }", "public VentanaCreaCategoria(VentanaPrincipal v, Categoria c) {\r\n\t\tthis.vp = v;\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tsetTitle(\"Crear categor\\u00EDa\");\r\n\t\tsetBounds(100, 100, 441, 237);\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\r\n\t\tcontentPanel.setLayout(null);\r\n\t\tcontentPanel.add(getBtnCrear());\r\n\t\tcontentPanel.add(getBtnCancelar());\r\n\t\tcontentPanel.add(getLblNombre());\r\n\t\tcontentPanel.add(getTfNombre());\r\n\t\tcontentPanel.add(getLblSexo());\r\n\t\tcontentPanel.add(getComboSexo());\r\n\t\tcontentPanel.add(getLblEdadDesde());\r\n\t\tcontentPanel.add(getTfedadMinima());\r\n\t\tcontentPanel.add(getLblHasta());\r\n\t\tcontentPanel.add(getTfEdadMaxima());\r\n\r\n\t\t// Cargamos los datos en las tf\r\n\t\tcargarDatosCategoria(c);\r\n\t}", "public MainView() {\n initComponents();\n \n }", "@Override\n public void onClick(View view) {\n Intent nuevoIntent = new Intent(MainActivity.this, CrearCuentaActivity.class);\n startActivity(nuevoIntent);\n }", "public void abrirVentanaNuevaLista(ActionEvent event){\n Parent root;\n try {\n //Carga ventana\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"nuevaListaSample.fxml\"));\n root =loader.load();\n Stage stage = new Stage();\n stage.setTitle(\"Crear una nueva lista\");\n stage.setScene(new Scene(root,450,450));\n //Conexion con controller de nueva lista\n NuevaListaSample controllerNuevaLista = loader.getController();\n //Se actualiza los datos de listas\n controllerNuevaLista.definirData(this.data);\n\n stage.show();\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "@Override\n public void Create() {\n initView();\n initData();\n }", "@GetMapping(\"/restaurante/new\")\n\tpublic String newRestaurante(Model model) {\n\t\tmodel.addAttribute(\"restaurante\", new Restaurante());\n\t\tControllerHelper.setEditMode(model, false);\n\t\tControllerHelper.addCategoriasToRequest(categoriaRestauranteRepository, model);\n\t\t\n\t\treturn \"restaurante-cadastro\";\n\t\t\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view =inflater.inflate(R.layout.activity_crearno, container, false);\n titulo = (EditText) view.findViewById(R.id.titulo);\n nota = (TextView) view.findViewById(R.id.titu1);\n Button btnCre = (Button) view.findViewById(R.id.crearno);\n\n btnCre.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n titu=titulo.getText().toString();\n\n NotasFragment fragment = new NotasFragment();\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.content_frame, fragment).commit();\n\n\n\n\n }\n });\n return view;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n Toast.makeText(getApplicationContext(),\"onCreate MainActivity\",Toast.LENGTH_LONG).show();\n // seta a activity incial\n setContentView(R.layout.activity_main);\n buttonNovaActivity = (Button) findViewById(R.id.buttonNovaActivity);\n buttonNovaActivity.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startActivity(new Intent(MainActivity.this,Segunda_Activity.class)); //trocando de tela, strart inici outra activity\n\n }\n });\n\n }", "public NomineeAddActivity() {\r\n\t\tsetContentView(R.layout.activity_nominee_add);\r\n\t}", "private void generaVentana()\n {\n // Crea la ventana\n ventana = new JFrame(\"SpaceInvaders\");\n panel = (JPanel) ventana.getContentPane();\n \n // Establece el tamaño del panel\n panel.setPreferredSize(new Dimension(anchoVentana, altoVentana));\n\n // Establece el layout por defecto\n panel.setLayout(null);\n\n // Establece el fondo para el panel\n panel.setBackground(Color.black);\n\n // Establece el tamaño de Canvas y lo añade a la ventana\n setBounds(0,0,altoVentana,anchoVentana);\n panel.add(this);\n\n // Establece que el programa se cerrará cuando la ventana se cierre\n ventana.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n // Establece el tamaño de la ventana\n ventana.pack();\n\n // La ventana no se cambia de tamaño\n ventana.setResizable(false);\n\n // Centra la ventana en la pantalla\n ventana.setLocationRelativeTo(null);\n\n // Muestra la ventana\n ventana.setVisible(true);\n\n // Mantine el foco en la ventana\n requestFocusInWindow();\n }", "public ViewRentas() {\n initComponents();\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "@FXML\n public void newMedico() {\n new MedicoPaneCadastroController().abrirJanela(\"./View/MedicoPaneCadastro.fxml\", \"Novo Médico\", null);\n populaTabela();\n\n }", "public SrvINFONEGOCIO(AgregarInfoNegocio view) {//C.P.M Tendremos un constructor con la vista de agregar informacion de negocio\r\n this.vista = view;//C.P.M Se la agregamos a la variable para tener acceso a la vista \r\n }", "public void vistaApoyo (View view){\n Intent interfaz = new Intent(this,MainApoyo.class);\n Intent enviar = new Intent( view.getContext(), MainNivelesReto.class );\n //Metodo que me permite crear variable\n enviar.putExtra(\"IdCategoria\", getIntent().getStringExtra(\"IdCategoria\") );\n startActivity(interfaz);\n finish();\n }", "public ViewProveedores() {\n initComponents();\n }", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public MainView() {\n initComponents();\n }", "public MainView() {\n initComponents();\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "View createView();", "public Ventana(){\r\n\t\t\r\n\t\tsuper.setTitle(\"Operaciones\");\r\n\t\tsuper.setSize(320, 480);\r\n\t\tsuper.setDefaultCloseOperation(EXIT_ON_CLOSE); //para el botón de cerrar\r\n\t\tcargarControles();\r\n\t}", "public void buttonNew(View view) {\n Intent intent = new Intent(this, ProductNewActivity.class);\n startActivity(intent);\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "@Override\n public void buttonClick(ClickEvent event) {\n \n \ttry {\n\t\t\t\t\tUI.getCurrent().getNavigator().addView(_nombreSeccion + \"Adm/\" + _titulo.getCaption(), new AdministradorClase(new Lista_Mensaje_V_Administrador(it.getIdTema())));\n\t\t\t\t} catch (PersistentException 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\tUI.getCurrent().getNavigator().navigateTo(_nombreSeccion+ \"Adm/\" + _titulo.getCaption());\n \t\n \t\n }", "public MainView() {\r\n\t\tinitialize();\r\n\t}", "public NivelFormacaoFormView(NivelFormacaoFormController controller) {\r\n\t\tbuildMainLayout();\r\n\t\tsetCompositionRoot(mainLayout);\r\n\r\n\t\t// TODO add user code here\r\n\t\tthis.controller = controller;\r\n\t}", "public ViewDetallesPagos () {\r\n\r\n }", "public VentanaPrincipal(Controlador main) {\n controlador = main;\n initComponents();\n }", "@GetMapping(\"/cliente/new\")\n\tpublic String newCliente(Model model) {\n\t\tmodel.addAttribute(\"cliente\", new Cliente());\n\t\tControllerHelper.setEditMode(model, false);\n\t\t\n\t\t\n\t\treturn \"cadastro-cliente\";\n\t\t\n\t}", "public ServicosView(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n \n this.parent = parent;\n painelAjuda = new PainelAjuda(parent, false, this.getLocation().x+this.getSize().width+4, this.getLocation().y);\n telaServicosAdicionar=new ServicosAdicionar(parent, false);\n servicosDetalhes = new ServicosDetalhes(this, parent, false);\n \n controller = new ServicosController(this);\n controllerDetalhes = new ServicosDetalhesController(this, servicosDetalhes);\n btnAdicionar.setBackground(new Color(0,0,0,0));\n btnRemover.setBackground(new Color(0,0,0,0));\n btnFechar.setBackground(new Color(0,0,0,0));\n botaobuscar.setBackground(new Color(0,0,0,0));\n this.setIconImage(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/rehabi.png\")).getImage());\n \n this.teclasDeAtalho();\n setarBotaoEditar(false, 0);\n this.tableResizing();\n }", "public AfiliadoVista() {\r\n }", "@Override\n public void onClick(View arg0)\n {\n\n ExtendedNewController extendedNewController = new ExtendedNewController();\n startNewControllerActivity(extendedNewController, 0, 0);\n }", "public void loadNewGameView()\n\t{\n\t\ttry {\n\t\t\tprimaryStage.setTitle(\"Neues Spiel\");\n\t\t\tGridPane root = new GridPane();\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/NewGame.fxml\"));\n\t\t\troot = loader.load();\n\t\t\tNewGameViewController viewController = (NewGameViewController) loader.getController();\n\t\t\tviewController.setOnitamaController(onitamaController);\n\t\t\tviewController.init();\n\n\t\t\tScene scene = new Scene(root);\n\t\t\t//((Stage) outerPane.getScene().getWindow()).setScene(scene);\n\t\t\tPlatform.runLater(() -> { LoadViewController.primaryStage.setScene(scene); });\n\t\t\t//LoadViewController.primaryStage.setScene(scene);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "public void VolverVentana(View view){\n Intent volver = new Intent(this, MainActivity.class);\n startActivity(volver);\n }", "@Override\n public void onCreate(Bundle savedInstanceState)\n\t{\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\t\tmainView = new MainView(this);\n\t\t((LinearLayout)findViewById(R.id.mainLinearLayout1)).addView(mainView);\n\t\tfindViewById(R.id.btn_list).setOnClickListener(this);\n\t\tfindViewById(R.id.btn_stime).setOnClickListener(this);\n }", "public void onClickAddNewItem(View v) {\n Intent intent = new Intent(EditFoodItemActivity.this, MainActivity.class);\n startActivity(intent);\n }", "public Ventaform() {\n initComponents();\n }", "public void create_new_package(View V) {\n make_request();\r\n progressDialog.show();\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n id_session = getActivity().getIntent().getExtras().getString(\"id_User\");\n\n View view = inflater.inflate(R.layout.fragment_agregar_vacantes, container, false);\n name_Op = view.findViewById(R.id.name_Op);\n name_Enter = view.findViewById(R.id.name_Enter);\n des_Enter = view.findViewById(R.id.des_Enter);\n comp_Enter = view.findViewById(R.id.comp_Enter);\n btn_op = view.findViewById(R.id.btn_op);\n loading_regist = view.findViewById(R.id.loading_regist);\n\n btn_op.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n addApplication();\n }\n });\n\n return view;\n }", "@FXML\n void agregarVenta(ActionEvent event) {\n \tarticulosVendidos.add(articuloVendido);\n \tthis.getMain().getControladorInterfazPrincipal().incrementarTotalVentas();\n \tthis.txtArticuloVendido.clear();\n \tthis.txtTalle.clear();\n \tthis.txtPrecio.clear();\n }", "@Override\n public void onClick(View v) {\n Intent intentMain = new Intent(Najblizi.this ,\n Trazi.class);\n Najblizi.this.startActivity(intentMain);\n Log.i(\"Content \",\" Main layout \");\n }", "@Command\n public void nuevaMateria() {\n\t\t\n\t\tWindow window = (Window)Executions.createComponents(\n \"/WEB-INF/include/Mantenimiento/Materias/vtnMaterias.zul\", null, null);\n window.doModal();\n }", "public ViewUsluga() {\n initComponents();\n obrada = new ObradaUsluga();\n postInitComponents(); \n }", "public ViewMain()\n\t{\n\t\tview = new View();\n\t\t\n\t\tcolors = new Color[20][10];\n\t\tfor(int i=0; i < 20; ++i)\n\t\t\tfor(int j=0; j < 10; ++j)\n\t\t\t\tcolors[i][j] = Color.DARK_GRAY;\n\t\t\n\t\tpanel = new BoardGamePanel(colors);\n\t\tpanel.setVisible(true);\n\t\t\n\t\tgameInfo = new GameInfo();\n\t\t\n\t\tactionListenner();\n\t\t\n\t}", "public RegistraEntradaSaidaView() {\n initComponents();\n }", "public void iniciar(){\r\n \r\n view.setTitle(\"MVC Proyecto\");\r\n //Indica posicion, null -> posicion 0 = centro\r\n view.setLocationRelativeTo(null);\r\n \r\n }", "private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.fragment_main, container, false);\n\n\t\t// instantiate the graphical components\n\t\tedtMessage = (EditText) view.findViewById(R.id.edtMessage);\n\t\tbtnAdd = (Button) view.findViewById(R.id.btnAdd);\n\t\t// Instantiate the listView\n\t\tlsvResult = (ListView) view.findViewById(R.id.lsvResult);\n\t\thumans = new ArrayList<Human>();\n\t\t// Human tempH;\n\t\t// for (int i = 0; i < 800; i++) {\n\t\t// tempH = new Human(\"toto \" + i, \"No message, noFuture\", i);\n\t\t// humans.add(tempH);\n\t\t// }\n\t\t\n\t\treturn view;\n\t}", "public menuFornecedorView() {\n initComponents();\n botoes(true,true,false,true,false,false);\n campos(false,true,false,false,false,false);\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tmParent = inflater.inflate(R.layout.layout_main, null);\n\t\tloading = (ProgressBar) mParent.findViewById(R.id.loading);\n\t\tlvListNew = (ListView) mParent.findViewById(R.id.lvListNews);\n\t\tlvListNew.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tItemNewFeed item = (ItemNewFeed) parent\n\t\t\t\t\t\t.getItemAtPosition(position);\n\t\t\t\tIntent intent = new Intent(getActivity(), DetailActivity.class);\n\t\t\t\tintent.putExtra(\"LINK\", item.getLink());\n\t\t\t\tintent.putExtra(\"TITLE\", item.getName());\n\t\t\t\tintent.putExtra(\"IMAGE\", item.getImage());\n\t\t\t\tintent.putExtra(\"DES\", item.getMessage());\n\t\t\t\tintent.putExtra(\"TITME\", item.getTime());\n\t\t\t\tintent.putExtra(\"POST_ID\", item.getPost_id());\n\t\t\t\tintent.putExtra(\"POS\", 2);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t\treturn mParent;\n\t}", "public CadastroProdutoNew() {\n initComponents();\n }", "@FXML\r\n public void ventas(ActionEvent e) throws IOException {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/Ventas/FormVentas.fxml\"));\r\n Parent root1 = (Parent) fxmlLoader.load();\r\n Stage stage = new Stage();\r\n stage.setScene(new Scene(root1));\r\n stage.setTitle(\"MEVECOM <>\");\r\n stage.setResizable(false);\r\n stage.show();\r\n //Cerrar ventana actual\r\n Stage actual = (Stage) btnSalir.getScene().getWindow();\r\n actual.close();\r\n }", "public void createNewButtonClicked(){\n loadNewScene(apptStackPane, \"Create_New_Appointment.fxml\");\n }", "private View setupView(View v)\n {\n\n TextView item_name = (TextView)v.findViewById(R.id.item_name);\n TextView item_price = (TextView)v.findViewById(R.id.item_price);\n TextView item_description = (TextView)v.findViewById(R.id.item_description);\n\n add = (Button) v.findViewById(R.id.fabCart);\n add.setOnClickListener(this);\n mlike = (ImageView) v.findViewById(R.id.btnLike);\n mlike.setOnClickListener(this);\n\n if(mDescription != null) {\n item_name.setText(mDescription[Data.UzaData.NAME.ordinal()] + \" | \" + mDescription[Data.UzaData.SELLER.ordinal()]);\n item_price.setText(mDescription[Data.UzaData.PRICE.ordinal()]);\n item_description.setText(mDescription[Data.UzaData.DESCRIPTION.ordinal()]);\n }\n\n initPager(v);\n\n //TODO \"Show more pictures\" button\n //TODO \"Message\" button\n\n return v;\n }", "public void gotoVerReserva() {\n try {\n FXMLDatosReservaController verReserva = (FXMLDatosReservaController) replaceSceneContent(\"FXMLDatosReserva.fxml\");\n verReserva.setApp(this);\n //setTipoReserva(verReserva); //Setea el tipo de reserva\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void iniciarVentana()\n {\n this.setVisible(true);\n //Centramos la ventana\n this.setLocationRelativeTo(null);\n //Colocamos icono a la ventana\n this.setIconImage(Principal.getLogo());\n //Agregamos Hint al campo de texto\n txt_Nombre.setUI(new Hint(\"Nombre del Archivo\"));\n //ocultamos los componentes de la barra de progreso general\n lblGeneral.setVisible(false);\n barraGeneral.setVisible(false);\n //ocultamos la barra de progreso de archivo\n barra.setVisible(false);\n //deshabiltamos el boton de ElimianrArchivo\n btnEliminarArchivo.setEnabled(false);\n //deshabilitamos el boton de enviar\n btnaceptar.setEnabled(false);\n //Creamos el modelo para la tabla\n modelo=new DefaultTableModel(new Object[][]{},new Object[]{\"nombre\",\"tipo\",\"peso\"})\n {\n //sobreescribimos metodo para prohibir la edicion de celdas\n @Override\n public boolean isCellEditable(int i, int i1) {\n return false;\n }\n \n };\n //Agregamos el modelo a la tabla\n tablaArchivos.setModel(modelo);\n //Quitamos el reordenamiento en la cabecera de la tabla\n tablaArchivos.getTableHeader().setReorderingAllowed(false);\n }", "public void recetaOnClick(View v) {\n\t\tIntent intent = new Intent(this, RecetasActivity.class);\n\t\tintent.putExtra(\"mode\", Mode.NEW);\n\t\tstartActivity(intent);\n\t}", "public MenuView(MainFrame main) {\n initComponents();\n \n this.mainFrame = main;\n }", "public VEmpleado() {\n initComponents();\n setLocationRelativeTo(null);\n getObjetos(false, true, false);\n }", "public VendaComputadorView() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public ServicoDoSistemaView() {\n initComponents();\n this.removidos = new ArrayList<ServicoDoSistema>();\n try {\n this.c = new ServicoDoSistemaController();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, \"Houve erros: \"\n + ex.getMessage());\n }\n }", "@Override\n public void onClick(View v) {\n Fragment newFragment = new NewMovimientoFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack\n transaction.replace(R.id.frame_container, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }", "public ViewSinFaltante() {\n initComponents();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_network, container, false);\n\n btnInsertar = (Button) rootView.findViewById(R.id.btnRegistrar);\n btnConsultar = (Button) rootView.findViewById(R.id.btnConsultar);\n edtName = (EditText) rootView.findViewById(R.id.edName);\n btnInsertar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n String name=edtName.getText().toString().trim();\n insertDatabase(name);\n }\n });\n btnConsultar.setOnClickListener(this);\n return rootView;\n }", "public void goToCreate(View view) {\n Intent intent = new Intent(this, CreateAccountActivity.class);\n startActivity(intent);\n }", "public PrincipalClienteView() {\n \n initComponents();\n \n try {\n // TODO add your handling code here:\n ClienteCtl ctl = new ClienteCtl();\n String nombre = txtNombre.getText();\n ArrayList list = ctl.listCliente(nombre);\n //JOptionPane.showMessageDialog(rootPane, \"A punto de mostrar los datos...\");\n modelo2 = showDatos(list);\n } catch (Exception ex) {\n Logger.getLogger(PrincipalClienteView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public PromedioView() {\n initComponents();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_formulario, container, false);\n\n encontrarVistas(view);\n\n funcionalidadButton();\n\n return view;\n }", "public FrmMainVIEW() {\n initComponents();\n }", "@Override\n public void onEstadoCambiado() {\n fragment = new ListadoPeticionesRecibidasVista();\n getFragmentManager().beginTransaction().replace(R.id.content_main, fragment ).commit();\n\n }", "public Devolucao_View() {\n initComponents();\n devrecebido.setVisible(false);\n }", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }", "public CrearPedidos() {\n initComponents();\n }", "@FXML\n\tprivate void handleNewTaxi() {\n\t\tTaxi tempTaxi = new Taxi();\n\t\tboolean okClicked = mainApp.showTaxiEditDialog(tempTaxi);\n\t\tif (okClicked) {\n\t\t\tmainApp.getTaxiData().add(tempTaxi);\n\t\t}\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_primeiro, container, false);\n\n initViews(view);\n\n botaoAndroid.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n SistemaOperacional sistemaOperacional = new SistemaOperacional(\"ANDROID\", R.drawable.android);\n\n comunicador.envioDadosSistemaOperaciona(sistemaOperacional);\n\n }\n });\n\n return view;\n }", "public void newProject(View V){\n Intent i = new Intent(this, NewProject.class);\n i.putExtra(\"course title\",courseTitle);\n startActivity(i);\n }", "public void inicializaVista (View v, final Heroe success){\r\n\t\tTextView textView = (TextView)v.findViewById(R.id.nombre);\r\n\t\ttextView.setText(success.getName());\r\n\t\t\r\n\t\tTextView subTitulo = (TextView)v.findViewById(R.id.subtitulo);\r\n\t\tsubTitulo.setText(success.getRol());\r\n\t\t\r\n\t\tImageView imagen = (ImageView) v.findViewById(R.id.icono);\r\n\t\tUri.Builder uriB = new Uri.Builder();\r\n\t uriB.path(Environment.getExternalStorageDirectory().getAbsolutePath() + \"/fotosDota2/\" +success.getPhoto()+\".png\");\r\n imagen.setImageURI(uriB.build());\r\n\t\t\r\n\t\tfinal ImageButton imageButton = (ImageButton) v.findViewById(R.id.botonBuscar);\r\n\t\tif (success.getGusta()==1)\r\n\t\t\timageButton.setImageResource(android.R.drawable.btn_star_big_on);\r\n\t\telse\r\n\t\t\timageButton.setImageResource(android.R.drawable.btn_star_big_off);\r\n\t\t\r\n\t\timageButton.setOnClickListener(new View.OnClickListener() {\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\r\n\t\t\t\t BBDDHeroe bdHero = new BBDDHeroe(actividad);\r\n\t\t\t\t if (success.getGusta()==1)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t \tsuccess.setGusta(0);\r\n\t\t\t\t\t \tbdHero.update(success);\r\n\t\t\t\t\t \timageButton.setImageResource(android.R.drawable.btn_star_big_off);\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 success.setGusta(1);\r\n\t\t\t\t\t bdHero.update(success);\r\n\t\t\t\t\t imageButton.setImageResource(android.R.drawable.btn_star_big_on);\r\n\t\t\t\t }\r\n\t\t\t\t\t \r\n\t\t\t}\r\n\t\t});\r\n\t}", "public JAddVeic(JMain root, SVeiculos nveiculos) {\n initComponents();\n this.veiculos = nveiculos;\n this.root = root;\n jPanel5.setVisible(false);\n \n btiposV.add(bvan);\n btiposV.add(bcamiao);\n btiposV.add(bfurgao);\n \n \n }", "public void visualizarDatos(View view) {\n Intent datos = new Intent(this, vistualiazrDatosTotales.class);\n datos.putExtra(\"id\", id);\n startActivity(datos);\n finish();\n }", "public NuevoViaje() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public Vencimientos() {\n initComponents();\n \n \n }", "private void iniciarNovaVez() {\n this.terminouVez = false;\n }", "public HistorialVenta(java.awt.Frame parent, boolean modal,Venta venta) {\n super(parent, modal);\n initComponents();\n getContentPane().setBackground(Color.DARK_GRAY);\n inicializarTabla(venta);\n }", "@FXML\r\n private void handleButtonCreateTicket() {\r\n MobileApplication.getInstance().addViewFactory(NEWTICKET_VIEW, () -> new NewTicketView(NEWTICKET_VIEW).getView());\r\n MobileApplication.getInstance().switchView(NEWTICKET_VIEW);\r\n\r\n }" ]
[ "0.65621173", "0.65099114", "0.63160235", "0.6312619", "0.63062507", "0.6292997", "0.6256461", "0.6252113", "0.6251682", "0.6218627", "0.62161964", "0.6208257", "0.6197384", "0.6147235", "0.61186475", "0.61029845", "0.6088582", "0.6081632", "0.6080561", "0.6076074", "0.6054273", "0.6034004", "0.6020872", "0.60049397", "0.60014963", "0.6001066", "0.59990746", "0.5977609", "0.597035", "0.5961997", "0.5956658", "0.5945703", "0.5945703", "0.59376526", "0.5936977", "0.5934922", "0.5932204", "0.59272724", "0.59205055", "0.59178644", "0.5906328", "0.5886426", "0.5885909", "0.588453", "0.5882901", "0.58827573", "0.5874774", "0.58669", "0.58659565", "0.5865466", "0.5857315", "0.58551013", "0.5846507", "0.5843681", "0.58403766", "0.5824568", "0.58218384", "0.5816196", "0.58079803", "0.58062935", "0.57979757", "0.57971656", "0.5794181", "0.57920563", "0.57918864", "0.5791369", "0.5782537", "0.57787544", "0.5773062", "0.577027", "0.5769839", "0.57697386", "0.5764366", "0.5761663", "0.5759656", "0.575445", "0.5748691", "0.57466274", "0.5740011", "0.57359874", "0.57346946", "0.5734348", "0.5730205", "0.5729857", "0.57282406", "0.5727976", "0.572646", "0.5721243", "0.57200456", "0.5715256", "0.5712755", "0.5703233", "0.5703089", "0.5701743", "0.57015663", "0.5700422", "0.5698429", "0.56974083", "0.56931937", "0.56894696" ]
0.7315987
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); txtCantidad = new javax.swing.JTextField(); txtPunit = new javax.swing.JTextField(); cboCategoria = new javax.swing.JComboBox<>(); cboArticulo = new javax.swing.JComboBox<>(); txtDetalle = new javax.swing.JTextField(); btnRegistrar = new javax.swing.JButton(); btnMostrar = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); btnMostrar1 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabel1.setForeground(new java.awt.Color(51, 51, 255)); jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel1.setText("Wilson Store App"); jLabel2.setText("Cant."); jLabel3.setText("Detalle Item"); jLabel4.setText("Precio Unit."); jLabel5.setText("Categoria"); jLabel6.setText("Articulo"); cboCategoria.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); cboArticulo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); btnRegistrar.setText("Registrar"); btnRegistrar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnRegistrarActionPerformed(evt); } }); btnMostrar.setText("Mostrar por Categoria"); btnMostrar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnMostrarActionPerformed(evt); } }); jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null} }, new String [] { "Cant.", "Precio Unit.", "Categoria", "Articulo", "Total", "Detalle" } )); jScrollPane1.setViewportView(jTable1); btnMostrar1.setText("Mostrar por Artículo"); btnMostrar1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnMostrar1ActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) .addGroup(layout.createSequentialGroup() .addGap(15, 15, 15) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(btnRegistrar, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnMostrar, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnMostrar1, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 686, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2) .addComponent(txtCantidad, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(txtPunit)) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(13, 13, 13) .addComponent(jLabel5)) .addGroup(layout.createSequentialGroup() .addGap(12, 12, 12) .addComponent(cboCategoria, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel6) .addComponent(cboArticulo, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3) .addComponent(txtDetalle, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addGap(18, 21, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2) .addComponent(jLabel4) .addComponent(jLabel5) .addComponent(jLabel6) .addComponent(jLabel3)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txtCantidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtPunit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(cboCategoria, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(cboArticulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtDetalle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnRegistrar) .addComponent(btnMostrar) .addComponent(btnMostrar1)) .addGap(18, 18, Short.MAX_VALUE) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(9, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "public Ablak() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7321245", "0.7292375", "0.7292375", "0.7292375", "0.7286756", "0.7250393", "0.7215278", "0.7208825", "0.7197639", "0.71918", "0.7185626", "0.716065", "0.71489197", "0.7094757", "0.7081307", "0.7057363", "0.69892997", "0.6978972", "0.6956389", "0.69543713", "0.69465107", "0.6943616", "0.69370526", "0.69335246", "0.6928895", "0.69262075", "0.69259804", "0.69132626", "0.69122165", "0.68949795", "0.6893638", "0.689148", "0.68909764", "0.6890215", "0.6884557", "0.688259", "0.68825203", "0.6878597", "0.6876452", "0.6876008", "0.6872711", "0.68606186", "0.6857626", "0.6856689", "0.6856538", "0.68560165", "0.6854488", "0.6853594", "0.6853594", "0.6844268", "0.68379426", "0.68377364", "0.6829578", "0.6829284", "0.6827213", "0.6825348", "0.6823862", "0.68184686", "0.68176556", "0.6810581", "0.6809514", "0.6809368", "0.68090004", "0.68081117", "0.680376", "0.67957234", "0.6795017", "0.6793054", "0.679084", "0.6790513", "0.6789456", "0.67890406", "0.6783252", "0.6767314", "0.6766593", "0.67663574", "0.67581284", "0.67565966", "0.67531246", "0.6752959", "0.67438525", "0.67397165", "0.6738271", "0.67369807", "0.67342347", "0.6728663", "0.67280626", "0.6720753", "0.6717359", "0.6715002", "0.671486", "0.67094135", "0.670803", "0.67050165", "0.67018557", "0.67018354", "0.67003953", "0.6698949", "0.6695529", "0.6692286", "0.6691619" ]
0.0
-1
Sleep for some time and than start new activity.
@Override public void run() { try { // Sleeping Thread.sleep(2800); } catch (Exception e) { Log.e(TAG, e.getMessage()); } startMainActivity(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\n\t\t\t\ttry {\n\t\t\t\t\tsleep(2000);\n\t\t\t\t\tfinish();\n\t\t\t\t\tstartActivity(new Intent(getApplicationContext(), StartActivity.class));\n\t\t\t\t\t\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}", "public static void sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 1000);\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}", "private void Sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 1000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void goToSleep() {\n mPowerManager.goToSleep(SystemClock.uptimeMillis());\n }", "private void sleep() {\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\n\t\t\t\t\tIntent intent = new Intent(SplashActivity.this,\n\t\t\t\t\t\t\tContestListSampleActivity.class);\n\t\t\t\t\tintent.putExtra(\"contest_id\", contest_id);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\tfinish();\n\n\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t}\n\t\t\t}", "private void sleep() {\n try {\n Thread.sleep(3000L);\n }\n catch (Exception ignored) {\n Log.trace(\"Sleep got interrupted.\");\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tThread.sleep(3000);\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\tIntent it=new Intent(Splash.this,DashboardActivity.class);\n\t\t\tstartActivity(it);\n\t\t\tfinish();\n\t\t}", "private void sleep()\n {\n try {\n Thread.sleep(Driver.sleepTimeMs);\n }\n catch (InterruptedException ex)\n {\n\n }\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(3000);\n\n\t\t\t\t\t\tIntent intent = new Intent(SplashActivity.this,\n\t\t\t\t\t\t\t\tHomeActivity.class);\n\t\t\t\t\t\tintent.putExtra(\"type\", \"create_contest\");\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tfinish();\n\n\t\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\n\t\t\t\t\tIntent intent = new Intent(SplashActivity.this,\n\t\t\t\t\t\t\tHomeActivity.class);\n\t\t\t\t\tintent.putExtra(\"type\", \"create_contest\");\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\tfinish();\n\n\t\t\t\t} catch (Exception exp) {\n\n\t\t\t\t}\n\t\t\t}", "private void delayStart() {\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n LOGGER.error(\"Could not sleep\", e);\n }\n }", "private void sleep() {\n\t\tSystem.out.println(\"Ape sleeping\");\n\t}", "public final void sleepBetweenActions()\n {\n long numOfMillis = Long\n .parseLong(getProperty(\"wait.between.user.actions.in.millis\"));\n if (numOfMillis > 10000)\n {\n numOfMillis = 10000;\n } else if (numOfMillis < 0)\n {\n numOfMillis = 0;\n }\n try\n {\n Thread.sleep(numOfMillis);\n } catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n }", "private void sleep() {\n try {\n for(long count = 0L; this.DATA_STORE.isButtonPressed() && count < this.sleepTime; count += 20L) {\n Thread.sleep(20L);\n }\n } catch (InterruptedException iEx) {\n // For now, InterruptedException may be ignored if thrown.\n }\n\n if (this.sleepTime > 20L) {\n this.sleepTime = (long)((double)this.sleepTime / 1.3D);\n }\n }", "void sleep();", "void sleep();", "protected void pause() {\n sleep(300);\n }", "void sleep()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n\tpublic void sleep() {\n\t\t\n\t}", "private void sleepFor(long t) {\n\t\ttry {\n\t\t\tThread.sleep(t);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected void sleep(int milliseconds) {\n super.sleep(milliseconds);\n }", "@Override\n public void execute() {\n Time.sleep(3000);\n Starting.execute();\n }", "public void run(){\r\n try{\r\n \tsleep(DURACION_SPLASH);\r\n }catch(InterruptedException e){\r\n //Si no puedo ejecutar el sleep muestro el error\r\n e.printStackTrace();\r\n }finally{\r\n //Llamo a la nueva actividad\r\n Intent intent = new Intent(SplashScreenActivity.this, MainActivity.class);\r\n \tstartActivity(intent);\r\n \tfinish();\r\n } \r\n }", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\t//经过两秒后跳转到LogActivity界面\n\t\t\ttry {\n\t\t\t\tThread.sleep(2000);\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}finally{\n\t\t\t\tIntent intent=new Intent(SplashActivity.this,Mytoee_keActivity.class);\n\t\t\t startActivity(intent);\n\t\t\t finish();\n\t\t\t}\n\t\t}", "private void esperarPorFatherThread() {\n\t\ttry {\n\t\t\tThread.sleep(50000);\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void sleeps() {\n\t\t\n\t}", "private void ai_think() {\n try {\n Thread.sleep(SLEEP_TIME);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile(mActivityPauseFlag != 1)\n\t\t\t\t{\n\n\t\t\t\t\tint mins = getSleepTimeValue();\n\t\t\t\t\tmSleepTimeHour = mins / 60;\n\t\t\t\t\tmSleepTimeMin = mins % 60;\n\t\t\t\t\t\n\t\t\t\t\tif(quickmenu.isShowing())\n\t\t\t\t\t{\n\t\t\t\t\t\thandler.sendEmptyMessage(MSG_REFRESH_TIMER);\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}", "protected void sleep() {\n\t\tSystem.out.println(\"human sleep\");\n\t}", "public void sleep()\n\t{\n\t\ttry\n\t\t{\n\t\t\tThread.sleep(getMilliseconds());\n\t\t}\n\t\tcatch (InterruptedException e)\n\t\t{\n\t\t\t// ignore but return\n\t\t}\n\t}", "private void DisplaySleep(){\n\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch(InterruptedException e){}\n }", "private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }", "private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }", "private void sleep(int number) {\n\t\ttry {\n\t\t\tThread.sleep(number);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}}", "@Override\n public void run() {\n try {\n Thread.sleep(2000);\n Intent i = new Intent(ScreenLogo.this, MusicProject.class);\n startActivity(i);\n ScreenLogo.this.finish();\n //handler.sendMessage(handler.obtainMessage(1));\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "private void travelToAirport()\n {\n try\n { sleep ((long) (1 + 30000 * Math.random ()));\n }\n catch (InterruptedException e) {}\n }", "private Sleep(Duration duration) {\n this.duration = duration;\n }", "private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void sleep(){\n System.out.println(\"Human Sleeps\");\n }", "private synchronized void sleepUntilFirstStudent() throws InterruptedException {\n System.out.println(\"TA: TA taking a nap. ZzZz...\");\n isSleeping = true;\n\n while(isSleeping){\n wait();\n }\n\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tTimeUnit.SECONDS.sleep(3);\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\t\n\t\t}", "public static void delay() {\n\n long ONE_SECOND = 1_000;\n\n try {\n Thread.sleep(ONE_SECOND);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void sleep(){\n\n System.out.println(\"ZZZZZZZZZ bubble bubble bubble\");\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTimeUnit.SECONDS.sleep(10);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "void sleep ();", "private void thinking(){\n int sleepTime = (int)(Math.random()*2000);\n try{\n Thread.sleep(sleepTime);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void sleep() {\n\t\t((Application) application()).unlockEC();\n\t\tsuper.sleep();\n\t}", "private void Perform_SLEEP()\n {\n if (Utils.bit5(get_ioreg(MCUCR)))\n mSleeping = true;\n return;\n }", "public static void shortWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(5);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}", "public static void sleepFor(long duration) {\n try {\n Thread.sleep(duration);\n } catch (InterruptedException e) {\n // There is nothing to be done here\n }\n }", "private void sleep(long ms) throws InterruptedException {\n Thread.sleep(ms);\n }", "@Override\r\n public void run() {\n long time1 = System.currentTimeMillis();\r\n long time2 = 0;\r\n while (true) {\r\n if (BaseApplication.getInstance().isShelfDataLoadOver) {\r\n time2 = System.currentTimeMillis();\r\n break;\r\n }\r\n }\r\n long timeDis = time2 - time1;\r\n if (timeDis < 3500) {\r\n try {\r\n Thread.sleep(3500 - timeDis);\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n LauncherActivity.this.runOnUiThread(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // TODO Auto-generated method stub\r\n startBookMain();\r\n }\r\n });\r\n\r\n }", "private void eating(){\n int sleepTime = (int)(Math.random()*2000);\n try{\n Thread.sleep(sleepTime);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "public void sleep(int time) {\n try {\n Thread.sleep(time);\n } catch (InterruptedException e) {\n }\n }", "@Override\n\t\tprotected String[] doInBackground(Void... params) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(3000);\n\t\t\t\ttimes++;\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "void start() {\n\tsleepThread = new Thread(this);\n\tsleepThread.start();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_splash__screen);\n\n\n Thread splashTread = new Thread() {\n @Override\n public void run() {\n try {\n int waited = 0;\n while (_active && (waited < _splashTime)) {\n sleep(3000);\n if (_active) {\n waited += 3000;\n }\n }\n } catch (Exception e) {\n\n } finally {\n\n startActivity(new Intent(Splash_Screen.this,\n MainActivity.class));\n finish();\n }\n };\n };\n splashTread.start();\n\n// Thread thread = new Thread(){\n//\n// @Override\n// public void run() {\n// try {\n// sleep(SPLASH_DISPLAY_LENGTH);\n// Intent intent = new Intent(getApplicationContext(),MainActivity.class);\n// startActivity(intent);\n// finish();\n// } catch (InterruptedException e) {\n// e.printStackTrace();\n// }\n// }\n// };\n//\n// thread.start();\n\n\n }", "public void sleep(Creature c){\r\n ((IntelligentAI1)c.attributes.ai).state = EnState.SLEEPING;\r\n c.changeAnimation(\"sleep\");\r\n }", "private void await() {\n try {\n Thread.sleep(10 * 1000L);\n } catch (InterruptedException e) {\n // ignore\n }\n }", "private void delay() {\n\ttry {\n\t\tThread.sleep(500);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\t\n\t}", "private void schedulerSleep() {\n\n\t\ttry {\n\n\t\t\tThread.sleep(timeSlice);\n\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\t;\n\n\t}", "public static void sleepFor(float time) {\n try {\r\n Thread.sleep((int)(time*1000));\r\n } catch (InterruptedException e){\r\n }\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t//System.out.println(\"welcome\");\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\tprotected String doInBackground(String... params) {\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(3000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}", "public void sleep() {\n \t\thealth = maxHealthModifier;\n \t\ttoxicity = 0;\n \t}", "public void startScheduling() {\n new Thread(new Runnable() {\n public void run() {\n while(true) {\n try {\n Thread.sleep(30000);\n Calendar c = Calendar.getInstance();\n int min = c.get(Calendar.MINUTE);\n if (((min % 10) == 0) || (min == 0)) {\n boolean action = getLightOnWhenMovementDetectedSchedule().getCurrentSchedule();\n if (action) {\n configureSwitchOnWhenMovement(true);\n } else {\n configureSwitchOnWhenMovement(false);\n }\n action = getLightSchedule().getCurrentSchedule();\n if (action) {\n switchOn();\n } else {\n switchOff();\n }\n saveHistoryData();\n }\n Thread.sleep(30000);\n } catch (InterruptedException e) {\n return;\n } catch (RemoteHomeConnectionException e) {\n e.printStackTrace();\n } catch (RemoteHomeManagerException e) {\n e.printStackTrace();\n }\n }\n }\n }).start(); \n }", "@Override\n public void doTask() throws InterruptedException {\n Thread.sleep(5000);\n }", "public void pause() {\n\t\tsleep(2000);\n\t}", "private static void waiting(int time) {\r\n\t\ttry {\r\n\t\t\tThread.sleep(time);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public void startWaitTime(){\r\n\t\twaitTime.start();\r\n\t}", "public void run() {\n\t\t\t\ttry {Thread.sleep(1000000000);} catch (InterruptedException ie) {}\n\t\t\t}", "private void action(String action) {\n\n\t\tSystem.out.println(name + \" is \" + action);\n\n\t\ttry {\n\t\t\tThread.sleep(((long)(Math.random() * 150)));\n\t\t} catch (InterruptedException e) {\n\t\t\tThread.currentThread().interrupt();\n\t\t}\n\t}", "@Override\n public void sleep() {\n System.out.println(\"Zzz...\");\n }", "private void sleep(int seconds) {\n\n\t\ttry {\n\t\t\tTimeUnit.SECONDS.sleep(seconds);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void sleep() throws InterruptedException, IllegalArgumentException, Time.Ex_TimeNotAvailable, Time.Ex_TooLate\n {\n // The current time.\n AbsTime now;\n // The duration to wait.\n RelTime duration;\n\n // Make error if NEVER.\n if (isNEVER()) {\n throw new IllegalArgumentException(\"this == NEVER\");\n }\n\n // Don't do anything if ASAP.\n if (!isASAP()) {\n\n // Calculate the time now.\n now = new AbsTime();\n\n // Figure out how long to wait for.\n duration = Time.diff(this, now);\n\n // If duration is negative, throw the Ex_TooLate exception.\n if (duration.getValue() < 0L) {\n throw new Time.Ex_TooLate();\n }\n\n // Do the wait.\n duration.sleep();\n }\n }", "private void emulateDelay() {\n try {\n Thread.sleep(700);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public static void waitForAI(){\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void begin(){\r\n\t\t\ttry {\r\n\t\t\t\twhile( !superpower )\r\n\t\t\t\t\tThread.sleep( 10 );\r\n\t\t\t}\r\n\t\t\tcatch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t}", "private void walk() throws MyException{\n try{\n Thread.sleep((long)(1+300*Math.random()));\n }catch(InterruptedException e){\n throw new MyException(\"Error: Not walking.\");\n }\n }", "public void onSleep() {\n\t\tbehaviour.onSleep();\n\t}", "public void run() {\n\t\t\t\ttry {\n\t\t\t\t\tsleep(5000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tfinally{ finish(); }\n\t\t\t}", "private void sleepByScheduleTime() throws InterruptedException\n\t{\n\t\tjava.util.Calendar calendar = java.util.Calendar.getInstance();\n\t\tcalendar.setTime(new java.util.Date(System.currentTimeMillis()));\n\t\tint currHour = calendar.get(calendar.HOUR_OF_DAY);\n\t\tif ((24 - currHour) * 60 < 2 * FtpData.SCHEDULE_TIME)\n\t\t{\n\t\t\tsleep((FtpData.SCHEDULE_TIME + 1) * 60000); // 00h:01\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsleep(FtpData.SCHEDULE_TIME * 60000); // n * minutes;\n\t\t}\n\t}", "public void handleStartedGoingToSleep(int i) {\n Assert.isMainThread();\n clearBiometricRecognized();\n ((NotificationShadeWindowController) Dependency.get(NotificationShadeWindowController.class)).setUserActivityTime(10000);\n for (int i2 = 0; i2 < this.mCallbacks.size(); i2++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i2).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onStartedGoingToSleep(i);\n }\n }\n this.mGoingToSleep = true;\n updateBiometricListeningState();\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tleave = false;\n\t\t\t\t}", "private static void addDelay() {\n try {\n Thread.sleep(4000);\n } catch (InterruptedException ignored) {\n }\n }", "@Override\r\n public void run() {\r\n try {\r\n // Loop for the given duration\r\n while (true) {\r\n // call ATP\r\n \tstartATP();\r\n\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void sleep()\r\n\t{\r\n\t\tif (regulate)\r\n\t\t{\r\n\t\t\tDisplay.sync(fps);\r\n\t\t}\r\n\t}", "private void goToMainScreen() {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent mainIntent;\n\n MainActivity act = new MainActivity();\n Intent intent = new Intent(getApplication(), MainActivity.class);\n startActivity(intent);\n finish();\n }\n }, SPLASH_DISPLAY_LENGHT);\n }", "public void wait(int time) {\r\n\t\t\tsuper.sleep(time);\r\n\t\t}", "private void sleepMilliseconds(int time) {\n int multipliedParam = (int) (Math.random() * time + 1);\n\n try {\n TimeUnit.MILLISECONDS.sleep(multipliedParam);\n Log.v(\"DLASync.sleep\", \" sleep \" + multipliedParam + \" milliseconds...\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void startSleeper() {\n if (fSleeper == null)\n fSleeper = new SleeperThread(this);\n fSleeper.start();\n }", "@Override\n public void run() {\n try {\n Thread.sleep(1500);\n } catch (InterruptedException e2) {\n // TODO Auto-generated catch block\n e2.printStackTrace();\n }\n if(isTmp!=-1 && MainActivity2.linkLose==-1){\n Message message=new Message();\n message.what=15;\n MainActivity.hReceiver.sendMessage(message);\n\n }\n }", "private void sleepForChannelJoin() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tThread.sleep(config.getChannelJoinTimeout());\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void sleep() {\r\n System.out.println(this.animalName + \" sleeps\");\r\n }", "public void sleep(int slp)\n {\n try {\n Thread.sleep(slp);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private static void pause(int duration) {\n LOG.info(\"\\nlets go again!\\n\");\n sleep(duration);\n }", "public static void sleep(double seconds) {\n for (int i = 0; i < seconds * 10; i++) {\n try {\n while (Display.getCurrent().readAndDispatch())\n ;\n Thread.sleep(100);\n } catch (Exception e) {\n } catch (Error e) {\n }\n }\n }", "public void startWait() {\n\t\tTimer timer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (server.getNumberOfPlayers() > 0 && !server.gameStartFlag) {\n\t\t\t\t\tserver.runGame();\n\t\t\t\t}\n\t\t\t}\n\t\t}, 120000);\n\t\t// 2min(2*60*1000)\n\t\tsendMessage(\"The game will start 2 minute late\");\n\t}", "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t}catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.70512116", "0.70108163", "0.6995378", "0.6989138", "0.6951966", "0.69157064", "0.6900922", "0.68913054", "0.6847732", "0.68436", "0.6760868", "0.66959673", "0.6677608", "0.6668147", "0.6591813", "0.6559945", "0.6559945", "0.65311795", "0.65141416", "0.65094995", "0.6488728", "0.6449427", "0.643899", "0.64103085", "0.6389529", "0.6377784", "0.63620657", "0.6360573", "0.63548374", "0.63438207", "0.6331397", "0.6326645", "0.62768817", "0.62768817", "0.625868", "0.62448645", "0.6229275", "0.62046987", "0.61995506", "0.6195481", "0.6169414", "0.6158532", "0.6147697", "0.6147356", "0.61214143", "0.6108556", "0.6102904", "0.6094175", "0.607436", "0.60620725", "0.6055745", "0.60383713", "0.60382795", "0.6026468", "0.6019616", "0.6014553", "0.60132116", "0.60123986", "0.6006299", "0.59993637", "0.59942853", "0.5947843", "0.5946203", "0.5937841", "0.5937772", "0.59342843", "0.5927721", "0.5914259", "0.5906463", "0.5900442", "0.58980024", "0.5896915", "0.5891811", "0.58912224", "0.58883923", "0.5883255", "0.58796", "0.5874847", "0.5872834", "0.58500427", "0.5842895", "0.58392596", "0.5823677", "0.5815832", "0.5813806", "0.5813079", "0.58021486", "0.57963496", "0.5793524", "0.5791996", "0.57917154", "0.57788724", "0.5769151", "0.5757589", "0.5748835", "0.5746205", "0.574602", "0.57459056", "0.57448393", "0.5731606" ]
0.6858948
8
TODO Autogenerated method stub
@Override public void mouseClicked(MouseEvent arg0) { int selectedRow = table.getSelectedRow();//获得选中行的索引 if(selectedRow!= -1) //是否存在选中行 { Object oa = tableModel.getValueAt(selectedRow, 0); Object ob = tableModel.getValueAt(selectedRow, 1); comboBox_1.setSelectedItem(oa.toString()); textField2.setText(ob.toString()); } else{ textField2.setText(""); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mouseEntered(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mouseExited(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void mouseReleased(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent arg0) { int selectedRow = table.getSelectedRow();//获得选中行的索引 if(selectedRow!= -1) //是否存在选中行 { //修改指定的值: String a=tableModel.getValueAt(selectedRow, 0).toString(); String b=tableModel.getValueAt(selectedRow, 1).toString(); tableModel.setValueAt(comboBox_1.getSelectedItem(), selectedRow, 0); tableModel.setValueAt(textField2.getText(), selectedRow, 1); try { Connection con = DriverManager.getConnection(conURL,Test.mysqlname, Test.mysqlpassword); // 连接数据库 Statement s = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); // Statement类用来提交SQL语句 ResultSet rs = s.executeQuery("select lei,name from goods"); // 提交查询,返回的表格保存在rs中 while(rs.next()) { // ResultSet指针指向下一个“行” if(rs.getString("lei").equals(a)&&rs.getString("name").equals(b)){ rs.updateString("lei", comboBox_1.getSelectedItem().toString()); rs.updateString("name", textField2.getText()); rs.updateRow(); Statement s2 = con.createStatement(); // Statement类用来提交SQL语句 SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式 //System.out.println("insert into news(time,news,limit) values('"+df.format(new Date())+"','"+Name+"登入系统"+"','"+limite+"')"); String insert1 = "insert into news(time,news,limite) values('"+df.format(new Date())+"','"+Testmysql.limite+Testmysql.Name+"修改商品信息"+a+":"+b+"成功"+"','"+Testmysql.limite+"')"; s2.executeUpdate(insert1); s2.close(); // 释放Statement对象 break; } } s.close(); // 释放Statement对象 con.close(); // 关闭到MySQL服务器的连接 } catch(SQLException sql_e) { // 都是SQLException System.out.println(sql_e); } //table.setValueAt(arg0, arg1, arg2) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { String a=search_textField1.getText(); String b=search_textField2.getText(); if(a.equals(""))a="any(select lei from goods)"; else a="'"+a+"'"; if(b.equals(""))b="any(select name from goods)"; else b="'"+b+"'"; table.removeAll(); tableValueV.removeAllElements(); try {//插入 Connection con = DriverManager.getConnection(conURL, Test.mysqlname, Test.mysqlpassword); // 连接数据库 Statement s = con.createStatement(); // Statement类用来提交SQL语句 String select="select * from goods where lei="+a+" and name ="+b; ResultSet rs = s.executeQuery(select); // 提交查询,返回的表格保存在rs中 while(rs.next()) { // ResultSet指针指向下一个“行” Vector<String> rowV = new Vector<String>(); rowV.add(rs.getString("lei")); rowV.add(rs.getString("name")); tableValueV.add(rowV); System.out.println(rs.getString("lei")); } tableModel.setDataVector(tableValueV,columnNameV); int rowCount = table.getRowCount(); table.getSelectionModel().setSelectionInterval(rowCount-1 , rowCount- 1 ); Rectangle rect = table.getCellRect(rowCount-1 , 0 , true ); table.scrollRectToVisible(rect); s.close(); // 释放Statement对象 con.close(); // 关闭到MySQL服务器的连接 TableColumnModel cm = table.getColumnModel(); TableColumn column = cm.getColumn(0);//得到第i个列对象 column.setPreferredWidth(210);//将此列的首选宽度设置为 preferredWidth。 TableColumn column1 = cm.getColumn(1);//得到第i个列对象 column1.setPreferredWidth(210);//将此列的首选宽度设置为 preferredWidth。 } catch(SQLException sql_e) { // 都是SQLExceptionss System.out.println(sql_e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent arg0) { search_textField1.setText(""); search_textField2.setText(""); int num=tableModel.getRowCount(); while(num--!=0){tableModel.removeRow(0);} try {//插入 Connection con = DriverManager.getConnection(conURL, Test.mysqlname, Test.mysqlpassword); // 连接数据库 Statement s = con.createStatement(); // Statement类用来提交SQL语句 ResultSet rs = s.executeQuery("select * from goods"); // 提交查询,返回的表格保存在rs中 while(rs.next()) { // ResultSet指针指向下一个“行” Vector<String> rowV = new Vector<String>(); rowV.add(rs.getString("lei")); rowV.add(rs.getString("name")); tableValueV.add(rowV); } tableModel.setDataVector(tableValueV,columnNameV); int rowCount = table.getRowCount(); table.getSelectionModel().setSelectionInterval(rowCount-1 , rowCount- 1 ); Rectangle rect = table.getCellRect(rowCount-1 , 0 , true ); table.scrollRectToVisible(rect); s.close(); // 释放Statement对象 con.close(); // 关闭到MySQL服务器的连接 TableColumnModel cm = table.getColumnModel(); TableColumn column = cm.getColumn(0);//得到第i个列对象 column.setPreferredWidth(210);//将此列的首选宽度设置为 preferredWidth。 TableColumn column1 = cm.getColumn(1);//得到第i个列对象 column1.setPreferredWidth(210);//将此列的首选宽度设置为 preferredWidth。 } catch(SQLException sql_e) { // 都是SQLExceptionss System.out.println(sql_e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static MainFragment newInstance(Context context) { MainFragment fragment = new MainFragment(); if(context != null) fragment.setVariables(context); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public CuartoFragment() {\n }", "public StintFragment() {\n }", "public ExploreFragment() {\n\n }", "public RickAndMortyFragment() {\n }", "public FragmentMy() {\n }", "public LogFragment() {\n }", "public FeedFragment() {\n }", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }", "public WkfFragment() {\n }", "public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment(){}", "public WelcomeFragment() {}", "public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }", "public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public progFragment() {\n }", "public HeaderFragment() {}", "public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }", "public EmployeeFragment() {\n }", "public Fragment_Tutorial() {}", "public NewShopFragment() {\n }", "public FavoriteFragment() {\n }", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}", "public NoteActivityFragment() {\n }", "public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }", "public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public EventHistoryFragment() {\n\t}", "public HomeFragment() {}", "public PeopleFragment() {\n // Required empty public constructor\n }", "public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public AddressDetailFragment() {\n }", "public ArticleDetailFragment() { }", "public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }", "public RegisterFragment() {\n }", "public EmailFragment() {\n }", "public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }", "public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }", "public ForecastFragment() {\n }", "public FExDetailFragment() {\n \t}", "public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }", "public TripNoteFragment() {\n }", "public ItemFragment() {\n }", "public NoteListFragment() {\n }", "public CreatePatientFragment() {\n\n }", "public DisplayFragment() {\n\n }", "public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment() {\n\n }", "public BackEndFragment() {\n }", "public CustomerFragment() {\n }", "public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public static Fragment newInstance() {\n return new SettingsFragment();\n }", "public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }", "public PeersFragment() {\n }", "public TagsFragment() {\n }", "public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }", "public HomeSectionFragment() {\n\t}", "public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }", "public PersonDetailFragment() {\r\n }", "public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }", "public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public PlaylistFragment() {\n }", "public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }", "public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }" ]
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.6646188", "0.66410166", "0.6640725", "0.6634425", "0.66188246", "0.66140765", "0.6608169", "0.66045964", "0.65977716", "0.6592119", "0.659137", "0.65910816", "0.65830594", "0.65786606", "0.6562876", "0.65607685", "0.6557126", "0.65513307", "0.65510213", "0.65431285", "0.6540448", "0.65336084", "0.6532555", "0.6528302", "0.6524409", "0.652328", "0.6523149", "0.6516528", "0.65049976", "0.6497274", "0.6497235", "0.64949715", "0.64944136", "0.6484968", "0.6484214", "0.64805835", "0.64784926", "0.64755154", "0.64710265", "0.6466466", "0.6457089", "0.645606", "0.6454554", "0.6452161", "0.64520335", "0.6450325", "0.64488834", "0.6446765", "0.64430225", "0.64430225", "0.64430225", "0.64420956", "0.6441306", "0.64411277", "0.6438451", "0.64345145", "0.64289486", "0.64287597", "0.6423755", "0.64193285", "0.6418699", "0.6414679", "0.6412867", "0.6402168", "0.6400724", "0.6395624", "0.6395109", "0.63891554", "0.63835025", "0.63788056", "0.63751805", "0.63751805", "0.63751805", "0.6374796", "0.63653135", "0.6364529", "0.6360922", "0.63538784", "0.6351111", "0.635067" ]
0.6391252
87
Initiate the variables Context and WifiAdmin
private void setVariables(Context context){ this.context = context != null ? context : getContext(); mwifiAdmin = new WifiAdmin(this.context); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initData() {\n mListWifi = new ArrayList<Map<String, Object>>();\n mWifiAdmin = new WifiAdmin(mContext);\n\t\tmWifiAdmin.openWifi();\n\t\t\n mboolWifiTest = false;\n \n // Used to save the current state of mobile test item\n SharedPreferences sp = mContext.getSharedPreferences(\n SHAREPREFERCES_NAME, Context.MODE_PRIVATE);\n Editor editor = sp.edit();\n editor.putBoolean(\"wifistate\", mWifiAdmin.mWifiManager.isWifiEnabled());\n editor.commit();\n }", "private NetworkController(Context context) {\n mContext = context.getApplicationContext();\n mWifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\n mConnectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n }", "private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_DEBUG);\n configFileKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONFIG_FILE_NAME);\n modulesDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MODULES);\n libDirsKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LIB_DIRS);\n mainClassKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MAIN_CLASS);\n classpathKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CLASSPATH);\n applicationIdKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_APP);\n logLevelKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LOG_LEVEL);\n consoleLogKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONSOLE_LOG);\n\n // Initialize default file and directory paths\n char sep = File.separatorChar;\n defaultRelConfigFilePath = String.format(\"%s/%s\", DEFAULT_CONFIG_DIR_NAME, configFileKey).replace('/', sep);\n defaultHomeConfigFilePath = String.format(\"${%s}/%s\", homeDirKey, defaultRelConfigFilePath).replace('/', sep);\n defaultHomeModulesDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_MODULES_DIR_NAME).replace('/', sep);\n defaultHomeLibDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_LIB_DIR_NAME).replace('/', sep);\n }", "private DeviceWifiManager(Context context) {\n\t\tif (null != context) {\n\t\t\tmWifiManager = (WifiManager) context\n\t\t\t\t\t.getSystemService(Context.WIFI_SERVICE);\n\t\t\tconnManager = (ConnectivityManager) context\n\t\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\tmWifiInfo = mWifiManager.getConnectionInfo();\n\t\t} else {\n\t\t\tmInstance = null;\n\t\t}\n\t}", "public void init() {\n ServletContext context = getServletContext();\r\n host = context.getInitParameter(\"host\");\r\n port = context.getInitParameter(\"port\");\r\n user = context.getInitParameter(\"user\");\r\n pass = context.getInitParameter(\"pass\");\r\n }", "public void init() {\n\t\tServletContext context = getServletContext();\n\t\thost = context.getInitParameter(\"host\");\n\t\tport = context.getInitParameter(\"port\");\n\t\tuser = context.getInitParameter(\"user\");\n\t\tpass = context.getInitParameter(\"pass\");\n\t}", "public void init() {\n\t\tServletContext context = getServletContext();\n\t\thost = context.getInitParameter(\"host\");\n\t\tport = context.getInitParameter(\"port\");\n\t\tuser = context.getInitParameter(\"user\");\n\t\tpass = context.getInitParameter(\"pass\");\n\t}", "private void init() {\n sensorEnabled = false;\n activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n contextEventHistory = new ArrayList<ContextEvent>(CONTEXT_EVENT_HISTORY_SIZE);\n }", "public void init() {\n ServletContext context = getServletContext();\n host = context.getInitParameter(\"host\");\n port = context.getInitParameter(\"port\");\n user = context.getInitParameter(\"user\");\n pass = context.getInitParameter(\"pass\");\n }", "public Context(){\n\t\ttry {\n\t\t\tsocket = new Socket(\"localhost\", 9876);\n\t\t\tmodel = new SimpleCalculationModel();\n\t\t\ttheInputWindow = new SimpleCalculatorWindow();\n\t\t\tcurrentInput = \"\"; \n\t\t} catch (UnknownHostException e) {\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"The server local host port 9876 does not exist!\");\n\t\t}\n\t}", "private void init() {\n\t\t\n\t\ttry{\t\t\t\n\t\t\tinfos = new HashMap<String, VariableInfo>();\n\t\t\t\n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\t\n\t\t\t\tif(this.problem.getNbrNeighbors(var) != 0){ // an isolated variable doesn't need a CryptoScheme and therefore no VariableInfo either\n\t\t\t\t\t\n\t\t\t\t\tVariableInfo info = new VariableInfo(var);\n\t\t\t\t\tinfos.put(var, info);\n\t\t\t\t\t\n\t\t\t\t\tinfo.cs = cryptoConstr.newInstance(this.cryptoParameter);\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//initialize request counter for my own variables\n\t\t\trequestCount = new HashMap<String,Integer>(); \n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\trequestCount.put(var, 0);\n\t\t\t}\n\t\t\t\n\t\t\tthis.started = true;\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\n\t\t\t\tmWifiAdmin = new WifiAdmin(context)\n\t\t\t\t{\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void myUnregisterReceiver(BroadcastReceiver receiver)\n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tunregisterReceiver(receiver);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Intent myRegisterReceiver(BroadcastReceiver receiver, IntentFilter filter)\n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tregisterReceiver(receiver, filter);\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onNotifyWifiConnected()\n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tLog.v(TAG, \"have connected success!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onNotifyWifiConnectFailed()\n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tLog.v(TAG, \"have connected failed!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tmWifiAdmin.openWifi();\n\t\t\t\t// 连的WIFI热点是用WPA方式保护\n\t\t\t\tmWifiAdmin.addNetwork(mWifiAdmin.createWifiInfo(Constant.HOST_SPOT_SSID, Constant.HOST_SPOT_PASS_WORD, WifiAdmin.TYPE_WPA));\n\t\t\t}", "public static void initialize(Context context) throws LogonCoreException {\n appContext = context;\n try {\n createOnlineManager(context);\n } catch (LogonCoreException e) {\n e.printStackTrace();\n }\n getTheData();\n }", "@Override\n public void init() {\n ServletContext context = getServletContext();\n KeyLoader loader = new KeyLoader();\n\n context.setAttribute(\"translateKey\", loader.getKey(TRANSLATE));\n context.setAttribute(\"authKey\", loader.getKeyBytes(AUTH));\n context.setAttribute(\"servletRoles\", getServletRoles());\n }", "private void init() {\n AdvertisingRequest();// 广告列表请求线程\n setapiNoticeControllerList();\n }", "private void init(){\n if(!initializing) {\n Initializer init = new Initializer();\n InitializationDetails initializationDetails = new InitializationDetails(url, download, reset, deviceID, this);\n init.execute(initializationDetails);\n initializing = true;\n }\n }", "public void init(Object context) {\n updateNetworkThreadCount(2);\n\n res = UIManager.initFirstTheme(\"/theme_1\");\n theme1 = UIManager.initFirstTheme(\"/theme_2\");\n // Enable Toolbar on all Forms by default\n Toolbar.setGlobalToolbar(true);\n\n // Pro only feature\n Log.bindCrashProtection(true);\n\n addNetworkErrorListener(err -> {\n // prevent the event from propagating\n err.consume();\n if(err.getError() != null) {\n Log.e(err.getError());\n }\n Log.sendLogAsync();\n Dialog.show(\"Connection Error\", \"There was a networking error in the connection to \" + err.getConnectionRequest().getUrl(), \"OK\", null);\n }); \n }", "private void init() {\n sensorEnabled = false;\n contextEventHistory = new ArrayList<ContextEvent>(CONTEXT_EVENT_HISTORY_SIZE);\n }", "private void initThings() {\n\t\tmyApp = (MyApp) getApplicationContext();\n\t\tnextIntent = new Intent(this, AnimActivity2.class);\n\t\t// nextIntent = new Intent(this, SelectEventActivity.class);\n\t\tnextIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n\t\t\t\t| Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\t\tuserDAO = new UserDAO(this);\n\t\tdialog = new CreateDialog(this);\n\t\tprogressDialog = dialog.createProgressDialog(null, \"Logging In\", false,\n\t\t\t\tnull, false);\n\t\ttypeface = myApp.getTypefaceRegular();\n\n\t\t// <<<<<<< HEAD\n\t\t//\n\t\t// GsonBuilder builder = new GsonBuilder();\n\t\t// gson = builder.create();\n\t\t//\n\t\t// queue = Volley.newRequestQueue(this);\n\t\t// =======\n\t\t// >>>>>>> parent of 48afbfc... setup android again\n\t}", "private void initializeVariables() {\n\n //Acquisizione credeziali per il login\n editTextUsername = findViewById(R.id.username);\n editTextPassword = findViewById(R.id.password);\n\n //bottone per il login\n mLoginButton = findViewById(R.id.button_login);\n\n //Checkbox per ricordare le credenziali\n rememberMe = findViewById(R.id.remember);\n\n //Variabile per reimpostare la password\n forgotTextLink = findViewById(R.id.lost_password);\n\n //ProgressBar\n progressBar = findViewById(R.id.progress_view);\n }", "@Override\r\n\tpublic void initData() {\n\t\tThreadUtils.getSinglePool().execute(new Runnable() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(2000);\r\n\t\t\t\t\tIntent intent =null;\r\n\t\t\t\t\tChainApplication application = (ChainApplication) getApplicationContext();\r\n\t\t\t\t\tUser user = application.getUserInfo();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(StringUtils.isEmpty(user.getUser_Name()) && StringUtils.isEmpty(HttpManager.getInstance().getToken(HttpManager.KEY_TOKEN))){\r\n\t\t\t\t\t\tintent = new Intent(getActivity(),LoginActivity.class);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tintent = new Intent(getActivity(), MainActivity.class);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void init() {\r\n\t\tGetRunningProgramsGR request = new GetRunningProgramsGR(\r\n\t\t\t\tRunningServicesListViewAdapter.this.runningServicesActivity.getApplicationContext());\r\n\t\trequest.setServerName(RunningServicesListViewAdapter.this.serverName);\r\n\t\tnew GuiRequestHandler(RunningServicesListViewAdapter.this.runningServicesActivity,\r\n\t\t\t\tRunningServicesListViewAdapter.this, true).execute(request);\r\n\t}", "private void initializeVariable() {\n\n\t\tlearn = (Button) findViewById(R.id.learnButton);\n\t\tlearn.setOnClickListener(this);\n\t\tplay = (Button) findViewById(R.id.playButton);\n\t\tplay.setOnClickListener(this);\n\t\tmode = (Button) findViewById(R.id.b_mode);\n\t\tmode.setOnClickListener(this);\n\t\tmode.setText(Global.currentMode + \" MODE\");\n\t\tclassID_SD = \"com.example.northamericanwildlifesounds.SOUNDDISPLAY\";\n\t\tsetUpAnimalData();\n\t}", "protected void init() {\n try {\n updateDevice();\n } catch (Exception e) {\n RemoteHomeManager.log.error(42,e);\n }\n }", "private void init() {\n\t\tMobclickAgent.onError(this);\n\t\tMobclickAgent.setUpdateOnlyWifi(false);\n\t\tMobclickAgent.update(this);\n\t\tUMFeedbackService.enableNewReplyNotification(this,\n\t\t\t\tNotificationType.AlertDialog);\n\t\tMobclickAgent.updateOnlineConfig(this);\n\n\t\tString header = MobclickAgent.getConfigParams(this, \"header\");\n\t\tif (\"\".equals(header)) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tif (header.equals(\"on\")) {\n\t\t\t\turl = MobclickAgent.getConfigParams(this, \"url\");\n\t\t\t\tshowHeader = true;\n\t\t\t} else {\n\t\t\t\tshowHeader = false;\n\t\t\t}\n\n\t\t}\n\n\t\tString footer = MobclickAgent.getConfigParams(this, \"footer\");\n\t\tif (\"\".equals(footer)) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tif (footer.equals(\"on\")) {\n\t\t\t\turl = MobclickAgent.getConfigParams(this, \"url\");\n\t\t\t\tshowFooter = true;\n\t\t\t} else {\n\t\t\t\tshowFooter = false;\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void init() {\n telemetry.addData(\"Status\", \"Initialized Interative TeleOp Mode\");\n telemetry.update();\n\n // Initialize the hardware variables. Note that the strings used here as parameters\n // to 'get' must correspond to the names assigned during the robot configuration\n // step (using the FTC Robot Controller app on the phone).\n leftDrive = hardwareMap.dcMotor.get(\"leftDrive\");\n rightDrive = hardwareMap.dcMotor.get(\"rightDrive\");\n armMotor = hardwareMap.dcMotor.get(\"armMotor\");\n\n leftGrab = hardwareMap.servo.get(\"leftGrab\");\n rightGrab = hardwareMap.servo.get(\"rightGrab\");\n colorArm = hardwareMap.servo.get(\"colorArm\");\n leftTop = hardwareMap.servo.get(\"leftTop\");\n rightTop = hardwareMap.servo.get(\"rightTop\");\n\n /*\n left and right drive = motion of robot\n armMotor = motion of arm (lifting the grippers)\n extendingArm = motion of slider (used for dropping the fake person)\n left and right grab = grippers to get the blocks\n */\n\n }", "private DatabaseContext() {\r\n datastore = createDatastore();\r\n init();\r\n }", "protected void initialize() { \n param1 = SmartDashboard.getNumber(\"param1\");\n param2 = SmartDashboard.getNumber(\"param2\");\n param3 = SmartDashboard.getNumber(\"param3\");\n param4 = SmartDashboard.getNumber(\"param4\");\n command = new C_DriveBasedOnEncoderWithTwist(param1, param2, param3);\n }", "@Override\n public void onCreate() {\n\n wifiManager=(WifiManager)getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n if(wifiManager.isWifiEnabled())\n {\n wifiManager.setWifiEnabled(false);\n }\n Method[] wmMethods = wifiManager.getClass().getDeclaredMethods(); //Get all declared methods in WifiManager class\n boolean methodFound=false;\n for(Method method: wmMethods)\n {\n if(method.getName().equals(\"setWifiApEnabled\"))\n {\n methodFound=true;\n WifiConfiguration netConfig = new WifiConfiguration();\n netConfig.SSID = \"SynMusic\";\n netConfig.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN);\n netConfig.allowedProtocols.set(WifiConfiguration.Protocol.RSN);\n netConfig.allowedProtocols.set(WifiConfiguration.Protocol.WPA);\n netConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE);\n try {\n Method setWifiApMethod = wifiManager.getClass().getMethod(\"setWifiApEnabled\", WifiConfiguration.class, boolean.class);\n boolean apstatus=(Boolean) setWifiApMethod.invoke(wifiManager, netConfig,true);\n\n Method isWifiApEnabledmethod = wifiManager.getClass().getMethod(\"isWifiApEnabled\");\n while(!(Boolean)isWifiApEnabledmethod.invoke(wifiManager)){};\n Method getWifiApStateMethod = wifiManager.getClass().getMethod(\"getWifiApState\");\n int apstate=(Integer)getWifiApStateMethod.invoke(wifiManager);\n Method getWifiApConfigurationMethod = wifiManager.getClass().getMethod(\"getWifiApConfiguration\");\n netConfig=(WifiConfiguration)getWifiApConfigurationMethod.invoke(wifiManager);\n Log.e(\"CLIENT\", \"\\nSSID:\"+netConfig.SSID+\"\\nPassword:\"+netConfig.preSharedKey+\"\\n\");\n new Broadcast_Song().start();\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(),e.getMessage(),1).show();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(),e.getMessage(),1).show();\n } catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(),e.getMessage(),1).show();\n }\n }\n }\n\n\n /*StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitNetwork().build();\n StrictMode.setThreadPolicy(policy);\n AudioManager audio = (AudioManager)getSystemService(AUDIO_SERVICE);\n audio.setMode(AudioManager.STREAM_MUSIC);\n AudioGroup audioGroup = new AudioGroup();\n audioGroup.setMode(AudioGroup.MODE_NORMAL);\n InetAddress inetAddress;\n try {\n inetAddress = InetAddress.getByName(\"192.168.43.1\");\n AudioStream audioStream = new AudioStream(inetAddress);\n audioStream.setCodec(AudioCodec.PCMU);\n audioStream.setMode(RtpStream.MODE_SEND_ONLY);\n InetAddress inetAddressRemote = InetAddress.getByName(\"192.168.43.1\");\n audioStream.associate(inetAddressRemote, 6000);\n //((TextView)findViewById(R.id.tv_port)).setText(\"Port : \" + String.valueOf(audioStream.getLocalPort()));\n audioStream.join(audioGroup);\n }\n catch ( UnknownHostException e ) {\n e.printStackTrace();\n }\n catch ( SocketException e ) {\n e.printStackTrace();\n }*/\n super.onCreate();\n seek= CreateGroup.seek;\n reciever=new BroadcastReceiver() {\n @Override\n public void onReceive(Context arg0, Intent arg1) {\n // TODO Auto-generated method stub\n\n String action=arg1.getAction();\n if(action.equals(\"com.example.musicplayer.play\"))\n {\n mp.start();\n control_functions(PLAY);\n }\n else if(action.equals(\"com.example.musicplayer.pause\"))\n {\n mp.pause();\n control_functions(PAUSE);\n }\n else if(action.equals(\"com.example.musicplayer.next\"))\n {\n try\n {\n String name=arg1.getStringExtra(\"name\");\n Uri uri = Uri.parse(name);//Environment.getExternalStorageDirectory().getPath()+\"/songs/\"+name);\n mp.reset();\n mp.setDataSource(arg0, uri);\n mp.setAudioStreamType(AudioManager.STREAM_MUSIC);\n mp.setLooping(true);\n mp.prepare();\n mp.start();seek.setMax(mp.getDuration());\n }catch (Exception e) {\n // TODO: handle exception\n }\n }\n else if(action.equals(\"com.example.musicplayer.previous\"))\n {\n try\n {\n String name=arg1.getStringExtra(\"name\");\n Uri uri = Uri.parse(name);//Environment.getExternalStorageDirectory().getPath()+\"/songs/\"+name);\n mp.reset();\n mp.setDataSource(arg0, uri);\n mp.setAudioStreamType(AudioManager.STREAM_MUSIC);\n mp.setLooping(true);\n mp.prepare();\n mp.start();\n seek.setMax(mp.getDuration());\n }catch (Exception e) {\n // TODO: handle exception\n }\n }\n\n else if(action.equals(\"com.example.musicplayer.frmList\"))\n {\n //Toast.makeText(SongService.this, \"previous\", 1).show();\n try\n {\n String name=arg1.getStringExtra(\"name\");\n Uri uri = Uri.parse(name);//Environment.getExternalStorageDirectory().getPath()+\"/songs/\"+name);\n filePath=uri.getPath();\n //Toast.makeText(getApplicationContext(),name,1).show();\n mp.reset();\n mp.setDataSource(arg0, uri);\n mp.setAudioStreamType(AudioManager.STREAM_MUSIC);\n mp.setLooping(true);\n mp.prepare();\n mp.start();\n seek.setMax(mp.getDuration());\n seek.setOnSeekBarChangeListener((SeekBar.OnSeekBarChangeListener) arg0);\n control_functions(NEW);\n new sendSong().execute();\n } catch (Exception e) {\n // TODO: handle exception\n }\n }\n else if(action.equals(\"com.example.musicplayer.frwd\"))\n {\n if(mp.getDuration()-mp.getCurrentPosition()>1250)\n {\n mp.seekTo(mp.getCurrentPosition()+1250);\n }\n else\n {\n mp.seekTo(mp.getDuration());\n }\n }\n else if(action.equals(\"com.example.musicplayer.rvrse\"))\n {\n if(mp.getCurrentPosition()>1250)\n {\n mp.seekTo(mp.getCurrentPosition()-1250);\n }\n else\n {\n mp.seekTo(0);\n }\n }\n else if(action.equals(\"com.example.musicplayer.jststarted\"))\n {\n if(mp.isPlaying())\n {\n CreateGroup.play_pause.setText(\"PAUSE\");\n }\n }\n else if(action.equals(\"com.example.musicplayer.seekBar\"))\n {\n seek=CreateGroup.seek;\n seek.setMax(mp.getDuration());\n seek.setOnSeekBarChangeListener((SeekBar.OnSeekBarChangeListener) arg0);\n //seek.setProgress(0);\n }\n else if(action.equals(\"com.example.musicplayer.addlist\"))\n {\n ArrayList<MusicData> list=arg1.getParcelableArrayListExtra(\"list\");\n }\n else if(action.equals(\"com.example.musicplayer.seekBarComp\"))\n {\n try\n {\n String name=arg1.getStringExtra(\"name\");\n Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getPath()+\"/songs/\"+name);\n mp.reset();\n mp.setDataSource(arg0, uri);\n mp.setAudioStreamType(AudioManager.STREAM_MUSIC);\n mp.setLooping(true);\n mp.prepare();\n mp.start();seek.setMax(mp.getDuration());\n }catch (Exception e) {\n // TODO: handle exception\n }\n }\n }\n };\n IntentFilter intentfilter=new IntentFilter();\n intentfilter.addAction(\"com.example.musicplayer.addlist\");\n intentfilter.addAction(\"com.example.musicplayer.play\");\n intentfilter.addAction(\"com.example.musicplayer.pause\");\n intentfilter.addAction(\"com.example.musicplayer.pause\");\n intentfilter.addAction(\"com.example.musicplayer.next\");\n intentfilter.addAction(\"com.example.musicplayer.previous\");\n intentfilter.addAction(\"com.example.musicplayer.frmList\");\n intentfilter.addAction(\"com.example.musicplayer.frwd\");\n intentfilter.addAction(\"com.example.musicplayer.rvrse\");\n intentfilter.addAction(\"com.example.musicplayer.jststarted\");\n intentfilter.addAction(\"com.example.musicplayer.seekBar\");\n intentfilter.addAction(\"com.example.musicplayer.seekBarComp\");\n registerReceiver(reciever, intentfilter);\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n //TAREFA \n //- Recuperar instância de ConnectivityManager \n //- A partir da instância, recuperar informações da interface de rede ativa\n //- Mostrar nome da interface e se está conectada ou não\n //- Recuperar informações da rede Wifi e móvel e mostrar se estão conectadas ou não\n }", "public void init(Context context) {\n\t\t\n\t EMOptions options = initChatOptions();\n\t //options传null则使用默认的\n\t\tif (EaseUI.getInstance().init(context, options)) {\n\t\t appContext = context;\n\t\t \n\t\t userDao=new UserDao(appContext);\n\t\t //设为调试模式,打成正式包时,最好设为false,以免消耗额外的资源\n\t\t EMClient.getInstance().setDebugMode(true);\n\t\t //get easeui instance\n\t\t easeUI = EaseUI.getInstance();\n\t\t //调用easeui的api设置providers\n\t\t setEaseUIProviders();\n\t\t\t//初始化PreferenceManager\n\t\t//\tPreferenceManager.init(context);\n\t\t\t//初始化用户管理类\n\t\t//\tgetUserProfileManager().init(context);\n\t\t\t\n\t\t\t//设置全局监听\n\t\t//\tsetGlobalListeners();\n\t\t//\tbroadcastManager = LocalBroadcastManager.getInstance(appContext);\n\t // initDbDao();\n\t\t //注册消息事件监听\n\t registerEventListener();\n\n\t\t}\n\t}", "private static void setupServerContext(){\n\n serverContext.set(new ServerContext());\n serverContext.get().bgThreadIds = new int[GlobalContext.getNumTotalBgThreads()];\n serverContext.get().numShutdownBgs = 0;\n serverContext.get().serverObj = new Server();\n\n }", "public abstract void init(OwNetworkContext context_p, OwXMLUtil networkSettings_p) throws Exception;", "@Override\n\tpublic void onCreate()\n\t{\n\t\tsuper.onCreate();\n\t\tsp = ApplicationBase.getSharedPreferences();\n\t\tdsp = ApplicationBase.getDefSharedPreferences();\n\t\tmRoutes = new NetworkSpace();\n\t\tconfig = ApplicationBase.getUtils();\n\t}", "public void teleopInit() {\n \n }", "private void init() {\n\t\tsendPacket(new Packet01Login(\"[you have connected to \"+UPnPGateway.getMappedAddress()+\"]\", null));\n\t}", "public void setupContext(ServletContext context) {\r\n\t\tMap<String, Object> map = new HashMap<String, Object>();\r\n\t\tmap.put(\"CURRENT_THEME\", Constants.CURRENT_THEME);\r\n\t\tmap.put(\"LOGGED_USER\", Constants.LOGGED_USER);\r\n\t\tmap.put(\"YES\", Constants.YES);\r\n\t\tmap.put(\"NO\", Constants.NO);\r\n\t\tmap.put(\"ACTION\", Constants.ACTION);\r\n\t\tmap.put(\"ACTION_ADD\", Constants.ACTION_ADD);\r\n\t\tmap.put(\"SECURE_FIELD\", Constants.SECURE_FIELD);\r\n\t\tmap.put(\"DEBUG_MODE\", Constants.isDebugMode());\r\n\t\tmap.put(\"SHOW_FLAT_COMMISSIONS\", \"false\");\r\n\r\n\t\tcontext.setAttribute(\"Constants\", map);\r\n\r\n\t}", "public void init()\n {\n _appContext = SubAppContext.createOMM(System.out);\n _serviceName = CommandLine.variable(\"serviceName\");\n initGUI();\n }", "@Override\n\tprotected void onCreate(Bundle arg0) {\n\t\tsuper.onCreate(arg0);\n\t\tWindow win = getWindow();\n\t\twin.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED\n\t\t\t\t| WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);\n\t\twin.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON\n\t\t\t\t| WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);\n\t\tsetContentView(R.layout.activity_add_waite);\n\t\tmContext = this;\n\t\tWifiManager manager = (WifiManager) this\n\t\t\t\t.getSystemService(Context.WIFI_SERVICE);\n\t\tlock = manager.createMulticastLock(\"localWifi\");\n\t\tssid = getIntent().getStringExtra(\"ssidname\");\n\t\tpwd = getIntent().getStringExtra(\"wifiPwd\");\n\t\ttype = getIntent().getByteExtra(\"type\", (byte) -1);\n\t\tmLocalIp = getIntent().getIntExtra(\"LocalIp\", -1);\n\t\tisNeedSendWifi = getIntent().getBooleanExtra(\"isNeedSendWifi\", true);\n\t\tinitUI();\n\t\tif (isNeedSendWifi) {\n\t\t\tTimeOut = 110 * 1000;\n\t\t\texcuteTimer();\n\t\t} else {\n\t\t\tTimeOut = 60 * 1000;\n\t\t\ttv_title.setText(getResources().getString(R.string.qr_code_add_device));\n\t\t}\n\t\tlock.acquire();\n\t\tmHelper = new UDPHelper(9988);\n\t\tlisten();\n\t\tmyhandler.postDelayed(mrunnable, TimeOut);\n\t\tmHelper.StartListen();\n\t}", "public DatasetAdmin(Context context) {\n // this.data = MainActivity.data;\n this.context = context;\n }", "protected void initialize(ExternalContext context)\n {\n }", "public void init()\n {\n context = getServletContext();\n parameters = (Siu_ContainerLabel)context.getAttribute(\"parameters\");\n }", "public void init() {\n\n\t\tString rootdir = null;\n\t\ttry {\n\t\t\trootdir = ServletActionContext.getServletContext().getRealPath(\"/\");\n\t\t} catch (Exception ex) {\n\n\t\t}\n\n\t\tif (rootdir == null) {\n\t\t\trootdir = \"/Users/huangic/Documents/jetty-6.1.22/webapps/TransWeb\";\n\t\t}\n\n\t\tlogger.debug(rootdir);\n\t\tString classesdir = rootdir + \"/WEB-INF/classes/\";\n\t\tthis.xmlBatchRule = ReadXML(classesdir\n\t\t\t\t+ \"applicationContext-BatchRule.xml\");\n\t\tthis.xmlDB = ReadXML(classesdir + \"applicationContext-DB.xml\");\n\t\tthis.xmlSystem = ReadXML(classesdir + \"applicationContext-system.xml\");\n\n\t}", "private void initData() {\n boolean monitoring = (boolean) SPUtils.get(this,SPUtils.SP_MONITOR_MONITORING,false);\n boolean boot = (boolean) SPUtils.get(this,SPUtils.SP_MONITOR_BOOT,false);\n\n sw_boot.setChecked(boot);\n sw_speed_noti.setChecked(monitoring);\n if (!monitoring){\n sw_boot.setEnabled(false);\n }else {\n if(!ServiceUtils.isServiceRunning(this,NetMonitorService.class.getName())){\n startMonitorService();\n }\n }\n\n }", "protected void initialize() {\n\t\tsquaredInputs = false;\n\t\t// SmartDashboard.putString(\"DB/LED 0\", \"TeleOpDrive is init\");\n\t}", "protected void initVars() {}", "public void initialize(Context context) {\n Validate.checkInternetPermissionAndThrow(context);\n this.applicationContext = context.getApplicationContext();\n Utility.getThreadPoolExecutor().execute(new Runnable() {\n public void run() {\n ExperimentationConfiguration ec = ExperimentationConfigurator.this.getExperimentationConfiguration();\n if (!ec.exists() || ec.isStale()) {\n ExperimentationConfigurator.this.downloadExperimentationConfiguration(ec.getUnitID());\n }\n }\n });\n }", "public void init() {\n delete = (Button) findViewById(R.id.user_delete_id_button);\n\n delete.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View d) {\n\n Intent deleteUser = new Intent(AdminMemberOperations.this, AdminMemberOperations.class);\n }\n });\n }", "@Override\n\tprotected void initVariable() {\n\t\tapp = (MApplication) this.getApplication();\n\t\tapp.addAllActivity(this);\n\t\tfundcode = this.getIntent().getStringExtra(\"fundcode\");\n\t\tlist = new ArrayList<MoneyChangeBean>();\n\t\tadapter = new RecordDetailsAdapter(getApplicationContext(), list);\n\t\tuserShare = UserSharedData.getInstance(getApplicationContext());\n\t}", "public CommunicationController() {\r\n _context = new Context(\"MyContext\");\r\n _app = UiApplication.getUiApplication();\r\n try {\r\n // Read settings from config.xml\r\n ECHO_SERVER_URI = Utils.getEchoServerUri();\r\n TIMEOUT = Utils.getTimeout();\r\n } catch (final Exception e) {\r\n alertDialog(e.toString());\r\n }\r\n }", "protected void init(KKAdminIf adminEng)\n {\n this.adminEng = adminEng;\n adminMgrFactory = new AdminMgrFactory(this.adminEng);\n }", "public static void init(Context context) {\n\t\tApplicationControl.context = context;\n\n\t\t// initialize file controller\n\t\tFileController.init();\n\t\t\n\t\t// load preferences\n\t\tPreferenceManager.setDefaultValues(context, R.xml.prefs, false);\n\n\t\t// initialize preferences\n\t\tprefs = PreferenceManager.getDefaultSharedPreferences(context);\n\n\t\t\n\t\t//initialize mark controller\n\t\tMarkController.init();\n\t\t\t\t\n\t\t// initialize sound controller\n\t\tSoundController.init(context);\n\n\t\t// initialize vibration controller\n\t\tVibration.init(context);\n\n\t\t// initialize game\n\t\treinit();\n\n\t\t// finally initialized\n\t\tisInit = true;\n\t}", "@Before\n public void setUpContextManagerBeforeTest() throws Exception{\n workerI = new ContextManager.ContextManagerWorkerI();\n\n// //Create the communicator of context manager\n// ContextManager.communicator = com.zeroc.Ice.Util.initialize(new String[] {\"[Ljava.lang.String;@2530c12\"});\n//\n// //Get the preference\n// ContextManager.iniPreferenceWorker();\n//\n// //Get the locationWorker\n// ContextManager.iniLocationMapper();\n\n //Get the cityinfo of the context manager\n ContextManager.cityInfo = ContextManager.readCityInfo();\n\n //CurrentWeather set to 0\n ContextManager.currentWeather = 0;\n\n //Create sensor data and user to add in the users list\n mockSensor = new SensorData(\"David\", \"D\", 30, 100);\n mockUser = new User(3, new int[]{27, 30},90, 45, mockSensor, 0, false,false);\n ContextManager.users.put(\"David\", mockUser);\n\n }", "protected void init()\n {\n crypterString = crypterLong = crypterDouble = crypterBytes = new MauiCrypterEngineNull();\n }", "private void setAttributes() {\n mAuth = ServerData.getInstance().getMAuth();\n user = ServerData.getInstance().getUser();\n sharedpreferences = getSharedPreferences(GOOGLE_CALENDAR_SHARED_PREFERENCES, Context.MODE_PRIVATE);\n walkingSharedPreferences = getSharedPreferences(ACTUAL_WALK, Context.MODE_PRIVATE);\n\n notificationId = 0;\n requestCode = 0;\n fragmentManager = getSupportFragmentManager();\n\n context = this;\n }", "public static void init() throws SQLException{\n dbController = DBController.getInstance();\n billingController = BillingController.getInstance();\n employeeController = EmployeeController.getInstance();\n customerServiceController = CustomerServiceController.getInstance();\n parkingController = ParkingController.getInstance();\n orderController = OrderController.getInstance();\n subscriptionController = SubscriptionController.getInstance();\n customerController = CustomerController.getInstance();\n reportController = ReportController.getInstance();\n complaintController = ComplaintController.getInstance();\n robotController = RobotController.getInstance();\n }", "public void teleopInit() {\n }", "public void teleopInit() {\n }", "@SuppressWarnings(\"unused\")\n static void init(Context setContext) {\n context = setContext;\n\n SettingDetail.settingDetails.clear();\n new SettingDetail(R.string.orientation, R.string.orientationDescription,\n 0, R.string.vertical, R.string.horizontal).add(ORIENTATION_SETTING);\n new SettingDetail(R.string.scrollMode, R.string.scrollModeDescription,\n 1, R.string.forward, R.string.reverse).add(SCROLL_MODE_SETTING);\n new SettingDetail(R.string.touchWarning, R.string.touchWarningDescription,\n 0, R.string.enabled, R.string.disabled).add(TOUCH_WARNING_SETTING);\n new SettingDetail(R.string.cursorMode, R.string.cursorModeDescription,\n 0, R.string.relative, R.string.absolute).add(CURSOR_MODE_SETTING);\n new SettingDetail(R.string.vibrationMode, R.string.vibrationModeDescription,\n 2, R.string.enabled, R.string.disabled, R.string.followSystem).add(VIBRATION_SETTING);\n\n SensitivitySetting.sensitivitySettings.clear();\n int averageSensitivity = (SensitivitySetting.MAX + SensitivitySetting.MIN) / 2;\n new SensitivitySetting(80, averageSensitivity).add();\n new SensitivitySetting(6, averageSensitivity).add();\n new SensitivitySetting(2, averageSensitivity).add();\n new SensitivitySetting(2, averageSensitivity).add();\n new SensitivitySetting(2, averageSensitivity).add();\n\n /* All outer controls\n Outer controls are responsible for transmission and adding new mapping. Each outer control\n corresponds to a combination of inner controls. */\n TaskDetail click = new TaskDetail(CLICK, R.string.click, true, false).add();\n TaskDetail rightClick = new TaskDetail(RIGHT_CLICK, R.string.rightClick, true, false).add();\n TaskDetail doubleClick = new TaskDetail(DOUBLE_CLICK, R.string.doubleClick, true, false).add();\n TaskDetail moveCursorRelative = new TaskDetail(MOVE_CURSOR_RELATIVE, R.string.moveCursor, true, true).add();\n TaskDetail moveCursorAbsolute = new TaskDetail(MOVE_CURSOR_ABSOLUTE, R.string.moveCursor, true, true).add();\n TaskDetail select = new TaskDetail(SELECT, R.string.taskSelect, true, false).add();\n TaskDetail scroll = new TaskDetail(SCROLL, R.string.scroll, true, true).add();\n TaskDetail undo = new TaskDetail(UNDO, R.string.undo, false, false).add();\n TaskDetail copy = new TaskDetail(COPY, R.string.copy, false, false).add();\n TaskDetail paste = new TaskDetail(PASTE, R.string.paste, false, false).add();\n TaskDetail cut = new TaskDetail(CUT, R.string.cut, false, false).add();\n TaskDetail returnToDesktop = new TaskDetail(RETURN_TO_DESKTOP, R.string.returnToDesktop, false, false).add();\n TaskDetail enableTaskMode = new TaskDetail(ENABLE_TASK_MODE, R.string.enableTaskMode, false, false).add();\n TaskDetail switchApplication = new TaskDetail(SWITCH_APPLICATION, R.string.switchApplication, false, true).add();\n TaskDetail switchTab = new TaskDetail(SWITCH_TAB, R.string.switchTab, false, true).add();\n /* This list can be extended\n If the description contains R.string.BasicControl, it will not be allowed to be modified in the generalSettings\n Format of any extension format is as follows:\n TaskDetail NAME = new TaskDetail(stringRepresentation, intStringDescription, isBasicControl, canBeRepeated).add(); */\n\n\n // This will not be reached by the identifyAndSend method\n TaskDetail actionExitingTouchPad = new TaskDetail(EXITING_TOUCH_PAD_FUNCTIONAL, R.string.exitTouchPad, true, false).add();\n // Functional outer controls\n addMapping(ACTION_NOT_FOUND, PASTE_TEXT, CANCEL_LAST_ACTION, HEARTBEAT, SUSPEND);\n\n vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);\n audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);\n clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE);\n\n try {\n // Try to load the json file\n loadJsonFile();\n } catch (Exception e) {\n // If the file does not exist\n // Default mapping\n SparseArray<TaskDetail> actionToTask = getCurrentMappings();\n\n actionToTask.append(SINGLE_FINGER + TAP, click);\n actionToTask.append(SINGLE_FINGER + DOUBLE_TAP, doubleClick);\n actionToTask.append(TWO_FINGERS + TAP, rightClick);\n actionToTask.append(SINGLE_FINGER + MOVE, moveCursorRelative);\n actionToTask.append(SINGLE_FINGER + LONG_TAP, select);\n actionToTask.append(TWO_FINGERS + MOVE, scroll);\n actionToTask.append(THREE_FINGERS + MOVE_DOWN, returnToDesktop);\n actionToTask.append(THREE_FINGERS + MOVE_UP, enableTaskMode);\n actionToTask.append(THREE_FINGERS + MOVE_LEFT, switchApplication);\n actionToTask.append(THREE_FINGERS + MOVE_RIGHT, switchApplication);\n actionToTask.append(FOUR_FINGERS + MOVE_DOWN, actionExitingTouchPad);\n\n actionToTask.append(INPUT_TEXT, PASTE_TEXT);\n actionToTask.append(MOVE_CANCEL, CANCEL_LAST_ACTION);\n actionToTask.append(HEARTBEAT_ACTION, HEARTBEAT);\n actionToTask.append(SUSPEND_ACTION, SUSPEND);\n\n // Save the default actionToTask file\n saveJsonFile();\n }\n }", "public void teleopInit(){\r\n drive.setupTeleop();\r\n shooter.setupTeleop();\r\n pickup.setupTeleop();\r\n }", "private void init() {\n recyclerView = findViewById(R.id.mRecyclerView);\n noBudgetData = findViewById(R.id.NoData);\n noDataGif = findViewById(R.id.NoDataGif);\n Amount = findViewById(R.id.Amount);\n WalletName = findViewById(R.id.WalletName);\n TotalCost = findViewById(R.id.TotalCost);\n CostHeading = findViewById(R.id.CostHeading);\n CurrentBalance = findViewById(R.id.CurrentBalance);\n toolbar = findViewById(R.id.tool_bar);\n mainLayout = findViewById(R.id.home_layout);\n editButton = findViewById(R.id.editIcon);\n ux = new UX(this, mainLayout);\n tools = new Tools(this);\n databaseHelper = DatabaseHelper.getHelper(this);\n }", "public void onCreate() {\n Log.i(TAG, \"MinaClient create\");\r\n\r\n Thread thread = new Thread(this);\r\n thread.start();\r\n\r\n CommandHandle.getInstance().setContext(getApplicationContext());\r\n }", "public void Initialse() {\n\t\tappSettings = ctx.getSharedPreferences(APP_SETTINGS, 0);\n\t\tSharedPreferences.Editor prefEditor = appSettings.edit();\n\t\tprefEditor.putBoolean(BLOCK, true); // master switch\n\t\tprefEditor.putBoolean(NOTIFY, true); // controls whether a notification appears in status bar ans notifications lit\n\t\tprefEditor.putBoolean(REMOVE_CALLS, false); // determines whether calls are removed form the call log\n\t\t// add INIT to prevent this code from being called again\n\t\tprefEditor.putBoolean(INIT, true); // flag to allow subsequent loads to recognise that defaults are set\n\t\tprefEditor.putString(TEST, ctx.getString(R.string.test_number));\n\t\tprefEditor.putBoolean(RULES_EXIST, false); // added to control whether app kicks off commshandler\n\t\t\n\t\tprefEditor.commit();\n \n\t}", "private void initData() {\n requestServerToGetInformation();\n }", "public static void init(Context context) {\n prefs = context.getSharedPreferences(\"ERS_Prefs\", Context.MODE_PRIVATE);\n }", "public void EngineInit() {\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[] {};\n }\n\n public void checkClientTrusted(X509Certificate[] chain,\n String authType) throws CertificateException {\n }\n\n public void checkServerTrusted(X509Certificate[] chain,\n String authType) throws CertificateException {\n }\n } };\n\n try {\n\n\n //取得SSL的SSLContext实例\n SSLContext sslContext = SSLContext.getInstance(\"TLS\");\n sslContext.init(null,trustAllCerts,new java.security.SecureRandom());\n sslEngine = sslContext.createSSLEngine();\n sslEngine.setUseClientMode(true);\n\n } catch(NoSuchAlgorithmException e) {\n } catch(KeyManagementException e) {\n }\n SSLSession session = sslEngine.getSession();\n int appBufferMax = session.getApplicationBufferSize();\n int netBufferMax = session.getPacketBufferSize();\n Log.i(\"123\", \"EngineInit: appBufferMax:\"+appBufferMax + \"netBufferMax:\"+netBufferMax);\n ByteBuffer mTunSSRAppData = ByteBuffer.allocate(appBufferMax);\n ByteBuffer mTunSSRWrapData = ByteBuffer.allocate(netBufferMax);\n ByteBuffer peerAppData = ByteBuffer.allocate(appBufferMax);\n ByteBuffer peerNetData = ByteBuffer.allocate(netBufferMax);\n }", "public static void init(Context context) {\n\t\tmContext = context;\n\n\t\tDataStore.removeAllSensors();\n\n\t\t// Look for various Bluetooth sensors and if they are found add them to\n\t\t// the list\n\t\tif ((Globals.IS_WOCKETS_ENABLED) || (Globals.IS_BLUETOOTH_ENABLED)) {\n\t\t\tif (BluetoothAdapter.getDefaultAdapter() != null) {\n\t\t\t\tBluetoothAdapter.getDefaultAdapter().enable();\n\t\t\t\tSet<BluetoothDevice> devices = BluetoothAdapter.getDefaultAdapter().getBondedDevices();\n\t\t\t\tIterator<BluetoothDevice> itr = devices.iterator();\n\t\t\t\twhile (itr.hasNext()) {\n\t\t\t\t\tBluetoothDevice dev = itr.next();\n\t\t\t\t\tDataStore.checkAndAddSensor(context, dev.getName(), Util.removeColons(dev.getAddress()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tSharedPreferences prefs = context.getSharedPreferences(Defines.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n\t\tint numEnabledSensors = prefs.getInt(Defines.SHARED_PREF_NUM_SENSORS, 0);\n\t\tLog.d(TAG, \"got sensor number \"+numEnabledSensors+\" from shared prefs\");\n\t\tfor (int x = 0; x < numEnabledSensors; x++) {\n\t\t\tString sensorName = prefs.getString(Defines.SHARED_PREF_SENSOR + x, \"\");\n\t\t\tSensor s = DataStore.getSensor(sensorName);\n\t\t\tDataStore.restoreSensorStats(context, s);\n\t\t\tif (s != null) {\n\t\t\t\ts.mEnabled = true;\n\t\t\t}\n\t\t\tLog.d(TAG, \"Sensor set to enabled: \" + sensorName);\n\t\t}\n\n//\t\tDataStore.mEmotionalEventThreshold = prefs.getInt(Defines.SHARED_PREF_EMOTION_THRESHOLD, Defines.DEFAULT_EMOTIONAL_EVENT_TRIGGER_PERCENT);\n\n//\t\tDataStore.mStillnessDuration = prefs.getInt(Defines.SHARED_PREF_INACTIVITY_TIME, Defines.DEFAULT_STILLNESS_WARNING_TIME);\n\n\t\t// Data files\n\t\tDataStore.mRawDataDir = prefs.getString(Defines.SHARED_PREF_RAW_DATA_DIR, Defines.DEFAULT_RAW_DATA_DIR);\n\t\tDataStore.mNumDataFiles = prefs.getInt(Defines.SHARED_PREF_NUM_DATA_FILES, 0);\n\t\tfor (int i = 0; i < mNumDataFiles; i++) {\n\t\t\tmDataFiles = new ArrayList<String>();\n\t\t\tmDataFiles.add(prefs.getString(Defines.SHARED_PREF_DATA_FILE + \"_\" + i, \"\"));\n\t\t}\n\t\tfor (int i = 0; i < mNumDataFiles; i++) {\n\t\t\tLog.d(TAG, \"DATA FILE: \" + mDataFiles.get(i));\n\t\t}\n\n\t\tDataStore.setActivityScore(prefs.getInt(Defines.SHARED_PREF_ACTIVITY_SCORE, 0));\n\n\t\tDataStore.mThreadLastRunSystemTime = prefs.getLong(Defines.SHARED_PREF_THREAD_LAST_RUN_TIME, -1);\n\n\t\tfor (int x = 0; x < Defines.NUM_DAYS_SCORE_TO_SAVE; x++) {\n\t\t\tDataStore.mPreviousActivityScores[x] = prefs.getInt(Defines.SHARED_PREF_PREV_SCORE + x, 0);\n\t\t}\n\n\t\tString scoreDate = prefs.getString(Defines.SHARED_PREF_SCORE_DATE, \"\");\n\n\t\tif (!scoreDate.equals(\"\")) {\n\t\t\tmActivityScoreDate = new Time();\n\t\t\tmActivityScoreDate.parse(scoreDate);\n\t\t\t// You MUST call normalize after parsing so that yearDay field will\n\t\t\t// be set correctly\n\t\t\tmActivityScoreDate.normalize(false);\n\t\t}\n\n\t\tDataStore.mFirstRunShown = prefs.getBoolean(Defines.SHARED_PREF_FIRST_RUN, false);\n\n\t\tDataStore.mVibrate = prefs.getBoolean(Defines.SHARED_PREF_VIBRATE, false);\n\n\t\tDataStore.mRunning = prefs.getBoolean(Defines.SHARED_PREF_RUNNNING, false);\n\n\t\tif (mRunning) {\n\t\t\tString startTime = prefs.getString(Defines.SHARED_PREF_START_TIME, \"\");\n\t\t\tif (!startTime.equals(\"\")) {\n\t\t\t\tmStartRecordingTime = new Time();\n\t\t\t\tmStartRecordingTime.parse(startTime);\n\t\t\t\tmStartRecordingTime.normalize(false);\n\t\t\t}\n\t\t}\n\n\t\t// Check if the last update to the activity score was on a previous day\n\t\tcheckForScoreReset();\n\t\tsaveScore();\n\n\t\tmInitialized = true;\n\t}", "@Override\n public void teleopInit()\n {\n System.out.println(\"Initializing teleop mode...\");\n\n commonInit();\n\n\n System.out.println(\"Teleop initialization complete.\");\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.ac_device_ip_settings);\n\t\tappMain = (AppMain) this.getApplicationContext();\n\t\ttvMac = (TextView) this.findViewById(R.id.tvMac);\n\t\tfindViewById(R.id.back_btn).setOnClickListener(this);\n\t\tfindViewById(R.id.menu_btn1).setOnClickListener(this);\n\n\t\tbtnSwitchDHCP = (Button) findViewById(R.id.btn_switch_dhcp);\n\t\tbtnSwitchDHCP.setOnClickListener(this);\n\n\t\tetIp = (EditText) this.findViewById(R.id.et_dev_ip);\n\t\tetNetMask = (EditText) this.findViewById(R.id.et_dev_netmask);\n\t\tetGateway = (EditText) this.findViewById(R.id.et_dev_gateway);\n\t\t// new ThreadSearchDeviceWifi().execute();\n\t\tshowProgressDialog(getString(R.string.get_dev_ip));\n\t\tgetData(0);\n\t}", "public void initializeContext(Context context) {\n this.context = context;\n }", "public void init() {\r\n \tconnection = Connect.initConnexion();\r\n \tSystem.out.println(\"connexion :\"+connection);\r\n }", "@Override\r\n public Context initControlContext() throws Exception {\r\n _log.info(\"\");\r\n _log.info(\"...Preparing generation of free generate\");\r\n for (DfFreeGenRequest request : _freeGenRequestList) {\r\n _log.info(\" \" + request.toString());\r\n }\r\n final VelocityContext context = createVelocityContext();\r\n return context;\r\n }", "public void initDevice() {\r\n\t\t\r\n\t}", "private void init() {\n\t\tutils = new MmustUtils(Authenticate.this);\n\t\treceiver = new AuthReceiver();\n\t\t\n\t\tetRegno = (EditText)findViewById(R.id.authenticate_editText_reg_no);\n\t\tetPassword = (EditText)findViewById(R.id.authenticate_editText_password);\n\t\tetPassword.addTextChangedListener(this);\n\t\t\n\t\tbtAuth = (Button)findViewById(R.id.authenticate_button_auth);\n\t\tbtAuth.setOnClickListener(this);\n\t\t\n\t\tivPeek = (ImageView)findViewById(R.id.authenticate_imageView_view_password);\n\t\tivPeek.setVisibility(ImageView.GONE);\n\t\tivPeek.setOnClickListener(this);\n\t\t\n\t\t\n\t\tpbAuthenticating = (ProgressBar)findViewById(R.id.authenticate_progressBar_authenticating);\n\t\tpbAuthenticating.setVisibility(ProgressBar.GONE);\n\t\t\n\t\ttvLoginFail = (TextView)findViewById(R.id.authenticate_textView_login_fail);\n\t\ttvLoginFail.setVisibility(TextView.GONE);\n\t\t\n\t\tgetRegisteredEmails();\n\t\t\n\t}", "private void initialize()\r\n {\r\n this.workspace = null;\r\n this.currentUser = null;\r\n this.created = new Date();\r\n this.securityInfo = null;\r\n }", "private void initView() {\n\t\tbtCheck1 = (Button) findViewById(R.id.btCek1);\n\t\ttbChannel4 = (ToggleButton) findViewById(R.id.tbChannel4);\n\t\t//currentIpAddress = setting.getString(\"ip\", \"192.168.64.44\");\n\t\tcurrentIpAddress =\"192.168.64.45\";\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.remotephone);\r\n\t\tcontext = this;\r\n\t\tContext myContext = Globals.getContext();\r\n\t\tif (myContext == null) {\r\n\t\t\tmyContext = getApplicationContext();\r\n\t\t\tif (myContext == null) {\r\n\t\t\t\tthrow new NullPointerException(\"Null context!?!?!?\");\r\n\t\t\t}\r\n\t\t\tGlobals.setContext(myContext);\r\n\t\t}\r\n\t\ttvstatus = (TextView) findViewById(R.id.statuss);\r\n\t\tivwifi = (ImageView) findViewById(R.id.wifi_state_image);\r\n\t\tivwifi.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent(\r\n\t\t\t\t\t\tandroid.provider.Settings.ACTION_WIFI_SETTINGS);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}\r\n\t\t});\r\n\t\ttvtext = (TextView) findViewById(R.id.statustv);\r\n\t\ttvip = (TextView) findViewById(R.id.statusip);\r\n\t\tbtn = (Button) findViewById(R.id.statubtn);\r\n\t\tbtn.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tGlobals.setLastError(null);\r\n\t\t\t\tFile chrootDir = new File(Defaults.chrootDir);\r\n\t\t\t\tif (!chrootDir.isDirectory())\r\n\t\t\t\t\treturn;\r\n\t\t\t\tIntent intent = new Intent(context, FTPServerService.class);\r\n\t\t\t\tGlobals.setChrootDir(chrootDir);\r\n\t\t\t\tif (!FTPServerService.isRunning()) {\r\n\t\t\t\t\tif (Environment.MEDIA_MOUNTED.equals(Environment\r\n\t\t\t\t\t\t\t.getExternalStorageState())) {\r\n\t\t\t\t\t\tcontext.startService(intent);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcontext.stopService(intent);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tupdateUI();\r\n\t\tUiUpdater.registerClient(handler);\r\n\t}", "private void initHardware(){\n }", "private AceContext()\n {\n //load from file\n File f = new File(ServerSettings.FILE_NAME);\n if (!f.exists())\n {\n ServerSettings.setDefaults();\n }\n\n// setWorkingParent( ServerSettings.getInstance().getProperty(ServerSettings.WORKING_PARENT));\n// setCommonDir( ServerSettings.getInstance().getProperty(ServerSettings.COMMON_DIR));\n// setApplicationPath( ServerSettings.getInstance().getProperty(ServerSettings.APP_EXE));\n }", "public void onResume() {\n super.onResume();\n try {\n if (this.wlanCon == null) {\n this.wlanCon = new wlanController(this.mThis);\n this.wlanCon.setDesiredWlanConfig(this.desiredWifiConfiguration);\n StringBuilder sb = new StringBuilder();\n sb.append(\"set desired: \");\n sb.append(this.desiredWifiConfiguration);\n Log.i(\"wlanController\", sb.toString());\n this.wlanCon.startWlanController();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void init() {\n\t\temail_login=(EditText)findViewById(R.id.et_email_login);\n\t\tpassword_login=(EditText)findViewById(R.id.et_password_login);\n\t\t\n\t\t\n\t\tlogin_login=(Button)findViewById(R.id.bt_login_login);\n\n\t\tregister_login=(TextView)findViewById(R.id.tv_register_login);\n\t\tforget_login=(TextView)findViewById(R.id.tv_forgetpasw_login);\n\t\tlogin_remind=(TextView)findViewById(R.id.tv_remind_login);\n\t\t\n\t\tregister_login.setOnClickListener(this);\n\t\tforget_login.setOnClickListener(this);\n\t\tlogin_login.setOnClickListener(this);\n\t\t\n\t\tif(!LocalStorage.getBoolean(this, Constant.CAN_LOGIN)){\t\t\n\t\t\tlogin_remind.setText(getResources().getString(R.string.config_login));\t\t\n\t\t}else{\n\t\t\temail_login.addTextChangedListener(textwatcher);\n\t\t\tpassword_login.addTextChangedListener(textwatcher);\n\t\t}\n\t\tlogin_login.setEnabled(false);\n\t}", "private void _init(){\n \n context = this;\n \t\n this.countryCodeXml = HelperFunctions.getInstance().parseCountryCodeXml(this);\n \n \t//Initialisieren der EditTexte und Spinner\n this.countrySpinner = (Spinner) findViewById(R.id.countrySpinner);\n addItemsToSpinner();\n countrySpinnerListener();\n this.countryCode = (TextView) findViewById(R.id.countryCode);\n this.numberErrorMessage = (TextView) findViewById(R.id.activity_setup_number_error_message);\n \tthis.telNumber = (EditText) findViewById(R.id.telnummberEditText);\n \tthis.passwordErrorMessage = (TextView) findViewById(R.id.activity_setup_password_error_message);\n this.password = (EditText) findViewById(R.id.passwordEditText);\n passwordInputFilter();\n this.agbCheck = (CheckBox) findViewById(R.id.agbCheck);\n // Hier muss noch eine Default Vlaue gesetzt werden\n //countrySpinner.setSelected(selected)\n this.acceptButton = (Button) findViewById(R.id.AgbConfirmButton);\n acceptButtonListener();\n \n }", "public static void setupContext(ServletContext context) {\n \t//I don't need this dropdown list. bguo.\n// ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(context);\n// LookupManager mgr = (LookupManager) ctx.getBean(\"lookupManager\");\n//\n// // get list of possible roles\n// context.setAttribute(RoleConstants.AVAILABLE_ROLES, mgr.getAllRoles());\n// log.debug(\"Drop-down initialization complete [OK]\");\n }", "public Context() {\n }", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "public Context() {\n this.usersList = JsonParser.getUsersFromJsonArray();\n this.editedUsersList = new ArrayList<>();\n }", "protected void init() {\n new AsyncTask<Void, Void, Void>() {\n @Override\n protected Void doInBackground(Void... params) {\n RosFragmentActivity.this.init(nodeMainExecutorService);\n //Let everyone know that init is called\n synchronized (mNodeInitListeners) {\n for (final NodeInitListener nodeInitListener : mNodeInitListeners) {\n nodeInitListener.onNodeInit(nodeMainExecutorService, getMasterUri());\n }\n mNodeInitListeners.clear();\n }\n return null;\n }\n }.execute();\n }", "private void initPreferences(Context context) {\n\n if (DEBUG) LogUtils.d(TAG, \"initPreferences: mPreferences \" + mPreferences);\n }", "protected WifiManager getWifiManager()\r\n\t{\r\n\t\t//return (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\r\n\t\treturn wifiManager;\r\n\t}", "public static void initialize(Context context) {\r\n\t\tif (context == null) throw new IllegalArgumentException(\"Context cannot be null\");\r\n\t\tctx = context;\r\n\t\tprefs = context.getSharedPreferences(PREFERENCE_FILE_NAME, Context.MODE_PRIVATE);\r\n\t\t\r\n\t\t// Create encrypted keys\r\n\t\tPURCHASES_INITIALIZED = getEncryptedKey(\"purchases_initialized\");\r\n\t\tAPP_UPGRADE = getEncryptedKey(\"upgraded\");\r\n\t}", "protected void initializeInstances() {\n if (mUser == null) {\n mUser = new User(getApplicationContext());\n }\n if (mUserCache == null) {\n mUserCache = new UserCache();\n }\n if(mGlobalGroupContainer == null) {\n mGlobalGroupContainer = new GroupContainer(getApplicationContext());\n }\n if(mGlobalHistoryContainer == null) {\n mGlobalHistoryContainer = new HistoryContainer(getApplicationContext());\n }\n\n if(mGlobalContactContainer == null) {\n mGlobalContactContainer = new ContactContainer(getApplicationContext());\n mGlobalContactContainer.setContactSortKey(Contact.UserSortKey.USER_FIRST_NAME);\n }\n }", "public void init() {\n final NetworkManager manager = new NetworkManager(this);\n manager.setListener(this);\n\n TextView passwordRecoveryTitle = (TextView) findViewById(R.id.simple_toolbar_title);\n email = (EditText) findViewById(R.id.password_recovery_email);\n final Button recoverButton = (Button) findViewById(R.id.recover_password_button);\n Button backToLoginButton = (Button) findViewById(R.id.simple_toolbar_back_button);\n\n\n passwordRecoveryTitle.setText(getResources().getString(R.string.password_recovery_title));\n recoverButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n if (canRecoverPassword()) {\n if (NetworkManager.DEMO_DATA) {\n Utils.showSingleButtonAlertWithoutTitle(PasswordRecoveryActivity.this, getResources().getString(R.string.option_not_available_for_demo));\n return;\n }\n manager.setListener(PasswordRecoveryActivity.this).resetPassword(PasswordRecoveryActivity.this, email.getText().toString());\n }\n\n }\n });\n backToLoginButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n onBackPressed();\n }\n });\n\n email.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {\n if (i == EditorInfo.IME_ACTION_DONE) {\n recoverButton.performClick();\n }\n return false;\n }\n });\n }", "public void testContextManager() throws Exception {\n System.out.println(\"testContextManager\");\n \n // init the session information\n ThreadsPermissionContainer permissions = new ThreadsPermissionContainer();\n SessionManager.init(permissions);\n UserStoreManager userStoreManager = new UserStoreManager();\n UserSessionManager sessionManager = new UserSessionManager(permissions,\n userStoreManager);\n LoginManager.init(sessionManager,userStoreManager);\n // instanciate the thread manager\n CoadunationThreadGroup threadGroup = new CoadunationThreadGroup(sessionManager,\n userStoreManager);\n \n // add a user to the session for the current thread\n RoleManager.getInstance();\n \n InterceptorFactory.init(permissions,sessionManager,userStoreManager);\n \n // add a new user object and add to the permission\n Set set = new HashSet();\n set.add(\"test\");\n UserSession user = new UserSession(\"test1\", set);\n permissions.putSession(new Long(Thread.currentThread().getId()),\n new ThreadPermissionSession(\n new Long(Thread.currentThread().getId()),user));\n \n \n NamingDirector.init(threadGroup);\n \n Context context = new InitialContext();\n \n context.bind(\"java:comp/env/test\",\"fred\");\n context.bind(\"java:comp/env/test2\",\"fred2\");\n \n if (!context.lookup(\"java:comp/env/test\").equals(\"fred\")) {\n fail(\"Could not retrieve the value for test\");\n }\n if (!context.lookup(\"java:comp/env/test2\").equals(\"fred2\")) {\n fail(\"Could not retrieve the value for test2\");\n }\n System.out.println(\"Creating the sub context\");\n Context subContext = context.createSubcontext(\"java:comp/env/test3/test3\");\n System.out.println(\"Adding the binding for bob to the sub context\");\n subContext.bind(\"bob\",\"bob\");\n System.out.println(\"Looking up the binding for bob on the sub context.\");\n Object value = subContext.lookup(\"bob\");\n System.out.println(\"Object type is : \" + value.getClass().getName());\n if (!value.equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n if (!context.lookup(\"java:comp/env/test3/test3/bob\").equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n \n ClassLoader loader = new URLClassLoader(new URL[0]);\n ClassLoader original = Thread.currentThread().getContextClassLoader();\n Thread.currentThread().setContextClassLoader(loader);\n NamingDirector.getInstance().initContext();\n \n context.bind(\"java:comp/env/test5\",\"fred5\");\n if (!context.lookup(\"java:comp/env/test5\").equals(\"fred5\")) {\n fail(\"Could not retrieve the value fred5\");\n }\n \n Thread.currentThread().setContextClassLoader(original);\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n Thread.currentThread().setContextClassLoader(loader);\n \n NamingDirector.getInstance().releaseContext();\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n Thread.currentThread().setContextClassLoader(original);\n System.out.println(\"Add value 1\");\n context.bind(\"basic\",\"basic\");\n System.out.println(\"Add value 2\");\n context.bind(\"basic2/bob\",\"basic2\");\n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the [\" + \n context.lookup(\"basic\") + \"]\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI [\" +\n context.lookup(\"basic2/bob\") + \"]\");\n }\n \n try {\n context.bind(\"java:network/env/test\",\"fred\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n \n try {\n context.unbind(\"java:network/env/test\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n context.rebind(\"basic\",\"test1\");\n context.rebind(\"basic2/bob\",\"test2\");\n \n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n \n context.unbind(\"basic\");\n context.unbind(\"basic2/bob\");\n \n try{\n context.lookup(\"basic2/bob\");\n fail(\"The basic bob value could still be found\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n NamingDirector.getInstance().shutdown();\n }", "private void initVariables() {\n ivBack.setVisibility(View.VISIBLE);\n tvTitle.setVisibility(View.VISIBLE);\n tvTitle.setText(getString(R.string.change_language));\n\n gifProgress.setImageResource(R.drawable.shopholic_loader);\n progressBar.setVisibility(View.GONE);\n String currentLang = AppSharedPreference.getInstance().getString(this, AppSharedPreference.PREF_KEY.CURRENT_LANGUAGE);\n setLanguage(currentLang);\n }", "public static synchronized void initialize(Context context) {\n instance.context = context;\n initInternal();\n }", "public static void init() {\n client = new OkHttpClient();\n\n //Construct a HTTP builder\n retrofit = new Retrofit.Builder()\n .client(client)\n .baseUrl(apiAddress)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n //Form an API to receive a token\n kedronService = retrofit.create(IKedronService.class);\n }", "@Override\n\tpublic void teleopInit() {\n\t\tservoCIMCommand.start();\n\t\tmonitorCommand.start();\n\t\twindowCommand.start();\n\t\t\n\t}", "void initSafeties(){\n gyroSafety();\n tensorFlowSafety();\n\n telemetry.addLine(\"Init finalized successfully\");\n telemetry.update();\n }", "private void init() {\r\n\t\tif (cn == null) {\r\n\t\t\ttry {\r\n\t\t\t\tcn = new XGConnection(url,login,passwd); // Etape 2 : r�cup�ration de la connexion\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTimeUnit.MINUTES.sleep(1);\r\n\t\t\t\t} catch (InterruptedException e2) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcn.close();// lib�rer ressources de la m�moire.\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void initialize(Context context) {\n\t\tif (m_Initialized) return;\n\t\tm_Initialized = true;\n\t\t\n\t\t//Get preference and load\n\t\tSharedPreferences Preference = context.getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE);\n\t\tloadMisc(Preference);\n\t\tloadPlayers(Preference);\n\t}" ]
[ "0.6709097", "0.64856327", "0.6211487", "0.61428547", "0.6071024", "0.60549223", "0.6050568", "0.60096806", "0.59887284", "0.5917737", "0.58602893", "0.58051604", "0.5802959", "0.5781152", "0.57677925", "0.57623225", "0.57609344", "0.5759747", "0.57467663", "0.5736468", "0.571403", "0.5704788", "0.5684703", "0.5672895", "0.56709903", "0.5666766", "0.5665946", "0.56641924", "0.5657881", "0.56560546", "0.5655062", "0.5643972", "0.5642576", "0.5641616", "0.56394637", "0.5631657", "0.56304395", "0.5619327", "0.56145835", "0.5611323", "0.56031114", "0.56011313", "0.5599585", "0.5598874", "0.5590254", "0.5581825", "0.55716234", "0.5552094", "0.5551797", "0.55471617", "0.5542676", "0.5534021", "0.5522767", "0.552103", "0.551643", "0.5514701", "0.5504851", "0.5504851", "0.5495136", "0.5492292", "0.5488163", "0.548134", "0.5461443", "0.54608536", "0.5458714", "0.54517263", "0.54384094", "0.5431722", "0.54285324", "0.5424789", "0.5421976", "0.5412283", "0.54109883", "0.5398407", "0.539662", "0.5396475", "0.5386982", "0.538271", "0.53793806", "0.5378182", "0.5371636", "0.5364518", "0.5363518", "0.5362284", "0.5357645", "0.53542876", "0.5349008", "0.534542", "0.5341653", "0.5332421", "0.5329152", "0.53263617", "0.53249335", "0.5324188", "0.5316128", "0.5315659", "0.5311928", "0.5308914", "0.5306458", "0.5304439" ]
0.7975497
0
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View ret = inflater.inflate(R.layout.fragment_main, container, false); ssidView = (TextView) ret.findViewById(R.id.txtSsidView); ipView = (TextView)ret.findViewById(R.id.txtIpView); signalView = (TextView)ret.findViewById(R.id.txtSignalView); messageStatusView = (TextView)ret.findViewById(R.id.txtMessageStatusView); // Create listener for the buttons btn_help = (Button)ret.findViewById(R.id.btn_help); btn_help.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { btnHelpClick(); } }); btn_exit = (Button)ret.findViewById(R.id.btn_exit); btn_exit.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { btnExitClick(); } }); btn_retry = (Button)ret.findViewById(R.id.btn_retry); btn_retry.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { btnRetryClick(); } }); btn_list = (Button)ret.findViewById(R.id.btn_list); btn_list.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { btnListClick(); } }); // Initiate the context and wifiAdmin if(context == null || mwifiAdmin == null) setVariables(getContext()); // Start buttons Enable property // False for Help // True for Retry setButtonsConfig(false); // Starts Handlers to handler thread's responses handlerMain = new MainActivityHandler(context); msgHandler = new WiFlyMessageHandler(context); // Start the connection for the Wi-Fi startThread(); return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
Start the thread to connect to the WiFi
public void startThread(){ String message = "Connecting to RescueNet...Please Wait"; showProgressDialog(message); connectionThread = new ConnectionThread(mwifiAdmin, handlerMain); connectionThread.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n this.configureWiFi();\n\n // Conecto con la red WiFi\n this.connectWiFi();\n\n }", "private void createAndStartConnectionThread() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n boolean success = webSocketConnection.createAndConnectTCPSocket();\n if (success) {\n webSocketConnection.startConnection();\n }\n } catch (Exception e) {\n synchronized (globalLock) {\n if (isRunning) {\n webSocketConnection.closeInternal();\n\n onException(e);\n\n if (e instanceof IOException && automaticReconnection) {\n createAndStartReconnectionThread();\n }\n }\n }\n }\n }\n }).start();\n }", "public void startConnectThread(String ipAddr) {\n \t\tThread thread = new Thread(new Connection(ipAddr));\n \t\tthread.start();\n \t\tthreads.add(thread);\n \t}", "public void Connect() {\n run = new Thread(\"Connect\") {\n @Override\n public void run() {\n running = true;\n try {\n server = new ServerSocket(9080);\n waitingForConnection();\n } catch (IOException ex) {\n Logger.getLogger(Dashboard.class\n .getName()).log(Level.SEVERE, null, ex);\n }\n }\n };\n run.start();\n }", "public void connectWiFi() {\n\n // Agrego la red para poder conectarme\n conf.networkId = wifi.addNetwork(conf);\n if (conf.networkId == -1) {\n Log.i(\"#FSEM# SERVICE\", \"Fallo addNetwork\");\n return;\n }\n\n // Receiver para cambio de estado de WIFI\n IntentFilter intentFilter = new IntentFilter(WifiManager.NETWORK_STATE_CHANGED_ACTION);\n intentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION);\n\n context.registerReceiver(this, intentFilter);\n\n // Mientras haya otra conexión con algun semaforo, espero a que se termine.\n while (SemComunication.staticState == StaticState.CONECTADO) {\n Log.i(\"#FSEM# SERVICE\", \"Me quiero conectar a \" + this.conf.SSID\n + \", pero sigue conectado a otro semaforo: \" + SemComunication.currentSSID);\n // Obligo a desconectarse.\n wifi.disconnect();\n SystemClock.sleep(1000);\n }\n\n // Me conecto con la red que quiero, y cuando lo logre\n // se ejecuta el receiver anterior\n wifi.disconnect();\n Log.i(\"#FSEM# SERVICE\", \"Me intento conectar con \" + (this.SSID));\n wifi.enableNetwork(this.conf.networkId, true);\n wifi.reconnect();\n SemComunication.staticState = StaticState.CONECTADO;\n SemComunication.networkId = this.conf.networkId;\n SemComunication.currentSSID = this.SSID;\n }", "protected void startConnect() {\n if (tcp) {\n connection = new TCPConnection(this);\n } else {\n connection = new UDPConnection(this, udpSize);\n }\n connection.connect(remoteAddr, localAddr);\n }", "@Override\n\t \t\t\t\tpublic void run() {\n\t \t\t\t\t\tString connectivity_context = Context.WIFI_SERVICE;\n\t \t\t\t\t\tfinal WifiManager wifi = (WifiManager) getSystemService(connectivity_context); \n\t \t\t\t\t\tif (wifi.isWifiEnabled()) {\n\t \t\t wifi.startScan();\n\t \t\t\t\t\t}\n\t \t\t\t\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (needAutoConnect(addr)) {\n\t\t\t\t\t\tmBleApi.connect(addr);\n\t\t\t\t\t}\n\t\t\t\t}", "public void run() {\n\t\t\tbtAdapter.cancelDiscovery();\n\n\t\t\ttry {\n\t\t\t\t// Connect the device through the socket. This will block\n\t\t\t\t// until it succeeds or throws an exception\n\t\t\t\tmmSocket.connect();\n\t\t\t} catch (IOException connectException) {\n\t\t\t\t// Unable to connect; close the socket and get out\n\t\t\t\ttry {\n\t\t\t\t\tmmSocket.close();\n\t\t\t\t} catch (IOException closeException) { }\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Do work to manage the connection (in a separate thread)\n\t\t\tmHandler.obtainMessage(SUCCESS_CONNECT, mmSocket).sendToTarget();\n\t\t\tisConnected = true;\n\t\t\tConnectedThread connectedThread = new ConnectedThread((BluetoothSocket) mmSocket);\n\n\t\t}", "public void run() {\n mBluetooth.cancelDiscovery();\n\n try {\n // Connect the device through the socket. This will block\n // until it succeeds or throws an exception\n mmSocket.connect();\n } catch (IOException connectException) {\n // Unable to connect; close the socket and get out\n try {\n mmSocket.close();\n } catch (IOException closeException) { }\n return;\n }\n\n // Do work to manage the connection (in a separate thread)\n connectedSocket(mmSocket);\n }", "void start() {\n this.wsThread.start();\n this.wrThread.start();\n }", "public void run() {\n mBluetoothAdapter.cancelDiscovery();\n boolean success = false;\n try {\n\n // Connect the device through the socket. This will block\n // until it succeeds or throws an exception\n\n if(!mmSocket.isConnected()) {\n mmSocket.connect();\n success = true;\n }\n } catch (IOException e) {\n\n }\n\n if(mmSocket!=null){\n MainActivity.this.runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n Toast.makeText(MainActivity.this, \"successful\", Toast.LENGTH_SHORT).show();\n\n }\n });\n\n // Do work to manage the connection (in a separate thread)\n manageConnectedSocket(mmSocket);\n }\n }", "public synchronized void startConnection ()\r\n\t{\r\n \t\tsynchronized (this)\r\n \t\t{\r\n \t\t\tif (_roboCOM!=null) return;\r\n\t\t\t\r\n\t\t\tuitoken++;\r\n\t\t\t_roboCOM = new TCPClient (MsgQueue,cm,uitoken);\r\n\r\n\t\t\t// debug parameters\r\n\t\t\t_roboCOM.msgHello=\"Start Connection ACCE\";\r\n\t\t\t\t\t\t\t\r\n\t \t \tnew Thread (_roboCOM).start();\r\n \t\t}\r\n\t}", "public void autoConnect() {\n Log.i(TAG, \"HERE AUTOCONNECT\");\n connect(staticIp, staticPort);\n }", "public void connect() {\n synchronized (globalLock) {\n if (isRunning) {\n throw new IllegalStateException(\"WebSocketClient is not reusable\");\n }\n\n this.isRunning = true;\n createAndStartConnectionThread();\n }\n }", "private void connectTo(@NonNull final String SSID, @Nullable final String password, @NonNull final WIFI_ENCRYPTION encryption, @NonNull final Promise promise) {\n if(password != null || (password != null && !password.isEmpty())) {\n promise.reject(\"not_supported_yet\", \"This feature is not properly implemented yet. Please implement it for the android 10 tree and properly test before usage.\");\n }\n\n if (isAndroidTenOrLater()) {\n final HandlablePromise handlablePromise = new HandlablePromise(promise);\n\n WifiManager wifi = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n if(!wifi.isWifiEnabled()) {\n handlablePromise.reject(\"wifi_not_enabled\", \"Wifi is disabled on the phone\");\n return;\n }\n\n final WifiNetworkSpecifier wifiNetworkSpecifier = new WifiNetworkSpecifier.Builder()\n .setSsid(SSID)\n .build();\n\n final NetworkRequest networkRequest = new NetworkRequest.Builder()\n .addTransportType(NetworkCapabilities.TRANSPORT_WIFI)\n .removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)\n .setNetworkSpecifier(wifiNetworkSpecifier)\n .build();\n\n final ConnectivityManager connectivityManager = (ConnectivityManager) context.getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivityManager == null) {\n handlablePromise.reject(\"connectivityManagerError\", \"Could not get the ConnectivityManager (SystemService).\");\n return;\n }\n\n networkCallback = new ConnectivityManager.NetworkCallback() {\n @Override\n public void onAvailable(@NonNull Network network) {\n super.onAvailable(network);\n }\n\n @Override\n public void onBlockedStatusChanged(@NonNull Network network, boolean blocked) {\n super.onBlockedStatusChanged(network, blocked);\n if (blocked) {\n handlablePromise.reject(\"connectNetworkFailed\", String.format(\"Connection was blocked, could not connect to network with SSID: %s\", SSID));\n } else {\n handlablePromise.resolve(SSID);\n }\n }\n\n @Override\n public void onLost(@NonNull Network network) {\n super.onLost(network);\n handlablePromise.reject(\"connectNetworkFailed\", String.format(\"Connection was lost with network with SSID: %s\", SSID));\n }\n\n @Override\n public void onUnavailable() {\n super.onUnavailable();\n handlablePromise.reject(\"connectNetworkFailed\", String.format(\"Timeout or user cancelled connecting to network with SSID: %s\", SSID));\n }\n };\n connectivityManager.requestNetwork(networkRequest, networkCallback, 60000);\n return;\n }\n\n // create network\n final WifiConfiguration wifiConfiguration = new WifiConfiguration();\n wifiConfiguration.SSID = formatWithBackslashes(SSID);\n\n switch (encryption) {\n case WPA2:\n stuffWifiConfigurationWithWPA2(wifiConfiguration, password);\n break;\n case WEP:\n stuffWifiConfigurationWithWEP(wifiConfiguration, password);\n break;\n case NONE:\n stuffWifiConfigurationWithoutEncryption(wifiConfiguration);\n break;\n }\n\n // add to wifi manager\n final WifiManager wifiManager = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n if (wifiManager == null) {\n promise.reject(\"wifiManagerError\", \"Could not get the WifiManager (SystemService).\");\n return;\n }\n\n int networkId = wifiManager.addNetwork(wifiConfiguration);\n if (networkId == ADD_NETWORK_FAILED) {\n networkId = checkForExistingNetwork(wifiConfiguration);\n if (networkId == ADD_NETWORK_FAILED) {\n promise.reject(\"addOrUpdateFailed\", String.format(\"Could not add or update network configuration with SSID %s.\", SSID));\n }\n }\n\n // wifiManager.saveConfiguration(); is not needed as this is already done by addNetwork or removeNetwork\n\n final boolean disconnect = wifiManager.disconnect();\n if (!disconnect) {\n promise.reject(\"disconnectFailed\", String.format(\"Disconnecting network with SSID %s failed (before connect).\", SSID));\n }\n\n final boolean enableNetwork = wifiManager.enableNetwork(networkId, true);\n if (enableNetwork) {\n // Verify the connection\n final IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);\n final BroadcastReceiver receiver = new BroadcastReceiver() {\n @Override\n public void onReceive(final Context context, final Intent intent) {\n final NetworkInfo info = intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO);\n if (info != null && info.isConnected()) {\n final WifiInfo wifiInfo = wifiManager.getConnectionInfo();\n String ssid = wifiInfo.getSSID();\n // This value should be wrapped in double quotes, so we need to unwrap it.\n if (ssid.startsWith(\"\\\"\") && ssid.endsWith(\"\\\"\")) {\n ssid = ssid.substring(1, ssid.length() - 1);\n }\n context.unregisterReceiver(this);\n if (ssid.equals(SSID))\n promise.resolve(null);\n else\n promise.reject(\"connectNetworkFailed\", String.format(\"Could not connect to network with SSID: %s\", SSID));\n }\n }\n };\n context.registerReceiver(receiver, intentFilter);\n // Timeout if there is no other saved WiFi network reachable\n ScheduledThreadPoolExecutor exec = new ScheduledThreadPoolExecutor(1);\n exec.schedule(new Runnable() {\n public void run() {\n promise.reject(\"connectNetworkFailed\", String.format(\"Timeout connecting to network with SSID: %s\", SSID));\n }\n }, 8, TimeUnit.SECONDS);\n } else {\n promise.reject(\"connectNetworkFailed\", String.format(\"Could not enable network with SSID: %s\", SSID));\n }\n }", "public synchronized void start() {\n if (D) Log.d(TAG, \"start\");\n\n // Cancel any thread attempting to make a connection\n if (mConnectThread != null) {mConnectThread.cancel(); mConnectThread = null;}\n\n // Cancel any thread currently running a connection\n if (mConnectedThread != null) {mConnectedThread.cancel(); mConnectedThread = null;}\n\n setState(STATE_LISTEN);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tgotoConnectActivity();\n\t\t\t}", "public void start() {\n\t\tmyThread = new Thread(this); myThread.start();\n\t}", "private void createAndStartNetworkCheckThread(final Shell shell,\n final ToolItem widgetItem, final Image off, final Image on) {\n new Thread(new Runnable() {\n \t\t\tpublic void run() {\n \t\t\t\twhile (!stop) {\n \t\t\t\t\ttry {\n \t\t\t\t\t\tThread.sleep(5000);\n \t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\tlog.error(e.getMessage());\n \t\t\t\t\t}\n \t\t\t\t\tif (!shell.isDisposed()) {\n \t\t\t\t\t\ttoolbar.getDisplay().asyncExec(new Runnable() {\n \t\t\t\t\t\t\tpublic void run() {\n \t\t\t\t\t\t\t\tif (isInternetReachable()) {\n \t\t\t\t\t\t\t\t\tlog.info(\"Connection - ON\");\n \t\t\t\t\t\t\t\t\twidgetItem.setImage(on);\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\tlog.info(\"Connection - OFF\");\n \t\t\t\t\t\t\t\t\twidgetItem.setImage(off);\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}\n \t\t}).start();\n }", "@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)\n public void run() {\n\n mBluetoothAdapter.cancelDiscovery();\n Log.i(\"Client\", \"trying to connect to server\");\n try {\n mSocket.connect();\n Log.i(\"Client\", \"connected\");\n\n isConnected = mSocket.isConnected();\n\n } catch (IOException connectException) {\n Log.i(\"Client\", \"fail io connect\");\n isConnected = false;\n\n try {\n mSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return;\n }\n //manageConnectedSocket(mSocket);\n if (isConnected()) {\n mTransferThread = new TransferThread(mSocket);\n mTransferThread.start();\n }else{\n makeToast(\"Please try connecting again\",Toast.LENGTH_LONG);\n }\n }", "public void run() {\r\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\r\n adapter.cancelDiscovery();\r\n try {\r\n btSocket.connect();\r\n Log.d(\"TAG\", \"Device connected\");\r\n isConnected = true;\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n SharedPreferences.Editor edit = preferences.edit();\r\n edit.putBoolean(\"Connection\", isConnected);\r\n edit.apply();\r\n handler.obtainMessage(CONNECTING_STATUS, 1, -1).sendToTarget();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n try {\r\n isConnected = false;\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n SharedPreferences.Editor edit = preferences.edit();\r\n edit.putBoolean(\"Connection\", isConnected);\r\n edit.apply();\r\n btSocket.close();\r\n handler.obtainMessage(CONNECTING_STATUS, -1,-1).sendToTarget();\r\n } catch (IOException f) {\r\n f.printStackTrace();\r\n }\r\n return;\r\n }\r\n //Perform work from connection in a separate thread\r\n connectedThread = new ConnectedThread(btSocket);\r\n connectedThread.run();\r\n }", "public void start() {\n gateway.openConnection();\n }", "public void start()\n\t{\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "public void onStart() {\n\t\tnew Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tinitConnection();\n\t\t\t\treceive();\n\t\t\t}\n\t\t}.start();\n\t}", "public void start() {\n\t\t\n\t\ttry {\n\t\t\tmainSocket = new DatagramSocket(PORT_NUMBER);\n\t\t}\n\t\tcatch(SocketException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\t//Lambda expression to shorten the run method\n\t\tThread serverThread = new Thread( () -> {\n\t\t\tlisten();\n\t\t});\n\t\t\n\t\tserverThread.start();\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttry{\n//\t\t\t\tdevAddr = devices.get(position).split(\"\\\\|\")[1];\n//\t\t\t\tbtAdapt.cancelDiscovery();\n//\t\t\t\t\n//\t\t\t\tbtSocket = btAdapt.getRemoteDevice(devAddr).createRfcommSocketToServiceRecord(uuid);\n//\t\t\t\tbtSocket.connect();Log.e(tag, \"connected\");\n\t\t\t\tInetAddress severInetAddr=InetAddress.getByName(\"120.105.129.108\");\n\t\t\t\tWifisocket = new Socket(severInetAddr, 8101);\n\t\t\t\t\n\t\t\t\tsynchronized (this) {\n//\t\t\t\t\tbtIn = btSocket.getInputStream();\n//\t\t\t\t\tbtOut = btSocket.getOutputStream();\n\t\t\t\t\tbtIn = Wifisocket.getInputStream();\n\t\t\t\t\tbtOut = Wifisocket.getOutputStream();\n\t\t\t\t\tLog.e(tag, \"connected\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tThread.sleep(100);\n\t\t\t\tsetUpAsForeground(\"Wifi已連線\");\n\t\t\t} catch( IOException | InterruptedException e ){\n\t\t\t\te.printStackTrace();\n\t\t\t\ttry{\n//\t\t\t\t\tbtSocket.close();\n//\t\t\t\t\tWifisocket.close();\n\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\tsetUpAsForeground(\"Wifi未連線\");\n\t\t\t\t\tLog.i(\"exiconne\", \"bluetoohservice bye!;\");\n\t\t\t\t} catch(InterruptedException e1){\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tLog.i(\"exiconne\", \"bluetoohservice bye!;\");\n\t\t\t\t}\n//\t\t\t\tbtSocket = null;\n\t\t\t\tWifisocket = null;\n\t\t\t\tmBTState = BTState.stopped;\n\t\t\t\tBluetoothConnect.mBTstate = BTstate.opened;\n\t\t\t}\n\n\t\t}", "public void startConnection(){\n startBTConnection(mBTDevice,MY_UUID_INSECURE);\n }", "private void connectToServer(String ip)\n {\n try\n {\n if(!ip.equals(\"\"))\n {\n s = new Socket(ip, 3000);\n }\n\n else\n {\n s = new Socket(\"10.0.0.143\", 3000);\n }\n\n output = new BufferedWriter(new OutputStreamWriter(s.getOutputStream()));\n output.write(\"Android Connected\");\n output.flush();\n\n // new CommuTask().execute();\n\n //starting the thread\n communication.start();\n // s.close();\n }\n\n catch(UnknownHostException e)\n {\n e.printStackTrace();\n try {\n s.close();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n\n catch(IOException e)\n {\n e.printStackTrace();\n try {\n s.close();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n\n }", "public void initMultiPlayer() {\r\n\t\tnew ConnectThread().start();\r\n\t}", "private synchronized void start()\n\t{\n\t\tregisterReceiver(\n\t\t\t\tmConnectivityReceiver,\n\t\t\t\tnew IntentFilter( ConnectivityManager.CONNECTIVITY_ACTION )\n\t\t);\n\n\t\ttry\n\t\t{\n\t\t\t// Show notification in status bar\n\t\t\tshowNotification();\n\t\t} catch ( Exception e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n public void run()\n {\n if (nsServer == null)\n {\n Log.e((nsServer==null)+\"\");\n connectNS(ip, port);\n }\n else\n {\n Log.e(nsServer.toString());\n connectNS(nsServer.getIp(), nsServer.getPort());\n }\n }", "private void start(){\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }", "public void startConnection(){\n EditText editText = (EditText) findViewById(R.id.ipAddress);\n final String ipAddress = editText.getText().toString();\n new Thread(new Runnable() {\n public void run() {\n try {\n System.out.println(ipAddress);\n Socket client = new Socket(ipAddress, 5000);\n System.out.println(\"connected\");\n OutputStream outToServer = client.getOutputStream();\n DataOutputStream out = new DataOutputStream(outToServer);\n EditText userNameText = (EditText) findViewById(R.id.UserName);\n final String userName = userNameText.getText().toString();\n out.writeUTF(userName);\n InputStream inFromServer = client.getInputStream();\n BufferedReader in = new BufferedReader(new InputStreamReader(inFromServer));\n SocketSingleton.setSocket(client);\n while (!in.ready()) {\n String readline = in.readLine();\n System.out.println(readline);\n if (\"success\".equals(readline)){\n Intent intent = new Intent(ConnectToComputer.this, RemoteActivity.class);\n startActivity(intent);\n } else {\n System.out.println(in.readLine());\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }).start();\n }", "public void run() {\n\t\t\tbluetooth_adapter.cancelDiscovery();\r\n\t\t\tif(socket == null) return;\r\n\t\t\t\r\n\t\t\t// Connect the device through the socket. This will block\r\n\t\t\t// until it succeeds or throws an exception\r\n\t\t\ttry {\r\n\t\t\t\tsocket.connect();\r\n\t\t\t\tdata_thread = new Data_Thread(socket);\r\n\t\t\t\tdata_thread.start();\r\n\t\t\t\t//System.out.println(\"==============> Bluetooth Connected <===================\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsocket.close();\r\n\t\t\t\t} catch (IOException closeException) {\r\n\t\t\t\t\tcloseException.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tString message = \"Error: \" + e;\r\n\t\t\t\tif(device != null) {\r\n\t\t\t\t\tmessage += \" Device: \"+device.getName();\r\n\t\t\t\t}\r\n\t\t\t\tbluetooth_show_message(message);\r\n\t\t\t}\r\n\t\t\r\n\t\t\tclient_connect_thread = null;\r\n\t\t}", "public void start() {\n if (!started) {\n thread = new Thread(this);\n thread.start();\n started = true;\n }\n }", "public void doConnect() {\n Debug.logInfo(\"Connecting to \" + client.getServerURI() + \" with device name[\" + client.getClientId() + \"]\", MODULE);\n\n IMqttActionListener conListener = new IMqttActionListener() {\n\n public void onSuccess(IMqttToken asyncActionToken) {\n Debug.logInfo(\"Connected.\", MODULE);\n state = CONNECTED;\n carryOn();\n }\n\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n ex = exception;\n state = ERROR;\n Debug.logError(\"connect failed\" + exception.getMessage(), MODULE);\n carryOn();\n }\n\n public void carryOn() {\n synchronized (caller) {\n donext = true;\n caller.notifyAll();\n }\n }\n };\n\n try {\n // Connect using a non-blocking connect\n client.connect(conOpt, \"Connect sample context\", conListener);\n } catch (MqttException e) {\n // If though it is a non-blocking connect an exception can be\n // thrown if validation of parms fails or other checks such\n // as already connected fail.\n state = ERROR;\n donext = true;\n ex = e;\n }\n }", "void tryConnection(String mac)\n {\n if (outstanding_connect != null || open_connection != null) {\n return;\n }\n \n Log.d(Constants.LOG_TAG, \"Attempting to connect to \" + mac);\n \n BluetoothDevice dev = bt_adapter.getRemoteDevice(mac);\n outstanding_connect = new ConnectThread(dev, handler);\n outstanding_connect.start();\n \n }", "@Override\n public void run() {\n new ConnectBT().execute();\n }", "public void start() {\n\t\tai = new Thread(this);\n\t\tai.start();\n\t}", "public void startThread() {\n\t\tpm = (PowerManager) getSystemService(Context.POWER_SERVICE);\n\t\twl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, \"My Tag\");\n\t\twl.acquire();\n\t\tthread = new FrameworkThread((Context) this);\n\t\tthread.start();\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif (!establishVpn())\n\t\t\t{\n\t\t\t\taddLog(\"Failed to establish the VPN\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconnectTunnel(getLocalServerAddress(dsp.getString(\"local_port\", \"1080\")), getLocalServerAddress(dsp.getString(\"udp_port\", \"7300\")), true);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\n\t\t}\n\t}", "@Override\n public void run() {\n boolean isOk = mBluetoothLeService.connect(getDeviceName());// 根据地址通过后台services去连接BLE蓝牙\n L.d(reTryCount+\" -----connect ok ? >\"+ isOk);\n if(!isOk) {\n reTryConected();\n }\n }", "public void initiateConnection() {\n\t\tif (Settings.getRemoteHostname() != null) {\n\t\t\ttry {\n\t\t\t\toutgoingConnection(new Socket(Settings.getRemoteHostname(), Settings.getRemotePort()));\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"failed to make connection to \" + Settings.getRemoteHostname() + \":\"\n\t\t\t\t\t\t+ Settings.getRemotePort() + \" :\" + e);\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t}", "public void start() {\n\n\t\tisRunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\n\t}", "private void testConnection(){ \n\t\t\tconnection=false;\n\t\t\tip = ipfield.getText().toString();\n\t\t\tLog.d(null,\"ip is \"+ip);\n\t\t\tif(ip.equals(\"\")) \n\t\t\t\tToast.makeText(getApplicationContext(), \"Please Enter an IP Address\", Toast.LENGTH_SHORT).show();\n\t\t\telse{\n\t\t\t\tRunnable runnable = new Runnable(){\n\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tSocket s = new Socket(ip,6969);\n\t\t\t\t\t\t\t\ts.close();\n\t\t\t\t\t\t\t\tconnection=true;\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 catch (UnknownHostException e1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tLog.d(null, \"Wrong ip\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\tLog.d(null, \"Wrong ip\");\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread thread = new Thread(runnable);\n\t\t\t\tthread.start();\n\t\t\t}\n\t}", "public void start ()\n {\n Thread th = new Thread (this);\n // start this thread\n th.start ();\n\n }", "private void startWiperService()\n {\n\n /* 1.Initialize Native routine to set function pointers*/\n bWiperEnabled = native_wiper_init();\n if(Config.LOGD) Log.d(TAG,\"Wiper enabled \"+bWiperEnabled);\n /* Start New Wiper Thread*/\n if (bWiperEnabled)\n {\n mReceiver = new WiFiScanReceiver();\n // run event listener thread while we are enabled\n mWiperThread = new WiperBackgroundThread();\n mWiperThread.start();\n mHandler = new WiperMessageHandler(getMainLooper());\n\n }\n }", "public void toThread() {\n\t\t// TODO Auto-generated method stub\n\t\tnew Thread(this).start();\n\t\tclient.start();\n\t}", "public void connect() throws IOException {\n\t\tsocket = new Socket(host, port);\n\t\tin = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\tout = new PrintWriter(new OutputStreamWriter(socket.getOutputStream()));\n\t\tconnected = true;\n\t\texecutor = Executors.newScheduledThreadPool(5);\n\t}", "public void start() {\n thread = new Thread(this);\n thread.setPriority(Thread.MIN_PRIORITY);\n thread.start();\n }", "public void start() {\r\n isRunning = true;\r\n Thread thread = new myThread();\r\n thread.start();\r\n }", "public void startConnectionToMSSQL() {\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n\n connectionClassMSSQL = new ConnectionClassMSSQL(); // Connection Class MS SQL Initialization\n connectionMSSQL = connectionClassMSSQL.CONN(ActivityScreans.this); //Connection Object, if connection is not conected than return NULL\n\n Log.d(TAG, \"startConnectionToMSSQL, connectionMSSQL: \" + connectionMSSQL);\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n if (connectionMSSQL == null) { // if is NO connection\n Log.d(TAG, \"startConnectionToMSSQL: connection NOT CONNECTED\");\n Toast.makeText(ActivityScreans.this, \"MS SQL brak połączenia\", Toast.LENGTH_LONG).show();\n\n // if is no connection than try again connect after C.WAITING_TIME\n Handler handler = new Handler();\n long waitTime = C.WAITING_TIME * 1000; // waitTime\n handler.postDelayed(new Runnable() {\n public void run() {\n\n // start Connection To MSSQL after waitTime\n startConnectionToMSSQL();\n }\n }, waitTime); // delay\n\n } else { // if connection is CONNECTED\n Log.d(TAG, \"startConnectionToMSSQL: connection CONNECTED\");\n isMSSQLConnected = true; // if change for true than can show views\n linLayScreansConnectingMSSQL.setVisibility(View.GONE); // hide view MS SQL connection ...\n showViewsIfAllConnectionsAreConnected(); // func to start main view\n }\n }\n });\n }\n }).start();\n }", "public synchronized void start() {\n if (!this.isRunning) {\n isRunning = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "private void ConnectWifi(String ssid, String password) {\n\n WifiManager wifiManager = (WifiManager)getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n\n WifiConfiguration wifiConfiguration = new WifiConfiguration();\n wifiConfiguration.SSID = \"\\\"\" + ssid + \"\\\"\";\n wifiConfiguration.preSharedKey = \"\\\"\" + password + \"\\\"\";\n\n wifiManager.addNetwork(wifiConfiguration);\n\n List<WifiConfiguration> list = wifiManager.getConfiguredNetworks();\n for( WifiConfiguration i : list ) {\n if(i.SSID != null && i.SSID.equals(\"\\\"\" + ssid + \"\\\"\")) {\n\n wifiManager.disconnect();\n wifiManager.enableNetwork(i.networkId, true);\n netId = i.networkId;\n wifiManager.reconnect();\n\n break;\n }\n }\n\n\n }", "private void scanWifi() {\n Toast.makeText(this,getString(R.string.toast_scanning),Toast.LENGTH_SHORT).show();\n //Android 9.0 将 WiFiManager 的 startScan() 方法标为了废弃,\n // 前台应用 2 分钟内只能使用 4 次startScan(),后台应用 30 分钟内只能调用 1次 startScan(),\n // 否则会直接返回 false 并且不会触发扫描操作。\n mWifiManager.startScan();\n //Log.d(\"startscan\", String.valueOf(mWifiManager.startScan()) );\n mScanResults = mWifiManager.getScanResults();\n //Log.d(\"mScanResults\", String.valueOf(mScanResults.size()));\n mListView.setAdapter(new WifiAdapter(this,mScanResults));\n }", "@Override\n\tpublic void configureWifi(String ssid, String pwd) throws RemoteException {\n\t model.execute(\"CONNECT\", ssid, pwd);\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tLog.v(TAG,\"connect to server...\");\n\t\t\t\tsocket=new Socket(\"140.116.246.200\",4000+id);\n\t\t\t\tout=socket.getOutputStream();\n\t\t\t\tin=socket.getInputStream();\n\t\t\t\tLog.v(TAG,\"connect!!\");\n\t\t\t\n\t\t\t\tsendData(\"ask#\");\n\t\t\t\tUIHr.post(refreshUI); \t\n\t\t\t\tresult=new Integer(readData());\n\t\t\t\tUIHr.post(refreshUI); \t\t\n\t\t\t\tsendData(\"over#\");\n\t\t\t\tsocket.close();\n\t\t\t} catch (UnknownHostException e) {e.printStackTrace();} \n\t\t\tcatch (IOException e) {e.printStackTrace();}\n\t\t}", "public void startThread(){\n\t\trunning = true;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t}", "public void connect()\n {\n \tLog.d(TAG, \"connect\");\n \t\n \tif(!this.isConnected ) {\n mContext.bindService(new Intent(\"com.google.tungsten.LedService\"), mServiceConnection, \n \t\tContext.BIND_AUTO_CREATE);\n \t}\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() {\n if (!running) {\n running = true;\n thread = new Thread(this);\n thread.start();\n }\n }", "public synchronized void start() {\r\n\t\tthread = new Thread(this);\r\n\t\tthread.start();\r\n\t\tisRunning = true;\r\n\t }", "public void start() {\n\t\tif(t == null) {\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t}\n\t}", "public void connectRobot(View view) {\n Button connectButton = (Button) view;\n LinearLayout robotInfo = (LinearLayout) findViewById(R.id.robotInfo);\n if (networkThread == null || !networkThread.connected()) {\n // Get IP from dropdown list\n Spinner dropdown = (Spinner) findViewById(R.id.robotsDropdown);\n String IP = (String) dropdown.getSelectedItem();\n if (IP == null) {\n return;\n }\n // Start thread with robot connection\n networkThread = NetworkThread.getInstance();\n networkThread.setIP(IP);\n networkThread.setHandler(handler);\n new Thread(networkThread).start();\n\n // Change button text and show robot info if connected\n if (networkThread != null && networkThread.connected()) {\n // Get info from the robot\n JSONObject json = new JSONObject();\n try {\n json.put(\"type\", \"info\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n networkThread.addToSend(json);\n\n connectButton.setText(\"Disconnect\");\n robotInfo.setVisibility(View.VISIBLE);\n }\n } else {\n // Close thread\n if (networkThread != null) {\n networkThread.closeThread();\n }\n // Change button text and hide robot info\n connectButton.setText(\"Connect\");\n robotInfo.setVisibility(View.INVISIBLE);\n }\n }", "public void run() {\n mBluetoothAdapter.cancelDiscovery();\n \n try {\n // Connect the device through the socket. This will block\n // until it succeeds or throws an exception\n mmSocket.connect();\n while(!mmSocket.isConnected()){}\n Painter.paintSocketConnected = true;\n Log.d(tag, \"\" + mmSocket.isConnected());\n mOutputStream = mmSocket.getOutputStream(); \n mInputStream = mmSocket.getInputStream();\n\t\t\t\n } catch (IOException connectException) {\n try {\n\t\t\t\t\tmmSocket.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n return;\n }\n }", "public void start() {\r\n\t\trunning = true;\r\n\t\tt = new Thread(this);\r\n\t\tt.start();\r\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\tThread thisThread = currentThread();\n\t\t\ttry {\n\t\t\t\tLog.i(\"con\", \"worked3\");\n\t\t\t\tconnectToServer();\n\t\t\t\tif (connected) {\n\t\t\t\t\tsetUpStreams();\n\t\t\t\t\tsendProfile();\n\t\t\t\t\tLog.i(\"con\", \"worked8\");\n\t\t\t\t\twhile (blinker == thisThread) {\n\t\t\t\t\t\tstartListening();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tLog.e(\"cl\", \"Found IO Exception!: \" + e);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tLog.e(\"cl\", \"Found class not found exception!: \" + e);\n\t\t\t}\n\n\t\t}", "public void start() throws Exception {\n\n Location location = (locationManager != null && locationManager.getLocation() != null) ? locationManager.getLocation() : null;\n\n if(location == null)\n location = new NetworkNodeCommunicationDeviceLocation(\n 0.0 ,\n 0.0,\n 0.0 ,\n 0 ,\n 0.0 ,\n System.currentTimeMillis(),\n LocationSource.UNKNOWN\n );\n\n NodeContext.add(NodeContextItem.LOCATION, location);\n\n this.initialize();\n LOG.info(\"Starting the internal server\");\n this.server.start();\n LOG.info(\"Server URI = \" + this.server.getURI());\n this.server.join();\n\n\n\n }", "void start() {\n\tsleepThread = new Thread(this);\n\tsleepThread.start();\n }", "@Override\n public void run() {\n // Synchronize against disconnecting while the service is being used in the OpenGL\n // thread or in the UI thread.\n synchronized (WiFiAugmentedRealityActivity.this) {\n try {\n TangoSupport.initialize();\n mConfig = setupTangoConfig(mTango);\n mTango.connect(mConfig);\n startupTango();\n mIsConnected = true;\n } catch (TangoOutOfDateException e) {\n Log.e(TAG, getString(R.string.exception_out_of_date), e);\n } catch (TangoErrorException e) {\n Log.e(TAG, getString(R.string.exception_tango_error), e);\n } catch (TangoInvalidException e) {\n Log.e(TAG, getString(R.string.exception_tango_invalid), e);\n }\n }\n }", "public void start(){\n thread.start();\n }", "@Override\n public void run() {\n // Synchronize against disconnecting while the service is being used in the OpenGL\n // thread or in the UI thread.\n synchronized (WiFiAugmentedRealityActivity.this) {\n try {\n TangoSupport.initialize();\n mConfig = setupTangoConfig(mTango);\n mTango.connect(mConfig);\n startupTango();\n mIsConnected = true;\n } catch (TangoOutOfDateException e) {\n Log.e(TAG, getString(R.string.exception_out_of_date), e);\n } catch (TangoErrorException e) {\n Log.e(TAG, getString(R.string.exception_tango_error), e);\n } catch (TangoInvalidException e) {\n Log.e(TAG, getString(R.string.exception_tango_invalid), e);\n }\n }\n }", "@Override\n public void run() {\n super.run();\n Log.i(TAG, \"BlueTooth Start\");\n _BluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (_BluetoothAdapter != null){\n if(!_BluetoothAdapter.isEnabled())\n _BluetoothAdapter.enable();\n else{\n _BluetoothDevice = _BluetoothAdapter.getRemoteDevice(strAddress_BT_UART);\n if (_BluetoothDevice != null){\n Log.i(TAG, \"Starting BtConnect\");\n BtConnect BC = new BtConnect(_BluetoothDevice);\n BC.start();\n }\n }\n }\n }", "private void startThread()\n {\n if (workerThread == null || !workerThread.isLooping())\n {\n workerThread = new LiveViewThread(this);\n workerThread.start();\n }\n }", "public void start() {\n thread = new Thread(this);\n thread.start();\n System.out.println(\"---\\t Ober \" + naam + \" is gestart.\");\n }", "public void start() {\r\n running = true;\r\n new Thread(this).start();;\r\n }", "public void startListeningForConnection() {\n startInsecureListeningThread();\n }", "public void connect() {\n\t\tint index = shell.getConnectionsCombo().getSelectionIndex();\n\t\tif (profiles.length == 0 || index < 0 || index >= profiles.length) {\n\t\t\tupdateSelection();\n\t\t\treturn;\n\t\t}\n\t\tIConnectionProfile profile = profiles[index];\n\t\tshell.setEnabled(false);\n\t\tnetworkManager.connect(profile, (s, r) -> {\n\t\t\tif (s) {\n\t\t\t\tcompleted = true;\n\t\t\t\tclose();\n\t\t\t} else {\n\t\t\t\tplugin.sync(() -> {\n\t\t\t\t\tMessageBox messageBox = new MessageBox(shell.isDisposed() ? null : shell, SWT.ICON_ERROR);\n\t\t\t\t\tmessageBox.setMessage(\"Failed to connect!\\n\" + r);\n\t\t\t\t\tmessageBox.open();\n\t\t\t\t\tshell.setEnabled(true);\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}", "public static void connect() {\n \t\tconnPool.start();\n \t}", "@SuppressWarnings(\"static-access\")\r\n\t\t@Override\r\n\t\tpublic void run() {\r\n\t\t\tsetName(C_THREAD);\r\n\t\t\tif(controller == MultiController.TCP) {\r\n\t\t\t\tnetworkHandling = new NetworkHandling(tcpHandler);\r\n\t\t\t\tnetworkHandling.establishConnection();\r\n\t\t\t\t\r\n\t\t\t\ttry { \r\n\t\t\t\t\t//Wait until the lock is released - wait for connection\r\n\t\t\t\t\tnetworkHandling.lock.acquire(); \r\n\t\t\t\t} catch (InterruptedException e) { }\r\n\t\t\r\n\t\t\t\tfinished(networkHandling.isConnected());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(controller == MultiController.BLUETOOTH) {\r\n\t\t\t\tbluetoothHandling = new BluetoothHandling(getApplicationContext(),bluetoothHandler);\r\n\t\t\t\tbluetoothHandling.start();\r\n\t\t\t\t\r\n\t\t\t\tIntent intent = new Intent(getApplicationContext(),DeviceListActivity.class);\r\n\t\t\t\tstartActivityForResult(intent, BluetoothHandler.REQUEST_ADDRESS);\r\n\t\t\t\t\r\n\t\t\t\tfinReq = true;\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//Wait until the lock is released - wait for connection\r\n\t\t\t\t\tbluetoothHandling.lock.acquire();\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tfinished(bluetoothHandling.getState() == BluetoothHandling.STATE_CONNECTED);\r\n\t\t\t}\r\n\t\t}", "private void makeBackgroundConnection() {\n connectionPending = true;\n try {\n Thread connectThread = new Thread(this);\n connectThread.start();\n } catch (OutOfMemoryError oome) {\n // Give up on new connection\n }\n }", "private void makeBackgroundConnection() {\n connectionPending = true;\n try {\n Thread connectThread = new Thread(this);\n connectThread.start();\n } catch (OutOfMemoryError oome) {\n // Give up on new connection\n }\n }", "@Override\n public void startThread() {\n Log.d(TAG, \"Starting \" + getName() + \" thread!\");\n if (!started)\n start();\n running = enabled;\n doStartAction();\n }", "public void run() {\n Log.d(\"bluetooth\", \"entrou na thread bluetoothconnect\");\n while (true) {\n try {if(mmServerSocket != null)\n socket = mmServerSocket.accept();\n\n\n } catch (IOException e) {\n break;\n }\n // If a connection was accepted\n if (socket != null) {\n // Do work to manage the connection (in a separate thread)\n //Server server = new Server(socket);\n Log.d(\"bluetooth\", \"socket não está mais null oba\");\n\n if(socket.isConnected()){\n tts.speak(\"Device connected\");\n\n }\n // Server server = new Server(socket);\n //server.initialize(handler);\n //mmServerSocket.close();\n\n\n break;\n }\n }\n }", "private void start() {\r\n\t\tif (running)\r\n\t\t\treturn;\r\n\t\trunning = true;\r\n\t\tthread = new Thread(this);//creates threat to run program on\r\n\t\tthread.start();\r\n\t}", "@Override\n public void run() {\n mBluetoothAdapter.cancelDiscovery();\n try {\n // Connect to the remote device through the socket. This call blocks\n // until it succeeds or throws an exception.\n mmSocket.connect();\n } catch (IOException connectException) {\n cancel();\n return;\n }\n\n onSocketObtained(mmSocket);\n }", "public synchronized void start() {\n\t\tif (running)\n\t\t\treturn;\n\t\tthread = new Thread(this);\n\t\tthread.start();\n\t\trunning = true;\n\t}", "public void Start() {\r\n\t\tthread.run();\r\n\t}", "public void start() {\n // EFFECTS: starts a new thread from this instance.\n (new Thread(instance)).start();\n }", "public void start () {\r\n // Declaras un hilo\r\n Thread th = new Thread (this);\r\n // Empieza el hilo\r\n th.start ();\r\n }", "public void start() {\r\n\t\tisRunning = true;\r\n\t\tnew Thread(this).start();\r\n\t}", "private void requestConnectToWifi(final Wifi wifi, String password) {\n if (wifiManager.getConnectionInfo().getSSID().equals(String.format(\"\\\"%s\\\"\", wifi.getSsid()))) {\n Toast.makeText(this, \"You are already connected to this wi-fi network\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n WifiConfiguration wifiConfiguration = new WifiConfiguration();\n wifiConfiguration.SSID = String.format(\"\\\"%s\\\"\", wifi.getSsid());\n wifiConfiguration.preSharedKey = String.format(\"\\\"%s\\\"\", password);\n\n int netId = -1;\n\n // Check if this network is known\n for (WifiConfiguration conf : wifiManager.getConfiguredNetworks()) {\n if (conf.SSID.equals(String.format(\"\\\"%s\\\"\", wifi.getSsid()))) {\n netId = conf.networkId;\n break;\n }\n }\n\n // If this is new network\n if (netId == -1) {\n netId = wifiManager.addNetwork(wifiConfiguration);\n }\n\n // If failed to add new network\n if (netId == -1) {\n edtPassword.setText(\"\");\n edtPassword.setError(\"Wrong password\");\n edtPassword.requestFocus();\n\n Toast.makeText(this, \"Wrong password! Connect failed to \" + wifi.getWifiName(), Toast.LENGTH_SHORT).show();\n } else {\n connectToWifi(netId);\n\n if (isExist) {\n DataSource.updateWifiData(this, wifi);\n } else {\n DataSource.createWifiData(this, wifi);\n }\n\n registerReceiver(wifiReceiver, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION));\n }\n }", "@Override\r\n public Object connect() {\n if(status()){\r\n //creates thread that checks messages in the network\r\n System.out.println(\"notifying network that connection is good\");\r\n notifyObservers(this);\r\n }\r\n return socket;\r\n }", "public void start(){\n hiloAux = new Thread(this);\n hiloAux.start();\n }", "private void connection() {\n boolean connect;\n try {\n connect = true;\n this.jTextArea1.setText(\"Server starts...\");\n server = new MultiAgentServer(this);\n String ip = \"\";\n int errorBit = 256;\n for (int i = 0; i < server.getIpAddr().length; i++) {\n int currentIP = server.getIpAddr()[i];\n if (currentIP < 0) {\n currentIP += errorBit;\n }\n ip += currentIP + \".\";\n }\n ip = ip.substring(0, ip.length() - 1);\n System.out.println(ip);\n Naming.rebind(\"//\" + ip + \"/server\", server);\n this.jTextArea1.setText(\"Servername: \" + ip);\n this.jTextArea1.append(\"\\nServer is online\");\n } catch (MalformedURLException | RemoteException e) {\n this.jTextArea1.append(\"\\nServer is offline, something goes wrong!!!\");\n connect = false;\n }\n if (dialog.getMusicBox().isSelected()) {\n sl = new SoundLoopExample();\n }\n reconnectBtn.setEnabled(!connect);\n }", "@Override\r\n public void run() {\n\r\n try {\r\n mSock.connect();\r\n } catch (IOException e) {\r\n try {\r\n mSock.close();\r\n } catch (IOException e1) {\r\n Log.e(TAG, \"close error.\");\r\n e1.printStackTrace();\r\n }\r\n Log.e(TAG, \"connect error.\");\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public void turnOnWifi() {\n WifiManager wifi = (WifiManager) getActivity().getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n wifi.setWifiEnabled(true);\n showScanWifiAround();\n }", "public synchronized void start() {\r\n\r\n\t\tif (!running) {\r\n\t\t\trunning = true;\r\n\t\t\tnew Thread(this, name).start();\r\n\t\t}\r\n\t}", "public static void doConnect() {\r\n\t\tlogger.info(\"Connecting to server......\");\r\n\t\tChannelFuture future = null;\r\n\t\ttry {\r\n\t\t\tfuture = bootstrap.connect(new InetSocketAddress(host, port));\r\n\t\t\tfuture.addListener(channelFutureListener);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t// future.addListener(channelFutureListener);\r\n\t\t\tlogger.warn(\"Closed connection.\");\r\n\t\t}\r\n\r\n\t}" ]
[ "0.7632625", "0.7206189", "0.7091945", "0.7059872", "0.700992", "0.69556004", "0.68685293", "0.6685065", "0.6603464", "0.657987", "0.64656705", "0.641147", "0.6346964", "0.6309382", "0.627347", "0.6267877", "0.62662786", "0.6249554", "0.62314254", "0.6226517", "0.62232786", "0.6221062", "0.6219343", "0.62032217", "0.6199053", "0.6196286", "0.6162887", "0.6159134", "0.61342084", "0.6132393", "0.6122444", "0.610635", "0.6101733", "0.6099459", "0.60988724", "0.60955703", "0.6094763", "0.60865575", "0.6079484", "0.60735995", "0.6072027", "0.60716254", "0.6018922", "0.6018883", "0.6011082", "0.6001946", "0.5973715", "0.597309", "0.5972403", "0.59546757", "0.59522814", "0.5944336", "0.5943363", "0.5915412", "0.59115416", "0.5910148", "0.5909047", "0.5905578", "0.59049416", "0.590044", "0.5899417", "0.5899417", "0.5894918", "0.5894764", "0.5894031", "0.5892672", "0.5892146", "0.58865273", "0.5885425", "0.5885104", "0.58778626", "0.5877801", "0.5874237", "0.58674306", "0.5862145", "0.5858677", "0.5854199", "0.58503073", "0.5849996", "0.5842779", "0.58418334", "0.5835594", "0.5835594", "0.5821359", "0.58212453", "0.58205026", "0.58136874", "0.5809918", "0.58083373", "0.5807617", "0.5792321", "0.5791813", "0.57854503", "0.57842726", "0.5782064", "0.57787925", "0.5772565", "0.5769023", "0.57678837", "0.5767234" ]
0.75683653
1
Set the WiFi connected
public void setWifiModule(WifiModule wifiModule){ mwifiAdmin.setChoosenModule(wifiModule); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateConnectedFlags() {\n ConnectivityManager connMgr =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeInfo = connMgr.getActiveNetworkInfo();\n if (activeInfo != null && activeInfo.isConnected()) {\n wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI;\n mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE;\n } else {\n wifiConnected = false;\n mobileConnected = false;\n }\n wifiConnected = true;\n mobileConnected = true;\n System.out.println(\"Change 3\");\n }", "public void connectWiFi() {\n\n // Agrego la red para poder conectarme\n conf.networkId = wifi.addNetwork(conf);\n if (conf.networkId == -1) {\n Log.i(\"#FSEM# SERVICE\", \"Fallo addNetwork\");\n return;\n }\n\n // Receiver para cambio de estado de WIFI\n IntentFilter intentFilter = new IntentFilter(WifiManager.NETWORK_STATE_CHANGED_ACTION);\n intentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION);\n\n context.registerReceiver(this, intentFilter);\n\n // Mientras haya otra conexión con algun semaforo, espero a que se termine.\n while (SemComunication.staticState == StaticState.CONECTADO) {\n Log.i(\"#FSEM# SERVICE\", \"Me quiero conectar a \" + this.conf.SSID\n + \", pero sigue conectado a otro semaforo: \" + SemComunication.currentSSID);\n // Obligo a desconectarse.\n wifi.disconnect();\n SystemClock.sleep(1000);\n }\n\n // Me conecto con la red que quiero, y cuando lo logre\n // se ejecuta el receiver anterior\n wifi.disconnect();\n Log.i(\"#FSEM# SERVICE\", \"Me intento conectar con \" + (this.SSID));\n wifi.enableNetwork(this.conf.networkId, true);\n wifi.reconnect();\n SemComunication.staticState = StaticState.CONECTADO;\n SemComunication.networkId = this.conf.networkId;\n SemComunication.currentSSID = this.SSID;\n }", "public void setOnline() {\n if (this.shutdownButton.isSelected() == false) {\n this.online = true;\n this.statusLed.setStatus(\"ok\");\n this.updateOscilloscopeData();\n }\n }", "public static void setWifiOn(boolean isOn) {\n Settings.Secure.putInt(Robolectric.application.getContentResolver(), Settings.Secure.WIFI_ON, isOn ? 1 : 0);\n }", "public void turnOnWifi() {\n WifiManager wifi = (WifiManager) getActivity().getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n wifi.setWifiEnabled(true);\n showScanWifiAround();\n }", "@Override\n\t\t\t\t\tpublic void onNotifyWifiConnected()\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.v(TAG, \"have connected success!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}", "@Override\n\tpublic void configureWifi(String ssid, String pwd) throws RemoteException {\n\t model.execute(\"CONNECT\", ssid, pwd);\n\t}", "public void setConnected(boolean connected);", "@Override\r\n public boolean connectedWifi() {\r\n return NMDeviceState.NM_DEVICE_STATE_ACTIVATED.equals(nwmDevice.getState().intValue());\r\n }", "private void updateConnectedState() {\n NetworkInfo activeNetworkInfo = this.mConnectivityManager.getActiveNetworkInfo();\n this.mIsNetworkConnected = activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }", "private void ConnectWifi(String ssid, String password) {\n\n WifiManager wifiManager = (WifiManager)getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n\n WifiConfiguration wifiConfiguration = new WifiConfiguration();\n wifiConfiguration.SSID = \"\\\"\" + ssid + \"\\\"\";\n wifiConfiguration.preSharedKey = \"\\\"\" + password + \"\\\"\";\n\n wifiManager.addNetwork(wifiConfiguration);\n\n List<WifiConfiguration> list = wifiManager.getConfiguredNetworks();\n for( WifiConfiguration i : list ) {\n if(i.SSID != null && i.SSID.equals(\"\\\"\" + ssid + \"\\\"\")) {\n\n wifiManager.disconnect();\n wifiManager.enableNetwork(i.networkId, true);\n netId = i.networkId;\n wifiManager.reconnect();\n\n break;\n }\n }\n\n\n }", "public void setIsConnectedToNetworkCore (boolean isConnectedToCore) { n.setAttribute(ATTNAMECOMMONPREFIX + ATTNAMESUFFIX_ISCONNECTEDTOCORE , new Boolean (isConnectedToCore).toString()); }", "public boolean connectTo(String bssid){\n WifiConfiguration newWc = new WifiConfiguration();\n //mBSSID = bssid;\n newWc.BSSID = bssid;\n newWc.SSID = mSSID;\n newWc.preSharedKey = mActiveConfiguration.preSharedKey;\n newWc.hiddenSSID = mActiveConfiguration.hiddenSSID;\n newWc.status = WifiConfiguration.Status.ENABLED;\n newWc.allowedAuthAlgorithms = mActiveConfiguration.allowedAuthAlgorithms;\n newWc.allowedGroupCiphers = mActiveConfiguration.allowedGroupCiphers;\n newWc.allowedKeyManagement = mActiveConfiguration.allowedKeyManagement;\n newWc.allowedPairwiseCiphers = mActiveConfiguration.allowedPairwiseCiphers;\n newWc.allowedProtocols = mActiveConfiguration.allowedProtocols;\n newWc.wepKeys = mActiveConfiguration.wepKeys;\n newWc.wepTxKeyIndex = mActiveConfiguration.wepTxKeyIndex;\n if(Build.VERSION.SDK_INT >= 18) {\n newWc.enterpriseConfig = mActiveConfiguration.enterpriseConfig;\n }\n if(Build.VERSION.SDK_INT >= 23) {\n newWc.roamingConsortiumIds = mActiveConfiguration.roamingConsortiumIds;\n newWc.providerFriendlyName = mActiveConfiguration.providerFriendlyName;\n }\n\n //int netId = mWifiManager.addNetwork(newWc);\n //Log.d(TAG, \"Added network w/ id \" + netId);\n //mWifiManager.disconnect();\n //return mWifiManager.enableNetwork(netId, true);\n //return mWifiManager.reconnect();\n\n return false;\n\n }", "@ReactMethod\n public void setEnabled(Boolean enabled) {\n wifi.setWifiEnabled(enabled);\n }", "private void checkWifi() {\n\t\tConnectivityManager manger = (ConnectivityManager) context\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo info = manger.getActiveNetworkInfo();\n\t\tboolean flag = (info != null && info.isConnected());\n\t\tif (!flag) {\n\t\t\tToast.makeText(context, R.string.communication, Toast.LENGTH_LONG)\n\t\t\t\t\t.show();\n\t\t\tnew Handler().postDelayed(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tcheckWifi();\n\t\t\t\t}\n\t\t\t}, 4000);\n\t\t} else {\n\t\t\tRegisterActivity.REGISTER_FLAG = true;\n\t\t}\n\t}", "public void setNetworkConnection(boolean airplaneMode, boolean wifi, boolean data) {\n\n long mode = 1L;\n\n if (wifi) {\n mode = 2L;\n } else if (data) {\n mode = 4L;\n }\n\n ConnectionState connectionState = new ConnectionState(mode);\n ((AndroidDriver) getDriver()).setConnection(connectionState);\n System.out.println(\"Your current connection settings are :\" + ((AndroidDriver) getDriver()).getConnection());\n }", "public void setConnected(boolean connected) {\n isConnected = connected;\n }", "public static void enableWifi(Context context) {\n WifiManager wm = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\n if (!wm.isWifiEnabled()) {\n wm.setWifiEnabled(true);\n }\n }", "public synchronized void setConnect(boolean connect) {\n wantConnect = connect;\n }", "public void setNetworkReachable(boolean value);", "public void setConnected(boolean connected) {\n boolean oldValue = mConnected;\n mConnected = connected;\n pcs.firePropertyChange(PROP_CONNECTED, oldValue, mConnected);\n }", "public void setConnected(boolean connected) {\r\n this.connected = connected;\r\n }", "@Override\n public void onSuccess() {\n Toast.makeText(getApplicationContext(), \"Connect WiFI Direct.\",\n Toast.LENGTH_SHORT).show();\n\n startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));\n }", "private void setConnected(final boolean isConnected)\n\t{\n\t\tserverIPTextField.setEnabled(!isConnected);\n\t\tserverPortTextField.setEnabled(!isConnected);\n\t\tuserNameTextField.setEnabled(!isConnected);\n\t\tloginButton.setEnabled(!isConnected);\n\t\tlogoutButton.setEnabled(isConnected);\t\n\t\tsendMessageButton.setEnabled(isConnected);\n\t\tmessageTextArea.setEnabled(isConnected);\n\t}", "public void setConnected(boolean connected) {\n boolean oConnected = isConnected();\n this.connected = connected;\n firePropertyChange(PROPNAME_CONNECTED, oConnected, this.connected);\n }", "@Override\n\t\t\t\t\tpublic void onNotifyWifiConnectFailed()\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.v(TAG, \"have connected failed!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tWifiManager wm=(WifiManager)getSystemService(WIFI_SERVICE);\n\t\t\t\tif(wm.isWifiEnabled())\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI:ON\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\tWifiInfo wi=wm.getConnectionInfo();\n\t\t\t\t\tif(wi.getNetworkId()==-1)\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI IS NOT CONNECT TO ANY DEVICE\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI IS CONNECTED\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"WIFI IS OFF\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public void setConnected(boolean c) {\n this.connected = c;\n }", "@Override\n public void connected() {\n jLabel5.setText(\"已连接\");\n }", "public void setMediaNetworkReachable(boolean value);", "@Override\n public void run() {\n this.configureWiFi();\n\n // Conecto con la red WiFi\n this.connectWiFi();\n\n }", "public void setOnline( Boolean online )\n {\n if ( online.booleanValue() == true ) \n printerSimulator.setOnline();\n else \n printerSimulator.setOffline();\n }", "public boolean WifiAvaible() {\n boolean Wifi = false;\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo[] netInfo = cm.getAllNetworkInfo();\n for (NetworkInfo NI : netInfo) {\n if (NI.getTypeName().equalsIgnoreCase(\"WIFI\")){\n if (NI.isConnected()){\n Wifi = true;\n }\n }\n }\n return Wifi;\n }", "public void setConnected(boolean connected) {\n\t\tthis.connected = connected;\n\t}", "@Override\n\tpublic void adaugaWiFi() {\n\t\t// TODO adaugare reguli proprii de validare a modulului\n\t\tdispozitiv.hasWiFi();\n\t}", "private void connectToNetwork(final WifiNetworkInfo info){\n final String SSID = info.SSID;\n final WifiConfiguration conf = new WifiConfiguration();\n conf.SSID = SSID; //needs to be surrounded by quotations but should already be coming from a scan object\n if(info.secured){\n //prompt for password\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setPositiveButton(\"Connect\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if(info.secured){\n EditText editText = (EditText)((AlertDialog)dialog).findViewById(R.id.wifi_password_edit_text);\n\n String password = editText.getText().toString();\n if(info.WEP) {\n WifiUtils.connectToWEPSecuredNetwork(SSID, password, manager);\n }\n else if(info.WPA || info.WPA2){\n WifiUtils.connectToWPASecuredNetwork(SSID, password, manager);\n }\n// might need a different case here but I think it probably is the same as WPA\n// else if(info.WPA2){\n//\n// }\n }\n else {\n WifiUtils.connectToOpenNetwork(SSID, manager);\n }\n }\n });\n\n// EditText passField = (EditText) dialog.findViewById(R.id.wifi_password_edit_text);\n// passField.getBackground().mutate().setColorFilter(getResources().getColor(R.color.Crimson), PorterDuff.Mode.SRC_ATOP);\n\n }\n else {\n conf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE);\n manager.addNetwork(conf);\n List<WifiConfiguration> list = manager.getConfiguredNetworks();\n for( WifiConfiguration i : list ) {\n if(i.SSID != null && i.SSID.equals(SSID)) {\n manager.disconnect();\n manager.enableNetwork(i.networkId, true);\n manager.reconnect();\n break;\n }\n }\n }\n }", "@Override\n\t public void onClick(DialogInterface dialog, int which) {\n\t wifi.setWifiEnabled(true);\n\t Toast.makeText(getApplicationContext(), \"enabling...\", Toast.LENGTH_LONG).show();\t\n\t }", "private void disconnectWifi() {\n assertTrue(\"Wifi not disconnected\", mWifiManager.disconnect());\n mWifiManager.disableNetwork(mWifiManager.getConnectionInfo().getNetworkId());\n mWifiManager.saveConfiguration();\n }", "@Override\n public void gattConnected() {\n mConnected = true;\n updateConnectionState(R.string.connected);\n getActivity().invalidateOptionsMenu();\n }", "@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\n\t\t\t\tmWifiAdmin = new WifiAdmin(context)\n\t\t\t\t{\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void myUnregisterReceiver(BroadcastReceiver receiver)\n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tunregisterReceiver(receiver);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Intent myRegisterReceiver(BroadcastReceiver receiver, IntentFilter filter)\n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tregisterReceiver(receiver, filter);\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onNotifyWifiConnected()\n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tLog.v(TAG, \"have connected success!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onNotifyWifiConnectFailed()\n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tLog.v(TAG, \"have connected failed!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tmWifiAdmin.openWifi();\n\t\t\t\t// 连的WIFI热点是用WPA方式保护\n\t\t\t\tmWifiAdmin.addNetwork(mWifiAdmin.createWifiInfo(Constant.HOST_SPOT_SSID, Constant.HOST_SPOT_PASS_WORD, WifiAdmin.TYPE_WPA));\n\t\t\t}", "private boolean isConnectedViaWifi() {\n ConnectivityManager connectivityManager =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n if (connectivityManager != null) {\n NetworkInfo netInfo = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);\n return netInfo != null && netInfo.isConnected();\n } else {\n return false;\n }\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkWiFi() {\n\t\tboolean flag = oTest.checkWiFi();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn false;\r\n\t}", "public void setCanConnect(boolean canConnect) {\n this.canConnect = canConnect;\n }", "private void connectTo(@NonNull final String SSID, @Nullable final String password, @NonNull final WIFI_ENCRYPTION encryption, @NonNull final Promise promise) {\n if(password != null || (password != null && !password.isEmpty())) {\n promise.reject(\"not_supported_yet\", \"This feature is not properly implemented yet. Please implement it for the android 10 tree and properly test before usage.\");\n }\n\n if (isAndroidTenOrLater()) {\n final HandlablePromise handlablePromise = new HandlablePromise(promise);\n\n WifiManager wifi = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n if(!wifi.isWifiEnabled()) {\n handlablePromise.reject(\"wifi_not_enabled\", \"Wifi is disabled on the phone\");\n return;\n }\n\n final WifiNetworkSpecifier wifiNetworkSpecifier = new WifiNetworkSpecifier.Builder()\n .setSsid(SSID)\n .build();\n\n final NetworkRequest networkRequest = new NetworkRequest.Builder()\n .addTransportType(NetworkCapabilities.TRANSPORT_WIFI)\n .removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)\n .setNetworkSpecifier(wifiNetworkSpecifier)\n .build();\n\n final ConnectivityManager connectivityManager = (ConnectivityManager) context.getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivityManager == null) {\n handlablePromise.reject(\"connectivityManagerError\", \"Could not get the ConnectivityManager (SystemService).\");\n return;\n }\n\n networkCallback = new ConnectivityManager.NetworkCallback() {\n @Override\n public void onAvailable(@NonNull Network network) {\n super.onAvailable(network);\n }\n\n @Override\n public void onBlockedStatusChanged(@NonNull Network network, boolean blocked) {\n super.onBlockedStatusChanged(network, blocked);\n if (blocked) {\n handlablePromise.reject(\"connectNetworkFailed\", String.format(\"Connection was blocked, could not connect to network with SSID: %s\", SSID));\n } else {\n handlablePromise.resolve(SSID);\n }\n }\n\n @Override\n public void onLost(@NonNull Network network) {\n super.onLost(network);\n handlablePromise.reject(\"connectNetworkFailed\", String.format(\"Connection was lost with network with SSID: %s\", SSID));\n }\n\n @Override\n public void onUnavailable() {\n super.onUnavailable();\n handlablePromise.reject(\"connectNetworkFailed\", String.format(\"Timeout or user cancelled connecting to network with SSID: %s\", SSID));\n }\n };\n connectivityManager.requestNetwork(networkRequest, networkCallback, 60000);\n return;\n }\n\n // create network\n final WifiConfiguration wifiConfiguration = new WifiConfiguration();\n wifiConfiguration.SSID = formatWithBackslashes(SSID);\n\n switch (encryption) {\n case WPA2:\n stuffWifiConfigurationWithWPA2(wifiConfiguration, password);\n break;\n case WEP:\n stuffWifiConfigurationWithWEP(wifiConfiguration, password);\n break;\n case NONE:\n stuffWifiConfigurationWithoutEncryption(wifiConfiguration);\n break;\n }\n\n // add to wifi manager\n final WifiManager wifiManager = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n if (wifiManager == null) {\n promise.reject(\"wifiManagerError\", \"Could not get the WifiManager (SystemService).\");\n return;\n }\n\n int networkId = wifiManager.addNetwork(wifiConfiguration);\n if (networkId == ADD_NETWORK_FAILED) {\n networkId = checkForExistingNetwork(wifiConfiguration);\n if (networkId == ADD_NETWORK_FAILED) {\n promise.reject(\"addOrUpdateFailed\", String.format(\"Could not add or update network configuration with SSID %s.\", SSID));\n }\n }\n\n // wifiManager.saveConfiguration(); is not needed as this is already done by addNetwork or removeNetwork\n\n final boolean disconnect = wifiManager.disconnect();\n if (!disconnect) {\n promise.reject(\"disconnectFailed\", String.format(\"Disconnecting network with SSID %s failed (before connect).\", SSID));\n }\n\n final boolean enableNetwork = wifiManager.enableNetwork(networkId, true);\n if (enableNetwork) {\n // Verify the connection\n final IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION);\n final BroadcastReceiver receiver = new BroadcastReceiver() {\n @Override\n public void onReceive(final Context context, final Intent intent) {\n final NetworkInfo info = intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO);\n if (info != null && info.isConnected()) {\n final WifiInfo wifiInfo = wifiManager.getConnectionInfo();\n String ssid = wifiInfo.getSSID();\n // This value should be wrapped in double quotes, so we need to unwrap it.\n if (ssid.startsWith(\"\\\"\") && ssid.endsWith(\"\\\"\")) {\n ssid = ssid.substring(1, ssid.length() - 1);\n }\n context.unregisterReceiver(this);\n if (ssid.equals(SSID))\n promise.resolve(null);\n else\n promise.reject(\"connectNetworkFailed\", String.format(\"Could not connect to network with SSID: %s\", SSID));\n }\n }\n };\n context.registerReceiver(receiver, intentFilter);\n // Timeout if there is no other saved WiFi network reachable\n ScheduledThreadPoolExecutor exec = new ScheduledThreadPoolExecutor(1);\n exec.schedule(new Runnable() {\n public void run() {\n promise.reject(\"connectNetworkFailed\", String.format(\"Timeout connecting to network with SSID: %s\", SSID));\n }\n }, 8, TimeUnit.SECONDS);\n } else {\n promise.reject(\"connectNetworkFailed\", String.format(\"Could not enable network with SSID: %s\", SSID));\n }\n }", "public S<T> wifi(Boolean enable){\n\t \t \n\t\t \tWifiManager wifi = (WifiManager) activity.getSystemService(Context.WIFI_SERVICE);\n\t\t boolean isEnabled = wifi.isWifiEnabled();\n\t\t \n\t\t if (enable && !isEnabled) {\n\t\t \twifi.setWifiEnabled(true); \n\t\t }\n\t\t else if(!enable && isEnabled) {\n\t\t \twifi.setWifiEnabled(false); \n\t\t }\n\n\t return this;\n\t }", "public static void changeConnectionStatus(Boolean isConnected) {\n \tconnected=isConnected;//change variable\n \t\tif(isConnected){//if connection established\n \t\t\tLog.i(\"Debug\",\"successfully connected to server\");//log\n \t\t\t//conBtn.setText(\"DISCONNECT\");//change Buttontext\n \t\t}else{\n \t\t\tLog.i(\"Debug\",\"disconnected from Server!\");//log\n \t\t\t//conBtn.setText(\"CONNECT\");//change Buttontext\n \t\t}\n \t}", "public boolean setWifiStartScan() {\n return mWifiManager.startScan();\n }", "public Boolean isWifiEnabled() {\n return (mask / 2) % 2 == 1;\n }", "public void setDataConnectionEnabled() {\n ConnectivityManager cm = (ConnectivityManager) mContext\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n cm.setMobileDataEnabled(true);\n }", "private void setConnection (TwGateway newCxn) {\n boolean connected = (newCxn != null);\n closeXn.setEnabled (connected);\n openXn.setEnabled (!connected);\n getWksp.setEnabled (connected);\n KbWorkspace[] showingWorkspaces = multiWkspView.getWorkspaces ();\n System.out.println (\"Removing \" + showingWorkspaces.length + \" workspaces!\");\n for (int i=0; i<showingWorkspaces.length; i++)\n multiWkspView.removeWorkspace (showingWorkspaces[i]);\n Rectangle frameRect = getCurrentFrame().getBounds ();\n getCurrentFrame().setBounds(frameRect.x, frameRect.y,\n\t\t\t\tframeRect.width + 1, frameRect.height + 1);\n connection = newCxn;\n }", "public interface Wifi {\n\n\t/**\n\t * Activar el WIFI\n\t */\n\tpublic void activarWifi();\n\t/**\n\t * Desactivar el WIFI\n\t */\n\tpublic void desactivarWifi();\n\t/**\n\t * Verificar si estamos en modo avion\n\t * @return\n\t */\n\tpublic boolean estaEnModoAvion();\n\t\n}", "private void requestConnectToWifi(final Wifi wifi, String password) {\n if (wifiManager.getConnectionInfo().getSSID().equals(String.format(\"\\\"%s\\\"\", wifi.getSsid()))) {\n Toast.makeText(this, \"You are already connected to this wi-fi network\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n WifiConfiguration wifiConfiguration = new WifiConfiguration();\n wifiConfiguration.SSID = String.format(\"\\\"%s\\\"\", wifi.getSsid());\n wifiConfiguration.preSharedKey = String.format(\"\\\"%s\\\"\", password);\n\n int netId = -1;\n\n // Check if this network is known\n for (WifiConfiguration conf : wifiManager.getConfiguredNetworks()) {\n if (conf.SSID.equals(String.format(\"\\\"%s\\\"\", wifi.getSsid()))) {\n netId = conf.networkId;\n break;\n }\n }\n\n // If this is new network\n if (netId == -1) {\n netId = wifiManager.addNetwork(wifiConfiguration);\n }\n\n // If failed to add new network\n if (netId == -1) {\n edtPassword.setText(\"\");\n edtPassword.setError(\"Wrong password\");\n edtPassword.requestFocus();\n\n Toast.makeText(this, \"Wrong password! Connect failed to \" + wifi.getWifiName(), Toast.LENGTH_SHORT).show();\n } else {\n connectToWifi(netId);\n\n if (isExist) {\n DataSource.updateWifiData(this, wifi);\n } else {\n DataSource.createWifiData(this, wifi);\n }\n\n registerReceiver(wifiReceiver, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION));\n }\n }", "public boolean isWifiEnabled() {\n return mWifiManager.isWifiEnabled();\n }", "public boolean isWifiEnabled() {\n return mWifiManager.isWifiEnabled();\n }", "public void setSipNetworkReachable(boolean value);", "protected void setConnected(boolean paramBoolean) {\n/* 169 */ this.delegate.setConnected(paramBoolean);\n/* */ }", "private void setScanButton() {\n if (!mConnected) {\n if (mAbleBLEService == null) {\n Toast.makeText(getActivity(), \"this should not happen, as this object is static\", Toast.LENGTH_SHORT).show();\n }\n mAbleBLEService.connect(mDeviceAddress);\n sConnectButton.setText(R.string.menu_disconnect);\n sConnectButton.setBackgroundColor(Color.rgb(237, 34, 34));\n } else {\n mAbleBLEService.disconnect();\n sConnectButton.setText(R.string.menu_connect);\n sConnectButton.setBackgroundColor(Color.rgb(42, 42, 42));\n }\n }", "private boolean isWificonnected(){\n\t\tConnectivityManager connMgr\n\t\t= (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo networkInfo\n\t\t= connMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI); \n\t\tboolean isWifiConn = networkInfo.isConnected();\n\t\treturn isWifiConn;\n\t}", "public void switchOn() throws RemoteHomeConnectionException {\n m.sendCommand(parseDeviceIdForMultipleDevice(getRealDeviceId()), \"l\"+getSubDeviceNumber()+\"o\");\n setCurrentState(true);\n }", "public static void serverConnected() {\r\n jButton5.setEnabled(false);\r\n jButton4.setEnabled(false);\r\n jButton6.setEnabled(true);\r\n jButton1.setEnabled(true);\r\n jTextField1.setEnabled(true);\r\n log(\"GREEN\", \"[Status] - Connected !\");\r\n }", "@SuppressLint(\"MissingPermission\")\n static void fillWifiConfigurationList(Context context/*, boolean enableWifi*/)\n {\n\n List<WifiSSIDData> wifiConfigurationList = new ArrayList<>();\n\n if (wifi == null)\n wifi = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n if (wifi == null)\n return;\n\n //boolean wifiEnabled = false;\n if (wifi.getWifiState() != WifiManager.WIFI_STATE_ENABLED) {\n /*if (enableWifi) {\n try {\n wifiEnabled = true;\n wifi.setWifiEnabled(true);\n PPApplication.sleep(500);\n } catch (Exception e) {\n wifiEnabled = false;\n }\n }\n else*/\n // wifi must be enabled for wifi.getConfiguredNetworks()\n return;\n }\n\n List<WifiConfiguration> _wifiConfigurationList = null;\n if (Permissions.hasPermission(context, Manifest.permission.ACCESS_FINE_LOCATION))\n _wifiConfigurationList = wifi.getConfiguredNetworks();\n\n /*if (wifiEnabled) {\n try {\n wifi.setWifiEnabled(false);\n } catch (Exception ignored) {}\n }*/\n\n if (_wifiConfigurationList != null)\n {\n //wifiConfigurationList.clear();\n for (WifiConfiguration device : _wifiConfigurationList)\n {\n //noinspection deprecation\n if (device.SSID != null) {\n boolean found = false;\n for (WifiSSIDData _device : wifiConfigurationList) {\n //if (_device.bssid.equals(device.BSSID))\n //noinspection deprecation\n if ((_device.ssid != null) && (_device.ssid.equals(device.SSID))) {\n found = true;\n break;\n }\n }\n if (!found) {\n //noinspection deprecation\n wifiConfigurationList.add(new WifiSSIDData(device.SSID, /*device.BSSID,*/ false, true, false));\n }\n }\n }\n }\n saveWifiConfigurationList(context, wifiConfigurationList);\n }", "public void goOnline()\n\t{\t\t\n\t\ttry {\n\t\t\tchatConnection.openConnection(connectionconfig);\n\t\t\tgetMainWindow().displayOnlineSymbol();\n\t\t\tconfig_ok = true;\n\t\t} catch (Exception e) {\n\t\t\tconfig_ok = false;\n\t\t\tcreateConnectionConfigurationDialog(e.getMessage());\n\t\t\t\n\t\t}\n\t}", "@Override\n public void onFailure(int reasonCode) {\n Toast.makeText(getApplicationContext(), \"Please turn on WiFi. Error Code \" + reasonCode,\n Toast.LENGTH_SHORT).show();\n }", "@ReactMethod\n public void connectToProtectedSSID(@NonNull final String SSID, @NonNull final String password, final boolean isWep, final Promise promise) {\n final boolean locationPermissionGranted = PermissionUtils.isLocationPermissionGranted(context);\n final boolean isLocationOn = LocationUtils.isLocationOn(context);\n\n if (locationPermissionGranted && isLocationOn) {\n @SuppressLint(\"MissingPermission\") WIFI_ENCRYPTION encryption = findEncryptionByScanning(SSID);\n // If the wifi network could not be found, we guess it is WPA2\n if (encryption == null) {\n encryption = WIFI_ENCRYPTION.WPA2;\n }\n connectTo(SSID, password, encryption, promise);\n }\n\n // TODO: make the wifi encryption configurable\n connectTo(SSID, password, WIFI_ENCRYPTION.WPA2, promise);\n }", "public interface WifiConnectionStateInterface {\n void checkSocketConnection();\n}", "public void checkConnectivity(){\n ConnectivityManager cm = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);\n mIsOnline = cm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE)\n .isConnectedOrConnecting() || cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI)\n .isConnectedOrConnecting();\n }", "public void setConnection(TwAccess connection){\n //stop listening to old current connection\n if (currentConnection != null)\n currentConnection.removeG2ConnectionListener(g2ConnectionAdapter);\n //set new current connection\n currentConnection = connection;\n if (currentConnection != null){\n try{\n\tstate_ = currentConnection.getG2State();\n }\n catch(G2AccessException ex){\n\tcom.gensym.message.Trace.exception(ex);\n\tString cxnString = currentConnection.toShortString();\n\tcurrentConnection = null;\n\tnoConnection();\n\tString msg = ex.getMessage();\n\tif (msg == null)\n\t new WarningDialog(null, i18n.getString(\"Error\"), true, i18n.format(\"AccessError\", cxnString), null).setVisible(true);\n\telse\n\t new WarningDialog(null, i18n.getString(\"Error\"), true, i18n.format(\"AccessErrorWithReason\", cxnString, msg), null).setVisible(true);\n }\n //start listening to new current connection\n currentConnection.addG2ConnectionListener(g2ConnectionAdapter);\n }\n updateAvailability();\n }", "@ReactMethod\n public void forceWifiUsage(boolean useWifi) {\n boolean canWriteFlag = false;\n\n if (useWifi) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n canWriteFlag = Settings.System.canWrite(context);\n\n if (!canWriteFlag) {\n Intent intent = new Intent(Settings.ACTION_MANAGE_WRITE_SETTINGS);\n intent.setData(Uri.parse(\"package:\" + context.getPackageName()));\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n context.startActivity(intent);\n }\n }\n\n\n if (((Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) && canWriteFlag) || ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) && !(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M))) {\n final ConnectivityManager manager = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkRequest.Builder builder;\n builder = new NetworkRequest.Builder();\n //set the transport type to WIFI\n builder.addTransportType(NetworkCapabilities.TRANSPORT_WIFI);\n\n\n manager.requestNetwork(builder.build(), new ConnectivityManager.NetworkCallback() {\n @Override\n public void onAvailable(@NonNull final Network network) {\n // FIXME: should this be try catch?\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n manager.bindProcessToNetwork(network);\n } else {\n //This method was deprecated in API level 23\n ConnectivityManager.setProcessDefaultNetwork(network);\n }\n manager.unregisterNetworkCallback(this);\n }\n });\n }\n\n\n }\n } else {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n ConnectivityManager manager = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n manager.bindProcessToNetwork(null);\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n ConnectivityManager.setProcessDefaultNetwork(null);\n }\n }\n }", "@LargeTest\n public void testWifiConnection() throws InterruptedException {\n // Wifi is already connected as part of tradefed device setup, assert that\n assertTrue(\"Wifi should be connected\", isWifiConnected());\n assertNotNull(\"Wifi manager is null\", mWifiManager);\n assertTrue(\"Wifi isn't enabled\", mWifiManager.isWifiEnabled());\n // Disconnect wifi and disable network, save NetId to be used for re-enabling network\n int netId = mWifiManager.getConnectionInfo().getNetworkId();\n disconnectWifi();\n Log.d(\"MyTestTag\", \"before sleep\");\n Thread.sleep(mABvtHelper.LONG_TIMEOUT);\n Log.d(\"MyTestTag\", \"after sleep\");\n assertFalse(\"Wifi shouldn't be connected\", isWifiConnected());\n // Network enabled successfully\n assertTrue(\"Network isn't enabled\", mWifiManager.enableNetwork(netId, true));\n // Allow time to settle down\n Thread.sleep(mABvtHelper.LONG_TIMEOUT * 2);\n assertTrue(\"Wifi should be connected\", isWifiConnected());\n }", "public static void setDataConnected(boolean d)\n {\n dataconnected = d;\n }", "private void setOnline(String urlConfig) {\n switch (status) {\n case SERVER_DOWN:\n case URL_UNSET:\n logger.debug(\"Status changing from \" + status + \" to \"\n + Status.SERVER_UP);\n broadcastMessage(urlConfig);\n status = Status.SERVER_UP;\n break;\n default:\n logger.debug(\"SetOnline: Status not changed from \" + status);\n // no action\n }\n }", "@TargetApi(Build.VERSION_CODES.M)\n @SuppressLint(\"MissingPermission\")\n private boolean isConnectedThroughWifi_Q() {\n //Get ConnectivityManager.\n ConnectivityManager connectivityManager = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n //Check WIFI capability in currently active network.\n if (connectivityManager != null) {\n Network activeNetwork = connectivityManager.getActiveNetwork();\n if (activeNetwork == null) { //No default network is currently active.\n return false;\n }\n\n NetworkCapabilities networkCapabilities = connectivityManager.getNetworkCapabilities(activeNetwork);\n if (networkCapabilities != null && isConnectionValidated(networkCapabilities) && isWifiTypeConnection(networkCapabilities)) {\n return true;\n }\n }\n\n return false;\n }", "public static void setOnline(boolean flag) {\r\n ONLINE = flag;\r\n }", "public void onClick(View v) {\n mConnectedThread.write(\"1\"); // Send \"1\" via Bluetooth\n Toast.makeText(getBaseContext(), \"Turn on LED\", Toast.LENGTH_SHORT).show();\n }", "private void initWirelessCommunication() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n showToast(\"BLE is not supported\");\n finish();\n } else {\n showToast(\"BLE is supported\");\n // Access Location is a \"dangerous\" permission\n int hasAccessLocation = ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION);\n if (hasAccessLocation != PackageManager.PERMISSION_GRANTED) {\n // ask the user for permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n REQUEST_ACCESS_LOCATION);\n // the callback method onRequestPermissionsResult gets the result of this request\n }\n }\n // enable wireless communication alternative\n if (communicationAdapter == null || !communicationAdapter.isReadyToBeUsed()) {\n assert communicationAdapter != null;\n Intent enableWirelessCommunicationIntent = new Intent(communicationAdapter.actionRequestEnable());\n startActivityForResult(enableWirelessCommunicationIntent, REQUEST_ENABLE_BT);\n }\n }", "public void setWon(){\n won = true;\n }", "public static void setGpsConnected(boolean d)\n {\n gpsconnected = d;\n }", "public static boolean isConnectedWifi(Context context){\n NetworkInfo info = Connectivity.getNetworkInfo(context);\n return (info != null && info.isConnected() && info.getType() == ConnectivityManager.TYPE_WIFI);\n }", "public static boolean isConnectedWifi(Context context){\n NetworkInfo info = Connectivity.getNetworkInfo(context);\n return (info != null && info.isConnected() && info.getType() == ConnectivityManager.TYPE_WIFI);\n }", "void connected(InetAddress address, boolean isMine);", "public void autoConnect() {\n Log.i(TAG, \"HERE AUTOCONNECT\");\n connect(staticIp, staticPort);\n }", "private boolean checkConnectedToOpenWifi(Context context) {\n boolean connectedToOpenNetwork = false;\n\n WifiManager wifiManager =\n (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\n wifiManager.startScan();\n\n List<ScanResult> networkList = wifiManager.getScanResults();\n\n WifiInfo wifi = wifiManager.getConnectionInfo();\n String currentSSID = wifi.getSSID().replace(\"\\\"\", \"\");\n\n if (networkList != null) {\n for (ScanResult network : networkList) {\n //check if current connected SSID\n if (currentSSID.equals(network.SSID)) {\n //get capabilities of current connection\n String capabilities = network.capabilities;\n connectedToOpenNetwork = capabilities.contains(\"ESS\") && capabilities.length() == 5;\n }\n }\n }\n\n return connectedToOpenNetwork;\n }", "private void checkWifiStep1() {\n\n Log.i(\"checkk\", \"ikan\");\n\n WifiManager wifiManager= (WifiManager)getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n\n WifiInfo wifiInfo = wifiManager.getConnectionInfo();\n\n String name = wifiInfo.getSSID();\n\n //String macbabyyy = wifiInfo.getMacAddress();\n\n String bssiddda = wifiInfo.getBSSID();\n\n //wifiInfo.get\n\n // Log.i(\"checkk mac\",macbabyyy);\n Log.i(\"checkk bssid\",bssiddda);\n Log.i(\"checkk ssid\",name);\n\n Toast.makeText(getApplicationContext(),\"wifi ini :\"+ name, Toast.LENGTH_LONG).show();\n\n //asking fine location permission\n\n String constWifiName = \"\\\"arif0527 2.4GHz@unifi\\\"\";\n\n if(name.equals(constWifiName)){\n\n Log.i(\"checkk BERJAYA : \",bssiddda);\n Toast.makeText(getApplicationContext(),\"BERJAYA :\"+ name, Toast.LENGTH_LONG).show();\n message.setText(\"BERJAYA!!\");\n }\n\n\n }", "@Override\n public void onClick(View v) {\n startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));\n }", "private boolean isConnectedThroughWifi_preQ() {\n if (checkNetworkStatePermission()) return false;\n\n NetworkInfo activeNetworkInfo = getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected() && activeNetworkInfo.getType() == ConnectivityManager.TYPE_WIFI;\n }", "public void setConnStatus(boolean conn) {\n jMessageEntry.setEnabled(conn);\n jSendButton.setEnabled(conn);\n jMenuItemOtherPartyInfo.setEnabled(conn);\n jMenuSaveCertInfo.setEnabled(conn);\n jMenuItemDisconnect.setEnabled(conn);\n if (conn) {\n setStatus(\"Connected to \" + convo.getOtherID());\n } else {\n setStatus(\"Not connected\");\n }\n\n }", "@Override\n public void onClick(View v) {\n startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));\n }", "public void connect(View v) {\n turnOn(v);\n startActivity(new Intent(Settings.ACTION_BLUETOOTH_SETTINGS));\n Toast.makeText(getApplicationContext(), \"Select device\", Toast.LENGTH_LONG).show();\n System.err.println(bluetoothAdapter.getBondedDevices());\n }", "private void connected() {\n m_connectionLabel.setBackground(Color.GREEN);\n m_connectionLabel.setText(\"Connected\");\n }", "public void setConnected(int client, boolean connected) {\n final int c = client;\n final boolean conn = connected;\n \n Runnable doUpdate = new Runnable() {\n public void run() {\n JLabel statusLabel = (JLabel) cstatus.get(c);\n if (conn) {\n statusLabel.setText(\"Connected\");\n statusLabel.setForeground(new Color(25, 90, 25));\n } else {\n statusLabel.setText(\"Disconnected\");\n statusLabel.setForeground(new Color(90, 25, 25));\n }\n }\n };\n SwingUtilities.invokeLater(doUpdate);\n }", "public void setSwitchOn() throws UnavailableDeviceException, ClosedDeviceException, IOException{\n\t\tswitch1.setValue(false);\n\t\tthis.switchState = true; \n\t}", "private void connection() {\n boolean connect;\n try {\n connect = true;\n this.jTextArea1.setText(\"Server starts...\");\n server = new MultiAgentServer(this);\n String ip = \"\";\n int errorBit = 256;\n for (int i = 0; i < server.getIpAddr().length; i++) {\n int currentIP = server.getIpAddr()[i];\n if (currentIP < 0) {\n currentIP += errorBit;\n }\n ip += currentIP + \".\";\n }\n ip = ip.substring(0, ip.length() - 1);\n System.out.println(ip);\n Naming.rebind(\"//\" + ip + \"/server\", server);\n this.jTextArea1.setText(\"Servername: \" + ip);\n this.jTextArea1.append(\"\\nServer is online\");\n } catch (MalformedURLException | RemoteException e) {\n this.jTextArea1.append(\"\\nServer is offline, something goes wrong!!!\");\n connect = false;\n }\n if (dialog.getMusicBox().isSelected()) {\n sl = new SoundLoopExample();\n }\n reconnectBtn.setEnabled(!connect);\n }", "private void wifiName() {\n\t\tSystem.out.println(\"The wifi name is Redmi\");\n\t}", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "public void setOffline() {\n if (this.shutdownButton.isSelected() == false) {\n this.online = false;\n this.statusLed.setStatus(\"warning\");\n this.setOutputPower(0);\n this.channel.updateOutput();\n }\n }", "public String getWifiPassword() {\n return wifiPassword;\n }" ]
[ "0.70990396", "0.7076161", "0.7030107", "0.69728464", "0.69338137", "0.68303084", "0.6805955", "0.6660031", "0.656805", "0.65175873", "0.64488804", "0.64403015", "0.6438601", "0.6427502", "0.63276213", "0.6320405", "0.6277935", "0.6277741", "0.627343", "0.6237509", "0.6235978", "0.62283415", "0.61949366", "0.6183652", "0.6175758", "0.6169601", "0.6161842", "0.6154891", "0.6128105", "0.6103273", "0.6087186", "0.6063381", "0.60397977", "0.6038292", "0.60152173", "0.59835345", "0.59795487", "0.5979186", "0.59791565", "0.5967168", "0.5964121", "0.5962024", "0.5958548", "0.595395", "0.5939116", "0.59013283", "0.5891989", "0.58817464", "0.5872694", "0.58719355", "0.58591956", "0.58404475", "0.5831799", "0.5831799", "0.5821928", "0.58128303", "0.5799259", "0.57924616", "0.5782453", "0.57769984", "0.57607543", "0.5758034", "0.5729941", "0.57205796", "0.5712359", "0.56885874", "0.5684349", "0.56797993", "0.5668735", "0.5664945", "0.5663359", "0.5657494", "0.56570196", "0.5652395", "0.5650819", "0.5644798", "0.56446", "0.56417567", "0.56417567", "0.56355834", "0.56315124", "0.5629806", "0.56127286", "0.56111234", "0.5607274", "0.5600402", "0.5599211", "0.55976015", "0.5581776", "0.55720913", "0.55708975", "0.5555738", "0.555192", "0.55459", "0.55459", "0.55459", "0.55459", "0.55459", "0.5542049", "0.5541468" ]
0.5994467
35
Enable or disable the buttons when connected
public void setButtonsConfig(boolean connected){ btn_help.setEnabled(connected); btn_retry.setEnabled(!connected); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void activateButtons(){\n limiteBoton.setEnabled(true);\n derivadaBoton.setEnabled(true);\n integralBoton.setEnabled(true);\n}", "private void enableButtons() {\n\t\tcapture.setEnabled(true);\r\n\t\tstop.setEnabled(true);\r\n\t\tselect.setEnabled(true);\r\n\t\tfilter.setEnabled(true);\r\n\t}", "private void setButtonsEnabledState() {\n if (mBroadcastingLocation) {\n mStartButton.setEnabled(false);\n mStopButton.setEnabled(true);\n } else {\n mStartButton.setEnabled(true);\n mStopButton.setEnabled(false);\n }\n }", "private void toggleButtonsEnabled() {\r\n final Button headsBtn = findViewById(R.id.b_heads);\r\n final Button tailsBtn = findViewById(R.id.b_tails);\r\n final Button startBtn = findViewById(R.id.b_startGame);\r\n\r\n headsBtn.setEnabled(false);\r\n tailsBtn.setEnabled(false);\r\n startBtn.setEnabled(true);\r\n }", "public void enableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(true);\n\t\tbtnStop.setEnabled(true);\n\t\tbtnListenAgain.setEnabled(true);\t\t\n\t}", "void enableBtn() {\n findViewById(R.id.button_play).setEnabled(true);\n findViewById(R.id.button_pause).setEnabled(true);\n findViewById(R.id.button_reset).setEnabled(true);\n }", "public void enableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(true);\n }\n }", "protected void enableButtons() {\n if (mPrevious_question.isPressed() || mNext_question.isPressed()) {\n mFalseButton.setEnabled(true);\n mTrueButton.setEnabled(true);\n }\n }", "private void buttonEnable(){\n\t\t\taddC1.setEnabled(true);\n\t\t\taddC2.setEnabled(true);\n\t\t\taddC3.setEnabled(true);\n\t\t\taddC4.setEnabled(true);\n\t\t\taddC5.setEnabled(true);\n\t\t\taddC6.setEnabled(true);\n\t\t\taddC7.setEnabled(true);\n\t\t}", "private void configureEnableButtons() {\r\n\t\ttglbtnBirthdays.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getSource() == tglbtnBirthdays) {\r\n\t\t\t\t\tif (tglbtnBirthdays.isSelected()) {\r\n\t\t\t\t\t\ttglbtnBirthdays.setText(\"Disable\");\r\n\t\t\t\t\t\ttheSender.setBirthdayTemplate(emailStorage.getTemplate(templateBirthday));\r\n\t\t\t\t\t\ttheSender.runBirthdaySetUp();\r\n\t\t\t\t\t\ttheSender.resumeSendingBirthdays();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!tglbtnBirthdays.isSelected()) {\r\n\t\t\t\t\t\ttglbtnBirthdays.setText(\"Enable\");\r\n\t\t\t\t\t\ttheSender.stopSendingBirthdays();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\ttglbtnAnniv.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getSource() == tglbtnAnniv) {\r\n\t\t\t\t\tif (tglbtnAnniv.isSelected()) {\r\n\t\t\t\t\t\ttglbtnAnniv.setText(\"Disable\");\r\n\t\t\t\t\t\ttheSender.setAnnivTemplate(emailStorage.getTemplate(templateAnniv));\r\n\t\t\t\t\t\ttheSender.runAnnivSetUp();\r\n\t\t\t\t\t\ttheSender.resumeSendingAnniv();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!tglbtnAnniv.isSelected()) {\r\n\t\t\t\t\t\ttglbtnAnniv.setText(\"Enable\");\r\n\t\t\t\t\t\ttheSender.stopSendingAnniv();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}", "private void disableButtons()\r\n {\r\n }", "private void ctrlPuasar() {\n btnIniciar.setEnabled(true);\n btnPausar.setEnabled(false);\n\n }", "private void setButtonsEnable(boolean b){\n addButton.setEnabled(b);\n clearButton.setEnabled(b);\n peelOffButton.setEnabled(b);\n buttonControlPanel.setEnabled(b);\n progressCheckBox.setEnabled(b);\n }", "private void setButtons(boolean en){\n btnQuit.setEnabled(!en);\n btnResign.setEnabled(en);\n btnNewGame.setEnabled(!en);\n }", "private void deActivateButtons(){\n limiteBoton.setEnabled(false);\n derivadaBoton.setEnabled(false);\n integralBoton.setEnabled(false);\n}", "protected void UpdateButtons()\n {\n btnIn.setEnabled(usr.getPostType() == Util.ATTENDANCE_DAY_OUT);\n btnOut.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n btnScan.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n\n }", "private void ctrlIniciar() {\n btnPausar.setEnabled(true);\n btnParar.setEnabled(true);\n btnIniciar.setEnabled(false);\n btnIniciar.setText(\"Reanudar\");\n\n }", "public void enable()\n\t{\n\t\tplayButton.setEnabled(true);\n\t\tpassButton.setEnabled(true);\n\t\tbigTwoPanel.setEnabled(true);\n\t}", "private void setButtonsEnabledState() {\n if (mRequestingLocationUpdates) {\n mStartUpdatesButton.setEnabled(false);\n mStopUpdatesButton.setEnabled(true);\n } else {\n mStartUpdatesButton.setEnabled(true);\n mStopUpdatesButton.setEnabled(false);\n }\n }", "private void updateControlButtonStatus(boolean isNetworkConnected) {\n\t\tif (isNetworkConnected) {\r\n\t\t\t// if (mPlayShareButton.getVisibility() == View.VISIBLE) {\r\n\t\t\t// mPlayShareButton.requestFocus();\r\n\t\t\t//\r\n\t\t\t// } else {\r\n\t\t\t// mPlayerStartButton.requestFocus();\r\n\t\t\t// }\r\n\t\t\t// if (mVideoContrl != null && !mVideoContrl.isVOD()) {\r\n\t\t\t// mPlayerSaveButton.setEnabled(false);\r\n\t\t\t// mPlayerSaveButton.setFocusable(false);\r\n\t\t\t// }\r\n\t\t}\r\n\r\n\t\t// mPlayerPrevious.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerPrevious.setFocusable(isNetworkConnected);\r\n\t\t// mPlayerNext.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerNext.setFocusable(isNetworkConnected);\r\n\t\t// mMutiPlayerPrevious.setEnabled(isNetworkConnected);\r\n\t\t// mMutiPlayerPrevious.setFocusable(isNetworkConnected);\r\n\t\t// mMutiPlayerNext.setEnabled(isNetworkConnected);\r\n\t\t// mMutiPlayerNext.setFocusable(isNetworkConnected);\r\n\t\t// mPlayerSequenceButton.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerSequenceButton.setFocusable(isNetworkConnected);\r\n\t\t// mPlayerVolumeButton.setEnabled(isNetworkConnected);\r\n\t\t// mPlayerVolumeButton.setFocusable(isNetworkConnected);\r\n\t}", "public void setupInitEnable(){\n fwdButton.setEnabled(false);\n revButton.setEnabled(false);\n leftButton.setEnabled(false);\n rightButton.setEnabled(false);\n this.powerIcon.setEnabled(false);\n lServoWarn.setEnabled(false);\n rServoWarn.setEnabled(false); \n slideAuto.setEnabled(true); \n }", "private void moikhoacontrol(boolean b) {\n\t\tbtnSua.setEnabled(b);\n\t\tbtnluu.setEnabled(b);\n\t\tbtnxoa.setEnabled(b);\n\t\tbtnThoat.setEnabled(b);\n\t\tbtnTim.setEnabled(b);\n\t\t\n\t}", "private void setBtnState(){\n recordBtn.setEnabled(!recording);\n stopBtn.setEnabled(recording);\n pauseBtn.setEnabled(playing & !paused);\n resumeBtn.setEnabled(paused);\n }", "public static void serverConnected() {\r\n jButton5.setEnabled(false);\r\n jButton4.setEnabled(false);\r\n jButton6.setEnabled(true);\r\n jButton1.setEnabled(true);\r\n jTextField1.setEnabled(true);\r\n log(\"GREEN\", \"[Status] - Connected !\");\r\n }", "public void disableButtons() {\n\t\t\r\n\t\tcapture.setEnabled(false);\r\n\t\tstop.setEnabled(false);\r\n\t\tfilter.setEnabled(false);\r\n\t\tsave.setEnabled(false);\r\n\t\t//load.setEnabled(false);\r\n\t}", "protected void disableButtons() {\n if (mFalseButton.isPressed() || mTrueButton.isPressed())\n mFalseButton.setEnabled(false);\n mTrueButton.setEnabled(false);\n }", "public void enableProductionButtons(){\n for(int i = 0; i < 3; i++){\n productionButtons[i].setText(\"Activate\");\n if (gui.getViewController().getGame().getProductionCard(i) != null){\n productionButtons[i].setEnabled(true);\n } else {\n productionButtons[i].setEnabled(false);\n }\n productionButtons[i].setToken(true);\n Gui.removeAllListeners(productionButtons[i]);\n productionButtons[i].addActionListener(new ActivateProductionListener(gui,productionButtons[i], i));\n }\n\n baseProductionPanel.enableButton();\n }", "private void enableButtons(boolean enabled) {\n saveUserButton.setEnabled(enabled);\n deleteUserButton.setEnabled(enabled);\n resetPassButton.setEnabled(enabled);\n }", "public void toggleEnable();", "private void updateButtons() {\n\t\t SwingUtilities.invokeLater(new Runnable() {\n\t\t public void run() { \n\t\t botones[rowId1][columnId1].toggleOnOff();\n\t\t\t botones[rowId1][columnId1].setEnabled(true);\n\t\t\t \n\t\t\t botones[rowId2][columnId2].toggleOnOff();\n\t\t\t botones[rowId2][columnId2].setEnabled(true);\n\t\t\t \n\t\t\t setEnabled(true);\n\t\t\t \n\t\t timerPush.stop();\n\t\t }\n\t\t });\n\t }", "private void setAllButtonsEnabledStatus(boolean isEnabled) {\n Button identifyButton = (Button) findViewById(R.id.identify);\n identifyButton.setEnabled(isEnabled);\n\n }", "private void enableControls(boolean b) {\n\n\t}", "protected void setEnabledButtons( final boolean b )\r\n {\r\n jButtonSource.setEnabled( b );\r\n jButtonDestination.setEnabled( b );\r\n jButtonClearFileList.setEnabled( b );\r\n jButtonDoAction.setEnabled( b );\r\n }", "private void setAllButtonsEnabledStatus(boolean isEnabled) {\n Button selectImageButton = (Button) findViewById(R.id.select_image);\n selectImageButton.setEnabled(isEnabled);\n\n Button detectButton = (Button) findViewById(R.id.detect);\n detectButton.setEnabled(isEnabled);\n\n //Button ViewLogButton = (Button) findViewById(R.id.view_log);\n //ViewLogButton.setEnabled(isEnabled);\n }", "public void setButtons(\r\n boolean enableOpenButton, boolean enableCheckHealthButton, boolean enableCloseButton,\r\n boolean enableClaimButton, boolean enableReleaseButton,\r\n boolean enableDeviceEnableButton, boolean enableDeviceDisableButton,\r\n boolean enableClearDataButton,\r\n boolean enableBeginEnrollCaptureButton, boolean enableEndCatureButton, boolean enableBeginVerifyCaptureButton,\r\n boolean enableIdentifyMatchButton, boolean enableVerifyMatchButton,\r\n boolean enableIdentifyButton, boolean enableVerifyButton\r\n ) {\r\n jOpen.setEnabled(enableOpenButton);\r\n jCheckHealth.setEnabled(enableCheckHealthButton);\r\n jClose.setEnabled(enableCloseButton);\r\n jClaim.setEnabled(enableClaimButton);\r\n jRelease.setEnabled(enableReleaseButton);\r\n jDeviceEnable.setEnabled(enableDeviceEnableButton);\r\n jDeviceDisable.setEnabled(enableDeviceDisableButton);\r\n jClearData.setEnabled(enableClearDataButton);\r\n jBeginEnrollCapture.setEnabled(enableBeginEnrollCaptureButton);\r\n jEndCapture.setEnabled(enableEndCatureButton);\r\n jBeginVerifyCapture.setEnabled(enableBeginVerifyCaptureButton);\r\n jIdentifyMatch.setEnabled(enableIdentifyMatchButton);\r\n jVerifyMatch.setEnabled(enableVerifyMatchButton);\r\n jIdentify.setEnabled(enableIdentifyButton);\r\n jVerify.setEnabled(enableVerifyButton);\r\n }", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "public void enableChoice() {\n\t\t// Enable the buttons, lighting them up\n\t\trock.setEnabled(true);\n\t\tpaper.setEnabled(true);\n\t\tscissors.setEnabled(true);\n\t}", "private void disableButtons() {\n for (DeployCommand cmd : DeployCommand.values()){\n setButtonEnabled(cmd, false);\n }\n butDone.setEnabled(false);\n setLoadEnabled(false);\n setUnloadEnabled(false);\n setAssaultDropEnabled(false);\n }", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "public void enableDeviceSwitchButtons(boolean enabled) {\r\n\t\tthis.menuToolBar.enableDeviceSwitchButtons(enabled);\r\n\t\tthis.menuBar.enableDeviceSwitchButtons(enabled);\r\n\t}", "protected void setMinVolumeStateOnButtons() {\n mVolDownButton.setEnabled(false);\n mVolUpButton.setEnabled(true);\n }", "public void disableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(false);\n }\n }", "private void enable_buttons() {\n\n\n btnInicio.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //Utilizamos dos botones, una para iniciar y otro para detener. Comprueba cual\n // Se ha pulsado\n switch (view.getId()) {\n //Login\n case R.id.buttonLogin:\n //Comprueba la conexion\n if (comprobarConexion()) {\n //Comprueba si ya hay un servicio iniciado\n if(!servicioIniciado) {\n Intent i = new Intent(getApplicationContext(), Localitzacio.class);\n i.putExtra(\"matricula\", matriculaEditText.getText().toString());\n Log.i(\"SI \", \"se abre el servicio\");\n startService(i);\n servicioIniciado = true;\n }\n } else {\n Log.i(\"NO \", \"se abre el servicio\");\n }\n break;\n //Salir\n case R.id.buttonSortir:\n Intent i = new Intent(getApplicationContext(), Localitzacio.class);\n stopService(i);\n btnStop.setEnabled(true);\n Log.i(\"CERRAR\",\"Se cierra el servicio\");\n break;\n }\n }\n });\n\n\n\n }", "private void connectButtonListener() {\n JButton connectButton = gui.getButton_Connect();\n\n ActionListener actionListener = (ActionEvent actionEvent) -> {\n connectButton.setEnabled(false);\n establishServerConnection();\n };\n\n connectButton.addActionListener(actionListener);\n }", "private void setScanButton() {\n if (!mConnected) {\n if (mAbleBLEService == null) {\n Toast.makeText(getActivity(), \"this should not happen, as this object is static\", Toast.LENGTH_SHORT).show();\n }\n mAbleBLEService.connect(mDeviceAddress);\n sConnectButton.setText(R.string.menu_disconnect);\n sConnectButton.setBackgroundColor(Color.rgb(237, 34, 34));\n } else {\n mAbleBLEService.disconnect();\n sConnectButton.setText(R.string.menu_connect);\n sConnectButton.setBackgroundColor(Color.rgb(42, 42, 42));\n }\n }", "public void disableButtons() {\n p1WinPoint.setEnabled(false);\n p2WinPoint.setEnabled(false);\n }", "private void enableButtons(){\n \n if (this.geselecteerdeStageplaats != null && this.geselecteerdeStageplaats.getBedrijfID() != null){\n this.jButtonSaveStageplaats.setEnabled(true);\n this.jButtonDeleteStageplaats.setEnabled(true);\n\n }\n else{\n this.jButtonSaveStageplaats.setEnabled(false);\n this.jButtonDeleteStageplaats.setEnabled(false);\n }\n if (this.jComboBoxGekendeBedrijven.getSelectedItem() != null){\n this.jButtonBedrijfSelecteren.setEnabled(true);\n }\n else {\n this.jButtonBedrijfSelecteren.setEnabled(false);\n }\n \n }", "private void setAllButtonsEnabledStatus(boolean isEnabled) {\n Button showBaby = (Button) findViewById(R.id.showBaby);\n Button share = (Button) findViewById(R.id.share);\n Button loadImg1 = (Button) findViewById(R.id.loadImg1);\n Button loadImg2 = (Button) findViewById(R.id.loadImg2);\n\n showBaby.setEnabled(isEnabled);\n share.setEnabled(isEnabled);\n loadImg1.setEnabled(isEnabled);\n loadImg2.setEnabled(isEnabled);\n }", "private void lockButton(){\n\t\tconversionPdf_Txt.setEnabled(false);\n\t\tavisJury.setEnabled(false);\n\t\tstatistique.setEnabled(false);\n\t\tbData.setEnabled(false);\n\t\tbDataTraining.setEnabled(false);\n\t\tbCompare.setEnabled(false);\n\t}", "private void enableComponents(boolean input){\n jButton11.setEnabled(input);\n jButton12.setEnabled(input);\n jButton13.setEnabled(input);\n jButton21.setEnabled(input);\n jButton22.setEnabled(input);\n jButton23.setEnabled(input);\n jButton31.setEnabled(input);\n jButton32.setEnabled(input);\n jButton33.setEnabled(input);\n jButton2.setEnabled(!input);\n jTextNome.setEditable(!input);\n }", "public void disableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(false);\n\t\tbtnStop.setEnabled(false);\n\t\tbtnListenAgain.setEnabled(false);\n\t}", "public void resetButtonsMode() {\n host.getMidiOutPort(0).sendMidi(0xB0, 34, 1);\n }", "private void setShowButtonsEnabledStatus(boolean isEnabled) {\n Button showBaby = (Button) findViewById(R.id.showBaby);\n showBaby.setEnabled(isEnabled);\n }", "private void setBtnUsability(boolean enable){\n pushButton.setEnabled(enable);\n popButton.setEnabled(enable);\n }", "@Override\n public void enableProductionButtons() {\n gameboardPanel.disableEndTurnButton();\n gameboardPanel.disableEndOfProductionButton();\n gameboardPanel.enableProductionButtons();\n leaderCardsPanel.enableProductionButtons();\n }", "public void resetButtons() {\n\t\tboolean bool = selectedLesson.isEnable();\n\t\tview.getTestButton().setEnabled(bool);\n\t\tview.getLearnButton().setEnabled(bool);\n\t}", "private void enableButton(Button b) {\n b.setEnabled(true);\n }", "@Override\n public void onClick(View v) {\n if (mBluetoothConnection.isConnected()) {\n mBluetoothConnection.changeState(BluetoothConnection.STATE_IMAGE_RECEIVING);\n mBluetoothConnection.write(\"open_settings\");\n buttonSettings.setEnabled(false);\n } else {\n Toast.makeText(getBaseContext(), \"Device not connected\", Toast.LENGTH_SHORT).show();\n }\n }", "private void setIdentifyButtonEnabledStatus(boolean isEnabled) {\n Button button = (Button) findViewById(R.id.identify);\n button.setEnabled(isEnabled);\n }", "void setNotificationButtonState(Boolean isNotifyEnabled,Boolean isUpdateEnabled,Boolean isCancelEnabled) {\n button_notify.setEnabled(isNotifyEnabled);\n button_update.setEnabled(isUpdateEnabled);\n button_cancel.setEnabled(isCancelEnabled);\n }", "protected void setBetweenVolumeStateOnButtons() {\n mVolDownButton.setEnabled(true);\n mVolUpButton.setEnabled(true);\n }", "@Override\n protected void updateConnectButtonState() {\n boolean connected = getPlusClient().isConnected();\n\n //mSignOutButtons.setVisibility(connected ? View.VISIBLE : View.GONE);\n //mPlusSignInButton.setVisibility(connected ? View.GONE : View.VISIBLE);\n //mEmailLoginFormView.setVisibility(connected ? View.GONE : View.VISIBLE);\n }", "private void enableChat()\r\n\t{\r\n\t\ttextFieldMessageSaisie.setDisable(false);\r\n\t\tlistViewConversation.setDisable(false);\r\n\t\tbuttonChoisirFichier.setDisable(false);\r\n\t\ttextFieldFichier.setDisable(false);\r\n\t}", "private void ctrlDetener() {\n btnIniciar.setEnabled(true);\n btnIniciar.setText(\"Iniciar\");\n btnPausar.setEnabled(false);\n btnParar.setEnabled(false);\n }", "public void operatorControl() {\n for (int i = 0; i < autoControllers.size(); i++) {\n ((EventController) autoControllers.elementAt(i)).disable();\n }\n for (int i = 0; i < teleopControllers.size(); i++) {\n ((EventController) teleopControllers.elementAt(i)).enable();\n }\n \n }", "public void enableInputs();", "private void setDetectButtonEnabledStatus(boolean isEnabled) {\n Button detectButton = (Button) findViewById(R.id.detect);\n detectButton.setEnabled(isEnabled);\n }", "public void updateButtons(){\n\t\tif (Player.getPlayer(this).questManager.atMaxNumQuests()) {\n\t\t\tcreateQuest.setEnabled(false);\n\t\t} else {\n\t\t\tcreateQuest.setEnabled(true);\n\t\t}\n\t\tif (selectedQuest != null){\n\t\t\tdeleteQuest.setEnabled(true);\n\t\t\tcompleteQuest.setEnabled(true);\n\t\t} else {\n\t\t\tdeleteQuest.setEnabled(false);\n\t\t\tcompleteQuest.setEnabled(false);\n\t\t}\n\t}", "private void initButtonStates() {\n//\t\tString provMethod = ProvisioningActivator.getProvisioningService().getProvisioningMethod();\n//\t\tboolean isProvEnabled = (provMethod != null && provMethod.length() > 0 && !provMethod.equals(\"NONE\"));\n//\n//\t\tenableCheckBox.setSelected(isProvEnabled);\n//\n//\t\tif (isProvEnabled) {\n//\t\t\tif (provMethod.equals(\"DHCP\"))\n//\t\t\t\tdhcpButton.setSelected(true);\n//\t\t\telse if (provMethod.equals(\"DNS\"))\n//\t\t\t\tdnsButton.setSelected(true);\n//\t\t\telse if (provMethod.equals(\"Bonjour\"))\n//\t\t\t\tbonjourButton.setSelected(true);\n//\t\t\telse if (provMethod.equals(\"Manual\")) {\n//\t\t\t\tmanualButton.setSelected(true);\n//\n//\t\t\t\tString uri = ProvisioningActivator.getProvisioningService().getProvisioningUri();\n//\t\t\t\tif (uri != null)\n//\t\t\t\t\turiField.setText(uri);\n//\t\t\t}\n//\t\t}\n//\n//\t\tdhcpButton.setEnabled(isProvEnabled);\n//\t\tmanualButton.setEnabled(isProvEnabled);\n//\t\turiField.setEnabled(manualButton.isSelected());\n//\t\tbonjourButton.setEnabled(isProvEnabled);\n//\t\tdnsButton.setEnabled(false);\n//\n//\t\t// creadentials\n//\t\tforgetPasswordButton.setEnabled(isProvEnabled);\n//\t\tusernameField.setText(ProvisioningActivator.getConfigurationService().getString(ProvisioningServiceImpl.PROPERTY_PROVISIONING_USERNAME));\n//\n//\t\tif (ProvisioningActivator.getCredentialsStorageService().isStoredEncrypted(ProvisioningServiceImpl.PROPERTY_PROVISIONING_PASSWORD)) {\n//\t\t\tpasswordField.setText(ProvisioningActivator.getCredentialsStorageService().loadPassword(ProvisioningServiceImpl.PROPERTY_PROVISIONING_PASSWORD));\n//\t\t}\n\t}", "public void habilitabotones() {\n\n\tif (IR.sensmci == true) {\n\t btnmci1.setEnabled(true);\n\t btnmci1.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t //Instancio el panel lecturas (MCI-1) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_1) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 1\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci1.setEnabled(false);\n\n\tif (IR.sensmci2 == true) {\n\t btnmci2.setEnabled(true);\n\t btnmci2.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-2) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_2) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 2\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci2.setEnabled(false);\n\n\tif (IR.sensmci3 == true) {\n\t btnmci3.setEnabled(true);\n\t btnmci3.addMouseListener(new MouseAdapter() {\n\n\t\t\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-3) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_3) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 3\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci3.setEnabled(false);\n\n\tif (IR.sensmci4 == true) {\n\t btnmci4.setEnabled(true);\n\t btnmci4.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-4) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_4) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 4\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci4.setEnabled(false);\n\n\tif (IR.sensbt2 == true) { // Revisar comportamiento y\n\t\t\t\t // necesidad del hiloinfo en bt2\n\n\t btnbt21.setEnabled(true);\n\t btnbt21.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t \n\t\t //Instancio el panel lecturas (BT2-1) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_5) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-1\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t // IR.panelecturasbt2.setActualizar(true);\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasbt2\n\t\t // .setHilomuestrainfo(IR.panelecturasbt2\n\t\t // .getHilomuestrainfo());\n\t\t // IR.panelecturasbt2.hiloinfo = new Thread(\n\t\t // IR.panelecturasbt2.hilomuestrainfo);\n\t\t // IR.panelecturasbt2.hiloinfo.start();\n\n\t\t}\n\t });\n\t} else\n\t btnbt21.setEnabled(false);\n\n\tif (IR.sensbt22 == true) {\n\t btnbt22.setEnabled(true);\n\t btnbt22.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-2) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_6) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-2\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt22.setEnabled(false);\n\n\tif (IR.sensbt23 == true) {\n\t btnbt23.setEnabled(true);\n\t btnbt23.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-3) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_7) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-3\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt23.setEnabled(false);\n\n\tif (IR.sensbt24 == true) {\n\t btnbt24.setEnabled(true);\n\t btnbt24.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-4) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_8){\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\"pulsos\", IR.panelecturasbt2);\n\t\t\tIR.sensores.get(i).addPropertyChangeListener(\"lectura\",\n\t\t\t\tIR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-4\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt24.setEnabled(false);\n\n\tif (IR.hayplacasens) {\n\t btnplaca_sens.setEnabled(true);\n\t btnplaca_sens.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (Sensores) al pulsar el boton.\n\t\t IR.panelecturasens = Panelecturasens.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_SENSORES_0) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasens);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasens);\n\t\t\t \n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasens.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasens);\n\t\t IR.panelecturasens.setVisible(true);\n\t\t}\n\t });\n\t} else\n\t btnplaca_sens.setEnabled(false);\n\n }", "private boolean isBtConnected(){\n \treturn false;\n }", "private void setButton(boolean a) {\n//Vo hieu hoac co hieu luc cho cac JButton\n this.btnCourseAdd.setEnabled(a);\n this.btnCourseDelete.setEnabled(a);\n this.btnCourseEdit.setEnabled(a);\n this.btnCourseSave.setEnabled(!a);\n this.btnCourseReport.setEnabled(!a);\n this.btnCourseReset.setEnabled(!a);\n this.btnCourseClose.setEnabled(a);\n }", "public void onEnable() {\n }", "@Override\n protected void updateConnectButtonState() {\n boolean connected = getPlusClient().isConnected();\n\n mPlusSignInButton.setVisibility(connected ? View.GONE : View.VISIBLE);\n }", "private void setButtons(boolean iVal)\n {\n buttonLogin.setEnabled(iVal);\n buttonLogin.setClickable(iVal);\n buttonSignup.setEnabled(iVal);\n buttonSignup.setClickable(iVal);\n }", "protected void updateEnabled() {\n\t\tFieldGroup control = getUIControl();\n\t\tif (control != null) {\n\t\t\tCollection<? extends IRidget> ridgets = getRidgets();\n\t\t\tfor (IRidget ridget : ridgets) {\n\t\t\t\tridget.setEnabled(isEnabled());\n\t\t\t}\n\t\t\tcontrol.setEnabled(isEnabled());\n\t\t}\n\t}", "public void setButtonEnvoyerMessageBinds()\r\n\t{\r\n\t\t// When the textFieldMessage's text is changed\r\n\t\ttextFieldMessageSaisie.textProperty().addListener(\r\n\t\t\t\tnew ChangeListener<String>()\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void changed(\r\n\t\t\t\t\t\t\tObservableValue<? extends String> observable,\r\n\t\t\t\t\t\t\tString oldValue, String newValue)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// If the textfield is empty\r\n\t\t\t\t\t\tif (textFieldMessageSaisie.getText() == null\r\n\t\t\t\t\t\t\t\t|| textFieldMessageSaisie.getText().trim()\r\n\t\t\t\t\t\t\t\t\t\t.isEmpty())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// Disable the buttonEnvoyer\r\n\t\t\t\t\t\t\tbuttonEnvoyerMsg.setDisable(true);\r\n\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tbuttonEnvoyerMsg.setDisable(false);\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// When the textFieldMessage is disabled\r\n\t\ttextFieldMessageSaisie.disabledProperty().addListener(\r\n\t\t\t\tnew ChangeListener<Boolean>()\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void changed(\r\n\t\t\t\t\t\t\tObservableValue<? extends Boolean> observable,\r\n\t\t\t\t\t\t\tBoolean oldValue, Boolean newValue)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (textFieldMessageSaisie.isDisabled())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// Disable the buttonEnvoyer\r\n\t\t\t\t\t\t\tbuttonEnvoyerMsg.setDisable(true);\r\n\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// If the textfield is not empty\r\n\t\t\t\t\t\t\tif (textFieldMessageSaisie.getText() != null\r\n\t\t\t\t\t\t\t\t\t&& !textFieldMessageSaisie.getText().trim()\r\n\t\t\t\t\t\t\t\t\t\t\t.isEmpty())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t// Disable the buttonEnvoyer\r\n\t\t\t\t\t\t\t\tbuttonEnvoyerMsg.setDisable(false);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t}", "public void enableQuitButton(){\n\t\tbtnStop.setVisible(true);\n\t}", "private void setShowAndShareButtonStatus(boolean isEnabled) {\n Button showBaby = (Button) findViewById(R.id.showBaby);\n Button share = (Button) findViewById(R.id.share);\n\n showBaby.setEnabled(isEnabled);\n share.setEnabled(isEnabled);\n }", "void enableControls( boolean starting ) {\n btn_start.setEnabled( !starting );\n btn_stop.setEnabled( starting );\n slide_numAgents.setEnabled( !starting );\n btn_Exit.setEnabled( !starting );\n }", "private void habilitar() {\n\n if (i <= 0) {\n jButton4.setEnabled(false);\n } else {\n jButton4.setEnabled(true);\n }\n }", "private void configureButtons() {\n\n\t\t// Set button listeners\n\t\tfor(SLChannelControllerViews views : mChannelViews) {\n\t\t\tviews.getChannelButton().setOnTouchListener(new SLSeekBarOnTouchListener(views.getChannelSeekBar()));\n\t\t}\n\t}", "public void enableColourButtons(boolean bool) {\n\t\tredButt.setEnabled(bool);\n\t\tblueButt.setEnabled(bool);\n\t\tgreenButt.setEnabled(bool);\n\t\tyellowButt.setEnabled(bool);\n\t}", "private void updateButtons() {\n\t\tif (selectedDownload != null) {\n\t\t\tint status = selectedDownload.getStatus();\n\t\t\tswitch (status) {\n\t\t\t\tcase Download.DOWNLOADING:\n\t\t\t\t\tpauseButton.setEnabled(true);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.PAUSED:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.ERROR:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: // COMPLETE or CANCELLED\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t}\n\t\t} else {\n\t\t\t// No download is selected in table.\n\t\t\tpauseButton.setEnabled(false);\n\t\t\tresumeButton.setEnabled(false);\n\t\t\tcancelButton.setEnabled(false);\n\t\t\tclearButton.setEnabled(false);\n\t\t}\n\t}", "public void disableButtons() {\n\n for (Button b: buttons) {\n b.setClickable(false);\n }\n\n }", "public void enableEndTurnButton(){\n this.endTurnButton.setEnabled(true);\n }", "private void unlockButton() {\n\t\tconversionPdf_Txt.setEnabled(true);\n\t\tavisJury.setEnabled(true);\n\t\tstatistique.setEnabled(true);\n bData.setEnabled(true);\n\t}", "public void VerifyButtons(){\n if (currentTurn.getSiguiente() == null){\n next_turn.setEnabled(false);\n } else{\n next_turn.setEnabled(true);\n }\n if (currentTurn.getAnterior() == null){\n prev_turn.setEnabled(false);\n } else{\n prev_turn.setEnabled(true);\n }\n if (current.getSiguiente() == null){\n next_game.setEnabled(false);\n } else{\n next_game.setEnabled(true);\n }\n if (current.getAnterior() == null){\n prev_game.setEnabled(false);\n } else{\n prev_game.setEnabled(true);\n }\n }", "private void updateControls() {\n updateBadge();\n etExtUsrId.setEnabled(isPushRegistrationAvailable() && !isUserPersonalizedWithExternalUserId());\n btnPersonalize.setEnabled(!isUserPersonalizedWithExternalUserId());\n btnDepersonalize.setEnabled(isUserPersonalizedWithExternalUserId());\n btnToInbox.setEnabled(isUserPersonalizedWithExternalUserId());\n }", "private void boundButtons() {\r\n \tsingleplayer = (Button) findViewById(R.id.single);\r\n \tsingleplayer.setTypeface(tf);\r\n \tsingleplayer.setOnClickListener(new OnClickListener() {\r\n \t\t\r\n \t\t/** Start a drawing surface for one player*/\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent(Main.this, DrawingActivitySingle.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t}});\r\n \t\r\n \tmultiplayer = (Button) findViewById(R.id.multi);\r\n \tmultiplayer.setTypeface(tf);\r\n \tmultiplayer.setOnClickListener(new OnClickListener() {\r\n \t\t\r\n \t\t/** Connect to other users to start a drawing surface*/\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tif (multiplayer.isEnabled()) {\r\n\t\t\t\t\tmultiplayer.setEnabled(false);\r\n\t\t\t\t\t\r\n\t\t\t\t\tinitMultiPlayer();\r\n\t\t\t\t}\r\n\t\t}});\r\n \t\r\n \toptions = (Button) findViewById(R.id.options);\r\n \toptions.setTypeface(tf);\r\n \toptions.setOnClickListener(new OnClickListener() {\r\n \t\t\r\n \t\t/** Start the options menu */\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent(Main.this, Options.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t}});\r\n }", "private void toggleConnectedButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_toggleConnectedButtonActionPerformed\n if (socketDomainModel.isConnected()) {\n toggleConnectedButton.setText(\"Disconnect\");\n }\n else {\n toggleConnectedButton.setText(\"Connect\");\n }\n toggleConnectedButton.validate();\n }", "public void botoiaDesaktibatu2() {\r\n\t\tbtnAurrera.setEnabled(true);\r\n\t}", "public void enable() {\r\n m_enabled = true;\r\n }", "private void setShareButtonsEnabledStatus(boolean isEnabled) {\n Button share = (Button) findViewById(R.id.share);\n share.setEnabled(isEnabled);\n }", "public void enableButtons (boolean enabled)\n\t{\n\t\tfor (int i = 1; i <= 9; ++ i)\n\t\t\ttileButton[i].setEnabled (enabled);\n\t\tfor (int i = 0; i <= 1; ++ i)\n\t\t\tdieButton[i].setEnabled (enabled);\n\t\tdoneButton.setEnabled (enabled);\n\t}", "private void setDishBtnUsability(boolean enable){\n dishBtn1.setEnabled(enable);\n dishBtn2.setEnabled(enable);\n dishBtn3.setEnabled(enable);\n dishBtn4.setEnabled(enable);\n dishBtn5.setEnabled(enable);\n }", "private void setButtonDisabled() {\n final boolean areProjects = mainController.selectedOrganisationProperty().getValue().getProjects().size() > 0;\n final boolean areTeams = mainController.selectedOrganisationProperty().getValue().getTeams().size() > 0;\n //allocateTeamButton.setDisable(!(areProjects && areTeams));\n }", "protected final void setGUIAttributes(){\r\n\t\t\r\n\t\tbtnOnOff.setEnabled( device.getOn() != null && device.getOn().getActor() != null);\r\n\t\tif(device.getOn() == null){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// if the device is On\r\n\t\tif( device.getOnValue()){\r\n\t\t\tbtnOnOff.setText( \"Turn device Off\");\r\n\t\t// if the device is Off\r\n\t\t}else{\r\n\t\t\tbtnOnOff.setText( \"Turn device On\");\r\n\t\t}\r\n\t\tsetGUIAttributesHelper();\r\n\t}", "private void reEnableCopyButtons() {\n // re-enable the buttons the relevant buttons\n copyToASpaceButton.setEnabled(true);\n repositoryCheckButton.setEnabled(true);\n copyProgressBar.setValue(0);\n\n if (copyStopped) {\n if (ascopy != null) ascopy.saveURIMaps();\n copyStopped = false;\n copyProgressBar.setString(\"Cancelled Copy Process ...\");\n } else {\n copyProgressBar.setString(\"Done\");\n }\n }", "private void setEnabled(JButton a, boolean b) {\n\t\ta.setEnabled(b);\r\n\t}" ]
[ "0.79010975", "0.7775647", "0.75657654", "0.7476253", "0.74259067", "0.739906", "0.7396943", "0.7384288", "0.7375129", "0.73445356", "0.7222642", "0.71908295", "0.7170655", "0.714313", "0.7085566", "0.70829445", "0.7075279", "0.70463073", "0.6992294", "0.69545454", "0.6947615", "0.6945312", "0.6905845", "0.68709457", "0.68557036", "0.6853462", "0.68482876", "0.6835561", "0.68343973", "0.6828762", "0.6824591", "0.68115544", "0.6795798", "0.67418027", "0.6735481", "0.67351794", "0.67295617", "0.6726806", "0.6717094", "0.6697809", "0.668913", "0.66764575", "0.66758263", "0.667529", "0.6659766", "0.6655128", "0.665303", "0.66507244", "0.665025", "0.6637268", "0.66131175", "0.6592713", "0.65925676", "0.6590869", "0.65871876", "0.6556945", "0.6534389", "0.6532666", "0.65260464", "0.65209395", "0.65079397", "0.64626944", "0.6457276", "0.6451421", "0.64488876", "0.64476967", "0.6440849", "0.6430785", "0.6422408", "0.64137346", "0.6407242", "0.6400704", "0.6385044", "0.6363339", "0.6360862", "0.635252", "0.6344174", "0.6342831", "0.63387275", "0.63334066", "0.6332279", "0.6315676", "0.6314594", "0.63143414", "0.6308451", "0.6306787", "0.630648", "0.630362", "0.63030946", "0.6294463", "0.62866294", "0.6282136", "0.62800163", "0.62781763", "0.6274835", "0.62713575", "0.62606454", "0.62602866", "0.6260285", "0.62531775" ]
0.7471012
4
Show a Dialog with the received message
public void showProgressDialog(String message){ if(progressDialog != null) progressDialog.dismiss(); progressDialog = new ProgressDialog(context); progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); progressDialog.setMessage(message); progressDialog.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showMessage(){\n final AlertDialog.Builder alert = new AlertDialog.Builder(context);\n alert.setMessage(message);\n alert.setTitle(title);\n alert.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n alert.create().dismiss();\n }\n });\n alert.create().show();\n }", "private void showDialog(String msg) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(msg)\n .setCancelable(false)\n .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }", "DialogResult show();", "private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View rootView = inflater.inflate(R.layout.fragment_message_dialog, null);\n msg = rootView.findViewById(R.id.msg);\n submit = rootView.findViewById(R.id.msg_submit);\n final int code = getTargetRequestCode();\n builder.setView(rootView);\n builder.setTitle(\"Enter a message:\");\n\n submit.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n\n sendResult(code);\n dismiss();\n\n\n }\n\n });\n\n return builder.create();\n }", "private void show_Alert(String msg) {\n ((TextView) dialog.findViewById(R.id.tv_text)).setText(msg);\n dialog.findViewById(R.id.tv_ok).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }", "private void showVMDialog(int msgStatus) {\n switch (msgStatus) {\n case MSG_VM_EXCEPTION:\n showDialog(VM_RESPONSE_ERROR);\n break;\n case MSG_VM_NOCHANGE:\n showDialog(VM_NOCHANGE_ERROR);\n break;\n case MSG_VM_OK:\n showDialog(VOICEMAIL_DIALOG_CONFIRM);\n break;\n case MSG_OK:\n default:\n // This should never happen.\n }\n }", "public void showMessage(String message);", "public void showmessage ( String tiltle, String message){\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setCancelable(true);\n builder.setTitle(tiltle);\n builder.setMessage(message);\n builder.show();\n }", "private void showMessage(String message) {\n JOptionPane jOptionPane = new JOptionPane(message, JOptionPane.PLAIN_MESSAGE);\n JDialog dialog = jOptionPane.createDialog(frame,\"Message\");\n\n //Must be this one for less bags\n dialog.setModalityType(Dialog.ModalityType.MODELESS);\n dialog.setVisible(true);\n// JOptionPane.showMessageDialog(\n// frame,\n// message,\n// \"Message\",\n// JOptionPane.PLAIN_MESSAGE\n// );\n }", "void ShowWaitDialog(String title, String message);", "public void showMessage(){\r\n if(message == null) return;\r\n JOptionPane.showMessageDialog(new JFrame(), message);\r\n }", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "private void MessageDialog(String message, String pTitulo, String pLabelBoton){ // mostrar mensaje emergente\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()).setMessage(message).setTitle(pTitulo).setPositiveButton(pLabelBoton, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n return;\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "public void showMessage(String message){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(message);\n builder.setCancelable(true);\n\n }", "public void show() {\n listenerHandler.onShow(dialog);\n dialog.show();\n }", "public void show_dialog_box (){\n //show the message of turning on the location\n Dialog dialog = new Dialog(this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.location_message_r);\n dialog.show();\n }", "public void showMessageDialog(int id, String caption, String message)\n{\n MessageDialog.newInstance(id, caption, message, this)\n .show(getFragmentManager(), \"\");\n}", "private void showDialog(int msgId, int buttonId) {\n AlertDialog.Builder builder = new AlertDialog.Builder(mActivity);\n\n builder\n .setMessage(msgId)\n .setTitle(R.string.backup_dialog_title)\n .setPositiveButton(buttonId, this)\n .setNegativeButton(R.string.button_cancel, this);\n\n mDialog = builder.create();\n mDialog.show();\n }", "public void showMessageDialog(String title, String message, Context context) {\n //Create the dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(title);\n builder.setMessage(message);\n builder.show();\n }", "public void showWinMessage() {\n\n\t}", "private void makeMessageDialogue(String message){\n MessageFragment messageFragment = new MessageFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"message\", message);\n messageFragment.setArguments(bundle);\n messageFragment.show(getFragmentManager(), \"message dialogue\");\n }", "private static void showDialog(Shell shell, String title,\r\n\t\t\tString message, int icon) {\r\n\t\tMessageBox messageBox = new MessageBox(shell, icon | SWT.OK);\r\n\t\tmessageBox.setText(title);\r\n\t\tmessageBox.setMessage(message);\r\n\t\tmessageBox.open();\r\n\t}", "private void showAlert(String message) {\n\n if (message.equals(\"Uploaded Successfully...\")) {\n // this.dismiss();\n commmunicator.onDialogMessage(new MessageDetails());\n this.dismiss();\n\n } else {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(form.getContext());\n builder.setMessage(message).setTitle(\"Response from Servers\")\n .setCancelable(false)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // do nothing\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }\n }", "public abstract DialogBox showProgressBox(String message);", "private void showAlertDialog(String message) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())\n .setTitle(\"QR Scanner\")\n .setMessage(message)\n .setPositiveButton(\"OKAY\", (dialog, which) -> {\n dialog.dismiss();\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void ShowMsgDialog(String title, String msg) {\n\t\tAlertDialog.Builder MyAlertDialog = new AlertDialog.Builder(this);\n\t\tMyAlertDialog.setTitle(title);\n\t\tMyAlertDialog.setMessage(msg);\n\t\tDialogInterface.OnClickListener OkClick = new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// no action\n\t\t\t}\n\t\t};\n\t\tMyAlertDialog.setNeutralButton(\"Okay\", OkClick);\n\t\tMyAlertDialog.show();\n\t}", "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\t\t\ttry {\r\n\t\t\t\tpd.dismiss();\r\n\t\t\t}\r\n\t\t\tcatch (Exception ex)\r\n\t\t\t{\r\n\r\n\t\t\t}\r\n\t\t\tShowData();\r\n\t\t}", "public void run() {\n\t\t\t\t\tShell useParent = (parent != null && !parent.isDisposed()) ? parent : GDE.shell;\r\n\t\t\t\t\tMessageBox messageDialog = new MessageBox(useParent, SWT.OK | SWT.ICON_WARNING);\r\n\t\t\t\t\tmessageDialog.setText(GDE.NAME_LONG);\r\n\t\t\t\t\tmessageDialog.setMessage(message);\r\n\t\t\t\t\tmessageDialog.open();\r\n\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Message msg = new Message();\n msg.what = 1;\n set_handler.sendMessage(msg);\n }", "void showMessage(@NonNull BaseMessage message);", "private void showMessageDialog(final String productQuantity) {\n TextView message, closeMsg;\n Button deliveryDetails;\n\n messageDialog.setContentView(R.layout.dialog_order_message);\n message = messageDialog.findViewById(R.id.dialogOrderMsg_message);\n deliveryDetails = messageDialog.findViewById(R.id.dialogOrderMsg_deliveryDetails);\n closeMsg = messageDialog.findViewById(R.id.dialogOrderMsg_close);\n\n String msg = \"Hello \" + name + \", customer service will contact you in some few minutes to confirm your order.\\n\"\n + \"You can proceed to fill the delivery form\";\n\n message.setText(msg);\n\n deliveryDetails.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n messageDialog.dismiss();\n if (defaultValue.equals(\"temp\"))\n showFillDeliveryDetailsForPersonnelDelivery(productQuantity);\n else\n showPreviousDataDialog(productQuantity);\n }\n });\n\n closeMsg.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n messageDialog.dismiss();\n }\n });\n\n messageDialog.show();\n }", "private void showMessage(String msg)\n\t{\n\t\tJOptionPane.showMessageDialog(frame,\n\t\t\t\tmsg,\n\t\t\t\t\"\",\n\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t}", "static void giveInfo(String message){\n JOptionPane.showMessageDialog(null, message);\n }", "private void printUserMessage(String message) {\n dialogBoxContainer.getChildren().add(DialogBox.getUserDialog(message).getRoot());\n }", "public void display() {\n Stage messageStage = new Stage();\n messageStage.initModality(Modality.APPLICATION_MODAL);\n messageStage.setTitle(title);\n messageStage.setMinWidth(350);\n messageStage.setMinHeight(200);\n\n Label messageLabel = new Label();\n messageLabel.setText(message);\n Button closeButton = new Button(\"OK\");\n closeButton.setOnAction(e -> messageStage.close());\n\n VBox vBox = new VBox(10);\n vBox.getChildren().addAll(messageLabel, closeButton);\n vBox.setAlignment(Pos.CENTER);\n\n Scene scene = new Scene(vBox);\n messageStage.setScene(scene);\n messageStage.showAndWait();\n }", "private void displayMessage(final String msg) {\r\n _uiApp.invokeLater(new Runnable() {\r\n /**\r\n * @see Runnable#run()\r\n */\r\n public void run() {\r\n Dialog.alert(msg);\r\n }\r\n });\r\n }", "void showDialog() {\n\t\tDialogFragment newFragment = MyAlertDialogFragment\n\t\t\t\t.newInstance(R.string.not_enoughth_information);\n\t\tnewFragment.show(getFragmentManager(), \"dialog\");\n\t}", "void showProgressDialog(CharSequence message);", "private void showAlert(String message) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setMessage(message).setTitle(\"Response from Yourcare\")\n\t\t\t\t.setCancelable(false)\n\t\t\t\t.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tIntent intent = new Intent(getApplicationContext(),CapturePrescriptionActivity.class);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tfinish();\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tAlertDialog alert = builder.create();\n\t\talert.show();\n\t}", "private void createChatConnectDialog(String message) {\n\t\tmainWindow.readChatRoomDataFromDialog(message);\n\t}", "public void Text_Message(View view) {\r\n adb= new AlertDialog.Builder(this);\r\n adb.setCancelable(false);\r\n adb.setTitle(\"Message Input\");\r\n final EditText eT= new EditText(this);\r\n eT.setHint(\"Type Message Here\");\r\n adb.setView(eT);\r\n adb.setPositiveButton(\"Show\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n String str= eT.getText().toString();\r\n Toast.makeText(MainActivity.this,str,Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n adb.setNegativeButton(\"Cancle\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });\r\n AlertDialog ad=adb.create();\r\n ad.show();\r\n }", "private void dialogshow(String title, String msg) {\n\n AlertDialog.Builder builder =\n new AlertDialog.Builder(this, R.style.AppCompatAlertDialogStyle);\n builder.setTitle(title);\n builder.setMessage(msg);\n builder.setCancelable(false);\n builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (acc1.equals(\"no\")) {\n// sendacktorider();\n Intent fare = new Intent(SlideMainActivity.this, SlideMainActivity.class);\n fare.putExtra(\"userid\", User_id);\n fare.putExtra(\"fbuserproimg\", fbuserproimg);\n fare.putExtra(\"whologin\", WhoLogin);\n fare.putExtra(\"password\", checkpassword);\n startActivity(fare);\n finish();\n }\n dialog.cancel();\n }\n });\n\n builder.show();\n\n }", "private void showAlert(String message) {\n //Builds an AlertDialog with message, title, if cancellable, and what the positive button does\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(message).setTitle(\"Response from Servers\")\n .setCancelable(false)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // do nothing\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n// String errorMessage = null;\n// try {\n// JSONObject arr = new JSONObject(message);\n// errorMessage = arr.getString(\"error\");\n// } catch (JSONException e) {\n// e.printStackTrace();\n// }\n// Toast.makeText(getActivity(), errorMessage, Toast.LENGTH_LONG).show();\n\n }", "public static void infoDialog(String title,String msgBody) throws IOException{\n \n }", "@Override\r\n\t protected Dialog onCreateDialog(int id) {\n\t \r\n\t screenDialog = null;\r\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t screenDialog = new Dialog(this);\r\n\t screenDialog.setContentView(R.layout.message);\r\n\t messageText=(EditText)screenDialog.findViewById(R.id.messagetext1);\r\n\t send=(Button)screenDialog.findViewById(R.id.button1);\r\n\t send.setOnClickListener(sendmessage);\r\n\t cancel=(Button)screenDialog.findViewById(R.id.button2);\r\n\t cancel.setOnClickListener(cancelmessage);\r\n\t }\r\n\t return screenDialog;\r\n\t }", "public static void displayMessage(String message){\n JOptionPane.showInputDialog(message);\n }", "@Override\n public void messagePrompt(String message) {\n JOptionPane.showMessageDialog(lobbyWindowFrame,message+\" is choosing the gods\");\n }", "private void createAndShowDialog(final String message, final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity ());\n\n builder.setMessage(message);\n builder.setTitle(title);\n builder.create().show();\n }", "public abstract void showMessageBox(String message, Runnable callback);", "private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }", "private static void showSingleOptionDialog(Context c, int titleID, int messageID, int buttonID, OnClickListener listener){\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(c);\n\t\tbuilder.setTitle(titleID)\n\t\t.setNegativeButton(buttonID, listener);\n\t\tif(messageID > -1){\n\t\t\tbuilder.setMessage(messageID);\n\t\t}\n\n\t\tbuilder.create().show();\n\t}", "public static void showErrorPanel(String title, String msg) {\n final DialogBox dialogBox = new DialogBox();\r\n dialogBox.setText(\"Remote Procedure Call\");\r\n dialogBox.setAnimationEnabled(true);\r\n final Button closeButton = new Button(\"Close\");\r\n // We can set the id of a widget by accessing its Element\r\n closeButton.getElement().setId(\"closeButton\");\r\n final HTML serverResponseLabel = new HTML();\r\n VerticalPanel dialogVPanel = new VerticalPanel();\r\n dialogVPanel.addStyleName(\"dialogVPanel\");\r\n dialogVPanel.add(new HTML(\"<br><b>Server replies:</b>\"));\r\n dialogVPanel.add(serverResponseLabel);\r\n dialogVPanel.setHorizontalAlignment(VerticalPanel.ALIGN_RIGHT);\r\n dialogVPanel.add(closeButton);\r\n dialogBox.setWidget(dialogVPanel);\r\n\r\n // Add a handler to close the DialogBox\r\n closeButton.addClickHandler(new ClickHandler() {\r\n\r\n @Override\r\n public void onClick(ClickEvent event) {\r\n dialogBox.hide();\r\n }\r\n });\r\n\r\n // Show the error message to the user\r\n dialogBox.setText(title);\r\n serverResponseLabel.addStyleName(\"serverResponseLabelError\");\r\n serverResponseLabel.setHTML(msg);\r\n dialogBox.center();\r\n closeButton.setFocus(true);\r\n }", "public void showDialog(Context context) {\n \n }", "private void showAlert(String msg) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setMessage(msg).setCancelable(false).setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\tdialog.cancel();\n\t\t\t}\n\t\t});\n\t\tAlertDialog alert = builder.create();\n\t\talert.show();\n\t}", "@Override\n public void showMessage(String message) {\n getRootActivity().showMessage(message);\n }", "private void showDialog(String broad_message) {\n\t\tif (!ThermActivity.this.isFinishing()) {\n\t\t\tAlertDialog.Builder builder = new Builder(ThermActivity.this);\n\t\t\tbuilder.setTitle(getResources().getString(R.string.offline_notification)).setMessage(broad_message);\n\t\t\tbuilder.setPositiveButton(getResources().getString(R.string.confirm),\n\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tsendDataBle.sendData(\"0045\", macAddress);// 断开特定设备连接\n\t\t\t\t\t\t\tEMClient.getInstance().logout(true);\n\t\t\t\t\t\t\tAC.accountMgr().logout();\n\t\t\t\t\t\t\tLog.e(TAG, \"退出登录\");\n\t\t\t\t\t\t\tLong userid = PreferencesUtils.getLong(ThermActivity.this, \"userId\");\n\t\t\t\t\t\t\tPushAgent mPushAgent = MainApplication.push();\n\t\t\t\t\t\t\t//userId为用户ID,通过AbleCloud登录接口返回的ACUserInfo可以获取到userId;第二个参数写死ablecloud即可。\n\t\t\t\t\t\t\tmPushAgent.removeAlias(String.valueOf(userid), \"ablecloud\", new UTrack.ICallBack(){\n\t\t\t\t\t\t\t @Override\n\t\t\t\t\t\t\t public void onMessage(boolean isSuccess, String message) {\n\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\tThermActivity.this.finish();\n\t\t\t\t\t\t\tIntent intent = new Intent(ThermActivity.this,\n\t\t\t\t\t\t\t\t\tLoginActivity.class);\n\t\t\t\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK\n\t\t\t\t\t\t\t\t\t| Intent.FLAG_ACTIVITY_NEW_TASK);\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\tAlertDialog alert = builder.create();\n\t\t\talert.setCanceledOnTouchOutside(false);//dialog点击空白不消失\n\t\t\talert.setCancelable(false);//dialog点击返回键不消失\n\t\t\talert.show();\n\t\t}\n\t}", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(getArguments().getString(\"title\"))\n .setMessage(getArguments().getString(\"message\"))\n .setCancelable(false)\n .setPositiveButton(R.string.OK, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n // call callback method\n // mListener.onInfoDialogOKClick(InfoDialog.this);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public void displayNotificationDialog(Context ctx, String title, String msg){\n AlertDialog.Builder dialog = new AlertDialog.Builder(ctx);\n dialog.setTitle(title);\n dialog.setMessage(msg);\n dialog.setPositiveButton(ctx.getResources().getString(R.string.ok_en), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }", "private void showSuccessDialog(){\n\n String successMsg = getString(R.string.msgDeviceRegistered);\n AlertDialog dialog = new AlertDialog.Builder(ValidationActivity.this).create();\n dialog.setMessage(successMsg);\n dialog.setCancelable(false);\n dialog.setButton(DialogInterface.BUTTON_POSITIVE, \"Fertig\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n publishCommand(\"AUTH_END\");\n\n // disconnect mqtt-client and go to main-activity\n try {\n IMqttToken disconToken = mqttClient.disconnect();\n disconToken.setActionCallback(new IMqttActionListener() {\n @Override\n public void onSuccess(IMqttToken asyncActionToken) {\n\n // Go to main-activity\n Intent intent = new Intent(ValidationActivity.this, MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); // clear activity back-stack\n startActivity(intent);\n }\n\n @Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n // something went wrong, but probably we are disconnected anyway\n }\n });\n } catch (MqttException e) {\n e.printStackTrace();\n }\n\n }\n });\n\n dialog.show();\n dialog.getButton(DialogInterface.BUTTON_POSITIVE).setTextColor(getResources().getColor(R.color.colorPrimary));\n }", "private void showMsgBox(Context context, String msgTitle, String msgContent, boolean flag){\n final Dialog dialog = new Dialog(context);\n //tell the Dialog to use the dialog.xml as it's layout description\n dialog.setContentView(R.layout.custom_dialog);\n //dialog.setTitle(msgContent);\n TextView title = (TextView) dialog.findViewById(R.id.dlgTitle);\n TextView content = (TextView) dialog.findViewById(R.id.dlgContent);\n title.setText(msgTitle);\n content.setText(msgContent);\n if (!flag){\n LinearLayout linearLayout = (LinearLayout)dialog.findViewById(R.id.type1);\n linearLayout.removeAllViews();\n }else{\n LinearLayout linearLayout = (LinearLayout)dialog.findViewById(R.id.type2);\n linearLayout.removeAllViews();\n }\n Button dlgCancel = (Button) dialog.findViewById(R.id.dlgCancel);\n dlgCancel.setText(\"Okay\");\n dlgCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }", "private void showMessageOnScreen(String message) {\n JOptionPane.showMessageDialog(this, message);\n }", "public interface DialogKonstanten {\n\n String HANDBOOK_TITLE = \"Bedienungsanleitung\";\n String HANDBOOK_HEADER = \"Tastenbelegung und Menüpunkte\";\n String HANDBOOK_TEXT = \"Ein Objekt kann über den Menüpunkt \\\"File -> Load File\\\" geladen werden.\\nZu Bewegung des Objektes wird die Maus verwendet.\\nRMB + Maus: Bewegen\\nLMB + Maus: Rotieren\\nEine Verbindung zu einem anderen Programm wir über den Menüpunkt Network aufgebaut. Der Server wird gestartet indem keine IP eingegeben wird und eine Verbindung zu einem Server wird erreicht indem die jeweilige IP-Adresse in das erste Textfeld eigegeben wird.\";\n\n}", "@Override\n protected void onPrepareDialog(int id, Dialog dialog) {\n \tToast.makeText(this, dialog.toString(), Toast.LENGTH_SHORT).show();\n }", "public void displayRespuesta(){\n final Dialog customDialog = new Dialog(this);\n customDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n customDialog.setCancelable(false);\n customDialog.setContentView(ar.com.klee.marvinSimulator.R.layout.dialog_sms_respond);\n customDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n\n actualDialog = customDialog;\n\n Typeface fontBold = Typeface.createFromAsset(getApplicationContext().getAssets(),\"Bariol_Bold.otf\");\n Typeface fontRegular = Typeface.createFromAsset(getApplicationContext().getAssets(),\"Bariol_Bold.otf\");\n\n answer = (EditText) customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.contenido);\n answer.setTypeface(fontRegular);\n\n TextView textFor = (TextView) customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.textFor);\n textFor.setTypeface(fontRegular);\n\n TextView contact = (TextView) customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.contact);\n TextView phone = (TextView) customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.phone);\n\n if(!mensaje.getContactName().equals(mensaje.getPhoneNumber())) {\n contact.setText(mensaje.getContactName());\n contact.setTypeface(fontBold);\n phone.setText(mensaje.getPhoneNumber());\n phone.setTypeface(fontRegular);\n }else{\n contact.setText(mensaje.getPhoneNumber());\n contact.setTypeface(fontBold);\n phone.setText(\"Número no agendado\");\n phone.setTypeface(fontRegular);\n }\n\n\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.cancelar).setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View view){\n STTService.getInstance().setIsListening(false);\n commandHandlerManager.setNullCommand();\n customDialog.dismiss();\n }\n });\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.enviar).setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n String smsBody=answer.getText().toString();\n if(smsBody.equals(\"\"))\n Toast.makeText(getApplicationContext(), \"Ingresá un mensaje\", Toast.LENGTH_LONG).show();\n else {\n try {\n\n SmsManager smsManager = SmsManager.getDefault();\n smsManager.sendTextMessage(mensaje.getPhoneNumber(), null, smsBody, null, null);\n if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT)\n saveInOutbox(mensaje.getPhoneNumber(), smsBody);\n Toast.makeText(getApplicationContext(), \"SMS enviado\", Toast.LENGTH_LONG).show();\n\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(), \"El envío falló. Reintentá luego\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n STTService.getInstance().setIsListening(false);\n commandHandlerManager.setNullCommand();\n customDialog.dismiss();\n }\n }\n });\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.leer).setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View view)\n {\n final boolean isListening = STTService.getInstance().getIsListening();\n STTService.getInstance().setIsListening(false);\n\n String smsBody = answer.getText().toString();\n\n if(smsBody.equals(\"\"))\n Toast.makeText(getApplicationContext(), \"Ingresá un mensaje\", Toast.LENGTH_LONG).show();\n else {\n\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.cancelar).setEnabled(false);\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.leer).setEnabled(false);\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.enviar).setEnabled(false);\n\n int delay = commandHandlerManager.getTextToSpeech().speakTextWithoutStart(smsBody);\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n STTService.getInstance().setIsListening(isListening);\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.cancelar).setEnabled(true);\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.leer).setEnabled(true);\n customDialog.findViewById(ar.com.klee.marvinSimulator.R.id.enviar).setEnabled(true);\n }\n }, delay);\n }\n }\n });\n\n customDialog.show();\n\n }", "static void showSuccessMessage(String message) {\n\t JFrame frame =new JFrame(); \n\t JOptionPane.showMessageDialog(frame ,message); \n\t}", "public abstract void showMessageBox(String message);", "private void MensajeInf(String strMensaje){\n javax.swing.JOptionPane obj =new javax.swing.JOptionPane();\n String strTit;\n strTit=\"Mensaje del sistema Zafiro\";\n obj.showMessageDialog(this,strMensaje,strTit,javax.swing.JOptionPane.INFORMATION_MESSAGE);\n }", "private void showErrorDialog(String msg) {\n\t\tJFXDialogLayout content = new JFXDialogLayout();\n\t\tcontent.setHeading(new Text(\"ERROR\"));\n\t\tcontent.setBody(new Text(msg));\n\t\tJFXDialog dialog = new JFXDialog(stackPane, content, JFXDialog.DialogTransition.CENTER);\n\t\t;\n\n\t\tJFXButton button = new JFXButton(\"I understand\");\n\t\tbutton.setButtonType(ButtonType.RAISED);\n\t\tbutton.setCursor(Cursor.HAND);\n\t\tbutton.setOnAction(e -> dialog.close());\n\t\tcontent.setActions(button);\n\t\tdialog.show();\n\t}", "private void showAlert(String message) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(message);\n builder.show();\n }", "public void showMessage(String message) \r\n\t\t{\t\t\t\r\n\t\t}", "void showAlert(String message);", "public void message() {\n JOptionPane.showMessageDialog(null,\n \"Task was deleted successfully.\",\n \"Message\", JOptionPane.INFORMATION_MESSAGE);\n }", "private void showMsg(String msg) {\r\n\r\n\t\tAlertDialog ad = new AlertDialog.Builder(this).create();\r\n\t\tad.setCancelable(false); // This blocks the 'BACK' button\r\n\t\tad.setMessage(msg);\r\n\t\tad.setButton(DialogInterface.BUTTON_POSITIVE, \"Clear messsge\", new DialogInterface.OnClickListener() {\r\n\t\t @Override\r\n\t\t public void onClick(DialogInterface dialog, int which) {\r\n\t\t dialog.dismiss(); \r\n\t\t }\r\n\t\t});\r\n\t\tad.show();\r\n\t}", "private void showPopup(String title, String message)\n\t{\n\t\tJOptionPane.showMessageDialog(frmMPSWebServices, message, title, JOptionPane.PLAIN_MESSAGE);\n\t}", "private void loadDialog(String message){\n\t\tloadingDialog = LoadingDialogFragment.newInstance(message);\n\t\tloadingDialog.show(getFragmentManager(), getString(R.string.loading_dialog));\n\t}", "private void createAndShowDialog(final String message, final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setMessage(message);\n builder.setTitle(title);\n builder.create().show();\n }", "public void createAlertDialog(String msg) {\n\t\tAlertDialog.Builder alertbox = new AlertDialog.Builder(\n\t\t\t\tMainActivity.this);\n\t\talertbox.setTitle(\"Response Message\");\n\t\talertbox.setMessage(msg);\n\t\talertbox.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n\t\t\t// do something when the button is clicked\n\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t}\n\t\t});\n\t\talertbox.show();\n\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tString [] str=(String [])msg.obj;\n\t\t\tfor(int i=0;i<6;i++)\n\t\t\t{System.out.println(str[i]);}\n\t\t\t if(mDialog.isShowing()==true){\n\t\t\t\t mDialog.dismiss(); \n\t\t\t }\n\t\t\t if(str[0].toString().equals(\"anyType{}\")==true){\n//\t\t\t \tSystem.out.println(str[0]);\n\t\t\t\t title.setText(str[1]);\n\t\t\t\t time.setText(str[2]);\n\t\t\t\t type.setText(str[3]);\n\t\t\t\t content.setText(str[4]);\n\t\t\t\t name.setText(str[5]);\n//\t\t\t Toast.makeText(getApplicationContext(),\"发布成功\",Toast.LENGTH_SHORT).show();\n\t\t\t }\n\t\t\t else{\n\t\t\t \tToast.makeText(getApplicationContext(),str[0],Toast.LENGTH_SHORT).show();\n\t\t\t }\n\t\t}", "@Override\n\tpublic void showMessage(String message) {\n\n\t}", "public void working() {\n\t\t Dialog d = new Dialog(this);\r\n\t\t d.setTitle(\"hech yea!\");\r\n\t\t TextView tv = new TextView(this);\r\n\t\t tv.setText(\"Success\");\r\n\t\t d.setContentView(tv);\r\n\t\t d.show();\t\r\n\t}", "@Override\n public void displayMessage(int status, String msg) {\n if (status == Constants.STATUS_OK) {\n dispose();\n } else {\n JOptionPane.showMessageDialog(null, msg, \"Lỗi\", JOptionPane.ERROR_MESSAGE);\n }\n }", "@Override\n public void displayMessage(int status, String msg) {\n if (status == Constants.STATUS_OK) {\n dispose();\n } else {\n JOptionPane.showMessageDialog(null, msg, \"Lỗi\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "public void showCallDialog() {\n new AlertDialog.Builder(this)\n .setTitle(getString(R.string.ms_callDIalog_call_ask)).setMessage(getString(R.string.ms_callDialog_call_contact) + \" \" + user.getNom() + \" \" + user.getPrenom() + \" \" + getString(R.string.ms_callDialog_call_end))\n .setPositiveButton(getString(R.string.ms_callDialog_call), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(getString(R.string.ms_callDialog_phone) + \" \" + user.getTelephone()));\n try {\n startActivity(intent);\n }\n catch(SecurityException e) {\n e.printStackTrace();\n }\n }\n })\n .setNegativeButton(getString(R.string.ms_callDialog_stop), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n }).show();\n }", "public void showDialog(View v){\n FragmentManager fm = getFragmentManager();\n PaymentMethodDialog paymentDialog = new PaymentMethodDialog();\n paymentDialog.show(fm, \"PaymentDialog\");\n Bundle data = new Bundle();\n// data.putString(\"receiver\", receiver);\n paymentDialog.setArguments(data);\n paymentDialog.setArguments(data);\n }", "void showDialog() {\n DialogFragment newFragment = MyAlertDialogFragment.newInstance(R.string.alert_dialog_two_buttons_title);\n newFragment.show(getFragmentManager(), \"dialog\");\n }", "@Override\r\n\t\tpublic void showMessage(String message) {\n\t\t\t\r\n\t\t}", "public void showMessage(String title, String message){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setCancelable(true);\n builder.setTitle(title);\n builder.setMessage(message);\n builder.show();\n }", "public void showOption(Socket s , BufferedReader bof,String contact) throws IOException\n {\n clipRequestNotif.play();\n PrintWriter printWriter = new PrintWriter(s.getOutputStream(),true) ;\n Platform.runLater(() ->\n {\n\n BoxBlur boxBlur = new BoxBlur(3, 3, 3);\n JFXButton no = new JFXButton(\"Refuse\");\n JFXButton yes = new JFXButton(\"Accept\");\n JFXDialogLayout layout = new JFXDialogLayout();\n no.getStyleClass().add(\"dialogButtonNo\");\n yes.getStyleClass().add(\"dialogButtonYes\");\n layout.setActions(no, yes);\n layout.setHeading(new Text(contact+\" wants to chat with you?\"));\n JFXDialog dialog = new JFXDialog(rootStackPane, layout, JFXDialog.DialogTransition.TOP);\n dialog.show();\n rootAnchorPane.setEffect(boxBlur);\n\n no.addEventHandler(MouseEvent.MOUSE_CLICKED, (MouseEvent mouseevnt) ->\n {\n rootAnchorPane.setEffect(null);\n dialog.close();\n printWriter.println(\"false\");\n\n });\n yes.addEventHandler(MouseEvent.MOUSE_CLICKED, (MouseEvent mouseevnt) ->\n {\n rootAnchorPane.setEffect(null);\n dialog.close();\n printWriter.println(\"true\");\n addMessages(contact) ;\n });\n });\n\n }", "private void showDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }", "private void showMessage(String title, String message, Context context) {\r\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\r\n builder.setTitle(title);\r\n builder.setMessage(message);\r\n builder.show();\r\n\r\n\r\n }", "public void informationDialog(String paneMessage) {\n showMessageDialog(frame, paneMessage);\n }", "protected void showErrorDialog(String msg) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(com.mytechia.robobo.framework.R.string.title_error_dialog).\n setMessage(msg);\n builder.setPositiveButton(com.mytechia.robobo.framework.R.string.ok_msg, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n System.exit(0);\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n }", "public Dialog createAddPersonDialog(String title, String msg) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getMyAcitivty());\n builder.setTitle(title);\n builder.setMessage(msg);\n\n // Use an EditText view to get user input.\n final EditText input = new EditText(getMyAcitivty());\n input.setText(\"\");\n builder.setView(input);\n\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int whichButton) {\n String value = input.getText().toString();\n Log.d(TAG, \"user input: \" + value);\n inputDialogResult = value;\n launchTrainingActivity();\n// AlertDialog dg =\n// SelectServerAlertDialog.createDialog(\n// getContext(),\n// \"Pick a Server\",\n// getAllIps(),\n// launchTrainingActivityAction,\n// cancelAction,\n// true);\n// dg.show();\n }\n });\n builder.setNegativeButton(\"Cancel\", SelectServerAlertDialog.cancelAction);\n return builder.create();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Message msg = new Message();\n msg.what = 0;\n set_handler.sendMessage(msg);\n }", "private void showDeleteDialog(String yesLabel, String noLabel, String messageText, final int parameterId){\n AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this,R.style.AppTheme_Dialog));\n builder.setMessage(messageText)\n .setPositiveButton(yesLabel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n new DeleteAquariumTask(parameterId).execute();\n }\n })\n .setNegativeButton(noLabel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n builder.create();\n builder.show();\n }", "public void showAlertMessage(String message) {\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);\n alertDialogBuilder.setMessage(message).setCancelable(false).setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n AlertDialog alertdialog = alertDialogBuilder.create();\n alertdialog.show();\n }", "private void showMessage(int position) {\n // Open Bottom sheet and show details\n }", "public void showMessage(){\n\t jsfMessageHelper.addInfo(\"Mesaj:\", (messageTxt==null?\"?\":messageTxt));\r\n\t}", "public void showAlertDialog(String title, String message) {\n\n\t\t// Create an object of alert class for an activity\n\t\tAlertDialog alertDialog = new AlertDialog.Builder(objContext).create();\n\n\t\t// Setting Dialog Title\n\t\talertDialog.setTitle(title);\n\n\t\t// Setting Dialog Message\n\t\talertDialog.setMessage(message);\n\n\t\t// Setting Icon to Dialog\n\t\talertDialog.setIcon(R.drawable.ic_launcher);\n\n\t\talertDialog.setButton(DialogInterface.BUTTON_POSITIVE, \"Ok\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t\talertDialog.show();\n\t}" ]
[ "0.7077931", "0.7030465", "0.689091", "0.6838709", "0.6765927", "0.67638505", "0.6659819", "0.66519165", "0.66046584", "0.6594314", "0.6575109", "0.6565802", "0.65406144", "0.6515487", "0.6488649", "0.6485402", "0.6473871", "0.6467031", "0.646396", "0.64271665", "0.64222884", "0.6421688", "0.6415892", "0.64083284", "0.6397871", "0.6378748", "0.63737047", "0.63356066", "0.63348526", "0.632785", "0.6325729", "0.6322443", "0.6311806", "0.6298615", "0.62968016", "0.62770796", "0.6274378", "0.6253463", "0.62498236", "0.6236477", "0.6233674", "0.62174535", "0.6216111", "0.6207784", "0.62071186", "0.6199569", "0.6179187", "0.6177305", "0.61743355", "0.6174323", "0.6170353", "0.61579126", "0.6150157", "0.6148319", "0.61476237", "0.6146226", "0.6145135", "0.6143093", "0.61429495", "0.6137364", "0.61310846", "0.61272025", "0.6117639", "0.61173487", "0.6114845", "0.6110162", "0.6108157", "0.61065334", "0.61029553", "0.6102063", "0.61009675", "0.60924125", "0.6088879", "0.6086691", "0.6072984", "0.6072259", "0.6070095", "0.60631925", "0.6051978", "0.60518897", "0.6050006", "0.6039906", "0.6039906", "0.60300976", "0.6020895", "0.6017389", "0.60144305", "0.6006057", "0.60050774", "0.5993756", "0.5993679", "0.59918326", "0.5990338", "0.5989136", "0.5983288", "0.5980903", "0.59726214", "0.5959987", "0.5956459", "0.5954213", "0.5954209" ]
0.0
-1
Close a dialog, with there is one
public void dismissProgressDialog(){ if(progressDialog != null) progressDialog.dismiss(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void closeDialog() { setVisible(false); dispose(); }", "public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}", "private void quitDialog() {\r\n\t\tdispose();\r\n\t}", "protected void closeDialogCancel() {\n dispose();\n }", "public void cancelDialog() {dispose();}", "void CloseOkDialog();", "public static void closeNew() {\n\t\tDIALOG.dispose();\n\t\tDIALOG = null;\n\t}", "protected void closeDialogOk() {\n dispose();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int id) {\n\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t}", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible (false);\n dispose ();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "private void close() {\n\t\t\t\t// name.getScene().getWindow().hide();\n\t\t\t\tdialogStage.fireEvent(new WindowEvent(dialogStage,WindowEvent.WINDOW_CLOSE_REQUEST));\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false);\n dispose();\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t}", "void dialogClosed(PDialog dialog);", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\r\n setVisible(false);\r\n dispose();\r\n }", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t}", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false); \n actionCommand = false;\n dispose();\n }", "@Override\r\n\t public void onClick(DialogInterface dialog, int id) {\n\t \tdialog.dismiss();\r\n\t }", "@Override\r\n\t public void onClick(DialogInterface dialog, int id) {\n\t \tdialog.dismiss();\r\n\t }", "public void closeWindow() {\n isCancelled = true;\n dialogStage.close();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t\t{\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\tfinish();\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "private void closeDialog(java.awt.event.WindowEvent evt)//GEN-FIRST:event_closeDialog\r\n {\r\n setVisible(false);\r\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int id) {\n \t dismiss();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n finish();\n }", "@Override\n public void onClick(DialogInterface dialog,int id) {\n dialog.dismiss();\n }", "@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}", "public void onClick(DialogInterface dialog, int id) {\n getDialog().dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\r\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n\n }", "@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int arg1) {\n dialog.dismiss();\n }", "@Override\n\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t dialog.dismiss();\n\t\t }", "public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\r\n }", "public void onClick(DialogInterface dialog, int whichButton) {\n dialog.dismiss();\n }", "@Override\n \t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t\t\tdialog.dismiss();\n \t\t\t\t\t\tdialog = null;\n \t\t\t\t\t}", "@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\r\n }", "private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\r\n setVisible(false);\r\n setVisible(false);\r\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n\n }", "void CloseWaitDialog();", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n finish();\n }", "public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish();\n }", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int i) {\n dialog.dismiss();\n }", "public void hideDialog() {\n if (activeDialog != null) {\n activeDialog.hide();\n activeDialog = null;\n }\n }", "public void onClick(DialogInterface dialog, int whichButton) {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int whichButton) {\n dialog.dismiss();\n }", "void dismissAlertDialog();", "public void hideDialog() {\n try {\n if (dialog != null) {\n if (dialog.isShowing()) {\n dialog.dismiss();\n\n }\n dialog = null;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void closeDialog(java.awt.event.WindowEvent evt) {\n setVisible(false);\n dispose();\n }", "@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tjDialog.dispose();\n\t\t\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\n\t\t\t\t\tfinish();\n\t\t\t\t}", "@Override\n public void onBtnClick() {\n dialog.dismiss();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }" ]
[ "0.7862187", "0.7861903", "0.7833182", "0.7599906", "0.7551728", "0.7455102", "0.73337364", "0.7307145", "0.7282428", "0.7269845", "0.72579676", "0.72579676", "0.7255378", "0.72532517", "0.72408915", "0.72324705", "0.72324705", "0.72324705", "0.72324705", "0.7230108", "0.72300714", "0.72300714", "0.72202426", "0.7217258", "0.7217258", "0.7217258", "0.7217258", "0.7217258", "0.72121185", "0.72121185", "0.7204808", "0.72023964", "0.72005504", "0.719633", "0.719633", "0.7193607", "0.7191543", "0.7191543", "0.71825314", "0.7177833", "0.7176681", "0.71749187", "0.71749187", "0.71749187", "0.71749187", "0.7167845", "0.7167845", "0.7167845", "0.7167845", "0.7167845", "0.7167845", "0.71676505", "0.71616215", "0.71610624", "0.71601784", "0.71601784", "0.71601784", "0.71601784", "0.71573657", "0.7154187", "0.7154187", "0.7154187", "0.71534616", "0.715241", "0.71479344", "0.7146875", "0.7137235", "0.7133322", "0.7133322", "0.71258867", "0.71157414", "0.71136916", "0.7113366", "0.7108326", "0.71075433", "0.7099081", "0.7089759", "0.7089759", "0.7088999", "0.7088634", "0.70857203", "0.7079597", "0.7078859", "0.7076087", "0.7071593", "0.70583135", "0.70546734", "0.7053312", "0.7036309", "0.7028805", "0.70263594", "0.7023741", "0.70235807", "0.70235807", "0.70207584", "0.70181006", "0.70151323", "0.7004944", "0.70039237", "0.7000507", "0.6995086" ]
0.0
-1
Function tp handle Help button click
public void btnHelpClick(){ try { String Tag = TAG + "-BtnHelp"; // Get number String number = getMyPhoneNO(); ReceiveMessageThread receiveMessageThread; // Mount the message to be sent String msg = "*SOS*;Number:" + number + ";"; Log.i(Tag, msg); // Show message to user showProgressDialog("Sending distress message..."); // Disable Help Button btn_help.setEnabled(false); // Start thread to send message receiveMessageThread = new ReceiveMessageThread(msgHandler, msg); receiveMessageThread.start(); } catch (Exception e){ Log.i(TAG , "Caught this exception: " + e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void handleHelp(ActionEvent event) {\n\t}", "@Override\n\tprotected void handleHelp(ClickEvent event) {\n\t\t\n\t}", "@Override\n \t\t\t\tpublic void doHelp() {\n \n \t\t\t\t}", "public void helpPressed() {\n Stage mainStage = (Stage)pane.getScene().getWindow();\n PresentationCtrl.getInstance().showNotification(\"Information\", \"Information\", null,\n \"- Click <Clear> button to clear the history\\n\\n- Click <Refresh> button to refresh the history\" +\n \"\\n\\n- Double clicks on a row to see the detailed information\", mainStage);\n }", "public void showHelp();", "@Override\n public void actionPerformed(ActionEvent e) {\n helpPopUp();\n }", "private void mnHelpActionPerformed(java.awt.event.ActionEvent evt) {\n\n }", "public void helpRequested(HelpEvent event) {\r\n }", "private void doHelp()\r\n {\r\n Help.showHelp(page, ref, null);\r\n }", "private void showHelpDialog() {\n\n view.helpDialog();\n }", "public void helpBtn( View v )\n {\n \t// Display help here \t\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder( this );\n\t\tbuilder.setMessage( R.string.help_manage_id )\n\t .setTitle( R.string.help_warning );\n\t\tbuilder.setPositiveButton( R.string.ok, new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int idx) {\n\t // User clicked OK button \n\t }\n\t });\t\t\n\t\tAlertDialog dialog = builder.create();\n\t\tdialog.show();\t\t\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tg.printHelp(\"OthelloHelp.txt\");\n\t}", "public void HelpButtonClick(View view) {\n GeneralHelper.ShowHelpInWishActivity(\"step_test.html\", \"\", this);\n return;\n }", "public void handleHelp() {\n if (!helpWindow.isShowing()) {\n helpWindow.show();\n } else {\n helpWindow.focus();\n }\n }", "public void help(View v) {\n\t // Do something in response to button\n\t\tIntent intent = new Intent(this, Help.class);\n\t startActivity(intent);\n\n\t}", "public void helpSpecificAction() {\n new Help(getSpecificHelpTitle(), getSpecificHelp());\n }", "private void actionOnClicHelp() {\r\n\t\ttry {\r\n\t\t\tGUIGeneralMethods.openWebPage(new URL(Constants.C_HELPING_URL));\r\n\t\t} catch (URISyntaxException | IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(frame, Constants.C_ERROR_WHILE_BROWSING_HELP, Constants.C_ERROR_DIALOG_TITLE,\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE); \r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}", "public void help();", "public void jMenuHelpAbout_actionPerformed(ActionEvent e) {\n }", "@Override\n public void help(CommandSender sender) {\n \n }", "private void btn_HelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_HelpActionPerformed\n // go to help screen\n SIHS = new HelpScreen(value);\n SIHS.setVisible(true);\n\n\n }", "public void showHelp(CommandSender sender) {\n\t\t\n\t}", "public void onClickHelp (View v)\n {\n int id = v.getId ();\n int textId = -1;\n switch (id) {\n case R.id.help_button1 :\n textId = R.string.topic_section1;\n break;\n case R.id.help_button2 :\n textId = R.string.topic_section2;\n break;\n case R.id.help_button3 :\n textId = R.string.topic_section3;\n break;\n case R.id.help_button4 :\n textId = R.string.topic_section4;\n break;\n default:\n break;\n }\n\n }", "public void HelpTopicsActionPerformed(java.awt.event.ActionEvent evt) {\n\n HelpWindow helpWindow = new HelpWindow(this);\n helpWindow.setVisible(true);\n\n\n // HTMLDisplay helpdisplay = new HTMLDisplay( str, \"TerpPaint Help\" );\n //\t helpdisplay.setVisible( true );\n // System.out.println(\"help topics\");\n }", "@Override\n\tpublic void sendHelp(ICommandSender sender) {\n\t}", "void help();", "@Override\n public void help() {\n\n }", "public void helpAboutAction() {\n new HelpAbout(this.parentFrame);\n }", "protected void ACTION_B_HELP(ActionEvent arg0) {\n\t\t\r\n\t\tString msg = \"Network Packet Sniffer is JAva packet capturing and traffic analysis application\"\r\n\t\t\t\t+ \"\\n CAPTURE : Start capturing packets on the interface\"\r\n\t\t\t\t+ \"\\nSTOP : Stop capturing packets on the interface\"\r\n\t\t\t\t+ \"\\n LIST : List Network Interfaces on the host\"\r\n\t\t\t\t+ \"\\n SELECT : Select Interface to capture Packets with\"\r\n\t\t\t\t+ \"\\n FILTER : Filter on the selected port when filtering is enabled\"\r\n\t\t\t\t+ \"\\n ENABLE : Enable Port Filtering\"\r\n\t\t\t\t+ \"\\n HELP : Displays the help screen\"\r\n\t\t\t\t+ \"\\n SAVE : Save the information about the packet\"\r\n\t\t\t\t+ \"\\n LOAD : Load the saved data on the interface \"\r\n\t\t\t\t+ \"\\n \";\r\n\t\t\r\n\t\tJOptionPane.showMessageDialog(null, msg);\r\n\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tlogger.info(\"click rootstage's help button\");\n\t\t\t\tshowRootDocumentScreen(ID_HELP);\n\t\t\t}", "@DISPID(-2147412099)\n @PropGet\n java.lang.Object onhelp();", "private void jMenu_HelpTabMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenu_HelpTabMouseClicked\n DigPopGUIUtilityClass.loadDefaultHelpGUIByScreenName(SCREEN_NAME);\n }", "@Override\r\n public void doHelpAction() {\n BIReportService.getInstance().traceHelpClick(project.getBasePath(), ConversionHelpEnum.PATH_SETTING);\r\n\r\n ApplicationManager.getApplication().invokeLater(() -> {\r\n BrowserUtil.browse(allianceDomain + HmsConvertorBundle.message(\"directory_url\"));\r\n }, ModalityState.any());\r\n }", "public void clickHelpLink()\n\t{\n \telementUtils.performElementClick(wbHelpLink);\n\t}", "public void onHelp(View view)\n {\n // Instantiate a dialog box builder\n AlertDialog.Builder builder = new AlertDialog.Builder(view.getContext());\n\n // Parameterize the builder\n builder.setTitle(R.string.helpTitle);\n builder.setMessage(R.string.helpMessage);\n builder.setPositiveButton(android.R.string.ok, null);\n\n // Create the dialog box and show it\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "public void displayHelpMenuView()\n {\n System.out.println(\"\\nHelp menu selected.\");\n }", "public void helpGenericAction() {\n new Help(getGenericHelpTitle(), getGenericHelp());\n }", "@FXML\r\n\tvoid help_btn_clicked(MouseEvent event) {\r\n\t\tDialog<String> dia = new Dialog<>();\r\n\t\tStage stage = (Stage) dia.getDialogPane().getScene().getWindow();\r\n\t\tDialogPane dialogPane = dia.getDialogPane();\r\n\t\tdialogPane.getStylesheets().add(getClass().getResource(\"/client/boundry/dialog.css\").toExternalForm());\r\n\t\tdialogPane.getStyleClass().add(\"dialog\");\r\n\t\tdia.setTitle(\"Help Dialog\");\r\n\t\tdia.setHeaderText(\"Guide:\");\r\n\t\tdia.setGraphic(new ImageView(this.getClass().getResource(\"/icons8-info-48.png\").toString()));\r\n\t\t// Add a custom icon.\r\n\t\tstage.getIcons().add(new Image(this.getClass().getResource(\"/icons8-help-24.png\").toString()));\r\n\t\tdia.getDialogPane().getButtonTypes().addAll(ButtonType.OK);\r\n\t\tdia.setContentText(\r\n\t\t\t\t\"Main Sale Pattern Screen\\nIn this screen you can choose sale from table,add sale, delete and open\\n\"\r\n\t\t\t\t\t\t+ \"for full information, click on specific sale and choose an action, in addition you can click\"\r\n\t\t\t\t\t\t+ \"on \\\"Statistics\\\" for statistic inforamtion\");\r\n\t\tdia.show();\r\n\t}", "void printHelp();", "private void helpAbout() {\n JOptionPane.showMessageDialog(this, new ConsoleWindow_AboutBoxPanel1(), \"About\", JOptionPane.PLAIN_MESSAGE);\n }", "String getHelpText();", "public boolean isHelpMode();", "public static void displayHelp() {\n\t\thelp = getInstance();\n\t\tUIMain.popUpHelp(commandList, inputCommand);\t\n\t\tLoggingLogic.logging(HELP_MESSAGE);\n\t}", "protected void HelpActionPerformed(ActionEvent e) {\n\t\tthis.setVisible(false);\n\t\tHelp frame = new Help();\n\t\tframe.UpFrame=this;\n\t\tframe.setVisible(true);\n\t}", "private void helpService() {\n output.println(\"Help command\");\n output.println(\"-calc <number> \\t Calculates the value of pi based on <number> points; quit \\t Exit from program \");\n }", "public void openHelp(){\n\n Intent helpIntent = new Intent(this, Help.class);\n startActivity(helpIntent);\n\n }", "private void setupHelpButton() {\n\t\tImageIcon help_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"help.png\");\n\t\tJButton help_button = new JButton(\"\",help_button_image);\n\t\thelp_button.setBorderPainted(false);\n\t\thelp_button.setBounds(1216, 24, 100, 100);\n\t\thelp_button.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tHelp help_frame=new Help(PanelID.Quiz);\n\t\t\t\thelp_frame.setVisible(true);\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\thelp_button.addMouseListener(new VoxMouseAdapter(help_button,null));\n\t\tadd(help_button);\n\t}", "private void showHelp() {\n\t\tJOptionPane.showMessageDialog(this, \"Created by Mario Bobić\", \"About File Encryptor\", JOptionPane.INFORMATION_MESSAGE);\n\t}", "public abstract void clickHelp(FloodItWorld w, ACell topLeft);", "protected void do_mntmStudentIHelp_actionPerformed(ActionEvent arg0) {\n\t\tDelVecchioMCSRStudentHelpFrame studentHelpFrame = new DelVecchioMCSRStudentHelpFrame();\n\t\tstudentHelpFrame.setVisible(true);\n\t\t\n\t}", "@FXML\n public void handleHelp() {\n if (!helpWindow.isShowing()) {\n helpWindow.show();\n } else {\n helpWindow.focus();\n }\n }", "@FXML public void handleSentimentRelatedFeaturesHelp() {\n\t\t// Help.help(HelpConstants.FeaturesSets.BASIC_SENTIMENT_BASED_FEATURES);\n\t\ttry {\n\t\t\tRuntime.getRuntime().exec(\"hh.exe \" + Constants.helpFile + \"::1- Sentiment Features.html\");\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void ShowHelpScreen() {\n ToggleVisibility(HelpPage.window);\n }", "public void handleAbout(ApplicationEvent evt) {\n HelpManager hm = (HelpManager) bio.getManager(HelpManager.class);\n if (hm == null) evt.setHandled(false);\n else {\n evt.setHandled(true);\n hm.helpAbout();\n }\n }", "Menu getMenuHelp();", "public void launchHelp(View view){\n Intent intent = new Intent(this, HelpActivity.class);\n startActivity(intent);\n }", "public String getHelp();", "@FXML\n public void handleHelp() {\n HelpWindow helpWindow = new HelpWindow();\n\t\tTemplateClass.instrum(\"LineNumber: \",\"191\", \"Type: \",\"org.eclipse.jdt.core.dom.VariableDeclarationStatement\", \"Method: \",\"handleHelp\", \"Class: \",\"MainWindow\", \"VariableName: \",\"HelpWindow\", \"VariableName: \",\"helpWindow\", \"VariableName: \",\"HelpWindow\");\n helpWindow.show();\n\t\tTemplateClass.instrum(\"LineNumber: \",\"192\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"handleHelp\", \"Class: \",\"MainWindow\");\n }", "public void testHelp() {\n // increasing time because opening of help window can last longer on slower machines\n JemmyProperties.setCurrentTimeout(\"JMenuOperator.PushMenuTimeout\", 60000);\n // open \"Help|Contents\"\n HelpOperator helpOper = HelpOperator.invoke();\n // check help window opened\n // title is \"Help - All\"\n helpOper.close();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tKF5SDKConfig.INSTANCE.startHelpCenterActivity(MainActivity.this, HelpCenterType.HELPCENTERDEFAULT );\n\n\t\t\t}", "private void help() {\n usage(0);\n }", "void showHelp() {\n\t\tif (helpScreen == null) {\n\t\t helpScreen = new Form(\"Walking Help\");\n\t\t helpScreen.append(\"^ = walk forward\\n\");\n\t\t helpScreen.append(\"v = walk backwards\\n\");\n\t\t helpScreen.append(\"< = turn left\\n\");\n\t\t helpScreen.append(\"> = turn right\\n\");\n\t\t helpScreen.append(\"fire = change reverb manually\\n\");\n\t\t}\n\t\thelpScreen.addCommand(toggleCommand);\n\t\thelpScreen.setCommandListener(this);\n\t\tdisplay.setCurrent(helpScreen);\n }", "private void showHelp(){\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this,R.style.MyDialogTheme);\n alertDialogBuilder.setMessage(\"Welcome to NBA Manager 2019\\n\\n\" +\n \"The purpose of the application is to simulate a basketball manager game and draft a team.\\n\\n\" +\n \"You can view your current roster by pressing the right arrow in the top right corner.\\n\\n\" +\n \"*Not all players will have a height or a weight.\");\n alertDialogBuilder.setPositiveButton(\"Ok\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n }\n });\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }", "protected void doHelp (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doHelp method not implemented\");\n\n }", "protected abstract void addHelpHandler(boolean hoverListener);", "public void showHelp(OnClickListener cl) {\n\t\tBuilder adb = new AlertDialog.Builder(this);\n\t\tadb.setIcon(R.drawable.icon);\n \tadb.setTitle(\"Wallpaper Wizard\");\n \tadb.setMessage(Html.fromHtml(\"<b>Tap</b> the images you like, and I will \" + \n \t\t\t\"learn your preferences to suggest new images.<p>\" + \n \t\t\t\"<b>Press and Hold</b> an image to set it as your wallpaper \" + \n \t\t\t\"and save it to the 'wizard' directory on your SD card. \" + \n \t\t\t\"<p>All proceeds from ads will benefit the computer science \" + \n \t\t\t\"program at <b>Centenary College of Louisiana</b>.\"));\n \tadb.setPositiveButton(\"OK\", cl);\n \tadb.show(); \t\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n case MENU_HELP:\r\n help();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "private void showHelp() {\n System.out.println(\"new: \");\n System.out.println(\"new chess and throw the chess bevor away\");\n System.out.println(\"move from to:\");\n System.out.println(\"take the pawn from position from to position to \");\n System.out.println(\"print:\");\n System.out.println(\"print the chess now \");\n System.out.println(\"help:\");\n System.out.println(\"show help\");\n System.out.println(\"quit:\");\n System.out.println(\"quit out\");\n }", "@Override\n public void printHelp() {\n\n }", "public void setHelp (String Help);", "public help() {\n initComponents();\n }", "protected void helpPage() {\n \n System.out.println(\"Commands:\");\n System.out.println(\"\\tQ [filename]\\t\\t\\tquit and save to filename\"); \n System.out.println(\"\\t ~ is used for a space character\" ); \n System.out.println(\"\\tb [STRING] [INDEX]\\t\\tinsert [STRING] \" +\n \"before [INDEX]\");\n System.out.println(\"\\tr [START] [STOP]\\t\\tremove all charecters\" +\n \" from index start to stop\");\n System.out.println(\"\\td [CHAR]\\t\\t\\tremove all [CHAR] elements \" +\n \"in the list\");\n System.out.println(\"\\tr [CHAR1] [CHAR2]\\t\\treplace all \" + \n \"[CHAR1]'s with [CHAR2]\");\n System.out.println(\"\\tz\\t\\t\\t\\trandomly run other commands several\" +\n \" times\");\n System.out.println(\"\\tp [INDEX] [CLIPBOARD]\\t\\tpaste from \" +\n \"clipboard number [CLIPBOARD] to message index [INDEX]\");\n System.out.println(\"\\tc [START] [STOP] [CLIPBOARD]\\t\" + \n \"copy message values from index [START] to [STOP] to \" + \n \"clipboard [CLIPBOARD]\");\n System.out.println(\"\\tx [STOP] [START] [CLIPBOARD]\\tcut from \" +\n \"message index [START] to [STOP] to clipboard [CLIPBOARD]\");\n System.out.println(\"\\th\\t\\t\\t\\tmeans to show this help page\");\n }", "private static void help() {\n\t\t\n\t\tTask[] taskList = createTaskList();\n\t\t\n\t\tSystem.out.println(\"\\n---------------------------------[ HELP ]--------\"\n\t\t\t\t+ \"------------------------------\\n\");\n\t\t\n\t\t// Post1 Display help (Polymorphism)\n\t\tfor (Task task : taskList) {\n\t\t\ttask.displayHelp();\n\t\t}\n\t\t\n\t}", "String getHelpString();", "protected void showHelp() {\n try {\n String appletPath = getClass().getName().replace('.', '/');\n URL url = new URL(getCodeBase(), appletPath+\"Help.html\");\n getAppletContext().showDocument(url, \"Help\");\n } catch (IOException e) {\n showStatus(\"Help file not found\");\n }\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent inten = new Intent(Main_Activity.this, Help.class);\n\t\t\t\tstartActivity(inten);\n\t\t\t}", "private void helpDocItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_helpDocItemActionPerformed\n helpBox.setVisible(true);\n }", "@Override\r\n\tprotected String getHelpInfor() {\n\t\treturn \"\";\r\n\t}", "private static void help() {\n System.out.println(\"Supported Command List:\");\n System.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\");\n System.out.println(\"To draw canvas press: C <width> <height>\");\n System.out.println(\"To draw rectangle press: R <x1> <y1> <x2> <y2>\");\n System.out.println(\"To draw Line press : L <x1> <y1> <x2> <y2>\");\n System.out.println(\"To fill canvas press : B <x> <y> <c>\");\n System.out.println(\"To quit press: Q\");\n System.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\");\n System.out.println();\n }", "@FXML\n public void help() {\n dialogContainer.getChildren().addAll(\n DialogBox.getDukeDialog(HelpCommand.HELP, dukeImage)\n );\n }", "public static void help() {\n System.out.println(\"MENU : \");\n System.out.println(\"Step 1 to create a default character.\"); // create and display a character\n System.out.println(\"Step 2 to display characters.\");\n System.out.println(\"Step 3 to choice a character for list his details. \");\n System.out.println(\"Step 4 to start fight between 2 characters\");\n System.out.println(\"step 5 to remove a character.\");\n System.out.println(\"step 6 to create a Warrior.\");\n System.out.println(\"step 7 to create a Wizard.\");\n System.out.println(\"step 8 to create a Thief.\");\n System.out.println(\"Step 9 to exit the game. \");\n System.out.println(\"Step 0 for help ....\");\n\n }", "@Override\n\tpublic void mouseClicked(MouseEvent me)\n\t{\n\t\tif (me.getSource() == help1)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>Select whether you want to publish your article <br>under your username, first name or your full<br> name (first and surname).</body></html>\");\n\t\t}\n\t\telse if (me.getSource() == help2)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>Article titles should be short and snappy, you may use symbols <br>but use them sparingly.<br><br>A web-friendly-url is what's displayed in the URL box at<br>the top of the users web browser.<br>It should contain NO symbols and NO spaces, only lower case letters,<br>numbers, and dashes. Only edit it if absolutely necessary.</body></html>\");\n\t\t}\n\t\telse if (me.getSource() == help3)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>Select the category that best fits your article, if you<br>find that the categories don't quite fit your article, send us a<br>message in the contact section and we'll set you up a new category.</body></html>\");\n\t\t}\n\t\telse if (me.getSource() == help4)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>Each article requires a short introduction and 200x200 pixel icon image<br>for the homepage. <br><br>NOTE: Ensure that the image you're using is not copyright.</body></html>\");\n\t\t}\n\t\telse if (me.getSource() == help5)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>Each article requires a main image to be displayed at the<br>top of the article page.<br><br>NOTE: Ensure that the image you're using is not copyright.</body></html>\");\n\t\t}\n\t\telse if (me.getSource() == help6)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>\" +\n\t\t\t\t\t\"An article is made up of multiple text and image areas. You can use the buttons<br>\" +\n\t\t\t\t\t\"at the bottom of the page in the toolbar to add new areas. It's advised that you<br>\" +\n\t\t\t\t\t\"start with a text area to explain what your article is all about.<br><br>\" +\n\t\t\t\t\t\"You can have up to 17 areas in total.<br><br>\" +\n\t\t\t\t\t\"Images are displayed int he center of the page and should be no larger than<br>\" +\n\t\t\t\t\t\"720 * 350 pixels. The box the image is displayed in is to aspect ratio so<br>\" +\n\t\t\t\t\t\"make sure your image looks good in it, although the actual image will be<br>\" +\n\t\t\t\t\t\"twice as big.<br><br>\" +\n\t\t\t\t\t\"Text areas should be no more than 20,000 letters, although if you're<br>\" +\n\t\t\t\t\t\"planning on writing that much, you should probably split it up over<br>\" +\n\t\t\t\t\t\"multiple text areas and use images to make it more appealing.</body></html>\");\n\t\t}\n\t}", "@FXML\n\tvoid helpBTNE(MouseEvent event) throws IOException {\n\t\tMainAllControllers.setWindowVar(\"UserHelp\");\n\t\tMainAllControllers.changeWin();\n\t}", "private static void showHelp(){\r\n JOptionPane.showMessageDialog(null, \"1. Choose the faculty.\\n\"\r\n + \"2. Type in the year when the school year started in format YYYY.\\n\"\r\n + \"3. Choose the semester.\\n\"\r\n + \"4. Enter subject codes separated by semicolon. You can add them all at once or add other subjects later.\\n\"\r\n + \"5. Press the Add button to load schedule options.\\n\"\r\n + \"6. Click on the loaded options you want to choose. Their color will turn red.\\n\"\r\n + \"7. Save the options you chose to the text file through File -> Save.\\n\",\r\n \"How-to\", JOptionPane.PLAIN_MESSAGE);\r\n }", "public void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n System.out.println(\" go quit help\");\n }", "public void testClickHelp2(Tester t) {\n initData();\r\n Cell topLeft = (Cell) this.game2.indexHelp(0, 0);\r\n t.checkExpect(topLeft.color, Color.ORANGE);\r\n\r\n topLeft.clickHelp2(this.game2, Color.PINK);\r\n\r\n topLeft = (Cell) this.game2.indexHelp(0, 0);\r\n t.checkExpect(topLeft.color, Color.PINK);\r\n t.checkExpect(this.game2.currTurn, 2);\r\n t.checkExpect(this.game2.worklist,\r\n new ArrayList<ACell>(Arrays.asList(topLeft)));\r\n }", "protected String getHelpText() {\n return \"\";\n }", "private void openHelpDialog() {\r\n\t\t// Get view and put relevant information into the view.\r\n\t\tLayoutInflater li = LayoutInflater.from(this);\r\n\t\tView view = li.inflate(R.layout.archive_help_dialog, null);\r\n\r\n\t\tnew AlertDialog.Builder(this)\r\n\t\t\t\t.setTitle(\r\n\t\t\t\t\t\tgetResources().getString(R.string.action_archive)\r\n\t\t\t\t\t\t\t\t+ \" \"\r\n\t\t\t\t\t\t\t\t+ getResources()\r\n\t\t\t\t\t\t\t\t\t\t.getString(R.string.action_help))\r\n\t\t\t\t.setIcon(R.drawable.icon)\r\n\t\t\t\t.setView(view)\r\n\t\t\t\t.setNegativeButton(R.string.dialog_general_button_close,\r\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\tint whichButton) {\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}).show();\r\n\t}", "public void helpAbout_actionPerformed(ActionEvent e) {\n AboutDialog dlg = new AboutDialog(this, \"About InfoFilter Application\", true);\n Point loc = this.getLocation();\n\n dlg.setLocation(loc.x + 50, loc.y + 50);\n dlg.show();\n }", "@FXML\n void helpEvent(ActionEvent event) {\n \tAlert help = new Alert(AlertType.INFORMATION);\n \thelp.setTitle(\"Fireworks Help\");\n \thelp.setHeaderText(null);\n \thelp.setContentText(\"This app models a firework in flight. \" + \n \t\t\t\"The firework's flight path during simulation is affected by:\\n\\n\" +\n \t \"a) Launcher angle [deg]: You can snap to an integer angle with the middle slider,\" +\n \t \" or you can directly input any real-valued angle to the middle text box (the change will register once you press ENTER).\" + \n \t \"\\nAngles allowed are between -15 and +15 degrees.\\n\\n\" + \n \t \"b) Wind Speed [km/h]: You can snap to an integer speed with the left-most slider,\" +\n \t \" or you can directly input any real-valued speed to the middle text box (the change will register once you press ENTER). \" +\n \t \"\\nSpeeds allowed are between -20 and +20 km/h.\\n\\n\" +\n \t \"You can change these values at any time during simulation!\\n\" + \n \t \"(Copyright Adan Moran-MacDonald, 2016)\");\n \t\n \thelp.showAndWait();\n }", "Help createHelp();", "public void helpMenu()\n {\n System.out.println(\"*********************************************Help Menue**************************************************************\");\n System.out.println(\"Each player starts the game with zero points.\");\n System.out.println(\"Each player is given the following set of five tiles. Each tile has a value and an associated score\");\n System.out.println(\"For each round, each player will play ONE tile, with the tile value adding to the game total for that round.\"); \n System.out.println(\"Provided the game total is less than or equal to 21, the player will get the score for using that tile.\");\n System.out.println(\"If the game total is greater than 21\");\n System.out.println(\"no score is allocated to the player who played the last tile causing the score to become greater than 21.\");\n System.out.println(\"Once the round ends, Each player will get their score based on the total of the tiles they have used during the round.\");\n System.out.println(\"Any player who has NOT used the tile with the value of 5, will get a penalty of -3 points.\");\n System.out.println(\"The player who, after all deductions, has the highest score, will be the winner of that round and will get 5 points.\"); \n System.out.println(\"At the end of all the rounds, the player who has won the most rounds is declared the winner of the game.\");\n System.out.println(\"**********************************************************************************************************************\");\n getUserStringInput(\"Please enter continue\");\n }", "private void help() {\n HelpFormatter formater = new HelpFormatter();\n\n formater.printHelp(\"Main\", options);\n System.exit(0);\n }", "private static void DisplayHelp() {\r\n System.out.println();\r\n System.out.println(\"Usage: Consumes messages from a topic/queue\");\r\n System.out.println();\r\n System.out.println(\" SampleConsumerJava [ < response_file ]\");\r\n System.out.println();\r\n return;\r\n }", "@Override\n public String showHelp()\n {\n return new String(ChatColour.RED + \"Usage: \" + ChatColour.AQUA + this.getName());\n }", "private void printHelp() \n {\n Logger.Log(\"You have somehow ended up in this strange, magical land. But really you just want to go home.\");\n Logger.Log(\"\");\n Logger.Log(\"Your command words are:\");\n parser.showCommands();\n Logger.Log(\"You may view your inventory or your companions\");\n }", "public void help() {\n\t\tString format = \"%-20s%s%n\";\n\t\tString[] commands = new String[5];\n\t\tcommands[0] = \"help\";\n\t\tcommands[1] = \"learn\";\n\t\tcommands[2] = \"alphabet:create\";\n\t\tcommands[3] = \"alphabet:destroy\";\n\t\tcommands[4] = \"alphabet:compose\";\n\n\t\tString[] explanation = new String[5];\n\t\texplanation[0] = \"display this message\";\n\t\texplanation[1] = \"starts a learning process. Note: with a large alphabet, this\\ncan take a \"\n\t\t\t\t+ \"very long time!\";\n\t\texplanation[2] = \"creates an alphabet. Currently only working for Android, the\\n\"\n\t\t\t\t+ \"creation of an iOS alphabet has to be done more or less manually\";\n\t\texplanation[3] = \"deletes an existing alphabet\";\n\t\texplanation[4] = \"composes an alphabet from existing window dumps.\";\n\n\t\tfor (int i = 0; i < commands.length; i++) {\n\t\t\tSystem.out.printf(format, commands[i], explanation[i]);\n\t\t}\n\t}", "@Override\n\tprotected Response doHelp(SplashScreenSearcher searcher, PageModel page) {\n\t\treturn null;\n\t}", "public void openHelp(View view) {\n setViewBackgroundWithoutResettingPadding(view, R.drawable.bkg_button_on);\n\n // Starts the new activity\n Intent intent = new Intent(this, HelpActivity.class);\n startActivity(intent);\n }", "public void recordInProductHelpMenuItemClicked() {\n RecordUserAction.record(\"Android.ChromeHome.IPHMenuItemClicked\");\n }" ]
[ "0.8575735", "0.8489924", "0.80381465", "0.8014706", "0.80128866", "0.7960494", "0.7854072", "0.77753496", "0.77428854", "0.77351975", "0.7686765", "0.7685562", "0.7679063", "0.7668393", "0.763954", "0.76164174", "0.757888", "0.7573544", "0.75631475", "0.7553036", "0.75412613", "0.7520401", "0.74843264", "0.74565", "0.73640597", "0.73616517", "0.7347675", "0.73154473", "0.73105514", "0.72919595", "0.72855574", "0.7257456", "0.7242253", "0.7232502", "0.72011495", "0.71279633", "0.7116759", "0.71154565", "0.7107503", "0.7092585", "0.7078258", "0.70528615", "0.7045568", "0.70130455", "0.70049506", "0.6998134", "0.6993798", "0.69677544", "0.6967525", "0.6955538", "0.6952856", "0.69370055", "0.6918895", "0.6915731", "0.6913248", "0.6912979", "0.687572", "0.68596816", "0.6850354", "0.68370956", "0.6821224", "0.6817398", "0.6808723", "0.67669153", "0.6765754", "0.67609406", "0.67527026", "0.67517936", "0.6751397", "0.6747963", "0.67270434", "0.6716462", "0.67130125", "0.6712961", "0.66877675", "0.66873825", "0.66823", "0.66719514", "0.6665277", "0.66577756", "0.66546196", "0.66493374", "0.6645992", "0.6629296", "0.6622493", "0.6619354", "0.66187936", "0.66083956", "0.65988475", "0.65873563", "0.658452", "0.6566608", "0.6551521", "0.65460896", "0.65454423", "0.65408313", "0.6536774", "0.6515751", "0.65140337", "0.65060383" ]
0.6779397
63
Function to handle Retry button click
public void btnRetryClick(){ String Tag = TAG + "-BtnRetry"; Log.d(Tag, "Retrying..."); // Clear the chosen Wi-Fi and start connection thread again setWifiModule(null); startThread(); //btn_retry.setVisibility(View.INVISIBLE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void onClickRetryButton();", "@OnClick(R.id.retryButton)\n public void retryUpload() {\n callback.retryUpload(contribution);\n }", "void doShowRetry();", "void doRetry();", "public static void checkAndClickTryAgainButton() {\r\n\t\tcheckNoSuchElementExceptionByXPath(\"//*[@id=\\\"markpage\\\"]/center/button[1]\", \"\\\"Try again\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByXPath(\"//*[@id=\\\"markpage\\\"]/center/button[1]\", \"\\\"Try again\\\" button\");\r\n\t}", "@Override\n public void onRetry ( int retryNo){\n }", "@Override\n public void onRetry ( int retryNo){\n }", "@Override\n public void onRetry ( int retryNo){\n }", "private void customizeOfflineDialog() {\n Timber.d(\"Adding Retry button to the popup\");\n PopupActionButton retryButton = createActionButton(mButtonLabel, mButtonsContainer);\n retryButton.setOnClickListener(v -> {\n Timber.d(\"Pressed Retry button, dismissing popup\");\n dismissPopup();\n if (mRetryRunnable != null) {\n Timber.d(\"Executing Retry Runnable\");\n mRetryRunnable.run();\n }\n });\n }", "void onRetryAuthentication();", "@Override\r\n public void onRetry(int retryNo) {\n }", "private void retryOnline() {\n setContentView(R.layout.activity_retry);\n Button retryButton = this.findViewById(R.id.retryButton);\n\n retryButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (isOnline()) {\n recreate();\n }\n }\n });\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "@Override\r\n public void onRetry(int retryNo) {\n }", "public boolean isRetry();", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n\t\tpublic boolean isRetry() { return true; }", "@Override\r\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n public void onRetry(int retryNo) {\n }", "@Override\n\t\tpublic boolean isRetry() { return false; }", "@Override\r\n\tpublic void showRetryDialog(int id, DialogCallBackListerner callback) {\n\t}", "private void onMakeCoffeeRetry(){\n\t\t// ui\n\t\tmMakeCoffeeProgress.setVisibility(View.INVISIBLE);\n\t\tmMakeCoffeeSuccess.setVisibility(View.INVISIBLE);\n\t\tmMakeCoffeeProgressTip.setText(MakeCoffeeCartActivity.this.getString(R.string.make_coffee_retry));\n\t\tmMakeCoffeeFailed.setVisibility(View.VISIBLE);\n\t\tmMakeCoffeeRetry.setVisibility(View.VISIBLE);\n\t\t// sound tip\n\t\tAudioPlayer.getInstance().play(this, R.raw.sound_coffee_make_retry);\n\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tBaseDroidApp.getInstanse().dismissErrorDialog();\n\t\t\t\t\t\n\t\t\t\t\tswitch (v.getId()) {\n\t\t\t\t\tcase R.id.exit_btn:// 取消\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase R.id.retry_btn:// 确定\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "void sendRetryMessage(int retryNo);", "@Override\n\tpublic boolean retry(ITestResult result) \n\t{\n\t\treturn false;\n\t}", "@Override\npublic boolean retry(ITestResult result) {\n\tif(minretryCount<=maxretryCount){\n\t\t\n\t\tSystem.out.println(\"Following test is failing====\"+result.getName());\n\t\t\n\t\tSystem.out.println(\"Retrying the test Count is=== \"+ (minretryCount+1));\n\t\t\n\t\t//increment counter each time by 1  \n\t\tminretryCount++;\n\n\t\treturn true;\n\t}\n\treturn false;\n}", "private void clickContinueButton() {\n clickElement(continueButtonLocator);\n }", "@Override\n public void onRetry(int retryNo) {\n super.onRetry(retryNo);\n // 返回重试次数\n }", "public void retry(){\n _activity.finish();\n Intent i = _activity.getBaseContext().getPackageManager()\n .getLaunchIntentForPackage(_activity.getBaseContext().getPackageName());\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n _activity.startActivity(i);\n }", "public interface OnRetryListener {\n void onRetry();\n}", "public boolean retry(ITestResult result) {\n //You could mentioned maxRetryCnt (Maximiun Retry Count) as per your requirement. Here I took 2, If any failed testcases then it runs two times\n int maxRetryCnt = 1;\n if (retryCnt < maxRetryCnt) {\n System.out.println(\"Retrying \" + result.getName() + \" again and the count is \" + (retryCnt+1));\n retryCnt++;\n return true;\n }\n return false;\n }", "boolean allowRetry(int retry, long startTimeOfExecution);", "@Override\n\tpublic boolean retry(ITestResult result) {\n\n if (!result.isSuccess()) { //Check if test not succeed\n if (count < maxTry) { //Check if maxtry count is reached\n count++; //Increase the maxTry count by 1\n System.out.println(\"is this working?\"); \n result.setStatus(ITestResult.FAILURE); //Mark test as failed\n return true; //Tells TestNG to re-run the test\n } else {\n result.setStatus(ITestResult.FAILURE); //If maxCount reached,test marked as failed\n }\n }\n else {\n result.setStatus(ITestResult.SUCCESS); //If test passes, TestNG marks it as passed\n }\n return false;\n\t}", "public void onTryFails(int currentRetryCount, Exception e) {}", "void retry(Task task);", "public void clickbtnReject() {\n\t\twaitForElementClickable(10,btnReject);\n\t\tdriver.findElement(btnReject).click();\n\t\tsleep(1);\n\t}", "@Override\n public void onClick(View v) {\n if (dialog.isShowing()) {\n dialog.cancel();\n onRetryLoadPaperGroups();\n }\n }", "public void Regcontinuebutton( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- continue Registartion button clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"Regcontinuebutton\"));\r\n\t\t\tclick(locator_split(\"Regcontinuebutton\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- continue Registartion button clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- continue Registartion button is not clicked \"+elementProperties.getProperty(\"Regcontinuebutton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"Regcontinuebutton\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "public static Boolean tryAgainBtn() throws Exception {\n\t\tboolean checkPage=false;\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"markpage\\\"]/center/button[1]\")).click();\n\t\tif (driver.getPageSource().contains(QandA.getQuestion(0))||driver.getPageSource().contains(QandA.getQuestion(1))||driver.getPageSource().contains(QandA.getQuestion(2))){\n\t\t\tcheckPage=true;\n\t\t}\n\t\treturn checkPage;\n\t}", "public void btn_Reshow_Server(ActionEvent e) throws Exception\n {\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\r\n\t\t\t\tif (ConnectionActivity.isNetConnected(TrainerHomeActivity.this)) {\r\n\r\n\t\t\t\t\tmakeClientMissed();\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\td.showSingleButtonDialog(TrainerHomeActivity.this,\r\n\t\t\t\t\t\t\t\"Please enable your internet connection\");\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void onFailure(@NonNull Exception e) {\n resultCallback.onResultCallback(Result.retry());\n }", "@Override\n public void onRetry(HttpRequest req, String reason) {\n\n }", "@Test\n public void testCanRetry() {\n assertEquals(0, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(1, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(2, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n }", "public interface RetryCallback {\n void retry();\n}", "public void clickContinue() {\n\t\tcontinueButton.click();\n\t}", "@Test\n @MediumTest\n @DisabledTest(message = \"crbug.com/1182234\")\n @Feature({\"Payments\"})\n public void testRetryWithCustomError() throws TimeoutException {\n mPaymentRequestTestRule.triggerUIAndWait(\"buy\", mPaymentRequestTestRule.getReadyForInput());\n mPaymentRequestTestRule.clickAndWait(\n R.id.button_primary, mPaymentRequestTestRule.getReadyForUnmaskInput());\n mPaymentRequestTestRule.setTextInCardUnmaskDialogAndWait(\n R.id.card_unmask_input, \"123\", mPaymentRequestTestRule.getReadyToUnmask());\n mPaymentRequestTestRule.clickCardUnmaskButtonAndWait(\n ModalDialogProperties.ButtonType.POSITIVE,\n mPaymentRequestTestRule.getPaymentResponseReady());\n\n mPaymentRequestTestRule.retryPaymentRequest(\"{\"\n + \" error: 'ERROR'\"\n + \"}\",\n mPaymentRequestTestRule.getReadyToPay());\n\n Assert.assertEquals(\"ERROR\", mPaymentRequestTestRule.getRetryErrorMessage());\n }", "public void onClickLogin(View v){\n //If the login was correct\n if (checkLogIn()) {\n // If the loggin is successfoul, save the user as a logged user into a shared preferences\n\n String username=etUser.getText().toString();\n SharedPreferences.Editor editor = sharedpreferences.edit();\n editor.putString(\"username\", username);\n editor.commit();\n\n //Create and launch a new activity\n Intent myIntent = new Intent(getApplicationContext(), EmMessage1.class);\n startActivity(myIntent);\n }\n //Wrong login\n else {\n //Change the retries text view\n tvFailLogin.setVisibility(View.VISIBLE);\n tvFailLogin.setBackgroundColor(Color.RED);\n retriesLogin--;\n tvFailLogin.setText(Integer.toString(retriesLogin));\n //If retries==0, set the login button to not enabled\n if (retriesLogin == 0) {\n bLogin.setEnabled(false);\n }\n }\n }", "@Override\n public void onClick(View view) {\n activityInterface.logEventSelectContent(\"restartButton\", \"restartButton\", MainActivity.CONTENT_TYPE_BUTTON);\n\n onClickRestart();\n }", "@FXML protected void RestartButtonClicked(ActionEvent event) {\n }", "public int retry() {\r\n\t\treturn ++retryCount;\r\n\t}", "@Override\n public void onClick(View v) {\n if((currentRiderIndex+1) == totalRiderIndex){\n sendFailedNotificationToClient(dataForStoreOrder);\n //finish();\n }else {\n sendNotificationToNextRider(dataForStoreOrder);\n //finish();\n }\n }", "public boolean retry(ITestResult result) {\n\t\tif (counter < retryMaxLimit) {\n\t\t\tcounter++;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public void onRetry(int retryNo) {\n Log.d(\"AsyncAndro\", \"AsyncAndroid retryNo:\" + retryNo);\n }", "@Override\n public void onRetry(int retryNo) {\n Log.d(\"AsyncAndro\", \"AsyncAndroid retryNo:\" + retryNo);\n }", "@Override\n public void onRetry(int retryNo) {\n Log.d(\"AsyncAndro\", \"AsyncAndroid retryNo:\" + retryNo);\n }", "public void incrementRetryCount() {\n this.retryCount++;\n }", "@Test\n @MediumTest\n @DisabledTest(message = \"crbug.com/1182234\")\n @Feature({\"Payments\"})\n public void testRetryWithDefaultError() throws TimeoutException {\n mPaymentRequestTestRule.triggerUIAndWait(\"buy\", mPaymentRequestTestRule.getReadyForInput());\n mPaymentRequestTestRule.clickAndWait(\n R.id.button_primary, mPaymentRequestTestRule.getReadyForUnmaskInput());\n mPaymentRequestTestRule.setTextInCardUnmaskDialogAndWait(\n R.id.card_unmask_input, \"123\", mPaymentRequestTestRule.getReadyToUnmask());\n mPaymentRequestTestRule.clickCardUnmaskButtonAndWait(\n ModalDialogProperties.ButtonType.POSITIVE,\n mPaymentRequestTestRule.getPaymentResponseReady());\n\n mPaymentRequestTestRule.retryPaymentRequest(\"{}\", mPaymentRequestTestRule.getReadyToPay());\n\n Assert.assertEquals(\n mPaymentRequestTestRule.getActivity().getString(R.string.payments_error_message),\n mPaymentRequestTestRule.getRetryErrorMessage());\n }", "boolean doRetry() {\n synchronized (mHandler) {\n boolean doRetry = currentRetry < MAX_RETRIES;\n boolean futureSync = mHandler.hasMessages(0);\n\n if (doRetry && !futureSync) {\n currentRetry++;\n mHandler.postDelayed(getNewRunnable(), currentRetry * 15_000);\n }\n\n return mHandler.hasMessages(0);\n }\n }", "public abstract long retryAfter();", "public void s_restart() {\n\n leftButton.setVisibility(View.VISIBLE);\n upButton.setVisibility(View.VISIBLE);\n rightButton.setVisibility(View.VISIBLE);\n\n visible = true;\n TransitionSet set = new TransitionSet()\n .addTransition(new Scale(0.7f))\n .addTransition(new Fade())\n .setInterpolator(visible ? new LinearOutSlowInInterpolator() :\n new FastOutLinearInInterpolator());\n\n TransitionManager.beginDelayedTransition(turn_signals, set);\n turn_signals.setVisibility(visible ? View.GONE : View.VISIBLE);\n\n approve.setVisibility(View.GONE);\n declined.setVisibility(View.GONE);\n result.setVisibility(View.VISIBLE);\n\n everyOther = !everyOther;\n\n // calls the function to display the correct approve or deny icons\n result(everyOther);\n }", "public void showRetryView() {\n mStateView.showViewRetry();\n }", "public void clickFailure(ActionEvent actionEvent) {\n current.getSelector().update(Selector.AnswerType.FAILURE);\n nextCard();\n }", "private void retryTask(HttpServletResponse resp) {\n resp.setStatus(500);\n }", "@Override\n public void onClick(View widget) {\n Intent intent = new Intent(LoginActivity.this, Recuperar_contraseña.class);\n startActivityForResult(intent,RESULT_ACTIVITY_RESTART);\n }", "int getRetries();", "@Test\n\tpublic void checking_thirdalertbtn_withcancel()throws IOException, InterruptedException\n\t{\n\t\tgetlogin();\n\t\tSwitchtoPage sp=new SwitchtoPage(driver);\n\t\tsp.getswitchtolink().click();\n\t\tsp.getAlertlink().click();\n\t\tsp.getalTextbox().click();\n\t\tsp.getPrompt().click();\n \t Alert al=driver.switchTo().alert();\n \t al.dismiss();\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n executor.cancel();\n }", "private void sendCancelRpcCall(int numberRetries) {\n\t}", "@Override\n public void onClick(View v) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n doClickOnButtonOk();\n }\n });\n }", "@Override\n protected RetryConstraint shouldReRunOnThrowable(@NonNull Throwable throwable, int runCount, int maxRunCount) {\n return RetryConstraint.CANCEL;\n }", "@Override\n \t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t\tGameActivity.requestRestart();\n \t\t\t\t}", "public void onClick(DialogInterface arg0, int arg1) {\n\t \t //Declare Object From Get Internet Connection Status For Check Internet Status\n\t \t System.exit(0);\n\t \t\t\t arg0.dismiss();\n\t \t\t\t \n\t }", "public void tryAgain(View view) {\n startActivity(new Intent(getApplicationContext(), StartingActivity.class));\n }", "public int getRetryAttempt()\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(RETRYATTEMPT$24, 0);\n if (target == null)\n {\n return 0;\n }\n return target.getIntValue();\n }\n }", "public void checkoutcontinuebutton( ){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- continue Registartion button clicked in popu page\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"checkoutregistrationcontinue\"));\r\n\t\t\tclick(locator_split(\"checkoutregistrationcontinue\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- ccontinue Registartion button clicked in popu page\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- continue Registartion button is not clicked in popu page\"+elementProperties.getProperty(\"_Regcontinuebutton\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"checkoutregistrationcontinue\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "public void clickOnSuccessOkBtn() throws Exception {\r\n\t\r\n\t\t\tclickOnButton(btnOKSuccess);\r\n\t\t\tlog(\"clicked on OK button and object is:-\" + btnOKSuccess.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t}", "private void onButtonErrorClick() {\n mNavigationCallback.goToStepRqst(NavigationCallback.RegistrationSteps.MARKET_SELECTION);\n }", "@Override\n public void onClick(View v) {\n buttonCancelClicked();\n }", "public void onReservationFailed() {\n this.reserveImageButton.setEnabled(true);\n Toast.makeText(getActivity(), getString(R.string.failed_to_reserve), Toast.LENGTH_LONG).show();\n }", "public void connectCallAppAbilityFail() {\n if (needTryAgain()) {\n HiLog.error(LOG_LABEL, \"connectCallAppAbilityFail: retry.\", new Object[0]);\n if (this.mHandler == null) {\n this.mHandler = createHandler();\n }\n if (this.mHandler != null) {\n try {\n this.mHandler.sendEvent(InnerEvent.get(1000, 0, null), DELAYED_TIME_RETRY_CONNECT_INCALL_ABILITY, EventHandler.Priority.IMMEDIATE);\n } catch (IllegalArgumentException unused) {\n HiLog.error(LOG_LABEL, \"connectCallAppAbilityFail: got IllegalArgumentException.\", new Object[0]);\n }\n }\n } else {\n HiLog.error(LOG_LABEL, \"connectCallAppAbilityFail: reached max retry counts.\", new Object[0]);\n disconnectLiveCalls();\n this.mRetryConnectCallAppAbilityCount = 0;\n releaseResource();\n }\n }", "public void onSignupFailed() {\n\n _signupButton.setEnabled(true);\n }", "private void attemptReset(final View theButton) {\n validateEmail();\n }", "public boolean retry() {\n return tries++ < MAX_TRY;\n }", "@When(\"^User clicks on continue button$\")\n\tpublic void user_clicks_on_continue_button() throws Throwable {\n\t\tGetDriver.browserState().findElement(By.name(\"findFlights\")).click();\n\t}", "public _cls_cs_retries0() {\r\n}", "public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}", "public void manualConnectionRetry()\r\n {\r\n if ( statusObj.value != STATUS_CANDIDATE_BUSY &&\r\n statusObj.value != STATUS_CANDIDATE_CONNECTION_FAILED &&\r\n statusObj.value != STATUS_CANDIDATE_RANGE_UNAVAILABLE &&\r\n statusObj.value != STATUS_CANDIDATE_BAD &&\r\n statusObj.value != STATUS_CANDIDATE_IGNORED )\r\n {\r\n return;\r\n }\r\n setStatus( STATUS_CANDIDATE_WAITING );\r\n SwarmingManager.getInstance().notifyWaitingWorkers();\r\n }", "@Override\n\tpublic boolean onTaskFailed(Appstart arg0, Exception arg1) {\n\t\tnew AlertDialog.Builder(getContext())\n\t\t.setIcon(getContext().getResources().getDrawable(R.drawable.login_error_icon))\n\t\t.setTitle(\"Sorry\").setMessage(arg1.getMessage()+\"!\")\n\t\t\t.setPositiveButton(\"OK\", new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tgetContext().openActivity(PrepLogin.class); //AppManager.getInstance().AppExit(getContext());//System.exit(0);\n\t\t\t}\n\t\t})\n\t\t.create().show();\n\t\treturn true;\n\t}", "public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }", "public void f_restart() {\n\n result.setVisibility(View.GONE);\n request_button_content.setVisibility(View.VISIBLE);\n\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n pulsator_left.setVisibility(View.VISIBLE);\n pulsator_up.setVisibility(View.VISIBLE);\n pulsator_right.setVisibility(View.VISIBLE);\n\n visible = false;\n TransitionSet set_request = new TransitionSet()\n .addTransition(new Scale(0.7f))\n .addTransition(new Fade())\n .setInterpolator(visible ? new LinearOutSlowInInterpolator() :\n new FastOutLinearInInterpolator());\n\n TransitionManager.beginDelayedTransition(request_button_content, set_request);\n btnClick.setVisibility(visible ? View.GONE : View.VISIBLE);\n }\n }, 250);\n }" ]
[ "0.8639917", "0.7476218", "0.743596", "0.7228986", "0.67441434", "0.653507", "0.653507", "0.653507", "0.6469435", "0.64435995", "0.6414383", "0.6401168", "0.63980794", "0.63980794", "0.63980794", "0.63845074", "0.6380763", "0.6355767", "0.63489205", "0.63368845", "0.63368845", "0.63368845", "0.63368845", "0.63368845", "0.63368845", "0.63368845", "0.63368845", "0.63368845", "0.62743646", "0.62522745", "0.62121046", "0.6201456", "0.61507976", "0.6119187", "0.60589874", "0.6058661", "0.6034546", "0.60174763", "0.6006708", "0.5987977", "0.5966848", "0.59204775", "0.58999014", "0.5886293", "0.5871036", "0.5847149", "0.5821975", "0.58035266", "0.57498", "0.57491714", "0.5748881", "0.57228434", "0.5705291", "0.56834024", "0.5674775", "0.5672049", "0.5671821", "0.56639534", "0.56490177", "0.5644541", "0.56068754", "0.5605277", "0.5596925", "0.5596925", "0.5596925", "0.5591594", "0.5591041", "0.5590311", "0.5571326", "0.5563813", "0.5561395", "0.5552634", "0.5543059", "0.5524831", "0.55175334", "0.55114025", "0.5501482", "0.54852897", "0.5462522", "0.5459745", "0.5448422", "0.54362506", "0.54355586", "0.5416485", "0.54033685", "0.5394328", "0.53899825", "0.5381787", "0.5371457", "0.53678405", "0.53677905", "0.5366015", "0.5361665", "0.53480196", "0.53468007", "0.53433204", "0.5341478", "0.53357947", "0.5326193", "0.531845" ]
0.7505771
1
Function to handle List WiFi click
public void btnListClick(){ // Scan the Wi-Fi to refresh list mwifiAdmin.scanForRescueNet(); // Show the List screen FragmentManager fm = getActivity().getSupportFragmentManager(); if(rescueListFragment == null) rescueListFragment = RescueListFragment.newInstance(mwifiAdmin); fm.beginTransaction().replace(R.id.container_main, rescueListFragment).addToBackStack(null).commit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t\t\t\t if(!wfmgr.isWifiEnabled()){\n\t\t\t\t\t\t \n\t\t\t\t\t\t Toast.makeText(getApplicationContext(), \"Wifi is disable plz able to wifi\", Toast.LENGTH_SHORT).show();\n\t\t\t\t \t\n\t\t\t\t }else{ \n\t\t\t\t \t\n\t\t\t\t \t\tsearchingWifi();\n\t\t \n\t\t \n\t\t \n\t\t\t\t }\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tWifiManager wm=(WifiManager)getSystemService(WIFI_SERVICE);\n\t\t\t\tif(wm.isWifiEnabled())\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI:ON\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\tWifiInfo wi=wm.getConnectionInfo();\n\t\t\t\t\tif(wi.getNetworkId()==-1)\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI IS NOT CONNECT TO ANY DEVICE\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI IS CONNECTED\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"WIFI IS OFF\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\n\t\t\t\tmWifiAdmin = new WifiAdmin(context)\n\t\t\t\t{\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void myUnregisterReceiver(BroadcastReceiver receiver)\n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tunregisterReceiver(receiver);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Intent myRegisterReceiver(BroadcastReceiver receiver, IntentFilter filter)\n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tregisterReceiver(receiver, filter);\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onNotifyWifiConnected()\n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tLog.v(TAG, \"have connected success!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onNotifyWifiConnectFailed()\n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tLog.v(TAG, \"have connected failed!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tmWifiAdmin.openWifi();\n\t\t\t\t// 连的WIFI热点是用WPA方式保护\n\t\t\t\tmWifiAdmin.addNetwork(mWifiAdmin.createWifiInfo(Constant.HOST_SPOT_SSID, Constant.HOST_SPOT_PASS_WORD, WifiAdmin.TYPE_WPA));\n\t\t\t}", "private void listOnItemLongclick() {\n\t\tmlvWifi.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfinal String ssid = mListWifi.get(arg2).get(\"ssid\").toString();\n\t\t\t\t//final boolean password = mListWifi.get(arg2).get(\"password\");\n\t\t\t\tfinal boolean password = Boolean.valueOf(mListWifi.get(arg2).get(\"password\").toString());\n\t\t\t\tLog.i(\"pss\",\"me click item\");\n\t\t\t\tcreateDialog(ssid,password);\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n ListView listView = (ListView)findViewById(R.id.list);\n wifilist = new ArrayList<HashMap<String,Object>>();\n wfmgr = (WifiManager)getSystemService(Context.WIFI_SERVICE);\n \t //tv = (TextView)findViewById(R.id.text);\n \t ImageButton btn = (ImageButton)findViewById(R.id.btn);\n Button btns = (Button) findViewById(R.id.scanbtn);\n \n adapter = new SimpleAdapter(this, wifilist, R.layout.listbox, \n \t\tnew String[]{NAMEKEY,DESC_STR,IMGKEY}, new int[]{R.id.text1,R.id.text2,R.id.img});\n \t\t\n listView.setAdapter(adapter);\n listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); \n \n listView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tint position = arg0.getPositionForView(arg1);\n\t\t\t\tHashMap<String, Object> item = new HashMap<String, Object>(); \n\t\t\t\titem = wifilist.get(position);\n\t\t\t\t\n\t\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(Network_testActivity.this);\n\t\t\t\talert.setTitle(item.get(NAMEKEY).toString());\n\t\t\t\talert.setMessage(item.get(NAMEKEY).toString()+ \"에 연결 하시겠습니까?\");\n\t\t\t\talert.setPositiveButton(\"연결\",\n\t new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\n\t \tdialog.cancel();\n\n\t }\n\t });\n\t\t\t\talert.setNegativeButton(\"취소\",\n\t new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t dialog.cancel();\n\t }\n\t });\n\n\t\t\t\talert.show();\n\t\t\t}\n\t\t\n \n });\n \n \n \n if(!wfmgr.isWifiEnabled()){\n \t//tv.setText(\"Wifi off\");\n \tbtn.setImageResource(R.drawable.wifioff);\n \t\n } else {\n \t//tv.setText(\"Wifi On\");\n \tbtn.setImageResource(R.drawable.wifion);\n \tsearchingWifi();\n \t\n \n }\n \n \n \n \n \n \n \n \n \n btn.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t \n\t\t\t \n\t\t\t\n\t\t\t \t ImageButton btn = (ImageButton)findViewById(R.id.btn);\n\t\t\t\t if(!wfmgr.isWifiEnabled()){\n\t\t\t \t//tv.setText(\"Wifi On\");\n\t\t\t \twfmgr.setWifiEnabled(true);\n\t\t\t \tbtn.setImageResource(R.drawable.wifion);\n\t\t\t \tsearchingWifi(); \n\t\t\t \n\t\t\t } else {\n\t\t\t \t//tv.setText(\"Wifi Off\");\n\t\t\t \twfmgr.setWifiEnabled(false);\n\t\t\t \tbtn.setImageResource(R.drawable.wifioff);\n\t\t\t \t\n\t\t\t \n\t\t\t }\n\t\t\t}\n\t\t});\n\n btns.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\t// wfmgr = (WifiManager)getSystemService(Context.WIFI_SERVICE);\n\t\t\t\n\t\t\t\t\t if(!wfmgr.isWifiEnabled()){\n\t\t\t\t\t\t \n\t\t\t\t\t\t Toast.makeText(getApplicationContext(), \"Wifi is disable plz able to wifi\", Toast.LENGTH_SHORT).show();\n\t\t\t\t \t\n\t\t\t\t }else{ \n\t\t\t\t \t\n\t\t\t\t \t\tsearchingWifi();\n\t\t \n\t\t \n\t\t \n\t\t\t\t }\n\n\t\t\t}\n\t\t});\n \n \n registerReceiver(new BroadcastReceiver()\n {\n @Override\n public void onReceive(Context c, Intent intent) \n {\n results = wfmgr.getScanResults();\n size = results.size();\n }\n }, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)); \n \n }", "public void scanWifiList() {\n wifiManager.startScan();\n scanResultList=wifiManager.getScanResults();\n Log.e(\"length\",\"\"+scanResultList.size());\n //wifiInfoList= (List<WifiInfo>)wifiManager .getConnectionInfo();//\n adapter = new RecyclerAdapterItems(getApplicationContext(),scanResultList,this);\n recyclerView.setAdapter(adapter);\n\n /* for (int i = 0; i < scanResultList.size(); i++){\n\n if (scanResultList.get(i).SSID.equalsIgnoreCase(\"D-Link\")){\n //Toast.makeText(this, \"found!!\", Toast.LENGTH_SHORT).show();\n Log.e(\"scanWifiList\", \"Found!!\");\n String capp = scanResultList.get(i).capabilities;\n Log.e(\"Capabilities\", \"\"+capp);\n }\n }*/\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t\tint position = arg0.getPositionForView(arg1);\n\t\t\t\tHashMap<String, Object> item = new HashMap<String, Object>(); \n\t\t\t\titem = wifilist.get(position);\n\t\t\t\t\n\t\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(Network_testActivity.this);\n\t\t\t\talert.setTitle(item.get(NAMEKEY).toString());\n\t\t\t\talert.setMessage(item.get(NAMEKEY).toString()+ \"에 연결 하시겠습니까?\");\n\t\t\t\talert.setPositiveButton(\"연결\",\n\t new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\n\t \tdialog.cancel();\n\n\t }\n\t });\n\t\t\t\talert.setNegativeButton(\"취소\",\n\t new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t dialog.cancel();\n\t }\n\t });\n\n\t\t\t\talert.show();\n\t\t\t}", "void onListClick();", "@Override\n public void onClick(View view) {\n TextView textView = (TextView) view.findViewById(R.id.wifiItem);\n String text = textView.getText().toString();\n ssidWifi.setText(text);\n ssidWifi.requestFocus();\n }", "@Override\r\n\t\t\tpublic void onClick(View v)\r\n\t\t\t{\n\t\t\t\thost.setVisibility(View.GONE);\r\n\t\t\t\tConnector connector = Connector.getInstance(getContext());\r\n\t\t\t\tif(!connector.fillList(connectlist, getContext()))\r\n\t\t\t\t{\r\n\t\t\t\t\tUser.displayToast(getContext(), \"您的手机不支持蓝牙。\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tconnectlist.setVisibility(View.VISIBLE);\r\n\t\t\t}", "private void registerListClicks(){\n //Gets list element\n ListView list = findViewById(R.id.transaction_list);\n //Sets onclick listener\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //Gets the relevant view\n TextView text = (TextView) view;\n //Saves the name of the recipient\n chosenName = (String) text.getText();\n //Checks if the button should be enabled\n checkIfEnable();\n }\n });\n }", "@Override\n public void onClick(View v) {\n startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tfinal String ssid = mListWifi.get(arg2).get(\"ssid\").toString();\n\t\t\t\t//final boolean password = mListWifi.get(arg2).get(\"password\");\n\t\t\t\tfinal boolean password = Boolean.valueOf(mListWifi.get(arg2).get(\"password\").toString());\n\t\t\t\tLog.i(\"pss\",\"me click item\");\n\t\t\t\tcreateDialog(ssid,password);\n\t\t\t}", "@Override\n public void onClick(View v) {\n startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));\n }", "@Override\n public View getView(Context context) {\n this.mContext = context;\n LayoutInflater factory = LayoutInflater.from(context);\n View view = factory.inflate(R.layout.item_wifi, null);\n mlvWifi = (ListView) view.findViewById(R.id.mlswifi);\n mbtnWifiConnect = (TextView) view.findViewById(R.id.mtvwificon);\n\t\tlistOnItemLongclick();\n return view;\n }", "@Override\n public void onListItemClick(ListView l, View v, int position, long id)\n {\n WifiP2pDevice device = (WifiP2pDevice)l.getItemAtPosition(position);\n\n\n ((ServerOnClickListener) getActivity()).connectP2p(device);\n ((TextView) v.findViewById(R.id.peer_status)).setText(\"Connecting\");\n\n if (progressDialog != null && progressDialog.isShowing()) {\n progressDialog.dismiss();\n }\n progressDialog = ProgressDialog.show(getActivity(), \"Press back to cancel\",\n \"Connecting to :\" + device.deviceAddress, true, true,\n new DialogInterface.OnCancelListener()\n {\n @Override\n public void onCancel(DialogInterface dialog)\n {\n ((ServerOnClickListener) getActivity()).cancelConnect();\n }\n }\n );\n ((ServerOnClickListener) activity).connectP2p(device);\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t \n\t\t\t \n\t\t\t\n\t\t\t \t ImageButton btn = (ImageButton)findViewById(R.id.btn);\n\t\t\t\t if(!wfmgr.isWifiEnabled()){\n\t\t\t \t//tv.setText(\"Wifi On\");\n\t\t\t \twfmgr.setWifiEnabled(true);\n\t\t\t \tbtn.setImageResource(R.drawable.wifion);\n\t\t\t \tsearchingWifi(); \n\t\t\t \n\t\t\t } else {\n\t\t\t \t//tv.setText(\"Wifi Off\");\n\t\t\t \twfmgr.setWifiEnabled(false);\n\t\t\t \tbtn.setImageResource(R.drawable.wifioff);\n\t\t\t \t\n\t\t\t \n\t\t\t }\n\t\t\t}", "private void scanWifi() {\n Toast.makeText(this,getString(R.string.toast_scanning),Toast.LENGTH_SHORT).show();\n //Android 9.0 将 WiFiManager 的 startScan() 方法标为了废弃,\n // 前台应用 2 分钟内只能使用 4 次startScan(),后台应用 30 分钟内只能调用 1次 startScan(),\n // 否则会直接返回 false 并且不会触发扫描操作。\n mWifiManager.startScan();\n //Log.d(\"startscan\", String.valueOf(mWifiManager.startScan()) );\n mScanResults = mWifiManager.getScanResults();\n //Log.d(\"mScanResults\", String.valueOf(mScanResults.size()));\n mListView.setAdapter(new WifiAdapter(this,mScanResults));\n }", "private void listner() {\n\t\tdocketList.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int pos, long id)\n {\n Intent intent = new Intent();\n intent.putExtra(\"hr_ble_device_name\",listDevicesBle.get(pos).getName());\n intent.putExtra(\"hr_ble_device_mac\",listDevicesBle.get(pos).getAddress());\n scanLeDevice(false);\n setResult(RESULT_OK, intent);\n finish();\n }", "@Override\n\t\t\t\t\tpublic void onNotifyWifiConnected()\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.v(TAG, \"have connected success!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}", "private void checkWifiStep1() {\n\n Log.i(\"checkk\", \"ikan\");\n\n WifiManager wifiManager= (WifiManager)getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n\n WifiInfo wifiInfo = wifiManager.getConnectionInfo();\n\n String name = wifiInfo.getSSID();\n\n //String macbabyyy = wifiInfo.getMacAddress();\n\n String bssiddda = wifiInfo.getBSSID();\n\n //wifiInfo.get\n\n // Log.i(\"checkk mac\",macbabyyy);\n Log.i(\"checkk bssid\",bssiddda);\n Log.i(\"checkk ssid\",name);\n\n Toast.makeText(getApplicationContext(),\"wifi ini :\"+ name, Toast.LENGTH_LONG).show();\n\n //asking fine location permission\n\n String constWifiName = \"\\\"arif0527 2.4GHz@unifi\\\"\";\n\n if(name.equals(constWifiName)){\n\n Log.i(\"checkk BERJAYA : \",bssiddda);\n Toast.makeText(getApplicationContext(),\"BERJAYA :\"+ name, Toast.LENGTH_LONG).show();\n message.setText(\"BERJAYA!!\");\n }\n\n\n }", "@Override\r\n\tpublic void showList() {\n\t\tSystem.out.println(\"I am a MAC list\");\r\n\t}", "@Subscribe(threadMode = ThreadMode.MAIN)\n public void onDevicesReceived(OnReceiverDevicesEvent event){\n //if(!devicesListAdapter.isEmpty()) devicesListAdapter.clear(); // clear old names\n\n\n devicesListAdapter.removeAll();\n Log.d(\"P2P\", \"Found something on events!\");\n //Toast.makeText(getContext(), \"Found something\", Toast.LENGTH_LONG).show();\n Collection<WifiP2pDevice> devs = event.getDevices().getDeviceList();\n devsList.addAll(devs);\n\n\n\n for(int i = 0; i < devsList.size(); i++){\n\n if(!devicesListAdapter.hasItem(devsList.get(i))){\n Log.d(\"P2P\", \"Device Found: \" + devsList.get(0).deviceName);\n devicesListAdapter.add(devsList.get(i).deviceName);\n devicesListAdapter.notifyDataSetChanged();\n }\n\n }\n\n\n }", "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tstartActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));\n\t\t\t\t}", "@Override\n public void onFailure(int reasonCode) {\n Toast.makeText(getApplicationContext(), \"Please turn on WiFi. Error Code \" + reasonCode,\n Toast.LENGTH_SHORT).show();\n }", "@SuppressLint(\"MissingPermission\")\n static void fillWifiConfigurationList(Context context/*, boolean enableWifi*/)\n {\n\n List<WifiSSIDData> wifiConfigurationList = new ArrayList<>();\n\n if (wifi == null)\n wifi = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n if (wifi == null)\n return;\n\n //boolean wifiEnabled = false;\n if (wifi.getWifiState() != WifiManager.WIFI_STATE_ENABLED) {\n /*if (enableWifi) {\n try {\n wifiEnabled = true;\n wifi.setWifiEnabled(true);\n PPApplication.sleep(500);\n } catch (Exception e) {\n wifiEnabled = false;\n }\n }\n else*/\n // wifi must be enabled for wifi.getConfiguredNetworks()\n return;\n }\n\n List<WifiConfiguration> _wifiConfigurationList = null;\n if (Permissions.hasPermission(context, Manifest.permission.ACCESS_FINE_LOCATION))\n _wifiConfigurationList = wifi.getConfiguredNetworks();\n\n /*if (wifiEnabled) {\n try {\n wifi.setWifiEnabled(false);\n } catch (Exception ignored) {}\n }*/\n\n if (_wifiConfigurationList != null)\n {\n //wifiConfigurationList.clear();\n for (WifiConfiguration device : _wifiConfigurationList)\n {\n //noinspection deprecation\n if (device.SSID != null) {\n boolean found = false;\n for (WifiSSIDData _device : wifiConfigurationList) {\n //if (_device.bssid.equals(device.BSSID))\n //noinspection deprecation\n if ((_device.ssid != null) && (_device.ssid.equals(device.SSID))) {\n found = true;\n break;\n }\n }\n if (!found) {\n //noinspection deprecation\n wifiConfigurationList.add(new WifiSSIDData(device.SSID, /*device.BSSID,*/ false, true, false));\n }\n }\n }\n }\n saveWifiConfigurationList(context, wifiConfigurationList);\n }", "@ReactMethod\n public void loadWifiList(Callback successCallback, Callback errorCallback) {\n try {\n List<ScanResult> results = wifi.getScanResults();\n JSONArray wifiArray = new JSONArray();\n\n for (ScanResult result : results) {\n JSONObject wifiObject = new JSONObject();\n if (!result.SSID.equals(\"\")) {\n try {\n wifiObject.put(\"SSID\", result.SSID);\n wifiObject.put(\"BSSID\", result.BSSID);\n wifiObject.put(\"capabilities\", result.capabilities);\n wifiObject.put(\"frequency\", result.frequency);\n wifiObject.put(\"level\", result.level);\n wifiObject.put(\"timestamp\", result.timestamp);\n } catch (JSONException e) {\n errorCallback.invoke(e.getMessage());\n }\n wifiArray.put(wifiObject);\n }\n }\n successCallback.invoke(wifiArray.toString());\n } catch (IllegalViewOperationException e) {\n errorCallback.invoke(e.getMessage());\n }\n }", "public void onClick(View v) throws RuntimeException {\n String first = at.getText().toString();\n String second = Password.getText().toString();\n SavePreferences(\"Wifi Input\", at.getText().toString());\n // LoadPreferences();\n SavePreferences(\"Password\", Password.getText().toString());\n // LoadPreferences();\n if (first.equals(\"\")) {\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(MainActivity.this, \"Wifi Field Empty\", Toast.LENGTH_SHORT).show();\n }\n });\n //wifiInput.setError(\"Input field require\");\n }\n if (second.equals(\"\")) {\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(MainActivity.this, \"Password Field Empty\", Toast.LENGTH_SHORT).show();\n\n }\n });\n\n //Password.setError(\"Input field require\");\n }\n final String wp = first + \",\" + second;\n (new Thread(new workerThread(wp))).start();\n // listItems.add(first);\n // Toast.makeText(MainActivity.this, \"\", Toast.LENGTH_SHORT).show();\n // finish();\n }", "private void wifiName() {\n\t\tSystem.out.println(\"The wifi name is Redmi\");\n\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n Log.e(TAG, \"===================> Wifi choose: \"+which);\n Log.e(TAG, \"===================> Wifi choose: \"+wifis.get(which).toString());\n String ssid = wifis.get(which).toString();\n dialogLoading = ProgressDialog.show(getActivity(), \"\", \"Kết nối tới \"+ssid, true);\n\n boolean connected = ConnectToNetworkWPA(ssid, \"11330232\");\n if(connected){\n try{\n// new getDeviceInfo().execute();\n Log.e(TAG, \"===================> Webview start\");\n finalSSID = ssid;\n times = 0;\n checkActiveWifi();\n } catch (Exception exx2){\n Log.e(TAG, \"===================> Wifi exx2: \"+exx2.getMessage());\n }\n } else{\n AlertDialog.Builder builder2 = new AlertDialog.Builder(getActivity());\n builder2.setMessage(\"Lỗi\").setCancelable(true).create().show();\n }\n Log.e(TAG, \"===================> Wifi choose: \"+connected);\n// dialogLoading.dismiss();\n }", "@Test(priority = 2)\n\tpublic void WifiOperation() throws Exception {\n\t\t\n\t\tdriver = DashboardPage.clickWifi(driver);\n\t\t\n\t\t//ExcelUtils.setCellData(\"PASS\", 3, 1);\n\t}", "public void turnOnWifi() {\n WifiManager wifi = (WifiManager) getActivity().getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n wifi.setWifiEnabled(true);\n showScanWifiAround();\n }", "private void addButtonsFromList() {\n\tif (serwery.size() > 0) {\n\n\t for (InetAddress ia : serwery) {\n\t\taddHostButton(ia.getHostAddress());\n\t }\n\n\t}\n\n\tif (serwery.isEmpty()) {\t\t// jeżeli nie znaleziono żadnych serwerów [bo. np. wycięty jest ruch przez Broadcast]\n\t \n\t // dodaje tekst:\n\t TextView tv = new TextView(getApplicationContext());\n\t tv.setText(\"Nie znaleziono serwerów. Wprowadź adres IP ręcznie:\");\n\n\t // pole na ręczne wpisanie IP\n\t final EditText et = new EditText(getApplicationContext());\n\n\t // button \"POŁĄCZ\"\n\t Button btn = new Button(getApplicationContext());\n\t btn.setText(\"Połącz\");\n\t btn.setOnClickListener(new View.OnClickListener() {\n\n\t\t@Override\n\t\tpublic void onClick(View v) {\n\n\t\t IPAddressValidator validator = new IPAddressValidator();\n\n\t\t if (!validator.validate(et.getText().toString())) {\n\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(RemDroidActivity.this).create();\n\t\t\talertDialog.setTitle(\"Adres IP\");\n\t\t\talertDialog.setMessage(\"Wprowadź poprawny adres IP.\");\n\t\t\talertDialog.setButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t }\n\t\t\t});\n\t\t\talertDialog.show();\n\t\t }\n\n\t\t else {\n\t\t\t\n\t\t\tstartSending(et.getText().toString());\n\t\t\t\n\t\t }\n\t\t \n\t\t}\n\n\t });\n\n\t ll.addView(tv);\n\t ll.addView(et);\n\t ll.addView(btn);\n\t}\n\n }", "java.util.List<Report.LocationOuterClass.Wifi> \n getWifisList();", "public void onClickListviewEvent() {\r\n OnItemClickListener itemClickListener = new OnItemClickListener() {\r\n @Override\r\n public void onItemClick(AdapterView<?> parent, View container,\r\n int position, long id) {\r\n LinearLayout LL0 = (LinearLayout) container;\r\n\r\n // Getting the inner Linear Layout\r\n LinearLayout LL1 = (LinearLayout) LL0.getChildAt(0);\r\n RelativeLayout RL0 = (RelativeLayout) LL1.getChildAt(0);\r\n LinearLayout LL2 = (LinearLayout) RL0.getChildAt(0);\r\n RelativeLayout RL1 = (RelativeLayout) LL2.getChildAt(0);\r\n // Getting the Country TextView\r\n TextView busNum = (TextView) RL1.getChildAt(2);\r\n TextView Direction = (TextView) RL1.getChildAt(0);\r\n final String busCode = busNum.getText().toString();\r\n final String busDirection = Direction.getText().toString();\r\n // Log.d(\"LoginStatus\", Boolean.toString(Logined));\r\n Log.d(\"BusNumber\", busCode);\r\n Log.d(\"Direction\", busDirection);\r\n Intent intent1 = new Intent(getApplication(), BusDetail.class);\r\n intent1.putExtra(\"busNum\", busCode);\r\n intent1.putExtra(\"Direction\", busDirection);\r\n startActivity(intent1);\r\n\r\n\t\t\t\t/*\r\n * Intent intent1 = new\r\n\t\t\t\t * Intent(getApplication(),ChatActivity.class);\r\n\t\t\t\t * //intent1.putExtra(\"\", value); startActivity(intent1);\r\n\t\t\t\t */\r\n\r\n }\r\n\r\n };\r\n lv.setOnItemClickListener(itemClickListener);\r\n }", "@Override\n\t\tpublic void onItemClick(final AdapterView<?> pAdapterView, final View pView, final int pPosition, final long pID) {\n\t\t\tbt.stopDiscoverDevices();\n\t\t\t\n\t\t\t// Die MAC-Adresse des Geraets herausfiltern\n\t\t\tfinal String info = ((TextView) pView).getText().toString();\n\t\t\tserverAddress = info.substring(info.length() - 17);\n\t\t\t\n\t\t\tconnectToServer(false);\n\t\t}", "private void showEnableWifiAlert() {\n new AlertDialog.Builder(currentContext)\n .setTitle(R.string.enable_wifi_alert_title)\n .setMessage(R.string.enable_wifi_alert_message)\n .setPositiveButton(R.string.enable_wifi_alert_yesbutton, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n manager.searchForVehicles();\n }\n\n }).setNegativeButton(R.string.enable_wifi_alert_nobutton, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Do nothing\n }\n }).show();\n }", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tbOnline = isNetworkPresent();\r\n\t\t\tLog.d(TAG, \"\" + bOnline);\r\n\t\t\tnetClient = new AsyncHttpClient();\r\n\r\n\t\t\tswitch (v.getId()) {\r\n\t\t\tcase R.id.search_my_inside_arduino_button:\r\n\t\t\t\tif (bOnline)\r\n\t\t\t\t\tsubnetUrl = IpSubnet.getIpSubnet().getSubnet()\r\n\t\t\t\t\t\t\t+ \"/sensorData/insideHome/all\";\r\n\t\t\t\tmSearchOutsideBtn.setEnabled(false);\r\n\t\t\t\tscanNet(v);\r\n\t\t\t\tbreak;\r\n\t\t\tcase R.id.search_my_outside_arduino_button:\r\n\t\t\t\tif (bOnline)\r\n\t\t\t\t\tsubnetUrl = IpSubnet.getIpSubnet().getSubnet()\r\n\t\t\t\t\t\t\t+ \"/sensorData/outsideHome/all\";\r\n\t\t\t\tmSearchInsideBtn.setEnabled(false);\r\n\t\t\t\tscanNet(v);\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}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.ic_wifi :\n //nothing yet;\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(SetActivity.this, WifiSetActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "public interface WifiInfoDataSource {\n interface LoadWifiInfoCallback{\n void onWifiInfoLoaded(WiFiInfo wifiInfo);\n void onDataNotFound();\n }\n interface LoadWifiInfoListCallback{\n void onWifiInfoLoaded(List<WiFiInfo> wifiInfoList);\n void onDataNotFound();\n }\n //insert WifiInfo\n void insertWifiInfo(WiFiInfo wifiInfo);\n\n //List<WiFiInfo>\n void queryWifiInfoListInfo(LoadWifiInfoListCallback loadWifiInfoListCallback);\n\n //<WifiInfo> from ssid\n void queryWifiInfo(String ssid,LoadWifiInfoCallback loadWifiInfoCallback);\n\n //delete WiFiInfo\n void deleteWiFiInfo(WiFiInfo wiFiInfo);\n}", "@Override\n\t\t\t\t\tpublic void onNotifyWifiConnectFailed()\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.v(TAG, \"have connected failed!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n final Map map = (Map) listFuncMap.get(position);\n\n if (map.get(\"name\").equals(getString(R.string.launchPadAllFuncName))) {\n mslidingMenu.hideAboveView();\n }\n\n if (map.get(\"name\").equals(getString(R.string.launchPadMealDoneName))) {\n showLoadingDialog(\"检测后厨打印机是否连接\");\n final String ipKitchen = (String) LocalDataDeal.readFromLocalIpKitchPrinter(ctxt).get(\"ip\");\n if (LocalDataDeal.readFromLocalMealDoneChooseMealPortId(ctxt) == -1) {\n hideLoadingDialog();\n showDialogErrorTwoOptions(\"后厨打印机未设置\\n请设置后厨打印机ip\", oclGoToSetting, \"设置\");\n return;\n } else {\n if(!StringUtils.isEmpty(ipKitchen))\n {\n new Thread() {\n public void run() {\n if (CommonUtils.getPrinterTestResult(ipKitchen) == 0) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n hideLoadingDialog();\n }\n });\n finishWithNextActivity(PushMealActivity.class);\n } else {\n //HandlerUtils.showToast(ctxt, \"后厨打印机无法连接\\n请确认打印机已开机,并插入网线\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n hideLoadingDialog();\n showDialogErrorOneOption(\"后厨打印机无法连接,请确认:\\n1、打印机已开机,并插入网线\\n 2、Ip地址设置是否正确(当前:\" + ipKitchen + \")\");\n }\n });\n return;\n }\n }\n }.start();\n }\n else\n {\n finishWithNextActivity(PushMealActivity.class);\n }\n }\n } else if (map.get(\"name\").equals(getString(R.string.launchPadSelfTakeUpName))) {\n showLoadingDialog(\"检测自助取号打印机是否可用\");\n final String ipTakeup = (String) LocalDataDeal.readFromLocalIpTakeupPrinter(ctxt).get(\"ip\");\n if (ipTakeup.equals(\"\") || ipTakeup == null) {\n hideLoadingDialog();\n showDialogErrorTwoOptions(\"自助取号打印机未设置\\n请设置自助取号打印机ip\", oclGoToSettingAutoTakeup, \"设置\");\n return;\n } else {\n new Thread() {\n public void run() {\n if (CommonUtils.getPrinterTestResult(ipTakeup) == 0) {\n finishWithNextActivity(TakeUpActivity.class);\n } else {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n hideLoadingDialog();\n }\n });\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n hideLoadingDialog();\n showDialogErrorOneOption(\"自助取号打印机无法连接,请确认:\\n1、打印机已开机,并插入网线\\n2、ip地址设置是否正确\" +\n \"(当前:\" + ipTakeup + \")\");\n }\n });\n //HandlerUtils.showToast(ctxt, \"自助取号打印机无法连接\\n请确认打印机已开机,并插入网线\");\n return;\n }\n }\n }.start();\n\n }\n } else if (map.get(\"name\").equals(getString(R.string.launchPadSettingsName))) {\n finishWithNextActivity(SettingsActivity.class);\n } else if (map.get(\"name\").equals(getString(R.string.launchPadStockSupplyName))) {\n finishWithNextActivity(StockSupplyActivity.class);\n }\n\n\n }", "@Override\n\t public void onClick(DialogInterface dialog, int which) {\n\t wifi.setWifiEnabled(true);\n\t Toast.makeText(getApplicationContext(), \"enabling...\", Toast.LENGTH_LONG).show();\t\n\t }", "protected void ACTION_B_LIST(ActionEvent arg0) {\n\t\tListNetworkInerface();\r\n\t\tselect.setEnabled(true);\r\n\t\tback.setEnabled(true);\r\n\t\thelp.setEnabled(true);\r\n\t\tload.setEnabled(true);\r\n\t\ttextField.requestFocus();\r\n\t}", "@Override\n public void onClick(View v) {\n Bundle bundle = new Bundle();\n bundle.putInt(Constants.P_SEARCHLISTTYPE, 2);\n bundle.putLong(Constants.DEVICE_ID, deviceId);\n Constants.toActivity(AddDeviceActivity.this, SearchActivity.class, bundle);\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n BluetoothDevice device = mScannedDeviceList.get(arg2);\n Log.d(TAG, \"[onItemClick] device : \" + device.getName());\n Message msg = mHandler.obtainMessage();\n if (isNeedConnect(device)) {\n Log.d(TAG, \"isNeedConnect(device) is true \");\n msg.what = CONNECT_DEVICE_FLAG;\n msg.obj = device;\n mHandler.sendMessage(msg);\n mHandler.removeMessages(SCANNING_DEVICE_OVER_DELAY_FLAG);\n } else {\n Log.d(TAG, \"showDeleteDeviceDialog() \");\n showDeleteDeviceDialog();\n }\n }", "private void gotoCheckInListView() {\n }", "public void openAddSmartDeviceList() {\n getNavigator().openAddSmartDeviceList();\n }", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "private void displayList(){\n\t\tmArrayAdapter.clear();\n\t\tBT.setupBT();\n\n\t\tListView newDevicesListView = (ListView)\n\t\t\t\tdialog.findViewById(R.id.device_list_display);\n\n\t\tnewDevicesListView.setAdapter(mArrayAdapter);\n\t\tnewDevicesListView.setClickable(true);\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tpulllist();\n\t\t\t}", "void onListInteraction(int index, boolean isLongClicked);", "@Override\n public void onSuccess() {\n Toast.makeText(getApplicationContext(), \"Connect WiFI Direct.\",\n Toast.LENGTH_SHORT).show();\n\n startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));\n }", "public void connectButtonListener()\n {\n final Context context = Monitoring.this;\n btnConnectDisconnect = (Button) findViewById(R.id.btn_select);\n\n btnConnectDisconnect.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View arg0)\n {\n if (!mBtAdapter.isEnabled())\n {\n Log.i(TAG, \"onClick - Bluetooth not enabled yet\");\n Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\n }\n else\n {\n if (btnConnectDisconnect.getText().toString().equals(\"Connect\"))\n {\n //Connect button pressed, open DeviceListActivity class,\n // with popup windows that scan for devices...\n Intent newIntent = new Intent(context, Scanner.class);\n startActivityForResult(newIntent, REQUEST_SELECT_DEVICE);\n }\n else\n {\n //Disconnect button pressed\n if (mDevice != null)\n {\n mService.disconnect();\n }\n }\n }\n }\n });\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.d(\"jsonlog\", \"on click of show list view\");\r\n\t\t\t\t\r\n\t\t\t\t detailsList = new ArrayList<HashMap<String,String>>();\r\n\t\t\t\turl = \"http://10.0.2.2:8080/allgreetings\";\r\n\t\t\t\t\r\n\t\t\t\tnew getjsonlist().execute();\r\n\t\t\t\t\r\n\t\t\t}", "public void buttonClicked(View view) {\n\n\t\t// 1. Create an instance of ConnectivityManager\n\t\tConnectivityManager cmanager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);\n\n\t\t// 2. The connectivityManager object's getActiveNetworkInfo() method\n\t\t// gives us info about the network we are on\n\t\tNetworkInfo networkInfoObj = cmanager.getActiveNetworkInfo();\n\n\t\tString networkType = null;\n\n\t\t// 3. If connected, we can get the type of the network\n\t\tif (networkInfoObj != null && networkInfoObj.isConnected()) {\n\n\t\t\t// 4. networkInfoObj.getType() gives us either TYPE_WIFI or\n\t\t\t// TYPE_MOBILE\n\n\t\t\t// 5. Populate the string with the type of network\n\n\t\t\tif (networkInfoObj.getType() == ConnectivityManager.TYPE_WIFI)\n\t\t\t\tnetworkType = \"WI-FI will be used for Internet\";\n\t\t\telse if (networkInfoObj.getType() == ConnectivityManager.TYPE_MOBILE)\n\t\t\t\tnetworkType = \"Cell will be used for Internet\";\n\t\t\telse\n\t\t\t\tnetworkType = \"Not cell or WI-FI\";\n\n\t\t} else\n\t\t\tnetworkType = \"Not Connected\";\n\n\t\t// 6. Show an alert with the type of network we're on\n\n\t\tToast.makeText(MainActivity.this, networkType, Toast.LENGTH_LONG)\n\t\t\t\t.show();\n\t}", "public void onItemClick (AdapterView av, View v, int arg2, long arg3)\r\n {\n String info = ((TextView) v).getText().toString();\r\n String address = info.substring(info.length() - 17);\r\n //send a message to the next activity to start it\r\n Intent i = new Intent(DeviceList.this, ManualMode.class);\r\n //change the activity\r\n i.putExtra(EXTRA_ADDRESS, address); //this will be received at ledControl (class) Activity\r\n startActivity(i);\r\n }", "@Override\n public void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> wifiScanList) {\n Fragment childFragment = getChildFragmentManager().findFragmentByTag(Constant.TAG_CHILD_SCAN_WIFI_FRAGMENT);\n if (childFragment instanceof WifiChildScanFragment) {\n ((WifiChildScanFragment) childFragment).addWifiHotSpotToRcv(wifiScanList);\n }\n }", "public void onList( View view )\n {\n Intent intent = new Intent( this, ThingListActivity.class );\n\n startActivity( intent );\n }", "public void listBT() {\n Log.d(\"Main Activity\", \"Listing BT elements\");\n if (searchBt) {\n //Discover bluetooth devices\n final List<String> list = new ArrayList<>();\n list.add(\"\");\n pairedDevices.addAll(mBluetoothAdapter.getBondedDevices());\n // If there are paired devices\n if (pairedDevices.size() > 0) {\n // Loop through paired devices\n for (BluetoothDevice device : pairedDevices) {\n // Add the name and address to an array adapter to show in a ListView\n list.add(device.getName() + \"\\n\" + device.getAddress());\n }\n }\n if (!h7) {\n Log.d(\"Main Activity\", \"Listing BTLE elements\");\n final BluetoothAdapter.LeScanCallback leScanCallback = new BluetoothAdapter.LeScanCallback() {\n public void onLeScan(final BluetoothDevice device, final int rssi, final byte[] scanRecord) {\n if (!list.contains(device.getName() + \"\\n\" + device.getAddress())) {\n Log.d(\"Main Activity\", \"Adding \" + device.getName());\n list.add(device.getName() + \"\\n\" + device.getAddress());\n pairedDevices.add(device);\n }\n }\n };\n\n\n Thread scannerBTLE = new Thread() {\n public void run() {\n Log.d(\"Main Activity\", \"Starting scanning for BTLE\");\n mBluetoothAdapter.startLeScan(leScanCallback);\n try {\n Thread.sleep(5000);\n Log.d(\"Main Activity\", \"Stoping scanning for BTLE\");\n mBluetoothAdapter.stopLeScan(leScanCallback);\n } catch (InterruptedException e) {\n Log.e(\"Main Activity\", \"ERROR: on scanning\");\n }\n }\n };\n\n scannerBTLE.start();\n }\n\n //Populate drop down\n spinner1 = (Spinner) findViewById(R.id.spinner1);\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<>(this,\n android.R.layout.simple_spinner_item, list);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner1.setOnItemSelectedListener(this);\n spinner1.setAdapter(dataAdapter);\n\n for (int i = 0; i < dataAdapter.getCount(); i++) {\n if (dataAdapter.getItem(i).contains(\"Polar H7\")) spinner1.setSelection(i);\n }\n\n if (DataHandler.getInstance().getID() != 0 && DataHandler.getInstance().getID() < spinner1.getCount())\n spinner1.setSelection(DataHandler.getInstance().getID());\n }\n }", "@Override\n\tpublic void onClick(View view) {\n\t\tswitch (view.getId()) {\n\t\t\tcase R.id.titlebar_leftbutton : // WiFi模式 退出时,需要close掉 TCP连接\n\t\t\t\tdisconnectSocket();\n\t\t\t\tfinish();\n\t\t\t\tbreak;\n\t\t\tcase R.id.titlebar_rightbutton :\n\t\t\t\tButton btn_TitleRight = (Button) findViewById(R.id.titlebar_rightbutton);\n\t\t\t\t// Internet模式:“详情”界面\n\t\t\t\tif (btn_TitleRight.getText().equals(\n\t\t\t\t\t\tgetString(R.string.smartplug_title_plug_detail))) {\n\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\tintent.putExtra(\"PLUGID\", mPlugId);\n\t\t\t\t\tintent.setClass(DetailSmartSteelyardActivity.this,\n\t\t\t\t\t\t\tPlugDetailInfoActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} else {\n\t\t\t\t\t// WiFi直连:“重选”界面\n\t\t\t\t\t// PubDefine.disconnect();\n\t\t\t\t\tdisconnectSocket();\n\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\tintent.setClass(DetailSmartSteelyardActivity.this,\n\t\t\t\t\t\t\tAddSocketActivity2.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\tif (PubDefine.SmartPlug_Connect_Mode.WiFi != PubDefine.g_Connect_Mode) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase R.id.btn_query :\n\t\t\t\tQuery_Gravity();\n\t\t\t\tbreak;\n\t\t\tcase R.id.btn_qupi :\n\t\t\t\tQupi_Gravity();\n\t\t\t\tbreak;\n\t\t\tdefault :\n\t\t\t\tbreak;\n\t\t}\n\t}", "void openSavedStationList();", "private void setupWifip2p() {\n\n manager = (WifiP2pManager) getContext().getSystemService(Context.WIFI_P2P_SERVICE);\n channel = manager.initialize(getContext(), Looper.getMainLooper(), null);\n receiver = new WiFiDirectBroadcastReceiver(manager, channel, this, peerListListener);\n\n mIntentFilter = new IntentFilter();\n mIntentFilter.addAction(WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION);\n mIntentFilter.addAction(WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION);\n mIntentFilter.addAction(WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION);\n mIntentFilter.addAction(WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION);\n\n\n\n peersNames = new ArrayAdapter<String>(getContext(), android.R.layout.simple_selectable_list_item);\n devicesListAdapter = new DevicesListAdapter(devsList, getContext(), new MemberData.onItemClickListener() {\n @Override\n public void callback(int pos) {\n connect(devsList.get(pos));\n }\n });\n\n\n\n builder = new AlertDialog.Builder(getContext());\n\n builder.setTitle(\"Select Peers\")\n .setAdapter(devicesListAdapter, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n peersDialog.dismiss();\n }\n });\n\n }", "public void Switch_1_click(View view) {\n\n String SwitchStatus;\n sw_val = 1;\n if(true)\n {\n if (!is_esp_conn) // calling function to check connectivity to ESP on every button press\n esp_not_conn();\n\n\n\n if (ipAddress.equals(\"\"))\n Toast.makeText(MainActivity.this, \"Invalid IP detected\\nKindly check connection...\", Toast.LENGTH_LONG).show();\n }\n {\n if (view == S1_on) {\n SwitchStatus = \"1\";\n S1_on.setBackgroundColor(Color.GREEN);\n S1_off.setBackgroundColor(Color.LTGRAY);\n } else {\n SwitchStatus = \"0\";\n S1_off.setBackgroundColor(Color.RED);\n S1_on.setBackgroundColor(Color.LTGRAY);\n }\n\n //Connect to default port number. Ex: http://IpAddress:80\n String url =\"http://\" + ipAddress + \":\" + \"80\" + \"/sw\" + sw_val + \"/\" +SwitchStatus;\n changeSwitchState(url);\n\n\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String itemPressed = ((TextView) view).getText().toString();\n\n Intent connect = new Intent(InsertTracker.this, InsertTracker.class);\n switch(itemPressed)\n {\n case \"HOME\":\n connect = new Intent(InsertTracker.this, MainActivity.class);\n break;\n case \"CONNECT/NEW\":\n connect = new Intent(InsertTracker.this, ScanTracker.class);\n connect.putExtra(\"MSG\", \"Select a Black Knight tracking device and scan the barcode\");\n connect.putExtra(\"fromConnect\", true);\n break;\n case \"DISCONNECT/SALE\":\n connect = new Intent(InsertTracker.this, ScanTracker.class);\n connect.putExtra(\"MSG\", \"Please unplug the tracker to scan the barcode\");\n connect.putExtra(\"fromConnect\", false);\n break;\n case \"ACTIVITY\":\n connect = new Intent(InsertTracker.this, ActivityLog.class);\n break;\n case \"CHANGE PIN\":\n connect = new Intent(InsertTracker.this, ResetPINActivity.class);\n break;\n case \"HELP\":\n connect = new Intent(InsertTracker.this, Help.class);\n connect.putExtra(\"verified\", true);\n break;\n }\n\n InsertTracker.this.startActivity(connect);\n }", "private void BTKies() {\n Set<BluetoothDevice> pairedDevices;\n ArrayAdapter<String> BTArrayAdapter;\n final Dialog dialog = new Dialog(this);\n dialog.setContentView(R.layout.devicedialog);\n dialog.setTitle(\"Kies een verbinding\");\n BTListView = (ListView) dialog.findViewById(R.id.listView1);\n BTListView.setVisibility(View.VISIBLE);\n\n BTArrayAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_list_item_1);\n BTListView.setAdapter(BTArrayAdapter);\n pairedDevices = BT.getBondedDevices();\n for (BluetoothDevice device : pairedDevices)\n BTArrayAdapter.add(device.getName() + \"\\n\" + device.getAddress());\n\n dialog.show();\n\n // Pick het item uit de list\n BTListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n ListView lv = (ListView) arg0;\n TextView tv = (TextView) lv.getChildAt(arg2);\n String s = tv.getText().toString();\n\n Connect(s); // Make connection\n }\n\n private void Connect(String s) {\n int i = s.length();\n address = s.substring(i - 17);\n BluetoothDevice device = BT.getRemoteDevice(address);\n Log.d(TAG, \"Connecting to ... \" + device);\n BT.cancelDiscovery();\n try { // omgaan met exeptions\n btSocket = device\n .createRfcommSocketToServiceRecord(MY_UUID);\n btSocket.connect();\n // hier de comunicatie invullen ***********************************************\n writeData(\"c#\"); // vraag om een bevestiging van de verbinding\n BTListView.setVisibility(View.INVISIBLE);\n dialog.dismiss();\n beginListenForData();\n } catch (IOException e) {\n try {\n btSocket.close();\n } catch (IOException e2) {\n DisplayToast(\"Unable to end the connection\");\n }\n DisplayToast(\"Ontvanger niet beschikbaar. Kies opnieuw\");\n }\n }\t// einde connect\n\n });\t// einde onClick\n }", "public void onClick(View arg0)\n\t\t{\n serverIntent = new Intent(BloothPrinterActivity.this, DeviceListActivity.class);\n startActivityForResult(serverIntent, REQUEST_CONNECT_DEVICE);\n\t\t}", "@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\t \n\t\t\t\tString hostIP=m_spHostIP.getSelectedItem().toString();\n\t\t\t\tint port=55555;\n\t\t\t\tconnectHost(hostIP,port);\n\t\t\t}", "public interface ActWifiListener {\n\n\n void neighbourWIFI(NearbyWifi responseObj);\n void userInfo(UserInfoResponse userInfoResponseObj);\n void deviceStatus(DeviceStatusResponse responseObj);\n void deviceInfo(DeviceInfoResponse responseObj);\n void getSSID(GetSSIDResponse responseObj);\n void connectedDevices(ConnectedDeviceResponse responseObj);\n void allJsonResponse(String responseObj);\n void updateDetails(UpdateDetailsResponse responseObj);\n void deviceReboot(DeviceRebootResponse responseObj);\n\n\n}", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n final BluetoothDevice device = mLeDeviceListAdapter.getDevice(position);\n if (device == null) return;\n\n // Create intent for the device control activity and set device data for it\n final Intent intent = new Intent(this, DeviceControlActivity.class);\n intent.putExtra(DeviceControlActivity.EXTRAS_DEVICE_NAME, device.getName());\n intent.putExtra(DeviceControlActivity.EXTRAS_DEVICE_ADDRESS, device.getAddress());\n if (mScanning) {\n // Stop scanning if it is still busy\n scanLeDevice(false);\n }\n\n // Launch device control activity\n startActivity(intent);\n }", "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\n\n\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t \" Calling \"+ contact.get(position).getName() +\" for HELP\", Toast.LENGTH_LONG)\n\t\t\t\t.show();\n\t\t\n\t\tString num=contact.get(position).getNumber(); \n String number = \"tel:\" + num.trim();\n Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse(number)); \n startActivity(callIntent);\n\t\t\n//\t\tIntent intent = new Intent(TELEPHONY_SERVICE,)\n\t\t/*\n\t\t * Intent intent = new Intent(ListPlaces.this, Details.class);\n\t\t * intent.putExtra(PLACE, places.get(position).getName());\n\t\t * startActivity(intent);\n\t\t */\n\t\t}", "public void ListNetworkInerface() {\n\t\tNETWORK_INTERFACES=JpcapCaptor.getDeviceList(); \r\n\t\ttextArea_1.setText(\"\");\r\n\t\tfor(int i=0;i<NETWORK_INTERFACES.length;i++)\r\n\t\t{\r\n\t\t\t\ttextArea_1.append(\"\\n----------------------------------------------Interface \"+(i+1)+\" Info------------------------------------------\");\r\n\t\t\t\t\r\n\t\t\t\ttextArea_1.append(\"\\n Interface Number \"+(i+1));\r\n\t\t\t\ttextArea_1.append(\"\\n Description \"+NETWORK_INTERFACES[i].name + \"( \"+NETWORK_INTERFACES[i].description+\" )\");\r\n\r\n\t\t\t\ttextArea_1.append(\"\\n DataLink Name : \"+NETWORK_INTERFACES[i].datalink_name + \"( \"+NETWORK_INTERFACES[i].datalink_description+\" )\");\r\n\t\t\t\ttextArea_1.append(\"\\n MAC address : \");\r\n\t\t\t\tbyte R[]=NETWORK_INTERFACES[i].mac_address;\r\n\t\t\t\t\r\n\t\t\t\tfor(int A=0;A<6;A++)\t// \r\n\t\t\t\t{\r\n\t\t\t\t\ttextArea_1.append(Integer.toHexString(R[A] & 0xff)+ \":\");\r\n\t\t\t\t}\r\n\t\t\t\tNetworkInterfaceAddress []INT =NETWORK_INTERFACES[i].addresses;\r\n\t\t\t\t// there are n no of ip address of any particular network interface and we are calculating the info of one only\r\n\t\t\t\ttextArea_1.append(\"\\n IP Address : \"+INT[0].address);\r\n\t\t\t\t//textArea_1.append(\"\\n Subnet Mask : \"+INT[0].subnet);\r\n\t\t\t\t//textArea_1.append(\"\\n Broadcast Address : \"+INT[0].broadcast+\" \\n\");\r\n\t\t\t\t\r\n\t\t\t\tcounter++;\r\n\t\t}\r\n\t}", "@Override\n public void onClick(View v) {\n Intent activityIntent = new Intent(MainActivity.this, LocalList.class);\n// activityIntent.putExtra(\"reps\", getInfo(MainActivity.this, link));\n activityIntent.putExtra(\"zipcode\", zipcode.getText().toString());\n startActivity(activityIntent);\n }", "private void checkWIFI() {\n ConnectivityManager manager = (ConnectivityManager) \n getSystemService(MainActivity.CONNECTIVITY_SERVICE);\n boolean isWifi = manager.getNetworkInfo(\n ConnectivityManager.TYPE_WIFI).isConnected();\n if (isWifi) {\n // setup for credentials for connecting to the Google Drive account\n mCredential = GoogleAccountCredential.usingOAuth2(this, Arrays.asList(DriveScopes.DRIVE));\n // start activity that prompts the user for their google drive account\n startActivityForResult(mCredential.newChooseAccountIntent(), REQUEST_ACCOUNT_PICKER);\n } else {\n // alert user that wifi needs to be checked\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(DownloadActivity.this);\n alertDialogBuilder\n .setTitle(getString(R.string.check_wifi))\n .setCancelable(false)\n .setPositiveButton(getString(R.string.exit), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n // if this button is clicked, close current activity\n DownloadActivity.this.finish();\n }\n });\n\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }\n }", "@Override\n public void onItemClick(String url) {\n RxBus2.getInstance().post(Constants.SHOW_WEBVIEW, url);\n RxBus3.getInstance().post(Constants.SHOW_WEBVIEW, url);\n }", "@Override\r\n \t public void onClick(View arg0) {\n \t\t mainWifiObj.startScan();\r\n \t\t// bt1.setVisibility(View.VISIBLE);\r\n \t\t\r\n \t\t working();\r\n \t\t for(int i=1;i<count;i++)\r\n \t\t\t device[0]+=device[i];\r\n \t\t pcount.setText(\"Present Count\"+count+device[0]);\r\n \t\t\r\n \t\t//\ttv.setText(\"hhhhhhhhhhhh\");\r\n \t\t\t\r\n \t\t \r\n \t }", "public void onItemClick(AdapterView<?> av,View v, int arg2, long arg3){\n mBtAdapter.cancelDiscovery();\r\n // Get the device MAC address, which is the last 17 chars in the View\r\n String info = ((TextView) v).getText().toString();\r\n address = info.substring(info.length() - 17);\r\n\r\n // Create the result Intent and include the MAC address\r\n Intent intent = new Intent();\r\n intent.putExtra(EXTRA_DEVICE_ADDRESS, address);\r\n \r\n // Set result and finish this Activity\r\n setResult(Activity.RESULT_OK, intent);\r\n \r\n finish();\r\n \r\n \t}", "public void returnToMoveList(View view) {\n //open MoveListActivity\n final Intent intent = new Intent(DebugActivity.this, MoveListActivity.class);\n intent.putExtra(DebugActivity.EXTRAS_DEVICE_NAME, mDeviceName);\n intent.putExtra(DebugActivity.EXTRAS_DEVICE_ADDRESS, mDeviceAddress);\n startActivity(intent);\n }", "public void onAuthenWifiHotspot(String networkPass, int position) {\n Fragment childFragment = getChildFragmentManager().findFragmentByTag(Constant.TAG_CHILD_SCAN_WIFI_FRAGMENT);\n if (childFragment instanceof WifiChildScanFragment) {\n WifiLocationModel wifiScanWifiModel = ((WifiChildScanFragment) childFragment).getWifiSsidAndPass(position);\n\n String networkSSID = wifiScanWifiModel.getSsid();\n String encryption = wifiScanWifiModel.getEncryption();\n String networkBSSID = wifiScanWifiModel.getBssid();\n\n // Add a new network description to the set of configured networks.\n WifiConfiguration conf = new WifiConfiguration();\n conf.SSID = \"\\\"\" + networkSSID + \"\\\"\";\n\n if (encryption.equals(Constant.WIFI_WEP)) {\n conf.wepKeys[0] = \"\\\"\" + networkPass + \"\\\"\";\n conf.wepTxKeyIndex = 0;\n conf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE);\n conf.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP40);\n } else if (encryption.equals(Constant.WIFI_WPA)) {\n conf.preSharedKey = \"\\\"\" + networkPass + \"\\\"\";\n } else if (encryption.equals(Constant.WIFI_OPEN)) {\n conf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE);\n } else if (encryption.equals(Constant.WIFI_WPA2)) {\n conf.preSharedKey = \"\\\"\" + networkPass + \"\\\"\";\n }\n\n WifiManager wifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE);\n int networkId = wifiManager.addNetwork(conf);\n if (networkId != -1) {\n wifiManager.enableNetwork(networkId, true);\n // Use this to permanently save this network\n // Otherwise, it will disappear after a reboot\n wifiManager.saveConfiguration();\n }\n\n // if connect to that wifi hotspot success, we will have state change in wifi.\n // so to listen for state change in wifi, call a broadcast recever\n mListenStateChangeBroadcastReceiver = new ListenStateChangeBroadcastReceiver(this, networkSSID, networkPass, encryption, networkBSSID);\n getContext().registerReceiver(mListenStateChangeBroadcastReceiver, new IntentFilter(WifiManager.NETWORK_STATE_CHANGED_ACTION));\n }\n }", "private void addWiFiUsage() {\n BatterySipper bs = new BatterySipper(DrainType.WIFI, null, 0);\n mWifiPowerCalculator.calculateRemaining(bs, mStats, mRawRealtimeUs, mRawUptimeUs,\n mStatsType);\n aggregateSippers(bs, mWifiSippers, \"WIFI\");\n if (bs.totalPowerMah > 0) {\n mUsageList.add(bs);\n }\n }", "public void onClick(View v) {\n if (!connected) {\n mode.setEnabled(false);\n selectAvailableDevices();\n } else {\n connected = false;\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String pid = \"spot\"+ ((TextView) view.findViewById(R.id.pid)).getText()\n .toString();\n\n if (is_connected_wifi || is_connected_hotspot) {\n\n // Starting new intent\n Intent in = new Intent(getApplicationContext(),\n SpotDesign.class);\n // sending pid to next activity\n in.putExtra(TAG_PID, pid);\n\n // starting new activity and expecting some response back\n startActivityForResult(in, 100);\n overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);\n }else\n {\n\n Toast.makeText(getApplicationContext(),\n \"Your Data is Off : Turn on data or WI-FI\", Toast.LENGTH_SHORT)\n .show();\n }\n\n }", "private String tryToReadSSID() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return \"bo\";\n }else{//Permission already granted\n WifiManager wifiManager = (WifiManager) this.getApplicationContext().getSystemService(WIFI_SERVICE);\n if (wifiManager != null && wifiManager.getConnectionInfo() != null) {\n WifiInfo wifiInfo = wifiManager.getConnectionInfo();\n if (wifiInfo.getSupplicantState() == SupplicantState.COMPLETED) {\n return wifiInfo.getBSSID();//Here you can access your SSID\n }\n }\n }\n return \"\";\n }", "public interface Wifi {\n\n\t/**\n\t * Activar el WIFI\n\t */\n\tpublic void activarWifi();\n\t/**\n\t * Desactivar el WIFI\n\t */\n\tpublic void desactivarWifi();\n\t/**\n\t * Verificar si estamos en modo avion\n\t * @return\n\t */\n\tpublic boolean estaEnModoAvion();\n\t\n}", "@Override\n public void onItemClick(int position) {\n Sensor s = mDeviceList.get(position);\n if(s.isConnected){\n if(s.name.equals(\"Vital Jacket\")){\n BluetoothService.sendTo(client.address,\"turnOffVj\");\n }\n else if(s.name.equals(\"Video\")){\n BluetoothService.sendTo(client.address,\"turnOffVideo\");\n }\n }\n else {\n if (s.name.equals(\"Vital Jacket\")) {\n Intent i = new Intent(getBaseContext(), ChooseVJ.class);\n i.putExtra(\"message\", client.address);\n startActivity(i);\n }\n else if(s.name.equals(\"Video\")){\n BluetoothService.sendTo(client.address,\"turnOnVideo\");\n }\n }\n }", "private void connectToNetwork(final WifiNetworkInfo info){\n final String SSID = info.SSID;\n final WifiConfiguration conf = new WifiConfiguration();\n conf.SSID = SSID; //needs to be surrounded by quotations but should already be coming from a scan object\n if(info.secured){\n //prompt for password\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setPositiveButton(\"Connect\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if(info.secured){\n EditText editText = (EditText)((AlertDialog)dialog).findViewById(R.id.wifi_password_edit_text);\n\n String password = editText.getText().toString();\n if(info.WEP) {\n WifiUtils.connectToWEPSecuredNetwork(SSID, password, manager);\n }\n else if(info.WPA || info.WPA2){\n WifiUtils.connectToWPASecuredNetwork(SSID, password, manager);\n }\n// might need a different case here but I think it probably is the same as WPA\n// else if(info.WPA2){\n//\n// }\n }\n else {\n WifiUtils.connectToOpenNetwork(SSID, manager);\n }\n }\n });\n\n// EditText passField = (EditText) dialog.findViewById(R.id.wifi_password_edit_text);\n// passField.getBackground().mutate().setColorFilter(getResources().getColor(R.color.Crimson), PorterDuff.Mode.SRC_ATOP);\n\n }\n else {\n conf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE);\n manager.addNetwork(conf);\n List<WifiConfiguration> list = manager.getConfiguredNetworks();\n for( WifiConfiguration i : list ) {\n if(i.SSID != null && i.SSID.equals(SSID)) {\n manager.disconnect();\n manager.enableNetwork(i.networkId, true);\n manager.reconnect();\n break;\n }\n }\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n\n tintManager.setStatusBarDarkMode(true, BaseActivity.this);\n tintManager.setStatusBarTintDrawable(null);\n tintManager.setStatusBarTintColor(Color.parseColor(\"#f0f0f0\"));\n\n final Map map = (Map) listAllFuncMap.get(position);\n\n if (map.get(\"name\").equals(getString(R.string.launchPadMealDoneName))) {\n showLoadingDialog(\"检测后厨打印机是否连接\");\n final String ipKitchen = (String) LocalDataDeal.readFromLocalIpKitchPrinter(ctxt).get(\"ip\");\n CommonUtils.LogWuwei(tag, \"ipKitchen is \" + ipKitchen);\n if (LocalDataDeal.readFromLocalMealDoneChooseMealPortId(ctxt) == -1) {\n hideLoadingDialog();\n showDialogErrorTwoOptions(\"未设置出餐口\\n请在设置中选择或者添加出餐口\", oclGoToSetting, \"设置\");\n return;\n } else {\n if(!StringUtils.isEmpty(ipKitchen))\n {\n new Thread() {\n public void run() {\n CommonUtils.LogWuwei(tag, \"在线程中,判断\" + ipKitchen + \"是否可用\");\n if (CommonUtils.getPrinterTestResult(ipKitchen) == 0) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n hideLoadingDialog();\n }\n });\n finishWithNextActivity(PushMealActivity.class);\n } else {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n hideLoadingDialog();\n showDialogErrorOneOption(\"后厨打印机无法连接,请确认:\\n1、打印机已开机,并插入网线\\n2、Ip地址设置是否正确\" +\n \"(当前:\" + ipKitchen + \")\");\n }\n });\n return;\n }\n }\n }.start();\n }\n else\n {\n finishWithNextActivity(PushMealActivity.class);\n }\n }\n } else if (map.get(\"name\").equals(getString(R.string.launchPadSelfTakeUpName))) {\n showLoadingDialog(\"检测自助取号打印机是否连接\");\n final String ipTakeup = (String) LocalDataDeal.readFromLocalIpTakeupPrinter(ctxt).get(\"ip\");\n CommonUtils.LogWuwei(tag, \"ipTakeup is \" + ipTakeup);\n if (ipTakeup.equals(\"\") || ipTakeup == null) {\n hideLoadingDialog();\n //HandlerUtils.showToast(ctxt, \"自助取号打印机未设置\\n请设置自助取号打印机ip\");\n showDialogErrorTwoOptions(\"自助取号打印机未设置\\n请设置自助取号打印机ip\", oclGoToSettingAutoTakeup, \"设置\");\n return;\n } else {\n new Thread() {\n public void run() {\n CommonUtils.LogWuwei(tag, \"在线程中,判断\" + ipTakeup + \"是否可用\");\n if (CommonUtils.getPrinterTestResult(ipTakeup) == 0) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n hideLoadingDialog();\n }\n });\n finishWithNextActivity(TakeUpActivity.class);\n } else {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n hideLoadingDialog();\n showDialogErrorOneOption(\"自助取号打印机无法连接,请确认:\\n1、打印机已开机,并插入网线\\n2、ip地址设置是否正确\" +\n \"(当前:\" + ipTakeup + \")\");\n }\n });\n return;\n }\n }\n }.start();\n }\n\n } else if (map.get(\"name\").equals(getString(R.string.launchPadSettingsName))) {\n finishWithNextActivity(SettingsActivity.class);\n } else if (map.get(\"name\").equals(getString(R.string.launchPadMenuEditName))) {\n finishWithNextActivity(ClientMenuSplashActivty.class);\n } else if (map.get(\"name\").equals(getString(R.string.launchPadDeliveryName))) {\n finishWithNextActivity(DeliveryActivity.class);\n } else if (map.get(\"name\").equals(getString(R.string.launchPadStockSupplyName))) {\n finishWithNextActivity(StockSupplyActivity.class);\n } else if (map.get(\"name\").equals(getString(R.string.launchPadStockPlanName))) {\n finishWithNextActivity(StockPlanActivity.class);\n }else if(map.get(\"name\").equals(getString(R.string.launchPadLablePrint)))\n {\n finishWithNextActivity(LableActivity.class);\n }\n\n\n }", "@Override\n\t\tpublic void onReceive(Context arg0, Intent arg1) {\n\t\t\tConnectivityManager myConnManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);\n\t\t\tNetworkInfo netInfo = myConnManager.getActiveNetworkInfo();\n\t\t\tif (netInfo != null && netInfo.isConnectedOrConnecting()) {\n\n\t\t\t} else {\n\t\t\t\tnew AlertDialog.Builder(context)\n\t\t\t\t\t\t.setMessage(context.getResources().getString(R.string.no_wifi_message))\n\t\t\t\t\t\t.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tIntent i = new Intent(MainActivity.this, HistoryActivity.class);\n\t\t\t\t\t\t\t\ti.putExtra(getString(R.string.wifi_status), false);\n\t\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.setIcon(android.R.drawable.ic_dialog_alert)\n\t\t\t\t\t\t.show();\n\t\t\t}\n\t\t}", "private void setupPotClick() {\n ListView list = (ListView) findViewById(R.id.lv_pot_list);\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) {\n TextView textView = (TextView) viewClicked;\n Intent AddCalculateServingIntent = CalculateServing.makeIntent(MainActivity.this, potList.getPot(position));\n startActivity(AddCalculateServingIntent);\n }\n });\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\tif(true/*listAdapter.getItem(arg2).contains(\"Paired\")*/){\n\t\t\tBluetoothDevice selectedDevice = devices.get(arg2);\n\t\t\tToast.makeText(getApplicationContext(), \"device is paired\", Toast.LENGTH_SHORT).show();\n\t\t\tConnectThread connect = new ConnectThread(selectedDevice);\n\t\t\tconnect.start();\n\t\t} else {\n\t\t\tToast.makeText(getApplicationContext(), \"device is not paired\", Toast.LENGTH_SHORT).show();\n\t\t\tIntent intentOpenBluetoothSettings = new Intent();\n\t\t\tintentOpenBluetoothSettings.setAction(android.provider.Settings.ACTION_BLUETOOTH_SETTINGS); \n\t\t\tstartActivity(intentOpenBluetoothSettings); \n\t\t}\n\t}", "@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n Intent myIntent = new Intent( Settings.ACTION_WIFI_SETTINGS);\n context.startActivity(myIntent);\n //get gps\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.fl_set_wifi:\n\t\t\tIntent intent = new Intent(SetOrResetWifi.this,SetDeviceWifi.class);\n\t\t\tstartActivity(intent);\n\t\t\tbreak;\n\t\tcase R.id.fl_reset_wifi:\n\t\t\tintent = new Intent(SetOrResetWifi.this,FlashLighting.class);\n\t\t\tstartActivity(intent);\n\t\t\tbreak;\n\t\tcase R.id.ib_reset_wifi_back:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public void onListItemSelected(String asinID,String title,String price) {\n if(UtilityFunctions.isNetworkAvailable(getActivity())) {\n Intent i = new Intent(getActivity(), ProductInformationPageActivity.class);\n i.putExtra(Tag.PIP_URL, Tag.PIP_URL + asinID);\n i.putExtra(Tag.TITLE, title);\n i.putExtra(Tag.PRICE, price);\n startActivity(i);\n }\n else\n {\n Toast.makeText(getActivity(),Tag.NO_INTERNET,Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View v, int arg2,long arg3)\n\t\t\t{\n\t\t\t\tif(btAdapter.isDiscovering())\n\t\t\t\t{\n\t\t\t\t\tbtAdapter.cancelDiscovery();\n\t\t\t\t}\n\t\t\t\tString BtDeviceInfo = ((TextView)v).getText().toString();\n\t\t\t\tmBtDevName = BtDeviceInfo.split(\"\\n\")[0];\n\t\t\t\tmBtDevChosen = BtDeviceInfo.substring(BtDeviceInfo.length()-17);\n\t\t\t\tactivity_result_set(mBtDevChosen);\n\t\t\t}", "public boolean WifiAvaible() {\n boolean Wifi = false;\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo[] netInfo = cm.getAllNetworkInfo();\n for (NetworkInfo NI : netInfo) {\n if (NI.getTypeName().equalsIgnoreCase(\"WIFI\")){\n if (NI.isConnected()){\n Wifi = true;\n }\n }\n }\n return Wifi;\n }", "private void registerListClickCallBack() {\n\t\t\n\t\tListView myList = (ListView)findViewById(R.id.listViewFromDB);\n\t\tmyList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View viewClicked,\n\t\t\t\t\tint position, long idInDB) {\n\t\t\t\t\n\t\t\t\tupdateItemForId(idInDB);\n\t\t\t\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void onClick(View view) {\n ArrayList<XeBuyt> listXeBuytWithAvailableSeats = XeBuytController.getInstance()\n .getListXeBuytByMaTuyenDuong(tuyenDuong.maTuyenDuong);\n\n // Because we haven't found out whether it has available seats or not so\n // we have to filter it out to return only buyts with available seats\n\n // Save to this, cool!!!\n SharedVariables.theListOfBusesThroughActivity = MainController.getInstance().\n getListXeBuytsWithAvailableSeats(listXeBuytWithAvailableSeats);\n\n Intent intent = new Intent(getContext(), FirstFunction_2_Activity.class);\n m_Context.startActivity(intent);\n }", "public synchronized void clickOnWishList(WebDriver driver) throws Exception {\n\n\t\tutils.isElementPresent(driver, \"Add_To_WishList\");\n\n\t\ttry {\n\n\t\t\tWebElement elem = utils.findElementByLocator(driver, \"Add_To_WishList\", \"Add To Wishlist not clicked\");\n\t\t\telem.click();\n\t\t\tReporterLog.actionMsg(\"Add To WishList clicked\");\n\n\t\t} catch (Exception e) {\n\n\t\t\tCustomException.throwExceptionError(e, \"PDP\", \"Add To WishList action failed\", driver);\n\t\t}\n\t}" ]
[ "0.65375745", "0.65070623", "0.6478272", "0.64156073", "0.63628435", "0.6361819", "0.62358314", "0.62001437", "0.60618645", "0.60528517", "0.60212874", "0.59871614", "0.59732527", "0.5965817", "0.58966976", "0.58937", "0.5858458", "0.5858421", "0.5758649", "0.57515466", "0.5735734", "0.57259357", "0.56975174", "0.56799006", "0.5674683", "0.56630886", "0.56224144", "0.55968666", "0.5593199", "0.5592487", "0.55869377", "0.55477065", "0.5542165", "0.55398035", "0.5525853", "0.5525739", "0.55200267", "0.5504843", "0.5502957", "0.54894847", "0.5476099", "0.54702216", "0.54652876", "0.5455703", "0.54543054", "0.5451779", "0.5450394", "0.5437183", "0.5431778", "0.54175884", "0.54160124", "0.5412545", "0.5390649", "0.5382329", "0.5375579", "0.5373055", "0.5371938", "0.5366505", "0.5363276", "0.536184", "0.5361171", "0.53564394", "0.5344617", "0.53418785", "0.53396547", "0.5339206", "0.5320442", "0.53163266", "0.5312268", "0.53053737", "0.5302873", "0.53026944", "0.530261", "0.5300173", "0.5290714", "0.5285745", "0.5275261", "0.52747893", "0.5267952", "0.5266395", "0.5265454", "0.52612627", "0.52556986", "0.5255375", "0.52528346", "0.52498186", "0.52428705", "0.52414876", "0.5238215", "0.523099", "0.5230495", "0.5224674", "0.5223505", "0.521748", "0.5214839", "0.5213066", "0.521207", "0.5207977", "0.5204053", "0.5203172" ]
0.6114925
8
Function to handle Exit click
public void btnExitClick(){ // Finish the main activity onPause(); this.getActivity().finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void exitAction() {\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\texit_click(e);\r\n\t\t\t}", "public void exitButtonClicked() {\r\n\t\tSystem.exit(0); \r\n\t\treturn;\r\n\t}", "void onExit();", "@Override\n\tpublic void processExitButtonClick(ProcessButtonObjectEvent e) {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\texit();\r\n\t\t\t}", "public void onExit();", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdoExit();\r\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "private void doExit() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(\n BookingActivity.this);\n\n alertDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //finish();\n //System.exit(0);\n goBack();\n }\n });\n\n alertDialog.setNegativeButton(\"No\", null);\n\n alertDialog.setMessage(\"Do you want to exit?\");\n alertDialog.setTitle(\" \");\n alertDialog.show();\n }", "public void lobbyExitButton(MouseEvent event){\n event.consume();\n Client.sendMessageToServer(new Disconnection());\n Platform.exit();\n System.exit(APP_CLOSED_BY_LOBBY_EXIT_BUTTON);\n }", "public void clickedQuitButton(Button button) {\r\n System.exit(0);\r\n }", "public void exit() {\r\n \t\t// Send a closing signat to main window.\r\n \t\tmainWindow.dispatchEvent(new WindowEvent(mainWindow, WindowEvent.WINDOW_CLOSING));\r\n \t}", "public void Exit_button() {\n\t \t Stage stage = (Stage) btnExit.getScene().getWindow();\n\t \t \n\t \t stage.close();\n\t }", "public void showExit();", "private void btnExitActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "public void handleExit(){\n if(JOptionPane.showConfirmDialog(null,\"Do you really wanna exit\",\"Confirm\",JOptionPane.WARNING_MESSAGE,\n JOptionPane.YES_OPTION)==JOptionPane.YES_OPTION){System.exit(0);}\n else{\n return;\n }\n\n\n\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n System.exit(1);\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tdialogExit();\r\n\t\t\t}", "@FXML\n private void handleExit() {\n GuiSettings guiSettings = new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(),\n (int) primaryStage.getX(), (int) primaryStage.getY());\n logic.setGuiSettings(guiSettings);\n logic.displayAllTasks();\n resultDisplay.setFeedbackToUser(\"\");\n primaryStage.hide();\n }", "private void jmiExitMouseClicked(java.awt.event.MouseEvent evt) {\n\r\n }", "private void exitListener() {\n buttonPanel.getQuit().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n toDoList.saveAll(fileLocation);\n System.exit(0);\n }\n });\n }", "private void closeBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_closeBtnMouseClicked\n System.exit(0);\n }", "@Override\r\n\tpublic void exit() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\r\n\t\t\t\tSystem.exit(0);\r\n\r\n\t\t\t}", "public void exit();", "private void btn_ExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_ExitActionPerformed\n System.exit(0);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t\t\r\n\t\t\t\t}", "public void Exit() {\r\n \tsuper.onBackPressed();\r\n }", "private void btnCerrarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCerrarMouseClicked\r\n \r\n System.exit(0);\r\n// TODO add your handling code here:\r\n }", "void close_actionPerformed(ActionEvent e){\n\t System.exit(0);\n\t }", "public void handleQuit(ApplicationEvent evt) {\n ExitManager em = (ExitManager) bio.getManager(ExitManager.class);\n if (em == null) evt.setHandled(true);\n else {\n evt.setHandled(false);\n em.fileExit();\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "void this_windowClosing(WindowEvent e) {\n // simulate the user having clicked exit\n btn_Exit_actionPerformed( null );\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }", "@Override\n\tpublic void mouseExitHandler(MouseEvent e) {\n\n\t}", "@Override\n public void windowClosing(WindowEvent e)\n {\n gui.exitApp();\n }", "@Override\n\tpublic void onExit() {\n\t\t\n\t}", "@Override\n\tpublic void exit() {\n\t\t\n\t}", "@Override\n\tpublic void exit() {\n\t\t\n\t}", "@Override\n\tpublic void exit() {\n\n\t}", "private void ExitProc()\r\n\t{\r\n\t\tint n = JOptionPane.showConfirmDialog(\r\n\t\t\t frame ,\r\n\t\t\t \"EXIT NOF FreeWare ???\",\r\n\t\t\t \"--NOF--\",\r\n\t\t\t JOptionPane.YES_NO_OPTION);\r\n\t\t\r\n\t\t//user pressed result.\r\n\t\tswitch (n) \r\n\t\t{\r\n\t\tcase 0: //yes\r\n\r\n\t\t\tframe.dispose();\r\n\t\t\tl = new log(\"event\",\"Exit Software\",\"Exit Pressed - Thank you for using NOF Software.\");\r\n\t\t\terase del = new erase(StStr); //StStr);\r\n\t\t\t//del.erase_output(StStr);\r\n\t\t\tSystem.exit(0); // Exit Program\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase 1: //no\r\n\t\t\tl = new log(\"event\",\"Exit_option\",\"Exit - have been canceled\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t}", "private void menuitemExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuitemExitActionPerformed\n if ( mainApp != null ) {\n mainApp.btnExitActionPerformed(); // note call to method in Main class\n } else {\n System.exit( 0 );\n }\n }", "public void exitMenu(){\n }", "@FXML\r\n void ClickExitWeechat(MouseEvent event) {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n //Display alert\r\n alert.setTitle(\"Exit Weechat\");\r\n alert.setHeaderText(\"Are you sure you want to exit Weechat\");\r\n ButtonType confirmButton = new ButtonType(\"Don't Exit\", \r\n ButtonBar.ButtonData.CANCEL_CLOSE);\r\n //Confirm option to exit or not\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if(result.get() == ButtonType.OK) //Exit program\r\n {\r\n Node node = (Node) event.getSource();\r\n final Stage stage = (Stage) node.getScene().getWindow();\r\n stage.close(); \r\n }\r\n }", "private void exitButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitButtonActionPerformed\n System.exit(0);\n }", "@Override\n\tpublic void exit() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}", "private void jb_closeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_closeActionPerformed\n System.exit(0);\n }", "public void exit() {\n Intent intent = new Intent(this, MainActivity.class);\n this.startActivity(intent);\n }", "private void jb_CloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_CloseActionPerformed\n System.exit(0);\n }", "public void exitToMenu()\n {\n exitToMenuFlag = true;\n }", "public abstract void exit();", "@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\t\n\t\t\t\tfinish();\n\t\t\t\t\n\t\t\t\tmApplication.exit();\n\t\t\t}", "public void exit(ActionEvent actionEvent) {\r\n //Closes hibernate and then the program.\r\n controller.exit();\r\n System.exit(0);\r\n }", "@FXML protected void doExit(ActionEvent event) {\n\t\tmodel.exit();\n\t}", "private void jmiExitActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\r\n }", "public void exit() {\r\n\t\tdispose();\r\n\t}", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tSystem.exit(0);\r\n\t\t}", "private void systemExit()\n{\n WindowEvent winClosing = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\n}", "private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n }", "@Override\n public void exit() {\n super.exit();\n }", "private void exitApplication() {\n Button exit = (Button) findViewById(R.id.activity_one_exit_button); // exit button declaration\n exit.setOnClickListener(new View.OnClickListener() { //set listener for exit button\n @Override\n public void onClick(View v) {\n finish();//close the activity\n\n }\n });\n }", "public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }", "private void menu_ExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_ExitActionPerformed\n System.exit(0);\n }", "@Override\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n }", "@Override\n public void handle(WindowEvent t) {\n System.exit(0);\n }", "private void exitButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_exitButtonActionPerformed\n\tSystem.exit(0);\n }", "public void exit()\r\n\t{\r\n\t\tmainFrame.exit();\r\n\t}", "@Override\r\n\tpublic void exit() {\n\r\n\t}", "private void dialogExit() {\n\t\tint result = showConfirmDialog(frmRentCalc, \"Вы действительно ходите выйти?\", \"Окно подтверждения\", YES_NO_OPTION, QUESTION_MESSAGE);\r\n\t\tif (result == YES_OPTION) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else {\r\n\t\t\tif (result == NO_OPTION) {\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void Exit(){\n\t\t\t\tclose();\n\t\t\t}", "public ExitClickListener(JFrame frame)\n {\n this.frame = frame;\n }", "@Override\n\tpublic void actionPerformed( ActionEvent e ) {\n\t\t// Quit the program\n\t\tSystem.exit( 0 );\n\t}", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tSystem.exit(0);\n\n\t\t\t}", "@Override\n public void onClick(View v) {\n System.exit(0);\n }", "public void actionPerformed(ActionEvent e) {\r\n System.exit(0);\r\n }", "private void exitItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitItemActionPerformed\n System.exit(0);\n }", "@Override\n public void exit(EventObject event)\n {\n shutdown();\n }", "public void windowClosing(WindowEvent e) {\n System.exit(0);\n }", "abstract public void exit();", "protected void handleExit() {\r\n\t\texitRecieved = true;\r\n\t\tterminate();\r\n\t}", "protected void do_mntmExit_actionPerformed(ActionEvent arg0) {\n\t\tthis.dispose();\n\t}", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\n\t\t\n\t}", "@Override\n\tpublic void exit() {\n\t\t//do nothing\n\t}", "@Override\n public void windowClosing(WindowEvent evt) {\n System.exit(0); // Terminate the program\n }", "@Override\n\tpublic void windowClosing(WindowEvent e) {\n\t\tSystem.exit(0);\t\n\t}", "private void shopExitButtonClicked() {\n finish();\n }", "private void jButtonCancelActionPerformed() {\r\n\t\texit();\r\n\t}", "private void quitButtonActionPerformed(ActionEvent evt) {\r\n\t\tlogger.info(\"Quit button Clicked.\");\r\n\t\tSystem.exit(0);\r\n\t}", "private void exitJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitJButtonActionPerformed\n System.exit(0);\n }", "public void cancel() { Common.exitWindow(cancelBtn); }", "private void jButtonCancelActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n \n }", "public ExitMenu(){\n\t\tint n = showConfirmDialog(null,\"Exit Game\", \"Exiting Game\",JOptionPane.YES_NO_OPTION);\n\t\tif(n==0)\n\t\t\tSystem.exit(0);\t\t\n\t}", "@Override\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n // super.windowClosing(e);\n }", "public void handle(WindowEvent e) {\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t\t// TODO: check, whether we are in match window or not\r\n\t\t\t\t\t// in non-match-windows, the user is allowed to quit\r\n\t\t\t\t\t// HockmanMain.stageHandler.closeModalStage();\r\n\t\t\t\t}" ]
[ "0.789592", "0.7885286", "0.7729861", "0.7635605", "0.7604529", "0.7604139", "0.7582297", "0.7581253", "0.75365", "0.753493", "0.75202984", "0.7519818", "0.7504962", "0.74951476", "0.74549276", "0.74527454", "0.7446402", "0.7424296", "0.7405945", "0.73572886", "0.73555034", "0.7344768", "0.7342445", "0.731321", "0.73023117", "0.7299763", "0.7298953", "0.7297906", "0.7271587", "0.7271331", "0.7266359", "0.726478", "0.7247651", "0.7245329", "0.7235535", "0.7235535", "0.7235535", "0.7213702", "0.72115916", "0.72102565", "0.7203143", "0.71959424", "0.71924025", "0.71924025", "0.71876353", "0.7186995", "0.7185488", "0.71787935", "0.7176599", "0.71727705", "0.71715987", "0.71712685", "0.716033", "0.71582353", "0.71541107", "0.71498877", "0.71461004", "0.7140365", "0.71226764", "0.7111946", "0.7110981", "0.71085125", "0.7106099", "0.71017814", "0.7097983", "0.7096585", "0.70913965", "0.7086594", "0.708561", "0.7082204", "0.7080485", "0.7078109", "0.7075541", "0.70657426", "0.70620024", "0.70612824", "0.7058048", "0.70554", "0.70470583", "0.70390826", "0.70388705", "0.7035641", "0.7034767", "0.7028766", "0.70287097", "0.7024342", "0.7022867", "0.701408", "0.70109177", "0.7010691", "0.70097214", "0.70037436", "0.70009595", "0.69976866", "0.699708", "0.6996533", "0.6993077", "0.6991936", "0.6990867", "0.6985081", "0.6974939" ]
0.0
-1
Fill the Labels with the information for the connected WiFi
public void setTxtViews(String ssid, String ip, String signal){ ssidView.setText(ssid); ipView.setText(ip); signalView.setText(signal); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void fillLabels() {\r\n this.lblCash.setText(Integer.toString(player.getMoney()));\r\n Ship s = player.getShip();\r\n this.shipInfo.setText(s.toString());\r\n errorLabel.setText(\"\");\r\n }", "private void setLabelsTODefaultValues(){\r\n\t\tlblTempitem1.setText(\"NONE\"); //first temp item\r\n\t\tlblTempitem_2_1.setText(\"\"); //2nd temp item\r\n\t\tlblTempitem_3_1.setText(\"\"); //3rd item in temperature list\r\n\t\tlblTempitem_4.setText(\"\"); //4th...\r\n\t\tlblTempitem_5.setText(\"\"); //5th item in temperature list.\r\n\t\tlblTempitem_6.setText(\"\");\r\n\t\tlblPackv1.setText(\"NONE\"); //first item in voltage pack list\r\n\t\tlblPackv2.setText(\"\"); //second item in voltage pack list\r\n\t\tlblPackv_3.setText(\"\"); //the thirdf\r\n\t\tlblPackv_4.setText(\"\"); //and fourth. Can add more as needed \r\n\t\tlblSpeed.setText(\"NONE\");; //the label showing speed (update this one!)\r\n\t\tlblLastDataReceived.setText(\"Last Received: NONE\"); //Time of last data received\r\n\t\tlblCarLoadedName.setText(\"No Car Connected\");; // the name of the currently loaded car. \r\n\t\tSoC.setText(\"N/A\"); //the default text for state of charge\r\n\t}", "private void fillLabelsTabel() {\n }", "private void wifiName() {\n\t\tSystem.out.println(\"The wifi name is Redmi\");\n\t}", "public void ListNetworkInerface() {\n\t\tNETWORK_INTERFACES=JpcapCaptor.getDeviceList(); \r\n\t\ttextArea_1.setText(\"\");\r\n\t\tfor(int i=0;i<NETWORK_INTERFACES.length;i++)\r\n\t\t{\r\n\t\t\t\ttextArea_1.append(\"\\n----------------------------------------------Interface \"+(i+1)+\" Info------------------------------------------\");\r\n\t\t\t\t\r\n\t\t\t\ttextArea_1.append(\"\\n Interface Number \"+(i+1));\r\n\t\t\t\ttextArea_1.append(\"\\n Description \"+NETWORK_INTERFACES[i].name + \"( \"+NETWORK_INTERFACES[i].description+\" )\");\r\n\r\n\t\t\t\ttextArea_1.append(\"\\n DataLink Name : \"+NETWORK_INTERFACES[i].datalink_name + \"( \"+NETWORK_INTERFACES[i].datalink_description+\" )\");\r\n\t\t\t\ttextArea_1.append(\"\\n MAC address : \");\r\n\t\t\t\tbyte R[]=NETWORK_INTERFACES[i].mac_address;\r\n\t\t\t\t\r\n\t\t\t\tfor(int A=0;A<6;A++)\t// \r\n\t\t\t\t{\r\n\t\t\t\t\ttextArea_1.append(Integer.toHexString(R[A] & 0xff)+ \":\");\r\n\t\t\t\t}\r\n\t\t\t\tNetworkInterfaceAddress []INT =NETWORK_INTERFACES[i].addresses;\r\n\t\t\t\t// there are n no of ip address of any particular network interface and we are calculating the info of one only\r\n\t\t\t\ttextArea_1.append(\"\\n IP Address : \"+INT[0].address);\r\n\t\t\t\t//textArea_1.append(\"\\n Subnet Mask : \"+INT[0].subnet);\r\n\t\t\t\t//textArea_1.append(\"\\n Broadcast Address : \"+INT[0].broadcast+\" \\n\");\r\n\t\t\t\t\r\n\t\t\t\tcounter++;\r\n\t\t}\r\n\t}", "@Override\n public void connected() {\n jLabel5.setText(\"已连接\");\n }", "@Override\n\t\t\t\t\tpublic void onNotifyWifiConnected()\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.v(TAG, \"have connected success!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}", "public void fillIdentity() {\n\t\tString shipName = ship.getShipName();\n\t\tString name = shipsNameLabel.getText();\n\t\tshipsNameLabel.setText( name + shipName);\n\t\t\n\t\tdouble shipStatus = ship.getShipsStatus();\n\t\tString status = shipsStatusLabel.getText();\n\t\tshipsStatusLabel.setText( status + shipStatus + \"HP\");\n\t\t\n\t\tdouble shipCap = ship.getCapacity();\n\t\tString capacity = shipsCurrentCapacityLabel.getText();\n\t\tshipsCurrentCapacityLabel.setText(capacity + String.format(\"%.2f\", shipCap) + \"m^3\");\n\t\t\n\t\tint shipSpeed = ship.getShipsSpeed();\n\t\tString speed = shipsSpeedLabel.getText();\n\t\tshipsSpeedLabel.setText( speed + shipSpeed + \" km/day\");\n\t\t\n\t\tint shipCrew = ship.getCrew();\n\t\tString crew = crewsInShipLabel.getText();\n\t\tcrewsInShipLabel.setText(crew + shipCrew + \" people\");\n\t\t\n\t\tArrayList<Equipment> shipsEquipment = ship.getEquipment();\n\t\tArrayList<String> shipsEquipmentName = new ArrayList<String>();\n\t\tfor (Equipment equipment: shipsEquipment) {\n\t\t\tshipsEquipmentName.add(equipment.getName());\n\t\t}\n\t\tString equipments = shipsEquipmentLabel.getText();\n\t\tshipsEquipmentLabel.setText(equipments + shipsEquipmentName);\n\t\t\n\t}", "public void initialize() throws UnknownHostException {\n ESP_IPaddress = \"127.0.0.1\";\n\n /*tableViewLog.setItems(loggedPackages);\n\n //set columns content\n logTime.setCellValueFactory(\n new PropertyValueFactory<UdpPackage,String>(\"formattedDate\")\n );\n logFromIP.setCellValueFactory(\n new PropertyValueFactory<UdpPackage, String>(\"fromIp\")\n );\n logFromPort.setCellValueFactory(\n new PropertyValueFactory<UdpPackage, Integer>(\"fromPort\")\n );\n logToIP.setCellValueFactory(\n new PropertyValueFactory<UdpPackage, String>(\"toIp\")\n );\n\n\n receiver = new UdpPackageReceiver(loggedPackages, 6000);\n\n */\n\n // initializes a new thread with the sole purpose of handling UDP messages on port 6000.\n receiver = new UdpPackageReceiver(6000);\n new Thread(receiver).start();\n\n\n try {\n sender = new DatagramSocket();\n } catch (SocketException e) {\n e.printStackTrace();\n }\n\n\n gc = canvas.getGraphicsContext2D();\n bgc = batteryLevel.getGraphicsContext2D();\n mgc = mainbackground.getGraphicsContext2D();\n mgc.setFill(Color.DARKBLUE);\n mgc.setGlobalAlpha(0.5);\n for (int i=0; i<mainbackground.getWidth()/15; i++) {\n mgc.fillRect(i+(i*15), 0, 1, mainbackground.getHeight());\n }\n for (int i=0; i<mainbackground.getHeight()/15; i++) {\n mgc.fillRect(0, i+(i*15), mainbackground.getWidth(), 1);\n }\n\n\n height=canvas.getHeight()-30;\n latitude=canvas.getWidth()/2-25;\n\n\n drone = new Drone(canvas, gc, latitude, height, 40, 20, receiver);\n new Thread(drone).start();\n information = new Information(this, drone);\n new Thread(information).start();\n\n takeoff=false;\n }", "private void initInfo(Map<String, String> _info) {\n this.jlCPU.setText(_info.get(\"Model\"));// FIXME may be very long name\n this.jlCores.setText(_info.get(\"TotalCores\"));\n this.jlVendor.setText(_info.get(\"Vendor\"));\n this.jlFrequency.setText(_info.get(\"Mhz\") + \" MHz\");\n this.jlRAM.setText(_info.get(\"Free\").substring(0, 3) + \" / \" + _info.get(\"Ram\") + \" MB\");\n this.jlHostname.setText(_info.get(\"HostName\"));\n this.jlIP.setText(_info.get(\"IP\"));\n this.jlGateway.setText(_info.get(\"DefaultGateway\"));\n this.jlPrimDNS.setText(_info.get(\"PrimaryDns\"));\n }", "public void update()\n {\n tick++;\n if (this.part != null)\n {\n for (UpdatedLabel label : dataLabels)\n {\n label.update();\n }\n int c = 0;\n for (Entry<MechanicalNode, ForgeDirection> entry : part.node.getConnections().entrySet())\n {\n if (entry.getKey() != null)\n {\n this.connections[c].setText(\"Connection\" + c + \": \" + entry.getKey());\n c++;\n }\n }\n for (int i = c; i < connections.length; i++)\n {\n this.connections[i].setText(\"Connection\" + i + \": NONE\");\n }\n }\n }", "public void updateLabels() {\n\t\tfinal PlayerInfo player = ControllerImpl.getController().getCurrentPlayer();\n\t\tplayerLabel.setText(\"Player:\\n\" + player.getName());\n\t\tcashLabel.setText(\"Cash:\\n\" + player.getMoney());\n\t\tnetWorthLabel.setText(\"Net Worth:\\n\" + player.totalAssets());\n\t\tprisonLabel.setText(player.isInJail() ? \"In jail\" : \"Free\");\n\t}", "public void setValuesForDisplay() {\n \tthis.trainModelGUI.tempLabel.setText(Integer.toString(this.temperature) + DEGREE + \"F\");\n\n //this.trainCars = this.trainModelGUI.numCars();\n this.trainWheels = this.trainCars * TRAIN_NUM_WHEELS;\n this.trainModelGUI.crewCountLabel.setText(Integer.toString(crew));\n this.trainModelGUI.heightVal.setText(Double.toString(truncateTo(this.trainHeight, 2)));\n this.trainModelGUI.widthVal.setText(Double.toString(truncateTo(this.trainWidth, 2)));\n this.trainModelGUI.lengthVal.setText(Double.toString(truncateTo(this.trainLength, 2)));\n this.trainModelGUI.weightVal.setText(Integer.toString(((int)this.trainWeight)));\n this.trainModelGUI.capacityVal.setText(Integer.toString(this.trainCapacity));\n this.trainModelGUI.powerVal.setText(Double.toString(truncateTo(this.powerIn/1000,2)));\n \n GPSAntenna = this.trainModelGUI.signalFailStatus();\n if(!GPSAntenna) {\n \tthis.trainModelGUI.gpsAntennaStatusLabel.setText(\"ON\");\n } else {\n \tthis.trainModelGUI.gpsAntennaStatusLabel.setText(\"OFF\");\n }\n MBOAntenna = this.trainModelGUI.signalFailStatus();\n if(!MBOAntenna) {\n \tthis.trainModelGUI.mboAntennaStatusLabel.setText(\"ON\");\n } else {\n \tthis.trainModelGUI.mboAntennaStatusLabel.setText(\"OFF\");\n }\n \t\n \tthis.trainModelGUI.timeVal.setText(trnMdl.currentTime.toString());\n \tthis.trainModelGUI.stationVal.setText(this.station);\n \t\n \tif(rightDoorIsOpen == true) {\n \tthis.trainModelGUI.rightDoorStatusLabel.setText(\"OPEN\");\n } else {\n \tthis.trainModelGUI.rightDoorStatusLabel.setText(\"CLOSED\");\n }\n \tif(leftDoorIsOpen == true) {\n \tthis.trainModelGUI.leftDoorStatusLabel.setText(\"OPEN\");\n } else {\n \tthis.trainModelGUI.leftDoorStatusLabel.setText(\"CLOSED\");\n }\n\n \tif(lightsAreOn == true) {\n \t\tthis.trainModelGUI.lightStatusLabel.setText(\"ON\");\n } else {\n \tthis.trainModelGUI.lightStatusLabel.setText(\"OFF\");\n }\n \t\n \tthis.trainModelGUI.numPassengers.setText(Integer.toString(this.numPassengers));\n \tthis.trainModelGUI.numCarsSpinner.setText(Integer.toString(this.trainCars));\n \tthis.trainModelGUI.authorityVal.setText(Double.toString(truncateTo(this.CTCAuthority/METERS_PER_MILE,2)));\n \tthis.trainModelGUI.ctcSpeedLabel.setText(Double.toString(truncateTo(this.CTCSpeed*KPH_TO_MPH,2)));\n \t\n \tif(serviceBrake) {\n \t\tthis.trainModelGUI.serviceLabel.setText(\"ON\");\n } else {\n \tthis.trainModelGUI.serviceLabel.setText(\"OFF\");\n }\n \tif(emerBrake) {\n \t\tthis.trainModelGUI.emergencyLabel.setText(\"ON\");\n } else {\n \tthis.trainModelGUI.emergencyLabel.setText(\"OFF\");\n }\n \t\n \tif(this.arrivalStatus == ARRIVING) {\n \t\tthis.trainModelGUI.arrivalStatusLabel.setText(\"ARRIVING\");\n \t} else if (this.arrivalStatus == EN_ROUTE) {\n \t\tthis.trainModelGUI.arrivalStatusLabel.setText(\"EN ROUTE\");\n \t} else if (this.arrivalStatus == APPROACHING) {\n \t\tthis.trainModelGUI.arrivalStatusLabel.setText(\"APPROACHING\");\n \t} else {\n \t\tthis.trainModelGUI.arrivalStatusLabel.setText(\"DEPARTING\");\n embarkingPassengersSet = false;\n \t}\n\n \tthis.trainModelGUI.currentSpeedLabel.setText(Double.toString(truncateTo((this.currentSpeed*MS_TO_MPH), 2)));\n \n \tif (this.lineColor.equals(\"GREEN\")) {\n \t\tthis.trainModelGUI.lblLine.setText(lineColor);\n \t\tthis.trainModelGUI.lblLine.setForeground(Color.GREEN);\n \t} else {\n \t\tthis.trainModelGUI.lblLine.setText(\"RED\");\n \t\tthis.trainModelGUI.lblLine.setForeground(Color.RED);\n }\n \t\n }", "private void populateAddressInfo(){\n userNameLabel.setText(userAccount.getUsername());\n address1Label.setText(userAccount.getPerson().getAddress().getAddressLine1());\n address2Label.setText(userAccount.getPerson().getAddress().getAddressLine2());\n cityLabel.setText(userAccount.getPerson().getAddress().getCity());\n stateLabel.setText(userAccount.getPerson().getAddress().getState());\n nationLabel.setText(userAccount.getPerson().getAddress().getCountry());\n zipLabel.setText(userAccount.getPerson().getAddress().getZipcode());\n emailLabel.setText(userAccount.getPerson().getEmail());\n }", "private void fillData() {\n\tparname.setText(UpStudentController.getName());\r\n\tparphone.setText(UpStudentController.getPhone());\r\n\tparmail.setText(UpStudentController.getMail());\r\n\taddres.setText(UpStudentController.getAdr());\r\n\tlocation.setText(UpStudentController.getLoc());\r\n\tkazi.setText(UpStudentController.getOc());\r\n\ttaifa.setText(UpStudentController.getNat());\r\n\t}", "@Override\n\tpublic void updateLabels() {\n\n\t}", "public void setLabels() {\n gameLabel.setText(gameString);\n playerLabel.setText(playerPlays);\n computerLabel.setText(computerPlays);\n pScoreLabel.setText(\"Player: \" + pScore);\n cScoreLabel.setText(\"Computer: \" + cScore);\n }", "private void connected() {\n m_connectionLabel.setBackground(Color.GREEN);\n m_connectionLabel.setText(\"Connected\");\n }", "private void setCountryLabels()\n {\n int usCount = 0;\n int ukCount = 0;\n int canadaCount = 0;\n\n for (Customer customer : customerList) {\n if (customer.getCountry().equals(\"U.S\")) { usCount++; }\n if (customer.getCountry().equals(\"UK\")) { ukCount++; }\n if (customer.getCountry().equals(\"Canada\")) { canadaCount++; }\n }\n\n usCountLabel.setText(Integer.toString(usCount));\n ukCountLabel.setText(Integer.toString(ukCount));\n canadaCountLabel.setText(Integer.toString(canadaCount));\n\n }", "private void initializeLabels() {\n labelVertexA = new Label(\"Vertex A\");\n labelVertexB = new Label(\"Vertex B\");\n labelVertexA.setTextFill(Color.web(\"#ffffff\"));\n labelVertexB.setTextFill(Color.web(\"#ffffff\"));\n }", "public void setValues() throws UnknownHostException\n\t{\n\t\tipInsurance.setText(getIPAddress());\n\t\tipInsurance.setEnabled(false);\n\t\tipInsurance.setEditable(false);\n\t\tportInsurance.setText(\"\"+Constants.RMI_PORT_INSURANCE);\n\t\t\n\t\tipHospital.setText(\"\"+Constants.RMI_ADDRESS_HOSPITAL);\n\t\tportHospital.setText(\"\"+Constants.RMI_PORT_HOSPITAL);\n\t\t\n\t}", "private void checkWifiStep1() {\n\n Log.i(\"checkk\", \"ikan\");\n\n WifiManager wifiManager= (WifiManager)getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n\n WifiInfo wifiInfo = wifiManager.getConnectionInfo();\n\n String name = wifiInfo.getSSID();\n\n //String macbabyyy = wifiInfo.getMacAddress();\n\n String bssiddda = wifiInfo.getBSSID();\n\n //wifiInfo.get\n\n // Log.i(\"checkk mac\",macbabyyy);\n Log.i(\"checkk bssid\",bssiddda);\n Log.i(\"checkk ssid\",name);\n\n Toast.makeText(getApplicationContext(),\"wifi ini :\"+ name, Toast.LENGTH_LONG).show();\n\n //asking fine location permission\n\n String constWifiName = \"\\\"arif0527 2.4GHz@unifi\\\"\";\n\n if(name.equals(constWifiName)){\n\n Log.i(\"checkk BERJAYA : \",bssiddda);\n Toast.makeText(getApplicationContext(),\"BERJAYA :\"+ name, Toast.LENGTH_LONG).show();\n message.setText(\"BERJAYA!!\");\n }\n\n\n }", "private Label getIP() { \n\t\tString address = new String(); \n\t\ttry { \n\t\t\tURL IpWebSite = new URL(\"http://bot.whatismyipaddress.com\"); \n\t\t\tBufferedReader sc = new BufferedReader(new InputStreamReader(IpWebSite.openStream())); \n\t\t\t\n\t\t\taddress = sc.readLine(); \n\t\t\t\n\t\t} catch (Exception e) { \n\t address = \"Can't get your IP Address \\n Check your internet connection\"; \n\t } \n\t\t\n\t\tLabel ip = new Label(\"Your IP Address is : \" + address);\n\t\tip.setMaxWidth(Double.MAX_VALUE);\n\t\tip.setAlignment(Pos.CENTER);\n\t\treturn ip;\n\t}", "public void refreshConnectionStatistics() {\n\t\tIPSECconnections = 0;\n\t\tPPTPconnections = 0;\n\t\tHTTPSconnections = 0;\n\t\tSSHconnections = 0;\n\t\tOthersconnections = 0;\n\t\tTotalconnections = 0;\n\n\t\tIterator listIterator = vpn.trafficPanel.VPNPairList.listIterator();\n\t\twhile (listIterator.hasNext()) {\n\t\t\tPair aPair = (Pair) listIterator.next();\n\t\t\tif (aPair.type == Traffic.IPSEC) {\n\t\t\t\tIPSECconnections++;\n\t\t\t} else if (aPair.type == Traffic.PPTP) {\n\t\t\t\tPPTPconnections++;\n\t\t\t} else if (aPair.type == Traffic.HTTPS) {\n\t\t\t\tHTTPSconnections++;\n\t\t\t} else if (aPair.type == Traffic.SSH) {\n\t\t\t\tSSHconnections++;\n\t\t\t} else {\n\t\t\t\tOthersconnections++;\n\t\t\t}\n\t\t\tTotalconnections++;\n\t\t}\n\n\t\tint ctotal =\n\t\t\tIPSECconnections\n\t\t\t\t+ PPTPconnections\n\t\t\t\t+ HTTPSconnections\n\t\t\t\t+ SSHconnections\n\t\t\t\t+ Othersconnections;\n\t\tif (ctotal == 0)\n\t\t\tctotal = 1;\n\t\tIPSECconnectionLabel.setText(\n\t\t\t\"IPSEC Connections: \"\n\t\t\t\t+ IPSECconnections\n\t\t\t\t+ \" ( \"\n\t\t\t\t+ (IPSECconnections * 100 / ctotal)\n\t\t\t\t+ \" % )\");\n\t\tPPTPconnectionLabel.setText(\n\t\t\t\"PPTP Connections: \"\n\t\t\t\t+ PPTPconnections\n\t\t\t\t+ \" ( \"\n\t\t\t\t+ (PPTPconnections * 100 / ctotal)\n\t\t\t\t+ \" % )\");\n\t\tHTTPSconnectionLabel.setText(\n\t\t\t\"HTTPS Connections: \"\n\t\t\t\t+ HTTPSconnections\n\t\t\t\t+ \" ( \"\n\t\t\t\t+ (HTTPSconnections * 100 / ctotal)\n\t\t\t\t+ \" % )\");\n\t\tSSHconnectionLabel.setText(\n\t\t\t\"SSH Connections: \"\n\t\t\t\t+ SSHconnections\n\t\t\t\t+ \" ( \"\n\t\t\t\t+ (SSHconnections * 100 / ctotal)\n\t\t\t\t+ \" % )\");\n\t\tOthersconnectionLabel.setText(\n\t\t\t\"Other Connections: \"\n\t\t\t\t+ Othersconnections\n\t\t\t\t+ \" ( \"\n\t\t\t\t+ (Othersconnections * 100 / ctotal)\n\t\t\t\t+ \" % )\");\n\t\tTotalconnectionLabel.setText(\n\t\t\t\"Total Connections: \"\n\t\t\t\t+ Totalconnections\n\t\t\t\t+ \" ( \"\n\t\t\t\t+ (Totalconnections * 100 / ctotal)\n\t\t\t\t+ \" % )\");\n\t}", "private void updateInfo() {\n /* Show the current server address in use */\n String text = String.format(getResources().getString(R.string.main_activity_server_address),\n Utils.getAddress(), Utils.getPort());\n serverTextView.setText(text);\n\n /* Show information about current player */\n Player player = SharedDataManager.getPlayer(this);\n /* No player is logged in */\n if (player == null) {\n playerTextView.setText(getString(R.string.your_nickname));\n return;\n }\n /* Player is logged in, show some information about him */\n text = String.format(getResources().getString(R.string.main_activity_player_title),\n player.getNickname(), player.getScore());\n playerTextView.setText(text);\n }", "private void setAllText(){\n if(route!=null){\n routeImageView.setImageBitmap(route.getImg());\n transportTextView.setText(\"Transport: \" + route.getTransport());\n speedTextView.setText(String.valueOf(\"Speed: \" + route.getSpeed() + \" Km/h \"));\n accuracyTextView.setText(String.valueOf(\"Accuracy: \" + route.getAccuracy()));\n distanceTextView.setText(String.valueOf(\"Distance: \" + route.getDistance() + \" Km\"));\n timestampTextView.setText(\"Start: \" + route.getTimestamp());\n durationTextView.setText(\" Duration: \" + route.getDuration());\n caloriesTextView.setText(\"Calories: \" + route.getCalories() + \" Kcal\");\n if(!route.getTransport().equals(\"Walking\")){\n caloriesTextView.setText(\"Calories: -.- Kcal\");\n }\n descriptionTextView.setText(\"Description: \" + route.getDescription());\n if(route.getDescription().isEmpty()){\n descriptionTextView.setText(\"\");\n }\n\n }\n\n }", "public void setLabels() {\n setTimeLabel();\n setDayLabel();\n setDateLabel();\n //setImage();\n }", "private void populateLabels() {\n CalculatorGraphConfig graphConfig = this.runner.getCalculatorGraphConfig();\n\n boolean foundTensorsToSegmentation = false;\n for (CalculatorGraphConfig.Node node : graphConfig.getNodeList()) {\n if (node.getName().contains(TENSORS_TO_SEGMENTATION_CALCULATOR_NAME)) {\n if (foundTensorsToSegmentation) {\n throw new MediaPipeException(\n MediaPipeException.StatusCode.INTERNAL.ordinal(),\n \"The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.\");\n }\n foundTensorsToSegmentation = true;\n TensorsToSegmentationCalculatorOptionsProto.TensorsToSegmentationCalculatorOptions options =\n node.getOptions()\n .getExtension(\n TensorsToSegmentationCalculatorOptionsProto\n .TensorsToSegmentationCalculatorOptions.ext);\n for (int i = 0; i < options.getLabelItemsMap().size(); i++) {\n Long labelKey = Long.valueOf(i);\n if (!options.getLabelItemsMap().containsKey(labelKey)) {\n throw new MediaPipeException(\n MediaPipeException.StatusCode.INTERNAL.ordinal(),\n \"The lablemap have no expected key: \" + labelKey);\n }\n labels.add(options.getLabelItemsMap().get(labelKey).getName());\n }\n }\n }\n }", "public void setLaunchPage() {\n resetLaunchPageStatus();\n\n // set recognised ssid\n ssidLabel.setVisible(true);\n Color backColor = rootPanel.getBackground();\n int backRed = backColor.getRed();\n int backGreen = backColor.getGreen();\n int backBlue = backColor.getBlue();\n new Thread(() -> {\n try {\n int j=backGreen,k=backBlue;\n for(int i=backRed;i>0&&retStatus==-1;i-=3){\n j-=3;k-=3;\n if(j < 0) j=0;\n if(k < 0) k=0;\n ssidLabel.setForeground(new Color(i,j,k));\n sleep(100);\n }\n } catch (InterruptedException e) {\n System.out.println(e.getMessage());\n }\n }).start();\n\n // set break connection button to visible\n breakConnBtn.setVisible(true);\n registerBtn.setVisible(false);\n\n // set launch status based on login info\n new Thread(() -> {\n try {\n // store img status icon thread to local\n connStatusImgThread = Thread.currentThread();\n // set wifi icons\n int wifiIconIndex = 0;\n int wifiIconLen = wifiLaunchIcons.length;\n ImageIcon connStatusIcon = connectingIcon;\n String connStr = \"正在连接\";\n connectStatusL.setVisible(true);\n connectStatusL.setText(connStr);\n while(retStatus == -1) {\n connectStatusL.setIcon(connStatusIcon);\n wifiIconLabel.setIcon(wifiLaunchIcons[wifiIconIndex]);\n connStatusIcon = (connStatusIcon == connectingIcon ? connectedOpaqueIcon : connectingIcon);\n sleep(600);\n wifiIconIndex = (++wifiIconIndex) % wifiIconLen;\n }\n ssidLabel.setForeground(Color.black);\n if(retStatus == 0) {\n setBreakdownStatus();\n } else if(retStatus == 64) {\n wifiIconLabel.setIcon(wifiLaunchIcons[3]);\n connectStatusL.setIcon(connectedIcon);\n connectStatusL.setText(\"已连接 \");\n // set wallet left value\n setLoginStatus(1);\n //========== do deduction ==========//\n File file = new File(configSetting.getWpaCmdPath().concat(\"/testLeftToken\"));\n BufferedReader leftCoinReader = new BufferedReader(new FileReader(file));\n String leftCoinStr = leftCoinReader.readLine();\n if(! leftCoinStr.contains(\"registerReward\")) {\n //====== read balance from blockchain =====//\n if(Utils.getTestChain()) {\n BufferedReader tokenReader = new BufferedReader(new FileReader(rootPath.concat(\"/wpa_setup/testLeftToken\")));\n BufferedReader coinReader = new BufferedReader(new FileReader(rootPath.concat(\"/wpa_setup/testLeftCoin\")));\n leftToken = Double.valueOf(tokenReader.readLine());\n leftCoin = Double.valueOf(coinReader.readLine());\n// currency.put(\"leftToken\",Double.valueOf(tokenReader.readLine()));\n// currency.put(\"leftCoin\",Double.valueOf(coinReader.readLine()));\n tokenReader.close();\n coinReader.close();\n } else {\n try {\n ProcessBuilder pb = new ProcessBuilder(\n \"node\",\n rootPath.concat(\"/js_contact_chain/get_value.js\")\n );\n pb.redirectErrorStream(true);\n Process process = pb.start();\n BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n StringBuilder sb = new StringBuilder();\n String line;\n System.out.println(\"========== get reward from blockchain ==========\");\n // tricky getting coin and token\n while ((line = reader.readLine()) != null) {\n sb.append(line);\n if (Pattern.matches(\"Token:[0-9]*\",line)) {\n leftToken = Double.valueOf(line.split(\":\")[1]);\n// currency.put(\"leftToken\",Double.valueOf(line.split(\":\")[1]));\n }\n if (Pattern.matches(\"Coin:[0-9]*\",line)) {\n leftCoin = Double.valueOf(line.split(\":\")[1]);\n// currency.put(\"leftCoin\",Double.valueOf(line.split(\":\")[1]));\n }\n System.out.println(\"<reward>\" + line + \"<reward>\");\n }\n process.waitFor();\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n // deduct 10 coin in backend\n new Thread(() -> {\n int tryout = 3;\n while(tryout > 0) {\n try {\n ArrayList<String> cmd = new ArrayList<>();\n cmd.add(\"node\");\n cmd.add(rootPath.concat(\"/js_contact_chain/client.js\"));\n cmd.add(\"DeductionToken\");\n cmd.add(\"0x01c96e4d9be1f4aef473dc5dcf13d8bd1d4133cd\");\n cmd.add(\"e16a1130062b37f038b9df02f134d7ddd9009c54c62bd92d4ed42c0dba1189a8\");\n cmd.add(\"0xf439bf68fc695b4a62f9e3322c75229ba5a0ff33\");\n ProcessBuilder pb = new ProcessBuilder(cmd);\n Process process = pb.start();\n BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n String line;\n // tricky getting data\n boolean isSuccess = false;\n while ((line = reader.readLine()) != null) {\n System.out.println(line);\n if (line.contains(\"status\")) {\n String[] tmpArry = line.split(\":\");\n String status = tmpArry[1];\n status = status.substring(1, status.length() - 1);\n isSuccess = Boolean.valueOf(status);\n }\n }\n if(isSuccess) {\n break;\n }\n System.out.println(\"[ERROR] Transaction failed! Deduct token failed!\");\n process.waitFor();\n } catch (IOException|InterruptedException e) {\n System.out.println(e.getMessage());\n }\n tryout--;\n }\n }).start();\n }\n leftToken = Arith.sub(leftToken,10);\n // record item\n writeRecord(\"-10: 登陆\",tokenHistoryFP);\n } else {\n String[] tmpStr = leftCoinStr.split(\":\");\n leftToken = Double.valueOf(tmpStr[1]);\n leftCoin = 0;\n// currency.put(\"leftToken\",Double.valueOf(tmpStr[1]));\n// currency.put(\"leftCoin\",0.0);\n writeRecord(\"+\"+leftToken+\": 注册\",tokenHistoryFP);\n }\n sleep(200);\n String historyStr = readRecord(historyReadlineNum,tokenHistoryFP);\n tokenHistoryLabel.setText(historyStr);\n } else {\n wifiIconLabel.setIcon(unLaunchIcon);\n connectStatusL.setIcon(unconnectedIcon);\n connectStatusL.setText(\"未连接 \");\n }\n setPageStatus();\n // set login page advertisement\n new Thread(() -> {\n try {\n int adsIndex = 0;\n int adsLen = loginAdsIcons.length;\n while (loginStatus == 1) {\n launchAdsLabel.setIcon(loginAdsIcons[adsIndex]);\n sleep(2500);\n adsIndex = ++adsIndex % adsLen;\n }\n } catch (InterruptedException e) {\n System.out.println(e.getMessage());\n }\n }).start();\n } catch (InterruptedException|IOException ex) {\n System.out.println(ex.getMessage());\n }\n }).start();\n }", "public abstract void updateLabels();", "private void initData() {\n mListWifi = new ArrayList<Map<String, Object>>();\n mWifiAdmin = new WifiAdmin(mContext);\n\t\tmWifiAdmin.openWifi();\n\t\t\n mboolWifiTest = false;\n \n // Used to save the current state of mobile test item\n SharedPreferences sp = mContext.getSharedPreferences(\n SHAREPREFERCES_NAME, Context.MODE_PRIVATE);\n Editor editor = sp.edit();\n editor.putBoolean(\"wifistate\", mWifiAdmin.mWifiManager.isWifiEnabled());\n editor.commit();\n }", "public void connectWiFi() {\n\n // Agrego la red para poder conectarme\n conf.networkId = wifi.addNetwork(conf);\n if (conf.networkId == -1) {\n Log.i(\"#FSEM# SERVICE\", \"Fallo addNetwork\");\n return;\n }\n\n // Receiver para cambio de estado de WIFI\n IntentFilter intentFilter = new IntentFilter(WifiManager.NETWORK_STATE_CHANGED_ACTION);\n intentFilter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION);\n\n context.registerReceiver(this, intentFilter);\n\n // Mientras haya otra conexión con algun semaforo, espero a que se termine.\n while (SemComunication.staticState == StaticState.CONECTADO) {\n Log.i(\"#FSEM# SERVICE\", \"Me quiero conectar a \" + this.conf.SSID\n + \", pero sigue conectado a otro semaforo: \" + SemComunication.currentSSID);\n // Obligo a desconectarse.\n wifi.disconnect();\n SystemClock.sleep(1000);\n }\n\n // Me conecto con la red que quiero, y cuando lo logre\n // se ejecuta el receiver anterior\n wifi.disconnect();\n Log.i(\"#FSEM# SERVICE\", \"Me intento conectar con \" + (this.SSID));\n wifi.enableNetwork(this.conf.networkId, true);\n wifi.reconnect();\n SemComunication.staticState = StaticState.CONECTADO;\n SemComunication.networkId = this.conf.networkId;\n SemComunication.currentSSID = this.SSID;\n }", "private void initialize() {\r\n\t\tframe = new JFrame(\"Connecting...\");\r\n\t\tframe.getContentPane().setBackground(SystemColor.control);\r\n\t\tframe.setBounds(100, 100, 450, 147);\r\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\t//JPanel panel = new JPanel();\r\n\t\tJPanel panel = new JPanel(new FlowLayout(FlowLayout.LEFT));\r\n\t\tpanel.setBackground(Color.WHITE);\r\n\t\tpanel.setBorder(new LineBorder(new Color(192, 192, 192), 1, true));\r\n\t\tpanel.setBounds(10, 11, 412, 87);\r\n\t\tframe.getContentPane().add(panel);\r\n\t\t\r\n\t\tJLabel label1 = new JLabel();\r\n\t\tlabel1.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\r\n\t\tlabel1.setForeground(new Color(0, 102, 255));\r\n\t\tlabel1.setText(\"Connecting... \");\r\n\t\tlabel1.setBounds(0, 0, 200, 50);\r\n\t\tpanel.add(label1);\r\n\t\t\r\n\t\t\r\n\t\tfor (int i = 0; i < 20; i++) {\r\n\t\t panel.add(new JLabel(\" \t\t\"));\r\n\t\t}\r\n\t\t\r\n\t\tJLabel label2 = new JLabel();\r\n\t\tlabel2.setFont(new Font(\"Tahoma\", Font.PLAIN, 17));\r\n\t\tlabel2.setForeground(new Color(0, 0, 0));\r\n\t\tlabel2.setText(\"Please wait while we try to connect.\");\r\n\t\tlabel2.setBounds(0, 0, 200, 50);\r\n\t\tpanel.add(label2);\r\n\t}", "@Override\n\t\t\t\t\tpublic void onNotifyWifiConnectFailed()\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.v(TAG, \"have connected failed!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}", "@Override\r\n \t public void onClick(View arg0) {\n \t\t mainWifiObj.startScan();\r\n \t\t// bt1.setVisibility(View.VISIBLE);\r\n \t\t\r\n \t\t working();\r\n \t\t for(int i=1;i<count;i++)\r\n \t\t\t device[0]+=device[i];\r\n \t\t pcount.setText(\"Present Count\"+count+device[0]);\r\n \t\t\r\n \t\t//\ttv.setText(\"hhhhhhhhhhhh\");\r\n \t\t\t\r\n \t\t \r\n \t }", "@Override\n\tpublic void onConnectionInfoAvailable(WifiP2pInfo info) {\n\t}", "private void updateConnectedFlags() {\n ConnectivityManager connMgr =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeInfo = connMgr.getActiveNetworkInfo();\n if (activeInfo != null && activeInfo.isConnected()) {\n wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI;\n mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE;\n } else {\n wifiConnected = false;\n mobileConnected = false;\n }\n wifiConnected = true;\n mobileConnected = true;\n System.out.println(\"Change 3\");\n }", "private void _getUpdatedSettings() {\n TextView sw1Label = findViewById(R.id.labelSwitch1);\n TextView sw2Label = findViewById(R.id.labelSwitch2);\n TextView sw3Label = findViewById(R.id.labelSwitch3);\n TextView sw4Label = findViewById(R.id.labelSwitch4);\n TextView sw5Label = findViewById(R.id.labelSwitch5);\n TextView sw6Label = findViewById(R.id.labelSwitch6);\n TextView sw7Label = findViewById(R.id.labelSwitch7);\n TextView sw8Label = findViewById(R.id.labelSwitch8);\n\n sw1Label.setText(homeAutomation.settings.switch1Alias);\n sw2Label.setText(homeAutomation.settings.switch2Alias);\n sw3Label.setText(homeAutomation.settings.switch3Alias);\n sw4Label.setText(homeAutomation.settings.switch4Alias);\n sw5Label.setText(homeAutomation.settings.switch5Alias);\n sw6Label.setText(homeAutomation.settings.switch6Alias);\n sw7Label.setText(homeAutomation.settings.switch7Alias);\n sw8Label.setText(homeAutomation.settings.switch8Alias);\n }", "@SuppressLint(\"MissingPermission\")\n static void fillWifiConfigurationList(Context context/*, boolean enableWifi*/)\n {\n\n List<WifiSSIDData> wifiConfigurationList = new ArrayList<>();\n\n if (wifi == null)\n wifi = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n if (wifi == null)\n return;\n\n //boolean wifiEnabled = false;\n if (wifi.getWifiState() != WifiManager.WIFI_STATE_ENABLED) {\n /*if (enableWifi) {\n try {\n wifiEnabled = true;\n wifi.setWifiEnabled(true);\n PPApplication.sleep(500);\n } catch (Exception e) {\n wifiEnabled = false;\n }\n }\n else*/\n // wifi must be enabled for wifi.getConfiguredNetworks()\n return;\n }\n\n List<WifiConfiguration> _wifiConfigurationList = null;\n if (Permissions.hasPermission(context, Manifest.permission.ACCESS_FINE_LOCATION))\n _wifiConfigurationList = wifi.getConfiguredNetworks();\n\n /*if (wifiEnabled) {\n try {\n wifi.setWifiEnabled(false);\n } catch (Exception ignored) {}\n }*/\n\n if (_wifiConfigurationList != null)\n {\n //wifiConfigurationList.clear();\n for (WifiConfiguration device : _wifiConfigurationList)\n {\n //noinspection deprecation\n if (device.SSID != null) {\n boolean found = false;\n for (WifiSSIDData _device : wifiConfigurationList) {\n //if (_device.bssid.equals(device.BSSID))\n //noinspection deprecation\n if ((_device.ssid != null) && (_device.ssid.equals(device.SSID))) {\n found = true;\n break;\n }\n }\n if (!found) {\n //noinspection deprecation\n wifiConfigurationList.add(new WifiSSIDData(device.SSID, /*device.BSSID,*/ false, true, false));\n }\n }\n }\n }\n saveWifiConfigurationList(context, wifiConfigurationList);\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setForeground(Color.WHITE);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\ttextField = new JTextField(NUM_OF_CHARS);\n\t\ttextField.setBounds(127, 53, 215, 28);\n\t\ttextField.getDocument().addDocumentListener(this);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\tJLabel lblSsid = new JLabel(\"SSID:\");\n\t\tlblSsid.setFont(new Font(\"BankGothic Md BT\", Font.BOLD | Font.ITALIC, 12));\n\t\tlblSsid.setBounds(34, 53, 56, 28);\n\t\tframe.getContentPane().add(lblSsid);\n\t\t\n\t\tJLabel lblPassword = new JLabel(\"Password:\");\n\t\tlblPassword.setFont(new Font(\"BankGothic Md BT\", Font.BOLD | Font.ITALIC, 12));\n\t\tlblPassword.setBounds(34, 108, 83, 14);\n\t\tframe.getContentPane().add(lblPassword);\n\t\t\n\t\tbtnHelp = new JButton(btn2name);\n\t\tbtnHelp.setFont(new Font(\"Gill Sans MT\", Font.BOLD, 11));\n\t\tbtnHelp.setBounds(126, 227, 89, 23);\n\t\tframe.getContentPane().add(btnHelp);\n\t\t\n\t\tbtnSet = new JButton(btn1name);\n\t\tbtnSet.setFont(new Font(\"Gill Sans MT\", Font.BOLD, 11));\n\t\tbtnSet.setBounds(335, 227, 89, 23);\n\t\tframe.getContentPane().add(btnSet);\n\t\t\n\t\tpasswordField = new JPasswordField(NUM_OF_CHARS);\n\t\tpasswordField.setBounds(127, 105, 215, 28);\n\t\tpasswordField.getDocument().addDocumentListener(this);\n\t\tframe.getContentPane().add(passwordField);\n\t\t\n\t\tJLabel lblHotwispot = DefaultComponentFactory.getInstance().createTitle(\"HotWiSpot\");\n\t\tlblHotwispot.setForeground(Color.DARK_GRAY);\n\t\tlblHotwispot.setFont(new Font(\"Harlow Solid Italic\", Font.BOLD, 16));\n\t\tlblHotwispot.setBounds(166, 11, 117, 31);\n\t\tframe.getContentPane().add(lblHotwispot);\n\t\t\n\t\ttextPane = new JTextPane();\n\t\ttextPane.setEditable(false);\n\t\ttextPane.setForeground(new Color(34, 139, 34));\n\t\ttextPane.setBackground(new Color(173, 216, 230));\n\t\ttextPane.setBounds(127, 161, 215, 55);\n\t\tframe.getContentPane().add(textPane);\n\t\t\n\t\tJLabel lblMessage = new JLabel(\"Message:\");\n\t\tlblMessage.setFont(new Font(\"BankGothic Lt BT\", Font.BOLD | Font.ITALIC, 11));\n\t\tlblMessage.setBounds(116, 144, 76, 14);\n\t\tframe.getContentPane().add(lblMessage);\n\t\t\n\t\tJScrollBar scrollBar = new JScrollBar();\n\t\tscrollBar.setBounds(325, 161, 17, 55);\n\t\tframe.getContentPane().add(scrollBar);\n\t\t\n\t\tJScrollBar scrollBar_1 = new JScrollBar();\n\t\tscrollBar_1.setOrientation(JScrollBar.HORIZONTAL);\n\t\tscrollBar_1.setBounds(127, 202, 215, 14);\n\t\tframe.getContentPane().add(scrollBar_1);\n\t}", "public void updateLabels() {\n\t\t//if credit less than 9 add 0 in front of the credit value \n\t\tif (obj.getCredit() < 10)\n\t\t\tcreditLabel.setText(\"0\" + String.valueOf(obj.getCredit()));\n\t\telse\n\t\t\tcreditLabel.setText(String.valueOf(obj.getCredit()));\n\t\t//if bet less than 9 add 0 in front of the credit value\n\t\tif (obj.getBet() < 10)\n\t\t\tbetLebal.setText(\"0\" + String.valueOf(obj.getBet()));\n\t\telse\n\t\t\tbetLebal.setText(String.valueOf(obj.getBet()));\n\t}", "public void updateLabelsAndCharts() {\n\t\terror.setText(\"\");\r\n\t\tPerson p = this.listviewPersons.getSelectionModel().getSelectedItem();\r\n\t\tif (p == null) {\r\n\t\t\tdots.setText(\"\");\r\n\t\t} else {\r\n\t\t\tdots.setText(dotsReadable(p));\r\n\t\t\tif (personToData.containsKey(p)) {\r\n\t\t\t\tData<String, Integer> d = personToData.get(p);\r\n\t\t\t\td.setYValue(p.getDots());\r\n\t\t\t}\r\n\t\t\tif (personToPiechartData.containsKey(p)) {\r\n\t\t\t\tPieChart.Data pd = personToPiechartData.get(p);\r\n\t\t\t\tpd.setPieValue(Math.max(p.getDots(), 0));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void setViews() {\n\n TextView currentApixu = findViewById(R.id.currentApixu);\n TextView currentOwm = findViewById(R.id.currentOwm);\n TextView currentWu = findViewById(R.id.currentWu);\n\n currentApixu.setText(feedValues[0]);\n currentOwm.setText(feedValues[1]);\n currentWu.setText(feedValues[2]);\n }", "public PlugwiseMQTTDeviceInfo()\n\t{\n\t\t// initialize internal variables\n\t\tthis.macAddress = \"\";\n\t\tthis.type = \"circle\";\n\t}", "private void initialize() {\r\n\t\tjLabel_userID = new JLabel();\r\n\t\tjLabel_userID.setText(\"ID (user)\");\r\n\t\tjLabel_userID.setSize(new Dimension(160, 40));\r\n\t\tjLabel_userID.setFont(new Font(\"Eras Light ITC\", Font.BOLD, 18));\r\n\t\tjLabel_userID.setLocation(new Point(30, 230));\r\n\t\tjLabel_lastname = new JLabel();\r\n\t\tjLabel_lastname.setText(\"Last Name\");\r\n\t\tjLabel_lastname.setSize(new Dimension(160, 40));\r\n\t\tjLabel_lastname.setFont(new Font(\"Eras Light ITC\", Font.BOLD, 18));\r\n\t\tjLabel_lastname.setLocation(new Point(30, 330));\r\n\t\tjLabel_firstname = new JLabel();\r\n\t\tjLabel_firstname.setText(\"First Name\");\r\n\t\tjLabel_firstname.setSize(new Dimension(160, 40));\r\n\t\tjLabel_firstname.setFont(new Font(\"Eras Light ITC\", Font.BOLD, 18));\r\n\t\tjLabel_firstname.setLocation(new Point(30, 280));\r\n\t\tjLabel_username = new JLabel();\r\n\t\tjLabel_username.setText(\"User Name\");\r\n\t\tjLabel_username.setSize(new Dimension(160, 40));\r\n\t\tjLabel_username.setFont(new Font(\"Eras Light ITC\", Font.BOLD, 18));\r\n\t\tjLabel_username.setLocation(new Point(30, 180));\r\n\t\tjLabel_SUMainLabel = new JLabel();\r\n\t\tjLabel_SUMainLabel.setBounds(new Rectangle(1, 30, 698, 74));\r\n\t\tjLabel_SUMainLabel.setText(\"Search User\");\r\n\t\tjLabel_SUMainLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tjLabel_SUMainLabel.setFont(new Font(\"Freestyle Script\", Font.BOLD, 48));\r\n\t\tjLabel_SUMainLabel.setLocation(new Point(0, 15));\r\n\t\tjLabel_SUMainLabel.setSize(new Dimension(700, 75));\r\n\t\tjLabel_SUMainLabel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));\r\n\t\tthis.setSize(700, 550);\r\n\t\tthis.setLayout(null);\r\n\t\tthis.add(jLabel_SUMainLabel, null);\r\n\t\tthis.add(jLabel_username, null);\r\n\t\tthis.add(jLabel_firstname, null);\r\n\t\tthis.add(jLabel_lastname, null);\r\n\t\tthis.add(jLabel_userID, null);\r\n\t\tthis.add(getJTextField_UserName(), null);\r\n\t\tthis.add(getJTextField_UserID(), null);\r\n\t\tthis.add(getJTextField_FirstName(), null);\r\n\t\tthis.add(getJTextField_LastName(), null);\r\n\t\tthis.add(getJButton_back(), null);\r\n\t\tthis.add(getJButton_SearchUser(), null);\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"START!! Server\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n jLabel1.setText(\"Enter this IP in your Android Device : \");\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"CONNECTION STATUS\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 12))); // NOI18N\n\n jPanel1.setBackground(new java.awt.Color(255, 0, 0));\n\n jLabel3.setFont(new java.awt.Font(\"Aharoni\", 1, 18)); // NOI18N\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel3.setText(\"Waiting for the connection...\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(73, 73, 73))\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE)\n .addContainerGap())\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 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 349, Short.MAX_VALUE)\n .addGap(41, 41, 41))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel2, 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(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(15, Short.MAX_VALUE))\n );\n\n getAccessibleContext().setAccessibleName(\"START Server\");\n\n pack();\n setLocationRelativeTo(null);\n }", "private void addWiFiUsage() {\n BatterySipper bs = new BatterySipper(DrainType.WIFI, null, 0);\n mWifiPowerCalculator.calculateRemaining(bs, mStats, mRawRealtimeUs, mRawUptimeUs,\n mStatsType);\n aggregateSippers(bs, mWifiSippers, \"WIFI\");\n if (bs.totalPowerMah > 0) {\n mUsageList.add(bs);\n }\n }", "private void refreshList() {\n\t\tString cityName = cityWeatherPreferences.getString(\"cityweathername\",\n\t\t\t\tnull);\n\t\tif (cityName != null) {\t\t\n\t\t\tcityTv.setText(cityName.substring(cityName.indexOf(\"-\") + 1));\n\t\t}\n\t\tString tempStr=weatherPreferences.getString(\"temperatureStr\", null);\n\t\tString airIfStr=weatherPreferences.getString(\"airInfoStr\", null);\n\t\tString airPmStr=weatherPreferences.getString(\"airPMStr\", null);\n\t\tString humiStr=weatherPreferences.getString(\"humidityStr\", null);\n\t\tString visiStr=weatherPreferences.getString(\"visibilyStr\", null);\n\t\tString winStr=weatherPreferences.getString(\"windStr\", null);\n\t\tString chyMakStr=weatherPreferences.getString(\"chuangyiMakStr\", null);\n\t\tString chyiAdviceStr=weatherPreferences.getString(\"chuanyiAdviceStr\", null);\n\t\tString ydMarkStr=weatherPreferences.getString(\"yundongMarkStr\", null);\n\t\tString ydAdaviceStr=weatherPreferences.getString(\"yundongAdaviceStr\", null);\n\t\tString gmMarkStr=weatherPreferences.getString(\"ganmaoMarkStr\", null);\n\t\tString gmAdaviceStr=weatherPreferences.getString(\"ganmaoAdaviceStr\", null);\n\t\tString wrMarkStr=weatherPreferences.getString(\"wuranMarkStr\", null);\n\t\tString wrAdaviceStr=weatherPreferences.getString(\"wuranAdaviceStr\", null);\n\t\tString zwxMarkStr=weatherPreferences.getString(\"ziwaixianMarkStr\", null);\n\t\tString zwxAdaviceStr=weatherPreferences.getString(\"ziyaixianAdaviceStr\", null);\n\t\tString ktMarkStr=weatherPreferences.getString(\"kongtiaoMarkStr\", null);\n\t\tString ktAdaviceStr=weatherPreferences.getString(\"kongtiaoAdaviceStr\", null);\n\t\tString xchMarkStr=weatherPreferences.getString(\"xicheMarkStr\", null);\n\t\tString xchAdaviceStr=weatherPreferences.getString(\"xicheAdaviceStr\", null);\n\t\tString wf=weatherPreferences.getString(\"weatherFutrues\", null);\n\t\tif(tempStr!=null&&airIfStr!=null&&airPmStr!=null&&humiStr!=null&&visiStr!=null&&winStr!=null&&wf!=null){\n\t\t\tsetDataToFragment(tempStr,airIfStr,airPmStr,humiStr,visiStr,winStr,\n\t\t\t\t\tchyMakStr,chyiAdviceStr,ydMarkStr,ydAdaviceStr,\n\t\t\t\t\tgmMarkStr,gmAdaviceStr,wrMarkStr,wrAdaviceStr,\n\t\t\t\t\tzwxMarkStr,zwxAdaviceStr,ktMarkStr,ktAdaviceStr,\n\t\t\t\t\txchMarkStr,xchAdaviceStr,PreferencesSaveList.String2SceneList(wf));\n\t\t}\n\t}", "private void createLabels(){\n int pos = 10;\n for(Client client : clients){\n JLabel clientLabel = new JLabel(client.toString());\n selectColor(clientLabel, client);\n clientLabel.setBounds(10, pos, 200,20);\n pos += 25;\n labels.put(client.getID(), clientLabel);\n panel.add(clientLabel);\n }\n }", "public void scanWifiList() {\n wifiManager.startScan();\n scanResultList=wifiManager.getScanResults();\n Log.e(\"length\",\"\"+scanResultList.size());\n //wifiInfoList= (List<WifiInfo>)wifiManager .getConnectionInfo();//\n adapter = new RecyclerAdapterItems(getApplicationContext(),scanResultList,this);\n recyclerView.setAdapter(adapter);\n\n /* for (int i = 0; i < scanResultList.size(); i++){\n\n if (scanResultList.get(i).SSID.equalsIgnoreCase(\"D-Link\")){\n //Toast.makeText(this, \"found!!\", Toast.LENGTH_SHORT).show();\n Log.e(\"scanWifiList\", \"Found!!\");\n String capp = scanResultList.get(i).capabilities;\n Log.e(\"Capabilities\", \"\"+capp);\n }\n }*/\n }", "private void makeLabels() {\n infoPanel = new JPanel();\n\n infoText = new JTextArea(30,25);\n\n infoPanel.add(infoText);\n }", "public void populateGlobalHotspots() {\n\t\tnew Thread(new Runnable(){\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tairlineData = DataLookup.airlineStats();\n\t\t\t\tairportData = DataLookup.airportStats();\n\t\t\t\tmHandler.post(new Runnable(){\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tsetHotspotListData();\n\t\t\t\t\t}});\n\t\t\t}}).start();\n\t}", "private void loadLabelData(){\n try {\n QueryManager Query = new QueryManager();\n String query = \"SELECT * FROM users where username = '\"\n + LoginController.username + \"';\"; // get data from user table using username used for logged in\n ResultSet rs = Query.getDataQuery(query);\n\n if (rs.next()) {\n txtFirstname.setText(rs.getString(\"firstname\"));\n txtLastname.setText(rs.getString(\"lastname\"));\n txtEmailAddress.setText(rs.getString(\"email\"));\n txtDefUsername.setText(rs.getString(\"username\"));\n String date = (rs.getString(\"dob\"));\n if (date.equalsIgnoreCase(\"none\")) {\n dobPicker.setPromptText(\"Date of Birth\");\n } else {\n dobPicker.setValue(LocalDate.parse(date));\n }\n txtPNum.setText(rs.getString(\"contact\"));\n String gender = rs.getString(\"gender\");\n if (gender.equalsIgnoreCase(\"female\")) {\n radFemale.setSelected(true);\n radMale.setSelected(false);\n } else {\n radFemale.setSelected(false);\n radMale.setSelected(true);\n }\n System.out.println(\"We in\");\n }\n } catch (SQLException ex) {\n Logger.getLogger(LoginDetailsController.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "private void init() {\n\t\tsendPacket(new Packet01Login(\"[you have connected to \"+UPnPGateway.getMappedAddress()+\"]\", null));\n\t}", "public void setLabel()\r\n {\r\n int i = Converter(Input);\r\n \r\n if(j<i && label.getText().equals(\"Player 1\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n \r\n }else if(j<i && label.getText().equals(\"Player 2\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n }else if(j<i && label.getText().equals(\"Player 3\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n }else if(j==i && label.getText().equals(\"Player \"+j))\r\n {\r\n j=1;\r\n label.setText(\"Player \"+j);\r\n }\r\n \r\n \r\n }", "public void refreshMapInformation() {\n\t\t((JLabel)components.get(\"timeElapsedLabel\")).setText(Integer.toString(ABmap.instance().getTimeElapsed()));\n\t\t((JLabel)components.get(\"oilInMapLabel\")).setText(Integer.toString(ABmap.instance().getOilInMap()));\n\t\t((JLabel)components.get(\"oilInStorageLabel\")).setText(Integer.toString(ABmap.instance().getOilInStorage()));\n\t\t((JProgressBar)components.get(\"oilCleanedProgressBar\")).setValue(100-((ABmap.instance().getOilInMap()*100)/ABmap.instance().initialOilCount));\n\t\t((JLabel)components.get(\"fuelUsedLabel\")).setText(Integer.toString(ABmap.instance().getFuelUsed()));\n\t\t((JLabel)components.get(\"simCompletedLabel\")).setText(Boolean.toString(ABmap.instance().isDone()));\n\t}", "private void initializeControls() {\n\t\tlabel = new Label(status.toString());\n\t}", "private void updateLabels(ArrayList<String[]> configu, int R) {\r\n\t\t\r\n\t\tfor (int i = 1; i < 5; i++) \r\n\t\t\tlabelText.add(configu.get(R)[i]); //update LabelText in new label\r\n\t\t\r\n\t\t//update in frame\r\n\t\tleftText.setText(labelText.get(0));\r\n\t\tupText.setText(labelText.get(1));\r\n\t\trightText.setText(labelText.get(2));\r\n\t\tdownText.setText(labelText.get(3));\r\n\t}", "void populate() {\n daftarNotifikasi.add(new DaftarNotifikasi(\"Ludfi Ika P\", \"Hari ini mau gathering dimana?\", 2, R.drawable.profil_2));\n daftarNotifikasi.add(new DaftarNotifikasi(\"Erinda\", \"Ada pagelaran di kota\", 6, R.drawable.profil_3));\n daftarNotifikasi.add(new DaftarNotifikasi(\"Aleq\", \"Saya punya solusi untuk itu\", 10, R.drawable.profil_1));\n }", "public void load() {\n notification = \"Hi \" + reader.getusername() + \"!\"\n + \"\\n\\n Latest nofitications:\\n\" + reader.notificationsToString();\n label.setText(notification);\n }", "private void updateLabel() {\n\t\tString translation = lp.getString(key);\n\t\tsetText(translation);\n\n\t}", "private void showInfo(String message){ infoLabel.setText(message);}", "java.lang.String getBssid();", "private void fillInTable() {\r\n // Firstly clean up panel.\r\n myOuterPanel.clear();\r\n LabelModel theLabelModel;\r\n for (LabelUUID theLabelUUID : myCaseItem.getLabels()) {\r\n theLabelModel = myLabelDataSource.getLabel(theLabelUUID.getValue());\r\n // The only reason it could be null is that the label has been\r\n // renamed and the case has not yet been updated.\r\n if (theLabelModel != null && theLabelModel.hasToBeDisplayed()) {\r\n // Check if the label has to be displayed.\r\n // Add the label in the panel.\r\n try {\r\n myOuterPanel.add(myLabelTable.get(theLabelUUID.getValue()));\r\n } catch (Exception theE) {\r\n GWT.log(\"label not found: \" + theLabelUUID.getValue() + \",\" + theLabelUUID.getOwner().getValue(), theE);\r\n }\r\n }\r\n }\r\n }", "private void updateRunninigWiFiSettings() {\n\t\tlogger.info(\"Going to fetch WIFI settings..\");\n\t\tfor(WiFiSettings updWiFiSetting: updatedConfig.getWifiSettings()) {\n\t\t\t\n\t\t\t//runningWifiSetting = DeviceConfigurationAPI.getListItem(wifiSettingsList, Integer.valueOf(updWiFiSetting.getIndex()));\n\t\t\tpopulateWiFI( updWiFiSetting);\n\t\t\tNetworkSettings nws = updWiFiSetting.getNetworkSettings();\n\t\t\tif(nws != null) {\n\t\t\t\t\n\t\t\t\tpopulateNetwork(nws);\n\t\t\t}\n\t\t\t\n\t\t\t//int index = wifiSettingsList.indexOf(runningWifiSetting);\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void initLabelRecycler() {\n\n id_flowlayout.setAdapter(new TagAdapter<ServerLabelEntity>(serverLabelEntityArrayList) {\n @Override\n public View getView(FlowLayout parent, int position, ServerLabelEntity serverLabelEntity) {\n TextView server_label_name_tv = (TextView) LayoutInflater.from(getContext()).inflate(R.layout.server_details_label_item,\n id_flowlayout, false);\n server_label_name_tv.setText(serverLabelEntity.getName());\n return server_label_name_tv;\n }\n });\n\n }", "private void updateUIValues(Location location) {\n tv_lat.setText(String.valueOf(location.getLatitude()));\n tv_lon.setText(String.valueOf(location.getLongitude()));\n tv_accuracy.setText(String.valueOf(location.getAccuracy()));\n\n if(location.hasAltitude()){\n tv_altitude.setText(String.valueOf(location.getAltitude()));\n }\n else{\n tv_altitude.setText(\"Not avaible\");\n }\n\n if(location.hasSpeed()){\n tv_speed.setText(String.valueOf(location.getSpeed()));\n }\n else{\n tv_speed.setText(\"Not avaible\");\n }\n\n Geocoder geocoder = new Geocoder(MainActivity.this);\n try{\n List<Address> addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n tv_address.setText(addresses.get(0).getAddressLine(0));\n }catch(Exception e){\n tv_address.setText(\"Unable to get address\");\n }\n }", "private void ConnectWifi(String ssid, String password) {\n\n WifiManager wifiManager = (WifiManager)getApplicationContext().getSystemService(Context.WIFI_SERVICE);\n\n WifiConfiguration wifiConfiguration = new WifiConfiguration();\n wifiConfiguration.SSID = \"\\\"\" + ssid + \"\\\"\";\n wifiConfiguration.preSharedKey = \"\\\"\" + password + \"\\\"\";\n\n wifiManager.addNetwork(wifiConfiguration);\n\n List<WifiConfiguration> list = wifiManager.getConfiguredNetworks();\n for( WifiConfiguration i : list ) {\n if(i.SSID != null && i.SSID.equals(\"\\\"\" + ssid + \"\\\"\")) {\n\n wifiManager.disconnect();\n wifiManager.enableNetwork(i.networkId, true);\n netId = i.networkId;\n wifiManager.reconnect();\n\n break;\n }\n }\n\n\n }", "private void setLabelText() {\n\t\tthis.addSpelers();\n\n\t\tfor (int i = 0; i < 3; i++) {\n\n\t\t\tString spelerid = Integer.toString(spelerids.get(i));\n\t\t\tString[] params1 = { spelerid };\n\t\t\tString query = \"SELECT COUNT(idontwikkelingskaart) FROM spelerontwikkelingskaart WHERE idspeler = ?\";\n\t\t\tResultSet result = dc.select(query, params1);\n\t\t\ttry {\n\t\t\t\tif (result.next()) {\n\t\t\t\t\tamountOfCards = result.getInt(1);\n\t\t\t\t\tcards.add(amountOfCards);\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t// Second part, getting playername and filling in their amount of cards\n\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\ttry {\n\n\t\t\t\tString query = \"SELECT username FROM speler WHERE idspel = ? AND idspeler = ?\";\n\t\t\t\tString idspelString = Integer.toString(idspel);\n\t\t\t\tString spelerid = Integer.toString(spelerids.get(i));\n\t\t\t\tString[] params2 = { idspelString, spelerid };\n\t\t\t\tResultSet result2;\n\t\t\t\tresult2 = dc.select(query, params2);\n\t\t\t\twhile (result2.next()) {\n\t\t\t\t\tif (amountOfCards == 1) {\n\t\t\t\t\t\ttext = result2.getString(1) + \" has \" + Integer.toString(cards.get(i)) + \" card.\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttext = result2.getString(1) + \" has \" + Integer.toString(cards.get(i)) + \" cards.\";\n\t\t\t\t\t}\n\t\t\t\t\tlabels.get(i).setText(text);\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void run() {\n this.configureWiFi();\n\n // Conecto con la red WiFi\n this.connectWiFi();\n\n }", "private void allDataLoaded() {\n mButtonHubId.setText(R.string.select_hub);\n }", "public void limpiarLabelsVacios() {\r\n label_nombre.setText(\"\");\r\n label_horas_teoria.setText(\"\");\r\n label_horas_practica.setText(\"\");\r\n label_creditos.setText(\"\");\r\n }", "public void refreshPacketStatistics() {\n\n\t\tint total = numIPSEC + numPPTP + numHTTPS + numSSH + numOthers;\n\t\tnumTotal = total;\n\t\tif (total == 0)\n\t\t\ttotal = 1;\n\t\tnumIPSECLabel.setText(\n\t\t\t\"IPSec Packets: \"\n\t\t\t\t+ numIPSEC\n\t\t\t\t+ \" ( \"\n\t\t\t\t+ (numIPSEC * 100 / total)\n\t\t\t\t+ \" % )\");\n\t\tnumPPTPLabel.setText(\n\t\t\t\"PPTP Packets: \"\n\t\t\t\t+ numPPTP\n\t\t\t\t+ \" ( \"\n\t\t\t\t+ (numPPTP * 100 / total)\n\t\t\t\t+ \" % )\");\n\t\tnumHTTPSLabel.setText(\n\t\t\t\"HTTPS Packets: \"\n\t\t\t\t+ numHTTPS\n\t\t\t\t+ \" ( \"\n\t\t\t\t+ (numHTTPS * 100 / total)\n\t\t\t\t+ \" % )\");\n\t\tnumSSHLabel.setText(\n\t\t\t\"SSH Packets: \"\n\t\t\t\t+ numSSH\n\t\t\t\t+ \" ( \"\n\t\t\t\t+ (numSSH * 100 / total)\n\t\t\t\t+ \" % )\");\n\t\tnumOthersLabel.setText(\n\t\t\t\"Other Packets: \"\n\t\t\t\t+ numOthers\n\t\t\t\t+ \" ( \"\n\t\t\t\t+ (numOthers * 100 / total)\n\t\t\t\t+ \" % )\");\n\t\tnumTotalLabel.setText(\n\t\t\t\"Total Packets: \"\n\t\t\t\t+ numTotal\n\t\t\t\t+ \" ( \"\n\t\t\t\t+ (numTotal * 100 / total)\n\t\t\t\t+ \" % )\");\n\t}", "public interfaceQH() {\n initComponents();\n \n // -- [ Inicializando variáveis ] --\n allSenhas = new StringBuilder();\n contador = 0;\n //todasSenhas = new LinkedList();\n todasSenhas = new Vector();\n txtStatus.setText(\"Status: Offline\");\n clienteID = 0;\n \n \n try {\n txtIP.setText(\"IP: \"+InetAddress.getLocalHost().getHostAddress());\n } catch (UnknownHostException ex) {\n Logger.getLogger(interfaceQH.class.getName()).log(Level.SEVERE, null, ex);\n } \n }", "public void getInfo() {\n System.out.println(\"INFO Node : \"+address+ \" connected to nodes \");\n for(Node node : getConnectedNodes()){\n System.out.print(\"Node :\"+node.getAddress()+\" with edge : \");\n getEdge(this, node).printEdge();\n }\n \n }", "private void connectToNetwork(final WifiNetworkInfo info){\n final String SSID = info.SSID;\n final WifiConfiguration conf = new WifiConfiguration();\n conf.SSID = SSID; //needs to be surrounded by quotations but should already be coming from a scan object\n if(info.secured){\n //prompt for password\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setPositiveButton(\"Connect\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if(info.secured){\n EditText editText = (EditText)((AlertDialog)dialog).findViewById(R.id.wifi_password_edit_text);\n\n String password = editText.getText().toString();\n if(info.WEP) {\n WifiUtils.connectToWEPSecuredNetwork(SSID, password, manager);\n }\n else if(info.WPA || info.WPA2){\n WifiUtils.connectToWPASecuredNetwork(SSID, password, manager);\n }\n// might need a different case here but I think it probably is the same as WPA\n// else if(info.WPA2){\n//\n// }\n }\n else {\n WifiUtils.connectToOpenNetwork(SSID, manager);\n }\n }\n });\n\n// EditText passField = (EditText) dialog.findViewById(R.id.wifi_password_edit_text);\n// passField.getBackground().mutate().setColorFilter(getResources().getColor(R.color.Crimson), PorterDuff.Mode.SRC_ATOP);\n\n }\n else {\n conf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE);\n manager.addNetwork(conf);\n List<WifiConfiguration> list = manager.getConfiguredNetworks();\n for( WifiConfiguration i : list ) {\n if(i.SSID != null && i.SSID.equals(SSID)) {\n manager.disconnect();\n manager.enableNetwork(i.networkId, true);\n manager.reconnect();\n break;\n }\n }\n }\n }", "private void _initLabels() \n {\n _lblName = _createNewLabel( \"Mother Teres@ Practice Management System\");\n _lblVersion = _createNewLabel(\"Version 1.0.1 (Beta)\");\n _lblAuthor = _createNewLabel( \"Company: Valkyrie Systems\" );\n _lblRealAuthor = _createNewLabel( \"Author: Hein Badenhorst\" );\n _lblDate = _createNewLabel( \"Build Date:\" );\n _lblRealDate = _createNewLabel( \"31 October 2010\");\n }", "private void createForm() throws IOException {\n\t\t\t\n\t\t\t \n\t\t\tweatherData tmp = new weatherData();\n\t\t\ttry {\n\t\t\t\tapp.grab(app.getVisibleLocation().getCityID(), app.getUnits());\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"error\");\n\t\t\t}\n\t\t\t\n\t\t\ttmp = app.getCurrent();\n\t\t\t\n\t\t\tJLabel lblcity = new JLabel(tmp.getName() + \", \" + tmp.getCount() + \", \" + tmp.getLon() + \", \" + tmp.getLat()); //displays location info\n\t\t\tlblcity.setForeground(Color.WHITE);\n\t\t\tlblcity.setFont(new Font(\"Lucida Console\", Font.PLAIN, 40));\n\t\t\tJLabel lbldescrip = new JLabel(\"Weather Condition: \");\n\t\t\tlbldescrip.setForeground(Color.WHITE);\n\t\t\tlbldescrip.setFont(new Font(\"Courier New\", Font.BOLD, 18));\n\t\t\tJLabel lbldescrip2 = new JLabel(\"\" +tmp.getCondit());\n\t\t\t\n\t\t\tlbldescrip2.setForeground(Color.WHITE);\n\t\t\tlbldescrip2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp = new JLabel(\"Temp: \"); //label for temp\n\t\t\tlbltemp.setForeground(Color.WHITE);\n\t\t\tlbltemp.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp2 = new JLabel(\"\" + tmp.getTemp()); //actual temp\n\t\t\tlbltemp2.setForeground(Color.WHITE);\n\t\t\tlbltemp2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin = new JLabel(\"Min Temp: \"); //label for min\n\t\t\tlblmin.setForeground(Color.WHITE);\n\t\t\tlblmin.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin2 = new JLabel(\"\" + tmp.getMin()); //actual min\n\t\t\tlblmin2.setForeground(Color.WHITE);\n\t\t\tlblmin2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax = new JLabel(\"Max Temp: \" ); //label for max\n\t\t\tlblmax.setForeground(Color.WHITE);\n\t\t\tlblmax.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax2 = new JLabel(\"\" + tmp.getMax()); //actual max\n\t\t\tlblmax2.setForeground(Color.WHITE);\n\t\t\tlblmax2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed = new JLabel(\"Wind Speed: \"); //label for speed\n\t\t\tlblspeed.setForeground(Color.WHITE);\n\t\t\tlblspeed.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed2 = new JLabel(\"\" + tmp.getSpeed()); //actual speed\n\t\t\tlblspeed2.setForeground(Color.WHITE);\n\t\t\tlblspeed2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir = new JLabel(\"Wind Direction: \"); //label for dir \n\t\t\tlbldir.setForeground(Color.WHITE);\n\t\t\tlbldir.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir2 = new JLabel(\"\" + tmp.getDir()); //actual dir\n\t\t\tlbldir2.setForeground(Color.WHITE);\n\t\t\tlbldir2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress = new JLabel(\"Air Pressure: \"); //label for pressure\n\t\t\tlblpress.setForeground(Color.WHITE);\n\t\t\tlblpress.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress2 = new JLabel(\"\" + tmp.getPress()); //actual pressure\n\t\t\tlblpress2.setForeground(Color.WHITE);\n\t\t\tlblpress2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid = new JLabel(\"Humidity: \"); //label for humid\n\t\t\tlblhumid.setForeground(Color.WHITE);\n\t\t\tlblhumid.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid2 = new JLabel(\"\" + tmp.getHumid()); //actual humid\n\t\t\tlblhumid2.setForeground(Color.WHITE);\n\t\t\tlblhumid2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise = new JLabel(\"Sunrise Time: \"); //label for sunrise\n\t\t\tlblrise.setForeground(Color.WHITE);\n\t\t\tlblrise.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise2 = new JLabel(\"\" + tmp.getSunrise()); //actual sunrise\n\t\t\tlblrise2.setForeground(Color.WHITE);\n\t\t\tlblrise2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset = new JLabel(\"Sunset Time: \"); //label for susnet\n\t\t\tlblset.setForeground(Color.WHITE);\n\t\t\tlblset.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset2 = new JLabel(\"\" + tmp.getSunset()); //actual sunset\n\t\t\tlblset2.setForeground(Color.WHITE);\n\t\t\tlblset2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\t\n\t\t\t//used to set picture\n\t\t\tBufferedImage pic = tmp.getIcon();\n\t\t\t//pic = Scalr.resize(pic, 80);\n\t\t\tJLabel lblPic = new JLabel(new ImageIcon(pic)); //holds picture\n\t\t\t\n\t\t\t//Set the colours for the background gradient\n\t\t\tsetBgColours(tmp);\n\t\t\t\n\t\t\t//adds control with layout organization\n\t\t\tGroupLayout layout = new GroupLayout(currentPanel);\n\t\t\tcurrentPanel.setLayout(layout);\n\t\t\tlayout.setAutoCreateGaps(true);\n\t\t\tlayout.setAutoCreateContainerGaps(true);\n\t\t\tlayout.setHorizontalGroup( layout.createSequentialGroup() //sets horizontal groups\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER) //holds all the identifier labels\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t)\n\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) //sets weather Data labels\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset2)\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\tlayout.setVerticalGroup( layout.createSequentialGroup() //sets verticsal groups\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //city is on its own\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //pic is on its own\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //the rest have the identifier, followed by the actual data\n\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t.addComponent(lblset2)\n\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\t\t\n\t\t\t\t\t\t//currentPanel.setLayout(layout); //sets the layout\t\t\n\t\t\tcurrentPanel.validate();\n\t\t\tcurrentPanel.repaint();\n\n\t\t\t try {\n\t\t\t\t\tapp.storePref();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tJFrame error = new JFrame();\n\t\t\t\t\tJOptionPane.showMessageDialog(error, \"An error occured\");\n\t\t\t\t}\n\t\t\t}", "private void initTextsI18n()\n {\n // Remember the different indentations to integrate better in different OS's\n String notMacLargeIndentation = (!OSUtil.IS_MAC ? \" \" : \"\");\n String notMacSmallIndentation = (!OSUtil.IS_MAC ? \" \" : \"\");\n String linuxLargeIndentation = (OSUtil.IS_LINUX ? \" \" : \"\");\n String linuxSmallIndentation = (OSUtil.IS_LINUX ? \" \" : \"\");\n \n this.setLocale(Locale.FRANCE);\n // this.setLocale(Locale.UK);\n I18nUtil.getInstance().setLocale(this.getLocale().getLanguage(), this.getLocale().getCountry());\n this.buttonAutoManual.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.buttonAutoManual.Manual\"));\n this.buttonLaunchPause.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.buttonLaunchPause.Pause\"));\n this.labelAuthMode.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelAuthMode.Auto\"));\n this.labelAutoConnectState.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelAutoConnectState.Launched\"));\n this.labelConnectionState.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelConnectionState.Disconnected\"));\n this.labelNotifications.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelNotifications\"));\n this.labelProfile.setForeground(Color.decode(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelProfile.Color\")));\n this.labelGroupSeparator.setForeground(Color.decode(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelGroupSeparator.Color\")));\n this.labelConnectionState.setForeground(Color.decode(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelConnectionState.Color\")));\n this.menuFile.setText(notMacLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile\") + notMacSmallIndentation);\n this.menuProfiles.setText(notMacSmallIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuProfiles\") + notMacSmallIndentation);\n this.menuHelp.setText(notMacSmallIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp\") + notMacSmallIndentation);\n this.menuFile_Parameters.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile_Parameters\"));\n this.menuFile_Quit.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuFile_Quit\"));\n this.menuHelp_Update.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_Update\"));\n this.menuHelp_Doc.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_Doc\"));\n this.menuHelp_FAQ.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_FAQ\"));\n this.menuHelp_About.setText(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.menuHelp_About\"));\n this.popupMenu_ShowApp.setLabel(linuxSmallIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_ShowApp\"));\n this.popupMenu_PauseStart.setLabel(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_PauseStart.Pause\"));\n this.popupMenu_Profiles.setLabel(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_Profiles\"));\n this.popupMenu_Logs.setLabel(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_Logs\"));\n this.popupMenu_Parameters.setLabel(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_Parameters\"));\n this.popupMenu_Quit.setLabel(linuxLargeIndentation + I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.popupMenu_Quit\"));\n this.setMenuBarMnemonics();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.show_pos_nn);\n\t\tWifiTesterApp app = (WifiTesterApp) this.getApplication();\n\t\twifiTester = app.getWifiTester();\n\t\twm = (WifiManager) getSystemService(Context.WIFI_SERVICE);\n\t\ttv1 = (TextView) findViewById(R.id.tv_nn);\n\t\tlong startTime = System.currentTimeMillis();\n\t\t tv1.setText(getAccurateAddress());\n\t\t long endTime = System.currentTimeMillis();\n\t\t\tToast.makeText(ShowPositionNN.this, \"knn定位时长:\" + (endTime - startTime)\n\t\t\t\t\t+ \"ms\", Toast.LENGTH_SHORT).show();\n//\t\tnew Thread(new ThreadShow()).start();\n\t\thandler = new Handler() {\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tif (msg.what == 1) {\n\t\t\t\t\ttv1.setText(msg.getData().getString(\"location\"));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}", "@ReactMethod\n public void loadWifiList(Callback successCallback, Callback errorCallback) {\n try {\n List<ScanResult> results = wifi.getScanResults();\n JSONArray wifiArray = new JSONArray();\n\n for (ScanResult result : results) {\n JSONObject wifiObject = new JSONObject();\n if (!result.SSID.equals(\"\")) {\n try {\n wifiObject.put(\"SSID\", result.SSID);\n wifiObject.put(\"BSSID\", result.BSSID);\n wifiObject.put(\"capabilities\", result.capabilities);\n wifiObject.put(\"frequency\", result.frequency);\n wifiObject.put(\"level\", result.level);\n wifiObject.put(\"timestamp\", result.timestamp);\n } catch (JSONException e) {\n errorCallback.invoke(e.getMessage());\n }\n wifiArray.put(wifiObject);\n }\n }\n successCallback.invoke(wifiArray.toString());\n } catch (IllegalViewOperationException e) {\n errorCallback.invoke(e.getMessage());\n }\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\t\r\n\t\tframe.setBounds(100, 100, 612, 396);\r\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Account Information\");\r\n\t\tlblNewLabel.setFont(new Font(\"Yu Gothic UI\", Font.BOLD , 17));\r\n\t\tlblNewLabel.setBounds(232, 28, 200, 65);\r\n\t\tframe.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\tlabaccno = new JLabel(\"A/c No.-\");\r\n\t\tlabaccno.setBounds(71, 80, 476, 14);\r\n\t\tframe.getContentPane().add(labaccno);\r\n\t\t\r\n\t\t labaccname = new JLabel(\"Name\");\r\n\t\tlabaccname.setBounds(71, 105, 476, 14);\r\n\t\tframe.getContentPane().add(labaccname);\r\n\t\t\r\n\t\tlabaccbal = new JLabel(\"Balance\");\r\n\t\tlabaccbal.setBounds(71, 130, 476, 14);\r\n\t\tframe.getContentPane().add(labaccbal);\r\n\t\t\r\n\t\t labaccadd = new JLabel(\"address\");\r\n\t\tlabaccadd.setBounds(71, 155, 476, 14);\r\n\t\tframe.getContentPane().add(labaccadd);\r\n\t\t\r\n\t\t labaccmob = new JLabel(\"Mob.\");\r\n\t\tlabaccmob.setBounds(71, 180, 476, 14);\r\n\t\tframe.getContentPane().add(labaccmob);\r\n\t\t\r\n\t\t btnNewButton = new JButton(\"check\");\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tgetContent();\r\n\t\t\t\tlabaccadd.setText(labaccadd.getText()+\" \"+add);\r\n\t\t\t\tlblpin.setText(lblpin.getText()+\" \"+atmpin);\r\n\t\t\t\tlabaccno.setText(labaccno.getText()+\" \"+accno);\r\n\t\t\t\tlabaccmob.setText(labaccmob.getText()+\" \"+mob);\r\n\t\t\t\tlabaccname.setText(labaccname.getText()+\" \"+name);\r\n\t\t\t\tlabaccbal.setText(labaccbal.getText()+\" \"+accbalance);\r\n\t\t\t\tbtnNewButton.setEnabled(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(427, 301, 120, 23);\r\n\t\tframe.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJLabel lblNewLabel_6 = new JLabel(\"Please insert Your Card to check your card details\");\r\n\t\tlblNewLabel_6.setFont(new Font(\"Sylfaen\", Font.BOLD, 23));\r\n\t\tlblNewLabel_6.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_6.setBounds(21, 223, 537, 50);\r\n\t\tframe.getContentPane().add(lblNewLabel_6);\r\n\t\t\r\n\t\tlblpin = new JLabel(\"PIN.\");\r\n\t\tlblpin.setBounds(71, 208, 166, 14);\r\n\t\tframe.getContentPane().add(lblpin);\r\n\t\r\n\t}", "public interface ActWifiListener {\n\n\n void neighbourWIFI(NearbyWifi responseObj);\n void userInfo(UserInfoResponse userInfoResponseObj);\n void deviceStatus(DeviceStatusResponse responseObj);\n void deviceInfo(DeviceInfoResponse responseObj);\n void getSSID(GetSSIDResponse responseObj);\n void connectedDevices(ConnectedDeviceResponse responseObj);\n void allJsonResponse(String responseObj);\n void updateDetails(UpdateDetailsResponse responseObj);\n void deviceReboot(DeviceRebootResponse responseObj);\n\n\n}", "public void updateCustomerInfo(){\n nameLabel.setText(customer.getName());\n productWantedLabel.setText(customer.getWantedItem());\n serviceManager.getTotalPrice().updateNode();\n }", "public void welcome_screen() {\r\n\t\tclear_screen();\r\n\t\tJLabel kahoot_msg = new JLabel(\"Kahoot Java\", SwingConstants.CENTER);\r\n\t\tkahoot_msg.setFont(new Font(\"Calibri\", Font.BOLD, 50));\r\n\t\tkahoot_msg.setBounds(0,156, 1280,60 );\r\n\t\tthis.add(kahoot_msg);\r\n\t\tJLabel please_enter = new JLabel(\"Merci d'entrer les informations de connexion du serveur\", SwingConstants.CENTER);\r\n\t\tplease_enter.setFont(new Font(\"Calibri\", Font.PLAIN, 30));\r\n\t\tplease_enter.setBounds(0,204,1280,50);\r\n\t\tthis.add(please_enter);\r\n\r\n\t\tJLabel enter_ip = new JLabel(\"Entrez l'adresse IP du serveur : \");\r\n\t\tenter_ip.setBounds(320, 499, 320, 13);\r\n\t\tthis.add(enter_ip);\r\n\r\n\t\tJLabel enter_port = new JLabel(\"Entrez le port du serveur : \");\r\n\t\tenter_port.setBounds(320, 530, 320, 13);\r\n\t\tthis.add(enter_port);\r\n\r\n\t\t// JTextArea pour entrer les donn�es\r\n\t\tip = new JTextField(\"127.0.0.1\");\r\n\t\tip.setBounds(640, 497, 320, 16);\r\n\t\tthis.add(ip);\r\n\r\n\t\tport = new JTextField(\"50000\");\r\n\t\tport.setBounds(640, 530, 320, 16);\r\n\t\tthis.add(port);\r\n\r\n\t\tlogin_btn = new JButton(\"Se Connecter\");\r\n\t\tlogin_btn.setBounds(515,640,250,30);\r\n\t\tlogin_btn.addActionListener(this);\r\n\t\tthis.add(login_btn);\r\n\r\n\t}", "private void assignLabelTolist() {\n this.labelList.add(matchLabel1);\n this.labelList.add(matchLabel2);\n this.labelList.add(matchLabel3);\n this.labelList.add(matchLabel4);\n this.labelList.add(matchLabel5);\n }", "private void crearLabels(){\n\t\tJLabel label = new JLabel(\" USER \");\n\t\tuser = new JTextField(15);\n\t\tthis.getContentPane().add(label);\n\t\tthis.getContentPane().add(user);\n\t\tJLabel label1 = new JLabel(\"PASSWORD\");\n\t\tpassword = new JPasswordField(15);\n\t\tthis.getContentPane().add(label1);\n\t\tthis.getContentPane().add(password);\n\t}", "@FXML\n public void init_labels() {\n name_output.setText(\"el que digui domini\");\n\n String quatri;\n int q = 1; // pillar de domini\n if(q == 1) quatri = \"Q1\";\n else if (q == 2) quatri =\"Q2\";\n else quatri = \"Q1 & Q2\";\n quatri_output.setText(quatri);\n\n String nivell;\n int n = 1; // pillar de domini\n if(n == 1) nivell = \"Inicial\";\n else if (n == 2) nivell =\"Troncal\";\n else nivell = \"Especialitat\";\n nivell_output.setText(nivell);\n\n boolean tmp = false; // pillar de domini i pot desapareixer aquest boolean tmp\n if(tmp) teo_output.setText(\"Sí\");\n else teo_output.setText(\"No\");\n\n // suposo que domini em retorna un array de bools\n boolean tmp_array[] = {true, false, true, false, true, false};\n String lab = \"\";\n if (tmp_array[0]) lab += \"Projector\\n\";\n if (tmp_array[1]) lab += \"Ubuntu\\n\";\n if (tmp_array[2]) lab += \"Linux/Windows\\n\";\n if (tmp_array[3]) lab += \"Física\\n\";\n if (tmp_array[4]) lab += \"Embeded\\n\";\n if (tmp_array[5]) lab += \"Xarxes\\n\";\n // lab_output.setWrapText(true);\n lab_output.setText(lab);\n }", "public WifiProtocol(){\r\n// messages = new String[100];\r\n// index = 0;\r\n }", "private void initView() {\n\t\tbtCheck1 = (Button) findViewById(R.id.btCek1);\n\t\ttbChannel4 = (ToggleButton) findViewById(R.id.tbChannel4);\n\t\t//currentIpAddress = setting.getString(\"ip\", \"192.168.64.44\");\n\t\tcurrentIpAddress =\"192.168.64.45\";\n\t}", "protected void labelClear(){\n N11.setText(null);N12.setText(null);N13.setText(null);N14.setText(null);\n N21.setText(null);N22.setText(null);N23.setText(null);N24.setText(null);\n N31.setText(null);N32.setText(null);N33.setText(null);N34.setText(null);\n N41.setText(null);N42.setText(null);N43.setText(null);N44.setText(null);\n n11.setText(null);n12.setText(null);n13.setText(null);n14.setText(null);\n n21.setText(null);n22.setText(null);n23.setText(null);n24.setText(null);\n n31.setText(null);n32.setText(null);n33.setText(null);n34.setText(null);\n n41.setText(null);n42.setText(null);n43.setText(null);n44.setText(null);\n G11.setText(null);G12.setText(null);G13.setText(null);G14.setText(null);\n G21.setText(null);G22.setText(null);G23.setText(null);G24.setText(null);\n G31.setText(null);G32.setText(null);G33.setText(null);G34.setText(null);\n G41.setText(null);G42.setText(null);G43.setText(null);G44.setText(null);\n g11.setText(null);g12.setText(null);g13.setText(null);g14.setText(null);\n g21.setText(null);g22.setText(null);g23.setText(null);g24.setText(null);\n g31.setText(null);g32.setText(null);g33.setText(null);g34.setText(null);\n g41.setText(null);g42.setText(null);g43.setText(null);g44.setText(null);\n E11.setText(null);E12.setText(null);E13.setText(null);E14.setText(null);\n E21.setText(null);E22.setText(null);E23.setText(null);E24.setText(null);\n E31.setText(null);E32.setText(null);E33.setText(null);E34.setText(null);\n E41.setText(null);E42.setText(null);E43.setText(null);E44.setText(null);\n e11.setText(null);e12.setText(null);e13.setText(null);e14.setText(null);\n e21.setText(null);e22.setText(null);e23.setText(null);e24.setText(null);\n e31.setText(null);e32.setText(null);e33.setText(null);e34.setText(null);\n e41.setText(null);e42.setText(null);e43.setText(null);e44.setText(null);\n }", "public void startRetriveDataInfo() {\n\t\t\tif (isLog4jEnabled) {\n\t\t\t\n stringBuffer.append(TEXT_2);\n stringBuffer.append(label);\n stringBuffer.append(TEXT_3);\n \n\t\t\t}\n\t\t}", "private void initComponents()\n {\n // Attributes of the window\n int windowWidth = 450;\n \n // Get the content pane\n Container pane = this.getContentPane();\n pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS));\n \n // The first row: wifi animated icon\n JPanel row0 = new JPanel();\n row0.setLayout(new BoxLayout(row0, BoxLayout.X_AXIS));\n wifiAnimatedIcon = new WiFiAnimatedIcon(250, FrmMainController.WINDOW_TOP_BACKGROUND);\n wifiAnimatedIcon.setPreferredSize(new Dimension(152, 252));\n row0.add(Box.createHorizontalGlue());\n row0.add(wifiAnimatedIcon);\n row0.add(Box.createHorizontalGlue());\n \n // The second row: notifications\n labelNotifications = new JLabel(\"Notifications ici\", SwingConstants.CENTER);\n labelNotifications.setFont(new Font(labelNotifications.getFont().getFontName(), Font.ITALIC, labelNotifications.getFont().getSize()));\n labelNotifications.setForeground(Color.GRAY);\n labelNotifications.setAlignmentX(Component.CENTER_ALIGNMENT);\n labelNotifications.setAlignmentY(Component.TOP_ALIGNMENT);\n setSize(labelNotifications, new Dimension(windowWidth, 15));\n \n // The third row: profile + connection state\n JPanel row2 = new JPanel();\n row2.setLayout(new BoxLayout(row2, BoxLayout.X_AXIS));\n labelProfile = new JLabel(\"SFR WiFi Public\", SwingConstants.CENTER);\n labelConnectionState = new JLabel(\"Connecté\", SwingConstants.CENTER);\n labelProfile.setFont(new Font(labelProfile.getFont().getName(), Font.BOLD, labelProfile.getFont().getSize()));\n labelConnectionState.setFont(new Font(labelConnectionState.getFont().getName(), Font.BOLD, labelConnectionState.getFont().getSize()));\n labelGroupSeparator = new JLabel(\"-\", SwingConstants.CENTER);\n labelGroupSeparator.setFont(new Font(labelGroupSeparator.getFont().getName(), Font.BOLD, labelGroupSeparator.getFont().getSize()));\n setSize(labelGroupSeparator, new Dimension(8, 20));\n Dimension colDimension0 = new Dimension((windowWidth - 19 - labelGroupSeparator.getWidth()) / 2 - 2, 20);\n JPanel p1 = new JPanel();\n p1.setLayout(new BoxLayout(p1, BoxLayout.X_AXIS));\n setSize(p1, colDimension0);\n JPanel p2 = new JPanel();\n p2.setLayout(new BoxLayout(p2, BoxLayout.X_AXIS));\n setSize(p2, colDimension0);\n // Left and right columns\n p1.add(Box.createHorizontalGlue());\n p1.add(labelProfile);\n p1.add(Box.createHorizontalGlue());\n p2.add(Box.createHorizontalGlue());\n p2.add(labelConnectionState);\n p2.add(Box.createHorizontalGlue());\n // The row\n row2.add(p1);\n row2.add(labelGroupSeparator);\n row2.add(p2);\n // THe border\n row2.setBorder(BorderFactory.createEtchedBorder());\n // Set the sizes\n setSize(row2, new Dimension(windowWidth - 19, 45));\n \n // Last row: buttons\n JPanel row3 = new JPanel();\n row3.setLayout(new BoxLayout(row3, BoxLayout.X_AXIS));\n // The last row, left column\n JPanel row3_col0 = new JPanel();\n row3_col0.setLayout(new BoxLayout(row3_col0, BoxLayout.Y_AXIS));\n buttonLaunchPause = new JButton(\"Marche\");\n setSize(buttonLaunchPause, new Dimension(140, 35));\n buttonLaunchPause.setAlignmentX(Component.CENTER_ALIGNMENT);\n labelAutoConnectState = new JLabel(\"Auto Connect en pause\", SwingConstants.CENTER);\n labelAutoConnectState.setForeground(Color.GRAY);\n labelAutoConnectState.setAlignmentX(Component.CENTER_ALIGNMENT);\n setSize(labelAutoConnectState, new Dimension(windowWidth / 2, 15));\n // Add components\n row3_col0.add(Box.createVerticalGlue());\n row3_col0.add(Box.createVerticalGlue());\n row3_col0.add(buttonLaunchPause);\n row3_col0.add(Box.createRigidArea(new Dimension(0, 3)));\n row3_col0.add(labelAutoConnectState);\n row3_col0.add(Box.createVerticalGlue());\n // The last row, right column\n JPanel row3_col1 = new JPanel();\n row3_col1.setLayout(new BoxLayout(row3_col1, BoxLayout.Y_AXIS));\n \tbuttonAutoManual = new JButton(\"Automatique\");\n setSize(buttonAutoManual, new Dimension(140, 35));\n buttonAutoManual.setAlignmentX(Component.CENTER_ALIGNMENT);\n labelAuthMode = new JLabel(\"Authentification manuelle\", SwingConstants.CENTER);\n labelAuthMode.setForeground(Color.GRAY);\n labelAuthMode.setAlignmentX(Component.CENTER_ALIGNMENT);\n setSize(labelAuthMode, new Dimension(windowWidth / 2, 15));\n // Add components\n row3_col1.add(Box.createVerticalGlue());\n row3_col1.add(Box.createVerticalGlue());\n row3_col1.add(buttonAutoManual);\n row3_col1.add(Box.createRigidArea(new Dimension(0, 3)));\n row3_col1.add(labelAuthMode);\n row3_col1.add(Box.createVerticalGlue());\n // A vertical border\n JLabel labelSeparator0 = new JLabel();\n Dimension labelSeparatorDimension = new Dimension(10, 70);\n setSize(labelSeparator0, labelSeparatorDimension);\n labelSeparator0.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n JLabel labelSeparator1 = new JLabel();\n setSize(labelSeparator1, new Dimension(6, 70));\n labelSeparator1.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n JLabel labelSeparator2 = new JLabel();\n setSize(labelSeparator2, labelSeparatorDimension);\n labelSeparator2.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n row3.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n // Add borders\n row3_col0.setBorder(BorderFactory.createLineBorder(Color.GRAY, 1));\n row3_col1.setBorder(BorderFactory.createLineBorder(Color.GRAY, 1));\n \n // Add components\n row3.add(labelSeparator0);\n row3.add(row3_col0);\n row3.add(labelSeparator1);\n row3.add(row3_col1);\n row3.add(labelSeparator2);\n // Set sizes\n Dimension colDimension1 = new Dimension(windowWidth / 2 - 2 * labelSeparator0.getWidth() / 2 - labelSeparator1.getWidth() / 2, 70);\n setSize(row3_col0, colDimension1);\n setSize(row3_col1, colDimension1);\n Dimension row3Dimension = new Dimension(windowWidth, row3.getHeight());\n row3.setMinimumSize(row3Dimension);\n row3.setSize(row3Dimension);\n row3.setMaximumSize(row3Dimension);\n // Set the color\n p1.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n p2.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n pane.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n row0.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n row2.setBackground(FrmMainController.WINDOW_TOP_BACKGROUND);\n row3_col0.setBackground(FrmMainController.WINDOW_BOTTOM_BACKGROUND);\n row3_col1.setBackground(FrmMainController.WINDOW_BOTTOM_BACKGROUND);\n \n // Add components\n pane.add(Box.createRigidArea(new Dimension(0, 15)));\n pane.add(row0);\n pane.add(Box.createRigidArea(new Dimension(0, 0)));\n pane.add(labelNotifications);\n pane.add(Box.createRigidArea(new Dimension(0, 8)));\n pane.add(row2);\n pane.add(Box.createRigidArea(new Dimension(0, 5)));\n pane.add(row3);\n pane.add(Box.createRigidArea(new Dimension(0, 10)));\n \n // Create the menu\n this.menuFile = new JMenu(\"Fichier\");\n this.menuProfiles = new JMenu(\"Profils\");\n this.menuHelp = new JMenu(\"Aide\");\n this.menuFile_Parameters = new JMenuItem(\"Paramètres\");\n this.menuFile_Quit = new JMenuItem(\"Quitter\");\n this.menuFile.add(this.menuFile_Parameters);\n if (OSUtil.IS_WINDOWS)\n this.menuFile.addSeparator();\n else\n this.menuFile.add(new JSeparatorExt());\n this.menuFile.add(this.menuFile_Quit);\n this.menuHelp_Update = new JMenuItem(\"Vérifier les mises à jour\");\n this.menuHelp_Doc = new JMenuItem(\"Documentation\");\n this.menuHelp_FAQ = new JMenuItem(\"FAQ\");\n this.menuHelp_About = new JMenuItem(\"À propos de WiFi Auto Connect\");\n this.menuHelp.add(this.menuHelp_Update);\n if (OSUtil.IS_WINDOWS)\n this.menuHelp.addSeparator();\n else\n this.menuHelp.add(new JSeparatorExt());\n this.menuHelp.add(this.menuHelp_Doc);\n this.menuHelp.add(this.menuHelp_FAQ);\n if (!OSUtil.IS_MAC) // On mac os, the About menu is present in the application menu\n {\n if (OSUtil.IS_WINDOWS)\n this.menuHelp.addSeparator();\n else\n this.menuHelp.add(new JSeparatorExt());\n this.menuHelp.add(this.menuHelp_About);\n }\n this.menuBar = new JMenuBar();\n if (!OSUtil.IS_MAC) // On mac os, Preferences & Quit are already present in the application menu\n this.menuBar.add(this.menuFile);\n this.menuBar.add(this.menuProfiles);\n this.menuBar.add(this.menuHelp);\n \n // Add shortcuts (mnemonics are added when we load texts for internationalization)\n this.menuFile_Quit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()));\n this.menuHelp_Doc.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0));\n // Add the menu bar\n this.setJMenuBar(this.menuBar);\n \n // Full integration of the application in Mac OS\n if (OSUtil.IS_MAC)\n {\n Application.getApplication().setAboutHandler(new AboutHandler()\n {\n @Override\n public void handleAbout(AboutEvent arg0)\n {\n new FrmAbout(FrmMain.this, true).setVisible(true);\n }\n });\n Application.getApplication().setPreferencesHandler(new PreferencesHandler()\n {\n @Override\n public void handlePreferences(PreferencesEvent pe)\n {\n new FrmParameters(FrmMain.this, true).setVisible(true);\n }\n });\n Application.getApplication().addAppEventListener(new AppReOpenedListener()\n {\n @Override\n public void appReOpened(AppReOpenedEvent aroe)\n {\n setState(FrmMain.NORMAL);\n setVisible(true);\n }\n });\n }\n \n // Pack before to display\n this.pack();\n \n // Add event listeners\n buttonLaunchPause.addMouseListener(new MouseAdapter()\n {\n @Override\n public void mouseClicked(MouseEvent evt)\n {\n buttonLaunchPause_MouseClicked(evt);\n }\n });\n buttonAutoManual.addMouseListener(new MouseAdapter()\n {\n @Override\n public void mouseClicked(MouseEvent evt)\n {\n buttonAutoManual_MouseClicked(evt);\n }\n });\n menuHelp_About.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n new FrmAbout(FrmMain.this, true).setVisible(true);\n }\n });\n menuFile_Quit.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n System.exit(0);\n }\n });\n menuFile_Parameters.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n new FrmParameters(FrmMain.this, true).setVisible(true);\n }\n });\n \n // Create the system tray\n this.addApplicationSystemTray();\n \n // Set the other properties of the window\n FrmMain.setDefaultLookAndFeelDecorated(true);\n this.setTitle(FrmMainController.APP_NAME);\n this.setResizable(false);\n this.setIconImage(ResourcesUtil.APPLICATION_IMAGE);\n // Just hide\n this.setDefaultCloseOperation(HIDE_ON_CLOSE);\n // Add the tooltip of the system tray\n this.updateSystemTrayToolTip();\n // Center the window on the screen\n this.setLocationRelativeTo(null);\n }", "private JPanel getBasicInfo() {\r\n\t\tif (basicInfo == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints31 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints31.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints31.gridwidth = 4;\r\n\t\t\tgridBagConstraints31.gridx = 0;\r\n\t\t\tgridBagConstraints31.gridy = 7;\r\n\t\t\tgridBagConstraints31.weightx = 1.0;\r\n\t\t\tgridBagConstraints31.weighty = 1.0;\r\n\t\t\tgridBagConstraints31.insets = new Insets(0, 15, 5, 15);\r\n\t\t\tGridBagConstraints gridBagConstraints21 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints21.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints21.gridwidth = 4;\r\n\t\t\tgridBagConstraints21.gridx = 0;\r\n\t\t\tgridBagConstraints21.gridy = 5;\r\n\t\t\tgridBagConstraints21.weightx = 1.0;\r\n\t\t\tgridBagConstraints21.weighty = 1.0;\r\n\t\t\tgridBagConstraints21.insets = new Insets(0, 15, 5, 15);\r\n\t\t\tGridBagConstraints gridBagConstraints13 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints13.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints13.gridx = 1;\r\n\t\t\tgridBagConstraints13.gridy = 3;\r\n\t\t\tgridBagConstraints13.insets = new Insets(0, 3, 1, 0);\r\n\t\t\tatcCall = new JLabel();\r\n\t\t\tatcCall.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints12 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints12.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints12.gridx = 1;\r\n\t\t\tgridBagConstraints12.gridy = 2;\r\n\t\t\tgridBagConstraints12.insets = new Insets(0, 3, 1, 0);\r\n\t\t\ttailNumber = new JLabel();\r\n\t\t\ttailNumber.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints11 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints11.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints11.gridx = 3;\r\n\t\t\tgridBagConstraints11.gridy = 1;\r\n\t\t\tgridBagConstraints11.insets = new Insets(0, 3, 1, 10);\r\n\t\t\tvehicleSubtype = new JLabel();\r\n\t\t\tvehicleSubtype.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints10 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints10.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints10.gridx = 1;\r\n\t\t\tgridBagConstraints10.gridy = 1;\r\n\t\t\tgridBagConstraints10.insets = new Insets(0, 3, 1, 0);\r\n\t\t\tvehicleType = new JLabel();\r\n\t\t\tvehicleType.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints9 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints9.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints9.gridx = 3;\r\n\t\t\tgridBagConstraints9.gridy = 0;\r\n\t\t\tgridBagConstraints9.insets = new Insets(10, 3, 1, 10);\r\n\t\t\tvsmId = new JLabel();\r\n\t\t\tvsmId.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints8 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints8.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints8.gridx = 1;\r\n\t\t\tgridBagConstraints8.gridy = 0;\r\n\t\t\tgridBagConstraints8.weightx = 1.0;\r\n\t\t\tgridBagConstraints8.insets = new Insets(10, 3, 1, 0);\r\n\t\t\tvehicleId = new JLabel();\r\n\t\t\tvehicleId.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints7 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints7.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints7.gridwidth = 2;\r\n\t\t\tgridBagConstraints7.gridx = 0;\r\n\t\t\tgridBagConstraints7.gridy = 4;\r\n\t\t\tgridBagConstraints7.insets = new Insets(2, 15, 4, 0);\r\n\t\t\tjLabel7 = new JLabel();\r\n\t\t\tjLabel7.setText(\"Payloads:\");\r\n\t\t\tGridBagConstraints gridBagConstraints6 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints6.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints6.gridwidth = 2;\r\n\t\t\tgridBagConstraints6.gridx = 0;\r\n\t\t\tgridBagConstraints6.gridy = 6;\r\n\t\t\tgridBagConstraints6.insets = new Insets(2, 15, 4, 0);\r\n\t\t\tjLabel6 = new JLabel();\r\n\t\t\tjLabel6.setText(\"Controlled by:\");\r\n\t\t\tGridBagConstraints gridBagConstraints5 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints5.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints5.gridx = 0;\r\n\t\t\tgridBagConstraints5.gridy = 3;\r\n\t\t\tgridBagConstraints5.insets = new Insets(0, 10, 4, 0);\r\n\t\t\tjLabel5 = new JLabel();\r\n\t\t\tjLabel5.setText(\"ATC call sign:\");\r\n\t\t\tGridBagConstraints gridBagConstraints4 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints4.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints4.gridx = 0;\r\n\t\t\tgridBagConstraints4.gridy = 2;\r\n\t\t\tgridBagConstraints4.insets = new Insets(0, 10, 4, 0);\r\n\t\t\tjLabel4 = new JLabel();\r\n\t\t\tjLabel4.setText(\"Tail number:\");\r\n\t\t\tGridBagConstraints gridBagConstraints3 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints3.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints3.gridx = 2;\r\n\t\t\tgridBagConstraints3.gridy = 1;\r\n\t\t\tgridBagConstraints3.insets = new Insets(0, 5, 4, 0);\r\n\t\t\tjLabel3 = new JLabel();\r\n\t\t\tjLabel3.setText(\"Subtype:\");\r\n\t\t\tGridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints2.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints2.gridx = 0;\r\n\t\t\tgridBagConstraints2.gridy = 1;\r\n\t\t\tgridBagConstraints2.insets = new Insets(0, 10, 4, 0);\r\n\t\t\tjLabel2 = new JLabel();\r\n\t\t\tjLabel2.setText(\"Vehicle type:\");\r\n\t\t\tGridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints1.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints1.gridx = 2;\r\n\t\t\tgridBagConstraints1.gridy = 0;\r\n\t\t\tgridBagConstraints1.insets = new Insets(10, 5, 4, 0);\r\n\t\t\tjLabel1 = new JLabel();\r\n\t\t\tjLabel1.setText(\"VSM ID:\");\r\n\t\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n\t\t\tgridBagConstraints.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints.gridx = 0;\r\n\t\t\tgridBagConstraints.gridy = 0;\r\n\t\t\tgridBagConstraints.insets = new Insets(10, 10, 4, 0);\r\n\t\t\tjLabel = new JLabel();\r\n\t\t\tjLabel.setText(\"Vehicle ID:\");\r\n\t\t\tbasicInfo = new JPanel();\r\n\t\t\tbasicInfo.setLayout(new GridBagLayout());\r\n\t\t\tbasicInfo.add(jLabel, gridBagConstraints);\r\n\t\t\tbasicInfo.add(jLabel1, gridBagConstraints1);\r\n\t\t\tbasicInfo.add(jLabel2, gridBagConstraints2);\r\n\t\t\tbasicInfo.add(jLabel3, gridBagConstraints3);\r\n\t\t\tbasicInfo.add(jLabel4, gridBagConstraints4);\r\n\t\t\tbasicInfo.add(jLabel5, gridBagConstraints5);\r\n\t\t\tbasicInfo.add(jLabel6, gridBagConstraints6);\r\n\t\t\tbasicInfo.add(jLabel7, gridBagConstraints7);\r\n\t\t\tbasicInfo.add(vehicleId, gridBagConstraints8);\r\n\t\t\tbasicInfo.add(vsmId, gridBagConstraints9);\r\n\t\t\tbasicInfo.add(vehicleType, gridBagConstraints10);\r\n\t\t\tbasicInfo.add(vehicleSubtype, gridBagConstraints11);\r\n\t\t\tbasicInfo.add(tailNumber, gridBagConstraints12);\r\n\t\t\tbasicInfo.add(atcCall, gridBagConstraints13);\r\n\t\t\tbasicInfo.add(getJScrollPane(), gridBagConstraints21);\r\n\t\t\tbasicInfo.add(getJScrollPane1(), gridBagConstraints31);\r\n\t\t}\r\n\t\treturn basicInfo;\r\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tWifiManager wm=(WifiManager)getSystemService(WIFI_SERVICE);\n\t\t\t\tif(wm.isWifiEnabled())\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI:ON\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\tWifiInfo wi=wm.getConnectionInfo();\n\t\t\t\t\tif(wi.getNetworkId()==-1)\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI IS NOT CONNECT TO ANY DEVICE\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI IS CONNECTED\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"WIFI IS OFF\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public UdpExample() {\n initComponents();\n myInitComponents();\n }", "public Scratch_update_details(String network,String price,String pinn,String batch,String serial,String id){\n try {\n initComponents();\n setTitle(\"Details\");\n setLocationRelativeTo(this);\n loadnetwork();\n lblNetwork.setText(network);\n lblPrice.setText(price);\n pinTXT.setText(pinn);\n batchTXT.setText(batch);\n serialTXT.setText(serial);\n lblid.setText(id);\n \n } catch (Exception ex) {\n Logger.getLogger(Scratch_update_details.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n \n \n \n }", "private void fillCompetitiveNetworkFieldValues() {\r\n updateMethod.setSelectedItem(((CompetitiveNetwork) competitive)\r\n .getCompetitive().getUpdateMethod());\r\n tfEpsilon.setText(Double.toString(((CompetitiveNetwork) competitive)\r\n .getCompetitive().getLearningRate()));\r\n tfLoserValue.setText(Double.toString(((CompetitiveNetwork) competitive)\r\n .getCompetitive().getLoseValue()));\r\n tfWinnerValue.setText(Double\r\n .toString(((CompetitiveNetwork) competitive).getCompetitive()\r\n .getWinValue()));\r\n tfLeakyEpsilon.setText(Double\r\n .toString(((CompetitiveNetwork) competitive).getCompetitive()\r\n .getLeakyLearningRate()));\r\n tfSynpaseDecayPercent.setText(Double\r\n .toString(((CompetitiveNetwork) competitive).getCompetitive()\r\n .getSynpaseDecayPercent()));\r\n cbUseLeakyLearning.setSelected(((CompetitiveNetwork) competitive)\r\n .getCompetitive().getUseLeakyLearning());\r\n cbNormalizeInputs.setSelected(((CompetitiveNetwork) competitive)\r\n .getCompetitive().getNormalizeInputs());\r\n }", "public void updateGIUnoResponse()\n {\n updateInfo.setText( \"Server is not up :(\" );\n }", "private void populateUserInfo() {\n User user = Session.getInstance().getUser();\n labelDisplayFirstname.setText(user.getFirstname());\n labelDisplayLastname.setText(user.getLastname());\n lblEmail.setText(user.getEmail());\n lblUsername.setText(user.getUsername());\n }", "private void scanWifi() {\n Toast.makeText(this,getString(R.string.toast_scanning),Toast.LENGTH_SHORT).show();\n //Android 9.0 将 WiFiManager 的 startScan() 方法标为了废弃,\n // 前台应用 2 分钟内只能使用 4 次startScan(),后台应用 30 分钟内只能调用 1次 startScan(),\n // 否则会直接返回 false 并且不会触发扫描操作。\n mWifiManager.startScan();\n //Log.d(\"startscan\", String.valueOf(mWifiManager.startScan()) );\n mScanResults = mWifiManager.getScanResults();\n //Log.d(\"mScanResults\", String.valueOf(mScanResults.size()));\n mListView.setAdapter(new WifiAdapter(this,mScanResults));\n }" ]
[ "0.63076526", "0.6096146", "0.59835786", "0.5927301", "0.59166664", "0.58315605", "0.5805178", "0.57391065", "0.5675109", "0.5581372", "0.5579853", "0.5566793", "0.55642205", "0.55639654", "0.55272317", "0.55253375", "0.5499561", "0.5462342", "0.54578835", "0.5416867", "0.5416392", "0.5365211", "0.5357302", "0.53538454", "0.53515387", "0.5339556", "0.53372777", "0.53289676", "0.5328022", "0.532153", "0.531842", "0.5314086", "0.5311439", "0.53052413", "0.53005874", "0.5282534", "0.5271759", "0.5270022", "0.5255599", "0.5252645", "0.524899", "0.52459407", "0.5244779", "0.52204055", "0.5207779", "0.52063745", "0.52058554", "0.5205241", "0.5194314", "0.51689076", "0.51679677", "0.5161192", "0.5156373", "0.5155312", "0.513748", "0.51349556", "0.51179063", "0.5117757", "0.5117602", "0.51101714", "0.50979125", "0.50966674", "0.50932324", "0.509128", "0.50886613", "0.5084404", "0.508137", "0.5078972", "0.50667256", "0.5062708", "0.506236", "0.50592077", "0.5057699", "0.5054363", "0.5046888", "0.50400126", "0.5038493", "0.50331455", "0.50330687", "0.5030351", "0.50279117", "0.5025825", "0.50257", "0.5022113", "0.5020777", "0.50176466", "0.5016993", "0.5015104", "0.50053823", "0.5002381", "0.49983636", "0.49954197", "0.49824518", "0.4957032", "0.49545538", "0.49464643", "0.49398422", "0.49349153", "0.49342978", "0.49282756", "0.4926024" ]
0.0
-1
Includes message on the View to show the response from Communication Node
public void setResponseView(String message){ messageStatusView.append(message); messageStatusView.append("\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String viewmessage_request() {\n\t\treturn null;\n\t}", "public String response() {\n\t\treturn message;\n\t}", "public void displayMessage(JSONArray data, final CallbackContext callbackContext) throws JSONException {\n\n String deviceName = data.getString(0);\n String deviceMacAddress = data.getString(1);\n String messageToDisplay = data.getString(2);\n\n PinpadObject pinpad = new PinpadObject(deviceName, deviceMacAddress, false);\n\n DisplayMessageProvider displayMessageProvider = new DisplayMessageProvider(StoneSDK.this.cordova.getActivity(), messageToDisplay, pinpad);\n\n displayMessageProvider.setDialogMessage(\"Ativando o aplicativo...\");\n displayMessageProvider.setDialogTitle(\"Aguarde\");\n\n displayMessageProvider.setWorkInBackground(false); // informa se este provider ira rodar em background ou nao\n displayMessageProvider.setConnectionCallback(new StoneCallbackInterface() {\n\n public void onSuccess() {\n Toast.makeText(StoneSDK.this.cordova.getActivity(), \"Msg enviada com sucesso\", Toast.LENGTH_SHORT).show();\n callbackContext.success(\"Ativado com sucesso\");\n }\n\n public void onError() {\n Toast.makeText(StoneSDK.this.cordova.getActivity(), \"Erro no envio da mensagem\", Toast.LENGTH_SHORT).show();\n callbackContext.error(displayMessageProvider.getListOfErrors().toString());\n }\n\n });\n\n displayMessageProvider.execute();\n\n }", "public String viewResponse(Response response) {\r\n this.currentResponse = response;\r\n return \"viewResponse\";\r\n }", "@Override\n public void updateView(Message msg)\n {\n \n }", "@Override\n public void onResponse(String response) {\n System.out.println(\"Recieved Response: \" + response);\n }", "@Override\n\tprotected ModelAndView handleRequestInternal(HttpServletRequest arg0, HttpServletResponse arg1) throws Exception {\n\t\tModelAndView model = new ModelAndView(\"contact\");\n\t\tmodel.addObject(\"command\", getMsg());\n\n\t\treturn model;\n\t}", "public String getResponseMessage();", "@Override\n public void onResponse(Call call, final Response response) throws IOException {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n// TextView responseText = findViewById(R.id.responseText);\n try {\n// responseText.setText(response.body().string());\n Log.d(\"Flask Server\",response.body().string());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n });\n }", "public String receiveResponse()\n\t{\n\t\t\n\t}", "public ViewRequestResponse() {\n super(\"View Request/Response\");\n initComponents();\n blRequestResponse = new BLRequestResponse();\n response = new Response();\n request = new Request();\n \n }", "public void sendMessage(View view) {\n new HttpRequestTask().execute();\n }", "public String requestView() { \n\t\tbyte[] userMessage = \"view\".getBytes();\n\t\tbyte[] srvrResponse = sendServerCoded(userMessage);\n\t\t\n\t\tif (!checkError(srvrResponse)) {\n\t\t\tbyte[] encryptedSecret = srvrResponse;\n\t\t\tbyte[] decryptedSecret = SecureMethods.decryptRSA(encryptedSecret, my_n, my_d, simMode);\n\t\t\treturn new String(decryptedSecret);\n\t\t} else {\n\t\t\treturn \"error\";\n\t\t}\n\t}", "@Override\n public void onResponse(String response) {\n System.out.print(\"respuesta Server\"+response);\n responseRequest(sync_id);\n /*if (sync_id != 0) {\n responseRequest(sync_id);\n } else {\n background_response = \"ID Sync null\";\n restartRequest(background_response);\n }*/\n }", "public Rendable getMessageDisplay(){\n return MESSAGE_DISPLAY;\n }", "public void responseSent(DesktopCtrl desktopCtrl, String channel, String reqId, Object resInfo);", "@SuppressWarnings(\"finally\")\n\t@Override\n\tpublic Response showRecepient() {\n\t\tBaseResponse<NotifyTemplate> br = new BaseResponse<NotifyTemplate>();\n\t\ttry\n\t\t{\n\t\tList<NotifyTemplate> recepientList;\n\t\tjdbcTemplate.setDataSource(dataSourceProvider.getDataSource(FiinfraConstants.BU_DEFAULT));\n\t\trecepientList=jdbcTemplate.query(FiinfraConstants.SP_GET_SYSTEM_RECEPIENT_CHANNEL,new Object[]{FiinfraConstants.NOTIFYTARGET_ID} ,new BeanPropertyRowMapper<NotifyTemplate>(NotifyTemplate.class));\n\t\tbr.setResponseListObject(recepientList); \n\t\tresponse=FiinfraResponseBuilder.getSuccessResponse(br, null);\n\t\t} \n\t\tcatch (DataAccessException e) {\n\t\t\tresponse = FiinfraResponseBuilder.getErrorResponse(e.getMessage().toString());\n\t\t} \n\t\tfinally\n\t\t{ \n\t\t\treturn response;\n\t\t\t\t} \n\t}", "private void displayMsg(Object o) {\n Message msg = ((Datapacket)o).getMsg();\n client.printMessage(msg);\n }", "@Override\n public void action() {\n ACLMessage acl = receive();\n if (acl != null) {\n if (acl.getPerformative() == ACLMessage.REQUEST) {\n try {\n ContentElement elemento = myAgent.getContentManager().extractContent(acl);\n if (elemento instanceof PublicarServicio) {\n PublicarServicio publicar = (PublicarServicio) elemento;\n Servicio servicio = publicar.getServicio();\n jadeContainer.iniciarChat(servicio.getTipo(), servicio.getDescripcion());\n //myAgent.addBehaviour(new IniciarChatBehaviour(myAgent, servicio.getTipo(), servicio.getDescripcion()));\n } else if (elemento instanceof EnviarMensaje) {\n EnviarMensaje enviar = (EnviarMensaje) elemento;\n Mensaje mensaje = enviar.getMensaje();\n jadeContainer.enviarMensajeChatJXTA(mensaje.getRemitente(), mensaje.getMensaje());\n }\n } catch (CodecException ex) {\n System.out.println(\"CodecException: \" + ex.getMessage());\n } catch (UngroundedException ex) {\n System.out.println(\"UngroundedException: \" + ex.getMessage());\n } catch (OntologyException ex) {\n System.out.println(\"OntologyException: \" + ex.getMessage());\n }\n }\n } else {\n block();\n }\n }", "@Override\n\tpublic void sendResponse() {\n\n\t}", "@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_SHORT).show();\n\t\t\t}", "public void updateView(String message) {\n output.setText(message);\n \n }", "@Override\n\tpublic String view_request() {\n\t\treturn null;\n\t}", "@Override\n public void onResponse(String response) {\n mTextView.setText(\"Response is: \" + response);\n }", "interface View{\n /**\n * Il seguente metodo peremtte di gestire una situazione di errore\n */\n void onFailure();\n\n /**\n * Il seguente metodo permette di gestire l'ottenimento delle informazioni di un dato cliente\n *\n * @param client cliente\n * @param weightList lista contenete tutti i pesi registrati dal cliente nella piattaforma\n * @param dateList lista contenente tutte le date in cui un cliente ha registrato un peso\n */\n void onClientDataReceived(Client client, List<Float> weightList, List<Date> dateList);\n }", "@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\r\n\t\tpublic void onHttpResponse(String response) {\n\t\t\tif(WebApi.isRespSuccess(response)){\r\n//\t\t\t\thandler.sendEmptyMessage(HANDLER_MSG_APKINFO_SYNC);\r\n\t\t\t}\r\n\t\t\tString resp_msg = WebApi.getRespMsg(response);\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.what = HANDLER_MSG_TOAST;\r\n\t\t\tBundle bundle = new Bundle();\r\n\t\t\tbundle.putString(HANDLER_DATA_TOAST_TEXT, resp_msg);\r\n\t\t\tmsg.setData(bundle);\r\n\t\t\thandler.sendMessage(msg);\r\n\t\t}", "@Override\r\n\t\tpublic void onHttpResponse(String response) {\n\t\t\tif(WebApi.isRespSuccess(response)){\r\n\t\t\t\thandler.sendEmptyMessage(HANDLER_MSG_APKINFO_SYNC);\r\n\t\t\t}\r\n\t\t\tString resp_msg = WebApi.getRespMsg(response);\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.what = HANDLER_MSG_TOAST;\r\n\t\t\tBundle bundle = new Bundle();\r\n\t\t\tbundle.putString(HANDLER_DATA_TOAST_TEXT, resp_msg);\r\n\t\t\tmsg.setData(bundle);\r\n\t\t\thandler.sendMessage(msg);\r\n\t\t}", "@Override\n\tpublic void sendResponse() {\n\t\t\n\t}", "@RenderMapping(params = \"action=viewInboxMessage\")\n public String viewInboxMessage() {\n return JSP_DIR + VIEW_MESSAGE;\n }", "public void receiveChatRequest() {\n\t\t\r\n\t\tString message = \"Chat request details\";\r\n\t\t\r\n\t\t//Notify the chat request details to the GUI\r\n\t\tthis.observable.notifyObservers(message);\r\n\t}", "public String doMessage(){\n\t\treturn messageXhtml;\n\t}", "@GetMapping(\"/message\")\n public String getMessage() {\n return greetingService.getMessage();\n }", "@Override\r\n\tpublic void getMessage() {\n\t\tSystem.out.println(\"getMessage() 출력...\");\r\n\t}", "public void sendMessage(View view) {\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 0:\n\t\t\t\ttv_read.setText(msg.obj.toString());\n\t\t\t\tToast.makeText(N20PINPadControllerActivity.this, \"recv\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "private void viewMessage()\n {\n System.out.println( inbox );\n inbox = \"\";\n }", "@Override\n\t\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t\tSystem.out.println(arg0);\n\t\t\t\t\t\n\t\t\t\t}", "public interface DataView extends View\n{\n //Returns the status of the response\n //True: successful\n //False: failed\n public boolean getResponseStatus();\n \n //Returns the response message\n public String getResponseMessage();\n \n //Returns the data from the controller\n public Message getResponseData();\n \n //Returns a json representation of the data\n public String getJson();\n \n}", "public String getResponseMessage() { return responseMessage; }", "public void communicate() {\r\n System.out.println(\"This iPhone is making a phone call.\");\r\n }", "private void clientResponse(String msg) {\n JSONObject j = new JSONObject();\n j.put(\"statuscode\", 200);\n j.put(\"sequence\", ++sequence);\n j.put(\"response\", new JSONArray().add(msg));\n output.println(j);\n output.flush();\n }", "public String message()\n {\n return rawResponse.message();\n }", "public String requestAction3(){\n return \"Response Three\";\n }", "@Override\n public void onResponse(Call call, final Response response) throws IOException {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n try {\n responseString = response.body().string();\n textView.setText(\"Request: \" + requestString + \"\\nResponse: \"+responseString);\n tts.speak(responseString);\n\n } catch (IOException e) {\n e.printStackTrace();\n tts.speak(\"Failed to contact the server\");\n }\n }\n });\n }", "@Override\r\n public void onResult(byte[] data)\r\n {\n StringBuffer sb = new StringBuffer();\r\n sb.append(getString(R.string.external_device_recv_data)).append(\"\\n\");\r\n sb.append(new String(data)).append(\"\\n\");\r\n \r\n McRecvOnBoard = sb.toString();\r\n \r\n MainControllerDemoActivity.this.runOnUiThread(new Runnable(){\r\n\r\n @Override\r\n public void run() \r\n { \r\n mRecvTextView.setText(McRecvOnBoard);\r\n }\r\n });\r\n }", "@Override\n public void run() {\n try {\n// responseText.setText(response.body().string());\n Log.d(\"Flask Server\",response.body().string());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void execute(ConversationController conversationController) {\n System.out.println(message);\n }", "@Override\n\t\tpublic void run() {\n\t\t\tresult = HttpRequestUtil.sendGet(serverUrl + \"services/tmp_notice_detail\", \"id=\" + id, (OilApplication)getApplication());\n\t\t\ttry {\n\t\t\t\tJSONObject json = new JSONObject(result);\n\t\t\t\tif(json.getInt(\"status\") == 200) {\n\t\t\t\t\tgetHandler.sendMessage(getHandler.obtainMessage());\n\t\t\t\t}\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public void action() {\n MessageTemplate template = MessageTemplate.MatchPerformative(CommunicationHelper.GUI_MESSAGE);\n ACLMessage msg = myAgent.receive(template);\n\n if (msg != null) {\n\n /*-------- DISPLAYING MESSAGE -------*/\n try {\n\n String message = (String) msg.getContentObject();\n\n // TODO temporary\n if (message.equals(\"DistributorAgent - NEXT_SIMSTEP\")) {\n \tguiAgent.nextAutoSimStep();\n // wykorzystywane do sim GOD\n // startuje timer, zeby ten zrobil nextSimstep i statystyki\n // zaraz potem timer trzeba zatrzymac\n }\n\n guiAgent.displayMessage(message);\n\n } catch (UnreadableException e) {\n logger.error(this.guiAgent.getLocalName() + \" - UnreadableException \" + e.getMessage());\n }\n } else {\n\n block();\n }\n }", "@Override\n public void onResponse(Call<Message> call, Response<Message> response) {\n if (response.isSuccessful()) { //on received message object OK.\n Message m = response.body();\n String message = m.getMessage();\n if (message.equals(\"Successfully sent linking request to patient.\")) {\n //continue\n } else {\n statusText.setText(\"Could not send linking request to patient.\");\n int color = Color.parseColor(\"#FF5252\");\n statusIcon.setColorFilter(color);\n clearStatusTextAfterSeconds(5);\n }\n //TODO: persist linked status to the device.??\n } else { //on received message object FAIL.\n Log.d(TAG, \"unsuccessful linking.\");\n int color = Color.parseColor(\"#FF5252\");\n statusIcon.setColorFilter(color);\n statusText.setText(\"Server error, please contact developer.\");\n clearStatusTextAfterSeconds(5);\n }\n }", "public void writeMassege() {\n m = ChatClient.message;\n jtaChatHistory.setText(\"You : \" + m);\n //writeMassageServer();\n }", "@Override\n\t\tpublic void displayMessage() {\n\t\t\tsuper.displayMessage();\n\t\t}", "@Override\n\tpublic void displayMessage(LinphoneCore lc, String message) {\n\t\t\n\t}", "public void sendMessage(View view) {\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n //EditText editText = (EditText) findViewById(R.id.edit_message);\n //String message = editText.getText().toString();\n //intent.putExtra(EXTRA_MESSAGE, message);\n\n startActivity(intent);\n }", "public Message process(Message m) throws ActionProcessingException {\n\t\t\r\n\t\t\r\n\t\t String responseMsg = (String) m.getBody().get(Body.DEFAULT_LOCATION);\r\n\t\t m.getBody().add(\"MsgToClient\",responseMsg);\r\n\t\t \r\n\t\t return m;\r\n\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tList<TopicEvent> list = board.getNewMessages();\r\n\t\t// Send message to GUI\r\n\t\tString response = ServletUtil.createMessageBoardXML(list);\r\n\t\tServletUtil.createHeaders(resp);\r\n\t\tresp.getWriter().write(response);\r\n\t\tlog.debug(\"SENT:\\n\" + response);\r\n\t}", "@Override\r\n\tpublic String delivery() {\n\t\treturn \" welcome to DTDC post service \";\r\n\t}", "private void serverDisplay(String message)\n {\n String timeStamp = dateFormat.format(new Date()) + \" \" + message;\n System.out.println(timeStamp);\n }", "public void sendStatusMessageToDispatch(String message) {\n this.dispatcher.displayMessageFromVehicle(message);\n }", "@RequestMapping(\"/reply_view\")\n\tpublic String reply_view(HttpServletRequest request, Model model) {\n\t\tBDto dto = dao.reply_view(request.getParameter(\"bId\"));\n\t\tmodel.addAttribute(\"reply_view\", dto);\n\t\treturn \"reply_view\";\n\t}", "public void sendMessage(View view) {\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n EditText editText = (EditText) findViewById(R.id.editText);\n String message = editText.getText().toString();\n intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n\n }", "@Override\n\tpublic Viewboard WriteView(String message) {\n\t\treturn null;\n\t}", "private void display(String msg) {\n\t\tString msgF = \"\\tClient- \" + msg + \"\\n\\n >> \";\n System.out.print(msgF);\n }", "@Override\n public void onMessage(String channel, String message) {\n String result[] = new String[3];\n result = jsonToString.recorrer(message, result);\n System.out.println(result[0]);\n System.out.println(result[1]);\n System.out.println(result[2]);\n nn = new NanozNotificacion(result[1], result[0]);\n nn.setVisible(true);\n //estado = JOptionPane.showConfirmDialog(null, result[0]);\n //notificacionCiclada(result, estado);\n }", "@Override\n public void onNext(RequestData request) {\n System.out.println(\"Requestor:\" + request.getName());\n System.out.println(\"Request Message:\" + request.getMessage());\n }", "@Override\n public void onMessageReceived(MessageEvent messageEvent) {\n String path=messageEvent.getPath();\n Toast.makeText(this,\"Mensaje Recibido\",Toast.LENGTH_SHORT).show();\n this.controller.ControlKIT(path);\n\n }", "public void updateGIUnoResponse()\n {\n updateInfo.setText( \"Server is not up :(\" );\n }", "int displayNotification(Message message);", "@SuppressWarnings(\"finally\")\n\t@Override\n\tpublic Response showSystem() {\n\t\tBaseResponse<NotifyTemplate> br = new BaseResponse<NotifyTemplate>();\n\t\ttry\n\t\t{\n\t\tList<NotifyTemplate> systemList;\n\t\tjdbcTemplate.setDataSource(dataSourceProvider.getDataSource(FiinfraConstants.BU_DEFAULT));\n\t\tsystemList=jdbcTemplate.query(FiinfraConstants.SP_GET_SYSTEM_RECEPIENT_CHANNEL,new Object[]{FiinfraConstants.NOTIFYTYPE_ID} ,new BeanPropertyRowMapper<NotifyTemplate>(NotifyTemplate.class));\n\t\tbr.setResponseListObject(systemList); \n\t\tresponse=FiinfraResponseBuilder.getSuccessResponse(br, null);\n\t\t}\n\t\tcatch (DataAccessException e) {\n\t\t\tresponse = FiinfraResponseBuilder.getErrorResponse(e.getMessage().toString());\n\t\t}\n\t\tfinally\n\t\t{ \n\t\t\treturn response;\n\t\t\t\t} \n\t}", "@RequestMapping(\"/reply\")\n\tpublic String reply(HttpServletRequest request, Model model) {\n\t\tdao.reply(request.getParameter(\"bId\"), \n\t\t\t\trequest.getParameter(\"bName\"), \n\t\t\t\trequest.getParameter(\"bTitle\"), \n\t\t\t\trequest.getParameter(\"bContent\"),\n\t\t\t\trequest.getParameter(\"bGroup\"), \n\t\t\t\trequest.getParameter(\"bStep\"), \n\t\t\t\trequest.getParameter(\"bIndent\"));\n\t\treturn \"redirect:list\";\n\t}", "@Override\n public void onConnected(Bundle connectionHint) {\n //Requires a new thread to avoid blocking the UI\n new SendToDataLayerThread(\"/message_path\", message + \" \" + Calendar.getInstance()).start();\n Log.i(TAG, \"sent, onConnected\" + message);\n Toast.makeText(getApplicationContext(),message,Toast.LENGTH_SHORT).show();\n }", "public void getMessage() {\n\r\n\t}", "@Override\n public void handleMessage(ClientView clientView) {\n clientView.showError(errorString);\n clientView.getPhase().handlePhase(clientView);\n }", "@Override\n public void onResponse(Call<ResponseContent> call, Response<ResponseContent> response) {//obtener datos\n\n ResponseContent data = response.body();\n\n try {\n\n if( data.getBody().getString(0).toString().equals(\"msm\") ){//verifico si es un mensaje\n\n Toast.makeText(contexto.getApplicationContext(),\n mss.msmServices.getString(data.getBody().getString(1).toString()),\n Toast.LENGTH_SHORT).show(); // muestro mensaje enviado desde el servidor\n\n }else{\n\n Log.i( mss.TAG, data.getBody().toString() );\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n new ServicesPeticion().SaveError(e,\n new Exception().getStackTrace()[0].getMethodName().toString(),\n this.getClass().getName());//Envio la informacion de la excepcion al server\n }\n\n }", "public void sendMessage (View view)\r\n\t{\r\n\t\t// Respond to the button click\r\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\r\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\tintent.putExtra(EXTRA_MESSAGE, message);\r\n\t\tstartActivity(intent);\r\n\t}", "public Template handleRequest( HttpServletRequest request, HttpServletResponse response, Context context ) {\n Template template = null;\n context.put(\"apptitle\", \"Ecom Journal - Browse\");\n\t response.setContentType(\"text/html\");\n\t \n\t //create ContactModel object\n ContactModel contactModel = new ContactModel();\n\n try {\n\t\t\n \t\tString action = request.getParameter(\"action\");\n \t\tString messageID = request.getParameter(\"messageID\");\n \t\tString answer = request.getParameter(\"answer\");\n\n\n\t\tif (messageID != null) {\n\t\t\t\n\t\t\tString alerMessage = null;\n\t boolean status = false;\n\t\t\t\n\t \tif (action.contains(\"reply\")) {\n\t \t\tstatus = contactModel.setAnswer(messageID, answer);\n\t \t\talerMessage = \"Answer has been updated\";\n\n\t \t} else if (action.contains(\"remove\")) { \n\t \t\tstatus = contactModel.deleteMessage(messageID);\n\t \t\talerMessage = \"Letter has been deleted\";\n\t \t\t\n\t \t} else if (action.contains(\"accept\")) {\n\t \t\tstatus = contactModel.updateMessage(messageID);\n\t\t\t\talerMessage = \"Letter has been published\";\n\t \t}\n\t \t\n\t \tif (status) {\n\t \t\tcontext.put(\"successfully\", alerMessage);\n\t \t} else {\n\t\t\t\tcontext.put(\"error\", \"Something wrong with your request\");\n\t \t}\n\t \t\n\t\t}\n\t\t\n\t\tcontext.put(\"Messages\", contactModel.getUnpublishMessages());\n\t\t\n \n template = getTemplate(\"/pages/message.vm\"); \n \n } catch(Exception e ) {\n System.out.println(\"Error \" + e);\n }\n return template;\n }", "@Override\n\tpublic void handle(T event) {\n\t\tString messageFromClient;\n\t\tmessageFromClient = breakOut.getView().getInputTextfield().getText();\n\t\ttry {\n\t\t\tbreakOut.getClient().getWriter().println(messageFromClient);\n\t\t\tbreakOut.getClient().getWriter().flush();\n\t\t\tbreakOut.getView().getInputTextfield().clear();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"No reachable Server\");\n\t\t}\n\t}", "public void displayMessage(){//displayMessage body start\n\t\tSystem.out.printf(\"course name = %s\\n\", getCourseName());\n\t}", "@Override\n public void handleMessage(Message msg) {\n System.out.println(\"recibe mensajes ...\");\n System.out.println(msg.obj);\n }", "public interface SendView {\n\n void handleResponse(ResponseBody response);\n\n void handleError(Throwable error);\n\n\n}", "@Override\r\n\tpublic void display(Object message) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void display(Object message) {\n\t\t\r\n\t}", "public void onClickSend(View view) {\n //String string = editText.getText().toString();\n //serialPort.write(string.getBytes());\n //tvAppend(txtResponse, \"\\nData Sent : \" + string + \"\\n\");\n }", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Send or recieve messages\";\n\t}", "@Override\r\n public void onResponse(String ServerResponse) {\n progressDialog.dismiss();\r\n\r\n // Showing response message coming from server.\r\n Toast.makeText(appointment.this, ServerResponse, Toast.LENGTH_LONG).show();\r\n\r\n\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\tint id = -1;\n\t\ttry {\n\t\t\tid = Integer.parseInt(request.getParameter(\"id\"));\n\t\t} catch (Exception e) {\n\t\t}\n\t\tList<String> messages = ChatServerConnector.getMessage(id);\n\t\tString message = \"\";\n\t\tif (messages != null) {\n\t\t\tmessage = messages.stream().map((msg) -> msg + \"\\n\").reduce(message, String::concat);\n\t\t} else {\n\t\t\t//TODO håndtere fejl\n\t\t}\n\t\tresponse.setContentType(\"text/plain;charset=UTF-8\");\n\t\ttry (PrintWriter out = response.getWriter()) {\n\t\t\tout.print(message);\n\t\t}\n\t}", "@Override\n public void onResponse(String response) {\n try {\n Object obj = new JSONParser().parse(response.toString());\n JSONObject jo = (JSONObject)obj;\n String reply = (String) jo.get(\"reply\");\n TextView tv = (TextView) findViewById(R.id.unsendmsg);\n tv.setText(reply);\n if(!reply.equals(\"0\")){\n// startService(new Intent(showservice.this,sms_send.class));\n }\n }catch (Exception e){\n System.out.println(e.toString());\n }\n }", "@SuppressWarnings(\"finally\")\n\t@Override\n\tpublic Response showChannel() {\n\t\tBaseResponse<NotifyTemplate> br = new BaseResponse<NotifyTemplate>();\n\t\ttry\n\t\t{\n\t\tList<NotifyTemplate> channelList;\n\t\tjdbcTemplate.setDataSource(dataSourceProvider.getDataSource(FiinfraConstants.BU_DEFAULT));\n\t\tchannelList=jdbcTemplate.query(FiinfraConstants.SP_GET_SYSTEM_RECEPIENT_CHANNEL,new Object[]{FiinfraConstants.DELIVERYCHANNEL_ID} ,new BeanPropertyRowMapper<NotifyTemplate>(NotifyTemplate.class));\n\t\tbr.setResponseListObject(channelList); \n\t\tresponse=FiinfraResponseBuilder.getSuccessResponse(br, null);\n\t\t} \n\t\tcatch (DataAccessException e) {\n\t\t\tresponse = FiinfraResponseBuilder.getErrorResponse(e.getMessage().toString());\n\t\t} \n\t\tfinally\n\t\t{\n\t\t\treturn response;\n\t\t\t\t} \n\t}", "public static void sendResponse( String opName, String message, HttpServletResponse response) {\n \t \n \ttry {\n \t\t \t\t\n \t\t\n response.setContentType( \"application/vnd.ogc.se_xml\" ); \n XMLFragment doc = ConfigUtils.createResponseString( opName, message);\n OutputStream os = response.getOutputStream();\n doc.write( os );\n os.close();\n \n } catch (Exception e) {\n \te.printStackTrace();\n }\n }", "public void sendMessage(View view) {\n\t\t// Do something in response to button\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\n\t\tstartActivity(intent);\n\n\t}", "@OnClick(R.id.enter_chat1)\n public void sendMessage() {\n if (getView() == null) {\n return;\n }\n EditText editText = getView().findViewById(R.id.chat_edit_text1);\n sendMessageBackend(editText.getText().toString(), utils.getChatUser());\n updateListAdapter();\n editText.setText(\"\");\n }", "@Override\n\t \t\tpublic void handleMessage(Message msg) {\n\t \t\treceive();\n\t \t\t\t// myTextView.setText(String.valueOf(cnt));\n\t \t\t}", "private void process(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tAddModel model = Util.getModel(request, Const.RESULT);\n\t\t\n\t\t// Print the \"VIEW\" using the \"MODEL\"\n\t\tprintView(response, model);\n\t}", "protected void TextHttp() {\n\t\tLoginBean loginb = new LoginBean();\n\t\tloginb.setPhone(\"15236290644\");\n\t\tActivityDataRequest.getLoginCheck(TagConfig.TAG_MSG,this, loginb);\n\t\t\n\t\tLoginBean loginb2 = new LoginBean();\n\t\tloginb2.setPhone(\"15631001601\");\n\t\tActivityDataRequest.getLoginCheck(2,this, loginb2);\n\t\t\n\t}", "@RequestMapping(value=\"admin/messages\", method=RequestMethod.GET)\n public String showUserRequestedMessages(Model model){\n \n return \"admin/specialrequestmessages\";\n }", "public void getServerResponse() {\n\t\twhile (true) {\n\t\t\ttheMessage = readObject.readMessage();\n\t\t\tif (theMessage != null) {\n\t\t\t\tSystem.out.println(\"Server response is: \" + theMessage.getChoice());\n\t\t\t\tswitchBoard(theMessage.getChoice(), theMessage);\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void testMessageInMicroserivce() throws Exception {\n\t\tthis.mvc.perform(get(\"/first-api\"))\n\t\t.andDo(print())\n\t\t.andExpect(status().isOk())\n\t\t.andExpect(content().string(containsString(\"Welcome\")));\n\t}", "protected void doView (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doView method not implemented\");\n }", "@Override\n public void onResponse(String response) {\n if (type == 1) {\n DiaLogUtil.dismissDiaLog();\n } else {\n //刷新成功\n smartRefreshLayout.finishRefresh(true);\n }\n try {\n HomeBean homeBeanlist = (HomeBean) JsonUtils.stringToObject(response, HomeBean.class);\n Message msg = new Message();\n msg.what = 1;\n msg.obj = homeBeanlist;\n handler.sendMessage(msg);\n\n } catch (Exception e) {\n e.printStackTrace();\n setLogin();\n }\n }" ]
[ "0.6456878", "0.61655384", "0.6094098", "0.60428905", "0.60198814", "0.5996347", "0.599115", "0.5976319", "0.5929941", "0.5882809", "0.58720464", "0.5854895", "0.5838639", "0.58368224", "0.581497", "0.57900983", "0.575924", "0.5734432", "0.57280535", "0.57249904", "0.5721394", "0.57149976", "0.5713815", "0.5703934", "0.56771076", "0.5674528", "0.56642485", "0.56635624", "0.5663285", "0.5661", "0.5652381", "0.56304884", "0.5628573", "0.5620232", "0.5608742", "0.5608418", "0.55758625", "0.55737454", "0.55699337", "0.556767", "0.55647945", "0.5556724", "0.5555949", "0.5554434", "0.5549835", "0.5541382", "0.5541116", "0.55408716", "0.55373293", "0.55359477", "0.55346996", "0.5528609", "0.5527143", "0.5525996", "0.55185235", "0.5516526", "0.5515975", "0.5514172", "0.5506796", "0.5506483", "0.550254", "0.5499141", "0.5497855", "0.5496022", "0.5492371", "0.54894197", "0.5488829", "0.5487746", "0.5481689", "0.54814255", "0.5475624", "0.54701513", "0.5469387", "0.5469151", "0.54662573", "0.546184", "0.546138", "0.5455175", "0.5453058", "0.54528916", "0.54503804", "0.544881", "0.544881", "0.54465276", "0.543985", "0.5436791", "0.5435101", "0.5430785", "0.5428126", "0.54270244", "0.54266834", "0.5425829", "0.54255074", "0.5422644", "0.54203707", "0.541839", "0.54178774", "0.54162055", "0.5415518", "0.54136235" ]
0.64329374
1
Depending on the phone model, this function does not return the mobile number of the device hence it is being hardcoded
private String getMyPhoneNO() { String mPhoneNumber; TelephonyManager tMgr = (TelephonyManager) this.getActivity().getSystemService(Context .TELEPHONY_SERVICE); mPhoneNumber = tMgr.getLine1Number(); if(mPhoneNumber == null) mPhoneNumber = "+NoNotFound"; return mPhoneNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getMobile_phone();", "java.lang.String getUserPhone();", "public String getPhoneNumber(){\n\t\t \n\t\t TelephonyManager mTelephonyMgr;\n\t\t mTelephonyMgr = (TelephonyManager)\n\t\t activity.getSystemService(Context.TELEPHONY_SERVICE); \n\t\t return mTelephonyMgr.getLine1Number();\n\t\t \n\t\t}", "public Long getHome_phone();", "java.lang.String getPhone();", "String getMobile(String name);", "@Override\n public String getphoneNumber() {\n return ((EditText)findViewById(R.id.phoneNumberUserPage)).getText().toString().trim();\n }", "public String getMobileNum() {\n return mobileNum;\n }", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "public java.lang.String getMobile () {\r\n\t\treturn mobile;\r\n\t}", "public String getMobileNum() {\r\n\t\treturn mobileNum;\r\n\t}", "@Override\n\tpublic String getMobileNum() {\n\t\treturn get.getMobileNum();\n\t}", "public String getMobile() {\r\n return mobile;\r\n }", "public String getMobile() {\r\n return mobile;\r\n }", "@Override\n public String provideCustomerMobilePhone( )\n {\n return _signaleur.getIdTelephone( );\n }", "String getPhone(int type);", "public java.lang.String getMobilePhone() {\r\n return mobilePhone;\r\n }", "public String getMobile_number() {\n return mobile_number;\n }", "public java.lang.String getMobile_number() {\n return mobile_number;\n }", "public String getMobileNum() {\n\t\treturn mobileNum;\n\t}", "public String getMobilePhone() {\n return mobilePhone;\n }", "java.lang.String getPhonenumber();", "public String getMobile() {\n return mobile;\n }", "public String getMobile() {\n return mobile;\n }", "public String getMobile() {\n return mobile;\n }", "public String getMobile() {\n return mobile;\n }", "public String getMobile() {\n return mobile;\n }", "public String getMobile() {\n return mobile;\n }", "public String getMobile() {\n return mobile;\n }", "public String getMobile() {\n return mobile;\n }", "public String getMobile() {\n return mobile;\n }", "public String getMobile() {\n return mobile;\n }", "public String getMobile() {\n return mobile;\n }", "public String getMobile() {\n return mobile;\n }", "public String getMobile() {\n return mobile;\n }", "public String getMobile() {\n return mobile;\n }", "public String getMobileNumber() {\n return mobileNumber;\n }", "public String getMobile() {\n\t\treturn mobile;\n\t}", "public String getMobileNo() {\n return (String)getAttributeInternal(MOBILENO);\n }", "public String getMobilePhoneNumber() {\n\t\treturn mobilePhoneNumber;\n\t}", "private String generatePhone() {\n\t\tString ret = \"\";\n\t\tString[] areaCode = { \"051\", \"055\", \"045\", \"043\", \"053\" };\n\n\t\t// Gets an area code\n\t\tret = areaCode[(new Random()).nextInt(5)];\n\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tint n = (new Random()).nextInt(9);\n\n\t\t\t// Checks if the first number is 0\n\t\t\tif (i == 0 && n == 0) {\n\t\t\t\ti -= 1;\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tret += n;\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t}", "int getPhone();", "private String getMobileIP(){\n try {\n for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces();\n en.hasMoreElements();) {\n NetworkInterface networkinterface = en.nextElement();\n for (Enumeration<InetAddress> enumIpAddr = networkinterface.getInetAddresses(); enumIpAddr.hasMoreElements();) {\n InetAddress inetAddress = enumIpAddr.nextElement();\n if (!inetAddress.isLoopbackAddress()) {\n return inetAddress.getHostAddress().toString();\n }\n }\n }\n } catch (Exception ex) {\n Log.e(\"Current IP\", ex.toString());\n }\n return null;\n }", "public int getMobile() {return mobile;}", "public String getmobileNum() {\n\t\treturn _mobileNum;\n\t}", "@Override\n public String getPhoneNumber() {\n\n if(this.phoneNumber == null){\n\n this.phoneNumber = TestDatabase.getInstance().getClientField(token, id, \"phoneNumber\");\n }\n\n return phoneNumber;\n }", "private String getPrimaryNumber(long _id) {\n String primaryNumber = null;\n try {\n Cursor cursor = getContentResolver().query( ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n new String[]{ContactsContract.CommonDataKinds.Phone.NUMBER, ContactsContract.CommonDataKinds.Phone.TYPE},\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID +\" = \"+ _id, // We need to add more selection for phone type\n null,\n null);\n if(cursor != null) {\n while(cursor.moveToNext()){\n switch(cursor.getInt(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.TYPE))){\n case ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE :\n primaryNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_HOME :\n primaryNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_WORK :\n primaryNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_OTHER :\n }\n if(primaryNumber != null)\n break;\n }\n }\n } catch (Exception e) {\n Log.i(\"test\", \"Exception \" + e.toString());\n } finally {\n if(cursor != null) {\n cursor.deactivate();\n cursor.close();\n }\n }\n return primaryNumber;\n }", "public String returnPhoneNumber() {\n\t\treturn this.registration_phone.getAttribute(\"value\");\r\n\t}", "public String getMyPhoneNumber() {\n return ((TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE))\n .getLine1Number();\n }", "protected void validateMobileNumber(){\n /*\n Checking For Mobile number\n The Accepted Types Are +00 000000000 ; +00 0000000000 ;+000 0000000000; 0 0000000000 ; 00 0000000000\n */\n Boolean mobileNumber = Pattern.matches(\"^[0]?([+][0-9]{2,3})?[-][6-9]+[0-9]{9}\",getMobileNumber());\n System.out.println(mobileNumberResult(mobileNumber));\n }", "public static String m21396c() {\n return Build.MANUFACTURER;\n }", "public String getPhone(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, PHONE);\n\t}", "public String getPhone(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, PHONE);\n\t}", "public int getMobile() {\n\t\t\treturn Mobile;\r\n\t\t}", "private void getphoneinformaition() {\n\t\ttry {\n\t\t\tsoftVersion = this.getPackageManager().getPackageInfo(\n\t\t\t\t\tthis.getPackageName(), 0).versionName;\n\t\t} catch (NameNotFoundException e) {\n\t\t\tsoftVersion = \"NULL\";\n\t\t}\n\n\t\tif (Build.BRAND != null) {\n\t\t\tphoneBrand = Build.BRAND;\n\t\t}\n\t\tif (Build.MODEL != null) {\n\t\t\tphoneModel = Build.MODEL;\n\t\t}\n\t\tif (Build.VERSION.RELEASE != null) {\n\t\t\tphoneOs = Build.VERSION.RELEASE;\n\t\t}\n\n\t\ttry {\n\t\t\tDisplayMetrics metric = new DisplayMetrics();\n\t\t\tgetWindowManager().getDefaultDisplay().getMetrics(metric);\n\t\t\tint width = metric.widthPixels; // 屏幕宽度(像素)\n\t\t\tint height = metric.heightPixels; // 屏幕高度(像素)\n\t\t\tString w = String.valueOf(width);\n\t\t\tString h = String.valueOf(height);\n\t\t\tStringBuffer s = new StringBuffer();\n\t\t\ts.append(w);\n\t\t\ts.append(\"*\");\n\t\t\ts.append(h);\n\t\t\tphoneResolution = s.toString();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tphoneResolution = \"NULL\";\n\t\t}\n\n\t\tFileLog.i(TAG, softVersion);\n\t\tFileLog.i(TAG, phoneBrand);\n\t\tFileLog.i(TAG, phoneModel);\n\t\tFileLog.i(TAG, phoneOs);\n\t\tFileLog.i(TAG, phoneResolution);\n\n\t}", "public static String m567a(Context context) {\r\n if (context == null) {\r\n return null;\r\n }\r\n try {\r\n TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\r\n return telephonyManager != null ? telephonyManager.getDeviceId() : null;\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }", "public String generatePhoneId() {\n String device = Build.DEVICE.equals(\"generic\") ? \"emulator\" : Build.DEVICE;\n String network = getNetwork();\n String carrier = (network == NETWORK_WIFI) ?\n getWifiCarrierName() : getTelephonyCarrierName();\n\n StringBuilder stringBuilder = new StringBuilder(ANDROID_STRING);\n stringBuilder.append('-').append(device).append('_')\n .append(Build.VERSION.RELEASE).append('_').append(network)\n .append('_').append(carrier).append('_').append(getTelephonyPhoneType())\n .append('_').append(isLandscape() ? \"Landscape\" : \"Portrait\");\n\n return stringBuilder.toString();\n }", "public String getMobileCode() {\n return mobileCode;\n }", "public static String searchMobileNum (String body){\r\n\t\tif(body.contains(\":\")){\r\n\t\t\tif(body.indexOf(\":\") == 10){\r\n\t\t\t\tbody = body.substring(0, 10);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(isDigit(body))\r\n\t\t\treturn body;\r\n\t\telse return null;\r\n\t}", "int getPhoneTypeValue();", "public String getDeviceId() {\n //TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);\n String number = Build.SERIAL;\n return number;\n }", "public String getPhoneNo() {\n return (String)getAttributeInternal(PHONENO);\n }", "public String getUserMobile() {\n return userMobile;\n }", "public String getUserMobile() {\n return userMobile;\n }", "public String getMobileNumber(){\n return mobileNumber;\n }", "public final String getPhone() {\n return phone;\n }", "public static String m571c(Context context) {\r\n if (context == null) {\r\n return null;\r\n }\r\n try {\r\n TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(\"phone\");\r\n return telephonyManager != null ? telephonyManager.getLine1Number() : null;\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }", "public String getPhone() {\r\n\t\treturn this.phone;\r\n\t}", "public String getDeviceId() {\n String deviceId = ((TelephonyManager) LoginActivity.this.getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId();\n if (deviceId != null && !deviceId.equalsIgnoreCase(\"null\")) {\n // System.out.println(\"imei number :: \" + deviceId);\n return deviceId;\n }\n\n deviceId = android.os.Build.SERIAL;\n // System.out.println(\"serial id :: \" + deviceId);\n return deviceId;\n\n }", "@Override\r\n\tpublic String getPhone() {\n\t\treturn phone;\r\n\t}", "public abstract String getPhone3();", "public long getPhoneNumber() {\r\n\t\treturn phoneNumber;\r\n\t}", "private String getDeviceId(Context context){\n TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\n\n //\n ContextCompat.checkSelfPermission(context, Manifest.permission.READ_PHONE_STATE);\n String tmDevice = tm.getDeviceId();\n\n String androidId = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n String serial = null;\n if (Build.VERSION.SDK_INT > Build.VERSION_CODES.FROYO) serial = Build.SERIAL;\n\n if(tmDevice != null) return \"01\" + tmDevice;\n if(androidId != null) return \"02\" + androidId;\n if(serial != null) return \"03\" + serial;\n\n return null;\n }", "public String getUserPhone() {\r\n return userPhone;\r\n }", "public String getUserphone() {\n return userphone;\n }", "public String getCurrentCellid() {\n String cellidString = null;\n if (this.mTelephonyManager != null) {\n CellLocation mCellLocation = this.mTelephonyManager.getCellLocation();\n if (mCellLocation != null) {\n int type;\n if (mCellLocation instanceof CdmaCellLocation) {\n type = 1;\n Log.e(MessageUtil.TAG, \"getCurrentCellid type type = PHONE_TYPE_CDMA\");\n } else if (mCellLocation instanceof GsmCellLocation) {\n type = 2;\n Log.e(MessageUtil.TAG, \"getCurrentCellid type type = PHONE_TYPE_GSM\");\n } else {\n type = 0;\n }\n int cellid;\n switch (type) {\n case 1:\n Log.e(MessageUtil.TAG, \"getCurrentCellid type is PHONE_TYPE_CDMA\");\n CdmaCellLocation cdmaCellLocation = (CdmaCellLocation) mCellLocation;\n if (cdmaCellLocation != null) {\n int systemid = cdmaCellLocation.getSystemId();\n int networkid = cdmaCellLocation.getNetworkId();\n cellid = cdmaCellLocation.getBaseStationId();\n if (systemid >= 0 && networkid >= 0 && cellid >= 0) {\n cellidString = Integer.toString(systemid) + Integer.toString(networkid) + Integer.toString(cellid);\n Log.e(MessageUtil.TAG, \"getCurrentCellid PHONE_TYPE_CDMA cellidString = \" + cellidString);\n break;\n }\n return null;\n }\n break;\n case 2:\n Log.e(MessageUtil.TAG, \"getCurrentCellid type is PHONE_TYPE_GSM\");\n GsmCellLocation gsmCellLocation = (GsmCellLocation) mCellLocation;\n if (gsmCellLocation != null) {\n String plmn = this.mTelephonyManager.getNetworkOperator();\n cellid = gsmCellLocation.getCid();\n if (plmn != null && cellid >= 0) {\n cellidString = plmn + Integer.toString(cellid);\n Log.e(MessageUtil.TAG, \"getCurrentCellid PHONE_TYPE_GSM cellidString = \" + cellidString);\n break;\n }\n return null;\n }\n break;\n default:\n Log.e(MessageUtil.TAG, \"getCurrentCellid type is error\");\n break;\n }\n }\n return null;\n }\n Log.e(MessageUtil.TAG, \"getCurrentCellid mTelephonyManager == null\");\n return cellidString;\n }", "public java.lang.String getContactPhoneNumber()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTPHONENUMBER$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public java.lang.String getInternalphone() {\n\treturn internalphone;\n}", "public String getPhoneNum()\r\n {\r\n\treturn phoneNum;\r\n }", "public String getSMemMobile() {\n return sMemMobile;\n }", "public java.lang.String getPhone () {\n\t\treturn phone;\n\t}", "@Override\n\tpublic String getPhoneBrand()\n\t{\n\t\treturn \"Phone model is iPhone.\";\n\t}", "public String getPhoneNumber() throws NullPointerException {\n\n\t\tString phoneNumber = user.getPhoneNumber();\n\t\tif (phoneNumber == null || phoneNumber.isEmpty()) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\n\t\treturn Utils.formatPhoneNumber(phoneNumber);\n\t}", "private String getMobileNumber(){\n System.out.println(\"Enter The Mobile Number\");\n return sc.next();\n }", "public java.lang.String getTelphone () {\r\n\t\treturn telphone;\r\n\t}", "public String getPhone() {\n\t\treturn phone;\n\t}", "public String getMobliephone() {\n return mobliephone;\n }", "public String getPhone() {\n return _phone;\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getphoneNum() {\n\t\treturn _phoneNum;\n\t}", "public String getPhone() {\n return phone;\n }", "public String getPhone(){\n\t\treturn phone;\n\t}", "public static String enhanceMobileNumber(String oldNumber) {\n return oldNumber.replaceAll(\"[()\\\\s-]\", \"\").replace(\"+\", \"00\");\n }" ]
[ "0.74359983", "0.73217404", "0.7175345", "0.7127488", "0.7112499", "0.7071328", "0.6995708", "0.6961266", "0.69595873", "0.69595873", "0.69595873", "0.69579524", "0.6951972", "0.69302845", "0.6911618", "0.6911618", "0.6909839", "0.6904931", "0.69037515", "0.68729717", "0.6855377", "0.68483573", "0.6845712", "0.68407947", "0.682689", "0.682689", "0.682689", "0.682689", "0.682689", "0.682689", "0.682689", "0.682689", "0.682689", "0.682689", "0.682689", "0.682689", "0.682689", "0.682689", "0.6762845", "0.67545915", "0.67475474", "0.6744303", "0.6741463", "0.671576", "0.67085236", "0.6706083", "0.669749", "0.66740894", "0.66490203", "0.6642402", "0.6623408", "0.6611757", "0.66049385", "0.65951324", "0.65951324", "0.6585104", "0.65589505", "0.6537367", "0.6535757", "0.6525711", "0.6471623", "0.646722", "0.64593476", "0.6453709", "0.64499795", "0.64499795", "0.6440338", "0.6425404", "0.64219636", "0.64118475", "0.6406892", "0.63903385", "0.63640773", "0.6362022", "0.6358874", "0.63391304", "0.6338504", "0.6329423", "0.6326939", "0.63243294", "0.6322551", "0.63175476", "0.6313729", "0.631299", "0.6303674", "0.6294924", "0.6286617", "0.6275337", "0.62596464", "0.6244577", "0.62414867", "0.62414867", "0.62414867", "0.62414867", "0.62414867", "0.62414867", "0.6240405", "0.6239785", "0.62393856", "0.62375647" ]
0.73584294
1
getFacing() Purpose gets the direction of the used block
public String getFacing() { local = new Local(event); return local.getFacing(event.getBlock(), event.getBlock().getType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BlockFace getFacing() {\n/* 1017 */ return CraftBlock.notchToBlockFace(getHandle().getAdjustedDirection());\n/* */ }", "public String getFacing() {\r\n\t\treturn Facing;\r\n\t}", "public int getFinalFacing() {\n MoveStep last = getLastStep();\n if (last != null) {\n return last.getFacing();\n }\n return getEntity().getFacing();\n }", "protected int GetMaxSpacing() {\n\t\n return Card.HEIGHT/3;\n }", "private float getPadding() {\n return (getFont().size() - getPreferredWidth()) / 2f;\n }", "protected int GetMaxSpacing() {\n return Card.HEIGHT/3;\n }", "protected int GetMaxSpacing() {\n return Card.HEIGHT/3;\n }", "protected int GetMaxSpacing() {\n return Card.HEIGHT/3;\n }", "public float getMargin() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 28);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 28);\n\t\t}\n\t}", "public float getSpace() {\r\n return space;\r\n }", "public float getCharSpacing()\n {\n return (float) getStyle().getCharSpacing();\n }", "public final BlockFace getFacing() {\n if (m_entries.containsKey(FACING)) {\n final String facing = m_entries.get(FACING);\n if (facing == null) {\n return BlockFace.SELF;\n }\n \n if (facing.equalsIgnoreCase(FACE_DOWN)) {\n return BlockFace.DOWN;\n } else if (facing.equalsIgnoreCase(FACE_EAST)) {\n return BlockFace.EAST;\n } else if (facing.equalsIgnoreCase(FACE_NORTH)) {\n return BlockFace.NORTH;\n } else if (facing.equalsIgnoreCase(FACE_SOUTH)) {\n return BlockFace.SOUTH;\n } else if (facing.equalsIgnoreCase(FACE_UP)) {\n return BlockFace.UP;\n } else if (facing.equalsIgnoreCase(FACE_WEST)) {\n return BlockFace.WEST;\n } else {\n return BlockFace.SELF;\n }\n }\n\n return BlockFace.SELF;\n }", "public double getSpace() {\n\treturn space;\n }", "public double getBorderDamagePerBlock()\n {\n return borderDamagePerBlock;\n }", "public int getContractAmt (int currentBar, int blockHt) {\n\t\tint barPosition = currentBar + FIRST_BAR_POSITION; \t\t\t\t\t\t\t\t\t\t\t//variable bar position represents the horizontal position of any given bar\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//(the bars position within the array plus the value of the position of the first bar in the program (a constant))\n\t\t\n\t\tint contractAmt = 0;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tif (blockHt == 3) { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tcontractAmt = SOURCE_LOCATION - barPosition; \t\t\t\t\t\t\t\t\t\t\t//the amount to contract the arm is the difference between the location of the source pile and the position of the current bar within a given loop \n\t\t\t}\n\t\t\telse if (blockHt == 2)\t{ \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tcontractAmt = SOURCE_LOCATION - TARGET_2; \t\t\t\t\t\t\t\t\t\t\t\t//the amount to contract the arm is the difference between the location of the source pile and the target column 2 \n\t\t\t}\n\t\t\telse if (blockHt == 1)\t{ \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t contractAmt = SOURCE_LOCATION - TARGET_1; \t\t\t\t\t\t\t\t\t\t\t\t//the amount to contract the arm is the difference between the location of the source pile and the target column 1 \n\t\t\t}\n\t\t\treturn contractAmt; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//return the value to contract the width arm by \n\t\n}", "@Override\n\tpublic int getFacing() {\n\t\treturn 0;\n\t}", "public float getDirection();", "public int getBlockZ()\n\t {\n\t\t if(z >= 0.0) return (int)z;\n\t\t return -1 + (int)(z);\n\t }", "@NonNull\n public Integer getSpacingInInches() {\n return spacingInInches;\n }", "public int getVSpacing() {\n return (((Integer) (data[GENERAL_VSPACING][PROP_VAL_VALUE])).intValue());\n }", "public double getDirectionFace();", "public float getSpaceBesideCallCard() {\n if (mInCallActivity != null && mInCallActivity.getCallCardFragment() != null) {\n return mInCallActivity.getCallCardFragment().getSpaceBesideCallCard();\n }\n return 0;\n }", "int getPadding();", "com.ctrip.ferriswheel.proto.v1.Placement getAlign();", "private void computeFacing() {\n\t\tfacing = GeometryUtil.getAngle(p1, p2) + 90;\n\t}", "@Override\n\tpublic double getZLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn z-side;\n\t}", "public int getHSpacing() {\n return (((Integer) (data[GENERAL_HSPACING][PROP_VAL_VALUE])).intValue());\n }", "public abstract int getSpotsNeeded();", "public int getThickness ()\r\n {\r\n return glyph.getBounds().height;\r\n }", "private int getBearing() {\n\t\treturn 0;\r\n\t}", "public int getAlignment()\n {\n return align;\n }", "public float getThickness(){\n return thickness;\n }", "public String getIndentFiller() {\n return spaceFill;\n }", "@Override\n\tpublic double getMountedYOffset() {\n\t\treturn (isSitting() ? 1.7f : 2.2f) * getScale();\n\t}", "public int getBlock(){\n return this.position.getCurrentBlock();\n }", "int getBlocksAmount();", "public float getGravity()\n {\n return gravity;\n }", "public int getColspan() \n {\n return 1;\n }", "public float getZ()\n {\n return fz;\n }", "public int space(){\n return (tableSize - usedIndex);\n }", "public int getAlignment()\n {\n return bouquet.getAlignment();\n }", "int getBlockNumber();", "int getBlockNumber();", "double getHeaderMargin();", "private int getPadding() {\r\n\t\tint lengthNotBricks = getWidth() - (BRICKS_IN_BASE * BRICK_WIDTH);\r\n\t\treturn (lengthNotBricks / 2);\r\n\t}", "public int getAlignment() {\n/* */ return this.newAlign;\n/* */ }", "public int getBlockY()\n\t {\n\t\t if(y >= 0.0) return (int)y;\n\t\t return -1 + (int)(y);\n\t }", "int getAlignValue();", "@DISPID(101) //= 0x65. The runtime will prefer the VTID if present\r\n @VTID(12)\r\n float spaceAfter();", "DSpace getSpace();", "public double getCardGap() {\n return cardGap;\n }", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "@Override\r\n\tpublic int getStrike() {\n\t\treturn 0;\r\n\t}", "public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }", "int getCap();", "public float getDirection()\r\n {\r\n return direction;\r\n }", "public float getAlignmentY() { return 0.5f; }", "public int getCurrentAngle(){\n return flatbed.currentAngle;\n }", "final public int getPoints() {\r\n\t\tif (wildcard) {\r\n\t\t\treturn 20;\r\n\t\t}\r\n\t\t\r\n\t\tif (isJoker()) {\t\t\t\r\n\t\t\treturn 50;\r\n\t\t}\r\n\t\t\r\n\t\treturn face;\r\n\t}", "public char getFillingDirection() {\n\t\treturn dir;\n\t}", "public int getAlignment() {\r\n return Alignment;\r\n }", "public int getAlignment() {\r\n return Alignment;\r\n }", "int getBlockNumber(int x, int y);", "private int getSidePadding() {\r\n\t\t// Padding between rectangles\r\n\t\tint rectPadding = RECT_HEIGHT / 2;\r\n\t\tint rectsAndPadding = (3 * RECT_WIDTH) + (2 * rectPadding);\r\n\t\treturn ((getWidth() - rectsAndPadding) / 2);\r\n\t}", "int getDirection();", "int getGravity() {\n return mTn.mGravity;\n }", "private int getIndent(int yPos) {\n\t\tint rootIndent = (getSlotCount() - 1) * (xspacing + 1) / 2 + (xspacing + 1);\n\t\treturn rootIndent - (xspacing + 1) / 2 * yPos;\n\t}", "public float getSizeY(){return sy;}", "public int getCargoSpace() {\n return cargoSpace;\n }", "com.ctrip.ferriswheel.proto.v1.Placement getVerticalAlign();", "public double getDirectionView();", "public int getBoxesPerLinePlace() {\n\t\treturn (int)(this.boxesPerLinePlace);\n\t}", "default Integer getGravity() {\n return null;\n }", "public int getDirection();", "protected short getIndentSize() {\n return (short) (tabLevel * tabSize);\n }", "public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }", "public float getSpring_damping_z() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 112);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 104);\n\t\t}\n\t}", "public int getTakeSpace() {\n return 0;\n }", "protected void calculateStickerMargin () {\r\n \t\tif (mNextSectionChild != INVALID_POSITION) {\r\n \t\t\tfinal int top = getChildAt(mNextSectionChild).getTop();\r\n \t\t\tfinal int height = mStickerSection.getHeight();\r\n \r\n \t\t\tif (top < 0 || top > height) {\r\n \t\t\t\tmStickerMargin = 0;\r\n \t\t\t} else {\r\n \t\t\t\tmStickerMargin = top - height;\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tmStickerMargin = 0;\r\n \t\t}\r\n \t}", "public double getFlippedYInches()\r\n {\n return Constants.selectedField.getWidth() - getUnflippedYInches();\r\n }", "public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int meta, float p_149727_7_, float p_149727_8_, float p_149727_9_)\n\t {\n//\t if (this.blockMaterial == Material.iron)\n//\t {\n//\t return false; //Allow items to interact with the door\n//\t }\n//\t else\n//\t {\t \t\n\t int i1 = this.func_150012_g(world, x, y, z);\n\t int j1 = i1 & 7;\n\t j1 ^= 4;\n\t int i = i1 & 3;\n//\t System.out.print(\" Direction :\");\n\t Block b=null;\n\t int x2=x;\n\t int y2=y;\n\t int z2=z;\n\t switch(i){\n\t case 0:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[2];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[2];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[3];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[3];\n\t \t}\n//\t \tSystem.out.print(\"WEST \"+Integer.toString(i, 2)+\" : \"+Integer.toString(4, 2));\n\t \tbreak;\n\t case 1:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[5];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[5];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[4];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[4];\n\t \t}\n//\t \tSystem.out.print(\"NORTH \"+Integer.toString(i, 2)+\" : \"+Integer.toString(2, 2));\n\t \tbreak;\n\t case 2:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[3];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[3];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[2];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[2];\n\t \t}\n\t \t\n//\t \tSystem.out.print(\"EAST \"+Integer.toString(i, 2)+\" : \"+Integer.toString(5, 2));\n\t \tbreak;\n\t case 3:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[4];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[4];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[5];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[5];\n\t \t}\n//\t \tSystem.out.print(\"SOUTH \"+Integer.toString(i, 2)+\" : \"+Integer.toString(3, 2));\n\t \tbreak;\n\t }\n\t b=world.getBlock(x2, y2, z2);\n//\t System.out.print(\" : \"+b+\" : \");\n\t\t\t\t/*\nDirection :SOUTH 11 : 100 Open :Open Y :1 Side :Right\nDirection :NORTH 01 : 010 Open :Open Y :1 Side :Left\nDirection :EAST 10 : 101 Open :Open Y :1 Side :Left\nDirection :WEST 00 : 100 Open :Open Y :1 Side :Left\n\t\t\t\t */\n//\t System.out.print(\" Open :\"+(((j1 & 4) >> 2)==0?\"Closed\":\"Open\"));\n//\t System.out.print(\" Y :\"+Integer.toBinaryString( (i1 & 8) >>3 ));\n//\t System.out.print(\" Side :\"+(((i1 & 16) >> 4)==0?\"Right\":\"Left\"));\n\t \n//\t System.out.println();\n\t \n\n\t if ((i1 & 8) == 0)\n\t {\n\t world.setBlockMetadataWithNotify(x, y, z, j1, 2);\n\t world.markBlockRangeForRenderUpdate(x, y, z, x, y, z);\n\t if( b!=null && b==this){\n\t \tworld.setBlockMetadataWithNotify(x2, y2, z2, j1, 2);\n\t \t world.markBlockRangeForRenderUpdate(x2, y2, z2, x2, y2, z2);\n\t }\n\t }\n\t else\n\t {\n\t world.setBlockMetadataWithNotify(x, y - 1, z, j1, 2);\n\t world.markBlockRangeForRenderUpdate(x, y - 1, z, x, y, z);\n\t if( b!=null && b==this){\n\t \tworld.setBlockMetadataWithNotify(x2, y2-1, z2, j1, 2);\n\t \t world.markBlockRangeForRenderUpdate(x2, y2-1, z2, x2, y2, z2);\n\t }\n\t }\n\n\t world.playAuxSFXAtEntity(player, 1003, x, y, z, 0);\n\t return true;\n//\t }\n\t }", "public int getDesplaceOffsetY(){\n\t\tif(style==Style.ROUTES){\r\n\t\t\treturn -17;\r\n\t\t}else{\r\n\t\t\treturn -10;\r\n\t\t}\r\n\t}", "private BlockFace setAttachedFace() {\r\n Block check = null;\r\n \r\n Block sign = this.getBlock();\r\n \r\n org.bukkit.material.Sign material = this.getSignMaterial();\r\n \r\n BlockFace attachedTo = null; \r\n switch (material.getFacing().getOppositeFace()) {\r\n case NORTH:\r\n case EAST:\r\n case SOUTH:\r\n case WEST:\r\n check = sign.getRelative(material.getFacing().getOppositeFace());\r\n if (!check.getType().equals(Material.CHEST)) return null;\r\n if (Lock.getLock(check) != null) return null;\r\n attachedTo = material.getFacing().getOppositeFace();\r\n break;\r\n case NORTH_EAST:\r\n check = sign.getRelative(BlockFace.NORTH);\r\n if (check.getType().equals(Material.CHEST) \r\n && Lock.getLock(check) == null) {\r\n attachedTo = BlockFace.NORTH;\r\n break;\r\n }\r\n check = sign.getRelative(BlockFace.EAST);\r\n if (!check.getType().equals(Material.CHEST)) return null; \r\n if (Lock.getLock(check) != null) return null;\r\n attachedTo = BlockFace.EAST;\r\n break;\r\n case SOUTH_EAST:\r\n check = sign.getRelative(BlockFace.SOUTH);\r\n if (check.getType().equals(Material.CHEST) \r\n && Lock.getLock(check) == null) {\r\n attachedTo = BlockFace.SOUTH;\r\n break;\r\n }\r\n check = sign.getRelative(BlockFace.EAST);\r\n if (!check.getType().equals(Material.CHEST)) return null; \r\n if (Lock.getLock(check) != null) return null;\r\n attachedTo = BlockFace.EAST;\r\n break;\r\n case SOUTH_WEST:\r\n check = sign.getRelative(BlockFace.SOUTH);\r\n if (check.getType().equals(Material.CHEST) \r\n && Lock.getLock(check) == null) {\r\n attachedTo = BlockFace.SOUTH;\r\n break;\r\n }\r\n check = sign.getRelative(BlockFace.WEST);\r\n if (!check.getType().equals(Material.CHEST)) return null; \r\n if (Lock.getLock(check) != null) return null;\r\n attachedTo = BlockFace.WEST;\r\n break;\r\n case NORTH_WEST:\r\n check = sign.getRelative(BlockFace.NORTH);\r\n if (check.getType().equals(Material.CHEST) \r\n && Lock.getLock(check) == null) {\r\n attachedTo = BlockFace.NORTH;\r\n break;\r\n }\r\n check = sign.getRelative(BlockFace.WEST);\r\n if (!check.getType().equals(Material.CHEST)) return null; \r\n if (Lock.getLock(check) != null) return null;\r\n attachedTo = BlockFace.WEST;\r\n break;\r\n }\r\n \r\n return this.setAttachedFace(attachedTo);\r\n }", "public int getDesplaceOffsetX(){\n\t\tif(style==Style.ROUTES){\r\n\t\t\treturn -10;\r\n\t\t}else{\r\n\t\t\treturn -6;\r\n\t\t}\r\n\t}", "public float getRequiredBracingTable13_1(double actualDiameter, TypeOfBracing typeOfBracing) throws MyApplicationException, SQLException{\n\n\n\t\t//creating the resources\n\n\t\tPreparedStatement preparedStatment = null;\n\n\t\tConnection connection = null;\n\n\t\t//for extracting\n\t\tResultSet resultSet = null;\n\n\t\ttry{\n\n\t\t\tconnection = JdbcUtils.getConnection();\n\t\t\tString sqlQuery;\n\n\t\t\tsqlQuery = \"SELECT * FROM TABLE13_1 WHERE MINDIAMETER<=? AND MAXDIAMETER>=? \";\n\n\t\t\tpreparedStatment = connection.prepareStatement(sqlQuery);\n\n\t\t\tpreparedStatment.setDouble(1,actualDiameter);\n\t\t\tpreparedStatment.setDouble(2, actualDiameter);\n\n\t\t\tresultSet = preparedStatment.executeQuery();\n\n\t\t\t//check if i get values from DB , if not =false --> null, if yes has value and cursor move forward\n\t\t\tif (resultSet.next()==false){\n\t\t\t\treturn 0;\t\t\t\n\t\t\t}\n\t\t\tif (typeOfBracing.equals(TypeOfBracing.CHANNEL)){\n\t\t\t\treturn resultSet.getFloat(\"CHANNELS SECTION MODULUS(INCH^3)\");\n\t\t\t}else{\t\t\t\n\t\t\t\treturn resultSet.getFloat(\"I-BEAMS SECTION MODULUS(INCH^3)\");\n\t\t\t}\n\n\t\t}catch (Exception e){\n\t\t\tthrow new MyApplicationException(e, ErrorType.GENERAL_ERROR,\"COULD NOT RETRIEVE BRACING FOR TANK ACTUAL CALCULATED CAPACITY: \\\"\" + actualDiameter +\"\\\"[liter]\");\n\t\t}\n\n\t\tfinally{\n\n\t\t\tJdbcUtils.closeResources(connection, preparedStatment, resultSet);\n\t\t}\n\n\n\t}", "public double passAlign() {\n \tdouble angle;\n \tif (MasterController.ourSide == TeamSide.LEFT) {\n \t\tangle = angleToX();\n \t} else {\n \t\tangle = angleToNegX();\n \t}\n \tdouble amount = -0.7 * angle;\n\t\tDebug.log(\"Angle: %f, Rotating: %f\", angle, amount);\n\t\trotate(amount); // TODO: Test if works as expected\n\t\treturn amount;\n\t}", "@Override\n\tpublic double getMyRidingOffset() {\n\t\treturn -0.6D;\n\t}", "int align();", "public int elevation(){\n return elevation;\n }", "public double getRrSpacing() {\n return rrSpacing;\n }", "public double getWidthInDeg();", "public int getBlockSize()\n/* */ {\n/* 43 */ return this.blockSize;\n/* */ }", "protected Space getSpace() {\n return space;\n }", "public int getStartingPos ()\r\n {\r\n if ((getThickness() >= 2) && !getLine()\r\n .isVertical()) {\r\n return getLine()\r\n .yAt(getStart());\r\n } else {\r\n return getFirstPos() + (getThickness() / 2);\r\n }\r\n }", "public long getBlockSize ( ) {\r\n\t\tif (current_block >= getBlockCount())\r\n\t\t\treturn 0;\r\n\r\n\t\tif (current_block == getBlockCount() -1)\r\n\t\t\treturn 3670;\r\n\r\n\t\treturn 10000;\r\n\t}", "void block(Directions dir);", "int getLineHeight() {\n\treturn ascent + descent;\n}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "public int getSlots() {\n\t\treturn this.rows * 9;\n\t}", "@Override\n\t public BlockState getStateForPlacement(World worldIn, BlockPos pos, Direction facing, float hitX, float hitY, float hitZ, int meta, LivingEntity placer)\n\t {\n\t\t\tBlockState basetype = this.getStateFromMeta(meta);\n\t if (facing.getAxis().isHorizontal() /*&& this.canAttachTo(worldIn, pos.offset(facing.getOpposite()), facing)*/)\n\t {\n\t return basetype.withProperty(FACING, facing);\n\t }\n\t else\n\t {\n\t \tif(worldIn.getBlockState(pos.down()).getBlock() instanceof BlockTGLadder) {\n\t \t\tBlockState statedown = worldIn.getBlockState(pos.down());\n\t \t\treturn basetype.withProperty(FACING, statedown.getValue(FACING));\n\t \t} else if (worldIn.getBlockState(pos.up()).getBlock() instanceof BlockTGLadder) {\n\t \t\tBlockState stateup = worldIn.getBlockState(pos.up());\n\t \t\treturn basetype.withProperty(FACING, stateup.getValue(FACING));\n\t \t}\n\t \t\n\t \treturn basetype.withProperty(FACING, placer.getHorizontalFacing().getOpposite());\n\t }\n\t }" ]
[ "0.645121", "0.6181", "0.61685425", "0.606192", "0.60470086", "0.60225916", "0.60225916", "0.60225916", "0.601234", "0.58574206", "0.5792801", "0.56889427", "0.56819516", "0.56681335", "0.5609102", "0.5502923", "0.547388", "0.5469987", "0.5456898", "0.5445039", "0.54356265", "0.5422342", "0.5419097", "0.54179996", "0.5400515", "0.5395548", "0.53729516", "0.5359756", "0.53587425", "0.5355932", "0.5355563", "0.5341072", "0.5334103", "0.5324064", "0.53137666", "0.53064597", "0.5305731", "0.5305274", "0.52932703", "0.5283212", "0.52751034", "0.5266328", "0.5266328", "0.526055", "0.52599496", "0.5248197", "0.5233385", "0.5229746", "0.5209554", "0.5206402", "0.5206378", "0.52036923", "0.51967174", "0.51940125", "0.5185113", "0.5180576", "0.5176272", "0.5173678", "0.51644266", "0.51532346", "0.51529276", "0.51529276", "0.5148972", "0.5145684", "0.51393473", "0.51380384", "0.5134339", "0.5132859", "0.5122869", "0.5118803", "0.5115663", "0.5109474", "0.51071846", "0.51061624", "0.5099428", "0.5098905", "0.5089044", "0.5086242", "0.5082786", "0.5072919", "0.5070224", "0.50624084", "0.50620383", "0.50538117", "0.5051055", "0.5046113", "0.5044757", "0.5042811", "0.50405586", "0.5030263", "0.5029005", "0.5026509", "0.5023431", "0.50232196", "0.50230765", "0.501989", "0.5017429", "0.5014427", "0.50129783", "0.50102556" ]
0.58389735
10
Checks if the given index idx is in the list's bounds.
private boolean checkIndexBounds(int idx) { return (idx >= 0) && (idx <= this.length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean validIndex(int idx) {\n return idx >= 0 && idx < len;\n }", "private boolean checkRange(final int index) {\n if ((index > size) || (index < 0)) {\n return false;\n }\n return true;\n }", "public boolean indexCheck(int index) {\n return (index >= 0 && index <= size) ? true : false;\n }", "private boolean isInBound(int current, int bound){\n return (current >= 0 && current < bound);\n }", "public int isInBounds(T a);", "private boolean outOfBounds(int nidx1){\n\t\treturn (nidx1 < 0 || nidx1 >= numofvert);\n\t}", "private boolean isInBounds(int i, int j)\n {\n if (i < 0 || i > size-1 || j < 0 || j > size-1)\n {\n return false;\n }\n return true;\n }", "private boolean cell_in_bounds(int row, int col) {\n return row >= 0\n && row < rowsCount\n && col >= 0\n && col < colsCount;\n }", "private boolean isBetweenBounds(int x, int y, int[] bounds) {\n return x >= bounds[0] && x <= bounds[2] && y >= bounds[1] && y <= bounds[3];\n }", "public boolean rangeCheck(int index) {\n\t\tif (index >= 0 && index <= 7) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean inBounds(int row, int col)\n {\n return ((row >= 0) && (row < NUM_ROWS) &&\n (col >= 0) && (col < NUM_COLS)); \n }", "public boolean checkValidIndex(int index) {\n return index >= 0 && index <= lines.getList().size();\n }", "boolean isInInterval(int baseIndex);", "private boolean isOutOfBounds(int index) {\n return index < 0 || index >= this.size();\n }", "private boolean isValid(int index) {\r\n return index >= 0 && index < dimension;\r\n }", "private void checkRange(int index) {\n if ((index < 0 || index >= curSize))\n throw new IndexOutOfBoundsException(\"Index: \" + index + \" is out of bounds. Size = \" + size());\n }", "private boolean arrayBounds (int index, int max) {\n\t\treturn (index >= 0 && index < max );\n\t}", "private boolean isVecInsideXYBounds(World world, BlockPos pos, Vec3 vec) {\n double[] bounds = getBlockBounds(world, pos);\n return bounds!=null && vec!=null && vec.xCoord>=bounds[0] && vec.xCoord<=bounds[3] && vec.yCoord>=bounds[1] && vec.yCoord<=bounds[4];\n }", "private boolean outOfBounds(long n) {\n return n < 0 || n >= getSize();\n }", "private boolean rangeCheck(int i){\n return i >= 0 && i < size;\n }", "public boolean isWithinStackCapacity(int index)\n {\n // if outside of bound of array, return false\n if(index < 0 || index >= values.length)\n {\n return false;\n }\n\n // if index wraps around adjust it.\n int contiguousIndex = index < start ? index + values.length : index;\n int end = start + capacity;\n return start <= contiguousIndex && contiguousIndex < end; \n }", "private void RangeCheck(int index) {\r\n if (index >= size || index < 0)\r\n throw new IndexOutOfBoundsException(\"Index: \"+index+\", Size: \"+size);\r\n }", "@Override\n\tpublic boolean isValidIndex(long index) {\n\t\ttry {\n\t\t\tif (isEmtpy || Long.compareUnsigned(index, maxOffset) > 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn memory.contains(getAddress(index));\n\t\t}\n\t\tcatch (IOException | AddressOutOfBoundsException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean isElementIndex(final long index) {\r\n\t\treturn index >= 0 && index < size;\r\n\t}", "public static boolean inRange (Position defPos, Position atkPos, int range) {\n\t\tint defX = defPos.getX();\n\t\tint defY = defPos.getY();\n\t\t\n\t\tint atkX = atkPos.getX();\n\t\tint atkY = atkPos.getY();\n\t\t\n\t\tif (defX -range <= atkX &&\n\t\t\t\tdefX + range >= atkX)\n\t\t{\n\t\t\tif (defY -range <= atkY &&\n\t\t\t\t\tdefY+range >= atkY)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean isInBounds(int row, int col) {\n return row >= 0 && row < grid.length && col >= 0 && col < grid[0].length;\n }", "@Override\n public boolean inBounds(int x, int y) {\n return x >= 0 && y >= 0 && x < this.bounds.width\n && y < this.bounds.height;\n }", "private boolean inBounds(int row, int col){\n if (row > -1 && row < 120 && col > -1 && col < 160)\n return true;\n return false;\n }", "private boolean tileIsInbounds(int row, int col){\n\t\treturn row >= 0 && col >= 0\n\t\t\t\t&& row < board.length && col < board[0].length;\n\t}", "public boolean isIndexInMyRange(String index) {\n\t\tif (this.getFromIndex().compareTo(this.getToIndex()) > 0) {\n\t\t\tif (index.compareTo(this.getFromIndex()) >= 0)\n\t\t\t\treturn true;\n\t\t\telse {\n\t\t\t\treturn (index.compareTo(this.getToIndex()) <= 0);\n\t\t\t}\n\t\t}\n\t\t// for the other nodes\n\t\telse\n\t\t\treturn (index.compareTo(this.getFromIndex()) >= 0 && index\n\t\t\t\t\t.compareTo(this.getToIndex()) <= 0);\n\n\t}", "private boolean validateIndex(int index)\n {\n return index >= 0;\n }", "private boolean isPositionIndex(final long index) {\r\n\t\treturn index >= 0 && index <= size;\r\n\t}", "public boolean contains(Index position) { // TODO rename: adjoinsOrContains\n return position != null && position.getX() + 1 >= start.getX() && position.getY() + 1 >= start.getY() && position.getX() <= end.getX() && position.getY() <= end.getY();\n }", "public boolean esValidoElIndice(int indice){\n return (indice > 0 && indice< tareas.size());\n }", "private boolean checkInBounds(int startX, int startY, int finalX, int finalY) {\r\n\t\treturn startX < 0 || startX >= this.SIZE || startY < 0 || startY >= this.SIZE\r\n\t\t\t\t|| finalX < 0 || finalX >= this.SIZE || finalY < 0 || finalY >= this.SIZE;\r\n\t}", "public static boolean isInRange(int i, int topBoundary) {\n return 0 <= i && i < topBoundary;\n }", "@Contract(pure = true)\n default boolean isDefinedAt(int index) {\n return index >= 0 && sizeGreaterThan(index);\n }", "private boolean checkRange(int rowIndex, int columnIndex) {\n return rowIndex >= 0 && rowIndex < matrix.length\n && columnIndex >= 0 && columnIndex < matrix[rowIndex].length;\n\n }", "public Boolean boundaryCheck(int addr) {\r\n\t\t// Make sure address is less than LIMIT and SP, and greater than base\r\n\t\tif (addr < getLIM() && addr < getSP() && addr >= getBASE()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tm_TH.interruptIllegalMemoryAccess(addr);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean checkSubBoundary(Index3D idx, Index3D center) {\n if (idx.i1() - center.i1() <= subVolumeSizeRadius &&\n idx.i2() - center.i2() <= subVolumeSizeRadius &&\n idx.i3() - center.i3() <= subVolumeSizeRadius &&\n center.i1() - idx.i1() <= subVolumeSizeRadius &&\n center.i2() - idx.i2() <= subVolumeSizeRadius &&\n center.i3() - idx.i3() <= subVolumeSizeRadius\n ) {\n return true;\n } else {\n return false;\n }\n }", "private boolean intervalContains(double target, int coordIdx) {\n double midVal1 = orgGridAxis.getCoordEdge1(coordIdx);\n double midVal2 = orgGridAxis.getCoordEdge2(coordIdx);\n boolean ascending = midVal1 < midVal2;\n return intervalContains(target, coordIdx, ascending, true);\n }", "public boolean isPositionInBounds(Vector vector) {\n\t\tif (vector == null) {\n\t\t\tthrow new NullPointerException();\n\t\t} else {\n\t\t\treturn vector.getX() < size && vector.getY() < size && vector.getX() >=0 && vector.getY() >= 0;\n\t\t}\n\t}", "public boolean inBounds(Rectangle bounds)\n\t{\n\t\treturn bounds.contains(mX, mY);\n\t}", "public boolean isWithinStack(int index, int total_size){\n\t\tif(start <= index && index < start + capacity){ //index在start和start + capacity之间\n\t\t\t//no wrapping, or \"head\" (right size) of wrapping case\n\t\t\treturn true;\n\t\t} else if(start + capacity > total_size && index < (start + capacity)%total_size){ //start+capacity大于总长度,并且index < ..\n\t\t\t//tail of wrapping case\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean isInsideValidRange (int value)\r\n\t{\r\n\t\treturn (value > m_lowerBounds && value <= m_upperBounds);\r\n\t}", "protected boolean inValidRange(long windowIndex) {\n return windowIndex >= _oldestWindowIndex && windowIndex <= currentWindowIndex() - 1;\n }", "public boolean containsKey(Object index) {\n int i;\n return (i = ((Number) index).intValue()) >= 0 && i + start < size;\n }", "public void assertIndexInRange(int index) {\n assert index >= 0;\n }", "private void checkBounds(final int row, final int col) {\n if (row <= 0 || row > size) {\n throw new IndexOutOfBoundsException(\n \"row index \" + row + \" out of bounds\"\n );\n }\n if (col <= 0 || col > size) {\n throw new IndexOutOfBoundsException(\n \"col index \" + col + \" out of bounds\"\n );\n }\n }", "private boolean isInBounds(int x, int y) {\r\n\t\treturn x >= 0 && y >= 0 && x < getWidth() && y < getHeight();\r\n\t}", "private void checkRange(int index) {\n\t\tif (index < 0 || index >= array.length()) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Index \" + index + \" is out of bouds [0, \" + array.length() + \"]\");\n\t\t}\n\t}", "private boolean isInBounds(float x, float y) {\n\n if (x <= 0 || x >= this.getWidth() || y <= 0 || y >= this.getHeight()) {\n\n return false;\n }\n return new RectF(0, 0, this.getWidth(), this.getHeight())\n .contains(x, y);\n }", "public boolean collision( Point cur, ArrayList<Point> bounds ) {\n\t\t\n\t\tfor ( int i = 0; i < bounds.size(); i++ )\n\t\t\tif ( cur.equals( bounds.get(i) ) )\n\t\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "public abstract boolean isOutOfBounds(int x, int y);", "public boolean isInBounds(int x, int y) {\r\n boolean check = false;\r\n if (x>=0 && x<this.width && y>=0 && y<this.tiles.length/this.width) {\r\n check = true;\r\n }\r\n return check;\r\n }", "private boolean isInRange(int a, int b, int c) {\n return c >= a ;\n }", "public boolean boundsContains(double[] pt){\n return bounds.contains(pt);\n }", "public boolean containsOffset(int offs) {\r\n\t\treturn offset!=null && endOffset!=null &&\r\n\t\t\t\toffs>=offset.getOffset() && offs<=endOffset.getOffset();\r\n\t}", "boolean contains(int idx);", "boolean inViewport(final int index) {\n resetViewport(start);\n return index >= start && index <= end;\n }", "public static boolean boundCheck(int xCoord, int yCoord) {\n // the x,y coordinates ranges between 0 and 7 in the board array and because of that they need to be adjusted\n return (xCoord + 1 <= Board.X_UPPER_BOUND && xCoord + 1 >= Board.X_LOWER_BOUND &&\n yCoord + 1 <= Board.Y_UPPER_BOUND && yCoord + 1 >= Board.Y_LOWER_BOUND);\n }", "private boolean isValidIndex(final int theY, final int theX) {\n return 0 <= theY && theY < myGrid.length\n && 0 <= theX && theX < myGrid[theY].length;\n }", "public static boolean isSet(ArrayList<?> list, Integer index) {\r\n\t\t return index != null && index >=0 && index < list.size() && list.get(index) != null;\r\n\t}", "public boolean isInBounds( int row, int col ) {\n return row >= 0 && col >= 0 && row < mat.getNumRows() && col < mat.getNumCols();\n }", "private boolean isIndexExist(int index) {\n return index >= 0 && index < size();\n }", "private boolean validIndex(int index)\n {\n if(index >= 0 && index < songs.size())\n return true;\n else\n {\n System.out.println(\"not valid number as index\");\n return false;\n }\n }", "public boolean inBounds(Board board) {\n return row >= 0 && column >= 0\n && row < board.nQueens && column < board.nQueens;\n }", "private static void rangeCheck(int arrayLen, int fromIndex, int toIndex) {\n\t\tif (fromIndex > toIndex)\n\t\t\tthrow new IllegalArgumentException(\"fromIndex(\" + fromIndex +\n\t\t\t\t\t\") > toIndex(\" + toIndex+\")\");\n\t\tif (fromIndex < 0)\n\t\t\tthrow new ArrayIndexOutOfBoundsException(fromIndex);\n\t\tif (toIndex > arrayLen)\n\t\t\tthrow new ArrayIndexOutOfBoundsException(toIndex);\n\t}", "private void rangeCheck(int index) {\n if (index >= this.values.length) {\n throw new ArrayIndexOutOfBoundsException(\"Index of out bounds!\");\n }\n }", "public boolean inRange(Vector v) {\r\n\t\tdouble w = v.get(0);\r\n\t\tdouble x = v.get(1);\r\n\t\tdouble y = v.get(2);\r\n\t\tdouble z = v.get(3);\r\n\t\tboolean a = (x+w>1)&&(x+1>w)&&(w+1>x);\r\n\t\tboolean b = (y+z>1)&&(y+1>z)&&(z+1>y);\r\n\t\treturn a&&b;\r\n\t}", "public boolean inBound(int x, int y) {\n\n if (x < 0 || x >= boardSize.x || y < 0 || y >= boardSize.y) {\n return false;\n } else {\n return true;\n }\n }", "private static boolean areOverlapping( int a[], int sz, int pos, int len )\n {\n \tfor( int i=0; i<sz; i++ ){\n \t if( areOverlapping( a[i], pos, len ) ){\n \t\treturn true;\n \t }\n \t}\n \treturn false;\n }", "public boolean isValid(int index) {\n\t\treturn points.get(index).isValid();\n\t}", "private static final boolean isArrayValueAtIndexInsideOrInsideAdjacent(DataSet aDataSet, int i, int pointCount, double aMin, double aMax)\n {\n // If val at index in range, return true\n double val = aDataSet.getX(i);\n if (val >= aMin && val <= aMax)\n return true;\n\n // If val at next index in range, return true\n if (i+1 < pointCount)\n {\n double nextVal = aDataSet.getX(i + 1);\n if (val < aMin && nextVal >= aMin || val > aMax && nextVal <= aMax)\n return true;\n }\n\n // If val at previous index in range, return true\n if (i > 0)\n {\n double prevVal = aDataSet.getX(i - 1);\n if ( val < aMin && prevVal >= aMin || val > aMax && prevVal <= aMax)\n return true;\n }\n\n // Return false since nothing in range\n return false;\n }", "private void checkRange(int i) throws IndexOutOfBoundsException {\n if (i < 0 || i >= size) {\n throw new IndexOutOfBoundsException();\n }\n }", "boolean validateOffset() {\n\t\t\tint num = entriesByIndex.size() + 1; // assuming 0, plus 1-N)\n\t\t\tfor (int index : entriesByIndex.keySet()) {\n\t\t\t\tif (index > num || index < 0) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "private static boolean areOverlapping( int ix0, int ix1, int len )\n {\n if( ix0<ix1 ){\n return ix0+len>ix1;\n }\n else {\n return ix1+len>ix0;\n }\n }", "private boolean checkRangeAddress(int address) {\r\n return (address >= startAddress && address < endAddress);\r\n }", "private int rangeCheck(int rowIndex) {\n\t\tif (rowIndex < 0) {\n\t\t\treturn 0;\n\t\t}\n\t\t// FIXME What about undefined container size ??\n\t\tint containerSize = container.size();\n\t\tif (rowIndex >= containerSize) {\n\t\t\treturn containerSize;\n\t\t}\n\t\treturn rowIndex;\n\t}", "private static void checkFromToBounds(int paramInt1, int paramInt2, int paramInt3) {\n/* 386 */ if (paramInt2 > paramInt3) {\n/* 387 */ throw new ArrayIndexOutOfBoundsException(\"origin(\" + paramInt2 + \") > fence(\" + paramInt3 + \")\");\n/* */ }\n/* */ \n/* 390 */ if (paramInt2 < 0) {\n/* 391 */ throw new ArrayIndexOutOfBoundsException(paramInt2);\n/* */ }\n/* 393 */ if (paramInt3 > paramInt1) {\n/* 394 */ throw new ArrayIndexOutOfBoundsException(paramInt3);\n/* */ }\n/* */ }", "public void checkBounds(Scope scope) {\n}", "private boolean isVecInsideXZBounds(World world, BlockPos pos, Vec3 vec) {\n double[] bounds = getBlockBounds(world, pos);\n return bounds!=null && vec!=null && vec.xCoord>=bounds[0] && vec.xCoord<=bounds[3] && vec.zCoord>=bounds[2] && vec.zCoord<=bounds[5];\n }", "public boolean tileInBounds(float xTile, float yTile)\r\n/* 111: */ {\r\n/* 112:124 */ return (xTile >= 0.0F) && (xTile < getWidthInTiles()) && (yTile >= 0.0F) && (\r\n/* 113:125 */ yTile < getHeightInTiles());\r\n/* 114: */ }", "private boolean hasValidBounds() {\n\n\n\n return false;\n }", "private boolean intervalContains(double target, int coordIdx, boolean ascending, boolean closed) {\n // Target must be in the closed bounds defined by the discontiguous interval at index coordIdx.\n double lowerVal = ascending ? orgGridAxis.getCoordEdge1(coordIdx) : orgGridAxis.getCoordEdge2(coordIdx);\n double upperVal = ascending ? orgGridAxis.getCoordEdge2(coordIdx) : orgGridAxis.getCoordEdge1(coordIdx);\n\n if (closed) {\n return lowerVal <= target && target <= upperVal;\n } else {\n return lowerVal <= target && target < upperVal;\n }\n }", "@Override\n\tpublic void CheckBounds() {\n\t\t\n\t}", "boolean isBound();", "private static boolean hasVisibleRegion(int begin,int end,int first,int last) {\n return (end > first && begin < last);\n }", "public boolean isInRange(Point testPt){\n\t\tfor(int i = 0; i < display.size();i++){\n\t\t\tif(testPt.x >= display.get(i).x && testPt.y >= display.get(i).y && testPt.x <= (display.get(i).x + display.get(i).width()) && testPt.y <= (display.get(i).y + display.get(i).height())){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean outOfBounds() {\n\t\treturn this.getY() < 0;\n\t}", "private boolean isVecInsideYZBounds(World world, BlockPos pos, Vec3 vec) {\n double[] bounds = getBlockBounds(world, pos);\n return bounds!=null && vec!=null && vec.yCoord>=bounds[1]&& vec.yCoord<=bounds[4] &&vec.zCoord>=bounds[2] && vec.zCoord<=bounds[5];\n }", "private boolean isInRange(int c) {\n switch (border) {\n case between:\n return min <= c && c <= max;\n case min:\n return min <= c;\n case max:\n return c <= max;\n default:\n throw new IllegalStateException(\"Unexpected value: \" + border);\n }\n }", "public boolean inRange(int row, int col) {\n\t /*if the given row and col is less than 0 or greater than the maximum number, return false*/\n\t if(row < 0 || row >= this.row || col < 0 || col >= this.col) {\n\t\t return false;\n\t }\n\t /*return true if it's valid*/\n\t else {\n\t\t return true;\n\t }\n }", "public static boolean checkIndexes(int testSize, boolean[] chosen, SortedIntList list) {\r\n\t\tfor (int i = 0; i < chosen.length; i++) {\r\n\t\t\tint original = i - testSize;\r\n\t\t\tint index = list.indexOf(original);\r\n\t\t\t\r\n\t\t\t// start by assuming it's not bad\r\n\t\t\tboolean bad = false;\r\n\t\t\t\r\n\t\t\t// then check for bad cases\r\n\t\t\tif (chosen[i] && (index < 0 || index >= list.size()\r\n\t\t\t|| list.get(index) != original)) {\r\n\t\t\t\tbad = true;\r\n\t\t\t} else if (!chosen[i] && index >= 0) {\r\n\t\t\t\tbad = true;\r\n\t\t\t}\r\n\t\t\tif (bad) {\r\n\t\t\t\tString result = \"\\n\\n\" + original + \" should not have index \" + index\r\n\t\t\t\t+ \"\\nlist = \" + list + \"\\n\";\r\n\t\t\t\t/*\r\n\t\t\t\t// commenting out this output because it seems unhelpful\r\n\t\t\t\t+ \" and chosen values =\";\r\n\t\t\t\tboolean any = false;\r\n\t\t\t\tfor (int j = 0; j < chosen.length; j++)\r\n\t\t\t\tif (chosen[j]) {\r\n\t\t\t\tresult += \" \" + (j - testSize);\r\n\t\t\t\tany = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (!any) {\r\n\t\t\t\tresult += \" nothing\";\r\n\t\t\t\t}\r\n\t\t\t\t*/\r\n\t\t\t\tthrow new RuntimeException(result);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private static boolean isInBounds(Location location, Vector3i min, Vector3i max) {\n return location.getX() >= min.x && location.getX() < max.x && location.getY() >= min.y\n && location.getY() < max.y && location.getZ() >= min.z && location.getZ() < max.z;\n }", "public boolean has(int index) {\n\t\treturn index >= 0 && index < values.size();\n\t}", "private boolean isValidConstantPoolIndex(int cpIdx) {\n return (cpIdx > 0 && cpIdx <= numConstantPoolEntries);\n }", "public boolean contains(Vector pt) {\r\n final double x = pt.getX();\r\n final double y = pt.getY();\r\n final double z = pt.getZ();\r\n return x >= this.getMinimumPoint().getBlockX() && x < this.getMaximumPoint().getBlockX() + 1\r\n && y >= this.getMinimumPoint().getBlockY() && y < this.getMaximumPoint().getBlockY() + 1\r\n && z >= this.getMinimumPoint().getBlockZ() && z < this.getMaximumPoint().getBlockZ() + 1;\r\n }", "private boolean isVecInXY(Vec3 vec) {\n\t\treturn vec == null ? false : vec.xCoord >= this.minX && vec.xCoord <= this.maxX && vec.yCoord >= this.minY && vec.yCoord <= this.maxY;\n\t}", "public boolean outOfBounds()\n {\n if((lastpowerUp.equals(\"BLUE\") || lastpowerUp.equals(\"RAINBOW\")) && powerupTimer > 0)\n {\n return false;\n }\n \n if(head.getA() < 150 || head.getA() >= 1260)\n return true;\n else if(head.getB() <150 || head.getB() >=630)\n return true;\n else \n return false;\n \n \n }" ]
[ "0.70715284", "0.6845361", "0.6703506", "0.66683996", "0.6662746", "0.66073096", "0.6464518", "0.6461847", "0.6406902", "0.6382492", "0.63273233", "0.62581676", "0.6238627", "0.6225626", "0.62061244", "0.61876583", "0.61767673", "0.61708623", "0.6145817", "0.6142637", "0.6139576", "0.6121645", "0.60924417", "0.60774475", "0.5997401", "0.5992595", "0.5981803", "0.5965796", "0.596433", "0.5953686", "0.59497434", "0.59446377", "0.5889462", "0.5865092", "0.5855349", "0.58534664", "0.58459127", "0.5836836", "0.5823738", "0.5803398", "0.5792604", "0.5782432", "0.57717365", "0.577065", "0.5764538", "0.5763914", "0.57618725", "0.57552505", "0.575226", "0.5745152", "0.5736356", "0.57166064", "0.57095635", "0.57088", "0.57082427", "0.57067895", "0.57033175", "0.5700833", "0.5692763", "0.5676161", "0.5673314", "0.56684905", "0.5661438", "0.56548", "0.5647401", "0.5636902", "0.56291574", "0.5627464", "0.5610989", "0.55963224", "0.5594305", "0.55916715", "0.5568744", "0.55502385", "0.5544693", "0.5536988", "0.5533174", "0.552261", "0.55210745", "0.551586", "0.551322", "0.551063", "0.55020416", "0.54970807", "0.5489551", "0.5487217", "0.5486413", "0.5471037", "0.5466084", "0.54591167", "0.5458621", "0.5455476", "0.54454094", "0.5443785", "0.5438039", "0.5431914", "0.54258996", "0.5423037", "0.54208195", "0.5408617" ]
0.8029783
0
Adds a given node to the list.
public void add(Node node) { if (this.head == null) { this.head = node; this.tail = node; } else { this.tail.next = node; this.tail = node; } this.length++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNode(INode node) {\r\n\t\tnodeList.add(node);\r\n\t}", "public void addNode(Node node){subNodes.add(node);}", "void addNode(int node);", "public void addNode(Node node) {\n\t\tnodes.add(node);\n\t}", "void addNode(String node);", "public void addNode(Node p_node) {\n\t\tnodes.add(p_node);\n\t}", "public void addNode(Node node) {\n\t\tthis.nodes.add(node);\n\t}", "void addNode(Node n) {\n nodes.put(n.id, n);\n }", "void addNode()\n {\n Node newNode = new Node(this.numNodes);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n }", "@Override\n public void visit(Node node) {\n nodes.add(node);\n }", "private void addNode(NeuralNode node) {\r\n\t\tinnerNodes.add(node);\r\n\t}", "public void add(Node<T> n){\n\t\tconnect.add(n);\n\t}", "public Node appendNode(Node node);", "private void addNode(Node node)\n\t{\n\t\tif (node == null)\n\t\t\treturn;\n\t\tthis.nodes[node.getRowIndex()][node.getColumnIndex()] = node;\n\t}", "public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }", "protected void addNode(INode node) {\n\n if (node != null) {\n\n this.ids.add(node.getID());\n this.nodeMap.put(node.getID(), node);\n }\n }", "boolean addNode(N node);", "public void add(NODE node) {\n root = root == null ? node : root.add(node);\n }", "protected void addingNode( SearchNode n ) { }", "public void addChild(Node node){\n children.add(node);\n \n }", "public void addNode (NodeState node) throws RepositoryException, IOException\n\t{\n\t}", "@Override\n\tpublic boolean addNode(N node)\n\t{\n\t\tif (node == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (nodeEdgeMap.containsKey(node))\n\t\t{\n\t\t\t// Node already in this Graph\n\t\t\treturn false;\n\t\t}\n\t\tnodeList.add(node);\n\t\tnodeEdgeMap.put(node, new HashSet<ET>());\n\t\tgcs.fireGraphNodeChangeEvent(node, NodeChangeEvent.NODE_ADDED);\n\t\treturn true;\n\t}", "public void addInputNode(Node node) {\n\t\t// nodes.add(node);\n\t\tnodeArray.add(node);\n\t}", "public void addNode(String node) {\n this.graph.put(node, new LinkedList<>());\n }", "public int addNode(node_type node) {\n if (node.getIndex() < (int) nodeVector.size()) {\n //make sure the client is not trying to add a node with the same ID as\n //a currently active node\n assert nodeVector.get(node.getIndex()).getIndex() == invalid_node_index :\n \"<SparseGraph::AddNode>: Attempting to add a node with a duplicate ID\";\n\n nodeVector.set(node.getIndex(), node);\n\n return nextNodeIndex;\n } else {\n //make sure the new node has been indexed correctly\n assert node.getIndex() == nextNodeIndex : \"<SparseGraph::AddNode>:invalid index\";\n\n nodeVector.add(node);\n edgeListVector.add(new EdgeList());\n\n return nextNodeIndex++;\n }\n }", "public boolean addNode(NodeType node) {\n\t\treturn false;\n\t}", "void add(Member node, long now);", "public void addNode(ConfigurationNode node)\n {\n if (node == null || node.getName() == null)\n {\n throw new IllegalArgumentException(\n \"Node to add must have a defined name!\");\n }\n node.setParentNode(null); // reset, will later be set\n\n if (nodes == null)\n {\n nodes = new ArrayList<ConfigurationNode>();\n namedNodes = new HashMap<String, List<ConfigurationNode>>();\n }\n\n nodes.add(node);\n List<ConfigurationNode> lst = namedNodes.get(node.getName());\n if (lst == null)\n {\n lst = new LinkedList<ConfigurationNode>();\n namedNodes.put(node.getName(), lst);\n }\n lst.add(node);\n }", "int addItem(final T pNode);", "public void addNode(NodeImpl node) {\n supervisedNodes.add(node);\n \n colorNodes();\n shortenNodeLabels();\n colorNodeLabels();\n colorNodeLabelBorders();\n }", "private void addNode(Node<E> node, E value) {\n if (node.children == null) {\n node.children = new ArrayList<>();\n }\n node.children.add(new Node<>(value));\n }", "public void addChild(Node node) {\n\t\tthis.children.add(node);\n\t}", "void append(SNode node);", "public void addNode() {\n if (nodeCount + 1 > xs.length)\n resize();\n nodeCount++;\n }", "@Override\n\tvoid add(Inode inode) {\n\t\tnodeList.add(inode);\n\t}", "@Override\n public boolean addNode(String nodeName) throws NodeException {\n Node newNode = new Node(nodeName);\n\n if(!containsNode(newNode)) {\n nodes.add(new Node(nodeName));\n return true;\n } else {\n // Dany prvek uz v listu existuje\n throw new NodeException(\"Vámi zadaný prvek už v listu existuje!\");\n }\n }", "public void add(T elem){\n\t\tNode<T> toAdd = new Node<T>(elem);\r\n\t\tif(this.start == null)\r\n\t\t\tthis.start = toAdd;\r\n\t\telse {\r\n\t\t\tNode<T> temp = this.start;\r\n\t\t\twhile (temp.next != null)\r\n\t\t\t\ttemp = temp.next;\r\n\t\t\ttemp.next = toAdd;\r\n\t\t}\r\n\t}", "public void addNode(GraphNode<T> node) {\n\tmRoot.addNode(node);\n\tmNodesCount++;\n }", "public void add(Node node) {\n node.next = tail;\n node.prev = tail.prev;\n tail.prev.next = node;\n tail.prev = node;\n size++;\n }", "public boolean addNode(ListNode node){\n\t\tif(firstNode == null) {\n\t\t\tfirstNode = node;\n\t\t\t// length++;\n\t\t\treturn true;\n\t\t}\n\t\tif(exists(node)) return false;\n\n\t\tListNode temp = firstNode;\n\t\twhile(temp.getNextNode() != null){\n\t\t\ttemp = temp.getNextNode();\n\t\t}\n\t\ttemp.setNext(node);\n\t\treturn true;\n\t}", "public void add(T item) \n\t//PRE: The input parameter item can be any type but must be initialized\n\t//POST: The input parameter item is added to the circular linked list\n\t{\n\t\tNode<T> n = new Node<T>(item);\t//initialize new node for list \n\t\tnewState(n);\t\t\t\t\t\n\t\tif(start == null) //if list is empty\n\t\t{ \n\t\t\tstart = n;\n\t\t\tn.next = start;\n\t\t}\n\t\telse \t\t\t//if the list is not empty\n\t\t{ // find end\n\t\t\tNode tmp = start;\n\t\t\twhile(tmp.next != start) \n\t\t\t{ // scan until loop\n\t\t\t\tnewState(tmp);\n\t\t\t\ttmp = tmp.next;\n\t\t\t}\n\t\t\t// tmp.next == start at this point\n\t\t\tn.next = start;\n\t\t\ttmp.next = n; // complete the loop\n\t\t}\n\t\tlength++;\t//increment length of list\n\t\tnewState(null);\n\t}", "public void add(Item item) {\n if (item == null) throw new NullPointerException();\n Node oldFisrt = first;\n first = new Node();\n first.item = item;\n first.next = oldFisrt;\n N++;\n }", "void addFlight(Node toNode);", "@Override\n\tpublic void insert(Node node) {\n\t\tchildren.add(node);\n\t}", "public void add(int index, Object value) {\n if (index > _size) {\n throw new ListIndexOutOfBoundsException(\"Error\");\n }\n ListNode node = new ListNode(value);\n if (index == 0) {\n node.next = start;\n start = node;\n } else {\n ListNode prev = start;\n for (int i = 0; i<index - 1; i++ ) {\n prev = prev.next;\n }\n ListNode temp = prev.next;\n prev.next = node;\n node.next = temp;\n } \n _size++;\n }", "private void add_node(Node node) {\n if (this.nodes.get(node.name) != null) {\n throw new RuntimeException(\"Node \" + node.name + \" already exists!\");\n }\n this.nodes.put(node.name, node);\n this.bars.put(node.name, new TreeMap<String, Bar>());\n }", "public void add(ListNode newNode)\r\n {\r\n if (length == 0)\r\n {\r\n firstNode=newNode;\r\n }\r\n else\r\n {\r\n \tListNode currentNode;\r\n \tListNode previousNode = null;\r\n \tcurrentNode = firstNode;\r\n \t\r\n \twhile(currentNode!=null)\r\n \t{\r\n \t\tpreviousNode = currentNode;\r\n \t\tcurrentNode = currentNode.next;\r\n \t}\r\n currentNode = newNode;\r\n previousNode.next = currentNode;\r\n }\r\n length++;\r\n }", "public void add(E item)\n {\n\n Node<E> node = new Node<E>(item);\n // if it is the first item in the list, it sets the current item to the\n // new item\n if (size == 0)\n {\n current = node;\n current.join(current);\n size++;\n return;\n }\n\n Node<E> previous = current.previous();\n previous.split();\n node.join(current);\n previous.join(node);\n current = node;\n\n size++;\n }", "public void addElement(Integer e){\n list.add(e);\n }", "private void addNode(INode node) {\r\n inodes[numNonNull++] = node;\r\n }", "public void addNode(final Instruction instruction) {\n instructions.add(instruction);\n if (prevInstruction != null) {\n addEdge(prevInstruction, instruction);\n }\n prevInstruction = instruction;\n }", "public void add(Item item)\n\t {\n\t Node oldfirst = first;\n\t first = new Node();\n\t first.item = item;\n\t first.next = oldfirst;\n\t N++;\n\t}", "public void add(Node node) {\n if (node.getId() != null) {\n if (node.getId().equals(\"DestructibleBlock\")) {\n staticElements.add(node);\n destructibleBlocks.add((DestructibleBlock) node);\n }\n if (node.getId().equals(\"IndestructibleBlock\")) {\n staticElements.add(node);\n }\n }\n fieldPane.getChildren().add(node);\n }", "public void add(DNode node)\n\t{\n\t\tif(first==null)\n\t\t{\n\t\t\tfirst=node;\n\t\t\t//System.out.println(\"add first\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//System.out.println(\"add next\");\n\t\t\tDNode tem=first;\n\t\t\twhile(tem.nextDNode!=null)\n\t\t\t{\n\t\t\t\ttem=tem.nextDNode;\n\t\t\t}\n\t\t\ttem.nextDNode=node;\n\t\t}\n\t}", "public void addChild(WSLNode node) {children.addElement(node);}", "public void addAtIndex(int idx, Node node) {\n if (!checkIndexBounds(idx)) {\n return;\n }\n\n Node pre = getNodeBeforeIndex(idx);\n Node curr = pre.next;\n pre.next = node;\n node.next = curr;\n this.length++;\n }", "public void add(Node node) {\n final int comparison = this.compare(node);\n if (comparison == 0) {\n // values are equal (not allowed in a binary tree)\n throw new IllegalArgumentException(\"Node is equal to already added node!\");\n }\n else if (comparison > 0) {\n // bigger (right side)\n if (this.right != null) {\n this.right.add(node);\n } else {\n this.right = node;\n }\n } else {\n // smaller (left side)\n if (this.left != null) {\n this.left.add(node);\n } else {\n this.left = node;\n }\n }\n }", "@Override\n public ListNode<T> append(T e) {\n \treturn new ListNode<T>(e,this);\n }", "public void add(int v){\n if (head == null) {\n // First node in the list\n head = new Node(v);\n } else {\n // List has nodes\n head.add(v);\n }\n }", "public Node addNode(String node) {\n return nodeRepository.save(new Node(node));\n }", "public void AddNode(StubNode node) {\n\n }", "boolean addNode(long idNum, String label);", "public boolean addNode(DAGNode node) {\r\n\t\treturn true;\r\n\t}", "public abstract void addChild(Node node);", "public void addToList(E data){\n if(headNode==null){\n headNode=new Node<E>(data);\n currentNode=headNode;\n }\n else{\n currentNode.next=new Node<E>(data);\n currentNode=currentNode.next;\n }\n size++;\n }", "public void add(Object o){\n list.add(o);\n }", "public void addNode(DijkstraNode node) {\n\t\tthis.cache.put(node.getCoordinate(), node);\n\t}", "@Override\n\tpublic void preVisit(ASTNode node) {\n\t\tnodeList.add(node);\n\t}", "private void add(Node node) {\n Node headNext = head.next;\n head.next = node;\n node.previous = head;\n node.next = headNext;\n headNext.previous = node;\n }", "private void addNode(Node node) {\n node.prev = fakeHead;\n node.next = fakeHead.next;\n \n fakeHead.next.prev = node;\n fakeHead.next = node;\n }", "public void addNode(byte b, Node node) {\n nodes.put(b, node);\n }", "@Override\n\tpublic void addChild(Node node) {\n\t\t\n\t}", "public void add(DefaultGraphCell node) {\n nodes.add(node);\n groupObject.add(node);\n fragmentName.append(((NodeData)node.getUserObject()).getName() + \" \");\n \n }", "public void addNeighbor(Node node){\n neighbors.add(node);\n liveNeighbors.add(node);\n }", "void addNode(int weight) \n {\n Node newNode = new Node(this.numNodes, weight);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n \n }", "@Override\n\tpublic void visit(AdditionListNode node) {\n\t\tstackPair.push(new Pair<>(\"+\", 2));\n\t\tnode.getNext().accept(this);\n\t}", "public void addNode(String item){\n Node newNode = new Node(item,null);\nif(this.head == null){\n this.head = newNode;\n}else{\n Node currNode = this.head;\n while(currNode.getNextNode() != null){\n currNode = currNode.getNextNode();\n }\n currNode.setNextNode(newNode);\n}\nthis.numNodes++;\n }", "@Override\r\n public T add(T item) \r\n {\n Node<T> n = new Node<T>();\r\n n.setItem(item);\r\n\r\n if (head == null) { //first one\r\n head = n;\r\n tail = n;\r\n } else {\r\n tail.setNext(n); //tail's next is the new node\r\n n.setPrevious(tail); //points the new node backwards at the tail\r\n tail = n; //sets tail to the node we added\r\n }\r\n\r\n count++;\r\n\r\n return item;\r\n }", "public void add(T data) {\n\t\tListNode<T> newTail = new ListNode<T>(data, null);\n\t\tif (empty()) {\n\t\t\tthis.head = newTail;\n\t\t\tthis.size++;\n\t\t} else {\n\t\t\tListNode<T> currentTail = goToIndex(this.size - 1);\n\t\t\tcurrentTail.setNext(newTail);\n\t\t\tthis.size++;\n\t\t}\n\t}", "public void add(int element){\n\t\tNode nd = new Node();\n\t\tnd.setElement(element);\n\t\t/**\n\t\t * check if the list is empty\n\t\t */\n\t\tif(head == null){\n\t\t\t//if there is only one element, both head and tail points to the same object.\n\t\t\thead = nd;\n\t\t\ttail = nd;\n\t\t} else {\n\t\t\t//set current tail next link to new node\n\t\t\ttail.setNext(nd);\n\t\t\t//set tail as newly created node\n\t\t\ttail = nd;\n\t\t}\n\t}", "public void add(T x) { \n\t // TODO: This must run in O(1) time.\n\t\t n++;\n\t\t Node curr = new Node(x, head, head.next);\n\t\t head.next = curr;\n\t\t curr.next.prev = curr;\n\t }", "@Override\n\tpublic boolean add(E e) {\n\t\tNode<E> element = new Node<E>(e);\n\t\t// 2. Traverse to end of list\n\t\tif (root == null) {\n\t\t\troot = element;\n\t\t} else {\n\t\t\ttail.setNext(element);\n\t\t\telement.setBefore(tail);\n\t\t}\n\t\ttail = element;\n\t\treturn true;\n\t}", "public void add(E item) {\n\t\tDblListnode<E> tmp = lastNode;\n\t\tlastNode.setNext(new DblListnode<E>(item));\n\t lastNode = lastNode.getNext();\n\t lastNode.setPrev(tmp);\n\t numItems++;\n\t}", "public void add(int index, int data){\r\n if (index == 0){\r\n front = ned node(data, front){\r\n } else {\r\n node curr = front;\r\n for (int i = 0; i < index - 1; i++){\r\n curr = curr.next;\r\n }\r\n curr.next = new node(data, curr.next);\r\n }\r\n }\r\n \r\n}", "public boolean add(Node n) {\n\t\t\n\t\t//Validate n is not null\n\t\tif (n == null) { \n\t\t\tSystem.out.println(\"Enter a valid node\");\n\t\t\treturn false; \n\t\t} \n\t\t\n\t\t//If the node is present in the network return\n\t\tif (nodes.contains(n)) {\n\t\t\tSystem.out.println(\"Node name already exists\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//Add the node to the network, with a new array for its neighbors\n\t\tnodes.add(n);\n\t\t\n\t\t//Successfully added\n\t\treturn true;\n\t}", "@Override\r\n\tpublic void add(T element) {\n\t\tthis._list.add(element);\r\n\t}", "public void add(int data)\n {\n Node node = new Node(data);\n node.next = head;\n head = node;\n }", "public void append(int nodeValue)\n {\n ListNode newNode = new ListNode(nodeValue);\n\n // Check if the head is null\n if(this.head == null && this.tail == null)\n {\n this.head = newNode;\n this.tail = newNode;\n } else {\n\n ListNode currNode = this.head;\n ListNode prevNode = this.head;\n\n // Traverse the list\n while(currNode.getNextNode() != null)\n {\n // System.out.println(\"STUCK\");\n // System.out.println(\"CURRENT NODE VALUE: \" + currNode.getValue());\n // System.out.println(\"NEXT NODE FROM CURRENT: \" + currNode.getNextNode().getValue());\n prevNode = currNode;\n currNode = currNode.getNextNode();\n \n }\n\n // Wire the two nodes together\n currNode.setNextNode(newNode);\n newNode.setPrevNode(currNode);\n this.tail = newNode;\n }\n\n this.size = size + 1;\n\n }", "void addNodes(List<CyNode> nodes);", "public void add(Item item) {\r\n Node x = current.prev; //prev node\r\n Node y = new Node(); //new node\r\n Node z = current; //current node\r\n y.item = item;\r\n x.next = y;\r\n y.next = z;\r\n z.prev = y;\r\n y.prev = x;\r\n n++;\r\n index++;\r\n lastAccessed = null;\r\n }", "public void add(Node<E> child) {\n this.children.add(child);\n }", "private void addNode(DLinkedNode node) {\n\t\tnode.prev = head;\n\t\tnode.next = head.next;\n\n\t\thead.next.prev = node;\n\t\thead.next = node;\n\t}", "public void add (Object x) {\n\t\tif (this.isEmpty()) {\n\t\t\tmyHead = new ListNode(x);\n\t\t\tmyTail = myHead;\n\t\t\tmySize++;\n\t\t}\n\t\telse {\n\t\t\tmyTail.myNext = new ListNode(x);\n\t\t\tmyTail = myTail.myNext;\n\t\t\tmySize++;\n\t\t}\n\t\t\n\t}", "public Node<E> append(Node<E> node){\n this.addToEnd(node);\n return node;\n }", "@Override\n public void add(EventNode node) {\n nodes.add(node);\n // Invalidate the relations cache.\n //\n // NOTE: The reason we do not update the relations here is because the\n // node might not be finalized yet. That is, the node's transitions\n // might not be created/added yet, so at this point we do not know the\n // exact set of relations associated with this node.\n cachedRelations = null;\n }", "public void add(T data) {\n if (this.nrOfElements == 0) {\n this.addToEmptyList(data);\n }\n else {\n Node walker = this.first;\n while (walker.next != null) {\n walker = walker.next;\n }\n this.last = walker.next = new Node(data);\n this.nrOfElements++;\n }\n }", "@Override\n public boolean add(ListNode e) {\n if (this.size() != 0){\n ListNode last = this.getLast();\n last.setNext(e);\n }\n return super.add(e);\n }", "public void add(Node newNode) {\r\n\t\tif (this.size() == 0) {\r\n\t\t\thead = newNode;\r\n\t\t\ttail = newNode;\r\n\t\t}else {\r\n\t\t\ttail.setNext(newNode); \r\n\t\t\ttail = newNode;\r\n\t\t}\r\n\t\tthis.setSize(this.size() + 1);\r\n\t}", "public boolean addNode(N node)\r\n/* 32: */ {\r\n/* 33: 68 */ assert (checkRep());\r\n/* 34: 69 */ if (!this.map.containsKey(node))\r\n/* 35: */ {\r\n/* 36: 70 */ this.map.put(node, new HashMap());\r\n/* 37: 71 */ return true;\r\n/* 38: */ }\r\n/* 39: 73 */ return false;\r\n/* 40: */ }", "public void add(E value) { // add a value to the linked list\n\t\tif (head == null) {\n\t\t\thead = new Node<E>(value);\n\t\t\treturn;\n\t\t} else {\n\t\t\tNode<E> temp = new Node<E>(value);\n\t\t\tNode<E> current = head;\n\t\t\twhile (current.getNext() != null) {\n\t\t\t\tcurrent = current.getNext();\n\t\t\t}\n\t\t\t// set the new node's next-node reference to this node's next-node\n\t\t\t// reference\n\t\t\ttemp.setNext(current.getNext());\n\t\t\t// now set this node's next-node reference to the new node\n\t\t\tcurrent.setNext(temp);\n\t\t}\n\t}" ]
[ "0.79438984", "0.76860744", "0.74639726", "0.74550587", "0.7390983", "0.73147935", "0.7313912", "0.72914153", "0.7216686", "0.7212826", "0.71860904", "0.7015548", "0.6989314", "0.69868755", "0.6981414", "0.6981171", "0.6967441", "0.6959612", "0.6943785", "0.692779", "0.6911129", "0.68604165", "0.6838562", "0.6838521", "0.6828414", "0.6808508", "0.67950714", "0.67587", "0.67508185", "0.6748745", "0.67464143", "0.67329574", "0.673183", "0.66712487", "0.6629705", "0.66196525", "0.65920424", "0.65912235", "0.65845346", "0.6584165", "0.65686196", "0.6562274", "0.65455234", "0.6536363", "0.65324265", "0.6531383", "0.6527833", "0.651979", "0.65123516", "0.65114665", "0.65112597", "0.65066653", "0.6506127", "0.6503909", "0.6492196", "0.64919764", "0.6488075", "0.6480965", "0.6477193", "0.64757246", "0.64749056", "0.6468097", "0.6456701", "0.6446702", "0.6440233", "0.6437997", "0.6437542", "0.6435391", "0.6419219", "0.6396445", "0.6389299", "0.63654834", "0.6364579", "0.63620466", "0.6361397", "0.6357672", "0.63534856", "0.6352425", "0.6347718", "0.6346646", "0.63268113", "0.632631", "0.6324555", "0.6324505", "0.6322079", "0.6320736", "0.6316346", "0.63139313", "0.63014525", "0.6288647", "0.6284978", "0.62801003", "0.62787724", "0.62726253", "0.6264817", "0.6258744", "0.62497675", "0.62482566", "0.6245887", "0.6243486" ]
0.6817406
25
Adds a node to the list created using a given value.
public void add(T v) { add(new Node(v)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(T value) {\n\t\tNode newNode = new Node(value);\n\t\tif (head == null) {\n\t\t\thead = newNode;\n\t\t\treturn;\n\t\t}\n\t\tNode current = head;\n\t\twhile (current.next != null) {\n\t\t\tcurrent = current.next;\n\t\t}\n\t\tcurrent.next = newNode;\n\t}", "public void add(T value) {\n Node<T> newNode = new Node<T>();\n newNode.data = value;\n newNode.next = null;\n if (head == null) {\n head = newNode;\n } else {\n Node<T> last = head;\n while (last.next != null) {\n last = last.next;\n }\n last.next = newNode;\n }\n }", "public void add(T value) {\n final Node node = new Node(value);\n if (root != null) {\n root.add(node);\n } else {\n root = node;\n }\n }", "public void add(int value) {\n Node newNode = new Node(value);\n if(this.head == null) { //head is a pointer\n this.head = newNode;\n } else {\n Node runner = this.head;\n while(runner.next != null) {\n runner = runner.next;\n }\n runner.next = newNode;\n }\n }", "private void addNode(Node<E> node, E value) {\n if (node.children == null) {\n node.children = new ArrayList<>();\n }\n node.children.add(new Node<>(value));\n }", "public void add(final T value) {\n\n final var node = new Node<>(value);\n final var currentTail = this.tail;\n\n if (currentTail != null) {\n currentTail.next = node;\n }\n\n if (head == null) {\n this.head = node;\n }\n tail = node;\n size++;\n }", "public void add(E value) { // add a value to the linked list\n\t\tif (head == null) {\n\t\t\thead = new Node<E>(value);\n\t\t\treturn;\n\t\t} else {\n\t\t\tNode<E> temp = new Node<E>(value);\n\t\t\tNode<E> current = head;\n\t\t\twhile (current.getNext() != null) {\n\t\t\t\tcurrent = current.getNext();\n\t\t\t}\n\t\t\t// set the new node's next-node reference to this node's next-node\n\t\t\t// reference\n\t\t\ttemp.setNext(current.getNext());\n\t\t\t// now set this node's next-node reference to the new node\n\t\t\tcurrent.setNext(temp);\n\t\t}\n\t}", "public void add(int value) {\n if (front == null) {\n front = new ListNode(value);\n } else {\n ListNode current = front;\n while (current.next != null) {\n current = current.next;\n }\n current.next = new ListNode(value);\n }\n }", "public void addItem(int value) {\n if (root == null) {\n root = new Node(value);\n } else {\n addToNode(root, value);\n }\n }", "public void add(String value) {\n\t\tif (head == null)\n\t\t\thead = new Node(value);\n\t\telse if (head.value.compareTo(value) > 0) {\n\t\t\thead = new Node(value, head);\n\t\t} else if (head.value.compareTo(value) == 0) {\n\t\t\treturn;\n\t\t} else\n\t\t\trecAdd(head, value);\n\t}", "public void add(int index, Object value) {\n if (index > _size) {\n throw new ListIndexOutOfBoundsException(\"Error\");\n }\n ListNode node = new ListNode(value);\n if (index == 0) {\n node.next = start;\n start = node;\n } else {\n ListNode prev = start;\n for (int i = 0; i<index - 1; i++ ) {\n prev = prev.next;\n }\n ListNode temp = prev.next;\n prev.next = node;\n node.next = temp;\n } \n _size++;\n }", "public Node<E> addNode(E value){\n Node<E> newNode = new Node<>(value);\n if(value != null){\n nodes.putIfAbsent(newNode, new HashSet<>());\n }\n return newNode;\n }", "public void add(int value) {\n\t\tif (front == null) {\n\t\t\tfront = new ListNode(value);\n\t\t} else {\n\t\t\tListNode current = front;\n\t\t\twhile (current.next != null) {\n\t\t\t\tcurrent = current.next;\n\t\t\t}\n\t\t\tcurrent.next = new ListNode(value);\n\t\t}\n\t}", "@Override\n\tpublic void add(L value) {\n\t\tif(value==null) throw new NullPointerException();\n\t\tListNode<L> newNode=new ListNode<>(value);\n newNode.storage=value;\n newNode.next=null;\n newNode.previous=last;\n if(last==null){\n first=newNode;\n }else {\n last.next=newNode;\n }\n last=newNode;\n\t\tthis.size++;\n\t\tthis.modificationCount++;\n\t}", "public void add(String value) {\n root.add(value, true);\n }", "void append(int value) {\n\t\tNode n = new Node(value);\n\t\tif (length == 0) {\n\t\t\thead = n;\n\t\t\ttail = n;\n\t\t} else {\n\t\t\ttail.next = n;\n\t\t\ttail = n;\n\t\t}\n\t\tlength++;\n\t\t//print();\n\t}", "public void append(int nodeValue)\n {\n ListNode newNode = new ListNode(nodeValue);\n\n // Check if the head is null\n if(this.head == null && this.tail == null)\n {\n this.head = newNode;\n this.tail = newNode;\n } else {\n\n ListNode currNode = this.head;\n ListNode prevNode = this.head;\n\n // Traverse the list\n while(currNode.getNextNode() != null)\n {\n // System.out.println(\"STUCK\");\n // System.out.println(\"CURRENT NODE VALUE: \" + currNode.getValue());\n // System.out.println(\"NEXT NODE FROM CURRENT: \" + currNode.getNextNode().getValue());\n prevNode = currNode;\n currNode = currNode.getNextNode();\n \n }\n\n // Wire the two nodes together\n currNode.setNextNode(newNode);\n newNode.setPrevNode(currNode);\n this.tail = newNode;\n }\n\n this.size = size + 1;\n\n }", "public boolean add(T value) {\n\t\tNode<T> last = null;\n\t\tfor (Node<T> current = start; current != null; current = current.next) {\n\t\t\tlast = current;\n\t\t}\n\t\tif (last != null) {\n\t\t\tlast.next = new Node<>(value);\n\t\t} else {\n\t\t\tstart = new Node<>(value);\n\t\t}\n\t\treturn true;\n\t}", "public void append(int value) {\n\t\t\n\t\tNode temp = new Node(value);\n\t\t\n\t\t// no node available therefore this is 1st node\n\t\tif(this.head == null) {\n\t\t\thead = temp;\n\t\t}\n\t\t// 1 and more than one node available\n\t\telse {\n\t\t\tNode it = this.head; // it pointed to head pointed\n\t\t\twhile(it.next != null) { //it++ up to it.next get null\n\t\t\t\tit = it.next;\n\t\t\t}\n\t\t\t// it pointed to last node\n\t\t\tit.next = temp; // insert value at last\n\t\t\ttemp.next = null;\n\t\t}\n\t}", "public HPTNode<K, V> append(V value) {\n if (values == null) {\n values = new ArrayList<>(2);\n }\n values.add(value);\n return this;\n }", "public void add(Object value) {\n\n\t}", "void addNode(int node);", "public void add(int v){\n if (head == null) {\n // First node in the list\n head = new Node(v);\n } else {\n // List has nodes\n head.add(v);\n }\n }", "@Override\r\n public void add(T value) {\r\n Vertex<T> vertex = new Vertex<>(value);\r\n vertices.put(value, vertex);\r\n }", "public void addChild(String value){\n\t\tInstructionNode child = new InstructionNode();\n\t\tchild.setMyRunValue(value);\n\t\tArrayList<InstructionNode> newChildren = new ArrayList<InstructionNode> ();\n\t\tnewChildren.add(child);\n\t\tgetHead().setMyChildren(newChildren);\n\t}", "@Override\n public void addValue(T value) {\n Vertex<T> vertex = new Vertex<>(value);\n vertices.put(value,vertex);\n }", "private static void recAdd(Node l, String value) {\n\t\tif (l.next == null) {\n\t\t\tl.next = new Node(value);\n\t\t\treturn;\n\t\t} else {\n\t\t\t// Base 2, the value behide the leader's value bigger than the value we want to add\n\t\t\tif (l.next.value.compareTo(value) > 0) {\n\t\t\t\tNode temp = new Node(value, l.next);\n\t\t\t\tl.next = temp;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Base 2, the value already in the list\n\t\t\telse if (l.next.value.equals(value)) {\n\t\t\t\treturn;\n\t\t\t} else\n\t\t\t\trecAdd(l.next, value);\n\t\t\t\treturn;\n\t\t}\n\n\t}", "public void add(int value){\n if (value < this.value){\n if (this.left != null)\n left.add(value);\n else left = new MyBinaryTreeNode(value);\n }\n else if (value > this.value){\n if (this.right != null)\n right.add(value);\n else right = new MyBinaryTreeNode(value);\n }\n }", "public void add(K value)\n {\n\tSkipListNode<K> newNode = new SkipListNode<K>(value, p); //New node with random height\n\tint h = newNode.height(); \n\thead.ensureHeight(h); \n\tArrayList<SkipListNode<K>> pred = findPredecessors(value); //ArrayList of predecessors\n\tSkipListNode<K> predNode = new SkipListNode<K>();\n\n\t//For each sub-list, adjusts next of newNode and next of predecessor\n\twhile (h > 0) {\n\t predNode = pred.get(h-1);\n\t newNode.setNext(h-1, predNode.next(h-1)); //Set next of newNode at level h-1 to h-1 predecessor's next at level h-1\n\t predNode.setNext(h-1, newNode); //Set the h-1 predecessor's next reference to newNode at level h-1\n\t h--; //Decrement h\n\t}\n\tsize++; //Increment size to indicate new node\n }", "void addNode(String node);", "@Override\n public void Add(String key, Integer value) throws InvalidKeyException {\n if(Contains(key))\n throw new InvalidKeyException(\"Key already exists\");\n\n // Adding the new key/value node\n if(head == null)\n head = new Node(key, value);\n else{\n Node new_node = new Node(key, value);\n new_node.next = head;\n head = new_node;\n }\n\n // increment count\n count++;\n }", "public void addAtStart(T value) {\n Node<T> newNode = new Node<>();\n newNode.data = value;\n newNode.next = head;\n head = newNode;\n }", "public void add(int value){\n \n // Case 1: The tree is empty - allocate the root\n if(root==null){\n root = new BSTNode(value);\n }\n \n // Case 2: The tree is not empty \n // find the right location to insert value\n else{\n addTo(root, value);\n } \n count++; // update the number of nodes\n }", "public void addToListWithCycle(T value) {\n Node<T> tmp = lastNode;\n Node<T> node = new Node<>(value, firstNode);\n lastNode = node;\n if (tmp == null) {\n firstNode = node;\n } else {\n tmp.next = node;\n }\n size++;\n }", "public void add(Object value) {\n verifyModifiable();\n\n elements.add(value);\n }", "public void add(K key, V value) {\n Node<K,V> node = root, parent = null;\n int cmp = -1;\n\n while (node != null) {\n cmp = key.compareTo(node.key);\n parent = node;\n if (cmp < 0) {\n node = node.left;\n } else if (cmp > 0) {\n node = node.right;\n } else {\n node.value = value;\n return;\n }\n }\n\n Node<K,V> new_node = new Node<>(key, value);\n if (parent == null) {\n root = new_node;\n } else if (cmp < 0) {\n parent.left = new_node;\n } else {\n parent.right = new_node;\n }\n }", "public void addTo(BSTNode node, int value){\n // Allocate new node with specified value\n BSTNode newNode = new BSTNode(value);\n \n // Case 1: Value is less than the current node value\n if(value < node.value){\n // If there is no left child make this the new left\n if(node.left == null){\n node.left = newNode;\n }\n else{\n // else add it to the left node\n addTo(node.left, value);\n }\n } // End Case 1\n \n // Case 2: Value is equal to or greater than the current value\n else {\n // If there is no right, add it to the right\n if(node.right == null){\n node.right = newNode;\n }\n else{\n // else add it to the right node\n addTo(node.right, value);\n }\n } // End Case 2\n }", "public Builder addNode(uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode value) {\n if (nodeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeIsMutable();\n node_.add(value);\n onChanged();\n } else {\n nodeBuilder_.addMessage(value);\n }\n return this;\n }", "public void newNode(E value) throws Exception {\n\t\tif(!hasNext())\n\t\t\tthrow new Exception(\"This node has already been linked\");\n\t\t\n\t\tnext_node = new Node<E>(value);\n\t}", "public void add(int value) {\nNode newNode = new Node(value);\nif (head == null) {\nhead = newNode;\nsize++;\nreturn;\n}\nNode current = head;\nwhile (current.next != null) {\ncurrent = current.next;\n}\ncurrent.next = newNode;\nsize++;\n}", "@Override\n\tpublic void add(Integer value) {\n\t\troot=add(root,value);\n\t\tcount++;\n\t}", "public void push(int value)\n\t{\n\t\tNode newNode = new Node(value);\n\t\tif (head == null)\n\t\t{\n\t\t\thead = newNode;\n\t\t\ttail = newNode;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttail.next = newNode;\n\t\t\ttail = newNode;\n\t\t\ttail.next = null;\n\t\t}\n\t}", "public static MyLinkedList addToTail(MyLinkedList list, int value) {\n\n Node toInsert = new Node(value);\n toInsert.next = null; //because it has to be the tail (last node)\n\n // If the Linked List is empty,\n // then make the new node as head\n if (list.head == null) {\n list.head = toInsert;\n } else {\n // Else traverse till the last node\n // and insert the new_node there\n Node last = list.head;\n while (last.next != null) {\n last = last.next;\n }\n // Insert the new_node at last node\n last.next = toInsert;\n }\n return list;\n }", "void insert(int value){\n\t\tNode newNode=new Node(value);\n\n\t\tif(head==null){\n\t\t\thead=newNode;\n\t\t\tsize++;\n\t\t}\n\t\telse{\n\t\t\tNode temp=head;\n\t\t\twhile(temp.getNext()!=null){\n\t\t\t\ttemp=temp.getNext();\n\t\t\t}\n\t\t\ttemp.setNext(newNode);\n\t\t\tsize++;\n\t\t}\n\t}", "@Override\n\tpublic V add(K key, V value) {\n\t\tV result = null;\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(currentNode != null && key.equals(currentNode.getKey())){\n\t\t\tresult = (V) currentNode.getValue();\n\t\t\tcurrentNode.setValue(value);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tNode newNode = new Node(key, value);\n\t\t\tif(currentNode == null){\n\t\t\t\tnewNode.setNextNode(firstNode);\n\t\t\t\tfirstNode = newNode;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfirstNode.setNextNode(newNode);\n\t\t\t}\n\t\tnumberOfEntries++;\t\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "@Test\n public void testListWithValue() {\n Node makeNumbers1 = makeNumbersNode.withName(\"makeNumbers1\").withInputValue(\"string\", \"1 2 3\");\n Node add1 = addNode.extend().withName(\"add1\").withInputValue(\"v2\", 100.0);\n Node net = Node.NETWORK\n .withChildAdded(makeNumbers1)\n .withChildAdded(add1)\n .connect(\"makeNumbers1\", \"add1\", \"v1\");\n assertResultsEqual(context.renderChild(net, add1), 101.0, 102.0, 103.0);\n }", "public void add(T value) {\n extend();\n this.list[size]=value;\n this.size++;\n }", "public Tree<T> add(T value) {\n checkForNull(value);\n\n if (childrenValueSet.contains(value)) {\n return null;\n }\n\n Tree<T> tree = new Tree<>(value, this);\n incModificationCount();\n\n return tree;\n }", "public void add(int value) {\n overallRoot = add(overallRoot, value);\n }", "public boolean addVertex(Object value) \n\t{\n\t\tthis.map.put(value, new SinglyLinkedList());\n\t\treturn true;\n\t}", "public void addNode(Node node){subNodes.add(node);}", "public Node createNode(int value) {\r\n\t\treturn new Node(value, null, null);\r\n\t}", "public void addToStart(String value) {\n ListElement current = new ListElement(value);\n if (count == 0) {\n head = current;\n tail = current;\n } else {\n current.connectNext(head);\n head = current;\n }\n count++;\n }", "public Builder addNode(\n int index, uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode value) {\n if (nodeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeIsMutable();\n node_.add(index, value);\n onChanged();\n } else {\n nodeBuilder_.addMessage(index, value);\n }\n return this;\n }", "public void add(int value) {\n\t\taddRecursive(root, value);\n\t\t// System.out.print(\"root\" + String.valueOf(root.value));\n\t}", "public Builder addNodes(entities.Torrent.NodeId value) {\n if (nodesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodesIsMutable();\n nodes_.add(value);\n onChanged();\n } else {\n nodesBuilder_.addMessage(value);\n }\n return this;\n }", "public void insert(int value){\n head = new Node(value,head);\n size++;\n }", "public boolean add(Object value)\r\n {\r\n if (contains(value))\r\n return false;\r\n root = add(root, value);\r\n return true;\r\n }", "public boolean add(T value) {\n NodePair<T> spl = split(root, value);\n\n if (spl.second != null && getLeft(spl.second).value.compareTo(value) == 0) {\n root = merge(spl.first, spl.second);\n return false;\n }\n\n root = merge(spl.first, merge(makeNode(value), spl.second));\n return true;\n }", "public Node(String value)\n\t{\n\t\tthis.children = new ArrayList<Node>();\n\t\tthis.value = value;\n\t}", "Node(E value) {\n this.value = value;\n this.childen = new ArrayList<>();\n }", "public void add(String value);", "public void addToFront(T value) {\n\t\tstart = new Node<T>(value, start);\n\t}", "public void addAtIndex(int index, int val) {\n if (index < 0 || index > size) return;\n\n Node node = head;\n\n for (int i = 0; i < index; i++) {\n node = node.next;\n }\n\n Node newNode = new Node(val);\n newNode.next = node.next;\n newNode.next.prev = newNode;\n node.next = newNode;\n newNode.prev = node;\n size++;\n }", "@Override\n\tpublic void push(T value) {\n\t\tLink_Node<T>node = new Link_Node<T>(value);\n\t\tnode.setPrevious(last);\n\t\tlast = node;\n\t\tcounts++;\n\t}", "public void addFirst(int value) {\n if (head == null) {\n head = new SinglyLinkedNode(value, null);\n }\n //case: one value\n else {\n SinglyLinkedNode previousHead = head;\n head = new SinglyLinkedNode(value, previousHead);\n }\n count += 1;\n }", "boolean addNode(long idNum, String label);", "private static Node createNode(int value) {\n\t\treturn new Node(value);\n\t}", "private Node add(int value, int pos) {\n int len = this.getlength();\n Node result = new Node(value);\n\n if (pos > len - 1) {\n System.out.println(\"out of range: added to tail\");\n result = this.add(value);\n return result;\n } else if (pos == 0) { // add to a new node's head\n if (this.value == Integer.MIN_VALUE) {\n return result;\n } else {\n result.nextNode = this;\n return result;\n }\n } else {\n Node current = this;\n Node inNode = new Node(value);\n for (int i = pos; i > 1; i--) {\n current = current.nextNode;\n }\n Node temp = current.nextNode;\n current.nextNode = inNode;\n inNode.nextNode = temp;\n return this;\n }\n }", "public void insertBefore(int value, int newVal) {\n try {\n ListNode nodeValue = new ListNode(value);\n ListNode newValue = new ListNode(newVal);\n ListNode current = this.root;\n\n while (current.data != value) {\n current = current.next;\n }\n newValue.next = current.next;\n current.next = newValue;\n } catch (NullPointerException e) {\n System.out.println(\"You have reached the end of the list.\");\n }\n }", "public void add(K key, V value) {\r\n if(this.table.containsKey(key)){\r\n BloomFilterUtil bf = (BloomFilterUtil)table.get(key).getHash();\r\n bf.put(value);\r\n Node<V> node = (Node<V>) table.get(key);\r\n node.getValues().add(value);\r\n }else {\r\n BloomFilterUtil bf = BloomFilterUtil.create(funnel,\r\n expectedInsertions,\r\n fpp,\r\n (BloomFilterUtil.Strategy) hashStrategy);\r\n bf.put(value);\r\n Node<V> node = new Node<V>(value, bf);\r\n table.put(key, node);\r\n }\r\n }", "public void addToNoCycle(T value) {\n Node<T> tmp = lastNode;\n Node<T> node = new Node<>(value, null);\n lastNode = node;\n if (tmp == null) {\n firstNode = node;\n } else {\n tmp.next = null;\n }\n size++;\n\n }", "public Node(T value) {\n\t\t\tthis.value = value; // initializing\n\t\t\tnext = null;\n\t\t}", "void addNode()\n {\n Node newNode = new Node(this.numNodes);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n }", "public void addAtHead(int val) {\n ListNode ptr=new ListNode(val);\n ptr.next=head;\n if(head==null)\n tail=ptr;\n head=ptr;\n size++;\n // display();\n }", "@Override\n public boolean add(E value) {\n final AVLTreeNode<E> insert = insert(value);\n if(insert != null && insert != tree.getHead()){\n tree.setHead(insert);\n }\n return insert != null;\n }", "@Override\n public void insertAtBeginning(T value) {\n Node<T> new_node = new Node<>(value);\n new_node.next = start;\n start = new_node;\n }", "public void insert(int value, int pos){\n if (head != null) {\n // Have a first node\n head = head.insert(value,pos);\n } else {\n // List empty\n this.add(value);\n }\n }", "private Node<Integer> addRecursive(Node<Integer> current, int value) {\n\t\tif (current == null) {\n\t\t\treturn new Node<Integer>(value);\n\n\t\t}\n\n\t\tif (value < current.value) {\n\t\t\tcurrent.left = addRecursive(current.left, value);\n\n\t\t} else if (value > current.value) {\n\t\t\tcurrent.right = addRecursive(current.right, value);\n\n\t\t} else\n\t\t\treturn current; // value exist\n\t\treturn current;\n\t}", "public List(E value) {\n\t\thead = new ListNode(value, null);\n\t}", "public Node(T value) {\n\t\tthis.value = value;\n\t}", "void addNode(Node n) {\n nodes.put(n.id, n);\n }", "public void add(U newValue) {\n\t\t\tlinkBeforeNode(new Node<>(newValue), mHead);\n\t\t}", "public Node appendNode(Node node);", "public void add(int value) {\n // resize if necessary\n if (size + 1 >= elementData.length) {\n elementData = Arrays.copyOf(elementData, elementData.length * 2);\n }\n \n // insert as new rightmost leaf\n elementData[size + 1] = value;\n \n // \"bubble up\" toward root as necessary to fix ordering\n int index = size + 1;\n boolean found = false; // have we found the proper place yet?\n while (!found && hasParent(index)) {\n int parent = parent(index);\n if (elementData[index] < elementData[parent]) {\n swap(elementData, index, parent(index));\n index = parent(index);\n } else {\n found = true; // found proper location; stop the loop\n }\n }\n \n size++;\n }", "public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }", "public void addNode(String line)\n\t{\n\t\tScanner scanner = new Scanner(line);\n\t\tString name = scanner.next();\n\t\t\n\t\tStringTokenizer tokenizer = new StringTokenizer(line.substring(line.indexOf(' ') + 1), \",\");\n\t\t\n\t\tArrayList<String> values = new ArrayList<String>();\n\t\twhile (tokenizer.hasMoreTokens())\n\t\t\tvalues.add(tokenizer.nextToken());\n\t\t\n\t\tthis.nodes.put(name, new Node(name, values));\n\t}", "public void add(int value, String name){\n \n Node newNode = new Node(value, name); //Intialize new node \n \n if(root == null){ //If the root is null \n root = newNode; //Set newNode to the root \n }\n else{ \n Node myNode = root; //Create a second new node\n Node parent; //Crete a parent Node \n\n while (true) { //While true....\n \n parent = myNode;//Set parent node to myNode\n \n if (value < myNode.value) { //If the value is less than my node \n \n myNode = myNode.left; //Set myNode to left \n \n if (myNode == null) { //If the value of myNode is null \n \n parent.left = newNode; //Set the left parent node to newNode\n return; \n \n }\n }else {\n \n myNode = myNode.right; //Set myNode to the right Node\n \n if (myNode == null) {\n \n parent.right = newNode; //Set the right node to the newNode\n return;\n \n }\n\n }\n\n }\n \n }\n \n \n }", "void prepend(int value) {\n\t\tNode n = new Node(value);\n\t\tn.next = head;\n\t\thead = n;\n\t\tlength++;\n\t\t//print();\n\t}", "public void addInterpretedBy( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), INTERPRETEDBY, value);\r\n\t}", "void add(String name, int value);", "public Node(T value) {\n this.value = value;\n }", "public void insert(int value){\r\n\t\tNode node = new Node<>(value);\r\n\t\t//If the tree is empty\r\n\t\tif ( root == null ) {\r\n\t\t\troot = node;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tinsertRec(root, node);\r\n\t}", "public Node(String value) {\n\t\t\tthis.value = value;\n\t\t\tthis.next = null;\n\t\t}", "public void addAtHead(int val) {\n SingleNode cur = new SingleNode(val, head);\n head =cur;\n if(len==0) tail = cur;\n len++;\n }", "public void addFirst(T value) {\n Node<T> node = new Node<T>(value);\n Node<T> next = sentinel.next;\n\n node.next = next;\n next.prev = node;\n sentinel.next = node;\n node.prev = sentinel;\n\n size += 1;\n }", "boolean addNode(N node);", "public abstract GraphNode<N, E> createNode(N value);", "public void addNode(String node_name, String node_value,\n\t\t\tHashMap<String, String> document) throws IOException {\n\t\tPropertyValues property = new PropertyValues();\n\t\tString key = property.getPropValues(node_name);\n\n\t\tif (key == null)\n\t\t\tkey = node_name;\n\n\t\tif (!document_types.contains(\"|\" + node_name + \"|\")\n\t\t\t\t&& !formatter_nodes.contains(\"|\" + node_name + \"|\")) {\n\t\t\tif (document.containsKey(key)) {\n\t\t\t\tdocument.put(key, document.get(key) + \", \" + node_value);\n\t\t\t} else {\n\t\t\t\tdocument.put(key, node_value);\n\t\t\t}\n\t\t}\n\t}", "public void add(int value) {\n SubArrayMinNode newNode = new SubArrayMinNode(value);\n newNode.left = SubArrayMinNode.LEAF;\n newNode.right = SubArrayMinNode.LEAF;\n if (root.isLeaf()) {\n root = newNode;\n newNode.augment();\n } else {\n SubArrayMinNode node = root.max();\n node.right = newNode;\n newNode.parent = node;\n newNode.isRed = true;\n root = newNode.fixInsertion();\n }\n }" ]
[ "0.77296317", "0.7667906", "0.76466614", "0.7537402", "0.74191934", "0.73753846", "0.73314923", "0.729677", "0.7291293", "0.7243616", "0.72330505", "0.71890724", "0.7179678", "0.706735", "0.7054943", "0.7046265", "0.70297223", "0.70030975", "0.6912395", "0.67547715", "0.6747561", "0.67329156", "0.6719627", "0.67103016", "0.6702278", "0.66879755", "0.66669405", "0.6660542", "0.66582185", "0.6655926", "0.66500586", "0.6649192", "0.6646241", "0.6641531", "0.66375875", "0.6629015", "0.65813804", "0.6545625", "0.6527416", "0.65245706", "0.6522082", "0.65024227", "0.64921486", "0.64791316", "0.64665747", "0.64574754", "0.6443484", "0.64299136", "0.64245194", "0.64232564", "0.64118487", "0.64068735", "0.6399134", "0.63797516", "0.6376416", "0.63378197", "0.6331309", "0.6324772", "0.63206536", "0.6317436", "0.6313529", "0.63084716", "0.6293393", "0.6284506", "0.62769353", "0.62635475", "0.6259576", "0.62577504", "0.6252518", "0.62511945", "0.62174016", "0.62119687", "0.6211156", "0.6194092", "0.61926126", "0.61851835", "0.61845005", "0.6173824", "0.6171575", "0.61696035", "0.6169494", "0.61655444", "0.6157789", "0.61501616", "0.61479026", "0.61416286", "0.61399555", "0.61311686", "0.6128816", "0.6124997", "0.6123652", "0.61228377", "0.6122799", "0.61191165", "0.61165684", "0.6111757", "0.6107308", "0.6092602", "0.6085745", "0.6077356" ]
0.64636433
45
Displays the content of all nodes.
public void displayNodes() { Node node = this.head; StringBuilder sb = new StringBuilder(); while (node != null) { sb.append(node.data).append(" "); node = node.next; }; System.out.println(sb.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String showAllNodes();", "public void display() {\n ITree.Node root = this.createNode(0);\n TreePrinter.printNode(root);\n }", "@Override\n\tvoid display() {\n\t\tif(nodeList == null || nodeList.size() == 0) {\n\t\t\tSystem.out.println(\"not found.\");\n\t\t\treturn;\n\t\t}\n for(Inode inode:nodeList) {\n\t\t\tSystem.out.println(inode.nodename);\n }\n\t}", "public void displayNode() {\n\t\t\tSystem.out.println(\"{ \" + data + \" } \");\n\t\t}", "public void displayNode() // display ourself\n\t{\n\t\tSystem.out.print('{');\n\t\tSystem.out.print(iData);\n\t\t\n\t\tSystem.out.print(\"} \");\n\t}", "public void printNodes() {\n\t\tprintNodes(root);\n\n\t}", "public static void display(Node root){\r\n String str = \"[\"+root.data+\"] -> \";\r\n for(Node child : root.children){\r\n str += child.data + \", \";\r\n }\r\n System.out.println(str + \" . \");\r\n \r\n for(int i=0; i<root.children.size(); i++){\r\n Node child = root.children.get(i);\r\n display(child);\r\n }\r\n }", "public void printNodes() {\n\t\tNode currentNode = headNode;\n\t\tif(currentNode==null) {\n\t\t\tSystem.out.println(\" The Node is Null\");\n\t\t\treturn;\n\t\t} else {\n\t\t\tSystem.out.print(\" \"+ currentNode.getData());\n\t\t\twhile(currentNode.getNextNode()!=null) {\n\t\t\t\tcurrentNode = currentNode.getNextNode();\n\t\t\t\tSystem.out.print(\"=> \"+ currentNode.getData());\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void printAll() {\n\t\tNode node = root;\n\t\twhile (node != null) {\n\t\t\tSystem.out.println(node.data);\n\t\t\tnode = node.left;\n\t\t}\n\t}", "public void printAllNodes() {\n\t\tNode current = head;\n\n\t\twhile( current != null ) {\n\t\t\tSystem.out.println(current.data);\n\t\t\tcurrent = current.next;\n\t\t}\n\t}", "public void show() {\n\n\t\tNode n = head;\n\t\twhile (n.next != null) {\n\t\t\t//logger.info(n.data);\n\t\t\tn = n.next;\n\t\t}\n\t\t//logger.info(n.data);\n\n\t}", "public void show() {\n Node<T> node = head;\n while (node.next != null) {\n System.out.println(node.data);\n node = node.next;\n }\n System.out.println(node.data);\n }", "public void display()\r\n {\r\n recursiveDisplay(head);\r\n }", "public void display() {\r\n\t\tNode curr = new Node();\r\n\t\tcurr = head;\r\n\t\tString Output = \"Here is the linked list from the head node till the end\";\r\n\t\twhile (curr != null) {\r\n\t\t\tOutput += \"\\n\" + curr.num + \", \" + curr.str;\r\n\t\t\tcurr = curr.next;\r\n\t\t}\r\n\t\tSystem.out.print(Output);\r\n\t}", "public void showContent() {\n createStream().forEach(System.out::println);\n }", "public void printTree() {\n Object[] nodeArray = this.toArray();\n for (int i = 0; i < nodeArray.length; i++) {\n System.out.println(nodeArray[i]);\n }\n }", "public void display() {\n MyMapNode current = head;\n if (head == null) {\n System.out.println(\"List is empty\");\n return;\n }\n while (current != null) {\n //Prints each node by incrementing pointer\n System.out.print(current.data + \" \");\n current = current.next;\n }\n System.out.println();\n }", "public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}", "public void displayAll() {\n\t\tSystem.out.println(\"Title \"+this.getTitle());\n\t\tSystem.out.println(\"Artist \"+this.getArtist());\n\t\tSystem.out.println(\"Genre \"+this.genre);\n\t}", "public void show()\n\t{\n\t\tNode temp= head;\n\t\t\n\t\twhile(temp.next!=null)\n\t\t{\n\t\t\tSystem.out.println(temp.data);\n\t\t\ttemp=temp.next;\n\t\t}\n\t\tSystem.out.println(temp.data); //to print last node\n\t}", "public void printTopView() {\r\n\t\tfinal ArrayList<Integer> nodeDataList = new ArrayList<>();\r\n\r\n\t\tgetLeftChildren(rootNode.left, nodeDataList);\r\n\t\tnodeDataList.add(rootNode.data);\r\n\t\tgetRightChildren(rootNode.right, nodeDataList);\r\n\r\n\t\tSystem.out.println(\"Printing Top View\");\r\n\r\n\t\tnodeDataList.forEach(nodeData -> {\r\n\t\t\tSystem.out.print(nodeData + \" \");\r\n\t\t});\r\n\t}", "public void display() {\n\t\ttree.resize(30,50);\n\t\tfor(int i = 650; i > 0; i -= 100) {\t\n\t\t\tt.image(tree,25,i);\n\t\t}\n\t\tfor(int i = 650; i > 0; i -= 100) {\t\n\t\t\tt.image(tree, 575, i);\n\t\t}\n\t}", "public void printAll() {\n Node node = head;\n\n while (node != null) {\n System.out.println(node.getStudent());\n node = node.getLink();\n }\n System.out.println();\n }", "public void display() {\n\t\tSystem.out.println(\"[\" + recDisplay(head) + \"]\");\n\t}", "public void display(Node node)\n\t{\n\t\tif(node == null)\n\t\t\treturn;\n\t\tSystem.out.print(node.getData()+\"\\t\");\n\t\tdisplay(node.left);\n\t\tdisplay(node.right);\n\t}", "void display(){\r\n\t\t if(start==null){\r\n\t\t\t System.out.println(\"linklist is empty\");\r\n\t\t\t }\r\n\t\telse{\r\n\t\t\tnode temp=start;\r\n\t\t\twhile(temp!=null){\r\n\t\t\t\tSystem.out.println(temp.data);\r\n\t\t\t\ttemp=temp.next;\r\n\t\t\t\t}//end of while\r\n\t\t\t}//end of else statement\r\n\r\n\t\t }", "public static void display(Node head) {\r\n for (Node node = head; node != null; node = node.next) {\r\n System.out.print(node.data + \" \");\r\n }\r\n }", "public void display(){\n\t\tSystem.out.println(\"node: \"+name+\", at \"+drawnNode.getXPosition()+\",\"+drawnNode.getYPosition()+\", colour \"+drawnNode.getColour());\n\t\tif(outArcs.length > 0)\n\t\t\tSystem.out.println(\"out arcs:\");\n\t\tfor(int i=0;i<outArcs.length;i++)\n\t\t\tSystem.out.println(\"to \"+outArcs[i].getEndNode().getName());\n\t}", "public void displayGraph() {\r\n\t\tgraph.display();\r\n\t}", "public void printTreeNodes(){\n logger.trace(\"Name: \"+this.getName());\n for(int i=0;i<this.getChildCount();i++){\n SearchBaseNode node = (SearchBaseNode) this.getChildAt(i);\n node.printTreeNodes();\n }\n }", "public void printContent() {\n\t\tSystem.out.println(this.content);\n\t}", "public void printTree() {\n\t\tSystem.out.println(printHelp(root));\r\n\t\t\r\n\t}", "public void summarize () {\n\n TreeNodeVisitor visitor = new TreeNodeVisitor();\n traversal (visitor);\n visitor.log();\n \n }", "public void displayAll() {\n\t\t\n\t\tbankop.display();\n\t\n\t}", "public void display() {\r\n int v;\r\n Node n;\r\n \r\n for(v=1; v<=V; ++v){\r\n System.out.print(\"\\nadj[\" + toChar(v) + \"] ->\" );\r\n for(n = adj[v]; n != z; n = n.next) \r\n System.out.print(\" |\" + toChar(n.vert) + \" | \" + n.wgt + \"| ->\"); \r\n }\r\n System.out.println(\"\");\r\n }", "public String display()\r\n {\r\n return recDisplay(root);\r\n }", "public void printAll()\n {\n r.showAll();\n }", "public void print() {\r\n\r\n Node currentNode = this.head;\r\n while (currentNode != null) {\r\n System.out.print(currentNode.data + \" \");\r\n currentNode = currentNode.next;\r\n }\r\n\r\n }", "public void print_list() {\n \t \n \t//define current node as\n \t node<Type> current_node = new node<>();\n \t \n \t //now keep for loop and print the answer\n \t current_node = head;\n \t \n \t //print first element\n \t System.out.println(current_node.show_element());\n \t \n \t //now run for loop\n \t for (int i = 1 ; i <= len - 1 ; i ++) {\n \t\t \n \t\t //change current node\n \t\t current_node = current_node.show_next();\n \t\t \n \t\t //just print the answer\n \t\t System.out.println(current_node.show_element());\n \t }\n }", "public static void print()\r\n\t {\r\n\t\t Node n = head; \r\n\t\t\t\r\n\t\t\twhile(n!=null)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(n.data+\" \");\r\n\t\t\t\r\n\t\t\t\tn=n.next;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t }", "public void print() {\r\n\t\tif(isEmpty()) {\r\n\t\t\tSystem.out.printf(\"%s is Empty%n\", name);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.printf(\"%s: %n\", name);\r\n\t\tNode<E> current = first;//node to traverse the list\r\n\t\t\r\n\t\twhile(current != null) {\r\n\t\t\tSystem.out.printf(\"%d \", current.data);\r\n\t\t\tcurrent = current.next;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public void print (){\r\n for (int i = 0; i < graph.size(); ++i){\r\n graph.get(i).print();\r\n }\r\n }", "Collection<Node> allNodes();", "private static void print(ArrayList<Node<BinaryTreeNode<Integer>>> n) {\n\t\tfor(int i=0; i<n.size(); i++) {\n\t\t\tNode<BinaryTreeNode<Integer>> head = n.get(i);\n\t\t\twhile(head != null) {\n\t\t\t\tSystem.out.print(head.data.data+\" \");\n\t\t\t\thead = head.next;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void printDLR() {\n if(!empty()) {\n printDLRNodes(root);\n System.out.println();\n }\n }", "public void printLDR() {\n if(!empty()) {\n printLDRNodes(root);\n System.out.println();\n }\n }", "public List<INode> getAllNodes();", "public void viewAll() {\n click(viewAllLink);\n }", "void printNodes(){\n\t\tfor(int i=0;i<Table.length;i++){\r\n\t\t\tfor(StockNode t=Table[i];t!=null;t=t.next){\r\n\t\t\t\tSystem.out.println(t.stockName+\":\"+t.stockValue+\" \"+t.transactions);\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void display(Nodetype list)\n{\n\tNodetype temp;\n\tif(list==null)\n\t\tSystem.out.println(\"\\nEmpty linked list\");\n\telse\n\t{\n\t\ttemp=list;\n\t\twhile(temp!=null)\n\t\t{\n\t\t\tSystem.out.print(\"->\"+temp.info);\n\t\t\ttemp=temp.next;\n\t\t}\n\t}\n\tSystem.out.println();\n}", "public static void printBN() {\n\t\tfor (BNNode node : nodes)\n\t\t\tSystem.out.println(node);\n\t}", "public void printList() {\n\t\tNode tnode = head;\n\t\twhile (tnode != null) {\n\t\t\tSystem.out.print(tnode.data + \"->\");\n\t\t\ttnode = tnode.next;\n\t\t}\n\t}", "public void display(){\n if (this.listSize == 0){\n System.out.println(\"This is an empty list!\");\n return;\n }else if(this.head.getNextNode() == null){\n System.out.print(this.head.getData()); //single-node list\n return;\n }\n System.out.print(this.head.getData() + \" -> \"); //print out head node\n singlyListNode ptr = this.head.getNextNode();\n while(ptr.getNextNode() != null){\n System.out.print(ptr.getData() + \" -> \");\n ptr = ptr.getNextNode();\n }\n //when ptr reaches second last node\n System.out.println(ptr.getData());\n }", "public void setShowNodes(Boolean value) {\n showNodes = value;\n }", "public void printTree() {\n printTreeHelper(root);\n }", "public void print() {\n\t\tprint(root);\n\t}", "public void print()\n {\n for (Node curr = first; curr != null; curr = curr.next)\n System.out.print(curr.val + \" \");\n System.out.println();\n }", "public List<TbNode> getAll() {\n return qureyNodeList(new NodeParam());\n }", "public List<Node> getAllNodes() {\n return nodeRepository.findAll();\n }", "public void tree()\n\t{\n\t\tIterable<Position<FileElement>> toPrint = fileSystem.PreOrder();\n\t\tfor (Position<FileElement> p : toPrint)\n\t\t{\n\t\t\tint depth = fileSystem.getDepth(p);\n\t\t\tfor (int i = 0; i < depth; i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(p.getValue());\n\t\t}\n\t}", "public static void printContent(WritableGraphListDataUnit dataUnit)\n throws LpException {\n for (IRI graph : dataUnit.getGraphs()) {\n System.out.println(\": \" + graph.toString());\n Repositories.consume(dataUnit.getRepository(),\n (RepositoryConnection connection) -> {\n connection.exportStatements(null, null, null, true,\n new AbstractRDFHandler() {\n\n @Override\n public void handleStatement(Statement st)\n throws RDFHandlerException {\n System.out.println(\n \"\\t\" + st.getSubject().stringValue()\n + \"\\t\" + st.getPredicate().stringValue()\n + \"\\t\" + st.getObject().stringValue());\n }\n\n }, graph);\n });\n }\n }", "public void print(){\n\t\tif(isEmpty()){\n\t\t\tSystem.out.printf(\"Empty %s\\n\", name);\n\t\t\treturn;\n\t\t}//end if\n\n\t\tSystem.out.printf(\"The %s is: \", name);\n\t\tListNode current = firstNode;\n\n\t\t//while not at end of list, output current node's data\n\t\twhile(current != null){\n\t\t\tSystem.out.printf(\"%s \", current.data);\n\t\t\tcurrent = current.nextNode;\n\t\t}//end while\n\n\t\tSystem.out.println(\"\\n\");\n\t}", "public void printNodes(){\n for(int i =0; i<n;i++)\n System.out.print(key[i]+\" \");\n System.out.println(isLeaf);\n if (!isLeaf){\n for(int i =0; i<=n;i++){\n c[i].printNodes();\n }\n }\n }", "public void print() {\r\n\t\tfor (ListNode temp = head; temp != null; temp = temp.link) {\r\n\t\t\tSystem.out.println(temp.data);\r\n\t\t}\r\n\t}", "void showAll();", "public void printOut() {\n\t\tif(root.left != null) {\n\t\t\tprintOut(root.left);\n\t\t}\n\t\t\n\t\tSystem.out.println(root.element);\n\t\t\n\t\tif(root.right != null) {\n\t\t\tprintOut(root.right);\n\t\t}\n\t}", "public void print(){\n\t\t\tNode current = head;\n\t\t\tSystem.out.println(\"--------------------------\");\n\t\t\twhile(current != null) \n\t\t\t{\n\t\t\t\tSystem.out.println(current.data);\n\t\t\t\tcurrent = current.next;\n\t\t\t}\n\t}", "void printNode() {\n\t\tint j;\n\t\tSystem.out.print(\"[\");\n\t\tfor (j = 0; j <= lastindex; j++) {\n\n\t\t\tif (j == 0)\n\t\t\t\tSystem.out.print (\" * \");\n\t\t\telse\n\t\t\t\tSystem.out.print(keys[j] + \" * \");\n\n\t\t\tif (j == lastindex)\n\t\t\t\tSystem.out.print (\"]\");\n\t\t}\n\t}", "public void Display() {\n this.data.Display();\n System.out.print(\"POSSIBLE CONNECTING FLIGHTS: \\n\\n\");\n this.DisplayList(this.head);\n }", "public void print_root(){\r\n\t\tfor(int id = 0; id < label.length; id++){\r\n\t\t\tSystem.out.printf(\"\"%d \"\", find(id));\r\n\t\t}\r\n\t\tSystem.out.printf(\"\"\\n\"\");\r\n\t}", "public void run() {\n\t\t\t\tshowMessage(\"Notes for 'Class Components Tree' view\", \n\t\t\t\t\t\t\"This view shows the components tree of the class that is selected in Model Explorer.\");\n//\t\t\t\t\t\t\t\"\\n\\nNote that arrays are not expanded.\");\n\t\t\t}", "public void print(){\n NodeD tmp = this.head;\n\n while(tmp!=null){\n System.out.println(tmp.getObject().asString());\n tmp = tmp.getNext();\n }\n }", "public void printRoot(){\n for(String temp : root){\n System.out.println(temp);\n }\n }", "private void printNode() {\n System.out.println(\"value:\" + value + \" next:\" + nextNode);\n }", "public void displayList(){\n ArtistNode node = head;\n \n //while the next node isnt null, we print out the node\n while(node.next!=null){\n \n System.out.println(node);\n \n //once we've printed out the current node, we set our node equal to the next node.\n node=node.next;\n \n }\n \n //We need this because it stops printing when node.next has a null value which the end node will always have a null value so we must print the last node\n //after the while loop ends\n System.out.println(node);\n \n \n }", "void Print() {\r\n\r\n AVLTreeNode node = root;\r\n\r\n printInorder(node);\r\n\r\n }", "public static void index() {\n\t\tList<models.Todo> todos = models.Todo.findAllSorted();\t\n\t\trender(todos);\n\t}", "public void printTree() {\r\n printTree(overallRoot, 0);\r\n }", "public void printNode(){\n\t\tSystem.out.println(\"\\nCurrent neigbor: \" + serventList.size());\n\t\tfor(int i = 0;i<serventList.size();i++){\n\t\t\tServentInfo b = serventList.get(i);\n\t\t\tSystem.out.println(\"(\" + b.IP + \":\" + b.port + \"); \");\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}", "private void printFullTree()\r\n {\r\n System.out.println(fullXmlTree.toString());\r\n }", "public static void display(Node head) {\n\t\tif ( head == null ) {\n\t\t\tSystem.out.println(\"List is empty\");\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tNode currentNode = head;\n\t\t\twhile(currentNode != null) {\n\t\t\t\tSystem.out.print(currentNode.data + \" \");\n\t\t\t\tcurrentNode = currentNode.next;\n\t\t\t}\n\t\t}\n\t}", "public void printList() \r\n\t { \r\n\t Node tnode = head; \r\n\t while (tnode != null) \r\n\t { \r\n\t System.out.print(tnode.data+\" \"); \r\n\t tnode = tnode.next; \r\n\t } \r\n\t }", "public void printGraphStructure() {\n\t\tSystem.out.println(\"Vector size \" + nodes.size());\n\t\tSystem.out.println(\"Nodes: \"+ this.getSize());\n\t\tfor (int i=0; i<nodes.size(); i++) {\n\t\t\tSystem.out.print(\"pos \"+i+\": \");\n\t\t\tNode<T> node = nodes.get(i);\n\t\t\tSystem.out.print(node.data+\" -- \");\n\t\t\tIterator<EDEdge<W>> it = node.lEdges.listIterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tEDEdge<W> e = it.next();\n\t\t\t\tSystem.out.print(\"(\"+e.getSource()+\",\"+e.getTarget()+\", \"+e.getWeight()+\")->\" );\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void printList() {\n System.out.println(\"Linked list contents:\");\n for (Node p = head; p != null; p = p.next)\n System.out.println(p.data);\n }", "public void print()\r\n {\r\n print(root);\r\n }", "void print() {\n Node current = this;\n while (current != null) {\n System.out.format(\"%d \", current.value);\n current = current.next;\n }\n System.out.println();\n }", "public void print() {\n\t\tNode temp = head;\n\n\t\tif(temp == null) {\n\t\t\treturn;\n\t\t} \n\n\t\twhile(temp.next != null) {\n\t\t\tSystem.out.print(temp.data + \"->\");\n\t\t\ttemp = temp.next;\n\t\t}\n\t\tSystem.out.println(temp.data);\n\t}", "public void display() {\n System.out.println(toString());\n }", "public void internal() {\n if(count() == 1) return;\n if(!empty()){\n internalNodes(root);\n }\n System.out.println();\n }", "void printNodesWithEdges()\n {\n for ( int i = 0; i < this.numNodes; i++ )\n {\n Node currNode = this.nodeList.get(i);\n System.out.println(\"Node id: \" + currNode.id );\n \n int numEdges = currNode.connectedNodes.size();\n for ( int j = 0; j < numEdges; j++ )\n {\n Node currEdge = currNode.connectedNodes.get(j);\n System.out.print(currEdge.id + \",\");\n }\n\n System.out.println();\n } \n\n \n }", "public void displayMatrix(){\r\n\t\t\r\n\t\tfor (int i = 0; i < head.getOrder(); i++) {\r\n\t\t\tElementNode e = head.gethead();\r\n\t\t\tif( i > 0){\r\n\t\t\t\tfor (int j = 0; j <= i-1; j++) {\r\n\t\t\t\t\te = e.getNextRow();\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t\tfor (int j = 0; j < head.getOrder(); j++) {\r\n\t\t\t\tSystem.out.print( e.getData() + \" \");\r\n\t\t\t\te = e.getNextColumn();\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\"\\n\");\r\n\t\t}\r\n\t}", "@Override\n public void printTree() {\n System.out.println(\"node with char: \" + this.getChar() + \" and key: \" + this.getKey());\n int i = 0;\n for(IABTNode node : this.sons) {\n if(!node.isNull()) {\n System.out.print(\"Son \" + i + \" :\");\n node.printTree();\n }\n i++;\n }\n }", "public void printGraph()\n {\n Iterator<T> nodeIterator = nodeList.keySet().iterator();\n \n while (nodeIterator.hasNext())\n {\n GraphNode curr = nodeList.get(nodeIterator.next());\n \n while (curr != null)\n {\n System.out.print(curr.nodeId+\"(\"+curr.parentDist+\")\"+\"->\");\n curr = curr.next;\n }\n System.out.print(\"Null\");\n System.out.println();\n }\n }", "public void printList(){\n MovieNode temp = head;\t\t//Iterator\n System.out.print(\"Data: \");\n while(temp.next != null){\t\t//While theres data\n System.out.print(temp.next.data + \"->\");\t//Print the data\n temp = temp.next;\t\t\t\t\t\t\t//Point to the next MovieNode\n }\n System.out.println();\t\t\t\t\t\t//Go to the next line\n }", "public void printNodes() { \n //Node current will point to head \n Node current = head; \n if(head == null) { \n System.out.println(\"Doubly linked list is empty\"); \n return; \n } \n System.out.println(\"Nodes of doubly linked list: \"); \n while(current != null) { \n //Print each node and then go to next. \n System.out.print(current.item + \" \"); \n current = current.next; \n } \n }", "public void display() \n {\n if (top == null) { \n System.out.printf(\"\\nStack Underflow\"); \n return; \n } \n else { \n Node temp = top; \n while (temp != null) { \n \n // print node data \n System.out.printf(\"%d<-\", temp.data); \n \n // assign temp link to temp \n temp = temp.next; \n } \n } \n }", "public void display() {\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tString str = vname + \" => \";\r\n\t\t\tVertex vtx = vces.get(vname);\r\n\r\n\t\t\tArrayList<String> nbrnames = new ArrayList<>(vtx.nbrs.keySet());\r\n\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\tstr += nbrname + \"[\" + vtx.nbrs.get(nbrname) + \"], \";\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(str + \".\");\r\n\t\t}\r\n\t}", "public void display()\n {\n System.out.print(\"\\nDoubly Linked List = \");\n if (size == 0)\n {\n System.out.print(\"empty\\n\");\n return;\n }\n if (start.getListNext()== null)\n {\n System.out.println(start.getData() );\n return;\n }\n List ptr = start;\n System.out.print(start.getData()+ \" <-> \");\n ptr = start.getListNext();\n while (ptr.getListNext()!= null)\n {\n System.out.print(ptr.getData()+ \" <-> \");\n ptr = ptr.getListNext();\n }\n System.out.print(ptr.getData()+ \"\\n\");\n }", "protected abstract Node[] getAllNodes();", "public void print() {\n\t\tfor (int count = 0; count < adjacencyList.length; count++) {\n\t\t\tLinkedList<Integer> edges = adjacencyList[count];\n\t\t\tSystem.out.println(\"Adjacency list for \" + count);\n\n\t\t\tSystem.out.print(\"head\");\n\t\t\tfor (Integer edge : edges) {\n\t\t\t\tSystem.out.print(\" -> \" + edge);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t}\n\t}" ]
[ "0.75336", "0.74032706", "0.7290882", "0.72747445", "0.7071221", "0.7022882", "0.69012326", "0.6886688", "0.6879296", "0.68683094", "0.67710274", "0.6666978", "0.65972924", "0.6564474", "0.655663", "0.655469", "0.65211976", "0.65146154", "0.6445024", "0.64133984", "0.64093155", "0.64052117", "0.6399306", "0.6389247", "0.63754076", "0.6374042", "0.63675416", "0.63458663", "0.6337358", "0.6324681", "0.62931895", "0.62219816", "0.6194356", "0.6186828", "0.6175312", "0.61660695", "0.61571115", "0.6152698", "0.6135677", "0.61351174", "0.613063", "0.61175054", "0.6114362", "0.6105342", "0.6100221", "0.6080573", "0.60572207", "0.6050239", "0.6049834", "0.6047373", "0.6045821", "0.60251355", "0.6024926", "0.60105294", "0.6000632", "0.5995229", "0.5994922", "0.5988592", "0.5987319", "0.59835124", "0.59810805", "0.59733033", "0.59679914", "0.5966958", "0.5954627", "0.59528595", "0.59493095", "0.5930752", "0.5929778", "0.5925349", "0.59175414", "0.59136456", "0.589989", "0.5898761", "0.58946073", "0.5893954", "0.58812964", "0.58804667", "0.58792055", "0.5875899", "0.58734137", "0.5870731", "0.5865085", "0.5855337", "0.585465", "0.58377606", "0.5826415", "0.5824601", "0.58229536", "0.579765", "0.5794861", "0.57855755", "0.5779317", "0.57768005", "0.57756823", "0.57741386", "0.57650876", "0.57633203", "0.5760915", "0.57588816" ]
0.7335352
2
Gets the node before the given index.
public Node getNodeBeforeIndex(int idx) { if(!checkIndexBounds(idx)) { return null; } Node curr = this.head; Node pre = new Node(); for (int i = 0; i < idx; i++) { pre = curr; curr = curr.next; }; return pre; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPrev(int node_index) {\n\t\treturn m_list_nodes.getField(node_index, 1);\n\t}", "private String before(Stack<String> stack, AtomicInteger index) {\n\t\tint next = index.get() - 1;\n\t\tif (next > 0)\n\t\t\treturn stack.get(next);\n\t\telse\n\t\t\treturn null;\n\t}", "public int getPrevNode() {\n\t\treturn this.previousNode;\n\t}", "private int getLeftOf(int index) {\n // TODO: YOUR CODE HERE\n return index * 2;\n }", "private Node locatePrevNode(K key) { \n\t\tNode p = null; \n\t\tNode current = first; \n\t\twhile (current != null && current.getData().getKey().compareTo(key) < 0) {\n\t\t\tp = current; \n\t\t\tcurrent = current.getNext(); \n\t\t}\n\t\treturn p; \n\t}", "private ListNode nodeAt(int index) {\n\t\tListNode current = front;\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tcurrent = current.next;\n\t\t}\n\t\treturn current;\n\t}", "private Node getNodeAt(int index) {\n\t\tNode node = head;\n\t\t// follow the links between nodes until it counts off the right number\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tif (node == null) {\n\t\t\t\t// In case we run out of nodes before we get up to the desired index, return null\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tnode = node.getNext();\n\t\t}\n\t\treturn node;\n\t}", "private T getPredecessor(BSTNode<T> current) {\n while (current.getRight() != null) {\n current = current.getRight();\n }\n return current.getData();\n }", "private Node getNth(int index) \n { \n int currIndex = 0;\n Node currNode = this.head.next;\n while(currIndex < index)\n {\n currNode = currNode.getNext();\n currIndex++;\n }\n return currNode;\n }", "public Iterator<DocTokenInf> getPrev(int vertex) {\n\t\tDocTokenLinkedList ll = list[vertex];\n\t\tif(ll == null)\n\t\t\treturn null;\n\t\treturn ll.iterator();\n\t}", "public Node getPrev()\r\n\t{\r\n\t\treturn prev;\r\n\t}", "public Node getNodeFromGivenIndex(int index){\n //Index validation\n checkIndex(index);\n\n int i = 0;\n Node current = head;\n while (i<index){\n current = current.next;\n i++;\n }\n return current;\n }", "int node(final int index) {\r\n\t\tif (index < (size >> 1)) {\r\n\t\t\tint x = first;\r\n\t\t\tfor (long l = 0; l < index; l++) {\r\n\t\t\t\tx = getNextPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t} else {\r\n\t\t\tint x = last;\r\n\t\t\tfor (int i = size - 1; i > index; i--) {\r\n\t\t\t\tx = getPrevPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t}\r\n\t}", "private T getPredecessor (BSTNode<T> current) {\n\t\twhile(current.getRight() != null) {\n\t\t\tcurrent = current.getRight();\n\t\t}\n\t\treturn current.getData();\n\n\t}", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "private int getParentOf(int index) {\n // TODO: YOUR CODE HERE\n return index / 2;\n }", "public Node getPrev()\n {\n return this.prev;\n }", "private static int leftChildIndex(int index) {\n\t\treturn (index * 2) + 1;\n\t}", "private static int getLeft(int index) {\n\t\treturn (index + 1) * 2 - 1;\n\t}", "public node getPrevious() {\n\t\t\treturn previous;\n\t\t}", "public O before(O a)\r\n {\r\n int index = indexOf(a);\r\n if (index != -1 && index != 0) //is defined and not first\r\n return get(index-1);\r\n else return null;\r\n }", "public Node<T> getPrev() {\n\t\treturn prev;\n\t}", "private int leftChild(int index) {\n return index * 2;\n }", "public Node getPrev() {\n return prev;\n }", "public Node<T> getPrevNode() {\n\t\treturn prevNode;\n\t}", "public Node insertBefore(Node node);", "protected BSTNode getPredecessorByNode(BSTNode n) {\n\t\tif (hasLeftChild(n)) {\n\t\t\treturn getMaximumChild(n.left);\n\t\t} else {\n\t\t\twhile (!isRoot(n) && isLeftChild(n)) {\n\t\t\t\tn = n.parent;\n\t\t\t\t_stats.incOtherTraversals();\n\t\t\t}\n\n\t\t\tif (isRoot(n)) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn n.parent;\n\t\t\t}\n\t\t}\n\t}", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "public Node getPrev() {\n return null;\n }", "public Node getPrevious() {\n return previous;\n }", "private int getParent(int index) {\r\n return (index - 1) / 2;\r\n }", "private Node getNode(int index) {\n \tif (index < 0 || index >= size)\n \t\tthrow new IndexOutOfBoundsException();\n \tNode result = sentinel;\n \t// invariant for both loops: result = this[i]\n \tif (index < size / 2)\n \t\tfor (int i = -1; i < index; i++)\n \t\t\tresult = result.succ;\n \telse\n \t\tfor (int i = this.size; i > index; i--)\n \t\t\tresult = result.pred;\n \treturn result;\n }", "public Node findPredecessor(int id) {\n\t\tNode n = this;\n\t\twhile (id <= n.getId() || id > n.getSuccessor().getId()) {\n\t\t\tn = n.closestPrecedingFinger(id);\n\t\t}\n\t\treturn n;\n\t}", "private Element getElementBackwards(int index) {\n Element element = this._headAndTail;\n\n for (int i = this._size - index; i > 0; --i) {\n element = element.getPrevious();\n }\n\n return element;\n }", "public Node<S> getPrev() { return prev; }", "@Override\n public E previous() throws NoSuchElementException\n { \n if(hasPrevious() == false)\n {\n throw new NoSuchElementException();\n }\n idx = idx - 1;\n Node theNode = getNth(idx);\n left = left.prev;\n right = left;\n canRemove = false;\n forward = false;\n return theNode.getElement(); \n }", "Node predecessor(T value) {\n Node x = search(value);\n if (x.value.compareTo(value) < 0) return x;\n else return predecessor(x);\n }", "protected Node<U> getNodeAtIndex(int index) {\n\t\t\tNode<U> currNode;\n\n\t\t\tif (index < Math.ceil(mLength / 2)) {\n\t\t\t\tcurrNode = mHead;\n\t\t\t\tfor (int i = 0; i < index; ++i) {\n\t\t\t\t\tcurrNode = currNode.getNext();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcurrNode = mTail;\n\t\t\t\tfor (int i = mLength - 1; i > index; --i) {\n\t\t\t\t\tcurrNode = currNode.getPrev();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn currNode;\n\t\t}", "private Node getNode(int index) {\n\t\treturn getNode(index, 0, size() - 1);\n\t}", "private int firstChild(int index) {\n // Formula to calculate the index of the first child of parent node\n return d * index + 1;\n }", "private Element getElementForwards(int index) {\n Element element = this._headAndTail.getNext();\n\n for (int i = index; i > 0; --i) {\n element = element.getNext();\n }\n\n return element;\n }", "private int left(int index) {\r\n\t\treturn 2 * index + 1;\r\n\t}", "@Override\n\tpublic Position<E> before(Position<E> p) throws IllegalArgumentException {\n\t\tif (this.first() == p) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn convert(p).prev;\n\t}", "public NodeList<T> getNode(int index){\n if(index < 0){ throw new IndexOutOfBoundsException(); }\n\n NodeList<T> f = getFirst();\n\n// for(int i = 0; (f != null) && (i < index); i++){\n// f = f.getNext();\n// }\n\n while ((f != null) && (index > 0)){\n index--;\n f = f.getNext();\n }\n\n if(f == null){ throw new IndexOutOfBoundsException(); }\n return f;\n }", "Optional<Node<UnderlyingData>> prevNode(Node<UnderlyingData> node);", "private int getParentIndex(int index){\n return (index-1) >> 1;\n }", "public void addBefore(E val, int idx) throws IndexOutOfBoundsException {\n addNodeBefore(new SinglyLinkedList.Node<>(val), idx);\n }", "public Alloc getPredecessor() {\n return variant == null ? null : variant.getPredecessor(this);\n }", "public Instruction getInstructionBefore(Address addr);", "Node<E> node(int index) {\n\t // assert isElementIndex(index);\n\n\t if (index < (size >> 1)) {\n\t Node<E> x = first;\n\t for (int i = 0; i < index; i++)\n\t x = x.next;\n\t return x;\n\t } else {\n\t Node<E> x = last;\n\t for (int i = size - 1; i > index; i--)\n\t x = x.prev;\n\t return x;\n\t }\n\t }", "private final int internalPrev(int n) {\n if (n == 0 || n == -1 || this.backwardsTrie == null) {\n return n;\n }\n resetState();\n while (n != -1 && n != 0 && breakExceptionAt(n)) {\n n = this.delegate.previous();\n }\n return n;\n }", "public DNode getPrev() { return prev; }", "private int getParent(int index) {\n return index - (index & -index);\n }", "private Node getNodeAt(int index){\n // first check if index is within valid index range [0,size]:\n if(index<0 || index>size) \n throw new IndexOutOfBoundsException(\"Faild to perfomr getNode() because the \"+ index +\" index that you have specified is way out of bounds!\");\n Node temp = first;\n while(index>=0) {\n temp = temp.next; // advance the reference to the next node in the list\n index--;\n }\n return temp;\n }", "public TreeNode getPreviousSibling ()\r\n {\r\n if (parent != null) {\r\n int index = parent.children.indexOf(this);\r\n\r\n if (index > 0) {\r\n return parent.children.get(index - 1);\r\n }\r\n }\r\n\r\n return null;\r\n }", "public int previousIndex() {\r\n \treturn index - 1; \r\n }", "private Node findNode(int index){\n Node current = start;\n for(int i = 0; i < index; i++){\n current = current.getNext();\n }\n return current;\n }", "public Node getPrevNode(String hostname)\n\t{\n\t\treturn this.nodeManager.getPrevNode(hostname);\n\t}", "public int getFront() {\n if (cnt == 0)\n return -1;\n return head.val;\n }", "public void bringToFront(int index) {\n\t\tif (index<this.size()){\n\t\t\tNode front = this.head;\n\t\t\tNode oneBack = new Node(\"\");\n\t\t\tfor (int counter=0; counter < index; counter++){\n\t\t\t\toneBack = front;\n\t\t\t\tfront = front.next;\n\t\t\t}\n\t\t\toneBack.next=front.next;\n\t\t\tfront.next = head;\n\t\t\thead = front;\n\t\t}\n\t}", "public MyNode<? super E> getPrevious()\n\t{\n\t\treturn this.previous;\n\t}", "public NodeD getSelecPrev(){\n if (this.selec == this.head){\n return this.head;\n }else{\n this.selec = this.selec.getPrev();\n return selec;\n }\n }", "private int parent(int index) {\n return index / 2;\n }", "private int parent(int index) {\n return index / 2;\n }", "public int[] getPreviousNodes(int toNodeIndex) {\n if (toNodeIndex < 0) {\n throw new IllegalArgumentException(\"Node index can not be negative\");\n }\n return IntStream.range(0, links.length)\n .filter(i -> links[i][toNodeIndex] == 1)\n .toArray();\n }", "public int\ngetNodeIndexMin();", "private Node<T> getNodeAtIndex(int index) {\r\n if (index < 0 || size() <= index) {\r\n throw new IndexOutOfBoundsException(\"No element exists at \"\r\n + index);\r\n }\r\n Node<T> current = head.next(); // as we have a sentinel node\r\n for (int i = 0; i < index; i++) {\r\n current = current.next();\r\n }\r\n return current;\r\n }", "public Node getNode(int index) {\r\n\t\tif (index < 1 || index > this.size()) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new IllegalIndexException(\"Exception: the index's out of boundary!\");\r\n\t\t\t} catch (IllegalIndexException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (index == 1) {\r\n\t\t\treturn head;\r\n\t\t}else if (index == this.size()) {\r\n\t\t\treturn tail;\r\n\t\t}else {\r\n\t\t\tint pointerIndex = 1;\r\n\t\t\tpointer = head;\r\n\t\t\twhile (pointerIndex < index) {\r\n\t\t\t\tpointer = pointer.getNext();\r\n\t\t\t\tpointerIndex++;\r\n\t\t\t}\r\n\t\t\treturn pointer;\r\n\t\t}\r\n\t}", "private int leftChildIdx(int idx) {\r\n // TODO\r\n return -1;\r\n }", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "public static int getRowStartFromLineOffset(BaseDocument doc, int lineIndex) {\n Element lineRoot = doc.getParagraphElement(0).getParentElement();\n if (lineIndex < 0 || lineIndex >= lineRoot.getElementCount()) {\n return -1; // invalid line number\n\n } else {\n return lineRoot.getElement(lineIndex).getStartOffset();\n }\n }", "private Node<E> getNode(int index)\n {\n Node<E> node = head;\n for (int i = 0; i < index && node != null; i++) {\n node = node.next;\n }\n return node;\n }", "public int Front() {\n if(isEmpty()) return -1;\n return l.get(head);\n }", "public ListNode findIndexNode(int index)\n {\n //should probably hande this by throwing an exception when head == null rather than using the if statement.\n if (head != null)\n {\n int counter = 0;\n ListNode iteratorNode = head;\n do\n { \n if (counter + 1 == index)\n {\n return iteratorNode;\n }\n if (iteratorNode.getNext() != null)\n {\n iteratorNode = iteratorNode.getNext();\n counter++;\n }\n } while(counter + 1 <= size);\n }\n return head;\n }", "public Node getNode(int index)\r\n {\r\n\tif (nodes == null)\r\n\t getNodes();\r\n return nodes[index];\r\n }", "public SlideNode getPrev() {\n\t\treturn prev;\n\t}", "public Vertex getPrev() {\n return prev;\n }", "private int parent(int index) {\n // Formula to calculate the index of the parent node\n return Math.floorDiv(index - 1, d);\n }", "public Object getPrev() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.prev;\n\t\t} else {\n\t\t\tcurrent = start;\n\t\t}\n\t\treturn current == null ? null : current.item; //Ha nincs még start, akkor null adjon vissza\n\t}", "HNode getPreviousSibling();", "private Node<E> getNode(int index)\n {\n Node<E> node=head;\n for(int i=0;i < index && node != null;++i)\n node = node.next;\n return node;\n }", "public Node closestPrecedingNode(int id);", "public Node getNode(int index) {\n Node n = head;\n for (int i = 0; i < index; i ++) {\n n = n.next;\n }\n return n;\n }", "public LinkedListItr findPrevious( Object x )\n {\n ListNode itr = header;\n\n while( itr.next != null && !itr.next.element.equals( x ) )\n itr = itr.next;\n\n return new LinkedListItr( itr );\n }", "private Node<T> find(int index) throws IndexException {\n if (!isValid(index)) {\n throw new IndexException();\n }\n\n Node<T> node = head;\n int counter = 0;\n while (node != null && counter < index) {\n node = node.next;\n counter = counter + 1;\n }\n return node;\n }", "public E getPrevious() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index <= 0)\n\t\t\t\tindex = this.size();\n\t\t\treturn this.get(--index);\n\t\t}\n\t\treturn null;\n\t}", "public Index previous() {\n return Index.valueOf(value - 1);\n }", "private DoublyNode find(int index) {\r\n\t\tDoublyNode curr = head;\r\n\r\n\t\t// due to the dummy head, we skip nodes for index times\r\n\t\tfor (int skip = 1; skip <= index; skip++) {\r\n\t\t\tcurr = curr.getNext();\r\n\t\t}\r\n\t\treturn curr;\r\n\t}", "public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}", "public static int leftChildIdx(int nodeIdx) {\n\t\treturn (2 * nodeIdx + 1);\n\t}", "private Element findByIndex(int index) {\n\t\tElement e = head;\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\te = e.next;\n\t\t}\n\t\treturn e;\n\t}", "@Override\r\n\tpublic VertexInterface<T> getPredecessor() {\n\t\treturn null;\r\n\t}", "public int getFront() {\n if (head == tail && size == 0)\n return -1;\n else {\n int head_num = elementData[head];//索引当前头指针的指向的位置\n return head_num;\n }\n // return true;\n }", "public int getParent(int currIndex)\n {\n return (int)currIndex/2; \n }", "private IAVLNode findPredecessor(IAVLNode node)\r\n\t{\r\n\t\t//minimum node has no predecessor\r\n\t\tif (node == minimum) \r\n\t\t\treturn null; \r\n\t\t\r\n\t\tif (node.getLeft().isRealNode()) \r\n\t\t\treturn maxPointer(node.getLeft()); \r\n\t\telse \r\n\t\t{\r\n\t\t\tIAVLNode parent = node.getParent();\r\n\t\t\twhile ((node == parent.getLeft())&&(parent != null)) \r\n\t\t\t{ \r\n\t\t\t\tnode = parent; \r\n \t\t\t\tparent = parent.getParent() ; \r\n\t\t\t}\r\n\t\t\treturn parent;\t\r\n\t\t}\r\n\t}", "public FSMNode get(int index) {\n return get(root, index);\n }", "public IndexRecord getIteratorPrev() {\n iter = (iter == 0 ? -1 : iter - 1);\n return (iter == -1 ? null : data[iter]);\n }", "public ListNode getNodeAtIndex(int linkedListIndex) {\r\n\t\tint indexRunner = 0;\r\n\t\tint index = linkedListIndex;\r\n\t\tListNode runner = firstNode;\r\n\r\n\t\twhile (indexRunner < index && runner != null) {\r\n\t\t\tindexRunner++;\r\n\t\t\trunner = runner.next;\r\n\t\t}\r\n\t\tif (runner != null) {\r\n\t\t\treturn runner;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "private int parent(int index) {\n return (index - 1) / 2; // 2 = binary heap\n }", "int get(int index)\n\t{\n\t\t//Get the reference of the head of the Linked list\n\t\tNode ref = head;\n\t\t\n\t\t//Initialize the counter to -1\n\t\tint count = -1;\n\t\t\n\t\t//Traverse the Linked List until the Node with position index is reached\n\t\twhile(count != index)\n\t\t{\n\t\t\tcount++;\n\t\t\tref = ref.next;\n\t\t}\n\t\t\n\t\t//Return the value of the Node having position index\n\t\treturn ref.value;\n\t}" ]
[ "0.751159", "0.7097813", "0.63820595", "0.62640464", "0.6207568", "0.6175192", "0.61611", "0.6121121", "0.6082914", "0.6068953", "0.60650223", "0.60644704", "0.60187525", "0.5982089", "0.5979345", "0.5976724", "0.5967435", "0.59637415", "0.59603006", "0.5943211", "0.59422517", "0.5932693", "0.59281665", "0.5926533", "0.5886696", "0.5864585", "0.5862771", "0.58486193", "0.5847072", "0.5845064", "0.58221084", "0.5816806", "0.5809219", "0.57875377", "0.57872796", "0.57781994", "0.57720166", "0.5771588", "0.5754253", "0.57469404", "0.5743613", "0.5724925", "0.57132965", "0.5704227", "0.56976146", "0.56894547", "0.56752723", "0.565343", "0.5648163", "0.56339085", "0.56284165", "0.56246394", "0.56149656", "0.5614406", "0.5588103", "0.5581381", "0.55745715", "0.5573507", "0.5571485", "0.5569152", "0.5566106", "0.5565723", "0.55562717", "0.55562717", "0.5536033", "0.5533361", "0.55299175", "0.5528737", "0.5527531", "0.552477", "0.5519455", "0.5519325", "0.5513474", "0.5511279", "0.5497307", "0.54972726", "0.5496475", "0.54948854", "0.54944485", "0.54924965", "0.5489043", "0.5487676", "0.54817057", "0.5480863", "0.5480032", "0.5476022", "0.5474674", "0.5473817", "0.546854", "0.54676354", "0.5458571", "0.54570085", "0.5456826", "0.5456635", "0.5450868", "0.5441442", "0.54405814", "0.54329437", "0.54271024", "0.54193914" ]
0.75293237
0
Adds a node at the beginning of the list created from a given value.
public void addAtStart(T v) { if (this.head == null) { add(v); return; }; Node node = new Node(v, this.head); this.head = node; this.length++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAtStart(T value) {\n Node<T> newNode = new Node<>();\n newNode.data = value;\n newNode.next = head;\n head = newNode;\n }", "@Override\n public void insertAtBeginning(T value) {\n Node<T> new_node = new Node<>(value);\n new_node.next = start;\n start = new_node;\n }", "public void addToFront(T value) {\n\t\tstart = new Node<T>(value, start);\n\t}", "void prepend(int value) {\n\t\tNode n = new Node(value);\n\t\tn.next = head;\n\t\thead = n;\n\t\tlength++;\n\t\t//print();\n\t}", "public void addToStart(String value) {\n ListElement current = new ListElement(value);\n if (count == 0) {\n head = current;\n tail = current;\n } else {\n current.connectNext(head);\n head = current;\n }\n count++;\n }", "protected void insertBeginning(T value) {\r\n\t\tthis.getHead().setPrev(new SNode<T>(value, this.getHead().getPrev()));\r\n\t\tthis.size++;\r\n\t}", "public void insertBefore(int value, int newVal) {\n try {\n ListNode nodeValue = new ListNode(value);\n ListNode newValue = new ListNode(newVal);\n ListNode current = this.root;\n\n while (current.data != value) {\n current = current.next;\n }\n newValue.next = current.next;\n current.next = newValue;\n } catch (NullPointerException e) {\n System.out.println(\"You have reached the end of the list.\");\n }\n }", "public void addFirst(T value) {\n Node<T> node = new Node<T>(value);\n Node<T> next = sentinel.next;\n\n node.next = next;\n next.prev = node;\n sentinel.next = node;\n node.prev = sentinel;\n\n size += 1;\n }", "public void addFirst(Object value)\n {\n if(last == null && first == null)\n {\n ListNode temp = new ListNode(value, null);\n last = temp;\n first = temp;\n }\n else\n {\n first = new ListNode(value, first);\n }\n \n }", "public void addStart(Type value){\n if( !this.isEmpty() ){\n this.start = new MyDoubleNode(value, null, this.start);\n this.start.next.prev = this.start;\n }else{\n this.start = this.end = new MyDoubleNode(value);\n }\n this.size++;\n }", "public void add(int value) {\n if (front == null) {\n front = new ListNode(value);\n } else {\n ListNode current = front;\n while (current.next != null) {\n current = current.next;\n }\n current.next = new ListNode(value);\n }\n }", "public void addFirst(int value) {\n if (head == null) {\n head = new SinglyLinkedNode(value, null);\n }\n //case: one value\n else {\n SinglyLinkedNode previousHead = head;\n head = new SinglyLinkedNode(value, previousHead);\n }\n count += 1;\n }", "public void insertAtStart(int val)\n {\n List nptr = new List(val, null, null); \n if(start == null)\n {\n start = nptr;\n end = start;\n }\n else\n {\n start.setListPrev(nptr);\n nptr.setListNext(start);\n start = nptr;\n }\n size++;\n }", "public void insertAtStart(int val)\n\n {\n\n Node nptr = new Node(val, null, null); \n\n if(start == null)\n\n {\n\n start = nptr;\n\n end = start;\n\n }\n\n else\n\n {\n\n start.setLinkPrev(nptr);\n\n nptr.setLinkNext(start);\n\n start = nptr;\n\n }\n\n size++;\n\n }", "public void prepend(int val) {\n int i = -34;\n if(head != null) {\n Node node = head;\n head = new Node();\n\n node.prev = head;\n head.next = node;\n head.val = val;\n }\n else if(head == null) {\n\n head = new Node();\n head.val = val;\n tail = head;\n }\n\n size++;\n }", "public void add(int value) {\n\t\tif (front == null) {\n\t\t\tfront = new ListNode(value);\n\t\t} else {\n\t\t\tListNode current = front;\n\t\t\twhile (current.next != null) {\n\t\t\t\tcurrent = current.next;\n\t\t\t}\n\t\t\tcurrent.next = new ListNode(value);\n\t\t}\n\t}", "private void addNodeAtTheBeginning(int data) {\n ListNode newNode = new ListNode(data);\n if (head == null) {\n head = newNode;\n return;\n }\n newNode.next = head;\n head = newNode;\n }", "public void add(K value)\n {\n\tSkipListNode<K> newNode = new SkipListNode<K>(value, p); //New node with random height\n\tint h = newNode.height(); \n\thead.ensureHeight(h); \n\tArrayList<SkipListNode<K>> pred = findPredecessors(value); //ArrayList of predecessors\n\tSkipListNode<K> predNode = new SkipListNode<K>();\n\n\t//For each sub-list, adjusts next of newNode and next of predecessor\n\twhile (h > 0) {\n\t predNode = pred.get(h-1);\n\t newNode.setNext(h-1, predNode.next(h-1)); //Set next of newNode at level h-1 to h-1 predecessor's next at level h-1\n\t predNode.setNext(h-1, newNode); //Set the h-1 predecessor's next reference to newNode at level h-1\n\t h--; //Decrement h\n\t}\n\tsize++; //Increment size to indicate new node\n }", "public void pushFront(String value)\n {\n\tStringListNode node = new StringListNode(value);\n\tnode.next = head;\n\tif (null == head) {\t// the list was empty\n\t tail = node;\n\t}\n\telse {\n\t head.prev = node;\n\t}\n\thead = node;\n }", "public void insertAtBeginning(int data) {\r\n //creating node\r\n Node node = new Node(data);\r\n //setting the next reference of node to refer to head or start of list\r\n node.setNext(head);\r\n // setting the head to refer node\r\n head = node;\r\n }", "public void insert(int value, int pos){\n if (head != null) {\n // Have a first node\n head = head.insert(value,pos);\n } else {\n // List empty\n this.add(value);\n }\n }", "public void add(int index, Object value) {\n if (index > _size) {\n throw new ListIndexOutOfBoundsException(\"Error\");\n }\n ListNode node = new ListNode(value);\n if (index == 0) {\n node.next = start;\n start = node;\n } else {\n ListNode prev = start;\n for (int i = 0; i<index - 1; i++ ) {\n prev = prev.next;\n }\n ListNode temp = prev.next;\n prev.next = node;\n node.next = temp;\n } \n _size++;\n }", "public Node<E> addToBeginning(Node<E> node){\n node.setNext(head.getNext());\n head.getNext().setPrevious(node);\n node.setPrevious(head);\n head.setNext(node);\n size++;\n return node;\n }", "public void add(int value) {\n Node newNode = new Node(value);\n if(this.head == null) { //head is a pointer\n this.head = newNode;\n } else {\n Node runner = this.head;\n while(runner.next != null) {\n runner = runner.next;\n }\n runner.next = newNode;\n }\n }", "public void insertAtBeginning(int data) {\r\n if(head==null) {\r\n head = new ListNode(data);\r\n return;\r\n }\r\n ListNode new_node = new ListNode(data);\r\n new_node.next=head;\r\n head=new_node;\r\n }", "public void append(int value) {\n\t\t\n\t\tNode temp = new Node(value);\n\t\t\n\t\t// no node available therefore this is 1st node\n\t\tif(this.head == null) {\n\t\t\thead = temp;\n\t\t}\n\t\t// 1 and more than one node available\n\t\telse {\n\t\t\tNode it = this.head; // it pointed to head pointed\n\t\t\twhile(it.next != null) { //it++ up to it.next get null\n\t\t\t\tit = it.next;\n\t\t\t}\n\t\t\t// it pointed to last node\n\t\t\tit.next = temp; // insert value at last\n\t\t\ttemp.next = null;\n\t\t}\n\t}", "public void addToNoCycle(T value) {\n Node<T> tmp = lastNode;\n Node<T> node = new Node<>(value, null);\n lastNode = node;\n if (tmp == null) {\n firstNode = node;\n } else {\n tmp.next = null;\n }\n size++;\n\n }", "public void addToListWithCycle(T value) {\n Node<T> tmp = lastNode;\n Node<T> node = new Node<>(value, firstNode);\n lastNode = node;\n if (tmp == null) {\n firstNode = node;\n } else {\n tmp.next = node;\n }\n size++;\n }", "public void add(T value) {\n\t\tNode newNode = new Node(value);\n\t\tif (head == null) {\n\t\t\thead = newNode;\n\t\t\treturn;\n\t\t}\n\t\tNode current = head;\n\t\twhile (current.next != null) {\n\t\t\tcurrent = current.next;\n\t\t}\n\t\tcurrent.next = newNode;\n\t}", "public void add(String value) {\n\t\tif (head == null)\n\t\t\thead = new Node(value);\n\t\telse if (head.value.compareTo(value) > 0) {\n\t\t\thead = new Node(value, head);\n\t\t} else if (head.value.compareTo(value) == 0) {\n\t\t\treturn;\n\t\t} else\n\t\t\trecAdd(head, value);\n\t}", "public Node insertStart(int val) {\n // create a new node with the help of Node class\n Node newNode = new Node(val);\n // condition 1: Head==null(no node) or atleast 1 node\n newNode.next = head;\n head = newNode;\n\n return head;\n\n }", "public Node<T> addBefore(Node<T> listNode, T t) \r\n {\r\n Node<T> beforeNewNode = listNode.prev;\r\n Node<T> newNode = new Node<T>(t, beforeNewNode, listNode);\r\n beforeNewNode.next = newNode;\r\n listNode.prev = newNode;\r\n size++;\r\n return newNode;\r\n }", "public void addItem(int value) {\n if (root == null) {\n root = new Node(value);\n } else {\n addToNode(root, value);\n }\n }", "protected void addToHead(T val)\n\t{\n\t\tListElement<T> newElm = new ListElement<T>(val, head);\n\t\t\n\t\tif(head != null)\n\t\t\thead.setPrev(newElm);\n\t\telse\n\t\t\t//If list was empty befor addition\n\t\t\ttail = newElm;\n\t\t\t\n\t\thead = newElm;\n\t}", "public void addToStart(Order ord){\n\t\tNode temp= new Node(ord, null, head);\n\t\tif(head!=null){\n\t\t\thead.previous=temp;\n\t\t}\n\t\thead=temp;\t\n\t}", "static ListNode insertAtBeginning(ListNode head, int data) {\n\n ListNode newNode = new ListNode(data);\n\n if (head == null) {\n return newNode;\n }\n\n newNode.next = head;\n head = newNode;\n\n return head;\n }", "void append(int value) {\n\t\tNode n = new Node(value);\n\t\tif (length == 0) {\n\t\t\thead = n;\n\t\t\ttail = n;\n\t\t} else {\n\t\t\ttail.next = n;\n\t\t\ttail = n;\n\t\t}\n\t\tlength++;\n\t\t//print();\n\t}", "public boolean insertFront(int value) {\n if (cnt == size)\n return false;\n Node node = new Node(value);\n if (head == null) {\n head = node;\n tail = node;\n node.pre = node;\n node.next = node;\n } else {\n node.next = head;\n node.pre = head.pre;\n head.pre.next = node;\n head.pre = node;\n head = node;\n }\n cnt++;\n return true;\n }", "void insert(int value){\n\t\tNode newNode=new Node(value);\n\n\t\tif(head==null){\n\t\t\thead=newNode;\n\t\t\tsize++;\n\t\t}\n\t\telse{\n\t\t\tNode temp=head;\n\t\t\twhile(temp.getNext()!=null){\n\t\t\t\ttemp=temp.getNext();\n\t\t\t}\n\t\t\ttemp.setNext(newNode);\n\t\t\tsize++;\n\t\t}\n\t}", "public void insertAtBeginning(int element) {\n\t\thead = new Node(element, head);\n\t}", "public void addFront (E val) {\n\t\tNode <E> n = new Node(val, head);\n\t\thead = n;\n\t\tcount ++;\n\t}", "public void add(T value) {\n Node<T> newNode = new Node<T>();\n newNode.data = value;\n newNode.next = null;\n if (head == null) {\n head = newNode;\n } else {\n Node<T> last = head;\n while (last.next != null) {\n last = last.next;\n }\n last.next = newNode;\n }\n }", "public void insert(int value) {\n\t\t\n\t\tNode temp =new Node(value); // created object name temp (creating NODE) that have 2 contain data and next\n\t\t\n\t\t// no node available therefore this is 1st node\n\t\tif(this.head==null) { \n\t\t\thead = temp; // head pointed to temp\n\t\t}\n\t\telse {\n\t\t\t// this is not the first node to be inserted\n\t\t\ttemp.next = head; // head ke contain temp ke next me copy kiye\n\t\t\thead = temp; // temp pointed(next) copy into head\n\n\t\t}\n\t}", "public void addAtStart(int item) {\n\t\tCLL_LinkNode new_node = new CLL_LinkNode(item);\n\t\tif (this.length == 0) {\n\t\t\tthis.headNode = new_node;\n\t\t\tthis.headNode.setNext(this.headNode);\n\t\t} else {\n\t\t\tCLL_LinkNode temp_node = this.headNode;\n\t\t\twhile (temp_node.getNext() != this.headNode)\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\ttemp_node.setNext(new_node);\n\t\t\tnew_node.setNext(headNode);\n\t\t\tthis.headNode = new_node;\n\t\t}\n\t\tthis.length++;\n\t}", "public void insert(int value){\n head = new Node(value,head);\n size++;\n }", "public ListNode insert(ListNode head, int value) {\n\t\t ListNode node = new ListNode(value);\n\t\t if(head == null || value <= head.value){\n\t\t node.next = head;\n\t\t return node;\n\t\t }\n\t\t ListNode cur = head;\n\t\t while(cur.next != null && cur.next.value < value){\n\t\t cur = cur.next;\n\t\t }\n\t\t ListNode next = cur.next;\n\t\t cur.next = node;\n\t\t node.next = next;\n\t\t return head;\n\t\t }", "@Override\n\tpublic void add(L value) {\n\t\tif(value==null) throw new NullPointerException();\n\t\tListNode<L> newNode=new ListNode<>(value);\n newNode.storage=value;\n newNode.next=null;\n newNode.previous=last;\n if(last==null){\n first=newNode;\n }else {\n last.next=newNode;\n }\n last=newNode;\n\t\tthis.size++;\n\t\tthis.modificationCount++;\n\t}", "void prepend(int element) {\n Node newHead = new Node(element,head);\n head = newHead;\n }", "public void addFirst(String val)\n {\n ListNode newNode = new ListNode();\n newNode.setData(val);\n newNode.setNext(head);\n head = newNode;\n if (tail == null)\n {\n tail = head;\n }\n size++;\n }", "public void addAtHead(int val) {\n SingleNode cur = new SingleNode(val, head);\n head =cur;\n if(len==0) tail = cur;\n len++;\n }", "public void addNodeToTheStart(int data){\n Node newNode = new Node(data);\n if(head == null){\n head = newNode;\n }else{\n Node tmp = head;\n head = newNode;\n head.next = tmp;\n }\n }", "public void insertBefore(String value, StringListIterator position)\n {\n\tStringListNode node = new StringListNode(value, position.node.prev, position.node);\n\tposition.node.prev = node;\n\tif (head == position.node) {\n\t head = node;\n\t}\n\telse {\n\t node.prev.next = node;\n\t}\n }", "public void add(T value) {\n final Node node = new Node(value);\n if (root != null) {\n root.add(node);\n } else {\n root = node;\n }\n }", "public Node insertBefore(Node node);", "public List(E value) {\n\t\thead = new ListNode(value, null);\n\t}", "public void addStart(int data) {\n\t\tNode newNode = new Node(data);\n\t\tnewNode.next = head;\n\t\thead = newNode;\n\t}", "public void pushFront(int val) {\n\n\t\tDLNode a = new DLNode(val);\n\t\tif (head == null) {\n\t\t\thead = tail = a;\n\t\t\telements++;\n\t\t\treturn;\n\t\t}\n\t\thead.prev = a;\n\t\ta.next = head;\n\t\thead = a;\n\t\telements++;\n\n\t}", "public void insertAtStart(int data) {\n Node node = new Node();\n node.data =data;\n node.next=null;\n node.next=head;\n head=node;\n }", "public boolean add(T value) {\n\t\tNode<T> last = null;\n\t\tfor (Node<T> current = start; current != null; current = current.next) {\n\t\t\tlast = current;\n\t\t}\n\t\tif (last != null) {\n\t\t\tlast.next = new Node<>(value);\n\t\t} else {\n\t\t\tstart = new Node<>(value);\n\t\t}\n\t\treturn true;\n\t}", "public void addAtHead(int val) {\n ListNode ptr=new ListNode(val);\n ptr.next=head;\n if(head==null)\n tail=ptr;\n head=ptr;\n size++;\n // display();\n }", "@Override\n public void insertAtAnyPosition(T value, int index) {\n Node<T> new_node = new Node<>(value);\n if(index < 0)\n throw new IndexOutOfBoundsException();\n else if(index == 0){\n new_node.next = start;\n start = new_node;\n }else{\n Node<T> previous = start;\n for(int i =0;i<index-1;i++)\n {\n previous = previous.next;\n }\n Node<T> curr = previous.next;\n new_node.next = curr;\n previous.next = new_node;\n }\n\n }", "public void add(E value) { // add a value to the linked list\n\t\tif (head == null) {\n\t\t\thead = new Node<E>(value);\n\t\t\treturn;\n\t\t} else {\n\t\t\tNode<E> temp = new Node<E>(value);\n\t\t\tNode<E> current = head;\n\t\t\twhile (current.getNext() != null) {\n\t\t\t\tcurrent = current.getNext();\n\t\t\t}\n\t\t\t// set the new node's next-node reference to this node's next-node\n\t\t\t// reference\n\t\t\ttemp.setNext(current.getNext());\n\t\t\t// now set this node's next-node reference to the new node\n\t\t\tcurrent.setNext(temp);\n\t\t}\n\t}", "public void addAtStart(Node node) {\n if(this.head == null) {\n add(node);\n return;\n };\n\n node.next = this.head;\n this.head = node;\n this.length++;\n }", "public void addBefore(E val, int idx) throws IndexOutOfBoundsException {\n addNodeBefore(new SinglyLinkedList.Node<>(val), idx);\n }", "void pushFront(T value) throws ListException;", "public void addBefore(Node node){\n node.next = head;\n head = node;\n count.incrementAndGet();\n }", "public void add(final T value) {\n\n final var node = new Node<>(value);\n final var currentTail = this.tail;\n\n if (currentTail != null) {\n currentTail.next = node;\n }\n\n if (head == null) {\n this.head = node;\n }\n tail = node;\n size++;\n }", "public void insert(int value) {\n\t\tif (isEmpty()) {\n\t\t\thead = new IntNode(value, head, null);\n\t\t\tcurrent = head;\n\t\t}\n\t\telse {\n\t\t\tcurrent.setNext(new IntNode(value, current, current.getNext()));\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t}", "void addFirst(Key k) {\n\t\tfirstNode = new Node(k, getFirstNode()); // creates new node, pointing to the previous first node and sets it to firstNode\n\t\tif(size++==0) lastNode = firstNode;\n\t}", "void addToHead(int v) {\n if (empty) {\n x = v;\n empty = false;\n }\n else {\n next = new Lista (this);\n x = v;\n }\n }", "public void addAtStart(T data) {\n Node<T> newNode = new Node<T>();\n newNode.data = data;\n\n newNode.next = head;\n head = newNode;\n size++;\n }", "public Node addfront(Node head,int val){\r\n\t \tif(head==null){\t\t\t\t//if linklist is empty then create linklist\r\n\t \t\thead=new Node(val);\r\n\t \t }\r\n\t \telse{\r\n\t \t\tNode temp=new Node(val);\r\n\t \t\ttemp.next=head;\r\n\t \t\thead=temp;\r\n\t \t}\r\n\t \treturn head;\r\n\t }", "void prepend(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (front == null) \n\t\t{\n\t\t\tfront = back = temp; // if the list is empty the node will be the first node in the list making it the front and back node\n\t\t\tlength++;\n index = 0; //added because i failed the test scripts because i wasn't managing the indicies\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfront.prev=temp; //the temp node is inserted before the front\n\t\t\ttemp.next=front; //the node after temp will be the front because temp was inserted before the front\n\t\t\tfront = temp; //the front is now the temp node\n\t\t\tlength++;\n index++;//added because i failed the test scripts because i wasn't managing the indicies\n\t\t}\n\t}", "public void prepend(Integer data) {\n\t\tListNode tmp = new ListNode(data, head);\n\n\t\tif (null != this.head) {\n\t\t\t// asign new head:make tmp the new head:Step2\n\t\t\tthis.head = tmp;\n\t\t} else {\n\t\t\t// but if list is empty then the temp is the only element and is new\n\t\t\t// tail as wells as head[see next statement executed]\n\t\t\tthis.tail = tmp;// tmp is new tail\n\t\t}\n\t\tthis.head = tmp;\n\t\tlength++;\n\t}", "private void prepend(T t) {\n Node<T> n = new Node<T>();\n n.data = t;\n n.next = head;\n head = n;\n }", "@Test\n\tpublic void addNodeAtFront() {\n\t\tSystem.out.println(\"Adding a node at the front of the list\");\n\t\tdll.push(3);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.print();\n\t}", "@Override\n public void insertAtEnd(T value) {\n Node<T> new_node = new Node<T>(value);\n if (start == null) {\n start = new_node;\n }\n if (end == null) {\n end = new_node;\n } else {\n end.next = new_node;\n end = new_node;\n }\n\n }", "@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }", "public void prependNode(int data) {\n\t\tNode currentNode = headNode;\n\t\tif(currentNode == null) {\n\t\t\tNode newNode = new Node(data);\n\t\t\theadNode = newNode;\n\t\t} else {\n\t\t\tif(currentNode!=null) {\n\t\t\t\tNode newNode = new Node(data);\n\t\t\t\theadNode = newNode;\n\t\t\t\tnewNode.setNextNode(currentNode);\n\t\t\t}\n\t\t}\n\t}", "public void insertFirst(int data) { // insert at front of list\n\t\tNode newNode = new Node(data); // creation of new node.\n\t\tif (first == null) // means LinkedList is empty.\n\t\t\tlast = newNode; // newNode <--- last\n\t\telse\n\t\t\tfirst.previous = newNode; // newNode <-- old first\n\t\tnewNode.next = first; // newNode --> old first\n\t\tfirst = newNode; // first --> newNode\n\t}", "public void insertAtStart(int data) {\n\t\tNode node = new Node();\n\t\tnode.data = data;\n\t\tnode.next = null;\n\t\tnode.next = head;\n\t\thead = node;\n\t}", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "public void append(int nodeValue)\n {\n ListNode newNode = new ListNode(nodeValue);\n\n // Check if the head is null\n if(this.head == null && this.tail == null)\n {\n this.head = newNode;\n this.tail = newNode;\n } else {\n\n ListNode currNode = this.head;\n ListNode prevNode = this.head;\n\n // Traverse the list\n while(currNode.getNextNode() != null)\n {\n // System.out.println(\"STUCK\");\n // System.out.println(\"CURRENT NODE VALUE: \" + currNode.getValue());\n // System.out.println(\"NEXT NODE FROM CURRENT: \" + currNode.getNextNode().getValue());\n prevNode = currNode;\n currNode = currNode.getNextNode();\n \n }\n\n // Wire the two nodes together\n currNode.setNextNode(newNode);\n newNode.setPrevNode(currNode);\n this.tail = newNode;\n }\n\n this.size = size + 1;\n\n }", "@Override\n public void push(int value) {\n Entry newElement = new Entry(value);\n if (size == 0) {\n first = newElement;\n last = newElement;\n } else {\n first.previous = newElement;\n newElement.next = first;\n first = newElement;\n }\n size++;\n }", "public void addToHead(int i)\r\n\t{\r\n\t\tNode add = new Node(i, null);\r\n\t\tsize++;\r\n\t\t\r\n\t\t// checks if the list is empty, then adds element to head/start.\r\n\t\tif(start == null)\r\n\t\t{\r\n\t\t\tstart = add;\r\n\t\t\tend = start;\r\n\t\t}\r\n\t\telse // if the list has more values inside.\r\n\t\t{\r\n\t\t\tadd.setNext(start);\r\n\t\t\tstart = add;\r\n\t\t}\r\n\t}", "public void insert(int value){\n linkedList.insertLast(value);\n }", "@Override\n public void prepend(T element){\n if(isEmpty()){\n add(element);\n } else{\n this.first = new DLLNode<T>(element, null, this.first);\n this.first.successor.previous = this.first;\n }\n }", "public Node<T> addFirst(T t) { \r\n Node<T> currFirst = sentinel.next;\r\n Node<T> newNode = new Node<T>(t, sentinel, currFirst);\r\n sentinel.next = newNode;\r\n currFirst.prev = newNode;\r\n size++;\r\n return newNode; \r\n }", "private Node add(int value, int pos) {\n int len = this.getlength();\n Node result = new Node(value);\n\n if (pos > len - 1) {\n System.out.println(\"out of range: added to tail\");\n result = this.add(value);\n return result;\n } else if (pos == 0) { // add to a new node's head\n if (this.value == Integer.MIN_VALUE) {\n return result;\n } else {\n result.nextNode = this;\n return result;\n }\n } else {\n Node current = this;\n Node inNode = new Node(value);\n for (int i = pos; i > 1; i--) {\n current = current.nextNode;\n }\n Node temp = current.nextNode;\n current.nextNode = inNode;\n inNode.nextNode = temp;\n return this;\n }\n }", "@Override\n public void addBefore(E element) {\n Node<E> newNodeList = new Node<>(element, cursor);\n\n if (prev == null) {\n head = newNodeList;\n cursor = newNodeList;\n } else {\n prev.setNext(newNodeList);\n cursor = newNodeList;\n }\n\n size++;\n }", "public static MyLinkedList addToTail(MyLinkedList list, int value) {\n\n Node toInsert = new Node(value);\n toInsert.next = null; //because it has to be the tail (last node)\n\n // If the Linked List is empty,\n // then make the new node as head\n if (list.head == null) {\n list.head = toInsert;\n } else {\n // Else traverse till the last node\n // and insert the new_node there\n Node last = list.head;\n while (last.next != null) {\n last = last.next;\n }\n // Insert the new_node at last node\n last.next = toInsert;\n }\n return list;\n }", "public void addAtHead(int val) {\n addAtIndex(0, val);\n }", "void insertBefore(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tprepend(data); //if the cursor is at the front of the list, you can just call prepend since you will be inserting the element before the front element \n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.prev = cursor.prev; //the new node temp's previous becomes the cursors previous\t\n temp.next = cursor; //the new node temp's next becomes the cursor\n cursor.prev.next = temp; //cursor's previous next element becomes temp\n cursor.prev = temp; //cursor's previous becomes temp\n length++;\n index++;\n\t\t}\n\t}", "public void addfirst(Item item)\r\n {\r\n Node first = pre.next;\r\n Node x = new Node();\r\n x.item = item;\r\n x.prev = pre;\r\n x.next = first;\r\n pre.next = x;\r\n first.prev = x;\r\n n++;\r\n }", "public void insert(int value){\r\n\t\tNode node = new Node<>(value);\r\n\t\t//If the tree is empty\r\n\t\tif ( root == null ) {\r\n\t\t\troot = node;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tinsertRec(root, node);\r\n\t}", "public ListNode sortedInsert(ListNode head, int value){\t\t\n\t\tListNode dummy = new ListNode(-1);\n\t\tdummy.next = head;\n\t\tListNode current = head;\n\t\t\n\t\twhile(current.next != null && current.next.value < value){\n\t\t\tcurrent = current.next;\n\t\t}\n\t\t\n\t\tListNode target = new ListNode(value);\n\t\ttarget.next = current.next;\n\t\tcurrent.next = node;\n\t\t\n\t\treturn dummy.next;\n\t}", "private void addNode(Node<E> node, E value) {\n if (node.children == null) {\n node.children = new ArrayList<>();\n }\n node.children.add(new Node<>(value));\n }", "private void addNodeBefore(SinglyLinkedList.Node<E> node, int idx) throws IndexOutOfBoundsException {\n if (idx == 0) {\n node.next = head;\n head = node;\n\n len += 1;\n return;\n }\n\n addNodeAfter(node, idx - 1);\n }", "public void addAtStart(Item item) { \t\n \tif(head.item == null) {\n \t\thead.item = item;\n\t \t\tif(isEmpty()) {\n\t \t\thead.next = tail;\n\t \t\ttail.next = head;\n\t \t\t} \t\t\n \t} else {\n \t\tNode oldHead;\n \t\toldHead = head;\n \t\thead = new Node();\n \t\thead.item = item;\n \t\thead.next = oldHead;\n \t\ttail.next = head;\n \t}\n \tsize++;\n }", "public void addAtNextOpenSpot(T value) {\n Node<T> newNode = new Node<>(value);\n if (this.root == null) {\n this.root = newNode;\n return;\n }\n LinkedList<Node<T>> nodesToCheck = new LinkedList<>();\n nodesToCheck.addLast(this.root);\n while(true) {\n Node<T> current = nodesToCheck.removeFirst();\n if(current.getLeftChildNode() == null) {\n current.setLeftChildNode(newNode);\n return;\n } else if (current.getRightChildNode() == null) {\n current.setRightChildNode(newNode);\n return;\n } else {\n nodesToCheck.addLast(current.getLeftChildNode());\n nodesToCheck.addLast(current.getRightChildNode());\n }\n }\n }" ]
[ "0.8093397", "0.7997255", "0.7944624", "0.78867996", "0.7755918", "0.7710947", "0.75034857", "0.74852526", "0.74708444", "0.7299793", "0.7291892", "0.72502494", "0.7240206", "0.7194027", "0.71718645", "0.7163123", "0.7066606", "0.6869269", "0.6835638", "0.6802679", "0.67962277", "0.67402244", "0.67241585", "0.6688012", "0.6671301", "0.66625917", "0.66598785", "0.6659719", "0.66306597", "0.6623788", "0.6617603", "0.660446", "0.65960944", "0.65930945", "0.65927124", "0.65793633", "0.65662324", "0.6564718", "0.65520436", "0.6538592", "0.65373623", "0.65336895", "0.6521861", "0.65118134", "0.6510823", "0.64903396", "0.64870715", "0.64810026", "0.6465179", "0.64564955", "0.64477146", "0.6436497", "0.64297765", "0.6424794", "0.640034", "0.6393693", "0.63913286", "0.63739735", "0.63719076", "0.63688326", "0.6359073", "0.6358642", "0.63571554", "0.63551486", "0.6334486", "0.632238", "0.6317202", "0.63127625", "0.63118154", "0.6309138", "0.63079756", "0.62789613", "0.6272203", "0.62694675", "0.6266951", "0.6264464", "0.62563306", "0.62544614", "0.62542933", "0.62517387", "0.62395173", "0.62323684", "0.6231209", "0.62305874", "0.62220997", "0.62114286", "0.61988556", "0.61962", "0.6195943", "0.61893594", "0.61852676", "0.61823064", "0.6180337", "0.61776495", "0.6170044", "0.616097", "0.6151882", "0.61512166", "0.6151088", "0.61468124" ]
0.70200765
17
Adds a given Node at the beginning of the list.
public void addAtStart(Node node) { if(this.head == null) { add(node); return; }; node.next = this.head; this.head = node; this.length++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node<E> addToBeginning(Node<E> node){\n node.setNext(head.getNext());\n head.getNext().setPrevious(node);\n node.setPrevious(head);\n head.setNext(node);\n size++;\n return node;\n }", "private void addNodeAtTheBeginning(int data) {\n ListNode newNode = new ListNode(data);\n if (head == null) {\n head = newNode;\n return;\n }\n newNode.next = head;\n head = newNode;\n }", "public void addBefore(Node node){\n node.next = head;\n head = node;\n count.incrementAndGet();\n }", "public Node<T> addBefore(Node<T> listNode, T t) \r\n {\r\n Node<T> beforeNewNode = listNode.prev;\r\n Node<T> newNode = new Node<T>(t, beforeNewNode, listNode);\r\n beforeNewNode.next = newNode;\r\n listNode.prev = newNode;\r\n size++;\r\n return newNode;\r\n }", "private void prependNode(Node prependNode) {\n\t\tNode currentNode = head;\n\t\tif(currentNode==null) {\n\t\t\thead = prependNode;\n\t\t} else {\n\t\t\tprependNode.next = currentNode;\n\t\t\thead = prependNode;\n\t\t}\n\t}", "private void addNodeBefore(SinglyLinkedList.Node<E> node, int idx) throws IndexOutOfBoundsException {\n if (idx == 0) {\n node.next = head;\n head = node;\n\n len += 1;\n return;\n }\n\n addNodeAfter(node, idx - 1);\n }", "public Node insertBefore(Node node);", "@Override\n public void addBefore(E element) {\n Node<E> newNodeList = new Node<>(element, cursor);\n\n if (prev == null) {\n head = newNodeList;\n cursor = newNodeList;\n } else {\n prev.setNext(newNodeList);\n cursor = newNodeList;\n }\n\n size++;\n }", "@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }", "public void insertAtBeginning(int data) {\r\n //creating node\r\n Node node = new Node(data);\r\n //setting the next reference of node to refer to head or start of list\r\n node.setNext(head);\r\n // setting the head to refer node\r\n head = node;\r\n }", "@Override\n\tpublic Position<E> addFirst(E e) {\n\t\treturn addBetween(head, head.next, e);\n\t}", "@Override\n public void prepend(T element){\n if(isEmpty()){\n add(element);\n } else{\n this.first = new DLLNode<T>(element, null, this.first);\n this.first.successor.previous = this.first;\n }\n }", "void prepend(int element) {\n Node newHead = new Node(element,head);\n head = newHead;\n }", "public void insertAtBeginning(int data) {\r\n if(head==null) {\r\n head = new ListNode(data);\r\n return;\r\n }\r\n ListNode new_node = new ListNode(data);\r\n new_node.next=head;\r\n head=new_node;\r\n }", "public void addAtStart(int item) {\n\t\tCLL_LinkNode new_node = new CLL_LinkNode(item);\n\t\tif (this.length == 0) {\n\t\t\tthis.headNode = new_node;\n\t\t\tthis.headNode.setNext(this.headNode);\n\t\t} else {\n\t\t\tCLL_LinkNode temp_node = this.headNode;\n\t\t\twhile (temp_node.getNext() != this.headNode)\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\ttemp_node.setNext(new_node);\n\t\t\tnew_node.setNext(headNode);\n\t\t\tthis.headNode = new_node;\n\t\t}\n\t\tthis.length++;\n\t}", "static ListNode insertAtBeginning(ListNode head, int data) {\n\n ListNode newNode = new ListNode(data);\n\n if (head == null) {\n return newNode;\n }\n\n newNode.next = head;\n head = newNode;\n\n return head;\n }", "public void insertAtBeginning(int element) {\n\t\thead = new Node(element, head);\n\t}", "public void addAtStart(T value) {\n Node<T> newNode = new Node<>();\n newNode.data = value;\n newNode.next = head;\n head = newNode;\n }", "void prepend(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (front == null) \n\t\t{\n\t\t\tfront = back = temp; // if the list is empty the node will be the first node in the list making it the front and back node\n\t\t\tlength++;\n index = 0; //added because i failed the test scripts because i wasn't managing the indicies\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfront.prev=temp; //the temp node is inserted before the front\n\t\t\ttemp.next=front; //the node after temp will be the front because temp was inserted before the front\n\t\t\tfront = temp; //the front is now the temp node\n\t\t\tlength++;\n index++;//added because i failed the test scripts because i wasn't managing the indicies\n\t\t}\n\t}", "public void addAtStart(T v) {\n if (this.head == null) {\n add(v);\n return;\n };\n\n Node node = new Node(v, this.head);\n this.head = node;\n this.length++;\n }", "public void addFirst(Item item) {\n Node oldFirst = first;\n first = new Node(null, item, oldFirst);\n if (oldFirst == null)\n last = first;\n else\n oldFirst.prev = first;\n size++;\n }", "public void addfirst(Item item)\r\n {\r\n Node first = pre.next;\r\n Node x = new Node();\r\n x.item = item;\r\n x.prev = pre;\r\n x.next = first;\r\n pre.next = x;\r\n first.prev = x;\r\n n++;\r\n }", "public void addAtStart(T data) {\n Node<T> newNode = new Node<T>();\n newNode.data = data;\n\n newNode.next = head;\n head = newNode;\n size++;\n }", "public void addFirst(E item) {\n Node<E> n = new Node<>(item, head);\n size++;\n if(head == null) {\n // The list was empty\n head = tail = n;\n } else {\n head = n;\n }\n }", "@Override\n public void insertFirst(E e) {\n if (listHead == null) {\n listHead = new Node(e);\n listTail = listHead;\n }\n\n // In the general case, we simply add a new node at the start\n // of the list via the head pointer.\n else {\n listHead = new Node(e, listHead);\n }\n }", "public void prepend(Item item) {\n Node newNode = new Node();\n newNode.item = item;\n newNode.next = head.next;\n head.next = newNode;\n size++;\n }", "public void addFirst(Object e) {\n if(head == null) {\n tail = head = new Node(e, null, null);\n return;\n }\n\n Node n = new Node(e, null, head);\n head.setPrevious(n);\n head = n;\n }", "public void addToStart(Order ord){\n\t\tNode temp= new Node(ord, null, head);\n\t\tif(head!=null){\n\t\t\thead.previous=temp;\n\t\t}\n\t\thead=temp;\t\n\t}", "public void addFirst(E e) { // adds element e to the front of the list\n // TODO\n if (size == 0) {\n tail = new Node<>(e, null);\n tail.setNext(tail);\n } else {\n Node<E> newest = new Node<>(e, tail.getNext());\n tail.setNext(newest);\n }\n size++;\n }", "private void addFirst (E item)\n {\n Node<E> temp = new Node<E>(item); // create a new node\n // and link to the first node\n head = temp;\n size++;\n }", "public void addNodeToTheStart(int data){\n Node newNode = new Node(data);\n if(head == null){\n head = newNode;\n }else{\n Node tmp = head;\n head = newNode;\n head.next = tmp;\n }\n }", "public void prependNode(int data) {\n\t\tNode currentNode = headNode;\n\t\tif(currentNode == null) {\n\t\t\tNode newNode = new Node(data);\n\t\t\theadNode = newNode;\n\t\t} else {\n\t\t\tif(currentNode!=null) {\n\t\t\t\tNode newNode = new Node(data);\n\t\t\t\theadNode = newNode;\n\t\t\t\tnewNode.setNextNode(currentNode);\n\t\t\t}\n\t\t}\n\t}", "void insertBefore(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tprepend(data); //if the cursor is at the front of the list, you can just call prepend since you will be inserting the element before the front element \n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.prev = cursor.prev; //the new node temp's previous becomes the cursors previous\t\n temp.next = cursor; //the new node temp's next becomes the cursor\n cursor.prev.next = temp; //cursor's previous next element becomes temp\n cursor.prev = temp; //cursor's previous becomes temp\n length++;\n index++;\n\t\t}\n\t}", "@Override\n public void addFirst(E element) {\n Node<E> newNodeList = new Node<>(element, head);\n\n head = newNodeList;\n cursor = newNodeList;\n size++;\n }", "@Override\n\tpublic void preVisit(ASTNode node) {\n\t\tnodeList.add(node);\n\t}", "private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }", "private void addAsFirst(LinkedList<T>.Node<T> elementZero) {\n\t\telementZero.setPriorNode(itsFirstNode.getPriorNode());\n\t\telementZero.setNextNode(itsFirstNode);\n\t\titsFirstNode.setPriorNode(elementZero);\n\t\titsFirstNode = elementZero;\n\t}", "void addFirst(Key k) {\n\t\tfirstNode = new Node(k, getFirstNode()); // creates new node, pointing to the previous first node and sets it to firstNode\n\t\tif(size++==0) lastNode = firstNode;\n\t}", "public void prepend(Integer data) {\n\t\tListNode tmp = new ListNode(data, head);\n\n\t\tif (null != this.head) {\n\t\t\t// asign new head:make tmp the new head:Step2\n\t\t\tthis.head = tmp;\n\t\t} else {\n\t\t\t// but if list is empty then the temp is the only element and is new\n\t\t\t// tail as wells as head[see next statement executed]\n\t\t\tthis.tail = tmp;// tmp is new tail\n\t\t}\n\t\tthis.head = tmp;\n\t\tlength++;\n\t}", "public void insertFirst(int data) { // insert at front of list\n\t\tNode newNode = new Node(data); // creation of new node.\n\t\tif (first == null) // means LinkedList is empty.\n\t\t\tlast = newNode; // newNode <--- last\n\t\telse\n\t\t\tfirst.previous = newNode; // newNode <-- old first\n\t\tnewNode.next = first; // newNode --> old first\n\t\tfirst = newNode; // first --> newNode\n\t}", "public void addAtStart(Item item) { \t\n \tif(head.item == null) {\n \t\thead.item = item;\n\t \t\tif(isEmpty()) {\n\t \t\thead.next = tail;\n\t \t\ttail.next = head;\n\t \t\t} \t\t\n \t} else {\n \t\tNode oldHead;\n \t\toldHead = head;\n \t\thead = new Node();\n \t\thead.item = item;\n \t\thead.next = oldHead;\n \t\ttail.next = head;\n \t}\n \tsize++;\n }", "private void prepend(T t) {\n Node<T> n = new Node<T>();\n n.data = t;\n n.next = head;\n head = n;\n }", "public void addFirst(Item item) {\n if (item == null) throw new NullPointerException(\"Item is null\");\n if (isEmpty()) {\n first = new Node<Item>(item);\n last = first;\n } else {\n Node<Item> newFirst = new Node<Item>(item);\n newFirst.next = first;\n first.prev = newFirst;\n first = newFirst;\n }\n size++;\n }", "public void prepend(final T data) {\n Node<T> newNode = new Node<>(data);\n if (head != null) {\n newNode.setNext(head);\n }\n head = newNode;\n numElement++;\n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException();\n }\n Node node = new Node();\n node.item = item;\n node.next = first;\n if (first == null) {\n first = node;\n last = first;\n }\n else {\n first.pre = node;\n first = node;\n }\n len++;\n }", "@Test\n\tpublic void addNodeBeforeGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node Before the given node \");\n\t\tdll.push(4);\n\t\tdll.push(3);\n\t\tdll.push(1);\n\t\tdll.InsertBefore(dll.head.next, 2);\n\t\tdll.print();\n\t}", "void prepend(int value) {\n\t\tNode n = new Node(value);\n\t\tn.next = head;\n\t\thead = n;\n\t\tlength++;\n\t\t//print();\n\t}", "public void addFirst(Item item) {\n if (item == null) {\n throw new NullPointerException(\"Item Null\");\n } else {\n\n if (isEmpty()) {\n first = new Node<Item>();\n first.item = item;\n last = first;\n } else {\n Node<Item> oldFrist = first;\n first = new Node<Item>();\n first.item = item;\n first.next = oldFrist;\n oldFrist.prev = first;\n }\n N++;\n }\n }", "public void insertAtStart(int data) {\n Node node = new Node();\n node.data =data;\n node.next=null;\n node.next=head;\n head=node;\n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException(\"Item must not be null.\");\n }\n\n Node<Item> oldFirst = first;\n first = new Node<>();\n first.item = item;\n first.next = oldFirst;\n if (oldFirst == null) {\n last = first;\n } else {\n oldFirst.previous = first;\n }\n size++;\n assert check();\n }", "private void addToFront(ListNode node) {\n\t // new node inserted into the linked list\n\t node.prev = head;\n\t node.next = head.next;\n\n\t \n\t head.next.prev = node;\n\t head.next = node;\n\t }", "public Node<T> addFirst(T t) { \r\n Node<T> currFirst = sentinel.next;\r\n Node<T> newNode = new Node<T>(t, sentinel, currFirst);\r\n sentinel.next = newNode;\r\n currFirst.prev = newNode;\r\n size++;\r\n return newNode; \r\n }", "@Override\n public void insertAtBeginning(T value) {\n Node<T> new_node = new Node<>(value);\n new_node.next = start;\n start = new_node;\n }", "public /*@ non_null @*/ JMLListEqualsNode<E> prepend(E item) {\n // cons() handles any necessary cloning\n return cons(item, this);\n }", "public void addFirst(Item item) {\n if (item == null)\n throw new IllegalArgumentException();\n \n final Node<Item> f = first;\n final Node<Item> newNode = new Node<>(null, item, f);\n first = newNode;\n if (f == null)\n last = newNode;\n else\n f.prev = newNode;\n size++;\n }", "public void addFirst(Item item) {\n if (item == null) throw new IllegalArgumentException(\"argument is null\");\n if (!isEmpty()) {\n Node a = new Node();\n a.item = item;\n a.prev = null;\n a.next = first;\n first.prev = a;\n first = a;\n }\n else {\n Node a = new Node();\n a.item = item;\n a.next = null;\n a.prev = null;\n first = a;\n last = a;\n }\n size++;\n }", "@Override\n\tpublic void prepend(Object data) {\n\t\tNode newNode = new Node(data);\n\t\tnewNode.setNext(this.head);\n\t\thead = newNode;\n\t\tsize++;\n\n\t}", "@Test\n\tpublic void addNodeAtFront() {\n\t\tSystem.out.println(\"Adding a node at the front of the list\");\n\t\tdll.push(3);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.print();\n\t}", "public void addFirst(E e) {\n this.head = new Node<>(e, head);\t// create and link a new node\r\n if (this.size == 0)\r\n this.tail = this.head;\r\n this.size ++;\r\n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException(\"Can not call addFirst() with a null argument\");\n }\n Node<Item> oldFirst = first;\n first = new Node<Item>();\n first.item = item;\n first.next = oldFirst;\n if (isEmpty()) {\n last = first;\n }\n else {\n // first.prev = oldFirst;\n oldFirst.prev = first;\n }\n n++;\n }", "@Override\n\tpublic void insertAtFirst(T item) {\n\t\tNode<T> newNode = new Node<>(item);\n\t\tif (this.head == null) {\n\t\t\tthis.head = newNode;\n\t\t} else {\n\t\t\tnewNode.setNext(head);\n\t\t\tthis.head = newNode;\n\t\t}\n\t\tlistSize++;\n\t}", "public void addFirst(E e){\n head = new Node(e, head);\n size++;\n }", "public void addToFront(T value) {\n\t\tstart = new Node<T>(value, start);\n\t}", "public void addFirst(Item item) {\n\t\tif (item == null) {\n\t\t\tthrow new IllegalArgumentException(\"Cannot add null item\");\n\t\t}\n\n\t\tNode node = new Node(item);\n\t\tif (first == null) {\n\t\t\tfirst = last = node;\n\t\t} else {\n\t\t\tnode.next = first;\n\t\t\tfirst.previous = node;\n\t\t\tfirst = node;\n\t\t}\n\t\tsize++;\n\n\t}", "public void addFirst(E element){\n Node<E> newNode = new Node<E>(element);\n newNode.setNext(head.getNext());\n head.setNext(newNode);\n newNode.getNext().setPrevious(newNode);\n newNode.setPrevious(head); \n size++;\n }", "public void addFirst(Object value)\n {\n if(last == null && first == null)\n {\n ListNode temp = new ListNode(value, null);\n last = temp;\n first = temp;\n }\n else\n {\n first = new ListNode(value, first);\n }\n \n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new NullPointerException(\"Element cannot be null.\");\n }\n Node node = new Node(item);\n node.next = head.next;\n node.prev = head;\n head.next.prev = node;\n head.next = node;\n size++;\n }", "public void addFirst(Item item) {\n if (item != null) {\n if (size == 0) { // initiation for the first adding\n first = new Node();\n last = new Node();\n first.item = item;\n first.front = null;\n first.back = null;\n last = first;\n } else { // normal front adding\n Node oldfirst = first;\n first = new Node();\n first.front = null;\n first.item = item;\n first.back = oldfirst;\n oldfirst.front = first;\n }\n size++;\n } else throw new IllegalArgumentException(\"?\");\n }", "public void addFirst(T item) {\n\t\tNode nn = new Node();\n\t\tnn.data = item;\n\t\tnn.next = null;\n\n\t\t// linking\n\t\tnn.next = head;\n\t\thead = nn;\n\n\t}", "private void addBefore(Node n, E x) {\n\n\t\tNode newNode = new Node(x, n);\n\n\t\tNode q = mHead;\n\n\t\tNode p = mHead.next;\n\n\t\twhile (p != n) {\n\t\t\tq = p;\n\t\t\tp = p.next;\n\t\t}\n\n\t\tq.next = newNode;\n\n\t}", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException();\n }\n\n this.first = new Node(item, this.first, null);\n\n if (this.size == 0) {\n this.last = this.first;\n } else {\n this.first.next.prev = this.first;\n }\n\n this.size++;\n }", "public void addFirst(Item item) throws NullPointerException {\n checkItemNotNull(item);\n\n Node oldfirst = first;\n first = new Node(item);\n\n if (isEmpty()) {\n last = first;\n } else {\n oldfirst.prev = first;\n first.next = oldfirst;\n }\n size++;\n }", "public void addFirst(T item) {\n\tif ( _size == 0 ) {\n\t _front = _end = new DLLNode<T>(item, null, null);\n\n\t}\n\telse{\n\t DLLNode<T> temp = new DLLNode<T>(item, _front, null);\n\t _front.setNext(temp);\n\t _front = temp;\n\t}\n\t_size++;\n }", "private void addToFront(Node node) {\n \n if(head == null) {\n head = node;\n tail = node;\n } \n else {\n node.next = head;\n head.prev = node;\n head = node;\n }\n }", "public void addFirst(T value) {\n Node<T> node = new Node<T>(value);\n Node<T> next = sentinel.next;\n\n node.next = next;\n next.prev = node;\n sentinel.next = node;\n node.prev = sentinel;\n\n size += 1;\n }", "public void insertAtStart(int data) {\n\t\tNode node = new Node();\n\t\tnode.data = data;\n\t\tnode.next = null;\n\t\tnode.next = head;\n\t\thead = node;\n\t}", "public void addStart(int data) {\n\t\tNode newNode = new Node(data);\n\t\tnewNode.next = head;\n\t\thead = newNode;\n\t}", "public void addFirst(Item item){\n\t\tif(item == null){\n\t\t\tthrow new NullPointerException(\"Cannot insert a null item.\");\n\t\t}else{\n\t\t\t//Save old first node\n\t\t\tNode<Item> oldFirst = first;\n\t\t\t//assign first node to a new node\n\t\t\tfirst = new Node<Item>();\n\t\t\tfirst.item = item;\n\t\t\tfirst.prev = null;\n\t\t\tfirst.next = oldFirst;\n\t\t\t//link the old first to new first\n\t\t\t//if the first item to add\n\t\t\tif(oldFirst == null){\n\t\t\t\tlast = first;\n\t\t\t}else{\n\t\t\t\toldFirst.prev = first;\n\t\t\t}\n\t\t\t//increase size by 1\n\t\t\tn++;\n\t\t}\n\t}", "public void addFirst(Item item) {\n Node newNode = new Node();\n newNode.data = item;\n // if the DList was already empty:\n if(isEmpty()) {\n // set the next pointer of newNode to last\n newNode.next=last;\n last.prev = newNode;\n newNode.prev=first;\n first.next = newNode;\n }\n // no need to touch the last sentinel node, unless the list was already empty:\n else {\n // copy the old actual node that frist sentinel was point to\n Node oldFirst = first.next;\n first.next = newNode;\n newNode.next = oldFirst;\n newNode.prev=first;\n oldFirst.prev = newNode;\n }\n // update size\n size++;\n }", "public void addFirst(T element) {\r\n \r\n if (element == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n \r\n Node n = new Node(element);\r\n \r\n if (size() == 0) {\r\n \r\n front = n;\r\n last = n;\r\n }\r\n \r\n else {\r\n n.next = front;\r\n front = n;\r\n }\r\n \r\n size++; \r\n }", "protected void insertBeginning(T value) {\r\n\t\tthis.getHead().setPrev(new SNode<T>(value, this.getHead().getPrev()));\r\n\t\tthis.size++;\r\n\t}", "public void addFirst(Item item) {\n if (item == null)\n throw new IllegalArgumentException();\n\n if (this.first == null) {\n this.first = new Node();\n this.first.item = item;\n this.last = this.first;\n } else {\n Node newfirst = new Node();\n newfirst.item = item;\n newfirst.next = this.first;\n this.first.prev = newfirst;\n this.first = newfirst;\n }\n this.n++;\n }", "public void addFirst(Item item) {\n if (item == null) {\n throw new IllegalArgumentException();\n }\n Node<Item> node = new Node<Item>(item);\n if (head == null) {\n head = node;\n tail = head;\n } else {\n head.prev = node;\n node.next = head;\n head = node;\n }\n\n size++;\n }", "private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }", "public void addFront(E item) {\r\n\t\tNode<E> node = new Node<E>(item, first);\r\n\t\tif(isEmpty())\r\n\t\t\tfirst = last = node;//it would be the first node so it would be first and last\r\n\t\telse {\r\n\t\t\tfirst = node;//creates a new node and puts it in the 1st position\r\n\t\t}\r\n\t}", "public void addFirst(Item item) {\n\t\tif (item == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tNode<Item> node = new Node<Item>();\n\t\tnode.item = item;\n\t\tif (head == null) {\n\t\t\ttail = node;\n\t\t} else {\n\t\t\thead.prev = node;\n\t\t}\n\t\tnode.next = head;\n\t\thead = node;\n\t\tN++;\n\t}", "public void addFrontNode(T a) {\r\n head = new ListNode(a, head);\r\n }", "public PersistentLinkedList<T> addFirst(T data) {\n return add(0, data);\n }", "public void addFirst(T element)\r\n {\r\n Node<T> newNode = new Node<T>(element);\r\n \r\n if (front == null)\r\n front = rear = newNode;\r\n else\r\n {\r\n newNode.next = front;\r\n front = newNode;\r\n }\r\n numElements++;\r\n }", "public static LinkedList prepend(LinkedList list, int data)\r\n\t\t{\r\n\t\t\tNode newHead = new Node(data);\r\n\t\t\tnewHead.next = list.head;\r\n\t\t\tlist.head = newHead;\r\n\t\t\treturn list;\r\n\t\t}", "public void addFirst(Object element)\n {\n Node newNode = new Node();\n newNode.data = element;\n newNode.next = first;\n first = newNode; \n \n }", "public void addFirst(Item item) {\n\t\tif (item == null) throw new NullPointerException();\n\t\t\n\t\tcount++;\n\t\t\n\t\tNode firstNode = new Node();\n\t\tfirstNode.item = item;\n\t\tif (count > 1) {\n\t\t\tfirstNode.next = first;\n\t\t\tfirst.previous = firstNode;\n\t\t} else {\n\t\t\tlast = firstNode;\n\t\t}\n\t\tfirst = firstNode;\n\t}", "public void addFirst(Object item){\n MovieNode first = new MovieNode(item);\t//Step 1: Create the MovieNode\n first.next = head.next;\t\t\t//Step 2: Copy the next of head to the next of MovieNode\n head.next = first;\t\t\t\t//Step 3: Update the head next value to point to the new MovieNode\n size++;\t\t\t\t\t\t\t//Step 4: Update the number of nodes in the list\n }", "public void addFront(E d) {\n\t\t// make new node to contain d\n\t\tListNode<E> node = new ListNode<E>(d);\n\t\tif (this.head == null) {\n\t\t\t// the list is empty so make the head point at the node\n\t\t\tthis.head = node;\n\t\t\tthis.last = node;\n\t\t} else {\n\t\t\t// the list it not empty, so the old head's next points at the node\n\t\t\t// the head points at the node\n\t\t\tnode.next = this.head;\n\t\t\tthis.head = node;\n\t\t}\n\t\tthis.size++;\n\t}", "public void addBefore(E val, int idx) throws IndexOutOfBoundsException {\n addNodeBefore(new SinglyLinkedList.Node<>(val), idx);\n }", "public Node addAtFirst(Node head, int data) {\n if (head == null) {\n head = new Node(data);\n } else {\n Node newHead = new Node(data);\n newHead.next = head;\n head = newHead;\n }\n return head;\n }", "public void insertAtBeginning(String data)\n\t{ \n\t\t\n\t\tNode node=new Node();\n\t\tnode.data = data;\n\t\tnode.next = null;\n\t\t\n\t\tnode.next = head;\n\t\t\n\t\thead =node;\n\t}", "public void insertAtBegin(int data){\n Node newNode = new Node(data);\n if (head == null){\n head = newNode;\n }else {\n Node node = head;\n head = newNode;\n newNode.next = node;\n node.prev = newNode;\n }\n\n }", "private void insertFirst(T data){\n Node<T> node = new Node<T>(data);\n this.begin = node;\n this.end = node;\n }", "public void addFirst(E item){\r\n\r\n //checking the precondition\r\n\tif(item == null){\r\n\t\tthrow new IllegalArgumentException(\" item cannot equal null \");\r\n\t}\r\n\t\r\n\t//creating a new front of the list\r\n\tDoubleListNode<E> firstNode = new DoubleListNode<E>(end.getPrev(), item, null);\r\n\t\r\n\t//setting the front of the list to the head\r\n\tfirstNode.setNext(head);\r\n\t\r\n\t//setting the head to new first node\r\n\thead = firstNode;\r\n\t\r\n\t//setting the headData\r\n\theadData = head.getData();\r\n\t\r\n\r\n\r\n }" ]
[ "0.7585188", "0.75811505", "0.74601454", "0.7417759", "0.73982793", "0.7367796", "0.7310532", "0.7258739", "0.7191715", "0.7097102", "0.7087259", "0.7066436", "0.70595044", "0.7057895", "0.70539683", "0.7020507", "0.70014554", "0.69877404", "0.6983856", "0.69808936", "0.6956563", "0.6942102", "0.69402736", "0.6931109", "0.69119483", "0.6903101", "0.68981254", "0.68824214", "0.6877173", "0.6873358", "0.6868914", "0.68689054", "0.6867575", "0.6863661", "0.6848007", "0.68445593", "0.6837769", "0.68274283", "0.68137807", "0.680585", "0.68030053", "0.6789302", "0.6778092", "0.67779034", "0.6770642", "0.6769556", "0.6766276", "0.6765577", "0.6755041", "0.675395", "0.6750071", "0.67445016", "0.67423874", "0.67395526", "0.67193377", "0.6718347", "0.67165947", "0.6708436", "0.670606", "0.6700186", "0.6695548", "0.66782695", "0.66683125", "0.66661793", "0.66649085", "0.6659666", "0.6642526", "0.66336745", "0.66296333", "0.6628733", "0.6627872", "0.66258234", "0.6624424", "0.66191125", "0.6616922", "0.6611547", "0.66051096", "0.6599444", "0.65952724", "0.6594777", "0.65935194", "0.65930027", "0.65908223", "0.65893966", "0.6552255", "0.6548574", "0.65407366", "0.6537585", "0.65200174", "0.6511037", "0.65106374", "0.650925", "0.6493428", "0.64865094", "0.6483026", "0.6482778", "0.64776915", "0.64734817", "0.647174", "0.6454337" ]
0.7504693
2
Adds a given Node at the given index idx.
public void addAtIndex(int idx, Node node) { if (!checkIndexBounds(idx)) { return; } Node pre = getNodeBeforeIndex(idx); Node curr = pre.next; pre.next = node; node.next = curr; this.length++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAtIndex(int idx, T v) {\n addAtIndex(idx, new Node(v));\n }", "@Override\n\tpublic void add(int idx, T obj) throws IndexOutOfBoundsException {\n\t\tboolean found = false;\n\t\tint n = 0;\n\t\tListNode tmp = new ListNode(obj);\n\t\tListNode current = head;\n\t\t\n\t\tif (idx < 0 || idx > size()) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\telse if (idx == 0) {\n\t\t\ttmp.next = head;\n\t\t\thead = tmp;\n\t\t\tsize++;\n\t\t}\n\t\telse {\n\t\t\twhile (!found) {\n\t\t\t\tif (n == idx - 1) {\n\t\t\t\t\ttmp.next = current.next;\n\t\t\t\t\tcurrent.next = tmp;\n\t\t\t\t\tfound = true;\n\t\t\t\t\tsize++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent = current.next;\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void addAtIndex(int index, int val) {\n if (index < 0 || index > size) return;\n\n Node node = head;\n\n for (int i = 0; i < index; i++) {\n node = node.next;\n }\n\n Node newNode = new Node(val);\n newNode.next = node.next;\n newNode.next.prev = newNode;\n node.next = newNode;\n newNode.prev = node;\n size++;\n }", "void addAdjcentNode(int adjcentNodeIdx){\r\n\t\t\tadjacentNodeIndices.add(adjcentNodeIdx);\r\n\t\t}", "public void addAtIndex(int index, int val) {\n if (index < 0 || index > size) {\n return;\n }\n Node prev = dummyHead;\n for (int i = 0; i < index; i++) {\n prev = prev.next;\n }\n prev.next = new Node(val, prev.next);\n size++;\n }", "public void addBefore(E val, int idx) throws IndexOutOfBoundsException {\n addNodeBefore(new SinglyLinkedList.Node<>(val), idx);\n }", "public void addAtIndex(int index, int val) {\n if (index > this.size) {\n return;\n }\n\n if (index < 0) {\n index = 0;\n }\n\n ListNode pred = this.head;\n\n for (int i = 0; i < index; ++i) {\n pred = pred.next;\n }\n\n ListNode node = new ListNode(val);\n node.next = pred.next;\n pred.next = node;\n\n this.size++;\n }", "public void addAtIndex(int index, int data)\n {\n Node newNode = new Node(data);\n Node oldNode = head;\n\n for (int i=1;i<size;i++)\n {\n if (i == index)\n {\n Node myNode = oldNode.next;\n oldNode.next = newNode;\n newNode.next = myNode;\n break;\n }\n oldNode = oldNode.next;\n }\n size++ ;\n }", "void addNode(int node);", "public void add(int index, int data){\r\n if (index == 0){\r\n front = ned node(data, front){\r\n } else {\r\n node curr = front;\r\n for (int i = 0; i < index - 1; i++){\r\n curr = curr.next;\r\n }\r\n curr.next = new node(data, curr.next);\r\n }\r\n }\r\n \r\n}", "private void addNode(int index, Node<AnyType> t) throws IndexOutOfBoundsException {\n \n /**\n * -------------------------------------------\n * TODO: You fully implement this method\n * \n */\n \n \n if ( index == 0 && !isEmpty() ) {\n \n t.setNextNode( headNode );\n headNode.setPreviousNode( t );\n headNode = t;\n size++;\n \n } else if ( index == 0 && isEmpty() ) { \n \n t.setNextNode( headNode );\n headNode = t;\n size++;\n \n } else if ( index == size ) {\n \n addNode( t );\n \n } else {\n \n Node<AnyType> node = getNode( index );\n \n node.getPreviousNode().setNextNode( t );\n t.setPreviousNode( node.getPreviousNode() );\n node.setPreviousNode( t );\n t.setNextNode( node );\n \n size++;\n \n }\n \n }", "public @Override void add(int index, E element) {\n \tNode n = index == size ? sentinel : getNode(index);\n \tnew Node(n.pred, element);\n }", "public void addAtIndex(int index, int val) {\n if (index > size) return;\n //Add at head\n if (index <= 0) {\n addAtHead(val);\n }\n //Add at end\n else if (index == size) {\n addAtTail(val);\n } else {\n ListNode newNode = new ListNode(val);\n ListNode curr = head;\n //Add somewhere in between\n for (int i = 0; i < index - 1; i++) {\n curr = curr.next;\n }\n newNode.next = curr.next;\n curr.next = newNode;\n size++;\n }\n }", "private void addNodeAtIndex(int data, int index) {\n ListNode newNode = new ListNode(data);\n if (head == null) {\n head = newNode;\n return;\n }\n int count = 0;\n ListNode current = head;\n while (count < index - 1) {\n count++;\n current = current.next;\n }\n newNode.next = current.next;\n current.next = newNode;\n }", "public void addAtIndex(int index, T data) {\n Node<T> newNode = new Node<>();\n newNode.data = data;\n\n if (index == 0) {\n addAtStart(data);\n } else {\n Node<T> node = head;\n for (int i = 0; i < index - 1; i++) {\n node = node.next;\n }\n newNode.next = node.next;\n node.next = newNode;\n }\n }", "public void addAt(int index, T data) {\n Node<T> newNode = new Node<T>();\n newNode.data = data;\n\n if (index == 0) {\n newNode.next = head;\n head = newNode;\n } else {\n Node<T> currentNode = head;\n Node<T> previousNode = null;\n\n for (int i = 0; i < index; i++) {\n previousNode = currentNode;\n currentNode = currentNode.next;\n }\n previousNode.next = newNode;\n newNode.next = currentNode;\n }\n size++;\n }", "public void add(int index, Object value) {\n if (index > _size) {\n throw new ListIndexOutOfBoundsException(\"Error\");\n }\n ListNode node = new ListNode(value);\n if (index == 0) {\n node.next = start;\n start = node;\n } else {\n ListNode prev = start;\n for (int i = 0; i<index - 1; i++ ) {\n prev = prev.next;\n }\n ListNode temp = prev.next;\n prev.next = node;\n node.next = temp;\n } \n _size++;\n }", "public void addAfter(E val, int idx) throws IndexOutOfBoundsException {\n addNodeAfter(new SinglyLinkedList.Node<>(val), idx);\n }", "public void add(int index, E x) {\n\t\tif (index < 0 || index > mSize) // == mSize allowed\n\t\t\tthrow new IndexOutOfBoundsException();\n\n\t\tif (size() == 0)\n\t\t\taddFirst(x);\n\t\telse {\n\t\t\taddBefore(getNode(index, 0, size()), x);\n\t\t\tmSize++;\n\t\t\tmodCount++;\n\t\t}\n\t}", "public void addAtIndex(int index, int val) {\n if(index==0) {\n addAtHead(val);\n return;\n }\n if(index==len) {\n addAtTail(val);\n return;\n }\n if(index>0 && index<len) {\n SingleNode cur = new SingleNode(val,null);\n SingleNode pre = head;\n for(int i=0; i<index-1; i++) {\n pre = pre.next;\n }\n cur.next = pre.next;\n pre.next = cur;\n len++;\n }\n }", "public void add(int index, E obj){\n Node n = head;\n Node foo = new Node<E>(obj);\n Node temp = new Node<E>(null);\n int count = 0;\n if(index >= size()){\n index = size(); \n }\n else if (index < 0){\n index = 0;\n }\n while(n.getNext() != null && count != index)\n {\n n = n.getNext();\n temp = n;\n count++;\n }\n temp = n.getNext();\n n.setNext(foo);\n foo.setNext(temp);\n }", "public void add(int index, AnyType t) throws IndexOutOfBoundsException, NullPointerException {\n \n if ( t == null ) throw new NullPointerException();\n \n addNode( index, new Node<AnyType>(t) );\n \n }", "public void addAtIndex(int index, int val) {\n if(index>size || index<0)\n return;\n ListNode ptr=new ListNode(val);\n ListNode p=head,follow=head;\n int count=0;\n while (p!=null && count!=index){\n count++;\n follow=p;\n p=p.next;\n }\n if(p==head) {\n if(p == null) {\n head = ptr;\n tail=ptr;\n }\n else {\n ptr.next = head;\n head = ptr;\n }\n size++;\n }\n else if(p==tail){\n ptr.next=p;\n follow.next=ptr;\n size++;\n }\n else if(p==null){\n follow.next=ptr;\n tail=ptr;\n size++;\n }\n else {\n ptr.next = p;\n follow.next = ptr;\n size++;\n }\n }", "public void addNode(String name, int index) {\n\t\tDefaultTreeModel model = (DefaultTreeModel) getModel();\n\t\tTreeNode root = (TreeNode) model.getRoot();\n\t\tif (index > root.getChildCount() || index < 0){\n\t\t\tindex = root.getChildCount();\n\t\t}\n\n\t\tmodel.insertNodeInto(new TreeNode(name, root.getNodeOption(), index, false), root, index);\n\t\tmodel.reload();\n\n\t\tscrollRowToVisible(index + 1);\n\n\t}", "public void addChild(int index, Node node) {\n\t\tthis.children.add(index, node);\n\t}", "@Override\n public void add(int index, T elem) {\n if(index < 0 || index >= size()) {//if the required index is not valid, give error\n throw new IndexOutOfBoundsException();\n }\n //if we want to add at the beginning of the list\n if(index == 0) {\n prepend(elem); //reuse prepend method when adding at the start of list\n return;\n }\n //if we want to add inside the list\n DLNode<T> predecessor = first; //create a reference, point it to the first node\n for(int i = 0; i < index - 1; i++) {//locate the preceeding index of the required index\n predecessor = predecessor.next;\n \n }\n DLNode<T> successor = predecessor.next; //another reference, now points to the index we want to add the new node to\n \n DLNode<T> middle = new DLNode(elem, predecessor, successor);//create new node, it's previous node is predecessor, the one after it is successor\n predecessor.next = middle; //new node is assigned to the required index, after predecessor, before successor\n \n if(successor == null) {//if there's no node after the new node\n last = middle; //new node is the last one \n }\n else{ //if there is a successor node exist\n successor.prev = middle; //new node preceeds it's successor\n } \n \n }", "public void add(int index, Object data) {\n isValidIndex(index);\n\n Node newNode = new Node(data);\n if (isEmpty()) {\n head = newNode;\n size ++;\n } else if (index == 0) {\n addFirst(data);\n } else {\n Node n = getNode(index - 1);\n newNode.next = n.next;\n n.next = newNode;\n size ++;\n }\n\n if (newNode.next == null) {\n tail = newNode;\n }\n }", "void add(int index, T element);", "void add(int index, T element);", "void add(int idx, float incr);", "private void addNodeBefore(SinglyLinkedList.Node<E> node, int idx) throws IndexOutOfBoundsException {\n if (idx == 0) {\n node.next = head;\n head = node;\n\n len += 1;\n return;\n }\n\n addNodeAfter(node, idx - 1);\n }", "public abstract void add(T element, int index);", "public void add(int index, T obj) {\r\n if (index < 0 || size < index) {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n if (obj == null) {\r\n throw new IllegalArgumentException(\"Cannot add null \"\r\n + \"objects to a list\");\r\n }\r\n\r\n Node<T> current;\r\n if (index == size) {\r\n current = tail;\r\n }\r\n else {\r\n current = getNodeAtIndex(index);\r\n }\r\n\r\n Node<T> newNode = new Node<T>(obj);\r\n newNode.setPrevious(current.previous());\r\n newNode.setNext(current);\r\n current.previous().setNext(newNode);\r\n current.setPrevious(newNode);\r\n size++;\r\n\r\n }", "void add(int index, Object element);", "void addNode(Node n) {\n nodes.put(n.id, n);\n }", "protected void addingNode( SearchNode n ) { }", "public void add(int index,Object data)\r\n\t{\r\n\t\tNode n = headPointer;\t\r\n\t\t//System.out.println(\"headPointer is: \" + n.getData());\r\n\t\tint count = 0;\r\n \r\n\t\twhile(count != index)\r\n {\r\n\t\t\t//System.out.println(\"n is: \" + n.getData());\r\n\t\t\tif(n != null)\r\n\t\t\t{\r\n\t\t\t\tn = n.getNext();\t\r\n\t\t\t}\r\n count++;\r\n }\r\n\t//\tSystem.out.println(\"We have fallen out of the loop\");\r\n\t\t\r\n\t\tNode m = new Node(data, n, n.getPrev()); \r\n\t\tm.getPrev().setNext(m);\r\n\t\tn.setPrev(m);\t\r\n\t}", "public void insertChildAt(WSLNode node, int index) {\n\t\tchildren.insertElementAt(node, index);\n\t}", "private Node<T> getNode(int idx) {\r\n\t\treturn getNode(idx, 0, size() - 1);\r\n\t}", "public void add(final T data, final int index) {\n if (index < 0 || index > numElement + 1) {\n throw new IndexOutOfBoundsException();\n }\n Node<T> newNode = new Node<>(data);\n if (index == 0) {\n prepend(data);\n } else if (index == numElement) {\n append(data);\n }\n Node<T> iterator = head;\n for (int currentIndex = 0; currentIndex < index - 1; currentIndex++) {\n iterator = iterator.getNext();\n }\n newNode.setNext(iterator.getNext());\n iterator.setNext(newNode);\n numElement++;\n }", "protected SinglyLinkedList.Node<E> indexNode(int idx) throws IndexOutOfBoundsException {\n if (!validIndex(idx)) {\n throw new IndexOutOfBoundsException(\"Cannot index element #\" + idx + \" in SinglyLinkedList.\");\n }\n\n SinglyLinkedList.Node<E> curr = head;\n\n for (; idx > 0; idx--) {\n curr = curr.next;\n }\n\n return curr;\n }", "public Node appendNode(Node node);", "public void add (int index, E item)\n {\n if (index < 0 || index > size) {\n throw new\n IndexOutOfBoundsException(Integer.toString(index));\n }\n if (index == 0)\n addFirst(item);\n else {\n Node<E> node = getNode(index - 1);\n addAfter(node, item);\n }\n }", "boolean addNode(N node);", "public void addNode(Node node){subNodes.add(node);}", "public void add(int index, Type t);", "void insert(int idx, int val);", "@Override\n public void add(int index, T element){\n if(index < 0 || index > size()){\n throw new NullPointerException();\n }else if(isEmpty() || index == size()){\n add(element);\n } else if(index == 0){\n prepend(element);\n } else{\n DLLNode<T> newNode = new DLLNode<T>(element);\n DLLNode<T> rightNode = getCurrentNode(index);\n DLLNode<T> leftNode = rightNode.previous;\n leftNode.successor = newNode;\n newNode.previous = leftNode;\n newNode.successor = rightNode;\n rightNode.previous = newNode;\n }\n }", "@Override\r\n public void add(int index, T b) {\r\n head = head.add(index, b);\r\n }", "void addNode(String node);", "void addNode()\n {\n Node newNode = new Node(this.numNodes);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n }", "public void add(int index, E obj)\r\n {\r\n listIterator(index).add(obj);\r\n }", "public void addNode() {\n if (nodeCount + 1 > xs.length)\n resize();\n nodeCount++;\n }", "protected void addNode (Node node, int index)\n {\n Node currentNode = adjacencySequences[index];\n if (currentNode == null)\n adjacencySequences[index] = node;\n else\n {\n Node previousNode = null;\n while (currentNode != null && currentNode.edgeWeight < node.edgeWeight)\n {\n previousNode = currentNode;\n currentNode = currentNode.nextNode;\n }\n\n if (previousNode == null)\n adjacencySequences[index] = node;\n else\n previousNode.nextNode = node;\n \n node.nextNode = currentNode;\n }\n }", "public void insertAt(int index,int data){\n Node node =new Node();\n node.data=data;\n node.next=null;\n\n if (index == 0) {\n insertAtStart(data);\n }\n\n\nelse{\n Node n = head;\n for (int i=0; i < index-1;i++){\n n =n.next;\n }\n node.next =n.next;\n n.next = node;\n\n}}", "public void add(int index, E element);", "private void addNodeAfter(SinglyLinkedList.Node<E> node, int idx) throws IndexOutOfBoundsException {\n SinglyLinkedList.Node<E> before = indexNode(idx);\n\n node.next = before.next;\n before.next = node;\n\n len += 1;\n }", "public LinkedListElement add(int Index, T content) throws IndexOutOfBoundsException {\n if (Index == 0) {\n LinkedListElement element = new LinkedListElement(content);\n element.next = this;\n return element;\n } else {\n throw new IndexOutOfBoundsException(\"Methode add: Dieser Index existiert nicht!\");\n }\n }", "public boolean add(int index, E elem) {\r\n\t\tif (index < 0 || index > size) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t} else {\r\n\t\t\tNode<E> adding;\r\n\t\t\tif (size == 0) {\r\n\t\t\t\tadding = new Node<E>(elem, null, null);\r\n\t\t\t\thead = adding;\r\n\t\t\t\ttail = adding;\r\n\t\t\t} else {\r\n\t\t\t\tif (index <= size - 1) { // adding between nodes\r\n\t\t\t\t\tNode<E> oldItem = indices.get(index);\r\n\t\t\t\t\tadding = new Node<E>(elem, oldItem.prev, oldItem);\r\n\t\t\t\t\toldItem.prev = adding;\r\n\t\t\t\t\tif (index == 0) {\r\n\t\t\t\t\t\thead = adding;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else { // appending (index == size)\r\n\t\t\t\t\tappend(elem);\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tindices.add(index, adding);\r\n\t\t\tsize++;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public void add(int index, U newValue) throws IndexOutOfBoundsException {\n\t\t\tif (index > mLength || index < 0) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"Supplied index \" + index + \" is invalid.\");\n\t\t\t}\n\n\t\t\tif (index == 0) {\n\t\t\t\tlinkBeforeNode(new Node<>(newValue), mHead);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (index == mLength) {\n\t\t\t\tlinkAfterNode(new Node<>(newValue), mTail);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tlinkBeforeNode(new Node<>(newValue), getNodeAtIndex(index));\n\t\t}", "public void insert(int index, char data)\n {\n if(index >= 0 && index <= numNodes){\n if(index == 0)\n {\n Node node = new Node(data);\n node.next = head;\n head = node;\n }\n else\n {\n //find your previous and your current\n Node curr = find(index);\n Node prev = find(index - 1);\n \n //add the new node with current as the successor and previous as the \n //predecessor\n Node node = new Node(data, curr);\n prev.next = node;\n }\n numNodes++;\n }\n else\n {\n throw new IndexOutOfBoundsException();\n }\n }", "private static void addChildAt(\n ReactShadowNode parentNode,\n ReactShadowNode childNode,\n int index,\n int prevIndex) {\n if (index <= prevIndex) {\n throw new RuntimeException(\n \"Invariant failure, needs sorting! \" + index + \" <= \" + prevIndex);\n }\n\n parentNode.addChildAt(childNode, index);\n }", "public int addNode(node_type node) {\n if (node.getIndex() < (int) nodeVector.size()) {\n //make sure the client is not trying to add a node with the same ID as\n //a currently active node\n assert nodeVector.get(node.getIndex()).getIndex() == invalid_node_index :\n \"<SparseGraph::AddNode>: Attempting to add a node with a duplicate ID\";\n\n nodeVector.set(node.getIndex(), node);\n\n return nextNodeIndex;\n } else {\n //make sure the new node has been indexed correctly\n assert node.getIndex() == nextNodeIndex : \"<SparseGraph::AddNode>:invalid index\";\n\n nodeVector.add(node);\n edgeListVector.add(new EdgeList());\n\n return nextNodeIndex++;\n }\n }", "public Builder addNodes(\n int index, entities.Torrent.NodeId value) {\n if (nodesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodesIsMutable();\n nodes_.add(index, value);\n onChanged();\n } else {\n nodesBuilder_.addMessage(index, value);\n }\n return this;\n }", "public Builder addNode(\n int index, uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.Builder builderForValue) {\n if (nodeBuilder_ == null) {\n ensureNodeIsMutable();\n node_.add(index, builderForValue.build());\n onChanged();\n } else {\n nodeBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "public void add(int index, T data) {\n\t\tif(index > size() || index < 0) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Illegal index: \" + index);\n\t\t}\n\t\t\n\t\tLinkedListNode<T> temp = head.getNext();\n\t\tint i = 0;\n\t\twhile(true) {\n\t\t\tif(temp == null) {\n\t\t\t\tthrow new InternalError(\"add(int index, T data) iterates past the end\");\n\t\t\t}\n\t\t\tif(index == i) {\n\t\t\t\tLinkedListNode<T> toAdd = new LinkedListNode<T>(temp, temp.getPrevious(), data);\n\t\t\t\ttemp.getPrevious().setNext(toAdd);\n\t\t\t\ttemp.setPrevious(toAdd);\n\t\t\t\tmodcount++;\n\t\t\t\tnodeCount++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ti++;\n\t\t\ttemp = temp.getNext();\n\t\t}\n\t}", "public abstract void add(int index, E e);", "boolean addNode(long idNum, String label);", "public void add(int index, T element)\r\n {\r\n Node<T> newNode = new Node<T>(element);\r\n Node<T> walker; // needed for traversing the list\r\n \r\n if ((index < 0) || (index > numElements))\r\n throw new IndexOutOfBoundsException(\r\n \"Illegal index \" + index + \" passed to add method.\\n\");\r\n\r\n if (front == null) // add to empty list\r\n { \r\n front = newNode;\r\n rear = newNode;\r\n }\r\n else if (index == 0) // add to front\r\n {\r\n newNode.next = front;\r\n front = newNode;\r\n }\r\n else if (index == size()) // add to rear\r\n {\r\n rear.next = newNode;\r\n rear = newNode;\r\n }\r\n else // add to interior part of list\r\n {\r\n walker = front; \r\n for (int i=0; i<(index-1); i++)\r\n {\r\n walker = walker.next;\r\n }\r\n newNode.next = walker.next;\r\n walker.next = newNode;\r\n }\r\n numElements++;\r\n }", "@Override\n\tpublic void add(int index, E element) {\n\t\trangeCheckForAdd(index);\n\t\tif (index==size) {\n\t\t\tNode<E> oldLast = last;\n\t\t\tlast = new Node<E>(oldLast, element, first);\n\t\t\t//这是链表添加的第一个元素\n\t\t\tif (oldLast == null) {\n\t\t\t\tfirst = last;\n\t\t\t\tfirst.next = first;\n\t\t\t\tfirst.prev = first;\n\t\t\t}else {\n\t\t\t\toldLast.next = last;\n\t\t\t\tfirst.prev = last;\n\t\t\t}\n\t\t}else {\n\t\t\tNode<E> next = node(index);\n\t\t\tNode<E> prev = next.prev;\n\t\t\tNode<E> node = new Node<E>(prev, element, next);\n\t\t\tnext.prev = node;\n\t\t\tprev.next = node;\n\t\t\tif (next == first) { // index == 0\n\t\t\t\tfirst = node;\n\t\t\t}\n\t\t}\n\t\tsize ++;\n\t}", "public void insertNodeToTheGivenIndex(int index, int data){\n int size = size(); // for performance improvement!\n\n //Index validation\n checkIndex(index);\n\n if(index==0){\n addNodeToTheStart(data);\n }else if(index==size){\n addNodeToTheEnd(data);\n }\n //Important\n Node newNode = new Node(data);\n Node current = head;\n Node previous = null;\n int i = 0;\n while(i<index){\n previous = current; //Update previous Node in the loop!\n current = current.next;\n i++;\n }\n newNode.next = current;\n assert previous != null;\n previous.next = newNode;\n }", "public void add(T element, int pos);", "public Builder addNodes(\n int index, entities.Torrent.NodeId.Builder builderForValue) {\n if (nodesBuilder_ == null) {\n ensureNodesIsMutable();\n nodes_.add(index, builderForValue.build());\n onChanged();\n } else {\n nodesBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "public Builder addNode(\n int index, uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode value) {\n if (nodeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeIsMutable();\n node_.add(index, value);\n onChanged();\n } else {\n nodeBuilder_.addMessage(index, value);\n }\n return this;\n }", "private void add(E e, int index) {\r\n\t\t\tif (hasRoom(index)) {\r\n\t\t\t\tshiftElements(data, index);\r\n\t\t\t\tdata[index] = e;\r\n\t\t\t} else {\r\n\t\t\t\tNode toAdd = new Node();\r\n\t\t\t\tthis.next.prev = toAdd;\r\n\t\t\t\ttoAdd.next = this.next;\r\n\t\t\t\ttoAdd.prev = this;\r\n\t\t\t\tthis.next = toAdd;\r\n\r\n\t\t\t\ttoAdd.data[0] = this.data[data.length - 1];\r\n\t\t\t\t// Shifts everything over one spot, the end element gets lost\r\n\t\t\t\tSystem.arraycopy(this.data, index, this.data, index + 1, data.length - index - 1);\r\n\t\t\t\tthis.data[index] = e;\r\n\t\t\t}\r\n\t\t}", "public void add(T data, int index) {\n\t\tif (index < 0 || index > this.size) {\n\t\t\tthrow new ArrayIndexOutOfBoundsException();\n\t\t} else if (index == size) {\n\t\t\tthis.add(data);\n\t\t} else if (index == 0) {\n\t\t\tthis.addFirst(data);\n\t\t} else {\n\t\t\tListNode<T> previousElement = goToIndex(index - 1);\n\t\t\tListNode<T> currentElement = goToIndex(index);\n\t\t\tListNode<T> newElement = new ListNode<T>(data, currentElement);\n\t\t\tpreviousElement.setNext(newElement);\n\t\t\tthis.size++;\n\t\t}\n\t}", "@Nonnull\n public final HCHead addJSAt (@Nonnegative final int nIndex, @Nonnull final IHCNode aJS)\n {\n ValueEnforcer.notNull (aJS, \"JS\");\n if (!HCJSNodeDetector.isJSNode (aJS))\n throw new IllegalArgumentException (aJS + \" is not a valid JS node!\");\n m_aJS.add (nIndex, aJS);\n return this;\n }", "public void add(int index, Fit f, int hierarchyIndex) {\n\t\tif (m_indexAdded == -1 || index == 0)\n\t\t\tm_indexAdded = hierarchyIndex;\n\t\tadd(index, f);\n\t}", "public void add(T v) {\n add(new Node(v));\n }", "public void add(Node<T> n){\n\t\tconnect.add(n);\n\t}", "public void add(int index, int data) throws OutOfBoundsException {\n\n\t\tif (index == 0) {\n\t\t\tNode right = head;\n\t\t\thead = new Node(right, data);\n\t\t} else if (index == size) {\n\t\t\tNode left = retrieve(size - 1);\n\t\t\tleft.setNextNode(new Node(null, data));\n\n\t\t} else {\n\t\t\tNode left = retrieve(index - 1);\n\t\t\tNode right = retrieve(index);\n\t\t\tNode noo = new Node(right, data);\n\t\t\tleft.setNextNode(noo);\n\t\t}\n\t\tsize++;\n\t}", "public void add(int v){\n if (head == null) {\n // First node in the list\n head = new Node(v);\n } else {\n // List has nodes\n head.add(v);\n }\n }", "@Override\n\tpublic void insert(Object data, int index) throws IndexOutOfBoundsException {\n\n\t\tif (index >= size() || index < 0) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\n\t\tNode newNode = new Node(data);\n\t\tif (index == 0) {\n\t\t\tnewNode.setNext(head);\n\t\t\thead = newNode;\n\t\t} else {\n\t\t\tNode currentNode = head;\n\t\t\tint currentIndex = 0; // current index\n\t\t\twhile (currentNode != null && currentIndex < index - 1) {\n\t\t\t\tcurrentNode = currentNode.getNext();\n\t\t\t\tcurrentIndex++;\n\t\t\t}\n\t\t\tNode previousNode = currentNode; // set the previous node come before the node at the current index\n\t\t\tNode nextNode = currentNode.getNext(); // set the next node to go after the one we are adding\n\t\t\tpreviousNode.setNext(newNode);\n\t\t\tnewNode.setNext(nextNode);\n\t\t}\n\t\tsize++;\n\n\t}", "public void add(T element, int index) {\n int counter = 0;\n Node<T> newNode = new Node(element);\n Node<T> current = itsFirstNode;\n\t\tif (current == null) {\n\t\t\tthrow new NoSuchElementException(\"Beyond size of list or list empty\");\n\t\t}\n\t\twhile (current.getNextNode() != null ) {\n\t\t\tif ((counter == index - 1) || (index == 0)) {\n\t\t\t\tbreak;\n\t\t\t}\t\n\t\t\tcurrent = current.getNextNode();\n\t\t\tcounter++;\n\t\t}\n\t\ttry {\n\t\t\tif (index == 0) {\n\t\t\t\taddAsFirst(newNode);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnewNode.setNextNode(current.getNextNode());\n\t\t\t\t(newNode.getNextNode()).setPriorNode(newNode);\n\t\t\t\tcurrent.setNextNode(newNode);\n\t\t\t\tnewNode.setPriorNode(current);\n\t\t\t}\n\t\t}\n\t\tcatch (NullPointerException e) {\n\t\t\t// NullPointer is fine\n\t\t}\n size++;\n }", "public void my_add_element(int index,myNode T ,myNode newnode) throws myException{\r\n\t\tif (Lnode == null) {\r\n\t\t\tLnode = new myNode(newnode);\r\n\t\t}\r\n\t\tmyNode temp = new myNode(newnode);\r\n\t\tmyNode current = Lnode;\r\n\t\tif (current != null ){\r\n\t\twhile(current.getLeft() != null){\r\n\t\t\tcurrent = current.getLeft();\r\n\t\t}\r\n\t\tcurrent.setLeft(temp);\r\n\t\t\r\n\t\twhile(current.getRight() != null){\r\n\t\t\tcurrent = current.getRight();\r\n\t\t}\r\n\t\tcurrent.setRight(temp);\r\n\t\t}\r\n\t\tcounterNo++;\r\n\t}", "public void addNode(Character charId, Node node) {\n graph.put(charId, node);\n }", "public void add(int index, E element) {\n\t\tcheckBounds(index);\r\n\t\tif(index == size) {\r\n\t\t\tadd(element);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tNode<E> node = new Node<E>(element);\r\n\t\tif(index == 0) {\r\n\t\t\thead.setPrevious(node);\r\n\t\t\tnode.setNext(head);\r\n\t\t\thead = node;\r\n\t\t} else {\r\n\t\t\tnode.setNext(getNode(index));\r\n\t\t\tnode.setPrevious(getNode(index-1));\r\n\t\t\tgetNode(index-1).setNext(node);\r\n\t\t\tgetNode(index).setPrevious(node);\r\n\t\t}\r\n\t\tsize++;\r\n\t}", "public Node addNodeAt(Node head, Node nta, int pos) {\n Node temp = head;\n for (int i = 0; i < pos; i++) {\n if (temp.next == null) {\n System.out.println(\"List shorter than the position\");\n return head;\n }\n temp = temp.next;\n }\n temp.next = nta;\n return head;\n }", "@Override\n\tpublic void add(int idx, E element) {\n\t\tif (element == null)\n\t\t\tthrow new NullPointerException();\n\t\tif (idx < 0 || idx > size())\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (element.equals(list[i]))\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\t// Element is added to the end of the list\n\t\tif (idx == size)\n\t\t\tlist[idx] = element;\n\n\t\t// Element is added at the beginning or middle\n\t\telse {\n\t\t\tfor (int i = size; i > idx; i--) {\n\t\t\t\tlist[i] = list[i - 1];\n\t\t\t}\n\t\t\tlist[idx] = element;\n\t\t}\n\n\t\tsize++;\n\t\tif (size == list.length)\n\t\t\tgrowArray();\n\n\t}", "int addItem(final T pNode);", "public void add(int index, T element) {\n\t\tif (index < 0 || index > size)\n\t\t\tthrow new ArrayIndexOutOfBoundsException();\n\t\tif (index == 0) {\n\t\t\tinsertHead(element);\n\t\t\treturn;\n\t\t}\n\t\tif (index == size) {\n\t\t\tinsertTail(element);\n\t\t}\n\t\tNode<T> curNode = head;\n\t\twhile (index != 1) {\n\t\t\tcurNode = curNode.next;\n\t\t\tindex--;\n\t\t}\n\t\tNode<T> temp = curNode.next;\n\t\tcurNode.next = new Node<>(element);\n\t\tcurNode.next.next = temp;\n\t\tsize++;\n\t}", "private void addNode(Node node)\n\t{\n\t\tif (node == null)\n\t\t\treturn;\n\t\tthis.nodes[node.getRowIndex()][node.getColumnIndex()] = node;\n\t}", "public void add(int index, float x, float y) {\n\t\tpoints.add(index, new GPoint(x, y));\n\t}", "public void insertAtAnyPoint(int index, int data) {\n\t\tNode node = new Node(); // defining random node\n\t\tnode.data = data; // putting data on it\n\t\tnode.next = null;\n\t\tNode n = head; // initial node\n\t\tif(index == 0){\n\t\t\tinsertAtStart(data);\n\t\t}else{\n\t\tfor (int i = 0; i < index-1; i++) {\n\t\t\tn = n.next;\n\t\t}\n\t\tnode.next = n.next;\n\t\tn.next = node;\n\t\t}\n\t}", "@Override\n public boolean addNode(Node x) {\n if (findIndexOfNode(x) > -1) {\n return false;\n }\n\n Node[] copyNodes = new Node[nodes.length + 1];\n int[][] copyAdjacencyMatrix =\n new int[adjacencyMatrix.length + 1][adjacencyMatrix.length + 1];\n\n // to copy existing nodes to new copy of nodes\n System.arraycopy(nodes, 0, copyNodes, 0, nodes.length);\n nodes = copyNodes;\n nodes[nodes.length - 1] = x;\n\n // to copy existing values to new adjacency matrix\n System.arraycopy(adjacencyMatrix, 0, copyAdjacencyMatrix, 0, adjacencyMatrix.length);\n // do not need to change anything because int by default is zero\n\n return true;\n }", "public void insertElementAt(Object obj, int index)\n {\n try {element.insertElementAt(obj, index);}\n catch (Exception e) {\n throw new IllegalArgumentException\n (\"VectorLinearList.insertElementAt: \" +\n \"index must be between 0 and size\");\n }\n }", "LinkedEntries.LinkNode add(NodeEntry cne, int index) {\n LinkedEntries.LinkNode ln = new LinkedEntries.LinkNode(cne, index);\n addNode(ln, getHeader());\n return ln;\n }", "@Override\n public void insertAtAnyPosition(T value, int index) {\n Node<T> new_node = new Node<>(value);\n if(index < 0)\n throw new IndexOutOfBoundsException();\n else if(index == 0){\n new_node.next = start;\n start = new_node;\n }else{\n Node<T> previous = start;\n for(int i =0;i<index-1;i++)\n {\n previous = previous.next;\n }\n Node<T> curr = previous.next;\n new_node.next = curr;\n previous.next = new_node;\n }\n\n }", "public void addAtIndex(int index, T data) {\n if (data == null) {\n throw new IllegalArgumentException(\"You can't insert null \"\n + \"data in the structure.\");\n }\n if (index < 0 || index > size) {\n throw new IndexOutOfBoundsException(\"The data you are trying \"\n + \"to access is null\");\n }\n DoublyLinkedListNode<T> newnode = new DoublyLinkedListNode<T>(data);\n if (size == 0) {\n head = newnode;\n tail = head;\n size += 1;\n } else if (index == 0) {\n addToFront(data);\n } else if (size == index) {\n addToBack(data);\n } else {\n DoublyLinkedListNode<T> pointer = head;\n for (int i = 0; i < index - 1; i++) {\n pointer = pointer.getNext();\n }\n newnode.setNext(pointer.getNext());\n newnode.getNext().setPrevious(newnode);\n pointer.setNext(newnode);\n newnode.setPrevious(pointer);\n size += 1;\n }\n\n\n\n }", "public abstract void addChild(Node node);" ]
[ "0.7976572", "0.70002395", "0.6812989", "0.67717105", "0.67707896", "0.6752097", "0.6738432", "0.67164993", "0.6634192", "0.6627535", "0.6625208", "0.6614528", "0.6584494", "0.65721947", "0.656864", "0.64899445", "0.6438472", "0.64367336", "0.6432861", "0.6381", "0.63503313", "0.6325345", "0.62828225", "0.6221988", "0.61782205", "0.615628", "0.6152319", "0.61449015", "0.61449015", "0.61341274", "0.60773295", "0.6062239", "0.6059388", "0.60556173", "0.604051", "0.60376334", "0.6035457", "0.6019129", "0.60137314", "0.60046256", "0.5972234", "0.592035", "0.5907779", "0.5895563", "0.5895525", "0.5887442", "0.5853797", "0.58527416", "0.58429927", "0.58382875", "0.583662", "0.5835277", "0.58300173", "0.5811952", "0.5806514", "0.58016646", "0.57972604", "0.5782804", "0.57773113", "0.5743244", "0.5733429", "0.57326716", "0.57215446", "0.5716503", "0.57045966", "0.56958675", "0.5692532", "0.5692107", "0.5674788", "0.56621176", "0.5661445", "0.56612027", "0.5659098", "0.5637527", "0.56331885", "0.56293535", "0.5628965", "0.5623382", "0.56186515", "0.561713", "0.5598569", "0.559823", "0.5594246", "0.55884945", "0.55762494", "0.5564272", "0.5560373", "0.55590934", "0.5555458", "0.554481", "0.55313784", "0.5526182", "0.54905915", "0.54751074", "0.5473501", "0.54565215", "0.5455626", "0.54353225", "0.5430792", "0.54142493" ]
0.7623139
1
Adds a given Node created from value v at the given index idx.
public void addAtIndex(int idx, T v) { addAtIndex(idx, new Node(v)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAtIndex(int index, int val) {\n if (index < 0 || index > size) return;\n\n Node node = head;\n\n for (int i = 0; i < index; i++) {\n node = node.next;\n }\n\n Node newNode = new Node(val);\n newNode.next = node.next;\n newNode.next.prev = newNode;\n node.next = newNode;\n newNode.prev = node;\n size++;\n }", "public void add(T v) {\n add(new Node(v));\n }", "public void addAtIndex(int index, int val) {\n if (index > this.size) {\n return;\n }\n\n if (index < 0) {\n index = 0;\n }\n\n ListNode pred = this.head;\n\n for (int i = 0; i < index; ++i) {\n pred = pred.next;\n }\n\n ListNode node = new ListNode(val);\n node.next = pred.next;\n pred.next = node;\n\n this.size++;\n }", "public void addAtIndex(int index, int val) {\n if (index < 0 || index > size) {\n return;\n }\n Node prev = dummyHead;\n for (int i = 0; i < index; i++) {\n prev = prev.next;\n }\n prev.next = new Node(val, prev.next);\n size++;\n }", "public void addAtIndex(int index, int val) {\n if (index > size) return;\n //Add at head\n if (index <= 0) {\n addAtHead(val);\n }\n //Add at end\n else if (index == size) {\n addAtTail(val);\n } else {\n ListNode newNode = new ListNode(val);\n ListNode curr = head;\n //Add somewhere in between\n for (int i = 0; i < index - 1; i++) {\n curr = curr.next;\n }\n newNode.next = curr.next;\n curr.next = newNode;\n size++;\n }\n }", "public void add(int index, Object value) {\n if (index > _size) {\n throw new ListIndexOutOfBoundsException(\"Error\");\n }\n ListNode node = new ListNode(value);\n if (index == 0) {\n node.next = start;\n start = node;\n } else {\n ListNode prev = start;\n for (int i = 0; i<index - 1; i++ ) {\n prev = prev.next;\n }\n ListNode temp = prev.next;\n prev.next = node;\n node.next = temp;\n } \n _size++;\n }", "public void addAtIndex(int index, int val) {\n if(index==0) {\n addAtHead(val);\n return;\n }\n if(index==len) {\n addAtTail(val);\n return;\n }\n if(index>0 && index<len) {\n SingleNode cur = new SingleNode(val,null);\n SingleNode pre = head;\n for(int i=0; i<index-1; i++) {\n pre = pre.next;\n }\n cur.next = pre.next;\n pre.next = cur;\n len++;\n }\n }", "public void add(int v){\n if (head == null) {\n // First node in the list\n head = new Node(v);\n } else {\n // List has nodes\n head.add(v);\n }\n }", "public void addAtIndex(int idx, Node node) {\n if (!checkIndexBounds(idx)) {\n return;\n }\n\n Node pre = getNodeBeforeIndex(idx);\n Node curr = pre.next;\n pre.next = node;\n node.next = curr;\n this.length++;\n }", "@Override\n\tpublic void add(int idx, T obj) throws IndexOutOfBoundsException {\n\t\tboolean found = false;\n\t\tint n = 0;\n\t\tListNode tmp = new ListNode(obj);\n\t\tListNode current = head;\n\t\t\n\t\tif (idx < 0 || idx > size()) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\telse if (idx == 0) {\n\t\t\ttmp.next = head;\n\t\t\thead = tmp;\n\t\t\tsize++;\n\t\t}\n\t\telse {\n\t\t\twhile (!found) {\n\t\t\t\tif (n == idx - 1) {\n\t\t\t\t\ttmp.next = current.next;\n\t\t\t\t\tcurrent.next = tmp;\n\t\t\t\t\tfound = true;\n\t\t\t\t\tsize++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent = current.next;\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void addAtIndex(int index, int val) {\n if(index>size || index<0)\n return;\n ListNode ptr=new ListNode(val);\n ListNode p=head,follow=head;\n int count=0;\n while (p!=null && count!=index){\n count++;\n follow=p;\n p=p.next;\n }\n if(p==head) {\n if(p == null) {\n head = ptr;\n tail=ptr;\n }\n else {\n ptr.next = head;\n head = ptr;\n }\n size++;\n }\n else if(p==tail){\n ptr.next=p;\n follow.next=ptr;\n size++;\n }\n else if(p==null){\n follow.next=ptr;\n tail=ptr;\n size++;\n }\n else {\n ptr.next = p;\n follow.next = ptr;\n size++;\n }\n }", "public @Override void add(int index, E element) {\n \tNode n = index == size ? sentinel : getNode(index);\n \tnew Node(n.pred, element);\n }", "public void addBefore(E val, int idx) throws IndexOutOfBoundsException {\n addNodeBefore(new SinglyLinkedList.Node<>(val), idx);\n }", "public void add(int v) {\n if (isIn(v)) return; // do not add if it v is in set\n TNode t = root;\n while (t != null) {\n if (v < t.element) { // if v is less than current node\n if (t.left == null) { // add node to left when left is null\n t.left = new TNode(v, null, null);\n return;\n }\n t = t.left;\n }\n else {\n if (t.right == null) { // add node to right when right is null\n t.right = new TNode(v, null, null);\n return;\n }\n t = t.right;\n }\n }\n }", "private void addNode(int index, Node<AnyType> t) throws IndexOutOfBoundsException {\n \n /**\n * -------------------------------------------\n * TODO: You fully implement this method\n * \n */\n \n \n if ( index == 0 && !isEmpty() ) {\n \n t.setNextNode( headNode );\n headNode.setPreviousNode( t );\n headNode = t;\n size++;\n \n } else if ( index == 0 && isEmpty() ) { \n \n t.setNextNode( headNode );\n headNode = t;\n size++;\n \n } else if ( index == size ) {\n \n addNode( t );\n \n } else {\n \n Node<AnyType> node = getNode( index );\n \n node.getPreviousNode().setNextNode( t );\n t.setPreviousNode( node.getPreviousNode() );\n node.setPreviousNode( t );\n t.setNextNode( node );\n \n size++;\n \n }\n \n }", "public void addAtIndex(int index, T data) {\n Node<T> newNode = new Node<>();\n newNode.data = data;\n\n if (index == 0) {\n addAtStart(data);\n } else {\n Node<T> node = head;\n for (int i = 0; i < index - 1; i++) {\n node = node.next;\n }\n newNode.next = node.next;\n node.next = newNode;\n }\n }", "private void addNodeAtIndex(int data, int index) {\n ListNode newNode = new ListNode(data);\n if (head == null) {\n head = newNode;\n return;\n }\n int count = 0;\n ListNode current = head;\n while (count < index - 1) {\n count++;\n current = current.next;\n }\n newNode.next = current.next;\n current.next = newNode;\n }", "public Builder addNode(\n int index, uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.Builder builderForValue) {\n if (nodeBuilder_ == null) {\n ensureNodeIsMutable();\n node_.add(index, builderForValue.build());\n onChanged();\n } else {\n nodeBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "public void addAt(int index, T data) {\n Node<T> newNode = new Node<T>();\n newNode.data = data;\n\n if (index == 0) {\n newNode.next = head;\n head = newNode;\n } else {\n Node<T> currentNode = head;\n Node<T> previousNode = null;\n\n for (int i = 0; i < index; i++) {\n previousNode = currentNode;\n currentNode = currentNode.next;\n }\n previousNode.next = newNode;\n newNode.next = currentNode;\n }\n size++;\n }", "public void addAtIndex(int index, int data)\n {\n Node newNode = new Node(data);\n Node oldNode = head;\n\n for (int i=1;i<size;i++)\n {\n if (i == index)\n {\n Node myNode = oldNode.next;\n oldNode.next = newNode;\n newNode.next = myNode;\n break;\n }\n oldNode = oldNode.next;\n }\n size++ ;\n }", "public void add(int v) {\n if (empty) {\n x = v;\n empty = false;\n }\n else {\n if (next == null) {\n next = new Lista(v);\n }\n else {\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n }\n iter.next = new Lista(v);\n } \n }\n }", "public Builder addNodes(\n int index, entities.Torrent.NodeId value) {\n if (nodesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodesIsMutable();\n nodes_.add(index, value);\n onChanged();\n } else {\n nodesBuilder_.addMessage(index, value);\n }\n return this;\n }", "public void add(int index, E obj){\n Node n = head;\n Node foo = new Node<E>(obj);\n Node temp = new Node<E>(null);\n int count = 0;\n if(index >= size()){\n index = size(); \n }\n else if (index < 0){\n index = 0;\n }\n while(n.getNext() != null && count != index)\n {\n n = n.getNext();\n temp = n;\n count++;\n }\n temp = n.getNext();\n n.setNext(foo);\n foo.setNext(temp);\n }", "private Node add(Node node, K k, V v, int depth){\n if(node == null){ //null then create\n Node newNode = new Node(k,v);\n newNode.depth = depth;\n newNode.size++; // update size of new node\n return newNode;\n }\n// recursively add\n if(k.compareTo(node.k)<0){ // less, add left\n node.left = add(node.left, k, v, depth+1);\n }\n else if(k.compareTo(node.k)>0) { // greater, add right\n node.right = add(node.right, k,v, depth+1);\n }else{\n if(allowCount)node.count++; //equal then add count 1\n }\n\n if(allowCount){\n node.size++; //any e will be added\n }else\n node.size = 1 + size(node.left) + size(node.right);\n return node; //not null, value equal, then return node itself\n }", "public void add(int index, int data){\r\n if (index == 0){\r\n front = ned node(data, front){\r\n } else {\r\n node curr = front;\r\n for (int i = 0; i < index - 1; i++){\r\n curr = curr.next;\r\n }\r\n curr.next = new node(data, curr.next);\r\n }\r\n }\r\n \r\n}", "public Builder addNodes(\n int index, entities.Torrent.NodeId.Builder builderForValue) {\n if (nodesBuilder_ == null) {\n ensureNodesIsMutable();\n nodes_.add(index, builderForValue.build());\n onChanged();\n } else {\n nodesBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "public void add(int index, AnyType t) throws IndexOutOfBoundsException, NullPointerException {\n \n if ( t == null ) throw new NullPointerException();\n \n addNode( index, new Node<AnyType>(t) );\n \n }", "public Builder addNode(\n int index, uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode value) {\n if (nodeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeIsMutable();\n node_.add(index, value);\n onChanged();\n } else {\n nodeBuilder_.addMessage(index, value);\n }\n return this;\n }", "public void addAfter(E val, int idx) throws IndexOutOfBoundsException {\n addNodeAfter(new SinglyLinkedList.Node<>(val), idx);\n }", "public void add(int index, E x) {\n\t\tif (index < 0 || index > mSize) // == mSize allowed\n\t\t\tthrow new IndexOutOfBoundsException();\n\n\t\tif (size() == 0)\n\t\t\taddFirst(x);\n\t\telse {\n\t\t\taddBefore(getNode(index, 0, size()), x);\n\t\t\tmSize++;\n\t\t\tmodCount++;\n\t\t}\n\t}", "void add(int index, T element);", "void add(int index, T element);", "public V addVertex(V v);", "void addAdjcentNode(int adjcentNodeIdx){\r\n\t\t\tadjacentNodeIndices.add(adjcentNodeIdx);\r\n\t\t}", "private Node<T> getNode(int idx) {\r\n\t\treturn getNode(idx, 0, size() - 1);\r\n\t}", "void insert(int idx, int val);", "void add(int index, Object element);", "public void addEdge(int u, int v) {\n if (u > nodes.size() || v > nodes.size() || u <= 0 || v <= 0) {\n throw new IllegalArgumentException(\"An invalid node was given\");\n }\n // note that we have to subtract 1 from each since node 1 is located in index 0\n nodes.get(u - 1).addEdge(nodes.get(v - 1));\n }", "public void add(int index, U newValue) throws IndexOutOfBoundsException {\n\t\t\tif (index > mLength || index < 0) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"Supplied index \" + index + \" is invalid.\");\n\t\t\t}\n\n\t\t\tif (index == 0) {\n\t\t\t\tlinkBeforeNode(new Node<>(newValue), mHead);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (index == mLength) {\n\t\t\t\tlinkAfterNode(new Node<>(newValue), mTail);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tlinkBeforeNode(new Node<>(newValue), getNodeAtIndex(index));\n\t\t}", "void add(int idx, float incr);", "void addNode(int node);", "public void insertAtHead(T v)\n\t{\n\t\tNode newNode = new Node(v);\n\t\t\n\t\t//point the next of head to new node\n\t\tnewNode.next = head;\n\t\t\n\t\t//Change the head reference to the new node\n\t\thead = newNode;\n\t\t\n\t\t//increase the size\n\t\tsize++;\n\t}", "public void add(int index, Object data) {\n isValidIndex(index);\n\n Node newNode = new Node(data);\n if (isEmpty()) {\n head = newNode;\n size ++;\n } else if (index == 0) {\n addFirst(data);\n } else {\n Node n = getNode(index - 1);\n newNode.next = n.next;\n n.next = newNode;\n size ++;\n }\n\n if (newNode.next == null) {\n tail = newNode;\n }\n }", "private Node put(Node x, String key,Value val,int index){\n\t\t\n\t\tif(x==null) x=new Node();\n\t\t//check if you have hit the end\n\t\tif(index==key.length()){\n\t\t\tx.val=val;\n\t\t\treturn x;\n\t\t}\n\t\t\n\t\t//int pos=key.charAt(index)-48; // jaffa !! we are not just dealing with decimals.\n\t\tint pos=key.charAt(index);\n\t\tx.array[pos]=new Node();\n\t\tx.array[pos]=put(x.array[pos],key,val,(index+1));\n\t\treturn x;\n\t}", "public void add(int index, Type t);", "@Override\n public void insertAtAnyPosition(T value, int index) {\n Node<T> new_node = new Node<>(value);\n if(index < 0)\n throw new IndexOutOfBoundsException();\n else if(index == 0){\n new_node.next = start;\n start = new_node;\n }else{\n Node<T> previous = start;\n for(int i =0;i<index-1;i++)\n {\n previous = previous.next;\n }\n Node<T> curr = previous.next;\n new_node.next = curr;\n previous.next = new_node;\n }\n\n }", "@Override\n public void add(int index, T elem) {\n if(index < 0 || index >= size()) {//if the required index is not valid, give error\n throw new IndexOutOfBoundsException();\n }\n //if we want to add at the beginning of the list\n if(index == 0) {\n prepend(elem); //reuse prepend method when adding at the start of list\n return;\n }\n //if we want to add inside the list\n DLNode<T> predecessor = first; //create a reference, point it to the first node\n for(int i = 0; i < index - 1; i++) {//locate the preceeding index of the required index\n predecessor = predecessor.next;\n \n }\n DLNode<T> successor = predecessor.next; //another reference, now points to the index we want to add the new node to\n \n DLNode<T> middle = new DLNode(elem, predecessor, successor);//create new node, it's previous node is predecessor, the one after it is successor\n predecessor.next = middle; //new node is assigned to the required index, after predecessor, before successor\n \n if(successor == null) {//if there's no node after the new node\n last = middle; //new node is the last one \n }\n else{ //if there is a successor node exist\n successor.prev = middle; //new node preceeds it's successor\n } \n \n }", "public abstract void add(T element, int index);", "public void add(int index, PVector v) {\n\t\tpoints.add(index, new GPoint(v));\n\t}", "public void add(int index, T obj) {\r\n if (index < 0 || size < index) {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n if (obj == null) {\r\n throw new IllegalArgumentException(\"Cannot add null \"\r\n + \"objects to a list\");\r\n }\r\n\r\n Node<T> current;\r\n if (index == size) {\r\n current = tail;\r\n }\r\n else {\r\n current = getNodeAtIndex(index);\r\n }\r\n\r\n Node<T> newNode = new Node<T>(obj);\r\n newNode.setPrevious(current.previous());\r\n newNode.setNext(current);\r\n current.previous().setNext(newNode);\r\n current.setPrevious(newNode);\r\n size++;\r\n\r\n }", "public void add(final T data, final int index) {\n if (index < 0 || index > numElement + 1) {\n throw new IndexOutOfBoundsException();\n }\n Node<T> newNode = new Node<>(data);\n if (index == 0) {\n prepend(data);\n } else if (index == numElement) {\n append(data);\n }\n Node<T> iterator = head;\n for (int currentIndex = 0; currentIndex < index - 1; currentIndex++) {\n iterator = iterator.getNext();\n }\n newNode.setNext(iterator.getNext());\n iterator.setNext(newNode);\n numElement++;\n }", "protected SinglyLinkedList.Node<E> indexNode(int idx) throws IndexOutOfBoundsException {\n if (!validIndex(idx)) {\n throw new IndexOutOfBoundsException(\"Cannot index element #\" + idx + \" in SinglyLinkedList.\");\n }\n\n SinglyLinkedList.Node<E> curr = head;\n\n for (; idx > 0; idx--) {\n curr = curr.next;\n }\n\n return curr;\n }", "public void add(int index, PVector v, String label) {\n\t\tpoints.add(index, new GPoint(v, label));\n\t}", "public Builder addVdus(int index, VDU.Builder builderForValue) {\n if (vdusBuilder_ == null) {\n ensureVdusIsMutable();\n vdus_.add(index, builderForValue.build());\n onChanged();\n } else {\n vdusBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "public void insertNode(int val)\r\n {\r\n temp=new TriLinkNode();\r\n temp.v1=val;\r\n temp.d1=false;\r\n temp.i1=true;\r\n if(root==null)\r\n {\r\n root=temp;\r\n }else\r\n {\r\n recInsertNode(root);\r\n }\r\n \r\n }", "@Override\n public void add(int index, T element){\n if(index < 0 || index > size()){\n throw new NullPointerException();\n }else if(isEmpty() || index == size()){\n add(element);\n } else if(index == 0){\n prepend(element);\n } else{\n DLLNode<T> newNode = new DLLNode<T>(element);\n DLLNode<T> rightNode = getCurrentNode(index);\n DLLNode<T> leftNode = rightNode.previous;\n leftNode.successor = newNode;\n newNode.previous = leftNode;\n newNode.successor = rightNode;\n rightNode.previous = newNode;\n }\n }", "public void add(String instanceId, int ind, float value) {\n CHK.CHECK(ind < dimension, \n String.format(\"Value %d is not in the vector's range\", ind));\n \n //Add a new instance if I don't have it beforehand.\n if (! instanceExists(instanceId)) {\n addInstance(instanceId);\n } \n checkPossibleOverriding(instanceId, ind);\n allValues.get(\n mapOfInstances.get(instanceId))[ind] = value;\n }", "@Override\r\n public void add(int index, T b) {\r\n head = head.add(index, b);\r\n }", "void addToHead(int v) {\n if (empty) {\n x = v;\n empty = false;\n }\n else {\n next = new Lista (this);\n x = v;\n }\n }", "public Builder addVdus(int index, VDU value) {\n if (vdusBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureVdusIsMutable();\n vdus_.add(index, value);\n onChanged();\n } else {\n vdusBuilder_.addMessage(index, value);\n }\n return this;\n }", "public Builder addVc(\n int index, pb4client.ValueChange value) {\n if (vcBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureVcIsMutable();\n vc_.add(index, value);\n onChanged();\n } else {\n vcBuilder_.addMessage(index, value);\n }\n return this;\n }", "public void my_add_element(int index,myNode T ,myNode newnode) throws myException{\r\n\t\tif (Lnode == null) {\r\n\t\t\tLnode = new myNode(newnode);\r\n\t\t}\r\n\t\tmyNode temp = new myNode(newnode);\r\n\t\tmyNode current = Lnode;\r\n\t\tif (current != null ){\r\n\t\twhile(current.getLeft() != null){\r\n\t\t\tcurrent = current.getLeft();\r\n\t\t}\r\n\t\tcurrent.setLeft(temp);\r\n\t\t\r\n\t\twhile(current.getRight() != null){\r\n\t\t\tcurrent = current.getRight();\r\n\t\t}\r\n\t\tcurrent.setRight(temp);\r\n\t\t}\r\n\t\tcounterNo++;\r\n\t}", "public void addAtHead(int val) {\n ListNode ptr=new ListNode(val);\n ptr.next=head;\n if(head==null)\n tail=ptr;\n head=ptr;\n size++;\n // display();\n }", "public Builder addVc(\n int index, pb4client.ValueChange.Builder builderForValue) {\n if (vcBuilder_ == null) {\n ensureVcIsMutable();\n vc_.add(index, builderForValue.build());\n onChanged();\n } else {\n vcBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "private Node add(int value, int pos) {\n int len = this.getlength();\n Node result = new Node(value);\n\n if (pos > len - 1) {\n System.out.println(\"out of range: added to tail\");\n result = this.add(value);\n return result;\n } else if (pos == 0) { // add to a new node's head\n if (this.value == Integer.MIN_VALUE) {\n return result;\n } else {\n result.nextNode = this;\n return result;\n }\n } else {\n Node current = this;\n Node inNode = new Node(value);\n for (int i = pos; i > 1; i--) {\n current = current.nextNode;\n }\n Node temp = current.nextNode;\n current.nextNode = inNode;\n inNode.nextNode = temp;\n return this;\n }\n }", "public void addAtHead(int val) {\n SingleNode cur = new SingleNode(val, head);\n head =cur;\n if(len==0) tail = cur;\n len++;\n }", "public void addAtStart(T v) {\n if (this.head == null) {\n add(v);\n return;\n };\n\n Node node = new Node(v, this.head);\n this.head = node;\n this.length++;\n }", "@Override\r\n\tpublic void addValueAtIndex(final IScope scope, final Object index, final T value) {}", "public void add(int index, E element);", "public void add(int index,Object data)\r\n\t{\r\n\t\tNode n = headPointer;\t\r\n\t\t//System.out.println(\"headPointer is: \" + n.getData());\r\n\t\tint count = 0;\r\n \r\n\t\twhile(count != index)\r\n {\r\n\t\t\t//System.out.println(\"n is: \" + n.getData());\r\n\t\t\tif(n != null)\r\n\t\t\t{\r\n\t\t\t\tn = n.getNext();\t\r\n\t\t\t}\r\n count++;\r\n }\r\n\t//\tSystem.out.println(\"We have fallen out of the loop\");\r\n\t\t\r\n\t\tNode m = new Node(data, n, n.getPrev()); \r\n\t\tm.getPrev().setNext(m);\r\n\t\tn.setPrev(m);\t\r\n\t}", "public void addNode(String name, int index) {\n\t\tDefaultTreeModel model = (DefaultTreeModel) getModel();\n\t\tTreeNode root = (TreeNode) model.getRoot();\n\t\tif (index > root.getChildCount() || index < 0){\n\t\t\tindex = root.getChildCount();\n\t\t}\n\n\t\tmodel.insertNodeInto(new TreeNode(name, root.getNodeOption(), index, false), root, index);\n\t\tmodel.reload();\n\n\t\tscrollRowToVisible(index + 1);\n\n\t}", "public void insertChildAt(WSLNode node, int index) {\n\t\tchildren.insertElementAt(node, index);\n\t}", "protected void addingNode( SearchNode n ) { }", "public void add(int index, T value) throws IndexOutOfBoundsException {\n checkException(index);\n if (size == arr.length) {\n final int newSize = arr.length * 3 / 2 + 1;\n T[] newArr = (T[]) new Object[newSize];\n System.arraycopy(arr, 0, newArr, 0, size);\n this.arr = newArr;\n }\n System.arraycopy(arr, index, arr, index + 1, size - index);\n arr[index] = value;\n size++;\n }", "protected void addNode(NodeView nv, boolean locked) {\n\tCyNode node = (CyNode) nv.getNode();\n\tLayoutNode v = new LayoutNodeImpl(nv, nodeIndex++);\n\tnodeList.add(v);\n\tnodeToLayoutNode.put(node, v);\n\n\tif (locked) {\n\t v.lock();\n\t lockedNodes++;\n\t} else {\n\t updateMinMax(nv.getXPosition(), nv.getYPosition());\n\t this.width += nv.getWidth();\n\t this.height += nv.getHeight();\n\t}\n }", "public void addVertex(T v) {\n map.put(v, new LinkedList<>());\n }", "public LinkedListElement add(int Index, T content) throws IndexOutOfBoundsException {\n if (Index == 0) {\n LinkedListElement element = new LinkedListElement(content);\n element.next = this;\n return element;\n } else {\n throw new IndexOutOfBoundsException(\"Methode add: Dieser Index existiert nicht!\");\n }\n }", "protected Node<K, V> insert(K k, V v) {\n // if the given key is smaller than this key\n if (this.c.compare(k, this.key) < 0) {\n return new Node<K, V>(this.key, \n this.value, \n this.c, \n this.left.insert(k, v), \n this.right,\n this.black).balance();\n }\n // if the given key is equal to this key, set \n // this key's value to the given value\n else if (this.c.compare(k, this.key) == 0) {\n return new Node<K, V>(k, v, \n this.c, \n this.left, \n this.right, \n this.black);\n }\n // if the given key is bigger than this key\n else {\n return new Node<K, V>(this.key, \n this.value, \n this.c, \n this.left, \n this.right.insert(k, v), \n this.black).balance();\n }\n }", "public void add(int index, double value) {\n\t\t\n\t}", "public Node appendNode(Node node);", "public void add(T element, int pos);", "public void agregarVar(EntradaVarInst v ) {\r\n\t\t//le asigno un offset a la variable nueva (1,2,3, etc)\r\n\t\tv.setOffset(maximoOffsetVarInst);\r\n\t\t\r\n\t\t\r\n\t\t//aumento el offset\r\n\t\t//maximoOffsetVarInst++;\r\n\t\t//agrego la variable a mi tabla de variables de instancia\r\n\t\tentradaVar.put(v.getNombre(), v);\r\n\t}", "public void insert(int val, Node ptr) { // not sure\n\t\tif (full()) {\n\t\t\tNode nextNode = this.getNext();\n\t\t\tInternalNode newNode = new InternalNode(degree, null, val, ptr, nextNode, this);\n\t\t\tthis.next = newNode;\n\t\t\tif (nextNode != null) {\n\t\t\t\tnextNode.prev = newNode;\n\t\t\t}\n\t\t\tint newKey = this.redistribute();\n\n\t\t\tReference theParent = this.getParent();\n\t\t\tif (theParent == null) {\n\t\t\t\tnew InternalNode(degree, this, newKey, newNode, null, null);\n\t\t\t} else {\n\t\t\t\tNode parentNode = theParent.getNode();\n\t\t\t\tparentNode.insert(newKey, newNode);\n\t\t\t}\n\t\t} else {\n\t\t\tint index = findKeyIndex(val);\n\t\t\tif (val > keys[lastindex]) {\n\t\t\t\tindex = this.getLast() + 1;\n\t\t\t}\n\t\t\tthis.insertSimple(val, ptr, index);\n\t\t}\n\t}", "@Override\n\tpublic V add(K key, V value) {\n\t\tV result = null;\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(currentNode != null && key.equals(currentNode.getKey())){\n\t\t\tresult = (V) currentNode.getValue();\n\t\t\tcurrentNode.setValue(value);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tNode newNode = new Node(key, value);\n\t\t\tif(currentNode == null){\n\t\t\t\tnewNode.setNextNode(firstNode);\n\t\t\t\tfirstNode = newNode;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfirstNode.setNextNode(newNode);\n\t\t\t}\n\t\tnumberOfEntries++;\t\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "@Nonnull\n public final HCHead addJSAt (@Nonnegative final int nIndex, @Nonnull final IHCNode aJS)\n {\n ValueEnforcer.notNull (aJS, \"JS\");\n if (!HCJSNodeDetector.isJSNode (aJS))\n throw new IllegalArgumentException (aJS + \" is not a valid JS node!\");\n m_aJS.add (nIndex, aJS);\n return this;\n }", "public void insertAt(int index,int data){\n Node node =new Node();\n node.data=data;\n node.next=null;\n\n if (index == 0) {\n insertAtStart(data);\n }\n\n\nelse{\n Node n = head;\n for (int i=0; i < index-1;i++){\n n =n.next;\n }\n node.next =n.next;\n n.next = node;\n\n}}", "public Variable add(Variable v) throws IllegalArgumentException {\r\n\t\tif (!variables.contains(v)) {\r\n\t\t\tif (v.getIndex() >= 0) {\r\n\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t}\r\n\t\t\tv.setIndex(variables.size());\r\n\t\t\tvariables.add(v);\r\n\t\t}\r\n\t\treturn v;\r\n\t}", "public void addAtTail(int val) {\n ListNode curr = new ListNode(val);\n size++;\n if (size == 0) {\n head = curr;\n tail = curr;\n }\n tail.next = curr;\n tail = curr;\n }", "private Node put(Node x, String key, int d, Value val) {\n if (x == null) x = new Node(); //no node exist, create\n if (d == key.length()) x.val = val; //update node value\n else {\n char c = key.charAt(d);\n x.links[c] = put(x.links[c], key, d+1, val);\n }\n return x; //return updated node\n }", "T visit(Addition node);", "public void add(int index, T data) {\n\t\tif(index > size() || index < 0) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Illegal index: \" + index);\n\t\t}\n\t\t\n\t\tLinkedListNode<T> temp = head.getNext();\n\t\tint i = 0;\n\t\twhile(true) {\n\t\t\tif(temp == null) {\n\t\t\t\tthrow new InternalError(\"add(int index, T data) iterates past the end\");\n\t\t\t}\n\t\t\tif(index == i) {\n\t\t\t\tLinkedListNode<T> toAdd = new LinkedListNode<T>(temp, temp.getPrevious(), data);\n\t\t\t\ttemp.getPrevious().setNext(toAdd);\n\t\t\t\ttemp.setPrevious(toAdd);\n\t\t\t\tmodcount++;\n\t\t\t\tnodeCount++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ti++;\n\t\t\ttemp = temp.getNext();\n\t\t}\n\t}", "public void add(T value) {\n final Node node = new Node(value);\n if (root != null) {\n root.add(node);\n } else {\n root = node;\n }\n }", "public void add(int index, String value){\n\tadd(value);\n }", "public void add(int index, String value){\n add(value);\n }", "public void add (int index, E item)\n {\n if (index < 0 || index > size) {\n throw new\n IndexOutOfBoundsException(Integer.toString(index));\n }\n if (index == 0)\n addFirst(item);\n else {\n Node<E> node = getNode(index - 1);\n addAfter(node, item);\n }\n }", "public void add(int value) {\n Node newNode = new Node(value);\n if(this.head == null) { //head is a pointer\n this.head = newNode;\n } else {\n Node runner = this.head;\n while(runner.next != null) {\n runner = runner.next;\n }\n runner.next = newNode;\n }\n }", "public void add(int index, E obj)\r\n {\r\n listIterator(index).add(obj);\r\n }", "public void add(T element, int index) {\n int counter = 0;\n Node<T> newNode = new Node(element);\n Node<T> current = itsFirstNode;\n\t\tif (current == null) {\n\t\t\tthrow new NoSuchElementException(\"Beyond size of list or list empty\");\n\t\t}\n\t\twhile (current.getNextNode() != null ) {\n\t\t\tif ((counter == index - 1) || (index == 0)) {\n\t\t\t\tbreak;\n\t\t\t}\t\n\t\t\tcurrent = current.getNextNode();\n\t\t\tcounter++;\n\t\t}\n\t\ttry {\n\t\t\tif (index == 0) {\n\t\t\t\taddAsFirst(newNode);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnewNode.setNextNode(current.getNextNode());\n\t\t\t\t(newNode.getNextNode()).setPriorNode(newNode);\n\t\t\t\tcurrent.setNextNode(newNode);\n\t\t\t\tnewNode.setPriorNode(current);\n\t\t\t}\n\t\t}\n\t\tcatch (NullPointerException e) {\n\t\t\t// NullPointer is fine\n\t\t}\n size++;\n }", "public T setVal(int idx, T val) {\n\t\tint index = (idx << 1) + 1;\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tT old = (T) nvPairs.get(index);\n\t\tnvPairs.set(index, val);\n\t\treturn old;\n\t}", "public void insertElementAt(Object obj, int index)\n {\n try {element.insertElementAt(obj, index);}\n catch (Exception e) {\n throw new IllegalArgumentException\n (\"VectorLinearList.insertElementAt: \" +\n \"index must be between 0 and size\");\n }\n }" ]
[ "0.67594695", "0.67393005", "0.6692308", "0.6680398", "0.6509471", "0.6494105", "0.64352804", "0.6353803", "0.63276374", "0.62751365", "0.6229292", "0.62271833", "0.61749923", "0.61578506", "0.6121262", "0.61039656", "0.6081411", "0.6039379", "0.603721", "0.60117114", "0.5970746", "0.5970625", "0.5965194", "0.5956697", "0.5931288", "0.593042", "0.58833486", "0.5833746", "0.58199024", "0.5800953", "0.5724228", "0.5724228", "0.56932634", "0.5685689", "0.561708", "0.5571631", "0.5571226", "0.55560535", "0.55509233", "0.5548964", "0.55417836", "0.55396414", "0.5537461", "0.5530185", "0.5519805", "0.5518308", "0.5515122", "0.55062366", "0.54920506", "0.548406", "0.5477125", "0.54370505", "0.54201406", "0.54184055", "0.5403087", "0.53983337", "0.5374517", "0.5362968", "0.5358951", "0.5349055", "0.5347354", "0.533791", "0.5335875", "0.5333849", "0.5333552", "0.5331029", "0.5330815", "0.53301793", "0.53279907", "0.5320288", "0.5318699", "0.5314535", "0.53046155", "0.53041667", "0.530337", "0.5280531", "0.52794313", "0.526189", "0.5259414", "0.52493626", "0.52312976", "0.5230215", "0.5220423", "0.5208481", "0.51983315", "0.51950866", "0.5186361", "0.5178834", "0.51762384", "0.51708794", "0.5152558", "0.5151983", "0.5144814", "0.5143334", "0.51395947", "0.51345944", "0.51342326", "0.51332784", "0.51203597", "0.51089644" ]
0.8379957
0
Pops out the first element of the list.
public void popFirst() { this.head = this.head.next; this.length--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void pop() {\n\t\tlist.removeFirst();\n\t}", "@Override\n public Item removeFirst() {\n nextFirst = moveForward(nextFirst, 1);\n Item output = items[nextFirst];\n items[nextFirst] = null;\n size -= 1;\n return output;\n }", "public Item removeFirst(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[first];\r\n\t\tlist[first++] = null;\r\n\t\tn--;\r\n\t\tprior=first-1;\r\n\t\tif(first==list.length){first=0;}\r\n\t\tif (n > 0 && n == list.length/4) resize(list.length/2); \r\n\t\treturn tmp;}", "public T pop()\n\t{\n\t\treturn list.removeFirst();\n\t}", "public E removeFirst() {\n return pop();\n }", "public T pop() throws NoSuchElementException\n\t{\n\t\tcheckEmpty();\n\t\treturn list.remove(0);\n\t}", "public Item removeFirst() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException();\r\n }\r\n Item result = items[++firstCursor];\r\n items[firstCursor] = null;\r\n return result;\r\n }", "public T removeFirst( ){\r\n\t\t//calls remove onfirst\r\n\t\tT toRemove = getFirst();\r\n\t\treturn remove(toRemove);\r\n\t}", "public Object removeFirst(){\n if (first == null)\n throw new NoSuchElementException();\n Object element = first.data;\n first = first.next;\n return element ;\n }", "public Item removeFirst() {\n if (!isEmpty()) {\n Item item = first.item;\n first = first.back;\n size--;\n if (size != 0)\n first.front = null;\n return item;\n } else throw new NoSuchElementException(\"?\");\n }", "public synchronized Object removeFirstElement() {\n return _queue.remove(0);\n }", "public T removeFirst() {\r\n \r\n if (size == 0) {\r\n return null;\r\n }\r\n \r\n T deleted = front.element;\r\n front = front.next;\r\n size--;\r\n \r\n return deleted;\r\n }", "Object removeFirst();", "public Item removeFirst(){\n return this.doublyLinkedList.removeFirst();\n }", "public Item removeFirst() {\n if (size == 0) {\n return null;\n } else if (size == 1) {\n StuffNode i = sentinel.next;\n sentinel.next = sentinel;\n sentinel.prev = sentinel;\n size -= 1;\n return i.item;\n } else {\n StuffNode i = sentinel.next;\n sentinel.next = i.next;\n i.next.prev = sentinel;\n size -= 1;\n return i.item;\n }\n }", "public T removeFirst() {\n if (size == 0) {\n return null;\n }\n if (size == 1) {\n size--;\n return array[front];\n }\n this.checkReSizeDown();\n size--;\n front++;\n this.updatePointer();\n return array[Math.floorMod(front - 1, array.length)];\n }", "@Override\n public E removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n E value = dequeue[head];\n dequeue[head] = null;\n head = ++head % dequeue.length;\n size--;\n if (size < dequeue.length / 2) {\n reduce();\n }\n return value;\n }", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n Item item = first.item;\n first = first.next;\n if (first == null) {\n last = null;\n }\n else {\n first.pre = null;\n }\n len--;\n return item;\n }", "public T removeFirst()\r\n {\r\n T removedData; // holds data from removed node\r\n\r\n if (numElements == 0)\r\n throw new NoSuchElementException(\r\n \"Remove attempted on empty list\\n\");\r\n removedData = front.data;\r\n front = front.next;\r\n if (numElements == 1)\r\n rear = null;\r\n \r\n numElements--;\r\n return removedData;\r\n }", "public T removeFirst();", "public Item removeFirst() {\n //check if the DList is empty or not:\n if(isEmpty()) throw new NoSuchElementException(\"Failed to perform removeFirst() bacause the DList instance is empty!\");\n Node oldFirst = first.next;\n Item item = oldFirst.data; \n\n // pointer re-wiring:\n Node newFirst = oldFirst.next; \n first.next = newFirst;\n newFirst.prev = first;\n oldFirst.next = null;\n oldFirst.prev = null;\n\n // check if last pointer has to be updated or not (paying the peiper):\n if(isEmpty()) {\n last.prev = first; // update the last sentinel node to point to the first sentinel node\n }\n\n // update the size: \n size--;\n\n return item;\n }", "public final void removeFirst() {\n this.size--;\n setFirst((Node) ((Node) get()).get());\n }", "public T pop() \n\t//POST: First element of list removed and FCTVAL == first element in list\n\t{\n\t\tT tmp = start.value;\n\t\tremove(start.value);\n\t\treturn tmp;\n\t}", "public void removefirst()\r\n {\r\n Item item = pre.item;\r\n pre = pre.next;\r\n n--;\r\n }", "public Item removeFirst() throws NoSuchElementException {\n checkDequeIsNotEmpty();\n\n Item item = first.item;\n first = first.next;\n size--;\n\n if (isEmpty()) {\n // to avoid loitering; first already points to null\n last = null;\n } else {\n first.prev = null;\n }\n return item;\n }", "public T removeFirst(){\n\tT ret = _front.getCargo();\n\t_front = _front.getPrev();\n\t_front.setNext(null);\n\t_size--;\n\treturn ret;\n }", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"queue is empty\");\n }\n Item a;\n a = first.item;\n first = first.next;\n if (first == null) {\n last = null;\n }\n else first.prev = null;\n size--;\n return a;\n }", "public T removeFirst() {\n if (size == 0) {\n return null;\n }\n nextFirst = plusOne(nextFirst);\n size -= 1;\n T toRemove = items[nextFirst];\n items[nextFirst] = null;\n if (isSparse()) {\n resize(capacity / 2);\n }\n return toRemove;\n }", "public E removeFirst();", "public E removeFirst() { // removes and returns the first element\n // TODO\n if (isEmpty( )) return null;\n Node<E> head = tail.getNext();\n if (head == tail) tail = null;\n else tail.setNext(head.getNext( ));\n size--;\n return head.getElement( );\n }", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n Item item = head.item;\n if (size == 1) {\n tail = null;\n head = null;\n } else {\n Node<Item> nextHead = head.next;\n nextHead.prev = null;\n head = nextHead;\n }\n\n size--;\n return item;\n }", "public E removeFirst() {\n\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\n\t\tE retVal = remove(mHead.next);\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}", "public Item removeFirst() {\n\t\tif (first == null) {\n\t\t\tthrow new java.util.NoSuchElementException();\n\t\t}\n\t\tItem temp = first.item;\n\t\tif (first == last) {\n\t\t\tlast = null;\n\t\t\tfirst = null;\n\t\t} else {\n\t\t\tfirst = first.next;\n\t\t\tfirst.previous = null;\n\t\t}\n\t\tsize--;\n\t\treturn temp;\n\t}", "public T removeFirst() {\n return remove(sentinel.next);\n }", "public Item removeFirst() {\n Item val = deck[fFront];\n deck[fFront++] = null;\n return val;\n }", "@Override\n public int pop() {\n isEmptyList();\n int result = first.value;\n first = first.next;\n size--;\n return result;\n }", "@Override\n public E deleteMin()\n {\n return list.removeFirst();\n }", "public T removeFirst() throws EmptyCollectionException\n //PRE: list is not empty\n //POS: first node is removed / list has one less node\n //TAS: remove first element and return it\n \n //if (count == 1)\n //{\n // T result = head.getElement();\n // head = null;\n // tail = null;\n // return result;\n //}\n //else {\n // T result = head.getElement();\n // head = head.getNext();\n // count--;\n // return result;\n // }\n \n }\n {\n T result = null;\n\n if(isEmpty()){\n throw new EmptyCollectionException(\"list\");\n }\n\n result = front.getElement();\n front = front.getNext();\n count--;\n\n if(isEmpty()){\n // reset rear after removing the last node\n rear = null;\n }\n\n return result;\n }", "@Override\n public void deleteFirst() {\n if (this.isEmpty()){\n throw new IllegalStateException(\"List is empty\");\n }\n for (int j = 0; j < size - 1; j++){\n data[j] = data[j + 1];\n }\n data[size - 1] = null;\n size--;\n }", "public Item removeFirst() {\n\t\tif (count == 0) throw new NoSuchElementException();\n\t\tcount--;\n\t\tItem target = first.item;\n\t\tNode nextNode = first.next;\n\t\tfirst = null;\n\t\tif (count > 0) {\n\t\t\tfirst = nextNode;\n\t\t} \n\t\treturn target;\n\t}", "public Object pop(){\n if(first == null){\n throw new NoSuchElementException();\n }\n else\n {\n Object element = first.data;\n first = first.next;\n return element;\n }\n }", "public Item removeFirst() {\n if (first == null)\n throw new NoSuchElementException();\n \n final Item element = first.item;\n final Node<Item> next = first.next;\n first.item = null;\n first.next = null; // help GC\n first = next;\n if (next == null)\n last = null;\n else\n next.prev = null;\n size--;\n \n return element;\n }", "public Item removeFirst() {\n if (isEmpty())\n throw new NoSuchElementException();\n Item item = first.item;\n first = first.next;\n if (first != null)\n first.prev = null;\n else\n last = first;\n size--;\n return item;\n }", "public E pop(){\n E o = list.get(list.size() - 1);\n list.remove(list.size() - 1);\n return o;\n }", "public T peek()\n\t{\n\t\tT ret = list.removeFirst();\n\t\tlist.addFirst(ret);\n\t\treturn ret;\n\t}", "public T pop(){\n\t\tif(start == null)\r\n\t\t\treturn null;\r\n\t\telse{\r\n\t\t\tT toReturn = start.elem;\r\n\t\t\tstart = start.next;\r\n\t\t\treturn toReturn;\r\n\t\t}\t\r\n\t}", "private E removeFirst ()\n {\n Node<E> temp = head;\n if (head != null) {\n head = head.next;\n size--;\n return temp.data;\n }\n else\n return null;\n }", "public Item removeFirst() {\n if (this.isEmpty())\n throw new java.util.NoSuchElementException();\n\n Item ret = this.first.item;\n\n this.first = this.first.next;\n if (this.first != null)\n this.first.prev = null;\n else\n this.last = null;\n --this.n;\n\n return ret;\n }", "public Item getFirst() {\n Node removed = head.next;\n head.next = removed.next;\n removed.next = null;\n size--;\n return removed.item;\n }", "public E removeFirst() {\n if(isEmpty()){\n return null;\n }else{\n return remove(header.getNext());\n }\n }", "public Item removeFirst() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tNode<Item> tmp = head;\n\t\thead = head.next;\n\t\tif (head == null) {\n\t\t\ttail = null;\n\t\t} else {\n\t\t\thead.prev = null;\n\t\t}\n\t\tN--;\n\t\ttmp.next = null;\n\t\treturn tmp.item;\n\t}", "public void removeFirst() {\n\t\t\thead = head.next;\n\t\t}", "public Item removeFirst(){\n\t\tif(isEmpty()){\n\t\t\tthrow new NoSuchElementException(\"Queue underflow\");\n\t\t}else{\n\t\t\t//save item to return\n\t\t\tItem returnItem = first.item;\n\t\t\t//delete first node\n\t\t\tfirst = first.next;\n\t\t\tn--;\n\t\t\tif(isEmpty()){\n\t\t\t\tlast = null; // to avoid loitering\n\t\t\t}else{\n\t\t\t\tfirst.prev = null;\n\t\t\t}\n\t\t\treturn returnItem;\n\t\t}\n\t}", "@Override\n\tpublic E deQueue() {\n\t\treturn list.removeFirst();\n\t}", "public void removeFirst() throws ListException {\r\n\t\t//This will check if the user is trying to remove from an empty list\r\n\t\tif(isEmpty()){\r\n\t\t\tthrow new ListException(\"Remove from empty list exception\");\r\n\t\t}\r\n\t\t//Set the nextNode pointer past the first element in the list\r\n\t\tDoublyNode nextNode;\r\n\t\tnextNode = head.getNext().getNext();\r\n\r\n\t\tnextNode.setPrev(head);//Set the next nodes previous pointer\r\n\t\thead.setNext(nextNode);//Set the heads next pointer\r\n\t\tnumItems--;//Decrement number of items\r\n\t}", "public E dequeue() {\n\t\treturn list.removeFirst();\n\t}", "@Override\n public T removeFirst() {\n if (size == 0) {\n return null;\n }\n\n int position = plusOne(nextFirst);\n T itemToReturn = array[position];\n array[position] = null;\n nextFirst = position;\n size -= 1;\n\n if ((double)size / array.length < 0.25 && array.length >= 16) {\n resize(array.length / 2);\n }\n return itemToReturn;\n }", "public E pop() \r\n {\r\n E o = list.get(getSize() - 1);\r\n list.remove(getSize() - 1);\r\n return o;\r\n }", "public T deleteFirst() {\n Object[] newElements = new Object[elements.length]; // creating new array with size of \"elements\"\n T deletedValue = null; // save value of element that will be deleted\n if (size == 0) { // if list is empty\n throw new IndexOutOfBoundsException(\"Treated index: \" + 0 + \" | Size of the Dynamic Array \" + 0);\n } else if (size == 1) { // if size is 1\n deletedValue = (T) elements[0]; // save value of deleted element\n elements = newElements; // move temporary array to main array \"elements\"\n } else {\n deletedValue = (T) elements[0]; // save value of deleted element\n for (int i = 0; i < size - 1; i++) { // treat all values with index greater than 1\n newElements[i] = elements[i + 1]; // copy elements in temporary array\n }\n elements = newElements; // move temporary array to main array \"elements\"\n }\n size--; // decrement size\n return deletedValue; // return value of element that will be deleted\n }", "public Item removeFirst() {\n if (isEmpty()) throw new NoSuchElementException();\n\n // Set the item to be returned to the item field of the first node\n Item item = headOfDeque.item;\n\n // If this is the last node - reset deque.\n if (lastNode()) {\n resetDeque();\n }\n else { // reassign head\n headOfDeque = headOfDeque.next;\n headOfDeque.previous = null;\n }\n\n dequeSize--;\n\n return item;\n }", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n\n Node oldFirst = this.first;\n this.first = oldFirst.next;\n this.size--;\n\n if (this.size != 0) {\n this.first.prev = null;\n } else {\n this.last = null;\n }\n\n return oldFirst.item;\n }", "T removeFromHead() {\n if (this.size() == 0) {\n throw new RuntimeException(\"Cannot remove from an empty list\");\n }\n return header.removeFromHead();\n }", "public void deleteFirst() {\r\n\t\t// Can't delete from an empty list\r\n\t\tif (isEmpty()) {\r\n\t\t\tSystem.out.println(\"Error in List.deleteFirst() \"\r\n\t\t\t\t\t+ \"Attempted delete from Empty List \");\r\n\t\t}\r\n\r\n\t\t// Special case: list has only one element\r\n\t\telse if (length == 1) {\r\n\t\t\tfirstNode = null;\r\n\t\t\tlastNode = null;\r\n\t\t\tlength = 0;\r\n\t\t}\r\n\t\t// All other lists: Only first pointer changes. Last doesn't\r\n\t\telse {\r\n\t\t\tfirstNode = firstNode.getNextNode();\r\n\t\t\tlength--;\r\n\t\t}\r\n\t}", "public Item removeFirst() {\n if (isEmpty()) throw new NoSuchElementException(\"Removing from an empty deque\");\n Node<Item> tmpFirst = first;\n Item firstItem = tmpFirst.item;\n first = tmpFirst.next;\n size--;\n if (isEmpty()) last = null;\n else first.prev = null;\n return firstItem;\n }", "public U removeFirst(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls remove on first\r\n\t \treturn remove(0);\r\n\t }", "public T removeFirst() \r\n {\r\n if (isEmpty()) throw new NoSuchElementException();\r\n Node<T> currFirst = sentinel.next;\r\n Node<T> toBeFirst = currFirst.next;\r\n T currFirstVal = currFirst.getValue();\r\n toBeFirst.prev = sentinel;\r\n sentinel.next = toBeFirst;\r\n currFirst = null;\r\n size--;\r\n return currFirstVal;\r\n }", "public T removeHead()\n\t{\n\t\tif(size == 0)\n\t\t{\n\t\t\tSystem.out.println(\"list is empty\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t//advance head reference\n\t\tT value = head.value;\n\t\thead = head.next;\n\t\t\n\t\tsize--;\n\t\treturn value;\n\t\t\n\t}", "public Item removeFirst() throws NoSuchElementException {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Cannot remove first item from empty deque\");\n }\n if (size == 1) { //remove last item in deque of size 1\n Item item = head.getItem(); //item = item to be removed\n head = null;\n tail = null;\n return item;\n }\n Node n = head; //n = temporary Node\n head = head.getNext(); //assign 2nd node as new head, \"removing\" previous head from deque\n size--;\n return n.getItem();\n }", "public E pop() {\n if(head == null) {\n // The list is empty\n throw new NoSuchElementException();\n } else if(head == tail) {\n // The list was of size one\n E item = head.item;\n head = tail = null;\n size = 0;\n return item;\n } else {\n E item = head.item;\n head = head.next;\n size--;\n return item;\n }\n }", "public E removeFirst() throws NoSuchElementException{\n if(size == 0)\n throw new NoSuchElementException();\n else{\n E removedElement = head.getNext().getElement();\n head.setNext(head.getNext().getNext());\n head.getNext().setPrevious(head);\n size--;\n return removedElement;\n }\n }", "public T pop()\n {\n return pop(first);\n }", "public E removeFirst(){\r\n return null;\r\n }", "public T removeFirst() throws EmptyCollectionException;", "public E removeFirst() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}", "public Object removeFirst() {\n if(head == null) return null;\n if(head.getNext() == null) {\n Object temp = head.getElement();\n head = tail = null;\n return temp;\n }\n\n Object temp = head.getElement();\n Node n = head.getNext();\n n.setPrevious(null);\n head = n;\n\n return temp;\n }", "public E poll()\n {\n if(size > 0)\n {\n E retElement = arrayList.get(0);\n arrayList.set(0, arrayList.get(size() - 1));\n arrayList.remove(size() - 1);\n size--;\n trickleDown(0);\n return retElement;\n }\n return null;\n }", "public Item deleteAtStart() { \t\n \tItem returnItem = head.item;\n \thead = head.next;\n \ttail.next = head;\n \tsize--;\n \treturn returnItem;\n }", "public void deleteFirst() {\r\n\t\tif(isEmpty()) return;\r\n\t\thead = head.next;\r\n\t}", "public Object removeFirst() {\r\n Object first = header.next.element;\r\n remove(header.next);\r\n return first;\r\n }", "@Override\r\n\tpublic E removeFirst() {\n\t\treturn null;\r\n\t}", "public void removeFirst() \r\n\t{\r\n\t\tint position = 1;\r\n\t\tif ( this.isEmpty() || position > numItems || position < 1 )\r\n\t\t{\r\n\t\t\tSystem.out.print(\"This delete can not be performed \"+ \"an element at position \" + position + \" does not exist \" );\r\n\t\t}\r\n\t\tfor (int i=position-1; i< numItems-1; i++)\r\n\t\t\tthis.bookArray[i] = this.bookArray[i+1];\r\n\t\t\tthis.bookArray[numItems-1] = null;\r\n\t\t\tnumItems--;\r\n\t\t\tSystem.out.println(\"DELETED first book from the Array \\n\");\r\n\t\t\r\n\t\t\treturn ;\r\n\t}", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Can not call removeFirst() on an empty deque\");\n }\n\n Item item = first.item;\n first = first.next;\n n--;\n if (isEmpty()) {\n last = null;\n }\n else {\n first.prev = null;\n }\n return item;\n\n }", "public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Trying to remove an item from an empty deque.\");\n }\n\n Item item = first.item; // save item to return\n first = first.next; // delete first node\n if (first == null) {\n last = null;\n } else {\n first.previous = null;\n }\n size--;\n if (isEmpty()) {\n last = null;\n }\n assert check();\n return item; // return the saved item\n }", "T pop(){\n\tif(m.size() == 0){\n\t throw new NoSuchElementException();\n\t}\n\tT answer = m.remove(0);\n\treturn answer;\n }", "private Element popElement() {\r\n return ((Element)this.elements.remove(this.elements.size() - 1));\r\n }", "@Override\n\tpublic Object peek() {\n\t\treturn list.getFirst();\n\t}", "public void firstElement() {\r\n \t\tcurrentObject = 0;\r\n \t}", "public void pop() {\n one.poll();\n \n }", "public static String pop() {\n String take = list.get((list.size())-1);\n list.remove((list.size())-1);\n return take;\n }", "public Object pop() {\r\n\t\treturn al.removeElementAt(al.listSize - 1);\r\n\t}", "public PersistentLinkedList<T> removeFirst() {\n return remove(0);\n }", "public Object removeFirst(){\n //Check if there is data to be removed, if not return null\n if(size == 0){\t//size 0 indicates no data in the linkedlist\n return null;\n }\n MovieNode removed = head.next;\n head.next = head.next.next;\n size--;\n return removed.data;\n }", "public L removeFromFront(){\n\t\tif(isEmpty())//throw exception if List is empty\n\t\tthrow new IllegalStateException(\"List \" + name + \" is empty\");\n\n\t\tL removedItem = (L) firstNode.data; //retrieve data being removed\n\n\t\t//update references firstNode and lastNode\n\t\tif(firstNode == lastNode)\n\t\tfirstNode = lastNode = null;\n\t\telse\n\t\tfirstNode = firstNode.getNext();\n\n\t\treturn removedItem; //return removed node data\n\t}", "public T pop() {\n return this.list[this.size-1];\n }", "public int pop() {\n \treturn list.remove(list.size()-1);\n }", "public E pop() {\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\n\t\tE retVal = remove(mHead.next);\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}", "public void pop() {\n\t\tif(size == 1) {\r\n\t\t\tfirst = null;\r\n\t\t\tlast = null;\r\n\t\t\tsize--;\r\n\t\t}\r\n\t\telse if(size > 1) {\r\n\t\t\tlast = last.getPrev();\r\n\t\t\tlast.setNext(null);\r\n\t\t\tsize--;\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Nothing to pop.\");\r\n\t}", "public T pop()\n {\n if (ll.getSize()==0){\n return null;\n }else {\n T temp = ll.getData(ll.getSize() - 1);\n ll.remove(ll.getSize() - 1);\n\n return temp;\n }\n }", "public E pollFirst() {\n\t\tif (mSize == 0)\n\t\t\treturn null;\n\t\tE retVal = mHead.next.data;\n\t\tremove(mHead.next);\n\n\t\tmodCount++;\n\t\tmSize--;\n\n\t\treturn retVal;\n\t}", "public void pop() {\n numberList.pop();\n }" ]
[ "0.7617128", "0.7613181", "0.74388987", "0.73827636", "0.7355844", "0.72969866", "0.72914404", "0.7270556", "0.7250884", "0.72365314", "0.7195779", "0.71867925", "0.7153876", "0.71519685", "0.71505713", "0.7141634", "0.71264046", "0.7123456", "0.7102131", "0.7075566", "0.70726854", "0.70630014", "0.7057684", "0.70482177", "0.7044939", "0.7032627", "0.7031917", "0.70302063", "0.7027184", "0.7027178", "0.70243084", "0.70225656", "0.7017421", "0.70079374", "0.7004498", "0.7003517", "0.7000793", "0.6997431", "0.6991731", "0.69893867", "0.69757265", "0.6973765", "0.6962633", "0.6949477", "0.6949311", "0.69486314", "0.69472796", "0.6925092", "0.6914085", "0.69019425", "0.68667936", "0.68652636", "0.68650305", "0.6859966", "0.68593574", "0.68445057", "0.6842227", "0.68395585", "0.6839062", "0.68367374", "0.68308383", "0.68282914", "0.68253165", "0.68058026", "0.6804718", "0.68005425", "0.67978996", "0.6788228", "0.67873704", "0.678617", "0.67751646", "0.6770244", "0.67684853", "0.6764681", "0.67595893", "0.6757146", "0.67534584", "0.67427766", "0.6741967", "0.6730955", "0.6713817", "0.6709823", "0.6706126", "0.669316", "0.6665438", "0.6661625", "0.6657639", "0.6657016", "0.665383", "0.6649571", "0.6641855", "0.66110414", "0.66011655", "0.6599072", "0.6575955", "0.65701324", "0.6567752", "0.6555424", "0.65424985", "0.6531921" ]
0.76079553
2
Pops out the last element of the list.
public void pop() { this.tail = getNodeBeforeIndex(this.length - 1); this.tail.next = null; this.length--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Item removeLast(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[last--];\r\n\t\tn--;\r\n\t\tlatter=last+1;\r\n\t\tif(last==-1){last=list.length-1;}\r\n\t\tif (n > 0 && n == list.length/4) resize(list.length/2); \r\n\t\treturn tmp;}", "public TypeHere removeLast() {\n TypeHere x = getLast();\n items[size - 1] = null;\n size -= 1; \n return x;\n }", "@Override\n public Item removeLast() {\n nextLast = moveBack(nextLast, 1);\n Item output = items[nextLast];\n items[nextLast] = null;\n size -= 1;\n return output;\n }", "public E removeLast();", "public Item removeLast();", "public E pop(){\n E o = list.get(list.size() - 1);\n list.remove(list.size() - 1);\n return o;\n }", "public T removeLast();", "public void removelast()\r\n {\r\n Item item = post.item;\r\n post = post.prev;\r\n n--;\r\n }", "public T removeLast() {\n if (_size == 0)\n throw new NoSuchElementException();//If nothing to remove, you cant remove\n T ret = _end.getCargo();\n _end = _end.getBefore();//set end to the thing before end\n _size--;\n return ret;\n }", "public T removeLast(){\n\tT ret = _end.getCargo();\n\t_end = _end.getNext();\n\t_end.setPrev(null);\n\t_size--;\n\treturn ret;\n }", "public Item removeLast() {\n Item last = items[size];\n items[size] = null;\n size -= 1;\n return last;\n }", "public T removeLast() {\n if (size == 0) {\n return null;\n }\n if (size == 1) {\n size--;\n return array[rear];\n }\n this.checkReSizeDown();\n size--;\n rear--;\n this.updatePointer();\n return array[Math.floorMod(rear + 1, array.length)];\n }", "public U removeLast(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls remove on last\r\n\t \treturn remove(numElems-1);\r\n\t }", "@Override\r\n\tpublic E removeLast() {\n\t\treturn pollLast();\r\n\t}", "public Item removeLast() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException();\r\n }\r\n Item result = items[--lastCursor];\r\n items[lastCursor] = null;\r\n return result;\r\n }", "public T removeLast()throws EmptyCollectionException;", "public Item removeLast() {\n if (size == 0) {\n return null;\n } else if (size == 1) {\n StuffNode i = sentinel.prev;\n sentinel.next = sentinel;\n sentinel.prev = sentinel;\n size -= 1;\n return i.item;\n } else {\n StuffNode i = sentinel.prev;\n i.prev.next = sentinel;\n sentinel.prev = i.prev;\n size -= 1;\n return i.item;\n }\n }", "public Item removeLast() {\n if (!isEmpty()) {\n Item item = last.item;\n last = last.front;\n size--;\n if (size != 0)\n last.back = null;\n return item;\n } else throw new NoSuchElementException(\"?\");\n\n }", "public Item removeLast() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"queue is empty\");\n }\n Item a;\n a = last.item;\n if (size() == 1) {\n first = null;\n last = null;\n }\n else {\n last = last.prev;\n last.next = null;\n\n }\n size--;\n return a;\n\n\n }", "@Override\n public E removeLast() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n E value = dequeue[tail];\n dequeue[tail] = null;\n tail--;\n if (tail == -1) {\n tail = dequeue.length - 1;\n }\n size--;\n if (size < dequeue.length / 2) {\n reduce();\n }\n return value;\n }", "public void popLast() {\n Node<T> tail = head;\n Node<T> prevNode = head;\n while (tail.next != null) {\n prevNode = tail;\n tail = tail.next;\n }\n prevNode.next = null;\n }", "public Object pop() {\r\n\t\treturn al.removeElementAt(al.listSize - 1);\r\n\t}", "public T pop() {\n return this.list[this.size-1];\n }", "public Item removeLast() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n Item item = last.item;\n last = last.pre;\n if (last == null) {\n first = null;\n }\n else {\n last.next = null;\n }\n len--;\n return item;\n }", "public void popLast() {\n\t\tif(head == null) {\n\t\t\tSystem.out.println(\"Linked List is Empty\");\n\t\t} else if(head.next == null) {\n\t\t\tpopHead();\n\t\t} else {\n\t\t\tNode temp = head;\n\t\t\tNode current = null;\n\t\t\twhile(temp.next != null) {\n\t\t\t\tcurrent = temp;\n\t\t\t\ttemp = temp.next;\n\t\t\t}\n\t\t\tSystem.out.println(\"Deleted Element = \" + temp.data);\n\t\t\tcurrent.next = null;\n\t\t}\n\t}", "public Item removeLast(){\n return this.doublyLinkedList.removeLast();\n }", "@Override\n\tpublic void pop() {\n\t\tlist.removeFirst();\n\t}", "private static <T> T lastItemOfList(List<T> list) {\n if (list == null || list.size() == 0) {\n return null;\n }\n return list.get(list.size() - 1);\n }", "private Element popElement() {\r\n return ((Element)this.elements.remove(this.elements.size() - 1));\r\n }", "public T removeLast() throws EmptyCollectionException{\n T result = null;\n\n if(isEmpty()){\n throw new EmptyCollectionException(\"list\");\n }\n if(count == 1){\n return removeFirst();\n }else{\n // find second to last node\n LinearNode<T> trav = front;\n while(trav.getNext() != rear){\n trav = trav.getNext();\n }\n result = rear.getElement();\n rear = trav;\n trav.setNext(null);\n count--;\n }\n return result;\n }", "public int pop() {\n \treturn list.remove(list.size()-1);\n }", "@Override\r\n\tpublic E removeLast() {\n\t\treturn null;\r\n\t}", "public Item getLast() {\n Node nextToLast = findNode(size-1);\n Node removed = nextToLast.next;\n nextToLast.next = head;\n removed.next = null;\n size--;\n return removed.item;\n }", "public T removeLast() {\n return remove(sentinel.prev);\n }", "public Item removeLast() {\n // check if the DList is already empty or not:\n if(isEmpty()) throw new NoSuchElementException(\"Failed to perform removeLast() because the DList instance is empty!\");\n if(size==1) return removeFirst(); // if there is only one element in the DList instance, call removeFirst\n\n // O.W.\n Node oldLast = last.prev;\n Item item = oldLast.data;\n \n // pointer re-wrining:\n Node newLast = oldLast.prev;\n last.prev = newLast;\n newLast.next = last;\n oldLast.next = null;\n oldLast.prev = null; \n\n // update size feild:\n size--;\n return item;\n }", "public E removeLast(){\r\n return null;\r\n }", "public static String pop() {\n String take = list.get((list.size())-1);\n list.remove((list.size())-1);\n return take;\n }", "public Object last()throws ListExeption;", "public void removeLast( ) {\r\n\t\tremove(size);\r\n\t}", "abstract public void removeLast();", "public T last() throws EmptyCollectionException{\n if (rear == null){\n throw new EmptyCollectionException(\"list\");\n }\n return rear.getElement();\n }", "public E removeLast() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}", "public Object lastElement();", "public E pop() \r\n {\r\n E o = list.get(getSize() - 1);\r\n list.remove(getSize() - 1);\r\n return o;\r\n }", "public Item removeLast() {\n Item val = deck[bFront];\n deck[bFront--] = null;\n return val;\n }", "public T removeLast() \r\n {\r\n if (isEmpty()) throw new NoSuchElementException();\r\n Node<T> currLast = sentinel.prev;\r\n Node<T> toBeLast = currLast.prev;\r\n T currLastVal = currLast.getValue();\r\n toBeLast.next = sentinel;\r\n sentinel.prev = toBeLast;\r\n currLast = null;\r\n size--;\r\n return currLastVal;\r\n }", "public Item removeLast() {\n\t\tif (last == null) {\n\t\t\tthrow new java.util.NoSuchElementException();\n\t\t}\n\t\tItem temp = last.item;\n\t\tif (first == last) {\n\t\t\tlast = null;\n\t\t\tfirst = null;\n\t\t} else {\n\t\t\tlast = last.previous;\n\t\t\tlast.next = null;\n\t\t}\n\t\tsize--;\n\t\treturn temp;\n\t}", "public int pop() {\n\t\treturn list.remove(list.size() - 1);\n\t}", "@Override\n public T removeLast() {\n if (size == 0) {\n return null;\n }\n\n int position = minusOne(nextLast);\n T itemToReturn = array[position];\n array[position] = null;\n nextLast = position;\n size -= 1;\n\n if ((double)size / array.length < 0.25 && array.length >= 16) {\n resize(array.length / 2);\n }\n return itemToReturn;\n }", "public Item removeLast() {\n if (isEmpty())\n throw new NoSuchElementException();\n Item item = last.item;\n last = last.prev;\n if (last != null)\n last.next = null;\n else\n first = last;\n size--;\n return item;\n }", "public E removeLast() {\n\t\tif (this.maxCapacity == 0) {\n\t\t\tSystem.out.println(\"incorrect Operation \");\n\t\t\tSystem.out.println(\"bottom less Stack\");\n\t\t\treturn null;\n\t\t} \n\t\t\n\t\tif (this.size > 0) {\n\t\t\tNode<E> nextNode = head.getNext();\n\t\t\tNode<E> prevNode = null;\n\t\t\twhile (nextNode != null) {\n\t\t\t\tif (nextNode.getNext() == null) {\n\t\t\t\t\tNode<E> lastNode = nextNode;\n\t\t\t\t\tthis.tail = prevNode;\n\t\t\t\t\tthis.tail.setNext(null);\n\t\t\t\t\tthis.size--;\n\t\t\t\t\treturn lastNode.getElement();\n\t\t\t\t}\n\t\t\t\tprevNode = nextNode;\n\t\t\t\tnextNode = nextNode.getNext();\n\t\t\t}\n\t\t} \n\t\t\t\n\t\treturn null;\n\t}", "public void pop() {\n numberList.pop();\n }", "public T removeLast()\r\n {\r\n T removedData; // holds data from removed node\r\n Node<T> walker; // for traversing the list\r\n\r\n if (numElements == 0)\r\n throw new NoSuchElementException(\r\n \"Remove attempted on empty list\\n\");\r\n removedData = rear.data;\r\n if (numElements == 1)\r\n front = rear = null;\r\n else\r\n {\r\n walker = front; \r\n while (walker.next != rear)\r\n {\r\n walker = walker.next;\r\n }\r\n walker.next = null;\r\n rear = walker;\r\n }\r\n \r\n numElements--;\r\n return removedData;\r\n }", "public Object last() {\r\n\t\treturn elements.get(size() - 1);\r\n\t}", "public static <T> T getLast(List<T> list) {\n\t\treturn list != null && !list.isEmpty() ? list.get(list.size() - 1) : null;\n\t}", "public static <T> T last(ArrayList<T> lst) {\n return lst.get(lst.size() - 1);\n }", "public Item removeLast(){\n\t\tif(isEmpty()){\n\t\t\tthrow new NoSuchElementException(\"Queue underflow\");\n\t\t}else{\n\t\t\t//save item to return\n\t\t\tItem returnItem = last.item;\n\t\t\t//delete last node\n\t\t\tlast = last.prev;\n\t\t\tn--;\n\t\t\tif(isEmpty()){\n\t\t\t\tfirst = null; // to avoid loitering\n\t\t\t}else{\n\t\t\t\tlast.next = null;\n\t\t\t}\n\t\t\treturn returnItem;\n\t\t}\n\t}", "public T removeLast() {\n if (size() == 0) {\n return null;\n }\n nextLast = minusOne(nextLast);\n size -= 1;\n T toRemove = items[nextLast];\n items[nextLast] = null;\n if (isSparse()) {\n resize(capacity / 2);\n }\n return toRemove;\n }", "public Item removeLast() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n Item item = tail.item;\n if (size == 1) {\n tail = null;\n head = null;\n } else {\n Node<Item> tailPrev = tail.prev;\n tailPrev.next = null;\n tail = tailPrev;\n }\n size--;\n return item;\n }", "public Item removeLast() {\n\t\tif (count == 0) throw new NoSuchElementException();\n\t\tcount--;\n\t\tItem target = last.item;\n\t\tNode previousNode = last.previous;\n\t\tlast = null;\n\t\tif (count > 0) {\n\t\t\tlast = previousNode;\n\t\t}\n\t\t\n\t\treturn target;\n\t}", "public Item deleteAtEnd() {\n \tItem returnItem = tail.item; \t\n \ttail = tail.previous;\n \thead.previous = tail;\n \tsize--;\n \treturn returnItem;\n }", "public Object pop() {\n\t\tObject lastElement = peek();\n\t\t\n\t\tint indexOfLastElement = collection.size() - 1;\n\t\tcollection.remove(indexOfLastElement);\n\t\t\n\t\treturn lastElement;\n\t}", "public Item removeLast() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tNode<Item> tmp = tail;\n\t\ttail = tail.prev;\n\t\tif (tail == null) {\n\t\t\thead = null;\n\t\t} else {\n\t\t\ttail.next = null;\n\t\t}\n\t\ttmp.prev = null;\n\t\tN--;\n\t\treturn tmp.item;\n\n\t}", "public Item removeLast() throws NoSuchElementException {\n checkDequeIsNotEmpty();\n\n Item item = last.item;\n last = last.prev;\n size--;\n\n if (isEmpty()) {\n // to avoid loitering; last already points to null\n first = null;\n } else {\n last.next = null;\n }\n return item;\n }", "public Item removeLast() {\n if (last == null)\n throw new NoSuchElementException();\n \n final Item element = last.item;\n final Node<Item> prev = last.prev;\n last.item = null;\n last.prev = null; // help GC\n last = prev;\n if (prev == null)\n first = null;\n else\n prev.next = null;\n size--;\n \n return element;\n }", "public TypeHere getLast() {\n return items[size - 1];\n }", "public T removeLast( ){\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t//last node\r\n\t\tArrayNode<T> node = endMarker.prev;\r\n\t\ttry{\r\n\t \tmodCount++;\r\n\t \tnumAdded--;\r\n\t \t//calls nested method\r\n\t\t\treturn node.removeLast();\r\n\t\t}catch( IndexOutOfBoundsException e){\t//empty node\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t}\r\n\t}", "@Override\n public void deleteLast() {\n if (this.isEmpty()) {\n throw new IllegalStateException(\"List is Empty\");\n }\n data[size - 1] = null;\n size--;\n }", "public T deleteLast() {\n Object[] newElements = new Object[elements.length]; // creating new array with size of \"elements\"\n T deletedValue; //\n if (size == 0) { // if list is empty\n throw new IndexOutOfBoundsException(\"Treated index: \" + 0 + \" | Size of the Dynamic Array \" + 0);\n } else if (size == 1) { // if size is 1\n deletedValue = (T) elements[elements.length - 1]; // save value of deleted element\n elements = newElements; // move temporary array to main array \"elements\"\n } else {\n deletedValue = (T) elements[elements.length - 1]; // save value of deleted element\n for (int i = 0; i < size - 1; i++) // treat all elements except the last one\n newElements[i] = elements[i]; // copy elements in temporary array\n elements = newElements; // move temporary array to main array \"elements\"\n }\n size--; // decrement size\n return deletedValue; // return previous value of last element\n }", "public T pop() {\r\n T o = get(size() - 1);\r\n remove(size() - 1);\r\n return o;\r\n\t}", "void deleteBack()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call deleteBack() on empty List\");\n\t\t}\n\t\tif (cursor == back) \n\t\t{\n\t\t\tcursor = null;\n\t\t\tindex = -1;\n\t\t}\n \n\t\tback = back.prev; //the back element becomes the previous element in the list\n\t\tlength--;\n\n\t}", "public E pollLast() {\n\t\tif (mSize == 0)\n\t\t\treturn null;\n\t\n\t\tE retVal = remove(getNode(size() - 1));\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}", "public Item removeLast() {\n if (this.isEmpty())\n throw new java.util.NoSuchElementException();\n\n Item ret = this.last.item;\n\n this.last = this.last.prev;\n if (this.last != null)\n this.last.next = null;\n else\n this.first = null;\n --this.n;\n\n return ret;\n }", "public Item removeLast() {\n if (isEmpty()) throw new NoSuchElementException();\n\n // Set the item to be returned to the item field of the last node\n Item item = endOfDeque.item;\n\n // Check to see if this is the last node and set both head and end to null\n if (lastNode()) {\n resetDeque();\n }\n else { // reassign endOfDeque\n endOfDeque = endOfDeque.previous;\n endOfDeque.next = null;\n }\n\n dequeSize--;\n\n return item;\n }", "@Override\n public int pop() {\n isEmptyList();\n int result = first.value;\n first = first.next;\n size--;\n return result;\n }", "public Item getLast() {\n return items[size - 1];\n }", "protected T removeEnd() {\r\n\t\tif (!this.isEmpty()) {\r\n\t\t\tSNode<T> iterator = this.getHead();\r\n\t\t\twhile (iterator.getPrev().getPrev() != tail) {\r\n\t\t\t\titerator = iterator.getPrev();\r\n\t\t\t}\r\n\t\t\tSNode<T> endNode = iterator.getPrev();\r\n\t\t\titerator.setPrev(tail);\r\n\t\t\tsize--;\r\n\t\t\treturn endNode.getValue();\r\n\t\t}\r\n\t\t// The list is empty\r\n\t\treturn null;\r\n\t}", "public E poll()\n {\n if(size > 0)\n {\n E retElement = arrayList.get(0);\n arrayList.set(0, arrayList.get(size() - 1));\n arrayList.remove(size() - 1);\n size--;\n trickleDown(0);\n return retElement;\n }\n return null;\n }", "public Object getLast() throws ListException {\r\n\t\tif (size() >= 1) {\r\n\t\t\tDoublyNode lastNode = head.getPrev();\r\n\t\t\treturn lastNode.getItem();\r\n\t\t} else {\r\n\t\t\tthrow new ListException(\"getLast on an empty list\");\r\n\t\t}\r\n\t}", "public E removeLast() {\n\t\t// low-level methods should be efficient - don't call other rmv()\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\n\t\tE retVal = remove(getNode(size() - 1));\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}", "public E removeLast() throws NoSuchElementException{\n if(size==0)\n throw new NoSuchElementException();\n else{\n E removedElement = tail.getPrevious().getElement();\n tail.setPrevious(tail.getPrevious().getPrevious());\n tail.getPrevious().setNext(tail);\n size--;\n return removedElement;\n }\n }", "public T pop()\n\t{\n\t\treturn list.removeFirst();\n\t}", "public E poll() {\n if (index == 0) {\n throw new EmptyStackException();\n }\n\n E result = (E)list.getLast();\n list.removeLast();\n index--;\n\n return result;\n }", "public Item removeLast() {\n if (isEmpty()) throw new NoSuchElementException(\"Removing from an empty deque\");\n Node<Item> tmpLast = last;\n Item lastItem = tmpLast.item;\n last = tmpLast.prev;\n size--;\n if (isEmpty()) first = null;\n else last.next = null;\n return lastItem;\n }", "public T last() throws EmptyCollectionException;", "public Item removeLast() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n\n Node oldLast = this.last;\n this.last = this.last.prev;\n this.size--;\n\n if (this.size != 0) {\n this.last.next = null;\n } else {\n this.first = null;\n }\n\n return oldLast.item;\n }", "public E removeLast() {\n\r\n E last = null;\r\n\r\n if(head == null){\r\n last = null;\r\n } else if(head.getNext() == null){\r\n last = head.getItem();\r\n } else {\r\n Node<E> curr = head;\r\n\r\n while(curr.getNext().getNext() != null) {\r\n curr = curr.getNext();\r\n }\r\n\r\n last = curr.getNext().getItem();\r\n curr.setNext(null);\r\n this.tail = curr;\r\n }\r\n\r\n return last;\r\n\r\n }", "public T pop()\n {\n if (ll.getSize()==0){\n return null;\n }else {\n T temp = ll.getData(ll.getSize() - 1);\n ll.remove(ll.getSize() - 1);\n\n return temp;\n }\n }", "public Item removeLastItem() {\n\t\tint lastItemIndex = this.purchaseList.getCurrentPurchases().size() - 1;\n\t\treturn this.removeItem(lastItemIndex);\n\t}", "public void popBack()\n {\n\ttail = tail.prev;\n\tif (null == tail) {\n\t // the list is now empty\n\t head = null;\n\t return;\n\t}\n\ttail.next = null;\n }", "public Item removeLast() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Can not call removeLast() on an empty deque\");\n }\n\n Item item = last.item;\n n--;\n if (isEmpty()) {\n first = null;\n last = null;\n }\n else {\n Node<Item> oldLast = last;\n last = last.prev;\n if (last != null) {\n last.next = null;\n }\n oldLast.prev = null;\n }\n\n return item;\n }", "@Override\r\n\tpublic String pop() {\n\t\tString last = vector.get(vector.size()-1);\r\n\t\tvector.remove(vector.size()-1);\r\n\t\treturn last;\r\n\t}", "public E last() { // returns (but does not remove) the last element\n // TODO\n\n if ( isEmpty()) return null ;\n return tail.getElement();\n }", "public Node<E> remove_last_node(){\r\n if (theData.size() <= 0) return null;\r\n\r\n Node<E> item = theData.get(theData.size()-1);\r\n\r\n theData.remove(theData.size() - 1);\r\n\r\n return item;\r\n }", "public E pop() {\n if(head == null) {\n // The list is empty\n throw new NoSuchElementException();\n } else if(head == tail) {\n // The list was of size one\n E item = head.item;\n head = tail = null;\n size = 0;\n return item;\n } else {\n E item = head.item;\n head = head.next;\n size--;\n return item;\n }\n }", "private ListNode popTail() {\n\t ListNode tailItem = tail.prev;\n\t removeFromList(tailItem);\n\n\t return tailItem;\n\t }", "public E removeLast() {\n if(isEmpty()){\n return null;\n }else{\n return remove(trailer.getPrev());\n }\n }", "public void removeLastEntry(){\r\n\t\tboards.remove(boards.size() -1 );\r\n\t}", "private E unlinkLast(Node<E> l){\r\n \tfinal E element = l.item;\r\n \tfinal Node<E> next = l.next;\r\n \tl.item = null;\r\n \tl.next = null; // help GC\r\n \tlast = next;\r\n \tif(last == null)\r\n \t\tfirst = null;\r\n \telse\r\n \t\tnext.prev = null;\r\n \tsize--;\r\n \tmodCount++;\r\n \treturn element;\r\n }", "E last() throws NoSuchElementException;", "@Override\r\n\tpublic Object last(){\r\n\t\tcheck();\r\n\t\treturn tail.value;\r\n\t}" ]
[ "0.79390174", "0.7865976", "0.78551275", "0.7660198", "0.76208234", "0.76199526", "0.76008505", "0.75931287", "0.75903904", "0.75705516", "0.7565307", "0.7390483", "0.737642", "0.7376288", "0.73712975", "0.7319048", "0.7317982", "0.73033774", "0.72704095", "0.7259726", "0.72584075", "0.7252215", "0.7231093", "0.72292006", "0.72287196", "0.72256446", "0.7216408", "0.7212437", "0.72105914", "0.7206322", "0.72048503", "0.72002697", "0.71734816", "0.71720517", "0.7170444", "0.7168331", "0.7156473", "0.7152945", "0.7140118", "0.7139354", "0.7110642", "0.7103018", "0.709323", "0.7083301", "0.7082787", "0.708183", "0.7079069", "0.70651704", "0.70644784", "0.70605415", "0.70525837", "0.7048427", "0.7039307", "0.7021412", "0.70082366", "0.7007003", "0.70068496", "0.6997829", "0.69935024", "0.6992918", "0.69922966", "0.6991956", "0.699171", "0.69863176", "0.6980909", "0.6973811", "0.69649184", "0.6963245", "0.69628084", "0.69555384", "0.6953014", "0.6946911", "0.69434536", "0.693942", "0.6934421", "0.69265336", "0.6889675", "0.6886693", "0.6883927", "0.6876346", "0.6874728", "0.6867836", "0.6849766", "0.6837728", "0.68220955", "0.68196094", "0.6811729", "0.68087035", "0.68075556", "0.68071675", "0.68023145", "0.6796227", "0.678452", "0.67816055", "0.6768229", "0.676511", "0.6764337", "0.67526805", "0.6744929", "0.6743539", "0.6742493" ]
0.0
-1
Pops out the Node at the given index idx.
public void popFromIndex(int idx) { if (!checkIndexBounds(idx)) return; Node pre = getNodeBeforeIndex(idx); Node curr = pre.next; pre.next = curr.next; this.length--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public E remove(int idx) {\n\n\t\tE retVal = remove(getNode(idx));\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}", "public void popAtIndex(int index) {\n if (index == 0) {\n pop();\n } else {\n Node<T> prevNode = head;\n Node<T> currNode = head;\n for (int i = 0; i < index; i++) {\n prevNode = currNode;\n currNode = currNode.next;\n }\n prevNode.next = currNode.next;\n }\n }", "@Override\n\tpublic T remove(int idx) throws IndexOutOfBoundsException {\n\t\tint n = 0;\n\t\tboolean found = false;\n\t\tListNode current = head;\n\t\tListNode retNode = null;\n\t\t\n\t\tif (idx < 0 || idx > size()) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\telse if (idx == 0) {\n\t\t\tretNode = current;\n\t\t\thead = current.next;\n\t\t\tsize--;\n\t\t}\n\t\telse {\n\t\t\twhile (!found) {\n\t\t\t\tif (n == idx - 1) {\n\t\t\t\t\tretNode = current.next;\n\t\t\t\t\tcurrent.next = current.next.next;\n\t\t\t\t\tfound = true;\n\t\t\t\t\tsize--;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent = current.next;\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn retNode.datum;\n\t}", "public T popNode(int index) {\n \n if(head == null || index < 0 || index >= this.size()) {\n return null;\n }\n \n int i = 0;\n Node<T> temp = head;\n Node<T> preTemp = head;\n \n while(i < index) {\n preTemp = temp;\n temp = temp.getNext();\n i++;\n }\n \n preTemp.setNext(temp.getNext());\n\n return temp.getValue();\n }", "private Node<T> getNode(int idx) {\r\n\t\treturn getNode(idx, 0, size() - 1);\r\n\t}", "private void deleteElement(final int idx) {\r\n\t\tserializer.setRandomAccess(idx, null);\r\n\t\tif (idx < firstFree) {\r\n\t\t\tsetNextPointer(idx, firstFree);\r\n\t\t\tsetPrevPointer(idx, 0);\r\n\t\t\tfirstFree = idx;\r\n\t\t} else {\r\n\t\t\tint free = firstFree;\r\n\t\t\tint lastFree = 0;\r\n\t\t\twhile (free < idx) {\r\n\t\t\t\tlastFree = free;\r\n\t\t\t\tfree = getNextPointer(free);\r\n\t\t\t}\r\n\t\t\tsetNextPointer(lastFree, idx);\r\n\t\t\tsetNextPointer(idx, free);\r\n\t\t}\r\n\t}", "public T remove(int idx) {\n\t\tint index = (idx << 1);\n\t\tnvPairs.remove(index);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tT result = (T) nvPairs.remove(index); // same index, as things shifted in previous remove\n\t\treturn result;\n\t}", "public void removeNode(int index)\n {\n ListNode nodeBefore = findIndexNode(index - 1);\n nodeBefore.setNext(nodeBefore.getNext().getNext());\n size--;\n }", "private T unlink(final int idx) {\r\n\t\tfinal T element = serializer.getRandomAccess(idx);\r\n\t\tfinal int next = getNextPointer(idx);\r\n\t\tfinal int prev = getPrevPointer(idx);\r\n\r\n\t\tif (prev == -1) {\r\n\t\t\tfirst = next;\r\n\t\t} else {\r\n\t\t\tsetNextPointer(prev, next);\r\n\t\t}\r\n\r\n\t\tif (next == -1) {\r\n\t\t\tlast = prev;\r\n\t\t} else {\r\n\t\t\tsetPrevPointer(next, prev);\r\n\t\t}\r\n\r\n\t\tdeleteElement(idx);\r\n\t\tsize--;\r\n\t\tmodCount++;\r\n\t\treturn element;\r\n\t}", "public Node<E> removeAtIndex(int index){\n if (index >= size){ return null; }\n Node<E> current;\n // 5 - 1 > 2 go from beginning\n if (size - index > size/2) {\n current = head;\n for (int i = 0; i <= index; i++){\n current = current.getNext();\n }\n } else {\n current = tail;\n for (int i = size; i >= index; i--){\n current = current.getPrevious();\n }\n }\n current.getPrevious().setNext(current.getNext());\n current.getNext().setPrevious(current.getPrevious());\n current.setNext(null);\n current.setPrevious(null);\n size--;\n return current;\n }", "public Node removeNode(int index) {\r\n\t\tif (index < 1 || index > this.size()) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new IllegalIndexException(\"the index's out of boundary\");\r\n\t\t\t} catch (IllegalIndexException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tNode tempNode = null;\r\n\t\tif (index == 1) {\r\n\t\t\ttempNode = head; \r\n\t\t\tif (this.size() == 1){\r\n\t\t\t\ttail = null;\r\n\t\t\t}\r\n\t\t\thead = head.getNext();\r\n\t\t\tthis.setSize(this.size() - 1);\r\n\t\t}else if (index == this.size()) {\r\n\t\t\tpointer = head;\r\n\t\t\twhile (pointer.getNext() != tail) {\r\n\t\t\t\tpointer = pointer.getNext();\r\n\t\t\t}\r\n\t\t\tpointer.setNext(null);\r\n\t\t\ttempNode = tail;\r\n\t\t\ttail = pointer;\r\n\t\t}else {\r\n\t\t\tint pointerIndex = 1;\r\n\t\t\tpointer = head;\r\n\t\t\twhile (pointerIndex < index - 1) {\r\n\t\t\t\tpointer = pointer.getNext();\r\n\t\t\t\tpointerIndex++;\r\n\t\t\t}\r\n\t\t\ttempNode = pointer.getNext();\r\n\t\t\tpointer.setNext(pointer.getNext().getNext());\r\n\t\t}\r\n\t\treturn tempNode;\r\n\t}", "private Node popNode() {\n\t\treturn open.remove(0);\n\t}", "public E remove(int idx) throws IndexOutOfBoundsException {\n if (!validIndex(idx)) {\n throw new IndexOutOfBoundsException(\"Cannot remove element #\" + idx + \" from SinglyLinkedList.\");\n }\n\n if (idx == 0) {\n SinglyLinkedList.Node<E> oldHead = head;\n head = head.next;\n oldHead.next = null;\n\n len -= 1;\n return oldHead.val;\n }\n\n SinglyLinkedList.Node<E> before = indexNode(idx - 1);\n SinglyLinkedList.Node<E> toRemove = before.next;\n\n before.next = toRemove.next;\n toRemove.next = null;\n\n len -= 1;\n return toRemove.val;\n }", "private T remove(int idx) {\n if (head == null) {\n throw new IllegalArgumentException(\"The list is empty\");\n }\n if (idx < 0 || idx > size - 1) {\n throw new IndexOutOfBoundsException();\n }\n\n // now the idx is valid\n // if we only have one element\n if (head.prev == null) {\n T ret = (T) head.val;\n head = null;\n tail = null;\n size = 0;\n return ret;\n }\n\n // we have more than one element\n int k = idx;\n ListNode curr = tail;\n while (k-- > 0) {\n curr = curr.next;\n }\n\n T ret = (T) curr.val;\n\n // now we need to remove this curr\n // curr is tail\n if (curr.prev == null) {\n tail = curr.next;\n tail.prev = null;\n }\n // curr is head\n else if (curr.next == null) {\n head = curr.prev;\n head.next = null;\n }\n // curr is in the middle\n else {\n curr.prev.next = curr.next;\n curr.next.prev = curr.prev;\n }\n\n curr.prev = null;\n curr.next = null;\n size--;\n return ret;\n }", "void remove(int idx);", "private T unlinkFirst(final int idx) {\r\n\t\tfinal T element = serializer.getRandomAccess(idx);\r\n\t\tfinal int next = getNextPointer(idx);\r\n\t\tfirst = next;\r\n\t\tif (next == -1) {\r\n\t\t\tlast = -1;\r\n\t\t} else {\r\n\t\t\tsetPrevPointer(next, -1);\r\n\t\t}\r\n\t\tdeleteElement(idx);\r\n\t\tsize--;\r\n\t\tmodCount++;\r\n\t\treturn element;\r\n\t}", "public E remove(int index) throws IndexOutOfBoundsException\n {\n if(index < 0 || index > size() - 1)\n {\n throw new IndexOutOfBoundsException();\n }\n Node currNode = getNth(index);\n E retData = currNode.data;\n currNode.remove();\n return retData; \n }", "public E deleteAt(int index) {\n\t\tif (index == 0) \n {\n\t\t\tLinkedNode temp = head;\n head = head.getNext();\n size--; \n return (E)temp.data;\n }\n if (index == size - 1) \n {\n \tLinkedNode temp = tail;\n LinkedNode<E> temp1 = head;\n LinkedNode<E> temp2 = head;\n while (temp1 != tail)\n {\n temp2 = temp1;\n temp1 = temp1.getNext();\n }\n tail = temp2;\n tail.setNext(null);\n size --;\n return (E)temp.data;\n }\n LinkedNode<E> ptr = head;\n LinkedNode<E> ret = getNode(index);\n for (int i = 1; i < size - 1; i++) \n {\n if (i == index) \n {\n LinkedNode<E> temp = ptr.getNext();\n temp = temp.getNext();\n ptr.setNext(temp);\n break;\n }\n ptr = ptr.getNext();\n }\n return ret.data;\n\t}", "public void delete(int index) {\n\t\tNode node = getNode(index+1);\n\t\tNode parentOfLast = getNode(size >> 1);\n\t\tnode.data = parentOfLast.right != null ? parentOfLast.right.data : parentOfLast.left.data;\n\t\tif (parentOfLast.right != null) {\n\t\t\tparentOfLast.right = null;\n\t\t}\n\t\telse {\n\t\t\tparentOfLast.left = null;\n\t\t}\n\t}", "public void deleteAtIndex(int index) {\n if (index < 0 || index >= size) throw new IllegalArgumentException(\"Add filed, index is illegal\");\n Node prev = dummyHead;\n for (int i = 0; i < index; i++) {\n prev = prev.next;\n }\n Node retNode = prev.next;\n prev.next = retNode.next;\n retNode.next = null; //loitering object != memory leak\n size--;\n }", "private T unlinkLast(final int idx) {\r\n\t\tfinal T element = serializer.getRandomAccess(idx);\r\n\t\tfinal int prev = getPrevPointer(idx);\r\n\t\tlast = prev;\r\n\t\tif (prev == -1) {\r\n\t\t\tfirst = -1;\r\n\t\t} else {\r\n\t\t\tsetNextPointer(prev, -1);\r\n\t\t}\r\n\t\tdeleteElement(idx);\r\n\t\tsize--;\r\n\t\tmodCount++;\r\n\t\treturn element;\r\n\t}", "public U remove(int idx){\r\n\t \tif ((idx < 0)|| (idx > numElems-1))\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \tint i = idx;\r\n\t \t@SuppressWarnings(\"unchecked\")\r\n\t\t\tU data = (U) array[i];\r\n\t \t//Same shift algorithm as other remove method\r\n\t \twhile(i<numElems-1){\r\n\t \t\tarray[i]= array[i+1];\r\n\t \t\ti++;\r\n\t \t}\r\n\t \t//Not sure if needed: set last element to null after shift\r\n\t \tarray[numElems-1] = null;\r\n\t \tnumElems--;\r\n\t \treturn data;\r\n\t }", "public void deleteNode(int index) {\n\t\tNode n = head;\n\t\tif(index == 0){\n\t\t\thead = head.next;\n\t\t}else{\n\t\t\tfor(int i=0 ;i<index-1 ;i++){\n\t\t\t\tn = n.next;\n\t\t\t}\n\t\t\tNode n1 = n.next;\n\t\t\tn.next = n1.next;\n\t\t}\n\t}", "public T remove(int index) {\n\t\tif (index < 0 || index >= size)\n\t\t\tthrow new ArrayIndexOutOfBoundsException();\n\t\tNode<T> curNode = head;\n\t\tif (index == 0) {\n\t\t\thead = head.next;\n\t\t\tsize--;\n\t\t\treturn curNode.value;\n\t\t}\n\t\twhile (index != 1) {\n\t\t\tcurNode = curNode.next;\n\t\t\tindex--;\n\t\t}\n\t\tNode<T> temp = curNode.next;\n\t\tcurNode.next = curNode.next.next;\n\t\tsize--;\n\t\treturn temp.value;\n\t}", "public void deleteAt (int index){\n if (index == 0) {\n head = head.next;\n }\n else\n {\n Node n = head;\n Node n1= null;\n for(int i=0;i<index-1;i++){\n n=n.next;\n }\n n1=n.next;\n n.next=n1.next;\n System.out.println(\"n1\"+ n1.data);\n n1=null;\n }\n\n}", "public void removeChildAt(int index) {children.removeElementAt(index);}", "public Object remove(int index){\r\n return dequeue(); //calls the dequeue method\r\n }", "public void deselectIndex(int idx) {\n getElement().deselectIndex(idx);\n }", "public void removeAtIndex(int index)\n {\n\n if (index == 0)\n {\n head = head.next;\n size = size - size;\n return ;\n }\n\n if (index == size - 1)\n {\n Node nodeA = head;\n Node nodeB = head;\n\n while (nodeA != tail)\n\n {\n nodeB = nodeA;\n nodeA = nodeA.next;\n }\n\n tail = nodeB;\n tail.next = null;\n\n size = size - size;\n return;\n }\n\n Node myNode = head;\n\n for (int i = 1; i < size - 1; i++)\n {\n if (i == index)\n {\n Node myNode1 = myNode.next;\n myNode1 = myNode1.next;\n myNode.next = myNode1;\n break;\n }\n myNode = myNode.next;\n }\n\n size = size - size;\n\n }", "public void removeChild(int index)\n/* */ {\n/* 457 */ this.children.removeElementAt(index);\n/* */ }", "public void deleteAtIndex(int index)\n\t{\n\t\tif(index==0)\n\t\t{\n\t\t\thead = head.next;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tNode temp =head;\n\t\t\tNode n1 =null;\n\t\t\t\n\t\t\tfor(int i=0; i < index-1 ;i++)\n\t\t\t{\n\t\t\t\ttemp = temp.next; //temp--->temp.next\n\t\t\t}\n\t\t\t\n\t\t\tn1 = temp.next;\t\t\t\t\t//n1------>temp.next\n\t\t\ttemp.next =n1.next; //temp.next------->n1.next\n\t\t\tSystem.out.println(\"n1\"+ n1.data);\n\t\t\t\n\t\t}\n\t}", "public void remove(int idx) {\r\n\t\tcards.remove(idx);\r\n\t}", "public void deleteAtIndex(int index) {\n if (index >= this.size || index < 0) {\n return;\n }\n\n ListNode pred = this.head;\n\n for (int i = 0; i < index; ++i) {\n pred = pred.next;\n }\n pred.next = pred.next.next;\n this.size--;\n }", "@Override\n public void removeAt(int index) {\n if(index > -1 && index < getSize()) {\n if(index == 0) {\n this.removeFromFront();\n return;\n }\n if(index == getSize() - 1) {\n this.removeFromEnd();\n return;\n }\n Node<T> current = this.head;\n\n int position = 0;\n Node<T> previous = null;\n while(current.getNext() != null){\n previous = current;\n current = current.getNext();\n if(position == index) {\n break;\n }\n position++;\n }\n\n //remove current and make previous Node point to the node current Node links to.\n previous.setNext(current.getNext());\n\n current.setData(null);\n current.setNext(null);\n\n }else {\n throw new IndexOutOfBoundException(\"Cannot delete Node at the provided location\");\n }\n }", "@Override\n\tpublic E remove(int index) {\n\t\trangeCheck(index);\n\t\t\n\t\treturn remove(node(index));\n\t}", "public Builder removeNode(int index) {\n if (nodeBuilder_ == null) {\n ensureNodeIsMutable();\n node_.remove(index);\n onChanged();\n } else {\n nodeBuilder_.remove(index);\n }\n return this;\n }", "public U remove(int index) throws IndexOutOfBoundsException {\n\t\t\tif (index >= mLength || index < 0) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"Supplied index is invalid.\");\n\t\t\t}\n\n\t\t\tNode<U> node = getNodeAtIndex(index);\n\t\t\tU value = node.getValue();\n\t\t\tunlinkNode(node);\n\n\t\t\treturn value;\n\t\t}", "public void deleteAt(int index) {\n if (index == 0) {\n head = head.next;\n } else {\n Node<T> currentNode = head;\n Node<T> previousNode = null;\n for (int i = 0; i < index; i++) {\n previousNode = currentNode;\n currentNode = currentNode.next;\n }\n previousNode.next = currentNode.next;\n currentNode = null;\n }\n size--;\n }", "public void removeAtIndex(int index) {\r\n\t\tNode current = head;\r\n\t\twhile(current.index != index) { //Loop through until proper index reached\r\n\t\t\tcurrent.index--;\r\n\t\t\tcurrent = current.next;\r\n\t\t}\r\n\t\tif(index == 1 && current == head) { //If the only node is the head, set it equal to null and reset the indices\r\n\t\t\thead.index = 0;\r\n\t\t\thead = null;\r\n\t\t}\r\n\t\telse if(index != 1 && current == head) { //If the head is chosen but is not the only node, set the head to be the next node\r\n\t\t\thead = current.next;\r\n\t\t}\r\n\t\telse if(index == 1 && current.next == head) { //If the tail is chosen, set the tail equal to the previous node\r\n\t\t\ttail = tail.prev;\r\n\t\t}\r\n\t\telse { //Otherwise, change the next and previous references to remove the middle node which is the chosen index\r\n\t\t\tNode copy = current;\r\n\t\t\tcurrent.prev.next = current.next;\r\n\t\t\tcurrent.next.prev = copy.prev;\r\n\t\t}\r\n\r\n\t\tsize--;\r\n\t\tprintQueue();\r\n\t}", "protected SinglyLinkedList.Node<E> indexNode(int idx) throws IndexOutOfBoundsException {\n if (!validIndex(idx)) {\n throw new IndexOutOfBoundsException(\"Cannot index element #\" + idx + \" in SinglyLinkedList.\");\n }\n\n SinglyLinkedList.Node<E> curr = head;\n\n for (; idx > 0; idx--) {\n curr = curr.next;\n }\n\n return curr;\n }", "private Node getNode(int index) {\n\t\treturn getNode(index, 0, size() - 1);\n\t}", "public void deleteAt(int index) {\n\t\t\t\n\t\tif(index == 0) {\n\t\t\t\t\n\t\t\thead = head.next;\n\t\t}else {\n\t\t\t\t\n\t\t\tBookingNode n = head;\n\t\t\tBookingNode n1 = null;\n\t\t\tfor(int i = 0; i < index-1; i++) {\n\t\t\t\t\t\n\t\t\t\tn = n.next;\n\t\t\t}\n\t\t\tn1 = n.next;\n\t\t\tn.next = n1.next;\n\t\t\t//System.out.println(\"n1 \" + n1.data);\n\t\t\tn1 = null;\n\t\t\t}\n\t\t}", "@Override\n\tpublic E remove(int idx) {\n\t\tif (idx < 0 || idx >= size())\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\tE element = null;\n\t\telement = list[idx];\n\t\tif (idx == size - 1) {\n\t\t\tlist[idx] = null;\n\t\t} else {\n\t\t\tfor (int i = idx; i < size - 1; i++) {\n\t\t\t\tlist[i] = list[i + 1];\n\t\t\t}\n\t\t\tlist[size - 1] = null;\n\t\t}\n\t\tsize--;\n\t\treturn element;\n\t}", "public E remove(int index)\n {\n Node <E> f = getNode(index - 1);\n Node <E> m = getNode(index);\n Node <E> e = getNode(index + 1);\n if(index >= size() || index < 0 || isEmpty())\n {\n return null;\n }\n else\n {\n if(f == null)\n {\n if(e == null)\n {\n head.setNext(null);\n }\n else\n {\n head.setNext(e);\n }\n }\n else{\n if(e == null)\n {\n f.setNext(null);\n }\n else\n {\n f.setNext(e);\n }\n }\n }\n return m.getValue(); \n }", "public FileNode removeChildAt(int index) {\r\n childNum--;\r\n \treturn children.remove(index);\r\n }", "public void remove(int index) \r\n\t{\t\r\n\t\tNode n = headPointer;\r\n \t\tint count = 0;\r\n \t\t\r\n \t\twhile(count != index)\r\n \t\t{\r\n \t\t\tif(n != null)\r\n\t\t\t{\r\n\t\t\t\tn = n.getNext();\r\n\t\t\t}\r\n \t\t\tcount ++;\r\n \t\t}\r\n \t\tn.getPrev().setNext(n.getNext());\r\n \t\tn.getNext().setPrev(n.getPrev());\r\n \t\tn = null;\r\n\t}", "public T remove(int index) {\n return null;\n }", "protected void removeNode (int seq, int neighbourIndex)\n {\n Node currentNode = adjacencySequences[seq];\n Node previousNode = null;\n while (currentNode != null && currentNode.neighbourIndex != neighbourIndex)\n {\n previousNode = currentNode;\n currentNode = currentNode.nextNode;\n }\n\n if (currentNode != null)\n {\n if (previousNode != null)\n previousNode.nextNode = currentNode.nextNode;\n else\n adjacencySequences[seq] = currentNode.nextNode;\n }\n }", "public Object remove(final int index) {\n if (checkIfInvalidIndex(index)) {\n throw new IndexOutOfBoundsException();\n }\n Node<T> iterator = head;\n if (index == 0) {\n head = head.getNext();\n } else {\n Node<T> previous = null;\n for (int currentIndex = 0; currentIndex < index; currentIndex++) {\n previous = iterator;\n iterator = iterator.getNext();\n }\n if (previous != null) {\n previous.setNext(iterator.getNext());\n }\n }\n numElement--;\n return iterator.getData();\n }", "public void remove(int index) {\n\t\tif ((index < 1) || (index > size))\n\t\t\tthrow new IllegalArgumentException();\n\t\telse{\n\t\t\tremove(getNode(index));\n\t\t\t}\n\t}", "public E remove (int index)\n { E item;\n if (index < 0 || index >= size) {\n throw new\n IndexOutOfBoundsException(Integer.toString(index));\n }\n if (index == 0)\n item = removeFirst( );\n else {\n Node<E> node = getNode(index - 1);\n item = removeAfter(node);\n }\n return item; // return the deleted value\n }", "int remove(int idx);", "public void remove(int index);", "public String removeAt(int index) {\n\t\tif (index == 0) {\n\t\t\tString result = head.value;\n\t\t\thead = head.next;\n\t\t\treturn result;\n\t\t} else\n\t\t\treturn recRemove(head, index).value;\n\t}", "public void deleteIndex(int pos)\n{\n Node last=head;\nNode temp=null;\nif(pos==0)\n{head=last.next;\n last.next=null;\n}\nelse\n{ int count=1;\n while(count<pos)\n{\n last=last.next;\ncount++;\n}\ntemp=last.next;\nlast.next=temp.next;\ntemp.next=null;\n}\n}", "public AnyType remove( int index ) throws IndexOutOfBoundsException {\n \n return removeNode( index ).getData();\n \n }", "void remove( int index );", "public void removeAt(int index) {\nif (index < 0 || index >= size)\nthrow new IndexOutOfBoundsException(\"nema tog indexa\");\nif (index == 0) {\nhead = head.next;\nsize--;\nreturn;\n}\nNode current = head.next;\nNode previous = head;\nint counter = 1;\nwhile (counter < index) {\ncurrent = current.next;\nprevious = previous.next;\ncounter++;\n}\nprevious.next = current.next;\ncurrent.next = null;\n}", "public void pop(int index){\n if (!isEmpty() && index == 1)\n this.index1--;\n else if (!isEmpty() && index == 2)\n this.index2--;\n }", "public void remove(int index) {\n\t\tif (index == 0) {\n\t\t\tfront = front.next;\n\t\t} else {\n\t\t\tListNode current = nodeAt(index - 1);\n\t\t\tcurrent.next = current.next.next;\n\t\t}\n\t}", "public void deleteAtIndex(int index) {\n if (index < 0 || index >= size) return;\n if (index == 0) {\n deleteHead();\n } else {\n ListNode curr = head;\n for (int i = 0; i < index - 1; i++) {\n curr = curr.next;\n }\n curr.next = curr.next.next;\n size--;\n }\n }", "public node_type getNode(int idx) {\n assert (idx < (int) nodeVector.size())\n && (idx >= 0) :\n \"<SparseGraph::GetNode>: invalid index\";\n\n return (node_type) nodeVector.get(idx);\n }", "public E removeAt(int index) {\r\n\t\tif (index < 0 || index > size - 1) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t} else {\r\n\t\t\tNode<E> temp = indices.get(index);\r\n\t\t\tif (head == tail) {\r\n\t\t\t\thead = null;\r\n\t\t\t\ttail = null;\r\n\t\t\t} else {\r\n\t\t\t\tif (index == size - 1) {\r\n\t\t\t\t\ttemp.prev.next = null;\r\n\t\t\t\t\ttemp.prev = null;\r\n\t\t\t\t\ttail = temp.next;\r\n\t\t\t\t} else if (index == 0) {\r\n\t\t\t\t\thead = head.next;\r\n\t\t\t\t\thead.prev = null;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttemp.prev.next = temp.next;\r\n\t\t\t\t\ttemp.next.prev = temp.prev;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tindices.remove(index);\r\n\t\t\tsize--;\r\n\t\t\treturn temp.data;\r\n\t\t}\r\n\t}", "public void cutNode ()\n {\n copyNode();\n deleteNode();\n }", "public Type remove(int index);", "public T popAt(int index) throws Exception{\n if(index<0 || index>=stacks.size()) throw new Exception();\n T c1 = stacks.get(index).pop();\n if(stacks.get(index).size()==0)\n stacks.remove(index);\n return c1;\n }", "public void remove(int index) throws OutOfBoundsException {\n\n\t\ttry {\n\t\t\tif (index == 0) {\n\t\t\t\thead = retrieve(1);\n\t\t\t\tsize--;\n\t\t\t} else if (index == size - 1) {\n\t\t\t\tretrieve(index - 1).setNextNode(null);\n\t\t\t\tsize--;\n\t\t\t} else {\n\t\t\t\tNode current = retrieve(index);\n\t\t\t\tNode left = retrieve(index - 1);\n\t\t\t\tNode right = retrieve(index + 1);\n\t\t\t\tleft.setNextNode(right);\n\t\t\t\tcurrent.setNextNode(null);\n\t\t\t\tsize--;\n\t\t\t}\n\t\t} catch (OutOfBoundsException error) {\n\t\t\tSystem.out.println(error.getMessage());\n\t\t}\n\t\t\n\n\t}", "public void erase(int idx, int n) {\r\n\t\tNode<T> start = getNode(idx - 1);\r\n\t\tNode<T> end = getNode(idx + n);\r\n\t\tstart.next = end;\r\n\t\tend.prev = start;\r\n\t}", "T remove(int index);", "T remove(int index);", "private final void fastRemove(final int index) {\r\n\t\tfinal int numMoved = this.size - index - 1;\r\n\t\tif (numMoved > 0) {\r\n\t\t\tSystem.arraycopy( this.elementData, index + 1, this.elementData, index, numMoved );\r\n\t\t}\r\n\t\tthis.elementData[--this.size] = null; // Let gc do its work\r\n\t}", "public T remove(int index)\r\n {\r\n T removedData; // holds data from removed node\r\n Node<T> walker; // needed for traversing the list\r\n Node<T> successor; // node that is after walker\r\n\r\n if ((index < 0) || (index >= numElements))\r\n throw new IndexOutOfBoundsException(\r\n \"Illegal index \" + index + \" passed to remove method.\\n\");\r\n \r\n if (index == 0) // remove front node\r\n {\r\n removedData = front.data;\r\n front = front.next;\r\n if (numElements == 1)\r\n rear = null;\r\n }\r\n else\r\n {\r\n walker = front; \r\n for (int i=0; i<(index-1); i++)\r\n walker = walker.next;\r\n \r\n successor = walker.next;\r\n removedData = successor.data;\r\n if (successor == rear) // remove rear node\r\n rear = walker;\r\n walker.next = successor.next;\r\n }\r\n\r\n numElements--;\r\n return removedData;\r\n }", "protected void removeByIndex(int index) {\n int h = head;\n int t = tail;\n size = size - 1;\n int present = dequeue.length - 1;\n int offset = (index - h) & present;\n int finish = (tail - index) & present;\n\n if (offset < finish) {\n if (h <= index) {\n System.arraycopy(dequeue, h, dequeue, h + 1, offset);\n } else {\n System.arraycopy(dequeue, 0, dequeue, 1, index);\n dequeue[0] = dequeue[present];\n System.arraycopy(dequeue, h, dequeue, h + 1, present - h);\n }\n dequeue[h] = null;\n head = (h + 1) & present;\n } else {\n if (index < t) {\n System.arraycopy(dequeue, index + 1, dequeue, index, finish);\n tail = t - 1;\n } else {\n System.arraycopy(dequeue, index + 1, dequeue, index, present - index);\n dequeue[present] = dequeue[0];\n System.arraycopy(dequeue, 1, dequeue, 0, t);\n tail = (t - 1) & present;\n }\n }\n }", "public T removeAtIndex(int index) {\n if (index < 0 || index >= size) {\n throw new IndexOutOfBoundsException(\"The data you are \"\n + \"trying to access is null\");\n }\n if (index == 0) {\n return removeFromFront();\n }\n if (index == size - 1) {\n return removeFromBack();\n } else if (size / 2 >= index) {\n DoublyLinkedListNode<T> pointer = head;\n for (int i = 0; i < index - 1; i++) {\n pointer = pointer.getNext();\n }\n DoublyLinkedListNode<T> temp = pointer.getNext();\n pointer.setNext(null);\n size -= 1;\n return temp.getData();\n } else if (size / 2 < index) {\n DoublyLinkedListNode<T> pointer = tail;\n for (int i = size; i > index + 1; i--) {\n pointer = pointer.getPrevious();\n }\n DoublyLinkedListNode<T> temp = pointer.getPrevious();\n pointer.setPrevious(null);\n size -= 1;\n return temp.getData();\n }\n return null;\n\n }", "public void removeItem(int idx)\n\t{\n\t\titemList.remove(idx);\n\t\t\n\t}", "void remove(int index);", "void remove(int index);", "void remove(int index);", "void remove(int index);", "public E remove(int index);", "public void remove(int index) {\n\n\t}", "@Override\n public final JsonNode get(int index) { return null; }", "public void deleteAtIndex(int index) {\n\n if(index==0 && len==1) {\n head =null;\n tail =null;\n len--;\n }\n\n\n if(index>-1 && index<len) {\n\n //删除头结点\n if(index ==0) {\n head = head.next;\n }\n\n SingleNode pre =head;\n for(int i=0; i<index-1; i++) {\n pre = pre.next;\n }\n pre.next = pre.next.next;\n //删除尾节点,需要将尾指针指向尾节点前一个节点。需要放在len--上面,因为会改变len的值\n if(index == len-1) {\n tail = pre;\n }\n len--;\n }\n }", "public E remove(int index) {\n\t\tcheckBounds(index);\r\n\t\tNode<E> remove;\r\n if (size == 1) {\r\n remove = head;\r\n head = null;\r\n tail = null;\r\n } else if (index == 0) {\r\n\t\t\tremove = head;\r\n\t\t\tNode<E> t = head.next;\r\n\t\t\tt.previous = null;\r\n\t\t\thead = t;\r\n\t\t} else if (index == size - 1) {\r\n\t\t\tremove = tail;\r\n\t\t\tNode<E> t = tail.previous;\r\n\t\t\tt.next = null;\r\n\t\t\ttail = t;\r\n\t\t} else {\r\n\t\t\tNode<E> before = getNode(index - 1);\r\n\t\t\tremove = getNode(index);\r\n\t\t\tNode<E> after = getNode(index + 1);\r\n\t\t\tbefore.setNext(after);\r\n\t\t\tafter.setPrevious(before);\r\n\t\t}\r\n\t\tsize--;\r\n\t\treturn remove.getData();\r\n\t}", "@Override\n\tpublic void delete(int index) throws IndexOutOfBoundsException {\n\n\t\tNode node = head;\n\t\tif (index >= size) {\n\t\t\tthrow new IndexOutOfBoundsException(\"The index at: \" + index + \", is out of bounds!\");\n\t\t} else if (index == 0) {// head\n\t\t\thead = node.getNext();\n\t\t\tsize--;\n\t\t} else {// between to tail\n\n\t\t\tfor (int i = 0; i < index - 1; i++) {\n\t\t\t\tnode = node.getNext();\n\t\t\t}\n\t\t\tnode.setNext(node.getNext().getNext());\n\t\t\tsize--;\n\t\t}\n\t}", "void remove(int index)\n\t{\n\t\t//Get the reference of the head of the Linked list\n\t\tNode ref = head;\n\t\t\n\t\t//Initialize the counter to -1\n\t\tint count = -1;\n\t\t\n\t\t//Traverse the Linked List until the Node with position (index - 1) is reached\n\t\twhile(count != index - 1)\n\t\t{\n\t\t\tcount++;\n\t\t\tref = ref.next;\n\t\t}\n\t\t\n\t\t//Assign the reference of the next Node after the Node at position index to refNext\n\t\tNode refNext = ref.next.next;\n\t\t\n\t\t//Assign the refNext as the next Node after the Node at position (index - 1) \n\t\tref.next = refNext;\n\t}", "public abstract T remove(int index);", "public void remove(int index) {\n isValidIndex(index);\n Node n;\n if (isEmpty()) {\n throw new NoSuchElementException();\n } else if (index == 0) {\n head = head.next;\n n = head;\n } else {\n n = getNode(index - 1);\n n.next = n.next.next;\n }\n\n if (n.next == null) {\n tail = n;\n }\n size --;\n }", "public void deleteAtIndex(int index) {\n if (index < 0 || index >= size) return;\n \n Node node = head;\n\n for (int i = 0; i <= index; i++) {\n node = node.next;\n }\n\n node.next.prev = node.prev;\n node.prev.next = node.next;\n size--;\n }", "public E remove(int index) {\n DoublyLinkedNode<E> iter = head.getNext();\n\n if (index == 0 && !this.isEmpty()) {\n E removed = head.getNext().getData();\n head.linkWith(head.getNext().getNext());\n size--;\n return removed;\n }\n else if (index == size && !this.isEmpty()) {\n E removed = tail.getPrevious().getData();\n tail.getPrevious().getPrevious().linkWith(tail);\n size--;\n return removed;\n }\n else if (index > 0 && index < size) {\n for (int i = 0; i < index; i++) {\n iter = iter.getNext();\n }\n\n E removed = iter.getData();\n iter.getPrevious().linkWith(iter.getNext());\n size--;\n return removed;\n }\n else {\n throw new IndexOutOfBoundsException();\n }\n\n }", "public Object remove(int index) {\r\n return deref(refs.remove(index));\r\n }", "private Node remove(int i) {\n Node result = null;\n int len = this.getlength();\n if (i >= len) {\n System.out.println(\"out of range exception\");\n return this;\n } else {\n if (i == 0) {\n result = this.nextNode;\n return result;\n } else {\n result = this;\n Node cur = this;\n for (int j = 0; j < i - 1; j++) {\n cur = cur.nextNode;\n }\n cur.nextNode = cur.nextNode.nextNode;\n }\n return result;\n }\n }", "public void pop() {\n this.tail = getNodeBeforeIndex(this.length - 1);\n this.tail.next = null;\n this.length--;\n }", "public void remove(int index) {\r\n\t\tstmts.remove(index);\r\n\t}", "public Object remove(int index) {\r\n Entry e = entry(index);\r\n remove(e);\r\n return e.element;\r\n }", "private Node getNodeAt(int index){\n // first check if index is within valid index range [0,size]:\n if(index<0 || index>size) \n throw new IndexOutOfBoundsException(\"Faild to perfomr getNode() because the \"+ index +\" index that you have specified is way out of bounds!\");\n Node temp = first;\n while(index>=0) {\n temp = temp.next; // advance the reference to the next node in the list\n index--;\n }\n return temp;\n }", "@Override\n public synchronized E remove(int index) {\n E result = this.get(index);\n if (index < this.size() - 1) {\n System.arraycopy(this.container, index + 1, this.container, index, this.size() - (index + 1));\n }\n this.container[--this.pointer] = null;\n return result;\n }", "public Item removeAt(int index) {\n // check if DList is empty:\n if(isEmpty()) throw new NoSuchElementException(\"Failed to perform removeAt operation because the DList instance is empty!\");\n // check if index is within the valid range\n if (index<0 || index>size-1) throw new IndexOutOfBoundsException(\"Failed to removeAt because \"+index+\" index is out of bounds!\");\n if(index==0) return removeFirst();\n if(index==size-1) return removeLast();\n\n Node current = getNodeAt(index);\n Item item = current.data;\n\n Node prevNode = current.prev;\n Node nextNode = current.next;\n\n prevNode.next = nextNode;\n nextNode.prev = prevNode;\n current.next = null;\n current.prev = null;\n \n size--;\n return item;\n }", "public void deleteAtIndex(int index) {\n if(index >= size || index < 0)\n return;\n ListNode p=head,follow=head;\n int count=0;\n if(head!=null){\n if(head.next==null && index==0) {\n head = null;\n tail=null;\n size--;\n }\n else{\n while (p.next!=null && count!=index){\n count++;\n follow=p;\n p=p.next;\n }\n if(index==0){\n head=head.next;\n size--;\n }\n else if(p==tail && count==index){\n follow.next=null;\n tail=follow;\n size--;\n }\n else if(index==count){\n follow.next=p.next;\n size--;\n }\n }\n }\n }", "public Node getNodeBeforeIndex(int idx) {\n if(!checkIndexBounds(idx)) {\n return null;\n }\n\n Node curr = this.head;\n Node pre = new Node();\n for (int i = 0; i < idx; i++) {\n pre = curr;\n curr = curr.next;\n };\n\n return pre;\n }" ]
[ "0.71233374", "0.6664532", "0.6648121", "0.65162766", "0.6483542", "0.6443205", "0.63590723", "0.6338489", "0.6302765", "0.62164795", "0.618364", "0.61428505", "0.61280465", "0.6096725", "0.6073828", "0.60697025", "0.6031975", "0.60047984", "0.6002689", "0.5969695", "0.591803", "0.5917713", "0.58931273", "0.5891329", "0.5870672", "0.587067", "0.585306", "0.58448434", "0.5826096", "0.58124906", "0.5783368", "0.57706326", "0.57559216", "0.57512957", "0.5738319", "0.57183784", "0.5717453", "0.57164663", "0.5703667", "0.56975263", "0.56745625", "0.5669893", "0.56495637", "0.5645322", "0.5643976", "0.56393707", "0.562533", "0.5602293", "0.5595911", "0.55883235", "0.5583423", "0.5567002", "0.55490273", "0.5528616", "0.5528345", "0.5525325", "0.5502132", "0.54938316", "0.5481585", "0.5479284", "0.5469943", "0.5464555", "0.54574364", "0.5456714", "0.5449551", "0.54317343", "0.5430131", "0.54252404", "0.5420068", "0.5420068", "0.54185903", "0.54102993", "0.54091364", "0.54035985", "0.5398921", "0.5376002", "0.5376002", "0.5376002", "0.5376002", "0.535956", "0.5357324", "0.53509086", "0.5343721", "0.534127", "0.53386116", "0.5334871", "0.5334346", "0.533412", "0.53322744", "0.53312683", "0.53231424", "0.532217", "0.53197616", "0.53127384", "0.53080034", "0.5300815", "0.5297567", "0.52967477", "0.5294419", "0.52940613" ]
0.780686
0
/ We will persist preferences via JRE implementation of Preferences, which is horribly inefficient. It will however work acceptably well for local singleuser apps as is common with data science apps. Applications exposed on the web should configure better implementation either on Preferences or ReactivePreferences level. Even locally running applications might be better off at least calling SitePreferences.storeIn().
public ReactivePreferences preferences() { return ReactivePreferences.userRoot(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void storePreferences() throws Exception {\n\t\tupdatePreferences();\n\t\tPortletPreferences preferences = getPreferences();\n\t\tpreferences.store();\n\t}", "void savePreferences() throws OntimizeJEERuntimeException;", "public void savePreferences() {\n\t\tfinal IEclipsePreferences prefs = getPreferences();\n\t\ttry {\n\t\t\tprefs.flush();\n\t\t} catch (BackingStoreException e) {\n\t\t\tgetILog().log(createStatus(IStatus.ERROR, e));\n\t\t}\n\t}", "public void savingVariablesWebConfig(){\n SharedPreferences prefs = getSharedPreferences(Constants.PREFERENCES_NAME, Context.MODE_PRIVATE);\n //Save data of user in preferences\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_ACCEPTED, \"3\");\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_VISIBLE, \"10\");\n editor.putString(Constants.PREF_VALUE_MAX_TIME_ORDERS, \"15\");\n editor.commit();\n }", "protected void savePreferences() {\n String tmp_hostname = hostname.getHostName();\n System.out.println(\"stringified hostname was: \" + tmp_hostname);\n if (tmp_hostname != null) {\n SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"last_hostname\", tmp_hostname);\n editor.commit();\n }\n }", "protected abstract IPreferenceStore getPreferenceStore();", "public void savePreferences(SharedPreferences preferences){\r\n\t\tSharedPreferences.Editor editor = preferences.edit();\r\n editor.putBoolean(\"initialSetupped\", initialSetuped);\r\n editor.putString(\"username\", userName);\r\n editor.putString(\"useremail\", userEmail);\r\n editor.putString(\"recipientemail\", recipientEmail);\r\n editor.putBoolean(\"option\", option.isPound());\r\n\r\n // Commit the edits!\r\n editor.commit();\r\n\t}", "private void saveSharedPref() {\n SharedPreferences.Editor editor = this.sharedPreferences.edit();\n if (checkBox.isChecked()) {\n editor.putBoolean(Constants.SP_IS_REMEMBERED_KEY, true);\n }\n editor.apply();\n }", "private final synchronized void writePreferencesImpl() {\n if ( LOGD ) { Log.d( TAG, \"writePreferencesImpl \" + mPrefFile + \" \" + mPrefKey ); }\n\n mForcePreferenceWrite = false;\n\n SharedPreferences pref =\n Utilities.getContext().getSharedPreferences( mPrefFile, Context.MODE_PRIVATE );\n SharedPreferences.Editor edit = pref.edit();\n edit.putString( mPrefKey, getSerializedString() );\n Utilities.commitNoCrash(edit);\n }", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "ReadOnlyUserPrefs getUserPrefs();", "private void setPreferences(Preferences preferences) {\n this.preferences = preferences;\n }", "private void savePrefsData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putBoolean(\"isIntroOpnend\", true);\n editor.commit();\n }", "public interface PreferencesHelper {\r\n\r\n int getUserLoggedInMode();\r\n\r\n void setUserLoggedInMode(DataManager.LoggedInMode mode);\r\n\r\n String getUserName();\r\n\r\n void setUserName(String userName);\r\n\r\n String getAccessToken();\r\n\r\n void setAccessToken(String accessToken);\r\n\r\n String getUserProfilePicUrl();\r\n\r\n void setUserProfilePicUrl(String profilePicUrl);\r\n\r\n String getStoredProfilePicPath();\r\n\r\n void setStoredProfilePicPath(String profilePicPath);\r\n\r\n}", "public interface LocalPreferences {\n void loadPreferences() throws IOException;\n\n Config getConfig();\n}", "private void savePreferences(String key, String value) {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(c);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(key, value);\n editor.apply();\n }", "public void save() {\n try {\n FileOutputStream fos = new FileOutputStream(file);\n properties.store(fos, \"Preferences\");\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void setPreference() {\n prefs = Preferences.userRoot().node(this.getClass().getName());\n String ID1 = \"Test1\";\n String ID2 = \"Test2\";\n String ID3 = \"Test3\";\n// First we will get the values\n// Define a boolean value\n System.out.println(prefs.getBoolean(ID1, true));\n// Define a string with default \"Hello World\n System.out.println(prefs.get(ID2, \"Hello World\"));\n// Define a integer with default 50\n System.out.println(prefs.getInt(ID3, 50));\n// Now set the values\n prefs.putBoolean(ID1, false);\n prefs.put(ID2, \"Hello Europa\");\n prefs.putInt(ID3, 45);\n\t\t\n prefs.remove(ID1);// Delete the preference settings for the first value\n }", "private void savePreferences(String key, String value) {\n\t\tSharedPreferences sp = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\tEditor edit = sp.edit();\n\t\tedit.putString(key, value);\n\t\tedit.commit();\n\t}", "protected void SavePreferences(String key, String value) {\n SharedPreferences data = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = data.edit();\n editor.putString(key, value);\n editor.commit();\n\n\n }", "public void setPreferences(Preferences preferences) {\n\n this.preferences = preferences;\n }", "private void saveCurrentPreferences() {\n\t\toldUnitType = preferences.getInt(\"displayUnit\", UnitType.FOOTINCH.getId());\n\t\toldPrecision = preferences.getInt(\"precision\", 16);\n\t\toldRounding = preferences.getBoolean(\"roundUp\", true);\n\t\toldDisplayOptions = preferences.getString(\"displayOptions\", context.getString(R.string.displayAutomatic));\n\t}", "UserSettings store(String key, String value);", "private static SharedPreferences getSharedPreferences() {\n Context ctx = AppUtils.getAppContext();\n return ctx.getSharedPreferences(\"pref_user_session_data\", Context.MODE_PRIVATE);\n }", "void loadPreferences() throws OntimizeJEERuntimeException;", "public interface MlPreference {\r\n\r\n public void storePreferences();\r\n\r\n}", "private void savePreferences(){\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putInt(\"p1Count\", pOneCounter);\n editor.putInt(\"p2Count\", pTwoCounter);\n editor.putInt(\"pAICount\", pAICounter);\n editor.putInt(\"tieCount\", tieCounter);\n\n editor.commit();\n }", "private static void persistSettings() {\n\t\ttry {\n\t\t\tBufferedWriter userConf = new BufferedWriter(new FileWriter(\n\t\t\t\t\tconf.getAbsolutePath()));\n\t\t\tproperties.store(userConf, null);\n\t\t\t// flush and close streams\n\t\t\tuserConf.flush();\n\t\t\tuserConf.close();\n\t\t} catch (IOException e) {\n\t\t\tlog.severe(\"Couldn't save config file.\");\n\t\t}\n\t}", "private GlobalPrefs() {\n\t\tprops = new Properties();\n\t}", "public SharedPreferences prefs() {\n\n SharedPreferences prefs = context.getSharedPreferences(APP_IDS_PREFS_NAME, Context.MODE_PRIVATE); // Private because it can still be accessed from other apps with the same User ID\n return prefs;\n }", "public void save() {\n savePrefs();\n }", "public IPreferenceStore getPreferenceStore(String name);", "public static void SavePreferences()\n {\n try\n {\n StartSaveAnimation();\n PrintWriter writer = new PrintWriter(preferences_file_name, \"UTF-8\");\n \n writer.print(Utilities.BoolToInt(MusicManager.enable_music) + \"\\r\\n\");\n writer.print(Utilities.BoolToInt(PassiveDancer.englishMode) + \"\\r\\n\");\n \n writer.close();\n }\n catch(Exception e) { System.out.println(\"Problem writing in the file \" + preferences_file_name + \".\"); }\n }", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n //set the driver name and track variables using methods below, which are also called from onSharedPreferencesChanged\n setDriver(sharedPreferences);\n setTrack(sharedPreferences);\n }", "public SharedPreferences getPrefs() { return this.prefs; }", "private void savePreferences() {\n SharedPrefStatic.mJobTextStr = mEditTextJobText.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobSkillStr = mEditTextSkill.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobLocationStr = mEditTextLocation.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobAgeStr = mEditTextAge.getText().toString().replace(\" \", \"\");\n\n SharedPreferences sharedPref = getSharedPreferences(AppConstants.PREF_FILENAME, 0);\n SharedPreferences.Editor editer = sharedPref.edit();\n editer.putString(AppConstants.PREF_KEY_TEXT, SharedPrefStatic.mJobTextStr);\n editer.putString(AppConstants.PREF_KEY_SKILL, SharedPrefStatic.mJobSkillStr);\n editer.putString(AppConstants.PREF_KEY_LOCATION, SharedPrefStatic.mJobLocationStr);\n editer.putString(AppConstants.PREF_KEY_AGE, SharedPrefStatic.mJobAgeStr);\n\n // The commit runs faster.\n editer.apply();\n\n // Run this every time we're building a query.\n SharedPrefStatic.buildUriQuery();\n SharedPrefStatic.mEditIntentSaved = true;\n }", "public void setUserPreferences (int outdoorPref, int nightlifePref, int hotelPref, int shoppingPref, int restaurantPref) {\n\t\tpreferences.clear(); \n\t\tpreferences.add(outdoorPref); \n\t\tpreferences.add(nightlifePref); \n\t\tpreferences.add(hotelPref); \n\t\tpreferences.add(shoppingPref); \n\t\tpreferences.add(restaurantPref); \n\t}", "private void saveSettings()\n {\n try\n {\n // If remember information is true then save the ip and port\n // properties to the projects config.properties file\n if ( rememberLoginIsSet_ )\n {\n properties_.setProperty( getString( R.string.saved_IP ), mIP_ );\n properties_.setProperty( getString( R.string.saved_Port ),\n mPort_ );\n }\n\n // Always save the remember login boolean\n properties_.setProperty( getString( R.string.saveInfo ),\n String.valueOf( rememberLoginIsSet_ ) );\n\n File propertiesFile =\n new File( this.getFilesDir().getPath().toString()\n + \"/properties.txt\" );\n FileOutputStream out =\n new FileOutputStream( propertiesFile );\n properties_.store( out, \"Swoop\" );\n out.close();\n }\n catch ( Exception ex )\n {\n System.err.print( ex );\n }\n }", "public void storePreferences(String userid, String token, JSONArray settings) throws JSONException {\n SharedPreferences sharedPreferences = getApplicationContext().getSharedPreferences(\"ca.gc.inspection.scoop\", Context.MODE_PRIVATE);\n\n JSONObject setting = settings.getJSONObject(0);\n Iterator<String> keys = setting.keys();\n while(keys.hasNext()){\n String settingKey = keys.next();\n if (settingKey.equals(useridStr)){ continue;}\n sharedPreferences.edit().putString(settingKey, setting.getString(settingKey)).apply();\n }\n\n // storing the token into shared preferences\n sharedPreferences.edit().putString(\"token\", token).apply();\n Config.token = token;\n\n // storing the user id into shared preferences\n sharedPreferences.edit().putString(useridStr, userid).apply();\n Config.currentUser = userid;\n\n // change activities once register is successful\n if(Config.token != null && Config.currentUser != null) registerSuccess();\n }", "private void loadPreferences() {\n\t\tXSharedPreferences prefApps = new XSharedPreferences(PACKAGE_NAME);\n\t\tprefApps.makeWorldReadable();\n\n\t\tthis.debugMode = prefApps.getBoolean(\"waze_audio_emphasis_debug\", false);\n }", "private void savePreferences() {\n SharedPreferences sp = getSharedPreferences(MY_PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sp.edit();\n\n editor.putInt(\"entreeIndex\", spEntree.getSelectedItemPosition());\n editor.putInt(\"drinkIndex\", spDrink.getSelectedItemPosition());\n editor.putInt(\"dessertIndex\", spDessert.getSelectedItemPosition());\n\n editor.apply();\n }", "private SharedPreferences getSharedPrefs() {\n return Freelancer.getContext().getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE);\n }", "Preferences userRoot();", "private synchronized void storeAppSettings() {\n\t \n\t\n \tif(_appSettings != null){\t\n \t\tAppLogger.debug2(\"AppFrame.storeAppSettings saving.\");\n\n \t\ttry {\t \n \t\t\tFileOutputStream oFile = new FileOutputStream(_configFile);\n\t\t\tOutputStream setupOutput = new DataOutputStream(oFile);\t\t \t\t\t\t\n\t\t\t_appSettings.store(setupOutput, \"\");\t\t\n \t\t}catch(Exception oEx){\n \t\tAppLogger.error(oEx);\n \t\t}\t\t \t\t\t\t\t\t\n\t}\t\t\t\t \t\n }", "private void writePref() {\n SharedPreferences.Editor editor = sp.edit();\n long currentTime = System.currentTimeMillis();\n editor.putLong(UPDATE, currentTime);\n editor.commit();\n System.out.println(\"Time of current update: \" + getDateFromLong(currentTime));\n }", "public void save() {\n\t\tpreferences().flush();\n\t}", "public Preferences getPrefs() {\n return _prefs;\n }", "private void preferences() {\n final Preferences prefs = Preferences.userNodeForPackage(DesktopPane.class);\n final JFileChooser chooser = new JFileChooser(prefs.get(SCREENSHOT_DIRECTORY_PREFS, null));\n chooser.setDialogTitle(\"Output directory for screenshots\");\n chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n switch (chooser.showOpenDialog(this)) {\n case JFileChooser.APPROVE_OPTION: {\n final File directory = chooser.getSelectedFile();\n if (directory != null) {\n prefs.put(SCREENSHOT_DIRECTORY_PREFS, directory.getPath());\n }\n break;\n }\n }\n }", "public void setPrefs(GamePreferences prefs) {\n\t\tthis.prefs = prefs;\n\t}", "@Override\n public void saveToPreferencesAdditional(PortletPreferences pp) {\n }", "void setPreference(String user, String preferenceName, String value) throws OntimizeJEERuntimeException;", "public void setUserPreferences(final BwPreferences val) {\n userPreferences = val;\n }", "private void getPreferences() {\n Constants constants = new Constants();\n android.content.SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n\n serverUrl = sharedPreferences.getString(\"LedgerLinkBaseUrl\", constants.DEFAULTURL);\n IsEditing = SharedPrefs.readSharedPreferences(getActivity(), \"IsEditing\", \"0\");\n tTrainerId = SharedPrefs.readSharedPreferences(getActivity(), \"ttrainerId\", \"-1\");\n vslaId = SharedPrefs.readSharedPreferences(getActivity(), \"vslaId\", \"-1\");\n\n vslaName = DataHolder.getInstance().getVslaName();\n representativeName = DataHolder.getInstance().getGroupRepresentativeName();\n representativePost = DataHolder.getInstance().getGroupRepresentativePost();\n repPhoneNumber = DataHolder.getInstance().getGroupRepresentativePhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n physAddress = DataHolder.getInstance().getPhysicalAddress();\n regionName = DataHolder.getInstance().getRegionName();\n grpPhoneNumber = DataHolder.getInstance().getGroupPhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n locCoordinates = DataHolder.getInstance().getLocationCoordinates();\n grpSupportType = DataHolder.getInstance().getSupportTrainingType();\n numberOfCycles = DataHolder.getInstance().getNumberOfCycles();\n }", "public static void savePreferences(final IProject project) {\n \tJob job= new Job(CCorePlugin.getResourceString(\"CCoreInternals.savePreferencesJob\")) { //$NON-NLS-1$\n \tprotected IStatus run(IProgressMonitor monitor) {\n \t\ttry {\n \t\t\tif (project != null) {\n \t\t\t\t\tnew LocalProjectScope(project).getNode(CCorePlugin.PLUGIN_ID).flush();\n \t\t\t\t\tnew ProjectScope(project).getNode(CCorePlugin.PLUGIN_ID).flush();\n \t\t\t}\n \t\t\tnew InstanceScope().getNode(CCorePlugin.PLUGIN_ID).flush();\n \t\t\t\t} catch (BackingStoreException e) {\n \t\t\t\t\tCCorePlugin.log(e);\n \t\t\t\t}\n \t \treturn Status.OK_STATUS;\n \t}\n \t};\n \tjob.setSystem(true);\n \tif (project != null) {\n \t\tIResourceRuleFactory rf= ResourcesPlugin.getWorkspace().getRuleFactory();\n \t\tIFile wsFile= project.getFile(new Path(SETTINGS_DIRECTORY_NAME).append(CCorePlugin.PLUGIN_ID + PREFS_FILE_EXTENSION));\n \t\tISchedulingRule[] rules= {\n \t\t\t\trf.modifyRule(wsFile), \n \t\t\t\trf.createRule(wsFile.getParent()),\n \t\t\t\trf.createRule(wsFile), \n \t\t\t\trf.deleteRule(wsFile) \n \t\t};\n \t\tjob.setRule(MultiRule.combine(rules));\n \t}\n \tjob.schedule(2000);\n \t}", "@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.pref);\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n //onSharedPreferenceChanged(sharedPreferences, getString(R.string.language_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.difficulty_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.word_category_key));\n }", "private Settings() {\n prefs = NbPreferences.forModule( Settings.class );\n }", "private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }", "public static void savePreference(SharedPreferences prefs, String key, Boolean value) {\n Editor e = prefs.edit();\n e.putBoolean(key, value);\n e.commit();\n }", "public void savePreferences() {\n\t\ttry\t{\n\t\t\tFile temp = new File(\"dropbox.ini\");\n\t\t\tif (temp.exists()) {\n\t\t\t\tdboxini.load(\"dropbox.ini\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Exception in loading dropbox.ini\");\n\t\t\treturn;\n\t\t}\n\n\t\t// Save window size.\n\t\tPoint sl = getLocationOnScreen();\n\t\tDimension sz = getSize();\n\t\tConfigSection wp = new ConfigSection(\"WindowState\");\n\t\twp.setIntProperty(\"xLoc\",sl.x);\n\t\twp.setIntProperty(\"yLoc\",sl.y);\n\t\twp.setIntProperty(\"width\",sz.width);\n\t\twp.setIntProperty(\"height\",sz.height);\n\t\tdboxini.removeSection(wp.getName());\n\t\tdboxini.addSection(wp);\n\n\t\t// Save ini file to disk.\n\t\ttry {\n\t\t\tdboxini.store(\"dropbox.ini\");\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to save preferences as dropbox.ini\");\n\t\t}\n\t}", "private void saveInPreferences(String gameName) {\n //Store name in shared preferences\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"gameName\", gameName);\n editor.commit();\n\n //Check if gameName stored\n //String storedPreference = preferences.getString(\"gameName\",\"none\");\n //Log.d(\"checkGameName\", storedPreference);\n }", "private void currentStateSaveToSharedPref() {\n sharedPreferences = getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"nameOfActiveChallenge\", nameOfCurrentChallenge);\n editor.putInt(\"key1OfActiveChallenge\", key1OfActiveChallenge);\n editor.putString(\"dateOfLastEdit\", dateOfLastEdit);\n editor.putFloat(\"goal\", goal);\n editor.putFloat(\"carry\", carry);\n editor.putInt(\"challengeDaysRunning\", challengeDaysRunning);\n editor.commit();\n }", "public void savingPreferences()\n {\n SharedPreferences sharedPreferences = getSharedPreferences(preferenceSaveInfo,MODE_PRIVATE);\n\n\n //tao doi tuong editer\n SharedPreferences.Editor editor = sharedPreferences.edit();\n String user = txtUserName.getText().toString();\n String pass = txtPassWord.getText().toString();\n\n boolean bchk = chkSave.isChecked();\n\n\n if(!bchk)\n {\n //xoa du lieu luu truoc do\n editor.clear();\n }\n else\n {\n editor.putString(\"user\",user);\n editor.putString(\"pass\",pass);\n editor.putBoolean(\"checked\",bchk);\n }\n\n editor.commit();\n\n\n }", "public void loadFromPreferences(SharedPreferences preferences){\r\n\t\tinitialSetuped = preferences.getBoolean(\"initialSetupped\", false);\r\n\t\tuserName = preferences.getString(\"username\", \"\");\r\n\t\tuserEmail = preferences.getString(\"useremail\", \"\");\r\n\t\trecipientEmail = preferences.getString(\"recipientemail\", \"\");\r\n\t\toption = WeightUnitOption.loadPreference(preferences.getBoolean(\"option\", true));\r\n\t}", "@Override\n public void storeSettings() {\n\n // Set the default value:\n Globals.prefs.put(JabRefPreferences.DEFAULT_BIBTEX_KEY_PATTERN, defaultPat.getText());\n Globals.prefs.putBoolean(JabRefPreferences.WARN_BEFORE_OVERWRITING_KEY, warnBeforeOverwriting.isSelected());\n Globals.prefs.putBoolean(JabRefPreferences.AVOID_OVERWRITING_KEY, dontOverwrite.isSelected());\n\n Globals.prefs.put(JabRefPreferences.KEY_PATTERN_REGEX, keyPatternRegex.getText());\n Globals.prefs.put(JabRefPreferences.KEY_PATTERN_REPLACEMENT, keyPatternReplacement.getText());\n Globals.prefs.putBoolean(JabRefPreferences.GENERATE_KEYS_AFTER_INSPECTION, autoGenerateOnImport.isSelected());\n Globals.prefs.putBoolean(JabRefPreferences.GENERATE_KEYS_BEFORE_SAVING, generateOnSave.isSelected());\n\n if (alwaysAddLetter.isSelected()) {\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_ALWAYS_ADD_LETTER, true);\n } else if (letterStartA.isSelected()) {\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_FIRST_LETTER_A, true);\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_ALWAYS_ADD_LETTER, false);\n }\n else {\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_FIRST_LETTER_A, false);\n Globals.prefs.putBoolean(JabRefPreferences.KEY_GEN_ALWAYS_ADD_LETTER, false);\n }\n\n // fetch entries from GUI\n GlobalBibtexKeyPattern keypatterns = getKeyPatternAsGlobalBibtexKeyPattern();\n // store new patterns globally\n prefs.putKeyPattern(keypatterns);\n }", "public static Collection<String> getPreferences(){\n\t\treturn preferences;\n\t}", "protected abstract IEditorPreferences getPreferences();", "public void saveData(){\n SharedPreferences sharedPreferences = getSharedPreferences(\"SHARED_PREFS\",MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"email_pref\",email.getText().toString());\n editor.putString(\"password_pref\",uPassword.getText().toString());\n editor.apply();\n }", "public Properties storeSettings() {\r\n return mSettings.storeSettings();\r\n }", "public void saveInPreference(String name, String content) {\n\t\tSharedPreferences preferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\tSharedPreferences.Editor editor = preferences.edit();\n\t\teditor.putString(name, content);\n\t\teditor.commit();\n\t}", "public BwPreferences getUserPreferences() {\n return userPreferences;\n }", "public static void savePreferences(Context context, String strKey, String strValue) {\n try {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(strKey, strValue);\n editor.commit();\n } catch (Exception e) {\n e.toString();\n\n }\n }", "public void save() {\n if(persistenceType == PropertyPersistenceType.Persistent) {\n if (!isSetToDefault()) {\n permanentStore.setBoolean(key, get());\n } else {\n permanentStore.remove(key);\n }\n }\n }", "@SuppressLint(\"CommitPrefEdits\")\n public HaloPreferencesStorageEditor(SharedPreferences preferences) {\n mPreferencesEditor = preferences.edit();\n }", "public void storeUserPrefs(User user) {\n //start writing (open the file)\n SharedPreferences.Editor editor = prefs.edit();\n //put the data\n Gson gson = new Gson();\n String json = gson.toJson(user);\n editor.putString(USER_PREFS, json);\n //close the file\n editor.apply();\n }", "UserSettings store(HawkularUser user, String key, String value);", "private SharedPreferences GetPreferences( Context context )\n\t{\n\t\treturn context.getSharedPreferences( CACHE_NAME, Context.MODE_PRIVATE );\n\t}", "@Override\n public Path getUserPrefsFilePath() {\n return userPrefsStorage.getUserPrefsFilePath();\n }", "public static void savePreferences(Context context, String strKey, Boolean blnValue) {\n try {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(strKey, blnValue);\n editor.commit();\n } catch (Exception e) {\n e.toString();\n }\n }", "private void savePreference() {\n\t\tString myEmail = ((TextView) findViewById(R.id.myEmail)).getText().toString();\n\t\tString myPassword = ((TextView) findViewById(R.id.myPassword)).getText().toString();\n\t\t\n\t\tEditor editor = sharedPreferences.edit();\n\t\teditor.putString(\"myEmail\", myEmail);\n\t\teditor.putString(\"myPassword\", myPassword);\n\t\teditor.putString(\"readOPtion\", Constants.READ_OPTION_SUBJECT_ONLY);\n\t\teditor.putInt(\"increment\", 10);\n\t\teditor.putString(\"bodyDoneFlag\", bodyDoneFlag);\n\t\teditor.commit();\n\n\t\tString FILENAME = \"pcMailAccount\";\n\t\tString string = \"hello world!\";\n\t\tString del = \"_____\";\n\t\t\n\t\tFile folder = new File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_DCIM + \"/VoiceMail\");\n\t\tif (!folder.isDirectory()) {\n\t\t\tfolder.mkdirs();\n\t\t}\n \n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfolder.createNewFile();\n//\t\t\tfos = openFileOutput(FILENAME, Context.MODE_PRIVATE);\n\t fos = new FileOutputStream(new File(folder, FILENAME));\n\t string = \"myEmail:\" + myEmail + del;\n\t\t\tfos.write(string.getBytes());\n\t string = \"myPassword:\" + myPassword + del;\n\t\t\tfos.write(string.getBytes());\n\t string = \"bodyDoneFlag:\" + bodyDoneFlag + del;\n\t\t\tfos.write(string.getBytes());\n\t\t\t\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private void showUserPreferences() {\r\n MyAccount ma = state.getMyAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n mOriginName.setEnabled(!ma.isPersistent());\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary = new StringBuilder(this.getText(R.string.summary_preference_username));\r\n if (ma.getUsername().length() > 0) {\r\n summary.append(\": \" + ma.getUsername());\r\n } else {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(ma.canSetUsername());\r\n\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(ma.canChangeOAuth());\r\n\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(ma.getConnection().isPasswordNeeded());\r\n\r\n int titleResId;\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (ma.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n mVerifyCredentials.setTitle(titleResId);\r\n mVerifyCredentials.setSummary(summary);\r\n mVerifyCredentials.setEnabled(ma.isOAuth() || ma.getCredentialsPresent());\r\n }", "private void savePreferenceData(String role){\n if (getIntent()!=null){\n SharedPreferences preferences = getSharedPreferences(detailPreference, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(preferenceKey, role);\n editor.apply();\n }\n }", "public static SharedPreferences getSharedPrefs() {\n return App.getAppContext().getSharedPreferences(PREFS_LABEL, Context.MODE_PRIVATE);\n }", "private void getPreferences() {\n\n if(sharedpreferences.getBoolean(\"usaGPU\", true)) {\n mUtilizzoGPU.setChecked(true);\n }\n else{\n mUtilizzoGPU.setChecked(false);\n }\n\n }", "private static void putPreferencesInXml(Element elt, Document doc, Preferences prefs, boolean subTree) throws BackingStoreException {\n Preferences[] kidsCopy = null;\n String[] kidNames = null;\n synchronized (((AbstractPreferences) prefs).lock) {\n if (((AbstractPreferences) prefs).isRemoved()) {\n elt.getParentNode().removeChild(elt);\n return;\n }\n int i;\n String[] keys = prefs.keys();\n Element map = (Element) elt.appendChild(doc.createElement(PolicyMappingsExtension.MAP));\n for (i = 0; i < keys.length; i++) {\n Element entry = (Element) map.appendChild(doc.createElement(\"entry\"));\n entry.setAttribute(\"key\", keys[i]);\n entry.setAttribute(\"value\", prefs.get(keys[i], null));\n }\n if (subTree) {\n kidNames = prefs.childrenNames();\n kidsCopy = new Preferences[kidNames.length];\n for (i = 0; i < kidNames.length; i++) {\n kidsCopy[i] = prefs.node(kidNames[i]);\n }\n }\n }\n }", "private void fetchPreferences() {\n macAddress = prefs.getString(getString(R.string.pref_mac), DEF_VALUE);\n macSet = prefs.getBoolean(getString(R.string.mac_set), false);\n //fetch previous values for temp, max, min\n tempMeasured = Double.parseDouble(prefs.getString(getString(R.string.text_temp), \"0\"));\n tempMax = Double.parseDouble(prefs.getString(getString(R.string.text_max), \"0\"));\n tempMin = Double.parseDouble(prefs.getString(getString(R.string.text_min), \"0\"));\n }", "private void setPreferences(String sw, boolean checked) {\n SharedPreferences sp = getActivity().getSharedPreferences(SETTINGS, Context.MODE_PRIVATE );\n SharedPreferences.Editor editor = sp.edit();\n editor.putBoolean(sw,checked);\n editor.apply();\n\n }", "private void LoadSavedPreferences() {\n\t\tString value;\n\t\tSharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\t// tab 3 ************************************************\n\t\tvalue = sharedPreferences.getString(\"tempSzad\", \"22\");\n\t\tettempSzad_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempPmaxdop\", \"70\");\n\t\tettempPmaxdop_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempZmaxdop\", \"22\");\n\t\tettempZmaxdop_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempPumpaON\", \"50\");\n\t\tettempPumpaON_.setText(value);\n\n\t\t// tab 1 ************************************************\n\t\tvalue = sharedPreferences.getString(\"tv1\", \"20.20\");\n\t\ttvS1.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tv2\", \"44.22\");\n\t\ttvS2.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tv3\", \"19.22\");\n\t\ttvS3.setText(value);\n\t}", "public void restore() {\n this.prefs.edit().putBoolean(PREFKEY_IS_KIOSK, tempIsKiosk).apply();\n this.prefs.edit().putBoolean(PREFKEY_IS_TABLET, tempIsTablet).apply();\n this.prefs.edit().putBoolean(PREFKEY_HTTP_SSL, tempSSL).apply();\n this.prefs.edit().putBoolean(PREFKEY_RES_FETCHED, tempFetched).apply();\n this.prefs.edit().putString(PREFKEY_HTTP_PORT, tempHttpPort).apply();\n this.prefs.edit().putString(PREFKEY_HTTP_HOST, tempHttpHost).apply();\n this.prefs.edit().putString(PREFKEY_PASSWORD, temppassword).apply();\n this.prefs.edit().putString(PREFKEY_USERNAME, tempUsername).apply();\n this.prefs.edit().putString(PREFKEY_BOOTSTRAP, tempBootstrap).apply();\n this.prefs.edit().putString(PREFKEY_ROOM_SELECTED, roomSelected).apply();\n this.prefs.edit().putString(PREFKEY_TO_IGNORE, toIgnore).apply();\n this.prefs.edit().putBoolean(PREFKEY_IS_IMAGE_DOWNLOADED, isImageDownloaded).apply();\n this.prefs.edit().putBoolean(PREFKEY_IS_IMAGE_LAN, isImageLan).apply();\n }", "private void loadPreferences() {\n SharedPreferences sp = getActivity().getSharedPreferences(SETTINGS, Context.MODE_PRIVATE );\n boolean lm = sp.getBoolean(getString(R.string.live_match), true);\n boolean ls = sp.getBoolean(getString(R.string.live_score), true);\n\n if(lm) live_match.setChecked(true);\n else live_match.setChecked(false);\n\n if(ls) live_score.setChecked(true);\n else live_score.setChecked(false);\n }", "public void writeSyncPreferences(String string){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = mSharedPreference.edit();\n editor.putString(getCurrentIdentity(),string);\n editor.commit();\n }", "public void save () {\n preference.putBoolean(\"sound effect\", hasSoundOn);\n preference.putBoolean(\"background music\", hasMusicOn);\n preference.putFloat(\"sound volume\", soundVolume);\n preference.putFloat(\"music volume\", musicVolume);\n preference.flush(); //this is called to write the changed data into the file\n }", "protected void storeSharedPrefs(String un2, String pwd2) {\n \teditor.putString(\"username\", un2);\n \teditor.putString(\"password\", pwd2); \t\n\t\teditor.commit(); //Commiting changes\n\t}", "SharedPreferences mo117960a();", "public static boolean saveSharedPreferencesToFile(File dst, Context context) {\n\t\tboolean res = false;\n\t\tObjectOutputStream output = null;\n\t\ttry {\n\t\t\toutput = new ObjectOutputStream(new FileOutputStream(dst));\n\t\t\tSharedPreferences pref = PreferenceManager\n\t\t\t\t\t.getDefaultSharedPreferences(context);\n\t\t\tSharedPreferences adminPreferences = context.getSharedPreferences(\n\t\t\t\t\tAdminPreferencesActivity.ADMIN_PREFERENCES, 0);\n\n\t\t\t// output.writeObject(pref.getAll());\n\t\t\t// output.writeObject(adminPreferences.getAll());\n\n\t\t\tGson gson = new Gson();\n\t\t\toutput.writeObject(gson.toJson(pref.getAll()));\n\t\t\toutput.writeObject(gson.toJson(adminPreferences.getAll()));\n\t\t\tLog.i(\"AdminPreferencesActivity\", gson.toJson(pref.getAll()));\n\t\t\tLog.i(\"AdminPreferencesActivity\", gson.toJson(adminPreferences.getAll()));\n\t\t\t\n\t\t\tres = true;\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} finally {\n\t\t\ttry {\n\t\t\t\tif (output != null) {\n\t\t\t\t\toutput.flush();\n\t\t\t\t\toutput.close();\n\t\t\t\t}\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "public void restoringPreferences()\n {\n SharedPreferences sharedPreferences = getSharedPreferences(preferenceSaveInfo,MODE_PRIVATE);\n\n //lay gia tri checkbook, k co mac dinh la false\n boolean bchk = sharedPreferences.getBoolean(\"checked\",false);\n if(bchk)\n {\n //lay user, pass, neu k co mac dinh gia tri la rong\n String user = sharedPreferences.getString(\"user\",\"\");\n String pass = sharedPreferences.getString(\"pass\",\"\");\n txtUserName.setText(\"user\");\n txtPassWord.setText(\"pass\");\n }\n\n chkSave.setChecked(bchk);\n }", "Preferences systemRoot();", "private void checkPreferences() {\n final Editor editor = AppUtils.getInstance().pPrefs.edit();\n boolean changed = false;\n if (AppUtils.getInstance().pPrefs.getString(Api.PREF_MODE, \"\").length() == 0) {\n editor.putString(Api.PREF_MODE, Api.MODE_WHITELIST);\n changed = true;\n }\n if (changed)\n editor.commit();\n }", "protected void makePref(){\n //Creates a shared pref called MyPref and 0-> MODE_PRIVATE\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //so the pref can be edit\n edit = sharedPref.edit();\n}" ]
[ "0.70883185", "0.7056551", "0.69699144", "0.69320494", "0.6920791", "0.6919936", "0.68851227", "0.6868633", "0.6842776", "0.6788304", "0.6788304", "0.6788304", "0.6788304", "0.67601585", "0.67352235", "0.66985554", "0.669633", "0.6623452", "0.65895975", "0.6562723", "0.655468", "0.654733", "0.6470358", "0.6459411", "0.64497733", "0.6423414", "0.6423076", "0.63966906", "0.63961554", "0.6337393", "0.631573", "0.62976635", "0.629206", "0.62831384", "0.625911", "0.62514347", "0.6248725", "0.62447554", "0.6206731", "0.61945826", "0.6189373", "0.61785156", "0.6149858", "0.613772", "0.6133468", "0.6117184", "0.6110363", "0.61082184", "0.6092448", "0.6091158", "0.60766727", "0.607", "0.60638267", "0.6055202", "0.60463715", "0.6041062", "0.6038267", "0.6029403", "0.60283124", "0.60244274", "0.601245", "0.5997946", "0.59963936", "0.5977768", "0.59743506", "0.5968624", "0.5959796", "0.59545827", "0.59468013", "0.5946797", "0.5945631", "0.5936536", "0.5929476", "0.5922816", "0.5918925", "0.59172535", "0.5914931", "0.5910704", "0.59104985", "0.589545", "0.5885129", "0.58794975", "0.5875077", "0.5867877", "0.5867658", "0.58671385", "0.5859119", "0.5846351", "0.5842919", "0.5836963", "0.58354187", "0.58315825", "0.5828659", "0.58267236", "0.58241916", "0.5824019", "0.5818655", "0.5815192", "0.5813017", "0.5806346" ]
0.6405403
27
/ Derived classes can put arbitrary filter on top of SiteFragmentdefined preferences. This is especially useful for sitewide timeout/nonblocking wrapper.
public ReactivePreferences intercept(ReactivePreferences prefs) { return prefs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addFilterToPolicyEntries(ViewerFilter filter);", "void setFilter(Filter f);", "public abstract String getDefaultFilter ();", "protected static void loadFilters(){ \n if ( System.getProperty(ASYNC_FILTER) != null){\n StringTokenizer st = new StringTokenizer(\n System.getProperty(ASYNC_FILTER),\",\");\n \n sharedAsyncFilters = new String[st.countTokens()]; \n int i = 0;\n while (st.hasMoreTokens()){\n sharedAsyncFilters[i++] = st.nextToken(); \n } \n } \n }", "public void setFilter (LSPFilter filter) {\r\n this.filter = filter;\r\n }", "void setFilter(String filter);", "FeatureHolder filter(FeatureFilter filter);", "public interface SharedWorkAreaFilter extends Filter {\n\n /**\n * @param userName\n */\n public void setUserName(String userName);\n \n /**\n * @return userName\n */\n public String getUserName();\n \n /**\n * @param firstName\n */\n public void setFirstName(String firstName);\n \n /**\n * @return First Name\n */\n public String getFirstName();\n \n /**\n * @param lastName\n */\n public void setLastName(String lastName);\n \n /**\n * @return Last Name\n */\n public String getLastName();\n \n /**\n * @param primaryDispatchCenter\n */\n public void setPrimaryDispatchCenter(String primaryDispatchCenter);\n \n /**\n * @return Primary Dispatch Center\n */\n public String getPrimaryDispatchCenter();\n \n /**\n * @param primaryOrganization\n */\n public void setPrimaryOrganization(String primaryOrganization);\n \n /**\n * @return Primary Organization\n */\n public String getPrimaryOrganization();\n \n /**\n * @return the {@link Collection} of roleVoIds\n */\n public Collection<Integer> getRoleVoIds();\n\n /**\n * @param roleVoIds the {@link Collection} of roleVoIds to set\n */\n public void setRoleVoIds(Collection<Integer> roleVoIds);\n \n public Collection<Long> getRoleVoIdsFromIntegers() throws Exception;\n \n /**\n\t * @param sharedUsers the sharedUsers to set\n\t */\n\tpublic void setSharedUsers(Boolean sharedUsers);\n\t\n\t/**\n\t * @return the sharedUsers\n\t */\n\tpublic Boolean getSharedUsers();\n}", "public void addBusinessFilterToPolicyEntries(ViewerFilter filter);", "public DefaultPolicyFilter()\n\t{\n\t\tthis.compiler = new StackMachineCompiler();\n\t\tthis.executionEngine = new StackMachine();\n\t}", "private void applyFilters() {\r\n\t\t// create the new filters\r\n\t\tViewerFilter[] filters = new ViewerFilter[] { new TransportStateViewFilter(IProgramStatus.PROGRAM_STATUS_PREBOOKING),\r\n\t\t\t\tnew TransportDirectnessFilter(IDirectness.TOWARDS_BRUCK), transportDateFilter, transportViewFilter };\r\n\t\t// set up the filters for the view\r\n\t\tviewerBruck.setFilters(filters);\r\n\t\tviewerGraz.setFilters(filters);\r\n\t\tviewerWien.setFilters(filters);\r\n\t\tviewerMariazell.setFilters(filters);\r\n\t\tviewerKapfenberg.setFilters(filters);\r\n\t\tviewerLeoben.setFilters(filters);\r\n\t}", "void onFilterChanged(ArticleFilter filter);", "@Override\n\tpublic void filterChange() {\n\t\t\n\t}", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "void setSampleFiltering(boolean filterFlag, float cutoffFreq) {\n }", "@Override\n public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {\n setPreferencesFromResource(R.xml.pref_filters, rootKey);\n }", "private static void addUserFilters() {\n List<FiltersByLocation> filtersByLocations=new ArrayList<>();\n List<String> listOfFilterNamesAlreadyAddedUnModified=HealthDataFilter.returnAllFilterNames();\n List<String> listOfFilterNamesAlreadyAdded=new ArrayList<>(listOfFilterNamesAlreadyAddedUnModified);\n\n Set <String> set1=new HashSet<>();\n set1.add(\"\");\n\n String whereForZipFilter1 = createWhereForZipFilter((HashSet<String>) set1);\n\n if (!listOfFilterNamesAlreadyAdded.contains(AppConstant.CURRENT_ZIP_CODE_FILTER_NAME)){\n filtersByLocations.add(new FiltersByLocation(AppConstant.CURRENT_ZIP_CODE_FILTER_NAME ,whereForZipFilter1));\n listOfFilterNamesAlreadyAdded.add(AppConstant.CURRENT_ZIP_CODE_FILTER_NAME);\n }\n\n Map<String, ?> userZipCodeFilters = PreferenceUtility.getUserZipCodeFilters();\n\n for (Map.Entry<String, ?> entry : userZipCodeFilters.entrySet()) {\n //Upper case\n String filterName=entry.getKey().substring(AppConstant.USER_PREF_ZIP_FILTER_PREFIX.length()).toUpperCase();\n String whereForZipFilter = createWhereForZipFilter((HashSet<String>) entry.getValue());\n if (!listOfFilterNamesAlreadyAdded.contains(filterName)){\n filtersByLocations.add(new FiltersByLocation(filterName,whereForZipFilter));\n }\n }\n }", "public void addBusinessFilterToParentModule(ViewerFilter filter);", "@Inject @Optional\n\tprivate void filterVariations(@UIEventTopic(TermSuiteEvents.NEW_VARIATION_FILTER) Map<Class<?>, Object> params) {\n\t\tif(Objects.equals(\n\t\t\t\tBrokerUtil.get(params, ETerminology.class),\n\t\t\t\tcontext.get(ETerminology.class))) {\n\t\t\tviewer.setFilters(null, BrokerUtil.get(params, VariationFilter.class));\n\t\t\tviewer.expandToLevel(2);\n\t\t}\n\t}", "public void addFilterToParentModule(ViewerFilter filter);", "private static void hideFilters(List<HealthDataFilter> allFilters) {\n Set<String> userHideFilterChoices = PreferenceUtility.getUserHideFilterChoices();\n if (userHideFilterChoices==null){\n if (AppConstant.DEBUG) Log.i(\"AppUtility:\"+\">\",\"Was no saved hidden filter\");\n return;\n }\n Iterator<HealthDataFilter> iterator = allFilters.iterator();\n while (iterator.hasNext()) {\n HealthDataFilter next = iterator.next();\n // if (next.getFilterName().equals(\"QUEENS\")){\n if (userHideFilterChoices.contains(next.getFilterName())){\n iterator.remove();\n }\n }\n }", "user_filter_reference getUser_filter_reference();", "public void setFilter(String filter)\n {\n filteredFrames.add(\"at \" + filter);\n }", "public void setUserFilter(final String userFilter)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n this.logger.trace(\"setting userFilter: \" + userFilter);\n }\n this.userFilter = userFilter;\n }", "@Override\n public boolean setFilter(String filterId, Filter filter) {\n return false;\n }", "private LogFilter() {\n\t\tacceptedEventTypes = new HashMap<String, Integer>();\n\t}", "public void addFilterToIncomingLinks(ViewerFilter filter);", "void setFilter(final PropertiedObjectFilter<O> filter);", "public abstract void updateFilter();", "public void addFilterToMethods(ViewerFilter filter);", "public void addBusinessFilterToMethodArguments(ViewerFilter filter);", "public void addBusinessFilterToMethods(ViewerFilter filter);", "public void addFilterToAnotations(ViewerFilter filter);", "public void addFilterToAnotations(ViewerFilter filter);", "void filterChanged(Filter filter);", "public void setFilter(EntityFilter filter);", "public void setFilterTo(LocalTime filterTo) {\n this.filterTo = filterTo;\n }", "public void addFilter(String token, String value) {\n if (token == null) {\n return;\n }\n globalFilterSet.addFilter(new FilterSet.Filter(token, value));\n }", "@Override public Filter getFilter() { return null; }", "public static void setWarrentyModeFilter(int warrentyModeFilter) {\r\n PCCTRL.warrentyModeFilter = warrentyModeFilter;\r\n }", "private void setPreSelectedFilters(String currentPlaceToken) {\n\t\tString gradeVal=AppClientFactory.getPlaceManager().getRequestParameter(\"flt.grade\",null);\n\t\tString subjectVal=AppClientFactory.getPlaceManager().getRequestParameter(\"flt.subjectName\",null);\n\t\tif(gradeVal!=null){\n\t\t\tsetSelectedFilter(eleGradePanelUc, gradeVal, \",\");\n\t\t\tsetSelectedFilter(middleGradePanelUc, gradeVal, \",\");\n\t\t\tsetSelectedFilter(highrGradePanelUc, gradeVal, \",\");\n\t\t}\n\t\tif(subjectVal!=null){\n\t\t\tsetSelectedFilter(subjectPanelUc, subjectVal, \" ~~\");\n\t\t}\n\t}", "public static int getWarrentyModeFilter() {\r\n return warrentyModeFilter;\r\n }", "public void addFilterToAttributes(ViewerFilter filter);", "public void setMayFilter (boolean filterAllowed) {\n\tmayFilter = filterAllowed && mayFilter;\n }", "Filter getFilter();", "public interface Filter {\n\n}", "boolean doFilter() { return false; }", "public interface IsFilterLevel\n {\n /**\n * offline\n */\n String UN_FILTER = \"0\";\n\n /**\n * online\n */\n String FILTER = \"1\";\n }", "String getFilter();", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "private void ini_CacheDB()\r\n\t{\r\n\t\tLogger.DEBUG(\"ini_CacheDB\");\r\n\t\t// chk if exist filter preset splitter \"#\" and Replace\r\n\r\n\t}", "public void addFilterToMethodArguments(ViewerFilter filter);", "public String getFilter();", "BuildFilter defaultFilter();", "Boolean filterEnabled();", "public void addFilterToImplements_(ViewerFilter filter);", "public FilterWidget()\n {\n this.browserConnection = null;\n this.initalFilter = null;\n }", "public interface FilterChain {\n\n // execute current filter's onEntry\n void onEntry(FilterContext ctx) throws SoaException;\n\n // execute current filter's onExit\n void onExit(FilterContext ctx)throws SoaException;\n\n\n}", "public void init(FilterConfig filterConfig) throws ServletException {\n\t\tString site = filterConfig.getInitParameter(\"Site\");\n\t\tSystem.out.println(\"site: \" + site);\n\t}", "public void set_filter(String field,String value){\n\t\tset_filter(field,value,\"\");\n\t}", "public void setFilter(Filter filter) {\n\t\tthis.filter = filter;\n\t}", "@Override\n public boolean shouldFilter() {\n return true;\n }", "public RegisterFilter() {\n\t\tqueryList = new ArrayList<QueryPart>();\n\t\torderList = new ArrayList<OrderPart>();\n\t}", "public PreOauth2SSOGatewayFilter() {\n super(Config.class);\n }", "public void setFilterHolder(ItemFilterHolder filterHolder)\r\n\t{\r\n\t\tthis.filterHolder = filterHolder;\r\n\t\tif (filterHolder != null && plugin == null)\r\n\t\t{\r\n\t\t\tsetPlugin(filterHolder.getPlugin());\r\n\t\t}\r\n\t}", "public int getFilterMode(){ return mFilterMode;}", "@Override\n public void overrideSettings(final String... keyvalues) {\n super.overrideSettings(keyvalues);\n if (mListMenuContainer == null || mListMenu == null) { // frankie, \n initializePopup();\n } else {\n overridePreferenceAccessibility();\n }\n mListMenu.overrideSettings(keyvalues);\n\n\t\t// frankie, 2017.08.15, add start \n\t\tif(AGlobalConfig.config_module_VIDEO_MODULE_use_new_settings_en) {\n\t if(mChusSettingsFragment == null) {\n\t createSettingFragment(); // fm.commitAllowingStateLoss -> __lifeCycleCallback.onCreate -> overridePreferenceAccessibility_i\n\t }\n\t\t\telse {\n\t\t\t\toverridePreferenceAccessibility_i();\n\t\t\t}\n\t\t\tif(mChusSettingsFragment != null) {\n\t\t\t\tmChusSettingsFragment.overrideSettings(keyvalues);\n\t\t\t}\n\t\t}\n\t\t// frankie, 2017.08.15, add end\n\t\t\n }", "public LSPFilter getFilter () {\r\n return filter;\r\n }", "public void addBusinessFilterToParentLayer(ViewerFilter filter);", "public void setVideoDisplayFilter(String filtername);", "@Override\n\tpublic String buidWfsURL(WrapperFilter filter) {\n\t\treturn null;\n\t}", "private void initFilter() {\r\n if (filter == null) {\r\n filter = new VocabularyConceptFilter();\r\n }\r\n filter.setVocabularyFolderId(vocabularyFolder.getId());\r\n filter.setPageNumber(page);\r\n filter.setNumericIdentifierSorting(vocabularyFolder.isNumericConceptIdentifiers());\r\n }", "FilterInfo setCanaryFilter(String filter_id, int revision);", "public void addBusinessFilterToImplements_(ViewerFilter filter);", "@Override\n public Filter getFilter() {\n return main_list_filter;\n }", "@DISPID(-2147412069)\n @PropGet\n java.lang.Object onfilterchange();", "public static void setLinksFilterStatus(boolean tof) { linksFilter = tof; }", "@Override\n\tpublic void init(FilterConfig filterConfig) {\n\n\t}", "public String getUserFilter()\n {\n return this.userFilter;\n }", "void handleManualFilterRequest();", "FilterInfo setFilterActive(String filter_id, int revision) throws Exception;", "void enableFilter(boolean enable);", "static ObjectInputFilter createFilter(String param2String, boolean param2Boolean) {\n/* 446 */ Global global = new Global(param2String, param2Boolean);\n/* 447 */ return global.isEmpty() ? null : global;\n/* */ }", "FilterInfo addFilter(String filtercode, String filter_type, String filter_name, String disableFilterPropertyName, String filter_order);", "public void addBusinessFilterToIncomingLinks(ViewerFilter filter);", "public void addBusinessFilterToAnotations(ViewerFilter filter);", "public void addBusinessFilterToAnotations(ViewerFilter filter);", "public interface RpcFilter {\n\n boolean needToLoad();\n\n void before(FilterContext context);\n\n void after(Object obj, FilterContext context);\n}", "public void addBusinessFilterToReader(ViewerFilter filter);", "B filteringMode(FilteringMode filteringMode);", "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }", "public abstract boolean isFilterApplicable ();", "Map<String, String> getFilters();", "public static String loadAuthenticationFilter() {\n String customAuthFilterClassName = JiveGlobals.getProperty(CUSTOM_AUTH_PROPERTY_NAME);\n String restAuthType = JiveGlobals.getProperty(REST_AUTH_TYPE);\n String pickedAuthFilter = AUTHFILTER;\n \n try {\n if(customAuthFilterClassName != null && \"custom\".equals(restAuthType)) {\n Class.forName(customAuthFilterClassName, false, JerseyWrapper.class.getClassLoader());\n pickedAuthFilter = customAuthFilterClassName;\n loadingStatusMessage = null;\n }\n } catch (ClassNotFoundException e) {\n loadingStatusMessage = \"No custom auth filter found for restAPI plugin! \" + customAuthFilterClassName + \" \" + restAuthType;\n }\n \n prc.getProperties().put(CONTAINER_REQUEST_FILTERS, pickedAuthFilter);\t\n return loadingStatusMessage;\n }", "public FalseFilter() {\n\t\t//can be ignored\n\t}", "public void addBusinessFilterToAttributes(ViewerFilter filter);", "public interface Filter {\n int NONE=0;\n int MOST_TIME_LEFT=1;\n int LEAST_TIME_LEFT=2;\n int COMPLETE=3;\n int INCOMPLETE=4;\n}", "public void setFilter(String filter) {\n\t\tthis.filter = filter;\n\n\t}", "@Override\r\n\t public Filter getFilter() {\n\t return null;\r\n\t }", "@Override\n\tpublic boolean shouldFilter() {\n\t\treturn true;\n\t}" ]
[ "0.56458235", "0.5498357", "0.54913205", "0.5419093", "0.54069877", "0.5331347", "0.5316849", "0.5299666", "0.52631444", "0.52412236", "0.522527", "0.5192138", "0.51824814", "0.5174983", "0.5174983", "0.5170167", "0.51549", "0.5120829", "0.50874215", "0.5077575", "0.5060918", "0.50337404", "0.50336313", "0.5018709", "0.5018218", "0.4995881", "0.49825767", "0.49746913", "0.49675763", "0.49567062", "0.49554747", "0.4944145", "0.49402022", "0.49376193", "0.49376193", "0.49361932", "0.49251443", "0.4924231", "0.49214622", "0.49186453", "0.4912546", "0.49044082", "0.4895727", "0.4890098", "0.48895085", "0.4880685", "0.48791662", "0.48774976", "0.48771882", "0.48703742", "0.48511785", "0.4847932", "0.48473275", "0.48394638", "0.48393887", "0.4835222", "0.4834533", "0.4832149", "0.48296723", "0.48289892", "0.4828476", "0.482622", "0.4823743", "0.48226383", "0.4820587", "0.481596", "0.48152015", "0.4812651", "0.48045233", "0.48028287", "0.47986287", "0.4794657", "0.47941026", "0.47916567", "0.47870326", "0.47845992", "0.47839427", "0.4774289", "0.47690985", "0.4758991", "0.4751859", "0.4746601", "0.4743771", "0.47426498", "0.47403523", "0.47351503", "0.47267047", "0.47267047", "0.47209057", "0.47186396", "0.4717819", "0.47119808", "0.47096327", "0.47092927", "0.46970335", "0.46947643", "0.46930367", "0.46924794", "0.46902502", "0.46825773", "0.46823245" ]
0.0
-1
/ TODO: Any way to use standard APIs not tied to jetty?
protected void registerServlets(ServletContextHandler handler) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ServletContextAware {\r\n\r\n /**\r\n * Called by GuiceContainerFactory when initialize module.\r\n *\r\n * @param servletContext ServletContext object to be used by this object\r\n */\r\n void setServletContext(ServletContext servletContext);\r\n\r\n}", "public interface WebappRuntime extends ServletRequestListener, HttpSessionListener, SCA4JRuntime<WebappHostInfo> {\n\n /**\n * Activates a composite in the domain.\n *\n * @param qName the composite qualified name\n * @param componentId the id of the component that should be bound to the webapp\n * @throws DeploymentException if there was a problem initializing the composite\n * @throws ContributionException if an error is found in the contribution. If validation errors are encountered, a ValidationException will be\n * thrown.\n */\n void activate(QName qName, URI componentId) throws ContributionException, DeploymentException;\n\n /**\n * Returns the ServletRequestInjector for the runtime.\n *\n * @return the ServletRequestInjector for the runtime\n */\n ServletRequestInjector getRequestInjector();\n\n}", "public static void main(String[] args) throws Exception {\n URL webRootLocation = MainView.class.getResource(\"/webapp/\"); //src/masin\n URI webRootUri = webRootLocation.toURI();\n\n WebAppContext context = new WebAppContext();\n context.setBaseResource(Resource.newResource(webRootUri));\n context.setContextPath(\"/\");\n context.setAttribute(\"org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern\", \".*\");\n context.setConfigurationDiscovered(true);\n context.setConfigurations(new Configuration[]{\n new AnnotationConfiguration(),\n new WebInfConfiguration(),\n new WebXmlConfiguration(),\n new MetaInfConfiguration()\n });\n context.getServletContext().setExtendedListenerTypes(true);\n context.addEventListener(new ServletContextListeners());\n\n Server server = new Server(8080);\n server.setHandler(context);\n server.start();\n server.join();\n }", "public interface MyWebInitializer {\n void onStartup(ServletContext servletContext) throws ServletException;\n}", "public interface JettyConnectorFactory {\n\n\t/**\n\t * Build and configure a connector for our web server.\n\t */\n\tpublic Connector buildConnector(Server server, int serverPort);\n}", "private void initialize() throws IOException, ServletException, URISyntaxException {\n\n LOG.info(\"Initializing the internal Server\");\n Log.setLog(new Slf4jLog(Server.class.getName()));\n\n /*\n * Create and configure the server\n */\n this.server = new Server();\n this.serverConnector = new ServerConnector(server);\n this.serverConnector.setReuseAddress(Boolean.TRUE);\n\n LOG.info(\"Server configure ip = \" + DEFAULT_IP);\n LOG.info(\"Server configure port = \" + DEFAULT_PORT);\n\n this.serverConnector.setHost(DEFAULT_IP);\n this.serverConnector.setPort(DEFAULT_PORT);\n this.server.addConnector(serverConnector);\n\n /*\n * Setup the basic application \"context\" for this application at \"/iop-node\"\n */\n this.servletContextHandler = new ServletContextHandler(ServletContextHandler.SESSIONS);\n this.servletContextHandler.setContextPath(JettyEmbeddedAppServer.DEFAULT_CONTEXT_PATH);\n this.server.setHandler(servletContextHandler);\n\n /*\n * Initialize webapp layer\n */\n WebAppContext webAppContext = new WebAppContext();\n webAppContext.setContextPath(JettyEmbeddedAppServer.DEFAULT_CONTEXT_PATH);\n\n URL webPath = JettyEmbeddedAppServer.class.getClassLoader().getResource(\"web\");\n LOG.info(\"webPath = \" + webPath.getPath());\n\n webAppContext.setResourceBase(webPath.toString());\n webAppContext.setContextPath(JettyEmbeddedAppServer.DEFAULT_CONTEXT_PATH+\"/web\");\n webAppContext.addBean(new ServletContainerInitializersStarter(webAppContext), true);\n webAppContext.setWelcomeFiles(new String[]{\"index.html\"});\n webAppContext.addFilter(AdminRestApiSecurityFilter.class, \"/rest/api/v1/admin/*\", EnumSet.of(DispatcherType.REQUEST));\n webAppContext.setInitParameter(\"org.eclipse.jetty.servlet.Default.dirAllowed\", \"false\");\n servletContextHandler.setHandler(webAppContext);\n server.setHandler(webAppContext);\n\n /*\n * Initialize restful service layer\n */\n ServletHolder restfulServiceServletHolder = new ServletHolder(new HttpServlet30Dispatcher());\n restfulServiceServletHolder.setInitParameter(\"javax.ws.rs.Application\", JaxRsActivator.class.getName());\n restfulServiceServletHolder.setInitParameter(\"resteasy.use.builtin.providers\", \"true\");\n restfulServiceServletHolder.setAsyncSupported(Boolean.TRUE);\n webAppContext.addServlet(restfulServiceServletHolder, \"/rest/api/v1/*\");\n\n this.server.dump(System.err);\n\n }", "public static void main(String[] args) throws Exception {\n\n\t\tServer server = new Server(8080);\n\n\t\tWebAppContext bb = new WebAppContext();\n\t\tbb.setServer(server);\n\n\t\tbb.addFilter(GuiceFilter.class, \"/*\", EnumSet.allOf(DispatcherType.class));\n\n\t\tServletHolder holder = bb.addServlet(ServletContainer.class, \"/*\");\n\t\tholder.setInitParameter(\"javax.ws.rs.Application\", \"net.ludeke.rest.jersey.MyApplication\");\n\n\t\tbb.addServlet(holder, \"/*\");\n\t\tbb.setContextPath(\"/\");\n\t\tbb.setWar(\"src/main/webapp\");\n\n\t\tserver.setHandler(bb);\n\n\t\ttry {\n\t\t\tSystem.out.println(\">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP\");\n\t\t\tserver.start();\n\t\t\twhile (System.in.available() == 0) {\n\t\t\t\tThread.sleep(5000);\n\t\t\t}\n\t\t\tserver.stop();\n\t\t\tserver.join();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(100);\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n\n String context = System.getProperty(\"rjrcontext\");\n String webAppDir = System.getProperty(\"rjrwebapp\");\n Integer port = Integer.getInteger(\"rjrport\");\n Integer sslport = Integer.getInteger(\"rjrsslport\");\n String webAppClassPath = System.getProperty(\"rjrclasspath\");\n String keystore = System.getProperty(\"rjrkeystore\");\n String password = System.getProperty(\"rjrpassword\");\n String keyPassword = System.getProperty(\"rjrkeypassword\");\n\n if (context == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrcontext\");\n }\n if (webAppDir == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrwebapp\");\n }\n if (port == null && sslport == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrport and/or -Drjrsslport\");\n }\n\n Server server = new Server();\n\n if (port != null) {\n SelectChannelConnector connector = new SelectChannelConnector();\n connector.setPort(port);\n\n if (sslport != null) {\n connector.setConfidentialPort(sslport);\n }\n\n server.addConnector(connector);\n }\n\n if (sslport != null) {\n if (keystore == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrkeystore with -Drjrsslport\");\n }\n if (password == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrpassword with -Drjrsslport\");\n }\n if (keyPassword == null) {\n throw new IllegalStateException(\"you need to provide argument -Drjrkeypassword with -Drjrsslport\");\n }\n\n SslSocketConnector sslConnector = new SslSocketConnector();\n sslConnector.setKeystore(keystore);\n sslConnector.setPassword(password);\n sslConnector.setKeyPassword(keyPassword);\n\n sslConnector.setMaxIdleTime(30000);\n sslConnector.setPort(sslport);\n\n server.addConnector(sslConnector);\n }\n\n WebAppContext web = new WebAppContext();\n web.setContextPath(context);\n web.setWar(webAppDir);\n\n // Fix issue 7, File locking on windows/Disable Jetty's locking of static files\n // http://code.google.com/p/run-jetty-run/issues/detail?id=7\n // by disabling the use of the file mapped buffers. The default Jetty behavior is\n // intended to provide a performance boost, but run-jetty-run is focused on\n // development (especially debugging) of web apps, not high-performance production\n // serving of static content. Therefore, I'm not worried about the performance\n // degradation of this change. My only concern is that there might be a need to\n // test this feature that I'm disabling.\n web.setInitParams(Collections.singletonMap(\"org.mortbay.jetty.servlet.Default.useFileMappedBuffer\", \"false\"));\n\n if (webAppClassPath != null) {\n ProjectClassLoader loader = new ProjectClassLoader(web, webAppClassPath);\n web.setClassLoader(loader);\n }\n\n server.addHandler(web);\n\n MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();\n MBeanContainer mBeanContainer = new MBeanContainer(mBeanServer);\n server.getContainer().addEventListener(mBeanContainer);\n mBeanContainer.start();\n\n try {\n server.start();\n server.join();\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(100);\n }\n return;\n }", "public IStatus prepareForServingDirectly(IPath baseDir, TomcatServer server, String tomcatVersion);", "public interface HttpServletRequestHandler {\r\n\tpublic void handle(HttpServletRequest request, HttpServletResponse response) throws IOException;\r\n}", "public interface EndpointBase {\n\n boolean isIdleNow();\n\n /**\n * @param connectionTimeout\n * @param methodTimeout\n */\n void setTimeouts(int connectionTimeout, int methodTimeout);\n\n /**\n * @param alwaysMainThread\n */\n void setCallbackThread(boolean alwaysMainThread);\n\n /**\n * @param flags\n */\n void setDebugFlags(int flags);\n\n int getDebugFlags();\n\n /**\n * @param delay\n */\n void setDelay(int delay);\n\n void addErrorLogger(ErrorLogger logger);\n\n void removeErrorLogger(ErrorLogger logger);\n\n void setOnRequestEventListener(OnRequestEventListener listener);\n\n\n void setPercentLoss(float percentLoss);\n\n int getThreadPriority();\n\n void setThreadPriority(int threadPriority);\n\n\n ProtocolController getProtocolController();\n\n void setUrlModifier(UrlModifier urlModifier);\n\n /**\n * No log.\n */\n int NO_DEBUG = 0;\n\n /**\n * Log time of requests.\n */\n int TIME_DEBUG = 1;\n\n /**\n * Log request content.\n */\n int REQUEST_DEBUG = 2;\n\n /**\n * Log response content.\n */\n int RESPONSE_DEBUG = 4;\n\n /**\n * Log cache behavior.\n */\n int CACHE_DEBUG = 8;\n\n /**\n * Log request code line.\n */\n int REQUEST_LINE_DEBUG = 16;\n\n /**\n * Log request and response headers.\n */\n int HEADERS_DEBUG = 32;\n\n /**\n * Log request errors\n */\n int ERROR_DEBUG = 64;\n\n /**\n * Log cancellations\n */\n int CANCEL_DEBUG = 128;\n\n /**\n * Log cancellations\n */\n int THREAD_DEBUG = 256;\n\n /**\n * Log everything.\n */\n int FULL_DEBUG = TIME_DEBUG | REQUEST_DEBUG | RESPONSE_DEBUG | CACHE_DEBUG | REQUEST_LINE_DEBUG | HEADERS_DEBUG | ERROR_DEBUG | CANCEL_DEBUG;\n\n int INTERNAL_DEBUG = FULL_DEBUG | THREAD_DEBUG;\n\n /**\n * Created by Kuba on 17/07/14.\n */\n interface UrlModifier {\n\n String createUrl(String url);\n\n }\n\n interface OnRequestEventListener {\n\n void onStart(Request request, int requestsCount);\n\n void onStop(Request request, int requestsCount);\n\n }\n}", "public static void main(String... args) throws IOException {\r\n\r\n checkDatabaseConnectivity();\r\n checkServerProperties();\r\n checkSchedulerProperties();\r\n server = new Server(port);\r\n\r\n try {\r\n ServletContextHandler context = new ServletContextHandler(\r\n ServletContextHandler.SESSIONS\r\n | ServletContextHandler.SECURITY);\r\n\r\n context.setInitParameter(\r\n \"org.eclipse.jetty.servlet.SessionIdPathParameterName\",\r\n \"none\");\r\n\r\n context.setContextPath(\"/\");\r\n context.setSecurityHandler(setUpSecurityHandler());\r\n AppServlet.getInstance().setLoginService(\r\n (HashLoginService) context.getSecurityHandler()\r\n .getLoginService());\r\n\r\n context.addServlet(new ServletHolder(AppServlet.getInstance()),\r\n \"/*\");\r\n context.addServlet(new ServletHolder(UserServlet.getInstance()),\r\n \"/users/*\");\r\n context.addServlet(new ServletHolder(ModuleServlet.getInstance()),\r\n \"/modules/*\");\r\n context.addServlet(new ServletHolder(RoomServlet.getInstance()),\r\n \"/rooms/*\");\r\n context.addServlet(\r\n new ServletHolder(EquipmentServlet.getInstance()),\r\n \"/equipment/*\");\r\n context.addServlet(\r\n new ServletHolder(TimeframeServlet.getInstance()),\r\n \"/timeframe/*\");\r\n context.addServlet(\r\n new ServletHolder(SchedulerServlet.getInstance()),\r\n \"/scheduler/*\");\r\n\r\n ContextHandler fileHandler = new ContextHandler();\r\n fileHandler.setContextPath(\"/resources\");\r\n ResourceHandler resourceHandler = new ResourceHandler();\r\n resourceHandler.setResourceBase(\"site/resources\");\r\n fileHandler.setHandler(resourceHandler);\r\n\r\n ContextHandlerCollection contexts = new ContextHandlerCollection();\r\n contexts.setHandlers(new Handler[] { context, fileHandler });\r\n server.setHandler(contexts);\r\n\r\n server.start();\r\n\r\n } catch (Exception e) {\r\n System.err.println(\"Server failed to start.\");\r\n e.printStackTrace();\r\n }\r\n }", "@BeforeClass\n public static void startEmbeddedJetty_9_1_1() throws Exception {\n server = new Server( 8080 );\n \n WebAppContext webapp = new WebAppContext();\n webapp.setContextPath( \"/websock-webapp\" );\n //But the .war should already have WebSocketServerEndpoint.class in it \n webapp.setWar( new File( \".\", \"../webapp/target/\" + WebAppConstants.WEBSOCKET_WEBAPP_NAME + \".war\" ).getPath() );\n server.setHandler( webapp );\n // Initialize the WebSocket Server Container\n WebSocketServerContainerInitializer.configureContext( webapp ); \n server.start();\n \n // After Jetty started and WebSocket Server Container was initialized, obtain it\n webSocketServerContainer = ( ServerContainer ) webapp.getServletContext().getAttribute( \n javax.websocket.server.ServerContainer.class.getName() );\n assertNotNull( webSocketServerContainer );\n System.out.println( \"--->> webSocketServerContainer [\" + webSocketServerContainer + \"] of class [\" + \n ( webSocketServerContainer == null ? null : webSocketServerContainer.getClass().getName() ) + \"]\" );\n \n //This should really NOT be needed since WebSocketServerEndpoint is in the .war and should be\n //picked up via annotation. PLUS this requires refactoring WebSocketServerEndpoint from out of the\n // /webapp child module into /common which is really unnecessary at this point.\n // webSocketServerContainer.addEndpoint( WebSocketServerEndpoint.class );\n \n WebSocketContainer container = ContainerProvider.getWebSocketContainer();\n assertNotNull( \"Jetty WebSockets Container is null\", container );\n container.connectToServer( WebSocketClientEndpoint.class,\n// // \"ws://localhost:8080/websock-webapp/echo\"\n new URI( WebAppConstants.WEBSOCKET_FULL_URL ) );\n \n/* This still throws the same damn, exception\n \nCaused by: org.eclipse.jetty.websocket.api.UpgradeException: Didn't switch protocols\n\tat org.eclipse.jetty.websocket.client.io.UpgradeConnection.validateResponse(UpgradeConnection.java:272)\n\tat org.eclipse.jetty.websocket.client.io.UpgradeConnection.read(UpgradeConnection.java:203)\n\tat org.eclipse.jetty.websocket.client.io.UpgradeConnection.onFillable(UpgradeConnection.java:148) \n*/ \n \n /* \n Running server as standalone and client as standalone via Spring work though.\n \n final ServletHolder servletHolder = new ServletHolder( new DefaultServlet() );\n final ServletContextHandler context = new ServletContextHandler();\n\n context.setContextPath( \"/\" );\n context.addServlet( servletHolder, \"/*\" );\n context.addEventListener( new ContextLoaderListener() ); \n context.setInitParameter( \"contextClass\", AnnotationConfigWebApplicationContext.class.getName() );\n context.setInitParameter( \"contextConfigLocation\", AppConfig.class.getName() );\n */\n \n }", "private Servlets() {\n\t\tthrow new AssertionError();\n\t}", "public WebServer()\n {\n if (!Variables.exists(\"w_DebugLog\"))\n Variables.setVariable(\"w_DebugLog\", true);\n\n if (!Variables.exists(\"w_Port\"))\n Variables.setVariable(\"w_Port\", 80);\n\n if (!Variables.exists(\"w_NetworkBufferSize\"))\n Variables.setVariable(\"w_NetworkBufferSize\", 2048);\n\n PORT = Variables.getInt(\"w_Port\");\n DEBUG = Variables.getBoolean(\"w_DebugLog\");\n BUFFER_SIZE = Variables.getInt(\"w_NetworkBufferSize\");\n }", "public static void main(String[] args) throws IOException {\n ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);\n context.setContextPath(\"/\");\n\n // Establish DB connection first\n\n // now start the server\n System.out.println(\"=== Initializing server on port \" + PORT);\n\n Server jettyServer = new Server(PORT);\n jettyServer.setHandler(context);\n\n if (LOG_REQUESTS) {\n RequestLog requestLog = new RipLogger();\n jettyServer.setRequestLog(requestLog);\n }\n\n ServletHolder jerseyServlet = context.addServlet(ServletContainer.class, \"/sudoku/*\");\n jerseyServlet.setInitOrder(0);\n jerseyServlet.setInitParameter(\"jersey.config.server.provider.packages\", \"com.shadedreality.rest\");\n\n try {\n jettyServer.start();\n jettyServer.dumpStdErr();\n jettyServer.join();\n } catch (Exception e) {\n System.err.println(\"Uncaught Exception in server: \"+e);\n }\n finally {\n jettyServer.destroy();\n }\n }", "public static HttpServer startServer() {\n // create a resource config that scans for JAX-RS resources and providers\n // in com.example.rest package\n final ResourceConfig rc = new ResourceConfig().packages(\"com.assignment.backend\");\n rc.register(org.glassfish.jersey.moxy.json.MoxyJsonFeature.class);\n rc.register(getAbstractBinder());\n rc.property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, true);\n rc.property(ServerProperties.BV_DISABLE_VALIDATE_ON_EXECUTABLE_OVERRIDE_CHECK, true);\n\n // create and start a new instance of grizzly http server\n // exposing the Jersey application at BASE_URI\n return GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), rc);\n }", "private ServletUtils() { }", "private void startServlets(){\n\t\ttry{\n\t\t\tserver = new Server();\n\t\t\tServerConnector c = new ServerConnector(server);\n\t\t\tc.setIdleTimeout(15000);\n\t\t\tc.setAcceptQueueSize(256);\n\t\t\tc.setPort(port);\n\t\t\tif(!bind.equals(\"*\")){\n\t\t\t\tc.setHost(bind);\n\t\t\t}\n\n\t\t\tServletContextHandler handler = new ServletContextHandler(server,\"/\", true, false);\n\t\t\tServletHolder servletHolder = new ServletHolder(StatusServlet.class);\n\t\t\thandler.addServlet(servletHolder, \"/status/*\");\n\n\t\t\tservletHolder = new ServletHolder(SampleAPIServlet.class);\n\t\t\thandler.addServlet(servletHolder, \"/sample/*\");\n\n\t\t\tservletHolder = new ServletHolder(FileServlet.class);\n\t\t\thandler.addServlet(servletHolder, \"/*\");\n\t\t\tFileServlet.sourceFolder=\"./site\";\t\t\t\n\n\t\t\tserver.addConnector(c);\n\t\t\tserver.start();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] argv)\n {\n int p = determinePort(argv, 10000);\n XmlRpc.setKeepAlive (true);\n SecureWebServer webserver = new SecureWebServer (p);\n\n try\n {\n webserver.addDefaultHandlers();\n webserver.start();\n }\n catch (Exception e)\n {\n System.err.println(\"Error running secure web server\");\n e.printStackTrace();\n System.exit(1);\n }\n }", "@Singleton\n\t@Provides\n\tServer provideServer(final Injector injector, final ExecutorService execService) {\n\t\tfinal Server server = new Server(port);\n\t\tServletContextHandler sch = new ServletContextHandler(server, \"/jfunk\");\n\t\tsch.addEventListener(new JFunkServletContextListener(injector));\n\t\tsch.addFilter(GuiceFilter.class, \"/*\", null);\n\t\tsch.addServlet(DefaultServlet.class, \"/\");\n\n\t\tRuntime.getRuntime().addShutdownHook(new Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\texecService.shutdown();\n\t\t\t\t\texecService.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);\n\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t\tlog.error(ex.getMessage(), ex);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tserver.stop();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlog.error(\"Error stopping Jetty.\", ex);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn server;\n\t}", "public interface WebApiServer {\n\t\n\t/**\n\t * <p>Starts the server on the specified port.\n\t * \n\t * @param port The port at which the server is to be started.\n\t */\n\tpublic void start(int port);\n\t\n\t/**\n\t * <p>Stops the server and releases the port.\n\t */\n\tpublic void stop();\n\t\n}", "@BeforeAll\n public static void start() throws Exception {\n server = new Server(0);\n ((QueuedThreadPool)server.getThreadPool()).setMaxThreads(20);\n ServletContextHandler context = new ServletContextHandler();\n context.setContextPath(\"/foo\");\n server.setHandler(context);\n context.addServlet(new ServletHolder(TestServlet.class), \"/bar\");\n context.addServlet(new ServletHolder(TimeOutTestServlet.class), \"/timeout\");\n ((ServerConnector)server.getConnectors()[0]).setHost(\"localhost\");\n server.start();\n originalPort = ((ServerConnector)server.getConnectors()[0]).getLocalPort();\n LOG.info(\"Running embedded servlet container at: http://localhost:{}\", originalPort);\n // This property needs to be set otherwise CORS Headers will be dropped\n // by HttpUrlConnection\n System.setProperty(\"sun.net.http.allowRestrictedHeaders\", \"true\");\n }", "@Override\n protected Logger newLogger(String name) {\n return new JettyLogger(name);\n }", "IMember getServerStub();", "public interface CeylonDelegate {\n void init(ServletConfig config) throws ServletException;\n\n boolean service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException;\n\n void destroy();\n}", "public static ETLgineServerJetty getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new ETLgineServerJetty();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public HttpServlet() {\r\n\t\tsuper();\r\n\t}", "private void setupJspHandler(WebAppContext context) throws IOException {\n JettyJasperInitializer sci = new JettyJasperInitializer();\n\n ServletContainerInitializersStarter sciStarter = new ServletContainerInitializersStarter(context);\n ContainerInitializer initializer = new ContainerInitializer(sci, null);\n List<ContainerInitializer> initializers = new ArrayList<ContainerInitializer>();\n initializers.add(initializer);\n context.setAttribute(\"org.eclipse.jetty.containerInitializers\", initializers);\n context.addBean(sciStarter, true);\n System.setProperty(\"org.apache.jasper.compiler.disablejsr199\",\"false\");\n\n // Set Classloader of Context to be sane (needed for JSTL)\n // JSP requires a non-System classloader, this simply wraps the\n // embedded System classloader in a way that makes it suitable\n // for JSP to use\n ClassLoader jspClassLoader = new URLClassLoader(new URL[0], this.getClass().getClassLoader());\n context.setClassLoader(jspClassLoader);\n\n // Add JSP Servlet (must be named \"jsp\")\n ServletHolder holderJsp = new ServletHolder(\"jsp\", JettyJspServlet.class);\n holderJsp.setInitOrder(0);\n holderJsp.setInitParameter(\"logVerbosityLevel\",\"INFO\");\n holderJsp.setInitParameter(\"fork\",\"false\");\n holderJsp.setInitParameter(\"xpoweredBy\",\"false\");\n holderJsp.setInitParameter(\"compilerTargetVM\",\"1.8\");\n holderJsp.setInitParameter(\"compilerSourceVM\",\"1.8\");\n holderJsp.setInitParameter(\"keepgenerated\",\"true\");\n context.addServlet(holderJsp, \"*.jsp\");\n }", "private void startWebApp(Handler<AsyncResult<HttpServer>> next) {\n Router router = Router.router(vertx);\n\n router.route(\"/assets/*\").handler(StaticHandler.create(\"assets\"));\n router.route(\"/api/*\").handler(BodyHandler.create());\n\n router.route(\"/\").handler(this::handleRoot);\n router.get(\"/api/timer\").handler(this::timer);\n router.post(\"/api/c\").handler(this::_create);\n router.get(\"/api/r/:id\").handler(this::_read);\n router.put(\"/api/u/:id\").handler(this::_update);\n router.delete(\"/api/d/:id\").handler(this::_delete);\n\n // Create the HTTP server and pass the \"accept\" method to the request handler.\n vertx.createHttpServer().requestHandler(router).listen(8888, next);\n }", "public interface Servlet {\n\n /**\n * Called by the servlet container to indicate to a servlet that the servlet is being placed into service.\n * <p>\n * The servlet container calls the <code>init</code> method exactly once after instantiating the servlet. The\n * <code>init</code> method must complete successfully before the servlet can receive any requests.\n * <p>\n * The servlet container cannot place the servlet into service if the <code>init</code> method\n * <ol>\n * <li>Throws a <code>ServletException</code>\n * <li>Does not return within a time period defined by the Web server\n * </ol>\n *\n * @param config a <code>ServletConfig</code> object containing the servlet's configuration and initialization\n * parameters\n *\n * @exception ServletException if an exception has occurred that interferes with the servlet's normal operation\n *\n * @see UnavailableException\n * @see #getServletConfig\n */\n void init(ServletConfig config) throws ServletException;\n\n /**\n * Returns a {@link ServletConfig} object, which contains initialization and startup parameters for this servlet.\n * The <code>ServletConfig</code> object returned is the one passed to the <code>init</code> method.\n * <p>\n * Implementations of this interface are responsible for storing the <code>ServletConfig</code> object so that this\n * method can return it. The {@link GenericServlet} class, which implements this interface, already does this.\n *\n * @return the <code>ServletConfig</code> object that initializes this servlet\n *\n * @see #init\n */\n ServletConfig getServletConfig();\n\n /**\n * Called by the servlet container to allow the servlet to respond to a request.\n * <p>\n * This method is only called after the servlet's <code>init()</code> method has completed successfully.\n * <p>\n * The status code of the response always should be set for a servlet that throws or sends an error.\n * <p>\n * Servlets typically run inside multithreaded servlet containers that can handle multiple requests concurrently.\n * Developers must be aware to synchronize access to any shared resources such as files, network connections, and as\n * well as the servlet's class and instance variables. More information on multithreaded programming in Java is\n * available in <a href=\"http://java.sun.com/Series/Tutorial/java/threads/multithreaded.html\"> the Java tutorial on\n * multi-threaded programming</a>.\n *\n * @param req the <code>ServletRequest</code> object that contains the client's request\n * @param res the <code>ServletResponse</code> object that contains the servlet's response\n *\n * @exception ServletException if an exception occurs that interferes with the servlet's normal operation\n * @exception IOException if an input or output exception occurs\n */\n void service(ServletRequest req, ServletResponse res) throws ServletException, IOException;\n\n /**\n * Returns information about the servlet, such as author, version, and copyright.\n * <p>\n * The string that this method returns should be plain text and not markup of any kind (such as HTML, XML, etc.).\n *\n * @return a <code>String</code> containing servlet information\n */\n String getServletInfo();\n\n /**\n * Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. This\n * method is only called once all threads within the servlet's <code>service</code> method have exited or after a\n * timeout period has passed. After the servlet container calls this method, it will not call the\n * <code>service</code> method again on this servlet.\n * <p>\n * This method gives the servlet an opportunity to clean up any resources that are being held (for example, memory,\n * file handles, threads) and make sure that any persistent state is synchronized with the servlet's current state\n * in memory.\n */\n void destroy();\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException \r\n{\nresponse.getWriter().append(\"Served at: \").append(request.getContextPath()); \r\n}", "private void enableEmbeddedJspSupport(ServletContextHandler servletContextHandler) throws IOException {\n // Establish Scratch directory for the servlet context (used by JSP compilation)\n File tempDir = new File(System.getProperty(\"java.io.tmpdir\"));\n File scratchDir = new File(tempDir.toString(), \"embedded-jetty-jsp\");\n\n if (!scratchDir.exists()) {\n if (!scratchDir.mkdirs()) {\n throw new IOException(\"Unable to create scratch directory: \" + scratchDir);\n }\n }\n servletContextHandler.setAttribute(\"javax.servlet.context.tempdir\", scratchDir);\n\n // Set Classloader of Context to be sane (needed for JSTL)\n // JSP requires a non-System classloader, this simply wraps the\n // embedded System classloader in a way that makes it suitable\n // for JSP to use\n ClassLoader jspClassLoader = new URLClassLoader(new URL[0], this.getClass().getClassLoader());\n servletContextHandler.setClassLoader(jspClassLoader);\n\n // Manually call JettyJasperInitializer on context startup\n servletContextHandler.addBean(new JspStarter(servletContextHandler));\n\n // Create / Register JSP Servlet (must be named \"jsp\" per spec)\n ServletHolder holderJsp = new ServletHolder(\"jsp\", JettyJspServlet.class);\n holderJsp.setInitOrder(0);\n holderJsp.setInitParameter(\"logVerbosityLevel\", \"DEBUG\");\n holderJsp.setInitParameter(\"fork\", \"false\");\n holderJsp.setInitParameter(\"xpoweredBy\", \"false\");\n holderJsp.setInitParameter(\"compilerTargetVM\", \"1.8\");\n holderJsp.setInitParameter(\"compilerSourceVM\", \"1.8\");\n holderJsp.setInitParameter(\"keepgenerated\", \"true\");\n servletContextHandler.addServlet(holderJsp, \"*.jsp\");\n }", "public void run() {\n final Server server = new Server(8081);\n\n // Setup the basic RestApplication \"context\" at \"/\".\n // This is also known as the handler tree (in Jetty speak).\n final ServletContextHandler context = new ServletContextHandler(\n server, CONTEXT_ROOT);\n final ServletHolder restEasyServlet = new ServletHolder(\n new HttpServletDispatcher());\n restEasyServlet.setInitParameter(\"resteasy.servlet.mapping.prefix\",\n APPLICATION_PATH);\n restEasyServlet.setInitParameter(\"javax.ws.rs.Application\",\n \"de.kad.intech4.djservice.RestApplication\");\n context.addServlet(restEasyServlet, CONTEXT_ROOT);\n\n\n try {\n server.start();\n server.join();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override protected void configureServlets() {\n serveRegex(\"^/(?!_ah).*\").with(HandlerServlet.class);\n // serves xmpp urls\n serveRegex(\"/_ah/xmpp/.*\").with(HandlerServlet.class);\n }", "private NettyHttpUtil() {\n\t\t// do nothing.\n\t}", "List<HttpServletServer> getHttpServers();", "@Override\n protected void extend(ServerConnector target) {\n\n }", "public PreRepackServlet() {\n\t\tsuper();\n\t}", "private AppServlet() {\r\n\r\n }", "public interface UrlConnector {\n /**\n * Obtains an HTTP GET request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpGet getRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP PUT request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpPut putRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP POST request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpPost postRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP DELETE request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpDelete deleteRequest(HttpServletRequest request, String address) throws IOException;\n\n /**\n * Obtains an HTTP PATCH request object.\n *\n * @param request the servlet request.\n * @param address the address to connect to.\n * @return the request.\n * @throws IOException if the connection can't be established.\n */\n HttpPatch patchRequest(HttpServletRequest request, String address) throws IOException;\n}", "@Override\r\n public String getServletInfo() {\n return null;\r\n }", "private static void startWebSocketServer() {\n\n Server webSocketServer = new Server();\n ServerConnector connector = new ServerConnector(webSocketServer);\n connector.setPort(PORT);\n webSocketServer.addConnector(connector);\n log.info(\"Connector added\");\n\n // Setup the basic application \"context\" for this application at \"/\"\n // This is also known as the handler tree (in jetty speak)\n ServletContextHandler webSocketContext = new ServletContextHandler(\n ServletContextHandler.SESSIONS);\n webSocketContext.setContextPath(\"/\");\n webSocketServer.setHandler(webSocketContext);\n log.info(\"Context handler set\");\n\n try {\n ServerContainer serverContainer = WebSocketServerContainerInitializer\n .configureContext(webSocketContext);\n log.info(\"Initialize javax.websocket layer\");\n\n serverContainer.addEndpoint(GreeterEndpoint.class);\n log.info(\"Endpoint added\");\n\n webSocketServer.start();\n log.info(\"Server started\");\n\n webSocketServer.join();\n log.info(\"Server joined\");\n\n } catch (Throwable t) {\n log.error(\"Error startWebSocketServer {0}\", t);\n }\n }", "private static void initJspContext(WebAppContext webapp) throws IOException {\n File tempDir = new File(System.getProperty(\"java.io.tmpdir\"));\n File scratchDir = new File(tempDir.toString(),\"embedded-jetty-jsp\");\n\n if (!scratchDir.exists()) {\n if (!scratchDir.mkdirs()) {\n throw new IOException(\"Unable to create scratch directory: \" + scratchDir);\n }\n }\n\n webapp.setAttribute(\"javax.servlet.context.tempdir\",scratchDir);\n webapp.setAttribute(InstanceManager.class.getName(), new SimpleInstanceManager());\n \n\n //Ensure the jsp engine is initialized correctly\n JettyJasperInitializer sci = new JettyJasperInitializer();\n ServletContainerInitializersStarter sciStarter = new ServletContainerInitializersStarter(webapp);\n ContainerInitializer initializer = new ContainerInitializer(sci, null);\n List<ContainerInitializer> initializers = new ArrayList<ContainerInitializer>();\n initializers.add(initializer);\n\n webapp.setAttribute(\"org.eclipse.jetty.containerInitializers\", initializers);\n webapp.addBean(sciStarter, true);\n\n // Add JSP Servlet (must be named \"jsp\")\n ServletHolder holderJsp = new ServletHolder(\"jsp\",JspServlet.class);\n holderJsp.setInitOrder(0);\n holderJsp.setInitParameter(\"logVerbosityLevel\",\"DEBUG\");\n holderJsp.setInitParameter(\"fork\",\"false\");\n holderJsp.setInitParameter(\"xpoweredBy\",\"false\");\n holderJsp.setInitParameter(\"compilerTargetVM\",\"1.7\");\n holderJsp.setInitParameter(\"compilerSourceVM\",\"1.7\");\n holderJsp.setInitParameter(\"keepgenerated\",\"true\");\n webapp.addServlet(holderJsp,\"*.jsp\");\n //context.addServlet(holderJsp,\"*.jspf\");\n //context.addServlet(holderJsp,\"*.jspx\");\n\t}", "public void initOsgi();", "@Override\n public PooledHttpResponse serve(ServiceRequestContext ctx, PooledHttpRequest req) throws Exception {\n assert !(unwrap() instanceof PooledHttpService);\n return PooledHttpResponse.of(unwrap().serve(ctx, req));\n }", "@Override\n public String getServletInfo() {\n return \"Hello World Servlet\";\n }", "public static void main(String[] args) {\n \tEmbeddedServers.add(EmbeddedServers.Identifiers.JETTY, (Routes routeMatcher, StaticFilesConfiguration staticFilesConfiguration, boolean hasMultipleHandler) -> {\r\n JettyHandler handler = setupHandler(routeMatcher, staticFilesConfiguration, hasMultipleHandler);\r\n customJettyServerFactory serv = new customJettyServerFactory();\r\n return new EmbeddedJettyServer(serv, handler);\r\n });\r\n \t\r\n \tport(80);\r\n \t\r\n \tOptions op = new Options();\r\n \top.setOptions(args);\r\n \t//LabelCreator labels = new LabelCreator(op);\r\n\r\n \t\r\n \tstaticFiles.location(\"/public\"); // Static (web accessible) files (e.g. CSS files etc.) can be placed in src/main/resources/public \r\n \tstaticFiles.header(\"Access-Control-Allow-Origin\", \"*\"); // static files can be accessed from anywhere\r\n \tstaticFiles.header(\"Access-Control-Allow-Headers\", \"*\"); // static files can be accessed from anywhere\r\n \t\r\n \t// any empty action will be redirected to the API documentation\r\n \tredirect.any(\"/\", \"/labels/\"+API_VERSION+\"/\");\r\n \tredirect.any(\"/labels\", \"/labels/\"+API_VERSION+\"/\");\r\n \tredirect.any(\"/labels/\", \"/labels/\"+API_VERSION+\"/\");\t\r\n \tredirect.any(\"/labels/\"+API_VERSION, \"/labels/\"+API_VERSION+\"/\");\r\n \t\r\n \toptions(\"/*\", (req, res) -> {\r\n \t\tString accessControlRequestHeaders = req.headers(\"Access-Control-Request-Headers\");\r\n \t\tif (accessControlRequestHeaders != null) {\r\n \t\t\tres.header(\"Access-Control-Allow-Headers\", accessControlRequestHeaders);\r\n \t\t}\r\n\r\n \t\tString accessControlRequestMethod = req.headers(\"Access-Control-Request-Method\");\r\n \t\tif (accessControlRequestMethod != null) {\r\n \t\t\tres.header(\"Access-Control-Allow-Methods\", accessControlRequestMethod);\r\n \t\t}\r\n\r\n return \"OK\";\r\n \t});\r\n \t\r\n \ttry {\r\n\t\t\t// Build swagger json description\r\n\t\t\tfinal String swaggerJson = SwaggerParser.getSwaggerJson(APP_PACKAGE);\r\n\t\t\tget(\"/labels/\"+API_VERSION+\"/\", (req, res) -> { // TODO: redirect the Swagger JSON to a Swagger UI instance instead of returning it e.g. redirect.any(\"/test\", \"http://petstore.swagger.io\");\r\n\t\t\t\tres.header(\"Content-Type\", \"application/json\");\r\n\t\t\t\treturn swaggerJson;//.replace(oldChar, newChar);\r\n\t\t\t});\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n \t\r\n \t// Routes other than default Swagger documentation\r\n \tpath(\"/labels\", () -> {\r\n \t\tpath(\"/\"+API_VERSION, () -> {\r\n\t \t\t\r\n \t\t\tget(\"/static/*\", (req, res) -> {\r\n \t \t\t\r\n \t\t\t\t AccessStatic c = new AccessStatic(op, req, res);\r\n \t\t return c.result();\r\n \t\t\t});\r\n \t\t\t\r\n \t\t\tpost(\"/\", (req, res) -> {\r\n \t\t\t\t\r\n \t\t\t\tif(req.queryParams(\"template\")==null || req.queryParams(\"template\").isEmpty())\r\n \t\t\t\t{\t\r\n \t\t\t\t\t//res.redirect(\"/labels/\"+API_VERSION+\"/template/choose\", 303);\r\n \t\t\t\t\tTemplateCreator tmpl = new TemplateCreator(op);\r\n\t\t\t \t//tmpl.baseURL = \"http://\"+req.host();\r\n\t\t\t \ttmpl.target = tmpl.baseURL+ req.pathInfo();\r\n\t\t\t \ttmpl.origReq = req;\r\n\t\t\t \t\r\n\t\t\t \treturn tmpl.chooseTemplateForm();\r\n \t\t\t\t}\r\n \t\t\t\telse {\r\n \t\t\t\t\tString format = req.queryParams(\"format\");\r\n \t\t\t\t\tString data = req.queryParams(\"data\");\r\n \t\t\t\t\t//op.baseURL = \"http://\"+req.host() + req.pathInfo();\r\n \t\t\t\t\t//op.baseURL = op.baseURL + req.pathInfo();\r\n \t\t\t\t\t\r\n \t\t\t\t\tif(format==null || format.isEmpty())\r\n \t\t\t\t\t\tformat=\"html\";\r\n \t\t\t\t\t\r\n\t \t\t\t\tif(format.equalsIgnoreCase(\"html\"))\r\n\t \t\t\t\t\ttry {\r\n\t \t\t\t\t\t\t CreateHTML c = new CreateHTML(op, req, res);\r\n\t \t\t\t\t String re = c.result();\r\n\t \t\t\t\t return re;\r\n\t \t\t\t\t\t} catch (Exception e) {\r\n\t \t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t \t\t\t\t\t\te.printStackTrace();\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t \r\n\t \t\t\t\tif(format.equalsIgnoreCase(\"pdf\"))\r\n\t \t\t\t\t\ttry {\r\n\t \t\t\t\t\t\tCreatePDF c = new CreatePDF(op, req, res);\r\n\t \t\t\t\t return c.result();\r\n\t \t\t\t\t\t} catch (Exception e) {\r\n\t \t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t \t\t\t\t\t\te.printStackTrace();\r\n\t \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\treturn \"3rror\";\r\n \t\t\t});\r\n \t\t\t\r\n \t\t\tget(\"/tmp\", (req, res) -> {\r\n \t \t\t\r\n \t\t\t\t AccessTmp c = new AccessTmp(op, req, res);\r\n \t\t return c.result();\r\n \t\t });\r\n \t\t\t\r\n \t\t\ttry {\r\n\t\t\t\t\tCreatePDFRoute.route(op);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t \r\n \t\t\ttry {\r\n\t\t\t\t\tCreateHTMLRoute.route(op);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t \r\n \t\t\ttry {\r\n\t\t\t\t\tAccessTmpRoute.route(op);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t \r\n\t\t // TODO: Metadata about existing templates\r\n\t\t // @route /templates/ \t\t=> get a list of all existing templates\r\n\t\t // @route /template/{id} \t\t=> get a specific template with unique list of included placeholders and path to html file\r\n\t\t \r\n \t\t\tpath(\"/template\", () -> {\r\n\t\t\t get(\"/show\", (req, res) -> {\r\n\t\t\t\t\t \r\n\t\t\t \tres.header(\"Content-Type\", \"text/html\");\r\n\t\t\t \t\r\n\t\t\t if(req.queryParams(\"template\")!=null)\r\n\t\t\t\t\t\t\top.templateFile = op.templateDir+\"/\"+req.queryParams(\"template\");\r\n\t\t\t \r\n\t\t\t String html = \"\";\r\n\t\t\t File file = new File(op.templateFile);\r\n\t\t\t\t\t FileInputStream fis;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t if(file.exists()) {\r\n\t\t\t\t\t\t\tfis = new FileInputStream(file);\r\n\t\t\t\t\t\t byte[] data = new byte[(int) file.length()];\r\n\t\t\t\t\t\t\tfis.read(data);\r\n\t\t\t\t\t\t fis.close();\r\n\t\t\t\t\t\t html = new String(data, \"UTF-8\");\r\n\t\t\t\t\t };\r\n\t\t\t\t\t res.body(html);\r\n\t\t\t\t\t \r\n\t\t\t\t\t return res.body();\r\n\t\t\t });\r\n\t\t\t \r\n\t\t\t get(\"/show/all\", (req, res) -> {\r\n\t\t\t \t\r\n\t\t\t \tres.header(\"Content-Type\", \"application/json\");\r\n\t\t\t \tres.body(new TemplateCreator(op).getTemplates().toString());\r\n\t\t\t \treturn res.body();\r\n\t\t\t });\r\n\t\t\t \r\n\t\t\t \r\n \t\t\t});\r\n\t\t \r\n\t\t get(\"/check\", (req, res)-> {\r\n\t\t \t\r\n\t\t \t byte[] bytes = Files.readAllBytes(Paths.get(\"templates/submit.html\")); \r\n\t\t\t HttpServletResponse raw = res.raw();\r\n\t\t\t\r\n\t\t\t raw.getOutputStream().write(bytes);\r\n\t\t\t raw.getOutputStream().flush();\r\n\t\t\t raw.getOutputStream().close();\r\n\t\t\t \r\n\t\t\t return res.raw();\r\n\t\t \t\r\n\t\t });\r\n\t\t \r\n\t\t // TODO: set option for configuring Allow-Origin through config.ini\r\n\t\t\t\tbefore((req, res) -> {\r\n\t\t\t\t\tres.header(\"Access-Control-Allow-Origin\", \"*\");\r\n\t\t\t\t\tres.header(\"Access-Control-Allow-Headers\", \"Content-Type,Authorization,X-Requested-With,Content-Length,Accept,Origin,\");\r\n\t\t\t\t});\r\n\t\t \r\n\t\t // TODO: make template editable (e.g. with (static) implementation of WYSIWYG Aloha Editor (http://alohoeditor.org))\r\n\t\t // get(\"/template/edit\", (req, res) -> {\r\n\t\t //\t\t@param Sting template: name of the template\r\n\t\t // }\r\n\t\t \r\n\t\t // TODO: save template (e.g. by sending the (full) DOM of the template edited by Aloha Editor (http://alohoeditor.org))\r\n\t\t // get(\"/template/save\", (req, res) -> {\r\n\t\t //\t\t@param String template: name of the (new) template\r\n\t\t //\t\t@param Boolean overwrite: what to do if template name already exists \r\n\t\t // }\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t /* get(\"/json\", (req, res) -> {\r\n\t\t \r\n\t\t byte[] bytes = Files.readAllBytes(Paths.get(\"templates/data.json\")); \r\n\t\t HttpServletResponse raw = res.raw();\r\n\t\t\r\n\t\t raw.addHeader(\"Content-Type\", \"application/json\");\r\n\t\t raw.getOutputStream().write(bytes);\r\n\t\t raw.getOutputStream().flush();\r\n\t\t raw.getOutputStream().close();\r\n\t\t\r\n\t\t return res.raw();\r\n\t\t \r\n\t\t \t });\r\n\t\t */\r\n\t \t});\r\n \t});\r\n \t\r\n \tif(op.debug)\r\n \t\tenableDebugScreen(); \r\n }", "public void startServer() {\n System.out.println(\"Inicie\");\n httpServer = new HttpServer();\n httpServer.registerProessor(\"/App\", this);\n try {\n httpServer.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\r\npublic void init(ServletConfig config) throws ServletException {\r\n super.init(config);\r\n}", "public IntegrationServicesProviderServlet() {\n this.engine = ExpandedOsgiEngine.getInstance();\n }", "public WebServer(int port, Context context) throws IOException {\n this.server = HttpServer.create(new InetSocketAddress(port), 0);\n \n // handle concurrent requests with multiple threads\n server.setExecutor(Executors.newCachedThreadPool());\n \n List<Filter> logging = List.of(new ExceptionsFilter(), new LogFilter());\n\n StaticFileHandler.create(server, \"/static/\", \"static/\", \"invalid\");\n HttpContext eval = server.createContext(\"/eval/\", exchange -> handleEval(exchange, context));\n eval.getFilters().addAll(logging);\n }", "public static void main(final String[] args) throws Exception {\n Resource.setDefaultUseCaches(false);\n Integer SERVER_PORT = Integer.parseInt(ManejadorPropiedades.leerPropiedad(\"app_cfg.properties\", \"app.port\"));\n String SERVER_HOST = ManejadorPropiedades.leerPropiedad(\"app_cfg.properties\", \"app.host\");\n String CONTEXT_PATH = ManejadorPropiedades.leerPropiedad(\"app_cfg.properties\", \"app.context_path\");\n \n final Server server = new Server(SERVER_PORT);\n System.setProperty(AppConfig.SERVER_PORT, SERVER_PORT.toString());\n System.setProperty(AppConfig.SERVER_HOST, SERVER_HOST);\n System.setProperty(AppConfig.CONTEXT_PATH, CONTEXT_PATH);\n \n\n // Configuring Apache CXF servlet and Spring listener \n final ServletHolder servletHolder = new ServletHolder(new CXFServlet());\n final ServletContextHandler context = new ServletContextHandler();\n context.setContextPath(\"/\");\n context.addServlet(servletHolder, \"/\" + CONTEXT_PATH + \"/*\");\n context.addEventListener(new ContextLoaderListener());\n context.setInitParameter(\"contextClass\", AnnotationConfigWebApplicationContext.class.getName());\n context.setInitParameter(\"contextConfigLocation\", AppConfig.class.getName());\n \n FilterHolder filterHolder = context.addFilter(CrossOriginFilter.class,\"/*\",EnumSet.allOf(DispatcherType.class));\n filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_ORIGINS_PARAM,\"*\");\n filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_HEADERS_PARAM,\"Content-Type,Authorization,X-Requested-With,Content-Length,Accept,Origin\");\n filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_METHODS_PARAM,\"GET,PUT,POST,DELETE,OPTIONS\");\n filterHolder.setInitParameter(CrossOriginFilter.PREFLIGHT_MAX_AGE_PARAM,\"5184000\");\n filterHolder.setInitParameter(CrossOriginFilter.ALLOW_CREDENTIALS_PARAM,\"true\");\n\n\n // Configuring Swagger as static web resource\n final ServletHolder swaggerHolder = new ServletHolder(new DefaultServlet());\n final ServletContextHandler swagger = new ServletContextHandler();\n swagger.setContextPath(\"/swagger\");\n swagger.addServlet(swaggerHolder, \"/*\");\n swagger.setResourceBase(new ClassPathResource(\"/webapp\").getURI().toString());\n\n final HandlerList handlers = new HandlerList();\n handlers.addHandler(swagger);\n handlers.addHandler(context);\n\n server.setHandler(handlers);\n server.start();\n server.join();\n }", "public interface Transport {\r\n /**\r\n * Prepares connection to server and returns connection output stream.\r\n * \r\n * @param info\r\n * connection information object containing target URL, content encoding, etc.\r\n * @return connection output stream\r\n * @throws TransportException\r\n */\r\n OutputStream prepare(ConnectionInfo info) throws TransportException;\r\n \r\n \r\n // this method used for wsg request -- by felix\r\n /**\r\n * Prepares connection to server and returns connection output stream.\r\n * \r\n * @param info\r\n * connection information object containing target URL, content encoding, etc.\r\n * @return connection output stream\r\n * @throws TransportException\r\n */\r\n void prepare(ConnectionInfo info,byte[] reqXml) throws TransportException;\r\n\tpublic InputStream configPrepare(ConnectionInfo info) throws TransportException;\r\n public InputStream prepareAndConnect(ConnectionInfo info) throws TransportException ;\r\n public void prepareWsgPost(ConnectionInfo info,byte[] reqXml) throws TransportException ;\r\n \r\n\r\n /**\r\n * Sends request to server and receives a response.\r\n * <em>{@link #prepare(ConnectionInfo)} should be called prior to performing an exchange.</em>\r\n * \r\n * @return input stream containing server response\r\n * \r\n * @throws TransportException\r\n */\r\n InputStream exchange() throws TransportException;\r\n\r\n /**\r\n * Closes any pending connections and frees transport resources.\r\n */\r\n void close();\r\n}", "public ServletContext getServletContext() {\n/* 92 */ return (ServletContext)getSource();\n/* */ }", "public interface HttpHandler {\n public void handle(HttpExchange httpExchange) throws IOException;\n}", "String getStaticWebEndpoint();", "public TrackerWebContext createWebContext(String name, int port, int protocol, InetAddress bind_ip)\n\n throws TrackerException;", "String getServletInfo();", "S getServer();", "public void service(HttpServletRequest req, HttpServletResponse res)\n throws IOException\n {\n// ncat.info(\"> service()\");\n\n //DBG\n/*\n System.out.println(\"AA:\" \n \t+ weblogic.servlet.internal.ServletRequestImpl.class.getClassLoader().getClass().getName());\n System.out.println(\"AA:\" \n \t+ weblogic.servlet.internal.ServletRequestImpl.class.getClassLoader().toString());\n \t\n System.out.println(\"ClassLoader is \" \n \t+ weblogic.kernel.T3SrvrLogger.class.getClassLoader().getClass().getName());\n System.out.println(\"ClassLoader is \" \n \t+ weblogic.kernel.T3SrvrLogger.class.getClassLoader().toString());\n System.out.println(\"2: \" + Thread.currentThread().getContextClassLoader().getClass().getName());\n System.out.println(\"2: \" + Thread.currentThread().getContextClassLoader().toString());\n*/\n// weblogic.kernel.T3SrvrLogger.logWarnPossibleStuckThread(\"DBG!!\", 1234, \"DUMMY\", 3456, \"DUMMY_STRACE\");\n\n res.setContentType(\"text/html\");\n PrintWriter out = res.getWriter();\n \n \n out.println(\"<HTML><HEAD><TITLE>Hello World</TITLE></HEAD><BODY>\");\n out.println(\"<h4>Hello World!</h4>\");\n out.println(\"<p>com.sun.management.jmxremote : \" + System.getProperty(\"com.sun.management.jmxremote\") + \"</p>\");\n out.println(\"</BODY></HTML>\");\n\n// ncat.info(\"< service(10)\");\n }", "public interface Application {\n /**\n * Initializes resources used by the Application.\n *\n * @param config the application's configuration object\n */\n public void init(ApplicationConfig config) throws ServletException;\n \n /**\n * Called by the TeaServlet when the application is no longer needed.\n */\n public void destroy();\n\n /**\n * Creates a context, which defines functions that are callable by\n * templates. Any public method in the context is a callable function,\n * except methods defined in Object. A context may receive a request and\n * response, but it doesn't need to use any of them. They are provided only\n * in the event that a function needs access to these objects.\n * <p>\n * Unless the getContextType method returns null, the createContext method\n * is called once for every request to the TeaServlet, so context creation\n * should have a fairly quick initialization. One way of accomplishing this\n * is to return the same context instance each time. The drawback to this\n * technique is that functions will not be able to access the current\n * request and response.\n * <p>\n * The recommended technique is to construct a new context that simply\n * references this Application and any of the passed in parameters. This\n * way, the Application contains all the resources and \"business logic\",\n * and the context just provides templates access to it.\n *\n * @param request the client's HTTP request\n * @param response the client's HTTP response\n * @return an object context for the templates\n */\n public Object createContext(ApplicationRequest request,\n ApplicationResponse response);\n\n /**\n * The class of the object that the createContext method will return, which\n * does not need to implement any special interface or extend any special\n * class. Returning null indicates that this Application defines no\n * context, and createContext will never be called.\n *\n * @return the class that the createContext method will return\n */\n public Class getContextType();\n}", "public static RhinoServlet getServlet(Context cx) {\r\n Object o = cx.getThreadLocal(\"rhinoServer\");\r\n if (o==null || !(o instanceof RhinoServlet)) return null;\r\n return (RhinoServlet)o;\r\n }", "public void startOsgi();", "@Test\n public void testTemplate2() throws Exception {\n TemplateWebApplication webApp = new TemplateWebApplication(\"src/main/template2\");\n webApp.initialize();\n webApp.start();\n\n TemplateHttpServletRequest request = new TemplateHttpServletRequest();\n request.setWebApplication(webApp);\n request.setContextPath(\"\");\n request.setServletPath(\"/index.html\");\n request.setPathInfo(null);\n\n TemplateHttpServletResponse response = new TemplateHttpServletResponse();\n TemplateServletOutputStream outputStream = new TemplateServletOutputStream();\n response.setOutputStream(outputStream);\n outputStream.setResponse(response);\n\n webApp.service(request, response);\n\n assertEquals(200, response.getStatus());\n String responseString = new String(response.getResponseBody());\n assertTrue(responseString.contains(\"Hello Mojarra\"));\n }", "public void init() {\n ServletContext context = getServletContext();\r\n host = context.getInitParameter(\"host\");\r\n port = context.getInitParameter(\"port\");\r\n user = context.getInitParameter(\"user\");\r\n pass = context.getInitParameter(\"pass\");\r\n }", "public interface HttpRequestHandler {\n public boolean canHandle(String uri);\n public httpResponse handle(httpRequest request);\n}", "@Override\n\tpublic void preServe() {\n\n\t}", "public static void main(String[] args) {\n\n HttpConnector connector = new HttpConnector();\n Wrapper wrapper = new SimpleWrapper();\n wrapper.setServletClass(\"ModernServlet\");\n Loader loader = new SimpleLoader();\n Valve valve1 = new HeaderLoggerValve();\n Valve valve2 = new ClientIPLoggerValve();// 在这里显示IP\n\n wrapper.setLoader(loader);\n ((Pipeline) wrapper).addValve(valve1);\n ((Pipeline) wrapper).addValve(valve2);\n\n connector.setContainer(wrapper);\n\n try {\n connector.initialize();\n connector.start();\n\n // make the application wait until we press a key.\n System.in.read();\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "public RhinoServlet() {\r\n if (!ContextFactory.hasExplicitGlobal())\r\n ContextFactory.initGlobal(new DynamicFactory());\r\n globalScope = new GlobalScope(this);\r\n }", "public interface FreeMakerConfigurator {\r\n\r\n\t/**\r\n\t * @param servletContext the SERVLET context\r\n\t * @param configuration the FreeMaker defined configuration\r\n\t */\r\n\tvoid configure(ServletContext servletContext, Configuration configuration);\r\n}", "public interface IApplicationInjector {\r\n\t\r\n\tpublic Runnable getServerListener(int port, int poolSize) throws ApplicationException;\r\n\t\r\n\tpublic Runnable getWorker(Socket socket) throws ApplicationException;\r\n\t\r\n\tpublic IFileUtil getFileUtil() throws ApplicationException;\r\n\r\n}", "public void init() {\n ServletContext context = getServletContext();\n host = context.getInitParameter(\"host\");\n port = context.getInitParameter(\"port\");\n user = context.getInitParameter(\"user\");\n pass = context.getInitParameter(\"pass\");\n }", "@Override\n public void start() throws LifecycleException {\n logger.info(\"Start http server ... \");\n\n\n try {\n // create a resource config that scans for JAX-RS resources and providers\n final ResourceConfig rc = new ResourceConfig()\n .packages(PACKAGES_SCAN) // packages path for resources loading\n .property(MvcFeature.TEMPLATE_BASE_PATH, FREEMARKER_BASE) // config freemarker view files's base path\n .register(LoggingFeature.class)\n .register(FreemarkerMvcFeature.class)\n .register(JettisonFeature.class)\n .packages(\"org.glassfish.jersey.examples.multipart\")\n .register(MultiPartFeature.class)\n .registerInstances(new ApplicationBinder()); //\n\n // create and start a new instance of grizzly http server\n // exposing the Jersey application at BASE_URI\n httpServer = GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), rc);\n\n // Set StaticHttpHandler to handle http server's static resources\n String htmlPath = this.getClass().getResource(HTML_BASE).getPath(); // TODO, 部署后要根据实际目录修正!classes 同级目录下的 html 目录\n HttpHandler handler = new StaticHttpHandler(htmlPath);\n httpServer.getServerConfiguration().addHttpHandler(handler, \"/\");\n\n logger.info(\"Jersey app started with WADL available at {} application.wadl\\n \", BASE_URI);\n } catch (Exception e) {\n throw new LifecycleException(e); // just convert to self defined exception\n }\n }", "public interface Client {\n\n\t/**\n\t * @throws Http2Exception\n\t */\n\tvoid init() throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean start() throws Http2Exception;\n\n\t/**\n\t * @param request\n\t * @return\n\t * @throws Http2Exception\n\t */\n\t Http2Response request(Http2Request request) throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean isRuning() throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean shutdown() throws Http2Exception;\n\n}", "@Bean\n public TomcatServletWebServerFactory servletWebServerFactory() {\n return new TomcatServletWebServerFactory() {\n\n @Override\n protected void prepareContext(Host host,\n ServletContextInitializer[] initializers) {\n super.prepareContext(host, initializers);\n StandardContext child = new StandardContext();\n child.addLifecycleListener(new Tomcat.FixContextListener());\n child.setPath(\"/cloudfoundryapplication\");\n ServletContainerInitializer initializer = getServletContextInitializer(\n getContextPath());\n child.addServletContainerInitializer(initializer, Collections.emptySet());\n child.setCrossContext(true);\n host.addChild(child);\n }\n\n };\n }", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "@Override\n public String getServletInfo() {\n return null;\n }", "public interface Server {\n void register(String serverName, Class impl) throws Exception;\n\n void start() throws IOException;\n\n\n}", "@Override\n\tpublic void configure(WebSocketServletFactory arg0) {\n\t\tthrow new UnsupportedOperationException(\"not yet implemented\");\n\t}", "@Override\nprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n}", "public void testLoadOnStartup() throws Exception {\n WebXMLString wxs = new WebXMLString();\n wxs.addServlet( \"servlet1\", \"one\", Servlet1.class );\n wxs.setLoadOnStartup( \"servlet1\" );\n wxs.addServlet( \"servlet2\", \"two\", Servlet2.class );\n wxs.addServlet( \"servlet3\", \"three\", Servlet3.class );\n \n ServletRunner sr = new ServletRunner( toInputStream( wxs.asText() ) );\n ServletUnitClient wc = sr.newClient();\n InvocationContext ic = wc.newInvocation( \"http://localhost/three\" );\n assertEquals( \"Initialized servlets\", \"Servlet1,Servlet3\", ic.getServlet().getServletConfig().getServletContext().getAttribute( \"initialized\" ) );\n }", "public interface IWampusEnvironmentObject {\n String getObjectName();\n void onEnvironmentUpdated(WampusEnvironment env);\n void die();\n}", "void service(ServletRequest req, ServletResponse res) throws ServletException, IOException;", "static HttpRequestInitializer getRequestInitializer() {\n return new HttpRequestInitializer() {\n @Override\n public void initialize(final HttpRequest arg0) {\n }\n };\n }", "public static void main(String[] args) {\n staticFiles.location(\"/public\"); // Static files\n get(\"/hello\", (req, res) -> \"Hello World\");\n System.out.println(\"http://localhost:4567/hello\");\n }", "private static void setupOsgi() {\r\n FrameworkStarter.getInstance().start();\r\n }", "private void startServer(String ip, int port, String contentFolder) throws IOException{\n HttpServer server = HttpServer.create(new InetSocketAddress(ip, port), 0);\n \n //Making / the root directory of the webserver\n server.createContext(\"/\", new Handler(contentFolder));\n //Making /log a dynamic page that uses LogHandler\n server.createContext(\"/log\", new LogHandler());\n //Making /online a dynamic page that uses OnlineUsersHandler\n server.createContext(\"/online\", new OnlineUsersHandler());\n server.setExecutor(null);\n server.start();\n \n //Needing loggin info here!\n }", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "IHttpService getHttpService();", "@Override\r\n public void init(ServletConfig arg0) throws ServletException {\n\r\n }", "public RestServlet() {}", "public synchronized static JettyEmbeddedAppServer getInstance() {\n if (instance == null) {\n instance = new JettyEmbeddedAppServer();\n }\n return instance;\n }", "private UsingSwig() {\n\t}", "public HttpConnector(){\n super();\n }", "void method0() {\nprotected File configBase = null;\n/**\n * The Context container associated with our web application.\n */\nprotected Context context = null;\n/**\n * The debugging detail level for this servlet.\n */\nprotected int debug = 1;\n/**\n * File object representing the directory into which the deploy() command\n * will store the WAR and context configuration files that have been\n * uploaded.\n */\nprotected File deployed = null;\n/**\n * Path used to store revisions of webapps.\n */\nprotected File versioned = null;\n/**\n * Path used to store context descriptors.\n */\nprotected File contextDescriptors = null;\n/**\n * The associated host.\n */\nprotected Host host = null;\n/**\n * The host appBase.\n */\nprotected File appBase = null;\n/**\n * MBean server.\n */\nprotected MBeanServer mBeanServer = null;\n/**\n * The associated deployer ObjectName.\n */\nprotected ObjectName oname = null;\n/**\n * The global JNDI <code>NamingContext</code> for this server,\n * if available.\n */\nprotected javax.naming.Context global = null;\n/**\n * The string manager for this package.\n */\nprotected static final StringManager sm = StringManager.getManager(Constants.Package);\n/**\n * The Wrapper container associated with this servlet.\n */\nprotected Wrapper wrapper = null;\n}", "private WAPIHelper() { }", "public static HttpServer startServer(final String baseURI) {\n // create a resource config that scans for JAX-RS resources and providers\n // in com.example.rest package\n final ResourceConfig rc = new ResourceConfig().packages(\"com.example.rest\").register(MultiPartFeature.class);\n\n // create and start a new instance of grizzly http server\n // exposing the Jersey application at BASE_URI\n return GrizzlyHttpServerFactory.createHttpServer(URI.create(baseURI), rc);\n }", "public interface HttpRequest {\n // MIME types\n public static final String JNLP_MIME_TYPE = \"application/x-java-jnlp-file\";\n public static final String ERROR_MIME_TYPE = \"application/x-java-jnlp-error\";\n public static final String JAR_MIME_TYPE = \"application/x-java-archive\";\n public static final String JARDIFF_MIME_TYPE = \"application/x-java-archive-diff\";\n public static final String GIF_MIME_TYPE = \"image/gif\";\n public static final String JPEG_MIME_TYPE = \"image/jpeg\";\n \n // Low-level interface\n HttpResponse doHeadRequest(URL url) throws IOException;\n HttpResponse doGetRequest (URL url) throws IOException;\n \n HttpResponse doHeadRequest(URL url, String[] headerKeys, String[] headerValues) throws IOException;\n HttpResponse doGetRequest (URL url, String[] headerKeys, String[] headerValues) throws IOException;\n}", "public RackPortletServlet() {\n }" ]
[ "0.6044121", "0.60384375", "0.5980746", "0.588769", "0.5873739", "0.5830008", "0.5827952", "0.5793011", "0.5769038", "0.57479644", "0.5719925", "0.5719191", "0.57028145", "0.56946814", "0.56821173", "0.5661139", "0.56449443", "0.56046015", "0.5587555", "0.55622244", "0.55515975", "0.5537564", "0.55124736", "0.5482998", "0.547555", "0.5460231", "0.54460263", "0.5445885", "0.5437173", "0.5426215", "0.54161084", "0.5402779", "0.53705424", "0.53683764", "0.5360179", "0.53559786", "0.5334152", "0.53188044", "0.5315399", "0.53009784", "0.52946454", "0.5278405", "0.52705324", "0.5268912", "0.52582085", "0.5253931", "0.5251709", "0.52399004", "0.52369136", "0.5230257", "0.5230184", "0.5208463", "0.5208028", "0.5207277", "0.519858", "0.5195635", "0.51948994", "0.5194651", "0.5193965", "0.51811004", "0.5173526", "0.51731414", "0.51694036", "0.5168257", "0.5168164", "0.51677024", "0.51581156", "0.51463366", "0.51369286", "0.5136615", "0.5134257", "0.5120351", "0.5118382", "0.5105986", "0.51032627", "0.509823", "0.5090505", "0.50892234", "0.50878334", "0.5083748", "0.5081516", "0.5078834", "0.5077259", "0.5065506", "0.5060587", "0.5059094", "0.50590813", "0.50579184", "0.50432134", "0.50431675", "0.5031354", "0.502101", "0.5018937", "0.50174296", "0.5014808", "0.5013921", "0.50137603", "0.5010697", "0.5009936", "0.5009253", "0.4992013" ]
0.0
-1
Replaces the whitespace char with one which did not cause parsing problems.
public static String saveWhitespaces(String s) { return StringUtil.replace(s, " ", "\u00A0"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String clearSpaces(final String old) {\n return old.replace(\" \", \"\").replace(\"\\n\", \"\");\n }", "private String replaceSpaces(String value) {\r\n\t\treturn value.replace(\" \", \"_\");\r\n\t}", "private String normalizeSpace(final String arg) {\n return arg.replaceAll(Constants.SPACE_PATTERN, Constants.SPACE);\n }", "private static String escapeWhitespace( final String input )\n {\n return input.replaceAll( \"\\\\ \", \"\\\\\\\\ \" );\n }", "public XMLString fixWhiteSpace(boolean trimHead, boolean trimTail, boolean doublePunctuationSpaces) {\n/* 92 */ return new XMLStringDefault(this.m_str.trim());\n/* */ }", "public static String removeWhitespace(String s) {\n s = s.replace(\" \",\"\");\n s = s.replace(\"\\n\",\"\");\n s = s.replace(\"\\t\",\"\");\n return s;\n }", "private boolean getReplaceNonBreakingSpace() {\n return false;\n }", "@Test\n\tpublic void fixWhiteSpaceTest() {\n\t\tString query1 = \"((hello))\";\n\t\tString query2 = \"\\\"hello my\\\"\";\n\t\tString query3 = \"( hello & goodbye) \";\n\t\t\n\t\tString query1Result = \"( ( hello ) )\";\n\t\tString query2Result = \"\\\" hello my \\\"\";\n\t\tString query3Result = \"( hello & goodbye )\";\n\t\t\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixSpacing(query1));\n\t\tassertEquals(query2Result, queryTest.fixSpacing(query2));\n\t\tassertEquals(query3Result, queryTest.fixSpacing(query3));\n\t}", "@Override\n\tpublic String spaceRemover(String input) {\n\t\treturn input.replaceAll(\"\\\\s+\",\"\");\n\n\t}", "public static String removeWhiteSpace(String value) {\n return value.replaceAll(\"\\\\s\", \"\");\n }", "private static String trimWhiteSpace(String sentence) {\n\t\tsentence = sentence.replaceAll(\"[^a-zA-Z]\", \" \");\n//\t\tsentence = sentence.replaceAll(\"\\n\", \" \");\n//\t\tsentence = sentence.replaceAll(\"\\t\", \" \");\n// sentence = sentence.replaceAll(\"\\\\.\", \" \");\n// sentence = sentence.replaceAll(\",\", \" \");\n \n//\t\tint length;\n//\t\tdo {\n//\t\t\tlength = sentence.length();\n//\t\t\tsentence = sentence.replaceAll(\" \", \" \");\n//\n//\t\t} while (sentence.length() < length);\n\t\treturn sentence;\n\t}", "private void space() {\n if (wereTokens && !spaceSuppressed) {\n out.print(' ');\n }\n }", "@Test\n public void testReplacingEmptyString()\n {\n String expectedValue=null,actualValue;\n actualValue=replaceingchar.replaceChar(\" \");\n assertEquals(expectedValue,actualValue);\n }", "public static String squeezeWhitespace (String input){\r\n return Whitespace.matcher(input).replaceAll(\" \").trim();\r\n }", "public static String normalize(CharSequence value) {\n if (value == null) {\n return null;\n }\n return WHITESPACE_PATTERN.matcher(value).replaceAll(\" \");\n }", "public void setInsertSpaces(boolean substitute);", "@Test\n\tpublic void removeWhiteSpaceFromTabs() {\n\t\tString input = \"two tousand \" + \"\\t\" + \"\\t\" + \" sixteen\" \n\t\t\t\t+ \"new \" + \"\\t\" + \" lines!\" + \"\\n\" + \" \" + \"\\n\";\n\t\tSystem.out.println(input);\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\t\tactualCastedString = stringUtility.removeWhiteSpace(actualCastedString);\n\n\t\tString correctlyCastedString = \"2tousandsixteennewlines!\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}", "private boolean space() {\r\n return CHAR(' ');\r\n }", "private void normaliseWhitespace() {\t\t\t\r\n\t\tdocument.normalizeDocument();\r\n\t\t\r\n\t\tif (document.getDocumentElement() == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tfinal Queue<Node> queue = Lists.newLinkedList();\r\n\t\tqueue.add(document.getDocumentElement());\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\tfinal Node node = queue.remove();\r\n\t\t\tfinal NodeList children = node.getChildNodes();\r\n\t\t\tfor (int index = 0; index < children.getLength(); index++) {\r\n\t\t\t\tqueue.add(children.item(index));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (node.getNodeType() == Node.TEXT_NODE) {\r\n\t\t\t\tnode.setTextContent(node.getTextContent().trim());\r\n\t\t\t\tif (node.getTextContent().isEmpty()) {\r\n\t\t\t\t\tnode.getParentNode().removeChild(node);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t String str = \"Fred F. Flintstone\";\n\t str.replace(\" \", \"%20\");\n\t System.out.println(str.replace(\" \", \"%20\"));\n\t System.out.println(replaceSpace(str.toCharArray()));\n\t }", "@Test\n\tpublic void removeWhiteSpaceFromNewLine() {\n\t\tString input = \"two tousand sixteen \"\n\t\t\t\t+ \"new \" + \"lines!\" + \"\\n\" + \" \" + \"\\n\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\t\tactualCastedString = stringUtility.removeWhiteSpace(actualCastedString);\n\n\t\tString correctlyCastedString = \"2tousandsixteennewlines!\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}", "public String removeSpaces(String str) {\n str = str.replace(\" \", \"-\");\n return str;\n }", "private void skipWhiteSpace() throws ScanErrorException\n {\n while (isWhiteSpace(currentChar))\n eat(currentChar);\n }", "public static String fromNullToSpace(String a) {\r\n\t\tif (a == null || \"\".equals(a)) {\r\n\t\t\treturn \" \";\r\n\t\t} else {\r\n\t\t\treturn a;\r\n\t\t}\r\n\t}", "public void ignorableWhitespace(char[] ch, int start, int length) { }", "public char nextClean() throws JSONException {\n for(;;) {\n char c = this.next();\n if(c == 0 || c > ' ') {\n return c;\n }\n }\n }", "private static String trim(String s) {\n return s.replace(\" \", \"\");\n }", "@Test\n\tpublic void removeWhiteSpace() {\n\t\tString input = \"two tousand sixteen\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\t\tactualCastedString = stringUtility.removeWhiteSpace(actualCastedString);\n\n\t\tString correctlyCastedString = \"2tousandsixteen\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}", "private boolean isSpace() {\n return (char) c == ' ';\n }", "private void removeWhitespace() {\n /*\n * Get rid of comments.\n * Regex breakdown:\n * //.* : Some string that starts with \"//\"\n */\n instruction = instruction.replaceAll(\"//.*\", \"\");\n\n /*\n * Now replace all whitespace with a single space\n * Regex breakdown:\n * \\s+ : Find all whitespace that appear in a chunk\n */\n instruction = instruction.replaceAll(\"\\\\s+\", \" \");\n\n // Get rid of leading/trailing whitespace (if there is any whitespace at\n // the start/end of a line, it will be converted into one space character\n // as a result of the previous line)\n /*\n * Regex breakdown:\n * ^ : At the start of the line...\n * \\s+ : Match whitespace that occurs in a glob\n */\n instruction = instruction.replaceAll(\"^\\\\s+\", \"\");\n /*\n * Regex breakdown:\n * \\s+ : Match whitespace that occurs in a glob\n * $ : At the end of the line\n */\n instruction = instruction.replaceAll(\"\\\\s+$\", \"\");\n }", "@Override\n public void ignorableWhitespace(\n char[] chars, int start, int length\n ) throws SAXException {\n // ...\n }", "public static char[] replaceSpace(char[] str){\n\t\t // TODO\n\t\t return str;\n\t }", "Rule WhiteSpace() {\n return ZeroOrMore(AnyOf(\" \\n\\r\\t\\f\"));\n }", "public final void mWHITE_SPACE() throws RecognitionException {\n try {\n int _type = WHITE_SPACE;\n // /Users/benjamincoe/HackWars/C.g:152:3: ( ( ' ' | '\\\\t' | '\\\\f' ) )\n // /Users/benjamincoe/HackWars/C.g:152:5: ( ' ' | '\\\\t' | '\\\\f' )\n {\n if ( input.LA(1)=='\\t'||input.LA(1)=='\\f'||input.LA(1)==' ' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse =\n new MismatchedSetException(null,input);\n recover(mse); throw mse;\n }\n\n channel=HIDDEN;\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "private void initWhitespace(Set<String> s) {\n\t\ts.add(\" \");\n\t\ts.add(\"\\n\");\n\t\ts.add(\"\\t\");\n }", "private String normalize(String text) {\n final String nbsp = new String(new char[] {(char) 160});\n return text.replaceAll(\"\\\\s+(\" + nbsp + \")+\\\\s+\", \"$1\")\n .replace((char) 160, ' ')\n .replaceAll(\n \"\\n+\", \"\\n\")\n .replaceAll(\"\\r|\\t\", \"\")\n .trim();\n }", "private String spacing(String line) {\n \n \t\t/* Remove redundant spaces (keep only one space between two words) */\n \t\tint limit = 0;\n \t\tMatcher matcher = patternSpaces.matcher(line);\n \n \t\tString oldLine = line;\n \n \t\tremSpaces: while (matcher.find()) {\n \n \t\t\tint offset = matcher.start();\n \n \t\t\t// do not remove spaces at the beginning of a line\n \t\t\tif (line.substring(0, offset).trim().equals(\"\"))\n \t\t\t\tcontinue;\n \n \t\t\t/*\n \t\t\t * if the spaces (or tabs) are at the beginning of a line or before a comment, then we keep them\n \t\t\t */\n \t\t\t/*\n \t\t\t * Matcher matcherSpacesBeforeComment = patternSpacesBeforeComment.matcher(line); if\n \t\t\t * (matcherSpacesBeforeComment.find()) { if (offset < matcherSpacesBeforeComment.end()) continue\n \t\t\t * remSpaces; }\n \t\t\t */\n \n \t\t\t// if the spaces are before a comment, then we keep them\n \t\t\tString afterSpaces = line.substring(matcher.end());\n \t\t\tif (afterSpaces.startsWith(\"(*\"))\n \t\t\t\tcontinue remSpaces;\n \n \t\t\t// If we are inside a string, then we skip this replacing\n \t\t\tMatcher matcherString = patternString.matcher(line);\n \t\t\twhile (matcherString.find()) {\n \t\t\t\tif (matcherString.start() <= offset && offset < matcherString.end())\n \t\t\t\t\tcontinue remSpaces;\n \t\t\t}\n \n \t\t\t// If we are inside a comment, then we skip this replacing\n \t\t\tMatcher matcherComment = patternComment.matcher(line);\n \t\t\twhile (matcherComment.find()) {\n \t\t\t\tif (matcherComment.start() <= offset && offset < matcherComment.end())\n \t\t\t\t\tcontinue remSpaces;\n \t\t\t}\n \n \t\t\tline = line.substring(0, offset) + \" \" + line.substring(matcher.end());\n \n \t\t\t// we have to reset the matcher, because we modified the line\n \t\t\tmatcher = patternSpaces.matcher(line);\n \n \t\t\t// we put a limit, just in case we would get into an infinite loop\n \t\t\tif (limit++ > 10000) {\n \t\t\t\tOcamlPlugin.logError(\"Infinite loop detected in formatter during spacing (1): <<\" + oldLine\n \t\t\t\t\t\t+ \">>\");\n \t\t\t\tbreak;\n \t\t\t}\n \n \t\t}\n \n \t\t// remove spaces before commas\n \t\t//line = line.replaceAll(\" ,\", \",\");\n \t\t// remove spaces before semicolons\n \t\t//line = line.replaceAll(\" ;\", \";\");\n \n \t\tfor (int nPattern = 0; nPattern <= 1; nPattern++) {\n \t\t\tPattern patternSpacing;\n \t\t\tif (nPattern == 0)\n \t\t\t\tpatternSpacing = patternSpacingRight;\n \t\t\telse\n \t\t\t\tpatternSpacing = patternSpacingLeft;\n \n \t\t\t/*\n \t\t\t * We put a limit to the number of replacements, just in case we would get into an infinite loop\n \t\t\t */\n \t\t\tlimit = 0;\n \t\t\t// add spaces before some characters\n \t\t\tmatcher = patternSpacing.matcher(line);\n \n \t\t\toldLine = line;\n \n \t\t\taddSpaces: while (matcher.find()) {\n \n \t\t\t\tint offset = matcher.start() + 1;\n \t\t\t\tif (offset > line.length() - 1 || offset < 0) {\n \t\t\t\t\tocaml.OcamlPlugin.logError(\"OcamlIndenter:format : invalid position\");\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \n \t\t\t\t// if we are inside a string, then we skip this replacement\n \t\t\t\tMatcher matcherString = patternString.matcher(line);\n \t\t\t\twhile (matcherString.find()) {\n \t\t\t\t\tif (matcherString.start() <= offset && offset < matcherString.end())\n \t\t\t\t\t\tcontinue addSpaces;\n \t\t\t\t}\n \n \t\t\t\t// Skip replacement if in comment\n \t\t\t\tMatcher matcherComment = patternComment.matcher(line);\n \t\t\t\twhile (matcherComment.find()) {\n \t\t\t\t\tif (matcherComment.start() <= offset && offset < matcherComment.end())\n \t\t\t\t\t\tcontinue addSpaces;\n \t\t\t\t}\n \n \t\t\t\tline = line.substring(0, offset) + \" \" + line.substring(offset);\n \n \t\t\t\t// we have to reset the matcher, because we modified the line\n \t\t\t\tmatcher = patternSpacing.matcher(line);\n \t\t\t\tif (limit++ > 10000) {\n \t\t\t\t\tOcamlPlugin.logError(\"Infinite loop detected in formatter during spacing (2): <<\"\n \t\t\t\t\t\t\t+ oldLine + \">>\");\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn line;\n \n \t}", "private String _removeSpaces(String matrixElement) {\n char[] es = matrixElement.toCharArray();\n char[] _temp = new char[es.length];\n int count = 0;\n for (int i = 0; i < es.length; i++) {\n if (Character.isDigit(es[i]) || es[i] == '.' || es[i] == '-') {\n _temp[count++] = es[i];\n }\n }\n return new String(_temp, 0, count);\n }", "public static String cleanString(String s) {\n\t\ts = s.trim();\n\t\tString newStr = \"\";\n\t\tboolean lastWasSpace = false;\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\t\t\tif(c == ' ' && lastWasSpace) {\n\t\t\t\t//Ignore\n\t\t\t} else if (c == ' ' && !lastWasSpace) {\n\t\t\t\tnewStr+=c;\n\t\t\t\tlastWasSpace = true;\n\t\t\t} else {\n\t\t\t\tnewStr+=c;\n\t\t\t\tlastWasSpace = false;\n\t\t\t}\n\t\t}\n\t\ts = newStr;\n\t\treturn s;\n\t}", "public static String stripWhiteSpace(String str) {\n if (str != null) {\n StringBuffer stringBuffer = new StringBuffer(str.length());\n for (int i = 0, strLen = str.length(); i < strLen; i++) {\n final char ch = str.charAt(i);\n if (ch != ' ' && ch != '\\r' && ch != '\\n' && ch != '\\t') {\n stringBuffer.append(ch);\n }\n }\n return stringBuffer.toString();\n }\n return str;\n }", "public static String removeSpaces(String s) {\r\n StringTokenizer stt = new StringTokenizer(s);\r\n String res = \"\";\r\n\r\n while (stt.hasMoreTokens()) {\r\n String tok = stt.nextToken().trim();\r\n res += tok;\r\n }\r\n return res;\r\n }", "public static String replaceAllWhiteWithOne(String sInput) {\n\t\tString strTmp = sInput.trim();\n\t\tString strResult = \"\";\n\t\tfor (int i = 0; i < strTmp.length(); i++) {\n\t\t\tchar ch = strTmp.charAt(i);\n\t\t\tif (ch == ' ') {\n\t\t\t\tfor (int j = i; j < strTmp.length(); j++) {\n\t\t\t\t\tchar ch2 = strTmp.charAt(j);\n\t\t\t\t\tif (ch2 != ' ') {\n\t\t\t\t\t\ti = j;\n\t\t\t\t\t\tstrResult = strResult + ' ' + ch2;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tstrResult = strResult + ch;\n\t\t\t}\n\t\t}\n\t\treturn strResult;\n\t}", "public static String replaceAllWhiteWithOne(String sInput) {\n\t\tString strTmp = sInput.trim();\n\t\tString strResult = \"\";\n\t\tfor (int i = 0; i < strTmp.length(); i++) {\n\t\t\tchar ch = strTmp.charAt(i);\n\t\t\tif (ch == ' ') {\n\t\t\t\tfor (int j = i; j < strTmp.length(); j++) {\n\t\t\t\t\tchar ch2 = strTmp.charAt(j);\n\t\t\t\t\tif (ch2 != ' ') {\n\t\t\t\t\t\ti = j;\n\t\t\t\t\t\tstrResult = strResult + ' ' + ch2;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tstrResult = strResult + ch;\n\t\t\t}\n\t\t}\n\t\treturn strResult;\n\t}", "public void correctStrings() {\n this.content = StringUtils.correctWhiteSpaces(content);\n }", "private void trimWhitespaces() {\n \n while(currentIndex < dataLength && Character.isWhitespace( data[currentIndex] )) {\n ++currentIndex;\n }\n }", "public static String clearLongWhitespaces(String str) {\r\n\r\n if (str == null) {\r\n str = \"\";\r\n }\r\n String result = \"\";\r\n StringTokenizer st = new StringTokenizer(str);\r\n while (st.hasMoreTokens()) {\r\n String s = st.nextToken();\r\n if (s != null) {\r\n result += s.trim();\r\n }\r\n }\r\n return result.trim();\r\n }", "private static String removeWhitespace(String str)\n {\n // A string buffer to build the result in.\n StringBuffer res;\n\n // Create the result string buffer.\n res = new StringBuffer(str.length());\n\n // Iterate through the input string, appending chars to the\n // result if they are not white space.\n for (int iChar = 0; iChar < str.length(); iChar++) {\n if (!Character.isWhitespace(str.charAt(iChar))) {\n res.append(str.charAt(iChar));\n }\n }\n\n return res.toString();\n }", "private void skipWhitespace() {\n while (currentPos < endPos && filterString.charAt(currentPos) == ' ') {\n currentPos++;\n }\n }", "@Test\n\tpublic void testRemoveWhiteSpacesAndPunctuation() {\n\t\tString input = \"2$2?5 5!63\";\n\t\tString actual = GeneralUtility.removeWhiteSpacesAndPunctuation(input);\n\t\tString expected = \"225563\";\n\t\tAssert.assertEquals(expected, actual);\n\t}", "@Override\n\tpublic void space() {\n\t\t\n\t}", "public String quitaespacios (String str) {\n\n str = repNull(str);\n str = str.trim();\n str = rep(str, \"[ ]{2,}\", \" \");\n\n return str;\n }", "public static String removeLeftSpaceOrTabs(String current) {\n char ch;\n int whiteSpacesLen = 0;\n for (int i = 0; i < current.length(); i++) {\n ch = current.charAt(i);\n if (CR == ch || LF == ch || CharacterConstants.SPACE == ch || CharacterConstants.TAB == ch) {\n whiteSpacesLen++;\n } else {\n break;\n }\n }\n return current.substring(whiteSpacesLen);\n }", "public String getSingleSpaceString(String sInputString) {\n String sOutputString = \"\";\n try {\n\n //loop replace all TAB by single space\n while (sInputString.contains(\"\t\")) {\n sInputString = sInputString.replaceAll(\"\t\", \" \").trim();\n }\n\n //loop to replace all double space by single space\n while (sInputString.contains(\" \")) {\n sInputString = sInputString.replaceAll(\" \", \" \").trim();\n }\n\n } catch (Exception e) {\n\n } finally {\n sOutputString = sInputString;\n sInputString = null;\n return sOutputString;\n }\n }", "@Override\r\n public void ignorableWhitespace(char[] ch, int start, int length)\r\n throws SAXException {\n }", "private String removeLeadingWhitespace(String input) {\n for (int index = 0; index < input.length(); index++) {\n if (!Character.isWhitespace(input.charAt(index))) {\n return input.substring(index);\n }\n }\n return input;\n }", "public static String markSpaces(String inText)\n {\n return inText.replaceAll(\"\\n\", \"\\\\\\\\n\").replaceAll(\"\\r\", \"\\\\\\\\r\")\n .replaceAll(\"\\t\", \"\\\\\\\\t\").replaceAll(\"\\f\", \"\\\\\\\\f\").replaceAll(\" \", \"_\");\n }", "private boolean isWhitespace(char c) {\n\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t';\n\t}", "private boolean isWhitespace(char c) {\n\t\treturn c == ' ' || c == '\\n' || c == '\\r' || c == '\\t';\n\t}", "static void trimWhitespace() {\n for (int i = a.size() - 1; i >= 0; i-- ) {\n Object o = a.get(i);\n StringBuilder sb = new StringBuilder();\n if (o instanceof Token)\n sb.append( ((Token)o).image );\n else\n sb.append((String)o);\n while(sb.length() > 0 && (sb.charAt(sb.length() - 1) == '\\u005cr'\n || sb.charAt(sb.length() - 1) == '\\u005cn'\n || sb.charAt(sb.length() - 1) == '\\u005ct'\n || sb.charAt(sb.length() - 1) == ' ')) {\n sb.deleteCharAt(sb.length() - 1);\n }\n if (sb.length() == 0) {\n a.remove(i);\n }\n else {\n a.set(i, sb.toString());\n break;\n }\n }\n if (a.size() == 0) {\n while(outputBuffer.length() > 0 && (outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cr'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cn'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005ct'\n || outputBuffer.charAt(outputBuffer.length() - 1) == ' ')) {\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n }\n }\n }", "private static int removeWhiteSpace(char[] data) {\n if (CommonUtil.isNull(data)) {\n return 0;\n }\n\n // count characters that's not whitespace\n int newSize = 0;\n int len = data.length;\n for (int i = 0; i < len; i++) {\n if (!isWhiteSpace(data[i])) {\n data[newSize++] = data[i];\n }\n }\n return newSize;\n }", "@Override\n\t\tpublic void ignorableWhitespace(char[] ch, int start, int length)\n\t\t\t\tthrows SAXException {\n\t\t\t\n\t\t}", "private boolean makeSpaceBefore(boolean addSpace){\n int index = ts.index();\n try {\n while(true) {\n if (!ts.movePrevious()){\n return false;\n }\n if (ts.token().id() == NEW_LINE){\n DiffResult diff = diffs.getDiffs(ts, 0);\n if (diff == null || diff.replace == null || diff.replace.hasNewLine()){\n return false;\n }\n } else if (ts.token().id() == PREPROCESSOR_DIRECTIVE){\n return false;\n } else if (ts.token().id() != WHITESPACE){\n replaceSegment(addSpace, index);\n return true;\n }\n }\n } finally {\n ts.moveIndex(index);\n ts.moveNext();\n }\n }", "private void skipSpaces() {\r\n\t\twhile (currentIndex < expression.length && (expression[currentIndex] == ' ' || expression[currentIndex] == '\\t'\r\n\t\t\t\t|| expression[currentIndex] == '\\n' || expression[currentIndex] == '\\r')) {\r\n\t\t\tcurrentIndex++;\r\n\t\t}\r\n\t}", "protected static String trimWhitespace(String s) {\n int len = s.length();\n StringBuffer buf = new StringBuffer(len);\n for (int ii = 0; ii < len; ii++) {\n char c = s.charAt(ii);\n if (!Character.isWhitespace(c)) {\n buf.append(c);\n }\n }\n return buf.toString();\n }", "protected static int removeWhiteSpace(char[] data) {\n if (data == null)\n return 0;\n \n // count characters that's not whitespace\n int newSize = 0;\n int len = data.length;\n for (int i = 0; i < len; i++) {\n if (!isWhiteSpace(data[i]))\n data[newSize++] = data[i];\n }\n return newSize;\n }", "@Override\n\tpublic void ignorableWhitespace(char[] ch, int start, int length)\n\t\t\tthrows SAXException {\n\t\t\n\t}", "@Override\n\tpublic void ignorableWhitespace(char[] ch, int start, int length)\n\t\t\tthrows SAXException {\n\t\t\n\t}", "private static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\t' || c == '\\n' || c == '\\f' || c == '\\r';\n }", "private String removeWhitespace(String lineToFormat) {\n StringBuilder lineWithoutWhitespace = new StringBuilder();\n StringBuilder buffer = new StringBuilder();\n boolean isString = false;\n char prevChar = '\\0';\n\n for (int i = 0; i < lineToFormat.length(); i++) {\n // check if the current char is a whitespace char\n if (AssemblyConstants.isWhitespace(lineToFormat.charAt(i))) {\n if (buffer.length() > 0) {\n // add everything from buffer in-between\n lineWithoutWhitespace.append(buffer).append(\" \");\n buffer.setLength(0);\n }\n } else {\n // add all non-whitespace chars found to the buffer\n char charToAdd = lineToFormat.charAt(i);\n // check if the char is a part of a string (check if it's not an escaped string separator as well)\n if (charToAdd == AssemblyConstants.STRING_SEPARATOR && prevChar != AssemblyConstants.ESCAPE_SEQUENCE)\n isString = !isString;\n\n // if the char is not a part of a string, make it lowercase if it's a letter\n if (!isString)\n buffer.append((charToAdd < 'A' || charToAdd > 'Z')\n ? charToAdd\n : (char) (charToAdd + 0x20));\n else\n // if the char is a part of a string, just add it as it is\n buffer.append(charToAdd);\n }\n\n prevChar = lineToFormat.charAt(i);\n }\n\n if (isString)\n throw new WrongAssemblyLineException(\"\\nWrong assembly line found:\\n\"\n + \"'\" + lineToFormat + \"' contains too many string separators\");\n\n // add the rest found in buffer\n return buffer.length() > 0\n ? lineWithoutWhitespace.append(buffer).toString().trim()\n : lineWithoutWhitespace.toString().trim();\n }", "private String editString(String s) {\n s = s.replace(\"[31m\", \"\");\n s = s.replace(\"[0m\", \"\");\n s = s.replace(\"[33m\", \"\");\n s = s.replace(\"[36m\", \"\");\n s = s.replace(\"[34m\", \"\");\n s = s.replace(\"*\", \"\");\n s = s.replace(\"|\", \"\");\n //s = s.replace(\"]\", \"]\\n\");\n s = s.replace(\"\\t\", \"\\n\");\n\n\n return s;\n }", "public static String formatSpaces(String s) {\n \tString temp = s;\n \tif(s.contains(\"underscores\")) temp = s.replace(\" \", \"_\");\n return temp;\n }", "public WhitespaceState()\n\t{\n\t\tsetWhitespaceChars(0, ' ', true);\n\t}", "public static CharSequence normalize(CharSequence s) {\n if (Whitespace.containsWhitespace(s)) {\n StringTokenizer st = new StringTokenizer(s.toString()); // TODO: treats FF (formfeed) as whitespace\n if (st.hasMoreTokens()) {\n FastStringBuffer sb = new FastStringBuffer(s.length());\n while (true) {\n sb.append(st.nextToken());\n if (st.hasMoreTokens()) {\n sb.append(' ');\n } else {\n break;\n }\n }\n return sb.condense();\n } else {\n return \"\";\n }\n } else {\n return s;\n }\n }", "@Test\n\tpublic void testTrimmingWhiteSpaces() {\n\t\t// Setup\n\t\tString file = \" file.name \";\n\n\t\t// Exercise\n\t\tLine line = new Line(\"5\", \"5\", file);\n\n\t\t// Verify\n\t\tassertEquals(\"file.name\", line.toString());\n\t}", "private void skipBlankSpaces() {\n\t\twhile(currentIndex < data.length) {\n\t\t\tchar c = data[currentIndex];\n\t\t\tif(c == ' ' || c == '\\t' || c =='\\n' || c == '\\r') {\n\t\t\t\tcurrentIndex++;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public static String removeWhiteSpace(String input) {\r\n if (input == null || input.isEmpty()) {\r\n return \"\";\r\n }\r\n StringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < input.length(); i++) {\r\n char c = input.charAt(i);\r\n if (!Character.isWhitespace(c)) {\r\n sb.append(c);\r\n }\r\n }\r\n return sb.toString();\r\n }", "private static void\n eatWhite(ParseState state)\n {\n while(state.pos < state.data.length() && state.data.charAt(state.pos) == ' ')\n {\n ++state.pos;\n }\n }", "private static String repairString(String s) {\n return s != null ? s.replaceAll(\"\\'\", \"\\'\\'\") : null;\n }", "char skipSpaces () {\n char c = getChar ();\n while (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r') {\n if (c == '\\n') { m_nbLines++; }\n c = getNextChar ();\n }\n return c;\n }", "public static String restoreSpaces(String input) {\n\t\tchar[] chars = input.toCharArray();\n\t\tint current = 0;\n\t\tString result = \"\";\n\n\t\twhile (current < chars.length) {\n\t\t\tRetrievalTreeNode root = retrievalTree;\n\t\t\twhile (root.leaves.contains(chars[current])) {\n\t\t\t\troot = root.leaves.get(chars[current]);\n\t\t\t}\n\t\t\twhile (!root.isWord) {\n\t\t\t\troot = root.parent;\n\t\t\t}\n\t\t\tresult += input.substring(current, root.depth) + \" \";\n\t\t\tcurrent = root.depth;\n\t\t}\n\t\treturn result;\n\t}", "private boolean isWhitespace(char c) {\r\n if (c==' ' || c=='\\n' || c=='\\t' || c=='\\r' ){\r\n return true;\r\n }\r\n return false;\r\n }", "@Override\n\tpublic String clean(String input) {\n\t\tinput = input.replaceAll(removeCommonWords.toString(), \" \");\n\t\t//input = input.replaceAll(removeSingleCharacterOrOnlyDigits.toString(), \" \");\n\t\t//input = input.replaceAll(removeTime.toString(), \" \");\n\t\t//input = input.replaceAll(\"(\\\\s+>+\\\\s+)+\", \" \");\n\t\treturn input;\n\t}", "private void Spacing() {\n\n try {\n while (true) {\n try {\n Space();\n } catch (SyntaxError e) {\n Comment();\n }\n }\n } catch (SyntaxError e) {\n }\n }", "private static void assertEqualsIgnoringWhitespace(final String expected, final String actual){\n // assertEquals(expected.replaceAll(\"^ +\", \"\"), actual.replaceAll(\"^ +\", \"\"));\n assertEquals(expected.replaceAll(\"\\\\s+\", \"\"), actual.replaceAll(\"\\\\s+\", \"\"));\n }", "@Override\n\tpublic String strreplace(String str, char oldchar, char newchar) {\n\t\treturn null;\n\t}", "@Test\r\n\t\tpublic void testTokenizeWhitespace() {\r\n\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"a = 5\\nb = 6\\nc = a + (b * 4)\");;\r\n\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.name(\"commit\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\":on_sp\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "void replaceSpaces(String strmain, int trueLen) {\n char[] str = strmain.toCharArray();\n int spaceCount = 0, index, i = 0;\n for (i = 0; i < trueLen; i++) {\n if(str[i]==' ')\n spaceCount++;\n }\n index = trueLen + spaceCount * 2; //length of the final string\n if (trueLen < str.length)\n str[trueLen] = '\\0';\n for (i = trueLen - 1; i >= 0; i--) {\n if (str[i] == ' ') {\n str[index - 1] = '0';\n str[index - 2] = '2';\n str[index - 3] = '%';\n index = index - 3;\n } else {\n str[index - 1] = str[i];\n index--;\n }\n }\n System.out.println(str);\n }", "static String fixInputLine(String input){\n\t\tString fixed = input;\n\n\t\tfor(int i = 0; i < 10; i++){ //run 10 passes, getting rid of redundant tabs.\n\t\t\tfixed = fixed.replaceAll(\"\\\\\\t\\\\\\t\", \"\\t\");\n\t\t}\n\n\t\t//turn any remaining tabs into % characters. \n\n\t\tfixed = fixed.replaceAll(\"\\\\\\t\", \"%\");\n\n\t\t//System.out.println(fixed);\n\t\treturn fixed;\n\t}", "@Override\n public String trim(final String toTrim) {\n return replaceAll(toTrim, \"\\u00A0\", \" \").trim();\n }", "private static String removeSoftHyphens(String in) {\n String result = in.replaceAll(\"\\u00AD\", \"\");\n return result.length() == 0 ? \"-\" : result;\n }", "public static String condense(String str){\n Matcher matcher = condensePattern.matcher(str);\n return matcher.replaceAll(\" \");\n }", "protected void skipWhitespace(CharArrayBuffer buffer, ParserCursor cursor) {\n/* 453 */ int pos = cursor.getPos();\n/* 454 */ int indexTo = cursor.getUpperBound();\n/* 455 */ while (pos < indexTo && HTTP.isWhitespace(buffer.charAt(pos)))\n/* */ {\n/* 457 */ pos++;\n/* */ }\n/* 459 */ cursor.updatePos(pos);\n/* */ }", "public void ignorableWhitespace (char ch[], int start, int length)\n throws SAXException\n {\n // no op\n }", "private void removeSpaces(String[] lines) {\r\n for (int i = 0; i<lines.length; i++) {\r\n lines[i] = lines[i].strip();\r\n lines[i] = lines[i].replaceAll(\"\\\"\", \"\");\r\n }\r\n }", "private boolean isSpace(int c) {\n\t\treturn (c == ' ' || c == '\\t' || c == '\\n');\n\t}", "public static ParseAction<Located<Void>> matchWhitespace(){\n\t\treturn matchPattern(WHITESPACE).map(res -> new Located<>(res.getLocation(), null));\n\t}", "private static void setTokenizerNoWhitespace(StreamTokenizer st) {\n\t\tst.resetSyntax();\n\t\tst.whitespaceChars(0, 32);\n\t}", "public void ignorableWhitespace(char[] ch, int start, int length)\r\n\t\t\tthrows SAXException {\r\n\t\t\r\n\t}", "private void addSpaces(String text) {\n if (!text.equals(myPreviousText)) {\n // Remove spaces\n text = text.replace(\" \", \"\");\n\n // Add space between each character\n StringBuilder newText = new StringBuilder();\n for (int i = 0; i < text.length(); i++) {\n if (i == text.length() - 1) {\n // Do not add a space after the last character -> Allow user to delete last character\n newText.append(Character.toUpperCase(text.charAt(text.length() - 1)));\n }\n else {\n newText.append(Character.toUpperCase(text.charAt(i)) + LETTER_SPACING);\n }\n }\n\n myPreviousText = newText.toString();\n // Update the text with spaces and place the cursor at the end\n myEditText.setText(newText);\n myEditText.setSelection(newText.length());\n }\n }", "private static String _stripWhitespace(String str)\n {\n if (str == null)\n return null;\n\n int length = str.length();\n int startIndex = 0;\n\n while (startIndex < length)\n {\n if (Character.isWhitespace(str.charAt(startIndex)))\n startIndex++;\n else\n break;\n }\n\n int endIndex = length;\n while (endIndex > 0)\n {\n if (Character.isWhitespace(str.charAt(endIndex - 1)))\n endIndex--;\n else\n break;\n }\n\n if ((startIndex == 0) && (endIndex == length))\n return str;\n\n return str.substring(startIndex, endIndex);\n }" ]
[ "0.689963", "0.68301535", "0.6691364", "0.66294503", "0.66276777", "0.65204865", "0.6501934", "0.63688934", "0.6313221", "0.62547696", "0.62196696", "0.6210508", "0.6156253", "0.6115382", "0.6016926", "0.59912866", "0.5970677", "0.5875492", "0.5870976", "0.58641565", "0.5861729", "0.58589745", "0.58527875", "0.5849956", "0.5847678", "0.58450514", "0.5843888", "0.58169", "0.5806299", "0.57866186", "0.576004", "0.5732885", "0.5709311", "0.57045317", "0.57014966", "0.56985354", "0.56797683", "0.5674475", "0.5669073", "0.5668991", "0.56525016", "0.5647839", "0.5647839", "0.56378055", "0.5612551", "0.56073594", "0.5596099", "0.5595917", "0.55821085", "0.5573308", "0.55582166", "0.55460596", "0.55447143", "0.55439246", "0.5527471", "0.5521574", "0.5521216", "0.5521216", "0.5517139", "0.5513121", "0.55113477", "0.54999083", "0.54932606", "0.5486272", "0.5474749", "0.5473654", "0.5473654", "0.54734397", "0.5465479", "0.54599994", "0.5453844", "0.54530764", "0.544862", "0.5446284", "0.5428139", "0.54252106", "0.54244953", "0.5423852", "0.54234076", "0.5419667", "0.5416645", "0.5414214", "0.53926057", "0.5388717", "0.5381222", "0.5380747", "0.5376777", "0.53766096", "0.53736234", "0.53452224", "0.5332123", "0.53301793", "0.5325899", "0.5323908", "0.530701", "0.5298521", "0.5297524", "0.5295557", "0.529373", "0.5279326" ]
0.65872097
5